JPH0573548A - Document shaping device - Google Patents

Document shaping device

Info

Publication number
JPH0573548A
JPH0573548A JP2418630A JP41863090A JPH0573548A JP H0573548 A JPH0573548 A JP H0573548A JP 2418630 A JP2418630 A JP 2418630A JP 41863090 A JP41863090 A JP 41863090A JP H0573548 A JPH0573548 A JP H0573548A
Authority
JP
Japan
Prior art keywords
sentence
data
block
text
document
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.)
Pending
Application number
JP2418630A
Other languages
Japanese (ja)
Inventor
Hiroki Atsumi
広城 渥美
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2418630A priority Critical patent/JPH0573548A/en
Publication of JPH0573548A publication Critical patent/JPH0573548A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily perform document preparing operation by shaping a document of one block which is currently read as a part succeeding to document data of one block which is read last time. CONSTITUTION:A storage means 1 is stored with document data generated corresponding to key input operation. A specifying means 2 specifies the sectioning of paragraphs of an optional block among plural blocks constituting the document data which are already generated in the storage means 1. A judging means 3 when given a document shaping command by key operation, etc., reads the document data out of the storage means 1, block by block, and judges whether or not each block contains the specified sectioning of the paragraph. A document shaping means 4 on receiving the judgement result of the judging means 3 shapes the document the document of the block data as the part succeeding to the document data of the block which is read out last time unless the document data of the block contains the sectioning of the paragraph.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ワードプロセッサ等、
文章データを記憶する記憶手段を有し、この記憶手段内
の文章データを整形する文書整形装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to a word processor, etc.
The present invention relates to a document shaping device that has storage means for storing text data and that shapes text data in the storage means.

【0002】[0002]

【従来の技術】従来、ワードプロセッサにおいて、文章
を作成する場合、次のステップを踏んで作成している。
2. Description of the Related Art Conventionally, when creating a sentence in a word processor, the following steps are taken.

【0003】即ち、 (1)1頁上のLM(レフトマージン)、RM(ライト
マージン)、行数、1行の桁数等の設定 (2)文章完成時の文章フォーマット、即ち、文章の段
落、空白位置等を頭のなかで想定する (3)想定した文章フォーマットに基づいてキー入力
し、文章を作成してゆく
That is, (1) setting of LM (left margin), RM (right margin), number of lines, number of columns per line, etc. on one page (2) sentence format at the time of sentence completion, that is, paragraph of sentence , Blank position, etc. in your head (3) Create a sentence by key-in based on the assumed sentence format

【0004】またこのようにして完成された文章を読み
直したとき、その文章の段落位置、空白位置等がおかし
く思われたときには、図6に示すような手順で、極めて
面倒な編集操作を行う必要があった。
Further, when the sentence completed in this way is read again and the paragraph position, the blank position, etc. of the sentence seem strange, it is necessary to perform an extremely troublesome editing operation by the procedure shown in FIG. was there.

【0005】即ち、図6において、その(A)に示すよ
うに、文a〜iから成る文章を完成した場合に、この文
章のフォーマット(C)に示すようなフォーマットの文
章に編集する場合を仮定する。尚、(A)に示すよう
に、文a、fは文頭下げされた段落位置を示している。
That is, in FIG. 6, when a sentence composed of sentences a to i is completed, as shown in (A) of FIG. 6, a case of editing into a sentence of a format as shown in the format (C) of this sentence is shown. I assume. As shown in (A), the sentences a and f indicate the paragraph position where the sentence head is lowered.

【0006】先ず、図6(A)において、文dとiの先
頭に段落わけを示すコード
First, in FIG. 6A, a code indicating a paragraph division at the beginning of sentences d and i

【外1】 を改行キー等を操作して文章メモリに書込む(キー操作
回数:2回)。その結果、図6(B)に示すような表示
状態となる。
[Outer 1] Write into the text memory by operating the line feed key etc. (Number of key operations: 2 times). As a result, the display state as shown in FIG.

【0007】次に図6(B)において、文dとiの先頭
にスペースコード(文頭下げ)を挿入し、また、文fの
先頭のスペースコードを削除する(キー操作回数:3
回)。その結果、図6(C)のフォーマットの文章が得
られる。
Next, in FIG. 6 (B), a space code (sentence lowering) is inserted at the beginning of sentences d and i, and a space code at the beginning of sentence f is deleted (the number of key operations: 3).
Times). As a result, the sentence in the format of FIG. 6C is obtained.

【0008】[0008]

【発明が解決しようとする課題】このように、一度完成
した文章のフォーマットを、その段落位置、空白位置等
を変更する際の編集作業は、キー操作回数が多くなり、
大変不便であった。
As described above, the number of key operations is increased in the editing work when changing the paragraph position, the blank position, etc. of the once completed sentence format.
It was very inconvenient.

【0009】そのうえ、このような再編集操作を行う前
の文章を作成するためには、完成時の文章フォーマット
を想定しておいて、それを常に考慮しながらキー操作を
行い、文章を作成する必要があり、煩雑であった。
In addition, in order to create a sentence before performing such a re-editing operation, the sentence format at the time of completion is assumed, and the key operation is performed while always considering it, and the sentence is created. It was necessary and complicated.

【00010】この発明の課題は、ワードプロセッサ
等、文章データを記憶する記憶手段を有するものにおい
てこの記憶手段内の文章データを、段落位置、空白位置
等をもったフォーマットの文章として完成させたいとき
には、書式、文章フォーマットを一切考慮せずに入力さ
れた文章を所望する文章フォーマットの文章に容易に変
更できるようにすることである。
An object of the present invention is to use a word processor or the like having storage means for storing text data, and when it is desired to complete the text data in this storage means as a text in a format having paragraph positions, blank positions, etc. It is possible to easily change an input sentence into a sentence having a desired sentence format without considering the format and the sentence format at all.

【0011】[0011]

【課題を解決するための手段】図1は本発明の機能ブロ
ック図である。記憶手段1は、例えば、ワードプロッサ
において、キー入力操作に応じて作成された文章データ
を記憶する。この場合、この文章データは、書式、文章
フォーマットを一切考慮せず、思いつくままに連続した
文として入力作成されるものである。指定手段2は記憶
手段1内に作成終了された文章データを構成する複数の
ブロックのうち任意のブロックに対し、段落の区切りを
示す文章の形、例えば、文頭下げ等の形を指定する。判
断手段3はキー操作等によって文章整形指令が与えられ
たとき、記憶手段1内の文章データを1ブロック単位で
読出してそのなかに、先に指定された段落の区切りを示
す文章の形が含まれているか否かを判断する。文章整形
手段4はこの判断手段3の判断結果を受けて、読出され
た1ブロックの文章データ内に段落を示す形がなかった
場合には、その1ブロックの文章データを前回読出され
た1ブロックの文章データに連続する文として文章整形
し、而してこのようにして作成した整形文章データを、
例えば記憶手段1に送って再書込みする。
FIG. 1 is a functional block diagram of the present invention. The storage means 1 stores, for example, sentence data created in response to a key input operation in a word processor. In this case, this text data is input and created as a continuous sentence without any consideration of the format and the text format. The designating unit 2 designates a form of a sentence indicating a paragraph break, for example, a sentence indentation form, for an arbitrary block among a plurality of blocks constituting the sentence data created in the storage unit 1. When a sentence shaping command is given by a key operation or the like, the judging means 3 reads the sentence data in the storage means 1 in block units, and includes therein the sentence shape indicating the paragraph break specified earlier. It is determined whether or not When the sentence shaping unit 4 receives the determination result of the determination unit 3 and there is no shape indicating a paragraph in the read one block of sentence data, the one sentence block of the previously read one block is read. The text is formatted as a sentence that is continuous with the text data of, and the formatted text data created in this way is
For example, it is sent to the storage means 1 and rewritten.

【0012】[0012]

【作用】例えば、ワードプロセッサにおいて、文書を作
成する場合、書式、文章フォーマットを一切考慮せず、
文章をキー入力してゆき、文章データを作成する。この
文章データは記憶手段1に順次書込まれてゆく。文章の
作成が完了すると、文章データを構成する複数のブロッ
クのうち任意のブロックに対し、段落下げ等の形を指定
手段2によって指定し、記憶手段1内の文章データに書
込む。次に、キー操作などによって文章整形指令を与え
ると、判断手段3は記憶手段1内の文章データを1ブロ
ック単位で読出してその中に、先に、指定された段落の
区切りを示す文章の形が含まれているか否かを判断す
る。そして、文章整形手段4はこの判断手段3の判断結
果を受けて、読出された1ブロックの文章データ内に段
落を示す形がなかった場合には、その1ブロックの文章
データを前回読出された1ブロックの文章データに連続
する文として文章整形し、而してこのようにして作成し
た整形文章データを、例えば記憶手段1に送って再書込
みする。従って、所望位置で段落が設けられ、また空白
が設けられて望むフォーマットにレイアウトされた文書
が、極めて簡単な編集作業で、自動的に作成される。ま
たこのようにして作成した文書のフォーマットを更に変
更するときには、指定手段2によって任意の位置に同様
にして、段落や空白位置等を指定すれば、簡単な作業で
再編集できる。
For example, when creating a document in a word processor, the format and the sentence format are not considered at all,
Create text data by keying in text. This text data is sequentially written in the storage means 1. When the creation of the sentence is completed, the designating unit 2 designates a form such as a paragraph lowering for any block among a plurality of blocks forming the sentence data, and writes it in the sentence data in the storage unit 1. Next, when a text shaping command is given by a key operation or the like, the judgment means 3 reads the text data in the storage means 1 in block units, and in that, the shape of the text indicating the break of the designated paragraph is previously written. It is determined whether or not is included. Then, when the sentence shaping unit 4 receives the determination result of the determination unit 3 and there is no shape indicating a paragraph in the read one block of sentence data, the one block of sentence data is read out last time. The text is shaped as a sentence continuous to one block of text data, and the shaped text data thus created is sent to, for example, the storage means 1 and rewritten. Therefore, a document laid out in a desired format with paragraphs and blanks provided at desired positions is automatically created by a very simple editing operation. Further, when the format of the document created in this way is further changed, it is possible to re-edit with a simple operation by designating a paragraph or a blank position in the same manner at an arbitrary position by the designating means 2.

【0013】[0013]

【第1実施例】以下、図2ないし図4を参照して、本発
明を欧文ワードプロセッサに適用した第1実施例を説明
する。
First Embodiment A first embodiment in which the present invention is applied to a European word processor will be described below with reference to FIGS.

【0014】図2において、キーボード11にはアルフ
ァベットキー、テンキー等のほかに、作成文書の書式フ
ォーマットの1つである、文書1頁上のLM(レフトマ
ージン)、RM(ライトマージン)を夫々設定するLM
キー11A、RMキー11B、文章整形指令を与えるF
ORMキー11C、また改行コードを入力する改行キー
11D等が設けられている。そして各キーからのキー入
力信号は入力制御部12を介してCPU13に与えられ
て処理される。
In FIG. 2, in addition to alphabet keys, numeric keys, etc., the keyboard 11 sets LM (left margin) and RM (right margin) on one page of the document, which is one of the format formats of the created document. LM
Key 11A, RM key 11B, F giving a sentence shaping command
An ORM key 11C, a line feed key 11D for inputting a line feed code, and the like are provided. A key input signal from each key is given to the CPU 13 via the input control unit 12 and processed.

【0015】CPU13はこの欧文ワードプロセッサの
文章データの作成、その編集、表示、印字、キーボード
11に対するキースキャン等の各種動作を制御するプロ
グラム、演算回路等を有し、図2内の各回路に対し、各
種制御信号やデータを与える。
The CPU 13 has a program, an arithmetic circuit, etc. for controlling various operations such as creation of text data of the European word processor, editing, display, printing, key scanning of the keyboard 11 and the like, and for each circuit in FIG. , Gives various control signals and data.

【0016】文章メモリ(A)14はRAMから成り、
書式や文章フォーマットに関係なく、換言すれば、文章
の段落や空白位置等を全く考慮せず、思いつくままにキ
ーボード11から文をキー入力してゆくに応じてCPU
13が作成した連続する文章データが書込まれる。これ
に対し文章メモリ(B)15は、同様にRAMから成る
が、文章メモリ(A)14内に作成完了して記憶された
一連の文章データに対し、キーボード11からのキー操
作によってイデント(文頭下げ)位置、空白位置等、文
章の段落を与える指定を行い、次いでLMキー11A、
RMキー11Bの操作によってレフトマージン、ライト
マージンを指定し、次いでFORMキー11Cの操作に
よって文章整形指令を入力するとき、CPU13が文章
メモリ(A)14内の文章データを1ブロック単位で読
出して、段落、空白のついた整形文章データを作成した
とき、その作成された整形文章データが書込まれるメモ
リである。
The text memory (A) 14 comprises a RAM,
Regardless of the format or the sentence format, in other words, the CPU does not consider the paragraph or the blank position of the sentence at all, and the CPU 11 responds to the key input of the sentence from the keyboard 11 as it comes up.
The continuous sentence data created by 13 is written. On the other hand, the text memory (B) 15 is also composed of a RAM, but with respect to a series of text data which has been created and stored in the text memory (A) 14, an incident (text beginning) is performed by a key operation from the keyboard 11. Down) position, blank position, etc., and specify to give a paragraph of text, then LM key 11A,
When a left margin and a right margin are specified by operating the RM key 11B and then a text shaping command is input by operating the FORM key 11C, the CPU 13 reads the text data in the text memory (A) 14 in units of one block, This is a memory in which the created formatted text data is written when the formatted text data with paragraphs and spaces is created.

【0017】行バッファ16はCPU13のような文章
整形処理において、文章メモリ(A)14から1ブロッ
ク単位で読出される文がセットされるレジスタであり、
その文のデータはCPU13によって読込まれ、整形処
理される。尚、この場合の1ブロック単位の文とは、末
尾に改行コードが付加された箇条書の各文を意味する。
The line buffer 16 is a register in which a sentence read out from the sentence memory (A) 14 in a block unit is set in a sentence shaping process like the CPU 13.
The data of the sentence is read by the CPU 13 and shaped. In this case, the sentence of one block unit means each sentence of the itemized document having a line feed code added at the end.

【0018】レジスタ群17は、CPU13の上記文章
整形処理時に利用されるF、C(D)、C(R)、C
(A)、C´(A)の各レジスタを有している。茲で、
Fレジスタは文章メモリ(A)14から読出された文書
データの前の行が空行か否かのフラグがセットされるレ
ジスタ、C(D)レジスタは、LMキー11A、RMキ
ー11Bによって指定された文章フォーマットの指定文
字数がセットされるレジスタ、C(R)レジスタは文章
メモリ(A)14より行バッファ16に読込まれた1ブ
ロック単位の文章データの文字数がセットされるレジス
タ、C(A)レジスタは文章メモリ(A)14から読出
された1ブロック単位の文章データのうち、文章メモリ
(B)15に書込まれた文字数がセットされるレジス
タ、C´(A)レジスタはC(A)レジスタに対する一
時記憶用レジスタである。
The register group 17 includes F, C (D), C (R), and C that are used by the CPU 13 in the above sentence shaping process.
It has registers (A) and C '(A). With mushrooms
The F register is a register in which a flag indicating whether or not the previous line of the document data read from the text memory (A) 14 is a blank line is set, and the C (D) register is designated by the LM key 11A and the RM key 11B. The register in which the specified number of characters of the text format is set, the C (R) register is a register in which the number of characters of the text data of one block unit read from the text memory (A) 14 into the line buffer 16 is set, and the C (A) register. Is a register in which the number of characters written in the text memory (B) 15 is set in the text data of one block unit read from the text memory (A) 14, and the C ′ (A) register is a C (A) register. Is a temporary storage register for.

【0019】表示制御部18は文章メモリ(A)14内
に書込まれた文章データを、あるいは文章メモリ(B)
15内の文章整形された文章データを表示データに変換
し、表示部19に表示させる回路、また印字制御部20
は文章メモリ(B)15内の文章データを印字データに
変換し、プリンタ21に印字させる回路である。
The display control unit 18 stores the text data written in the text memory (A) 14 or the text memory (B).
A circuit for converting the sentence-shaped sentence data in 15 into display data and displaying it on the display unit 19, and the print control unit 20.
Is a circuit for converting the text data in the text memory (B) 15 into print data and causing the printer 21 to print.

【0020】次に、図3(A)、(B)の文章整形のた
めのフローチャートと、図4(A)、(B)、(C)の
表示状態を参照して動作を説明する。
Next, the operation will be described with reference to the flow charts for text shaping in FIGS. 3A and 3B and the display states in FIGS. 4A, 4B and 4C.

【0021】先ず、図4(A)に示すように表示される
文章を、キーボード11のアルファベットキー等を操作
して入力し、そのキー入力信号を入力制御部12を介し
CPU13に与えてその文章データを作成する。そして
それを文章メモリ(A)14に書込む。この場合、この
文書データは、文a〜文lから成る箇条書きの文章であ
り、各文の終りには改行キー11Dの操作による改行コ
ード
First, a sentence displayed as shown in FIG. 4 (A) is input by operating the alphabet keys of the keyboard 11 and the key input signal is given to the CPU 13 via the input control unit 12 to give the sentence. Create the data. Then, it is written in the text memory (A) 14. In this case, this document data is a bulleted sentence consisting of sentences a to l, and a line feed code by the operation of the line feed key 11D at the end of each sentence.

【外2】 の書込みを行うだけで、その他の書式や文章フォーマッ
トを考慮したキー入力操作は何も行わず、思いつくまま
に、連続的に文章を入力する。
[Outside 2] Just write in, and do not perform any key input operation considering other formats and text formats, and enter text continuously as you think.

【0022】次に、図4(B)に示すように、この例で
は文aと文eの先頭にスペースコードをスペースキー
(図示略)によって設定し、文章メモリ(A)14に書
込み、また文iの末尾の改行コード
Next, as shown in FIG. 4B, in this example, a space code is set at the beginning of sentences a and e by a space key (not shown), and written in the sentence memory (A) 14 and Line feed code at the end of sentence i

【外3】 に連続して改行キー11Dを操作し、改行コード[Outside 3] To operate the line feed key 11D in succession to

【外4】 を入力し、文章メモリ(A)14に書込む。その結果、
文aと文eは文章の段落を示すイデント(文頭下げ)位
置を設定され、また、文iと文jの間は1行文の空白が
設定される。
[Outside 4] Is input and written in the text memory (A) 14. as a result,
Sentences a and e are set to the indent (sentence lowering) position indicating a paragraph of the sentence, and a blank of one line is set between the sentences i and j.

【0023】次に、LMキー11A、RMキー11Bを
操作して、図4(C)に示すような位置にレフトマージ
ン(LM)とライトマージン(RM)とを設定する。こ
の場合、説明の都合上、このLM、RM間の文字数を
「8」と仮定すると、この文字数「8」はレジスタ群1
7内のC(D)レジスタにセットされる。
Then, the LM key 11A and the RM key 11B are operated to set the left margin (LM) and the right margin (RM) at the positions shown in FIG. 4C. In this case, for convenience of description, if the number of characters between the LM and RM is assumed to be "8", the number of characters "8" is set in the register group 1
7 is set in the C (D) register.

【0024】次にFORMキー11Cを操作してCPU
13に文章整形指令を与えると、CPU13は図3のフ
ローチャートにしたがって、文章メモリ(A)14内に
図4(B)の表示状態に応じた状態で記憶されている文
章データを1ブロック単位で読出して整形し、段落をつ
けられた図4(C)の表示状態に示すような整形文章デ
ータを作成し、文章メモリ(B)15に書込む処理を開
始する。
Next, the FORM key 11C is operated to operate the CPU.
When a sentence shaping command is given to the CPU 13, the CPU 13 follows the flow chart of FIG. 3 and the sentence data stored in the sentence memory (A) 14 in a state corresponding to the display state of FIG. The process of reading and shaping, creating shaped sentence data with a paragraph added as shown in the display state of FIG. 4C, and writing it into the sentence memory (B) 15 is started.

【0025】即ち、CPU13は文章メモリ(A)14
から第1行目の文aを読出すに際して、文章メモリ
(A)14内の文章データが既にすべて読出され、終了
しているか否かをステップS1の処理により判断する。
この場合、NOであり、次にステップS2の、文aの1
行文の行データ(末尾の改行コードも含む)を1ブロッ
ク文の文章データとして読出し、行バッファ16にセッ
トする。そしてその文aについて、先頭行か否かを判断
する(ステップS3)。而してこの場合、先頭行である
ことが判断され、ステップS12に進んで、C(A)レ
ジスタのデータ(いまは「0」)と、C(R)レジスタ
のデータ(文aの空白文字も含む文字数、いま「5」と
する)とを加算し、その結果データ「5」をC´(A)
レジスタにセットする。
That is, the CPU 13 has the text memory (A) 14
When the sentence a on the first line is read from, all the sentence data in the sentence memory (A) 14 are already read, and it is determined by the process of step S1 whether or not the sentence data has been read.
In this case, NO, and then step 1 of sentence a, 1
The line data of the line sentence (including the line feed code at the end) is read as the text data of one block sentence and set in the line buffer 16. Then, it is determined whether or not the sentence a is the first line (step S3). In this case, therefore, it is determined that the line is the first line, the process proceeds to step S12, and the data in the C (A) register (currently "0") and the data in the C (R) register (blank character in sentence a) Number of characters including "," which is now "5"), and the resulting data "5" is C '(A)
Set in register.

【0026】尚、以後の説明の便宜上、文b〜文lの空
白文字も含む各文字数を夫々、「7」、「8」、
「5」、「8」、「7」、「5」、「5」、「8」、
「7」、「5」、「8」と仮定する。
For the sake of convenience of the following description, the number of characters including blank characters in sentences b to l is "7", "8", respectively.
"5", "8", "7", "5", "5", "8",
Assume "7", "5", "8".

【0027】次に、ステップS13に進み、C´(A)
レジスタのデータ「5」とC(D)レジスタのデータ
「8」との大小関係を判断する。このときC´(A)<
C(D)であり、NOと判断されてステップS17に進
み、C´(A)レジスタ内のデータ「5」をC(A)レ
ジスタにセットし、また行バッファ16内の文aのデー
タを読出して文章メモリ(B)15に書込み、またFレ
ジスタをクリアする(ステップS18、S19)。そし
てステップS1に戻る。その結果、文bの処理に入る。
Next, in step S13, C '(A)
The magnitude relationship between the register data “5” and the C (D) register data “8” is determined. At this time C '(A) <
C (D), and if NO is determined, the process proceeds to step S17, the data "5" in the C '(A) register is set in the C (A) register, and the data of the sentence a in the row buffer 16 is set. The data is read and written in the text memory (B) 15, and the F register is cleared (steps S18 and S19). Then, the process returns to step S1. As a result, the processing of sentence b is started.

【0028】ステップS1ではNOとなり、次いでステ
ップS2により行バッファ16には文bのデータが行バ
ッファ16にセットされる。そしてステップS3ではこ
の文bが先頭行ではないことが判断されてステップS4
に進み、この文bが空行か否かが判断される。この場
合、行バッファ16内の文bのデータは各アルファベッ
ト等のコードがセットされているから空行ではなく、N
OとなってステップS8に進み、この文bがイデント行
か否かが判断される。この場合、文bの先頭にはスペー
スコードがセットされていないからNOと判断され、ス
テップS9に進んでFレジスタのフラグが“1”か否か
が判断される。いま“0”であるからNOとなり、ステ
ップS12に進んで、C(A)レジスタのデータ「5」
とC(R)レジスタのデータ(文bの文字数「7」とが
加算され、その結果データがC´(A)レジスタにセッ
トされる。次いで、ステップS13の判断処理では、C
´(A)=12>C(D)=8となり、YESとなって
ステップS14に進み、C(D)−C(A)の文字数
文、即ち、8−5=3文字分だけ、行バッファ16から
文bのデータをその先頭側から読出し、文章メモリ
(B)15の文aの末尾に書込む処理を行う。そしてそ
の末尾に行末コードを書込む(ステップS15)。
In step S1, the answer is NO, and in step S2, the data of the sentence b is set in the row buffer 16. Then, in step S3, it is determined that this sentence b is not the first line, and step S4
Then, it is judged whether or not this sentence b is a blank line. In this case, since the data of the sentence b in the line buffer 16 is set to a code such as alphabets, it is not a blank line but N.
When it becomes O, the process proceeds to step S8, and it is determined whether or not this sentence b is an indent line. In this case, since the space code is not set at the beginning of the sentence b, it is determined to be NO, and the process proceeds to step S9 to determine whether or not the flag of the F register is "1". Since it is “0” now, the result is NO, the process proceeds to step S12, and the data “5” in the C (A) register.
And the data in the C (R) register (the number of characters “7” in sentence b) are added, and the resulting data is set in the C ′ (A) register. Then, in the determination process of step S13, C
′ (A) = 12> C (D) = 8, and the determination result is YES and the process proceeds to step S14, and the number of characters C (D) −C (A), that is, 8−5 = 3 characters, is stored in the line buffer. The data of the sentence b from 16 is read from the head side, and the process of writing at the end of the sentence a of the sentence memory (B) 15 is performed. Then, the line end code is written at the end (step S15).

【0029】これにより、図4(C)の1行目の文(文
aの5文字分と、文bの先頭側の3文字分から成る)が
作成され、文章メモリ(B)15にセットされたことに
なる。尚、この場合、文aの末尾の改行コード
As a result, the sentence on the first line of FIG. 4C (composed of 5 characters of sentence a and 3 characters at the beginning of sentence b) is created and set in the sentence memory (B) 15. It will be. In this case, the line feed code at the end of sentence a

【外5】 は無視されて、文aと文bが連続的に文章メモリ(B)
15に書込まれる。また行バッファ16内の文bの残り
の文字数は「4」となる。
[Outside 5] Are ignored and sentences a and b are continuously written in the sentence memory (B).
Written on 15. The number of remaining characters of the sentence b in the line buffer 16 is "4".

【0030】次に、ステップS16が実行され、C´
(A)−C(D)=12−8=4のデータがC´(A)
レジスタにセットされ、ステップS13に戻る。ステッ
プS13では、C´(A)=4<C(D)=8が判断さ
れてNOとなり、ステップS17に進み、C(A)レジ
スタにデータ「4」がセットされ、またステップS18
では文章メモリ(B)15の第2行目として文bの残り
の文字(4文字)が書込まれ、そしてステップS19に
よりFレジスタがクリアされ、ステップS1に戻る。そ
して文cの整形処理に入る。
Next, step S16 is executed and C '
The data of (A) -C (D) = 12-8 = 4 is C '(A)
It is set in the register and returns to step S13. In step S13, C '(A) = 4 <C (D) = 8 is determined to be NO, the process proceeds to step S17, the data "4" is set in the C (A) register, and step S18 is performed.
Then, the remaining characters (4 characters) of the sentence b are written as the second line of the sentence memory (B) 15, and the F register is cleared in step S19, and the process returns to step S1. Then, the shaping process of the sentence c is started.

【0031】文cの処理では、先ず、ステップS1でN
Oとなり、ステップS2に進んで行バッファ16へ文章
メモリ(A)14からの文cのデータ(8文字)がセッ
トされる。次にステップS3、S4、S8、S9では何
れもNOと判断され、そしてステップS12では、C´
(A)レジスタにC(A)+C(R)=4+8=12が
セットされる。次いで、ステップS13ではYESとな
り、ステップS14〜S16が実行される。その結果、
行バッファ16から文cの先頭側の4文字が読出されて
文章メモリ(B)15の文bの末尾に付加され、図4
(C)の第2行目が完了する。そして行バッファ16内
の文cの残り文字数は「4」となる。またC´(A)レ
ジスタには文字数「4」がセットされる。
In the processing of sentence c, first, in step S1, N
When it becomes O, the process proceeds to step S2, and the data (8 characters) of the sentence c from the sentence memory (A) 14 is set in the line buffer 16. Next, in steps S3, S4, S8, and S9, it is determined that all are NO, and in step S12, C '
C (A) + C (R) = 4 + 8 = 12 is set in the (A) register. Next, step S13 is YES, and steps S14 to S16 are executed. as a result,
The four characters at the beginning of the sentence c are read from the line buffer 16 and added to the end of the sentence b in the sentence memory (B) 15.
The second line of (C) is completed. Then, the number of remaining characters of the sentence c in the line buffer 16 is "4". The number of characters "4" is set in the C '(A) register.

【0032】次にステップS13では、C´(A)=4
<C(D)=8となり、NOと判断されてステップS1
7〜S19が実行される。その結果、C(A)レジスタ
には「4」がセットされ、また文章メモリ(B)15の
3行目に文cの残りの4文字のデータが書込まれる。ま
たFレジスタがクリアされ、ステップS1に戻る。そし
て文dの整形処理に入る。
Next, in step S13, C '(A) = 4
<C (D) = 8, NO is determined and step S1
7 to S19 are executed. As a result, "4" is set in the C (A) register, and the remaining four characters of the sentence c are written in the third line of the sentence memory (B) 15. Further, the F register is cleared and the process returns to step S1. Then, the processing for shaping the sentence d is started.

【0033】以下、同様にして、文dについては、ステ
ップS1、S2、S3、S4、S8、S9、S12、S
13、S14、S15が実行され、この間、文章メモリ
(B)15の第3行目の文字c(4文字文)の続きとし
て文字dの先頭の4文字文のデータが追加されて、図4
(C)の第3行目が完了する。そしてステップS16で
はC´(A)レジスタにはデータ「1」がセットされ、
次いでステップS13、S17、S18、S19が実行
される。その結果、文章メモリ(B)15の第4行目
に、文字dの残り1文字文のデータが書込まれ、図4
(C)の第4行目までの文章整形が終了する。またFレ
ジスタがクリアされ、ステップS1に戻って文eの処理
に入る。
Similarly, for sentence d, steps S1, S2, S3, S4, S8, S9, S12 and S are performed.
13, S14, and S15 are executed, and during this period, the data of the first four-character sentence of the character d is added as a continuation of the character c (four-character sentence) on the third line of the sentence memory (B) 15.
The third line of (C) is completed. Then, in step S16, data "1" is set in the C '(A) register,
Then, steps S13, S17, S18 and S19 are executed. As a result, the data of the remaining one character sentence of the character d is written in the fourth line of the text memory (B) 15,
The sentence shaping up to the 4th line of (C) is completed. Further, the F register is cleared, and the process returns to step S1 to start processing the sentence e.

【0034】文eの処理では、ステップS1〜S4の各
処理後、ステップS8では、文eがインデント行である
ことが判別され、ステップS10に進んで文章メモリ
(B)15の第4行目の文d(1文字分)の次に行末コ
ードが書込まれ、またステップS11によりC(A)レ
ジスタがクリアされる。そしてステップS12に進み、
C´(A)レジスタC(A)+C(R)=0+8=8が
セットされる。次いでステップS13ではYESと判別
されてステップS14〜S16が実行され、その結果、
ステップS14、S15では、C(D)−C(A)=8
−0=8の8文字文のデータが行バッファ16から読出
され、文章メモリ(B)15の第5行目に、行末コード
と共に書込まれる。即ち、8文字文の文eのデータがそ
のまま文章メモリ(B)15の第5行目に書込まれるこ
とになる。この場合、図4(C)に示すように、文章メ
モリ(B)15に書込まれた文eはインデント行とな
り、文章の段落をつけて整形されたことになる。またス
テップS16ではC´(A)レジスタにデータ「0」が
セットされる。
In the processing of the sentence e, after each processing of steps S1 to S4, it is determined in step S8 that the sentence e is an indented line, and the process proceeds to step S10 to the fourth line of the sentence memory (B) 15. The line end code is written next to the sentence d (for one character) of, and the C (A) register is cleared in step S11. Then, the process proceeds to step S12,
C '(A) register C (A) + C (R) = 0 + 8 = 8 is set. Next, in step S13, it is determined to be YES, steps S14 to S16 are executed, and as a result,
In steps S14 and S15, C (D) -C (A) = 8
The 8-character sentence data of −0 = 8 is read from the line buffer 16 and written in the fifth line of the text memory (B) 15 together with the line end code. That is, the data of the sentence e of eight-character sentence is written as it is in the fifth line of the sentence memory (B) 15. In this case, as shown in FIG. 4 (C), the sentence e written in the sentence memory (B) 15 becomes an indented line, which means that the sentence e is formatted with paragraphs. Further, in step S16, data "0" is set in the C '(A) register.

【0035】次にステップS13、S17、S18、S
19が実行されるが、この場合は、行バッファ16内に
データがないので、文章メモリ(B)15には何のデー
タも書込まれない。
Next, steps S13, S17, S18 and S
However, in this case, since no data is stored in the line buffer 16, no data is written in the text memory (B) 15.

【0036】以下、同様にして、文章メモリ(A)14
内の文f、g、h、iの各データの整形処理が実行さ
れ、その結果、文章メモリ(B)15内には、図4
(C)の第9行目に示す文iまでの文章データが整形さ
れて書込まれる。そして文iの次の空行の処理に入る。
Thereafter, similarly, the text memory (A) 14
In the sentence memory (B) 15, as shown in FIG. 4, the shaping process of each data of the sentences f, g, h, and i in FIG.
The sentence data up to the sentence i shown in the 9th line of (C) are shaped and written. Then, the process for the next blank line of the sentence i starts.

【0037】この空行の処理では、先ず、ステップS1
を介しステップS2に進んで行バッファ16にスペース
コードだけの空行のデータが読み込まれる。そしてステ
ップS3を介しステップS4に進み、空行であることが
判別され、ステップS5に進んでFレジスタにはフラグ
“1”がセットされる。そしてステップS6では文章メ
モリ(B)15の第10行目に行末コードが書込まれ
て、空行が設定され、次にステップS7ではCAレジス
タがクリアされ、ステップS2に戻る。次いで文jの処
理に入る。
In the processing of this blank line, first, step S1
Then, the process proceeds to step S2 via and the blank line data including only the space code is read into the line buffer 16. Then, through step S3, the process proceeds to step S4, it is determined that the line is blank, and the process proceeds to step S5 where the flag "1" is set in the F register. Then, in step S6, the line end code is written in the tenth line of the text memory (B) 15 to set a blank line, and then in step S7, the CA register is cleared and the process returns to step S2. Then, the processing of the sentence j is started.

【0038】この結果、文章メモリ(B)15の第10
行目は、図4(C)に示すように、空行となり、段落を
示す形に整形されたことになる。
As a result, the tenth memory of the text memory (B) 15
As shown in FIG. 4C, the line becomes a blank line, which means that the line is shaped to show a paragraph.

【0039】以下、文j、k、lの各整形処理について
は、上述したことと同様であり、その結果、文章メモリ
(B)15には、図4(C)に示すような第11行目か
ら第13行目の文が書込まれる。そしてこのようにして
文章メモリ(B)15に書込まれた整形文章データは、
印字制御部20を介しプリンタ21に送られて印字出力
されるものである。
The respective shaping processes of the sentences j, k, and l are the same as described above, and as a result, the sentence memory (B) 15 has the 11th line as shown in FIG. 4C. The sentence on the 13th line from the eye is written. The formatted text data written in the text memory (B) 15 in this way is
It is sent to the printer 21 via the print control unit 20 and printed out.

【0040】図4(D)は、図4(B)に示すように文
章メモリ(A)14内に書込まれた文a〜文lのデータ
を図4(C)に示す場合とは異なって、広めにLM〜R
M間を設定し、その文字数(C(D)レジスタの指定文
字数)を大きくしたときの文章メモリ(B)15内の整
形文章データの内容を示すものである。この場合、図3
(A)、(B)のフローチャートが上述と同じように実
行される。そして、文a、文eに対し設定したスペース
コードによる段落、文iと文jとの間に設定した空行に
よる段落は、図4(C)同様に自動的に設定される。
FIG. 4 (D) is different from the case shown in FIG. 4 (C) for the data of sentences a to sentence l written in the sentence memory (A) 14 as shown in FIG. 4 (B). And spread LM ~ R
It shows the contents of the formatted text data in the text memory (B) 15 when the number of characters M is set and the number of characters (the number of characters designated by the C (D) register) is increased. In this case,
The flowcharts of (A) and (B) are executed in the same manner as described above. Then, the paragraph by the space code set for the sentence a and the sentence e and the paragraph by the blank line set between the sentence i and the sentence j are automatically set as in FIG. 4C.

【0041】このようにして、この第1実施例の場合、
書式や文章フォーマットを全く考慮せずに箇条書き式に
文章メモリ(A)14に文章データを入力し、そしてイ
ンデント位置、空行位置等の段落を指定し、またLM、
RMを指定してFORMキー11Cを操作するだけの簡
単な作業だけで、指定箇所に段落が自動的に付加された
文章が整形されて作成されるものである。
Thus, in the case of this first embodiment,
Enter the text data into the text memory (A) 14 in a bulleted form without considering the format and the text format at all, and specify paragraphs such as indent position and blank line position.
The sentence in which the paragraph is automatically added to the designated portion is formed and formed by a simple operation of designating the RM and operating the FORM key 11C.

【0042】[0042]

【第2実施例】次に、図6に示した従来例の日本語ワー
ドプロセッサの編集(任意位置に段落をつける文章整
形)を改良した第2実施例を、図5の表示例を参照に説
明する。
[Second Embodiment] Next, a second embodiment in which the editing (sentence shaping with a paragraph at an arbitrary position) of the conventional Japanese word processor shown in FIG. 6 is improved will be described with reference to the display example of FIG. To do.

【0043】図5(A)は、図6(A)に示した文章と
同一内容の文章データを文章メモリ(A)14に書込ん
だ状態を示している。そして、図6(A)と同様に、文
cと文hの末尾に段落のためのスペースコードをスペー
スキーを2回操作して文章メモリ(A)14に書込み、
また文fの先頭のスペースコードをディリートキー(図
示略)を1回操作して文章メモリ(A)14から削除す
る。この結果、文章メモリ(A)14内の文章データ
は、図5(B)に示すように変化する。そしてFORM
キー11Cを操作すると、図3(A)、(B)のフロー
チャートと同様な処理が実行されて、文章メモリ(A)
14内の文章データは整形され、文章メモリ(B)15
内に、図5(C)に示すような編集状態で書込まれる。
この場合、文章メモリ(A)14内の文章データ中の句
点(.)は、第1実施例の改行コード
FIG. 5A shows a state in which text data having the same content as the text shown in FIG. 6A is written in the text memory (A) 14. Then, as in FIG. 6A, the space code for the paragraph is written at the end of sentences c and h in the sentence memory (A) 14 by operating the space key twice.
The space code at the beginning of the sentence f is deleted from the sentence memory (A) 14 by operating the delete key (not shown) once. As a result, the text data in the text memory (A) 14 changes as shown in FIG. 5 (B). And FORM
When the key 11C is operated, the same processing as the flowcharts of FIGS. 3A and 3B is executed, and the text memory (A)
The text data in 14 is formatted, and the text memory (B) 15
It is written in the edit state as shown in FIG.
In this case, the punctuation marks (.) In the text data in the text memory (A) 14 are the line feed codes of the first embodiment.

【外6】 と同様に扱われる。[Outside 6] Treated the same as.

【0044】この第2実施例の場合、従来例に比してキ
ー操作回数は2回減り、より簡単に編集が行えるように
なる。
In the case of the second embodiment, the number of key operations is reduced by 2 times as compared with the conventional example, and editing can be performed more easily.

【0045】尚、上記実施例では、整形文章データを文
章メモリ(A)14とは別に設けた文章メモリ(B)1
5に書込むようにしたが、文章メモリ(A)14内の整
形編集が終了した不要な文章データをクリアしてそのエ
リアに整形文章データを書込むようにしてもよい。
In the above embodiment, the formatted text data (B) 1 provided separately from the text memory (A) 14 is used.
However, the unnecessary text data in the text memory (A) 14 that has undergone the shaping and editing may be cleared and the shaping text data may be written in that area.

【0046】また文章メモリ(B)15を省略して、得
られた整形文章データを直接プリンタ21に送り、ダイ
レクトに印字するようにしてもよい。
The text memory (B) 15 may be omitted, and the obtained formatted text data may be directly sent to the printer 21 and printed directly.

【0047】更に、上記実施例では、欧文ワードプロセ
ッサ、日本語ワードプロセッサを例示したが、何らかの
文章データを記憶するメモリを有する電子機器に対して
は、本発明を任意に応用可能である。
Further, in the above embodiment, the European word processor and the Japanese word processor are exemplified, but the present invention can be arbitrarily applied to an electronic device having a memory for storing some text data.

【0048】[0048]

【発明の効果】本発明によれば、記憶手段への文章デー
タの書込み時に、書式や文章フォーマットを全く考慮し
ないで、即ち、思考の中断もなく、連続して順次文章を
書込むことができ、文章作成作業が簡単に行える利点を
有すると共に、このようにして作成した文章データにつ
いては、簡単なキー操作を行うだけで段落をもった整形
された文章を自動的に、速やかに作成することができる
利点も有するものである。更に、このようにして段落を
決めた文章を再編集するときも、段落の区切れの変更を
極めて少ないキー操作で行うだけで、簡単に再編集が行
える利点もあり、文章作成、その編集が簡単な作業で速
やかに行える。
According to the present invention, when writing text data to the storage means, it is possible to write the text sequentially without considering the format or the text format, that is, without interruption of thinking. As well as having the advantage that the text creation work can be done easily, with regard to the text data created in this way, the formatted text with paragraphs can be automatically and promptly created by simply performing a simple key operation. It also has the advantage that Furthermore, even when re-editing a sentence in which a paragraph is determined in this way, there is an advantage that it can be easily re-edited by only changing the breaks of paragraphs with very few key operations. Can be done quickly with simple work.

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

【図1】本発明の機能ブロック図。FIG. 1 is a functional block diagram of the present invention.

【図2】本発明を欧文ワードプロセッサに適用した第1
実施例の全体のブロック回路図。
FIG. 2 is a first example in which the present invention is applied to a European word processor.
The block circuit diagram of the whole Example.

【図3】(A)、(B)は上記第1実施例の文章整形処
理を説明するフローチャートを示す図。
3A and 3B are diagrams showing a flowchart for explaining a sentence shaping process of the first embodiment.

【図4】(A)、(B)、(C)は夫々、上記第1実施
例の文章メモリ(A)14に記憶された文章データを段
落のついた文章に編集する際の表示例を示す図。 (D)は他の編集例の際の表示例を示す図。
4 (A), (B), and (C) are display examples when the sentence data stored in the sentence memory (A) 14 of the first embodiment is edited into a sentence with paragraphs. FIG. FIG. 6D is a diagram showing a display example in another editing example.

【図5】日本語ワードプロセッサにより作成された文章
データの編集例における表示例を示す本発明の第2実施
例を示す図。
FIG. 5 is a diagram showing a second embodiment of the present invention showing a display example in an editing example of sentence data created by a Japanese word processor.

【図6】従来の編集例における表示例を示す図。FIG. 6 is a diagram showing a display example in a conventional editing example.

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

11A LMキー 11B RMキー 11C FORMキー 11D 改行キー 13 CPU 14 文章メモリ(A) 15 文章メモリ(B) 16 行バッファ 17 レジスタ群 19 表示部 21 プリンタ 11A LM key 11B RM key 11C FORM key 11D Line feed key 13 CPU 14 Document memory (A) 15 Document memory (B) 16 Line buffer 17 Register group 19 Display 21 Printer

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年7月29日[Submission date] July 29, 1992

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】全図[Correction target item name] All drawings

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図1】 [Figure 1]

【図2】 [Fig. 2]

【図3】 [Figure 3]

【図4】 [Figure 4]

【図5】 [Figure 5]

【図6】 [Figure 6]

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文章データを記憶する記憶手段と、 上記記憶手段内の文章データを構成する複数のブロック
のうちの任意のブロックに対し、段落の区切りを示す文
章の形を指定する指定手段と、 文章整形指令時に、上記記憶手段から文章データを1ブ
ロック単位で順次読出して、その読出した1ブロックの
文章データが段落の区切りを示す文章の形をしているか
否かを判断する判断手段と、 この判断手段が、上記1ブロックの文章データが段落の
区切りを示す文章の形を示していないことを判断した場
合、今回読出された1ブロック分の文章データを前回読
出された1ブロック分の文章データに連続する分として
文章整形する文章整形手段とを有することを特徴とする
文書整形装置。
1. A storage means for storing text data, and a designating means for designating a text form indicating a paragraph break for an arbitrary block of a plurality of blocks forming the text data in the storage means. When the text shaping command is issued, the text data is sequentially read from the storage means in units of one block, and a judgment means for judging whether or not the read one block of text data is in the form of a text indicating a paragraph break. If the determination means determines that the one block of text data does not indicate the shape of a sentence indicating a paragraph break, the one block of text data read this time is read for the one block previously read. A document shaping device, comprising: a sentence shaping unit for shaping a sentence as a portion continuous with sentence data.
JP2418630A 1990-12-18 1990-12-18 Document shaping device Pending JPH0573548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2418630A JPH0573548A (en) 1990-12-18 1990-12-18 Document shaping device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2418630A JPH0573548A (en) 1990-12-18 1990-12-18 Document shaping device

Publications (1)

Publication Number Publication Date
JPH0573548A true JPH0573548A (en) 1993-03-26

Family

ID=18526431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2418630A Pending JPH0573548A (en) 1990-12-18 1990-12-18 Document shaping device

Country Status (1)

Country Link
JP (1) JPH0573548A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191105A (en) * 1997-09-18 1999-07-13 Just Syst Corp Method and device for processing document and recording medium recording processing program therefor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5846427A (en) * 1981-09-11 1983-03-17 Toshiba Corp Document editing device
JPS6364162A (en) * 1986-09-04 1988-03-22 Toshiba Corp Document processor
JPH01185761A (en) * 1988-01-21 1989-07-25 Toshiba Corp Document shaping device
JPH01205260A (en) * 1988-02-12 1989-08-17 Toshiba Corp Document shaping device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5846427A (en) * 1981-09-11 1983-03-17 Toshiba Corp Document editing device
JPS6364162A (en) * 1986-09-04 1988-03-22 Toshiba Corp Document processor
JPH01185761A (en) * 1988-01-21 1989-07-25 Toshiba Corp Document shaping device
JPH01205260A (en) * 1988-02-12 1989-08-17 Toshiba Corp Document shaping device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191105A (en) * 1997-09-18 1999-07-13 Just Syst Corp Method and device for processing document and recording medium recording processing program therefor

Similar Documents

Publication Publication Date Title
KR860001071B1 (en) Method for editing document
JPS6019227A (en) Document processing method
JP2864412B2 (en) Printing equipment
US5276792A (en) Word processor permitting modification of a preset frame
JPH0573548A (en) Document shaping device
US4843570A (en) Block processing apparatus
JPH0749851A (en) Document shaping device
JPS61105666A (en) Document processing device
JPS6365988B2 (en)
JP2970010B2 (en) Tape printer with insertion function
JP2815158B2 (en) Character processor
JPH0969098A (en) Document preparation device
JPH0666066B2 (en) Document processor with furigana addition function
US5162993A (en) Word processing apparatus
JPH05314108A (en) Document editor
JP2534685B2 (en) Information display method
JPS6195438A (en) Electronic typewriter
JPH04268957A (en) Document preparing device
JPS6411985B2 (en)
JPS59201129A (en) Document producer
JP2606579B2 (en) Character display device
JPH0664574B2 (en) Indent control method for document processor
JPS59180620A (en) Document formation device
JPS605470B2 (en) typesetting system
JPH04282755A (en) Word processor