JP2714304B2 - Document creation device - Google Patents

Document creation device

Info

Publication number
JP2714304B2
JP2714304B2 JP4029454A JP2945492A JP2714304B2 JP 2714304 B2 JP2714304 B2 JP 2714304B2 JP 4029454 A JP4029454 A JP 4029454A JP 2945492 A JP2945492 A JP 2945492A JP 2714304 B2 JP2714304 B2 JP 2714304B2
Authority
JP
Japan
Prior art keywords
line
null
character data
data
rectangular block
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 - Fee Related
Application number
JP4029454A
Other languages
Japanese (ja)
Other versions
JPH05225179A (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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP4029454A priority Critical patent/JP2714304B2/en
Publication of JPH05225179A publication Critical patent/JPH05225179A/en
Application granted granted Critical
Publication of JP2714304B2 publication Critical patent/JP2714304B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related 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 creating apparatus capable of moving character data in a rectangular block by moving a format sequence forming a rectangular block.

【0002】[0002]

【従来の技術】日本語文書作成装置あるいはワークステ
ーション等の文書作成装置では、書式マークによって矩
形ブロックを生成し、様々なレイアウトの文書に文字デ
ータを入力することができる。
2. Description of the Related Art In a document creation device such as a Japanese document creation device or a workstation, a rectangular block is generated by a format mark, and character data can be input to documents having various layouts.

【0003】例えば、図6(A)に示したような書式の
文書を例にあげて説明すると、文書テキストT上にイン
デント(◇)で作られた矩形ブロックがあり、矩形ブロ
ック内には文字データが入力されている。この矩形ブロ
ックを形成するインデント列を左右に移動させることに
よって、図6(B)に示すように矩形ブロック内の文字
データも新たな矩形ブロックのフォーマットにそって移
動するいわゆる書式変更機能を備えた文書作成装置があ
った。
For example, a document having a format as shown in FIG. 6A will be described as an example. A rectangular block formed by indentation (◇) is provided on a document text T, and a character is included in the rectangular block. Data has been entered. By moving the indent row forming this rectangular block to the left and right, a so-called format change function is provided in which the character data in the rectangular block also moves according to the new rectangular block format as shown in FIG. There was a document creation device.

【0004】[0004]

【発明が解決しようとする課題】このような従来の文書
作成装置の書式変更におけるヌルデータの取り扱いは、
(I)行末にヌルデータがある場合は文書が改行されてい
ることを意味する、(II)それ以外のヌルデータは文字扱
いする、というルールによって文字データを移動してき
た。従って、このルールにより、図6(A)に示すよう
なブロックの左側に空白が存在しない矩形ブロック内文
字データの処理はうまくできた。
The handling of null data in the format change of such a conventional document creation device is as follows.
Character data has been moved according to the rule that (I) null data at the end of a line means that the document has been broken, and (II) other null data is treated as characters. Therefore, according to this rule, the processing of character data in a rectangular block in which no space exists on the left side of the block as shown in FIG.

【0005】しかし、図2(A),図3(A)に示すよ
うに矩形ブロック内の左側に余白が存在する文字データ
についてはうまく処理できなかった。即ち、左側の余白
は移動により破壊されていた。
However, as shown in FIGS. 2A and 3A, character data having a blank space on the left side in a rectangular block cannot be processed well. That is, the left margin was destroyed by the movement.

【0006】本発明の文書作成装置は、このような事情
に鑑みなされたものであり、矩形ブロック内の文字デー
タの中に於て、左側に生成された余白を保護し乍ら文字
データの移動ができる文書作成装置を提供するものであ
り、本発明によって、例えば図2(A),図3(A)の
矩形ブロック内の文字データが図2(B),図3(B)
に示すように移動処理ができることとなる。
The document creation apparatus of the present invention has been made in view of such circumstances, and moves character data in a character block in a rectangular block while protecting a margin generated on the left side. According to the present invention, for example, the character data in the rectangular blocks shown in FIGS. 2A and 3A can be converted into the document data shown in FIGS. 2B and 3B.
The moving process can be performed as shown in FIG.

【0007】[0007]

【課題を解決するための手段】本発明の文書作成装置
は、複数行からなる文書テキスト上で、罫線,インデン
ト,マージン等の書式マークと文字データが混在し、前
記書式マークによって形成される矩形ブロックの書式列
が変更された場合に、当該変更後の書式列によるブロッ
ク幅に応じて前記矩形ブロック内の文字データを移動す
る文書作成装置に於て、変更後の書式列による矩形ブロ
ック内に書き込もうとする文字データが、変更前の矩形
ブロック内の何行目に位置していたかを検索する行位置
検索手段と、変更後の書式列による矩形ブロック内に文
字データを書き込む際の左余白の数を決定するための最
適ヌル数決定手段とを具備し、該最適ヌル数決定手段
は、書き込もうとする文字データが、前記行位置検索手
段により検索された行から1回目に読み出される文字デ
ータであれば、当該行の先頭のヌルデータ数を最適ヌル
数とし、書き込もうとする文字データが、前記検索され
た行より2回目以降に読み出された文字データであれ
ば、前記検索された行の次の行の先頭のヌルデータ数を
最適ヌル数とし、前記次の行がヌル行であれば前記検索
された行の先頭ヌル行を最適ヌル数とし、前記検索され
た行の行末がヌルデータである場合には、その行の先頭
のヌルデータ数を最適ヌル数とする。
According to the present invention, there is provided a document creating apparatus which includes a plurality of lines of a document text, in which format marks such as ruled lines, indents and margins and character data are mixed, and a rectangle formed by the format marks is provided. When a format column of a block is changed, in a document creating apparatus that moves character data in the rectangular block according to the block width of the changed format column, the document data is stored in a rectangular block of the changed format column. A line position search unit for searching the position of the character data to be written in the rectangular block before the change, and a left margin for writing the character data in the rectangular block in the format column after the change. An optimal null number determining means for determining the number of characters, the optimal null number determining means comprising a line for which character data to be written is searched by the line position searching means. If the character data is the first character data to be read, the number of null data at the beginning of the line is set to the optimum null number, and the character data to be written is the character data read from the searched line for the second time or later. For example, the number of null data at the head of the next line after the searched line is set as the optimum null number, and if the next line is a null line, the first null line of the searched line is set as the optimum null number, and the searched null is set. If the end of a given line is null data, the number of null data at the beginning of the line is determined as the optimum number of nulls.

【0008】[0008]

【作用】最適ヌル数決定手段により、変更後の書式列に
よる矩形ブロック内に文字データを書き込む際の左余白
の数が決定されるため、矩形ブロックを形成する書式列
を移動する場合の、矩形ブロック内文字データの処理に
おいて、ユーザーが意識してヌルを挿入した左余白数を
反映した処理が可能となり、例えば、個条書き文書、段
落分け文書等の特殊な左余白の文書を理想的に処理する
ことができる。
Since the number of left margins at the time of writing character data in a rectangular block based on the format string after the change is determined by the optimum null number determining means, a rectangle for moving the format row forming the rectangular block is determined. In the processing of the character data in the block, it is possible to reflect the number of left margins where the user has inserted a null consciously. Can be processed.

【0009】[0009]

【実施例】以下、本発明の文書作成装置の実施例につい
て図面を参照しながら説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a document creating apparatus according to the present invention.

【0010】図1は、本発明の文書作成装置の全体構成
を示すブロック図である。
FIG. 1 is a block diagram showing the overall configuration of a document creation apparatus according to the present invention.

【0011】図中、(1)は入力部であり、カーソル移
動キー及び書式移動キー等を有している。(2)はカー
ソルカウンタ、(3)は制御部、(4)はテキストバッ
ファである。(5)はテキストバッファ(4)の中で書
式移動の対象となるテキスト範囲を格納するテキスト格
納部である。(6)は書式移動する際の最適なヌル数を
検索する最適ヌル数検索部である。(7)は文字データ
WRITE部であり、文書テキスト内で、移動された書
式列による矩形ブロックのテキスト中を移動でき、書き
込み位置(行及びカラム(列)位置)を管理するWポイ
ント変数と、該Wポイント変数が現在何行目のデータを
WRITEしているかを管理するWライン変数とを有し
ている。(8)は文字データREAD部であり、前記テ
キスト格納領域(5)に格納された矩形ブロック内のテ
キストデータ中を移動でき、読み出すデータの位置(行
及びカラム位置)を管理するRポイント変数と、該Rポ
イント変数が現在何行目のデータをREADしているか
を管理するRライン変数とを有している。(9)は一文
字バッファ、(10)はCRT等の出力部である。
In FIG. 1, reference numeral 1 denotes an input unit having a cursor movement key, a format movement key, and the like. (2) is a cursor counter, (3) is a control unit, and (4) is a text buffer. (5) is a text storage unit for storing a text range to be format-moved in the text buffer (4). (6) is an optimum null number search unit for searching for the optimum number of nulls when moving the format. (7) a character data WRITE part, which can move in the text of the rectangular block according to the moved format column in the document text, and manages a writing point (row and column (column) position); The W point variable has a W line variable for managing what line of data is currently being written. (8) a character data READ part, which can move in the text data in the rectangular block stored in the text storage area (5), and has R point variables for managing the position (line and column position) of the data to be read; , And an R line variable for managing which row of data the R point variable is currently reading. (9) is a one-character buffer, and (10) is an output unit such as a CRT.

【0012】次に、図4及び図5のテキスト格納部
(5)内のテキストデータ(格納領域データ)とテキス
トバッファ(4)内のテキストデータの概念図を参照し
ながら書式列の移動時に於けるデータ移動について説明
をする。
Next, referring to the conceptual diagrams of the text data (storage area data) in the text storage section (5) and the text data in the text buffer (4) shown in FIGS. A description will be given of the data movement performed by the system.

【0013】まず、図2(A)に示すテキストを図2
(B)の様に移動する場合、即ち、書式列を移動して矩
形ブロックの幅を狭くする場合について、図4(A)乃
至(D)を参照しながら説明する。
First, the text shown in FIG.
The case of moving as in (B), that is, the case of moving the format column to reduce the width of the rectangular block will be described with reference to FIGS. 4 (A) to 4 (D).

【0014】書式列の移動を指示することにより、テキ
スト格納部(5)に書式移動の対象となる範囲のテキス
トデータが格納され、又、テキストバッファ(4)内の
矩形ブロックの書式列は移動される。文字データWRI
TE部(7),文字データREAD部(8)のRライン
変数,Wライン変数には初期値として[0]がセットさ
れる。
By instructing to move the format column, text data in the range of the format to be moved is stored in the text storage unit (5), and the format column of the rectangular block in the text buffer (4) is moved. Is done. Character data WRI
[0] is set as an initial value in the R line variable and the W line variable of the TE section (7) and the character data READ section (8).

【0015】まず、図4(A)に於て、Wポイント変数
はテキストバッファ(4)内の1行目に存在するが、W
ライン変数の値は[0]である。即ち、Wポイント変数
の値とWライン変数の値が一致しておらず、これは、テ
キストバッファ(4)内の1行目に初めて文字データを
WRITEすることを意味している。これにより最適ヌ
ル数検索部(6)は、書き込み時に於ける1行目の左余
白の数を決定する。いまRライン変数の値は[0]であ
るが、Rポイント変数の示す位置は1行目にあり、両変
数の行位置が一致しないため、最適ヌル数検索部(6)
は、書き込もうとする文字データは、検索された行(1
行目)から1回目に読み出される文字データである判定
して、該1行目の矩形ブロック内の先頭ヌル数を最適ヌ
ル数とする。本実施例では最適ヌル数は[3]であり、
Wポイント変数を3カウントして文字データをテキスト
バッファ(4)にWRITEする。そして、Wポイント
変数の位置に文字データがWRITEされるとWポイン
ト変数の位置の行数がWライン変数にセットされる。
又、Wポイント変数は1カウントされる。又、Rライン
変数には、Rポイント変数の位置の文字をREADする
と、Rポイント変数の位置の行数がセットされる。また
Rポイント変数は、次の文字データの位置までカウント
される。この時、Rポイント変数は、ブロック先頭のヌ
ルは無視してカウントされる。またブロック末ヌルは改
行マークとしてREADする。
First, in FIG. 4A, the W point variable exists on the first line in the text buffer (4).
The value of the line variable is [0]. That is, the value of the W point variable does not match the value of the W line variable, which means that the character data is first written in the first line in the text buffer (4). Thereby, the optimum null number search unit (6) determines the number of left margins on the first line at the time of writing. Now, the value of the R line variable is [0], but the position indicated by the R point variable is on the first line, and since the line positions of both variables do not match, the optimum null number search unit (6)
Indicates that the character data to be written is in the searched line (1
It is determined that the character data is the first character data read out from (line), and the number of leading nulls in the rectangular block on the first line is determined as the optimal number of nulls. In this embodiment, the optimal null number is [3],
The W point variable is counted three times and the character data is written to the text buffer (4). When the character data is written at the position of the W point variable, the number of lines at the position of the W point variable is set to the W line variable.
The W point variable is counted by one. When the character at the position of the R point variable is read as the R line variable, the number of lines at the position of the R point variable is set. The R point variable is counted up to the position of the next character data. At this time, the R point variable is counted ignoring the null at the head of the block. A null at the end of the block is read as a line feed mark.

【0016】図4(B)では、既にテキストバッファ中
の1行目に[毎々特別のご指]までのWRITEが完了
しており、Wポイント変数は2行目に移っている。しか
し、Wライン変数は[1]であるため、最適ヌル数検索
部(6)は、2行目の左余白のヌル数を決定する。いま
Rライン変数の値は[1]であり、Rポイント変数の示
す位置[導]も1行目であり、両変数の行位置が一致す
るため、書き込もうとする文字データは、検索された行
(1行目)より2回目以降に読み出された文字データで
あると判定して、前記検索された行(1行目)の次の行
(2行目)の先頭のヌルデータ数を最適ヌル数とする。
実施例では最適ヌル数は[2]であり、Wポイント変数
を2カウントして文字データをテキストバッファ(4)
にWRITEする。
In FIG. 4 (B), the WRITE has been completed up to [each special finger] on the first line in the text buffer, and the W point variable has moved to the second line. However, since the W line variable is [1], the optimum null number search unit (6) determines the null number of the left margin in the second row. Now, the value of the R line variable is [1], the position [derived] indicated by the R point variable is also the first line, and since the line positions of both variables match, the character data to be written is the searched line It is determined that the character data is the character data read out from the (first line) for the second time or later, and the number of null data at the head of the next line (second line) after the searched line (first line) is set to the optimum null data. Number.
In the embodiment, the optimal null number is [2], and the W point variable is counted by 2 to store character data in the text buffer (4).
WRITE to

【0017】次に図4(C)について説明する。ここで
は既にテキストバッファ(4)の4行目には[謝いたし
ておりま]までのWRITEが完了しており、Wポイン
ト変数は5行目に移っている。しかし、Wライン変数は
[4]であり、両変数の行位置が一致しないため、最適
ヌル数検索部(6)は、5行目の左余白のヌル数を決定
する。いまRライン変数の値は[3]であり、Rポイン
ト変数示す位置[す]も3行目であり、両変数の行位置
は一致するが、Rポイント変数の示す行の行末には、ヌ
ルデータが存在するため、最適ヌル数検索部(6)は文
書が改行されているとみなし、3行目のブロック内の先
頭ヌル数を最適ヌル数とする。本実施例では最適ヌル数
は[2]であり、Wポイント変数を2カウントして文字
データをテキストバッファ(4)にWRITEする。
Next, FIG. 4C will be described. Here, the WRITE up to [Apologize] has already been completed on the fourth line of the text buffer (4), and the W point variable has moved to the fifth line. However, since the W line variable is [4] and the row positions of both variables do not match, the optimum null number search unit (6) determines the null number of the left margin of the fifth line. Now, the value of the R line variable is [3], the position [su] indicated by the R point variable is also the third line, and the line positions of both variables match, but the end of the line indicated by the R point variable has null data. Exists, the optimal null number search unit (6) regards that the document is line-breaked, and sets the number of leading nulls in the block on the third line as the optimal null number. In the present embodiment, the optimum null number is [2], and the W point variable is counted by 2 to write the character data to the text buffer (4).

【0018】次に図4(D)について説明する。ここで
は既にテキストバッファ(4)中の5行目には[す。]
までWRITEが完了しており、Wポイント変数は6行
目に移っている。しかし、Wライン変数は[5]であ
り、両変数の行位置が一致しないため、最適ヌル数検索
部(6)は、6行目に設ける左余白のヌル数を決定す
る。いまRライン変数の値は[3]であり、Rポイント
変数の示す位置[従]は4行目であり、両変数は一致し
ないため、最適ヌル数検索部(6)は、書き込もうとす
る文字データは、検索された行(4行目)から1回目に
読み出される文字データである判定して、該4行目の矩
形ブロック内の先頭ヌル数を最適ヌル数とする。本実施
例に於て最適ヌル数は[3]であり、Wポイント変数を
3カウントして文字データをテキストバッファにWRI
TEする。
Next, FIG. 4D will be described. In this case, the fifth line in the text buffer (4) has already been set. ]
WRITE has been completed until now, and the W point variable has moved to the sixth line. However, since the W line variable is [5] and the row positions of both variables do not match, the optimal null number search unit (6) determines the null number of the left margin provided in the sixth line. Now, the value of the R line variable is [3], the position [dependent] indicated by the R point variable is the fourth line, and since both variables do not match, the optimum null number search unit (6) determines the character to be written. It is determined that the data is character data read for the first time from the searched line (the fourth line), and the number of leading nulls in the rectangular block on the fourth line is set as the optimum number of nulls. In the present embodiment, the optimal null number is [3], and the W point variable is counted by 3 and the character data is written to the text buffer by the WRI.
TE.

【0019】この処理をブロックエンドまで繰り返すこ
とにより、図2(A)のテキストデータは、図2(B)
に示した様に移動される。
By repeating this process up to the block end, the text data of FIG.
Is moved as shown in FIG.

【0020】次に、図3(A)に示すテキストを図3
(B)の様に移動する場合、即ち、書式列を移動して矩
形ブロックの幅を広くする場合について、図5(A)乃
至(D)を参照しながら説明する。
Next, the text shown in FIG.
The case of moving as in (B), that is, the case of moving the format column to increase the width of the rectangular block will be described with reference to FIGS. 5 (A) to 5 (D).

【0021】書式列の移動を指示することにより、テキ
スト格納部(5)に書式移動の対象となる範囲のテキス
トデータが格納され、又、テキストバッファ(4)内の
矩形ブロックの書式列は移動される。文字データWRI
TE部(7),文字データREAD部(8)のRライン
変数,Wライン変数には初期値として[0]がセットさ
れる。
By instructing the movement of the format column, text data in the range of the format to be moved is stored in the text storage unit (5), and the format column of the rectangular block in the text buffer (4) is moved. Is done. Character data WRI
[0] is set as an initial value in the R line variable and the W line variable of the TE section (7) and the character data READ section (8).

【0022】まず図5(A)に於て、Wポイント変数は
テキストバッファ内の1行目に存在するが、Wライン変
数の値は[0]である、これは、テキストバッファ
(4)内の1行目に初めて文字データをWRITEする
ことを意味し、最適ヌル数検索部(6)は、該1行目に
設ける左余白のヌル数を決定する。いまRライン変数の
値は[0]であるがRポイント変数の示す位置は1行目
であり、両変数は一致しないため、最適ヌル数検索部
(6)は、書き込もうとする文字データは、検索された
行(1行目)から1回目に読み出される文字データであ
る判定して、該1行目の矩形ブロック内の先頭ヌル数を
最適ヌル数とする。本実施例に於ては最適ヌル数[1]
であり、Wポイント変数を1カウントして文字データを
テキストバッファ(4)にWRITEする。
First, in FIG. 5A, the W point variable exists on the first line in the text buffer, but the value of the W line variable is [0]. Means that the character data is first written in the first line, and the optimum null number search unit (6) determines the number of nulls in the left margin provided in the first line. Now, the value of the R line variable is [0], but the position indicated by the R point variable is on the first line, and since both variables do not match, the optimal null number search unit (6) sets the character data to be written to It is determined that the character data is the first character data read from the searched line (first line), and the number of leading nulls in the rectangular block on the first line is determined as the optimum number of nulls. In this embodiment, the optimal null number [1]
Then, the W point variable is counted by one, and the character data is written to the text buffer (4).

【0023】次に図5(B)について説明する。ここで
は既にテキストバッファ(4)中の1行目には[毎々特
別のご指導を賜り大]までWRITEが完了しており、
Wポイント変数は2行目に移っている。しかし、Wライ
ン変数は[1]であるため、最適ヌル数検索部(6)
は、2行目に設ける左余白のヌル数を決定する。いまR
ライン変数の値は[2]であり、Rポイント変数の示す
位置[変]も2行目であり、両変数の行位置が一致する
ため、書き込もうとする文字データは、検索された行
(2行目)より2回目以降に読み出された文字データで
あると判定して、前記検索された行(2行目)の次の行
(3行目)の先頭のヌルデータ数を最適ヌル数とする。
実施例では最適ヌル数は[3]であり、Wポイント変数
を3カウントして文字データをテキストバッファ(4)
にWRITEする。
Next, FIG. 5B will be described. Here, WRITE has already been completed on the first line of the text buffer (4) up to [Every special guidance is large]
The W point variable has moved to the second line. However, since the W line variable is [1], the optimum null number search unit (6)
Determines the number of nulls in the left margin provided on the second line. Now R
The value of the line variable is [2], and the position [variation] indicated by the R-point variable is also the second line. Since the line positions of both variables match, the character data to be written is in the searched line (2). It is determined that the character data is the character data read from the second line onward, and the number of null data at the head of the next line (third line) after the searched line (second line) is determined as the optimal null number. I do.
In the embodiment, the optimum number of nulls is [3], and the W point variable is counted three times to store character data in the text buffer (4).
WRITE to

【0024】次に図5(C)について説明する。ここで
は既にテキストバッファ(4)の2行目には[変感謝い
たしております。]までのWRITEが完了しており、
Wポイント変数は3行目に移っている。しかし、Wライ
ン変数は[2]であり、両変数の行位置が一致しないた
め、最適ヌル数検索部(6)は、3行目の左余白のヌル
数を決定する。いまRライン変数の値は[5]である
が、Rライン変数の示す行はヌルデータ行である。この
場合は、Wポイント変数の示す行にはヌルデータを書き
込み、Wポイント変数は次のブロックの先頭に移動され
る。Rポイント変数の値も同じく次のブロックの先頭に
移動される。
Next, FIG. 5C will be described. Here, already in the second line of the text buffer (4), [Thank you for the change. ] Has been completed,
The W point variable has moved to the third line. However, since the W line variable is [2] and the row positions of both variables do not match, the optimum null number search unit (6) determines the null number of the left margin of the third line. Now, the value of the R line variable is [5], but the line indicated by the R line variable is a null data line. In this case, null data is written in the row indicated by the W point variable, and the W point variable is moved to the head of the next block. The value of the R point variable is also moved to the head of the next block.

【0025】次に図5(D)について説明する。ここで
は既にテキストバッファ(4)中の3行目にはヌルデー
タ行のWRITEが完了しており、Wポイント変数は4
行目に移っている。しかし、Wライン変数は[3]であ
り、両変数の行位置が一致しないため、最適ヌル数検索
部(6)は、4行目に設ける左余白のヌル数を決定す
る。いまRライン変数の値は[5]であり、Rポイント
変数の示す位置[2]は6行目であり、両変数は一致し
ないため、最適ヌル数検索部(6)は、書き込もうとす
る文字データは、検索された行(6行目)から1回目に
読み出される文字データである判定して、該6行目の矩
形ブロック内の先頭ヌル数を最適ヌル数とする。本実施
例に於て最適ヌル数は[1]であり、Wポイント変数を
1カウントして文字データをテキストバッファにWRI
TEする。
Next, FIG. 5D will be described. Here, the WRITE of the null data line has already been completed for the third line in the text buffer (4), and the W point variable is 4
It has moved to the line. However, since the W line variable is [3] and the row positions of both variables do not match, the optimum null number search unit (6) determines the null number of the left margin provided in the fourth line. Now, the value of the R line variable is [5], the position [2] indicated by the R point variable is the sixth line, and since both variables do not match, the optimal null number search unit (6) determines the character to be written. The data is determined to be the character data read out for the first time from the searched row (sixth row), and the number of leading nulls in the rectangular block on the sixth row is determined as the optimal number of nulls. In this embodiment, the optimum null number is [1], and the W point variable is counted by one, and the character data is stored in the text buffer as a WRI.
TE.

【0026】この処理をブロックエンドまで繰り返すこ
とにより、図3(A)のテキストデータは、図3(B)
に示した様に移動される。
By repeating this process up to the block end, the text data of FIG.
Is moved as shown in FIG.

【0027】このように、本発明の文書作成装置によれ
ば、矩形ブロックを形成する書式列を移動する場合の矩
形ブロック内の文字データの処理に於て、例えば、個条
書き文書、段落分け文書等の特殊な左余白の文書を理想
的に処理することができる。
As described above, according to the document creation apparatus of the present invention, in the processing of character data in a rectangular block when moving a format sequence forming a rectangular block, for example, an individual document, a paragraph division Documents with a special left margin such as documents can be processed ideally.

【0028】[0028]

【発明の効果】以上説明したように、本発明の文書作成
装置によれば、矩形ブロック内の文字データの中に於
て、左側に生成された余白を保護し乍ら文字データの移
動ができることとなる。
As described above, according to the document creating apparatus of the present invention, in the character data in the rectangular block, the character data can be moved while protecting the margin generated on the left side. Becomes

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

【図1】本発明の文書作成装置の全体構成を示すブロッ
ク図である。
FIG. 1 is a block diagram illustrating an overall configuration of a document creation device according to the present invention.

【図2】矩形ブロック内の左側に余白が存在する文字デ
ータの例を示すテキスト構成図である。
FIG. 2 is a text configuration diagram showing an example of character data having a blank space on the left side in a rectangular block.

【図3】矩形ブロック内の左側に余白が存在する文字デ
ータの例を示すテキスト構成図である。
FIG. 3 is a text configuration diagram showing an example of character data having a blank space on the left side in a rectangular block.

【図4】本発明の文書作成装置に於けるテキスト格納部
内のテキストデータとテキストバッファ内のテキストデ
ータの概念図である。
FIG. 4 is a conceptual diagram of text data in a text storage unit and text data in a text buffer in the document creation device of the present invention.

【図5】本発明の文書作成装置に於けるテキスト格納部
内のテキストデータとテキストバッファ内のテキストデ
ータの概念図である。
FIG. 5 is a conceptual diagram of text data in a text storage unit and text data in a text buffer in the document creation device of the present invention.

【図6】ブロックの左側に空白が存在しない矩形ブロッ
ク内文字データの例を示すテキスト構成図である。
FIG. 6 is a text configuration diagram showing an example of character data in a rectangular block in which no blank exists on the left side of the block.

【符号の説明】[Explanation of symbols]

1 入力部 2 カーソルカウンタ 3 制御部 4 テキストバッファ 5 テキスト格納部 6 最適ヌル数検索部 7 文字データWRITE部 8 文字データREAD部 9 一文字バッファ 10 出力部 DESCRIPTION OF SYMBOLS 1 Input part 2 Cursor counter 3 Control part 4 Text buffer 5 Text storage part 6 Optimal null number search part 7 Character data WRITE part 8 Character data READ part 9 One character buffer 10 Output part

───────────────────────────────────────────────────── フロントページの続き (72)発明者 古和田 孝之 大阪府守口市京阪本道2丁目18番地 三 洋電機株式会社内 (72)発明者 畑山 佳紀 大阪府守口市京阪本道2丁目18番地 三 洋電機株式会社内 (56)参考文献 特開 平5−46606(JP,A) ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Takayuki Kowada 2-18-18 Keihan Main Road, Moriguchi City, Osaka Prefecture Inside Sanyo Electric Co., Ltd. (72) Yoshiki Hatayama 2-18-18 Keihan Main Road, Moriguchi City, Osaka Prefecture Sanyo (56) References JP-A-5-46606 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数行からなる文書テキスト上で、罫
線,インデント,マージン等の書式マークと文字データ
が混在し、前記書式マークによって形成される矩形ブロ
ックの書式列が変更された場合に、当該変更後の書式列
によるブロック幅に応じて前記矩形ブロック内の文字デ
ータを移動する文書作成装置に於て、 変更後の書式列による矩形ブロック内に書き込もうとす
る文字データが、変更前の矩形ブロック内の何行目に位
置していたかを検索する行位置検索手段と、 変更後の書式列による矩形ブロック内に文字データを書
き込む際の左余白の数を決定するための最適ヌル数決定
手段とを具備し、 該最適ヌル数決定手段は、書き込もうとする文字データ
が、前記行位置検索手段により検索された行から1回目
に読み出される文字データであれば、当該行の先頭のヌ
ルデータ数を最適ヌル数とし、 書き込もうとする文字データが、前記検索された行より
2回目以降に読み出された文字データであれば、前記検
索された行の次の行の先頭のヌルデータ数を最適ヌル数
とし、前記次の行がヌル行であれば前記検索された行の
先頭ヌル行を最適ヌル数とし、 前記検索された行の行末がヌルデータである場合には、
その行の先頭のヌルデータ数を最適ヌル数とすることを
特徴とした文書作成装置。
1. In a case where format marks such as ruled lines, indents, and margins and character data are mixed in a document text including a plurality of lines, and the format column of a rectangular block formed by the format marks is changed, In a document creating apparatus that moves character data in the rectangular block according to the block width of the changed format column, the character data to be written in the rectangular block of the changed format column is replaced with the rectangular block before the change. Line position searching means for searching in which line of the character string was located, and optimal null number determining means for determining the number of left margins when writing character data in a rectangular block according to the changed format column The optimal null number determining means is a section in which the character data to be written is the character data read out for the first time from the line searched by the line position searching means. Then, the number of null data at the head of the line is set as the optimum number of nulls. If the character data to be written is character data read out from the searched line for the second time or later, the next line after the searched line is used. If the number of null data at the beginning of the row is the optimal null number, and if the next row is a null row, the first null row of the retrieved row is the optimal null number, and the end of the retrieved row is null data In
A document creation apparatus characterized in that the number of null data at the head of the line is set as an optimum number of nulls.
JP4029454A 1992-02-17 1992-02-17 Document creation device Expired - Fee Related JP2714304B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4029454A JP2714304B2 (en) 1992-02-17 1992-02-17 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4029454A JP2714304B2 (en) 1992-02-17 1992-02-17 Document creation device

Publications (2)

Publication Number Publication Date
JPH05225179A JPH05225179A (en) 1993-09-03
JP2714304B2 true JP2714304B2 (en) 1998-02-16

Family

ID=12276559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4029454A Expired - Fee Related JP2714304B2 (en) 1992-02-17 1992-02-17 Document creation device

Country Status (1)

Country Link
JP (1) JP2714304B2 (en)

Also Published As

Publication number Publication date
JPH05225179A (en) 1993-09-03

Similar Documents

Publication Publication Date Title
US4604653A (en) Document filing system
JPS6035703B2 (en) Data editing method
US4717911A (en) Technique for chaining lines of a document together to facilitate editing or proofreading
JP2714304B2 (en) Document creation device
JPS6342799B2 (en)
US6456274B1 (en) Multi-media editing system for edting at least two types of information
JPS6226035B2 (en)
JPS6026235B2 (en) How to protect diagram data
JP2584973B2 (en) Recognition result output method in character recognition device
JPH0113113B2 (en)
JP3394304B2 (en) Document processing device
JP2550562B2 (en) Character display device
EP0522645B1 (en) Multi-media handling system
JPH10240763A (en) System for managing document information
JPH0452503B2 (en)
JPS63262262A (en) Printer device
JPH0667945A (en) Electronic filing device
JPS61289475A (en) Optical character reader
JP3157956B2 (en) Document processing device with list display function of format setting
US5630150A (en) Automatic editing device for an english letter
Jacobs et al. Tiler user's guide
KR900005491B1 (en) Method of storing and restoring of character image
JPS62229464A (en) Document processor
KR950011809B1 (en) Korean character compound writing method in laser printer
JPH0758486B2 (en) Document file device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071031

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081031

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees