JPH01152564A - Japanese character storing system - Google Patents

Japanese character storing system

Info

Publication number
JPH01152564A
JPH01152564A JP62185071A JP18507187A JPH01152564A JP H01152564 A JPH01152564 A JP H01152564A JP 62185071 A JP62185071 A JP 62185071A JP 18507187 A JP18507187 A JP 18507187A JP H01152564 A JPH01152564 A JP H01152564A
Authority
JP
Japan
Prior art keywords
character
japanese
area
characters
code
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
JP62185071A
Other languages
Japanese (ja)
Inventor
Harumi Ikeda
池田 治巳
Masayuki Inoue
井上 昌之
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.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Solution Innovators 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 NEC Corp, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP62185071A priority Critical patent/JPH01152564A/en
Publication of JPH01152564A publication Critical patent/JPH01152564A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To make a data buffer into a fixed size by storing a display character separately in a character code area to store a character code and in a bit map area to store a character attribute and replacing a Japanese shift code with a bit on a bit map. CONSTITUTION:A data buffer 32 is composed of a bit map area 33 and a character code area 34, 1 bit on the area 33 corresponds to 1 byte on the area 34, and the display character is expressed by the combination of them. When display character information is stored, a display character area 31 is searched for one character at a time from its top, an ANK character makes the bit on the area 33 into an OFF state and stores the character code in the area 34. When a Japanese shift-in code 35 appears, the following display characters are Japanese characters until a Japanese shift-out 36 appears, the bit corresponding onto the area 33 is made into an ON state, and the character code is stored in the area 34. Thus, the Japanese shift code can be deleted from on the buffer 32.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は日本語文字記憶方式に関し、特に日本語入出力
装置等に用いる日本語文字記憶方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a Japanese character storage system, and more particularly to a Japanese character storage system used in a Japanese input/output device.

〔従来の技術〕[Conventional technology]

従来の日本語文字記憶方式は日本語入出力装置上に定義
されたフィールドに対して日本語(2バイト系)文字を
入出力する場合、文字コードの他に日本語文字コード列
の前後に日本語シフトコードが付加され、ANK(1バ
イト系のアルファ・ニューメリック・カナ)文字には日
本語シフトコードが付加されない記憶方式である。この
ような日本語入出力装置はフィールドに対して日本語文
字とANK文字を混在して表示する場合、データサイズ
が日本語文字/ANK文字の組み合わせにより次のよう
になる。ある長さを持つフィールドに対して全てANK
文字を指定するとデータサイズはフィールド長と同等で
あり、日本語文字とANK文字を混在して指定した場合
のデータ数は、フィールド長と同等のデータサイズの他
に日本語文字コード列の前後に付加される日本語シフト
コードのサイズを加えた数となる。このように固定長の
フィールドに対して、データサイズは日本語シフトコー
ドが含まれる数だけ多くなり、可変長となる。従来の日
本語入出力装置では、第2図のように日本語文字とAN
K文字の組み合わせにより考えられる最大サイズのバッ
ファ22をフィールド毎に1画面分持ち、日本語シフト
コードを含む表示文字23をバッファ22に格納し、デ
ータサイズをデータサイズ格納領域24に格納していた
In the conventional Japanese character storage method, when inputting or outputting Japanese (double-byte) characters to a field defined on a Japanese input/output device, in addition to the character code, Japanese characters are written before and after the Japanese character code string. This is a storage system in which word shift codes are added, and Japanese shift codes are not added to ANK (single-byte Alpha Numeric Kana) characters. When such a Japanese input/output device displays a mixture of Japanese characters and ANK characters in a field, the data size becomes as follows depending on the combination of Japanese characters/ANK characters. All ANK for fields with a certain length
If you specify a character, the data size is equal to the field length, and if you specify a mixture of Japanese characters and ANK characters, the number of data will be equal to the field length, as well as the data size before and after the Japanese character code string. This number is the sum of the size of the Japanese shift code to be added. In this way, for a fixed length field, the data size increases by the number of Japanese shift codes included, making it variable length. With conventional Japanese input/output devices, Japanese characters and AN
Each field had a buffer 22 of the maximum possible size based on a combination of K characters for one screen, and the display characters 23 including the Japanese shift code were stored in the buffer 22, and the data size was stored in the data size storage area 24. .

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

上述した従来の日本語文字記憶方式では装置上に表示、
又は入力される桁数と、この装置を制御するプログラム
内で管理されるデータバッファ上の文字数では、日本語
シフトコードが含まれる数だけ装置上の桁数とデータバ
ッファ上の文字数は対応をとることができず、データバ
ッファの太きさを固定的に持つことができないため、表
示データコードを格納、又は取り出す時、装置のフィー
ルド長の他にデータサイズを意識しなくてはならないと
いう欠点がある。
In the conventional Japanese character storage method mentioned above, the display on the device,
Or, between the number of digits input and the number of characters on the data buffer managed in the program that controls this device, the number of digits on the device corresponds to the number of characters on the data buffer by the number that includes the Japanese shift code. Since the width of the data buffer cannot be fixed, the disadvantage is that when storing or retrieving the display data code, the data size must be taken into consideration in addition to the field length of the device. be.

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

本発明の日本語文字記憶方式は、日本語(2バイト系)
文字とANK(1バイト系のアルファ・ニューメリック
・カナ等)文字を混在して入出力し得る日本語入出力装
置と、フィールド単位に表示文字を指定するアプリケー
ションプログラムと、アプリケーションプログラムから
の表示文字を画面情報に従って1画面の表示文字データ
に作成するシステムプログラムとで構成されるシステム
において、アプリケーションプログラムから指定される
フィールド単位の表示文字を文字コードを格納する文字
コード領域と文字属性を格納するビットマツプ領域とに
分けて記憶するデータバッファを含み、前記システムプ
ログラムが表示文字中に含まれる日本語シフトコードを
ビットマツプ上のビットに置き換えて管理することを有
する。
The Japanese character storage method of the present invention is Japanese (2-byte system).
A Japanese input/output device that can input and output a mixture of characters and ANK (1-byte alpha, numeric, kana, etc.) characters, an application program that specifies display characters for each field, and a display character input from the application program. In a system consisting of a system program that creates display character data for one screen according to screen information, there is a character code area that stores character codes for display characters in fields specified by the application program, and a bitmap area that stores character attributes. The system program includes a data buffer for separately storing data, and the system program manages the Japanese shift codes included in display characters by replacing them with bits on a bitmap.

即ち、本発明の日本語文字記憶方式は、日本語装置の表
示文字を管理するデータバッファ上から日本語シフトコ
ードを除くため、表示文字の文字属性を格納するビット
マツプ領域と文字コードを格納する文字コード領域を有
している。
That is, the Japanese character storage method of the present invention removes Japanese shift codes from the data buffer that manages display characters of a Japanese device. It has a code area.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示す。第1図において、本
発明の一実施例は文字を入力しかつ文字を表示する日本
語入出力装置15と、日本語入出力装置15に対する表
示文字を実際の入出力インタフェースに応じた形式の表
示文字データ12として指定するアプリケーション11
と、表示文字データ12を、フィールドの位置・サイズ
等の属性を持つ画面情報13をもとに一画面のデータを
作成出力するシステムプログラム14と、表示文字デー
タの文字属性を格納するためのビットマツプ領域17と
表示文字データの文字コード格納領域18とから構成さ
れるデータバッファ16とを含む。
FIG. 1 shows an embodiment of the invention. In FIG. 1, one embodiment of the present invention includes a Japanese input/output device 15 for inputting characters and displaying the characters, and displaying characters for the Japanese input/output device 15 in a format corresponding to an actual input/output interface. Application 11 specified as character data 12
, a system program 14 that creates and outputs one screen of display character data 12 based on screen information 13 having attributes such as field position and size, and a bitmap for storing character attributes of display character data. It includes a data buffer 16 consisting of an area 17 and a character code storage area 18 for display character data.

次に第3図、第4図を用いて本実施例の動作を説明する
Next, the operation of this embodiment will be explained using FIGS. 3 and 4.

始めに本実施例はアプリケーションプログラムから指定
された各フィールド毎の表示文字31を、画面単位に表
示文字を管理するデータバッファ32に格納する。
First, in this embodiment, display characters 31 for each field specified by an application program are stored in a data buffer 32 that manages display characters on a screen-by-screen basis.

このデータバッファ32は、ビットマツプ領域33と文
字コード領域34とで構成さ、れ、ビ・ソトマップ領域
33上の1ビツトと文字コード領域34上の1バイトは
対応がとられていて、その組み合わせにより表示文字を
表わす。
This data buffer 32 is made up of a bitmap area 33 and a character code area 34, and one bit on the bitmap area 33 and one byte on the character code area 34 correspond to each other, and depending on the combination. Represents display characters.

ビットマツプ上のビットは文字属性を表わし、ビットが
オンの時、表示文字が日本語文字であることを示してお
り、ビットがオフの時、表示文字がアルファ・ニューメ
リック、カナ等のANK文字であることを示している。
The bits on the bitmap represent character attributes; when the bit is on, the displayed character is a Japanese character; when the bit is off, the displayed character is an ANK character such as alpha numeric or kana. It is shown that.

第3図においては表示文字情報を格納する時、表示文字
領域31を先頭より1文字ずつサーチしANK文字はビ
ットマツプ領域33上のビットをオフし、文字コードを
文字コード領域34に格納する。
In FIG. 3, when storing display character information, the display character area 31 is searched character by character from the beginning, and for ANK characters, the bits in the bitmap area 33 are turned off, and the character code is stored in the character code area 34.

日本語シフトインコード35が表われた場合、以降の表
示文字は、日本語シフトアウト36が表われるまで日本
語文字であり、ビットマツプ領域33上の対応するビッ
トをオンとし、文字コードを文字コード領域34に格納
する。これにより、データバッファ32上から日本語シ
フトコードを削除することができる。
When the Japanese shift-in code 35 appears, the subsequent displayed characters are Japanese characters until the Japanese shift-out 36 appears, and the corresponding bit on the bitmap area 33 is turned on, and the character code is changed to the character code. It is stored in area 34. Thereby, the Japanese shift code can be deleted from the data buffer 32.

更に、第4図において、データバッファ42から表示文
字41を作成する時、生成の対象となる文字コード44
に対応したビットマツプ領域43上のビットを参照する
Furthermore, in FIG. 4, when creating a display character 41 from a data buffer 42, a character code 44 to be generated is
The bit on the bitmap area 43 corresponding to is referred to.

表示文字のシフト状態が日本語シフトアウト(ANK)
状態で表示文字が日本語文字の時、日本語シフトインコ
ード46を生成後、日本語文字コードを表示文字領域4
1に展開する。
The shift status of displayed characters is Japanese shift out (ANK).
When the displayed characters are Japanese characters in the state, after generating the Japanese shift-in code 46, the Japanese character code is displayed in the display character area 4.
Expand to 1.

表示文字のシフト状態が日本語シフトイン(日本語)状
態で、表示文字がANK文字の時、日本語シフトアウト
コード46を生成後、ANK文字コードを表示文字領域
41に展開する。表示文字のシフト状態と表示文字のコ
ード属性が同じ時、日本語シフトコードは生成せず文字
コードのみ表示文字領域41に展開する。
When the shift state of the display characters is Japanese shift-in (Japanese) and the display characters are ANK characters, a Japanese shift-out code 46 is generated, and then the ANK character code is developed in the display character area 41. When the shift state of the display character and the code attribute of the display character are the same, the Japanese shift code is not generated and only the character code is developed in the display character area 41.

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

以上説明したように本発明は、日本語入出力装置の表示
文字を管理するデータバッファを、ビットマツプと文字
コード領域に分け、日本語入出力装置上のフィールドと
データバッファ上の領域を1対1に対応させることがで
き、更にこれにより、バッファサイズが固定サイズとな
る為、データの格納、取り出し時フィールドの桁数でデ
ータを取り扱うことができ、データバファを固定サイズ
とすることができる。
As explained above, the present invention divides the data buffer for managing display characters on a Japanese input/output device into a bitmap and character code area, and arranges fields on the Japanese input/output device and areas on the data buffer on a one-to-one basis. Furthermore, since the buffer size is fixed, it is possible to handle data according to the number of digits in the field when storing and retrieving data, and the data buffer can have a fixed size.

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

第1図は本発明の一実施例を示す概略図、第2図は従来
の方式によるデータバッファを示す図、第3図は本発明
によるデータバッファへの格納例を示す図、第4図は本
発明による表示文字の生成例を示す図である。 11・・・アプリケーションプログラム、12゜23・
・・表示文字データ、13・・・画面情報、14・・・
システムプログラム、15・・・日本語入出力装置、1
6.32.42・・・データバッファ、17.33゜4
3・・・ビットマツプ領域、18,34.44・・・文
字コード格納領域、21・・・従来の方式による1フイ
ールドのバッファ管理方式、22・・・表示文字コード
格納域、24・・・表示文字コードサイズ格納域、31
.41・・・日本語シフトコードを含む表示文字、35
.45・・・日本語シフトインコード、36.46・・
・日本語シフトアウトコード。 芽 1wJ $ 2 閏 第 3 図 (ltt :  ANKi*フーに−’kcn−:  
F3*語x−tコーに一$4  m
FIG. 1 is a schematic diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing a conventional data buffer, FIG. 3 is a diagram showing an example of data storage in the data buffer according to the present invention, and FIG. FIG. 3 is a diagram showing an example of generation of display characters according to the present invention. 11...Application program, 12°23.
...Display character data, 13...Screen information, 14...
System program, 15...Japanese input/output device, 1
6.32.42...Data buffer, 17.33°4
3...Bitmap area, 18, 34.44...Character code storage area, 21...One field buffer management method using conventional method, 22...Display character code storage area, 24...Display Character code size storage area, 31
.. 41...Display characters including Japanese shift code, 35
.. 45...Japanese shift-in code, 36.46...
・Japanese shift out code. Bud 1wJ $ 2 Leap 3rd Figure (ltt: ANKi*Fu ni-'kcn-:
F3*word x-t 1$4 m

Claims (1)

【特許請求の範囲】[Claims]  2バイト系の日本語文字と1バイト系のANK文字を
混在して入出力し得る日本語入出力装置と、フィールド
単位に表示文字を指定するアプリケーションプログラム
と、該アプリケーションプログラムからの表示文字を画
面情報に従って1画面の表示文字データに作成するシス
テムプログラムとで構成されるシステムにおいて、前記
アプリケーションプログラムから指定されるフィールド
単位の表示文字を文字コードを格納する文字コード領域
と文字属性を格納するビットマップ領域とに分けて記憶
するデータバッファを含み、前記システムプログラムが
表示文字中に含まれる日本語シフトコードをビットマッ
プ上のビットに置き換えて管理することを特徴とする日
本語文字記憶方式。
A Japanese input/output device that can input and output a mixture of 2-byte Japanese characters and 1-byte ANK characters, an application program that specifies display characters for each field, and a screen that displays display characters from the application program. In a system consisting of a system program that creates one screen of display character data according to information, a character code area that stores character codes and a bitmap that stores character attributes for display characters in fields specified by the application program. 1. A Japanese character storage method, comprising a data buffer that is stored separately in an area, and the system program manages Japanese shift codes included in display characters by replacing them with bits on a bitmap.
JP62185071A 1987-07-23 1987-07-23 Japanese character storing system Pending JPH01152564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62185071A JPH01152564A (en) 1987-07-23 1987-07-23 Japanese character storing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62185071A JPH01152564A (en) 1987-07-23 1987-07-23 Japanese character storing system

Publications (1)

Publication Number Publication Date
JPH01152564A true JPH01152564A (en) 1989-06-15

Family

ID=16164303

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62185071A Pending JPH01152564A (en) 1987-07-23 1987-07-23 Japanese character storing system

Country Status (1)

Country Link
JP (1) JPH01152564A (en)

Similar Documents

Publication Publication Date Title
JPS595277A (en) Display indication system for multi-window screen
JPH01152564A (en) Japanese character storing system
JP2569857B2 (en) Variable byte length character input control method
JP2000227790A (en) Display device, and recording medium where the program is recorded
JPS61128325A (en) Picture control system
JPS5928190A (en) Character pattern generation system
JPH01177157A (en) Document arrangement system
KR20070001765A (en) Memory saving character display system and display method thereof
JPS63276163A (en) Document producing device
JPH01175663A (en) Document edition system
JPS62257570A (en) Kana/kanji converter
JPH03179553A (en) Producing device for japanese document
JPH069043B2 (en) Character processing method
JPS60204026A (en) Chinese character data displaying system
JPS63276124A (en) Research information processor
JPH0855112A (en) Document processor
JPH0830597A (en) Method and device for laying out character string
JPH0820940B2 (en) Attribute management method of indefinite byte length character in computer system.
JPS6088991A (en) Character processor
JPH05274357A (en) Kanji @(3754/24)chinese character) data retrieving method
JPH01200471A (en) Document generating device
JPH0546593A (en) Character input device
JPS6258320A (en) Menu display device
JPH0443459A (en) Terminology explanation generation system
JPS60104373A (en) Character processor