JPH05181804A - Information processor - Google Patents

Information processor

Info

Publication number
JPH05181804A
JPH05181804A JP3346435A JP34643591A JPH05181804A JP H05181804 A JPH05181804 A JP H05181804A JP 3346435 A JP3346435 A JP 3346435A JP 34643591 A JP34643591 A JP 34643591A JP H05181804 A JPH05181804 A JP H05181804A
Authority
JP
Japan
Prior art keywords
parenthesis
parentheses
pair
height
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3346435A
Other languages
Japanese (ja)
Inventor
Akiyoshi Satou
招良 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP3346435A priority Critical patent/JPH05181804A/en
Publication of JPH05181804A publication Critical patent/JPH05181804A/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To simply execute the deletion, insertion, etc., of a parenthesis in a state that an expression remains displayed two-dimensionally by inputting separately the right parenthesis and the left parenthesis, and changing size of the right parenthesis and the left parenthesis decided to be a pair, in accordance with height of the expression between the parentheses. CONSTITUTION:The processor is provided with an input means 101, a storage means 102, and a retrieving means 103 for retrieving the right or the left parenthesis which is to become a pair with the left or the right parenthesis from in an expression, when the left or the right parenthesis is inputted into the stored expression. Also, this processor is provided with a changing means 104 for checking height of the expression placed between the left and the right parentheses which become a pair, when the right or the left parenthesis which is to become the left or the right parenthesis is retrieved, and changing size of the left and the right parentheses which become a pair in accordance with its height. In such a way, in accordance with the height of the expression placed between the left and the right parentheses which become a pair, the size of the left and the right parentheses which become a pair is changed. Accordingly, the right parenthesis and the left parenthesis can be inputted and deleted singly.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子手帳のような小型
の情報処理装置に関し、特に、括弧及び高さの異なる各
種の数式を入力することが可能な情報処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a small information processing apparatus such as an electronic notebook, and more particularly to an information processing apparatus capable of inputting various mathematical expressions having different heights in parentheses.

【0002】[0002]

【従来の技術】従来のこの種の情報処理装置において
は、数式を数式通りに2次元的に表示する方法として、
以下の2つの方法があった。
2. Description of the Related Art In a conventional information processing apparatus of this type, as a method of displaying a mathematical expression two-dimensionally according to the mathematical expression,
There were the following two methods.

【0003】(1)左括弧と右括弧をペアとしてまとめ
て入力し、その後に括弧の中に部分式を入力する。例え
ば、以下の(式1)を入力する場合、図8の(a)〜
(e)に示すように、まず、初期状態から、括弧キー
(“()”キー)を押すと、括弧が入力されてカーソル
が括弧の中に表示されるので、次に、括弧の中に分数を
入力する。その後、括弧の後に要素を入力するためにカ
ーソルを移動し、残りの式を入力する。
(1) A left parenthesis and a right parenthesis are collectively input as a pair, and then a subexpression is input in the parentheses. For example, when inputting the following (Formula 1), (a) to
As shown in (e), if you press the parenthesis key ("()" key) from the initial state, the parenthesis is entered and the cursor is displayed inside the parenthesis. Enter the number of minutes. Then move the cursor to enter the element after the parentheses and enter the rest of the expression.

【数1】 [Equation 1]

【0004】(2)括弧キーを押すことにより、括弧入
力中とし、その間に数式を入力し、カーソル移動キーを
押すことにより、括弧の入力を終了する。例えば、(式
1)を入力する場合は、図9の(a)〜(f)に示すよ
うになる。すなわち、初期状態から、括弧キーを押す
と、まず、左括弧が表示され、括弧内の部分式入力モー
ドとなる。左括弧は入力された部分式の高さにより、そ
の都度大きさを変える。部分式の入力が終了すると、カ
ーソル移動キーを押すことにより、右括弧が表示され、
括弧の入力が終了する。
(2) By pressing the parenthesis key, the parentheses are being input. During that time, a mathematical expression is input, and by pressing the cursor movement key, the parentheses are input. For example, when inputting (Expression 1), it becomes as shown in (a) to (f) of FIG. That is, when the parenthesis key is pressed from the initial state, the left parenthesis is first displayed, and the partial expression input mode in parentheses is entered. The size of the left parenthesis changes depending on the height of the input subexpression. When you finish entering the subexpression, press the cursor movement key to display the right parenthesis.
The parenthesis is complete.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記
(1)の方式では、例えば、図10の(a)〜(d)で
示すように、簡単なキー操作で一方の括弧を単独で削除
し、別の位置に挿入したりすることができない。つま
り、下に示すような(式2)から(式3)のように、括
弧で囲む部分の範囲を簡単に変更することができない。
また、図8で示したように、括弧の後にさらに式を入力
するためには、括弧の後にカーソルを移動させる作業が
必要となってしまう。 A+(B−C)/D (式2) (A+B−C)/D (式3)
However, in the above method (1), for example, as shown in (a) to (d) of FIG. It cannot be inserted in another position. That is, it is not possible to easily change the range of the portion enclosed by the parentheses as in (Equation 2) to (Equation 3) shown below.
Further, as shown in FIG. 8, in order to input an expression after the parentheses, it is necessary to move the cursor after the parentheses. A + (B−C) / D (Formula 2) (A + B−C) / D (Formula 3)

【0006】また、上記(2)の方式では、括弧の挿入
・削除等の作業は、数式を2次元的に表示したままでは
行えず、1次元的な表示方式に変換してからでないと行
うことができない、つまり、図10で示したような(式
2)から(式3)への変更が2次元的表示式のままでは
できない。例えば、(式1)で括弧の挿入削除を行う場
合には、図11の(a)及び(b)に示すように、ま
ず、1次元的な表示式に変換し、その後、括弧の挿入削
除の作業を行わなければならない。
Further, in the above method (2), the operation of inserting / deleting parentheses cannot be performed while the mathematical expression is displayed in a two-dimensional manner, and must be converted into a one-dimensional display method. That is, it is impossible to change from (Equation 2) to (Equation 3) as shown in FIG. 10 with the two-dimensional display equation. For example, in the case of inserting and deleting parentheses in (Formula 1), as shown in (a) and (b) of FIG. Must be done.

【0007】このように、従来においては、数式を2次
元的に表示したままでは、括弧の削除・挿入等の作業が
簡単に行えなかった。また、上記(1)の場合のよう
に、括弧の後にさらに式を入力するときには、括弧の後
ろにカーソルを移動させる作業が必要であった。
As described above, in the conventional art, the operation of deleting / inserting parentheses could not be easily performed while the mathematical expression was displayed in a two-dimensional manner. Further, as in the case of the above (1), when the expression is further input after the parentheses, it is necessary to move the cursor after the parentheses.

【0008】この発明は、このような事情を考慮してな
されたもので、数式通りに2次元的に数式を表示する場
合に、右括弧と左括弧を別個に入力し、ペアであると判
断された右括弧と左括弧の大きさを、括弧間の数式の高
さにより自動的に変更するようにした情報処理装置を提
供するものである。
The present invention has been made in consideration of such circumstances, and when displaying a mathematical expression two-dimensionally according to the mathematical expression, the right parenthesis and the left parenthesis are input separately and it is determined that they are a pair. An information processing apparatus is provided in which the sizes of the right parenthesis and the left parenthesis are automatically changed according to the height of the mathematical expression between the parentheses.

【0009】[0009]

【課題を解決するための手段】図1はこの発明の構成を
示すブロック図であり、図に示すように、この発明は、
左右の括弧、及び高さの異なる各種の数式を入力する入
力手段101と、入力された左右の括弧、及び高さの異
なる各種の数式を記憶する記憶手段102と、記憶手段
102に記憶された数式内に、入力手段101によって
左又は右括弧が入力されたとき、その左又は右括弧とペ
アになるべき右又は左括弧を数式内から検索する検索手
段103と、検索手段103によって、左又は右括弧と
ペアになるべき右又は左括弧が検索されたとき、ペアと
なった左右の括弧の間に挟まれた数式の高さを調べ、そ
の高さに応じてペアとなった左右の括弧の大きさを変更
する変更手段104と、を備えてなる情報処理装置であ
る。
FIG. 1 is a block diagram showing the configuration of the present invention. As shown in the figure, the present invention is
Input means 101 for inputting left and right parentheses and various mathematical expressions having different heights, storage means 102 for storing the input left and right parentheses, and various mathematical expressions having different heights, and storage means 102 are stored. When a left or right parenthesis is input in the mathematical expression by the input means 101, a searching means 103 for searching the right or left parenthesis to be paired with the left or right parenthesis from the mathematical expression, and a left or right by the searching means 103. When the right or left parenthesis that should be paired with the right parenthesis is found, check the height of the formula between the left and right paired parentheses, and pair the left and right parentheses according to the height. An information processing apparatus including a changing unit 104 that changes the size of the.

【0010】[0010]

【作用】この発明によれば、左括弧又は右括弧が入力さ
れたときには、その左又は右括弧とペアになるべき右又
は左括弧が検索され、ペアとなった左右の括弧の間に挟
まれた数式の高さに応じて、ペアとなった左右の括弧の
大きさが変更されるので、右括弧と左括弧とを単独で入
力及び削除することが可能となり、数式を2次元的に表
示したままでの括弧の削除・挿入等が簡単となる。ま
た、括弧入力後の余分なカーソル移動の作業が不要とな
る。
According to the present invention, when the left parenthesis or the right parenthesis is input, the right or left parenthesis which should be paired with the left parenthesis or the right parenthesis is searched, and it is sandwiched between the paired left and right parentheses. The size of the pair of left and right parentheses is changed according to the height of the equation, so it is possible to enter and delete the right parenthesis and the left parenthesis independently, and display the equation two-dimensionally. It becomes easy to delete and insert parentheses as they are. Moreover, the extra work of moving the cursor after inputting the parentheses is unnecessary.

【0011】[0011]

【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。なお、これによってこの発明が限定される
ものではない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below based on the embodiments shown in the drawings. The present invention is not limited to this.

【0012】図2はこの発明による情報処理装置の一実
施例の構成を示すブロック図である。図中、1 は本情報
処理装置の全体の制御を行うCPU、2はCPUに接続
されたキーボード、3はプログラムを記憶するROM、
4はプログラム作業時に数式やデータ等を記憶するデー
タ格納用RAMである。5は液晶ディスプレイ装置であ
り、この液晶ディスプレイ装置5の表示は、液晶ドライ
バ6を介して行うようになっている。
FIG. 2 is a block diagram showing the configuration of an embodiment of the information processing apparatus according to the present invention. In the figure, 1 is a CPU that controls the entire information processing apparatus, 2 is a keyboard connected to the CPU, 3 is a ROM that stores a program,
Reference numeral 4 denotes a data storage RAM that stores mathematical formulas, data and the like during program work. Reference numeral 5 denotes a liquid crystal display device, and the display of the liquid crystal display device 5 is performed via a liquid crystal driver 6.

【0013】以下に、CPU1の処理動作を説明する。
まず、右括弧と左括弧との間の対応を取るためのデータ
について説明する。数式が入力されると、その入力要素
を数式の表示順にデータリストとして記憶してゆく。分
数、ルート(√)等のように2次元的に表示される関数
については、その引き数も含めて1つの要素として記憶
する。
The processing operation of the CPU 1 will be described below.
First, the data for establishing the correspondence between the right parenthesis and the left parenthesis will be described. When a mathematical expression is input, the input elements are stored as a data list in the display order of the mathematical expression. Functions that are displayed two-dimensionally, such as fractions and routes (√), are stored as one element, including their arguments.

【0014】分数等の引き数内の部分式については、別
のデータリストとして同様に記憶しておき、その分数が
属するデータリストのサブデーリストであることを記憶
しておく。例えば、(式4)においては、
Subexpressions within arguments such as fractions are similarly stored as separate data lists, and are stored as sub-daylists of the data list to which the fraction belongs. For example, in (Equation 4),

【数2】 データリスト1:{A,+,(,分数,),−,B} データリスト2:{1} データリスト3:{2} のように、3個のデータリストを構成し、データリスト
2とデータリスト3をデータリスト1のサブデータリス
トとする。
[Equation 2] Data list 1: {A, +, (, fraction,),-, B} Data list 2: {1} Data list 3: {2} As shown in FIG. The data list 3 is a sub-data list of the data list 1.

【0015】このように、数式をデータリスト化するこ
とにより、右括弧と左括弧間の対応を取るときには、そ
の括弧内に含まれるデータリスト内の要素のみを対象に
すればよいことになる。なお、リスト内の各要素は、表
示用の高さなどの位置データを個々に記憶しているもの
とする。また、右括弧と左括弧はそれぞれペアになった
相手の括弧を記憶するものとする。
As described above, by converting the mathematical expression into a data list, when the correspondence between the right parenthesis and the left parenthesis is taken, only the elements in the data list included in the parenthesis need to be targeted. It is assumed that each element in the list individually stores position data such as display height. The right parenthesis and the left parenthesis store the parenthesis of the paired partner.

【0016】図3の(a)〜(f)は数式と括弧を入力
した場合の表示例を示す説明図であり、本装置で数式と
括弧を入力した場合には、この図に示すように、自動的
に括弧の大きさが変更される。以下、その処理動作を詳
述する。
FIGS. 3A to 3F are explanatory views showing a display example when a mathematical expression and parentheses are input, and when the mathematical expression and parentheses are input in this apparatus, as shown in this figure. , The size of parentheses is changed automatically. The processing operation will be described in detail below.

【0017】図4〜図6はCPU1の処理動作の内容を
示すフローチャートである。まず、括弧間の対応をと
り、大きさを変更する処理を示す。図4は左括弧が入力
されたときの処理アルゴリズムである。図4において、
左括弧が入力された場合には(ステップ11)、データ
リストに左括弧を登録し(ステップ12)、左括弧の大
きさを基本単位の1に設定する(ステップ13)。
4 to 6 are flowcharts showing the contents of the processing operation of the CPU 1. First, a process for changing the size of the parentheses will be described. FIG. 4 shows a processing algorithm when the left parenthesis is input. In FIG.
When the left parenthesis is input (step 11), the left parenthesis is registered in the data list (step 12), and the size of the left parenthesis is set to 1 which is the basic unit (step 13).

【0018】その後、データリストの後方に右括弧を探
してゆく(ステップ14,15)。右括弧が見つかった
とき(ステップ16)、その右括弧がリスト内の他の左
括弧とまだペアになっていない場合は(ステップ1
7)、入力された左括弧と見つかった右括弧とがペアで
あることを記憶し(ステップ18)、その間に挟まれる
要素の高さを調べ、左括弧と右括弧の大きさを変更する
(ステップ19)。もし、ステップ17において、見つ
かった右括弧が、すでに他の左括弧とペアになっていた
場合には、そのリスト内の全ての括弧間の対応を更新す
る(ステップ20)。
After that, the right parenthesis is searched after the data list (steps 14 and 15). When a right parenthesis is found (step 16), if that right parenthesis is not already paired with another left parenthesis in the list (step 1).
7) It is remembered that the input left parenthesis and the found right parenthesis are a pair (step 18), the height of the element sandwiched between them is checked, and the size of the left parenthesis and the right parenthesis is changed ( Step 19). If in step 17, the found right parenthesis is already paired with another left parenthesis, the correspondence between all parentheses in the list is updated (step 20).

【0019】右括弧の検索途中で左括弧が見つかった場
合は(ステップ21)、ペアの相手があるならば(ステ
ップ22)、ペアの相手のデータに移り(ステップ2
3)、ステップ14に戻って更に後方の検索を続ける。
もし、ステップ22において、ペアの相手がない場合
は、その後方に右括弧がないことになるので、検索を終
了する。
If the left parenthesis is found during the search for the right parenthesis (step 21), and if there is a partner of the pair (step 22), the data of the partner of the pair is moved to (step 2).
3) Return to step 14 to continue further backward search.
If there is no paired partner in step 22, there is no right parenthesis behind it, so the search ends.

【0020】図5は右括弧が入力されたときの処理アル
ゴリズムである。図5において、右括弧が入力された場
合には(ステップ31)、データリストに右括弧を登録
し(ステップ32)、右括弧の大きさを1にする(ステ
ップ33)。
FIG. 5 shows a processing algorithm when a right parenthesis is input. In FIG. 5, when the right parenthesis is input (step 31), the right parenthesis is registered in the data list (step 32), and the size of the right parenthesis is set to 1 (step 33).

【0021】その後、データリストの前方に左括弧を探
してゆく(ステップ34,35)。左括弧が見つかった
とき(ステップ36)、その左括弧がリスト内の他の右
括弧とまだペアになっていない場合は(ステップ3
7)、見つかった左括弧と入力された右括弧とがペアで
あることを記憶し(ステップ38)、その間に挟まれる
要素の高さを調べ、左括弧と右括弧の大きさを変更する
(ステップ39)。もし、ステップ37において、見つ
かった左括弧が、すでに他の右括弧とペアになっていた
場合には、そのリスト内の全ての括弧間の対応を更新す
る(ステップ40)。
After that, the left parenthesis is searched in front of the data list (steps 34 and 35). When the left parenthesis is found (step 36), it must be paired with another right parenthesis in the list (step 3).
7) Memorize that the found left parenthesis and the input right parenthesis are a pair (step 38), check the height of the element sandwiched between them, and change the size of the left parenthesis and the right parenthesis ( Step 39). If the found left parenthesis is already paired with another right parenthesis in step 37, the correspondence between all parentheses in the list is updated (step 40).

【0022】左括弧の検索途中で右括弧が見つかった場
合は(ステップ41)、ペアの相手があるならば(ステ
ップ42)、ペアの相手のデータに移り(ステップ4
3)、ステップ34に戻って更に前方の検索を続ける。
もし、ステップ42において、ペアの相手がない場合
は、その前方に左括弧がないことになるので、検索を終
了する。
If the right parenthesis is found during the search for the left parenthesis (step 41), and if there is a partner of the pair (step 42), the data of the partner of the pair is moved to (step 4).
3) Return to step 34 and continue searching further forward.
If there is no paired partner in step 42, there is no left parenthesis in front of it, so the search ends.

【0023】なお、ペアの相手が見つからなかった括弧
の大きさは、数字やアルファベットの高さに合わせてお
く(この大きさを1とする)。左括弧又は右括弧が削除
された場合は、もし削除された括弧にペアの相手があっ
た場合には、そのリスト内の全ての括弧間の対応を更新
する。
The size of the parenthesis in which the other party of the pair cannot be found is matched with the number or the height of the alphabet (this size is 1). If the left or right parenthesis is deleted, and if the deleted parenthesis has a counterpart in the pair, update the correspondence between all parentheses in the list.

【0024】図6はリスト内の全ての括弧間の対応を更
新するアルゴリズムである。図6においては、まず、リ
スト内の全ての括弧が記憶しているペアの相手を無効に
する。また、同時に括弧の大きさも全て1にして(ステ
ップ51)、データリストの先頭に移る(ステップ5
2)。
FIG. 6 is an algorithm for updating the correspondence between all parentheses in the list. In FIG. 6, first, the opponent of the pair stored by all the parentheses in the list is invalidated. At the same time, the size of the parentheses is also set to 1 (step 51), and the data list is moved to the beginning (step 5).
2).

【0025】次に、リストの先頭から右括弧を後方に探
してゆく(ステップ53,54)。右括弧が見つかった
ら(ステップ55)、その位置を記憶し(ステップ5
6)、それに対応する左括弧を前方に探しにゆく(ステ
ップ57,58)。左括弧が見つかったら(ステップ5
9)、その左括弧と右括弧をペアとして記憶し(ステッ
プ60)、括弧間の部分式の高さを調べ、括弧の大きさ
を変更する(ステップ61)。
Next, the right parenthesis is searched backward from the head of the list (steps 53 and 54). When the right parenthesis is found (step 55), its position is memorized (step 5).
6) Go forward to find the corresponding left parenthesis (steps 57, 58). If a left parenthesis is found (step 5
9) The left parenthesis and the right parenthesis are stored as a pair (step 60), the height of the sub-expression between the parentheses is checked, and the size of the parenthesis is changed (step 61).

【0026】左括弧の検索途中で右括弧が見つかった場
合には(ステップ62)、ペアの相手があるならば(ス
テップ63)、ペアの相手のデータに移り(ステップ6
4)、ステップ57に戻って更に前方の検索を続ける。
もし、ステップ63において、ペアの相手がなければ、
その前方に左括弧がないことになるので、左括弧の検索
を終了する。左括弧の検索が終了すると、元の右括弧の
データに戻り(ステップ65)、更に後方に右括弧を探
してゆく。この作業を繰り返すことにより、全ての括弧
間の対応を更新することができる。
If the right parenthesis is found during the search for the left parenthesis (step 62), and if there is a partner of the pair (step 63), the data of the partner of the pair is moved to (step 6).
4) Return to step 57 to continue searching further forward.
If there is no partner in the pair in step 63,
Since there is no left parenthesis in front of it, the search for the left parenthesis ends. When the search for the left parenthesis is completed, the original right parenthesis data is restored (step 65), and the right parenthesis is searched further backward. By repeating this operation, the correspondence between all brackets can be updated.

【0027】例として、図7の(a)の初期状態の式を
考える。この式の場合、データリスト(D)は D2:{B} D3:{C,+,D} のように3個あり、D2とD3はD1のサブデータリス
トとなっている。D1の各要素には、それぞれe1〜e6の
番号がついている。ここで、右括弧(e7)が入力される
と、D1は となり、左括弧を前方に、‘F’→‘+’→‘分数’→
‘(’の順に探してゆく。左括弧(e3)が見つかり、ま
だ右括弧とペアになっていないので、2つの括弧(e7)
と括弧(e3)をペアとする。次に、ペアとなった括弧
(e3)と括弧(e7)の間の要素の高さを調べる。ここで
は、分数(e4)が最も高いので、分数(e4)の高さに合
わせて、図7の(b)のように表示する。
As an example, consider the equation in the initial state of FIG. In this case, the data list (D) is There are three such as D2: {B} D3: {C, +, D}, and D2 and D3 are sub data lists of D1. The elements of D1 are numbered e1 to e6, respectively. Here, when the right parenthesis (e7) is input, D1 becomes Then, with the left parenthesis forward, 'F' → '+' → 'fraction' →
Search for '(' in order. Left parenthesis (e3) found, not paired with right parenthesis yet, so two parentheses (e7)
And a pair of parentheses (e3). Next, check the height of the element between the pair of brackets (e3) and bracket (e7). Since the fraction (e4) is the highest here, it is displayed as shown in (b) of FIG. 7 according to the height of the fraction (e4).

【0028】さらに、図7の(c)のようにカーソルを
‘+’上に移動し、右括弧を挿入した場合を考える。右
括弧(e8)が挿入されると、データリストD1′は のようになり、左括弧を前方に‘分数’→‘(’の順に
探してゆく。左括弧(e3)が見つかったが、すでに他の
右括弧(e7)とペアになっているので、データリスト全
体の括弧の対応を更新することになる。
Further, consider the case where the cursor is moved to the "+" position and the right parenthesis is inserted as shown in FIG. 7 (c). When the right parenthesis (e8) is inserted, the data list D1 'becomes The left parenthesis is searched for in the order of'fraction '→'('. The left parenthesis (e3) is found, but it is already paired with another right parenthesis (e7), so the data We will update the parentheses correspondence in the entire list.

【0029】更新の手順は以下のようになる。まず、デ
ータリストD1″内の全ての括弧のペアを無効にする。
次に、データリストの先頭から‘A’→‘−’→‘(’
→‘分数’→‘)’の順に右括弧を探してゆく。右括弧
(e8)が見つかったら、左括弧を前方に‘分数’
→‘(’の順に探してゆく。左括弧(e3)が見つかった
ので、2つの括弧をペアとする。
The updating procedure is as follows. First, all parenthesis pairs in the data list D1 ″ are invalidated.
Next, from the top of the data list, 'A' → '−' → '('
→ Search for the right parenthesis in the order of'fraction '→') '. If a right parenthesis (e8) is found, move the left parenthesis to the'fraction '
→ Search in order of '('. Left parenthesis (e3) is found, so pair two parentheses.

【0030】そして、ペアとなった左括弧(e3)と右括
弧(e8)との間の要素の高さを調べ、ここでは分数(e
4)しかないので、括弧の大きさを分数(e4)の高さに
合わせる。その後、元の右括弧(e8)の位置に戻り、さ
らに次の右括弧を‘+’→‘F’→‘)’の順で探す。
右括弧(e7)が見つかったので、前方に左括弧を‘F’
→‘+’→‘)’の順に探す。この右括弧(e8)はすで
に左括弧(e3)とペアになっているので、左括弧(e3)
に移り、さらに、‘−’→‘A’の順に左括弧を探して
ゆく。ペアとなる左括弧が見つからないので、右括弧
(e7)の大きさは1のままとなる。
Then, the height of the element between the pair of left parenthesis (e3) and right parenthesis (e8) is examined, and here, the fraction (e
4) There is only one, so adjust the size of the brackets to the height of the fraction (e4). After that, the original right parenthesis (e8) is returned to, and the next right parenthesis is searched for in the order of “+” → “F” → “)”.
Right parenthesis (e7) was found, so left parenthesis is'F '
→ Search in order of '+' → ')'. This right parenthesis (e8) is already paired with the left parenthesis (e3), so the left parenthesis (e3)
Go to and search for the left parenthesis in the order of'- '→' A '. The size of the right parenthesis (e7) remains 1, since no left parenthesis to pair is found.

【0031】その後、また、右括弧(e7)の位置に戻
り、後方に次の右括弧を探すが、後方には要素がないの
で、更新を終了する。結果として、図7の(d)のよう
に表示される。
Thereafter, the position of the right parenthesis (e7) is returned again, and the next right parenthesis is searched backward, but since there is no element behind, the update is completed. As a result, it is displayed as shown in FIG.

【0032】[0032]

【発明の効果】この発明によれば、左括弧又は右括弧が
入力されたときには、その左又は右括弧とペアになるべ
き右又は左括弧を検索し、ペアとなった左右の括弧の間
に挟まれた数式の高さに応じて、ペアとなった左右の括
弧の大きさを変更するようにしたので、右括弧と左括弧
とを単独で入力及び削除することが可能となり、数式を
2次元的に表示したままでの括弧の削除・挿入等が簡単
となる。また、括弧入力後の余分なカーソル移動の作業
が不要となる。
According to the present invention, when a left parenthesis or a right parenthesis is input, the right or left parenthesis that should be paired with the left parenthesis or the right parenthesis is searched for, and the pair of left and right parentheses is searched for. The size of the pair of left and right parentheses is changed according to the height of the sandwiched equation, so that it is possible to enter and delete the right parenthesis and the left parenthesis independently. It becomes easy to delete and insert parentheses while they are displayed three-dimensionally. Moreover, the extra work of moving the cursor after inputting the parentheses is unnecessary.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of the present invention.

【図2】この発明による情報処理装置の一実施例の構成
を示すブロック図。
FIG. 2 is a block diagram showing the configuration of an embodiment of an information processing apparatus according to the present invention.

【図3】数式と括弧を入力した場合の表示例を示す説明
図。
FIG. 3 is an explanatory diagram showing a display example when a mathematical expression and parentheses are input.

【図4】左括弧が入力されたときの処理アルゴリズム。FIG. 4 is a processing algorithm when a left parenthesis is input.

【図5】右括弧が入力されたときの処理アルゴリズム。FIG. 5 is a processing algorithm when a right parenthesis is input.

【図6】リスト内の全ての括弧間の対応を更新するアル
ゴリズム。
FIG. 6 is an algorithm for updating the correspondence between all parentheses in the list.

【図7】本発明における実際の括弧の処理例を示す説明
図。
FIG. 7 is an explanatory diagram showing an example of actual processing of parentheses according to the present invention.

【図8】従来の括弧処理の表示例を示す説明図。FIG. 8 is an explanatory diagram showing a display example of conventional bracket processing.

【図9】従来の括弧処理の表示例を示す説明図。FIG. 9 is an explanatory diagram showing a display example of conventional bracket processing.

【図10】一方の括弧を単独で削除して別の位置に挿入
した場合の説明図。
FIG. 10 is an explanatory diagram of a case where one of the parentheses is independently deleted and inserted at another position.

【図11】従来の2次元的な表示式を1次元的な表示式
に変換した場合の説明図。
FIG. 11 is an explanatory diagram when a conventional two-dimensional display formula is converted into a one-dimensional display formula.

【符号の説明】[Explanation of symbols]

1 CPU 2 キーボード 3 プログラムROM 4 データ格納用RAM 5 液晶ディスプレイ装置 6 液晶ドライバ 1 CPU 2 keyboard 3 program ROM 4 data storage RAM 5 liquid crystal display device 6 liquid crystal driver

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 左右の括弧、及び高さの異なる各種の数
式を入力する入力手段と、 入力された左右の括弧、及び高さの異なる各種の数式を
記憶する記憶手段と、 記憶手段に記憶された数式内に、入力手段によって左又
は右括弧が入力されたとき、その左又は右括弧とペアに
なるべき右又は左括弧を数式内から検索する検索手段
と、 検索手段によって、左又は右括弧とペアになるべき右又
は左括弧が検索されたとき、ペアとなった左右の括弧の
間に挟まれた数式の高さを調べ、その高さに応じてペア
となった左右の括弧の大きさを変更する変更手段と、を
備えてなる情報処理装置。
1. Right and left parentheses, input means for inputting various mathematical expressions having different heights, storage means for storing the input left and right parentheses, and various mathematical expressions having different heights, and storage in the storage means When a left or right parenthesis is input by the input means in the formula, the search means for searching the right or left parenthesis that should be paired with the left or right parenthesis from the expression and the left or right parentheses by the search means. When the right or left parenthesis that should be paired with the parenthesis is searched, check the height of the formula sandwiched between the paired left and right parentheses, and check the height of the paired left and right parentheses according to the height. An information processing apparatus comprising: a changing unit that changes a size.
JP3346435A 1991-12-27 1991-12-27 Information processor Pending JPH05181804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3346435A JPH05181804A (en) 1991-12-27 1991-12-27 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3346435A JPH05181804A (en) 1991-12-27 1991-12-27 Information processor

Publications (1)

Publication Number Publication Date
JPH05181804A true JPH05181804A (en) 1993-07-23

Family

ID=18383406

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3346435A Pending JPH05181804A (en) 1991-12-27 1991-12-27 Information processor

Country Status (1)

Country Link
JP (1) JPH05181804A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268960A (en) * 2021-05-26 2021-08-17 北京北大方正电子有限公司 Formula processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268960A (en) * 2021-05-26 2021-08-17 北京北大方正电子有限公司 Formula processing method and device
CN113268960B (en) * 2021-05-26 2024-04-19 北京北大方正电子有限公司 Formula processing method and device

Similar Documents

Publication Publication Date Title
JP2624969B2 (en) Image retrieval device
JP3085254B2 (en) Information property recommendation device
TWI569157B (en) Information processing device, information processing method, memory media
JPH06314296A (en) Information retrieving system
JPH05181804A (en) Information processor
JPH064584A (en) Text retriever
JP2000112968A (en) Information retrieval supporting device and information retrieval supporting program storage medium
JPH11213004A (en) Data processor, its method and storage medium storing data processing program
JP2993530B2 (en) Sentence generator
JPH11219369A (en) Information presentation device
JP3528541B2 (en) Search logic input device
JP2000293531A (en) Method and device for retrieving information
JPH05266085A (en) Method and device for similar retrieval using dynamic concept dictionary
JPH09204449A (en) Parts list generation processor
JP2939841B2 (en) Database search device
JPH07105223A (en) Data base retrieval device
JP2000148738A (en) Device and method for mathematical expression input and display, and recording medium where mathematical input and display program is recorded
JPH11224254A (en) System and method for case retrieval
JPH09305611A (en) Retrieving device for database
JPH09330369A (en) Retrieval system for data base with document form
JP4298333B2 (en) Satisfiable solution enumeration system
JPH11212987A (en) Information retrieval device and storage medium recorded with information retrieval program
JP2613226B2 (en) How to edit formula input
JPH0895998A (en) Image retrieving device
JPH10293763A (en) Information retrieving method in vr system