JPH0778792B2 - Document creation device - Google Patents
Document creation deviceInfo
- Publication number
- JPH0778792B2 JPH0778792B2 JP62247844A JP24784487A JPH0778792B2 JP H0778792 B2 JPH0778792 B2 JP H0778792B2 JP 62247844 A JP62247844 A JP 62247844A JP 24784487 A JP24784487 A JP 24784487A JP H0778792 B2 JPH0778792 B2 JP H0778792B2
- Authority
- JP
- Japan
- Prior art keywords
- character string
- character
- display
- coordinates
- coordinate
- 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)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、文書作成装置に係り、特に、数式等の作成に
好適な文書作成装置に関する。The present invention relates to a document creation device, and more particularly to a document creation device suitable for creating mathematical formulas and the like.
従来、数式入力を実現している文書作成装置としては、
富士ゼロックス社製のJStarがある。この装置では、例
えば、数式 におけるΣ、i=1、n、Xiのように、その表示位置に
従属関係のある文字列の入力を受け付け、上記従属関係
により各文字列の表示位置を計算し、表示することがで
きる。Conventionally, as a document creation device that realizes mathematical expression input,
There is JStar made by Fuji Xerox. In this device, for example, It is possible to accept an input of a character string having a subordinate relationship to the display position, such as Σ, i = 1, n, X i in ( 1), and calculate and display the display position of each character string according to the subordinate relationship.
しかしながら、上記従来の装置では、文字列の内容の訂
正に伴なう文字表示位置の変更という点については、配
慮されていなかった。すなわち、各文字列の座標をプロ
グラムにより一意的に求める方式を採用しているため、
文字列表示内容の訂正時には、文字列の従属関係をもと
に、すべての文字列の表示座標を再計算することが必要
であった。このため、文字列の内容の訂正を行なう際の
座標計算処理に時間を要するという問題があった。However, in the above-mentioned conventional device, no consideration has been given to the change of the character display position accompanying the correction of the content of the character string. That is, since the method of uniquely obtaining the coordinates of each character string by the program is adopted,
It was necessary to recalculate the display coordinates of all the character strings based on the dependency of the character strings when correcting the content of the character string display. Therefore, there is a problem that it takes time to perform coordinate calculation processing when correcting the contents of the character string.
本発明の目的は、文字列表示内容の訂正に伴なう計算を
高速化することにある。An object of the present invention is to speed up the calculation accompanying the correction of the display contents of the character string.
上記目的を達成するために、本発明は、文書情報を表示
装置上に表示し、入力装置からの指示により文書の作成
または校正編集を行なう文書作成装置であって、各文字
列間の従属関係をもつ文字列群を入力する手段と上記文
字列群を表示する手段と上記従属関係を記憶する手段と
上記文字列群の各文字列を修正する手段とを有するもの
において、 上記文字列の文字列毎の表示座標を記憶する記憶手段を
設け、上記各文字列の各表示座標は、各文字列毎に形成
される階層における頭の文字位置の座標であり、上記文
字列の文字及び文字列毎の表示座標は、上記頭の文字位
置の座標と各文字及び各文字列との関係にしたがった相
対座標で表し、上記文字列の内容を変更するときは、上
記表示座標と上記相対座標とのうちの少なくとも1つを
変更するようにしたものである。In order to achieve the above-mentioned object, the present invention is a document creating apparatus which displays document information on a display device and creates or proofreads and edits a document according to an instruction from an input device. A means for inputting a character string group having, a means for displaying the character string group, a means for storing the subordinate relationship, and a means for correcting each character string of the character string group, Storage means for storing display coordinates for each column is provided, and each display coordinate of each character string is a coordinate of a character position at the head of a hierarchy formed for each character string. Each display coordinate is represented by relative coordinates according to the relationship between the character position of the head and each character and each character string, and when changing the content of the character string, the display coordinate and the relative coordinate Change at least one of It was done so.
上記文字列の文字毎または文字列毎の表示座標は、数式
の表示画面上のある点を基準とした絶対座標で表わされ
るものであっても、また、上記従属関係にしたがった相
対座標で表わされるものであってもよい。The display coordinates of each character of the character string or each character string may be expressed by absolute coordinates based on a certain point on the display screen of the mathematical expression, but may also be expressed by relative coordinates according to the subordinate relationship. It may be
なお、本明細書において、「文字列」は、一組の文字、
記号のあつまりであり、場合によっては、1個の文字、
記号をも含む。また、「各文字列間に従属関係をもつ文
字列群」とは、各文字列、記号の位置関係が予め定まっ
ている数式、化学式等をいう。In the present specification, a "character string" is a set of characters,
A block of symbols, in some cases a single character,
Including symbols. Further, the “character string group having a subordination relationship between each character string” refers to a mathematical formula, a chemical formula, or the like in which the positional relationship of each character string and symbol is predetermined.
上記文字列の表示座標を記憶する記憶手段は、例えば、
文書上の基準点を原点とした場合の文字列の表示装置を
x座標、y座標に分けて記憶する。上記文字列の内容を
変更する場合には、上記記憶手段の、変更前のデータを
基にして求められた新しい座標を格納する。文字列を再
び表示する場合に上記記憶手段に格納された座標へ表示
することにより、文字列表示位置の計算を簡略化する。Storage means for storing the display coordinates of the character string, for example,
The display device of the character string when the reference point on the document is set as the origin is divided into the x coordinate and the y coordinate and stored. When the content of the character string is changed, the new coordinates obtained based on the data before the change in the storage means are stored. When the character string is displayed again, it is displayed at the coordinates stored in the storage means, thereby simplifying the calculation of the character string display position.
また、文字列の座標の表現方法も、文書上の固定の点を
基準とした絶対座標で表現するのではなく、文字列の従
属関係にしたがった相対座標で表現することにより、デ
ータ量が少なくなる。この場合の文字列の従属関係とは
例えば数式 において、Σとi=1、n、Xiなどとの間の関係をい
う。Also, the method of expressing the coordinates of the character string is not expressed by the absolute coordinates based on a fixed point on the document, but by the relative coordinates according to the subordination relation of the character string, the amount of data is reduced. Become. In this case, the character string dependency is, for example, a mathematical formula , The relationship between Σ and i = 1, n, X i , and so on.
以下、図面を参照して本発明をワードプロセッサに適用
した場合の実施例を説明する。An embodiment in which the present invention is applied to a word processor will be described below with reference to the drawings.
第2図は、本発明の機器構成図である。第2図におい
て、処理装置201は例えばマイクロプロセッサであり、
プログラムメモリ204に格納されたプログラムを実行す
るとともに、バスライン203を介して各ブロックの制御
およびデータ転送を行なう。FIG. 2 is a device configuration diagram of the present invention. In FIG. 2, the processing device 201 is, for example, a microprocessor,
The program stored in the program memory 204 is executed, and each block is controlled and data is transferred via the bus line 203.
データ入力装置の一部であるキー入力装置205から数式
中の文字が入力されると、その文字に対応する文字コー
ドがキーコードメモリ202に格納される。処理装置201
は、入力された文字のパターンを、パターン発生装置20
6により発生させ、表示制御回路208を通じて表示装置21
0に表示する。また、入力された文字コードはテキスト
メモリ209に格納される。When a character in the mathematical formula is input from the key input device 205 which is a part of the data input device, the character code corresponding to the character is stored in the key code memory 202. Processor 201
Is the pattern generator 20
6 and display device 21 through the display control circuit 208.
Display at 0. The input character code is stored in the text memory 209.
数式がすべて入力されると処理装置201は外部記憶装置
制御回路212を通してその数式を外部記憶装置213に記憶
する。When all the mathematical expressions are input, the processing device 201 stores the mathematical expressions in the external storage device 213 through the external storage device control circuit 212.
通常の文字が入力された場合には文字を行にしたがって
配列すればよい。Σや∫などのように上下左右に添字の
連なる記号(以下、単に数式記号と呼ぶ)の場合には、
各記号固有の添字位置にしたがって添字を配列する必要
がある。数式記号メモリ207には上記の数式記号固有の
添字位置を格納しておく。When normal characters are entered, the characters may be arranged in lines. In the case of a symbol with consecutive subscripts on the left, right, top, and bottom (hereinafter simply referred to as mathematical symbol) such as Σ and ∫,
It is necessary to arrange the subscripts according to the subscript position unique to each symbol. The above-mentioned subscript position peculiar to the mathematical symbol is stored in the mathematical symbol memory 207.
第3図は、上記の数式記号メモリ207の構造を表わした
ものである。301は各数式記号を示すコードを記憶する
部分であり、302はその数式記号の添字の個数を記憶す
る。303は実際に添字の座標を記憶する添字座標部304の
該当するアドレスを記憶する。添字座標部304には数式
記号の位置を原点とした場合の相対座標を記憶してお
く。数式記号の表示位置が明らかな場合には、数式記号
メモリ207の情報により各添字の表示位置を一意に求め
ることができる。しかし、この方法では添字の位置を決
定した後に操作者が内容を訂正した場合には、すべての
文字列の表示座標を再計算しなければならない。そこで
本実施例ではテキストメモリ209内に各文字列の表示位
置を記憶し、変更前のデータを基にして変更のあった部
分のみ計算をし、処理を高速化した。FIG. 3 shows the structure of the mathematical expression symbol memory 207. 301 is a part that stores a code indicating each mathematical symbol, and 302 stores the number of subscripts of the mathematical symbol. 303 stores the corresponding address of the subscript coordinate section 304 that actually stores the subscript coordinates. The subscript coordinate section 304 stores relative coordinates when the position of the mathematical symbol is the origin. When the display position of the mathematical symbol is clear, the display position of each subscript can be uniquely obtained from the information of the mathematical symbol memory 207. However, in this method, when the operator corrects the content after determining the position of the subscript, the display coordinates of all the character strings must be recalculated. Therefore, in this embodiment, the display position of each character string is stored in the text memory 209, only the changed portion is calculated based on the data before the change, and the processing speed is increased.
第1図は本実施例のテキストメモリ209の構造を表わし
ている。FIG. 1 shows the structure of the text memory 209 of this embodiment.
デキストメモリ209は座標管理部101と、テキスト部102
の二つから構成される。The text memory 209 includes a coordinate management unit 101 and a text unit 102.
It consists of two.
座標管理部101は、さらに細かく、文字列の表示座標を
記憶する表示座標領域103、文字列に含まれる文字数を
記憶する文字数領域104、実際に文字の入っているテキ
スト部102のアドレスを示すアドレスポインタ105に分け
られる。The coordinate management unit 101 further finely addresses the display coordinate area 103 that stores the display coordinates of the character string, the character number area 104 that stores the number of characters included in the character string, and the address that indicates the address of the text portion 102 that actually contains the character. It is divided into pointers 105.
テキスト部102のデータ1文字分に対して、一つの座標
管理部101をもつことも可能である。しかし、1文字単
位に文字表示位置を変更するという場合はほとんどな
い。そこで本実施例では、テキスト部中に区切り記号を
挿入し、区切り記号から区切り記号までを一つの文字列
として、一つの座標管理部101をもつこととした。これ
により、座標管理部101のデータを大幅に縮小できる。It is also possible to have one coordinate management unit 101 for one character of data in the text portion 102. However, there is almost no case where the character display position is changed on a character-by-character basis. Therefore, in the present embodiment, a delimiter is inserted in the text part, and the delimiter to the delimiter are treated as one character string, and one coordinate management unit 101 is provided. As a result, the data of the coordinate management unit 101 can be significantly reduced.
本実施例では、キー入力装置205より数式が入力される
と、数式記号メモリ207の情報を基に文字列の表示位置
を計算し、テキストメモリ209中の座標管理部101に記憶
する。数式を編集した結果、文字列の内容が変更された
場合には、座標管理部101のデータより変更した文字列
の座標を計算し、再び座標管理部101に格納する。In this embodiment, when a mathematical expression is input from the key input device 205, the display position of the character string is calculated based on the information in the mathematical expression symbol memory 207 and stored in the coordinate management unit 101 in the text memory 209. When the content of the character string is changed as a result of editing the mathematical formula, the coordinate of the changed character string is calculated from the data of the coordinate management unit 101 and is stored again in the coordinate management unit 101.
この座標管理部101の座標の表わし方にもいろいろな方
法がある。数式の表示画面上のある点を基準とした絶対
座標で各文字列の座標を表現すると、例えば という式において、Xiの座標は、第5図の(x0,y0)に
なる。しかし、数式を構成する文字列には、従属関係を
もつものがあるので、この関係を利用した相対座標を用
いることにより、データ量を縮小することができる。前
述の数式において、数式記号Σには、下限値、上限値、
項の三つの文字列が連なることがわかっている。そこ
で、座標管理部101に、これらの従属する文字列の表示
座標領域のアドレスを指す従属ポインタを設け、このポ
インタにしたがい、従属文字列の座標は、数式記号から
の相対座標で表現する。第5図は、第4図の数式のXiの
座標を本方式により表現したものであるが、明らかに座
標値(x1,y1)は、第4図の(x0,y0)よりも小さくなっ
ている。以上のように、相対座標では、座標の最大値が
小さくなるため、座標データが少なくてすむという利点
がある。There are various methods for expressing the coordinates of the coordinate management unit 101. Expressing the coordinates of each character string with absolute coordinates based on a certain point on the display screen of mathematical expressions, for example, In the equation, the coordinates of X i are (x 0 , y 0 ) in FIG. However, since some of the character strings forming the mathematical formula have a subordinate relationship, the amount of data can be reduced by using the relative coordinates using this relationship. In the above formula, the symbol Σ is the lower limit value, the upper limit value,
It is known that the three character strings of terms are connected. Therefore, the coordinate management unit 101 is provided with a dependent pointer that points to the address of the display coordinate area of these dependent character strings, and according to this pointer, the coordinates of the dependent character string are expressed as relative coordinates from the mathematical symbol. FIG. 5 shows the coordinates of X i in the mathematical expression of FIG. 4 by this method, but obviously the coordinate values (x 1 , y 1 ) are (x 0 , y 0 ) of FIG. Is smaller than. As described above, in the relative coordinates, the maximum value of the coordinates is small, so that there is an advantage that the coordinate data can be small.
本発明によれば、各文字列の表示座標を記憶しておくの
で、文字列の内容を訂正した場合に、すべての文字列の
表示座標を再計算する必要がなくなり、処理を高速化す
ることができる。また、上記文字列の座標を相対座標で
もつことにより、データ量を縮小することができる。According to the present invention, since the display coordinates of each character string are stored, it is not necessary to recalculate the display coordinates of all the character strings when the content of the character string is corrected, and the processing speed can be increased. You can Also, by having the coordinates of the character string as relative coordinates, the amount of data can be reduced.
第1図は本発明の実施例の文字列の表示座標の記憶した
テキストメモリを示した模式図であり、第2図は本発明
の機器構成図、第3図は第2図の数式記号メモリの内部
構造を示した模式図、第4図は文字列の座標を絶対座標
で表現した場合の説明図、第5図は相対座標で示した場
合の説明図である。 101…座標管理部、102…テキスト部、103…表示座標領
域、104…文字数領域、105…アドレスポインタ。FIG. 1 is a schematic diagram showing a text memory in which display coordinates of a character string of an embodiment of the present invention are stored, FIG. 2 is a device configuration diagram of the present invention, and FIG. 3 is a mathematical symbol memory of FIG. FIG. 4 is a schematic diagram showing the internal structure of FIG. 4, FIG. 4 is an explanatory diagram when the coordinates of the character string are expressed in absolute coordinates, and FIG. 5 is an explanatory diagram when the coordinates are shown in relative coordinates. 101 ... Coordinate management section, 102 ... Text section, 103 ... Display coordinate area, 104 ... Character number area, 105 ... Address pointer.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 中島 晃 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所マイクロエレクトロニク ス機器開発研究所内 (56)参考文献 特開 昭61−77981(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Akira Nakajima 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Inside the Hitachi, Ltd. microelectronics equipment development laboratory (56) Reference JP-A-61-77981 (JP , A)
Claims (2)
からの指示により文書の作成または校正編集を行なう文
書作成装置であって、各文字列間の従属関係をもつ文字
列群を入力する手段と上記文字列群を表示する手段と上
記従属関係を記憶する手段と上記文字列群の各文字列を
修正する手段とを有するものにおいて、 上記文字列の文字列毎の表示座標を記憶する記憶手段を
設け、上記各文字列の各表示座標は、各文字列毎に形成
される階層における頭の文字位置の座標であり、上記文
字列の文字及び文字列毎の表示座標は、上記頭の文字位
置の座標と各文字及び各文字列との関係にしたがった相
対座標で表し、上記文字列の内容を変更するときは、上
記表示座標と上記相対座標とのうちの少なくとも1つを
変更することを特徴とする文書作成装置。1. A document creating device for displaying character information on a display device and creating or proofreading and editing a document according to an instruction from an input device, wherein a character string group having a subordinate relationship between respective character strings is input. And a means for displaying the character string group, a means for storing the subordinate relationship, and a means for correcting each character string of the character string group, wherein display coordinates for each character string of the character string are stored. The display coordinate of each character string is the coordinate of the character position of the head in the hierarchy formed for each character string, and the display coordinate of each character of the character string and each character string is Expressed by relative coordinates according to the relationship between the character position of the head and each character and each character string, and when changing the contents of the character string, at least one of the display coordinates and the relative coordinates is changed. Document work characterized by changing Equipment.
字列についてのデータ群と他の文字列についてのデータ
群とを区切る記号となるデータを、各文字列についての
データ群の相互間に配置しており、上記表示座標は、上
記データ群毎に1つずつ設けてあることを特徴とする特
許請求の範囲第1項記載の文書作成装置。2. A means for storing the above-mentioned subordination relationship is configured such that data serving as a symbol that separates a data group for one character string from a data group for another character string is stored between the data groups for each character string. The document creation device according to claim 1, wherein the display coordinates are provided for each of the data groups.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62247844A JPH0778792B2 (en) | 1987-10-02 | 1987-10-02 | Document creation device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62247844A JPH0778792B2 (en) | 1987-10-02 | 1987-10-02 | Document creation device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0192866A JPH0192866A (en) | 1989-04-12 |
| JPH0778792B2 true JPH0778792B2 (en) | 1995-08-23 |
Family
ID=17169507
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62247844A Expired - Lifetime JPH0778792B2 (en) | 1987-10-02 | 1987-10-02 | Document creation device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0778792B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5938833A (en) * | 1982-08-27 | 1984-03-02 | Alps Electric Co Ltd | System for direct retrieval of character correction position in character proofreading machine |
| JPH0812663B2 (en) * | 1984-09-25 | 1996-02-07 | キヤノン株式会社 | Image processing system and method thereof |
-
1987
- 1987-10-02 JP JP62247844A patent/JPH0778792B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0192866A (en) | 1989-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH024938B2 (en) | ||
| JPH07248755A (en) | Character display method | |
| JPH0778792B2 (en) | Document creation device | |
| JPH0522933B2 (en) | ||
| EP0190511A1 (en) | Block processing apparatus | |
| JP2728906B2 (en) | Character processor | |
| JPH08263046A (en) | Character display method and device | |
| JP3725977B2 (en) | FRAME CHARACTER CREATION METHOD AND DEVICE, AND RECORDING MEDIUM CONTAINING PROGRAM FOR EXECUTING THE PROCESS | |
| JPH0670737B2 (en) | Character processor | |
| JPH0731671B2 (en) | Formula input editing method | |
| JP3375781B2 (en) | Document processing device with line-by-line editing function | |
| JPS5910990A (en) | Automatic printed board designing apparatus | |
| JP2612402B2 (en) | Display control method | |
| JP3044052B2 (en) | Character processor | |
| JPH0844333A (en) | Graphic input device | |
| JPH05289647A (en) | Character drawing control method | |
| JPH05135045A (en) | Character processing method | |
| JPH0650506B2 (en) | Kana-Kanji converter | |
| JPS58105372A (en) | Linear pattern plotting system using minimum squaring method | |
| JPS62102284A (en) | Character processor | |
| JPH081554B2 (en) | Character processor | |
| JPH0619443A (en) | Information processing equipment | |
| JPS62177585A (en) | document processing device | |
| JPH0439693A (en) | Character image forming system | |
| JPH0679213B2 (en) | Character processor |