JP2509186B2 - Code conversion method - Google Patents

Code conversion method

Info

Publication number
JP2509186B2
JP2509186B2 JP61133113A JP13311386A JP2509186B2 JP 2509186 B2 JP2509186 B2 JP 2509186B2 JP 61133113 A JP61133113 A JP 61133113A JP 13311386 A JP13311386 A JP 13311386A JP 2509186 B2 JP2509186 B2 JP 2509186B2
Authority
JP
Japan
Prior art keywords
shift
code
key
input method
information
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.)
Expired - Lifetime
Application number
JP61133113A
Other languages
Japanese (ja)
Other versions
JPS62288920A (en
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.)
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 JP61133113A priority Critical patent/JP2509186B2/en
Publication of JPS62288920A publication Critical patent/JPS62288920A/en
Application granted granted Critical
Publication of JP2509186B2 publication Critical patent/JP2509186B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概 要〕 シフト状態に応じて別個のキーコードを発生させる手
段を採用すると共に、該キーコード並びにシフトキー及
び入力方法指定キーの設定状態間の関係で決まるコード
変換のための制御データ及び変換出力コードを格納する
コード変換テーブルを設け、前記キーコードの変換出力
コードへの変換に際してキーボード処理部にてシフト状
態管理レジスタ及び入力方法制御レジスタ並びにコード
変換テーブルから読み出された制御データに応答してキ
ーコードの変換出力コードへの変換を行うようにした。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A means for generating a separate key code according to a shift state is adopted, and a code conversion determined by a relationship between the key code and the setting states of a shift key and an input method designation key is performed. A code conversion table for storing control data and conversion output code for converting the key code into the conversion output code is read from the shift state management register, the input method control register and the code conversion table by the keyboard processing unit. The key code is converted into the output code in response to the control data.

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

本発明はコード変換方式に関し、更に詳しく言えば、
キーコードの文字コード若しくは制御コードへ変換手段
を改善したコード変換方式に関する。
The present invention relates to a code conversion method, and more specifically,
The present invention relates to a code conversion method in which the conversion means of a key code into a character code or a control code is improved.

端末装置を介してデータ処理装置へ接続されて各種情
報を送り込むキーコードには複数のキーが設けられる
が、そのキー数にはキーボードの操作性,コンパクト性
などから、その数に制限がある反面、それらキーからの
多数の情報を入力させたいというっ要求がある。
The key code, which is connected to the data processing device via the terminal device and sends various information, is provided with a plurality of keys, but the number of keys is limited due to the operability and compactness of the keyboard. , I have a request to input a lot of information from those keys.

これらの相反する要求を満たすための1つの手段とし
て、情報入力キーにシフトキー等を関連せしめて少ない
情報入力キーから、それ単独で情報入力を行なっていた
場合に入力し得る情報よりも多くの情報を入力し得るよ
うにしている。
As one means for satisfying these contradictory requirements, the information input key is associated with a shift key or the like, and more information is input from a smaller number of information input keys than information that can be input by itself. I am able to enter.

〔従来の技術〕[Conventional technology]

従来における上述情報の1つの入力方式は第7図及び
第8図に示すようなものであった。
One conventional input method of the above-mentioned information is as shown in FIGS. 7 and 8.

キーボード30からのキーコードによりこれに対応する
キー種類ビット及びテーブル番号がキーコードテーブル
38(第9図)から出力される。押圧されたキーが制御キ
ーであれば(第8図のステップS20のN)、キー種類ビ
ットは“1"となっており、そのテーブル番号により制御
コードテーブル40(第10図)が参照されて制御コードが
出力される(第8図のステップS22)。
Depending on the key code from the keyboard 30, the corresponding key type bit and table number are the key code table.
Output from 38 (Fig. 9). If the pressed key is the control key (N in step S20 in FIG. 8), the key type bit is "1", and the control code table 40 (FIG. 10) is referred to by the table number. The control code is output (step S22 in FIG. 8).

押圧されたキーが文字キーであれば、キー種類ビット
は“0"となっており、前記出力されたテーブル番号によ
って文字コードテーブル42(第11図)が参照され、その
うちのシフト状態管理レジスタ34のシフト情報によって
決まる2バイト文字コード又はローマ字入力用アルファ
ベットコードが変換のために用いられる(第8図のステ
ップS24〜S46)。
If the pressed key is a character key, the key type bit is "0", the character code table 42 (Fig. 11) is referred to by the output table number, and the shift state management register 34 among them is referred to. The 2-byte character code or the Roman alphabet input alphabet code determined by the shift information is used for conversion (steps S24 to S46 in FIG. 8).

その後に、入力キーについての入力方法についての処
理が為される。即ち、入力方法制御レジスタ36の入力方
法指定情報を参照して通常入力かローマ字入力かの判別
を行なう(第8図のステップS48)。
After that, processing for the input method for the input key is performed. That is, the input method specification information in the input method control register 36 is referred to determine whether the input is normal input or Roman alphabet input (step S48 in FIG. 8).

通常入力であるならば(第8図のステップS48の
Y)、文字コードテーブル42から出力された2バイト文
字コードにより入力可能又は不可能(不可能に対する2
バイト文字コードはX'0000となっている)かを識別し、
入力可能ならばそれに対応する出力を行なう(第8図ス
テップS50)。
If it is a normal input (Y in step S48 in FIG. 8), input is possible or impossible (2 for impossible) by the 2-byte character code output from the character code table 42.
Byte character code is X'0000)
If input is possible, the corresponding output is performed (step S50 in FIG. 8).

ローマ字入力であれば(第8図のステップS48の
N)、シフト状態レジスタ34のシフト情報を参照してそ
れが英数シフト,英記号シフトであるならば(第8図の
ステップS52のY)、通常入力の場合と同様の処理を行
なう。
If it is a roman character input (N in step S48 in FIG. 8), the shift information in the shift state register 34 is referred to and if it is an alphanumeric shift or an alphabet symbol shift (Y in step S52 in FIG. 8). , Performs the same processing as for normal input.

シフト状態レジスタ34のシフト情報がかな・カナ記号
シフトであるならば(第8図のステップS54のY)、押
圧入力キーからのキーコードで記号入力チェックテーブ
ル(第12図参照)を参照して入力可能又は入力不可能の
判別を為して入力可能ならば(第8図のステップS56の
Y)、通常入力と同様の処理に進む。
If the shift information in the shift state register 34 is a kana / kana symbol shift (Y in step S54 in FIG. 8), refer to the symbol input check table (see FIG. 12) with the key code from the press input key. If the input is possible or not (Y in step S56 in FIG. 8), the process proceeds to the same process as the normal input.

ひらがな・カタカナシフトである場合には、押圧入力
キーからのキーコードで第1の直接入力チェックテーブ
ル(第13図)を参照して入力可能か又は入力不可能の判
別を為して入力可能ならば(第8図のステップS58の
Y)、通常入力の場合と同様の処理を行なう。入力不可
能ならば(第8図のステップS58のN)、上述した如く
して文字コードテーブル42から出力されたアルファベッ
トコードにて第2の直接入力チェックテーブル48(第14
図)を走査してコード一致が得られたとき(第8図のス
テップS62のY)、該テーブル48の対応2バイトコード
を2バイト文字コードとして出力する。
In the case of Hiragana / Katakana shift, if it is possible to input with the key code from the press input key, refer to the first direct input check table (Fig. 13) or determine if it is possible or not. In this case (Y in step S58 in FIG. 8), the same processing as in the case of normal input is performed. If input is not possible (N in step S58 in FIG. 8), the second direct input check table 48 (14th step) using the alphabet code output from the character code table 42 as described above.
When a code match is obtained by scanning (FIG. 8) (Y in step S62 in FIG. 8), the corresponding 2-byte code in the table 48 is output as a 2-byte character code.

上記走査によりコード一致が得られないときつまり直
接入力不可能なとき(第8図のステップS60のY)、上
述の出力されたアルファベットコードにてアルファベッ
トテーブル50(第15図)を参照して入力可能か入力不可
能かの判別を為して入力可能ならば(第8図のステップ
S64のY)、そのアルファベットコードを出力コードと
する。
When no code match is obtained by the above scanning, that is, when direct input is not possible (Y in step S60 in FIG. 8), the above-mentioned output alphabet code is input with reference to the alphabet table 50 (FIG. 15). If input is possible after determining whether it is possible or not (step of FIG. 8)
The output code is the alphabet code of S64 Y).

このようなコード変換処理されてキーボード処理部32
から出力されるコードは、引き続いて図示しないかな漢
字変換部の利用に供される。
Such a code conversion process is performed and the keyboard processing unit 32
The code output from is continuously used for the Kana-Kanji conversion unit (not shown).

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

このように、押圧された入力キーコードのかな漢字変
換部での利用に先立って必要とならコード変換に3つの
テーブル(キーコードテーブル38,制御コードテーブル4
0,文字コードテーブル42)を必要とするほか、これらテ
ーブルを使用して得られるコードの入力可能又は入力不
可能の判別のために、更に押圧入力キーに対するシフト
の有無、入力方法に応じて決まる別々のテーブルを必要
とする。
As described above, three tables (key code table 38, control code table 4) are provided for code conversion if necessary before using the pressed input key code in the Kana-Kanji conversion unit.
0, character code table 42) is required, and in order to determine whether the code obtained using these tables can be input or not, it is determined according to the presence / absence of a shift to the press input key and the input method. Requires separate tables.

これはハードウェア増を招来するのみならず、上述変
換過程の説明から明らかな如く、コード変換後における
入力可能又は入力不可能についての処理、その処理に異
なるコード(キーコード,2バイト文字コード,アルファ
ベットコード)を関与せしめて初めてその処理が可能に
なること、加えて追加のコード変換処理が必要になって
来る場合があることからその処理に複雑性が加わってし
まい、その処理効率は低いものとなっている。
This not only causes an increase in hardware, but as is clear from the above description of the conversion process, the process of inputting or non-inputting after the code conversion, a different code (key code, 2-byte character code, (Alphabet code) can be processed only after it is involved, and additional code conversion processing may be required, which adds complexity to the processing and its processing efficiency is low. Has become.

本発明は、斯かる問題点に鑑みて創作されたもので、
ハードウェア量の削減を図ると共に処理効率の向上を図
ったコード変換方式を提供することをその目的とする。
The present invention has been created in view of such problems,
It is an object of the present invention to provide a code conversion method that reduces the amount of hardware and improves processing efficiency.

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

第1図は、本発明の原理ブロック図を示す。図に示す
如く、本発明は、上述従来方式の欠点を解決すべく、入
力キーから発生されるコードをシフト状態に応じて異な
るキーコードに変換し、その変換したキーコードから所
定の変換出力コードを得るようにしたものである。本発
明は、複数の文字キー、複数のシフトキー及び入力方法
指定キーを有するキーボードのためのコード変換方式に
おいて、押圧された文字キーから出力された出力コード
及び押圧されたシフトキーから出力されたシフト情報に
応答して該出力コード及び該シフト情報に応じて決まる
1つのキーコードを発生するキーコード発生テーブル12
と、前記シフトキーの押圧で発生されたシフト情報をセ
ットするシフト状態管理レジスタ14と、前記入力方法指
定キーの押圧で敗勢された入力方法指定情報をセットす
る入力方法制御レジスタ16と、入力方法における設定可
能なシフト毎の入力可否判定情報を入力方法毎にキーコ
ードで読み出し可能に格納する情報格納部と、或る入力
方法において設定可能なシフトのうちの或るシフトにお
いて入力が可能な場合の当該或るシフトを識別するシフ
ト情報に対する変換出力コードを前記或る入力方法での
前記設定可能なシフト毎にキーコードで読み出し可能に
格納するコード格納部とを有し、前記情報格納部及び前
記コード格納部の同一キーコードによる読み出しは同時
に為される単一のコード変換テーブル18と、キーボード
処理部20とが設けられる。
FIG. 1 shows a principle block diagram of the present invention. As shown in the figure, according to the present invention, in order to solve the above-mentioned drawbacks of the conventional method, a code generated from an input key is converted into a different key code according to a shift state, and the converted key code is converted into a predetermined conversion output code. Is to get. The present invention relates to a code conversion method for a keyboard having a plurality of character keys, a plurality of shift keys and an input method designation key, and an output code output from a pressed character key and shift information output from the pressed shift key. Key code generation table 12 for generating one key code determined according to the output code and the shift information in response to
A shift state management register 14 for setting shift information generated by pressing the shift key, an input method control register 16 for setting input method specifying information defeated by pressing the input method specifying key, and an input method In the case where information can be input in a certain shift of the shifts that can be set in a certain input method, and an information storage unit that stores the input permission / prohibition determination information for each shift that can be set in a key code for each input method A code storage unit that stores a conversion output code for shift information for identifying the certain shift in a readable manner with a key code for each of the settable shifts in the certain input method, the information storage unit, and There is provided a single code conversion table 18 and a keyboard processing unit 20 which are simultaneously read out by the same key code in the code storage unit. That.

そして、前記複数の文字キーのうちの或る1つの文字
キーを或る入力方法及び或るシフトで使用したいとき、
前記或る入力方法を前記入力方法指定キーで指定し、且
つ前記或るシフトを前記複数のシフトキーのうちの対応
するシフトキーで指定して前記或る入力方法を識別する
入力方法指定情報を前記入力方法制御レジスタ16にセッ
トし、且つ前記或るシフトを識別するシフト情報を前記
シフト状態管理レジスタ14にセットし、前記入力方法指
定情報及び前記シフト情報を前記キーボード処理部20へ
出力すると共に、前記或る1つの文字キーを押圧して発
生された出力コード及び前記シフト情報をキーコード発
生テーブル12へ出力してキーコードを発生させ、該キー
コードを前記キーボード処理部20に出力する。前記入力
方法指定情報、シフト情報及びキーコードを受け取った
前記キーボード処理部20は、前記入力方法指定情報から
前記或る入力方法を判定すると共に、前記キーコードで
前記単一のコード変換テーブル18を読み出し、その読み
出された内容のうちの前記入力方法判定結果に対応する
入力可否判定情報に基づいて、前記シフト状態管理レジ
スタにセットされたシフト情報で識別されるシフトにお
いて前記押圧された或る文字キーの出力コードが変換可
能か否かを判定し、該判定結果に基づいて前記読み出し
で読み出された複数の変換出力コードの中の前記シフト
状態管理レジスタにセットされたシフト情報で識別され
るシフト及び前記入力方法判定結果に対応する変換出力
コードを前記押圧された或る文字キーに対して出力すべ
き変換出力コードとして出力するようにして、本発明は
構成される。
When one character key of the plurality of character keys is desired to be used with a certain input method and a certain shift,
Inputting the input method specifying information for specifying the certain input method with the input method specifying key and the certain shift with the corresponding shift key of the plurality of shift keys to identify the certain input method. Set in the method control register 16, and set shift information for identifying the certain shift in the shift state management register 14, and output the input method designation information and the shift information to the keyboard processing unit 20, and An output code generated by pressing a certain character key and the shift information are output to the key code generation table 12 to generate a key code, and the key code is output to the keyboard processing unit 20. The keyboard processing unit 20 that has received the input method designation information, the shift information, and the key code determines the certain input method from the input method designation information, and uses the key code to display the single code conversion table 18. Based on the readability, the input permission / inhibition determination information corresponding to the input method determination result in the read content, the certain one of the pressures is pressed in the shift identified by the shift information set in the shift state management register. It is determined whether or not the output code of the character key can be converted, and based on the determination result, it is identified by the shift information set in the shift state management register among the plurality of conversion output codes read by the reading. Conversion output to output the shift and the conversion output code corresponding to the input method determination result to the pressed certain character key. The present invention is configured so as to output as a code.

〔作 用〕[Work]

本発明のコード変換方式において、複数の文字キーの
うちの或る1つの文字キーを或る入力方法及び或るシフ
トで使用するとき、前記或る入力方法を前記力方法指定
キーで指定し、且つ前記或るシフトを前記複数のシフト
キーのうちの対応するシフトキーで指定する。
In the code conversion method of the present invention, when a character key of a plurality of character keys is used in a certain input method and a certain shift, the certain input method is designated by the force method designation key, Further, the certain shift is designated by a corresponding shift key of the plurality of shift keys.

指定された前記或る入力方法を識別する入力方法指定
情報は、前記入力方法制御レジスタ16にセットされ、且
つ指定された前記或るシフトを識別するシフト情報は、
前記シフト状態管理レジスタ14にセットされる。その入
力方法指定情報及び前記シフト情報は、前記キーボード
処理部20へ出力されると共に、前記或る1つの文字キー
を押圧して発生された出力コード及び前記シフト情報
は、キーコード発生テーブル12へ出力されて該キーコー
ド発生テーブル12からキーコードが発生され、そのキー
コードは前記キーボード処理部20に出力される。
Input method specifying information for identifying the specified certain input method is set in the input method control register 16, and shift information for identifying the specified certain shift is:
It is set in the shift state management register 14. The input method designation information and the shift information are output to the keyboard processing unit 20, and the output code and the shift information generated by pressing the certain one character key are input to the key code generation table 12. The key code is output and a key code is generated from the key code generation table 12, and the key code is output to the keyboard processing unit 20.

前記入力方法指定情報、シフト情報及びキーコードを
受け取った前記キーボード処理部20は、前記入力方法指
定情報から前記或る入力方法を判定すると共に、前記キ
ーコードで前記単一のコード変換テーブル18を読み出
す。
The keyboard processing unit 20 that has received the input method designation information, the shift information, and the key code determines the certain input method from the input method designation information, and uses the key code to display the single code conversion table 18. read out.

その読み出された内容のうちの前記入力方法判定結果
に対応する入力可否判定情報に基づいて、前記シフト状
態管理レジスタにセットされたシフト情報で識別される
シフトにおいて前記押圧された或る文字キーの出力コー
ドが変換可能か否かが判定される。その判定結果に基づ
いて前記読み出しで読み出された複数の変換出力コード
の中の前記シフト状態管理レジスタにセットされたシフ
ト情報で識別されるシフト及び前記入力方法判定結果に
対応する変換出力コードが前記押圧された或る文字キー
に対して出力すべき変換出力コードとして出力される。
The certain character key pressed in the shift identified by the shift information set in the shift state management register based on the input enable / disable determination information corresponding to the input method determination result in the read content. It is determined whether or not the output code of is convertible. Based on the determination result, the shift identified by the shift information set in the shift state management register among the plurality of conversion output codes read by the reading and the conversion output code corresponding to the input method determination result are It is output as a conversion output code to be output for the pressed certain character key.

この変換出力コードは、従来公知のローマ字処理部、
かな漢字変換処理部での処理に供される。
This conversion output code is a conventionally known Roman character processing unit,
It is used for processing in the Kana-Kanji conversion processing unit.

〔実施例〕〔Example〕

第2図は本発明の一実施例を示す。この図において、
10はキーボードであり、このキーボード10には明示はし
ないが、入力キー(文字キー,制御キー)、各種のシフ
トキー、入力方法指定キーがその上面に配設されている
ことに加えて、これらシフトキーの押圧時にそのシフト
情報をセットしておくシフト状態管理レジスタ14′と、
押圧入力キー出力コードをシフト状態管理レジスタ14′
のシフト情報に応じて決まる所定ビット構成、例えば1
バイトのキーコードを出力するキーコード出力テーブル
12とが設けられている。
FIG. 2 shows an embodiment of the present invention. In this figure,
Reference numeral 10 denotes a keyboard. Although not explicitly shown on the keyboard 10, input keys (character keys, control keys), various shift keys, and an input method designation key are arranged on the upper surface of the keyboard. A shift state management register 14 'for setting the shift information when is pressed,
Press input key output code to shift state management register 14 '
Predetermined bit configuration determined according to the shift information of, for example, 1
Key code output table to output byte key code
12 and are provided.

20はキーボード処理部で、これは後述する処理制御を
司るものであり、このキーボード処理部20から出力され
る変換出力コードは、図示しない公知のローマ字処理
部、かな漢字処理部での処理に供される。
Reference numeral 20 denotes a keyboard processing unit, which controls processing described later. The conversion output code output from the keyboard processing unit 20 is used for processing in a well-known Roman character processing unit and kana-Kanji processing unit (not shown). It

14″はキーボード10上のシフトキーが押圧されたと
き、キーボード処理部20を介してシフト状態管理レジス
タ14′にセットされたと同じく各シフトキー対応のシフ
ト情報がセットされるシフト状態管理レジスタである
(第3図)。このレジスタは使用しているシフトキーに
対応するビットのみが“1"とされ、他のビットは“0"と
される。
Reference numeral 14 ″ is a shift state management register in which, when the shift key on the keyboard 10 is pressed, the shift information corresponding to each shift key is set similarly to that set in the shift state management register 14 ′ via the keyboard processing unit 20 (first). (Fig. 3) In this register, only the bit corresponding to the shift key in use is set to "1", and the other bits are set to "0".

16はキーボード10上の入力方法指定キーが押圧された
とき、キーボード処理部20を介してその入力方法指定情
報がセットされる入力方法制御レジスタである。このレ
ジスタは1ビットレジスタであり、例えば“0"のとき通
常入力、“1"のときローマ字入力が割り当てられる。
Reference numeral 16 is an input method control register in which the input method specifying information is set via the keyboard processing unit 20 when the input method specifying key on the keyboard 10 is pressed. This register is a 1-bit register. For example, when "0", a normal input is assigned, and when "1", a Roman character input is assigned.

18はコード変換テーブルで、そのテーブル構成は第4
図に示す如くなっている。第4図に示すコード変換テー
ブルはキーコードが1バイトから成る場合のものであ
る。即ち、コード変換テーブルはキー種類ビット部18
A、第1及び第2の入力可能シフトテーブル部18B,18C、
第1及び第2の2バイトコード部18D,18E及びアルファ
ベットコード部18Fから成る。これら各部はキーコード
毎に、キー種類ビット部18Aにあってはキー種類ビット
(例えば文字キー又は制御キーの区別のためのビッ
ト)、第1及び第2の入力可能シフトテーブル部18B,18
Cにあっては第5に示す如き入力可能シフトフラグ、第
1の2バイトコード部18Dにあっては通常入力であって
英記号シフト以外のシフト及びローマ字入力であって英
数シフトの場合の2バイト文字コード、第2の2バイト
コード部18Eにあっては通常入力であって英記号シフト
及びローマ字入力であって英数シフト以外で、且つひら
がな・カタカナシフト以外のシフトの場合の2バイト文
字コード、そしてアルファベットコード部18Fにあって
は1バイトコードをそれぞれ格納している。
18 is a code conversion table, the table structure is the fourth
It is as shown in the figure. The code conversion table shown in FIG. 4 is for a case where the key code consists of 1 byte. That is, the code conversion table has the key type bit part 18
A, first and second inputtable shift table units 18B, 18C,
It comprises first and second 2-byte code parts 18D and 18E and an alphabet code part 18F. Each of these units has a key type bit (for example, a bit for distinguishing a character key or a control key) in the key type bit unit 18A for each key code, and the first and second inputtable shift table units 18B, 18
In the case of C, an input possible shift flag as shown in the fifth case, in the case of the first 2-byte code part 18D, a normal input and a shift other than an alphabetic symbol shift, and a Roman character input in the case of an alphanumeric shift 2-byte character code, 2 bytes for the second 2-byte code part 18E in the case of normal input and alphanumeric shift and Roman character input other than alphanumeric shift and shifts other than hiragana / katakana shift The character code and the 1-byte code in the alphabet code section 18F are stored respectively.

以上の構成に成る本発明実施例におけるコード変換過
程を以下に説明する。
The code conversion process in the embodiment of the present invention having the above configuration will be described below.

キーボード10上の或る文字キーが押圧されると共に、
必要に応じてオペレータが与え得んとするシフト機能及
び入力方法指定のためのシフトキー及び入力方法指定キ
ーが押圧されたとする。
While pressing a certain letter key on the keyboard 10,
It is assumed that the shift key and the input method designation key for designating the shift function and the input method that the operator can give as necessary are pressed.

その押圧されたシフトキーのシフト情報はシフト状態
管理レジスタ1′,14″にセットされ、入力方法指定キ
ーからの入力方法指定情報が入力方法制御レジスタ16に
セットされる。
The shift information of the pressed shift key is set in the shift state management registers 1'and 14 ", and the input method designation information from the input method designation key is set in the input method control register 16.

この処理と共に、上記押圧された文字キーの出力コー
ド及び押圧されたシフトキーのシフト情報がキーコード
発生テーブル12の参照に供されて該キーコード発生テー
ブル12からシフト情報に応じて決まる上記押圧された文
字キーの出力コードに対するキーコードが出力される。
例えば、押圧された文字キーの出力コードがH11なる
1バイトである場合にひらがなシフトが指定されるとき
キーコード発生テーブル12からH98なる1バイトのキ
ーコードが出力される如し。
Along with this processing, the output code of the pressed character key and the shift information of the pressed shift key are provided for reference to the key code generation table 12, and the pressed information determined from the key code generation table 12 according to the shift information is pressed. The key code corresponding to the output code of the character key is output.
For example, when the output code of the pressed character key is 1 byte of H. ▽ .11 and the hiragana shift is designated, the key code generation table 12 outputs a 1-byte key code of H. .98.

このようにして、キーボード10から出力されて来るキ
ーコードは以下に述べる如き、キーボード処理部20によ
る一連の処理に供される。
In this way, the key code output from the keyboard 10 is subjected to a series of processes by the keyboard processing unit 20 as described below.

先ず、そのキーコードがコード変換テーブル18を参照
して押圧された入力キーが文字キーであるか制御キーで
あるかの判別が為される(第6図のステップS1)。キー
種類ビットが“1"であり制御キーであるならばそのキー
コードを制御コードとして出力する(第6図のステップ
S2)。
First, with reference to the code conversion table 18, it is determined whether the input key pressed is a character key or a control key (step S1 in FIG. 6). If the key type bit is "1" and it is a control key, the key code is output as a control code (step in FIG. 6).
S2).

キー種類ビットが“0"であり文字キーであるならば以
下の処理に入る。
If the key type bit is "0" and it is a character key, the following processing is performed.

入力方法制御レジスタ16の内容が参照されて指定され
た入力方法が通常入力か否かの判別を為す(第6図のス
テップS3)。
By referring to the contents of the input method control register 16, it is judged whether or not the designated input method is normal input (step S3 in FIG. 6).

通常入力が指定されているならばシフト状態管理レジ
スタ14″の内容と第1の入力可能シフトテーブル部18B
の内容との一致判定を為して(第6図のステップS4)、
入力可能か否かの判別を行なう。キーボード上に装備さ
れている文字キーであって、シフト状態情報及び入力方
法との関連において使用したい文字等としてあり得ない
ものが、押圧されたキー、並びにシフト状態情報及び入
力方法の各情報をみたときに存在するものは、入力不可
とするものである。入力可能であるならば、シフト状態
管理レジスタ14″の内容を参照してそのシフト情報が英
記号シフトを示しているか否かを判定する(第6図のス
テップS5)。英記号シフトを示しているときには第2の
2バイトコード部18Eからの2バイトコードを2バイト
文字コード(英記号のためのもの)として出力するが
(第6図のステップS6)、そうでないときには第1の2
バイトコード部18Dからの2バイトコードを2バイト文
字コードとして出力する(第6図のステップS7)。
If normal input is specified, the contents of the shift state management register 14 ″ and the first inputtable shift table section 18B
It is judged whether it matches with the contents of (step S4 in FIG. 6),
It is determined whether input is possible. Character keys equipped on the keyboard that cannot be used as characters to be used in relation to the shift state information and the input method are the pressed key and the shift state information and the input method information. The existing ones when viewed are those that cannot be entered. If it can be input, it is determined whether or not the shift information indicates an alphabetic symbol shift by referring to the contents of the shift state management register 14 ″ (step S5 in FIG. 6). If so, the 2-byte code from the second 2-byte code section 18E is output as a 2-byte character code (for the English symbol) (step S6 in FIG. 6), but if not, the first 2-byte code is output.
The 2-byte code from the bytecode section 18D is output as a 2-byte character code (step S7 in FIG. 6).

上述入力方法制御レジスタ16の参照によりローマ字入
力が指定されているならば、シフト状態管理レジスタ1
4″の内容と第2の入力可能シフトテーブル部18Cの内容
との一致判定を為して(第6図のステップS8)入力可能
か否かの判別を行なう。この判定処理は、ステップS4と
同じ処理方式に従う。入力可能であるならばシフト状態
管理レジスタ14″の内容を参照してそのシフト情報が英
数シフトを示しているか否かを判定する(第6図のステ
ップS9)。英数シフトを示しているときには第1の2バ
イトコード部18Dからの2バイトコードを2バイト文字
コード(英数2バイトコード)を出力するが(第6図の
ステップS10)、そうでないときにはシフト状態管理レ
ジスタ14″の参照によりそのシフト情報がひらがな・カ
タカナシフトを示しているか否かの判別を為し(第6図
のステップS11)、そのシフトを示していないならば第
2の2バイトコード部18Eからの2バイトコードを2バ
イト文字コード(英記号、かな記号、若しくはカナ記号
の2バイトコード)として出力する(第6図のステップ
S13)。ひらがな・カタカナシフトの場合にはアルファ
ベットコード部18Fからのアルファベットコードを1バ
イトコードとして出力する(第6図のステップS13)。
If Romaji input is designated by referring to the input method control register 16 described above, the shift state management register 1
The contents of 4 ″ and the contents of the second inputtable shift table portion 18C are judged to be coincident (step S8 in FIG. 6) to judge whether or not the input is possible. If the input is possible, the contents of the shift state management register 14 ″ are referred to and it is determined whether or not the shift information indicates an alphanumeric shift (step S9 in FIG. 6). When the alphanumeric shift is indicated, the 2-byte code from the first 2-byte code section 18D is output as a 2-byte character code (alphanumeric 2-byte code) (step S10 in FIG. 6), but otherwise shifts. Whether or not the shift information indicates Hiragana / Katakana shift is determined by referring to the state management register 14 ″ (step S11 in FIG. 6), and if not, the second 2-byte code. The 2-byte code from section 18E is output as a 2-byte character code (2-byte code of English symbol, Kana symbol, or Kana symbol) (step in FIG. 6).
S13). In the case of Hiragana / Katakana shift, the alphabet code from the alphabet code section 18F is output as a 1-byte code (step S13 in FIG. 6).

キーボード処理部20から出力される変換後のコードは
図示しないかな漢字変換部へ転送される。
The converted code output from the keyboard processing unit 20 is transferred to a Kana-Kanji conversion unit (not shown).

なお、上記実施例においては、キーコードの発生をキ
ーボード内で発生する場合について説明したが、その外
部で発生するようにしてもよい。
In the above embodiment, the case where the key code is generated inside the keyboard has been described, but it may be generated outside the keyboard.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、シフト状態及び
入力方法に従って別個のテーブル参照の必要性を除いて
1つのテーブル参照でコード変換、入力可否の判別を為
し得るから、ハードウェアの削減が達成されると同時に
処理の簡易化が図れて処理効率の向上となる。
As described above, according to the present invention, it is possible to perform code conversion and determination as to whether input is possible or not with one table reference, excluding the need for separate table reference according to the shift state and the input method, thus reducing hardware. At the same time, the processing is simplified and the processing efficiency is improved.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示す図、 第3図はシフト状態管理レジスタにセットされるセット
情報を示す図、 第4図はコード変換テーブルのテーブル構成例を示す
図、 第5図はコード変換テーブルの第1及び第2の入力可能
シフトテーブル部の登録内容を示す図、 第6図は第2図実施例の処理フロー、 第7図は従来コード変換部の構成図、 第8図は第7図コード変換部のための処理フロー、 第9図はキーコードテーブルを示す図、 第10図は制御コードテーブルを示す図、 第11図は文字コードテーブルを示す図、 第12図は記号入力チェックテーブルを示す図、 第13図は第1の直接入力チェックテーブルを示す図、 第14図は第2の直接入力チェックテーブルを示す図、 第15図はアルファベットテーブルを示す図である。 第1図及び第2図において、 12はキーコード発生テーブル、 14,14′,14″はシフト状態管理テーブル、 16は入力方法制御レジスタ、 18はコード変換テーブル、 20はキーボード処理部である。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a diagram showing an embodiment of the present invention, FIG. 3 is a diagram showing set information set in a shift state management register, and FIG. 4 is a code conversion table. FIG. 5 is a diagram showing an example of the table configuration, FIG. 5 is a diagram showing registered contents of the first and second inputtable shift table portions of the code conversion table, FIG. 6 is a processing flow of the embodiment of FIG. 2, and FIG. Is a configuration diagram of a conventional code conversion unit, FIG. 8 is a processing flow for the code conversion unit in FIG. 7, FIG. 9 is a view showing a key code table, FIG. 10 is a view showing a control code table, and FIG. Shows a character code table, FIG. 12 shows a symbol input check table, FIG. 13 shows a first direct input check table, FIG. 14 shows a second direct input check table, Figure 15 shows the alphabet table It is to figure. In FIGS. 1 and 2, 12 is a key code generation table, 14, 14 ', 14 "are shift state management tables, 16 is an input method control register, 18 is a code conversion table, and 20 is a keyboard processing unit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の文字キー、複数のシフトキー及び入
力方法指定キーを有するキーボードのためのコード変換
方式において、 押圧された文字キーから出力された出力コード及び押圧
されたシフトキーから出力されたシフト情報に応答して
該出力コード及び該シフト情報に応じて決まる1つのキ
ーコードを発生するキーコード発生テーブル12と、 前記シフトキーの押圧で発生されたシフト情報をセット
するシフト状態管理レジスタ14と、 前記入力方法指定キーの押圧で発生された入力方法指定
情報をセットする入力方法制御レジスタ16と、 入力方法における設定可能なシフト毎の入力可否判定情
報を入力方法毎にキーコードで読み出し可能に格納する
情報格納部と、或る入力方法において設定可能なシフト
のうちの或るシフトにおいて入力が可能な場合の当該或
るシフトを識別するシフト情報に対する変換出力コード
を前記或る入力方法での前記設定可能なシフト毎にキー
コードで読み出し可能に格納するコード格納部とを有
し、前記情報格納部及び前記コード格納部の同一キーコ
ードによる読み出しは同時に為される単一のコード変換
テーブル18と、 キーボード処理部20とを設け、 前記複数の文字キーのうちの或る1つの文字キーを或る
入力方法及び或るシフトで使用したいとき、前記或る入
力方法指定キーで指定し、且つ前記或るシフトを前記複
数のシフトキーのうちの対応するシフトキーで指定して
前記或る入力方法を識別する入力方法指定情報を前記入
力方法を前記入力方法制御レジスタ16にセットし、且つ
前記或るシフトを識別するシフト情報を前記シフト状態
管理レジスタ14にセットし、前記入力方法指定情報及び
前記シフト情報を前記キーボード処理部20へ出力すると
共に、前記或る1つの文字キーを押圧して発生された出
力コード及び前記シフト情報をキーコード発生テーブル
12へ出力してキーコードを発生させ、該キーコードを前
記キーボード処理部20に出力し、 前記入力方法指定情報、シフト情報及びキーコードを受
け取った前記キーボード処理部20は、前記入力方法指定
情報から前記或る入力方法を判定すると共に、前記キー
コードで前記単一のコード変換テーブル18を読み出し、 該読み出された内容のうちの前記入力方法判定結果に対
応する入力可否判定情報に基づいて、前記シフト状態管
理レジスタにセットされたシフト情報で識別されるシフ
トにおいて前記押圧された或る文字キーの出力コードが
変換可能か否かを判定し、該判定結果に基づいて前記読
み出しで読み出された複数の変換出力コードの中の前記
シフト状態管理レジスタにセットされたシフト情報で識
別されるシフト及び前記入力方法判定結果に対応する変
換出力コードを前記押圧された或る文字キーに対して出
力すべき変換出力コードとして出力することを特徴とす
るコード変換装置。
1. A code conversion system for a keyboard having a plurality of character keys, a plurality of shift keys and an input method designation key, wherein an output code output from a pressed character key and a shift output from a pressed shift key. A key code generation table 12 for generating one key code determined according to the output code and the shift information in response to information, and a shift state management register 14 for setting the shift information generated by pressing the shift key, The input method control register 16 for setting the input method specifying information generated by pressing the input method specifying key, and the input enable / disable judgment information for each shift that can be set in the input method are stored in a readable manner by a key code for each input method. The information storage unit and the input in a certain shift among the shifts that can be set in the certain input method A code storage unit that stores a conversion output code for shift information that identifies a certain shift when possible, in a readable manner with a key code for each of the settable shifts in the certain input method, A single code conversion table 18 and a keyboard processing unit 20 are provided, which are used to read the storage unit and the code storage unit with the same key code at the same time. When it is desired to use the certain input method and the certain shift, the certain input method is designated by the certain input method designation key, and the certain shift is designated by the corresponding shift key of the plurality of shift keys. The input method designating information for identifying is set in the input method control register 16 and the shift information for identifying the certain shift is set for the shift state management register. The input method designating information and the shift information to the keyboard processing section 20, and the output code generated by pressing the certain one character key and the shift information. table
12 to generate a key code, output the key code to the keyboard processing unit 20, and the keyboard processing unit 20 receiving the input method designation information, shift information and the key code, the input method designation information The certain input method is determined from the above, the single code conversion table 18 is read with the key code, and based on the input permission / inhibition determination information corresponding to the input method determination result of the read content. Determining whether or not the output code of the certain character key pressed in the shift identified by the shift information set in the shift state management register can be converted, and read by the reading based on the determination result. Of the plurality of converted output codes identified by the shift information set in the shift state management register and the input method determination result A code conversion device which outputs a conversion output code corresponding to the above as a conversion output code to be output to the pressed certain character key.
JP61133113A 1986-06-09 1986-06-09 Code conversion method Expired - Lifetime JP2509186B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61133113A JP2509186B2 (en) 1986-06-09 1986-06-09 Code conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61133113A JP2509186B2 (en) 1986-06-09 1986-06-09 Code conversion method

Publications (2)

Publication Number Publication Date
JPS62288920A JPS62288920A (en) 1987-12-15
JP2509186B2 true JP2509186B2 (en) 1996-06-19

Family

ID=15097109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61133113A Expired - Lifetime JP2509186B2 (en) 1986-06-09 1986-06-09 Code conversion method

Country Status (1)

Country Link
JP (1) JP2509186B2 (en)

Also Published As

Publication number Publication date
JPS62288920A (en) 1987-12-15

Similar Documents

Publication Publication Date Title
US4181972A (en) Means and methods for automatic hyphenating words
US4747053A (en) Electronic dictionary
JP2509186B2 (en) Code conversion method
JPS62274360A (en) Word processor
JP2615851B2 (en) Key input device
KR0164404B1 (en) Key input method and apparatus using phone key-pad
JPS6223354B2 (en)
JPH0222408B2 (en)
JPS6371767A (en) Document producing device
JPH0740263B2 (en) Japanese word processor
JPS6154559A (en) Japanese word processor
JPH0213016A (en) Method for controlling keyboard device
JPS5972511A (en) Special code input device using ordinary code
JP2629946B2 (en) Document processing device
JP2939063B2 (en) Document processing device
JPS58123136A (en) Displaying method of optional character key code
JPH05210671A (en) Word processor
JPS6172360A (en) Close writing kana-to-kanji conversion system
JPS6258358A (en) Text input system
JPH08263486A (en) Device and method for kana/kanji conversion
JPH05323936A (en) Character processor
JPS63261459A (en) Document processor
JPS58219685A (en) Character processor
JPS595274A (en) Character processor
JPS59184941A (en) Kanji code converting method