JP2695566B2 - How to handle non-starting characters in ruled lines - Google Patents
How to handle non-starting characters in ruled linesInfo
- Publication number
- JP2695566B2 JP2695566B2 JP4076555A JP7655592A JP2695566B2 JP 2695566 B2 JP2695566 B2 JP 2695566B2 JP 4076555 A JP4076555 A JP 4076555A JP 7655592 A JP7655592 A JP 7655592A JP 2695566 B2 JP2695566 B2 JP 2695566B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- line
- ruled line
- code
- pattern
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 claims description 24
- 238000001514 detection method Methods 0.000 claims description 11
- 238000004886 process control Methods 0.000 claims description 4
- 239000000203 mixture Substances 0.000 claims description 2
- 238000003672 processing method Methods 0.000 claims 4
- 230000002194 synthesizing effect Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 6
- 230000002401 inhibitory effect Effects 0.000 description 2
- 238000012369 In process control Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000010965 in-process control Methods 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、罫線枠内の行頭禁則文
字の禁則処理を行う行頭禁則文字処理方法に関するもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of processing a non-starting character in a ruled line frame for performing a prohibition process on a non-starting character.
【0002】[0002]
【従来の技術】日本語などの文書を作成する際に、通常
「。」や「、」「)」などが行頭に現れないようにする
行頭禁則処理を行っている。2. Description of the Related Art Normally, when creating a document such as Japanese, ".", ",", ")" Etc. are prohibited from appearing at the beginning of a line.
【0003】従来の行頭禁則処理は、行頭禁則文字が文
章の行頭に現れたとき、前行の右端に“ぶらさげ処理”
を行うようにしている。しかし、罫線枠内では、文字が
罫線枠で挟まれた内部で折り返し、“ぶらさげ処理”を
行うことができず、例えば図10に示すように禁則処理
を行うことなく罫線内に文字列を配置して表示するよう
にしていた。In the conventional non-start-of-line processing, when a non-start-of-line character appears at the beginning of a sentence, a "hanging process" is added to the right end of the preceding line.
I'm trying to do. However, in the ruled line frame, it is not possible to fold the characters inside the ruled line frame and perform the “hanging process”. For example, as shown in FIG. 10, the character string is arranged in the ruled line without performing the prohibition process. I was trying to display it.
【0004】[0004]
【発明が解決しようとする課題】上述したように、罫線
枠内に文書を入力して表示、印刷する場合、当該罫線の
位置で“ぶらさげ処理”を行うことができず、そのまま
禁則処理を行うことなく、表示、印刷していたため、罫
線枠内の文章がみずらいという問題があった。As described above, when a document is input into the ruled line frame for display and printing, the "hanging process" cannot be performed at the position of the ruled line, and the prohibition process is performed as it is. Since it was displayed and printed without a problem, there was a problem that the text in the ruled line frame was difficult to see.
【0005】本発明は、この問題を解決するため、罫線
枠内に入力された文字列のうち行頭禁則文字が行頭に位
置したときに当該行頭禁則文字を前行の末尾の罫線と一
緒にしたパターンに置き換えたり、制御コードを付加し
ておき出力時に当該行頭禁則文字を前行の末尾の罫線と
一緒にしたパターンに置き換えたりし、罫線枠内の禁則
処理を可能にすることを目的としている。In order to solve this problem, the present invention combines the non-starting-line character with the ruled line at the end of the preceding line when the non-starting-line character is located at the beginning of the line in the character string input in the ruled line frame. The purpose is to replace the pattern with a pattern or to add a control code and replace it with a pattern with the ruled line at the end of the previous line at the time of output to enable prohibition processing within the ruled line frame. .
【0006】[0006]
【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、罫線枠内
行頭禁則検出部2は、罫線枠内に入力された文字が行頭
禁則文字であって、かつ行頭に位置すると検出したとき
に、行頭禁則文字と前行の末尾の罫線とを一緒にしたパ
ターンの文字コードで罫線を置き換えたり、前行の末尾
の罫線を禁則処理制御コード、当該行頭禁則文字コード
および罫線コードに置き換えたり、行頭禁則文字を禁則
処理制御コードおよび当該行頭禁則文字コードに置き換
えた文字列としたりするものである。Means for solving the problem will be described with reference to FIG. In FIG. 1, when the character entered in the ruled-line frame is a character that is not a head-of-line character and is located at the beginning of the line, the prohibited-line-in-line detection unit 2 in the ruled line frame and the ruled line at the end of the previous line are detected. Replace the ruled line with the character code of the pattern that combines and, and replace the ruled line at the end of the previous line with the kinsoku processing control code, the relevant line beginning kinsoku character code and ruled line code, and the kinsoku character is the kinsoku processing control code and the subject line beginning. It is also used as a character string replaced with a prohibited character code.
【0007】キャラクタジェネレータ5、8は、行頭禁
則文字と罫線とを一緒にしたパターンを予め格納するも
のである。The character generators 5 and 8 are for pre-storing patterns in which prohibited characters at the beginning of a line and ruled lines are combined.
【0008】[0008]
【作用】本発明は、図1に示すように、罫線枠内行頭禁
則検出部2が罫線枠内に入力された文字について行頭禁
則文字であって、かつ行頭に位置すると検出したとき
に、行頭禁則文字と前行の末尾の罫線とを一緒にしたパ
ターンの文字コードに置き換え、出力時にキャラクタジ
ェネレータ5、8から一緒にしたパターンを取り出して
出力(表示、印刷など)するようにしている。According to the present invention, as shown in FIG. 1, when the ruled-line-in-line-break-prohibition detecting unit 2 detects that a character entered in the ruled line frame is a start-of-line prohibition character and is located at the start of the line, the line-start The prohibited characters and the ruled line at the end of the previous line are replaced with the character code of the pattern, and the combined pattern is taken out from the character generators 5 and 8 at the time of output and output (display, print, etc.).
【0009】また、罫線枠内行頭禁則検出部2が罫線枠
内に入力された文字が行頭禁則文字であって、かつ行頭
に位置すると検出したときに、前行の末尾の罫線を禁則
処理制御コード、当該行頭禁則文字コードおよび罫線コ
ードに置き換え、出力時に禁則処理制御コードが現れた
ときに行頭禁則文字コードのパターンと罫線コードのパ
ターンとを合成し、この合成後のパターンを出力するよ
うにしている。Further, when the ruled-line-inhibiting-in-line-detection section 2 detects that the character entered in the ruled line frame is a line-inhibiting character and is located at the beginning of the line, the rule-in-process control of the ruled line at the end of the preceding line is performed. Replace with the code, the non-starting character code and the ruled line code, and when the prohibition processing control code appears at the time of output, the pattern of the non-starting character code and the ruled line code are combined, and the pattern after the combination is output. ing.
【0010】また、罫線枠内行頭禁則検出部2が罫線枠
内に入力された文字が行頭禁則文字であって、かつ行頭
に位置すると検出したときに、行頭禁則文字を禁則処理
制御コードおよび当該行頭禁則文字コードに置き換た文
字列とし、先頭から出力処理中に、禁則処理制御コード
が現れたときにこれに続く行頭禁則文字コードのパター
ンと行の末尾の罫線コードのパターンとを合成し、この
合成後のパターンを行の末尾の罫線の位置に出力するよ
うにしている。Further, when the ruled-line-in-line-break detection unit 2 detects that the character entered in the ruled line frame is a line-inhibited character and is located at the beginning of a line, the line-inhibited character is treated as a line-inhibited processing control code and the corresponding line-inhibited character. A character string that replaces the beginning-of-line prohibition character code is created, and when the prohibition-processing control code appears during output processing from the beginning, the pattern of the beginning-of-line prohibition character code and the pattern of the ruled line code at the end of the line are combined. The pattern after this composition is output to the position of the ruled line at the end of the line.
【0011】従って、罫線枠内に入力された文字のうち
行頭禁則文字が行頭に位置したときに当該行頭禁則文字
を前行の末尾の罫線と一緒にしたパターンの文字コード
で罫線を置き換えたり、罫線に禁則処理制御コード、行
頭禁則文字コードを付加したり、行頭禁則文字を禁則処
理制御コードおよび行頭禁則文字コードに置き換えたり
し、出力時に行頭禁則文字を前行の末尾の罫線と一緒に
したパターンを出力することにより、罫線枠内に入力さ
れた文字列の行頭禁則処理を行うことが可能となる。Therefore, when the non-starting-line character among the characters entered in the ruled-line frame is located at the beginning of the line, the ruled line is replaced by the character code of the pattern in which the non-starting-line character is combined with the ruled line at the end of the preceding line. The kinsoku processing control code and non-starting character code are added to the ruled line, or the non-starting character is replaced by the kinsoku processing control code and the non-starting character code, and the non-starting character is combined with the ruled line at the end of the previous line at the time of output. By outputting the pattern, it becomes possible to perform the line-break prohibition processing of the character string input in the ruled line frame.
【0012】[0012]
【実施例】次に、図1から図9を用いて本発明の実施例
の構成および動作を詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the configuration and operation of an embodiment of the present invention will be described in detail with reference to FIGS.
【0013】図1は、本発明の1実施例構成図を示す。
図1において、キーボード1は、文字などを入力するも
のであって、ここでは、罫線の枠内に文字を入力するも
のである。FIG. 1 shows a block diagram of an embodiment of the present invention.
In FIG. 1, the keyboard 1 is for inputting characters and the like, and here is for inputting characters within the frame of ruled lines.
【0014】罫線枠内行頭禁則検出部2は、罫線枠内に
入力された文字が行頭禁則文字であって、かつ行頭に位
置すると検出したときに、行頭禁則文字と前行の末尾の
罫線とを一緒にしたパターンの文字コードで罫線を置き
換えたりなどするものである。When the character entered in the ruled line frame is a character which is prohibited at the beginning of a line and is located at the beginning of a line, the ruled-line-in-the-line-in-rule detection unit 2 detects the prohibited character at the beginning of a line and the ruled line at the end of the preceding line. For example, the ruled line is replaced with the character code of the pattern in which the.
【0015】文書データ3は、罫線の枠内に入力された
文字列などからなる文書データである。ディスプレイ制
御部4は、文書データ3について、ディスプレイ用キャ
ラクタジェネレータ5を参照し、ディスプレイ6上に罫
線の枠内の文字を禁則処理して表示するものである。こ
こでは、文書データ3を順次読み込み、罫線枠内行頭禁
則検出部2によって罫線と置き換えられた、行頭禁則文
字と罫線を一緒にした文字コードのときに、ディスプレ
イ用キャラクタジェネレータ5から当該文字コードによ
って一緒にした文字パターン(ドットパターンあるいは
ベクトルフォント)を取り出し、この文字パターンをも
とに罫線枠内の行頭禁則処理した結果をディスプレイ6
上に表示するものである(例えば図9の「。」を行の末
尾に表示した例を参照)。The document data 3 is document data composed of a character string input in a ruled frame. With respect to the document data 3, the display control unit 4 refers to the display character generator 5 to display the characters in the ruled line frame on the display 6 after the constraint processing. Here, when the document data 3 is sequentially read and the character code that combines the non-starting character and the ruled line together, which is replaced by the ruled line in the ruled-line frame, the character generator 5 for display uses the character code. The combined character pattern (dot pattern or vector font) is taken out, and the result of the inline prohibition process in the ruled line frame is displayed based on this character pattern.
It is displayed above (for example, refer to the example in which “.” In FIG. 9 is displayed at the end of the line).
【0016】ディスプレイ用キャラクタジェネレータ5
は、文字コードに対応づけて文字パターン(ドットパタ
ーンあるいはベクトルフォント)を予め格納したもので
ある。ここで、通常の文字コードの文字パターンに加
え、更に行頭禁則文字と罫線を一緒にした文字パターン
も予め格納しておく。Character generator for display 5
Is a character pattern (dot pattern or vector font) previously stored in association with a character code. Here, in addition to the character pattern of the normal character code, a character pattern in which the prohibited characters at the beginning and ruled lines are combined is also stored in advance.
【0017】ディスプレイ6は、文字などを表示するも
のであって、ここでは、罫線の枠内に文字列を行頭禁則
処理して表示するものである。プリンタ制御部7は、文
書データ3について、プリンタ用キャラクタジェネレー
タ8を参照し、プリンタ9によって罫線の枠内の文字を
禁則処理して用紙に印刷するものである。ここでは、文
書データ3を順次読み込み、罫線枠内行頭禁則検出部2
によって罫線と置き換えられた、行頭禁則文字と罫線を
一緒にした文字コードのときに、プリンタ用キャラクタ
ジェネレータ8から当該文字コードによって一緒にした
文字パターン(ドットパターンあるいはベクトルフォン
ト)を取り出し、この文字パターンをもとに罫線枠内の
行頭禁則処理した結果を、プリンタ9によって用紙に印
字するものである(例えば図9の「。」を行の末尾に印
字した例を参照)。The display 6 displays characters and the like, and in this case, displays a character string within the frame of the ruled line after the beginning-of-line prohibition process. The printer control unit 7 refers to the printer character generator 8 for the document data 3, and the printer 9 prohibits the characters within the frame of the ruled line and prints it on paper. Here, the document data 3 is sequentially read, and the rule-in-the-line-in-line prohibition detection unit 2
When a character code that combines a ruled line with a non-breaking character that has been replaced with a ruled line by is extracted a character pattern (dot pattern or vector font) that is combined by the character code from the printer character generator 8 and this character pattern Based on the above, the result of performing the inline-prohibition process in the ruled line frame is printed on the paper by the printer 9 (for example, refer to the example in which “.” In FIG. 9 is printed at the end of the line).
【0018】プリンタ用キャラクタジェネレータ8は、
文字コードに対応づけて文字パターン(ドットパターン
あるいはベクトルフォント)を予め格納したものであ
る。ここで、通常の文字コードの文字パターンに加え、
更に行頭禁則文字と罫線を一緒にした文字パターンも予
め格納しておく。The character generator 8 for printer is
A character pattern (dot pattern or vector font) is stored in advance in association with a character code. Here, in addition to the character pattern of the normal character code,
Further, a character pattern in which the non-starting character and the ruled line are combined is also stored in advance.
【0019】プリンタ9は、用紙に印字するものであっ
て、ここでは、罫線の枠内の文字列を行頭禁則処理して
印字するものである。図2は、本発明の禁則処理用パタ
ーン例を示す。これは、図1のディスプレイ用キャラク
タジェネレータ5やプリンタ用キャラクタジェネレータ
8に文字コードに対応づけて予め格納した文字パターン
(ドットパターンあるいはベクトルフォント)である。
例えば左上のの文字パターンは、行頭禁則文字“。”
と縦罫線“|”を一緒にしたパターンであって、固有の
文字コードを割り当てておく。同様に、図示のように罫
線と行頭禁則文字を一緒にした文字パターンを固有の文
字コードに対応づけてディスプレイ用キャラクタジェネ
レータ5やプリンタ用キャラクタジェネレータ8に格納
しておく。The printer 9 prints on a sheet of paper, and here, prints a character string in the frame of a ruled line by performing a line head prohibition process. FIG. 2 shows an example of a prohibition processing pattern of the present invention. This is a character pattern (dot pattern or vector font) stored in advance in the display character generator 5 and the printer character generator 8 in FIG. 1 in association with the character code.
For example, the upper left character pattern is "."
And a vertical ruled line “|” are combined, and a unique character code is assigned. Similarly, as shown in the figure, a character pattern in which a ruled line and a non-starting character are combined is stored in the display character generator 5 or the printer character generator 8 in association with a unique character code.
【0020】次に、図3のフローチャートに示す順序に
従い、図1の構成の動作を詳細に説明する。図3におい
て、S1は、キーボードより文字を受け、解析する。こ
れは、オペレータがキーボード1より、罫線の枠内に文
字列をキー入力したことに対応して、この文字(文字コ
ード)を受け取り、罫線枠内行頭禁則検出部2が、行頭
禁則文字か、行の先頭かなどを解析する。Next, the operation of the configuration of FIG. 1 will be described in detail according to the order shown in the flowchart of FIG. In FIG. 3, S1 receives a character from the keyboard and analyzes it. This is because the operator receives the character (character code) from the keyboard 1 by inputting a character string in the frame of the ruled line, and the inline-breaking rule detection unit 2 in the ruled-line frame determines whether it is a line-inhibited character. Analyze whether it is the beginning of a line.
【0021】S2は、行頭禁則文字か判別する。これ
は、S1で罫線枠内行頭禁則検出部2が、罫線の枠内に
入力された文字について、行頭禁則文字か判別する。Y
ESの場合には、S3で更に、行の先頭か判別し、YE
SのときにS4に進み、NOのときにS5に進む。一
方、NOの場合には、行頭禁則文字でないので、S5に
進む。In S2, it is determined whether the character is a non-starting character. In this case, the ruled-line-in-line-break detection unit 2 in S1 determines whether the character entered in the ruled line frame is a prohibited-line-start character. Y
In the case of ES, it is further determined in S3 whether it is the beginning of the line, and YE
If S, the process proceeds to S4, and if NO, the process proceeds to S5. On the other hand, in the case of NO, the character is not a non-prohibited character, and thus the process proceeds to S5.
【0022】S4は、S2のYES、S3のYESによ
って、罫線の枠内に入力された文字が、行頭禁則文字で
あって、かつ行の先頭に位置すると判別されたので、文
書データ中の前行の右端の縦罫線の文字コードを、その
縦罫線と当該禁則行頭文字を合成したパターンの文字コ
ードに置換する。これにより、例えば図9のに示すよ
うに、縦罫線“|”の文字コードを、図2のの縦罫線
“|”と行頭禁則文字“。”を合成したパターンの文字
コードに置き換える。In S4, it is determined by YES in S2 and YES in S3 that the character entered in the frame of the ruled line is a non-start-of-line character and is located at the beginning of the line. The character code of the vertical ruled line at the right end of the line is replaced with the character code of the pattern in which the vertical ruled line and the prohibited character are combined. As a result, for example, as shown in FIG. 9, the character code of the vertical ruled line “|” is replaced with the character code of the pattern in which the vertical ruled line “|” of FIG.
【0023】S5は、S2のNOによって行頭禁則文字
でない、あるいはS2のYES、S3のNOによって行
頭禁則文字であるが行頭に位置しないと判明したので、
文書データ3に入力された文字の文字コードを格納す
る。S5 is determined to be a non-prohibited character by NO in S2, or YES in S2 and NO in S3, but it is determined that the character is not a non-prohibited character but is not located at the beginning of the line.
The character code of the input character is stored in the document data 3.
【0024】以上によって、キーボード1から罫線の枠
内に入力された文字の文字コードについて、行頭禁則文
字かつ行頭のときに当該行頭禁則文字のパターンと縦罫
線とを合成したパターンの文字コードで罫線コードを置
き換えて文書データ3に格納し、一方、それ以外の文字
の文字コードのときにそのまま文書データ3に格納す
る。As described above, regarding the character code of the character input from the keyboard 1 in the frame of the ruled line, the ruled line is a character that is a non-starting character and a pattern in which the pattern of the non-starting character and the vertical ruled line are combined at the beginning of the line. The codes are replaced and stored in the document data 3, while the character codes of other characters are stored in the document data 3 as they are.
【0025】次に、S6は、ディスプレイ制御部4が、
文書データ3から文字コードを順次取り出し、キャラク
タジェネレータ(ディスプレイ用)5を参照して文字パ
ターンにし、ディスプレイ6上に表示する。この際、S
4で行頭禁則文字と罫線のパターンを一緒にした文字コ
ードに置き換えてあったときは、この文字コードに対応
する行頭禁則文字と罫線を合成した後のパターンを取り
出し、ディスプレイ6上に表示する。一方、通常の文字
コード、罫線コードのときは、そのまま、通常の文字パ
ターンを取り出してディスプレイ6上に表示する。Next, in S6, the display control unit 4
Character codes are sequentially taken out from the document data 3, a character generator (for display) 5 is referenced to form a character pattern, and the character pattern is displayed on the display 6. At this time, S
If the character code that combined the prohibited-start-line character and the ruled line pattern is replaced in step 4, the pattern obtained by combining the prohibited-start-line character and the ruled line corresponding to this character code is taken out and displayed on the display 6. On the other hand, in the case of the normal character code and ruled line code, the normal character pattern is taken out and displayed on the display 6 as it is.
【0026】以上によって、文書データ3をもとに、行
頭禁則文字と罫線とを合成した、図9ののように罫線
の枠内で行頭禁則処理した結果を表示することが可能と
なる。As described above, based on the document data 3, it is possible to display the result of the line-breaking process in which the line-breaking character and the ruled line are combined, as shown in FIG.
【0027】同様に、S7は、プリンタ制御部7が、文
書データ3から文字コードを順次取り出し、キャラクタ
ジェネレータ(プリンタ用)8を参照して文字パターン
にし、プリンタ9によって用紙に印字する。この際、S
4で行頭禁則文字と罫線のパターンを一緒にした文字コ
ードに置き換えてあったときは、この文字コードに対応
する行頭禁則文字と罫線を合成した後のパターンを取り
出し、用紙に印字する。一方、通常の文字コード、罫線
コードのときは、そのまま、通常の文字パターンを取り
出して用紙に印字する。Similarly, in step S7, the printer control unit 7 sequentially extracts character codes from the document data 3, refers to the character generator (for printer) 8 to form a character pattern, and causes the printer 9 to print on a sheet. At this time, S
If the character code that combined the prohibited-start-of-line character and the ruled line pattern is replaced in 4, the pattern after combining the prohibited-start-of-line character and the ruled line corresponding to this character code is taken out and printed on paper. On the other hand, in the case of the normal character code and ruled line code, the normal character pattern is taken out as it is and printed on the paper.
【0028】以上によって、文書データ3をもとに、行
頭禁則文字と罫線とを合成した、図9ののように罫線
の枠内で行頭禁則処理した結果を印字することが可能と
なる。As described above, based on the document data 3, it is possible to print the result of line-inhibition processing within the frame of the ruled line as shown in FIG. 9 in which the line-inhibited character and the ruled line are combined.
【0029】次に、図4から図8を用い、本発明の他の
実施例構成および動作を詳細に説明する。図4は、本発
明の他の実施例構成図を示す。Next, the configuration and operation of another embodiment of the present invention will be described in detail with reference to FIGS. FIG. 4 shows a block diagram of another embodiment of the present invention.
【0030】図4において、キーボード11は、文字な
どを入力するものであって、ここでは、罫線の枠内に文
字を入力するものである。罫線枠内行頭禁則検出部12
は、罫線枠内に入力された文字が行頭禁則文字であっ
て、かつ行頭に位置すると検出したときに、この行頭禁
則文字の文字コードを、禁則処理制御コード、行頭禁則
文字コード、および罫線コードの3つのコードに置き換
えたりなどするものである。In FIG. 4, the keyboard 11 is for inputting characters and the like, and here is for inputting characters within the frame of ruled lines. Ruled-line-in-the-line prohibited section detection unit 12
Detects that the character entered in the ruled line frame is a non-starting line character and is located at the beginning of the line, the character code of this non-starting line character is set to the prohibition processing control code, non-starting line character code, and ruled line code. It is replaced with the three codes of.
【0031】文書データ13は、罫線の枠内に入力した
文字列などからなる文書データである。ディスプレイ制
御部14は、文書データ13から文字コードを順次読み
込んで解析し、文字コードのときは当該文字コードをデ
ィスプレイ用キャラクタジェネレータ15に入力し、文
字パターン(ドットパターン、フォントパターン)を合
成部17を介してVRAM18上に格納(展開)する。
一方、禁則処理制御コードのときは次の文字コードをデ
ィスプレイ用キャラクタジェネレータ15に入力して読
み出した文字パターンを禁則文字パターン一時記憶部1
6に取り込ませるように一時記憶指示信号を送出すると
共に、次の文字コードをディスプレイ用キャラクタジェ
ネレータ15に入力して読み出した文字パターンを合成
部17に入力し、合成指示信号を送出して合成部17に
合成させたりするものである。The document data 13 is document data composed of a character string or the like input in a ruled line frame. The display control unit 14 sequentially reads and analyzes a character code from the document data 13, and when the character code is a character code, inputs the character code to the display character generator 15 to synthesize a character pattern (dot pattern, font pattern). It is stored (developed) in the VRAM 18 via.
On the other hand, in the case of the prohibition processing control code, the following character code is input to the display character generator 15 and the read character pattern is used as the prohibition character pattern temporary storage unit 1.
6, the temporary storage instruction signal is sent, the next character code is input to the display character generator 15, the read character pattern is input to the synthesizing unit 17, and the synthesizing instruction signal is sent to output the synthesizing unit. It is made to be combined with 17.
【0032】ディスプレイ用キャラクタジェネレータ1
5は、文字コードを入力とし、文字パターンを出力する
ものである。禁則文字パターン一時記憶部16は、ディ
スプレイ制御部14からの一時記憶指示信号に対応し
て、ディスプレイ用キャラクタジェネレータ15から読
み出した文字パターンを一時的に記憶するものである。Character generator 1 for display
5 is for inputting a character code and outputting a character pattern. The prohibited character pattern temporary storage unit 16 temporarily stores the character pattern read from the display character generator 15 in response to a temporary storage instruction signal from the display control unit 14.
【0033】合成部17は、禁則文字パターン一時記憶
部16から読み出した文字パターンと、ディスプレイ用
キャラクタジェネレータ15から読み出した文字パター
ンとを合成するものである。例えば行頭禁則文字のパタ
ーン「。」と罫線のパターン「|」とを合成し、図2の
のパターンを生成するものである。The synthesizing unit 17 synthesizes the character pattern read from the prohibited character pattern temporary storage unit 16 and the character pattern read from the display character generator 15. For example, the pattern "." Of the prohibited character at the beginning of the line and the pattern "|" of the ruled line are combined to generate the pattern of FIG.
【0034】VRAM18は、ビデオRAMであって、
合成部17によって合成した後のパターンを展開し、シ
リアルな映像信号としてディスプレイ19に出力し、文
字などを表示するものである。The VRAM 18 is a video RAM,
The pattern after being synthesized by the synthesizing unit 17 is developed and output as a serial video signal to the display 19 to display characters and the like.
【0035】ディスプレイ19は、文字などを表示する
ものであって、例えば図9に示すように罫線の枠内に禁
則処理した後のパターンを表示するものである。次に、
図5のフローチャートに示す順序に従い、図4の構成の
動作を詳細に説明する。The display 19 is for displaying characters and the like, and for example, as shown in FIG. 9, displays the pattern after the prohibition processing within the frame of the ruled line. next,
The operation of the configuration of FIG. 4 will be described in detail according to the order shown in the flowchart of FIG.
【0036】図5において、S11は、キーボードより
文字を受け、解析する。これは、オペレータがキーボー
ド11より、罫線の枠内に文字をキー入力したことに対
応して、この文字(文字コード)を受け取り、罫線枠内
行頭禁則検出部12が、行頭禁則文字か、行の先頭かな
どを解析する。In FIG. 5, in step S11, characters are received from the keyboard and analyzed. This is because the operator receives a character (character code) from the keyboard 11 by inputting a character in the ruled line frame, and the ruled-line-inhibiting rule detection unit 12 receives the character Analyzes whether it is the beginning of.
【0037】S12は、行頭禁則文字か判別する。これ
は、S11で罫線枠内行頭禁則検出部12が、罫線の枠
内に入力された文字列について、行頭禁則文字か判別す
る。YESの場合には、S13で更に、行の先頭か判別
し、YESのときにS14に進み、NOのときにS15
に進む。一方、NOの場合には、行頭禁則文字でないの
で、S15に進む。In S12, it is determined whether the character is a non-starting character. In S11, the ruled-line-in-the-line-prohibition detecting section 12 determines whether the character string input in the ruled line frame is the in-line-prohibited character. In the case of YES, it is further determined in S13 whether it is the head of the line, the process proceeds to S14 if YES, or S15 if NO.
Proceed to. On the other hand, in the case of NO, since the character is not a non-starting character, the process proceeds to S15.
【0038】S14は、S12のYES、S13のYE
Sによって、罫線の枠内に入力された文字が、行頭禁則
文字であって、かつ行の先頭に位置すると判別されたの
で、文書データ中の前行の右端の縦罫線の文字コード
を、禁則処理制御コード、行頭禁則文字コード、縦罫線
コードに置換する。これにより、縦罫コード→禁則処理
制御コード+行頭禁則文字コード+縦罫線コードの3つ
で置き換え、文書データ13に格納する。S14 is YES in S12 and YE in S13.
Since it is determined by S that the character entered in the frame of the ruled line is a prohibited character at the beginning of the line and is located at the beginning of the line, the character code of the vertical ruled line at the right end of the previous line in the document data is prohibited. Replace with process control code, non-starting character code, vertical ruled line code. As a result, the vertical ruled code → prohibited processing control code + prohibited line beginning character code + vertical ruled line code are replaced and stored in the document data 13.
【0039】S15は、S12のNOによって行頭禁則
文字でない、あるいはS12のYES、S13のNOに
よって行頭禁則文字であるが行頭に位置しないと判明し
たので、文書データ3に入力された文字の文字コードを
格納する。In S15, the character code of the character input to the document data 3 is determined by NO in S12 because it is not a non-prohibited character, or by YES in S12 and NO in S13, it is a non-prohibited character but not located at the beginning of the line. To store.
【0040】以上によって、キーボード11から罫線の
枠内に入力された文字の文字コードについて、行頭禁則
文字かつ行頭のときに当該行頭禁則文字を、禁則処理制
御コード、禁則文字コード、縦罫線コードで置き換えて
文書データ13に格納し、一方、それ以外の文字の文字
コードのときにそのまま文書データ13に格納する。As described above, regarding the character codes of the characters input from the keyboard 11 into the frame of the ruled line, the prohibited character at the beginning of the line and the prohibited prohibited character at the beginning of the line are converted into the prohibited process control code, the prohibited character code, and the vertical ruled line code. It is replaced and stored in the document data 13, and when the character code of the other character is stored, it is stored in the document data 13 as it is.
【0041】次に、S16は、ディスプレイ制御部14
が、文書データ13から文字コードを順次取り出し、禁
則処理制御コードのときに、次の禁則文字コードについ
てキャラクタジェネレータ(ディスプレイ用)15から
取り出した文字パターンを禁則文字パターン一時記憶部
16に記憶させ、更に次の縦罫線コードについてキャラ
クタジェネレータ(ディスプレイ用)15から取り出し
た文字パターンを合成部17に入力すると共に禁則文字
パターン一時記憶部16から読み出した文字パターンを
合成部17に入力し、合成部17が合成した後のパター
ンをVRAM18に格納(展開)する。そして、VRA
M18から読み出した映像信号をディスプレイ19に入
力し、罫線の枠内の禁則処理した結果を表示する。Next, in S16, the display control unit 14
, Sequentially retrieves the character code from the document data 13, and stores the character pattern retrieved from the character generator (for display) 15 for the next prohibited character code in the prohibited character pattern temporary storage unit 16 when it is the prohibited character control code. Further, for the next vertical ruled line code, the character pattern extracted from the character generator (for display) 15 is input to the synthesizing unit 17, and the character pattern read from the prohibited character pattern temporary storage unit 16 is input to the synthesizing unit 17. The pattern after being synthesized is stored (developed) in the VRAM 18. And VRA
The video signal read from M18 is input to the display 19 to display the result of prohibition processing within the frame of the ruled line.
【0042】以上によって、文書データ13をもとに、
行頭禁則文字と罫線とを合成した、図9ののように罫
線の枠内で行頭禁則処理した結果を表示することが可能
となる。Based on the above, based on the document data 13,
It is possible to display the result of the process of prohibiting the beginning of a line within the frame of the ruled line as shown in FIG. 9 in which the prohibited characters at the beginning of the line and the ruled line are combined.
【0043】図6は、本発明の合成部の機能説明図を示
す。これは、図4の合成部17による合成の様子を示し
たものである。合成部17は、例えばキャラクタジェネ
レータ15の出力文字パターン“|”と、禁則文字パタ
ーン一時記憶部16の出力文字パターン“。”とを入力
として、両者を合成し、図示のようなパターンにする。
これにより、図9のと示した位置に表示すると、行頭
禁則文字パターン“。”について、前行の末尾の縦罫線
“|”の位置に禁則処理した結果を表示、印刷すること
が可能となる。FIG. 6 is a functional explanatory diagram of the synthesizing unit of the present invention. This shows a state of synthesizing by the synthesizing unit 17 in FIG. The synthesizing unit 17 receives, for example, the output character pattern “|” of the character generator 15 and the output character pattern “.” Of the prohibited character pattern temporary storage unit 16 and synthesizes the two to form a pattern as illustrated.
As a result, when displayed at the position shown as in FIG. 9, it is possible to display and print the result of prohibition processing at the position of the vertical ruled line “|” at the end of the previous line for the prohibited line beginning character pattern “.”. .
【0044】図7は、本発明の文書データの構造例(そ
の1)を示す。これは、禁則文字が現れたら、前行の右
端の縦罫線の属性データに「重ね合わせ表示属性」を設
定し、拡張領域に当該禁則文字のコードを収め、属性デ
ータからこの拡張領域にリンクを張る。これにより、禁
則文字を右端の縦罫線と禁則処理する旨の情報を設定す
ることとなる。FIG. 7 shows a structural example (1) of the document data of the present invention. When a prohibited character appears, set "Overlay display attribute" in the attribute data of the vertical ruled line at the right end of the previous line, store the code of the prohibited character in the extended area, and link from the attribute data to this extended area. Stretch. As a result, the vertical ruled line at the right end of the prohibited character and the information indicating that the prohibited character is to be processed are set.
【0045】次に、出力時に、ディスプレイ制御部14
が「重ね合わせ表示属性」を検出すると、リンクされて
いる拡張領域にある文字コードに対応する文字パターン
をキャラクタジェネレータ15から読み出し、禁則文字
パターン一時記憶部16に取り込むように一時記憶指示
信号を出す。続いて、罫線の文字パターンをキャラクタ
ジェネレータ15から読み出し、合成部17に入力する
と共に、禁則文字パターン一時記憶部16から読み出し
た文字パターンを入力して合成するように指示を出す。
そして、合成部17は、これら両者の文字パターンを合
成する。Next, at the time of output, the display control unit 14
When the "overlay display attribute" is detected, the character pattern corresponding to the character code in the linked extended area is read from the character generator 15 and a temporary storage instruction signal is issued so as to be taken into the prohibited character pattern temporary storage unit 16. . Then, the character pattern of the ruled line is read from the character generator 15 and input to the synthesizing unit 17, and at the same time, the character pattern read from the prohibited character pattern temporary storage unit 16 is input and an instruction is issued to synthesize the character pattern.
Then, the synthesizing unit 17 synthesizes these two character patterns.
【0046】図8は、本発明の文書データの構造例(そ
の2)を示す。これは、行頭禁則文字が行頭に現れた
ら、禁則処理制御コード、行頭禁則文字コードの2つを
文字データとして収める。FIG. 8 shows a structural example (2) of the document data of the present invention. In this case, when a prohibited character at the beginning of a line appears at the beginning of a line, two characters of a prohibited processing control code and a prohibited character code at the beginning are stored as character data.
【0047】次に、出力時に、ディスプレイ制御部14
が禁則処理制御コードを検出すると、文字データ中の次
の文字コードに対応する文字パターンをキャラクタジェ
ネレータ15から読み出し、禁則文字パターン一時記憶
部16に取り込むように一時記憶指示信号を出す。続い
て、同じ表示位置にある罫線の文字パターンをキャラク
タジェネレータ15から読み出し、合成部17に入力す
ると共に、禁則文字パターン一時記憶部16から読み出
した文字パターンを入力して合成するように指示を出
す。そして、合成部17は、これら両者の文字パターン
を合成する。Next, at the time of output, the display control unit 14
When the prohibition processing control code is detected, the character pattern corresponding to the next character code in the character data is read from the character generator 15 and a temporary storage instruction signal is issued so as to be taken into the prohibition character pattern temporary storage unit 16. Then, the character pattern of the ruled line at the same display position is read from the character generator 15 and input to the synthesizing unit 17, and at the same time, the character pattern read from the prohibited character pattern temporary storage unit 16 is input to issue an instruction to synthesize. . Then, the synthesizing unit 17 synthesizes these two character patterns.
【0048】図9は、本発明の表示例を示す。ここで、
太線が罫線枠を表し、細線が1文字を表示/印字する境
界を表す。これら細線のマス目は、図7、図8の1つの
文字データに対応する。尚、文字データは、一次元の文
字データ列であって、その中に本発明に係わる禁則処理
制御コードを埋め込むため、先頭からこれら禁則処理制
御コードなどを除いた文字コードがこの細線のマス目に
対応することとなる。FIG. 9 shows a display example of the present invention. here,
The thick line represents the ruled line frame, and the thin line represents the boundary for displaying / printing one character. The cells of these thin lines correspond to one character data in FIGS. 7 and 8. Since the character data is a one-dimensional character data string and the prohibition processing control code according to the present invention is embedded therein, the character code excluding the prohibition processing control code from the beginning is a thin line of the grid. Will correspond to.
【0049】図9のは、本発明の罫線枠内の禁則処理
を施した結果を示す。ここでは、縦罫線“|”と、行頭
禁則文字“。”を一緒にして合成し、縦罫線の位置に表
示/印字したものである。FIG. 9 shows the result of the prohibition process in the ruled line frame according to the present invention. Here, the vertical ruled line “|” and the non-starting line character “.” Are combined together and displayed / printed at the position of the vertical ruled line.
【0050】[0050]
【発明の効果】以上説明したように、本発明によれば、
罫線枠内に入力された文字のうち行頭禁則文字が行頭に
位置したときに当該行頭禁則文字を前行の末尾の罫線と
一緒にしたパターンの文字コードで罫線を置き換えた
り、罫線に禁則処理制御コード、行頭禁則文字コードを
付加したり、行頭禁則文字コードを禁則処理制御コー
ド、行頭禁則文字コードに置き換えたりし、出力時に行
頭禁則文字を前行の末尾の罫線と一緒にしたパターンを
出力する構成を採用しているため、罫線枠内に入力され
た文字列の行頭禁則処理を行うことができる。これによ
り、文書処理装置において、罫線枠内の行頭禁則文字処
理を行うことができ、品質の高い文書(ディスプレイ表
示、プリント出力)を作成することができる。As described above, according to the present invention,
Among the characters entered in the ruled line frame, when the non-starting-line character is located at the beginning of the line, replace the ruled line with the character code of the pattern in which the non-starting-line character is combined with the ruled line at the end of the previous line, or control the line processing Adds a code or non-starting character code or replaces the non-starting character code with a prohibition processing control code or non-starting character code, and outputs a pattern in which the non-starting character is combined with the ruled line at the end of the previous line. Since the configuration is adopted, it is possible to perform the prohibition on the beginning of a character string input in the ruled line frame. As a result, the document processing apparatus can perform the non-start-of-line character processing within the ruled line frame, and can create a high-quality document (display display, print output).
【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of one embodiment of the present invention.
【図2】本発明の禁則処理用パターン例である。FIG. 2 is an example of a prohibition processing pattern of the present invention.
【図3】本発明の動作説明フローチャートである。FIG. 3 is a flowchart for explaining the operation of the present invention.
【図4】本発明の他の実施例構成図である。FIG. 4 is a configuration diagram of another embodiment of the present invention.
【図5】本発明の他の動作説明フローチャートである。FIG. 5 is a flowchart for explaining another operation of the present invention.
【図6】本発明の合成部の機能説明図である。FIG. 6 is a functional explanatory diagram of a combining unit of the present invention.
【図7】本発明の文書データの構造例(その1)であ
る。FIG. 7 is a structural example (No. 1) of document data according to the present invention.
【図8】本発明の文書データの構造例(その2)であ
る。FIG. 8 is a structural example (2) of the document data of the present invention.
【図9】本発明の表示例である。FIG. 9 is a display example of the present invention.
【図10】従来の表示例である。FIG. 10 is a conventional display example.
1、11:キーボード 2、12:罫線枠内行頭禁則検出部 3、13:文書データ 4、14:ディスプレイ制御部 5、15:ディスプレイ用キャラクタジェネレータ 6、19:ディスプレイ 7:プリンタ制御部 8:プリンタ用キャラクタジェネレータ 9:プリンタ 16:禁則文字パターン一時記憶部 17:合成部 18:VRAM 1, 11: Keyboard 2, 12: Ruled-line-in-line-prohibition detecting section 3, 13: Document data 4, 14: Display control section 5, 15: Display character generator 6, 19: Display 7: Printer control section 8: Printer Character generator 9: printer 16: prohibited character pattern temporary storage unit 17: combining unit 18: VRAM
Claims (3)
行頭禁則文字処理方法において、 行頭禁則文字と罫線とを一緒にしたパターンを予め格納
するキャラクタジェネレータと、 罫線枠内に入力された文字が行頭禁則文字であって、か
つ行頭に位置すると検出したときに、当該行頭禁則文字
と前行の末尾の罫線とを一緒にしたパターンを表す文字
コードで末尾の罫線を置き換える罫線枠内行頭禁則検出
部(2)とを備え、 この罫線枠内行頭禁則検出部(2)が置き換えた文字コ
ードをもとに、出力時に上記キャラクタジェネレータか
ら取り出した行頭禁則文字と罫線を一緒にしたパターン
を出力するように構成したことを特徴とする罫線枠内の
行頭禁則文字処理方法。1. A non-starting character processing method for performing a prohibition process on a non-starting character in a ruled line frame. A character generator for pre-storing a pattern in which the non-starting character and the ruled line are combined, and a character generator input to the ruled line frame. When it is detected that a character is a non-starting character and is located at the beginning of a line, the end of the ruled line is replaced with a character code that represents a pattern that combines the non-starting character and the ruled line at the end of the previous line. It also has a prohibition detection unit (2), and based on the character code replaced by the inline prohibition detection unit (2) in the ruled line frame, a pattern combining the prohibited line start characters and the ruled line extracted from the character generator at the time of output is created. A method for processing non-starting characters in a ruled line frame, characterized by being configured to output.
行頭禁則文字処理方法において、 罫線枠内に入力された文字が行頭禁則文字であって、か
つ行頭に位置すると検出したときに前行の末尾の罫線
を、禁則処理制御コード、行頭禁則文字コードおよび罫
線コードに置き換え、 出力時に、禁則処理制御コードが現れたときに行頭禁則
文字コードのパターンと罫線コードのパターンとを合成
し、この合成後のパターンを出力するように構成したこ
とを特徴とする罫線枠内の行頭禁則文字処理方法。2. A non-start-of-line character processing method for performing a prohibition process on a non-start-of-line character in a ruled line frame, when a character entered in the ruled line frame is a start-of-line prohibited character and is located at the start of a line. Replaces the ruled line at the end of the line with the kinsoku process control code, kinsoku line character code, and ruled line code, and synthesizes the kinsoku line character code pattern and the ruled line code pattern when the kinsoku process control code appears during output, A method for processing a prohibited character at the beginning of a line in a ruled line frame, which is configured to output a pattern after the composition.
行頭禁則文字処理方法において、 罫線枠内に入力された文字が行頭禁則文字であって、か
つ行頭に位置すると検出したときに当該行頭禁則文字
を、禁則処理制御コードおよび当該行頭禁則文字コード
に置き換えた文字列とし、 出力時に、文字列の先頭から出力処理中に、禁則処理制
御コードが現れたときにこれに続く行頭禁則文字コード
のパターンと行の末尾の該当する罫線コードのパターン
とを合成し、この合成後のパターンを行の末尾の罫線の
位置に出力するように構成したことを特徴とする罫線枠
内の行頭禁則文字処理方法。3. A non-start-of-line character processing method for performing a prohibition process on a non-start-of-line character within a ruled line frame, when the character entered in the ruled line frame is a start-of-line prohibited character and is located at the start of the line. A non-breaking character is a character string in which the non-starting character is replaced with the non-breaking processing control code and the corresponding non-starting character code, and when the non-breaking processing control code appears during output processing from the beginning of the character string, the following non-starting character is continued. Prohibition of the beginning of a line in a ruled line frame, characterized in that the code pattern and the corresponding ruled line code pattern at the end of the line are combined and the combined pattern is output to the position of the ruled line at the end of the line. Character processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4076555A JP2695566B2 (en) | 1992-03-31 | 1992-03-31 | How to handle non-starting characters in ruled lines |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4076555A JP2695566B2 (en) | 1992-03-31 | 1992-03-31 | How to handle non-starting characters in ruled lines |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05282299A JPH05282299A (en) | 1993-10-29 |
| JP2695566B2 true JP2695566B2 (en) | 1997-12-24 |
Family
ID=13608507
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4076555A Expired - Lifetime JP2695566B2 (en) | 1992-03-31 | 1992-03-31 | How to handle non-starting characters in ruled lines |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2695566B2 (en) |
-
1992
- 1992-03-31 JP JP4076555A patent/JP2695566B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05282299A (en) | 1993-10-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0464314B2 (en) | ||
| JPH01174463A (en) | Dot pattern correction method | |
| JP2695566B2 (en) | How to handle non-starting characters in ruled lines | |
| JPH03129397A (en) | Document processor | |
| JPH07156447A (en) | Character generation device and character generation method | |
| EP0186746B1 (en) | An electronic word processing apparatus | |
| JPS605470B2 (en) | typesetting system | |
| JPH07141340A (en) | Document output method and document processing apparatus | |
| JPH01281963A (en) | Document processing device | |
| JPH0753453B2 (en) | Label printer | |
| JPH08153092A (en) | Document processing device | |
| JPH01229649A (en) | Printing method using vector font data | |
| JP3900647B2 (en) | Document processing device | |
| JPH0895963A (en) | Document processing device with ear print function | |
| JPS5822442A (en) | Word processor special symbol output method | |
| JP2010000642A (en) | Image forming apparatus and image forming program | |
| JPH11216926A (en) | Document printing device | |
| JPH0288262A (en) | manual scanning printer | |
| JPH11222216A (en) | Price tag creation printing device | |
| JPH0561858A (en) | Document format preparation system | |
| JPH079705A (en) | Method of printing designated page in one lump and apparatus thereof | |
| JPS63165919A (en) | Japanese word line printer | |
| JPH08286654A (en) | Character output device | |
| JPH03113498A (en) | Printer | |
| JPH09284533A (en) | Image forming device |