JPH01194068A - Mathematical expression input and edition system - Google Patents

Mathematical expression input and edition system

Info

Publication number
JPH01194068A
JPH01194068A JP63018742A JP1874288A JPH01194068A JP H01194068 A JPH01194068 A JP H01194068A JP 63018742 A JP63018742 A JP 63018742A JP 1874288 A JP1874288 A JP 1874288A JP H01194068 A JPH01194068 A JP H01194068A
Authority
JP
Japan
Prior art keywords
input
division unit
character string
formula
information
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.)
Granted
Application number
JP63018742A
Other languages
Japanese (ja)
Other versions
JP2669839B2 (en
Inventor
Sayuri Ooshima
大島 早由里
Hirotada Ishikawa
石川 裕惟
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 JP63018742A priority Critical patent/JP2669839B2/en
Publication of JPH01194068A publication Critical patent/JPH01194068A/en
Application granted granted Critical
Publication of JP2669839B2 publication Critical patent/JP2669839B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To make it possible to input a mathematic expression which can not be expressed by hierarchical relation such as a written expression by inducing an operator to input a character string constituting a mathematic expression in accordance with the contents of a divided unit table and automatically determining the display position of an input character string to display the input character string. CONSTITUTION:A mathematical expression is grasped as divided units and items in each divided unit and a divided unit table for storing the number of divided units of the mathematical expression and the constitution information of each divided unit in each sort of mathematical expression is previously formed. At the time of inputting and editing a mathematical expression, a control means 204 induces the operator to input a necessary character string while referring to the divided unit table, a automatically determines the display position of the input character string and displays the input character string on a display means 203. Consequently, a written expression can be inputted.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、文書作成装置に係り、特に筆算式等の作成に
好適な数式入力編集方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document creation device, and particularly to a mathematical formula input/edit method suitable for creating written calculation formulas and the like.

[従来の技術1 従来のワードプロセッサ等において既に実現されている
数式入力機能では、 Y= f f (x) dx のように階層関係のある文字列の入力を受付け、上記階
層関係により各文字列の表示位置を計算し、表示するこ
とは可能であった。
[Prior art 1] The mathematical input function already implemented in conventional word processors accepts the input of character strings with a hierarchical relationship such as Y= f f (x) dx, and calculates the value of each character string based on the hierarchical relationship. It was possible to calculate and display the display position.

ところで、例えば、筆算式においては、通常の文書と異
なり、左から右に書くのではなく、上から下に入力する
。また、通常の数式のように階層関係も持たない。さら
に、掛は算、割り算などは入力する文字の桁を合せるた
めに、意識的に上下の文字列をずらして入力しなければ
ならない場合かある。
By the way, for example, in a written calculation method, unlike a normal document, input is not done from left to right, but from top to bottom. It also does not have hierarchical relationships like normal mathematical expressions. Furthermore, for multiplication, division, etc., you may have to intentionally shift the upper and lower strings of characters in order to match the digits of the characters you input.

[発明か解決しようとする課題1 このように、上記従来技術では、筆算式のような、階層
関係では表現できない数式の作成や入力文字列の桁合せ
、入力された数式の計算については考慮されておらず、
効率のよい数式入力か行なえなかった。
[Problem to be solved by the invention 1] As described above, the above-mentioned conventional technology does not take into consideration the creation of mathematical formulas that cannot be expressed in hierarchical relationships, such as handwritten calculation formulas, the digit alignment of input character strings, and the calculation of input mathematical formulas. Not yet,
I was unable to input formulas efficiently.

したがって、本発明の目的は、筆算式のような階層関係
では表現できない数式の入力を可能にすること、また、
数式の意味を考慮した桁合せや作成された数式が計算可
能である場合に数式もしくは数式の一部の計算を可能に
することである。
Therefore, an object of the present invention is to enable the input of mathematical formulas that cannot be expressed in hierarchical relationships such as written calculation formulas, and to
It is possible to calculate a mathematical formula or a part of a mathematical formula when the meaning of the mathematical formula is taken into consideration and the created mathematical formula can be calculated.

[課題を解決するための手段] 上記目的を達成するために、本発明による数式入力編集
方式は、文字列を入力する入力手段と、上記文字列の文
字コードを記憶する記憶手段と、上記文字列を表示する
表示手段と、上記各手段を制御する制御手段とを備える
文書作成装置において、上記制御手段内に、作成すべき
数式の種別毎に当該数式の分割単位数および各分割単位
の構成情報を格納した分割単位テーブルを設け、上記制
御手段は、上記分割単位テーブルの内容に従い、操作者
に対して上記数式を構成する文字列の入力を誘導し、該
入力文字列の表示位置を自動的に定めて表示するように
したものである。
[Means for Solving the Problems] In order to achieve the above object, the mathematical input/editing method according to the present invention includes an input means for inputting a character string, a storage means for storing the character code of the character string, and a method for inputting the character string. In a document creation device comprising a display means for displaying a column and a control means for controlling each of the above-mentioned means, the number of division units of the formula and the configuration of each division unit are stored in the control means for each type of formula to be created. A division unit table storing information is provided, and the control means guides the operator to input a character string constituting the formula according to the contents of the division unit table, and automatically changes the display position of the input character string. It is designed to be displayed according to the specific criteria.

本発明の一態様として、上記分割単位テーブルに格納さ
れた分割単位の構成情報は当該分割単位の末尾を示す記
号の有無を表わす末尾記号情報を含み、上記制御手段は
、該末尾記号情報に従って自動的に当該末尾記号を表示
させる。
As an aspect of the present invention, the configuration information of the division unit stored in the division unit table includes suffix symbol information indicating the presence or absence of a symbol indicating the end of the division unit, and the control means automatically controls the division unit according to the suffix symbol information. display the corresponding ending symbol.

本発明の他の態様として、上記制御手段は、操作者によ
る分割単位の末尾を示す操作に応答して、当該分割単位
の末尾を示す記号を表示させる。
As another aspect of the present invention, the control means displays a symbol indicating the end of the division unit in response to an operation by the operator indicating the end of the division unit.

本発明の更に他の態様として、上記分割単位の構成情報
は、上記分割単位内の各項目の相対位置を示す表示情報
を含み、上記制御手段は、該表示情報に従い上記各項目
の表示時の桁合せを自動的に行なう。
As still another aspect of the present invention, the configuration information of the division unit includes display information indicating the relative position of each item within the division unit, and the control means controls the display of each item according to the display information. Performs digit alignment automatically.

本発明の別の態様として、上記分割単位の構成情報は、
上記分割単位内の項目を入力文字列から算出するための
計算情報を含み、上記制御手段は、該計算情報に従い入
力文字列から上記項目を求める。
As another aspect of the present invention, the configuration information of the division unit is:
It includes calculation information for calculating items within the division unit from the input character string, and the control means calculates the items from the input character string according to the calculation information.

なお、本明細書における「数式」は、純粋な意味での数
式に限るものではなく、化学式等をも含む広義に解する
ものとする。
Note that the term "mathematical formula" in this specification is not limited to a mathematical formula in a pure sense, but is understood in a broad sense to include chemical formulas and the like.

〔作用1 本発明では、数式を、分割単位および各分割単位内の項
目としてとらえ、数式の種別毎に当該数式の分割単位数
および各分割単位の構成情報を格納した分割単位テーブ
ルを予め設けておくことにより、数式入力編集時には、
制御手段がこの分割単位テーブルを参照しながら、操作
者に必要な文字列の入力を誘導し、入力文字列の表示位
置を自動的に定めて表示手段に表示させる。
[Effect 1] In the present invention, a mathematical formula is regarded as a division unit and an item within each division unit, and a division unit table is provided in advance that stores the number of division units of the formula and configuration information of each division unit for each type of formula. By setting, when editing formula input,
The control means guides the operator to input a necessary character string while referring to the division unit table, automatically determines the display position of the input character string, and displays the input character string on the display means.

上記分割単位の構成情報としては、各分割単位毎に、そ
の項目数(不定の場合もある)、各項目の相対位置を示
す表示情報、分割単位の末尾を示す記号の有無を表わす
末尾記号情報、項目を入力文字列の計算により求めるこ
とかできる場合の計算情報等により構成される。これら
のテーブル情報は、必ずしもすべてを含む必要はなく、
一部のみでもある程度の効果は得られる。
The configuration information of the above division unit includes, for each division unit, the number of items (sometimes undefined), display information indicating the relative position of each item, and end symbol information indicating the presence or absence of a symbol indicating the end of the division unit. , consists of calculation information, etc. when the item can be calculated by calculating the input character string. These table information does not necessarily have to include everything;
Some effect can be obtained even if only a part of it is used.

上記分割単位の構成情報に、上記末尾記号情報を含む場
合には、制御手段は、この情報に従って必要な場合には
自動的に当該分割単位とともにその末尾記号を表示させ
る。末尾記号情報を含まない場合、あるいは自動的に分
割単位の末尾と判定できない場合にも、操作者の分割単
位末尾を示す操作に従って、上記末尾記号を付加するよ
うにすることも可能である。
When the configuration information of the division unit includes the suffix information, the control means automatically displays the suffix along with the division unit, if necessary, according to this information. Even if the end symbol information is not included or the end of the division unit cannot be automatically determined, the end symbol can be added according to the operator's operation to indicate the end of the division unit.

上記分割単位の構成情報に、表示情報を含む場合には、
制御手段は、この情報に従って桁合せの必要な分割単位
で、自動的に、表示時の文字列の桁を合せる。
If the configuration information of the above division unit includes display information,
The control means automatically adjusts the digits of the character string when displayed in division units that require digit alignment according to this information.

上記分割単位の構成情報に、計算情報を含む場合には、
制御手段は、その計算情報を含む分割単位について、そ
の計算情報に従って、目的の項目を算出する。この際、
制御手段は、その目的の項目が数字などの計算可能な文
字列か否かを判定し、かつ、計算に必要な文字列がすべ
て揃っているか否か、また、計算に利用する各文字列か
数字として取扱うことかできるものであるか否かを判定
する。この判定結果により、数式の一部または全部が算
出される。
If the configuration information of the above division unit includes calculation information,
The control means calculates the target item for the division unit including the calculation information, according to the calculation information. On this occasion,
The control means determines whether the target item is a character string such as a number that can be calculated, and also determines whether all the character strings necessary for calculation are available, and whether or not each character string used for calculation is present. Determine whether it can be treated as a number. Based on this determination result, part or all of the formula is calculated.

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

まず、本発明で扱う数式の特徴を説明する。第3図(a
)は本発明で取扱う数式を示している。この図に示すよ
うに、本発明では主に筆算と呼ばれる縦型の式の入力編
集を対象としている。筆算には、たし算、引算、かけ算
、割算、素因数分解などかあるか、かけ算を例にして説
明する。筆算は一般的に複数桁の数字を縦に並べて簡単
に計算を行なうものである。本発明では、この数字また
は文字の並びを項目と呼ぶ。第3図(a)において、3
06〜310か、各項目を示す。複数の項目か集まって
分割単位を構成する。第3図(a)において、301〜
303か分割単位を示す。分割単位には、末尾を示す記
号か付属する場合がある。第3図(a)において、30
4.305が末尾記号を示している。本発明で扱う数式
を入力編集するためには、項目間の行間隔や、桁合わせ
、分割単位の配置や末尾記号の有無などを考慮しなけれ
ばならない。
First, the characteristics of the mathematical expressions used in the present invention will be explained. Figure 3 (a
) indicates a mathematical formula handled in the present invention. As shown in this figure, the present invention is mainly aimed at inputting and editing vertical equations called calculation by hand. Explain whether there are addition, subtraction, multiplication, division, prime factorization, etc. in written calculations, using multiplication as an example. Calculation by hand generally involves arranging multi-digit numbers vertically to perform simple calculations. In the present invention, this sequence of numbers or letters is called an item. In Figure 3(a), 3
06-310 or each item. Multiple items are grouped together to form a division unit. In FIG. 3(a), 301~
303 indicates the division unit. A division unit may include a symbol indicating the end. In Figure 3(a), 30
4.305 indicates the final symbol. In order to input and edit the mathematical formulas used in the present invention, consideration must be given to the line spacing between items, alignment of digits, arrangement of division units, presence or absence of suffix symbols, etc.

次に本発明のハードウェア構成を説明する。第2図は本
発明の機器構成図である。本発明を適用するハードウェ
アは、文字列、数式記号等の入力を行なうキーボードな
どによる入力装置201、入力された文字の文字コード
を記憶する記憶装置202、文字列等を表示するCRT
デイスプレィなどの表示装置203、前記各部の制御を
行なう制御装置204により構成される。
Next, the hardware configuration of the present invention will be explained. FIG. 2 is a diagram showing the equipment configuration of the present invention. The hardware to which the present invention is applied includes an input device 201 such as a keyboard for inputting character strings, mathematical symbols, etc., a storage device 202 for storing character codes of input characters, and a CRT for displaying character strings, etc.
It is composed of a display device 203 such as a display, and a control device 204 that controls each of the above-mentioned parts.

このうちの制御装置204を詳細に説明する。制御装置
204は、数式入力部205、数式計算部206、数式
表示部207、対象指定部208、数式編集部209の
五つの機能ブロックにより構成される。
Of these, the control device 204 will be explained in detail. The control device 204 is composed of five functional blocks: a formula input section 205, a formula calculation section 206, a formula display section 207, a target designation section 208, and a formula editing section 209.

(1)数式入力部205 前述のように本発明て扱う数式は項目および分割単位に
より構成される。項目とは、通常、数式や漢字などの文
字から構成されるものであるが、階層構造を持つ数式に
より形成される場合もある。分割単位とは、複数の項目
か集まったものであり、かけ算、たし算など計算式ごと
に分割単位の個数は固有である。また、各分割単位ごと
に項目の個数や末尾記号の有無などの情報も決まってい
る。入力部205はすべての数式および各数式の分割単
位の情報をまとめたテーブル(分割単位テーブル)を持
つ。
(1) Mathematical Formula Input Unit 205 As described above, the mathematical formulas handled by the present invention are composed of items and division units. Items are usually composed of numerical formulas and characters such as kanji, but may also be composed of numerical formulas with a hierarchical structure. A division unit is a collection of multiple items, and the number of division units is unique for each calculation formula such as multiplication or addition. Further, information such as the number of items and the presence or absence of a suffix is also determined for each division unit. The input unit 205 has a table (division unit table) that summarizes all mathematical formulas and information on division units of each formula.

ユーザが前記入力装置201により、数式種別を選択す
ると、数式入力部205は入力された数式種別に対応す
る分割単位テーブルを検索し、その情報に従って数式の
第1番目の項目の入力を誘導する。ユーザは項目を構成
する文字列を入力し、項目の末尾には1個の項目か終了
したことを示す区切り記号を入力する。数式入力部20
5は分割単位テーブルより求めた項目の個数および入力
順序に従って項目の入力を誘導する。第3図(b)に示
すように、数式入力の結果から求められた数式全体の管
理データ311や各分割単位の管理データ312゜31
4、入力された項目の文字列や区切り記号313などは
一列に並べられ、前記記憶装置202に記憶される。
When the user selects a formula type using the input device 201, the formula input unit 205 searches the division unit table corresponding to the input formula type, and guides input of the first item of the formula according to the information. The user inputs a character string that constitutes an item, and inputs a delimiter at the end of the item to indicate that one item or one item has been completed. Formula input section 20
5 guides the input of items according to the number of items and input order obtained from the division unit table. As shown in FIG. 3(b), management data 311 for the entire formula and management data 312 for each division unit obtained from the results of formula input.
4. The character strings, delimiters 313, etc. of the input items are arranged in a line and stored in the storage device 202.

(2)数式計算部206 −船釣に筆算式は計算を補助するために用いられること
が多く、一般の数式よりも計算か簡単な場合が多い。数
式計算部206はこの特徴を生かしたものである。数式
計算部206は、分割単位テーブルの情報やすてに入力
されている項目などから、次に入力される項目が計算可
能かどうか判定し、計算可能な場合には実際に計算を行
なう。
(2) Mathematical formula calculation unit 206 - Pencil calculation formulas are often used to assist calculations in boat fishing, and are often easier to calculate than general formulas. The formula calculation unit 206 takes advantage of this feature. The formula calculation unit 206 determines whether or not the next input item can be calculated based on the information in the division unit table and the items that have already been input, and if it is calculationable, actually performs the calculation.

(3)数式表示部207 筆算式を表示するためには、固定のサイズをもった文字
や行の代りに、大きさの異なる2次元的な領域を基本と
して考え、それらを筆算式の種類に応じて縦または横に
配置しなければならない。
(3) Mathematical formula display section 207 In order to display handwritten calculation formulas, instead of characters and lines with fixed sizes, two-dimensional areas of different sizes are basically considered, and these are divided into types of handwritten calculation formulas. They must be arranged vertically or horizontally as appropriate.

すなわち、分割単位、項目ごとに領域(以下、項目エリ
アと呼ぶ)の大きさを設定し、筆算式の種類によって分
割単位や分割単位を構成する項目を定まった位置に配置
する必要かある。
That is, it is necessary to set the size of the area (hereinafter referred to as item area) for each division unit and item, and to arrange the division unit and the items forming the division unit at fixed positions depending on the type of writing formula.

具体的に第3図(a)の数式を例にとって説明する。こ
の数式において、第1分側車位301は第1項目313
5と第2項目307から成る。各項目の太きさは各項目
を構成する文字の大きさに文字間隔と行間隔を加えたも
のてあり、各分割単位の大きさは分割単位を構成する項
目を分割単位テーブルの情報に従って配置し、末尾記号
の大きさや上下左右の余白を加えることにより計算でき
る。したがって数式全体の大きさは各分割単位を分割単
位テーブルのデータに従って配置することにより求めら
れる。数式全体の大きさが決まった後に、配との基準点
の座標から各分割単位や項目の座標を求め、表示装置2
03に表示する。
This will be specifically explained using the formula shown in FIG. 3(a) as an example. In this formula, the first minute side vehicle position 301 is the first item 313
5 and the second item 307. The thickness of each item is the size of the characters that make up each item plus the character spacing and line spacing, and the size of each division unit is determined by arranging the items that make up the division unit according to the information in the division unit table. It can be calculated by adding the size of the last symbol and the top, bottom, left, and right margins. Therefore, the size of the entire formula can be found by arranging each division unit according to the data in the division unit table. After the size of the entire formula is determined, the coordinates of each division unit and item are calculated from the coordinates of the reference point and displayed on the display device 2.
Displayed on 03.

(4)文字列指定部208 前記数式表示部207により表示された数式の一部を入
力装置Z(11より指定すると、記憶装置202に格納
されたデータのうち、指定された文字がどこにあるかを
検索する。
(4) Character string specification section 208 When a part of the mathematical expression displayed by the mathematical expression display section 207 is specified by input device Z (11), it is possible to specify where the specified character is located in the data stored in the storage device 202. Search for.

(5)文字編集部209 前記文字指定部208によって求めた文字に対し、挿入
、訂正等の編集を施す。入力方法は前記数式入力部20
5と同一であり、記憶装置202に記憶する際に、指定
された文字列位置へ再入力された文字列データを挿入す
る。
(5) Character editing section 209 Edits the characters obtained by the character specifying section 208, such as insertion and correction. The input method is the formula input section 20.
5, and when storing the data in the storage device 202, the re-input character string data is inserted into the specified character string position.

次に、上記機能ブロックから成る装置における、筆算木
の入力方法や末尾記号の表示、自動桁合わせ、数式計算
機能について説明する。
Next, a description will be given of the input method of the Japanese arithmetic tree, the display of the last symbol, the automatic digit alignment, and the mathematical formula calculation functions in the device composed of the above functional blocks.

本発明において、数式入力部205は、かけ算や割算な
ど数式種別ごとに分割単位テーブルを持っている。第4
図はかけ算分割単位テーブルを示している。分割単位テ
ーブルは、数式種別欄410、分割単位数種420およ
び分割単位の個数分だけの分割単位データ欄430.4
40.450を持つ。各分割単位データ欄は、項目数と
入力順序を記憶する項目数種431.441.451 
、 表示情報@432.442゜452、末尾記号表示
欄433.443.453から成り、各項目の値を計算
により求められる場合には、計算情報a444を持つ。
In the present invention, the formula input unit 205 has a division unit table for each type of formula, such as multiplication and division. Fourth
The figure shows a multiplication division unit table. The division unit table includes a formula type column 410, a division unit number type 420, and a division unit data column 430.4 for the number of division units.
It has 40.450. Each division unit data column stores the number of items and input order. 431.441.451
, display information @432.442°452, and a suffix symbol display field 433.443.453, and if the value of each item can be determined by calculation, it has calculation information a444.

計算情報欄444には、項目間の計算情報を記憶してお
く。
The calculation information column 444 stores calculation information between items.

入力機能か起動され、数式種別が入力されると制′44
B置204は、まず数式入力部205に記憶されている
分割単位テーブルの中から選択された数式種別に該当す
るものを呼び出す。つぎに項目の一つ一つについて文字
の入力を誘導する。
When the input function is activated and the formula type is input, the control '44
Place B 204 first calls up a division unit table stored in the formula input section 205 that corresponds to the selected formula type. Next, the user is prompted to input characters for each item.

第1図は本発明における一つの項目を入力する場合の制
御装置204の手順を示したフローチャートである。ス
テップ101において制御装置204は呼び出された分
割単位チーフルの表示情報から、入力を受付ける項目の
表示座標を計算する。この表示情報には分割単位内の各
項目の相対位置関係を記憶しておく。これにより、例え
ば第3図(a)の第1分側車位301のように右寄せを
行なったり、第2分側車位302のように1文字ずつ左
にずらすことにより自動的に桁を合わせることかできる
FIG. 1 is a flowchart showing the procedure of the control device 204 when inputting one item in the present invention. In step 101, the control device 204 calculates the display coordinates of the item that accepts input from the display information of the called division unit chiful. This display information stores the relative positional relationship of each item within the division unit. This allows you to align the digits to the right, for example, as in the first minute position 301 in Figure 3(a), or to automatically align the digits by shifting each character to the left, as in the second minute position 302. can.

つぎに制御装置204は分割単位テーブルの計算情報欄
のデータから、計算か可能かどうかを判定する(ステッ
プ102)。第5図はステップ102の詳細を表わした
ものである。判定の手順としてはまず第1に分割単位テ
ーブルの計算情報欄に入力の対象としている項目を計算
する項目間計算式かあるかどうかを調べる(ステップ5
01)。項目間計算式か存在した場合には、対象項目を
計算するために必要な項目のうち、未入力のものは無い
かどうかを検査する(ステップ502)。さらに、これ
らの項目は、数字のように実際に計算することか可能か
どうかを検査する(ステップ503)。以上の三つの判
定条件を満たすものは計算可能であり(ステップ504
)、−っても満たさないものは計算不可能と判定する(
ステップ505)。
Next, the control device 204 determines whether calculation is possible based on the data in the calculation information column of the division unit table (step 102). FIG. 5 shows details of step 102. The determination procedure is first to check whether there is an inter-item calculation formula that calculates the item to be input in the calculation information column of the division unit table (step 5).
01). If an inter-item calculation formula exists, it is checked whether there are any uninputted items among the items necessary to calculate the target item (step 502). Furthermore, it is checked whether these items can actually be calculated like numbers (step 503). Those that satisfy the above three judgment conditions can be calculated (step 504
), − is not satisfied, it is determined that it is not computable (
Step 505).

第1図に戻り、上記の手順により計算不可能と判定され
た場合には、先に求めた該当項目の入力位置にカーソル
のようなマーカーを表示し、項目を構成する文字列の入
力を誘導する(ステップ103)。計算可能と判定され
た場合には、数式計算部206において項目量計算式に
従って、項目の計算を行なう(ステップ104)。
Returning to Figure 1, if calculation is determined to be impossible by the above procedure, a cursor-like marker is displayed at the input position of the corresponding item found earlier, and the input of the character string that makes up the item is guided. (Step 103). If it is determined that calculation is possible, the formula calculation unit 206 calculates the item according to the item amount calculation formula (step 104).

第6図は計算の手順を示したフローチャートである。計
算の手順を第3図308に示した項目3を計算する場合
を例として説明する。
FIG. 6 is a flowchart showing the calculation procedure. The calculation procedure will be explained by taking as an example the case where item 3 shown in FIG. 3 308 is calculated.

ステップ601において、制御装置204は第4図に示
した分割単位テーブルより、該当する項目量計算式を呼
び出す。本例の場合には、 (項目3)=(項目l)×(項目2の1の位)である。
In step 601, the control device 204 calls the corresponding item amount calculation formula from the division unit table shown in FIG. In the case of this example, (item 3)=(item l)×(1's digit of item 2).

つぎに、ステップ602において該当項目を計算するた
めに必要な項目を数値化する。これは、記憶装置202
に記憶されている文字コードを、数値に変換する必要か
あるためである。すべての項目を数値化するまでステッ
プ602を繰り返す(ステップ603)。本例において
は、第3図(b)の文字1.2.3のコードを数値の1
23に、5のコードを数値の5に変換する。
Next, in step 602, the items necessary to calculate the applicable items are digitized. This is the storage device 202
This is because it is necessary to convert the character code stored in the . Step 602 is repeated until all items are digitized (step 603). In this example, the code for the characters 1.2.3 in Figure 3(b) is changed to the numerical value 1.
23, convert the code of 5 to the numerical value 5.

ステップ604において、数値化された項目を、項目量
計算式に従って計算する0本例においては、123x5
により項目3を求める。
In step 604, the digitized items are calculated according to the item amount calculation formula. In this example, 123x5
Find item 3 by

上記の手順において求められた項目は、ステップ605
において、再び文字コードに変換され、記憶装置202
に記憶される。本例においては、123x5=625で
あるので、625を6.2.5という文字コードの並び
に変換して記憶する。
The items obtained in the above procedure are as follows in step 605.
, it is converted into a character code again and stored in the storage device 202.
is memorized. In this example, since 123x5=625, 625 is converted into the character code sequence 6.2.5 and stored.

再び第1図に戻り、入力または上記手順に従った計算に
より、該当項目の文字列が確定した後に、制御装置20
4は上記確定された文字列を、ステップ101で求めら
れた座標をもとに各項目や分割単位の大きさや座標の再
計算を行ない、表示装置203に表示する(ステップ1
05)。
Returning to FIG. 1 again, after the character string of the relevant item is determined by input or calculation according to the above procedure, the control device 20
4 recalculates the size and coordinates of each item and division unit based on the coordinates obtained in step 101, and displays the determined character string on the display device 203 (step 1
05).

分割単位テーブルの項目数や末尾記号情報から表示され
た項目か分割単位の末尾であり、第3図(a)の304
や305のような末尾記号を表示する必要かある場合に
は、ステ・ンプ106て判定を行ない、表示装置203
上に末尾記号を表示する(ステップ108)。対象分割
単位内の項目数が不定の場合や、実際に入力する項目か
分割単位テーブルの内容よりも少ない場合には、操作者
が入力装置201を通じて末尾指定操作を行なったかど
うかをステップ107において判定する。操作か行なわ
れた場合には、分割単位末尾として認識し、ステップ1
08において末尾記号を表示する。
This is the item displayed based on the number of items in the division unit table and the end symbol information, or is the end of the division unit, and is 304 in FIG. 3(a).
If it is necessary to display a final symbol such as ``305'' or ``305'', the step 106 makes a determination and the display device 203
A suffix is displayed on top (step 108). If the number of items in the target division unit is indefinite, or if the number of items actually input is smaller than the contents of the division unit table, it is determined in step 107 whether the operator has performed an operation to specify the end through the input device 201. do. If any operation is performed, it is recognized as the end of the division unit and step 1 is performed.
The final symbol is displayed at 08.

制御装置204は、一つの項目か入力されるたびに第1
図の手順に従って文字入力の誘導と受付を行なう。
The control device 204 controls the first input every time one item is input.
Follow the steps in the figure to guide and accept character input.

式を構成する文字列や、区切り記号313とともに、数
式全体の文字数、座標、大きさなどを記憶する数式管理
部311と、各分割単位の文字数、座標、大きさなどを
記憶する分割単位管理部312゜314とを第3図(b
)に示したように並べて記憶装置202に記憶する。
A formula management section 311 that stores the character strings that make up the formula and the delimiter 313 as well as the number of characters, coordinates, size, etc. of the entire formula, and a division unit management section that stores the number of characters, coordinates, size, etc. of each division unit. 312°314 in Figure 3 (b
) are arranged and stored in the storage device 202 as shown in FIG.

本発明ては、筆算式を例に説明したか、一般の数式はも
とより、化学式や音符などの入力編集に適用てきること
は明確である。
Although the present invention has been explained using a handwritten calculation formula as an example, it is clear that it can be applied to inputting and editing not only general mathematical formulas but also chemical formulas, musical notes, and the like.

〔発明の効果1 本発明によれば、従来の数式入力編集方式において考慮
されていなかった筆算式の入力か可能になり、数式の意
味を考慮した桁合わせや、末尾記号の自動表示、さらに
は作成された数式が計算可能である場合に数式もしくは
数式の一部の計算が可能になるのて、数式入力編集を効
率よく行なうことかできる。
[Effect of the invention 1] According to the present invention, it is possible to input written calculation formulas that were not considered in conventional formula input and editing methods, and it is possible to perform digit alignment that takes into account the meaning of the formula, automatic display of trailing symbols, and even more. If the created formula can be calculated, the formula or a part of the formula can be calculated, allowing efficient input and editing of the formula.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の方式のフローチャート、第2ブロック
図、第3(a)図は本発明の扱う筆算式の例を示した説
明図、第3(b)図はそのデータ構造を表わした説明図
、第4図は本発明における分割単位テーブルの内容を示
した説明図、第5図は本発明において項目の計算可能性
を判定する手順のフローチャート、第6図は項目の計算
手順のフローチャートである。 101・・・項目入力位置計算ステップ102・・・計
算可能性判定ステップ 103・・・文字入力受付ステップ 104・・・項目計算ステップ 105・・・文字列表示ステップ 106・・・分割単位末尾判定ステップ107・・・末
尾指定操作判定ステップ108・・・末尾記号表示ステ
ップ 出願人 株式会社 日 立製作所 代理人 弁理士 富 1)和 子 41図 第2図 ?nA 第3図(a) 第3図(b) 第4図 第5図
Fig. 1 is a flowchart of the method of the present invention, the second block diagram, Fig. 3(a) is an explanatory diagram showing an example of the handwritten calculation method handled by the present invention, and Fig. 3(b) shows its data structure. 4 is an explanatory diagram showing the contents of the division unit table in the present invention, FIG. 5 is a flowchart of the procedure for determining the computability of an item in the present invention, and FIG. 6 is a flowchart of the procedure for calculating an item. It is. 101...Item input position calculation step 102...Calculability determination step 103...Character input reception step 104...Item calculation step 105...Character string display step 106...Division unit end determination step 107... End designation operation determination step 108... End symbol display step Applicant: Hitachi, Ltd. Agent: Patent attorney Tomi 1) Kazuko 41 Figure 2? nA Figure 3 (a) Figure 3 (b) Figure 4 Figure 5

Claims (1)

【特許請求の範囲】 1、文字列を入力する入力手段と、上記文字列の文字コ
ードを記憶する記憶手段と、上記文字列を表示する表示
手段と、上記各手段を制御する制御手段とを備える文書
作成装置において、上記制御手段内に、作成すべき数式
の種別毎に当該数式の分割単位数および各分割単位の構
成情報を格納した分割単位テーブルを設け、上記制御手
段は、上記分割単位テーブルの内容に従い、操作者に対
して上記数式を構成する文字列の入力を誘導し、該入力
文字列の表示位置を自動的に定めて表示することを特徴
とする数式入力編集方式。 2、上記分割単位テーブルに格納された分割単位の構成
情報は当該分割単位の末尾を示す記号の有無を表わす末
尾記号情報を含み、上記制御手段は、該末尾記号情報に
従って自動的に当該末尾記号を表示させる特許請求の範
囲第1項記載の数式入力編集方式。 3、上記制御手段は、操作者による分割単位の末尾を示
す操作に応答して、当該分割単位の末尾を示す記号を表
示させる特許請求の範囲第1項または第2項記載の数式
入力編集方式。 4、上記分割単位の構成情報は、上記分割単位内の各項
目の相対位置を示す表示情報を含み、上記制御手段は、
該表示情報に従い上記各項目の表示時の桁合せを自動的
に行なう特許請求の範囲第1項ないし第3項記載の数式
入力編集方式。 5、上記分割単位の構成情報は、上記分割単位内の項目
を入力文字列から算出するための計算情報を含み、上記
制御手段は、該計算情報に従い入力文字列から上記項目
を求める特許請求の範囲第1項ないし第4項記載の数式
入力編集方式。
[Claims] 1. An input means for inputting a character string, a storage means for storing a character code of the character string, a display means for displaying the character string, and a control means for controlling each of the above means. In the document creation device, a division unit table storing the number of division units of the formula and configuration information of each division unit is provided in the control means for each type of formula to be created, and the control means is configured to control the division unit table. A mathematical formula input/edit method characterized by guiding an operator to input a character string constituting the mathematical formula according to the contents of a table, and automatically determining and displaying a display position of the input character string. 2. The configuration information of the division unit stored in the division unit table includes suffix information indicating the presence or absence of a symbol indicating the end of the division unit, and the control means automatically selects the suffix symbol according to the suffix information. A mathematical formula input/edit method according to claim 1, which displays the following. 3. The mathematical expression input/edit method according to claim 1 or 2, wherein the control means displays a symbol indicating the end of the division unit in response to an operation by the operator indicating the end of the division unit. . 4. The configuration information of the division unit includes display information indicating the relative position of each item within the division unit, and the control means:
A mathematical expression input/edit method according to any one of claims 1 to 3, wherein digits are automatically aligned when displaying each item in accordance with the display information. 5. The configuration information of the division unit includes calculation information for calculating the items in the division unit from the input character string, and the control means calculates the items from the input character string according to the calculation information. The formula input/editing method described in the first to fourth terms of the range.
JP63018742A 1988-01-29 1988-01-29 Formula input editing device Expired - Fee Related JP2669839B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63018742A JP2669839B2 (en) 1988-01-29 1988-01-29 Formula input editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63018742A JP2669839B2 (en) 1988-01-29 1988-01-29 Formula input editing device

Publications (2)

Publication Number Publication Date
JPH01194068A true JPH01194068A (en) 1989-08-04
JP2669839B2 JP2669839B2 (en) 1997-10-29

Family

ID=11980108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63018742A Expired - Fee Related JP2669839B2 (en) 1988-01-29 1988-01-29 Formula input editing device

Country Status (1)

Country Link
JP (1) JP2669839B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001090929A1 (en) * 2000-05-24 2001-11-29 Koh Jong Hak Method and system for editing a mathematical equation

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61202272A (en) * 1985-03-06 1986-09-08 Canon Inc Character processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61202272A (en) * 1985-03-06 1986-09-08 Canon Inc Character processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001090929A1 (en) * 2000-05-24 2001-11-29 Koh Jong Hak Method and system for editing a mathematical equation

Also Published As

Publication number Publication date
JP2669839B2 (en) 1997-10-29

Similar Documents

Publication Publication Date Title
EP0501770B1 (en) Data base creating method and apparatus
JPS62245367A (en) Document processor
EP1204053A1 (en) Method and apparatus for handling a plurality of test modes for a computer readable document
JP2005182460A (en) Information processor, annotation processing method, information processing program, and recording medium having information processing program stored therein
JPH01194068A (en) Mathematical expression input and edition system
JPH1040247A (en) Data processor
US7010754B2 (en) Method, system and user interface for inputting and manipulating tokenized strings
JPS6378228A (en) Information retrieving device
EP0066052A1 (en) Method for preparing an arithmetic entry in an information processing system
JPH01108670A (en) Mathematical formula input and edit system
JPH0695827A (en) Guide device
JP3041002B2 (en) Kana-kanji conversion method and kana-kanji conversion device
JP2998209B2 (en) Information processing apparatus and information processing method
JPH02253373A (en) Preparation method for picture data base
JPH04167123A (en) Mixed data processing system
JPH05233714A (en) Related word information preparation and support system
JPH0778137A (en) Method for appending comment and document processor
JPH06162097A (en) System for setting retrieval condition of database
JPH06161994A (en) Data entry device
JPH0764776A (en) Input editing system for program source
JPH01307866A (en) Document preparing and processing device
JPH096620A (en) Rule generation support tool for expert system
JPH034374A (en) Line drawing generating device
JPH02255979A (en) Document producing device
JPS63196973A (en) Kana/kanji converting system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees