JP5970255B2 - Operation data output device, operation data output method and program - Google Patents
Operation data output device, operation data output method and program Download PDFInfo
- Publication number
- JP5970255B2 JP5970255B2 JP2012142613A JP2012142613A JP5970255B2 JP 5970255 B2 JP5970255 B2 JP 5970255B2 JP 2012142613 A JP2012142613 A JP 2012142613A JP 2012142613 A JP2012142613 A JP 2012142613A JP 5970255 B2 JP5970255 B2 JP 5970255B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- byte
- operation data
- code
- 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.)
- Active
Links
Images
Description
この発明は、文字列データを操作データに変換して情報処理手段に供給するための操作データ出力装置、操作データ出力方法及びプログラムに関する。 The present invention relates to an operation data output device, an operation data output method, and a program for converting character string data into operation data and supplying it to an information processing means.
従来から、コードリーダ等の読取装置において、コード記号をデコードして得た読取結果の文字列を、PC(パーソナルコンピュータ)等の情報処理装置に転送して、その情報処理装置において集計や編集等の処理を行う技術が知られている。
また、この転送に際して、読取装置を、情報処理装置のキーボード端子(USB(Universal Serial Bus)等の汎用端子でもよい)に接続し、読取装置から、読取結果の文字列と対応するキーボードのキー操作を示す操作データを出力する技術も知られている。
この技術を利用すれば、情報処理装置で動作するアプリケーションに対し、キーボードから文字を入力する場合と同じように読取結果の文字列を入力することができる。
Conventionally, a reading result character string obtained by decoding a code symbol in a reading device such as a code reader is transferred to an information processing device such as a PC (personal computer), and the information processing device counts, edits, etc. A technique for performing the above process is known.
In this transfer, the reading device is connected to a keyboard terminal of the information processing device (may be a general-purpose terminal such as a USB (Universal Serial Bus)), and the key operation of the keyboard corresponding to the character string of the reading result is read from the reading device. A technique for outputting operation data indicating the above is also known.
By using this technique, it is possible to input a character string as a read result for an application operating on the information processing apparatus in the same manner as when inputting characters from the keyboard.
ところで、バーコード等のコード記号はもともと数値やアルファベットのみを記号化するために用いられていたため、近年のように意味のある情報そのものの記号化や漢字の利用が行われるようになってまだ歴史が浅く、その効率的な出力法についても、発展途上であると言える。従って、上記のように操作データを出力しようとする場合、以下のような問題があった。 By the way, code symbols such as barcodes were originally used to symbolize only numerical values and alphabets, so that meaningful information itself has been symbolized and kanji characters have been used as in recent years. However, it can be said that the efficient output method is still developing. Therefore, when trying to output operation data as described above, there are the following problems.
まず、1バイト文字であれば、文字と操作すべきキーとの対応関係は比較的単純である。例えば、読取結果が数字の「1」であれば、それを入力するための操作は、キーボードの「1」のキーのmake(メイク:オン操作)とbreak(ブレイク:オフ操作)をこの順で行うものである。 First, for a single-byte character, the correspondence between the character and the key to be operated is relatively simple. For example, if the reading result is the number “1”, the operation for inputting it is “make” (make: on operation) and break (break: off operation) of the key “1” in this order. Is what you do.
しかし、複数バイト文字(例えばいわゆる全角の2バイト文字)の場合、該当する文字を入力するためのキー操作は、複雑であり、また情報処理装置側で動作している文字入力補助ソフトウェア(Windows(登録商標)の場合IME(Input Method Editor)と呼ばれる)によっても異なる。従って、複数バイト文字を入力するための操作データを適切に生成することは難しかった。
この問題を解決するためには、例えば情報処理装置側に、読取装置から送信されてくるキー操作データを処理するための専用の変換アプリケーションをインストールしておくことが考えられる。
However, in the case of a multi-byte character (for example, a so-called full-width two-byte character), the key operation for inputting the corresponding character is complicated, and character input assist software (Windows ( (Registered Trademark) also called IME (Input Method Editor). Therefore, it has been difficult to appropriately generate operation data for inputting multi-byte characters.
In order to solve this problem, for example, it is conceivable that a dedicated conversion application for processing key operation data transmitted from the reading device is installed on the information processing device side.
図9を用いて、この構成における文字入力について説明する。
図9のPC400において、キーボードドライバ401は、キーボードからの操作データを受け取り、これをOS(Operating System)410が処理可能な形式に変換してOS410に渡す機能を有する。通常のキーボードに対応するキーボードドライバ401は、OS410と共に提供されるのが一般的である。
Character input in this configuration will be described with reference to FIG.
In the PC 400 of FIG. 9, the
変換アプリケーション402は、読取装置300のメーカーが提供するアプリケーションであり、キーボードドライバ401からOS410に渡される操作データをキーボードフックにより途中で取得し、一部加工してOS410に渡す機能を備える。すなわち、特定のキー操作の組み合わせを、複数バイト文字の入力を示すデータ(Windows(登録商標)の場合、WM_IME_CHARメッセージを用いることができる)に置き換えてOS410に渡す。
The
OS410は、PC400全体を管理する基本ソフトウェアであり、ハードウェアを制御して各種アプリケーションから利用可能な基本機能を提供するが、図9には、キーボードからの文字入力に関する機能を簡単に示している。 The OS 410 is basic software for managing the entire PC 400 and provides basic functions that can be used from various applications by controlling the hardware. FIG. 9 simply shows functions related to character input from the keyboard. .
入力処理部411は、キーボードドライバ401から受け取った仮想キーコードに基づき、アクティブなアプリケーションに対し、入力内容を示す情報を渡す。例えば、「1」のキーが押下された場合には、1バイト文字の「1」が入力された旨の情報を渡す等である。図9の例では、読取結果の文字列を集計及び編集するアプリケーションであるエディタ420がアクティブであるとする。
また、入力処理部411は、複数バイト文字の入力を示す仮想キーコードやメッセージを受け取った場合、入力内容を示す情報を、エディタ420に直接渡すのではなく、文字入力補助部412に渡す。
Based on the virtual key code received from the
In addition, when receiving a virtual key code or message indicating input of a multi-byte character, the
文字入力補助部412は、上述の文字入力補助ソフトウェアによって実現される機能を示し、キー操作に基づき、かな漢字変換を始めとする、複数バイト文字の入力を補助する機能を提供する。そして、入力すべき文字が確定された場合に、その確定された入力内容を示す情報を、アクティブなアプリケーションに渡す。
また、入力処理部411は、例えば上述のWM_IME_CHARメッセージを文字入力補助部412に渡すことにより、直接(かな漢字変換を経ずに)文字コードを指定して複数バイト文字の入力を指示することも可能である。
The character input
In addition, the
このようなPC400に対し、コード記号を読み取ってデコードする機能を備えた読取装置300は、読取結果の文字列データのうち、1バイト文字の文字コードが含まれる部分と、複数バイト(ここでは2バイト)文字の文字コードが含まれる部分とで、異なったアルゴリズムで操作データを出力する。
まず1バイト文字の場合、OS410に対して該当文字の入力を指示するための操作データとして、文字コードと対応するキーのmakeとbreakの操作データを順に出力する。例えば図9に示す「12A」の文字列が配置されていたとすると、そのうち「1」や「2」については、「1」あるいは「2」のキーについてmakeとbreakの操作データを順に出力すればよい。図中の「key 1」及び「key 2」はこの操作データを示す。
A reading apparatus 300 having a function of reading and decoding a code symbol with respect to such a PC 400 includes a portion including a character code of a 1-byte character in character string data of a read result, and a plurality of bytes (here, 2 bytes). Operation data is output with a different algorithm depending on the part containing the character code of the (byte) character.
First, in the case of a 1-byte character, as the operation data for instructing the OS 410 to input the character, the operation data of the key corresponding to the character code and the break operation data are output in order. For example, if the character string “12A” shown in FIG. 9 is arranged, for “1” and “2”, the operation data of “make” and “break” are output in order for the “1” or “2” key. Good. “
また、一部の文字についてはシフトキーの操作が必要である。この場合、シフトキーのmake→文字と対応するキーのmake→同じキーのbreak→シフトキーのbreakの順で操作データを出力すればよい。図9の例では「A」がこのケースに当たり、図中の「Shift + Key A」がこの操作データを示す。 In addition, a shift key operation is necessary for some characters. In this case, the operation data may be output in the order of shift key make → character corresponding key make → same key break → shift key break. In the example of FIG. 9, “A” corresponds to this case, and “Shift + Key A” in the figure represents this operation data.
PC400側では、キーボードドライバ401から変換アプリケーション402へその操作データが渡る。変換アプリケーション402は、特に変換を指示する操作データが含まれていなければ、受け取った操作データをそのままOS410の入力処理部411に渡す。そして、入力処理部411も、複数バイト文字の入力モードでなければ、受け取った操作データに複数バイト文字の入力を指示するデータが含まれていないため、操作されたキーと対応する文字の入力指示であると解釈して、該当文字が入力された旨の情報をエディタ420に渡す。この例では操作データに応じた入力文字列として「12A」を渡す。このことにより、エディタ420に対してその文字列を入力することができる。
On the PC 400 side, the operation data is passed from the
一方、複数バイト文字の場合、読取装置300は、まず変換アプリケーション402に対して複数バイト文字への変換を指示するためのキー操作データを送信してから、変換アプリケーション402に対して入力したい文字を指定するためのキー操作データを出力する。
前者の操作は、変換アプリケーション402の設計者が任意に定めることができ、ここではALTキーをオン操作しながらのLキーのオン操作とする。具体的には、ALTキーのmake→Lキーのmake→Lキーのbreak→ALTキーのbreakである。「ALT + key L」はこの操作データを示す。
On the other hand, in the case of a multi-byte character, the reading device 300 first transmits key operation data for instructing conversion to the multi-byte character to the
The former operation can be arbitrarily determined by the designer of the
後者の操作も、変換アプリケーション402の設計者が任意に定めることができ、ここでは、入力したい文字のシフトJISの文字コードをテキストで入力する操作としている。例えば「雨」のシフトJISの文字コードは「0x89 0x4A」であるので、「雨」を入力したい場合、ここから「0x」を除いて各バイトを繋げた「894A」をタイプする操作データを送信する。
The latter operation can be arbitrarily determined by the designer of the
PC400側では、1バイト文字の場合と同様に、キーボードドライバ401から変換アプリケーション402へその操作データが渡る。そして、変換アプリケーション402は、ALT + key Lの操作データを検出すると、以後の所定数のキー入力を、シフトJISの文字コードの入力であると解釈し、それらのキー操作データを、入力された文字コードを有する複数バイト文字の入力を示すデータに変換してOS410に渡す。
すると、OS410の入力処理部は、受け取ったデータが複数バイト文字の入力を指示するデータであるので、文字入力補助部412に渡す。文字入力補助部412は、そのデータを、文字コードを指定した文字の入力指示であると解釈して、該当文字が入力された旨の情報をエディタ420に渡す。この例では入力文字列として「雨」を渡す。このことにより、エディタ420に対してその文字列を入力することができる。
On the PC 400 side, the operation data is passed from the
Then, the input processing unit of the OS 410 passes the received data to the character input
以上により、読取装置300は、1バイト文字も2バイト文字も、キーボードの操作データに変換してPC400に送信し、エディタ420にその文字を入力することができる。
しかしながら、図9に示した方式では、PC400に、専用の変換アプリケーション402をインストールする必要がある。また、読取装置300のメーカー側から見れば、変換アプリケーション402を開発し、ユーザに配布し、インストール方法を説明する必要がある。さらに、ユーザの環境によって変換アプリケーション402が動作しないような場合には、その問題を解決するためのアプリケーションの改変も必要となる可能性がある。
このため、図9に示した方式は、メーカーとユーザの双方にとって、手間のかかる方式であった。
As described above, the reading apparatus 300 can convert both 1-byte characters and 2-byte characters into operation data of the keyboard and transmit them to the PC 400 and input the characters to the
However, in the method shown in FIG. 9, it is necessary to install a
For this reason, the method shown in FIG. 9 is a time-consuming method for both the manufacturer and the user.
また、一般論として、アプリケーションを追加インストールするとセキュリティ上の問題が発生する可能性があるし、ホストとの相性によって動作不安定を引き起こす可能性もある。このため、近年のセキュリティ意識の高まりに応じて、アプリケーションのインストールが好まれなかったり難しかったりするケースも出てきた。
なお、同様な問題は、コード記号の読み取り以外で得た文字列を情報処理装置に出力する場合にも、発生するものである。
As a general rule, additional installation of an application may cause a security problem, and may cause unstable operation due to compatibility with the host. For this reason, with the recent increase in security awareness, there have been cases where application installation is not preferred or difficult.
A similar problem also occurs when a character string obtained by other than reading a code symbol is output to the information processing apparatus.
この発明は、このような背景に鑑みてなされたものであり、複数バイト文字を含む文字列を、容易にキーボードの操作データとして情報処理手段における情報処理に供することができるようにすることを目的とする。 The present invention has been made in view of such a background, and an object of the present invention is to make it possible to easily provide a character string including a multi-byte character as operation data of a keyboard for information processing in an information processing means. And
上記の目的を達成するため、この発明の操作データ出力装置は、コード記号を読み取ってデコードすることにより、1バイト文字と複数バイト文字の文字コードが混在する文字列データを取得する文字列データ取得手段と、上記文字列データ取得手段が取得した文字列データのうち、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別し、1バイト文字と複数バイト文字とで、異なるアルゴリズムにより、所定のオペレーティングシステムに対しその文字コードが示す文字の入力を指示するためのキーボードの操作データを生成する生成手段と、上記生成手段が生成した操作データを情報処理手段へ出力する出力手段とを設けたものである。
また、この発明の別の操作データ出力装置は、コード記号を読み取ってデコードすることにより、1バイト文字と複数バイト文字の文字コードが混在する文字列データを取得する文字列データ取得手段と、上記文字列データ取得手段が取得した文字列データに含まれる文字コードに基づきキーボードの操作データを生成する生成手段と、上記生成手段が生成した操作データを情報処理手段へ出力する出力手段とを備え、上記生成手段が、上記文字列データ取得手段が取得した文字列データのうち、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別し、上記文字列データ中の、(a)複数バイト文字の文字コードと対応する操作データとして、特殊キーのメイクを示す操作データ、その文字コードを十進数に変換して得られる値の各桁の数字について、キーパッドのその当数字のキーのメイクとブレイクを示す操作データを最上位の桁から順に最下位の桁までそれぞれ、および特殊キーのブレイクを示す操作データを、この順で生成し、(b)1バイト文字の文字コードと対応する操作データとして、その文字コードと対応するキーの操作を示す操作データ及び、必要に応じてシフトキーの操作を示す操作データを生成するものである。
これらのデータ出力装置において、上記出力手段が、上記文字列データの各バイトを先頭から順に参照して、各バイトが1バイト文字では使用されない値のバイトであるか否かに基づき、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別するようにするとよい。
さらに、複数バイト文字の認識オンオフを切り替える手段を設け、複数バイト文字の認識オフの場合には、上記生成手段が、上記文字列データ中に含まれる文字コードが全て1バイト文字の文字コードであるとして上記操作データを生成するようにするとよい。
また、この発明は、装置として実現する他、システム、方法、プログラム、媒体等、任意の形で実現することができる。
In order to achieve the above object, the operation data output device of the present invention reads character codes and decodes them to obtain character string data in which character codes of 1-byte characters and multi-byte characters are mixed. And a portion including a character code of a 1-byte character and a portion including a character code of a multi-byte character in the character string data acquired by the character string data acquisition means , and a 1-byte character and a plurality of bytes Generating means for generating operation data of a keyboard for instructing a predetermined operating system to input a character indicated by the character code by an algorithm different from the character; and information processing means for generating the operation data generated by the generating means And an output means for outputting to.
Further, another operation data output device of the present invention includes a character string data acquisition unit that acquires character string data in which character codes of 1-byte characters and multi-byte characters are mixed by reading and decoding code symbols, A generating unit that generates keyboard operation data based on a character code included in the character string data acquired by the character string data acquiring unit, and an output unit that outputs the operation data generated by the generating unit to the information processing unit; The generation unit identifies a portion including a character code of a 1-byte character and a portion including a character code of a multi-byte character among the character string data acquired by the character string data acquisition unit, and the character string data (A) As the operation data corresponding to the character code of the multi-byte character, the operation data indicating the make of the special key, the character code For each digit of the value obtained by converting to a hexadecimal number, the operation data indicating the make and break of that key on the keypad is changed from the most significant digit to the least significant digit, and the special key break. (B) As the operation data corresponding to the character code of the 1-byte character, the operation data indicating the operation of the key corresponding to the character code, and the operation of the shift key as necessary Is generated.
In these data output devices, the output means refers to each byte of the character string data in order from the top, and determines whether each byte is a byte of a value that is not used in a 1-byte character. It is preferable to distinguish between a portion including the character code and a portion including a multi-byte character code .
Furthermore, a means for switching on / off the recognition of multi-byte characters is provided, and when the recognition of multi-byte characters is off, the generating means is a character code in which all the character codes included in the character string data are 1-byte characters. The operation data may be generated as follows.
In addition to being realized as an apparatus , the present invention can be realized in any form such as a system, a method, a program, and a medium.
以上のようなこの発明の操作データ出力装置及び操作データ出力方法によれば、複数バイト文字を含む文字列を、容易にキーボードの操作データとして情報処理手段における情報処理に供することができる。
また、この発明のプログラムによれば、コンピュータにプログラムを読み込ませて実行させることにより、同様な効果を得ることができる。
According to the operation data output device and operation data output method of the present invention as described above, a character string including a multi-byte character can be easily subjected to information processing in the information processing means as keyboard operation data.
According to the program of the present invention, the same effect can be obtained by causing the computer to read and execute the program.
以下、この発明を実施するための形態を図面に基づいて具体的に説明する。
まず、図1に、この発明の操作データ出力装置の一実施形態である読取装置を備えた情報処理システムの構成を示す。
図1に示す情報処理システムは、コード記号を読み取ってその読取結果を出力する読取装置100と、読取装置100が出力する読取結果を受信して蓄積及び分析する情報処理装置であるPC(パーソナルコンピュータ)200とを備える。
Hereinafter, embodiments for carrying out the present invention will be specifically described with reference to the drawings.
First, FIG. 1 shows a configuration of an information processing system provided with a reading device which is an embodiment of the operation data output device of the present invention.
The information processing system shown in FIG. 1 includes a
読取装置100は、PC200のキーボード端子(USB(Universal Serial Bus)等の汎用端子でもよい)に接続する。そして、コード記号を読み取ってそのデコードに成功すると、デコードで得られた読取結果の文字列を、該文字列をPC200に入力するためのキーボードの操作を示す操作データとして出力する。
The
次に、図2に、読取装置100のハードウェア構成を示す。
この読取装置100は、読み取り対象物上に設けられた、光反射率が周囲と異なるモジュールが配列されたコード記号を読み取る装置であり、光学ヘッド部110及びデコーダ部120を有する。これらに加え、ユーザの操作を受け付けるためのボタン等の操作部も有するが、その図示は省略する。なお、コード記号の形式は任意であり、1次元のバーコードや、2次元バーコード、QRコード(登録商標、以下同様)等、デコーダ部120の設定に応じて任意の形式のコードを読み取り可能である。
Next, FIG. 2 shows a hardware configuration of the
The
また、光学ヘッド部110は、レンズ111、固体撮像素子の一例であるCMOS
(Complementary Metal Oxide Semiconductor)イメージセンサ(以下単に「CMOS」という)112及び投光LED(発光ダイオード)113を備える。
レンズ111は例えば光学レンズであり、読取対象物の画像を光学ヘッド部110に取り入れ、CMOS112の撮像エリア上に結像させるためのものである。
The optical head unit 110 includes a
(Complementary Metal Oxide Semiconductor) An image sensor (hereinafter simply referred to as “CMOS”) 112 and a light emitting LED (light emitting diode) 113 are provided.
The
CMOS112は、レンズ111が取り入れた読取対象物(コード記号を含むと想定される)からの反射光により、読取対象物を撮像し、その撮像で得たアナログの画像信号からデジタルの輝度値で表現される画像データを生成してデコーダ部120に出力する。
投光LED113は、照射する光により読取対象物を照明して、CMOS112により鮮明な画像を撮像できるようにするための照明手段である。ただし、装置の構造によっては投光LED113は設けなくてもよい。
The
The
次に、デコーダ部120は、第1入出力インタフェース(第1I/O)121,制御回路122,RAM123,不揮発メモリ124,第2入出力インタフェース(第2I/O)125を備える。
このうち第1I/O121は、光学ヘッド部110とデコーダ部120との間で、制御信号やCMOS112が出力する画像データなどを送受信するためのインタフェースである。
Next, the decoder unit 120 includes a first input / output interface (first I / O) 121, a
Among these, the first I /
制御回路122は、CMOS112及び投光LED113の制御や、CMOS112から第1I/O121を介して入力される読取対象物の画像データに対し、ノイズ除去のためのフィルタ処理や、デコード準備のためのデータ加工処理、加工後の画像データに基づくコード記号のデコード処理、デコード後の読取結果の蓄積、加工及び出力処理等を行う。ハードウェアとしては、ASIC(Application Specific Integrated Circuit)やCPUにより構成することができる。なお、デコード処理の詳細については、例えば特開2005−25417号公報に記載の手法など、公知の任意の手法を採用すればよい。
The
RAM123は、CMOS112から入力される画像データを一時的に記憶したり、デコード準備のためのデータ加工処理の際にワークメモリとして用いたり、デコード後の読取結果を一時的に蓄積したり、その他読取装置100の動作に必要なデータなど動的に変更するデータを記憶したりする記憶手段である。一部を不揮発性としてもよい。
The
不揮発メモリ124は、読取装置100を起動させるプログラムや、制御回路122のCPUに実行させるためのプログラムなどを記憶する不揮発性の記憶手段である。
第2I/O125は、情報処理装置200等の外部装置とデータ通信を行うためのインタフェースであり、制御回路122によるデコード後の読取結果をキーボードの操作データとして第2I/O125を介して外部装置に出力することができる。
一方、PC200は、ハードウェアとしては、CPU、ROM、RAM、HDD、通信インタフェース等を備える公知の構成でよい。ソフトウェアについても、読取装置100から読取結果を入力するのみであれば、OSに予め含まれるソフトウェアのみで足りる。
The non-volatile memory 124 is a non-volatile storage unit that stores a program for starting the
The second I /
On the other hand, the
次に、図3に、読取装置100のうち、この実施形態の特徴に関連する部分の機能構成を示す。
図3に示すように、読取装置100は、読取部131、デコード部132、文字識別部133、1バイト文字対応操作データ生成部134、複数バイト文字対応操作データ生成部135、操作データ出力部136を備える。
Next, FIG. 3 shows a functional configuration of a part of the
As shown in FIG. 3, the
これらのうち、読取部131は、コード記号を撮像又は走査してコード記号を読み取る機能を備える。
デコード部132は、読取部131が得た画像や波形のデータに基づきコード記号をデコードして読取結果の文字列データを得る機能を備える。
Among these, the
The
文字識別部133は、デコード部132によるデコード結果の文字列のうち、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別する機能を備える。例えば、デコード結果の文字列データの各バイトを先頭から順に参照して、1バイト文字では使用されない値のバイト(又は複数バイト文字で使用される値のバイト)があった場合に、そのバイトとそれに続くバイトが複数バイト文字の文字コードを示すバイトであると判断することができる。
この基準は、用いる文字コードの種類によって異なるので、文字識別部133には、どの種類の文字コードを用いるのかを、予め設定しておく。ユーザの操作に応じてあるいは自動的にこれを変更できるようにしてもよい。
The
Since this standard differs depending on the type of character code to be used, the type of character code to be used is set in advance in the
1バイト文字対応操作データ生成部134は、文字識別部133の判定結果に従い、読取結果のうち1バイト文字の文字コードが含まれる部分の文字コードが示す文字の入力をPC200のOSに指示するためのキーボードの操作データを生成する機能を備える。
The 1-byte character corresponding operation
複数バイト文字対応操作データ生成部135は、文字識別部133の判定結果に従い、読取結果のうち複数バイト文字の文字コードが含まれる部分の文字コードが示す文字の入力をPC200のOSに指示するためのキーボードの操作データを生成する機能を備える。
これらの操作データの具体的な生成アルゴリズムについては後述する。
操作データ出力部136は、1バイト文字対応操作データ生成部134又は複数バイト文字対応操作データ生成部135が生成した操作データを、PC200へ出力する機能を備える。
The multi-byte character corresponding operation
A specific algorithm for generating these operation data will be described later.
The operation
次に、図4を用いて、読取装置100が出力する操作データ及びPC200側でのその操作データの取り扱いについて説明する。
図4に示すように、この実施形態において、PC200側で操作データの取り扱いに関与するのは、キーボードドライバ201及びOS210である。このキーボードドライバ201及びOS210は、図9に示したキーボードドライバ401及びOS410と同じものでよい。ただし、図9に示した変換アプリケーション402は必要ない。
またここでは、OS210はWindows(登録商標)であるとして説明する。
Next, operation data output from the
As shown in FIG. 4, in this embodiment, the
Here, the OS 210 is described as being Windows (registered trademark).
また、エディタ220は、読取結果の文字列を集計及び編集するアプリケーションである。最低限、文字列を入力可能なアプリケーションであれば、OSに予め含まれるテキストエディタでも構わない。
また、文字入力補助部212は、使用する言語に合ったものを用いる。すなわち、例えば日本語を入力しようとする場合、日本語入力プログラムを用いる。
The
In addition, the character input
以上のPC200に対し、読取装置100が出力する操作データは、1バイト文字については、図9で説明したものと同じである。すなわち、文字コードが示す文字の入力をOS210に対して指示するための操作データである、文字コードと対応するキーの操作データである(1バイト文字対応操作データ生成部134が生成する)。
しかし、複数バイト文字についても、図9で説明したものと異なり、文字コードが示す文字の入力をOS210に対して指示するための操作データを出力する(複数バイト文字対応操作データ生成部135が生成する)。
The operation data output from the
However, for multi-byte characters, unlike the case described with reference to FIG. 9, operation data for instructing the OS 210 to input the character indicated by the character code is output (the multi-byte character corresponding operation
ここで、OSがWindows(登録商標)の場合、OSに予め含まれる入力処理部211には、特殊キーであるALTキーを押下しながら、16進数の文字コードを10進数に変換して得られる数値の最上位の桁から最下位の桁までの数字を順にキーパッド(テンキー)で入力し、ALTキーの押下を解除する操作を、その文字コードの複数バイト文字の入力操作として受け付ける機能を備えている。そして、入力処理部211は、この操作を示す操作データを受け付けると、文字入力補助部212に対して、操作データに代えて、その操作で指定された文字コードの複数バイト文字の入力を指示するデータを渡す。
Here, when the OS is Windows (registered trademark), the
従って、シフトJIS形式で「0x894A」の文字コードを持つ文字「雨」は、「0x894A」を10進数にすると35146であるので、ALTキーを押下しながらキーパッドの3、5、1、4、6、のキーをこの順で押下し、その後ALTキーの押下を解除するキー操作により、入力することができる。
読取装置100は、この機能を利用してOS210に対して所望の複数バイト文字の入力を指示するための操作データを出力する。
Therefore, the character “rain” having the character code “0x894A” in the shift JIS format is 35146 when “0x894A” is converted to a decimal number, so that while pressing the ALT key, 3, 5, 1, 4, Input can be performed by pressing the keys No. 6 in this order and then releasing the ALT key.
Using this function, the
図4の例の場合、「894A」の文字コードを持つ文字「雨」を入力するために、ALTキーのmake→キーパッドの3キーのmakeとbreak(「keypad 3」はこのキー操作を示す)→同様にキーパッドの5、1、4、6キーのメイクとブレイク→ALTキーのbreakの順で操作データを出力する(複数バイト文字対応操作データ生成部135が生成する)。
複数バイト文字を2文字以上続けて入力すべき場合は、1文字毎に、ALTキーの押下、キーパッドでの数値入力およびALTキーの押下解除を示す操作データを出力する。
In the case of the example of FIG. 4, in order to input the character “rain” having the character code “894A”, make the ALT key → make 3 keypad and break (“keypad 3” indicates this key operation. In the same manner, operation data is output in the order of make and break of the
When two or more multi-byte characters are to be input consecutively, operation data indicating that the ALT key is pressed, the numeric value is input on the keypad, and the ALT key is released is output for each character.
このようにすることにより、PC200側に専用の変換アプリケーションをインストールすることなく、OSが一般的なやり方でインストールされていればほぼ確実に備えている機能のみを利用して、読取装置100が出力するキーボードの操作データにより複数バイト文字を入力することができる。
従って、専用アプリケーションの開発、配布、説明、インストール、アップデート等に係る手間がかからず、ユーザ側環境の影響も受けづらく、容易に複数バイト文字の入力を行うことができる。
In this way, without installing a dedicated conversion application on the
Therefore, it does not take time for development, distribution, explanation, installation, update, etc. of the dedicated application, and it is not affected by the environment on the user side, and multi-byte characters can be easily input.
次に、図4に示した操作データの出力を行うための処理について説明する。
図5に、コード記号のデコードが成功した場合に制御回路122のCPUが実行する処理のフローチャートを示す。
光学ヘッド部110が読み取ったコード記号のデコードが制御回路122において完了すると、読取結果の文字列データが取得できる。そこで、制御回路122のCPUは、その文字列データが示す文字列をPC200に入力するための操作データを生成すべく、図5のフローチャートに示す処理を開始する。
Next, a process for outputting the operation data shown in FIG. 4 will be described.
FIG. 5 shows a flowchart of processing executed by the CPU of the
When the decoding of the code symbol read by the optical head unit 110 is completed in the
そして、この処理においてはまず、読取結果の1バイト目を処理対象とする(S11)。
次に、複数バイト文字処理がONに設定されているか否か判断する(S12)。この設定は、複数バイト文字を考慮した操作データの出力を行うか否かの設定であり、ユーザが適当な操作部を操作することによりON/OFFを切り換えることができる。これがOFFの場合、読取結果の文字列中データに複数バイト文字のコードが含まれていない、すなわち読取結果に含まれるのは全て1バイト文字であるとして操作データの生成及び出力を行う。
In this process, first, the first byte of the read result is set as a processing target (S11).
Next, it is determined whether or not the multi-byte character processing is set to ON (S12). This setting is a setting as to whether or not to output operation data in consideration of multi-byte characters, and can be switched ON / OFF by the user operating an appropriate operation unit. When this is OFF, the operation data is generated and output on the assumption that the data in the character string of the read result does not include a multi-byte character code, that is, the read result includes all 1-byte characters.
そこで、ステップS12でNOの場合、処理対象バイトの値と対応するキーのmakeの操作データを生成して第2I/O125から出力し(S16)、その後、処理対象バイトの値と対応するキーのbreakの操作データを生成して第2I/O125から出力する(S17)。
これらの操作データは、処理対象バイトの文字コードが示す文字の入力をOS210に対して指示するためのキー操作を示す操作データである。なお、入力すべき文字が大文字アルファベットや記号であって入力にシフトキーの操作が必要な場合、ステップS16の前にシフトキーのmakeを、ステップS17の後にシフトキーのbreakを生成及び出力するが、フローチャートの単純化のため、記載は省略した。
Therefore, in the case of NO in step S12, key operation data corresponding to the value of the processing target byte is generated and output from the second I / O 125 (S16), and then the key corresponding to the value of the processing target byte is generated. Break operation data is generated and output from the second I / O 125 (S17).
These operation data are operation data indicating a key operation for instructing the OS 210 to input a character indicated by the character code of the processing target byte. If the character to be input is an uppercase alphabet or a symbol and a shift key operation is required for input, a shift key make is generated before step S16 and a shift key break is generated and output after step S17. The description is omitted for simplification.
ステップS17の後は、デコード結果の文字列データ全ての処理が完了したか否か判断し(S15)、完了していれば処理を終了する。完了していなければ、読取結果の次のバイトを処理対象として(S18)、ステップS12に戻り、処理を繰り返す。
また、ステップS12でYESであれば、処理対象のバイトが複数バイト文字を示すコードの一部であるか否か判断する(S13)。この判断は、上述のように処理対象バイトの値により判別することができる。
After step S17, it is determined whether or not the processing of all the character string data of the decoding result has been completed (S15). If it has been completed, the processing is terminated. If not completed, the next byte of the read result is set as a processing target (S18), the process returns to step S12, and the process is repeated.
If “YES” in the step S12, it is determined whether or not the processing target byte is a part of a code indicating a multi-byte character (S13). This determination can be made based on the value of the processing target byte as described above.
そして、ステップS13でNOの場合、すなわち処理対象バイトが1バイト文字の文字コードを示す場合、ステップS16に進み、その文字コードが示す文字の入力をキーボードドライバ201に対して指示するためのキー操作を示す操作データの生成及び出力を行う。
ステップS13でYESの場合は、図6に示す複数バイト文字出力処理を行った後(S14)、ステップS15の、デコード結果の文字列データ全ての処理が完了したか否かの判断に進む。
If NO in step S13, that is, if the processing target byte indicates a character code of a 1-byte character, the process proceeds to step S16, and a key operation for instructing the
In the case of YES in step S13, after the multi-byte character output process shown in FIG. 6 is performed (S14), the process proceeds to the determination in step S15 whether or not the process for all the character string data of the decoding result has been completed.
次に、図6に複数バイト文字出力処理のフローチャートを示す。
この処理では、制御回路122のCPUはまず、処理対象のバイトを含む、複数バイト文字1文字分の文字コードが配置された箇所を特定する(S21)。次に、その特定した箇所に示される複数バイト文字のコードを10進数に変換する(S22)。
Next, FIG. 6 shows a flowchart of multibyte character output processing.
In this process, the CPU of the
次に、特殊キー(例えばALTキー)makeの操作データを生成して第2I/O125から出力する(S23)。そして、iを1から増加させつつ、ステップS22で得た10進数の上からi桁目の数字nについて、キーパッドのその数字のキーのmakeとbreakの操作データを、順次生成及び出力する(S24〜S29)。そして、最上位の桁から最下位の桁まで順次出力した後(S29のNO)、特殊キーbreakの操作データを生成して出力する(S30)。 Next, operation data for a special key (for example, ALT key) make is generated and output from the second I / O 125 (S23). Then, while increasing i from 1, for the i-th digit n from the decimal number obtained in step S22, operation data for make and break of the key of the number on the keypad are sequentially generated and output ( S24-S29). Then, after sequentially outputting from the most significant digit to the least significant digit (NO in S29), operation data for the special key break is generated and output (S30).
ここで生成及び出力する操作データは、ステップS21で特定した箇所に示されるコードの複数バイト文字の入力をOS210に対して指示するためのキー操作を示す操作データである。
そして、ステップS30の後は、デコード結果のうちステップS21で特定した箇所を処理完了として(S31)、図5の処理に戻る。この場合、図5のステップS15からS18に進むと、ステップS21で特定した箇所の次のバイトを処理対象とすることになる。
The operation data generated and output here is operation data indicating a key operation for instructing the OS 210 to input a multi-byte character of the code indicated at the location specified in step S21.
Then, after step S30, the part specified in step S21 in the decoding result is regarded as processing completion (S31), and the processing returns to FIG. In this case, when the process proceeds from step S15 to step S18 in FIG. 5, the next byte after the location specified in step S21 is to be processed.
以上の図5及び図6の処理により、制御回路122が取得した読取結果の文字列データについて、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを区別して、それぞれの文字コードが示す文字の入力をOS210に指示するための操作データを生成してPC200へ出力することができる。
5 and 6, the character string data obtained as a result of reading by the
以上で実施形態の説明を終了するが、装置の構成や具体的な処理内容等が上述の実施形態で説明したものに限られないことはもちろんである。
例えば、上述した実施形態ではPC200で動作しているOSがWindowsであるとして説明したが、他のOSが動作しているPCとも接続できるようにしてもよい。この点につき、1バイト文字の入力をOSに対して指示するためのキー操作はどのOSでも基本的に変わらない。しかし、複数バイト文字の入力をOSに対して指示するためのキー操作は、OSに依存して異なることが考えられる。
Although the description of the embodiment is completed as described above, it is a matter of course that the configuration of the apparatus, specific processing contents, and the like are not limited to those described in the above-described embodiment.
For example, in the above-described embodiment, the OS operating on the
そこで、読取装置100に、複数のOSのそれぞれと対応させて、複数バイト文字のコードに基づき該コードの複数バイト文字の入力をそのOSに対して指示するための操作データを生成するためのアルゴリズムを記憶させておくとよい。そして、ユーザからのOSの指定操作に応じて、複数バイト文字対応操作データ生成部135が操作データの生成に用いるアルゴリズムを、その指定操作により指定されたOSと対応するアルゴリズムに変更するようにするとよい。
Accordingly, an algorithm for generating operation data for instructing the OS to input a multi-byte character of the code based on the code of the multi-byte character in association with each of the plurality of OSs in the
すなわち、図7に示すように、ユーザからのOSの指定操作に応じてOSを選択するOS指定部137を設け、複数バイト文字対応操作データ生成部135が、OS指定部により指定されたOSと対応するアルゴリズムを用いるようにするとよい。
このようにすれば、読取装置100を、異なるOSを使用する複数のPCにつなぎ替えて使用する場合でも、接続先のPCに合った操作データを出力することができる。なお、OSの指定は手動には限られない。何らかの手段で接続先PCにて動作しているOSを検出して、自動で行うようにしてもよい。
That is, as shown in FIG. 7, an OS designation unit 137 for selecting an OS in accordance with an OS designation operation from the user is provided, and the multi-byte character correspondence operation
In this way, even when the
また、上述した実施形態では、読取部131を備える読取装置100が操作データを出力する例について説明したが、これに限られることはない。また、操作データを出力する読取装置100が操作データの出力先であるPC200と別体である例について説明したが、これに限られることもない。
In the above-described embodiment, an example in which the
すなわち、図8に示す操作データ出力装置100′のように、文字列データを入力するデータ入力部141を設け、デコード部132によるデコード結果に代えて、データ入力部141から入力した文字列データに基づき、操作データの生成を行うようにしてもよい。
データ入力部141に入力する文字列データは、外部装置からデータを受信する通信手段241により受信したもの、図3の読取部131及びデコード部132に相当する読取手段242により読み取ったもの、あるいはメモリ243に予め保存しておきそこから読み出したもの、等が考えられる。
That is, like the operation
Character string data input to the
また、図8に示すように、操作データ出力装置100′を、操作データの出力先である制御装置200′と一体の装置として設けることもできる。この場合、操作データ出力装置100′をモジュールとして構成し、制御装置200′においてCPUを含む主制御部211を設ける基板上に搭載することが考えられる。この場合、操作データ出力装置100′が操作データを主制御部241におけるCPUへ内部バスを介して供給することが考えられる。
また、読取手段242と操作データ出力装置100′を一体のモジュールとすることも考えられる。
Further, as shown in FIG. 8, the operation
It is also conceivable that the reading means 242 and the operation
また、上述した実施形態では、複数バイト文字の文字コードとしてシフトJISを用いる例について説明したが、GB18030、Big−5、EUC−KR、UTF−16、UTF−8等の他の任意の文字コードを用いる場合についても、この発明は適用可能である。 In the above-described embodiment, an example in which Shift JIS is used as a character code of a multibyte character has been described. However, other arbitrary character codes such as GB18030, Big-5, EUC-KR, UTF-16, and UTF-8 are used. The present invention can also be applied to the case where is used.
OSがWindowsの場合、いずれの文字コードを用いる場合も、特殊キーのメイク→複数バイト文字領域の文字が示す複数バイト文字のコードを十進数に変換して得られる値の各桁の数字について、キーパッドの該当数字のキーのメイクとブレイクを、最上位の桁から順に最下位の桁まで→特殊キーのブレイクの順に並ぶ操作データにより、複数バイト文字領域の文字が示すコードの複数バイト文字の入力をサービスプログラムに対して指示することができる。すなわち、PC200においてどの文字コードが使用されているかは意識せずに、同じアルゴリズムを用いて操作データを生成することができる。
ただし、文字コードの種類によって、1バイト文字の文字コードと複数バイト文字の文字コードとの識別に用いる基準が異なるため、どの文字コードを用いるかは、操作データ出力装置に予め設定しておく。
When the OS is Windows, no matter which character code is used, the special key make → the multi-byte character code indicated by the character in the multi-byte character area is converted into a decimal number, and each digit of the value is obtained. With the operation data arranged in order from the highest digit to the lowest digit in order of the make and break of the key of the number on the keypad in order of the break of the special key, the multibyte character of the code indicated by the character in the multibyte character area Input can be directed to the service program. That is, operation data can be generated using the same algorithm without being conscious of which character code is used in the
However, since the standard used for identifying the character code of a 1-byte character and the character code of a multi-byte character is different depending on the type of the character code, which character code is used is set in advance in the operation data output device.
また、この発明のプログラムは、コンピュータに上述の操作データ出力処理を実行させるためのプログラムとして構成することができる。このようなプログラムは、予めコンピュータのメモリに記憶させておく他、記録媒体であるCD−ROMあるいはフレキシブルディスク,SRAM,EEPROM,メモリカード等の不揮発性記録媒体(メモリ)に記録したり、ネットワークを介してダウンロードできるようにしたりして提供することもできる。そして、そのプログラムをインストールしてCPUに実行させるか、CPUにメモリあるいはダウンロードサーバからこのプログラムを取得させて実行させることにより、上述した各機能を実現させることができる。
また、以上述べてきた構成及び変形例は、矛盾しない範囲で適宜組み合わせて適用することも可能である。
Moreover, the program of this invention can be comprised as a program for making a computer perform the above-mentioned operation data output process. Such a program is stored in advance in a computer memory, and is also recorded on a non-volatile recording medium (memory) such as a CD-ROM or flexible disk, SRAM, EEPROM, memory card or the like as a recording medium. It can also be made available for download via the Internet. Each function described above can be realized by installing the program and causing the CPU to execute the program, or causing the CPU to acquire and execute the program from a memory or a download server.
In addition, the configurations and modifications described above can be applied in appropriate combinations within a consistent range.
以上の説明から明らかなように、この発明の操作データ出力装置、操作データ出力方法及びプログラムによれば、複数バイト文字を含む文字列を、容易にキーボードの操作データとして情報処理手段における情報処理に供することができる。
従って、この発明を適用することにより、制御装置の操作性を向上させることができる。
As is apparent from the above description, according to the operation data output device, operation data output method and program of the present invention, a character string including a plurality of bytes can be easily processed as information on the keyboard in the information processing means. Can be provided.
Therefore, the operability of the control device can be improved by applying the present invention.
100,300…読取装置、100′…操作データ出力装置、110…光学ヘッド部、111…レンズ、112…CMOS、113…投光LED、120…デコーダ部、121…第1I/O、122…制御回路、123…RAM、124…不揮発メモリ、125…第2I/O、131…読取部、132…デコード部、133…文字識別部、134…1バイト文字対応操作データ生成部、135…複数バイト文字対応操作データ生成部、136…操作データ出力部、200,400…PC、200′…制御装置、201,401…キーボードドライバ、210,410…OS、211,411…入力処理部、212,412…文字入力補助部、220,420…エディタ、231…主制御部、241…通信手段、242…読取手段、243…メモリ DESCRIPTION OF SYMBOLS 100,300 ... Reading apparatus, 100 '... Operation data output device, 110 ... Optical head part, 111 ... Lens, 112 ... CMOS, 113 ... Light projection LED, 120 ... Decoder part, 121 ... 1st I / O, 122 ... Control Circuit, 123 ... RAM, 124 ... Non-volatile memory, 125 ... Second I / O, 131 ... Reading unit, 132 ... Decoding unit, 133 ... Character identification unit, 134 ... Single byte character corresponding operation data generation unit, 135 ... Multibyte character Corresponding operation data generation unit, 136 ... operation data output unit, 200, 400 ... PC, 200 '... control device, 201, 401 ... keyboard driver, 210, 410 ... OS, 211, 411 ... input processing unit, 212, 412 ... Character input auxiliary unit, 220, 420 ... editor, 231 ... main control unit, 241 ... communication means, 242 ... reading means, 243 ... me Li
Claims (9)
前記文字列データ取得手段が取得した文字列データのうち、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別し、1バイト文字と複数バイト文字とで、異なるアルゴリズムにより、所定のオペレーティングシステムに対し該文字コードが示す文字の入力を指示するためのキーボードの操作データを生成する生成手段と、
前記生成手段が生成した操作データを情報処理手段へ出力する出力手段とを備えることを特徴とする操作データ出力装置。 Character string data acquisition means for acquiring character string data in which character codes of 1-byte characters and multi-byte characters are mixed by reading and decoding code symbols;
Of the character string data acquired by the character string data acquisition means, a portion including a character code of a 1-byte character and a portion including a character code of a multi-byte character are identified, and a 1-byte character and a multi-byte character are Generating means for generating keyboard operation data for instructing a predetermined operating system to input a character indicated by the character code by a different algorithm;
An operation data output device comprising: output means for outputting operation data generated by the generation means to an information processing means.
前記文字列データ取得手段が取得した文字列データに含まれる文字コードに基づきキーボードの操作データを生成する生成手段と、
前記生成手段が生成した操作データを情報処理手段へ出力する出力手段とを備え、
前記生成手段が、前記文字列データ取得手段が取得した文字列データのうち、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別し、前記文字列データ中の、(a)複数バイト文字の文字コードと対応する操作データとして、特殊キーのメイクを示す操作データ、該文字コードを十進数に変換して得られる値の各桁の数字について、キーパッドの該当数字のキーのメイクとブレイクを示す操作データを最上位の桁から順に最下位の桁までそれぞれ、および特殊キーのブレイクを示す操作データを、この順で生成し、(b)1バイト文字の文字コードと対応する操作データとして、該文字コードと対応するキーの操作を示す操作データ及び、必要に応じてシフトキーの操作を示す操作データを生成することを特徴とする操作データ出力装置。 Character string data acquisition means for acquiring character string data in which character codes of 1-byte characters and multi-byte characters are mixed by reading and decoding code symbols;
Generating means for generating keyboard operation data based on a character code included in the character string data acquired by the character string data acquiring means;
Output means for outputting the operation data generated by the generating means to the information processing means,
The generation unit identifies a portion including a character code of a 1-byte character and a portion including a character code of a multi-byte character among the character string data acquired by the character string data acquisition unit, and the character string data (A) As operation data corresponding to a character code of a multi-byte character, operation data indicating make of a special key, and each digit of a value obtained by converting the character code into a decimal number, the keypad Operation data indicating make and break of the corresponding number keys are generated in this order from the most significant digit to the least significant digit, and the operation data indicating the break of special keys in this order. As the operation data corresponding to the character code, operation data indicating the operation of the key corresponding to the character code and operation data indicating the operation of the shift key as necessary are generated. Operation data output apparatus characterized.
前記生成手段は、前記文字列データの各バイトを先頭から順に参照して、各バイトが1バイト文字では使用されない値のバイトであるか否かに基づき、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別することを特徴とする操作データ出力装置。 The data output device according to claim 1 or 2,
The generation means refers to each byte of the character string data in order from the top, and includes a character code of a 1-byte character based on whether each byte is a value byte that is not used in a 1-byte character And an operation data output device for identifying a portion including a character code of a multi-byte character.
複数バイト文字の認識オンオフを切り替える手段を備え、
複数バイト文字の認識オフの場合には、前記生成手段は、前記文字列データ中に含まれる文字コードが全て1バイト文字の文字コードであるとして前記操作データを生成することを特徴とする操作データ出力装置。 The operation data output device according to any one of claims 1 to 3,
A means for switching on / off the recognition of multi-byte characters;
When the recognition of multi-byte characters is off, the generation means generates the operation data on the assumption that all the character codes included in the character string data are character codes of 1-byte characters. Output device.
前記文字列データ取得手順で取得した文字列データのうち、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別し、1バイト文字と複数バイト文字とで、異なるアルゴリズムにより、所定のオペレーティングシステムに対し該文字コードが示す文字の入力を指示するためのキーボードの操作データを生成する生成手順と、
前記生成手順で生成した操作データを情報処理手段へ出力する出力手順とを備えることを特徴とする操作データ出力方法。 A character string data acquisition procedure for acquiring character string data in which character codes of 1-byte characters and multi-byte characters are mixed by reading and decoding code symbols;
Of the character string data acquired in the character string data acquisition procedure, a portion including a character code of a 1-byte character and a portion including a character code of a multi-byte character are identified, and a 1-byte character and a multi-byte character are A generation procedure for generating operation data of a keyboard for instructing a predetermined operating system to input a character indicated by the character code by a different algorithm;
An operation data output method comprising: an output procedure for outputting operation data generated by the generation procedure to an information processing means.
前記文字列データ取得手順で取得した文字列データに含まれる文字コードに基づきキーボードの操作データを生成する生成手順と、
前記生成手順で生成した操作データを情報処理手段へ出力する出力手順とを備え、
前記生成手順で、前記文字列データ取得手順で取得した文字列データのうち、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別し、前記文字列データ中の、(a)複数バイト文字の文字コードと対応する操作データとして、特殊キーのメイクを示す操作データ、該文字コードを十進数に変換して得られる値の各桁の数字について、キーパッドの該当数字のキーのメイクとブレイクを示す操作データを最上位の桁から順に最下位の桁までそれぞれ、および特殊キーのブレイクを示す操作データを、この順で生成し、(b)1バイト文字の文字コードと対応する操作データとして、該文字コードと対応するキーの操作を示す操作データ及び、必要に応じてシフトキーの操作を示す操作データを生成することを特徴とする操作データ出力方法。 A character string data acquisition procedure for acquiring character string data in which character codes of 1-byte characters and multi-byte characters are mixed by reading and decoding code symbols;
A generation procedure for generating keyboard operation data based on a character code included in the character string data acquired in the character string data acquisition procedure;
An output procedure for outputting the operation data generated in the generation procedure to the information processing means,
In the generation procedure, the character string data acquired in the character string data acquisition procedure is identified with a portion including a character code of a 1-byte character and a portion including a character code of a multi-byte character, and the character string data (A) As operation data corresponding to a character code of a multi-byte character, operation data indicating make of a special key, and each digit of a value obtained by converting the character code into a decimal number, the keypad Operation data indicating make and break of the corresponding number keys are generated in this order from the most significant digit to the least significant digit, and the operation data indicating the break of special keys in this order. As the operation data corresponding to the character code, operation data indicating the operation of the key corresponding to the character code and operation data indicating the operation of the shift key as necessary are generated. Operation data output method characterized.
前記出力手順では、前記文字列データの各バイトを先頭から順に参照して、各バイトが1バイト文字では使用されない値のバイトであるか否かに基づき、1バイト文字の文字コードが含まれる部分と複数バイト文字の文字コードが含まれる部分とを識別することを特徴とする操作データ出力方法。 The data output method according to claim 5 or 6 ,
In the output procedure, each byte of the character string data is referred to in order from the top, and a portion including a character code of a 1-byte character based on whether or not each byte is a value byte that is not used in a 1-byte character And an operation data output method characterized in that a portion including a character code of a multibyte character is identified.
複数バイト文字の認識オンオフを切り替える手順を備え、
複数バイト文字の認識オフの場合には、前記生成手順では、前記文字列データ中に含まれる文字コードが全て1バイト文字の文字コードであるとして前記操作データを生成することを特徴とする操作データ出力方法。 The operation data output method according to any one of claims 5 to 7,
It has a procedure to switch on / off recognition of multi-byte characters,
When the multi-byte character recognition is OFF, the operation data is generated in the generation procedure assuming that all character codes included in the character string data are character codes of 1-byte characters. output method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012142613A JP5970255B2 (en) | 2012-06-26 | 2012-06-26 | Operation data output device, operation data output method and program |
CN201310246536.7A CN103513751B (en) | 2012-06-26 | 2013-06-20 | Peration data output device and peration data output intent |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012142613A JP5970255B2 (en) | 2012-06-26 | 2012-06-26 | Operation data output device, operation data output method and program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2014006753A JP2014006753A (en) | 2014-01-16 |
JP2014006753A5 JP2014006753A5 (en) | 2015-06-18 |
JP5970255B2 true JP5970255B2 (en) | 2016-08-17 |
Family
ID=49896620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012142613A Active JP5970255B2 (en) | 2012-06-26 | 2012-06-26 | Operation data output device, operation data output method and program |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5970255B2 (en) |
CN (1) | CN103513751B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3118721A4 (en) | 2014-03-13 | 2017-09-27 | Acooo (Beijing) Limited | Keyboard device having operating system and computer assembly |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61220063A (en) * | 1985-03-25 | 1986-09-30 | Omron Tateisi Electronics Co | Kanji input device |
JPH04361323A (en) * | 1991-06-10 | 1992-12-14 | Nec Ic Microcomput Syst Ltd | Character data converting and transferring system |
KR950008022B1 (en) * | 1991-06-19 | 1995-07-24 | 가부시끼가이샤 히다찌세이사꾸쇼 | Charactor processing method and apparatus therefor |
JPH05108231A (en) * | 1991-10-17 | 1993-04-30 | Ricoh Co Ltd | Input device |
JPH06131092A (en) * | 1992-10-15 | 1994-05-13 | Ricoh Co Ltd | Input device |
JP2001296957A (en) * | 2000-04-11 | 2001-10-26 | Fuerumo:Kk | Input device for internet communication apparatus |
US7002581B2 (en) * | 2000-12-19 | 2006-02-21 | Fujitsu Limited | Character information processing apparatus, character information processing method and storage medium |
EP2241956A4 (en) * | 2007-12-14 | 2013-09-04 | Sharp Kk | Input system, portable terminal, data processing device, and input method |
-
2012
- 2012-06-26 JP JP2012142613A patent/JP5970255B2/en active Active
-
2013
- 2013-06-20 CN CN201310246536.7A patent/CN103513751B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2014006753A (en) | 2014-01-16 |
CN103513751B (en) | 2017-09-22 |
CN103513751A (en) | 2014-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8127362B2 (en) | Image processing apparatus, control method of the apparatus, computer program for implementing the method, and storage medium | |
JP5523413B2 (en) | Image processing apparatus, image processing method, and program | |
JP2011076540A (en) | Document editing device and data transfer method using the same | |
US20180262637A1 (en) | Electronic device, information processing system and storage medium | |
US20060242593A1 (en) | Printer emoticon detector & converter | |
CN100483326C (en) | Image forming apparatus and method | |
JP5970255B2 (en) | Operation data output device, operation data output method and program | |
JP2006099442A (en) | Information processor, history file creation method, and program | |
US9591092B2 (en) | Relaying device, image processing device, and system comprising image processing device, relaying device and service server | |
JP2016124104A (en) | Image formation device, control method therefor and program | |
US20120086977A1 (en) | Printing method, recording medium, and information processing apparatus | |
JP2008211747A (en) | Image processing apparatus, server apparatus, task processing method, storage medium, and program | |
US20090279781A1 (en) | Image processing apparatus, image processing method, and storage medium | |
JP2015164021A (en) | Image processing system and processing method and program thereof | |
JP2010219928A (en) | Information providing apparatus, information providing method and information providing program | |
JP6749583B2 (en) | Information processing device, image processing device, and program | |
KR20050045193A (en) | Method and system of security printing using printer driver | |
JP2008052698A (en) | Apparatus and method for identifying language format | |
JP2007049368A (en) | Image processing apparatus, method for retrieving operation guide history, and program to be executed | |
JP2010134833A (en) | Document processor, document processing method, program, and recording medium | |
JP7070483B2 (en) | Electronic devices, information output systems, information output methods, and computer programs | |
JPH10198757A (en) | Optical information reader | |
US20190079713A1 (en) | Image forming apparatus, communication method, and non-transitory recording medium | |
JP2006243919A (en) | Information processor, information processing method, computer program, and computer readable storage medium | |
CN114968065A (en) | Optimized application of ipmitool-based tool in aspect of reading and writing FRU |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150422 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150422 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160224 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160308 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160509 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160607 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160615 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20160705 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160711 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5970255 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |