JP3256990B2 - Document processing device - Google Patents

Document processing device

Info

Publication number
JP3256990B2
JP3256990B2 JP24833391A JP24833391A JP3256990B2 JP 3256990 B2 JP3256990 B2 JP 3256990B2 JP 24833391 A JP24833391 A JP 24833391A JP 24833391 A JP24833391 A JP 24833391A JP 3256990 B2 JP3256990 B2 JP 3256990B2
Authority
JP
Japan
Prior art keywords
document
character
output
line
counter
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
JP24833391A
Other languages
Japanese (ja)
Other versions
JPH0561864A (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.)
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 JP24833391A priority Critical patent/JP3256990B2/en
Publication of JPH0561864A publication Critical patent/JPH0561864A/en
Application granted granted Critical
Publication of JP3256990B2 publication Critical patent/JP3256990B2/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 processing apparatus for arranging document data according to the number of output digits of a format.

【0002】[0002]

【従来の技術】一般にワードプロセッサ等においては、
文書の書式は一行当りの行数を設定することにより規定
される。そして、この書式に従って文書が作成され、作
成された文書はプリンタで印刷される。この場合、編集
機能として改行、改頁、インデント、禁則処理等の機能
により行編集が行われる。一方、この作成された若しく
は作成中の文書はCRT、LCD(液晶デイスプレイ)
等の表示部で表示される。文書の作成にあたって、操作
者はこの表示部を見ながら文書データの入力および編集
を行う。
2. Description of the Related Art Generally, in a word processor or the like,
The format of the document is defined by setting the number of lines per line. Then, a document is created according to this format, and the created document is printed by a printer. In this case, line editing is performed by functions such as line feed, page break, indent, and prohibition processing as editing functions. On the other hand, the document created or being created is a CRT, an LCD (liquid crystal display).
Etc. are displayed on the display unit. When creating a document, the operator inputs and edits document data while looking at the display unit.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の文書処理装置にあっては、文書の入力前に入
力文書の書式桁数を決めその桁に従い文字入力を行い出
力まで行うとともに、日本語特有の「禁則処理」など
は、特別な出力、編集処理により補う構成となっていた
ため、この処理によって操作が複雑になるばかりか出力
形式も文字間を調整するなどして文書全体の構成をくず
す要因のひとつになっていた。また、外来語や英語の単
語など2行にまたがるような場合にはなんら考慮される
ことなく処理されていたため、見栄えの悪い文書となっ
てしまうことがある。特に行頭禁則や禁則文字が文頭に
くる場合は勿論のこと、カッコに囲まれた文字や英数文
字、カタカナの単語が2行にまたがっていると見栄えが
悪く読みづらいという問題点があった。本発明の課題
は、文書データの配置状態が適切となる出力桁数の書式
を自動的に決定することができるようにすることであ
る。
However, in such a conventional document processing apparatus, the number of format digits of the input document is determined before inputting the document, and character input is performed according to the number of digits, and output is performed. The word-specific "prohibition processing" and the like were supplemented by special output and editing processing, so this processing not only complicates operations but also adjusts the output format between characters, etc. It was one of the destructive factors. Also, when a word that spans two lines, such as a foreign word or an English word, has been processed without any consideration, the document may look bad. In particular, there are problems that not only when the beginning of a line or a prohibited character comes to the beginning of a sentence, but also when characters enclosed in parentheses, alphanumeric characters, and katakana words are spread over two lines, the appearance is poor and it is difficult to read. SUMMARY OF THE INVENTION It is an object of the present invention to automatically determine a format of the number of output digits at which the arrangement state of document data is appropriate.

【0004】[0004]

【課題を解決するための手段】文書データを記憶する文
書データ記憶手段と、文書書式として設定可能な複数の
出力桁数の書式毎に、前記文書データをその出力桁数の
書式により行単位で仮配置する配置手段と、前記各出力
桁数の書式毎に、前記文書データを仮配置した各行にお
ける文書データの行頭及び行末部分での文字列の連続状
態を解析して得点を取得する得点取得手段と、前記得点
取得手段によって取得された得点に基づいて、前記文書
データを配置する出力桁数の書式を決定する決定手段と
を備えるものである。したがって、文書データの配置状
態が適切となる出力桁数の書式を自動的に決定し見栄え
の良い文書を出力することができる。
Document data storage means for storing document data, and for each of a plurality of output digit formats that can be set as a document format, the document data is converted into a line unit by the output digit format. Arranging means for tentatively arranging, and for each format of the number of output digits, obtaining a score by analyzing a continuous state of the character string at the beginning and end of the line of the document data in each line where the document data is temporarily arranged. Means for determining the format of the number of output digits for arranging the document data based on the score obtained by the score obtaining means. Therefore, it is possible to automatically determine the format of the number of output digits at which the arrangement state of the document data becomes appropriate, and output a good-looking document.

【0005】[0005]

【機能ブロック図の説明】図1は本発明の機能ブロック
図である。文書データ記憶手段1から文書データが読出
されると、読出された文書データは評価手段2により文
書データを出力する際の各出力桁毎の各行における前行
末から当該行頭における文書データの連続状態が評価さ
れ、この評価結果に基づいて出力桁決定手段3は文書デ
ータの出力桁を決定する。
[Description of Functional Block Diagram] FIG. 1 is a functional block diagram of the present invention. When the document data is read from the document data storage unit 1, the read document data is stored in a continuous state of the document data from the end of the previous line in each line of each output digit when the document data is output by the evaluation unit 2 to the beginning of the line. It is evaluated, and the output digit determining means 3 determines the output digit of the document data based on the evaluation result.

【0006】[0006]

【実施例】以下、図2〜図6を参照して実施例を説明す
る。図2〜図6は文書処理装置の一実施例を示す図であ
る。先ず、構成を説明する。図2は文書処理装置10の
ブロック図である。この図において、11は装置全体の
制御、並びに後述する出力桁数評価処理を含む各種の文
書処理を行う制御部であり、制御部11はCPU等によ
り構成され図示しないROMに格納されているマイクロ
プログラムに従って文書処理装置の各種の動作を制御す
る。制御部11には、文書情報を記憶する文書メモリ1
2に、カウンタ及びフラグからなる制御レジスタ13、
文書入力のための仮文字キー、アルファベット、文字キ
ー、数字キー及び機能命令のためのファンクションキー
等を備えたキーボードからなる入力部14、入力及び編
集文書等を表示する表示部15、文書を印刷出力するプ
リンタ等の印字部16がそれぞれ接続されている。
An embodiment will be described below with reference to FIGS. 2 to 6 are diagrams showing an embodiment of the document processing apparatus. First, the configuration will be described. FIG. 2 is a block diagram of the document processing apparatus 10. In this figure, reference numeral 11 denotes a control unit which controls the entire apparatus and performs various types of document processing including an output digit number evaluation process which will be described later. The control unit 11 is constituted by a CPU or the like and is a microcontroller stored in a ROM (not shown). Various operations of the document processing apparatus are controlled according to the program. The control unit 11 includes a document memory 1 for storing document information.
2, a control register 13 including a counter and a flag;
An input unit 14 including a keyboard having provisional character keys for inputting documents, alphabets, character keys, numeric keys, function keys for function commands, etc., a display unit 15 for displaying input and edited documents, and printing of documents. A printing unit 16 such as a printer for outputting is connected to each.

【0007】上記制御レジスタ13は、最適な出力桁数
を判定するための評価得点等をカウントするためのもの
であり、具体的には、アドレスカウンタ21、最高値カ
ウンタ22、最適桁数カウンタ23、ベース桁カウンタ
24、桁カウンタ25、得点カウンタ26、カタカナ/
英数字フラグ27及びカッコ(「」)検出フラグ28か
ら構成されている。
The control register 13 is for counting evaluation scores and the like for determining the optimum number of output digits. Specifically, the address register 21, the maximum value counter 22, and the optimum number of digits counter 23 , Base digit counter 24, digit counter 25, score counter 26, katakana /
It comprises an alphanumeric flag 27 and a parenthesis ("") detection flag 28.

【0008】また、上記文書メモリ12及び制御レジス
タ13は、例えば演算に使用するデータや演算結果など
を一時的に記憶するRAMの記憶領域を分割して使用さ
れる。入力部14は、英数字、平仮名等を入力するキー
や、カーソル移動キー、実行キー、中止キー等のファン
クションキーが配置された操作盤であり、操作盤上のい
ずれかのキーが操作された場合、制御部11によってそ
のキーに対応する所定のキーコードに変換される。
Further, the document memory 12 and the control register 13 are used by dividing a storage area of a RAM for temporarily storing, for example, data used for calculation and calculation results. The input unit 14 is an operation panel on which keys for inputting alphanumeric characters, hiragana, etc., and function keys such as a cursor movement key, an execution key, and a stop key are arranged, and any key on the operation panel is operated. In this case, the control unit 11 converts the key code into a predetermined key code corresponding to the key.

【0009】次に、実施例の動作を説明する。図3は出
力桁数評価判定処理のプログラムを示すフローチャート
であり、本フローは所定の開始キー操作があった後に上
記制御レジスタ13を用いて実行される。同図中、符号
Sn(n=1,2,…)はフローの各ステップを示して
いる。
Next, the operation of the embodiment will be described. FIG. 3 is a flowchart showing a program of the output digit number evaluation determination process. This flow is executed using the control register 13 after a predetermined start key operation. In the figure, reference sign Sn (n = 1, 2,...) Indicates each step of the flow.

【0010】プログラムがスタートすると、先ず、ステ
ップS1で最高値カウンタ22と最適桁数カウンタ23
をクリアし、ステップS2で用紙のサイズ(例えば、A
4サイズ)によって決定されるベース桁の最小値を計算
し、ステップS3で、計算した最小値をベース桁カウン
タ24にセットする。ここでは、その用紙に従って出力
桁の最大値と最小値を計算し、その最小桁数をベース桁
カウンタ24にセットしておく。次いで、ステップS4
で文書メモリ12の先頭アドレスをアドレスカウンタ2
1にセットし、ステップS5で文章評価の点が入る得点
カウンタ26に" 0" 点をセットして文章評価を行うた
めの初期化を行う。次いで、ステップS6で仮出力を行
う。この仮出力処理は何桁と決めたときに桁数に応じた
評価をしていく処理であり、詳細は図4に示される。次
いで、ステップS7で最高値カウンタ22のカウント値
と得点カウンタ26のカウント値を比較し、最高値カウ
ンタ22の値が得点カウンタ26の値以上のときはステ
ップS8で得点カウンタ26の値を最高値カウンタ22
にセットし、ステップS9で桁カウンタ25の値を最適
桁数カウンタ23にセットしてステップS10に進む。
また、最高値カウンタ22の値が得点カウンタ26の値
より小さいときはステップS8,S9をジャンプしてS
10に進む。すなわち、桁数を決めて評価すると、最初
はその桁数の得点が最高値カウンタ22に格納される
が、次に桁数を変えて評価した値と最高値カウンタ22
の値とを比較し、良い評価が出たら順に更新していく。
次いで、ステップS10でベース桁カウンタ24の値
(最小桁)を1桁増やして最小桁から1桁ずつ大きくし
ていき、ステップS11で用紙最大値に達したか否かを
判別する。用紙最大のときは、本フローの処理を終え、
用紙最大になっていないときはステップS4に戻る。こ
のように、仮の桁で仮出力した結果の得点が出てくるの
で、前回の値と比較して得点の低いものが記憶される。
このように、この場合の評価では後述するように良くな
い箇所が出てくると加点されるため得点の低いものの方
が評価が高いことになる。上述した処理がまず1回行わ
れ、その次に仮の桁数を1桁増やして、先に計算したそ
の用紙の最大値まで繰り返してその結果が最適桁数カウ
ンタ23に出力される。
When the program starts, first, in step S1, the highest value counter 22 and the optimum digit number counter 23
Is cleared, and the paper size (for example, A
4) is calculated, and the calculated minimum value is set to the base digit counter 24 in step S3. Here, the maximum value and the minimum value of the output digit are calculated according to the sheet, and the minimum digit number is set in the base digit counter 24. Next, step S4
To set the start address of the document memory 12 to the address counter 2
At step S5, a score counter 26, at which a score for text evaluation is entered, is set to "0" to perform initialization for text evaluation. Next, provisional output is performed in step S6. This temporary output process is a process of performing an evaluation according to the number of digits when the number of digits is determined, and details are shown in FIG. Next, in step S7, the count value of the highest value counter 22 is compared with the count value of the score counter 26. If the value of the highest value counter 22 is equal to or greater than the value of the score counter 26, the value of the score counter 26 is changed to the highest value in step S8. Counter 22
Is set in step S9, and the value of the digit counter 25 is set in the optimal digit number counter 23 in step S9, and the flow advances to step S10.
If the value of the highest value counter 22 is smaller than the value of the score counter 26, steps S8 and S9 are jumped to S
Go to 10. That is, when the number of digits is determined and evaluated, first, the score of the number of digits is stored in the maximum value counter 22. Next, the value evaluated by changing the number of digits and the maximum value counter 22 are evaluated.
And updates them in order when a good evaluation is obtained.
Next, in step S10, the value (minimum digit) of the base digit counter 24 is increased by one digit and increased by one digit from the minimum digit, and in step S11, it is determined whether or not the paper maximum value has been reached. When the paper is at the maximum, the processing of this flow is completed.
If the sheet has not reached the maximum, the process returns to step S4. In this way, since the score of the result of the provisional output in the provisional digit comes out, the one with the lower score than the previous value is stored.
As described above, in the evaluation in this case, points that are not good as described later are added, so that points having a lower score have higher evaluations. The above-described processing is performed once, and then the temporary digit number is increased by one digit. The result is repeated up to the previously calculated maximum value of the paper, and the result is output to the optimal digit number counter 23.

【0011】図4は、仮出力処理を示すフローチャート
であり、前記ステップS6に対応する。先ず、ステップ
S11でカタカナ/英数字フラグ27及びカッ
コ(「」)検出フラグ28をOFF初期化し、ステップ
S12で一行処理(図5)を行う。次いで、ステップS
13で一行処理の読出しが終了したか否かを判別し、読
出しが終了したときは仮出力処理を終え、読出しが終了
していないときはステップS12に戻って仮の出力を一
行単位に文書の最後まで行う。このフローを実行するこ
とにより1行毎に仮出力が読出される。ここで、後述す
る図5の一行処理でカッコが2行にまたがっていると
か、カタカナ,アルファベットが2行にまたがっている
とかを判別して仮の桁毎に得点評価を行い、カタカナ等
が2行にまたがっている場合は、評価が悪いものとす
る。本実施例では前述したように2行にまたがっている
ものがあると加点していくようにしているので加点がい
ちばん小さいものが評価が良いことになる。
FIG. 4 is a flowchart showing the provisional output process, which corresponds to step S6. First, the katakana / alphanumeric flag 27 and the parenthesis ("") detection flag 28 are initialized to OFF in step S11, and one-line processing (FIG. 5) is performed in step S12. Then, step S
In step 13, it is determined whether or not the reading of the one-line processing has been completed. If the reading has been completed, the provisional output processing is terminated. If the reading has not been completed, the process returns to step S12, and the provisional output is returned in units of one line. Do until the end. By executing this flow, the temporary output is read out for each row. Here, in the one-line processing of FIG. 5 described later, it is determined whether the parentheses extend over two lines or the katakana and the alphabet extend over two lines, and the score is evaluated for each provisional digit. If it extends over lines, the evaluation is bad. In the present embodiment, as described above, points are added when there is a line extending over two lines, so that the one with the smallest added point has a good evaluation.

【0012】図5は一行処理を示すフローチャートであ
り、前記ステップS12に対応する。この一行処理の最
初では次の項目に関してチェックする。すなわち、 i) 2行にまたがって“「" 、“」" で囲まれた文書が
入っていないか。 ii)2行にまたがって英数文字列(英単語)、カタカナ
の文字列が入っていないか。 iii)行頭禁則文字が来ていないか。 上記のような場合には得点カウンタ26に加点するよう
にする。
FIG. 5 is a flowchart showing one-line processing, and corresponds to step S12. At the beginning of this one-line processing, the following items are checked. That is, i) Does the document enclosed by "" and "" extend over two lines? Ii) Contains alphanumeric character strings (English words) and katakana character strings over two lines? Iii) Check that no prohibited characters have arrived In the above case, the score counter 26 is added.

【0013】具体的には、先ず、ステップS11でカッ
コ(「」)検出フラグ28がONしているか否かを判別
し、「」検出フラグ28がONしているときはカッコが
前行にまたがっているときであるからステップS12で
得点カウンタ26に1を加点し、カタカナ/英数文字フ
ラグ28がONしていなければそのままステップS13
に進む。ステップS13では先頭一文字を続出し、ステ
ップS14でその文字がカタカナ/英数文字か否かを判
別する。読出した先頭一文字がカタカナ/英数文字のと
きはステップS15でカタカナ/英数文字フラグ27が
ONしているか否かを判別する。カタカナ/英数字フラ
グ27がONしているときはカタカナ又は英数字が前行
にまたがっているときであるからステップS16で得点
カウンタ26に1を加点し、フラグ27がONしていな
ければそのままステップS17に進む。すなわち、読出
した先頭一文字がカタカナ又は英数文字であっても前行
からまたがるものではなく先頭から始まる場合には、見
栄えが損なわれるものではないと判断して加点対象とは
しない。次いで、ステップS17でカタカナ/英数文字
フラグ27をONにしてステップS20の一文字処理
(図6)に進む。
More specifically, first, in step S11, it is determined whether or not the parenthesis ("") detection flag 28 is ON. When the "" detection flag 28 is ON, the parentheses extend over the preceding line. In step S12, the score counter 26 is incremented by one, and if the katakana / alphanumeric character flag 28 is not ON, the process proceeds to step S13.
Proceed to. In step S13, the first character is continued, and in step S14, it is determined whether the character is katakana / alphanumeric characters. If the first character read is katakana / alphanumeric characters, it is determined in step S15 whether the katakana / alphanumeric character flag 27 is ON. When the katakana / alphanumeric flag 27 is ON, it means that the katakana or alphanumeric character extends over the previous line. Therefore, 1 is added to the score counter 26 in step S16. Proceed to S17. In other words, even if the first character read out is katakana or alphanumeric characters, if it does not extend from the previous line and starts from the beginning, it is determined that the appearance is not impaired, and the point is not added. Next, in step S17, the katakana / alphanumeric character flag 27 is turned on, and the process proceeds to one-character processing (FIG. 6) in step S20.

【0014】一方、前記ステップS14でカタカナ/英
数文字でないと判別したときはステップS18で読出し
た文字が行頭禁則文字(例えば“、" “。" “,"
“−" “っ" )か否かを判別し、行頭禁則文字のときは
ステップS19で得点カウンタ26に1を加点し、行頭
禁則文字でなければそのままステップS20に進む。ス
テップS20では一文字処理(図6)を行い、ステップ
S21で桁カウンタ25の値がベース桁カウンタ24の
値より大きいか否かを判断し、桁カウンタ25の値がベ
ース桁カウンタ24の値以下のときは一行の処理が終わ
っていないと判断して一行全部終わるまではステップS
20に戻って一文字処理を繰り返す。桁カウンタ25の
値がベース桁カウンタ24の値より大きいときは一行処
理が終わったと判断して本フローの処理を終了する。従
って、行の先頭のチェックを行った後は一行分のデータ
が仮出力されることになる。
On the other hand, if it is determined in step S14 that the character is not a katakana / alphanumeric character, the character read out in step S18 is a non-starter character (for example, ",""."","
It is determined whether or not "-""tsu"). If the character is a prohibited line character, 1 is added to the score counter 26 in step S19, and if it is not a prohibited line character, the process directly proceeds to step S20. In step S20, one-character processing (FIG. 6) is performed. In step S21, it is determined whether the value of the digit counter 25 is greater than the value of the base digit counter 24, and the value of the digit counter 25 is equal to or less than the value of the base digit counter 24. At this time, it is determined that the processing of one line is not completed, and step S is performed until the processing of one line is completed.
Returning to step 20, the one-character processing is repeated. If the value of the digit counter 25 is larger than the value of the base digit counter 24, it is determined that one-line processing has ended, and the processing of this flow ends. Therefore, after the head of the line is checked, one line of data is provisionally output.

【0015】図6は一文字処理を示すフローチャートで
あり、前記ステップS20に対応する。一文字処理は、
行末一文字をみて行末に禁則文字があれば評価を下げる
ようにする処理であり、一文字の処理の中では行末禁則
が得点の対象になる。また、次の行の先頭チェックのた
めに文字単位に“「" 、“」" 、英数字、カタカナのチ
ェックを行いフラグの管理を行う。このような一行分の
処理を順次行うようにする。
FIG. 6 is a flowchart showing one-character processing, and corresponds to step S20. One character processing is
This is a process for lowering the evaluation if there is a prohibited character at the end of the line after looking at the last character of the line. In the processing of one character, the end of the line is prohibited. In addition, for the head check of the next line, ““ ”,“ ””, alphanumeric characters and katakana are checked for each character and flag management is performed, and such processing for one line is sequentially performed.

【0016】具体的には、先ず、ステップS31で一文
字づつ文字を読出し、ステップS32で読出した文字が
行末禁則文字か否かを判別する。読出した文字が行末禁
則文字のときはステップS33でベース桁カウンタ24
の値が桁カウンタ25の値と等しいか否かを判別し、等
しいときはいま読出した文字が行末の文字であると判断
してステップS34で得点カウンタ26に1を加点す
る。すなわち、行末禁則文字であって行末であれば加点
し、この条件にないときはステップS34をジャンプし
てステップS35に進む。ステップS35では読出した
文字が開きカッコ“「" か否かを判断し、開きカッコ
“「" のときはステップS36でカッコ(「」)検出フ
ラグ28をONにしてステップS41に進む。また、読
出した文字が開きカッコ“「" でないときはステップS
37で閉じカッコ“」" か否かを判断し、閉じカッ
コ“」" のときはステップS38でカッコ(「」)検出
フラグ28をOFFしてS41に進む。すなわち、開き
カッコ“「" があればカッコ(「」)検出フラグ28の
フラグを立て、閉じカッコ“」" があればカッ
コ(「」)検出フラグ28のフラグを降ろすことによ
り、カッコ(「」)検出フラグ28のフラグをみれば前
記一行処理(図5)で開きカッコ“「" があったまま1
行が終了したことが判別できる。
Specifically, first, in step S31, characters are read one by one, and in step S32, it is determined whether or not the read characters are non-end-of-line characters. If the read character is an end-of-line prohibited character, in step S33 the base digit counter 24
Is determined to be equal to the value of the digit counter 25, and if they are equal, it is determined that the character just read is the character at the end of the line, and 1 is added to the score counter 26 in step S34. That is, if the character is a non-end-of-line character and is at the end of the line, an additional point is added. In step S35, it is determined whether or not the read character is an open parenthesis "". If the character is open parenthesis "", the parentheses ("") detection flag 28 is turned on in step S36, and the process proceeds to step S41. If the read character is not an open parenthesis """, step S
At 37, it is determined whether or not the closing parenthesis is """. If the closing parenthesis is""", the parenthesis ("") detection flag 28 is turned off at step S38, and the routine proceeds to S41. That is, by raising the flag of the parenthesis ("") detection flag 28 when there is an open parenthesis """and lowering the flag of the parenthesis ("") flag when there is a closing parenthesis""", Looking at the flag of the detection flag 28, the one-line processing (FIG. 5) shows that the open parenthesis ""
It can be determined that the line has ended.

【0017】前記ステップS37で閉じカッコ“」" で
ないときはステップS39でカタカナ/英数文字か否か
を判別し、カタカナ/英数文字のときはステップS40
でカタカナ/英数文字フラグ27をONにしてステップ
S42に進む。一方、カタカナ/英数文字でないとき、
あるいはステップS34、S38から移行したときはカ
タカナ/英数文字等の連続ではなくなっているときであ
るからステップS41でカタカナ/英数フラグ27をO
FFする。次いで、ステップS42で一文字処理を終え
るかどうかの桁数を求める桁数計算を行い、ステップS
43で桁カウンタ25に計算した桁数を加算し、ステッ
プS44で次の文字のアドレスをアドレスカウンタ21
に格納して本フローの処理を終了する。
If it is not the closing parenthesis """in step S37, it is determined in step S39 whether or not it is katakana / alphanumeric characters. If it is katakana / alphanumeric characters, step S40 is performed.
To turn on the katakana / alphanumeric character flag 27 and proceed to step S42. On the other hand, if it is not katakana / alphanumeric characters,
Alternatively, when the process shifts from steps S34 and S38, the Katakana / alphanumeric character flag 27 is turned off in step S41 because the Katakana / alphanumeric character is no longer continuous.
FF. Next, in step S42, the number of digits is calculated to determine the number of digits to determine whether or not to complete the one-character processing.
The calculated number of digits is added to the digit counter 25 at 43, and the address of the next character is added to the address counter 21 at step S44.
And the process of the present flow ends.

【0018】以上説明したように、本実施例の文書処理
装置10は、制御部11と、文書情報を記憶する文書メ
モリ12と、最適な出力桁数を判定するための評価得点
等をカウントするカウンタ及びフラグからなる制御レジ
スタ13と、文書入力のための仮名文字キー、アルファ
ベット文字キー等を備えたキーボードからなる入力部1
4とを設け、入力時に出力結果の桁数を意識することな
く文書を作成し、出力時にその文書の文書データの連続
状態を解析して得点評価するようにしているので、最適
な出力桁数を自動的に出力することができ、見栄えのよ
い綺麗な文書を出力することができる。
As described above, the document processing apparatus 10 of this embodiment counts the control section 11, the document memory 12 for storing document information, and the evaluation score for determining the optimum number of output digits. A control register 13 including a counter and a flag, and an input unit 1 including a keyboard having a kana character key, an alphabet character key, and the like for inputting a document.
4 to create a document without considering the number of digits in the output result at the time of input, and analyze and evaluate the score of the document data at the time of output. Can be automatically output, and a beautiful document with a good appearance can be output.

【0019】また、従来であれば見栄えのよい文書を出
力しようとするとオペレータが、適当な行を決めて各行
毎に行末の英数文字等を次の行に割り込ませる、あるい
は、出力桁数を順次変えてみて適当な出力桁数を見付け
出すといった手間のかかる処理が必要であったが、本文
書処理装置10は自動的に桁数を変えながら入力文書を
評価するようにしているので、見栄えのよい桁数を自動
的に決定することができ、日本語ワープロのような文字
出力装置には有効である。
Further, conventionally, in order to output a good-looking document, an operator determines an appropriate line and inserts an alphanumeric character or the like at the end of each line into the next line. Although a complicated process such as finding an appropriate number of output digits by sequentially changing the number of digits is necessary, the present document processing apparatus 10 automatically evaluates the input document while changing the number of digits. Can be automatically determined, which is effective for a character output device such as a Japanese word processor.

【0020】なお、本実施例では、文書データの連続状
態を、行頭禁則、行末禁則、カッコ(「」)、英数文
字、カタカナにより得点評価するようにしているが、こ
れは、一例であって文書の見栄えに関連する連続状態を
表すものであればこれ以外のもの、例えば、カッコの種
類を増やすようにしていてもよい。
In the present embodiment, the continuous state of the document data is scored based on the prohibited lines, prohibited lines, parentheses (""), alphanumeric characters, and katakana. However, this is only an example. Alternatively, any other type that indicates a continuous state related to the appearance of the document, for example, the number of parentheses, may be increased.

【0021】また、本実施例では、禁則、カッコ、英数
文字等が2行にまたがる場合の加点幅を同一としている
が、これに限らず、項目により加点幅を変えるようにす
ればより適当な得点評価を行うことが可能になる。例え
ば、カタカナは加点幅をより小さく、英数文字等はより
加点幅を大きくするようにして重み付けを変えることに
よって、得点評価に差を付けるようにすることができ
る。
Further, in this embodiment, the additional point width is the same when prohibitions, parentheses, alphanumeric characters, etc. extend over two lines. However, the present invention is not limited to this, and it is more appropriate to change the additional point width depending on the item. It is possible to perform a high score evaluation. For example, it is possible to make a difference in the score evaluation by changing the weighting so that katakana has a smaller point width and alphanumeric characters and the like have a larger point width.

【0022】[0022]

【発明の効果】この発明によれば、複数の出力桁数の書
式毎に文書データを、その出力桁数の書式により行単位
で仮配置した際の各行における文書データの行頭及び行
末部分での文字列の連続状態を解析して得点を取得し
て、その取得した得点に基づいて、文書データを配置す
る出力桁数の書式を自動的に決定するため、文書データ
の配置状態が適切となる出力桁数の書式を自動的に決定
でき、見栄えの良い文書の出力を行うことが容易にでき
る。
According to the present invention, when the document data is provisionally arranged in units of lines according to the format of a plurality of output digits at the beginning and end of the line of the document data in each line. Since the score is obtained by analyzing the continuous state of the character string and the format of the number of output digits for arranging the document data is automatically determined based on the obtained score, the arrangement state of the document data is appropriate The format of the number of output digits can be automatically determined, and a good-looking document can be easily output.

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

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

【図2】文書処理装置のブロック構成図である。FIG. 2 is a block diagram of a document processing apparatus.

【図3】文書処理装置の桁数評価処理を示すフローチャ
ートである。
FIG. 3 is a flowchart illustrating a digit number evaluation process of the document processing apparatus.

【図4】文書処理装置の桁数評価処理を示すフローチャ
ートである。
FIG. 4 is a flowchart illustrating a digit number evaluation process of the document processing apparatus.

【図5】文書処理装置の桁数評価処理を示すフローチャ
ートである。
FIG. 5 is a flowchart illustrating a digit number evaluation process of the document processing apparatus.

【図6】文書処理装置の桁数評価処理を示すフローチャ
ートである。
FIG. 6 is a flowchart illustrating a digit number evaluation process of the document processing apparatus.

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

10 文書処理装置 11 制御部 12 文書メモリ 13 制御レジスタ 14 入力部 15 表示部 16 印字部 21 アドレスカウンタ 22 最高値カウンタ 23 最適桁数 24 ベース桁カウンタ 25 桁カウンタ 26 得点カウンタ 27 カタカナ/英数字フラグ 28 「」検出フラグ Reference Signs List 10 Document processing device 11 Control unit 12 Document memory 13 Control register 14 Input unit 15 Display unit 16 Printing unit 21 Address counter 22 Maximum value counter 23 Optimal number of digits 24 Base digit counter 25 Digit counter 26 Score counter 27 Katakana / alphanumeric flag 28 "" Detection flag

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】文書データを記憶する文書データ記憶手段
と、文書書式として設定可能な複数の出力桁数の書式毎に、
前記文書データをその出力桁数の書式により行単位で仮
配置する配置手段と、 前記各出力桁数の書式毎に、前記文書データを仮配置し
た各行における文書データの行頭及び行末部分での文字
列の連続状態を解析して得点を取得する得点取得手段
と、 前記得点取得手段によって取得された得点に基づいて、
前記文書データを配置する出力桁数の書式を決定する決
定手段と、 を具備したことを特徴とする文書処理装置。
A document data storage means for storing document data, and a format having a plurality of output digits that can be set as a document format,
The above-mentioned document data is tentatively stored in units of lines according to the format of the output digits.
Arranging means for arranging, and temporarily arranging the document data for each output digit format.
Characters at the beginning and end of the document data in each line
Score acquisition means for acquiring points by analyzing the continuous state of columns
And, based on the score obtained by the score obtaining means,
A decision to determine the format of the number of output digits for arranging the document data
Document processing apparatus characterized by comprising a constant means.
JP24833391A 1991-09-02 1991-09-02 Document processing device Expired - Fee Related JP3256990B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24833391A JP3256990B2 (en) 1991-09-02 1991-09-02 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24833391A JP3256990B2 (en) 1991-09-02 1991-09-02 Document processing device

Publications (2)

Publication Number Publication Date
JPH0561864A JPH0561864A (en) 1993-03-12
JP3256990B2 true JP3256990B2 (en) 2002-02-18

Family

ID=17176531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24833391A Expired - Fee Related JP3256990B2 (en) 1991-09-02 1991-09-02 Document processing device

Country Status (1)

Country Link
JP (1) JP3256990B2 (en)

Also Published As

Publication number Publication date
JPH0561864A (en) 1993-03-12

Similar Documents

Publication Publication Date Title
WO2006059513A1 (en) Display, display control method, and information storage medium
JP3256990B2 (en) Document processing device
JP2740575B2 (en) Character processor
KR100235523B1 (en) Character insert device and method
US5983212A (en) Document processing apparatus having display
JP2001125892A (en) Device and method for displaying reading kana and medium recording reading kana display program
JPH0721189A (en) Translation assisting system
JP3147233B2 (en) Document processing method and apparatus
JPH06203018A (en) Document processor
JPH0736902A (en) Electronic dictionary device
JP2938663B2 (en) Information processing apparatus and information processing method
JP3027834B2 (en) Document file name display
JPH0581252A (en) Word processor
JPH0432957A (en) Character processor
JPH0721182A (en) Character processor and its method
JPH07282050A (en) Document editing method and device
JPH08339371A (en) Document output device and character modification method
JPH0362259A (en) Character input processor
JPH0749851A (en) Document shaping device
JPH04332073A (en) Method and device for processing character
JPH05303571A (en) Document processor
JPH0816908B2 (en) Character processing device and character processing method
JPH07168829A (en) Document preparing method
JPH07105200A (en) Japanese syllabary-to-chinese character converting device
JPH05303570A (en) Document processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees