[go: up one dir, main page]

JPS61292186A - Full angle character indentification system - Google Patents

Full angle character indentification system

Info

Publication number
JPS61292186A
JPS61292186A JP60133581A JP13358185A JPS61292186A JP S61292186 A JPS61292186 A JP S61292186A JP 60133581 A JP60133581 A JP 60133581A JP 13358185 A JP13358185 A JP 13358185A JP S61292186 A JPS61292186 A JP S61292186A
Authority
JP
Japan
Prior art keywords
width
code
full
string
characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60133581A
Other languages
Japanese (ja)
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP60133581A priority Critical patent/JPS61292186A/en
Publication of JPS61292186A publication Critical patent/JPS61292186A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概要〕 半角文字コードと全角文字コードとが混在するコード列
における半角文字コードと全角文字コードとを職別する
方式において、コード列における半角文字コードと全角
文字コードとに対応して異なる符号を割り当てたビット
からなるビット列を設け、このビット列の内容によって
コード列における半角文字コードと全角文字コードとを
識別するようにしたので、文字情報を処理するための時
間が短縮されるとともに、必要なメモリ領域が少くてす
むようになる。
[Detailed Description of the Invention] [Summary] In a method for classifying half-width character codes and full-width character codes in a code string in which half-width character codes and full-width character codes are mixed, A bit string consisting of bits to which different codes are assigned correspondingly is provided, and half-width character codes and full-width character codes in the code string are identified based on the contents of this bit string, reducing the time required to process character information. This also reduces the amount of memory required.

〔産業上の利用分野〕[Industrial application field]

本発明は全角文字を識別する方式に係)、特に全角文字
の漢字コードと牛角文字のJIIJコード列との職別を
簡単に行うことができる全角文字識別方式に関するもの
である。
The present invention relates to a method for identifying full-width characters, and more particularly to a full-width character identification method that can easily distinguish between Kanji codes for full-width characters and JIIJ code strings for cow-kaku characters.

日本語の画面表示等を含む情報処理を行う際、画面上に
おiて半角文字とこれよシ大!i埴全角文字とを混在さ
せることによって、画面上に表示された情報の認識を容
易にする手法が用iられてφる。
When processing information including displaying Japanese on a screen, etc., press i on the screen to display half-width characters and Koreyo-shi! A method is used to make it easier to recognize the information displayed on the screen by mixing full-width characters.

この場合の文字情報は、全角文字に対する2バイト構成
の漢字コードと、牛角文字に対する1バイト構成のJI
Sコードとが混在するものとなるので、何等かの手段に
よって両者のコードを職別することが必要になる。
In this case, the character information is a 2-byte kanji code for full-width characters, and a 1-byte JI code for gyu-kaku characters.
Since the S code and S code coexist, it is necessary to separate the two codes by occupation by some means.

本発明はこのような場合に適用されるものであって、よ
シ簡単な方法で混在するコードの識別を可能にする識別
方式を提供するものである。
The present invention is applied to such a case, and provides an identification method that makes it possible to identify mixed codes in a very simple manner.

〔従来の技術〕[Conventional technology]

従来、混在する全角文字の漢字コードと半角文字のJI
Sコードとの識別は、以下のような方法によって行われ
ていた。
Traditionally, Kanji codes for full-width characters and JI for half-width characters were mixed.
Identification with the S code was performed by the following method.

(1)  JIBコード規格(Jl!i C622B 
)による方法であって、第5図に示されるように、5バ
イトのエスケープ・シーケンスで囲まれた部分を全角文
字コードとする。同図において、Klはイン側のエスケ
ープ・シーケンスを示し、KOはアウトのエスケープ・
シーケンスを示している。
(1) JIB code standard (Jl!i C622B
), as shown in FIG. 5, the part surrounded by a 5-byte escape sequence is made into a full-width character code. In the figure, Kl indicates the inside escape sequence, and KO indicates the out escape sequence.
It shows the sequence.

(2)上述のよりなJISコード規格で示されfc3バ
イトのエスケープ・シーケンスでitなく、2バイトの
エスケープ・シーケンスを用いて、これで囲まれた部分
を全角文字コードとして識別する方法もある。
(2) There is also a method of using a 2-byte escape sequence instead of the fc3-byte escape sequence it is shown in the above-mentioned JIS code standard, and identifying the part surrounded by this as a full-width character code.

(3)  また第6図に示すごとく、半角のJIBコー
ドも全角と同じく2バイト構成にして、その前半の1バ
イトを00にしてこれで識別する。
(3) Also, as shown in FIG. 6, the half-width JIB code has a 2-byte structure like the full-width one, and the first byte is set to 00 for identification.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述の従来の識別方式は、iずれも識別のために必要と
する情報量が大きく、従ってこのような情報を処理する
ために必要な、メモリその他の装置構成全体が大きくな
ることを避けられな1という問題がめった。
The conventional identification methods described above require a large amount of information for identification, so it is inevitable that the memory and other device configurations required to process such information will become large. I encountered the problem of 1.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の方式の原理的構成を示したものである
FIG. 1 shows the basic structure of the system of the present invention.

101はコード列でおって、半角文字コードと全角文字
コードとが混在している。
101 is a code string in which half-width character codes and full-width character codes are mixed.

102はビット列であって、コード列101における半
角コードおよび全角コードのそれぞれに対応して、異な
る符号のビットを割ル尚てられてiる。
Reference numeral 102 is a bit string in which bits of different codes are assigned to correspond to each of the half-width code and the full-width code in the code string 101.

〔作用〕[Effect]

半角文字コードと全角文字コードとが混在するコード列
における半角文字コードと全角文字コードとに対応して
異なる符号を割り尚てたビットからなるビット列を設け
たので、このビット列の内容によって、コード列を構成
する半角文字コードと全角文字コードとを識別すること
ができる。
In a code string where half-width character codes and full-width character codes are mixed, a bit string consisting of bits with different codes assigned corresponding to the half-width character code and the full-width character code is provided, so depending on the contents of this bit string, the code string It is possible to identify the half-width character code and the full-width character code that make up the character code.

〔実施例〕〔Example〕

第2図は半角文字および全角文字に対する出力オーダ列
を示したものでおる。同図におiて6)は半角文字用出
力オーダ列を示し、表示を開始すべき行と列を示す開始
行と開始列のオーダ、表示における属性を示す表示属性
のオーダと出力における属性1?表示する出力属性のオ
ーダ、および水平方向のデータ1kcL)、垂直方向の
データ長(H)のオーダに引き続いて、各文字が1バイ
トで構成された表示コード列が出力される。また(6)
は全角文字用出力オーダ列を示し、半角文字用出力オー
ダ列と同様な開始行、開始列9表示属性、出力属性、デ
ータ長(L)、データ長CH)のオーダの後に、各文字
が2バイトで構成されfc表示コード列が出力される。
FIG. 2 shows an output order string for half-width characters and full-width characters. In the same figure, 6) indicates the output order column for half-width characters, the order of the start row and start column indicating the row and column where display should start, the order of display attributes indicating the attributes in display, and the attribute 1 in output. ? Following the order of output attributes to be displayed, horizontal data (1kcL), and vertical data length (H), a display code string in which each character is composed of 1 byte is output. Also (6)
indicates the output order string for full-width characters, and after the start line, start column 9 display attribute, output attribute, data length (L), data length CH) order similar to the output order string for half-width characters, each character is An fc display code string consisting of bytes is output.

第6図は本発明の一実施例を示したものでおって、1は
全角文字、半角文字が混在するコード列、2はコード列
1に対応して設けられたビット列、5はコード列1.ビ
ット列2に対応する出力オーダ列である。
FIG. 6 shows an embodiment of the present invention, in which 1 is a code string in which full-width characters and half-width characters are mixed, 2 is a bit string provided corresponding to code string 1, and 5 is a code string 1. .. This is an output ordered string corresponding to bit string 2.

第5図において、コード列1において1−Is 1−4
41−5.・・・は1バイトからなる半角文字コード、
1−2・1−s、1−6.・・・は2バイトからなる全
角文字=−ドである。またビット列2におμて% 2−
112−412−51・・・はそれぞれ半角文字コード
’−1+ 1−4+ 1−5+・・・に対応する識別用
ビットであって、“0″が割り尚てられておj) % 
2−212−1,2−6+・・・はそれぞれ全角文字コ
ード2−2+ 2−!+ 2−4+・・・に対応する識
別用ビットであって lli#が割り当てられている。
In FIG. 5, 1-Is 1-4 in code string 1
41-5. ... is a 1-byte half-width character code,
1-2・1-s, 1-6. ... is a 2-byte double-byte character =-. Also, in bit string 2, % 2−
112-412-51... are identification bits corresponding to the half-width character codes '-1+ 1-4+ 1-5+..., and "0" has been reassigned.
2-212-1, 2-6+... are full-width character codes 2-2+ 2-! +2-4+... is an identification bit to which lli# is assigned.

出力オーダ列3におiてb  ’−1s3−!+・・・
は半角文字用出カオーダ列であってそれぞれ牛角文字コ
ード1−1゜1−4および1−5.・・・に対応し、 
 5−2.14は全角文字用出力オーダ列であって、そ
れぞれ全角文字コード1−2およびL5. L6に対応
している。
In output order sequence 3, b'-1s3-! +...
are the output order strings for half-width characters, and have the gyu-kaku character codes 1-1, 1-4 and 1-5, respectively. In response to...
5-2.14 is an output order string for full-width characters, with full-width character codes 1-2 and L5. Compatible with L6.

第4図は全角、半角混在コード列と対応するビット列と
からコードの識別を行う場合の処理プログラムを示した
ものであって、第6図の例に対応している。
FIG. 4 shows a processing program for identifying a code from a mixed full-width and half-width code string and a corresponding bit string, and corresponds to the example shown in FIG. 6.

第4図において、まずカウンタをクリアする(ステップ
、Sfl )。次にカラ/り値と一致するコード列の中
に、最終コード(FF )が現れたか否かをチェックす
る(ステップ、92)。最終コードとしては全角文字コ
ード、半角文字コードのいずれの中にも存在しないコー
ドである16進数のFFを用い、これが検出されたとき
処理を終了する。最終コードが現れなかったときは、ビ
ット列2の中でカウンタ値と一致する位置のビットが、
′1”でおるか否かをチェックしくステップ5f3)、
”1″′であったときは全角文字の処理に移行し、“0
”νでめったときは牛角文字の処理に移行する。
In FIG. 4, first the counter is cleared (step Sfl). Next, it is checked whether the final code (FF) appears in the code string that matches the color/color value (step 92). As the final code, hexadecimal FF, which is a code that does not exist in either the full-width character code or the half-width character code, is used, and when this is detected, the process ends. If the final code does not appear, the bit at the position matching the counter value in bit string 2 is
Check whether it is '1' or not. Step 5f3).
When it is "1"', it shifts to full-width character processing and returns "0".
``If it rarely happens with ν, it will move on to processing Gyukaku characters.

ビット列2において最初のビット2−1は“0′である
から、次にコード列1Vcお−てカウンタ値と、一致す
るコード1バイト分すなわちコード1−1を半角用出力
オーダ列3−1の表示コード列に生成しくステップS4
)、カウンタ値を更新して+1する(ステップ、95 
)。そしてステップS5と同様にして、次も半角文字の
コード列であるか否かをチェックしくステップS6)、
半角でめったときはさらに同じ処理を繰り返す。
Since the first bit 2-1 in bit string 2 is "0", next the code string 1Vc is used to output the counter value and one byte of the matching code, that is, code 1-1, to half-width output order string 3-1. Step S4 to generate the display code string
), the counter value is updated and +1 (step 95
). Then, in the same manner as step S5, check whether the next code string is a half-width character code (step S6).
If it happens to be half-width, repeat the same process.

第5図に示されたコード列では、次のコードは全角文字
コードであるから、この場合はステップS2に戻って最
終コードの判定を行ったのち、ビット列2中のカウンタ
値と一致するビットが“1“でおるか否かをチェックす
る(ステップSS)。
In the code string shown in FIG. 5, the next code is a full-width character code, so in this case, after returning to step S2 and determining the final code, the bit that matches the counter value in bit string 2 is It is checked whether it is "1" (step SS).

この場合は次のビット2−2は“1”で必るから、コー
ド列10カウンタ値と一致するコード2バイト分すなわ
ちコード1−2を、全角用出力オーダ列3−2の表示コ
ード列に生成しくステップs7)、カウンタ値を更新し
て+2する(ステップs8)。
In this case, the next bit 2-2 must be "1", so 2 bytes of code that matches the code string 10 counter value, that is, code 1-2, is added to the display code string of the full-width output order string 3-2. The counter value is updated and incremented by 2 (step s8).

そしてステップS3と同様にして5次も全角文字のコー
ド列でめるか否かをチェックする(ステップS9)。
Then, in the same manner as step S3, it is checked whether or not the 5th order can also be filled with a code string of double-byte characters (step S9).

この場合は、次のコードは全角文字コードでおるから、
ステップS7に戻ってコード列10カウンタ値と一致す
るコード2バイト分すなわちコード1−5を、全角用出
力オーダ列3−2の表示コード列における次の位置に生
成し、カウンタ値を再び+2する(ステップ、9B )
。そして次も全角文字のコード列であるか否かをチェッ
クする(ステップS9 )が、今度は半角文字のコード
列であるから、ステップS2に戻って最終コードのチェ
ックから再び繰シ返す。
In this case, the following code is a full-width character code, so
Returning to step S7, 2 bytes of code that match the code string 10 counter value, that is, codes 1-5, are generated at the next position in the display code string of the full-width output order string 3-2, and the counter value is increased by 2 again. (Step, 9B)
. Next, a check is made to see if it is a code string of full-width characters (step S9), but since it is a code string of half-width characters this time, the process returns to step S2 and repeats the process again starting from the final code check.

以上のような処理をコード列1Fcおφて最終コードが
現れるまで行うことによって、コード列1における全角
文字と半角文字を識別して、それぞれ全角用出力オーダ
列、半角用出力オーダ列にセットすることができる。
By performing the above processing until the final code appears in code string 1Fc, the full-width characters and half-width characters in code string 1 are identified and set in the full-width output order string and the half-width output order string, respectively. be able to.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明の全角文字職別方式によれば
、コード列における半角文字コードと全角文字コードと
に対応して異なる符号を割biてたビットからなるビッ
ト列を設けたので、これによってコード列を構成する半
角文字コードと全角文字コードとを識別することができ
る。
As explained above, according to the full-width character classification system of the present invention, a bit string consisting of bits divided by different codes corresponding to the half-width character code and the full-width character code in the code string is provided. It is possible to identify half-width character codes and full-width character codes that constitute a code string.

本発明の方式によれば、ビット列のみによってコードの
識別を行うことができるので、特定のコード例えば全角
文字コードのみの抽出や、半角文字コードと全角文字コ
ードの分離、および文字数の検出等の処理を行う時間が
大幅に短縮される。
According to the method of the present invention, codes can be identified only by bit strings, so processing such as extraction of specific codes, for example, only full-width character codes, separation of half-width character codes and full-width character codes, and detection of the number of characters, etc. The time required to do this is significantly reduced.

さらに本発明の方式によれば、従来の方式に比べて文字
情報を記憶するためのメモリ領域が少くてすむ。このよ
うな効果は、半角文字コードと全角文字コードとが混在
するコード列における文字数が増大するはど顕著になる
Furthermore, the method of the present invention requires less memory area for storing character information than conventional methods. Such an effect becomes more noticeable as the number of characters in a code string in which half-width character codes and full-width character codes are mixed increases.

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

第1図は本発明方式の原理的構成を示す図、第2図は半
角文字および全角文字に対する出力オーダ列を示す図、 第3図は本発明方式の一実施例を示す図、第4図はコー
ド識別の処理プログラムを示す図、第5図は従来の半角
、全角混在コード列の一例を示す図、 第6図は従来の牛角、全角混在コード列の他の例を示す
図である。 1・・・コード列、 1−1+ ’−4+ 1−5°°°半角文字3−ド1’
−2+ 1−5+ 1−6・・・全角文字コード、2・
・・ビット列、 2−1 + 2−4 + 2−5・・・半角文字に対応
する識別用ビット、 2−2 + 2−3 + 2−6・・・全角文字に対応
する識別用ビット。 6・・・出力オーダ列、 ”1+’−5・・・半角文字用出力オーダ列。 3−2 + 3−4・・・全角文字用出力オーダ列> 
Fig. 1 is a diagram showing the basic configuration of the method of the present invention, Fig. 2 is a diagram showing an output order string for half-width characters and full-width characters, Fig. 3 is a diagram showing an embodiment of the method of the present invention, and Fig. 4 FIG. 5 is a diagram showing an example of a conventional mixed half-width and full-width code string. FIG. 6 is a diagram showing another example of a conventional mixed-gyu-kaku and full-width code string. 1...Code string, 1-1+ '-4+ 1-5°°° Half-width character 3-Door 1'
-2+ 1-5+ 1-6...Full-width character code, 2.
... Bit string, 2-1 + 2-4 + 2-5... Identification bits corresponding to half-width characters, 2-2 + 2-3 + 2-6... Identification bits corresponding to full-width characters. 6... Output order string, "1+'-5... Output order string for half-width characters. 3-2 + 3-4... Output order string for full-width characters>

Claims (1)

【特許請求の範囲】 半角文字コードと全角文字コードとが混在するコード列
における半角文字コードと全角文字コードとを識別する
方式において、 該コード列における半角コードおよび全角コードのそれ
ぞれに対応して異なる符号を有するビットを割り当てて
なるビット列を設け、 該ビット列におけるビットの内容によって前記コード列
における半角文字と全角文字を識別することを特徴とす
る全角文字識別方式。
[Scope of Claims] In a method for identifying half-width character codes and full-width character codes in a code string in which half-width character codes and full-width character codes are mixed, A full-width character identification method comprising: providing a bit string to which bits having codes are assigned; and identifying half-width characters and full-width characters in the code string based on the contents of the bits in the bit string.
JP60133581A 1985-06-19 1985-06-19 Full angle character indentification system Pending JPS61292186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60133581A JPS61292186A (en) 1985-06-19 1985-06-19 Full angle character indentification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60133581A JPS61292186A (en) 1985-06-19 1985-06-19 Full angle character indentification system

Publications (1)

Publication Number Publication Date
JPS61292186A true JPS61292186A (en) 1986-12-22

Family

ID=15108155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60133581A Pending JPS61292186A (en) 1985-06-19 1985-06-19 Full angle character indentification system

Country Status (1)

Country Link
JP (1) JPS61292186A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0440554A (en) * 1990-06-06 1992-02-10 Fujitsu Ltd Character data processing device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5474332A (en) * 1977-11-25 1979-06-14 Mitsubishi Electric Corp Display unit
JPS5580144A (en) * 1978-12-13 1980-06-17 Hitachi Ltd Chinese-character display unit
JPS5583928A (en) * 1978-12-21 1980-06-24 Toshiba Corp Character process system
JPS5670593A (en) * 1979-11-14 1981-06-12 Tokyo Shibaura Electric Co Display unit
JPS5799682A (en) * 1980-12-12 1982-06-21 Hitachi Ltd Display system
JPS57146287A (en) * 1981-03-06 1982-09-09 Hitachi Ltd Display system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5474332A (en) * 1977-11-25 1979-06-14 Mitsubishi Electric Corp Display unit
JPS5580144A (en) * 1978-12-13 1980-06-17 Hitachi Ltd Chinese-character display unit
JPS5583928A (en) * 1978-12-21 1980-06-24 Toshiba Corp Character process system
JPS5670593A (en) * 1979-11-14 1981-06-12 Tokyo Shibaura Electric Co Display unit
JPS5799682A (en) * 1980-12-12 1982-06-21 Hitachi Ltd Display system
JPS57146287A (en) * 1981-03-06 1982-09-09 Hitachi Ltd Display system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0440554A (en) * 1990-06-06 1992-02-10 Fujitsu Ltd Character data processing device

Similar Documents

Publication Publication Date Title
JPS61292186A (en) Full angle character indentification system
JPS60105039A (en) Collation system of character string
JP3985614B2 (en) Automatic identification method of serial memory
KR940002474B1 (en) Processing method of english graphic code in korean character and apparatus therefor
JP2650806B2 (en) Character string data classification processor
JPH04324577A (en) Broken-line graph recognizing device
JP3081622B2 (en) Telephone number stylization device and telephone number stylization method
JPH02297167A (en) Character string editing device
JPS63269066A (en) Glitch detection display method and device
JP3077351B2 (en) Data display method
JPH0516605B2 (en)
JPH04167123A (en) Mixed data processing system
JPH05274357A (en) Kanji @(3754/24)chinese character) data retrieving method
JPS627595B2 (en)
JPS59173865A (en) How to search for free space
JPS6395571A (en) electronic dictionary
JPH01166187A (en) Method for recognizing character
JPS5839637U (en) character input device
JPH04205373A (en) Display method for electronic document editing device
JPH0612406A (en) Kana conversion processing method for Kana address notation and Kana corporation name notation
JPH0433053A (en) Name formatting device
JPS60189571A (en) Character processor
JPS6337378A (en) Screen display device
JPS61138984A (en) Fast character display unit
JPH01161291A (en) Cursor display method