JPH04332076A - Japanese word processor provided with automatic editing function - Google Patents
Japanese word processor provided with automatic editing functionInfo
- Publication number
- JPH04332076A JPH04332076A JP3130231A JP13023191A JPH04332076A JP H04332076 A JPH04332076 A JP H04332076A JP 3130231 A JP3130231 A JP 3130231A JP 13023191 A JP13023191 A JP 13023191A JP H04332076 A JPH04332076 A JP H04332076A
- Authority
- JP
- Japan
- Prior art keywords
- document data
- paragraph
- area
- level
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、日本語ワードプロセッ
サに係り、特に、自動編集機能に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Japanese word processor, and more particularly to an automatic editing function.
【0002】0002
【従来の技術】日本語ワードプロセッサの文書入力,編
集手順に於いて、文字列の入力は、通常、キーボードに
より、ローマ字入力あるいはカナ入力により行なわれる
。また、入力された文字列は、どの桁から配置するかを
、オペレータは前行等を参照することにより決定し、入
力された文字列を移動することにより、又は入力された
文字列の前にスペースを挿入することにより、決定した
位置に配置するようにしている。2. Description of the Related Art In document input and editing procedures for Japanese word processors, character strings are usually entered using a keyboard using Roman characters or kana characters. In addition, the operator determines from which digit the input character string should be placed by referring to the previous line, etc., and by moving the input character string or placing it in front of the input character string. By inserting a space, it is placed at the determined position.
【0003】0003
【発明が解決しようとする課題】従来の日本語ワードプ
ロセッサに於いては、前述したように、入力された文字
列のブロック毎に、オペレータは、配置位置を決定し、
この決定した配置位置に配置するための操作を行なわな
ければならず、多くの労力を必要とし、文書入力に要す
る時間も多くなるという問題点を有していた。[Problems to be Solved by the Invention] In conventional Japanese word processors, as described above, the operator determines the placement position for each block of input character strings,
It is necessary to perform an operation to arrange the document at the determined location, which requires a lot of effort and requires a lot of time to input the document.
【0004】本発明の課題は、文書の配置位置の決定並
びにその決定した配置位置への配置を自動的に行なえる
ようにすることである。SUMMARY OF THE INVENTION An object of the present invention is to automatically determine the placement position of a document and automatically place the document at the determined placement position.
【0005】[0005]
【課題を解決するための手段】本発明の手段は次の通り
である。文書データ記憶手段1(図1の機能ブロック図
を参照、以下同じ)は、入力された文書データを記憶す
る。文書データ分割手段2は、この文書データ記憶手段
1に記憶されている文書データを複数のブロックに分割
する。レベル情報付加手段3は、この文書データ分割手
段2により分割された文書データの各ブロックにレベル
情報を付加する。文書データ再配置手段4は、このレベ
ル情報付加手段3によりそれぞれのブロックに付加され
たレベル情報に基づき、上記文書データ分割手段2によ
り分割された各ブロックの文書データを再配置する。Means for Solving the Problems The means of the present invention are as follows. A document data storage means 1 (see the functional block diagram of FIG. 1, the same applies hereinafter) stores input document data. The document data dividing means 2 divides the document data stored in the document data storage means 1 into a plurality of blocks. The level information adding means 3 adds level information to each block of document data divided by the document data dividing means 2. The document data rearranging means 4 rearranges the document data of each block divided by the document data dividing means 2 based on the level information added to each block by the level information adding means 3.
【0006】[0006]
【作用】本発明の手段の作用は次の通りである。文書デ
ータ分割手段2により文書データ記憶手段1に記憶され
ている文書データを複数のブロックに分割し、レベル情
報付加手段3によってこの分割された文書データの各ブ
ロックにレベル情報を付加する。そして、文書データ再
配置手段4により、それぞれのブロックに付加されたレ
ベル情報に基づいて上記文書データ分割手段2により分
割された各ブロックの文書データを再配置する。従って
、文書の配置位置の決定並びにその決定した配置位置へ
の配置を自動的に行なうことが可能となり、入力に要す
る時間を短縮できる。[Operation] The operation of the means of the present invention is as follows. The document data dividing means 2 divides the document data stored in the document data storage means 1 into a plurality of blocks, and the level information adding means 3 adds level information to each block of the divided document data. Then, the document data rearranging means 4 rearranges the document data of each block divided by the document data dividing means 2 based on the level information added to each block. Therefore, it is possible to automatically determine the placement position of the document and to place the document in the determined placement position, thereby reducing the time required for inputting the document.
【0007】[0007]
【実施例】以下、図2乃至図10を参照して、本発明の
一実施例を説明する。図2は、実施例の自動編集機能付
日本語ワードプロセッサのブロック構成図で、図中、1
1は全体の制御を司るCPUである。12は上記CPU
11で実行される制御プログラムが記憶されたROMで
ある。13はRAMであり、文書データを記憶しておく
文書記憶領域131,自動編集機能を実現するための各
種情報を記憶する編集情報記憶領域132,及びワーク
領域133を有している。Embodiment An embodiment of the present invention will be described below with reference to FIGS. 2 to 10. FIG. 2 is a block diagram of the Japanese word processor with automatic editing function according to the embodiment.
1 is a CPU that controls the entire system. 12 is the above CPU
This is a ROM in which a control program executed by the computer 11 is stored. Reference numeral 13 denotes a RAM, which has a document storage area 131 for storing document data, an editing information storage area 132 for storing various information for realizing an automatic editing function, and a work area 133.
【0008】14は文字列の入力を行なうためのキーボ
ードであり、15はこのキーボード14を制御するキー
ボード制御部である。16はCRT17に表示すべき文
書データが展開されるVRAMであり、18はこのVR
AM16の表示データに従ってCRT17を制御するC
RT制御部である。19は文書ファイルが記憶される外
部記憶装置としてのフロッピーディスクであり、20は
このフロッピーディスク19を制御する外部記憶制御部
である。Reference numeral 14 is a keyboard for inputting character strings, and reference numeral 15 is a keyboard control section for controlling this keyboard 14. 16 is a VRAM in which document data to be displayed on the CRT 17 is expanded;
C that controls the CRT17 according to the display data of AM16
This is an RT control section. Reference numeral 19 is a floppy disk as an external storage device in which document files are stored, and 20 is an external storage control unit that controls this floppy disk 19.
【0009】上記編集情報記憶領域132は、図3に示
すように、節題記号辞書132a,段落情報エリア13
2b,及び系列登録エリア132cを有している。As shown in FIG. 3, the editing information storage area 132 includes a section title symbol dictionary 132a, a paragraph information area 13
2b, and a series registration area 132c.
【0010】ここで、「節題」とは、入力されている文
章の各行(文書記憶領域131上の行であって、表示上
の行ではない)に於ける先頭に節題記号(“A”,“B
”,…、“(1)”,“(2)”,…、“I”,“II
”,…、等)を含み、句点“。”を含まない文字列を意
味する。また、以下の説明に於いて、節題以外の行は「
節文」と称し、さらに、その最後に改行,未入力状態,
改ページがあるまでを一つのつながり、即ち「段落」と
称するものとする。[0010] Here, the term "section title" refers to the section title symbol ("A ”, “B
”,…, “(1)”, “(2)”,…, “I”, “II
”,…, etc.), including periods “. ” means a string that does not contain ”.In addition, in the following explanation, lines other than section titles will be
In addition, there is a line break at the end, an uninput state,
The sequence up to the page break is referred to as one connection, that is, a "paragraph."
【0011】上記節題記号辞書132aは、図4の(A
)に示すように、複数の系列の節題記号を記憶している
。また、段落情報エリア132bには、図4の(B)に
示すように、各段落毎に、段落番号領域132b1,系
列情報領域132b2,レベル1領域132b3,及び
属性領域132b4が構成される。さらに、系列登録エ
リア132cには、図4の(C)に示すように、新規な
系列が使用される毎に増やされる系列領域132c1と
レベル2領域132c2の対が構成される。The clause symbol dictionary 132a is shown in FIG.
), it stores multiple series of clause symbols. Furthermore, as shown in FIG. 4B, the paragraph information area 132b includes a paragraph number area 132b1, a series information area 132b2, a level 1 area 132b3, and an attribute area 132b4 for each paragraph. Furthermore, as shown in FIG. 4C, the series registration area 132c includes a pair of a series area 132c1 and a level 2 area 132c2, which are increased each time a new series is used.
【0012】次に、このような構成の自動編集機能付日
本語ワードプロセッサに於ける自動桁下げ処理動作を、
図5のフローチャートに従って説明する。[0012] Next, the automatic undercut processing operation in the Japanese word processor with automatic editing function configured as described above will be explained as follows.
This will be explained according to the flowchart in FIG.
【0013】先ず、文書の構造解析を行う(ステップS
1)。即ち、節題と節文を判断し、桁下げを行なうため
に区切りをつけて段落とする。次に、桁下げのレベルを
段落毎に設定する(ステップS2)。そして、書式に合
った桁ずらし数を自動算出し(ステップS3)、この各
段落に対応するレベルの桁ずらし数をもとに空白を挿入
することで桁下げを行なう(ステップS4)。最後に、
段落がページ間にまたがる場合に、その段落の前でペー
ジ区切りを行なうブロック属性の処理を行なう(ステッ
プS5)。First, the structure of the document is analyzed (step S
1). That is, the section title and section sentence are determined, and a break is added to reduce the number of columns to form a paragraph. Next, the level of indentation is set for each paragraph (step S2). Then, the number of digits to be shifted in accordance with the format is automatically calculated (step S3), and a blank is inserted based on the number of digits to be shifted at the level corresponding to each paragraph to lower the digits (step S4). lastly,
When a paragraph spans between pages, block attribute processing for page separation is performed before the paragraph (step S5).
【0014】今、図6の(A)に示すように、文書記憶
領域131に、行1から行8まで文書データが格納され
ているものとする。同図に於いて、節題記号は“A”,
“B”,“(1)”,“(2)”である。また、図中の
“□”は、なんらかの文字を表わすものとする。As shown in FIG. 6A, it is assumed that document data is stored in the document storage area 131 from line 1 to line 8. In the same figure, the section title symbol is “A”,
They are "B", "(1)", and "(2)". Furthermore, "□" in the figure represents some kind of character.
【0015】このような状態で、図5に示したような自
動桁下げ処理に入ると、ステップS1として、図7に示
すような文書の構造解析処理が実行される。[0015] In this state, when the automatic down-down process as shown in FIG. 5 is entered, in step S1, the document structure analysis process as shown in FIG. 7 is executed.
【0016】即ち、先ず、文書データを1行分読み出す
(ステップS101)。ここで、1行文とは、行頭より
改行マーク,未入力状態,改ページマークまでの範囲を
言う。そして、この読出した文書データの先頭の1文字
が、節題記号辞書132aにあるか否かを判断する(ス
テップS102)。節題記号辞書132aにないと判断
された場合は、節文であるとして、段落情報エリア13
2bの段落番号領域132b1並びに系列領域132b
2に情報を書き込む(ステップS103)。この場合、
系列領域132bには、スペースが書き込まれる。That is, first, one line of document data is read out (step S101). Here, a one-line sentence refers to the range from the beginning of the line to the line feed mark, non-input state, and page break mark. Then, it is determined whether the first character of the read document data is in the section title symbol dictionary 132a (step S102). If it is determined that it is not in the clause symbol dictionary 132a, it is determined that it is a clause, and the paragraph information area 13
2b paragraph number area 132b1 and series area 132b
2 (step S103). in this case,
A space is written in the series area 132b.
【0017】一方、節題記号辞書132aにあると判断
された場合には、次に、読出した1行文の文書データ中
に句点“。”があるか否かを判断する(ステップS10
4)。もし、あった場合には、節題ではなくて節文であ
ると判断して、上記ステップS103に進み、段落情報
エリア132bの段落番号領域132b1並びに系列領
域132b2に情報を書き込む。しかしながら、句点が
ないと判断された場合には、その読出した1行文の文書
データは、節題であるとして、段落情報エリア132b
の段落番号領域132b1並びに系列領域132b2に
情報を書き込む(ステップS105)。この場合は、系
列領域132bには、読出した文書データの先頭の1文
字の節題記号に対応する系列(a,b,c,…)が書き
込まれる。On the other hand, if it is determined that there is a period in the clause symbol dictionary 132a, then it is determined whether or not there is a period "." in the read one-line document data (step S10).
4). If there is, it is determined that it is a clause sentence rather than a clause title, and the process proceeds to step S103, where information is written in the paragraph number area 132b1 and series area 132b2 of the paragraph information area 132b. However, if it is determined that there is no period, the read one-line document data is considered to be a section title, and the paragraph information area 132b
Information is written in the paragraph number area 132b1 and series area 132b2 (step S105). In this case, a series (a, b, c, . . . ) corresponding to the first character of the clause title symbol of the read document data is written in the series area 132b.
【0018】例えば、図6の(A)の例では、行1には
、先頭に“A”の節題記号が入り、行末に句点“。”が
入っていないので、節題と判断される。そして、段落情
報エリア132bの段落番号領域132b1には「1」
が書き込まれ、系列領域132b2には段落記号“A”
に対応する系列情報「a」が書き込まれる。また、行2
の先頭には節題記号がなく、行の最後に句点“。”が入
っているので、一つの節文と判断される。
以下の行についても同じように節題又は節文を判断する
。ここで判断された節題や節文は、段落として扱われる
。For example, in the example shown in FIG. 6A, line 1 has the section title symbol "A" at the beginning and does not include a period "." at the end of the line, so it is determined to be a section title. . Then, "1" is placed in the paragraph number area 132b1 of the paragraph information area 132b.
is written, and a paragraph symbol “A” is written in the series area 132b2.
Series information "a" corresponding to is written. Also, row 2
There is no clause title symbol at the beginning of the line, and there is a period (.) at the end of the line, so it is judged to be one clause sentence. For the following lines, judge whether they are subtitles or clause sentences in the same way. The section titles and clauses determined here are treated as paragraphs.
【0019】このように段落が作られる際に、特別な属
性を持たせる必要のある節題又は節文がある。即ち、繰
り返し文字列が存在する場合である。When a paragraph is created in this way, there are section titles or section sentences that need to have special attributes. That is, this is a case where a repeated character string exists.
【0020】例えば、文字列と文字列とをつなぐために
、“−−”等の連続した文字列を使用する場合がある。
このような場合、レベルの多い桁下げを実行したときに
、次の行へ折り返すため、つながれた文字列の位置関係
を崩し、文書がおかしくなってしまう。そこで、この位
置関係を乱さないようにするために、この行に対して折
返し禁止の属性をつける。そして、連続した行に亙って
折返し禁止の属性をつけた文字列には、行間の関係を保
つために、ブロック属性を付しておく。For example, continuous character strings such as "--" may be used to connect character strings. In such a case, when many levels of carry down are executed, the line wraps to the next line, which disrupts the positional relationship of the connected strings, resulting in a strange document. Therefore, in order to prevent this positional relationship from being disturbed, an attribute that prohibits wrapping is added to this line. Then, a block attribute is attached to a character string with an attribute that prohibits wrapping across consecutive lines in order to maintain the relationship between the lines.
【0021】即ち、上記ステップS101〜S105の
処理の実行後、読出した1行分の文書データ中に、“−
−”等の繰り返し文字列があるか否かを判断する(ステ
ップS106)。もしあれば、段落情報エリア132b
の属性領域132b4に折返し禁止属性情報を書き込む
(ステップS107)。そして、前の段落の属性領域1
32b4を参照して、前行に折返し禁止属性が設定され
ているか否かを判断し(ステップS108)、設定され
ている場合には、折返し禁止属性情報が付された一連の
段落に対応する属性領域132b4に書き込まれた折返
し禁止属性情報をブロックの属性に置き換える(ステッ
プS109)。That is, after executing the processing in steps S101 to S105, "-" is added to the read document data for one line.
It is determined whether there is a repeated character string such as "-" (step S106). If there is, the paragraph information area 132b
The return prohibition attribute information is written in the attribute area 132b4 (step S107). And attribute area 1 in the previous paragraph
32b4, it is determined whether or not the wrapping prohibition attribute is set in the previous line (step S108), and if it is set, the attribute corresponding to a series of paragraphs to which the wrapping prohibition attribute information is attached is determined. The loopback prohibition attribute information written in the area 132b4 is replaced with the attribute of the block (step S109).
【0022】このような節題と節文を判断して段落を決
定すると共に、属性情報の付加を行なう処理が全ての行
に対して行なわれるまで(ステップS110)、上記処
理が繰り返される。The above process is repeated until the paragraph is determined by determining the section title and the section sentence, and the process of adding attribute information is performed for all lines (step S110).
【0023】こうして、文書の構造解析が行なわれた後
、上記ステップS2に於いて、図8に示すような桁下げ
のレベルをつける処理を実行する。After the structure of the document has been analyzed in this way, in step S2, a process of adding a lowering level as shown in FIG. 8 is executed.
【0024】即ち、先ず初期設定として、CPU11内
あるいはワーク領域133内に構成された不図示のレジ
スタLに「−1」をセットし、また直前の行の状態を示
すレジスタ(フラグ)に「節題」を示す値をセットする
(ステップS201)。That is, first, as an initial setting, a register L (not shown) configured in the CPU 11 or the work area 133 is set to "-1", and a register (flag) indicating the state of the immediately previous line is set to "node". A value indicating "title" is set (step S201).
【0025】そして、段落情報エリア132bのまだ読
出していない系列領域132bから系列情報を読み出し
(ステップS202)、それがスペースであるか否かに
より、節題か節文かを判断する(ステップS203)。[0025] Then, the series information is read from the series area 132b that has not been read yet in the paragraph information area 132b (step S202), and it is determined whether it is a section title or a section sentence depending on whether it is a space or not (step S203). .
【0026】節題であれば、新規系列か否かを判断する
(ステップS204)。新規系列であれば、レジスタL
の値を「+1」した後(ステップS205)、この更新
されたレジスタLの値を対応する段落情報エリア132
bのレベル1領域132b3にセットする(ステップS
206)。さらに、系列登録エリア132cの系列領域
132c1にその新規な系列を登録し、またレベル2領
域132c2に更新されたレジスタLの値を設定する(
ステップS207)。そして、全段落に対する処理が終
了したか否かを判定し(ステップS208)、まだ未処
理の段落があれば、上記ステップS202から繰り返す
。If it is a section title, it is determined whether it is a new series (step S204). If it is a new series, register L
After adding "+1" to the value of register L (step S205), the updated value of register L is added to the corresponding paragraph information area 132.
b to level 1 area 132b3 (step S
206). Furthermore, the new series is registered in the series area 132c1 of the series registration area 132c, and the updated value of register L is set in the level 2 area 132c2 (
Step S207). Then, it is determined whether or not processing has been completed for all paragraphs (step S208), and if there are still unprocessed paragraphs, the process repeats from step S202.
【0027】また、上記ステップS204に於いて、新
規系列ではないと判断された場合は、その系列に対応す
る値が登録されている系列登録エリア132cの系列領
域132c1と対をなしているレベル2領域132c2
にセットされている値をレジスタLに格納し(ステップ
S209)、このレジスタLに格納された値をその段落
に対応する段落情報エリア132bのレベル1領域13
2b3にセットする(ステップS210)。その後、上
記ステップS208に進み、未処理段落の有無を判定す
る。If it is determined in step S204 that the series is not a new series, level 2 is paired with the series area 132c1 of the series registration area 132c in which values corresponding to the series are registered. Area 132c2
The value set in register L is stored in register L (step S209), and the value stored in register L is stored in level 1 area 13 of paragraph information area 132b corresponding to that paragraph.
2b3 (step S210). Thereafter, the process proceeds to step S208, where it is determined whether there are any unprocessed paragraphs.
【0028】また、上記ステップS203に於いて、読
出した系列情報がスペース、つまり節文であると判断さ
れた場合には、先ず直前が節題であったか否かを判断す
る(ステップS211)。節題であった場合には、レジ
スタLの値を「+1」した後(ステップS212)、こ
の更新されたレジスタLの値をその段落に対応する段落
情報エリア132bのレベル1領域132b3にセット
する(ステップS213)。その後、上記ステップS2
08に進み、未処理段落の有無を判定する。If it is determined in step S203 that the read series information is a space, that is, a clause, it is first determined whether or not the immediately preceding section was a clause (step S211). If it is a section title, the value of register L is incremented by "+1" (step S212), and the updated value of register L is set in level 1 area 132b3 of paragraph information area 132b corresponding to that paragraph. (Step S213). After that, the above step S2
Proceeding to step 08, it is determined whether there is an unprocessed paragraph.
【0029】また、上記ステップS211に於いて、直
前が節題ではなかったと判断された場合には、レジスタ
Lの値をその段落に対応する段落情報エリア132bの
レベル1領域132b3にセットした後(ステップS2
14)、上記ステップS208に進んで未処理段落の有
無を判定する。If it is determined in step S211 that the immediately preceding paragraph is not a section title, the value of register L is set in the level 1 area 132b3 of the paragraph information area 132b corresponding to that paragraph, and then ( Step S2
14) Proceeding to step S208, it is determined whether there is an unprocessed paragraph.
【0030】つまり、このような桁下げのレベルをつけ
る処理は、以下のルールに従って行なわれている。[0030] That is, the process of assigning the level of increment is performed according to the following rules.
【0031】(1)最初に節題記号を検出したならば、
0レベルに設定し、節題記号の種類を登録する。(1) If the clause symbol is detected first, then
Set to level 0 and register the type of section title symbol.
【0032】(2)節題の次に節題を検出したならば、
その節題記号を登録し、前の節題より1レベル足す(桁
下げ)。(2) If a clause title is detected next to a clause title,
Register that subtitle symbol and add one level from the previous subtitle (downward).
【0033】(3)節題の次に節文を検出したならば、
前の節題より1レベル足す。(3) If a clause sentence is detected next to the clause title,
Add one level from the previous section problem.
【0034】(4)節文の次に節文を検出したならば、
レベルは変えない。(4) If a clause is detected next to a clause,
The level cannot be changed.
【0035】(5)節文の次に節題を検出したならば、
検出した節題記号から以前に登録した種類と同じである
かどうかを判定し、同じであればそのレベルに設定し(
桁上げ)、新しいときは前の節文に対して1レベル足し
、その節題記号の種類を追加登録する。また、再度0レ
ベルに設定されるときには、節題の直前に空白行を挿入
する。(5) If a clause title is detected next to a clause sentence,
Determine whether the detected clause symbol is the same as the previously registered type, and if it is the same, set it to that level (
If it is new, add one level to the previous clause sentence and additionally register the type of clause symbol. Furthermore, when the level is set to 0 again, a blank line is inserted immediately before the section title.
【0036】こうして、各段落のレベルが設定されたな
らば、次に、ステップS3に於いて、書式に合った桁ず
らし数が算出される。ここで、桁下げするための桁ずら
し数は、この時点で設定されている書式桁数のDパーセ
ントの桁数に収めるように設定される。即ち、上記ステ
ップS2に於ける段落レベルの設定によって最大Xレベ
ルに設定され、書式の桁数がNCのとき、1レベルの桁
ずらし数K=NC×(D÷100)÷Xとなる。このよ
うにして、桁ずらし数は、書式桁数及びレベル数により
、自動設定される。[0036] Once the level of each paragraph has been set in this way, in step S3, the number of digit shifts suitable for the format is calculated. Here, the number of digits to be shifted down is set so that the number of digits is D percent of the number of format digits set at this point. That is, when the maximum level is set to X by setting the paragraph level in step S2, and the number of digits in the format is NC, the number of digits to be shifted for one level is K=NC×(D÷100)÷X. In this way, the number of digits to be shifted is automatically set based on the number of format digits and the number of levels.
【0037】こうして、書式に合った桁ずらし数が算出
されたならば、次に、ステップS4に於いて、図9に示
すような桁下げ処理が実行される。Once the number of digits shifted in accordance with the format has been calculated in this way, in step S4, the digit down processing as shown in FIG. 9 is executed.
【0038】即ち、段落毎に、段落情報エリア132b
の対応するレベル1領域132b3の内容を取出し(ス
テップS401)、それが「0」かどうかを判断する(
ステップS402)。「0」であれば、文書記憶領域1
31に表示1行分の空白を出力する(ステップS403
)。That is, for each paragraph, the paragraph information area 132b
The content of the corresponding level 1 area 132b3 is extracted (step S401), and it is determined whether it is "0" (
Step S402). If “0”, document storage area 1
31 to output one line of blank space (step S403).
).
【0039】また、「0」でなければ、行の先頭よりK
×(レベル1領域132b3の内容)個の空白を文書記
憶領域131に出力する(ステップS404)。ここで
、Kは、上記ステップS3に於いて算出した1レベルの
桁ずらし数である。Also, if it is not "0", K from the beginning of the line
x (contents of level 1 area 132b3) blanks are output to document storage area 131 (step S404). Here, K is the number of digit shifts for one level calculated in step S3 above.
【0040】こうして、レベルに応じた空白が出力され
たならば、次に、その行の内容を文書記憶領域131に
出力する(ステップS405)。この行の内容の出力に
於いて、表示上で次の行にあふれる場合には(ステップ
S406)、あふれた先の行にK×(レベル1領域13
2b3の内容)個の空白を挿入する(ステップS407
)。[0040] Once the blank space corresponding to the level has been output in this way, the contents of that line are then output to the document storage area 131 (step S405). When outputting the contents of this line, if it overflows to the next line on the display (step S406), the overflowing line is written with K×(level 1 area 13
2b3 contents) Insert blank spaces (step S407
).
【0041】そして、このような桁下げ処理が全ての行
に対して行なわれるまで(ステップS408)、繰り返
し実行される。[0041] Then, this type of carry down processing is repeatedly executed until all rows are processed (step S408).
【0042】つまり、この桁下げ処理に於いては、図6
の(B)に示すように、各段落に対応するレベルの桁ず
らし数をもとに空白を挿入することで桁下げを行なう。
また、桁下げによって書式桁数に収まらなかったときは
、次の行に折り返す。このときに、折り返した行に対し
ても、その段落に対応する桁ずらし数に相当するだけの
桁数分の空白を挿入する(例えば、図6の(B)中の上
から5行目から6行目)。ところで、次の段落の桁ずら
しの処理に移ったときに、桁下げのレベルが再び「0」
となったときは、この段落の直前に空白行を挿入する(
例えば、図6の(B)中の上から10行目)。In other words, in this digit reduction process, as shown in FIG.
As shown in (B), digits are shifted down by inserting spaces based on the number of digits shifted at the level corresponding to each paragraph. Also, if the number of digits in the format cannot be accommodated due to column reduction, the line is wrapped to the next line. At this time, insert blanks for the number of digits corresponding to the number of digit shifts corresponding to the paragraph into the wrapped line as well (for example, from the fifth line from the top in (B) in Figure 6). 6th line). By the way, when I move on to the process of shifting digits in the next paragraph, the level of digit shifting becomes "0" again.
, insert a blank line just before this paragraph (
For example, the 10th line from the top in FIG. 6(B)).
【0043】こうして、桁下げ処理が行なわれたならば
、次に、ステップS5に於いて、図10に示すようなブ
ロック属性の処理が実行される。[0043] Once the carry down processing has been carried out in this manner, then in step S5, block attribute processing as shown in FIG. 10 is executed.
【0044】即ち、先ず、段落情報エリア132bから
ページ内の最終行の段落情報を取得する(ステップS5
01)。そして、その取得した段落情報の属性領域13
2b4にセットされている属性がブロックの属性である
か否かを判定する(ステップS502)。もし、ブロッ
クの属性である場合には、そのブロックがあるページの
終わりから次のページにまたがってしまうような場合を
示していることになるので、そのブロックの最初から次
のページへ移動する。即ち、そのブロックの先頭が次の
ページに移るまで(ステップS504)、ブロック属性
の先頭行の前に空白桁を挿入する(ステップS503)
。That is, first, the paragraph information of the last line in the page is obtained from the paragraph information area 132b (step S5).
01). Then, the attribute area 13 of the acquired paragraph information
It is determined whether the attribute set in 2b4 is an attribute of a block (step S502). If it is an attribute of a block, it indicates that the block spans from the end of one page to the next page, so move from the beginning of the block to the next page. That is, a blank digit is inserted before the first line of the block attribute (step S503) until the beginning of the block moves to the next page (step S504).
.
【0045】このようにして、自動的に、文書の配置位
置の決定並びにその決定した配置位置への配置が行なわ
れる。In this way, the location of the document is automatically determined and the document is placed at the determined location.
【0046】ところで、節題又は節文に折り返し禁止属
性をつけた場合、桁下げ処理を行なうと、節題又は節文
の文字列が、その行に設定されている書式桁数を越える
ときがある。このような場合には、再度書式設定を行な
い、桁数を増やして、はみだした桁を収めるようにする
。[0046] By the way, when the no-wrapping attribute is attached to a section title or clause sentence, if the column down processing is performed, the character string of the clause title or clause sentence may exceed the number of format digits set for that line. be. In this case, re-format and increase the number of digits to fit the protruding digits.
【0047】なお、上記実施例に於いて、桁下げ処理を
実行すると、元の文書データは書き換えられるので、処
理後の文書のレイアウトがオペレータの思った通りの状
態になっていないときには、いったん元のべた書き状態
に戻して修正したい場合がある。このような場合、文書
データは書き換えられているので、手作業で行なうこと
になる。そこで、元のレイアトに戻す作業も、自動的に
行なうようにすれば、なおいっそう入力に要する時間を
短縮できる。[0047] In the above embodiment, when the lowering process is executed, the original document data is rewritten, so if the layout of the document after processing is not as expected by the operator, the original There are times when you want to go back to the flat state and make corrections. In such a case, the document data has been rewritten, so it must be done manually. Therefore, if the process of returning to the original layout is performed automatically, the time required for input can be further reduced.
【0048】[0048]
【発明の効果】本発明によれば、文書の配置位置の決定
並びにその決定した配置位置への配置を自動的に行なう
ことが可能となる。よって、入力に要する時間を短縮で
きる。According to the present invention, it is possible to automatically determine the placement position of a document and to place the document at the determined placement position. Therefore, the time required for input can be shortened.
【図1】本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.
【図2】実施例の自動編集機能付日本語ワードプロセッ
サのブロック構成図である。FIG. 2 is a block diagram of a Japanese word processor with an automatic editing function according to an embodiment.
【図3】図2中の編集情報記憶領域の記憶構造を示す図
である。FIG. 3 is a diagram showing a storage structure of an editing information storage area in FIG. 2;
【図4】(A)は図3中の節題記号辞書の記憶内容を示
す図、(B)は図3中の段落情報エリアの記憶内容を示
す図、(C)は図3中の系列登録エリアの記憶内容を示
す図である。[Fig. 4] (A) is a diagram showing the storage contents of the section title symbol dictionary in Fig. 3, (B) is a diagram showing the storage contents of the paragraph information area in Fig. 3, and (C) is a diagram showing the storage contents of the paragraph information area in Fig. 3; FIG. 3 is a diagram showing the storage contents of a registration area.
【図5】実施例の自動桁下げ処理動作を説明するための
フローチャートである。FIG. 5 is a flowchart for explaining the automatic downgrade processing operation of the embodiment.
【図6】(A)は入力後の文字列の状態を示す図、(B
)は桁下げ処理後の文字列の状態を示す図である。[Figure 6] (A) is a diagram showing the state of the character string after input, (B)
) is a diagram showing the state of the character string after the downsetting process.
【図7】図5中の文書の構造解析処理動作を説明するた
めの詳細なフローチャートである。FIG. 7 is a detailed flowchart for explaining the structure analysis processing operation of the document shown in FIG. 5;
【図8】図5中の文書の桁下げレベルをつける処理動作
を説明するための詳細なフローチャートである。FIG. 8 is a detailed flowchart for explaining the processing operation for adding the indentation level to the document in FIG. 5;
【図9】図5中の文書の桁下げ処理動作を説明するため
の詳細なフローチャートである。FIG. 9 is a detailed flowchart for explaining the down-down processing operation of the document in FIG. 5;
【図10】図5中の文書のブロック属性の処理動作を説
明するための詳細なフローチャートである。FIG. 10 is a detailed flowchart for explaining the processing operation of block attributes of the document in FIG. 5;
1…文書データ記憶手段、2…文書データ分割手段、3
…レベル情報付加手段、4…文書データ再配置手段。1... Document data storage means, 2... Document data dividing means, 3
...Level information addition means, 4.Document data rearrangement means.
Claims (1)
データ記憶手段と、この文書データ記憶手段に記憶され
ている文書データを複数のブロックに分割する文書デー
タ分割手段と、この文書データ分割手段により分割され
た文書データの各ブロックにレベル情報を付加するレベ
ル情報付加手段と、このレベル情報付加手段によりそれ
ぞれのブロックに付加されたレベル情報に基づき、上記
文書データ分割手段により分割された各ブロックの文書
データを再配置する文書データ再配置手段と、を具備す
ることを特徴とする自動編集機能付日本語ワードプロセ
ッサ。Claim 1: Document data storage means for storing input document data; document data division means for dividing the document data stored in the document data storage means into a plurality of blocks; A level information addition means for adding level information to each block of the divided document data; and a level information addition means for adding level information to each block of the divided document data; and a level information addition means for adding level information to each block of the divided document data; A Japanese word processor with an automatic editing function, comprising: document data rearrangement means for rearranging document data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3130231A JPH04332076A (en) | 1991-05-07 | 1991-05-07 | Japanese word processor provided with automatic editing function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3130231A JPH04332076A (en) | 1991-05-07 | 1991-05-07 | Japanese word processor provided with automatic editing function |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6257798A Division JPH07253980A (en) | 1994-10-24 | 1994-10-24 | Document creation device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04332076A true JPH04332076A (en) | 1992-11-19 |
Family
ID=15029241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3130231A Pending JPH04332076A (en) | 1991-05-07 | 1991-05-07 | Japanese word processor provided with automatic editing function |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04332076A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01162975A (en) * | 1987-12-19 | 1989-06-27 | Fujitsu Ltd | Paragraph-based document editing method |
-
1991
- 1991-05-07 JP JP3130231A patent/JPH04332076A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01162975A (en) * | 1987-12-19 | 1989-06-27 | Fujitsu Ltd | Paragraph-based document editing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4513391A (en) | Text processing apparatus with two-stage formatting of text | |
JPH01180062A (en) | Document shaping device | |
JP3083314B2 (en) | Document processing method and apparatus | |
US4717911A (en) | Technique for chaining lines of a document together to facilitate editing or proofreading | |
US4448557A (en) | Method and means for inhibiting interleaving or cave-in among table text columns resulting from column insertion | |
JPH04332076A (en) | Japanese word processor provided with automatic editing function | |
JPS6017487A (en) | How to automatically set the line pitch of a document creation device | |
US5727224A (en) | Document image processor for inserting and editing bracket symbols and associated text | |
US5276792A (en) | Word processor permitting modification of a preset frame | |
JPH0969098A (en) | Document preparation device | |
EP0075731A2 (en) | Column formatting by typed example | |
JPH07253980A (en) | Document creation device | |
JP2824169B2 (en) | Scroll bar movement control method | |
JPS6365988B2 (en) | ||
JPH06342430A (en) | Automatic page divided display editing device | |
JP2787822B2 (en) | Document processing device | |
JP3133575B2 (en) | Sentence processing equipment | |
JP3112298B2 (en) | Program text editing device | |
JPH05151204A (en) | Page numbering system | |
JP4256841B2 (en) | Information processing apparatus, information processing method, and information processing program | |
JP3470926B2 (en) | Document processing apparatus and document processing method | |
JPH03161861A (en) | Document processing device with table creation function | |
JPH0291758A (en) | Document shaping device | |
JPS61180283A (en) | Word processor | |
JPH05342069A (en) | Number sampling system for page number |