JPH05100657A - Display control system for two-byte full-size character - Google Patents

Display control system for two-byte full-size character

Info

Publication number
JPH05100657A
JPH05100657A JP3261569A JP26156991A JPH05100657A JP H05100657 A JPH05100657 A JP H05100657A JP 3261569 A JP3261569 A JP 3261569A JP 26156991 A JP26156991 A JP 26156991A JP H05100657 A JPH05100657 A JP H05100657A
Authority
JP
Japan
Prior art keywords
character
byte
full
screen
size
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
JP3261569A
Other languages
Japanese (ja)
Inventor
Ryoichi Ueda
良一 上田
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe 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 KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP3261569A priority Critical patent/JPH05100657A/en
Publication of JPH05100657A publication Critical patent/JPH05100657A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To match the image of input operation with a display result by composing one logical line of plural physical lines. CONSTITUTION:This display control system is constituted including a size setting part 1 that neither directly reads nor writes a screen display storage device and optionally sets the size of a logically independent screen, a read part 2 which reads out character data consisting of a character kind indicating which of the high-order byte and low-order byte of a two-byte full-size character and one byte character with respect to a character code and a character displayed on the screen at optional positions are, a write part 3 which converts the two-byte full-size character at a final column on the screen into a blank code and writes the character data as it is at other optional positions, a kind decision part 4 which discriminates the high-order byte or low-order byte of the two-byte full-size character of the character data or the one-byte character, and a display part 5 which makes a display on the screen with the optional size from an optional display start position.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は2バイト全角文字の表示
制御方式、特に、1バイト文字と2バイト全角文字とを
扱うことのできるパーソナルコンピュータ用オペレーテ
ィングシステムにおける2バイト全角文字の表示制御方
式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a display control method for 2-byte full-width characters, and more particularly to a display control method for 2-byte full-width characters in a personal computer operating system that can handle 1-byte and 2-byte full-width characters. .

【0002】[0002]

【従来の技術】従来の技術としては、例えば、画面上で
文字列データを編集するときに、ある行の最終桁で2バ
イト全角文字を入力することがよくある。このような場
合に従来は論理行の単位を1行として、最終桁での入力
を無効としたり、次の行の先頭桁から2バイト全角文字
を表示するのが一般的であった。
2. Description of the Related Art As a conventional technique, for example, when editing character string data on a screen, a 2-byte full-width character is often input at the last digit of a certain line. In such a case, conventionally, the unit of the logical line is set to one line, the input at the last digit is invalidated, and the 2-byte full-width character is displayed from the first digit of the next line.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の技術
は、論理行の単位を物理行の1行とすると物理行以上の
文字数は入力できないことになる。また、次の行の先頭
桁から2バイト文字を表示すると、入力操作のイメージ
と表示結果が異なることになるという欠点があった。
In the above-mentioned conventional technique, if the unit of the logical line is one physical line, the number of characters beyond the physical line cannot be input. Further, when a 2-byte character is displayed from the first digit of the next line, there is a drawback that the image of the input operation and the display result are different.

【0004】[0004]

【課題を解決するための手段】本発明の2バイト全角文
字の表示制御方式は、(A) 画面表示用記憶装置を直接読
み書きしない、論理的に独立した画面のサイズを任意に
設定する手段、(B) 前記画面に表示された任意の位置の
文字コードと文字が2バイト全角文字の上位バイトか2
バイト全角文字の下位バイトか1バイト文字かの文字種
類とから構成される文字データを読み出す手段、(C) 前
記画面の最終桁の2バイト全角文字を空白コードに変換
し、それ以外の任意の位置では文字データをそのまま書
き込む手段、(D) 文字データの2バイト全角文字の上位
バイトと、2バイト全角文字の下位バイトと1バイト文
字とを判別する手段、(E) 前記画面を任意の表示開始位
置から任意のサイズで表示する手段、とを含んで構成さ
れる。
The 2-byte full-width character display control method of the present invention is (A) means for arbitrarily setting the size of a logically independent screen without directly reading or writing the screen display storage device, (B) The character code and the character at the arbitrary position displayed on the screen is 2 bytes.
A means for reading character data consisting of the lower byte of a byte full-width character or a character type such as a single-byte character, (C) converting the 2-byte full-width character of the last digit of the screen into a blank code, and any other At the position, means for writing the character data as it is, (D) means for discriminating between the upper byte of the 2-byte full-width character and the lower byte of the 2-byte full-width character and the 1-byte character, (E) any display of the screen Means for displaying an arbitrary size from the start position, and.

【0005】[0005]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
The present invention will be described in detail with reference to the drawings.

【0006】図1は、本発明の一実施例を示すブロック
図である。図1に示す2バイト全角文字の表示制御方式
は、(A) 画面表示用記憶装置を直接読み書きしない、論
理的に独立した画面のサイズを任意に設定する、サイズ
設定部1、(B) 前記画面に表示された任意の位置の文字
コードと文字が2バイト全角文字の上位バイトか2バイ
ト全角文字の下位バイトか1バイト文字かの文字種類と
から構成される文字データを読み出す、読み出し部2、
(C) 前記画面の最終桁の2バイト全角文字を空白コード
に変換し、それ以外の任意の位置では文字データをその
まま書き込む、書き込み部3、(D) 文字データの2バイ
ト全角文字の上位バイトと、2バイト全角文字の下位バ
イトと1バイト文字とを判別する、種類判別部4、(E)
前記画面を任意の表示開始位置から任意のサイズで表示
する、表示部5、とを含んで構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. The 2-byte full-width character display control method shown in FIG. 1 is (A) does not directly read and write the screen display storage device, and sets a logically independent screen size arbitrarily, (B) A reading unit 2 for reading character data composed of a character code at an arbitrary position displayed on the screen and a character type of a character, which is a high-order byte of a 2-byte full-width character, a low-order byte of a 2-byte full-width character, or a 1-byte character ,
(C) Converts the 2-byte full-width character at the last digit of the screen into a blank code and writes the character data as it is at any other position. (D) Character data 2-byte full-width character upper byte And a type discriminating unit 4, (E) for discriminating between a lower byte of a 2-byte full-width character and a 1-byte character
And a display unit 5 for displaying the screen in an arbitrary size from an arbitrary display start position.

【0007】図2は本実施例における文字データ入力時
の動作を説明する説明図である。現在カーソルのある行
をn行とし、次の行をn+1行とする。ここで2バイト
全角文字“亜”をn行の最終桁の位置で入力するとき、
2バイト全角文字“亜”の文字コード“889F”を種
類判別部4は2バイト全角文字と判別する。書き込み部
3はn行の最終桁に空白コード“20”を、n+1行の
先頭桁に2バイト全角文字“亜”の上位バイト”88”
を、2桁目に下位バイト“9F”をそれぞれ書き込む。
この2バイト全角文字“亜”は先頭桁が表示されないた
め、文字の右半分のみが表示される。入力された文字が
1バイト文字であれば、n行の最終桁に1バイト文字が
書き込まれ、n+1行の先頭桁には何も書き込まれな
い。
FIG. 2 is an explanatory view for explaining the operation at the time of inputting character data in this embodiment. The line where the cursor is currently positioned is set to n line, and the next line is set to n + 1 line. Here, when inputting the 2-byte full-width character "A" at the position of the last digit of n line,
The type discriminating unit 4 discriminates the character code “889F” of the 2-byte full-width character “A” as the 2-byte full-width character. The writing unit 3 has a blank code “20” in the last digit of the nth row and a high-order byte “88” of the 2-byte full-width character “A” in the first digit of the n + 1th row.
Write the lower byte “9F” in the second digit.
Since the leading digit of this 2-byte full-width character "A" is not displayed, only the right half of the character is displayed. If the input character is a 1-byte character, a 1-byte character is written in the last digit of the nth row and nothing is written in the first digit of the n + 1th row.

【0008】図3は本発明における一実施例における文
字データ挿入時の動作を説明する説明図である。現在カ
ーソルのある行をn行とし、次の行をn+1行とする。
n行の最終行には空白コード“20”が、n+1行の先
頭桁には2バイト全角文字“亜”の上位バイト“88”
が、2桁目には下位バイト“9F”がそれぞれ書き込ま
れているとする。n行のカーソル位置での1バイト文字
の挿入により、カーソル位置以降の全ての文字データが
1バイト分後方に移動するとき、読み出し部2はn行の
最終桁に書き込まれた文字データを読み出す。この最終
桁の文字データが空白コード“20”であるとき、2バ
イト全角文字の上位バイトの変換されたものである可能
性があるため、続いて読み出し部2はn+1行の先頭桁
の文字データを読み出す。この文字データが2バイト全
角文字の上位バイトであるならば、書き込み部3はn+
1行の2桁目に上位バイト“88”を、3桁目に下位バ
イト“9F”を書き込む。これにより右半分のみが表示
されていた2バイト文字は全体が表示されるようにな
る。n行の最終桁が1バイト文字であれば、書き込み部
3はn+1行の2桁目に1バイト文字を書き込む。
FIG. 3 is an explanatory view for explaining the operation at the time of inserting character data in one embodiment of the present invention. The line where the cursor is currently positioned is set to n line, and the next line is set to n + 1 line.
The blank code “20” is in the last line of the nth line, and the upper byte “88” of the 2-byte double-byte character “A” is in the first digit of the n + 1th line.
However, it is assumed that the lower byte "9F" is written in the second digit. When all the character data after the cursor position moves backward by 1 byte due to the insertion of the 1-byte character at the cursor position of the nth row, the reading unit 2 reads the character data written in the last digit of the nth row. When the character data of the last digit is the blank code “20”, it is possible that the upper byte of the 2-byte full-width character has been converted. Read out. If this character data is the upper byte of a 2-byte full-width character, the writing unit 3 will output n +
The upper byte "88" is written in the second digit of the first row, and the lower byte "9F" is written in the third digit. As a result, the entire double-byte character that was displayed only in the right half will be displayed. If the last digit of the nth row is a 1-byte character, the writing unit 3 writes the 1-byte character in the second digit of the (n + 1) th row.

【0009】図4は本発明における一実施例における文
字データ削除時の動作を説明する説明図である。現在カ
ーソルのある行をn行とし、次の行をn+1行とする。
n行の最終桁には空白コード“20”が、n+1行の先
頭桁には2バイト全角文字“亜”の上位バイト“88”
が、2桁目には下位バイト“9F”がそれぞれ書き込ま
れているとする。n行のカーソル位置での1バイトデー
タの削除により、カーソル位置以降の全ての文字データ
が1バイト分前方に移動するとき、読み出し部2はn行
の最終桁の文字データを読み出す。この文字データが空
白コード“20”であるならば2バイト全角文字の上位
バイトの変換されたものである可能性があるため、続い
て読み出し部2はn+1行の先頭桁の文字データを読み
出す。この文字データが2バイト全角文字の上位バイト
であるならば、書き込み部3は2バイト全角文字の上位
バイト“88”をn行の最終桁の1桁前に、下位バイト
“9F”を最終桁に、空白コードをn+1行の先頭桁に
それぞれ書き込む。最終桁の文字データが1バイト文字
のとき、読み出し部2はn+1行の2桁目の文字データ
を読み出し、書き込み部3はn行の最終桁に書き込む。
FIG. 4 is an explanatory view for explaining the operation when deleting character data in one embodiment of the present invention. The line where the cursor is currently positioned is set to n line, and the next line is set to n + 1 line.
A blank code "20" is in the last digit of the nth row, and a high-order byte "88" of the 2-byte double-byte character "A" is in the first digit of the n + 1th row.
However, it is assumed that the lower byte "9F" is written in the second digit. When all the character data after the cursor position moves forward by 1 byte due to the deletion of the 1-byte data at the cursor position of the nth row, the reading unit 2 reads the character data of the last digit of the nth row. If this character data is the blank code “20”, there is a possibility that the upper byte of the 2-byte full-width character has been converted, so that the reading unit 2 subsequently reads the character data of the first digit of the (n + 1) th row. If this character data is the high-order byte of the 2-byte full-width character, the writing unit 3 sets the high-order byte “88” of the 2-byte full-width character 1 digit before the last digit of the nth row and the low-order byte “9F” as the last digit. Then, the blank code is written in the leading digit of the (n + 1) th row. When the character data in the last digit is a 1-byte character, the reading unit 2 reads the character data in the second digit in the (n + 1) th row, and the writing unit 3 writes it in the last digit in the nth row.

【0010】[0010]

【発明の効果】本発明の2バイト全角文字の表示制御方
式は、2バイト全角文字をある行の最終桁から次の行の
先頭桁にかけて挿入、削除等を行ってもデータの喪失が
ないのみでなく、2バイト全角文字データの部分的な表
示が可能であるため、画面上での表示結果と入力操作の
イメージが同一のものとなり、違和感なく操作できると
いう効果がある。
EFFECTS OF THE INVENTION The 2-byte full-width character display control method of the present invention does not cause data loss even if a 2-byte full-width character is inserted or deleted from the last digit of a line to the first digit of the next line. In addition, since the 2-byte full-width character data can be partially displayed, the display result on the screen and the image of the input operation are the same, and there is an effect that the operation can be performed comfortably.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】本実施例における文字データ入力時の動作説明
図である。
FIG. 2 is an explanatory diagram of an operation when inputting character data in the present embodiment.

【図3】本実施例における文字データ挿入時の動作説明
図である。
FIG. 3 is an operation explanatory diagram when character data is inserted in the present embodiment.

【図4】本実施例における文字データ削除時の動作説明
図である。
FIG. 4 is an operation explanatory diagram when deleting character data in the present embodiment.

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

1 サイズ設定部 2 読み出し部 3 書き込み部 4 種類判別部 5 表示部 1 size setting unit 2 reading unit 3 writing unit 4 type discriminating unit 5 display unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】(A) 画面表示用記憶装置を直接読み書きし
ない、論理的に独立した画面のサイズを任意に設定する
手段、(B) 前記画面に表示された任意の位置の文字コー
ドと文字が2バイト全角文字の上位バイトか2バイト全
角文字の下位バイトか1バイト文字かの文字種類とから
構成される文字データを読み出す手段、(C) 前記画面の
最終桁の2バイト全角文字を空白コードに変換し、それ
以外の任意の位置では文字データをそのまま書き込む手
段、(D) 文字データの2バイト全角文字の上位バイト
と、2バイト全角文字の下位バイトと1バイト文字とを
判別する手段、(E) 前記画面を任意の表示開始位置から
任意のサイズで表示する手段、とを含むことを特徴とす
る2バイト全角文字の表示制御方式。
1. (A) Means for arbitrarily setting the size of a logically independent screen without directly reading or writing the screen display storage device, (B) Character code and characters at any position displayed on the screen Means for reading character data consisting of the upper byte of a 2-byte full-width character, the lower byte of a 2-byte full-width character, or the character type of a single-byte character, (C) The 2-byte full-width character at the last digit of the screen is blank A means to convert to a code and write the character data as it is at any other position, a means to distinguish (D) the upper byte of a 2-byte full-width character, the lower byte of a 2-byte full-width character, and a 1-byte character And (E) means for displaying the screen in an arbitrary size from an arbitrary display start position, and a display control method for 2-byte full-width characters.
JP3261569A 1991-10-09 1991-10-09 Display control system for two-byte full-size character Pending JPH05100657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3261569A JPH05100657A (en) 1991-10-09 1991-10-09 Display control system for two-byte full-size character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3261569A JPH05100657A (en) 1991-10-09 1991-10-09 Display control system for two-byte full-size character

Publications (1)

Publication Number Publication Date
JPH05100657A true JPH05100657A (en) 1993-04-23

Family

ID=17363735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3261569A Pending JPH05100657A (en) 1991-10-09 1991-10-09 Display control system for two-byte full-size character

Country Status (1)

Country Link
JP (1) JPH05100657A (en)

Similar Documents

Publication Publication Date Title
JPH05100657A (en) Display control system for two-byte full-size character
JP2002007420A (en) Electronic dictionary device and its program recording medium
JPS6010348B2 (en) Automatic conversion method for half-width and full-width characters
JPH0571109B2 (en)
JPS5914037A (en) Word processor
JP2771020B2 (en) Character processor
JPH02297167A (en) Character string editing device
JP2579764B2 (en) Kana-Kanji conversion device
JP2713942B2 (en) Kana-Kanji conversion device
JPH025175A (en) Character processor
JP3236038B2 (en) Character processing apparatus and method
JPS5969831A (en) Device for documentation
JPS58195928A (en) Japanese language input device
JPS59730A (en) Asynchronous hard copy system of display screen
JPH03176759A (en) Character processor
JPH0816908B2 (en) Character processing device and character processing method
JPH069043B2 (en) Character processing method
JPS60211565A (en) Language processing unit
JPS63722A (en) Keyboard
JPS6043737A (en) Crt display device with local command function
JPH02161557A (en) Character processor
JPH03141461A (en) Document processor
JPS60204026A (en) Chinese character data displaying system
JPH0571110B2 (en)
JPH0830597A (en) Method and device for laying out character string