JPH0581233A - Character processing method - Google Patents

Character processing method

Info

Publication number
JPH0581233A
JPH0581233A JP3239136A JP23913691A JPH0581233A JP H0581233 A JPH0581233 A JP H0581233A JP 3239136 A JP3239136 A JP 3239136A JP 23913691 A JP23913691 A JP 23913691A JP H0581233 A JPH0581233 A JP H0581233A
Authority
JP
Japan
Prior art keywords
character code
code
character
kanji
output
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.)
Withdrawn
Application number
JP3239136A
Other languages
Japanese (ja)
Inventor
Akio Matsuda
明男 松田
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.)
Fujitsu Ltd
Fujitsu ACS Co Ltd
Original Assignee
Fujitsu Ltd
Fujitsu ACS 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 Fujitsu Ltd, Fujitsu ACS Co Ltd filed Critical Fujitsu Ltd
Priority to JP3239136A priority Critical patent/JPH0581233A/en
Publication of JPH0581233A publication Critical patent/JPH0581233A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】 【目的】 指定された文字列の位置にそのまま文字コ−
ドを重ね書きしても、読み出し時に、無意味な文字コ−
ドを発生しないようにする。 【構成】 漢字コ−ドであることを示す漢字フラグと、
漢字コ−ドの1バイト目の文字コ−ド又は2バイト目の
文字コ−ドを区別する前後フラグとを1バイト毎に文字
コ−ドに付加して記憶装置11に格納し、文字コ−ドを
記憶装置11から読み出して出力する際、空白文字コ−
ド出力判定部13は、該文字コ−ドと、隣接する2つの
文字コ−ドとに付加されている漢字フラグと前後フラグ
に基づいて出力しようとする文字コ−ドが無意味な文字
コ−ドであるか判定し、無意味であれば空白文字コ−ド
の出力を指示し、文字コ−ド変換部14は空白文字コ−
ドの出力が指示されていない場合には、文字コ−ドをそ
のまま出力し、空白文字コ−ドの出力が指示されている
場合には文字コ−ドを空白文字コ−ドに変換して出力す
る。
(57) [Summary] [Purpose] The character string is displayed as is at the specified character string position.
Even if you overwrite the code, the meaningless character
Do not generate dead. [Structure] A Kanji flag indicating that it is a Kanji code,
The character code of the first byte of the kanji code or the front and back flags for distinguishing the character code of the second byte are added to the character code for each byte and stored in the storage device 11. -When reading a code from the storage device 11 and outputting it, a blank character code-
The code output determination unit 13 determines that the character code to be output is meaningless based on the kanji flag and the preceding and following flags added to the character code and two adjacent character codes. -, It is instructed to output a blank character code, and the character code conversion unit 14 outputs a blank character code.
If the output of the character code is not instructed, the character code is output as it is.If the output of the blank character code is instructed, the character code is converted to the blank character code. Output.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文字処理方式に係わり、
特に1バイト文字コ−ドと2バイト漢字コ−ドを混在し
て処理する文字処理方式に関する。
The present invention relates to a character processing system,
In particular, the present invention relates to a character processing method for processing a mixture of 1-byte character code and 2-byte Kanji code.

【0002】[0002]

【従来の技術】日本等の漢字圏では、数字、アルファベ
ット等の1バイト文字コ−ドと2バイト漢字コ−ドを共
存させる必要があり、1バイト文字コ−ドと2バイト漢
字コ−ドを混在させて文字列を構成して表示装置やペ−
ジプリンタ等の文字記憶部に記憶している。
2. Description of the Related Art In a kanji area such as Japan, it is necessary to coexist with a 1-byte character code such as a number and an alphabet and a 2-byte kanji code, and a 1-byte character code and a 2-byte kanji code. Characters are mixed to form a character string and a display device or page is formed.
It is stored in a character storage unit such as a printer.

【0003】この文字記憶部に記憶されている文字列に
対して新たな文字コ−ドを重ね書きする時、2バイト漢
字コ−ドに着目すると、前1バイトのみ、又は後1バイ
トのみが書き換わる場合がある。かかる場合、書き換わ
らずに残った漢字コ−ドの後1バイト、又は前1バイト
の文字コ−ドは全く無意味なコ−ドとなり、文字表示あ
るいは印刷時に間違った文字が表示されたり、印刷され
てしまう問題がある。
When a new character code is overwritten on a character string stored in the character storage unit, focusing on the 2-byte Kanji code, only the previous 1 byte or only the subsequent 1 byte is written. It may be rewritten. In such a case, the 1-byte character code or the 1-byte character code that remains without being rewritten becomes a meaningless code, and the wrong character may be displayed during character display or printing. There is a problem that it is printed.

【0004】このため、従来は、重ね書きを行なう前
に、文字記憶部から文字コ−ドを読出し、重ね書きした
場合に無意味な文字コ−ドが含まれるか判断し、含まれ
る場合には、重ね書きと共に該無意味となる文字コ−ド
を空白文字コ−ドに置き換える処理を行なっている。
Therefore, conventionally, before performing overwriting, the character code is read from the character storage unit, and it is judged whether or not a meaningless character code is included when the overwriting is performed. Performs overwriting and replaces the meaningless character code with a blank character code.

【0005】図6は従来の重ね書き処理の説明図であ
り、重ね書き前は、文字コ-ド記憶部1及びディスプレ
イ画面2には図6(a)に示す内容が記憶され、かつ表示
されている。ここで、漢字フラグは1バイトの文字コ−
ドに付加されており、2個の連続したオンの漢字フラグ
によって示される2バイトの文字コ−ドが1つの2バイ
ト漢字コ−ドを示すようになっている。
FIG. 6 is an explanatory diagram of a conventional overwriting process. Before overwriting, the contents shown in FIG. 6 (a) are stored and displayed in the character code storage unit 1 and the display screen 2. ing. Here, the Kanji flag is a 1-byte character
A 2-byte character code indicated by two consecutive ON-character flags is added to the code to indicate one 2-byte Kanji code.

【0006】かかる状態で、文字コ−ド記憶部1に対し
て、例えばアドレス1Hに1バイトの文字コ−ド「43
H」(アルファベットCの文字コ−ド)を重ね書きする
と、図6(b)に示すようになる。この場合、アドレス2
Hは漢字フラグがオンであるが、続くアドレス3Hは1
バイト文字コ−ド(漢字フラグがオフ)であるため、ア
ドレス2Hの内容mnH(文字コ−ド)は意味を持た
ず、表示は誤ったものになる。
In this state, the character code storage unit 1 stores, for example, a 1-byte character code "43" at address 1H.
When "H" (character code of alphabet C) is overwritten, it becomes as shown in FIG. 6 (b). In this case, address 2
H has the Kanji flag turned on, but the following address 3H is 1
Since it is a byte character code (Kanji flag is off), the content mnH (character code) of address 2H has no meaning and the display is incorrect.

【0007】そこで、従来は、アドレス1Hに1バイト
文字コ−ド「43H」を重ね書きする前に、アドレス1
H,2Hが2バイト漢字コ−ドであるか判定し、漢字コ
-ドの場合には、図6(c)に示すようにアドレス1Hに1
バイト文字コ−ド「43H」を重ね書きすると共に、ア
ドレス2Hに1バイトの空白文字コ−ド「20H」を追
加して重ね書きする。このようにすれば、アドレス2H
に対応するディスプレイ画面の表示位置には空白が挿入
され、誤った表示が行なわれない。
Therefore, conventionally, before overwriting the 1-byte character code "43H" on the address 1H, the address 1H
Judge whether H or 2H is a 2-byte kanji code and
-In the case of C, 1 in address 1H as shown in FIG. 6 (c)
A byte character code "43H" is overwritten, and a 1-byte blank character code "20H" is added to the address 2H and overwritten. By doing this, address 2H
A blank is inserted at the display position of the display screen corresponding to, and incorrect display is not performed.

【0008】図7は以上の重ね書きを実現するディスプ
レイ装置の構成図であり、1は文字コ−ド記憶部、2は
CRT等のディスプレイ画面、3は重ね書き処理を実行
するマイコン構成のディスプレイ制御部、4は1画面分
の文字画像を記憶するビデオメモリ(画面メモリ)であ
る。
FIG. 7 is a block diagram of a display device that realizes the above-mentioned overwriting. Reference numeral 1 is a character code storage unit, 2 is a display screen of a CRT or the like, and 3 is a microcomputer-structured display for executing the overwriting process. The control unit 4 is a video memory (screen memory) that stores a character image for one screen.

【0009】[0009]

【発明が解決しようとする課題】しかし、従来方式では
重ね書き前に文字コ−ド記憶部から文字コ−ドを読出す
処理、重ね書きにより無意味な文字コ−ドが発生するか
の判定処理、及び判定結果に応じて重ね書きする文字列
への空白文字コ−ドの追加処理を必要とする。このた
め、重ね書き処理が複雑となると共に、高速に重ね書き
ができない問題があった。
However, in the conventional method, the process of reading the character code from the character code storage unit before the overwriting, and the determination of whether a meaningless character code occurs due to the overwriting. The processing and the processing of adding a blank character code to the character string to be overwritten according to the determination result are required. Therefore, there is a problem that the overwriting process becomes complicated and the overwriting cannot be performed at high speed.

【0010】以上から本発明の目的は、重ね書きに先立
って、文字コ−ドの読出し、重ね書き結果の判定、及び
判定結果に応じた空白文字コ−ドの追加処理を必要とし
ない文字処理方式を提供することである。本発明の別の
目的は、指定された文字列の位置にそのまま文字コ−ド
を重ね書きしても、読み出し時に、無意味な文字コ−ド
を発生しないようにできる文字処理方式を提供すること
である。本発明の更に別の目的は、簡単に、かつ高速に
重ね書きができる文字処理方式を提供することである。
From the above, an object of the present invention is to perform character processing which does not require reading of character code, judgment of the result of overwriting, and addition of a blank character code according to the judgment result prior to overwriting. It is to provide a method. Another object of the present invention is to provide a character processing method capable of preventing a meaningless character code from being generated at the time of reading even if a character code is overwritten at a position of a designated character string as it is. That is. Still another object of the present invention is to provide a character processing system that allows overwriting easily and at high speed.

【0011】[0011]

【課題を解決するための手段】図1は本発明の原理説明
図である。11は1バイト文字コ−ドと2バイト漢字コ
−ドを混在して記憶する記憶装置、11a-1は文字コ−ド
を記憶する文字コ−ドメモリ、11a-2は文字コ−ドに付
した漢字フラグを記憶する漢字フラグメモリ、11a-3は
漢字コ−ドの1バイト目又は2バイト目を区別するため
の前後フラグを記憶する前後フラグメモリ、12は1バ
イトの空白文字コ−ド発生部、13は出力すべき文字コ
−ドが無意味な文字コ−ドであるか判定し、無意味な文
字コ−ドであれば空白文字コ−ドの出力を指示する空白
文字コ−ド出力判定部、14は空白文字コ−ド出力判定
部からの指示に従って記憶装置11から読出した文字コ
−ドをそのまま出力し、あるいは、空白文字コ−ドに置
き換えて出力する文字コ−ド変換部である。
FIG. 1 illustrates the principle of the present invention. Reference numeral 11 is a storage device for storing a mixture of 1-byte character code and 2-byte kanji code, 11a-1 is a character code memory for storing a character code, and 11a-2 is a character code. 11a-3 is a front-back flag memory for storing the front-back flag for distinguishing the first byte or the second byte of the kanji code, and 12a is a 1-byte blank character code. The generation unit 13 determines whether the character code to be output is a meaningless character code, and if it is a meaningless character code, a blank character code for instructing the output of a blank character code. A code output determination unit 14 outputs a character code read from the storage device 11 as it is according to an instruction from the blank character code output determination unit, or a character code output by replacing it with a blank character code. It is a conversion unit.

【0012】[0012]

【作用】漢字コ−ドであることを示す漢字フラグと、漢
字コ−ドの1バイト目の文字コ−ド又は2バイト目の文
字コ−ドを区別するための前後フラグとを1バイト毎に
文字コ−ドに付加して記憶装置11に格納し、1バイト
毎に文字コ−ドを記憶装置11から読み出して出力する
際、空白文字コ−ド出力判定部13は、該文字コ−ドと
隣接する2つの文字コ−ドのそれぞれに付加されている
漢字フラグと前後フラグに基づいて出力しようとする文
字コ−ドが無意味な文字コ−ドであるか判定し、無意味
であれば空白文字コ−ドの出力を指示し、文字コ−ド変
換部14は空白文字コ−ドの出力が指示されていない場
合には、記憶装置11から読出した文字コ−ドをそのま
ま出力し、空白文字コ−ドの出力が指示されている場合
には文字コ−ドを空白文字コ−ドに変換して出力する。
Operation: A Kanji flag indicating that it is a Kanji code and a front and back flag for distinguishing the character code of the first byte or the character code of the second byte of the Kanji code are provided for each byte. When the character code is read from the memory device 11 and output for each byte, the blank character code output determination unit 13 causes the character code to be added to the character code. It is determined whether the character code to be output is a meaningless character code based on the Kanji flag and the preceding and succeeding flags added to each of the two character codes adjacent to the code, and it is meaningless. If there is, the blank character code is instructed to be output. If the blank character code output is not instructed, the character code conversion unit 14 outputs the character code read from the storage device 11 as it is. However, if output of a blank character code is instructed, enter the character code. White character code - the output is converted to de.

【0013】このように、記憶装置から文字コ−ドを読
み出して出力する際に、読み出し対象の文字コ−ドが無
意味なものでるあるか否かを判断し、無意味であれば空
白文字コ−ドに置き換えて出力し、無意味でなければそ
のまま出力するようにしたから、重ね書きに際して、な
にも考慮することなく指定された文字列の位置にそのま
ま文字コ−ドを重ね書きすることができ、しかも、読み
出し時に無意味な文字コ−ドを発生しないようにでき
る。すなわち、従来方式において必要とされている、重
ね書きに先立つ文字コ−ドの読出し、重ね書き結果の判
定、及び判定結果に応じた空白文字コ−ドの追加処理が
不要であり、簡単に、かつ高速に重ね書きができる。
又、無意味であるか否かの判定を論理回路でハ−ド的に
行なうようにでき、読み出し速度が低下することもな
い。
As described above, when the character code is read from the storage device and output, it is determined whether or not the character code to be read is meaningless. It is output by replacing it with a code, and if it is meaningless, it is output as it is, so when overwriting, the character code is overwritten as it is at the specified character string position without considering anything. In addition, it is possible to prevent a meaningless character code from being generated at the time of reading. That is, the reading of the character code prior to overwriting, the judgment of the overwriting result, and the additional processing of the blank character code according to the judgment result, which are required in the conventional method, are unnecessary, and simply, And it is possible to overwrite at high speed.
Further, it is possible to make a judgment whether or not it is meaningless in a hard manner by a logic circuit, and the reading speed does not decrease.

【0014】[0014]

【実施例】全体の構成 図2は本発明の実施例構成図であり、図1と同一部分に
は同一符号を付している。図中、11は1バイト文字コ
−ドと2バイト漢字コ−ドを混在して記憶する記憶装置
であり、文字コ−ド記憶部11aと、書き込みアドレス
と読出しアドレスを切り換える切換回路11bと、読み
出しアドレスを順次発生する読み出しアドレスカウンタ
11cを有している。
EXAMPLES In the overall configuration diagram 2 is an embodiment diagram of the present invention, it is denoted by the same reference numerals as in FIG. 1. In the figure, reference numeral 11 is a storage device for storing a 1-byte character code and a 2-byte kanji code in a mixed manner, a character code storage section 11a, and a switching circuit 11b for switching between a write address and a read address. It has a read address counter 11c that sequentially generates read addresses.

【0015】文字コ−ド記憶部11aには、1バイト文
字コ−ドと2バイト漢字コ−ドを記憶(漢字コ−ドは2
つの1バイト文字コ−ドに分割して記憶)する文字コ−
ドメモリ11a-1と、1バイトの各文字コ−ドに付した漢
字フラグを記憶する漢字フラグメモリ11a-2と、漢字コ
−ドの1バイト目の文字コ−ドであるか又は2バイト目
の文字コ−ドであるかを区別するための前後フラグを記
憶する前後フラグメモリ11a-3が設けられている。
The character code storage unit 11a stores a 1-byte character code and a 2-byte Kanji code (Kanji code is 2
Character code to be divided into one 1-byte character code and stored)
A memory 11a-1 and a Kanji flag memory 11a-2 for storing a Kanji flag attached to each 1-byte character code, and the first or second character code of the Kanji code. A front / rear flag memory 11a-3 for storing a front / rear flag for distinguishing whether the character code is a character code is provided.

【0016】文字コ−ドと漢字フラグと前後フラグの関
係は図3に示すように、(1) 数字、アルファベット等の
1バイト文字コ−ドの場合には、漢字フラグはオフ(”
0”)、前後フラグは任意(ドントケア)、(2) 2バイ
ト漢字コ−ドの1文字目(前の1バイト文字コ−ド)の
場合には、漢字フラグ及び前後フラグは共にオン(”
1”)、(3) 2バイト漢字コ−ドの2文字目(後の1バ
イト文字コ−ド)の場合には、漢字フラグはオン(”
1”)、前後フラグはオフ(”0”)となっている。
The relationship between the character code, the kanji flag and the front and back flags is as shown in FIG. 3. (1) In the case of a 1-byte character code such as a numeral or alphabet, the kanji flag is off ("
0 "), the front and back flags are optional (don't care), (2) In the case of the first character of the 2-byte Kanji code (the previous 1-byte character code), both the Kanji flag and the front and back flags are turned on ("
1 "), (3) In the case of the second character of the 2-byte Kanji code (later 1-byte character code), the Kanji flag is on ("
1 ") and the front and rear flags are off (" 0 ").

【0017】12は1バイトの空白文字コ−ドを発生す
る空白文字コ−ド発生部、13は出力すべき文字コ−ド
が無意味な文字コ−ドであるか判定し、無意味な文字コ
−ドであれば空白文字コ−ドの出力を指示する空白文字
コ−ド出力判定部、14は空白文字コ−ド出力判定部か
らの指示に従って記憶装置11から読出した文字コ−ド
をそのまま出力し、あるいは、空白文字コ−ドを出力す
る文字コ−ド変換部、15は文字コ−ドメモリ11a-1か
ら読み出された最新の2つの文字コ−ドを記憶する2段
のシフトレジスタ構成のバッファ部である。
Reference numeral 12 denotes a blank character code generation unit for generating a 1-byte blank character code, and reference numeral 13 determines whether the character code to be output is a meaningless character code. If it is a character code, a blank character code output determination unit for instructing the output of a blank character code, and 14 is a character code read from the storage device 11 according to an instruction from the blank character code output determination unit. Is output as it is, or a blank character code is output. A character code conversion unit 15 is a two-stage storing two latest character codes read from the character code memory 11a-1. It is a buffer unit having a shift register configuration.

【0018】空白文字コ−ド出力判定部 空白文字コ−ド出力判定部13は、読み出し対象となっ
ている1バイトの文字コ−ドのアドレスをnとすると、
アドレスn及びその前後のアドレスn−1,n+1(隣
接する3つのアドレス)に記憶されている文字コ−ドの
漢字フラグと前後フラグを記憶する3段のラッチ回路部
13aと、アドレスn−1,n,n+1に記憶されてい
る文字コ−ドの漢字フラグと前後フラグとに基づいて出
力すべきアドレスnの文字コ−ドが無意味な文字コ−ド
であるか判定し、無意味であれば空白文字コ−ドの出力
を指示する判定部13bを備えている。
Blank character code output determination unit The blank character code output determination unit 13 sets the address of the 1-byte character code to be read as n,
A three-stage latch circuit section 13a for storing the Kanji flag and the preceding and following flags of the character code stored at the address n and the addresses n-1 and n + 1 (three adjacent addresses) before and after the address n, and the address n-1 , N, n + 1, it is determined whether the character code of the address n to be output is a meaningless character code based on the Kanji flag and the preceding and succeeding flags of the character code, and it is meaningless. If there is, a judgment section 13b for instructing the output of the blank character code is provided.

【0019】ラッチ回路部13aにおいて、FF11,
FF12はアドレスn−1の漢字フラグと前後フラグを
それぞれ記憶するラッチ回路、FF21,FF22はア
ドレスnの漢字フラグと前後フラグをそれぞれ記憶する
ラッチ回路、FF31,FF32はアドレスn+1の漢
字フラグと前後フラグをそれぞれ記憶するラッチ回路で
あり、新たな漢字フラグ及び前後フラグがメモリから読
み出される毎に各ラッチ回路の内容は順次右側にシフト
するようになっている。
In the latch circuit section 13a, the FF11,
FF12 is a latch circuit that stores the Kanji flag and the previous / next flag of the address n-1, FF21 and FF22 are latch circuits that store the Kanji flag and the previous / next flag of the address n, respectively, and FF31 and FF32 are the Kanji flag and the previous / next flag of the address n + 1. Are stored in the latch circuit, and the contents of each latch circuit are sequentially shifted to the right every time a new Kanji flag and a previous / next flag are read from the memory.

【0020】判定部13bは、いくつかの論理ゲ−ト13
b-1〜13b-4で構成されており、図4に示す空白文字出力
条件(後述)を満たせばロ−レベルの空白文字イネ−ブ
ル信号*BCIを出力し、満たさない場合には該信号*
BCIをハイレベルにする。尚、13b-1、13b-2は1つの
否定入力を備えたアンドゲ−ト、13b-3はノットゲ−
ト、13b-4はオアゲ−トである。
The judging section 13b includes a number of logic gates 13
b-1 to 13b-4, a low level blank character enable signal * BCI is output if the blank character output condition (described later) shown in FIG. 4 is satisfied, and if it is not satisfied, the blank character enable signal * BCI is output. *
Bring BCI high. 13b-1 and 13b-2 are AND gates with one negative input, and 13b-3 are NOT gates.
13b-4 is ogate.

【0021】文字コ−ド変換部 文字コ−ド変換部14は、1ビットにつき、1つの否定
入力を備えたアンドゲ−ト14aと、アンドゲ−ト14
bと、オアゲ−ト14cを有し、図示しないが実際には
1バイト分(8ビット分)設けられている。文字コ−ド
変換部14は、空白文字イネ−ブル信号*BCIがハイ
レベルの場合には、バッファ部15に記憶されているア
ドレスnの文字コ−ドをそのまま出力し、空白文字イネ
−ブル信号*BCIがロ−レベルの場合にはアドレスn
の文字コ−ドを空白文字コ−ドに置き換えて出力するよ
うになっている。
Character code conversion unit The character code conversion unit 14 includes an AND gate 14a having one negative input for each bit and an AND gate 14a.
Although it is not shown in the figure, it is provided for 1 byte (8 bits) in practice. When the blank character enable signal * BCI is at a high level, the character code conversion unit 14 outputs the character code of the address n stored in the buffer unit 15 as it is, and the blank character enable signal is output. Address n when signal * BCI is low level
The character code of is replaced with a blank character code for output.

【0022】空白文字出力条件 読み出し対象となっている文字コ−ドをそのまま出力す
るか、空白文字コ−ドにして出力するかの判定は図4に
従って行なわれる。尚、読み出し対象となっている1バ
イトの文字コ−ドのアドレスをn、その前後のアドレス
をn−1,n+1とする。
Blank Character Output Condition It is determined according to FIG. 4 whether the character code to be read is output as it is or is output as a blank character code. The address of the 1-byte character code to be read is n, and the addresses before and after it are n-1 and n + 1.

【0023】(1) アドレスnの漢字フラグと前後フラグ
が共にオンで、アドレスn+1の漢字フラグと前後フラ
グが共にオンの場合には、アドレスnの文字コ−ドを空
白文字コ−ドに置き換えて出力する。これは、図5(a)
に示すように、最初アドレスn,n+1に2バイト漢字
コ−ドが記憶されている状態において、アドレスn+
1,n+2に別の2バイト漢字コ−ド(点線)が重ね書
きされた状態であり、かかる状態では、アドレスnの文
字コ−ドは無意味なものとなる。従って、アドレスnの
文字コ−ドは空白文字コ−ドに置き換えて出力する。
(1) If both the Kanji flag and the before / after flag of the address n are on and both the Kanji flag and the before / after flag of the address n + 1 are on, the character code at the address n is replaced with a blank character code. Output. This is shown in Figure 5 (a).
As shown in FIG. 2, when the 2-byte Kanji code is stored in the first addresses n and n + 1, the address n +
In this state, another 2-byte Kanji code (dotted line) is overwritten on 1, n + 2. In such a state, the character code of address n becomes meaningless. Therefore, the character code of the address n is replaced with the blank character code for output.

【0024】(2) アドレスnの漢字フラグと前後フラグ
が共にオンで、アドレスn+1の漢字フラグがオフの場
合には、アドレスnの文字コ−ドを空白文字コ−ドに置
き換えて出力する。これは、図5(b)に示すように、最
初アドレスn,n+1に2バイト漢字コ−ドが記憶され
ている状態において、アドレスn+1に1バイト文字コ
−ド(点線)が重ね書きされた状態であり、かかる状態
では、アドレスnの文字コ−ドは無意味なものとなる。
従って、アドレスnの文字コ−ドは空白文字コ−ドに置
き換えて出力する。
(2) When both the kanji flag of address n and the preceding and following flags are on and the kanji flag of address n + 1 is off, the character code of address n is replaced with a blank character code and output. As shown in FIG. 5 (b), the 1-byte character code (dotted line) is overwritten at the address n + 1 in the state where the 2-byte Kanji code is initially stored at the addresses n and n + 1. In this state, the character code of the address n becomes meaningless.
Therefore, the character code of the address n is replaced with the blank character code for output.

【0025】(3) アドレスnの漢字フラグと前後フラグ
が共にオンで、アドレスn+1の漢字フラグがオン、前
後フラグがオフの場合には、アドレスnの文字コ−ドを
そのまま出力する。これは、図5(c)に示すように、ア
ドレスn,n+1に2バイト漢字コ−ドが記憶されてい
る状態であり、アドレスnの文字コ−ドは2バイト漢字
コ−ドの1番目の文字コ−ドである。従って、アドレス
nの文字コ−ドはそのまま出力する。
(3) When both the Kanji flag and the before and after flag of the address n are on, the Kanji flag of the address n + 1 is on and the before and after flag is off, the character code of the address n is output as it is. This is a state in which a 2-byte Kanji code is stored at addresses n and n + 1 as shown in FIG. 5C, and the character code at address n is the first of the 2-byte Kanji code. Is the character code. Therefore, the character code of the address n is output as it is.

【0026】(4) アドレスnの漢字フラグがオフの場合
には、アドレスnの文字コ−ドをそのまま出力する。こ
れは、図5(d)に示すように、アドレスnに1バイト文
字コ−ドが記憶されている状態であり、従って、アドレ
スnの文字コ−ドはそのまま出力する。
(4) When the kanji flag of address n is off, the character code of address n is output as it is. This is a state in which a 1-byte character code is stored in the address n, as shown in FIG. 5 (d). Therefore, the character code of the address n is output as it is.

【0027】(5) アドレスn−1の漢字フラグと前後フ
ラグが共にオンで、アドレスnの漢字フラグがオン、前
後フラグがオフの場合には、アドレスnの文字コ−ドを
そのまま出力する。これは、図5(e)に示すように、ア
ドレスn−1,nに2バイト漢字コ−ドが記憶されてい
る状態であり、アドレスnの文字コ−ドは2バイト漢字
コ−ドの2番目の文字コ−ドである。従って、アドレス
nの文字コ−ドはそのまま出力する。
(5) When both the kanji character flag and the before and after flag of the address n-1 are on, the kanji flag of the address n is on, and the before and after flag is off, the character code of the address n is output as it is. As shown in FIG. 5 (e), this is a state in which a 2-byte Kanji code is stored at addresses n-1 and n, and the character code at address n is a 2-byte Kanji code. It is the second character code. Therefore, the character code of the address n is output as it is.

【0028】(6) アドレスn−1の漢字フラグがオフ
で、アドレスnの漢字フラグがオン、前後フラグがオフ
の場合には、アドレスnの文字コ−ドを空白文字コ−ド
に置き換えて出力する。これは、図5(f)に示すよう
に、最初アドレスn−1,nに2バイト漢字コ−ドが記
憶されている状態において、アドレスn−1に1バイト
文字コ−ド(点線)が重ね書きされた状態であり、かか
る状態では、アドレスnの文字コ−ドは無意味なものと
なる。従って、アドレスnの文字コ−ドは空白文字コ−
ドに置き換えて出力する。
(6) If the kanji flag of address n-1 is off, the kanji flag of address n is on, and the front and back flags are off, replace the character code of address n with a blank character code. Output. As shown in FIG. 5 (f), when a 2-byte Kanji code is initially stored at addresses n-1 and n, a 1-byte character code (dotted line) is stored at address n-1. It is in the state of being overwritten, and in such a state, the character code of the address n becomes meaningless. Therefore, the character code of address n is a blank character code.
Replace with the output.

【0029】(7) アドレスn−1の漢字フラグがオン、
前後フラグがオフで、アドレスnの漢字フラグがオン、
前後フラグがオフの場合には、アドレスnの文字コ−ド
を空白文字コ−ドに置き換えて出力する。これは、図5
(g)に示すように、最初アドレスn−1,nに2バイト
漢字コ−ドが記憶されている状態において、アドレスn
−2,n−1に別の2バイト漢字コ−ド(点線)が重ね
書きされた状態であり、かかる状態では、アドレスnの
文字コ−ドは無意味なものとなる。従って、アドレスn
の文字コ−ドは空白文字コ−ドに置き換えて出力する。
(7) The kanji flag of address n-1 is turned on,
The front and back flags are off, the kanji flag at address n is on,
When the front-back flag is off, the character code of the address n is replaced with a blank character code and output. This is
As shown in (g), when the 2-byte Kanji code is initially stored in the addresses n-1 and n, the address n
In this state, another 2-byte Kanji code (dotted line) is overwritten on -2 and n-1. In such a state, the character code of the address n becomes meaningless. Therefore, the address n
The character code of is replaced with a blank character code and output.

【0030】以上から、図2の判定部13bは、上記
(3),(4),(5)の条件が満たされている場合には、ハイレ
ベルの空白文字イネ−ブル信号*BCIを出力し、(3),
(4),(5)の条件が満たされていない場合には、換言すれ
ば、上記(1),(2),(6),(7)の条件が満たされている場合
には、ロ−レベルの空白文字イネ−ブル信号*BCIを
出力するように構成されている。すなわち、アンドゲ−
ト13b-1の出力は条件(5)が満たされた時にハイレベルと
なり、アンドゲ−ト13b-2の出力は条件(3)が満たされた
時にハイレベルとなり、ノットゲ−ト13b-3の出力は条
件(4)が満たされた時にハイレベルとなるように構成さ
れている。
From the above, the determination unit 13b in FIG.
When the conditions (3), (4), and (5) are satisfied, a high-level blank character enable signal * BCI is output, and (3),
When the conditions (4) and (5) are not satisfied, in other words, when the conditions (1), (2), (6) and (7) above are satisfied, the It is configured to output a -level blank character enable signal * BCI. That is, Andge
The output of the gate 13b-1 becomes high level when the condition (5) is satisfied, the output of the and gate 13b-2 becomes high level when the condition (3) is satisfied, and the output of the not gate 13b-3. Is configured to go high when condition (4) is met.

【0031】全体の動作 (a) 重ね書き動作 文字コ−ド記憶部11aの所定の位置に文字コ−ドを重
ね書きする場合には、記憶装置11に重ね書き位置を示
す書き込みアドレスと、重ね書きする文字コ−ドと、該
文字コ−ドの漢字フラグと前後フラグとを入力し、書き
込みアドレスが示す文字コ−ドメモリ11a-1、漢字フラ
グメモリ11a-2、前後フラグメモリ11a-3の位置に文字コ
−ド、漢字フラグ、前後フラグをそれぞれ記憶する。
Overall operation (a) Overwriting operation When a character code is overwritten at a predetermined position of the character code storage unit 11a, a writing address indicating the overwriting position in the storage device 11 and an overwriting operation are performed. Input the character code to be written, the Kanji flag and the previous / next flag of the character code, and enter the character code memory 11a-1, the Kanji flag memory 11a-2, and the previous / next flag memory 11a-3 indicated by the write address. The character code, the kanji flag, and the preceding and following flags are stored in the position.

【0032】(b) 読み出し動作 記憶装置11からアドレスnの文字コ−ドを読み出して
出力する場合、アドレスn−1,n,n+1の文字コ−
ドに付した漢字フラグと前後フラグを、漢字フラグメモ
リ11a-2,前後フラグメモリ11a-3からそれぞれ読み出し
てラッチ回路部13aに記憶すると共に、文字コ−ドメ
モリ11a-1からアドレスn,n+1の文字コ−ドを読み
出してバッファ部15に記憶する。
(B) Read operation When the character code at address n is read from the storage device 11 and output, the character code at addresses n-1, n, n + 1 is read.
The Kanji flag and the before / after flag attached to the code are read from the Kanji flag memory 11a-2 and the before / after flag memory 11a-3 and stored in the latch circuit section 13a, and at the same time, from the character code memory 11a-1 at addresses n and n + 1. The character code is read and stored in the buffer unit 15.

【0033】尚、ラッチ回路部13aは、新たな漢字フ
ラグ及び前後フラグがメモリ11a-2,11a-3から読み出さ
れる毎に各ラッチ回路FF11〜FF32の内容を順次
右側にシフトし、最新の3つの隣接するアドレスの漢字
フラグ及び前後フラグを記憶するようになっている。
又、バッファ部15は文字コ−ドが文字コ−ドメモリ11
a-1からが読み出される毎に右側にシフトしながら最新
の2つの文字コ−ドを記憶するようになっている。
The latch circuit section 13a sequentially shifts the contents of the latch circuits FF11 to FF32 to the right every time a new Kanji flag and front and rear flags are read from the memories 11a-2 and 11a-3, and the latest 3 The Kanji flag and the preceding and following flags of two adjacent addresses are stored.
In the buffer section 15, the character code is stored in the character code memory 11
The latest two character codes are stored while shifting to the right every time a-1 is read.

【0034】従って、ラッチ回路部13aにアドレスn
−2,n−1,nの各フラグが、バッファ部15にアド
レスn−1,nの文字コ−ドが記憶されている状態にお
いて、アドレスn+1の文字コ−ド、漢字フラグ、前後
フラグを文字コ−ド記憶部11aから読み出せば、アド
レスn−1,n,n+1の漢字フラグと前後フラグがラ
ッチ回路部13aに記憶され、バッファ部15にアドレ
スn,n+1の文字コ−ドが記憶される。
Therefore, the address n is input to the latch circuit section 13a.
In the state where the character code at address n-1, n is stored in the buffer section 15, the respective flag of -2, n-1, n are set to the character code at address n + 1, the kanji flag, and the previous / next flag. When read from the character code storage unit 11a, the Kanji flag at addresses n-1, n, n + 1 and the preceding and succeeding flags are stored in the latch circuit unit 13a, and the buffer unit 15 stores the character code at addresses n, n + 1. To be done.

【0035】かかる状態で、空白文字コ−ド出力判定部
13の判定部13bは、ラッチ回路部13aに読み出し
てある隣接する3つのアドレスの漢字フラグと前後フラ
グを入力され、アドレスnの文字コ−ドをそのまま出力
する条件(3)〜(5)が満たされている場合には、空白文字
イネ−ブル信号*BCIをハイレベルにし、満たされて
いない場合には空白文字イネ−ブル信号*BCIをロ−
レベルにする。
In this state, the determination unit 13b of the blank character code output determination unit 13 receives the Kanji character flags and the preceding and succeeding flags of the three adjacent addresses read by the latch circuit unit 13a, and the character code of the address n is input. -If the conditions (3) to (5) for outputting the output as it is are satisfied, the blank character enable signal * BCI is set to the high level, and if not satisfied, the blank character enable signal * BCI is output. BCI low
To level.

【0036】文字コ−ド変換部14は空白文字イネ−ブ
ル信号*BCIがハイレベルの場合には、すなわち、空
白文字コ−ドの出力が指示されていない場合には、文字
コ−ドメモリ11a-1からバッファ部15に読出してある
アドレスnの文字コ−ドをそのまま出力し、空白文字イ
ネ−ブル信号*BCIがロ−レベルの場合には、すなわ
ち、空白文字コ−ドの出力が指示されている場合には文
字コ−ドを空白文字コ−ドに置き換えて出力する。
When the blank character enable signal * BCI is at a high level, that is, when the blank character code output is not instructed, the character code conversion unit 14 outputs the character code memory 11a. -1 outputs the character code of the address n read to the buffer unit 15 as it is, and when the blank character enable signal * BCI is low level, that is, the output of the blank character code is instructed. If so, the character code is replaced with a blank character code and output.

【0037】以後、次のアドレスn+2の文字コ−ド、
漢字フラグ、前後フラグを文字記憶部11aから読み出
してバッファ部15、ラッチ回路部13aにシフトしな
がら記憶し、前記と同様の処理を行なってアドレスn+
1の文字コ−ドをそのまま出力するか、あるいは空白文
字コ−ドに置き換えて出力する。そして、以後、順次同
様に文字コ−ドを出力する。
Thereafter, the character code of the next address n + 2,
The Kanji flag and the preceding and following flags are read from the character storage unit 11a and stored in the buffer unit 15 and the latch circuit unit 13a while being shifted, and the same processing as above is performed to perform the address n +.
The character code of 1 is output as it is, or is replaced with a blank character code and output. Then, thereafter, character codes are sequentially output in the same manner.

【0038】以上、本発明を実施例により説明したが、
本発明は請求の範囲に記載した本発明の主旨に従い種々
の変形が可能であり、本発明はこれらを排除するもので
はない。
The present invention has been described above with reference to the embodiments.
The present invention can be variously modified according to the gist of the present invention described in the claims, and the present invention does not exclude these modifications.

【0039】[0039]

【発明の効果】以上本発明によれば、記憶装置から文字
コ−ドを読み出して出力する際に、読み出し対象の文字
コ−ドが無意味なものでるあるか否かを判断し、無意味
であれば空白文字コ−ドに置き換えて出力し、無意味で
なければそのまま出力するようにしたから、重ね書きに
際して、なにも考慮することなく指定された文字列の位
置にそのまま文字コ−ドを重ね書きすることができ、し
かも、読み出し時に無意味な文字コ−ドを発生しないよ
うにできる。従って、本発明によれば、重ね書きに先立
つ文字コ−ドの読出し、重ね書き結果の判定、及び判定
結果に応じた空白文字コ−ドの追加処理が不要となり、
簡単に、かつ高速に重ね書きができる。
As described above, according to the present invention, when a character code is read from a storage device and output, it is determined whether or not the character code to be read is meaningless and meaningless. If so, it is output by replacing it with a blank character code, and if it is meaningless, it is output as it is. The characters can be overwritten, and in addition, meaningless character codes can be prevented from being generated at the time of reading. Therefore, according to the present invention, the reading of the character code prior to the overwriting, the judgment of the overwriting result, and the additional processing of the blank character code according to the judgment result are unnecessary.
Overwriting can be done easily and at high speed.

【0040】又、本発明によれば、無意味であるか否か
の判定を論理回路でハ−ド的に高速に行なうようにで
き、読み出し速度が低下することもない。
Further, according to the present invention, it can be determined whether or not it is meaningless by a logic circuit at a high speed in a hardware manner, and the reading speed is not lowered.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の実施例構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.

【図3】文字コ−ド、漢字フラグ、前後フラグの関係図
表である。
FIG. 3 is a relationship chart of a character code, a Kanji flag, and a front-back flag.

【図4】空白文字出力条件説明図表である。FIG. 4 is a chart for explaining blank character output conditions.

【図5】空白文字出力条件説明図である。FIG. 5 is an explanatory diagram of blank character output conditions.

【図6】従来の重ね書き処理の説明図である。FIG. 6 is an explanatory diagram of conventional overwrite processing.

【図7】ディスプレイ装置の構成図である。FIG. 7 is a configuration diagram of a display device.

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

11・・記憶装置 11a-1・・文字コ−ドメモリ 11a-2・・漢字フラグメモリ 11a-3・・前後フラグメモリ 12・・空白文字コ−ド発生部 13・・空白文字コ−ド出力判定部 14・・文字コ−ド変換部 11-Storage device 11a-1-Character code memory 11a-2-Kanji flag memory 11a-3-Previous flag memory 12-Blank character code generator 13- Part 14 ... Character code conversion unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 1バイト文字コ−ドと2バイト漢字コ−
ドを混在して処理する文字処理方式において、 漢字コ−ドであることを示す漢字フラグと、漢字コ−ド
の1バイト目の文字コ−ドであるか、又は2バイト目の
文字コ−ドであるかを区別するための前後フラグを付加
して記憶装置に格納し、 文字コ−ドを1バイト毎に記憶装置から読み出して出力
する際、出力しようとする文字コ−ドと該文字コ−ドに
隣接する文字コ−ドのそれぞれに付加されている漢字フ
ラグと前後フラグに基づいて、出力しようとする文字コ
−ドが無意味な文字コ−ドであるか判定し、 無意味な文字コ−ドの場合には、前記出力しようとする
文字コ−ドを空白文字コ−ドに変換して出力し、無意味
な文字コ−ドでない場合には、そのまま出力することを
特徴とする文字処理方式。
1. A 1-byte character code and a 2-byte Kanji code
In a character processing method for processing mixed code, it is a kanji flag indicating that it is a kanji code and either the first byte of the kanji code or the second byte of the kanji code. When a character code is read from the storage device byte by byte and output, the character code to be output and the character code are stored. It is determined whether the character code to be output is a meaningless character code based on the Kanji flag and the preceding and succeeding flag added to each of the character codes adjacent to the code. In case of a character code, the character code to be outputted is converted into a blank character code and outputted, and when it is not a meaningless character code, it is outputted as it is. Character processing method.
JP3239136A 1991-09-19 1991-09-19 Character processing method Withdrawn JPH0581233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3239136A JPH0581233A (en) 1991-09-19 1991-09-19 Character processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3239136A JPH0581233A (en) 1991-09-19 1991-09-19 Character processing method

Publications (1)

Publication Number Publication Date
JPH0581233A true JPH0581233A (en) 1993-04-02

Family

ID=17040309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3239136A Withdrawn JPH0581233A (en) 1991-09-19 1991-09-19 Character processing method

Country Status (1)

Country Link
JP (1) JPH0581233A (en)

Similar Documents

Publication Publication Date Title
JPH0327119B2 (en)
JP3477666B2 (en) Image display control device
US4970501A (en) Method for writing data into an image repetition memory of a data display terminal
US4924432A (en) Display information processing apparatus
JPH0713788B2 (en) Image display device
JPH0581233A (en) Character processing method
US5367634A (en) Display method, control circuit for the same and display device
US7170564B2 (en) On-screen display device
US7009617B2 (en) On-screen display device
JPH03144492A (en) Flicker prevention device for display screen
JP2005055715A (en) On-screen display device
KR940001844Y1 (en) Apparatus for rotating color picture
JP2000181397A (en) Crt/lcd display converting circuit and converting method
JPH0816147A (en) Information display device
JPS61264384A (en) Image processing circuit
JPS58118694A (en) Writing for reflesh memory of character display
JPS5960475A (en) Character display
JPH08287060A (en) Character processing device and character processing method
JPS61198277A (en) Character display controller
JPH08115072A (en) Dot display device
JPH0236954B2 (en)
JPS63197289A (en) Logical circuit for expansion for color form of monochroic video pattern and video controller having the same
JPS62179070A (en) Memory method of buffer memory in image display device
JPH0821076B2 (en) Image data control device
JPH09261552A (en) Write control circuit for character display device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981203