JPH0727519B2 - Formula editing method - Google Patents

Formula editing method

Info

Publication number
JPH0727519B2
JPH0727519B2 JP62253717A JP25371787A JPH0727519B2 JP H0727519 B2 JPH0727519 B2 JP H0727519B2 JP 62253717 A JP62253717 A JP 62253717A JP 25371787 A JP25371787 A JP 25371787A JP H0727519 B2 JPH0727519 B2 JP H0727519B2
Authority
JP
Japan
Prior art keywords
character string
mathematical
input
corrected
argument
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.)
Expired - Lifetime
Application number
JP62253717A
Other languages
Japanese (ja)
Other versions
JPH0196753A (en
Inventor
賢治 龍野
裕惟 石川
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62253717A priority Critical patent/JPH0727519B2/en
Publication of JPH0196753A publication Critical patent/JPH0196753A/en
Publication of JPH0727519B2 publication Critical patent/JPH0727519B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は文書作成装置に係り、特に数式等の作成編集に
好適な数式編集装置に関する。
The present invention relates to a document creation device, and more particularly to a mathematical expression editing device suitable for creating and editing mathematical expressions and the like.

〔従来の技術〕[Conventional technology]

すでに実現されている数式編集機能では、階層関係にあ
る数式の一部を訂正する場合、不要な文字列単位または
関係単位に削除する操作を行ない、訂正する文字列また
は関数を挿入する操作をしていた。あるいは、逆の操作
手順を行なつていた。しかし、数式上で任意に訂正範囲
を指定し、訂正機能により任意の文字列に訂正すること
は不可能であつた。
With the formula editing function that has already been implemented, when you want to correct a part of a formula that has a hierarchical relationship, you can delete it in unnecessary character string units or relationship units and insert the character string or function you want to correct. Was there. Alternatively, the reverse operation procedure was performed. However, it is impossible to arbitrarily specify the correction range on the mathematical formula and correct the character string by the correction function.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記従来技術は、文字列または関数単位に削除する機能
と、文字列または関数を挿入する機能を組み合わせて操
作し、数式の訂正を行なつていた。また、削除機能に関
しては、複数の関係を同時に指定することは不可能であ
つた。
In the above-mentioned conventional technique, the function of deleting character string or function unit and the function of inserting character string or function are combined and operated to correct the mathematical expression. Also, regarding the delete function, it was impossible to specify multiple relationships at the same time.

本発明の目的は、階層関係を意識した範囲指定可能な訂
正機能を設けることにより、数式のような階層関係を持
つ文字列の編集を簡単にすることである。
An object of the present invention is to simplify editing of a character string having a hierarchical relationship such as a mathematical expression by providing a correction function capable of designating a range in consideration of the hierarchical relationship.

[問題点を解決するための手段] 前記目的は、特に、入力された数式のうち訂正すべき文
字列の開始点と終了点を指示する手段と、指示された終
了点が数学記号の後方に付与される第3の因数(205〜2
11)の終了点(因数211)よりも前の位置であったとき
は、訂正すべき文字列の終点を前記記憶手段に記憶され
ている階層関係に従って第3の最終の因数(因数211)
まで訂正すべき文字列を拡大変更する手段とを設けるこ
とによって達成される。
[Means for Solving Problems] In particular, the purpose is to indicate a start point and an end point of a character string to be corrected in an input mathematical formula, and an end point to be placed behind a mathematical symbol. Third factor to be given (205-2
When the position is before the end point (factor 211) of 11), the end point of the character string to be corrected is the third final factor (factor 211) according to the hierarchical relationship stored in the storage means.
And means for enlarging and changing the character string to be corrected up to.

〔作用〕[Action]

数式の任意の範囲を訂正する手段は、数式を文字列群と
認識し、数式上の指定範囲を文字列群の位置に変換し
て、文字列群の該当位置を削除後、削除した位置に、入
力装置より入力した訂正文字列を挿入する。数式の階層
関係を認識する手段は、入力時に判定された文字列間の
関係より、始点と終点の階層ネストを比較し、異なる場
合は、ネストの深い指定点を、同ネストになるように修
正する。修正の方法は、該当文字と従属関係にある同ネ
ストの文字列または関数を検索し、該当する指定点を、
検索した文字列または関数が該当する文字位置に修正す
る。
The means to correct an arbitrary range of a mathematical expression is to recognize the mathematical expression as a character string group, convert the specified range on the mathematical expression to the position of the character string group, delete the corresponding position of the character string group, and then move it to the deleted position. , Insert the correction character string input from the input device. The method of recognizing the hierarchical relationship of mathematical expressions compares the hierarchical nests of the start point and the end point based on the relationship between the character strings judged at the time of input, and if they are different, corrects the deeply specified point of the nest to be the same nest. To do. The correction method is to search for the character string or function of the same nest that has a dependency relationship with the corresponding character, and to find the corresponding specified point,
Correct the retrieved character string or function to the appropriate character position.

この場合の文字列の従属関係とは、例えば数式 において、Σとi=0,Xiなどの関係をいう。In this case, the character string dependency is, for example, a mathematical formula , Σ and i = 0, Xi, etc.

〔実施例〕〔Example〕

以下、図面を参照して本発明をワードプロセツサに適用
した場合の実施例を詳細に説明する。
Hereinafter, embodiments in which the present invention is applied to a word processor will be described in detail with reference to the drawings.

第4図は、本発明の機器構成図である。第4図におい
て、処理装置401はたとえばマイクロプロセツサであ
り、プログラムメモリ404に格納されたプログラムを読
出して実行するとともに、バスライン414を介して各プ
ログラムの制御およびデータ転送を行なう。
FIG. 4 is a device configuration diagram of the present invention. In FIG. 4, a processing device 401 is, for example, a microprocessor, which reads out and executes a program stored in the program memory 404, and controls each program and transfers data via a bus line 414.

データ入力装置の一部であるキー入力装置403から数式
を構成する文字が入力されるとその文字に対応する文字
コードがキーコードメモリ402に格納される。処理装置4
01は入力された文字パターンをパターン発生装置407に
より発生させ、表示装置411に表示する。入力された文
字がΣ,∫のように数学特有の記号(以下単に数学記号
と呼ぶ)の場合は、数学記号メモリ406より、該当する
数学記号に付属する文字列(以下引数と呼ぶ)の個数や
引数情報メモリ405内のアドレスを読出す。引数情報メ
モリ405は、各数学記号の引数1つ1つについて、引数
の相対座標を記憶しておく。処理装置401は引数情報メ
モリ405内の情報をもとに、次の引数の表示位置を計算
して表示制御回路409に送る。表示制御回路409は送られ
た座標にカーソルを表示する。またキー入力装置403か
ら入力された文字が数学記号であつた場合、処理装置40
1は、ネスト管理メモリ410に階層が1つ下がつたという
情報を与える。ネスト管理メモリ410は階層の深さを管
理するものであり、数学記号が入力されると階層が1つ
下がり、該当する数学記号がすべて入力されると階層を
1つ上げる。構成要素メモリ408は数式を構成する文字
をいくつかのグループ(以下エレメントと呼ぶ)に分
け、各エレメント間の関係や実データのアドレス等を格
納する。処理装置401は、キー入力装置403を通じて、数
式中のエレメントの修正指示がなされると、構成要素メ
モリ408の情報を解析して、従属関係にあるエレメント
を検索し、その中の対応するエレメントを修正する。数
式がすべて入力されると、処理装置401は数式データ格
納メモリ412に記憶する。
When a character forming a mathematical expression is input from the key input device 403 which is a part of the data input device, a character code corresponding to the character is stored in the key code memory 402. Processor 4
01 generates the input character pattern by the pattern generation device 407 and displays it on the display device 411. When the input characters are symbols unique to mathematics such as Σ and ∫ (hereinafter simply referred to as mathematical symbols), the number of character strings (hereinafter referred to as arguments) attached to the corresponding mathematical symbol from the mathematical symbol memory 406. Or to read the address in the argument information memory 405. The argument information memory 405 stores the relative coordinates of each argument of each mathematical symbol. The processing device 401 calculates the display position of the next argument based on the information in the argument information memory 405 and sends it to the display control circuit 409. The display control circuit 409 displays the cursor at the sent coordinates. If the character input from the key input device 403 is a mathematical symbol, the processing device 40
The value 1 gives the nest management memory 410 information that the hierarchy has gone down by one. The nest management memory 410 manages the depth of the hierarchy. When a mathematical symbol is input, the hierarchy is lowered by one, and when all the relevant mathematical symbols are input, the hierarchy is increased by one. The component memory 408 divides the characters forming the mathematical expression into several groups (hereinafter referred to as elements), and stores the relationship between each element and the address of actual data. When the correction instruction of the element in the mathematical expression is given through the key input device 403, the processing device 401 analyzes the information in the component memory 408, searches for a subordinate element, and finds the corresponding element in it. Fix it. When all the mathematical expressions have been input, the processing device 401 stores them in the mathematical expression data storage memory 412.

第2図,第3図は、数式におけるエレメントの分割方法
と、エレメント間の関係を示したものである。エレメン
トとは、Σ・∫などの数学記号や、それに付属する文字
列であり、具体的には、数学記号,数学記号の引数,数
学記号の前につく係数,数学記号の後につく項の4種類
に分けられる。第2図において、数学記号Σの引数と
は、エレメント203やエレメント204のことを指し、係数
とは、エレメント201を指す。また数学記号Σの項と
は、エレメント212のことを指す。引数エレメントと項
エレメントは、エレメントの終端に、エレメントが終了
することを示すエレメント終了記号(以下区切り記号と
呼ぶ)を付加する。
2 and 3 show the method of dividing elements in the mathematical formula and the relationship between the elements. An element is a mathematical symbol such as Σ ・ ∫ or a character string attached to it, and specifically, a mathematical symbol, an argument of the mathematical symbol, a coefficient that precedes the mathematical symbol, and a term that follows the mathematical symbol. It is divided into types. In FIG. 2, the argument of the mathematical symbol Σ refers to the element 203 or the element 204, and the coefficient refers to the element 201. The term of the mathematical symbol Σ means the element 212. The argument element and the term element add an element end symbol (hereinafter referred to as a delimiter) indicating that the element ends at the end of the element.

各エレメント間の関係は親子,兄弟,同格の3種類を設
ける。親子の関係とは、エレメント302とエレメント303
のように、数学記号と第一引数の関係をいう。兄弟の関
係とは、エレメント303とエレメント304のように、同じ
数学記号の引数同志の関係をいう。同格の関係とは、エ
レメント301とエレメント302のように、数学記号とその
係数、または項のような関係をいう。
There are three types of relationships between elements: parent and child, siblings, and peers. The parent-child relationship is the element 302 and the element 303.
, The relation between the mathematical symbol and the first argument. The sibling relationship is a relationship between arguments having the same mathematical symbol, such as element 303 and element 304. The equivalence relation means a relation such as a mathematical symbol and its coefficient, or a term like the elements 301 and 302.

第5図,第7図は各エレメント間の関係の判定の方法の
アルゴリズムと、実際に各エレメントの関係の格納方法
を表わした図である。数式を構成する文字列が入力さ
れ、エレメントに分割された場合に、第5図のアルゴリ
ズムに従ってエレメント間の関係を判定する。入力され
たエレメントの種類をステツプ501において判定し、そ
れが数式記号であつた場合には、次に入力するエレメン
トは、現在入力されたエレメントの第1引数であるよう
にシステムが誘導する。そこでステツプ502において、
現在入力されたエレメントと、次に入力されるエレメン
トとの間に親子の関係を示すポイントをつなぐ。また、
数学記号のネストを管理するネスト管理メモリ中のスタ
ツクを1段積み上げる。ネスト管理メモリは第6図に示
すようにスタツク部とスタツクポイン603からなり、ス
タツク部はさらにエレメント領域601と引数個数領域602
に分けられる。エレメント領域601は入力された数学記
号のエレメント番号を格納する領域であり、引数個数領
域602は、対応するエレメント領域601に格納されたエレ
メントの未入力の引数の個数を格納する。スタツクポイ
ンタは、次に数学記号が入力された場合にエレメント番
号や、未入力引数を格納するメモリのアドレスを格納す
る。新たに数学記号が入力された場合には、スタツクポ
インタも増加する(ステツプ504)。
FIGS. 5 and 7 are diagrams showing an algorithm of a method for determining the relationship between the elements and a method of actually storing the relationship between the elements. When a character string forming a mathematical expression is input and divided into elements, the relationship between the elements is determined according to the algorithm of FIG. The type of the input element is determined in step 501, and if it is a mathematical symbol, the system guides the next input element to be the first argument of the currently input element. So in step 502,
A point indicating a parent-child relationship is connected between the currently input element and the next input element. Also,
Stack the stack in the nest management memory that manages the nest of mathematical symbols. As shown in FIG. 6, the nest management memory comprises a stack portion and a stack point 603, and the stack portion further includes an element area 601 and an argument number area 602.
It is divided into The element area 601 is an area for storing the element number of the input mathematical symbol, and the argument number area 602 stores the number of uninput arguments of the elements stored in the corresponding element area 601. The stack pointer stores the element number and the address of the memory that stores the uninput argument when the next mathematical symbol is input. When a new mathematical symbol is input, the stack pointer also increases (step 504).

入力されたエレメントが、ある数学記号の係数のように
区切り記号の付いていない文字列の場合は、次に入力さ
れるエレメントと同格の関係を持つ。そこで、同格の関
係を示すポインタで次のエレメントを指す(ステツプ50
5)。
When the input element is a character string without a delimiter such as a coefficient of a mathematical symbol, it has the same relation as the next input element. Therefore, the next element is pointed to by the pointer indicating the equivalence relation (step 50).
Five).

入力されたエレメントが数学記号の引数や、後に連なる
項のように、区切り記号の付いている文字列の場合に
は、第5図に示すように、さらに3通りの手順に分けら
れる。ネスト管理メモリ410のスタツクポインタが0段
目を指していた場合(ステツプ506)は、入力された区
切り記号をもつて、全数式の入力が完了したとみなして
数式入力を終了する(ステツプ513)。そうでない場合
は、ネスト管理メモリ410の引数個数領域602に格納され
た未入力引数の個数を判定する(ステツプ507)。未入
力引数の数が2以上の場合には、システムは次の引数を
入力するように誘導する。そこで次に入力されるエレメ
ントとの間に兄弟の関係を作り(ステツプ508)、ネス
ト管理メモリ410の引数個数領域602を減少させる(ステ
ツプ509)。未入力引数が1の場合は、入力されたエレ
メントは、最新に入力された数学記号の最終の引数にな
る。そこでシステムは、次には最新に入力された数学記
号の後に連なる項を入力するように誘導する。そこで最
新に入力された数学記号のエレメントと次のエレメント
の間に同格の関係を作る(ステツプ510)。この時、最
新に入力された数学記号エレメントのエレメント番号
は、ネスト管理メモリ410のスタツク最上段のエレメン
ト領域601に格納されている。次にこのスタツクの最上
段を示すスタツクポインタ603を1段分減少させる。以
上のアルゴリズムから得られたデータは、第7図に示す
とうりにエレメント毎に格納される。各データは、エレ
メント番号を格納するエレメント番号領域701、子供の
エレメントを指す親子ポインタ領域702、兄弟のエレメ
ントを指す兄弟ポインタ領域703、同格のエレメントを
指す同格ポインタ領域704、データ長を指すデータ長領
域705、実データを指すデータポインタ領域706から成
る。
When the input element is a character string with a delimiter such as a mathematical symbol argument or a term that follows, it is further divided into three procedures as shown in FIG. If the stack pointer of the nest management memory 410 is pointing to the 0th row (step 506), the input of all formulas is considered to be completed with the input delimiter (step 513). ). If not, the number of uninput arguments stored in the argument count area 602 of the nest management memory 410 is determined (step 507). If the number of unfilled arguments is 2 or more, the system prompts you to enter the next argument. Therefore, a sibling relationship is formed with the next input element (step 508), and the argument number area 602 of the nest management memory 410 is reduced (step 509). If the unfilled argument is 1, then the entered element becomes the last argument of the most recently entered mathematical symbol. Then, the system guides the user to enter a term that follows the most recently entered mathematical symbol. Therefore, an equivalence relation is created between the most recently entered mathematical symbol element and the next element (step 510). At this time, the element number of the most recently input mathematical symbol element is stored in the element area 601 at the top of the stack in the nest management memory 410. Next, the stack pointer 603 indicating the uppermost stage of this stack is decreased by one stage. The data obtained from the above algorithm is stored for each element as shown in FIG. Each data includes an element number area 701 that stores an element number, a parent-child pointer area 702 that points to a child element, a sibling pointer area 703 that points to a sibling element, a coordinated pointer area 704 that points to an equivalent element, and a data length that points to the data length. An area 705 and a data pointer area 706 that points actual data.

次に第1図から第7図を用いて、本発明の詳細を説明す
る。訂正の範囲は、カーソルで訂正すべき文字列(文字
または関数)の開始位置と終了位置を指定する。この指
定方法は開始位置→終了位置でも終了位置→開始位置で
もよい。この指定位置はキーコードメモリ402に2点の
アドレス(X,Y座標)として格納されている。1図は本
発明のアルゴリズムを示している。ステツプ101の数式
訂正範囲指定処理は、キーコードメモリ402から範囲指
定情報である前記2点の座標を取り込む。ステツプ102
の文字列位置変換処理は、まず前記2点の座標の第1点
と構成要素メモリ408に格納されている各エレメントの
アドレスと比較していき前記第1点のアドレスを含むエ
レメントを検索し、カーソルで指定された文字を確定す
る。次に確定した文字のネストをネスト管理メモリ410
から取り出す。第2点の指定文字についても同様に確定
し、確定した文字のネストをネスト管理メモリ410から
取り出す。また、確定した前記2点のデータポインタ70
6を比較し開始位置と終了位置を確定する。すなわち数
式データは数式の階層関係に従い格納されているのでデ
ータポインタの小さい方が開始点となる。次にステツプ
102で取りだした開始点と終了点のネストの比較をする
(ステツプ103)。ネストが一致していないときはステ
ツプ107処理すなわち深いネストの階層を親子ポインタ7
02をたどり同一ネストになるように上位レベルに拡大し
指定位置を補正する。この処理は、数式は通常の文書の
文字列と異なり、階層関係を成しているため、数式の意
味を考慮した2次元的な配置を行なわなければならない
ためである。例えば、第2図の202から211まではΣの関
数を構成している。203は第1引数、204は第2引数、20
5から211までが第3引数となる。このような構成で204
から207まで指定された場合、第2引数と第3引数の間
には区切り記号が存在するが、この区切り記号まで含め
て訂正範囲となつてしまう。このまま訂正の処理を実施
しようとすると、入れ替える文字列にも区切り記号が存
在しなければならない。また、区切り記号が存在した場
合でも、訂正前の区切り記号の数より多い場合は、数式
の階層関係が崩れてしまう。また、入れ替える文字列の
入力時に、入力者に指定させる方法を取ると、数式入力
と異なる入力操作となつてしまう。以上の事を回避する
ため本実施例では、同じ数式内で任意に指定されたデー
タポイント間の階層構造を、ネスト管理メモリ410を元
に同じ階層かを親子ポインタ702、兄弟ポインタ703、同
格ポインタ704を比較し、いずれかのポインタが異なる
場合は、階層構造の深いデータポイントを浅い階層構造
の関数まで引き上げ、開始点の場合は該当関数の先頭ポ
イントに、終了点の場合は該当関数の終了ポイントに、
修正する。また、本実施例のように同じ関数の引数間に
またがる場合は、開始点を該当(本例ではΣ202が該
当)する関数の開始点(202)から終了点(211)となる
ように修正する。
Next, the details of the present invention will be described with reference to FIGS. 1 to 7. The correction range specifies the start position and the end position of the character string (character or function) to be corrected by the cursor. The designation method may be start position → end position or end position → start position. This designated position is stored in the key code memory 402 as two addresses (X, Y coordinates). FIG. 1 shows the algorithm of the present invention. In the formula correction range designation processing in step 101, the coordinates of the two points, which are range designation information, are fetched from the key code memory 402. Step 102
In the character string position conversion process, first, the first point of the coordinates of the two points is compared with the address of each element stored in the component memory 408 to search for an element including the address of the first point, Confirms the character specified by the cursor. Nest management memory 410
Take out from. Similarly, the designated character at the second point is also decided, and the nest of the decided character is taken out from the nest management memory 410. In addition, the confirmed two data pointers 70
Compare 6 to determine the start and end positions. That is, since the mathematical formula data is stored according to the hierarchical relation of the mathematical formula, the smaller data pointer is the starting point. Next step
The nest of the start point and the end point fetched in 102 is compared (step 103). If the nests do not match, step 107 processing, that is, the parent / child pointer 7
Follow 02 and expand to a higher level so that the nest is the same, and correct the specified position. This processing is because mathematical expressions have a hierarchical relationship, unlike a character string of a normal document, and therefore must be two-dimensionally arranged in consideration of the meaning of mathematical expressions. For example, 202 to 211 in FIG. 2 constitute a function of Σ. 203 is the first argument, 204 is the second argument, 20
5 to 211 is the third argument. With such a configuration 204
In the case of specifying from 1 to 207, a delimiter exists between the second argument and the third argument, but this delimiter is also included in the correction range. If the correction process is to be performed as it is, the character string to be replaced must have a delimiter. Further, even if there are delimiters, if the number of delimiters before correction is larger than the number of delimiters before correction, the hierarchical relationship of the mathematical expression is broken. In addition, if the method of letting the input person specify when inputting the character string to be replaced, the input operation is different from the mathematical expression input. In order to avoid the above, in this embodiment, the hierarchical structure between the data points arbitrarily specified in the same formula is based on the nest management memory 410 to determine whether they are in the same hierarchy as the parent-child pointer 702, sibling pointer 703, and relative pointer. 704 is compared, and if either pointer is different, the deep data point of the hierarchical structure is raised to the function of the shallow hierarchical structure, the start point is the start point of the function, and the end point is the end of the function. To the point
Fix it. In the case of straddling between arguments of the same function as in the present embodiment, the start point is corrected so that the start point (202) of the corresponding function (Σ202 corresponds in this example) becomes the end point (211). .

次に、数式データ格納メモリ412上に格納されている該
当数式を取り出し、指定(修正)された該当文字列を数
式上から削除(ステツプ104)する。この時、引数情報
メモリ405、構成要素メモリ408、ネスト管理メモリ410
も、削除後の数式内容に合わせて修正しておく。指定範
囲が削除された数式は、入力操作のガイドとするため、
表示装置411に表示しておいてもよい。
Next, the relevant mathematical formula stored in the mathematical formula data storage memory 412 is taken out, and the designated (corrected) relevant character string is deleted from the mathematical formula (step 104). At this time, the argument information memory 405, the component memory 408, the nest management memory 410
Also, correct it according to the formula contents after deletion. Since the formula with the specified range deleted is used as a guide for input operation,
It may be displayed on the display device 411.

次に、データ入力装置であるキー入力装置403から、入
れ替える文字列を入力し、キーコードメモリ402に格納
(ステツプ105)しておく。入力した文字列は、入力単
位毎に削除された数式に挿入し表示装置411に表示して
もよいし、別の表示個所(例えば文字列入力行等)に表
示してもよい。
Next, the character string to be replaced is input from the key input device 403 which is a data input device and stored in the key code memory 402 (step 105). The input character string may be inserted into the deleted mathematical expression for each input unit and displayed on the display device 411, or may be displayed at another display location (for example, a character string input line).

次に、ステツプ104で指定範囲が削除されている数式
に、文字列を指定(修正)された第1点から入力された
文字数分空ける処理を行ない、空けた部分にステツプ10
5で入力した文字列を挿入し、訂正された数式として、
数式データ格納メモリに格納(ステツプ106)する。訂
正した数式は、表示装置411に、訂正前の数式を消去し
訂正後の数式を表示する。
Next, in the mathematical expression whose designated range has been deleted in step 104, a process for leaving the number of characters input from the first point where the character string was specified (corrected) is performed, and step 10 is added to the empty part.
Insert the character string entered in 5, and as a corrected formula,
The data is stored in the formula data storage memory (step 106). The corrected mathematical formula is displayed on the display device 411 after the uncorrected mathematical formula is erased.

数式の一部を訂正する操作手順は、削除してから入れ替
え用の文字列を挿入する手順と、挿入してから不要部分
(指定範囲)を削除する方法があるが、手順上は、どち
らでもよい。
There are two procedures to correct a part of the formula: deleting and then inserting the replacement character string, and inserting and deleting the unnecessary part (specified range). Good.

[発明の効果] 以上述べたように本発明は、特に入力された数式のうち
訂正すべき文字列の開始点と終了点を指示する手段と、
指示された終了点が数学記号の後方に付与される第3の
因数(205〜211)の終了点(因数211)よりも前の位置
であったときは、訂正すべき文字列の終点を前記記憶手
段に記憶されている階層関係に従って第3の最終の因数
(因数211)まで訂正すべき文字列を拡大変更する手段
とを設けたので、作成済みの数式を、任意の範囲を指定
して訂正する場合、削除、挿入を同時に行うことができ
るばかりでなく、第3の因数の途中までしか訂正すべき
文字列が指定されていなくても、指定範囲を第3因数の
最終まで自動的にシステムで拡大処理されるため、訂正
の操作が簡単になると共に、誤った数式が作成されるこ
とが防止できる。
EFFECTS OF THE INVENTION As described above, according to the present invention, means for instructing the start point and the end point of a character string to be corrected in an input mathematical expression,
When the designated end point is a position before the end point (factor 211) of the third factor (205 to 211) given after the mathematical symbol, the end point of the character string to be corrected is set to the above. Since the means for enlarging and changing the character string to be corrected up to the third final factor (factor 211) according to the hierarchical relationship stored in the storage means is provided, the created mathematical expression can be specified by specifying an arbitrary range. When correcting, not only deletion and insertion can be performed at the same time, but even if the character string to be corrected is specified only up to the middle of the third factor, the specified range is automatically extended to the end of the third factor. Since the enlargement processing is performed by the system, the correction operation can be simplified and an incorrect formula can be prevented from being created.

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

第1図は本発明のアルゴリズムを示した図、第2図,第
3図は数式のエレメントへの分割方法と、各エレメント
の関係を示した図、第4図は本発明を適用する機器構成
を示した図、第5図は各エレメント間の判定するアルゴ
リズムを示したフローチヤート、第6図はネスト管理メ
モリの構成図、第7図は構成要素メモリの構成を説明す
るための図である。 101……訂正範囲受付ステツプ、102……文字列位置変換
ステツプ、103……ネストレベル判定ステツプ、104……
指定文字列削除ステツプ、105……入れ替え文字列入力
ステツプ、106……訂正文字列挿入、格納ステツプ、107
……指定範囲訂正、拡大ステツプ。
FIG. 1 is a diagram showing an algorithm of the present invention, FIGS. 2 and 3 are diagrams showing a method of dividing mathematical formulas into elements, and relationships between the elements, and FIG. 4 is a device configuration to which the present invention is applied. FIG. 5, FIG. 5 is a flow chart showing an algorithm for judging between elements, FIG. 6 is a block diagram of a nest management memory, and FIG. 7 is a diagram for explaining a configuration of a component memory. . 101 ... correction range acceptance step, 102 ... character string position conversion step, 103 ... nesting level judgment step, 104 ...
Specified character string deletion step, 105 …… Replacement character string input step, 106 …… Corrected character string insertion step, storage step, 107
...... Correction of specified range, expansion step.

フロントページの続き (56)参考文献 特開 昭61−64451(JP,A) JStarリファレンスガイド(1985− 1)P.15−1〜15〜17Continuation of front page (56) References JP-A-61-64451 (JP, A) JStar Reference Guide (1985-1) P. 15-1 to 15-17

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文書情報を表示装置上に表示し、入力装置
からの指示により文字列と文字列の間に階層関係を持つ
文字列群からなる数式を入力する手段と、上記文字列群
を表示する手段と、上記階層関係を解折する手段と、上
記階層関係を記憶する記憶手段と、上記手段により作成
された上記文字列群を構成する少なくとも1つ文字列を
修正する手段を有する数式編集方式において、 前記で入力された数式のうち、訂正すべき文字列の開始
点と終了点を指示する手段と、指示された終了点が数学
記号の後方に付与される第3の因数(205〜211)の終了
点(因数211)よりも前の位置であったときは、訂正す
べき文字列の終点を前記記憶手段に記憶されている階層
関係に従って第3の最終の因数(因数211)まで訂正す
べき文字列を拡大変更する手段とを具備する数式編集方
式。
1. A means for displaying document information on a display device and inputting a mathematical expression comprising a character string group having a hierarchical relationship between character strings according to an instruction from an input device, and the character string group. A mathematical expression having means for displaying, means for breaking the hierarchical relationship, storage means for storing the hierarchical relationship, and means for modifying at least one character string constituting the character string group created by the means. In the editing method, means for designating a start point and an end point of a character string to be corrected among the mathematical expressions input above, and a third factor (205) at which the designated end point is given after the mathematical symbol. ˜211) before the end point (factor 211), the end point of the character string to be corrected is determined by the third final factor (factor 211) according to the hierarchical relationship stored in the storage means. And a means to enlarge and change the character string to be corrected up to Formula editing method that includes
JP62253717A 1987-10-09 1987-10-09 Formula editing method Expired - Lifetime JPH0727519B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62253717A JPH0727519B2 (en) 1987-10-09 1987-10-09 Formula editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62253717A JPH0727519B2 (en) 1987-10-09 1987-10-09 Formula editing method

Publications (2)

Publication Number Publication Date
JPH0196753A JPH0196753A (en) 1989-04-14
JPH0727519B2 true JPH0727519B2 (en) 1995-03-29

Family

ID=17255167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62253717A Expired - Lifetime JPH0727519B2 (en) 1987-10-09 1987-10-09 Formula editing method

Country Status (1)

Country Link
JP (1) JPH0727519B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5067102A (en) * 1990-01-31 1991-11-19 Hewlett-Packard Company Method and apparatus for displaying and editing mathematical expressions in textbook format
JP2906547B2 (en) * 1990-03-15 1999-06-21 三菱瓦斯化学株式会社 Method for producing α, β-unsaturated carboxylic acid ester
WO2001090929A1 (en) * 2000-05-24 2001-11-29 Koh Jong Hak Method and system for editing a mathematical equation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0692153B2 (en) * 1984-09-07 1994-11-16 株式会社日立製作所 Method for clearing mathematical formulas in document processing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JStarリファレンスガイド(1985−1)P.15−1〜15〜17

Also Published As

Publication number Publication date
JPH0196753A (en) 1989-04-14

Similar Documents

Publication Publication Date Title
US6437799B1 (en) Method and apparatus for logical zooming of a directed graph
US8935602B2 (en) Hierarchical drag and drop structure editor for web sites
US20220092094A1 (en) Identifying and graphically representing multiple parent nodes of a child node
JPH0594433A (en) Document processor
US20230409613A1 (en) Identifying Missing Nodes Within a Graphically Represented Family
US11829393B2 (en) Graphically representing related record families using a phantom parent node
JP2635025B2 (en) Tree display editing method
JPS6037945B2 (en) How to display hierarchical tree-structured text in an ordered structure
JP3083314B2 (en) Document processing method and apparatus
JPH0727519B2 (en) Formula editing method
KR940009116B1 (en) Text processing apparatus
CN110532257B (en) Method and system for visually presenting family tree data
US20060188162A1 (en) Common interface for ink trees
JPH0721802B2 (en) Formula editing device
JP2008084348A (en) Comic creation supporting apparatus and program
US5727224A (en) Document image processor for inserting and editing bracket symbols and associated text
JP2819899B2 (en) Drawing management device
JP2861453B2 (en) Hypertext model creation device
JP4189461B2 (en) File management program, computer-readable recording medium storing file management program, file management apparatus, and file management method
JPH0584939B2 (en)
JPH08185452A (en) Document preparation device
JPH0731671B2 (en) Formula input editing method
JPH0816834B2 (en) Curve generation method
JP2669839B2 (en) Formula input editing device
JP3166995B2 (en) Comment giving method and document processing device