JPH03292561A - Document input/editing device - Google Patents

Document input/editing device

Info

Publication number
JPH03292561A
JPH03292561A JP2095988A JP9598890A JPH03292561A JP H03292561 A JPH03292561 A JP H03292561A JP 2095988 A JP2095988 A JP 2095988A JP 9598890 A JP9598890 A JP 9598890A JP H03292561 A JPH03292561 A JP H03292561A
Authority
JP
Japan
Prior art keywords
alignment
input
folding
formula
editing
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
JP2095988A
Other languages
Japanese (ja)
Other versions
JP2802142B2 (en
Inventor
Toshiharu Kawasaki
川崎 敏治
Tetsuo Iwamoto
岩本 哲夫
Tsukasa Yamauchi
司 山内
Akira Nakajima
晃 中島
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 JP2095988A priority Critical patent/JP2802142B2/en
Publication of JPH03292561A publication Critical patent/JPH03292561A/en
Application granted granted Critical
Publication of JP2802142B2 publication Critical patent/JP2802142B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To attain the automatic return of a numerical formula by deciding the turning position based on the turning conditions stored in a turnigncondition storage means when an input numerical formula exceeds the length of a line and turning the numerical formula at the decided turning position. CONSTITUTION:If an input numerical formula exceeds the length of a line in a numerical formula input/editing mode, a turning position is decided based on the turning conditions stored in a turning condition storage means. Then a turning means turns the numerical formula at the decided turning position. That is, the turning position is decided based on the turning conditions when the input numerical formula is not stored within a line. Then the formula is turned at the turning position. Thus the numerical formula is automatically turned. Then the numerical formulas can be arranged in an easy-to-understand/ easy-to-see way.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ワードプロセッサ、電子編集印刷システム、
組版装置等の文書入力編集装置に係り、特に、数式を入
力して編集するモードにおける数式入力編集方式に関す
る。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is applicable to word processors, electronic editing and printing systems,
The present invention relates to a document input/editing device such as a typesetting device, and particularly to a formula input/edit method in a mode in which formulas are input and edited.

[従来の技術] 3゜ 文書入力編集装置には、数式編集モードを有するものが
あり、このような文書入力編集装置においては、ユーザ
は、数式編集モードで、数式を入力したり、編集したり
することができる。
[Prior Art] 3. Some document input/edit devices have a mathematical formula editing mode, and in such document input/edit devices, users can input or edit mathematical formulas in the mathematical formula editing mode. can do.

入力された数式が行長を超えた場合に、該数式を折返す
必要があるが、折返し位置によっては、数式が正しく理
解されない恐れが生じる。そこで、ユーザは、適当な折
返し位置を決定し、決定した折返し位置で数式を折返し
、適当な揃え位置を決定し、決定した揃え位置に該数式
の続きを揃える。
When an input formula exceeds the line length, it is necessary to wrap the formula, but depending on the folding position, there is a risk that the formula may not be understood correctly. Therefore, the user determines an appropriate folding position, wraps the mathematical expression at the determined folding position, determines an appropriate alignment position, and aligns the continuation of the mathematical expression at the determined alignment position.

数式編集モードにおいては、このようにして入力された
数式を、該数式を構成する文字や記号等の位fi!g係
を保ったまま、まとめて移動や複写を行うことができる
In the formula editing mode, the formula entered in this way is converted into fi! characters, symbols, etc. that make up the formula. You can move or copy all at once while maintaining the G section.

なお、数式編集モードの開始および終了は1例えば、モ
ードの開始および終了を表すキーを押下したり、モード
の開始および終了を表す制御コードを入力したりするこ
とにより、指定することができる。
Note that the start and end of the mathematical expression editing mode can be specified by, for example, pressing a key representing the start and end of the mode, or inputting a control code representing the start and end of the mode.

また、従来、数式における折返し位置および揃え位置を
指定して、数式を整列させるために、TEXを適用した
方式があった。
Furthermore, conventionally, there has been a method in which TEX is applied in order to specify the folding position and alignment position in the mathematical expressions and to align the mathematical expressions.

TEXにおいては、数式を構成する文字や記号等、該文
字や記号等の位置関係、折返し位置を表す記号、揃え位
置を表す記号を記述したコマンドを入力することにより
、文書入力編集装置が、該コマンドに基づいて、数式を
出力する。
In TEX, a document input/editing device can input a command that describes the characters and symbols that make up a mathematical formula, the positional relationship of the characters and symbols, a symbol that represents a wrapping position, and a symbol that represents an alignment position. Output a formula based on a command.

[発明が解決しようとする課題] 上述したTEXは、記述型処理言語、即ち、テキストを
一定の方法に従って解釈し、組版処理を行うための言語
である。そのため、ある程度の熟練者でなければ、使い
辛いものであった。
[Problems to be Solved by the Invention] The above-mentioned TEX is a descriptive processing language, that is, a language for interpreting text according to a certain method and performing typesetting processing. Therefore, it was difficult to use unless one was a certain level of skill.

これに対して、数式を入力するのに、数式を構成する文
字や記号等を、ユーザに順次誘導して入力させる誘導型
数式入力方式がある。
On the other hand, there is a guided mathematical expression input method in which the user is guided and inputted sequentially the characters, symbols, etc. that make up the mathematical expression.

この誘導型数式入力方式は、予め、数式の種類毎に、該
数式の分割単位数および分割単位の構成情報を格納した
テーブルを設けておくことにより、入力時に、このテー
ブルに基づいて、必要な文字や記号等の入力をユーザに
誘導する。
In this guided formula input method, a table is prepared in advance for each type of formula that stores the number of division units of the formula and the configuration information of the division units. Guide the user to input characters, symbols, etc.

なお、分割単位の構成情報に出力位置の情報を含ませる
ことにより、該出力位置に、数式を構成する各文字や記
号等を、分割単位毎に出力することもできる。
Note that by including output position information in the configuration information of the division unit, it is also possible to output each character, symbol, etc. constituting the mathematical formula to the output position for each division unit.

これにより、熟練者でなくとも、比較的容易に数式の入
力を行える。
This allows even non-experts to input mathematical formulas relatively easily.

しかし、上記従来技術のどの方式においても、自動的に
、数式における行の折返し位置および揃え位置を決定し
、折返しおよび揃えを行うことはできなかった。
However, in any of the above-mentioned conventional techniques, it is not possible to automatically determine the wrapping position and alignment position of lines in a mathematical formula and perform wrapping and alignment.

本発明の第1の目的は、数式の折返しを自動的に行うこ
とができる文書入力編集装置を提供することにある。
A first object of the present invention is to provide a document input/editing device that can automatically fold back mathematical expressions.

また、本発明の第2の目的は、数式の折返しおよび揃え
を自動的に行うことができる文書入力編集装置を提供す
ることにある。
A second object of the present invention is to provide a document input/editing device that can automatically wrap and align mathematical formulas.

[課題を解決するための手段] 上記第1の目的を達成するために、本発明は、数式を含
む文字列群を入力して編集し、編集結果を出力する文書
入力編集装置において、予め定められた折返し条件を記
憶する折返し条件記憶手段と、数式を入力して編集する
場合に入力された数式が行長を超えた場合に、上記折返
し条件記憶手段に記憶された折返し条件に基づいて、折
返し位置を決定し、該折返し位置で折返す折返し手段と
を設けている。
[Means for Solving the Problems] In order to achieve the above first object, the present invention provides a document input/editing device that inputs and edits a group of character strings including mathematical formulas, and outputs an edited result. a folding condition storage means for storing folding conditions stored in the folding condition storage means; A folding means is provided for determining a folding position and folding back at the folding position.

また、上記第2の目的を達成するために、本発明は、上
述の構成に加えて、予め定められた記憶する揃え条件記
憶手段と、上記揃え条件記憶手段に記憶された揃え条件
に基づいて、揃え位置を決定し、上記折返し位置を、該
揃え位置に揃える揃え手段とを設けている。
Further, in order to achieve the second object, the present invention, in addition to the above-mentioned configuration, includes a predetermined alignment condition storage means for storing, and an alignment condition based on the alignment condition stored in the alignment condition storage means. , an alignment means for determining an alignment position and aligning the folding position to the alignment position.

上記折返し条件は、例えば、二項関係を記述する記号の
前の位置または二項演算子の前の位置を、少なくとも折
返し位置としており、各折返し位置には、優先順位が付
与されている。
The above-mentioned folding condition sets, for example, at least a position before a symbol describing a binary relationship or a position before a binary operator as a folding position, and each folding position is given a priority order.

上記揃え条件は、例えば、二項関係を記述する記号およ
び二項演算子を基にして定められた位置を、少なくとも
揃え位置としており、各揃え位置は、上記折返し位置に
対応している。
The above-mentioned alignment condition sets, for example, at least a position determined based on a symbol describing a binary relationship and a binary operator as an alignment position, and each alignment position corresponds to the above-mentioned folding position.

上記折返し条件記憶手段および上記揃え条件記憶手段は
、例えば、テーブルとして、上記文書入力編集装置を構
成する記憶装置に設けることができる。
The folding condition storage means and the alignment condition storage means may be provided, for example, in the form of a table in a storage device constituting the document input/editing device.

また、上記折返し手段および上記揃え手段は、上記文書
入力編集装置を構成する処理装置に設けるこができる。
Further, the folding means and the aligning means can be provided in a processing device constituting the document input/editing device.

また、上記折返し位置に付与された優先順位は、任意に
変更することができる。
Moreover, the priority given to the above-mentioned return position can be changed arbitrarily.

[作 用] 入力された数式が行内に納まらなくなった場合に、上記
折返し条件に基づいて、折返し位置を決定する。さらに
は、上記揃え条件に基づいて、上記決定した折返し位置
に対応した揃え位置を決定することもできる。
[Operation] When the input formula cannot fit within the line, the wrap position is determined based on the above wrap condition. Furthermore, an alignment position corresponding to the determined folding position can also be determined based on the alignment condition.

そして、該折返し位置で折返し、揃え位置を決定した場
合は、該折返し位置を該揃え位置に揃える。
Then, when the folding position is determined at the folding position and the alignment position is determined, the folding position is aligned with the alignment position.

これにより、数式の折返し、また、さらには、揃えを、
自動的に行うことができるので、数式を理解しやすいよ
うに、見やすく配置することができる。
This allows wrapping and even alignment of formulas.
Since this can be done automatically, the formulas can be arranged in an easy-to-read manner to make them easy to understand.

[実施例コ 以下、本発明の一実施例について図面を参照して説明す
る。
[Embodiment] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第6図は本発明の一実施例の文書入力編集装置の構成を
示すブロック図である。
FIG. 6 is a block diagram showing the configuration of a document input/editing device according to an embodiment of the present invention.

第6図において、601はCPU、602はパスライン
、603は入力装置、604は出力装置、605は記憶
装置、606は処理プログラムメモリ、’ 607はレ
ジスタ群およびワークメモリ、608は優先順位・揃え
位置テーブル、609は二項関係・二項演算子テーブル
である。
In FIG. 6, 601 is a CPU, 602 is a pass line, 603 is an input device, 604 is an output device, 605 is a storage device, 606 is a processing program memory, 607 is a register group and work memory, and 608 is a priority order/alignment. The position table 609 is a binary relationship/binary operator table.

CPU601は、パスライン602を介して、各ブロッ
ク間のデータ転送を行い、記憶装置605内の処理プロ
グラムメモリ606に存在する処理プログラムを動作さ
せる。
The CPU 601 transfers data between each block via a pass line 602 and operates a processing program stored in a processing program memory 606 in a storage device 605.

入力装置603は、例えば、キーボードやマウス等であ
り、数式、その他の文字や記憶等を入力し、記憶装置1
605内のレジスタ群およびワークメモリ607に一時
的に記憶された情報および外部記憶装置(図示せず。)
から読込まれた情報等の入力も行う。
The input device 603 is, for example, a keyboard or a mouse, and is used to input mathematical formulas, other characters, memories, etc.
A group of registers in 605 and information temporarily stored in work memory 607 and an external storage device (not shown).
It also inputs information read from the .

出力装置E604は、例えば、CRTやプリンタ等であ
り、処理プログラムによって作成された情報に従って1
文字や記号等を出力する。また、出力装置604は、必
要があれば、ページメモリ等の記憶手段を有してもよい
The output device E604 is, for example, a CRT or a printer, and outputs one image according to the information created by the processing program.
Output characters, symbols, etc. Further, the output device 604 may have a storage means such as a page memory, if necessary.

記憶装置605は、処理プログラムメモリ606、レジ
スタ群およびワークメモリ607、優先順位・揃え位置
テーブル608、二項関係・二項演算子テーブル609
を有している。
The storage device 605 includes a processing program memory 606, a register group and work memory 607, a priority/alignment position table 608, and a binary relationship/binary operator table 609.
have.

レジスタ群およびワークメモリ607は、処理の最中に
一時的に記憶する必要のある情報を格納しておくための
レジスタ群やワーク用のメモリであり、出力に必要な表
示用メモリ、ページメモリ等はここに含まれてもよい。
The register group and work memory 607 is a register group and work memory for storing information that needs to be temporarily stored during processing, and includes display memory, page memory, etc. necessary for output. may be included here.

優先順位・揃え位置テーブル608は、後で説明する、
折返し位置候補およびその優先順位の情報と揃え位置の
情報とを記憶しているテーブルである。
The priority/alignment position table 608 will be explained later.
This is a table that stores information on turnback position candidates, their priorities, and alignment positions.

二項関係・二項演算子テーブル609は、二項関係を記
述する記号および二項演算子を記述する記号を記憶して
いるテーブルである。
The binary relationship/binary operator table 609 is a table that stores symbols that describe binary relationships and symbols that describe binary operators.

本実施例の文書入力編集装置は、数式を入力して編集す
る数式編集モードを有しており、数式編集モードの開始
が指定され、数式編集モードとなった場合に、以下に説
明する数式の折返し処理を行う。
The document input/editing device of this embodiment has a formula editing mode in which formulas are input and edited, and when the start of the formula editing mode is specified and the formula editing mode is entered, the following mathematical formulas are input and edited. Performs loopback processing.

なお、数式編集モードの開始および終了は、例えば、モ
ードの開始および終了を表すキーを押下したり、モード
の開始および終了を表す制御コードを入力したりするこ
とにより、指定することができるが、本実施例において
は、数式編集モードの開始は、数式の入力の開始を表す
制御コードを入力することにより指定し、数式編集モー
ドの終了は、数式の入力の終了を表す制御コードを入力
することにより指定することとしている。
Note that the start and end of the formula editing mode can be specified, for example, by pressing a key representing the start and end of the mode, or by inputting a control code representing the start and end of the mode. In this embodiment, the start of the formula editing mode is specified by inputting a control code indicating the start of formula input, and the end of the formula editing mode is specified by inputting a control code indicating the end of formula input. It is specified by.

第1図は本実施例の数式の折返し処理のフローチャート
である。
FIG. 1 is a flowchart of the formula folding process of this embodiment.

ステップ101で、処理を開始し、ステップ102で、
入力装置603から文字や記号等を入力する。
In step 101, processing begins, and in step 102,
Characters, symbols, etc. are input from the input device 603.

ステップ103で、入力された文字や記号等が数式の入
力の終了を表す制御コードか否かを判定する。数式の入
力の終了を表す制御コードであるならば、ステップ10
8で、処理を終了する。
In step 103, it is determined whether the input characters, symbols, etc. are control codes indicating the end of inputting the mathematical formula. If it is a control code indicating the end of formula input, step 10
At step 8, the process ends.

数式の入力の終了を表す制御コードでないならば、ステ
ップ104で、ステップ101で入力された文字や記号
等を数式に組直した場合の数式の長さをチエツクし、数
式の長さが行長を超えたと判定された場合には、ステッ
プ105で、優先順位・揃え位置テーブル608および
二項関係・二項演算子テーブル609の情報を参照して
、折返し位置を決定する。
If it is not a control code indicating the end of inputting a mathematical formula, in step 104, the length of the mathematical formula when the characters and symbols input in step 101 are reassembled into a mathematical formula is checked, and the length of the mathematical formula is determined by the line length. If it is determined that the number exceeds 1, the return position is determined in step 105 by referring to the information in the priority order/alignment position table 608 and the binary relation/binary operator table 609.

ステップ104で数式の長さが行長に満たないと判定さ
れた場合、または、ステップ105で折返し位置を決定
した後には、ステップ106で、数式を構成する全ての
文字や記号等の位置を再計算し、ステップ107で、出
力装置604に出力する。そして、再びステップ102
へ戻り、以下、これを繰返す。
If it is determined in step 104 that the length of the mathematical expression is less than the line length, or after the wrapping position is determined in step 105, in step 106 the positions of all characters, symbols, etc. that make up the mathematical expression are re-positioned. It is calculated and outputted to the output device 604 in step 107. Then step 102 again
Go back and repeat this below.

第2図は優先順位・揃え位置テーブル608の構成を示
す説明図である。
FIG. 2 is an explanatory diagram showing the structure of the priority order/alignment position table 608.

第2図において、優先順位・揃え位置テーブル608は
、折返し位置候補およびその優先順位と、その箇所で折
返した場合の揃え位置とを対比させて、記憶している。
In FIG. 2, a priority/alignment position table 608 stores candidates for folding positions and their priorities in comparison with alignment positions when folding is performed at those locations.

本実施例では、例えば、優先順位第1位の折返し位置候
補として、「先頭より2番目以降の二項関係を記述する
記号の前」としており、それに対する揃え位置として、
「先頭より1番目の二項関係を記述する記号に揃える」
としている。
In this embodiment, for example, the wrap-around position candidate with the first priority is "before the symbol that describes the binary relationship from the second onwards from the beginning", and the alignment position for this is:
"Align to the symbol that describes the first binary relationship from the beginning"
It is said that

第1図のステップ105では、この優先順位・揃え位置
テーブル608を参照して、数式の長さが行長よりも短
く、かつ、最も優先順位が高くなるもののうち、最も数
式の長さが長くなるような折返し位置候補を、折返し位
置として決定する。
In step 105 of FIG. 1, the priority/alignment position table 608 is referred to, and among the formulas whose length is shorter than the line length and which has the highest priority, the formula whose length is the longest is selected. A turnaround position candidate that satisfies the following is determined as the turnback position.

優先順位・揃え位置テーブル608において、「二項関
係を記述する記号」、「加減算記号またはそれに類する
記号」、「乗除算記号またはそれに類する記号」が、実
際にはどのような記号であるかは、二項関係・二項演算
子テーブル609を参照して判断する。
In the priority order/alignment position table 608, it is difficult to know what kind of symbols the "symbols describing binary relationships,""addition/subtraction symbols or similar symbols," and "multiplication/division symbols or similar symbols" actually represent. , the determination is made with reference to the binary relation/binary operator table 609.

第3図は二項関係・二項演算子テーブル609の構成を
示す説明図である。
FIG. 3 is an explanatory diagram showing the structure of the binary relation/binary operator table 609.

第3図において、二項関係・二項演算子テーブル609
は、二項関係を表す記号、加減算記号または該記号に類
する記号、乗除算記号または該記号に類する記号を、そ
れぞれ、種類分けして、記憶している。
In FIG. 3, a binary relation/binary operator table 609
stores symbols representing binary relationships, addition/subtraction symbols or symbols similar to these symbols, and multiplication/division symbols or symbols similar to these symbols, classified into different types.

第4図は、優先順位・揃え位置テーブル608および二
項関係・二項演算子テーブル609を用いて、第1図に
示すフローチャートに沿って、折返し処理を行った例を
示している。
FIG. 4 shows an example in which foldback processing is performed using the priority/alignment position table 608 and the binary relationship/binary operator table 609 in accordance with the flowchart shown in FIG.

第4図(a)は、数式を、F(αβγ)=(α+β+γ
)2まで入力した状態を示している。
Figure 4(a) shows the formula F(αβγ)=(α+β+γ
) 2 is shown.

この状態では、数式の長さが行長に満たないので、ステ
ップ104のチエツク結果は全てNoであり、ステップ
102〜ステツプ104、ステンプ106およびステッ
プ107の処理を繰返す。
In this state, the length of the formula is less than the line length, so the check results in step 104 are all No, and the processes in steps 102 to 104, step 106, and step 107 are repeated.

この例のように、数式の長さが行長に満たない場合には
、本実施例では、数式は、中央にセンタリングされて、
前マージンおよび後マージンが付く、前マージンおよび
後マージンの値は等しい。
As in this example, if the length of the formula is less than the line length, in this example the formula is centered,
With leading and trailing margins, the values of the leading margin and trailing margin are equal.

第41(b)は、第41 (a)の状態から、さらに続
けて、「=α2+β2+γ」まで入力した状態を示して
いる。
The 41st (b) shows a state in which "=α2+β2+γ" is further input from the 41st (a) state.

この状態では、数式の長さは行長を超える。そこで、ス
テップ104のチエツク結果はYESとなり、ステップ
105の処理を行う。
In this state, the length of the formula exceeds the line length. Therefore, the check result in step 104 is YES, and the process in step 105 is performed.

ステップ105では、今までに入力された「r」から「
γJまでの各々について、優先順位・揃え位置テーブル
608および二項関係・二項演算子テーブル609を参
照し、数式の長さが行長よりも短く、かつ、最も優先順
位が高くなるもののうち、最も数式の長さが長くなるも
のを選択して。
In step 105, from "r" input so far to "
For each of up to γJ, refer to the priority order/alignment position table 608 and the binary relation/binary operator table 609, and select the formula whose length is shorter than the line length and which has the highest priority. Select the one with the longest formula length.

折返し位置として決定する。Determine as the turnaround position.

この例では、折返し位置は、優先順位第1位の折返し位
置候補に該当する、第4図(C)の401に示す「=」
であり、その揃え位置は、「先頭より1番目の二項関係
を記述する記号(第4図(c)の402に示す「=」)
に揃える」である。
In this example, the return position is the "=" shown at 401 in FIG. 4(C), which corresponds to the return position candidate with the first priority.
, and its alignment position is "the symbol that describes the first binary relationship from the beginning ("=" shown at 402 in FIG. 4(c)).
"Align it to ."

従って、ステップ106では、ステップ105で求めた
折返し位置(401に示す「=J)と、この401に示
す「=」を402に示す「=」に揃えることとを考慮し
、全ての文字や記号等の位置の再計算を行い、ステップ
107で、出力装置604に出力する。この状態が第4
図(c)である。
Therefore, in step 106, all characters and symbols are , etc., and outputs the result to the output device 604 in step 107. This state is the fourth
It is figure (c).

第5図は、優先順位・揃え位置テーブル608および二
項関係・二項演算子テーブル609を用いて、第1図に
示すフローチャートに沿って、折返し処理を行った別の
例を示している。
FIG. 5 shows another example in which the folding process is performed in accordance with the flowchart shown in FIG. 1 using the priority order/alignment position table 608 and the binary relationship/binary operator table 609.

第5図(a)は、数式を、「Δ(αβγ)=[((α+
β)2+(α−β)”)”+((α+γ)2+α−」ま
で入力した状態を示している。
Figure 5(a) shows the mathematical formula ``Δ(αβγ)=[((α+
The state in which input has been made up to β)2+(α−β)”)”+((α+γ)2+α−) is shown.

後から2番目の「α」までを入力している状態では、数
式の長さが行長に満たないので、ステップ104のチエ
ツク結果は全てNoであり、ステップ102〜ステツプ
104、ステップ106およびステップ107の処理を
繰返す。
When the second to last "α" is input, the length of the formula is less than the line length, so the check results at step 104 are all No, and steps 102 to 104, step 106, and step Repeat the process in step 107.

このとき、第4図(a)の例と同様に、数式は、中央に
センタリングされて、前マージンおよび後マージンが付
く。
At this time, similar to the example of FIG. 4(a), the formula is centered in the center and has front and rear margins.

「−」まで入力すると、数式の長さは行長を超える。そ
こで、ステップ104のチエツク結果はYESとなり、
ステップ105の処理を行う。
If you enter up to "-", the length of the formula will exceed the line length. Therefore, the check result in step 104 is YES,
The process of step 105 is performed.

ステップ105では、今までに入力されたrΔ」から「
−」までの各々について、優先順位・揃え位置テーブル
608および二項関係・二項演算子テーブル609を参
照し、数式の長さが行長よりも短く、かつ、最も優先順
位が高くなるもののうち、最も数式の長さが長くなるも
のを選択して、折返し位置として決定する。
In step 105, the steps are performed from ``rΔ'' input so far to ``
-'', the priority order/alignment position table 608 and the binary relation/binary operator table 609 are referred to, and the formula length is shorter than the line length and the priority order is highest. , the one with the longest formula is selected and determined as the looping position.

この例では、折返し位置は、優先順位第2位の折返し位
置候補に該当する、第5図(a)の501に示す「+」
であり、その揃え位置は、既に二項関係を記述する記号
(第5図(b)の502に示す「;」)が現れているの
で、「直前の二項関係を記述する記号(第5図(b)の
502に示す「=」)よりAだけ字下げを行った位置に
揃える」である。
In this example, the turnaround position is "+" shown at 501 in FIG. 5(a), which corresponds to the turnaround position candidate with the second priority.
Since the symbol describing the binary relationship (";" shown at 502 in FIG. 5(b)) has already appeared, the alignment position is "the symbol describing the immediately preceding binary relationship (5 "Align to a position that is indented by A from the "=" shown at 502 in FIG.

従って、ステップ106では、ステップ105で求めた
折返し位置(501に示す「+」)と、この501に示
す「+」を502に示す「=」に揃えることとを考慮し
、全ての文字や記号等の位置の再計算を行い、ステップ
107で、出力装置604に出力する。この状態が第5
図(b)である。
Therefore, in step 106, all the characters and symbols are , etc., and outputs the result to the output device 604 in step 107. This state is the fifth
It is figure (b).

なお、本実施例では、第2図において、優先順位・揃え
位置テーブル608の優先位置第1位から第4位までを
記載したが、それ以降の優先順位としては1例えば、優
先順位第5位として、括弧の入れ子の第2位の加減算記
号または該記号に類する記号の前、優先順位第6位とし
て、括弧の入れ子の第2位の乗除算記号または該記号に
類する記号の前とし、以下、同様に、括弧の入れ子の位
数が高い順の加減算記号または該記号に類する記号の前
1乗除算記号または該記号に類する記号の前を繰返し、
その他の位置では、折返し不可とすることが挙げられる
In this embodiment, in FIG. 2, the priority positions 1 to 4 of the priority/alignment position table 608 are described, but the subsequent priority positions are 1, for example, the 5th priority position. , before the addition/subtraction symbol in the second position nested in parentheses or a symbol similar to this symbol, and as the sixth priority, before the multiplication/division symbol in the second position nested in parentheses or a symbol similar to this symbol, and as follows: , Similarly, repeat the 1 before the multiplication/division symbol or the symbol similar to this symbol in order of the order of nesting of parentheses from high to low,
In other positions, it may not be possible to turn back.

また、優先順位は、ユーザによって変更可能とすること
ができる。また、揃え位置の中で現れる字下げ量A、B
、C等の値も、ユーザによって変更可能とすることがで
きる。
Additionally, the priority order can be changed by the user. Also, the indentation amounts A and B that appear in the alignment position
, C, etc. can also be changed by the user.

例えば、優先順位第1位の「先頭より2番目以降の二項
関係を記述する記号」で折返すことは。
For example, wrapping at the ``symbol that describes the second binary relationship from the beginning'' which has the first priority.

通常、1番目に行われることであり、揃え位置の「先頭
より1番目の二項関係を記述する記号に揃える」も、一
般的事項であるため、このように。
This is usually done first, and the alignment position "align to the symbol that describes the first binary relationship from the beginning" is also a general matter, so it is like this.

ユーザに変更を許さない方が望ましい項目については、
優先順位および揃え位置の両方、または。
For items that it is preferable not to allow users to change,
Both priority and alignment, or.

どちらか一方のみを変更不可としてもよい。Only one of them may be unchangeable.

また、例えば、1番目の二項関係を記述する記号までが
、行長を超えなくても、ある程度長い場合は、該二項関
係を記述する記号が折返し位置として決定されたときに
、数式の先頭よりD (<O)だけ字下げした位置に揃
えると、見やすくなるので、そうなるように、優先順位
・揃え位置テーブル608の内容を設定することも考え
られる。
Also, for example, if the symbol that describes the first binary relationship is long to some extent even if it does not exceed the line length, when the symbol that describes the binary relationship is determined as the wrapping position, the Since it becomes easier to see if the data is aligned at a position that is indented by D (<O) from the beginning, it is also possible to set the contents of the priority order/alignment position table 608 so as to do so.

[発明の効果] 以上に説明したように5本発明によれば、数式の折返し
を自動的に行えるので、熟練者でなくとも、比較的容易
に数式の入力を行えるという効果がある。
[Effects of the Invention] As explained above, according to the present invention, formulas can be automatically folded back, so even non-experts can input formulas relatively easily.

また、本発明によれば、数式の折返しおよび揃えを自動
的に行えるので、熟練者でなくとも、比較的容易に数式
の入力を行えるという効果がある。
Further, according to the present invention, since the folding and alignment of mathematical expressions can be performed automatically, there is an advantage that even non-experts can input mathematical expressions relatively easily.

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

第1図は本実施例の数式の折返し処理のフローチャート
、第2図は優先順位・揃え位置テーブルの構成を示す説
明図、第3図は二項関係・二項演算子テーブルの構成を
示す説明図、第4図および第5図は本実施例の数式の折
返し処理の具体例を示す説明図、第6図は本実施例の文
書入力編集装置の構成を示すブロック図である。 601・・・CPU、602・・・パスライン、603
・・・入力装置、604・・・出力装置、605・・・
記憶装置、606・・・処理プログラムメモリ、6o7
・・・レジスタ群およびワークメモリ、608・・・優
先順位・揃え位置テーブル、609・・・二項関係・二
項演算子テーブル。 第1図
Fig. 1 is a flowchart of the formula wrapping process of this embodiment, Fig. 2 is an explanatory diagram showing the configuration of the priority order/alignment position table, and Fig. 3 is an explanatory diagram showing the configuration of the binary relation/binary operator table. 4 and 5 are explanatory diagrams showing specific examples of the formula folding process of this embodiment, and FIG. 6 is a block diagram showing the configuration of the document input and editing apparatus of this embodiment. 601...CPU, 602...Pass line, 603
...Input device, 604...Output device, 605...
Storage device, 606... Processing program memory, 6o7
. . . register group and work memory, 608 . . . priority order/alignment position table, 609 . . . binary relation/binary operator table. Figure 1

Claims (1)

【特許請求の範囲】 1、数式を含む文字列群を入力して編集し、編集結果を
出力する文書入力編集装置において、予め定められた折
返し条件を記憶する折返し条件記憶手段と、数式を入力
して編集する場合に、入力された数式が行長を超えた場
合に、上記折返し条件記憶手段に記憶された折返し条件
に基づいて、折返し位置を決定し、該折返し位置で折返
す折返し手段とを設けたことを特徴とする文書入力編集
装置。 2、予め定められた揃え条件を記憶する揃え条件記憶手
段と、上記揃え条件記憶手段に記憶された揃え条件に基
づいて、揃え位置を決定し、上記折返し位置を、該揃え
位置に揃える揃え手段とを設けたことを特徴とする請求
項1記載の文書入力編集装置。 3、数式を含む文字列群や各種指示を入力する入力装置
と、入力された文字列群を記憶する記憶装置と、入力さ
れた指示に従って文書編集処理を行う処理装置と、処理
結果を出力する出力装置とを備えた文書入力編集装置に
おいて、上記記憶装置は、予め定められた折返し条件を
記憶する折返し条件記憶部を有し、上記処理装置は、上
記入力装置から入力された数式が行長を超えた場合に、
上記折返し条件記憶部に記憶された折返し条件に基づい
て、折返し位置を決定し、該折返し位置で折返す折返し
部を有することを特徴とする文書入力編集装置。 4、上記記憶装置は、予め定められた揃え条件を記憶す
る揃え条件記憶部を有し、上記処理装置は、上記揃え条
件記憶部に記憶された揃え条件に基づいて、揃え位置を
決定し、上記折返し位置を、該揃え位置に揃える揃え部
を有することを特徴とする請求項3記載の文書入力編集
装置。 5、上記折返し条件は、二項関係を記述する記号の前の
位置または二項演算子の前の位置を、少なくとも折返し
位置としており、各折返し位置には、優先順位が付与さ
れていることを特徴とする請求項1、2、3または4記
載の文書入力編集装置。 6、上記折返し位置に付与された優先順位は、任意に変
更できることを特徴とする請求項5記載の文書入力編集
装置。 7、上記揃え条件は、二項関係を記述する記号および二
項演算子を基にして定められた位置を、少なくとも揃え
位置としており、各揃え位置は、上記折返し位置に対応
していることを特徴とする請求項2または4、5記載の
文書入力編集装置。
[Scope of Claims] 1. A document input/editing device that inputs and edits a character string group including a mathematical formula and outputs an editing result, comprising a folding condition storage means for storing a predetermined folding condition, and inputting a mathematical formula. wrapping means that determines a wrapping position based on the wrapping condition stored in the wrapping condition storage means and wraps the item at the wrapping position when the input formula exceeds the line length when editing the input formula. A document input/editing device characterized by being provided with. 2. Alignment condition storage means for storing predetermined alignment conditions; and alignment means for determining an alignment position based on the alignment conditions stored in the alignment condition storage means and aligning the folding position to the alignment position. 2. The document input/editing device according to claim 1, further comprising: a document input/editing device; 3. An input device for inputting a group of character strings including mathematical formulas and various instructions, a storage device for storing the input group of character strings, a processing device for performing document editing processing according to the input instructions, and outputting the processing results. In the document input/editing device including an output device, the storage device has a folding condition storage unit that stores predetermined folding conditions, and the processing device is configured to input a mathematical formula inputted from the input device according to a line length. If it exceeds
A document input/editing device comprising: a folding unit that determines a folding position based on folding conditions stored in the folding condition storage unit, and folds the fold at the folding position. 4. The storage device has an alignment condition storage section that stores predetermined alignment conditions, and the processing device determines alignment positions based on the alignment conditions stored in the alignment condition storage section; 4. The document input/editing device according to claim 3, further comprising an alignment section for aligning the folding position to the alignment position. 5. The above wrapping condition sets at least the position before the symbol that describes the binary relationship or the position before the binary operator as the wrapping position, and each wrapping position is given a priority. A document input/editing device according to claim 1, 2, 3, or 4. 6. The document input/editing device according to claim 5, wherein the priority given to the return position can be changed arbitrarily. 7. The above alignment condition requires that at least the alignment position is a position determined based on a symbol describing a binary relationship and a binary operator, and that each alignment position corresponds to the above wrapping position. 6. A document input/editing device according to claim 2, characterized in that:
JP2095988A 1990-04-11 1990-04-11 Document input editing device Expired - Lifetime JP2802142B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2095988A JP2802142B2 (en) 1990-04-11 1990-04-11 Document input editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2095988A JP2802142B2 (en) 1990-04-11 1990-04-11 Document input editing device

Publications (2)

Publication Number Publication Date
JPH03292561A true JPH03292561A (en) 1991-12-24
JP2802142B2 JP2802142B2 (en) 1998-09-24

Family

ID=14152516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2095988A Expired - Lifetime JP2802142B2 (en) 1990-04-11 1990-04-11 Document input editing device

Country Status (1)

Country Link
JP (1) JP2802142B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6336284A (en) * 1986-07-31 1988-02-16 Showa Electric Wire & Cable Co Ltd Heat fixable toner
JPS63121970A (en) * 1986-11-12 1988-05-26 Canon Inc Document processor
JPH01128159A (en) * 1987-11-13 1989-05-19 Nippon Telegr & Teleph Corp <Ntt> Japanese word document producer
JPH01193967A (en) * 1988-01-29 1989-08-03 Hitachi Ltd Japanese message display system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6336284A (en) * 1986-07-31 1988-02-16 Showa Electric Wire & Cable Co Ltd Heat fixable toner
JPS63121970A (en) * 1986-11-12 1988-05-26 Canon Inc Document processor
JPH01128159A (en) * 1987-11-13 1989-05-19 Nippon Telegr & Teleph Corp <Ntt> Japanese word document producer
JPH01193967A (en) * 1988-01-29 1989-08-03 Hitachi Ltd Japanese message display system

Also Published As

Publication number Publication date
JP2802142B2 (en) 1998-09-24

Similar Documents

Publication Publication Date Title
US4445795A (en) Method and apparatus for merge processing in a text processing system
JP3599775B2 (en) Finite state coding system for hyphenation rules
US5878198A (en) Information processing apparatus and method and memory medium storing information processing program
JPH02123468A (en) Plotting of computer-aided plotting system
JPH03292561A (en) Document input/editing device
US5185854A (en) Document processing apparatus having a ruled line print control function
JPH03266066A (en) Character-string substitution system with attribute
JP3070701B2 (en) Program control method for interactive system
JPH0887406A (en) Program display device
JP3417960B2 (en) Sentence correction support method and device
JPH0424759A (en) Document processor
JP3034527B2 (en) Editor device
JP2789596B2 (en) Document processing device
JPH0612542B2 (en) How to copy the mark part of structured document
JP2761606B2 (en) Document data processing device
JPH06236246A (en) Source data editing device for designing slip
JPH05143545A (en) Instruction selection/execution processing system of plural instructions texts
JPH08101771A (en) General purpose check system for source program
JPS6320621A (en) Editing printer
JPH02116963A (en) Document data processing device
Van Le et al. A language to describe formatting directives for SGML documents
JPH01269983A (en) Text layout device
JPH03122755A (en) Document data processor
JPH0196724A (en) Picture output device
JPH01129352A (en) Device for preparing presentation materials