JP2601153B2 - Mathematical formula - Google Patents

Mathematical formula

Info

Publication number
JP2601153B2
JP2601153B2 JP5239349A JP23934993A JP2601153B2 JP 2601153 B2 JP2601153 B2 JP 2601153B2 JP 5239349 A JP5239349 A JP 5239349A JP 23934993 A JP23934993 A JP 23934993A JP 2601153 B2 JP2601153 B2 JP 2601153B2
Authority
JP
Japan
Prior art keywords
function
argument
size
text
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP5239349A
Other languages
Japanese (ja)
Other versions
JPH06226945A (en
Inventor
秀子 三上
元英 国西
徹三 上原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5239349A priority Critical patent/JP2601153B2/en
Publication of JPH06226945A publication Critical patent/JPH06226945A/en
Application granted granted Critical
Publication of JP2601153B2 publication Critical patent/JP2601153B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、関数などの数式を含ん
だテキストを入力・編集したり、清書・出力したりする
文書処理装置において、関数記号領域のサイズ、関数内
の引数の配置および関数領域のサイズを可変にしうる数
式清書方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus for inputting / editing, copying, and outputting a text including a mathematical expression such as a function, the size of a function symbol area, the arrangement of arguments in a function, and the like. The present invention relates to a mathematical formula rewriting method that can make the size of a function area variable.

【0002】[0002]

【従来の技術】近年、オフィス・オートメーションの発
展にともない、文書を電子計算機システム内で作成・修
正し、これを電子計算機に接続された印刷装置、出力装
置に清書出力する利用方法が普及しつつある。数式を含
んだテキストについても同様である。ところが、数式の
取り扱いは通常のテキストと異なる。数式テキスト中の
数学関数の扱いにおいては、新しい関数記号の大きさを
どのように設定するか、あるいは関数記号と引数の位置
関係および引数と引数の位置関係をどのように設定し、
かつ関数全体の大きさをどのように設定するかという問
題が発生する。しかも、上記の問題は、これといった仕
様の決め手がなく、種々のシステム(印刷装置,出力装
置,タイプライター,写植機など)において独自の方式
が採用されている。さらに、これらのシステムでは、一
度仕様が決定したものについては、ユーザの好みに合わ
ない場合に変更ができなかったり、設計・製作者自身が
仕様を変えたい場合にも多くの時間と手数を必要とする
ことが少なくない。これを、より具体的なシステムを例
にとって考えてみよう。
2. Description of the Related Art In recent years, with the development of office automation, a method of creating and correcting a document in a computer system and outputting the document to a printing device or an output device connected to the computer has been spreading. is there. The same applies to text containing mathematical formulas. However, the handling of mathematical formulas differs from ordinary text. In the treatment of mathematical functions in mathematical formula text, how to set the size of the new function symbol, or how to set the positional relationship between the function symbol and the argument and the positional relationship between the argument and the argument,
In addition, there arises a problem of how to set the size of the entire function. In addition, the above-mentioned problem has no decisive factor in such specifications, and various systems (printing devices, output devices, typewriters, typesetting machines, etc.) employ their own methods. Furthermore, these systems require a lot of time and trouble if the specifications are determined once and cannot be changed if they do not meet the user's preference, or if the design / maker wants to change the specifications themselves. It is not rare that Let's consider this with a more specific system as an example.

【0003】数式を扱ったテキスト処理システムの方式
は、2種類に分類できる。
[0003] Methods of text processing systems that handle mathematical expressions can be classified into two types.

【0004】(1)タイプライタ・ベースの方式 (2)写植機法による方式 写植機法による方式について、Association for Comput
ing Machinery, Inc.Communications of the ACM, Marc
h 1975 Volume 18 Number3におけるBrian W.Kernighan
and Lorinda L.Cherry (Bell Laboratories) による"A
System for Typesetting Mathematics" と題する文献
において論じられている。
(1) Typewriter-based method (2) Typesetting method The typesetting method is described in Association for Computing.
ing Machinery, Inc.Communications of the ACM, Marc
h Brian W. Kernighan in 1975 Volume 18 Number 3
and "A" by Lorinda L. Cherry (Bell Laboratories)
System for Typesetting Mathematics ".

【0005】上記の方式(1)の問題は、文字の大きさ
が固定的であること、任意の行送りが不可能であり、高
々通常行の1/2の行送りで満足せざるをえないことで
ある。このため(1)の方式は、大きさの異なる2次元
的な領域を縦・横自由自在に任意の位置に配置する必要
がある数式処理に対しては機能不足である。
The problems of the above-mentioned method (1) are that the character size is fixed and that it is impossible to arbitrarily feed a line, and at most 1/2 of a normal line must be satisfied. That is not. For this reason, the method (1) is insufficient for mathematical processing in which it is necessary to arrange two-dimensional regions having different sizes freely at any position in the vertical and horizontal directions.

【0006】上記の方式(2)は、方式(1)の問題の
一解決法を与えるが、関数記号の大きさや関数内の引数
の配置、および関数の大きさに関する仕様が、プログラ
ムの処理の中に埋め込まれているのが現状であり、仕様
変更の際、プログラム自身の修正が必要になる。このた
め、プログラムを修正しては結果を確認するといった工
程を繰り返すことになり、開発効率が悪く、結局品質の
向上が困難になっている。
The above-mentioned method (2) provides a solution to the problem of the method (1). However, the specifications regarding the size of function symbols, the arrangement of arguments in a function, and the size of a function do not affect the processing of a program. At present, it is embedded inside, and when the specification is changed, the program itself needs to be modified. For this reason, the process of correcting the program and confirming the result is repeated, and the development efficiency is poor, and it is difficult to improve the quality after all.

【0007】[0007]

【発明が解決しようとする課題】本発明の目的は、上記
の問題に対処するため、数学関数の割付け処理内容を関
数情報テーブルの形で保持し、それによってさらにその
内容を書き換える機能をもつことによって、プログラム
の論理を変更することなく、数学関数の割付け仕様が容
易に変更でき、かつ単純な関数入力指定を行うことによ
り、複雑な入れ子構造をもった関数を容易に作成するこ
とができるような数式清書方法を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a function for retaining the contents of a mathematical function allocation process in the form of a function information table, thereby further rewriting the contents. This makes it possible to easily change the assignment specifications of mathematical functions without changing the logic of the program, and to easily create functions with complex nested structures by specifying simple function inputs. It is an object of the present invention to provide a simple formula copy method.

【0008】また、関数情報テーブルにおいて、引数の
最大個数を保持させることにより、関数指定が複雑にな
った場合においてもその入力指定の妥当性をチェックす
ることが可能な数式清書方法を提供することにある。
[0008] Further, the present invention provides a mathematical formula rewriting method capable of checking the validity of an input specification even when the function specification is complicated by holding the maximum number of arguments in a function information table. It is in.

【0009】[0009]

【課題を解決するための手段】本発明は、テキストを入
力する手段と、テキストの割り付け指示情報を予め記憶
しておく記憶手段と、入力手段から入力されたテキスト
を編集するテキスト編集手段と、テキスト編集手段によ
り編集されたテキストを格納する格納手段と、格納手段
から取り出されたテキストについて、テキスト中に付加
された割付け指示または入力手段から入力された割付け
指示に従って上記記憶手段に記憶された割付け指示情報
に基づき割付けを行う割付け手段と、割付手段により得
られる清書結果を出力する出力手段とを有する文書処理
システムにおいて、数式の割付け指示情報として、固有
の関数記号と引数とを予め定義した複数の関数につい
て、少なくとも関数識別コードと、関数の有する引数の
それぞれについて引数文字比率とを記憶手段に予め記憶
し、割付け手段において、関数識別コードを参照して割
付け対象である複数の関数のうち該当する関数を識別し
て、識別した結果が関数がそのなかに第2の関数を有す
る入れ子構造である場合には、関数の引数であって入力
手段より入力された第2の関数およびその引数である第
2の引数が関数の有するどの引数に該当するかを解析す
ると共に、入力手段に入力された第2の引数文字が第2
の関数の有するどの引数に該当するかを解析し、関数に
該当する引数文字比率を引数に適用してその引数が占め
る領域の大きさを決定すると共に、第2の関数に該当す
る引数文字比率を適用して第2の引数が占める領域の大
きさを決定し、引数の引数領域の大きさを変数として、
関数記号の大きさを予め規定する第一の関係式を適用し
て、関数および第2の関数の関数記号の大きさを決定
し、引数が占める領域の大きさと関数の関数記号の大き
さおよび第2の引数が占める領域の大きさと第2の関数
の関数記号の大きさを変数として、関数記号と引数との
配置を予め規定する第二の関係式を適用して、入れ子構
造である関数の関数記号と引数の配置を決定することを
特徴とする文書処理システムにおける数式清書方法であ
る。
According to the present invention, there are provided means for inputting text, storage means for storing text assignment instruction information in advance, text editing means for editing the text input from the input means, storage means for storing text edited by a text editor, the text taken from the storage means, assignment input from allocation instruction or input means attached to the text
Assignment instruction information stored in the storage means according to the instruction
In a document processing system having an allocating means for allocating based on a function, and an output means for outputting a copy-finished result obtained by the allocating means, a plurality of functions in which a unique function symbol and an argument are defined in advance as allocation instruction information of a mathematical expression , At least a function identification code and an argument character ratio for each of the arguments of the function are stored in advance in the storage unit, and the allocating unit refers to the function identification code and refers to the function among the plurality of functions to be allocated. And if the identified result is a nested structure in which the function has a second function, the second function input as an argument of the function and the second function input from the input means and its argument In addition to analyzing which argument of the function corresponds to the second argument, the second argument character input to the input means is changed to the second argument.
Is analyzed to determine which argument the function has, and the argument character ratio corresponding to the function is applied to the argument to determine the size of the area occupied by the argument, and the argument character ratio corresponding to the second function Is applied to determine the size of the area occupied by the second argument, and using the size of the argument area of the argument as a variable,
By applying a first relational expression that predefines the size of the function symbol, the size of the function symbol of the function and the second function is determined, and the size of the area occupied by the argument and the size of the function symbol of the function and Using the size of the area occupied by the second argument and the size of the function symbol of the second function as variables, applying a second relational expression that prescribes the arrangement of the function symbol and the argument, the function having a nested structure Is a formula editing method in a document processing system, wherein the arrangement of function symbols and arguments is determined.

【0010】本発明では、関数がその割付け方式によっ
ていくつかのタイプに分類できることに着眼し、これを
関数タイプと名付け、関数の割付け情報を各関数タイプ
別に保持することとした。例えば、図1において、和関
数(Σ)や積関数(Π)および和集合関数(U)など
は、共に、引数の最大個数が“3”で、各引数の名称に
ついては第1引数が下限値、第2引数は上限値、第3引
数が関数テキストであり、かつ、関数における引数文字
比率がそれぞれ、“50(%)”,“50(%)”,
“100(%)”であり、しかも、関数記号の大きさや
関数記号と各引数との配置の仕方が一様である、という
点でこれらの関数を同タイプとして扱い、“Σタイプ”
と名付けることにした。
In the present invention, attention has been paid to the fact that functions can be classified into several types according to their allocation method, and this is named as a function type, and allocation information of functions is stored for each function type. For example, in FIG. 1, the sum function (和), the product function (和), the union function (U), and the like all have a maximum number of arguments of “3”, and the first argument has a lower limit for the name of each argument. The value and the second argument are the upper limit, the third argument is the function text, and the character ratio of the argument in the function is “50 (%)”, “50 (%)”,
These functions are treated as the same type in that they are “100 (%)”, and the size of the function symbol and the arrangement of the function symbol and each argument are uniform.
I decided to name it.

【0011】次に、関数の割付け法、すなわち、関数内
の引数の配置や関数記号と引数との配置が、ある種の一
次式で表わせること、およびその一次式における係数を
関数タイプ毎に変えることにより各種の関数が扱えるこ
とに着眼し、関数タイプ毎に一次式を保持し、かつ、一
次式中の係数を関数記号領域サイズ決定パラメタおよび
関数領域サイズ補正パラメタとして保持することにし
た。
Next, a function allocation method, that is, the arrangement of arguments in a function and the arrangement of function symbols and arguments can be represented by a certain linear expression, and the coefficients in the linear expression are defined for each function type. Focusing on the fact that various functions can be handled by changing, a linear expression is held for each function type, and coefficients in the linear expression are stored as function symbol area size determination parameters and function area size correction parameters.

【0012】さらに、上記の関数割付け方法が、一意に
定まらず、最良の方法を見つけるために、上記の関数タ
イプ別の情報を常に変更できることが好ましいというこ
とに着眼し、関数の割付け情報を、図1のようなテーブ
ルの形で保持することにし、これを関数情報テーブルと
名付けた。
Further, the function allocation method is not uniquely determined, and it is preferable that the information for each function type be constantly changed in order to find the best method. It is stored in the form of a table as shown in FIG. 1, and this is named a function information table.

【0013】以上により、関数の引数として関数を指定
することが容易に可能となり、順次割付け処理を実行す
ることにより、全体として複雑な数式の割付け及び清書
が可能になる。
As described above, it is possible to easily designate a function as an argument of the function, and to execute the assignment process sequentially, it becomes possible to assign and copy a complicated mathematical expression as a whole.

【0014】また、本発明では、関数情報デーブルを保
持し、その内容を書き換える機能をもつことにより、プ
ログラムの論理を変更することなく、関数の割付け仕様
を、少ない労力、テーブル量で、容易に変更できる。
Further, according to the present invention, the function information table is held, and the function of rewriting the contents of the function information table is provided. Therefore, the function allocation specification can be easily performed with little labor and a small amount of tables without changing the logic of the program. Can be changed.

【0015】さらに、関数情報テーブルに、新たな関数
識別コードを追加するだけで、既存の関数タイプの仕様
をもった新規の関数を、容易に追加できる。
Furthermore, a new function having the specifications of an existing function type can be easily added only by adding a new function identification code to the function information table.

【0016】[0016]

【作用】本発明によれば、関数情報テーブルの関数記号
領域決定パラメタを書き換えることにより関数記号領域
のサイズの変更を、同様に関数領域補正パラメタを書き
換えることにより、関数記号と引数の位置関係の変更や
引数と引数の位置関係の変更を、それぞれプログラム自
身の修正手順を踏むことなく容易に行なうことが可能と
なると同時に、それらの情報に基づき、数式が入れ子構
造になった複雑な形状の数式においてもユーザの好みに
合った出力結果を容易に得ることができるという効果が
あり、一方プログラムの設計・製作者自身にとっては、
機能的にも美的にも最も相応しい出力仕様を得るための
工数が削減できるという効果がある。
According to the present invention, the size of the function symbol area is changed by rewriting the function symbol area determination parameter in the function information table, and the function symbol correction parameter is rewritten in the same manner, whereby the positional relationship between the function symbol and the argument is changed. This makes it easy to make changes and changes in the positional relationship between arguments without having to go through the program's own correction procedure.At the same time, based on such information, mathematical expressions of complex shapes with nested mathematical expressions Has the effect that it is possible to easily obtain an output result that meets the user's preferences. On the other hand, for the program designer / maker himself,
This has the effect of reducing the number of steps required to obtain the most suitable output specifications both functionally and aesthetically.

【0017】さらに、関数情報テーブルは、関数をその
割付け法によって分類した関数タイプ毎の情報をもつの
で、既存の関数タイプの新しい関数記号を容易に追加で
きるという効果がある。
Further, since the function information table has information for each function type in which functions are classified according to the assignment method, there is an effect that a new function symbol of an existing function type can be easily added.

【0018】[0018]

【実施例】以下、本発明の一実施例を図面を用いて詳細
に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0019】図2は、文書の作成手順の概念を示す。図
中の符号201は、テキストの入出力にユーザが用いる
端末装置、符号202は、作成・編集したテキストを格
納するテキスト・ファイル、符号203は、清書結果を
出力する出力装置、符号204は、テキストの作成・編
集・清書を行なう文書処理システム、符号205は、端
末ユーザ入出力制御部、符号206は、テキスト作成・
編集制御部、符号207は、清書出力制御部、符号20
8は、出力装置制御部である。
FIG. 2 shows the concept of a document creation procedure. In the figure, reference numeral 201 denotes a terminal device used by a user for inputting / outputting text, reference numeral 202 denotes a text file for storing created / edited text, reference numeral 203 denotes an output device for outputting a copy-finished result, reference numeral 204 A document processing system for creating / editing / copying text, reference numeral 205 is a terminal user input / output control unit, and reference numeral 206 is
Editing control unit, reference numeral 207 denotes a copy-writing output control unit, reference numeral 20
8 is an output device control unit.

【0020】端末装置201からテキストを入力する
と、端末ユーザ入出力制御部205はテキスト作成・編
集制御部206を起動し、入力テキストを渡す。テキス
ト作成・編集制御部206は、ユーザの指示によって入
力テキストに割付けのための指示を加えたり、テキスト
の追加・修正・削除などの編集を施した後、テキスト・
ファイル202に格納する。テキストの作成・編集の結
果は、端末装置201に表示する。ユーザは、端末装置
201で作成・編集結果を確認しながらテキストの再編
集や清書を行なう。
When text is input from the terminal device 201, the terminal user input / output control unit 205 activates the text creation / edit control unit 206 and passes the input text. The text creation / edit control unit 206 adds an instruction for layout to the input text in accordance with an instruction of the user, or performs editing such as addition, correction, or deletion of the text, and then performs text / text editing.
It is stored in the file 202. The result of the text creation / edit is displayed on the terminal device 201. The user re-edits the text or clean-prints the text while checking the creation / edit result on the terminal device 201.

【0021】ユーザが端末装置201から、清書の指示
を与えること、端末ユーザ入出力制御部205は清書出
力制御部207を起動する。清書出力制御部207は、
テキスト・ファイル202からテキストを取り出し、テ
キスト中の割付け指示および端末装置201からの割付
け指示に従ってテキストを割付け、清書を行なう。清書
出力制御部207は、清書結果を、端末ユーザ入出力制
御部205の起動によって端末装置201に表示した
り、あるいは出力装置制御部208の起動によって出力
装置203に出力する。
When the user gives an instruction for a fair copy from the terminal device 201, the terminal user input / output control unit 205 activates the fair print output control unit 207. The fair copy output control unit 207 includes:
The text is extracted from the text file 202, the text is allocated according to the layout instruction in the text and the layout instruction from the terminal device 201, and the copy is performed. The copy print output control unit 207 displays the copy print result on the terminal device 201 by activating the terminal user input / output control unit 205, or outputs the result to the output device 203 by activating the output device control unit 208.

【0022】図3は、図2の清書出力制御部207にお
いて、本発明の数式清書方式を適用した数式テキスト処
理についてより詳細に説明したものである。図中の符号
301は、関数の割付け情報を保持する関数情報テーブ
ル、符号302は、関数記号領域のサイズ決定に用いる
関係式A、符号303は、関数領域のサイズ決定に用い
る関係式B、符号304は、解析処理、符号305は、
引数領域サイズ決定処理、符号306は、関数記号領域
サイズ決定処理、符号307は、関数領域サイズ決定処
理、符号308は、割付け処理である。符号309から
符号314までは、関数テキストの解析から割付けに至
る過程を例示したものである。
FIG. 3 illustrates in more detail the mathematical expression text processing to which the mathematical expression correction system of the present invention is applied in the fair copy output control unit 207 of FIG. In the figure, reference numeral 301 denotes a function information table holding function allocation information, reference numeral 302 denotes a relational expression A used for determining the size of a function symbol area, reference numeral 303 denotes a relational expression B used for determining the size of a function area, and reference numeral 304 is an analysis process, and reference numeral 305 is
Argument area size determination processing, reference numeral 306 denotes a function symbol area size determination processing, reference numeral 307 denotes a function area size determination processing, and reference numeral 308 denotes an allocation processing. Reference numerals 309 to 314 illustrate processes from analysis of function text to assignment.

【0023】関数情報テーブル301の構成は、図4に
示すように、関数タイプ401、関数識別コード40
2、引数の最大個数403、引数名称404、引数文字
比率405、関数記号領域サイズ決定パラメタ406、
および関数領域サイズ補正パラメタ407からなり、引
数名称404と引数文字比率405は、引数の最大個数
403が示す数だけ保持される。
The function information table 301 has a function type 401 and a function identification code 40 as shown in FIG.
2, maximum number of arguments 403, argument name 404, argument character ratio 405, function symbol area size determination parameter 406,
And a function area size correction parameter 407, and the argument name 404 and the argument character ratio 405 are held by the number indicated by the maximum number 403 of arguments.

【0024】テキスト・ファイル202から取り出した
関数テキスト309において、“%SM<”は和(Σ)
の開始を、“;”は引数間の区切りを、“>”は関数の
終了をそれぞれ意味する。関数の種類は、分数,根号,
積分,Σ関数,積,和集合,積集合,および上限値・下
限値付き任意関数などがあり、各関数の入力形式と対応
する出力は図5の通りである。
In the function text 309 extracted from the text file 202, “% SM <” is a sum (Σ).
, “;” Indicates a delimiter between arguments, and “>” indicates the end of a function. Function types are fractions, radicals,
There are integration, Σ function, product, union, intersection, and arbitrary functions with upper and lower limits, and the input form of each function and the corresponding output are as shown in FIG.

【0025】解析処理304では、関数テキスト309
の妥当性を関数情報テーブル301の関数タイプ401
と関数識別コード402と引数の最大個数403の参照
によりチェックした後、引数名称404の参照によって
各引数の名称を決定し、解析結果310を出力する。解
析結果310は、関数記号が“Σ”、第1引数が下限値
で“i=0”、第2引数が上限値で“∞”、第3引数が
関数テキストで“Xi”となる。
In the analysis process 304, the function text 309
The validity of the function type 401 in the function information table 301
After checking by referring to the function identification code 402 and the maximum number of arguments 403, the name of each argument is determined by referring to the argument name 404, and the analysis result 310 is output. In the analysis result 310, the function symbol is “Σ”, the first argument is “i = 0” at the lower limit, the second argument is “∞” at the upper limit, and the third argument is “X i ” in the function text.

【0026】引数領域サイズ決定処理305では、解析
結果310を入力とし、関数情報テーブル301の引数
文字比率405を参照することにより、各引数の引数領
域サイズ311を得る。
In the argument area size determination processing 305, the analysis result 310 is input and the argument area size 311 of each argument is obtained by referring to the argument character ratio 405 of the function information table 301.

【0027】関数記号領域サイズ決定処理306では、
各引数の引数領域サイズ311を入力とし、関数情報テ
ーブル301の関数記号領域サイズ決定パラメタ406
および関係式A302を用いて、関数記号領域312を
生成する。ここで関係式A302は、引数領域のサイズ
に応じて関数記号領域のサイズを決定する一次式であ
る。
In the function symbol area size determination processing 306,
The parameter area size 311 of each argument is input, and the function symbol area size determination parameter 406 of the function information table 301 is input.
Then, a function symbol area 312 is generated using the relational expression A302. Here, 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.

【0028】関数領域サイズ決定処理307では、各引
数の引数領域サイズ311と関数記号領域312とを入
力とし、関数情報テーブル301の関数領域サイズ補正
パラメタ407および関係式B303を用いることによ
り、各引数と関数記号との配置方法を決定し、関数領域
313を生成する。ここで関係式B303は、引数領域
のサイズと関数記号領域のサイズおよび関数領域サイズ
補正パラメタの一次式であり、それによって関数領域の
サイズを決定するものである。
In the function area size determination processing 307, the argument area size 311 and the function symbol area 312 of each argument are input, and the function area size correction parameter 407 of the function information table 301 and the relational expression B 303 are used to obtain each argument. A function area 313 is generated by determining a method of arranging the function symbols and the function symbols. Here, the relational expression B303 is a linear expression of the size of the argument region, the size of the function symbol region, and the function region size correction parameter, and thereby determines the size of the function region.

【0029】割付け処理308は、関数領域313を予
め定められている位置に配置する。
The allocation processing 308 arranges the function area 313 at a predetermined position.

【0030】本発明の数式清書方式を数式テキスト処理
に適用した実施例として、プログラムの処理の流れを図
6に示す。まず、図6の表記法を示す。図中の矩形は処
理を表わし、符601,606,610および611の
ような右縦線付き矩形は反復条件を、そして、符号62
2,623の形は選択条件を表わす。また、符号62
0,621の横二重線は、線の左側の処理を右側の処理
によって定義することを表わす。一般に、上から下へと
縦線でつながった順序に処理が行なわれる。反復条件6
01,606,610,611では、括弧内の条件を満
たす間、横線でつながった右側の処理を繰り返す。ま
た、選択条件622,623は、条件によって処理を選
択して実行する。
FIG. 6 shows the flow of processing of a program as an embodiment in which the mathematical formula copy system of the present invention is applied to mathematical formula text processing. First, the notation of FIG. 6 is shown. The rectangles in the figure represent processing, rectangles with right vertical lines such as 601, 606, 610 and 611 represent the repetition conditions, and 62
The shape of 2,623 represents the selection condition. Reference numeral 62
The horizontal double line of 0,621 indicates 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 of connecting the vertical lines from top to bottom. Repetition condition 6
In steps 01, 606, 610, and 611, the processing on the right side connected by a horizontal line is repeated while the conditions in parentheses are satisfied. The selection conditions 622 and 623 select and execute processing according to the conditions.

【0031】本実施例では、数式割付けの基本的データ
構造として図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 employed as a basic data structure for assigning mathematical expressions. The area is a rectangle with a base line and a base origin. Each area has its own horizontal character string output reference line in it, which is called the base line. The area origin is a point at the upper left corner of the area, and the coordinates of the area origin are called an area address. The size of the area is made up of three elements: area height, area width, and height above the area base. The size of the area is not determined in advance, but is determined by the steps of assigning mathematical expressions. In the formula assignment, a line area 708, a function area 706, an argument area 705, a text area 704, and the like are handled. When arranging the text area 704 and the function area 706 in the line area 708, arranging the argument area 705 in the function area 706, and arranging the text area 704 and the function area 706 in the argument area 705, The reference position is provided.

【0032】上記の表記法およびエリアの概念に基づい
て、図6の処理を図7のエリアの例を用いて説明する。
符号601により、テキストが終了するまで、符号60
2,603,604,605の順で処理を繰り返す。符
号602でテキスト・ファイル202から1行分のテキ
ストを入力し、符号603で行エリア708を生成し、
符号604で行エリアの708配置を行なった後、符号
605で出力する。行エリア生成603では、符号60
6により行が継続する間、符号622でテキストの解析
を行ない、その結果が通常テキストである場合には符号
607でテキスト・エリア・サイズの決定、関数情報テ
ーブル301の関数識別コード402の参照により関数
テキストである場合には符号608で関数エリア706
の生成をそれぞれ行なった後符号618でサブ行エリア
707のサイズ決定する。符号606で行が終了する
と、符号619で行エリア・サイズを決定する。行エリ
ア・サイズ決定619では、符号618で生成したサブ
行エリア707に行ピッチを付加することにより、行エ
リア708を生成し、そのサイズを決定する。サブ行エ
リア・サイズ決定618では、符号607,618で生
成したテキスト・エリア704および関数エリア706
をもとにサブ行エリア707を生成し、そのサイズを決
定する。
Based on the above notation and the concept of the area, the processing in FIG. 6 will be described using an example of the area in FIG.
Reference numeral 601 indicates that reference numeral 60 indicates that the text ends.
The processing is repeated in the order of 2, 603, 604, and 605. At 602, one line of text is input from the text file 202, and at 603, a line area 708 is generated.
After 708 arrangement of the row area is performed by reference numeral 604, output is performed by reference numeral 605. In the line area generation 603, the code 60
While the line is continued by 6, the text is analyzed by reference numeral 622. If the result is a normal text, the text area size is determined by reference numeral 607, and the function identification code 402 of the function information table 301 is referred to. If it is a function text, reference numeral 608 denotes a function area 706
Are generated, the size of the sub-row area 707 is determined at 618. When the line ends at 606, the line area size is determined at 619. In the row area size determination 619, a row area 708 is generated by adding a row pitch to the sub-row area 707 generated by the reference numeral 618, and its size is determined. In the sub line area size determination 618, the text area 704 and the function area 706 generated by reference numerals 607 and 618 are used.
, A sub-row area 707 is generated, and its size is determined.

【0033】テキスト・エリア・サイズ決定では、文字
エリア702 1個ずつに文字ピッチを付加することに
より、テキスト・エリア704を生成し、そのサイズを
決定する。
In determining the text area size, a text area 704 is generated by adding a character pitch to each character area 702, and its size is determined.

【0034】関数エリア生成608では、まず符号60
9で引数の順序番号iを“1”にセットした後、符号6
10により、関数が継続する間、第1引数、第2引数、
…の処理を行なう。関数情報テーブル301の引数の最
大個数403のすべての引数について処理が終り、符号
610で関数が終了すると、関数情報テーブル301の
関数記号領域サイズ決定パラメタ406と関係式A30
2を参照して符号616により関数記号エリア・サイズ
を決定し、関数領域サイズ補正パラメタ407と関係式
B303を参照して符号617により関数エリア・サイ
スを決定する。第i引数の処理では、関数情報テーブル
301の引数文字比率405を参照しながら、符号61
1により、第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,
After setting the order number i of the argument to “1” at 9,
According to 10, the first argument, the second argument,
The processing of ... is performed. When the processing is completed for all the arguments of the maximum number 403 of the arguments of the function information table 301 and the function is terminated at 610, the function symbol area size determination parameter 406 of the function information table 301 and the relational expression A30
2, the function symbol area size is determined by reference numeral 616, and the function area size is determined by reference numeral 617 by referring to the function region size correction parameter 407 and the relational expression B303. In the processing of the i-th argument, reference numeral 61 refers to the argument character ratio 405 of the function information table 301.
According to 1, while the i-th argument continues, the text is analyzed at reference numeral 623, and if the result is normal text, the text area size is determined at reference numeral 612.
If it is a function text, the function area is generated at 613, and the size of the i-th argument area is determined at 614. Here, function area generation 608
Calls itself, that is, the function area generation 613. Such a call is called a recursive call.
In multiple mathematical texts, functions may contain other functions. This is called function nesting. In this embodiment, multiple nesting of functions can be performed by the above-described recursive call of the function area generation 613. 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 reference numerals 612 and 613, and the size is determined. When the i-th argument ends at 611, the order number i of the argument is incremented by "1" at 611 to prepare for the argument processing of the next order number. Here, when i exceeds the maximum number 403 of arguments, it is considered that the function has ended.

【0035】関数符号エリア・サイズ決定616の処理
について、Σタイプの関数の例を図8に示す。Σタイプ
の関数の場合、関数記号エリア801のサイズ、すなわ
ち、エリア縦長fa、エリア横長fb、およびエリア・ベ
ース上の高さfcは、第3引数エリア802のエリア・
サイズすなわちエリア縦長a3、エリア・ベース上の高
さc3と、図4の関数記号領域サイズ決定パラメタ40
6の値k1,k2,……とを用いて表した図9の関係式に
よって決定できる。なお、式中のHは、文書テキストの
フォントの高さを示している。
FIG. 8 shows an example of a Σ type function for the processing of the function code area size determination 616. For Σ types of functions, the size of the function symbol area 801, i.e., the area Vertical f a, area Horizontal f b, and the height f c on the area-based, area of the third argument area 802
The size, that is, the area vertical length a 3 , the height c 3 on the area base, and the function symbol area size determination parameter 40 in FIG.
The values can be determined by the relational expressions shown in FIG. 9 using the values k 1 , k 2 ,... Note that H in the expression indicates the height of the font of the document text.

【0036】関数エリア・サイズ決定617の処理につ
いて、関様に、Σタイプの関数の例を図10に示す。関
数エリア1001のサイズ、すなわち、エリア縦長a、
エリア横長b、およびエリア・ベース上の高さcは、第
1引数エリア1002のサイズa1,b1と、第2引数エ
リア1003のサイズa2,b2と、第3引数エリア10
04のサイズa3,b3,c3と、関数記号エリア100
5のサイズfa,fb,fcと、さらに、図4の関数領域
サイズ補正パラメタ407の値e1,e2,…とを用いて
表した図11の関係式によって決定できる。
Regarding the processing of the function area size determination 617, FIG. 10 shows an example of a Σ type function. The size of the function area 1001, that is, the area length a,
The area width b and the height c on the area base are the sizes a 1 and b 1 of the first argument area 1002, the sizes a 2 and b 2 of the second argument area 1003, and the third argument area 10.
04 size a 3 , b 3 , c 3 and function symbol area 100
5 size f a, f b, and f c, further can be determined by relation of the values e 1, e 2, 11 expressed using ... and function area size correction parameter 407 of FIG.

【0037】図12は、本実施例の出力サンプルであ
る。本実例例によれば、 (1)分数や根号のように同時に縦・横に延びる2次元
的な配置 (2)複数な数式における2次元的配置の多重な入れ
子、すなわち、関数の多重ネストの処理 などの、数式テキストの割付けに特有な処理が可能にな
り数式清書が実現できる。
FIG. 12 shows an output sample of this embodiment. According to this example, (1) a two-dimensional arrangement extending vertically and horizontally at the same time as a fraction or a radical (2) multiple nesting of two-dimensional arrangements in a plurality of mathematical expressions, that is, multiple nests of functions This makes it possible to perform processing unique to the assignment of mathematical formula text, such as the processing of, and realize mathematical formula copy.

【0038】また、関数情報テーブルを保持し、それを
参照することによって、以下の効果がある。
The following effects can be obtained by holding the function information table and referring to it.

【0039】(1)関数タイプ、関数識別コード、引数
の最大個数および引数名称などの情報により、関数テキ
ストの妥当性のチェックおよび解析処理が可能である。
(1) The validity of the function text can be checked and analyzed based on information such as the function type, function identification code, maximum number of arguments, and argument names.

【0040】(2)引数文字比率により、Σ式などにお
いて上限値・下限値に用いる文字のサイズを変更でき
る。
(2) The size of characters used for the upper limit value and the lower limit value in equation (2) can be changed by the argument character ratio.

【0041】(3)関数記号領域サイズ決定パラメタに
より、引数領域サイズに応じて関数記号領域のサイズを
決定できる。
(3) The size of the function symbol area can be determined according to the size of the argument area by the function symbol area size determination parameter.

【0042】(4)関数領域サイズ補正パラメタによ
り、引数領域のサイズや関数記号領域のサイズに応じ
て、関数領域内の引数領域の配置、引数領域と関数記号
領域の配置、および関数領域のサイズを決定できる。
(4) According to the function area size correction parameter, the arrangement of the argument area in the function area, the arrangement of the argument area 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 Can be determined.

【0043】[0043]

【発明の効果】本発明によれば、関数情報テーブルの関
数記号領域決定パラメタを書き換えることにより関数記
号領域のサイズの変更を、同様に関数領域補正パラメタ
を書き換えることにより、関数記号と引数の位置関係の
変更や引数と引数の位置関係の変更を、それぞれプログ
ラム自身の修正手順を踏むことなく容易に行なうことが
可能となると同時に、それらの情報に基づき、数式が入
れ子構造になった複雑な形状の数式においてもユーザの
好みに合った出力結果を容易に得ることができるという
効果があり、一方プログラムの設計・製作者自身にとっ
ては、機能的にも美的にも最も相応しい出力仕様を得る
ための工数が削減できるという効果がある。
According to the present invention, the size of the function symbol area is changed by rewriting the function symbol area determination parameter in the function information table, and the function symbol and argument positions are similarly rewritten by rewriting the function area correction parameter. It is possible to easily change the relationship and change the positional relationship between arguments without having to perform the program's own correction procedure, and at the same time, based on that information, a complicated shape with nested mathematical formulas Has the effect that it is possible to easily obtain an output result that meets the user's preference, while for the program designer / maker himself, it is necessary to obtain an output specification that is most functionally and aesthetically appropriate. This has the effect of reducing man-hours.

【0044】さらに、関数情報テーブルは、関数をその
割付け法によって分類した関数タイプ毎の情報をもつの
で、既存の関数タイプの新しい関数記号を容易に追加で
きるという効果がある。
Further, since the function information table has information for each function type in which functions are classified according to the assignment method, there is an effect that a new function symbol of an existing function type can be easily added.

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

【図1】関数情報テーブルの具体例を示す図。FIG. 1 is a diagram showing a specific example of a function information table.

【図2】文書の作成手順の概念図。FIG. 2 is a conceptual diagram of a document creation procedure.

【図3】図2の清書出力制御部の詳細を示す図。FIG. 3 is a diagram showing details of a copy-writing output control unit in FIG. 2;

【図4】関数情報テーブルの構造図。FIG. 4 is a structural diagram of a function information table.

【図5】関数毎の入力形式と出力の対応図。FIG. 5 is a correspondence diagram between an input format and an output for each function.

【図6】本発明を適用したプログラムの流れ図。FIG. 6 is a flowchart of a program to which the present invention is applied.

【図7】エリアの概念と構成の図。FIG. 7 is a diagram showing the concept and configuration of an area.

【図8】Σ関数に関する関数記号エリア・サイズ決定の
例。
FIG. 8 is an example of determining a function symbol area size for a Σ function.

【図9】Σ関数に関する関数記号エリア・サイズ決定の
ための関係式の例を示す図。
FIG. 9 is a diagram showing an example of a relational expression for determining a function symbol area size regarding a Σ function.

【図10】Σ関数に関する関数エリア・サイズ決定の例
を示す図。
FIG. 10 is a diagram showing an example of determining a function area size for a Σ function.

【図11】Σ関数に関する関数エリア・サイズ決定のた
めの関係式の例を示す図。
FIG. 11 is a diagram showing an example of a relational expression for determining a function area size regarding a Σ function.

【図12】本発明の実施例における出力サンプルを示す
図。
FIG. 12 is a diagram showing output samples according to the embodiment of the present invention.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】テキストを入力する手段と、テキストの割
り付け指示情報を予め記憶しておく記憶手段と、上記入
力手段から入力されたテキストを編集するテキスト編集
手段と、上記テキスト編集手段により編集されたテキス
トを格納する格納手段と、上記格納手段から取り出され
たテキストについて、テキスト中に付加された割付け指
示または上記入力手段から入力された割付け指示に従っ
て上記記憶手段に記憶された割付け指示情報に基づき割
付けを行う割付け手段と、上記割付手段により得られる
清書結果を出力する出力手段とを有する文書処理システ
ムにおいて、 数式の割付け指示情報として、固有の関数記号と引数と
を予め定義した複数の関数について、少なくとも関数識
別コードと、関数の有する引数のそれぞれについて引数
文字比率とを上記記憶手段に予め記憶し、 上記割付け手段で、上記関数識別コードを参照して割付
け対象である複数の関数のうち該当する関数を識別し
て、識別した結果が上記関数がそのなかに第2の関数を
有する入れ子構造である場合には、上記関数の引数であ
って上記入力手段より入力された第2の関数およびその
引数である第2の引数が上記関数の有するどの引数に該
当するかを解析すると共に、上記入力手段に入力された
第2の引数文字が上記第2の関数の有するどの引数に該
当するかを解析し、 上記関数に該当する引数文字比率を上記引数に適用して
その引数が占める領域の大きさを決定すると共に、上記
第2の関数に該当する引数文字比率を適用して第2の引
数が占める領域の大きさを決定し、 上記引数の引数領域の大きさを変数として、関数記号の
大きさを予め規定する第一の関係式を適用して、上記関
数および上記第2の関数の関数記号の大きさを決定し、 上記引数が占める領域の大きさと上記関数の関数記号の
大きさおよび上記第2の引数が占める領域の大きさと上
記第2の関数の関数記号の大きさを変数として、関数記
号と引数との配置を予め規定する第二の関係式を適用し
て、入れ子構造である関数の関数記号と引数の配置を決
定することを特徴とする文書処理システムにおける数式
清書方法。
1. A text input means, a storage means for preliminarily storing text assignment instruction information, a text editing means for editing a text input from the input means, and a text editing means for editing the text inputted from the input means. storage means for storing text was, for text retrieved from said storage means, according to the allocation instruction inputted from allocation instruction or the input means attached to the text
In accordance with the assignment instruction information stored in the storage means.
In a document processing system having an assigning means for assigning an assignment and an output means for outputting a copy-finished result obtained by the assigning means, a plurality of functions in which unique function symbols and arguments are defined in advance as assignment instruction information of mathematical expressions At least a function identification code and an argument character ratio for each of the arguments of the function are stored in the storage means in advance, and the allocation means refers to the function identification code and refers to the function identification code. When the identified result is a nested structure in which the function has the second function, the second function and the second function input from the input means are arguments of the function. It analyzes which argument the second argument corresponds to which argument the function has, and when the second argument character input to the input means is Analyzing which argument the second function has, and applying the argument character ratio corresponding to the function to the argument to determine the size of the area occupied by the argument, The size of the area occupied by the second argument is determined by applying the argument character ratio corresponding to the above, and the size of the argument area of the above argument is used as a variable to define the size of the function symbol in advance. To determine the size of the function symbol of the function and the second function, the size of the area occupied by the argument, the size of the function symbol of the function, and the size of the area occupied by the second argument And using the magnitude of the function symbol of the second function as a variable and applying a second relational expression that prescribes the arrangement of the function symbol and the argument, the function symbol and the arrangement of the argument of the nested function are changed. A document processing system characterized by How to clean formula in stem.
【請求項2】請求項1に記載の数式清書方法において、 各々関数の持ち得る引数の最大個数を記憶しておき、上
記入力手段で入力された引数の個数と上記最大個数を比
較して、入力された引数の個数が上記最大個数と等しい
かまたは小さいことを確認することによって、関数の入
力が妥当であるか否かを確認することを特徴とする数式
清書方法。
2. The method according to claim 1, wherein the maximum number of arguments that each function can have is stored, and the number of arguments input by the input means is compared with the maximum number. A method for correcting mathematical formulas, comprising checking whether the input of a function is appropriate by checking whether the number of input arguments is equal to or smaller than the maximum number.
JP5239349A 1993-09-27 1993-09-27 Mathematical formula Expired - Lifetime JP2601153B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5239349A JP2601153B2 (en) 1993-09-27 1993-09-27 Mathematical formula

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5239349A JP2601153B2 (en) 1993-09-27 1993-09-27 Mathematical formula

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP59186320A Division JPH0692153B2 (en) 1984-09-07 1984-09-07 Method for clearing mathematical formulas in document processing system

Publications (2)

Publication Number Publication Date
JPH06226945A JPH06226945A (en) 1994-08-16
JP2601153B2 true JP2601153B2 (en) 1997-04-16

Family

ID=17043428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5239349A Expired - Lifetime JP2601153B2 (en) 1993-09-27 1993-09-27 Mathematical formula

Country Status (1)

Country Link
JP (1) JP2601153B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5226264B2 (en) * 2006-09-06 2013-07-03 博章 出口 Object control apparatus, object control method, and object control program

Also Published As

Publication number Publication date
JPH06226945A (en) 1994-08-16

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
US7320104B2 (en) Text grid creation tools
JPH0692153B2 (en) Method for clearing mathematical formulas in document processing system
JP2601153B2 (en) Mathematical formula
JPS6290751A (en) Documentation device
JPS63172330A (en) Halftone application system for document processor
JP2000029677A (en) Automatic generating device for screen constitution
JPS61173373A (en) Document editing device
JP2828301B2 (en) Control display processor for graphs and tables
JPH0896153A (en) Layout processor
JP2024079388A (en) SUPPORT DEVICE AND SUPPORT METHOD
JP2969920B2 (en) Document processing device
JP3977874B2 (en) Document output method and apparatus
JPH0762842B2 (en) Document management device
JPH11296596A (en) List processor and storing medium
JPH0731671B2 (en) Formula input editing method
JPH01269983A (en) Text layout device
JP3079481B2 (en) Document processing device
JPH07104665A (en) Method of transferring comment for control system cad device
JPH0365759A (en) Edition processing system for table
JPS63180130A (en) Conversation sequence editing device
JPH01108672A (en) Mathematical formula input and edit system
JPH05174119A (en) Graphic program preparing system
JPH03251921A (en) Back-up device for software development
JPH06342430A (en) Automatic page divided display editing device