JPS63249257A - Kanji data editing processing method - Google Patents

Kanji data editing processing method

Info

Publication number
JPS63249257A
JPS63249257A JP62084243A JP8424387A JPS63249257A JP S63249257 A JPS63249257 A JP S63249257A JP 62084243 A JP62084243 A JP 62084243A JP 8424387 A JP8424387 A JP 8424387A JP S63249257 A JPS63249257 A JP S63249257A
Authority
JP
Japan
Prior art keywords
kanji
data
code
display
overflows
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
JP62084243A
Other languages
Japanese (ja)
Inventor
Yutaka Maruyama
裕 丸山
Shuichi Ando
秀一 安藤
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
NTT Inc
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP62084243A priority Critical patent/JPS63249257A/en
Publication of JPS63249257A publication Critical patent/JPS63249257A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To accurately warn a user that a part of a KANJI (Chinese character) code string overflows a prescribed number of digits, by preventing display of all of the KANJI code string ending with a postpositive code if this postpositive code overflows the boundary of the prescribed number of digits of a row by data insertion. CONSTITUTION:When row data is edited by insertion, deletion, or the like and data is displayed out to update the display on a display device 5, an editing processing part 3 checks whether the KANJI code string of data in this row partially overflows or not after a required preprocessing, and the processing part 3 performs the control to display out data in an effective part 6 of a buffer as conventional if it does not partially overflow. If it partially overflows, the whole of the KANJI code string is completely shifted to a digit overflow part 7 to make the effective part 6 empty. Consequently, all KANJIs of the KANJI string are not displayed at all. Thus, the KANJI code to be eliminated as an invalid code is erased from the display at the time of terminating diting to warn the user that it is deleted.

Description

【発明の詳細な説明】 〔概 要〕 計算機の漢字を含む行データの編集で、データのあふれ
状態が表示上でわかり易いようにするための処理方法で
ある。
[Detailed Description of the Invention] [Summary] This is a processing method for editing line data including kanji on a computer so that the overflow of data can be easily seen on the display.

漢字コード列は漢字を示す前置及び後置コードではさま
れているシステムで、データ挿入で後置コードが行の所
定桁数の境界をあふれた場合には、その後置コードで終
わる漢字コード列のすべてを表示しないようにする。
In this system, the kanji code string is sandwiched between prefix and suffix codes that indicate kanji characters, and if the suffix code overflows the boundary of the predetermined number of digits in the line during data insertion, the kanji code string ends with the suffix code. Do not display everything.

この方法により、漢字コード列の一部が所定桁数をあふ
れている状態を的確に利用者に警告することが容易にで
きる。
With this method, it is easy to accurately warn the user that a part of the kanji code string exceeds the predetermined number of digits.

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

本発明は、計算機における漢字を含む行データの編集処
理方法に関する。
The present invention relates to a method for editing line data including kanji characters in a computer.

計X機の原始プログラム等は、一定のデータ長以内の行
データのレコードを単位として編集処理される。このよ
うな行データに所定の前置コード及び後置コードではさ
まれた漢字コードを含む場合には、それら前置及び後置
コードを含めて所定のレコード長に収まる必要がある。
The original programs for X machines are edited in units of row data records within a certain data length. When such line data includes a kanji code sandwiched between a predetermined prefix code and a suffix code, it is necessary that the prefix and suffix codes are included in the data within a predetermined record length.

〔従来の技術と発明が解決しようとする問題点〕第3図
は計算機の構成例を示すブロック図である。
[Prior art and problems to be solved by the invention] FIG. 3 is a block diagram showing an example of the configuration of a computer.

処理装置1は、キーボード等の入力装置2からのデータ
入力及び挿入、削除その他の編集指示を編集処理部3で
受は取って、データをバッファ4に保持すると共に、そ
れをディスプレイ等からなる表示装置5に出力して表示
する。
The processing device 1 receives data input and editing instructions such as insertion, deletion, etc. from an input device 2 such as a keyboard in an editing processing section 3, holds the data in a buffer 4, and displays it on a display or the like. It is output to the device 5 and displayed.

例えば、原始プログラムのプログラム文の入力において
、■プログラム文は例えば80バイト長のレコード形式
とし、表示装置5は1行に80桁までの英数記号文字の
表示を可能とする。
For example, in inputting a program statement of a source program, the program statement is in a record format of, for example, 80 bytes long, and the display device 5 is capable of displaying up to 80 alphanumeric symbols and characters on one line.

これに対応してバッファ4には、例えば各1行のデータ
に対して、80バイトの有効部6と適当なバイト長の桁
あふれ部7を設ける。
Correspondingly, the buffer 4 is provided with an effective part 6 of 80 bytes and an overflow part 7 of an appropriate byte length, for example, for each row of data.

このようにして、初期入力で1行のレコードとして入力
されるデータは、順次有効部6に保持され、各行のデー
タ挿入等の編集によってデータ長が80バイトを越えた
場合には、80バイトの境界をあふれたデータを桁あふ
れ部7に保持する。
In this way, the data that is input as a one-line record at initial input is sequentially held in the valid section 6, and if the data length exceeds 80 bytes due to editing such as inserting data in each line, the 80-byte record The data that overflows the boundary is held in the overflow section 7.

そのように桁あふれ部7にデータがあふれている行につ
いて、その後に削除があれば、編集処理部3は削除され
た分だけ桁あふれ部7から有効部6ヘデータをシフトし
て有効データにする。
If there is a deletion after that in a row where data overflows into the overflow area 7, the editing processing unit 3 shifts the data from the overflow area 7 to the valid area 6 by the amount of data deleted, making it valid data. .

編集処理部3は、このようにしてバッファ4に保持する
データのうち、各行の有効部6にあるデータのみを、表
示装置5へ出力して表示し、又利用者が編集作業の終了
を指示すると、有効部6にあるデータのみを編集結果の
データとして、例えば適当な記憶装置8に出力する。
Of the data held in the buffer 4 in this way, the editing processing unit 3 outputs only the data in the valid section 6 of each line to the display device 5 for display, and when the user instructs the user to finish the editing work. Then, only the data in the valid section 6 is outputted to, for example, a suitable storage device 8 as the edited result data.

こ\で公知のように、英数記号文字は1バイトのコード
が1文字に対応するが、漢字の場合には例えば3バイト
の公知の前置コードを置いて、それに続くコードが漢字
コードであることを示し、1以上の漢字の漢字コードの
後に、3バイトの後置コードによって漢字コード列の終
わりを示すようにする。なお各漢字は例えば2バイトの
コードで示す。
As is well known, for alphanumeric characters, a 1-byte code corresponds to one character, but in the case of kanji, for example, a 3-byte well-known prefix code is placed, and the code that follows is the kanji code. After the Kanji code of one or more Kanji characters, a 3-byte postfix code indicates the end of the Kanji code string. Note that each kanji is indicated by, for example, a 2-byte code.

なお、漢字を表示装置5に表示する場合には、公知のよ
うに前記の前置コード及び後置コードのような制御コー
ドは表示されず、各漢字コードに対応する漢字の表示が
、前置コードの3バイトに対応する3桁分左につめて表
示される。
Note that when displaying kanji on the display device 5, control codes such as the prefix code and suffix code are not displayed as is well known, and the kanji corresponding to each kanji code is displayed as the prefix code. The display is shifted to the left by 3 digits corresponding to 3 bytes of the code.

第2図は、バッファ4上のレコードの例を説明する図で
あり、第2図(a)は前記のようなコード系により、英
数記号文字が続いた後に「漢字」という漢字コード列が
ある例であって、図ではにi及びKoによって、それぞ
れ前置コード及び後置コードを表している。
FIG. 2 is a diagram explaining an example of a record on the buffer 4. FIG. 2(a) is a diagram showing an example of a record on the buffer 4, and FIG. In one example, i and Ko represent a prefix chord and a suffix chord, respectively.

第2図において、縦の破線をバッファ4の有効部6と桁
あふれ部7との境界線とし、(alのようなレコードに
データの挿入があり、その結果(b)に示すように漢字
コードの後半部分のみが桁あふれ部7へあふれたとする
。
In Figure 2, the vertical broken line is the boundary line between the effective part 6 and the overflow part 7 of the buffer 4, and data is inserted into a record such as (al), and as a result, the kanji code shown in (b) is Suppose that only the latter half of the data overflows to the overflow area 7.

この場合に編集処理部3は前記のように、表示装置5に
有効部6内にあるデータを表示するように制御するので
、この行のデータも「漢」までは表示される。
In this case, the editing processing section 3 controls the display device 5 to display the data in the valid section 6 as described above, so that the data in this line is also displayed up to "Kan".

しかし、こ\で利用者が作業を終了すると、編集処理部
3は前記のように有効部6内のデータを有効データとし
て記憶装置8へ出力するので、第2図(b)のレコード
を出力しようとして、末尾の漢字コード列が後置コード
が無いために不当コードとして処理し、例えば前置コー
ド以下のコードを削除し、て出力する。
However, when the user finishes the work at this point, the editing processing unit 3 outputs the data in the valid section 6 as valid data to the storage device 8 as described above, so the record shown in FIG. 2(b) is output. However, since the last kanji code string does not have a postfix code, it is treated as an invalid code, and for example, the code after the prefix code is deleted and output.

その結果、利用者が表示装置5で見ていたのとは異なる
内容のレコードが生成されてしまうという問題がある。
As a result, there is a problem in that a record with different content from what the user was viewing on the display device 5 is generated.

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

第1図は、本発明の構成を示す処理の流れ図である。 FIG. 1 is a process flowchart showing the configuration of the present invention.

図は編集処理後の行データの表示出力処理の流れであり
、11〜14は処理ステップを示す。
The figure shows the flow of display output processing of line data after editing processing, and 11 to 14 indicate processing steps.

〔作 用〕[For production]

行データに挿入、削除等の編集があって、表示装置5の
表示を更新するために表示出力を行う場合に、編集処理
部3は処理ステップ11で所要の前処理の後、処理ステ
ップ12で、その行のデータの漢字コード列の部分あぶ
れの有無をチェックし、無ければ処理ステップ14で、
バッファの有効部6のデータを従来と同様に表示出力す
るように制御する。
When row data is edited such as insertion or deletion and output is performed to update the display on the display device 5, the editing processing unit 3 performs the necessary preprocessing in processing step 11, and then performs the necessary preprocessing in processing step 12. , check whether there is any partial blurring in the kanji code string of the data in that row, and if there is no blurring, in processing step 14,
The data in the valid portion 6 of the buffer is controlled to be displayed and output in the same manner as before.

部分あぶれが有れば、処理ステップ13でその漢字コー
ド列全体を完全に桁あふれ部7ヘシフトして有効部6を
空きとし、処理ステップ14に進む。
If there is a partial blur, the entire kanji code string is completely shifted to the overflow area 7 in processing step 13, leaving the effective area 6 empty, and the process proceeds to processing step 14.

従って、その漢字列の漢字はすべて表示されなくなる。Therefore, all the kanji in that kanji string are no longer displayed.

以上の処理方法により、編集終了時に不当コードとして
削除される状態の漢字コードを表示から消すことにより
、利用者に削除されることを警告することができる。
By using the above processing method, the user can be warned that the code will be deleted by erasing from the display the Kanji code that will be deleted as an invalid code when editing is completed.

〔実施例〕〔Example〕

行データに挿入、削除等の編集があって、表示装置5の
表示を更新するために表示出力を行う場合に、編集処理
部3はバッファ4上の該当行データについて、処理ステ
ップ11の前処理を行う。
When row data has been edited such as insertion or deletion and is output for display in order to update the display on the display device 5, the editing processing unit 3 performs pre-processing in processing step 11 on the corresponding row data on the buffer 4. I do.

この処理では、後述の処理ステップ13で挿入されてい
る例えばNu11コードを走査し、Nullコードがあ
ればそれを削除して、それより後の桁あふれ部7を含む
コード列を左に詰める。
In this process, for example, the Nu11 code inserted in processing step 13, which will be described later, is scanned, and if there is a Null code, it is deleted, and the subsequent code string including the overflow part 7 is shifted to the left.

その後、処理ステップ12で、その行のデータの漢字コ
ード列の部分あぶれの有無をチェックし、無ければ処理
ステップ14で、バッファの有効部6のデータを表示出
力するように制御する。
Thereafter, in a processing step 12, it is checked whether or not the Kanji code string of the data in that row is partially blurred.If not, in a processing step 14, the data in the effective part 6 of the buffer is controlled to be displayed and output.

例えば第2図(b)のように部分あぶれが有った場合に
は、処理ステップ13でその漢字コード列の全体を完全
に桁あふれ部フヘシフトして有効部6を空きとし、有効
部6内の空いた文字位置は、例えば有効文字が無いこと
を示すため等に使われる公知のNullコードを置く。
For example, if there is a partial blur as shown in FIG. A known Null code, which is used to indicate, for example, that there are no valid characters, is placed in the empty character position.

第2図の(C)には、(b)に例示したデータを上記の
ように処理した結果を示す。
FIG. 2C shows the results of processing the data illustrated in FIG. 2B as described above.

処理ステップ13の後、処理ステップ14に進み、有効
部6内のデータを表示装置5に出力するので、部分あぶ
れを生じた漢字コード列は表示から完全に抹消される。
After processing step 13, the process proceeds to processing step 14, where the data in the valid section 6 is output to the display device 5, so that the kanji code string that has partially blurred is completely erased from the display.

従って、この表示を見る利用者は、編集前に表示されて
いた漢字が抹消されることにより、現状で終了した場合
にはデータからその漢字が削除されることに気付き、必
要ならば適当な処置をとることができる。
Therefore, the user who sees this display will be aware that the kanji that was displayed before editing will be deleted, and if the current situation ends, the kanji will be deleted from the data, and if necessary, take appropriate measures. can be taken.

以上によって、例えば第2図(C)の状態になった行デ
ータについて、その後もし一部のデータを削除した場合
には、先に述べたように処理ステップ11で、Null
コードを削除して、桁あふれ部7にいたる右側のデータ
を詰めるので、削除文字数が多ければ、例えば(a)の
ような状態に、漢字コード列が復活される。
As a result of the above, for example, if some data is deleted after the row data is in the state shown in FIG.
Since the code is deleted and the data on the right side up to the overflow part 7 is filled in, if the number of deleted characters is large, the kanji code string is restored to the state shown in (a), for example.

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

以上の説明から明らかなように、本発明によれば表示装
置に表示されるデータを、固定長レコードの行単位に編
集する計算機の処理において、編集の結果不当コードと
して削除されるべき状態になった漢字コードのあること
を、表示上で的確且つ容易に警告することにより、利用
者の作業効率を向上するという著しい工業的効果がある
。
As is clear from the above explanation, according to the present invention, in a computer process that edits data displayed on a display device line by line in a fixed-length record, as a result of editing, a state is created that should be deleted as an invalid code. This has a significant industrial effect of improving the work efficiency of the user by accurately and easily warning on the display that there is a kanji code.

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

第1図は本発明の構成を示す処理の流れ図、第2図はデ
ータコード列の説明図、 第3図は計算機の構成例を示すブロック図である。 図において、 lは処理装置、    2は入力装置、3は編集処理部
、    4はハ・7フア、5は表示装置、     
6は有効部、7は桁あふれ部、   8は記憶装置、1
1−14は処理ステップ を示す。 代理人 弁理士  井桁 頁−峻 へ・。 本発明の構成を示す処理の流れ図 第1図 fat  A A A A A A A  −−−−−
−1A AA[1]漢字[本]1(bl  ^B II
 B B B A−−−−−−−−−AA^^AAAA
Aロロ漢:学区1tel  A B B RB B A
 −−−−−・−・AAAAAAA^^ローI]1[ロ
漢字Fロデータコード列の説明図 計算機の構成例を示すブロック図 第3図
FIG. 1 is a process flowchart showing the configuration of the present invention, FIG. 2 is an explanatory diagram of a data code string, and FIG. 3 is a block diagram showing an example of the configuration of a computer. In the figure, 1 is a processing device, 2 is an input device, 3 is an editing processing unit, 4 is a H/7 panel, 5 is a display device,
6 is the effective part, 7 is the overflow part, 8 is the storage device, 1
1-14 indicates processing steps. Agent Patent Attorney Igeta Page - Shun. Figure 1 is a process flowchart showing the configuration of the present invention.
-1A AA [1] Kanji [book] 1 (bl ^B II
B B B A-----------AA^^AAAA
A Roro Han: School District 1tel A B B RB B A
-------・-・AAAAAAAAA^^Ro I] 1 [Explanatory diagram of Ro Kanji F Ro data code string Block diagram showing an example of the configuration of a computer Figure 3

Claims (1)

【特許請求の範囲】 所定の前置コードに始まり、所定の後置コードで終わる
漢字コード列からなる漢字データを含む行データを、表
示装置に表示して編集する処理において、 該行データ中の該後置コードが、該行データの所定有効
データ長を越えた桁位置にある場合には、該後置コード
で終わる漢字コード列の、すべての漢字の該表示装置へ
の表示を抑止すること(12〜14)を特徴とする漢字
データ編集処理方法。
[Scope of Claims] In the process of displaying and editing line data including kanji data consisting of a kanji code string starting with a predetermined prefix code and ending with a predetermined suffix code on a display device, If the postfix code is located in a column position exceeding the predetermined effective data length of the line data, suppress the display of all Kanji characters in the Kanji code string ending with the postfix code on the display device. A kanji data editing processing method characterized by (12 to 14).
JP62084243A 1987-04-06 1987-04-06 Kanji data editing processing method Pending JPS63249257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62084243A JPS63249257A (en) 1987-04-06 1987-04-06 Kanji data editing processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62084243A JPS63249257A (en) 1987-04-06 1987-04-06 Kanji data editing processing method

Publications (1)

Publication Number Publication Date
JPS63249257A true JPS63249257A (en) 1988-10-17

Family

ID=13825023

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62084243A Pending JPS63249257A (en) 1987-04-06 1987-04-06 Kanji data editing processing method

Country Status (1)

Country Link
JP (1) JPS63249257A (en)

Similar Documents

Publication Publication Date Title
JPH0250478B2 (en)
JPH0361596B2 (en)
JPH0666066B2 (en) Document processor with furigana addition function
JPS6320559A (en) document processing device
JPS6177969A (en) Paging method in calibration
JPH08287064A (en) Character decoration adjustment method
JPS641053A (en) Japanese language processor
JPH03127247A (en) Text editing device
JP3155600B2 (en) Information retrieval device
JPS62256071A (en) Character processor
JPH01100660A (en) Abbreviated input method for character processing devices
JPS6481069A (en) Japanese word processor
JPH03179553A (en) Producing device for japanese document
JPH064533A (en) Hangul character input system
JPS61281284A (en) Cursor size alteration system
JPS5971085A (en) Plugging area display system
JPH04199266A (en) document processing device
JPS62105263A (en) Undetermined character display processing system for japanese editing device
JPH0571111B2 (en)
JPS63282562A (en) Text processing system of interactive text editor for screen shift
JPS62151891A (en) Document processing system
JPS60247293A (en) Character space specifying system
JPS63104171A (en) Close print change processing system
JPH03171252A (en) Character processor
JPS61267868A (en) Document processor