JPS6081638A - Method for comparing character string in japanese word processor - Google Patents

Method for comparing character string in japanese word processor

Info

Publication number
JPS6081638A
JPS6081638A JP58191183A JP19118383A JPS6081638A JP S6081638 A JPS6081638 A JP S6081638A JP 58191183 A JP58191183 A JP 58191183A JP 19118383 A JP19118383 A JP 19118383A JP S6081638 A JPS6081638 A JP S6081638A
Authority
JP
Japan
Prior art keywords
character
byte
shift
characters
character string
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
JP58191183A
Other languages
Japanese (ja)
Inventor
Hideo Makiguchi
槙口 英夫
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
Original Assignee
Fujitsu 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 filed Critical Fujitsu Ltd
Priority to JP58191183A priority Critical patent/JPS6081638A/en
Publication of JPS6081638A publication Critical patent/JPS6081638A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/53Processing of non-Latin text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To separate correctly and easily a command superposed on a data string mixing one-byte characters with two-byte characters by comparing characters on the positions specified by two pointers advanced by prescribed bytes. CONSTITUTION:When a command is one byte, the shifting attribute of an old character string located on a position in which a code ''C'' indicating the command is inputted is checked. When the shift attribute is KS shift, characters before and after the old character strings are Japanese characters, so that null close writing is not generated. Therefore, pointers for the new and old character strings are advanced every two characters respectively and characters on the positions specified by two pointers are compared. When the shift attribute is A shift, whether the 2nd byte of the old character string is the KS shift or not is checked, if it is not the KS shift, the character is a one-byte character and the comparison of the character strings is continued. In case of the KS shift, a null code is removed from the 3rd byte of the new character string, the pointer for the old character string is advanced by 4 bytes and the pointer for the new character is advanced by 2 bytes. The contents indicating that the old shifting atribute on the position is the KS shift is set up and the succeeding character comparison is executed.

Description

【発明の詳細な説明】 ta) 発明の技術分野 本発明は日本語処理装置における文字列比較方式に係り
、特に端末装置よりホスト計算機に送出された圧縮デー
タにおいてNIILL詰めを検出し、コマンドを切り出
す方式に関する。
[Detailed Description of the Invention] ta) Technical Field of the Invention The present invention relates to a character string comparison method in a Japanese language processing device, and particularly to a method for detecting NIILL padding in compressed data sent from a terminal device to a host computer and extracting a command. Regarding the method.

(bl 従来技術と問題点 電子計算機システムにおいては、通常日本語と英数字と
では異なるコードが用いられている。即ち、英数字はE
BCDIGと呼ばれるコードを用いて1バイトで表示さ
れ、平仮名や漢字等の日本語文字はEBCDIGとは異
なるコードを用いて2バイトで表示される。
(bl Prior Art and Problems In electronic computer systems, different codes are usually used for Japanese and alphanumeric characters. That is, alphanumeric characters are E
It is displayed in 1 byte using a code called BCDIG, and Japanese characters such as hiragana and kanji are displayed in 2 bytes using a code different from EBCDIG.

そのためディスプレイ装置上で2バイトで表示されてい
る日本語文字〔第1図+al参照〕2例えば“あ” と
いう文字の上に、1バイトで表示される英数字〔第1図
(bl参照〕2例えば“A′ という文字を重ね打ちし
た場合、文字“あ゛が占めていた領域の前半分に文字“
A゛が表示され、後半分にはNULLコードが挿入され
、表示上は空白となる。
For this reason, Japanese characters displayed in 2 bytes on the display device [see Figure 1 + al] 2 For example, alphanumeric characters displayed in 1 byte over the character "A" [see Figure 1 (see bl)] 2 For example, if you overtype the character “A,” the first half of the area occupied by the character “A” will be replaced by the character “A.”
A is displayed, a NULL code is inserted in the latter half, and the display becomes blank.

端末装置よりこのようなデータをホスト計算機に送出す
る際には、上記表示上挿入されたNULLコードを取り
除き、データを圧縮する。このように11iBcDIc
と日本語コードとが混在する文字列上に、コマンド等の
文字が新しく打たれたデータが送出された場合には、ホ
スト計算機側における文字列の切出し1位置の把握は単
純な比較では不可能で、この操作は必ずしも容易ではな
かった。
When such data is sent from the terminal device to the host computer, the NULL code inserted on the display is removed and the data is compressed. In this way 11iBcDIc
If data with new characters such as commands is sent on a string containing a mixture of Japanese and Japanese codes, it is impossible for the host computer to grasp the first position of the string to be cut out by simple comparison. However, this operation was not always easy.

(C1発明の目的 本発明の目的は上述のような日本語ディスプレイ装置に
おいて、EBCDICと日本語が混在するデータ列上に
新たに打たれた文字の位置を正確に把握し、コマンドを
正しく且つ容易に切り出すことの出来る文字列比較方式
を提供することにある。
(C1 Purpose of the Invention The purpose of the present invention is to accurately grasp the position of a newly typed character on a data string in which EBCDIC and Japanese are mixed in the Japanese display device as described above, and to correctly and easily issue commands. The objective is to provide a string comparison method that can be used to extract strings.

(d) 発明の構成 本発明の特徴は、ホスト計算機に接続された端末装置の
ディスプレイ装置画面に表示されている1ハイド文字及
び2ハイド文字が混在する旧交字列上に重ね打ちされた
、1ハイド文字1個以上からなるコマンドを認識するに
際し、前記重文字列のシフト属性及び前記入力されたコ
マンドのハイド数とに応じて、重文字列及びコマンド文
字列に対するポインタをそれぞれ所定バイト進め、前記
2つのポインタの指示する位置の文字同志を比較するこ
とにある。
(d) Structure of the Invention The feature of the present invention is that the 1-hide character and the 2-hide character that are overwritten on the old cross character string that is displayed on the display device screen of the terminal device connected to the host computer are mixed. When recognizing a command consisting of one or more hide characters, the pointers for the double character string and the command string are advanced by a predetermined number of bytes, respectively, according to the shift attribute of the double character string and the number of hide characters of the input command. The purpose is to compare the characters at the positions indicated by the two pointers.

+e) 発明の実施例 第2図は端末装置の日本語ディスプレイ装置に表示され
た日本語文字列に1バイトの文字を重ね打ちした場合の
画面の表示と対応するデータの一例を示す図である。
+e) Embodiment of the invention FIG. 2 is a diagram showing an example of the screen display and corresponding data when a 1-byte character is overprinted on a Japanese character string displayed on a Japanese display device of a terminal device. .

端末装置画面上に表示されている「・・・の漢字・・・
」という文字列〔同図(a)〕に対するホスト計算機内
のデータ〔同図(b)〕は、各々2バイトのコードをも
って構成されている。但し同図では説明の便宜上から上
記コードに対応する文字を表示しである。いま、「漢」
という文字上に“A゛という英文字を重ね打ちすると、
ちと “漢゛ という文字のあった位置の前半分に文字
“A”が表示され、うしろ半分にはNULLコードが挿
入される〔同図(C)参照〕。これのデータは同図(d
lに見られるように1ハイド文字が出現する直前に、1
ハイドの文字であることを示すAコードが挿入され、ま
た日本語文字が出現する直前に日本語文字であることを
示すKSコードが挿入される。
The kanji for "..." displayed on the terminal screen
The data in the host computer [(b) in the same figure] for the character string [(a) in the same figure] is composed of a 2-byte code each. However, in the figure, for convenience of explanation, characters corresponding to the above codes are shown. Now, “Han”
If you type the English letter “A゛” over the letter “A゛”,
The character "A" is displayed in the front half of the position where the character "Kan゛" was, and a NULL code is inserted in the back half [see figure (C)].The data for this is shown in the figure (d).
Immediately before the 1 Hyde character appears as seen in l, 1
An A code indicating that it is a Hyde character is inserted, and a KS code indicating that it is a Japanese character is inserted immediately before a Japanese character appears.

このデータがそのままホスト計算機に送出されれば、ホ
スト計算機はこれと同図(blに示したもとのデータと
を逐一比較する(比較に際してはシフトコードは属性を
知るために用い、文字としては読み飛ばす)ことにより
、前と変わったところを正確に検出することが出来る。
If this data is sent as is to the host computer, the host computer will compare it point by point with the original data shown in the same figure (bl) (during the comparison, the shift code is used to know the attribute, and the characters are skipped. ), it is possible to accurately detect areas that have changed from before.

ところがこのデータをホスト計算機に送出する際には、
上述したようにNULLコードを削除してデータを圧縮
するという操作が行われる〔同図(f)〕ため、データ
の位置かもとのデータ〔同図(b)〕とは異なっている
。そのためこれをもとのデータと単純に比較しても、変
化した部分を検出することは出来ない。
However, when sending this data to the host computer,
As described above, the operation of deleting the NULL code and compressing the data is performed [FIG. 2(f)], so the data location is also different from the original data [FIG. 12(b)]. Therefore, even if you simply compare this with the original data, you will not be able to detect any changes.

コマンドは、通常コマンドであることを示す記号例えば
“コ”に続いて、予め定められた英文字列、即ち1ハイ
ド文字の文字列からなっている。
A command usually consists of a symbol indicating that it is a command, such as "ko", followed by a predetermined English character string, that is, a character string of one hide character.

従って日本語文字列上にコマンドを重ね打ちした場合に
は必然的に上述の問題が生じる。
Therefore, when a command is overwritten on a Japanese character string, the above-mentioned problem inevitably occurs.

コマンドが1ハイド文字1個または2個で構成されてい
る場合には、コマンドが打ち込まれる前に表示されてい
た重文字列の構成との関係で第3図及び第4図に示す8
つの事例が存在する。
When a command consists of one or two hide characters, the 8 characters shown in Figures 3 and 4 are displayed in relation to the structure of the double character string that was displayed before the command was entered.
There are two cases.

第3図は1バイトのコマンドを旧交字列上に重ね打ちし
た例を示す図である。まず同図(alは2)\イト文字
“漢゛の上に打ち込んだ例で、この場合には、′漢°の
字の前半分にコマンドであることを示す記号、後ろ半分
にコマンドが打ちこまれる。
FIG. 3 is a diagram showing an example in which a 1-byte command is overwritten on an old intersecting string. First, the example shown in the same figure (al is 2) is typed over the \ite character ``kan''. In this case, the first half of the character 'kan° is a symbol indicating that it is a command, and the second half is a command. It's crowded.

同図(blば1ハイド文字2個の上に打ち込まれた例で
、第1バイトにコマンドを示す記号が、第2)くイトに
コマンドが打たれる。(C)は1ハイド文字1個とその
後ろに続く2ハイド文字上に打ち込まれた例で、第1バ
イト上にコマンド記号が、その後ろの第2バイトの前半
分にコマンドが、後ろ半分にN[ILLコードが格納さ
れる。
In the example shown in the figure (bl is typed over two 1-hide characters, the symbol indicating the command is typed in the first byte, and the command is typed in the second byte). (C) is an example in which one 1-hide character and the following 2-hide character are typed, and the command symbol is on the first byte, the command is on the first half of the second byte, and the command is on the second half. N [ILL code is stored.

このような構成のデータがホスト計算機側に送出された
ときには、それぞれ同図(di〜(flに見られるよう
にNULLコードが削除され、データが圧縮される。送
出されたデータが(d)、(elの場合には問題はない
が、(f)の場合にはシフトコードを読み飛ばして単純
に新・旧の文字列を比較すると、重文字列の第4ハイド
即ち“漢”という文字の後ろ半分と、新文字列の第3ハ
イドとを比較することとなり、位置関係が狂ったまま比
較を行うこととなる。
When data with such a configuration is sent to the host computer side, the NULL code is deleted and the data is compressed as shown in (di to (fl) in the same figure. (There is no problem in the case of el, but in the case of (f), if you skip the shift code and simply compare the new and old character strings, you will find that the fourth hide of the double character string, the character “Kan”) The latter half and the third hide of the new character string will be compared, and the comparison will be performed while the positional relationship is incorrect.

第4図(a)〜(elは2バイトのコマンドを重文字列
上に重ね打ちした例を示す図であって、同図(alは2
ハイド文字2字からなる重文字列上に、(1))は2ハ
イド文字、1バイト文字の順に並ぶ重文字列上に、(C
)は1ハイド文字3字からなる重文字列上に、fdlは
1ハイド文字2字、2バイト文字の順に並ぶ重文字列上
に、また(e)は1ハイド文字、2バイト文字の順に並
ぶ重文字列上に、それぞれ2バイトのコマンドが打ち込
まれた例である。
Figure 4 (a) - (el is a diagram showing an example of overprinting a 2-byte command on a double character string;
On a double character string consisting of two hide characters, (1)) is written on a double character string consisting of two hide characters and one byte character, (C
) is on a double character string consisting of 1 hide character and 3 characters, fdl is on a double character string consisting of 1 hide character, 2 characters, and 2 byte characters, and (e) is on a double character string consisting of 1 hide character and 2 byte characters, in that order. This is an example in which commands of 2 bytes each are typed on a double character string.

この5例のうち国文字列の第3バイトが1ハイド文字で
ある(bl、 (C1及び第3バイトが2ハイド文字の
後ろ半分である(elは問題はないが、(al及び(d
iは国文字列の第3バイトが2パイ1〜文字の前半分に
当たるので、この第4バイトにはNIJ L’Lコード
が挿入される。従ってこれら(a)〜(0)がボスト計
算機に送出されたときのデータ構成は同図(fl〜(j
lに見られる如く、上記(a)及びfdlばNIILL
詰めが行われる結果、新旧文字列の比較を行う際に新文
字列の第4バイトは本来旧交字列の2ハイド文字の後ろ
に続く文字(図示せず)と比較すべきところを、その2
ハイド文字の後半部と比較することとなり、比較する位
置が狂ってしまう。
Among these five examples, the third byte of the country character string is a single-hide character (bl, (C1 and the third byte is the last half of a two-hide character) (el is fine, but (al and (d
Since the third byte of the country character string for i corresponds to the first half of the 2-pi-1 character, the NIJ L'L code is inserted into the fourth byte. Therefore, the data structure when these (a) to (0) are sent to the BOST computer is as shown in the figure (fl to (j
As seen in (a) above and fdl, NIILL
As a result of the padding, when comparing the old and new strings, the 4th byte of the new string should be compared with the character (not shown) following the 2-hide character in the old intersecting string, but instead
It will be compared with the second half of the Hyde character, and the comparison position will be incorrect.

本発明は上述のような圧縮データからN[ILL詰めを
的確に検出し、入力されたコマンドの切出しを容易にし
得る文字列比較方式を提供することを目的とするもので
あって、以下本発明の一実施例を第5図及び第6図を参
照しながら説明する。
An object of the present invention is to provide a character string comparison method that can accurately detect N[ILL padding from compressed data as described above and facilitate extraction of input commands. One embodiment of this will be described with reference to FIGS. 5 and 6.

前述のようにコマンドは1ハイド文字1字以上によって
構成されている。本実施例では1字及び2字の場合を掲
げて説明する。
As mentioned above, each command is composed of one or more hide characters. In this embodiment, the case of one character and two characters will be explained.

第5図はコマンドが1ハイド文字11[1i1の場合、
第6図は2個の場合のNIJLL詰め検出手順の要部を
示すフローチャートである。コマンドの長さは一般にコ
マンドが入力されたときに直ちに検知される。この検知
されたコマンド長が1バイトの場合には第5図の手順が
、2ハイドの場合には第6図の手順が選択される。
Figure 5 shows that if the command is 1 hide character 11 [1i1,
FIG. 6 is a flowchart showing the main part of the NIJLL packing detection procedure in the case of two pieces. The length of a command is generally detected immediately when the command is entered. If the detected command length is 1 byte, the procedure shown in FIG. 5 is selected, and if the detected command length is 2 bytes, the procedure shown in FIG. 6 is selected.

まずコマンドがlハイドのときは、第5図に見られるよ
うにコマンドを示す記号“]”が打ち込まれた位置の国
文字列のシフト属性を調べる〔同図の符号1〕。
First, when the command is l-hide, as shown in FIG. 5, the shift attribute of the country character string is checked at the position where the symbol "]" indicating the command is entered [reference numeral 1 in the same figure].

これがKSシフトであるとき〔パス1〕は、第3図(a
l、 (C1lに見られる如< NULL詰めば生じな
い。
When this is a KS shift [Path 1], Fig. 3 (a
l, (as seen in C1l, it does not occur if < NULL is filled.

従って何ら特別の操作を必要とせず、そのまま順に比較
を行なってよい。そこで新・旧両文字列に対するポイン
タをそれぞれ2ずつ進め〔同図2〕、両ポインタが示す
位置の文字同志の比較を行う。
Therefore, the comparison can be performed in order without any special operation. Therefore, the pointers for both the new and old character strings are advanced by 2 (FIG. 2), and the characters at the positions indicated by both pointers are compared.

また国文字列のシフト属性がAシフトの場合には、第3
図の(b)〔即ち(d)〕、及び(C)〔即ち(f)〕
の2つの場合がある。そこで国文字列に対するポインタ
を1だけ進めた位置、即ち国文字列の第2バイトがKS
シフトであるか否かを調べる〔同図3〕。もしこの第2
ハイドかに、Sシフトコードでなければ〔パス2〕、こ
のバイトは第1バイトとシフト属性は変わらず、この文
字は1ハイド文字である(第3図(bl、 (el参照
〕。従ってこの場合もそのまま文字列の比較を続行して
よく、新・旧両文字列に対するポインタをそれぞれ2ず
つ進める〔同図4〕。
Also, if the shift attribute of the country character string is A shift, the third
(b) [i.e. (d)] and (C) [i.e. (f)] in the figure.
There are two cases. Therefore, the position where the pointer to the country string is advanced by 1, that is, the second byte of the country string, is KS.
Check whether it is a shift or not (Figure 3). If this second
If it is a hide or S shift code [pass 2], this byte has the same shift attribute as the first byte, and this character is a 1 hide character (see Figure 3 (bl, (el)). In this case, the comparison of character strings can be continued as is, and the pointers for both the new and old character strings are advanced by 2 [FIG. 4].

これに対し第2バイトかに、Sシフトであれば〔パス3
〕、第3図(C1,(0に見られるように新文字列の第
3バイトはN0LLコードが取り除かれ、本来ならば次
の第4バイトにあるべき文字がこの位置に詰められてい
る。従ってこの文字は国文字列の第5バイトの文字と比
較すべきものであり、そのため国文字列に対するポイン
タは4ハイド進め、新文字列に対するポインタは2バイ
ト進め〔同図5〕、更にこの位置の旧シフト属性はKS
シフ1−である旨セットして〔同図6〕、次の文字の比
較に進む。
On the other hand, if the second byte is S shift [pass 3
], Figure 3 (C1, (As seen in 0, the N0LL code is removed from the third byte of the new character string, and the character that should normally be in the next fourth byte is stuffed into this position. Therefore, this character should be compared with the character in the 5th byte of the country string, so the pointer for the country string is advanced by 4 bytes, the pointer for the new string is advanced by 2 bytes [see Figure 5], and the pointer for the new character string is advanced by 2 bytes. Old shift attribute is KS
It sets that the shift is 1- (FIG. 6), and proceeds to compare the next character.

以上の簡単な手順により1ハイドのコマンドに対するN
ULL詰め検出が的確に行われる。
By the above simple steps, N for 1 Hyde command can be obtained.
ULL filling detection is performed accurately.

入力されたコマンド長が2ハイドの場合には第6図の手
順が選択される。
If the input command length is 2 hides, the procedure shown in FIG. 6 is selected.

この場合にはまず国文字列のシフト属性を調べ〔同図1
1〕、これがKSシフトのときは第4図(a)。
In this case, first check the shift attribute of the country character string [Figure 1
1], and when this is a KS shift, it is shown in Fig. 4(a).

(blに見られる如く2つの場合があるのでそのいずれ
かを見ために旧ポインタを2だけ進めた位置2即ち第3
バイトがAシフトコードであるか否かを調べる〔第6図
12〕。
(As shown in bl, there are two cases, so to see one of them, move the old pointer forward by 2.
Check whether the byte is an A shift code (Fig. 6, 12).

この第3バイトがAシフI・コードでないときは第4図
の(al、 (fjの場合に当たるので、新文字列の第
3ハイドにはNULLコードが除かれて本来第4バイト
にあるべき文字が来ていることとなる。従って旧ポイン
タは4.新ポインタば3だげ進めて〔第6図13〕、次
の文字の比較を行う〔バスl〕。
If this third byte is not an A shift I code, this corresponds to the case of (al, (fj) in Figure 4, so the third hide of the new string has the NULL code removed and the character that should originally be in the fourth byte. Therefore, the old pointer is advanced by 4. The new pointer is advanced by 3 [Fig. 6, 13], and the next character is compared [bus l].

上記第3バイトがAシフトコードであったときは、第4
図(bl、 (g)の場合に当たりNIJLL詰めは生
じていない。従って旧ポインタは4.新ポインタは3だ
け進め〔第6図14〕、更に旧ポインタの示す文字のシ
フト属性はAシフトであることをセントしてC第6図1
5〕、次の文字の比較を行う〔パス2〕。
When the third byte above is an A shift code, the fourth byte
In the case of Figures (bl and (g)), NIJLL padding has not occurred. Therefore, the old pointer advances by 4, the new pointer advances by 3 [Figure 6, 14], and the shift attribute of the character indicated by the old pointer is A shift. That is cent C Figure 6 1
5], Compare the next character [Pass 2].

また前記重文字列の第1バイトのシフト属性がAシフト
のときは、第4図(C1〜fQlの3つの場合がある。
Further, when the shift attribute of the first byte of the double character string is A shift, there are three cases as shown in FIG. 4 (C1 to fQl).

そこで旧ポインタを1つ進めた位置がKSシフトコード
であるか否かを調べる〔第6図15〕。
Then, it is checked whether the position where the old pointer is advanced by one is the KS shift code (FIG. 6, 15).

このバイトがKSシフトコードでなければ、更に旧ポイ
ンタを2だけ進めた位置がKSシフトコードであるか否
かを調べる〔同図16〕。これがKSシフトコードでな
ければ、第4図(c+、 、th+の場合に当たり、H
ULL詰めは発生せずしかもシフトコードも挿入されて
いないので、新・重文字列の位置にずれはなく、従って
新・重両ポインタとも3ずつ進め〔第6図17〕、次の
文字の比較を行う〔パス3〕。
If this byte is not a KS shift code, it is further checked whether the position where the old pointer is advanced by 2 is a KS shift code (FIG. 16). If this is not a KS shift code, it corresponds to the case of Fig. 4 (c+, , th+), and H
Since ULL padding does not occur and no shift code is inserted, there is no shift in the position of the new and double character strings, so both the new and double pointers are advanced by 3 [Figure 6, 17] and the next character is compared. [Path 3]

上記第6図16において重文字列の第3バイトがKSシ
フトコードであったとすると、これは第4図のfdl、
 (llの場合に当たり、新文字列にはNIILL詰め
が発生してい°る。従って旧ポインタは5.新ポインタ
は3だけ進め〔第6図18〕、更にこの旧ポインタの指
す位置の文字のシフト属性はKSシフトであることをセ
ント〔第6図19〕シて、次の文字の比較を行う。
If the third byte of the double character string in Figure 6 16 above is the KS shift code, this is the fdl in Figure 4,
(In the case of ll, NIILL padding has occurred in the new character string. Therefore, the old pointer advances by 5, the new pointer advances by 3 [Fig. 6, 18], and further shifts the character at the position pointed to by this old pointer. After determining that the attribute is KS shift (see Figure 6, 19), the next character is compared.

前記第6図15において、重文字列の第2ハイドがKS
シフトコードであったときは、第4図(e)。
In FIG. 6 15, the second hide of the double character string is KS.
When it is a shift code, it is shown in FIG. 4(e).

(Jlに当たるので、旧ポインタは4.新ポインタは3
だけ進め〔第6図20〕、更にこの旧ポインタの新しい
値が指すバイトの文字のシフト属性はKSシフトである
ことをセット〔同図21〕シ、次の文字の比較を行う〔
バス5〕。
(Since it corresponds to Jl, the old pointer is 4. The new pointer is 3.
[Fig. 6, 20], further sets that the shift attribute of the character in the byte pointed to by the new value of this old pointer is KS shift [Fig. 6, 21], and compares the next character.
bus 5].

以上により2バイトコマンドの比較を的確且つ容易に行
うことが出来る。
As described above, comparison of 2-byte commands can be performed accurately and easily.

このように本実施例によれば簡単な操作によりNULL
詰めを的確に検出出来、旧文字列上に重ね打ちされたコ
マンドを容易に切り出すことが可能となる。
In this way, according to this embodiment, NULL can be set by a simple operation.
It is possible to accurately detect padding, and it is possible to easily extract commands overwritten on old character strings.

なお本発明は上記一実施例に限定されることなく、更に
種々変形して実施し得る。
Note that the present invention is not limited to the above-mentioned embodiment, and can be implemented with various modifications.

例えば上記一連の手順はプログラムによりソフト的に実
施することも可能であるが、これをファーム・ウェア化
することも勿論可能である。
For example, the series of procedures described above can be implemented in software using a program, but it is of course also possible to implement them in firmware.

(f) 発明の詳細 な説明した如く本発明によれば、日本語処理装置のディ
スプレイ装置画面上の、1バイト文字及び2バイト文字
が混在する旧文字列上に重ね打ちされたコマンドを、簡
単な手順により的確且つ容易に検出することが出来る。
(f) As described in detail, according to the present invention, commands overwritten on old character strings containing a mixture of 1-byte and 2-byte characters on the display screen of a Japanese language processing device can be easily processed. It can be accurately and easily detected using a simple procedure.

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

第1図及び第2図は端末装置からホスト計算機にデータ
が送られる際のN[ILL詰めを説明するためのデータ
の構成を示す図、第3図及び第4図は1バイトコマンド
及び2バイトコマンドと旧文字列上との組合わせを示す
図、第5図及び第6図は本発明に係る日本語処理装置に
おける文字列比較方式の一実施例を示すフローチャート
である。 図において、1〜G、及びII〜21は、それぞれ新・
重文字列を比較する手順における処理を示す。 第1図 (CI > < b) 第2FM s 3 図 第4図 第 5 図
Figures 1 and 2 are diagrams showing the structure of data to explain N[ILL stuffing when data is sent from a terminal device to a host computer, and Figures 3 and 4 are 1-byte commands and 2-byte commands. Figures 5 and 6 showing combinations of commands and old character strings are flowcharts showing an embodiment of the character string comparison method in the Japanese language processing apparatus according to the present invention. In the figure, 1 to G and II to 21 are new and
The processing in the procedure for comparing double strings is shown. Figure 1 (CI >< b) 2nd FM s 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] ホスト計算機に接続された端末装置から入力され、該端
末装置のディスプレイ装置に表示されている1バイト文
字及び2バイト文字が混在する文字列上に重ね打ちされ
た、1バイト文字1個以上からなるコマンドをホスト計
算機側において認識するに際し、前記入力されたコマン
ドのバイト数及び該コマンドの人力位置の文字のシフト
属性とに応じて、国文字列及び新文字列に対するポイン
タをそれぞれ所定バイト進め、前記2つのポインタの指
示する位置の文字同志を比較することを特徴とする日本
語処理装置にお1す文字列比較方法。
Consists of one or more 1-byte characters that are input from a terminal device connected to a host computer and overprinted on a character string containing a mixture of 1-byte and 2-byte characters that is displayed on the display device of the terminal device. When the command is recognized on the host computer side, the pointers for the country character string and the new character string are advanced by a predetermined number of bytes, respectively, according to the number of bytes of the input command and the shift attribute of the character in the manual position of the command. A character string comparison method for a Japanese language processing device, characterized in that characters at positions indicated by two pointers are compared.
JP58191183A 1983-10-12 1983-10-12 Method for comparing character string in japanese word processor Pending JPS6081638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58191183A JPS6081638A (en) 1983-10-12 1983-10-12 Method for comparing character string in japanese word processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58191183A JPS6081638A (en) 1983-10-12 1983-10-12 Method for comparing character string in japanese word processor

Publications (1)

Publication Number Publication Date
JPS6081638A true JPS6081638A (en) 1985-05-09

Family

ID=16270277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58191183A Pending JPS6081638A (en) 1983-10-12 1983-10-12 Method for comparing character string in japanese word processor

Country Status (1)

Country Link
JP (1) JPS6081638A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6320678A (en) * 1986-07-15 1988-01-28 Brother Ind Ltd Work processor
EP0643356A2 (en) * 1993-09-09 1995-03-15 International Business Machines Corporation Method of editing text in column sensitive environments

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6320678A (en) * 1986-07-15 1988-01-28 Brother Ind Ltd Work processor
EP0643356A2 (en) * 1993-09-09 1995-03-15 International Business Machines Corporation Method of editing text in column sensitive environments
JPH0785039A (en) * 1993-09-09 1995-03-31 Internatl Business Mach Corp <Ibm> Method and equipment for editing of text
EP0643356A3 (en) * 1993-09-09 1995-11-02 Ibm Method of editing text in column sensitive environments.

Similar Documents

Publication Publication Date Title
US5161245A (en) Pattern recognition system having inter-pattern spacing correction
USRE35861E (en) Apparatus and method for comparing data groups
US5418718A (en) Method for providing linguistic functions of English text in a mixed document of single-byte characters and double-byte characters
EP0400269A2 (en) Method for manipulating elements within a structured document and actively interpreting user intentions
US4677585A (en) Method for obtaining common mode information and common field attribute information for a plurality of card images
JPS6359660A (en) Information processor
US5835921A (en) Data processing apparatus for creating and storing a text file from input data
JPS6081638A (en) Method for comparing character string in japanese word processor
CN115712601A (en) Method for reading fixed-length files in batch based on springbatch
JPH0619962A (en) Text dividing device
JPH08180066A (en) Index preparation method, document retrieval method and document retrieval device
JP2870375B2 (en) Sentence correction device
JPS5985532A (en) Designating system for editing range of sentence
JPH08202711A (en) Electronic device for document editing operation
JP3081622B2 (en) Telephone number stylization device and telephone number stylization method
JPH0229864A (en) Keyword extracting system
JP2578862B2 (en) Keystroke warning correction method
JPH09259148A (en) Device for collating code and method therefor
JP2579976B2 (en) Electronic dictionary search method
JP2503259B2 (en) How to determine full-width and half-width characters
JPH0267684A (en) Calibration supporting system and dictionary retrieving system
WO2017126057A1 (en) Information search method
JPS61175855A (en) Kana to kanji converting device
JPH01277961A (en) Character conversion system
JPH02158864A (en) Document preparing device