JPH0692153B2 - Method for clearing mathematical formulas in document processing system - Google Patents
Method for clearing mathematical formulas in document processing systemInfo
- Publication number
- JPH0692153B2 JPH0692153B2 JP59186320A JP18632084A JPH0692153B2 JP H0692153 B2 JPH0692153 B2 JP H0692153B2 JP 59186320 A JP59186320 A JP 59186320A JP 18632084 A JP18632084 A JP 18632084A JP H0692153 B2 JPH0692153 B2 JP H0692153B2
- Authority
- JP
- Japan
- Prior art keywords
- function
- argument
- area
- text
- size
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
- Dot-Matrix Printers And Others (AREA)
- Record Information Processing For Printing (AREA)
- Input From Keyboards Or The Like (AREA)
Description
【発明の詳細な説明】 〔発明の利用分野〕 本発明は、関数などの数式を含んだテキストを入力・編
集したり、清書・出力したりする文書処理システムにお
いて、関数記号領域のサイズ、関数内の引数の配置およ
び関数領域のサイズを可変にしうる数式清書方法に関す
る。Description: FIELD OF THE INVENTION The present invention relates to a function symbol area size, a function, and a function in a document processing system for inputting / editing text including formulas such as functions, and for clear copy / output. The present invention relates to a method for clearing mathematical expressions that can change the arrangement of arguments and the size of the function area.
近年、オフィス・オートメーションの発展にともない、
文書を電子計算機システム内で作成・修正し、これを電
子計算機に接続された印刷装置、出力装置に清書出力す
る利用方法が普及しつつある。数式を含んだテキストに
ついても同様である。ところが、数式の取り扱いは通常
のテキストと異なる。数式テキスト中の数学関数の扱い
においては、新しい関数記号の大きさをどのように設定
するか、あるいは関数記号と引数の位置関係および引数
と引数の位置関係をどのように設定し、かつ関数全体の
大きさをどのように設定するかという問題が発生する。
しかも、上記の問題は、これといった仕様の決め手がな
く、種々のシステム(印刷装置,出力装置,タイプライ
タ,写植機など)において独自の方式が採用されてい
る。さらに、これらのシステムでは、一度仕様が決定し
たものについては、ユーザの好みに合わない場合に変更
ができなかったり、設計・製作者自身が仕様を変えたい
場合にも多くの時間と手数を必要とすることが少なくな
い。これを、より具体的なシステムを例にとって考えて
みよう。With the development of office automation in recent years,
A method of using a document that is created / corrected in an electronic computer system and is output in a clear copy to a printing device or an output device connected to the electronic computer is becoming widespread. The same applies to text that includes mathematical formulas. However, the handling of mathematical formulas is different from ordinary text. How to set the size of a new function symbol or how to set the positional relationship between a function symbol and an argument and the positional relationship between an argument and an argument, and how to handle the whole function There is a problem of how to set the size of.
Moreover, with respect to the above problem, there is no deciding factor for such specifications, and various systems (printing devices, output devices, typewriters, typesetting machines, etc.) have adopted their own methods. In addition, these systems require a lot of time and effort when the specifications are once decided and cannot be changed if they do not meet the user's preference, or when the designer / manufacturer himself wants to change the specifications. There are quite a few Let's consider this with a more specific system as an example.
数式を扱ったテキスト処理システムの方式は、2種類に
分類できる。The methods of text processing systems that handle mathematical expressions can be classified into two types.
(1)タイプライタ・ベースの方式 (2)写植機法による方式 写植機法による方式について、Association for Comput
ing Machinery,Inc.Communications of the ACM,March
1975 Volume 18 Number3におけるBrian W.Kernighan an
d Lorinda L.Cherry(Bell Laboratories)による“A S
ystem for Typesetting Mathematics"と題する文献にお
いて論じられている。(1) Typewriter-based method (2) Method by the phototyper method Regarding the method by the phototyper method, Association for Comput
ing Machinery, Inc.Communications of the ACM, March
Brian W. Kernighan an in 1975 Volume 18 Number 3
“AS by d Lorinda L. Cherry (Bell Laboratories)
It is discussed in the literature entitled "ystem for Typesetting Mathematics".
上記の方式(1)の問題は、文字の大きさが固定的であ
ること、任意の行送りが不可能であり、高高通常行の1/
2の行送りで満足せざるをえないことである。このため
(1)の方式は、大きさの異なる2次元的な領域を縦・
横自由自在に任意の位置に配置する必要がある数式処理
に対しては機能不足である。The problem with the above method (1) is that the size of characters is fixed, arbitrary line spacing is not possible, and
It is necessary to be satisfied with the line spacing of 2. For this reason, the method of (1) uses two-dimensional areas of different sizes
There is a lack of functions for mathematical expression processing that needs to be freely and laterally arranged at any position.
上記の方式(2)は、方式(1)の問題の一解決法を与
えるが、関数記号の大きさや関数内の引数の配置、およ
び関数の大きさに関する仕様が、プログラムの処理の中
に埋め込まれているのが現状であり、仕様変更の際、プ
ログラム自身の修正が必要になる。このため、プログラ
ムを修正しては結果を確認するといった工程を繰り返す
ことになり、開発効率が悪く、結局品質の向上が困難に
なっている。The above method (2) provides a solution to the problem of the method (1), but the specifications regarding the size of the function symbol, the arrangement of arguments in the function, and the size of the function are embedded in the processing of the program. This is the current situation, and it is necessary to modify the program itself when changing the specifications. For this reason, the process of correcting the program and confirming the result is repeated, resulting in poor development efficiency and eventually making quality improvement difficult.
本発明の目的は、上記の問題に対処するため、数学関数
の割付け処理内容を関数情報テーブルの形で保持し、そ
れによってさらにその内容を書き換える機能をもつこと
によって、プログラムの論理を変更することなく、数学
関数の割付け仕様が容易に変更できるような数式清書方
法を提供することにある。An object of the present invention is to change the logic of a program by having the function of retaining the contents of mathematical function allocation processing in the form of a function information table and thereby rewriting the contents in order to address the above problems. The purpose of the present invention is to provide a method for clearing mathematical formulas that allows the assignment specifications of mathematical functions to be changed easily.
さらに、本発明の他の目的は、関数情報テーブルの中の
関数識別コードを追加することにより、既存の関数タイ
プの仕様をもった新しい関数を、容易に追加できる数式
清書方法を提供することにある。Further, another object of the present invention is to provide a mathematical formula writing method that can easily add a new function having a specification of an existing function type by adding a function identification code in a function information table. is there.
本発明の特徴は、テキストを入力する入力手段と、テキ
ストの割付け指示情報を予め記憶しておく記憶手段と、
上記入力手段から入力されたテキストを編集するテキス
ト編集手段と、上記テキスト編集手段により編集された
テキストを格納する格納手段と、上記格納手段から取り
出されたテキストについて、テキスト中に付加された割
付け指示または上記入力手段から入力された割付け指示
に従って上記記憶手段に記憶された割付け指示情報に基
づき割付けを行う割付け手段と、上記割付け手段により
得られる清書結果を出力する出力手段を有する文書処理
システムであって、数式の割付け指示情報として、固有
の関数記号と引数とを予め定義した複数の関数につい
て、少なくとも関数識別コードと、関数の有する引数の
それぞれについて引数文字比率とを上記記憶手段に予め
記憶し、上記割付け手段において、上記関数識別コード
を参照して割付け対象である複数の関数のうち該当する
関数を識別し、かつ、上記入力手段より入力された引数
文字が上記関数の有するどの引数に該当するかを解析
し、該当する上記引数文字比率を上記引数に適用してそ
の引数領域の大きさを決定し、上記引数の引数領域の大
きさを変数として、関数記号の大きさを予め規定する第
一の関係式を適用して、関数記号の大きさを決定し、上
記引数の引数領域の大きさと上記関数記号の大きさとを
変数として、関数記号と引数との配置を予め規定する第
二の関係式を適用して、関数記号と引数の配置を決定す
ることを特徴とする文書処理システムにおける数式清書
方法にある。A feature of the present invention is that an input means for inputting text, a storage means for storing text allocation instruction information in advance,
Text editing means for editing the text input from the input means, storage means for storing the text edited by the text editing means, and allocation instruction added to the text for the text retrieved from the storage means Alternatively, the document processing system has an allocating unit that performs allocation based on the allocation instruction information stored in the storage unit in accordance with the allocation instruction input from the input unit, and an output unit that outputs the clean copy result obtained by the allocation unit. As the assignment instruction information of the mathematical expression, at least the function identification code and the argument character ratio for each argument of the function are stored in advance in the storage means for a plurality of functions in which unique function symbols and arguments are defined in advance. In the allocating means, the allocation pair is referred to by referring to the function identification code. The corresponding function is identified from among the plurality of functions, and the argument character input from the input means is analyzed as to which argument the function has, and the applicable argument character ratio is set to the argument. The size of the argument area is determined by applying it, and the size of the function symbol is applied by applying the first relational expression that predefines the size of the function symbol with the size of the argument area of the above argument as a variable. Determine the placement of the function symbol and the argument by applying the second relational expression that predefines the placement of the function symbol and the argument, using the size of the argument area of the argument and the size of the function symbol as variables. A method for clearing mathematical formulas in a document processing system characterized by:
本発明では、関数がその割付け方法によっていくつかの
タイプに分類できることに着眼し、これを関数タイプと
名付け、関数の割付け情報を各関数タイプ別に保持する
こととした。例えば、第1図において、和関数(Σ)や
積関数(Π)および和集合関数(U)などは、共に、引
数の最大個数が“3"で、各引数の名称については第1引
数が下限値、第2引数は上限値、第3引数が関数テキス
トであり、かつ、関数における引数文字比率がそれぞ
れ、“50(%)",“50(%)",“100(%)”であり、
しかも、関数記号の大きさや関数記号と各引数との配置
の仕方が一様である、という点でこれらの関数を同タイ
プとして扱い、“Σタイプ”と名付けることにした。In the present invention, we have focused on the fact that functions can be classified into several types according to their allocation method, named them function types, and retained function allocation information for each function type. For example, in FIG. 1, for the sum function (Σ), the product function (Π), and the union function (U), the maximum number of arguments is “3”, and the first argument is the first argument. The lower limit value, the second argument is the upper limit value, the third argument is the function text, and the argument character ratio in the function is "50 (%)", "50 (%)", "100 (%)", respectively. Yes,
Moreover, since the size of the function symbol and the way of arranging the function symbol and each argument are uniform, these functions are treated as the same type and named "Σ type".
次に、関数の割付け法、すなわち、関数内の引数の配置
や関数記号と引数との配置が、ある種の一次式で表わせ
ること、およびその一次式における係数を関数タイプ毎
に変えることにより各種の関数が扱えることに着目し、
関数タイプ毎に一次式を保持し、かつ、一次式中の係数
を、関数記号領域サイズ決定パラメタおよび関数領域サ
イズ補正パラメタとして保持することにした。Next, by assigning functions, that is, the arrangement of arguments within a function and the arrangement of function symbols and arguments can be expressed by a certain linear expression, and the coefficient in the linear expression can be changed for each function type. Focusing on the fact that various functions can be handled,
A linear expression is held for each function type, and the coefficient in the linear expression is held as a function symbol area size determination parameter and a function area size correction parameter.
さらに、上記の関数割付け方法が、一意に決まらず、最
良の方法を見つけるために、上記の関数タイプ別の情報
を常に変更できることが好ましいということに着眼し、
関数の割付け情報を、第1図のようなテーブルの形で保
持することにし、これを関数情報テーブルと名付けた。Furthermore, focusing on the fact that the above function allocation method is not uniquely determined, it is preferable that the above information for each function type can always be changed in order to find the best method.
The function allocation information is held in the form of a table as shown in FIG. 1, and this is named the function information table.
以上により、本発明では、関数情報テーブルを保持し、
その内容を書き換える機能をもつことにより、プログラ
ムの論理を変更することなく、関数の割付け仕様を、少
ない労力、テーブル量で、容易に変更できる。As described above, the present invention holds the function information table,
By having the function of rewriting the contents, the function allocation specification can be easily changed with a small amount of labor and a table amount without changing the logic of the program.
さらに、関数情報テーブルに、新たな関数識別コードを
追加するだけで、既存の関数タイプの仕様をもった新規
の関数を、容易に追加できる。Furthermore, a new function having an existing function type specification can be easily added only by adding a new function identification code to the function information table.
以下、本発明の一実施例を図面を用いて詳細に説明す
る。An embodiment of the present invention will be described in detail below with reference to the drawings.
第2図は、文書の作成手順の概念を示す。図中の符号20
1は、テキストの入出力にユーザが用いる端末装置、符
号202は、作成・編集したテキストを格納するテキスト
・ファイル、符号203は、清書結果を出力する出力装
置、符号204は、テキストの作成・編集・清書を行なう
文書処理システム、符号205は、端末ユーザ入出力制御
部、符号206は、テキスト作成・編集制御部、符号207
は、清書出力制御部、符号208は、出力装置制御部であ
る。FIG. 2 shows the concept of a document creation procedure. Reference numeral 20 in the figure
1 is a terminal device used by a user for inputting / outputting text, reference numeral 202 is a text file for storing created / edited text, reference numeral 203 is an output device for outputting a clean copy result, and reference numeral 204 is text creation / editing. A document processing system for editing / copying, reference numeral 205 is a terminal user input / output control unit, reference numeral 206 is a text creation / editing control unit, reference numeral 207.
Is a clean copy output control unit, and reference numeral 208 is an output device control unit.
端末装置201からテキストを入力すると、端末ユーザ入
出力制御部205はテキスト作成・編集制御部206を起動
し、入力テキストを渡す。テキスト作成・編集制御部20
6は、ユーザの指示によって入力テキストに割付けのた
めの指示を加えたり、テキストの追加・修正・削除など
の編集を施した後、テキスト・ファイル202に格納す
る。テキストの作成・編集の結果は、端末装置201に表
示する。ユーザは、端末装置201で作成・編集結果を確
認しながらテキストの再編集や清書を行なう。When a text is input from the terminal device 201, the terminal user input / output control unit 205 activates the text creation / editing control unit 206 and passes the input text. Text creation / edit control unit 20
6 stores the input text in the text file 202 after adding an instruction for allocation to the input text, editing the text such as addition / correction / deletion, and the like. The result of text creation / editing is displayed on the terminal device 201. The user reedits the text or makes a clear copy while confirming the creation / editing result on the terminal device 201.
ユーザが端末装置201から、清書の指示を与えると、端
末ユーザ入出力制御部205は清書出力制御部207を起動す
る。清書出力制御部207は、テキスト・ファイル202から
テキストを取り出し、テキスト中の割付け指示および端
末装置201からの割付け指示に従ってテキストを割付
け、清書を行なう。清書出力制御部207は、清書結果
を、端末ユーザ入出力制御部205の起動によって端末装
置201に表示したり、あるいは出力装置制御部208の起動
によって出力装置203に出力する。When the user gives a clean copy instruction from the terminal device 201, the terminal user input / output control unit 205 activates the clean copy output control unit 207. The clean copy output control unit 207 takes out the text from the text file 202, allocates the text in accordance with the allocation instruction in the text and the allocation instruction from the terminal device 201, and performs the clean copy. The clean copy output control unit 207 displays the clean copy result on the terminal device 201 by activating the terminal user input / output control unit 205 or outputs it to the output device 203 by activating the output device control unit 208.
第3図は、第2図の清書出力制御部207において、本発
明の数式清書方式を適用した数式テキスト処理について
より詳細に説明したものである。図中の符号301は、関
数の割付け情報を保持する関数情報テーブル、符号302
は、関数記号領域のサイズ決定に用いる関係式A、符号
303は、関数領域のサイズ決定に用いる関係式B、符号3
04は、解析処理、符号305は、引数領域サイズ決定処
理、符号306は、関数記号領域サイズ決定処理、符号307
は、関数領域サイズ決定処理、符号308は、割付け処理
である。符号309から符号314までは、関数テキストの解
析から割付けに至る過程を例示したものである。FIG. 3 is a more detailed description of mathematical expression text processing to which the mathematical expression clearing method of the present invention is applied in the clean copy output control unit 207 of FIG. Reference numeral 301 in the figure is a function information table holding function allocation information, reference numeral 302
Is the relational expression A, the code used to determine the size of the function symbol area
303 is a relational expression B used for determining the size of the function area, and reference numeral 3
Reference numeral 04 is an analysis processing, reference numeral 305 is an argument area size determination processing, reference numeral 306 is a function symbol area size determination processing, reference numeral 307.
Is a function area size determination process, and reference numeral 308 is an allocation process. Reference numerals 309 to 314 exemplify processes from analysis of function text to allocation.
関数情報テーブル301の構成は、第4図に示すように、
関数タイプ401、関数識別コード402、引数の最大個数40
3、引数名称404、引数文字比率405、関数記号領域サイ
ズ決定パラメタ406、および関数領域サイズ補正パラメ
タ407からなり、引数名称404と引数文字比率405は、引
数の最大個数403が示す数だけ保持される。The structure of the function information table 301 is as shown in FIG.
Function type 401, function identification code 402, maximum number of arguments 40
3, argument name 404, argument character ratio 405, function symbol area size determination parameter 406, and function area size correction parameter 407.The argument name 404 and argument character ratio 405 are held by the number indicated by the maximum number of arguments 403. It
テキスト・ファイル202から取り出した関数テキスト309
において、“%SM<”は和(Σ)の開始を、“;"は引数
間の区切りを、“>”は関数の終了をそれぞれ意味す
る。関数の種類は、分数,根号,積分,Σ関数,積,和
集合,積集合,および上限値・下限値付き任意関数など
があり、各関数の入力形式と対応する出力は第5図の通
りである。Function text 309 retrieved from text file 202
, "% SM <" means the start of the sum (Σ), ";" means the delimiter between the arguments, and ">" means the end of the function. The types of functions include fractions, radicals, integrals, Σ functions, products, unions, intersections, and arbitrary functions with upper and lower limit values. The input format of each function and the corresponding output are shown in Fig. 5. On the street.
解析処理304では、関数テキスト309の妥当性を関数情報
テーブル301の関数タイプ401と関数識別コード402と引
数の最大個数403の参照によりチェックした後、引数名
称404の参照によって各引数の名称を決定し、解析結果3
10を出力する。解析結果310は、関数記号が“Σ”、第
1引数が下限値で“i=0"、第2引数が上限値で
“∞”、第3引数が関数テキストで“x1"となる。In the analysis process 304, the validity of the function text 309 is checked by referring to the function type 401, the function identification code 402, and the maximum number of arguments 403 of the function information table 301, and then the name of each argument is determined by referring to the argument name 404. Analysis result 3
Outputs 10. In the analysis result 310, the function symbol is “Σ”, the first argument is the lower limit value “i = 0”, the second argument is the upper limit value “∞”, and the third argument is the function text “x 1 ”.
引数領域サイズ決定処理305では、解析結果310を入力と
し、関数情報テーブル301の引数文字比率405を参照する
ことにより、各引数の引数領域サイズ311を得る。In the argument area size determination processing 305, the analysis result 310 is input and the argument character ratio 405 of the function information table 301 is referenced to obtain the argument area size 311 of each argument.
関数記号領域サイズ決定処理306では、各引数の引数領
域サイズ311を入力とし、関数情報テーブル301の関数記
号領域サイズ決定パラメタ406および関係式A302を用い
て、関数記号領域312を生成する。ここで関係式A302
は、引数領域のサイズに応じて関数記号領域のサイズを
決定する一次式である。In the function symbol area size determination processing 306, the argument area size 311 of each argument is input, and the function symbol area 312 is generated using the function symbol area size determination parameter 406 and the relational expression A302 of the function information table 301. Where the relational expression A302
Is a linear expression that determines the size of the function symbol area according to the size of the argument area.
関数領域サイズ決定処理307では、各引数の引数領域サ
イズ311と関数記号領域312とを入力し、関数情報テーブ
ル301の関数領域サイズ補正パラメタ407および関係式B3
03を用いることにより、各引数と関数記号との配置方法
を決定し、関数領域313を生成する。ここで関係式B303
は、引数領域のサイズと関数記号領域のサイズおよび関
数領域サイズ補正パラメタの一次式であり、それによっ
て関数領域のサイズを決定するものである。In the function area size determination processing 307, the argument area size 311 of each argument and the function symbol area 312 are input, and the function area size correction parameter 407 and the relational expression B3 of the function information table 301 are input.
By using 03, the arrangement method of each argument and the function symbol is determined, and the function area 313 is generated. Where the relational expression B303
Is a linear expression of the size of the argument area, the size of the function symbol area, and the function area size correction parameter, and determines the size of the function area.
割付け処理308は、関数領域313を予め定められている位
置に配置する。The allocation process 308 arranges the function area 313 in a predetermined position.
本発明の数式清書方法を数式テキスト処理に適用した実
施例として、プログラムの処理の流れを第6図に示す。FIG. 6 shows a flow of processing of a program as an embodiment in which the mathematical expression clearing method of the present invention is applied to mathematical expression text processing.
まず、第6図の表記法を示す。図中の矩形は処理を表わ
し、符号601,606,610および611のような右縦線付き矩形
は反復条件を、そして、符号622,623の形は選択条件を
表わす。また、符号620,621の横二重線は、線の左側の
処理を右側の処理によって定義することを表わす。一般
に、上から下へと縦線でつながった順序に処理が行なわ
れる。反復条件601,606,610,611では、括弧内の条件を
満たす間、横線でつながった右側の処理を繰り返す。ま
た、選択条件622,623は、条件によって処理を選択して
実行する。First, the notation of FIG. 6 is shown. The rectangles in the figure represent the processing, the rectangles with right vertical lines such as the symbols 601, 606, 610 and 611 represent the repeating condition, and the shapes of the symbols 622, 623 represent the selecting condition. The horizontal double lines 620 and 621 indicate that the processing on the left side of the line is defined by the processing on the right side. Generally, the processing is performed in the order in which vertical lines are connected from top to bottom. In the iterative conditions 601, 606, 610, 611, while the conditions in parentheses are satisfied, the processing on the right side connected by a horizontal line is repeated. Further, the selection conditions 622 and 623 select and execute the process according to the conditions.
本実施例では、数式割付けの基本的データ構造として第
7図のようなエリア701を採用する。エリアは、ベース
・ラインとベース・オリジンをもつ矩形である。各エリ
アはその中に独自の水平方向の文字列出力基準ラインを
もち、これをベース・ラインと呼ぶ。エリア・オリジン
はエリアの左上隅の点であり、このエリア・オリジンの
座標をエリア・アドレスという。エリアのサイズは、エ
リア縦長、エリア横長、およびエリア・ベース上の高さ
の3つの要素からなる。エリアのサイズは予め定まって
いるのではなく、数式を割付けていく段階で決定される
ものである。数式割付けにおいては、行エリア708、関
数エリア706、引数エリア705、およびテキスト・エリア
704などを扱う。ベース・ラインは行エリア708にテキス
ト・エリア704や関数エリア706を配置する際、関数エリ
ア706中に引数エリア705を配置する際、引数エリア705
中にテキスト・エリア704や関数エリア706を配置する際
の基準位置を与えるものである。In this embodiment, an area 701 as shown in FIG. 7 is adopted as a basic data structure for mathematical expression allocation. An area is a rectangle with a base line and a base origin. Each area has its own horizontal character string output reference line, which is called a base line. The area origin is the upper left corner of the area, and the coordinates of this area origin are called the area address. The size of the area is composed of three elements: the area length, the area width, and the height above the area base. The size of the area is not determined in advance, but is determined at the stage of assigning the mathematical formula. In formula assignment, line area 708, function area 706, argument area 705, and text area
Handles 704 etc. The base line is the argument area 705 when the text area 704 and the function area 706 are arranged in the line area 708, and the argument area 705 is arranged in the function area 706.
It provides a reference position when arranging the text area 704 and the function area 706 therein.
上記の表記法およびエリアの概念に基づいて、第6図の
処理を第7図のエリアの例を用いて説明する。符号601
により、テキストが終了するまで、符号602,603,604,60
5の順で処理を繰り返す。符号602でテキスト・ファイル
202から1行分のテキストを入力し、符号603で行エリア
708を生成し、符号604で行エリアの708配置を行なった
後、符号605で出力する。行エリア生成603では、符号60
6により行が継続する間、符号622でテキストの解析を行
ない、その結果が通常テキストである場合には符号607
でテキスト・エリア・サイズの決定、関数情報テーブル
301の関数識別コード402の参照により関数テキストであ
る場合には符号608で関数エリア706の生成をそれぞれ行
なった後符号618でサブ行エリア707のサイズを決定す
る。符号606で行が終了すると、符号619で行エリア・サ
イズを決定する。行エリア・サイズ決定619では、符号6
18で生成したサブ行エリア707に行ピッチを付加するこ
とにより、行エリア708を生成し、そのサイズを決定す
る。サブ行エリア・サイズ決定618では、符号607,608で
生成したテキスト・エリア704および関数エリア706をも
とにサブ行エリア707を生成し、そのサイズを決定す
る。Based on the above notation and concept of area, the process of FIG. 6 will be described using the example of the area of FIG. Reference numeral 601
Until the end of the text, code 602,603,604,60
The process is repeated in the order of 5. Text file at 602
Enter the text for one line from 202, and use the line area 603.
708 is generated, the row area 708 is arranged at reference numeral 604, and then output at reference numeral 605. In line area generation 603, reference numeral 60
Parse the text with code 622 while continuing the line with 6 and code 607 if the result is normal text.
Text area size determination, function information table
If the text is a function text by referring to the function identification code 402 of 301, the function area 706 is generated at reference numeral 608, and then the size of the sub row area 707 is determined at reference numeral 618. When the line ends at 606, the line area size is determined at 619. In line area size determination 619, code 6
A row area 708 is generated by adding a row pitch to the sub row area 707 generated in 18, and the size thereof is determined. In the sub-row area size determination 618, the sub-row area 707 is generated based on the text area 704 and the function area 706 generated by the reference numerals 607 and 608, and the size thereof is determined.
テキスト・エリア・サイズ決定607では、文字エリア701
1個ずつに文字ピッチを付加することにより、テキス
ト・エリア704を生成し、そのサイズを決定する。In the text area size determination 607, the character area 701
The text area 704 is generated by adding the character pitch to each one, and its size is determined.
関数エリア生成608では、まず符号609で引数の順序番号
iを“1"にセットした後、符号610により、関数が継続
する間、第1引数、第2引数、…の処理を行なう。関数
情報テーブル301の引数の最大個数403のすべての引数に
ついて処理が終り、符号610で関数が終了すると、関数
情報テーブル301の関数記号領域サイズ決定パラメタ406
と関係式A302を参照して符号616により関数記号エリア
・サイズを決定し、関数領域サイズ補正パラメタ407と
関係式B303を参照して符号617により関数エリア・サイ
ズを決定する。第i引数の処理では、関数情報テーブル
301の引数文字比率405を参照しながら、符号611によ
り、第i引数が継続する間、符号623でテキストの解析
を行ない、その結果が通常テキストである場合には符号
612でテキスト・エリア・サイズの決定を、関数テキス
トである場合には符号613で関数エリアの生成をそれぞ
れ行なった後、符号614で第i引数エリアのサイズを決
定する。ここで、関数エリア生成608は、自分自身すな
わち関数エリア生成613を呼び出している。このような
呼び出しを再帰的呼び出しという。複雑な数式テキスト
では、関数の中に他の関数を含むことがある。これを関
数のネストを呼ぶが、本実施例では、上記の関数エリア
生成613の再帰的呼び出しにより、関数の多重ネストの
処理が可能である。第i引数エリア・サイズ決定614で
は、符号612,613で生成したテキスト・エリア704および
関数エリアをもとに第i引数エリア705を生成し、その
サイズを決定する。符号611で第i引数が終了すると、
符号611で引数の順序番号iを“1"増加し、次の順序番
号の引数処理に備える。ここでiが引数の最大個数403
を超えると関数終了とみなす。In the function area generation 608, first, the sequence number i of the argument is set to "1" at reference numeral 609, and then the first argument, the second argument, ... Are processed while the function continues at reference numeral 610. When the processing is completed for all the arguments of the maximum number 403 of arguments of the function information table 301 and the function ends at reference numeral 610, the function symbol area size determination parameter 406 of the function information table 301
Then, the function symbol area size is determined by the reference numeral 616 by referring to the relational expression A302, and the function area size is determined by the reference numeral 617 by referring to the function area size correction parameter 407 and the relational expression B303. In the processing of the i-th argument, the function information table
With reference to the argument character ratio 405 of 301, the code 611 analyzes the text with the code 623 while the i-th argument continues. If the result is normal text, the code
After the text area size is determined at 612 and the function area is generated at 613 in the case of function text, the size of the i-th argument area is determined at 614. Here, the function area generation 608 calls itself, that is, the function area generation 613. Such a call is called a recursive call. In complex formula text, some functions may contain other functions. This is called a function nest. In this embodiment, the function area generation 613 can be recursively called to perform the function multiple nest processing. In the i-th argument area size determination 614, the i-th argument area 705 is generated based on the text area 704 and the function area generated by the reference numerals 612 and 613, and the size thereof is determined. When the i-th argument ends at reference numeral 611,
At reference numeral 611, the argument sequence number i is incremented by “1” to prepare for the argument process of the next sequence number. Where i is the maximum number of arguments 403
If it exceeds, it is regarded as the end of the function.
関数符号エリア・サイズ決定616の処理について、Σタ
イプの関数の例を第8図に示す。Σタイプの関数の場
合、関数記号エリア801のサイズ、すなわち、エリア縦
音fa、エリア横長fb、およびエリア・ベース上の高
さfcは、第3引数エリア802のエリア・サイズすなわ
ちエリア縦長a3、エリア・ベース上の高さc3と、第4図
の関数記号領域サイズ決定パラメタ406の値k1,k2,……
とを用いて表した第9図の関係式によって決定できる。FIG. 8 shows an example of a Σ type function for the processing of the function code area size determination 616. In the case of a Σ type function, the size of the function symbol area 801, that is, the area vertical sound f a , the area horizontal length f b , and the height f c on the area base are the area size of the third argument area 802, that is, the area. The vertical length a 3 , the height c 3 on the area base, and the values k 1 , k 2 , ... of the function symbol area size determination parameter 406 in FIG.
It can be determined by the relational expression in FIG.
関数エリア・サイズ決定617の処理について、同様に、
Σタイプの関数の例を第10図に示す。関数エリア1001の
サイズ、すなわち、エリア縦長a、エリア横長b、およ
びエリア・ベース上の高さcは、第1引数エリア1002の
サイズa1,b1と、第2引数エリア1003のサイズa2,b2と、
第3引数エリア1004のサイズa3,b3,c3と、関数記号エリ
ア1005のサイズfa,fb,fcと、さらに、第4図の関数
領域サイズ補正パラメタ407の値e1,e2,…とを用いて表
した第11図の関係式によって決定できる。Regarding the processing of the function area size determination 617, similarly,
An example of a Σ type function is shown in FIG. The size of the function area 1001, i.e., area Vertical a, area Horizontal b, and the height c of the area base size a 1, b 1 of the first argument area 1002, the size a 2 of the second argument area 1003 , b 2 and
The sizes a 3 , b 3 , c 3 of the third argument area 1004, the sizes f a , f b , f c of the function symbol area 1005, and the value e 1 of the function area size correction parameter 407 of FIG. It can be determined by the relational expression in FIG. 11 expressed by using e 2 ,.
なお、第9図と第11図における式中のHは、文書テキス
トのフォントの高さを示している。It should be noted that H in the formulas in FIGS. 9 and 11 indicates the height of the font of the document text.
第12図は、本実施例の出力サンプルである。FIG. 12 is an output sample of this embodiment.
本実施例によれば、 (1) 分数や根号のように同時に縦・横に延びる2次
元的な配置 (2) 複数な数式における2次元的配置の多重な入れ
子、すなわち、関数の多重ネストの処理 などの、数式テキストの割付けに特有な処理が可能にな
り数式清書が実現できる。According to the present embodiment, (1) a two-dimensional arrangement that extends vertically and horizontally at the same time as a fraction or a radical (2) multiple nesting of two-dimensional arrangement in a plurality of mathematical expressions, that is, multiple nesting of functions The processing unique to the allocation of mathematical formula text, such as the processing of, can be performed, and the mathematical formula clear copy can be realized.
また、関数情報テーブルを保持し、それを参照すること
によって、以下の効果がある。In addition, by holding the function information table and referring to it, the following effects can be obtained.
(1) 関数タイプ、関数識別コード、引数の最大個数
および引数名称などの情報により、関数テキストの妥当
性のチェックおよび解析処理が可能である。(1) It is possible to check the validity and analyze the function text based on the information such as the function type, the function identification code, the maximum number of arguments, and the argument name.
(2) 引数文字比率により、Σ式などにおいて上限値
・下限値に用いる文字のサイズを変更できる。(2) Depending on the argument character ratio, the size of the character used for the upper limit value and the lower limit value in the Σ formula etc. can be changed.
(3) 関数記号領域サイズ決定パラメタにより、引数
領域サイズに応じて関数記号領域のサイズを決定でき
る。(3) The size of the function symbol area can be determined according to the argument area size by the function symbol area size determination parameter.
(4) 関数領域サイズ補正パラメタにより、引数領域
のサイズや関数記号領域のサイズに応じて、関数領域内
の引数領域の配置、引数領域と関数記号領域の配置、お
よび関数領域のサイズを決定できる。(4) The function area size correction parameter can determine the arrangement of the argument areas within the function area, the arrangement of the argument areas and the function symbol area, and the size of the function area according to the size of the argument area and the size of the function symbol area. .
本発明によれば、関数情報テーブルの関数記号領域決定
パラメタを書き換えることにより関数記号領域のサイズ
の変更を、同様に関数領域補正パラメタを書き換えるこ
とにより、関数記号と引数の位置関係の変更や引数と引
数の位置関係の変更を、それぞれプログラム自身の修正
手順を踏むことなく容易に行なうことが可能となり、ユ
ーザの好みに合った出力結果を得ることができるという
効果があり、一方プログラムの設計・製作者自身にとっ
ては、機能的にも美的にも最も相応しい出力仕様を得る
ため工数が削減できるという効果がある。According to the present invention, the size of the function symbol area is changed by rewriting the function symbol area determination parameter of the function information table, and similarly, the positional relationship between the function symbol and the argument is changed and the argument is changed by rewriting the function area correction parameter. It is possible to easily change the positional relationship between the argument and the argument without going through the procedure of modifying the program itself, and it is possible to obtain the output result that suits the user's preference. For the producer himself, there is an effect that man-hours can be reduced in order to obtain the most suitable output specifications both in terms of function and aesthetics.
さらに、関数情報テーブルは、関数をその割付け法によ
って分類した関数タイプ毎の情報をもつので、既存の関
数タイプの新しい関数記号を容易に追加できるという効
果がある。Furthermore, since the function information table has information for each function type in which the functions are classified by the allocation method, there is an effect that a new function symbol of an existing function type can be easily added.
第1図は、関数情報テーブルの具体例を示す図、第2図
は文書の作成手順の概念図、第3図は第2図の清書出力
制御部の詳細を示す図、第4図は関数情報テーブルの構
造図、第5図は関数毎の入力形式と出力の対応図、第6
図は本発明を適用したプログラムの流れ図、第7図はエ
リアの概念と構成の図、第8図はΣ関数に関する関数記
号エリア・サイズ決定の例、第9図はΣ関数に関する関
数記号エリア・サイズ決定のための関係式の例を示す
図、第10図はΣ関数に関する関数エリア・サイズ決定の
例を示す図、第11図はΣ関数に関する関数エリア・サイ
ズ決定のための関係式の例を示す図、第12図は本発明の
実施例における出力サンプルを示す図である。FIG. 1 is a diagram showing a specific example of a function information table, FIG. 2 is a conceptual diagram of a document creation procedure, FIG. 3 is a diagram showing details of the clean copy output control unit of FIG. 2, and FIG. 4 is a function. Structure diagram of information table, FIG. 5 is a correspondence diagram of input format and output for each function, 6
FIG. 7 is a flow chart of a program to which the present invention is applied, FIG. 7 is a diagram of the concept and structure of an area, FIG. 8 is an example of function symbol area size determination for a Σ function, and FIG. 9 is a function symbol area for a Σ function. FIG. 10 is a diagram showing an example of a relational expression for determining a size, FIG. 10 is a diagram showing an example of determining a function area size regarding a Σ function, and FIG. 11 is an example of a relational expression for determining a function area size regarding a Σ function. FIG. 12 is a diagram showing an output sample in the embodiment of the present invention.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 3/12 V ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI technical display location G06F 3/12 V
Claims (5)
の割付け指示情報を予め記憶しておく記憶手段と、上記
入力手段から入力されたテキストを編集するテキスト編
集手段と、上記テキスト編集手段により編集されたテキ
ストを格納する格納手段と、上記格納手段から取り出さ
れたテキストについて、テキスト中に付加された割付け
指示または上記入力手段から入力された割付け指示に従
って上記記憶手段に記憶された割付け指示情報に基づき
割付けを行う割付け手段と、上記割付け手段により得ら
れる清書結果を出力する出力手段を有する文書処理シス
テムであって、 数式の割付け指示情報として、固有の関数記号と引数と
を予め定義した複数の関数について、少なくとも関数識
別コードと、関数の有する引数のそれぞれについて引数
文字比率とを上記記憶手段に予め記憶し、 上記割付け手段において、上記関数識別コードを参照し
て割付け対象である複数の関数のうち該当する関数を識
別し、かつ、上記入力手段より入力された引数文字が上
記関数の有するどの引数に該当するかを解析し、 該当する上記引数文字比率を上記引数に適用してその引
数領域の大きさを決定し、 上記引数の引数領域の大きさを変数として、関数記号の
大きさを予め規定する第一の関係式を適用して、関数記
号の大きさを決定し、 上記引数の引数領域の大きさと上記関数記号の大きさと
を変数として、関数記号と引数との配置を予め規定する
第二の関係式を適用して、関数記号と引数の配置を決定
することを特徴とする文書処理システムにおける数式清
書方法。1. An input means for inputting a text, a storage means for storing text allocation instruction information in advance, a text editing means for editing the text input from the input means, and an editing by the text editing means. The storage means for storing the stored text and the text extracted from the storage means, in the allocation instruction information stored in the storage means according to the allocation instruction added in the text or the allocation instruction input from the input means. A document processing system having an allocating means for allocating based on the above, and an output means for outputting a clear copy result obtained by the allocating means, wherein a plurality of predefined function symbols and arguments are defined as allocation instruction information of a mathematical expression. For functions, at least the function identification code and argument statement for each of the arguments that the function has The character ratio is stored in advance in the storage means, the allocation means refers to the function identification code to identify a corresponding function among a plurality of functions to be allocated, and is input from the input means. Analyze which argument of the above function the argument character corresponds to, apply the corresponding argument character ratio to the above argument to determine the size of the argument area, and change the size of the argument area of the above argument to a variable. , The first relational expression that predefines the size of the function symbol is applied to determine the size of the function symbol, and the size of the argument area of the argument and the size of the function symbol are used as variables, and the function symbol is A method for clearing mathematical formulas in a document processing system, characterized in that the arrangement of function symbols and arguments is determined by applying a second relational expression that predefines the arrangement of symbols and arguments.
テムにおける数式清書方法において、 上記第一の関係式の係数である関数記号領域決定パラメ
タと上記第二の関係式の係数である関数領域補正パラメ
タとを上記記憶手段に記憶しておくことを特徴とする文
書処理システムにおける数式清書方法。2. A mathematical expression clearing method in a document processing system according to claim 1, wherein a function symbol area determination parameter which is a coefficient of the first relational expression and a function which is a coefficient of the second relational expression. A method for clearing mathematical formulas in a document processing system, characterized in that area correction parameters are stored in the storage means.
テムにおける数式清書方法において、 関数記号と引数の配置を決定するときに、配置された上
記関数記号と上記引数とを一つの関数領域として構成
し、かつ、上記関数領域に他の関数もしくはテキストと
水平方向に並置するための基準を持たせたことを特徴と
する文書処理システムにおける数式清書方法。3. A mathematical expression clearing method in a document processing system according to claim 1, wherein when arranging a function symbol and an argument, the arranged function symbol and the argument are combined into one function area. And a standard for arranging the function area in parallel with another function or text in the horizontal direction, a method for clearing mathematical formulas in a document processing system.
テムにおける数式清書方法において、 分数式に対して上記関数識別コードを割当て、上記分数
式の有する引数として分子及び分母を定義したことを特
徴とする文書処理システムにおける数式清書方法。4. A method of clearing a mathematical expression in a document processing system according to claim 1, wherein the function identification code is assigned to a fractional expression, and a numerator and a denominator are defined as arguments of the fractional expression. A method for clearing mathematical formulas in a document processing system.
テムにおける数式清書方法において、 和関数に対して上記関数識別コードを割当て、上記和関
数の固有の関数記号としてΣ記号を、かつ上記和関数の
有する引数として上限値、下限値及び数式テキストを定
義したことを特徴とする文書処理システムにおける数式
清書方法。5. A mathematical expression clearing method in a document processing system according to claim 1, wherein the function identification code is assigned to a sum function, and a Σ symbol is given as a unique function symbol of the sum function, and A method for clearing mathematical formulas in a document processing system, characterized in that an upper limit value, a lower limit value, and a mathematical formula text are defined as arguments of a sum function.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59186320A JPH0692153B2 (en) | 1984-09-07 | 1984-09-07 | Method for clearing mathematical formulas in document processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59186320A JPH0692153B2 (en) | 1984-09-07 | 1984-09-07 | Method for clearing mathematical formulas in document processing system |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5239349A Division JP2601153B2 (en) | 1993-09-27 | 1993-09-27 | Mathematical formula |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6164451A JPS6164451A (en) | 1986-04-02 |
| JPH0692153B2 true JPH0692153B2 (en) | 1994-11-16 |
Family
ID=16186268
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59186320A Expired - Lifetime JPH0692153B2 (en) | 1984-09-07 | 1984-09-07 | Method for clearing mathematical formulas in document processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0692153B2 (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62250481A (en) * | 1986-03-31 | 1987-10-31 | ウオング・ラボラトリ−ズ・インコ−ポレ−テツド | Multi-order or multi-direction text editor |
| EP0257401A3 (en) * | 1986-08-08 | 1989-02-15 | Wang Laboratories Inc. | Text editor for multidimensional or multidirectional text |
| JPH0766376B2 (en) * | 1986-10-25 | 1995-07-19 | 株式会社リコー | Formula input method |
| JPH0727519B2 (en) * | 1987-10-09 | 1995-03-29 | 株式会社日立製作所 | Formula editing method |
| JPH0244458A (en) * | 1988-08-05 | 1990-02-14 | Ricoh Co Ltd | Character processor |
| JP3109804B2 (en) * | 1988-08-31 | 2000-11-20 | キヤノン株式会社 | Formula processing apparatus and method |
| JPH0264857A (en) * | 1988-08-31 | 1990-03-05 | Canon Inc | document processing device |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5928840Y2 (en) * | 1977-01-20 | 1984-08-20 | リヨ−ビ印刷機販売株式会社 | Phototypesetting machine mathematical dial plate |
| JPS53100933A (en) * | 1977-02-17 | 1978-09-02 | Fujitsu Ltd | Automatic regulating apparatus for non-electrolysis copper plating liquid |
| JPS5714943A (en) * | 1980-06-30 | 1982-01-26 | Sharp Corp | Display system of computer or the like |
| JPS5781670A (en) * | 1980-11-07 | 1982-05-21 | Hitachi Ltd | Editing method of document |
| JPS5852733A (en) * | 1981-09-25 | 1983-03-29 | Canon Inc | Pattern output method and device |
| JPS58181148A (en) * | 1982-04-15 | 1983-10-22 | Fujitsu Ltd | S type input system |
| JPS5960472A (en) * | 1982-09-30 | 1984-04-06 | 富士通株式会社 | Control of subscript |
-
1984
- 1984-09-07 JP JP59186320A patent/JPH0692153B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6164451A (en) | 1986-04-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4608662A (en) | Method for editing document | |
| US5287449A (en) | Automatic program generation method with a visual data structure display | |
| CN110543303B (en) | Visual service platform | |
| CN110705237B (en) | Automatic document generation method, data processing device and storage medium | |
| CN110069892B (en) | FPGA pin allocation design method and device | |
| JPH06236367A (en) | Control method for word processor | |
| CN113849175A (en) | Code generation method, device, equipment and storage medium | |
| JPH0523956B2 (en) | ||
| CN117851457A (en) | Chart generation method, device, equipment and storage medium | |
| JPH0692153B2 (en) | Method for clearing mathematical formulas in document processing system | |
| JP2601153B2 (en) | Mathematical formula | |
| CN114154095A (en) | Page picture generation method, device, equipment and storage medium | |
| JP2000029677A (en) | Automatic generating device for screen constitution | |
| JP3977874B2 (en) | Document output method and apparatus | |
| JP3324831B2 (en) | CAD equipment | |
| EP0315172A2 (en) | Automatic program generation method with a visual data structure display | |
| JP3978173B2 (en) | Form creation method | |
| JP3910048B2 (en) | Database publishing method and apparatus | |
| JPH07175870A (en) | Form creation method | |
| JPS62145424A (en) | Program management method | |
| JPH11184845A (en) | Document processing device and its program storage medium | |
| CN118410746A (en) | Pad design method and device, electronic equipment and readable medium | |
| JPH11296596A (en) | Table processing device and storage medium | |
| CN121351761A (en) | A data-driven method and system for automated typesetting of medical documents | |
| CN121482231A (en) | A method for rendering a size report, a method for generating a size report, an apparatus and equipment. |