JP4038913B2 - Optical information reader - Google Patents
Optical information reader Download PDFInfo
- Publication number
- JP4038913B2 JP4038913B2 JP02035099A JP2035099A JP4038913B2 JP 4038913 B2 JP4038913 B2 JP 4038913B2 JP 02035099 A JP02035099 A JP 02035099A JP 2035099 A JP2035099 A JP 2035099A JP 4038913 B2 JP4038913 B2 JP 4038913B2
- Authority
- JP
- Japan
- Prior art keywords
- font
- address
- optical information
- pattern data
- character 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Input (AREA)
- Document Processing Apparatus (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、バーコードや2次元コードなどの光学情報を読み取る光学情報読取装置に関し、特に読み取った光学情報の内容、あるいは読取作業に際して利用者へ報知する必要のある情報を表示する機能を有する装置に関する。
【0002】
【従来の技術】
従来より、バーコードや2次元コードなどの光学情報を読み取る装置が知られており、さらに、その読み取った光学情報の内容(例えばバーコードなどが表している文字)や、あるいは読取作業に際して利用者へ報知する必要のある情報(例えば読み取り作業を円滑に進めるために利用者へ報知する次の動作指示などの各種案内)を表示することも考えられている。
【0003】
そして、例えば日本語での表示をする場合には、表示したい文字のシフトJISコードを用いてフォントパターンデータを読み出し、それを表示手段に表示している。つまり、メモリに記憶されているフォントパターンデータから所望のデータを読み出す際には、指定された文字に対応する文字コードの判別、その文字コードに対応するフォントパターンデータの割付アドレスの計算をし、その計算されたアドレスから所望のフォントパターンデータを読み出すこととなる。
【0004】
【発明が解決しようとする課題】
ところで、このような光学情報読取装置を日本語以外の言語を使用する地域に適用させるためには、文字コード体系が異なるため、上述のシフトJISコードによる割付アドレスの計算ができない。つまり、例えば同じ漢字「漢」を表示させたい場合であっても、日本語用のシフトJISコードでは「8ABF」という文字コードにて割付アドレスを得ることができるが、中国語の場合には別のコード体系があるため、同じ文字コードにて同じ文字のフォントパターンデータを得ることはできない。
【0005】
したがって、フォントパターンデータ自体を他国語用に変更するのはもちろん、表示制御を実行するためのシステムプログラム自体を変更しなくてはならず、プログラム管理等の点で問題である。そして、実際には、指定された文字コードに対応する割付アドレスを得る点が文字コード体系にて異なるだけであり、共通する他の処理が多くてもシステムプログラムそのものを複数種類準備しなくてはならないのは非合理的である。
【0006】
そこで、本発明は、異なる文字コード体系に基づく文字表示を実現しながら、表示制御を実行する基本のシステムプログラムについては汎用化し、プログラム管理の点での利便向上や合理化を実現できるようにすることを目的とする。
【0007】
【課題を解決するための手段及び発明の効果】
上記目的を達成するためになされた請求項1記載の光学情報読取装置によれば、読取手段によって光学情報を読み取り、その読み取った光学情報の内容、あるいは読取作業に際して利用者へ報知する必要のある情報を表示手段に表示することができる。なお、「読み取った光学情報の内容」とは、例えばバーコードなどが表している文字(英字、漢字、数字などを含む概念である。)などであり、「読取作業に際して利用者へ報知する必要のある情報」とは、例えば読み取り作業を円滑に進めるために利用者へ次の動作指示をしたりする、といった各種案内などである。
【0008】
そして、本光学情報読取装置は、表示手段へ文字を表示するための文字毎のフォントパターンデータ、及び、指定された文字コードに対応するフォントパターンデータが割り付けられているアドレスを計算するアドレス計算関数を有するフォントファイルを備えており、表示制御手段が、指定された文字コードに対応するフォントパターンデータをフォントファイルから読み出して表示手段へ表示する。この表示制御に際して、表示制御手段は次のような手順でフォントパターンデータを読み出す。すなわち、指定された文字コードを引数としてフォントファイル中のアドレス計算関数を用いた計算の実行を指示する。その実行指示によって計算されたフォントパターンデータのアドレスに基づいて該当するフォントパターンデータをフォントファイル中から読み出すのである。
【0009】
このようにしてフォントパターンデータを読み出すようにした結果、異なる文字コード体系に適用させる場合であっても、表示制御手段は同じシステムプログラムに基づいて制御を実行することができる。つまり、フォントパターンデータと、その割付アドレスの計算のための関数とを対にしてフォントファイルとして持ち、表示制御に際しては、そのフォントファイル中のアドレス計算関数を用いて指定文字コードに対応するフォントパターンデータのアドレスを計算するようにしたため、表示制御手段におけるシステムプログラムは汎用化される。
【0010】
したがって、従来においては、上述したように文字コード体系の異なる複数の国などで使用する場合に、表示制御のためのシステムプログラム自体を改変しなくてはならなったものが、本発明によれば、フォントファイルだけをその文字コード体系用に変更すればよいだけとなる。つまり、異なる文字コード体系に基づく文字表示を実現しながら、表示制御を実行する基本のシステムプログラムについては汎用化することができるため、プログラム管理の点での利便向上や合理化を実現できる。
【0011】
また、フォントファイルの構成に関しては、例えばフォントファイルの先頭から考えてどの位置にアドレス計算関数が配置されているかが固定されていれば、その配置場所を固定的に記憶しておけば装置側としても問題ないが、実際には固定的に配置されないことが多い。そこで、請求項1に示すように、フォントファイルの先頭に、少なくともアドレス計算関数の相対的な割付アドレスを示すヘッダ情報が配置しておき、そのヘッダ情報に基づいてアドレス計算関数の絶対的な割付アドレスを特定し、装置内に記憶しておくことが考えられる。このようにすれば、まずフォントファイルの先頭に配置されたヘッダ情報を読み取って、アドレス計算関数の相対的な割付アドレス、つまりフォントファイルの先頭からアドレス計算関数が配置されている部分までのオフセット値を取得し、そのオフセット値に基づいて、フォントファイルが格納されたメモリ内におけるアドレス計算関数の絶対的な割付アドレスを得ることができる。
なお、表示指定された文字コードを引数としてフォントファイル中のアドレス計算関数を用いた計算を実行しても、該当アドレスが存在しない場合も考えられるため、その場合の対処として、請求項2に示すように、表示制御手段が所定のエラー対応表示を実行することが考えられる。この場合には、エラーが生じていることが判ればよいので文字で表示する必要もなく、例えば図形的な表示であってもよい。
【0012】
ところで、文字コードを引数としてフォントファイル中のアドレス計算関数を用いた計算を実行させるにあたっては、次のような状況において所定の考慮をする必要がある。つまり、複数のフォントファイルを備えていると共に、それらフォントファイル中のフォントパターンデータ同士は、文字コード体系は等しいが文字サイズあるいは字体の少なくともいずれかが異なったフォント属性を持っている場合である。例えば同じシフトJISコードであっても、サイズが12ドットと16ドットの場合のそれぞれに対応したフォントファイルを準備しておくような場合である。この場合には、どのフォントファイルを用いるかによって表示結果が異なるため、請求項3に示すように、表示制御手段は、指定された文字コードに対応するフォントパターンデータを、指定されたフォント属性用のフォントファイル中より読み出し、それを表示すればよい。
【0014】
なお、請求項4に示すように、ヘッダ情報には、フォントパターンデータに関するバージョン情報あるいは言語種類の少なくともいずれかを示すデータを格納しておくことが考えられる。
【0015】
【発明の実施の形態】
以下に、本発明の好適な実施例を図面に基づいて説明する。尚、本発明の実施の形態は、下記の実施例に何ら限定されるものではなく、本発明の技術的範囲に属する限り種々の形態を採り得ることはいうまでもない。
【0016】
図1は一実施例としての光学情報読取装置1のブロック図を示す。本実施例の光学情報読取装置1は、いわゆるバーコードハンディターミナルとして構成されており、CPU10と、照明発光ダイオード(照明LED)11と、CCDセンサ12と、増幅回路13と、2値化回路14と、カウンタ15と、クロックパルス発生回路16と、RAM20と、フラッシュROM21と、読取スイッチ30と、キーボード31と、液晶表示器32と、通信I/F回路33とを中心にして構成されている。
【0017】
照明LED11は、読取対象であるバーコードに対して照明用の赤色光を照射するものである。
CCDセンサ12は、1次元的に配列された複数の電荷結合素子(CCD)を有しており、バーコードなどの光学情報が記録した面から反射した光を光電変換によって電気信号にして出力する。この出力信号は増幅回路13によって増幅されて2値化回路14に出力される。
【0018】
増幅回路13は、所定の増幅率で、CCDセンサ12から出力された電気信号を増幅する。なお、CPU10から入力したゲインコントロール電圧に対応して増幅率を可変に構成することも可能である。
2値化回路14は、増幅回路13にて増幅された電気信号を2値化し、カウンタ15に出力する。CCDセンサ12からの出力は反射光の強弱に応じたアナログ信号であるため、2値化回路14にて2値化信号とされた場合、その2値化信号は明暗いずれかに対応するパターンを形成することとなる。本発明では、暗パターンがバーコードの黒バーとなり、明パターンがバーコードの白バーとなるようにされている。そこで、カウンタ15は、2値化回路14から入力された2値化信号をクロックパルス発生回路16から発生されてクロックパルスを単位として計数し、そのカウント値をRAM20に出力する。このカウント値がバー幅に対応する。
【0019】
読取スイッチ30は、利用者が読取処理の開始を指示するためのスイッチであり、キーボード31は、テンキーあるいは各種ファンクションキーを備え、情報入力のために用いられる。
液晶表示器32は、例えば2階調表示のLCDとして構成されており、読み取った光学情報の内容(例えばバーコードなどが表している文字)や、あるいは読取作業に際して利用者へ報知する必要のある情報(例えば読み取り作業を円滑に進めるために利用者へ報知する次の動作指示などの各種案内)を表示するためなどに用いられる。
【0020】
通信I/F回路33は、図示しない外部装置との間で通信を行うものであり、図示しない通信用発光素子を介してデータを外部装置に送信したり、図示しない通信用受光素子を介して外部装置からの信号(例えばシステムを動かすためのプログラムや送信を待機する命令等)を受信する。
【0021】
CPU10は、フラッシュROM21に記憶されているプログラムに従って読取処理や表示処理等を実行し、光学情報読取装置1の各構成を制御している。
フラッシュROM21には、図2(a)に示すように、システムプログラム、フォントファイルなどが格納されており、RAM20には、アプリケーションプログラム、データファイルなどが格納されている。なお、アプリケーションプログラム、データファイルはフラッシュROM21に格納しておくことも可能である。
【0022】
システムプログラムに基づいてCPU10が行う処理内容としては、アプリケーションプログラムの解釈や実行をし、それに基づくハードウェアなどの制御が挙げられる。例えばバーコード読み取りに係るアプリケーションプログラムを実行する場合には、読取スイッチ30やキーボード31からの入力を受け付け、照明LED11、CCDセンサ12、クロックパルス発生回路16に対する制御を行い、さらに液晶表示器32に対する表示制御を行う。
【0023】
この表示制御に関し、文字を表示する際には、フォントファイル中のフォントパターンデータを読み出して液晶表示器32に出力して文字表示を行う。したがって、上述したように、例えばバーコードが表している文字(英字、漢字、数字などを含む。)や、読み取り作業を円滑に進めるために利用者へ次の動作指示を文字にて表示することができる。
【0024】
ここで、フォントファイルの構成について簡単に説明しておく。図2(a)にその概略を示すように、フォントファイルは、文字毎のフォントパターンデータと、指定された文字コードに対応するフォントパターンデータが割り付けられているアドレスを計算するアドレス計算関数を備えている。例えば文字コードが2バイト(16ビット)コードであった場合、65536(=216)のフォントパターンデータを持っているわけではなく、各文字コード体系に応じたフォントで使用している部分だけをフォントパターンデータとして持つ。そのため、文字コードからフォントパターンデータが格納されているアドレスを各文字コード体系特有の計算によって求める必要がある。アドレス計算関数はそのためのものである。
【0025】
なお、当然であるが、フォントファイル自体はフラッシュROM21のどの部分に格納されるかは判らない。そのため、アドレス計算関数が計算する割付アドレスは、フォントファイル中におけるフォントパターンデータのアドレス、つまり相対的な割付アドレスである。
【0026】
その際、次のような手順でフォントパターンデータを読み出す。なお、図2(a)において(a1)〜(a6)としてこの手順を示した。また、以下の説明において、動作主体を示す「アプリケーションプログラムは…」という表現は、実際には「アプリケーションプログラムに基づいて実行される処理によれば…」という意味であり、記載簡略化のためにそのように表記する。同様に、「システムプログラムは…」という表現についても、実際は「システムプログラムに基づいて実行される処理によれば…」という意味である。
【0027】
(a1)まず、アプリケーションプログラムがシステムプログラムに対して指定文字の表示指示を行う。上述したように、例えばバーコードが表している文字や、読み取り作業を円滑に進めるために利用者へ次の動作指示などを示すための文字である。例えばシフトJISコードにおいて「漢」という漢字を表示する指示がある場合には、アプリケーションプログラムから文字コード「8ABF」を表示する旨の指示が来る。
【0028】
(a2)次いで、その指示を受けたシステムプログラムは、指定文字に対応するフォントパターンデータのアドレス計算の指示を、アドレス計算関数に対して指示する。上述した「漢」という漢字の場合であれば、文字コード「8ABF」を引数としてアドレス計算関数を用いた計算の実行を指示する。
【0029】
(a3)そして、その戻り値として「漢」の文字のフォントパターンデータが格納されている先頭アドレスを取得する。なお、アドレス計算関数は、該当するフォントがある場合にはそのアドレスを返し、該当するフォントがない場合にはエラーコードを返す。
【0030】
(a4)アドレス計算関数による計算結果としての戻り値を得たシステムプログラムは、その戻り値であるアドレスを指定してフォントパターンデータの読み出しを指示する。
(a5)その読出指示に応じた該当するフォントパターンデータが読み出されてシステムプログラム側へ送られる。
【0031】
(a6)システムプログラムは、その送られたフォントパターンデータを液晶表示器(LCD)32へ送って表示させる。なお、(a3)にて、アドレス計算関数による計算結果としての戻り値がエラーコードであった場合には、指定した文字コードに対応するフォントパターンデータがないことを示しているので、その場合の対処としては、例えば所定のエラー対応表示をすればよい。この場合には、エラーが生じていることが判ればよいので文字で表示する必要もなく、例えば枠状の図形などの表示であってもよい。
【0032】
本実施例においては、このようにしてフォントパターンデータを読み出すようにした結果、異なる文字コード体系に適用させる場合であっても、同じシステムプログラムに基づいて制御を実行することができることとなった。つまり、フォントパターンデータと、その割付アドレスの計算のための関数とを対にしてフォントファイルとして持ち、表示制御に際しては、そのフォントファイル中のアドレス計算関数を用いて指定文字コードに対応するフォントパターンデータのアドレスを計算するようにしたため、システムプログラムは汎用化される。
【0033】
したがって、従来は、上述したように文字コード体系の異なる複数の国などで使用する場合に表示制御のためのシステムプログラム自体を改変しなくてはならなったものが、本実施例によれば、フォントファイルだけをその文字コード体系用に変更すればよいだけとなる。
【0034】
ここで、図2(b)に示した比較のための従来例における表示制御の手順を概説する。(b1)にてアプリケーションプログラムがシステムプログラムに対して指定文字の表示指示を行うと、(b2)にて、その指示を受けたシステムプログラムが指定文字に対応するフォントパターンデータのアドレスを計算する。つまり、図2(a)でいうところのアドレス計算関数がシステムプログラム中に含まれているため、そのアドレス計算関数を用いてアドレスを計算する。したがって、アプリケーションプログラムから文字コード「8ABF」の表示指令がくれば、その8ABFのフォントパターンデータがどのアドレスに存在するかを計算した上で、読み出しを行う。そして、(b3)にて該当するフォントパターンデータが読み出されてシステムプログラム側へ送られ、(b4)では、システムプログラムが、その送られたフォントパターンデータをLCDへ送って表示させることとなる。
【0035】
この従来例の構成において異なる文字コード体系に基づく文字表示を実現するためには、フォントパターンデータはもちろん、システムプログラム自体までも変更する必要がある。これに対して、本実施例の場合には、図2(a)を参照して説明したように、フォントファイルのみ変更すればよく、基本のシステムプログラムについては変更しなくてもよい。適用する文字コード体系の種類が多くなればなるほど、この利点は顕著になる。このようにシステムプログラムを汎用化できるため、プログラム管理の点での利便向上や合理化を実現できる。
【0036】
[別実施例]
(1)上述の実施例では、理解を容易にするため、フラッシュROMに格納されるフォントファイルについては、例えば使用言語に応じて交換するようなイメージにて説明した。但し、例えば日本語と中国語の2か国語で同時に表示させるといったアプリケーションも考えられるため、その場合には、文字コード体系自体が異なる日本語用のフォントファイル及び中国語用のフォントファイルというように2種類のフォントファイルを格納しておけばよい。そして、図2(a)のアプリケーションプログラムからの指定文字の表示指示(a1)において、日本語用の文字コードと中国語用の文字コードの両方を指示すればよい。
【0037】
(2)また、このような文字コード体系自体が異なる場合ではなく、文字コード体系が同じ場合でも次のような場合にも工夫が必要である。つまり、複数のフォントファイルを備えているのではあるが、フォントパターンデータ同士は、文字コード体系は等しいが文字サイズあるいは字体の少なくともいずれかが異なったフォント属性を持っている場合も考えられる。例えば同じシフトJISコードであっても、サイズが12ドットと16ドットの場合のそれぞれに対応したフォントファイルを準備しておくような場合である。この場合には、どのフォントファイルを用いるかによって表示結果が異なるため、システムプログラムは、指定された文字コードに対応するフォントパターンデータを、指定されたフォント属性用のフォントファイル中より読み出し、それを表示する必要がある。したがって、その場合には、フォントファイル中のフォントパターンデータのフォント属性を区別できるようにしておく必要がある。
【0038】
(3)一方、フォントファイルの構成に関しては、次の点についても考慮するとよい。つまり、アドレス計算関数に対して文字コードを指定する場合、フォントファイル中におけるアドレス計算関数自体のアドレスも判っている必要がある。例えばフォントファイルの先頭から考えてどの位置にアドレス計算関数が配置されているかが固定されていれば、その配置場所を固定的に記憶しておけば装置1側としても問題ないが、実際には固定的に配置されないことが多い。そのため、図2は図示していないが、フォントファイルの先頭に、少なくともアドレス計算関数の相対的な割付アドレスを示すヘッダ情報を配置しておき、そのヘッダ情報に基づいてアドレス計算関数の絶対的な割付アドレスを特定し、装置内に記憶しておくことも考えられる。
【0039】
このようにすれば、まずフォントファイルの先頭に配置されたヘッダ情報を読み取って、アドレス計算関数の相対的な割付アドレス、つまりフォントファイルの先頭からアドレス計算関数が配置されている部分までのオフセット値を取得し、そのオフセット値に基づいて、フォントファイルが格納されたメモリ内におけるアドレス計算関数の絶対的な割付アドレスを得ることができる。
【0040】
なお、その場合のヘッダ情報には、アドレス計算関数の相対的な割付アドレス以外にも、フォントパターンデータに関するバージョン情報あるいは言語種類の少なくともいずれかを示すデータを格納しておくことが考えられる。
(4)また、光学情報の読取機構に関し、上記実施例では図1に示すようにCCDセンサ12を用いたが、レーザ光にて走査する方式のものを採用してもよい。さらに、読取対象としてはバーコードには限られず、2次元コードであってもよい。
【図面の簡単な説明】
【図1】 実施例としての光学情報読取装置のブロック図である。
【図2】 (a)は実施例の表示制御に係る手順の概略を示す説明図であり、(b)は従来例の表示制御に係る手順の概略を示す説明図である。
【符号の説明】
1…光学情報読取装置
10…CPU
11…照明LED
12…CCDセンサ
13…増幅回路
14…2値化回路
15…カウンタ
16…クロックパルス発生回路
20…RAM
21…フラッシュROM
30…読取スイッチ
31…キーボード
32…液晶表示器
33…通信I/F回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an optical information reading device that reads optical information such as a bar code and a two-dimensional code, and more particularly to a device that has a function of displaying the contents of the read optical information or information that needs to be notified to a user during a reading operation. About.
[0002]
[Prior art]
Conventionally, devices for reading optical information such as barcodes and two-dimensional codes are known, and further, the contents of the read optical information (for example, characters represented by barcodes) or the user at the time of reading work It is also considered to display information that needs to be notified to the user (for example, various guidance such as the next operation instruction to be notified to the user in order to smoothly proceed with the reading operation).
[0003]
For example, when displaying in Japanese, the font pattern data is read using the shift JIS code of the character desired to be displayed and displayed on the display means. That is, when reading desired data from the font pattern data stored in the memory, the character code corresponding to the designated character is determined, the allocation address of the font pattern data corresponding to the character code is calculated, The desired font pattern data is read out from the calculated address.
[0004]
[Problems to be solved by the invention]
By the way, in order to apply such an optical information reading apparatus to an area where a language other than Japanese is used, since the character code system is different, the allocation address cannot be calculated by the above-mentioned shift JIS code. That is, for example, even when the same Chinese character “Chinese” is to be displayed, the assigned address can be obtained with the character code “8ABF” in the shift JIS code for Japanese. Therefore, it is not possible to obtain font pattern data of the same character with the same character code.
[0005]
Therefore, the system program itself for executing display control must be changed as well as changing the font pattern data itself for other languages, which is problematic in terms of program management. Actually, the only difference in the character code system is that the assigned address corresponding to the specified character code is obtained. Even if there are many other common processes, multiple types of system programs must be prepared. It is irrational to not be.
[0006]
Therefore, the present invention makes it possible to generalize a basic system program that executes display control while realizing character display based on different character code systems, and to realize improvement in convenience and rationalization in terms of program management. With the goal.
[0007]
[Means for Solving the Problems and Effects of the Invention]
According to the optical information reader of
[0008]
And this optical information reading apparatus is an address calculation function for calculating font pattern data for each character for displaying characters on the display means, and an address to which font pattern data corresponding to the designated character code is allocated. The display control means reads font pattern data corresponding to the designated character code from the font file and displays it on the display means. In this display control, the display control means reads font pattern data in the following procedure. That is, execution of calculation using the address calculation function in the font file is instructed with the designated character code as an argument. The corresponding font pattern data is read out from the font file based on the font pattern data address calculated by the execution instruction.
[0009]
As a result of reading the font pattern data in this way, the display control means can execute control based on the same system program even when it is applied to different character code systems. In other words, the font pattern data and the function for calculating the assigned address are paired as a font file, and for display control, the font pattern corresponding to the specified character code using the address calculation function in the font file. Since the address of the data is calculated, the system program in the display control means is generalized.
[0010]
Therefore, according to the present invention, conventionally, when used in a plurality of countries having different character code systems as described above, the system program itself for display control must be modified. Only the font file needs to be changed for the character code system. In other words, the basic system program that executes display control while realizing character display based on different character code systems can be generalized, so that convenience and rationalization in terms of program management can be realized.
[0011]
In addition, regarding the configuration of the font file, for example, if it is fixed at which position the address calculation function is arranged in consideration of the beginning of the font file, if the arrangement location is fixedly stored, the device side There is no problem, but in practice it is often not fixed. Therefore, as shown in
Note that even if the calculation using the address calculation function in the font file is executed with the character code designated for display as an argument, there is a case where the corresponding address does not exist. Thus, it is conceivable that the display control means executes a predetermined error handling display. In this case, since it is only necessary to know that an error has occurred, it is not necessary to display with characters, and for example, a graphical display may be used.
[0012]
By the way, in executing the calculation using the address calculation function in the font file with the character code as an argument, it is necessary to give a predetermined consideration in the following situation. That is, a plurality of font files are provided, and font pattern data in these font files have the same character code system but different font attributes in at least one of character size and font. For example, even when the same shift JIS code is used, font files corresponding to sizes of 12 dots and 16 dots are prepared. In this case, since the display result varies depending on which font file is used, as shown in
[0014]
As described in claim 4 , it is conceivable that the header information stores data indicating at least one of version information about font pattern data and a language type.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. The embodiments of the present invention are not limited to the following examples, and it goes without saying that various forms can be adopted as long as they belong to the technical scope of the present invention.
[0016]
FIG. 1 shows a block diagram of an
[0017]
The illumination LED 11 irradiates the barcode to be read with red light for illumination.
The CCD sensor 12 has a plurality of charge coupled devices (CCD) arranged one-dimensionally, and outputs light reflected from a surface on which optical information such as a barcode is recorded as an electrical signal by photoelectric conversion. . This output signal is amplified by the
[0018]
The
The
[0019]
The reading
The
[0020]
The communication I / F circuit 33 communicates with an external device (not shown), and transmits data to an external device via a communication light emitting element (not shown) or via a communication light receiving element (not shown). A signal from an external device (for example, a program for operating the system or a command for waiting for transmission) is received.
[0021]
The
As shown in FIG. 2A, the
[0022]
The processing contents performed by the
[0023]
With regard to this display control, when displaying a character, the font pattern data in the font file is read and output to the
[0024]
Here, the configuration of the font file will be briefly described. As schematically shown in FIG. 2A, the font file includes an address calculation function that calculates font pattern data for each character and an address to which the font pattern data corresponding to the designated character code is allocated. ing. For example, if the character code is a 2-byte (16 bit) code, it does not have 65536 (= 2 16 ) font pattern data, but only the portion used in the font corresponding to each character code system. Has as font pattern data. Therefore, it is necessary to obtain the address where the font pattern data is stored from the character code by calculation specific to each character code system. The address calculation function is for that purpose.
[0025]
Of course, it is not known in which part of the
[0026]
At that time, the font pattern data is read in the following procedure. In FIG. 2A, this procedure is shown as (a1) to (a6). Further, in the following description, the expression “application program is ...” indicating the operating subject actually means “according to the process executed based on the application program ...”, and for the sake of simplicity of description. It is written as such. Similarly, the expression “system program is ...” actually means “according to processing executed based on the system program ...”.
[0027]
(A1) First, the application program instructs the system program to display a designated character. As described above, for example, it is a character represented by a barcode or a character for indicating a next operation instruction to the user in order to smoothly perform a reading operation. For example, when there is an instruction to display the Chinese character “Kan” in the shift JIS code, an instruction to display the character code “8ABF” comes from the application program.
[0028]
(A2) Next, the system program that received the instruction instructs the address calculation function to calculate the address of the font pattern data corresponding to the designated character. In the case of the above-described Chinese character “Kan”, execution of calculation using the address calculation function is instructed with the character code “8ABF” as an argument.
[0029]
(A3) Then, as the return value, the head address where the font pattern data of the character “Kan” is stored is acquired. The address calculation function returns the address if there is a corresponding font, and returns an error code if there is no corresponding font.
[0030]
(A4) The system program that has obtained the return value as the calculation result by the address calculation function designates the address as the return value and instructs the reading of the font pattern data.
(A5) The corresponding font pattern data corresponding to the read instruction is read and sent to the system program side.
[0031]
(A6) The system program sends the sent font pattern data to the liquid crystal display (LCD) 32 for display. In (a3), when the return value as the calculation result by the address calculation function is an error code, it indicates that there is no font pattern data corresponding to the designated character code. As a countermeasure, for example, a predetermined error handling display may be displayed. In this case, since it is only necessary to know that an error has occurred, it is not necessary to display the characters, and for example, a frame-like figure may be displayed.
[0032]
In this embodiment, as a result of reading the font pattern data in this way, control can be executed based on the same system program even when applied to different character code systems. In other words, the font pattern data and the function for calculating the assigned address are paired as a font file, and for display control, the font pattern corresponding to the specified character code using the address calculation function in the font file. Since the address of the data is calculated, the system program is generalized.
[0033]
Therefore, conventionally, as described above, when used in a plurality of countries having different character code systems, the system program for display control itself must be modified. Only the font file needs to be changed for the character code system.
[0034]
Here, the procedure of display control in the conventional example for comparison shown in FIG. When the application program instructs the system program to display the designated character in (b1), the system program that receives the instruction calculates the address of the font pattern data corresponding to the designated character in (b2). That is, since the address calculation function in FIG. 2A is included in the system program, the address is calculated using the address calculation function. Therefore, when a display command for the character code “8ABF” is received from the application program, the address is read after calculating the address where the font pattern data of the 8ABF exists. In (b3), the corresponding font pattern data is read and sent to the system program side. In (b4), the system program sends the sent font pattern data to the LCD for display. .
[0035]
In order to realize character display based on a different character code system in the configuration of this conventional example, it is necessary to change not only the font pattern data but also the system program itself. On the other hand, in the present embodiment, as described with reference to FIG. 2A, only the font file needs to be changed, and the basic system program need not be changed. This advantage becomes more remarkable as the number of types of character code systems to be applied increases. Since the system program can be generalized in this way, convenience and rationalization in terms of program management can be realized.
[0036]
[Another example]
(1) In the above-described embodiment, in order to facilitate understanding, the font file stored in the flash ROM has been described as an image that is exchanged according to, for example, the language used. However, for example, an application that displays in both Japanese and Chinese at the same time can be considered. In that case, a font file for Japanese and a font file for Chinese with different character code systems are used. Two types of font files may be stored. Then, in the designated character display instruction (a1) from the application program of FIG. 2A, both the Japanese character code and the Chinese character code may be indicated.
[0037]
(2) Further, it is necessary to devise not only when the character code system itself is different but also when the character code system is the same or the following. That is, although a plurality of font files are provided, the font pattern data may have font attributes that have the same character code system but differ in at least one of character size and font. For example, even when the same shift JIS code is used, font files corresponding to sizes of 12 dots and 16 dots are prepared. In this case, since the display result differs depending on which font file is used, the system program reads the font pattern data corresponding to the designated character code from the font file for the designated font attribute, and reads it. Need to be displayed. Therefore, in that case, it is necessary to be able to distinguish the font attributes of the font pattern data in the font file.
[0038]
(3) On the other hand, regarding the configuration of the font file, the following points should be considered. That is, when a character code is specified for the address calculation function, it is necessary to know the address of the address calculation function itself in the font file. For example, if it is fixed at which position the address calculation function is arranged from the top of the font file, there is no problem for the
[0039]
In this way, the header information placed at the beginning of the font file is read first, and the relative allocation address of the address calculation function, that is, the offset value from the beginning of the font file to the part where the address calculation function is placed And an absolute allocation address of the address calculation function in the memory in which the font file is stored can be obtained based on the offset value.
[0040]
In this case, in addition to the relative assignment address of the address calculation function, it is possible to store data indicating at least one of the version information about the font pattern data and the language type.
(4) As for the optical information reading mechanism, the CCD sensor 12 is used as shown in FIG. 1 in the above embodiment, but a scanning type using a laser beam may be adopted. Furthermore, the reading target is not limited to a barcode, and may be a two-dimensional code.
[Brief description of the drawings]
FIG. 1 is a block diagram of an optical information reading apparatus as an embodiment.
FIG. 2A is an explanatory diagram illustrating an outline of a procedure related to display control according to an embodiment, and FIG. 2B is an explanatory diagram illustrating an overview of a procedure related to display control according to a conventional example;
[Explanation of symbols]
DESCRIPTION OF
11 ... Lighting LED
DESCRIPTION OF SYMBOLS 12 ...
21 ... Flash ROM
30 ... Reading switch 31 ...
Claims (4)
該読取手段にて読み取った光学情報の内容、あるいは読取作業に際して利用者へ報知する必要のある情報を表示するための表示手段と、
前記表示手段へ文字を表示するための文字毎のフォントパターンデータ、及び、指定された文字コードに対応する前記フォントパターンデータが割り付けられているアドレスを計算するアドレス計算関数を有するフォントファイルと、
指定された文字コードに対応するフォントパターンデータを、前記フォントファイルから読み出して前記表示手段へ表示する表示制御手段と、
を備える光学情報読取装置であって、
前記表示制御手段は、指定された文字コードを引数として前記フォントファイル中のアドレス計算関数を用いた計算の実行を指示し、その実行指示によって計算されたフォントパターンデータのアドレスに基づいて該当するフォントパターンデータを読み出すものであり、
前記フォントファイルの先頭には、少なくとも前記アドレス計算関数の相対的な割付アドレスを示すヘッダ情報が配置されており、当該ヘッダ情報に基づいて前記アドレス計算関数の絶対的な割付アドレスを特定し、記憶しておくこと、
を特徴とする光学情報読取装置。Reading means for reading optical information;
Display means for displaying the contents of the optical information read by the reading means, or information that needs to be notified to the user during the reading operation;
Font file data for each character for displaying characters on the display means, and a font file having an address calculation function for calculating an address to which the font pattern data corresponding to a specified character code is assigned;
Display control means for reading out the font pattern data corresponding to the designated character code from the font file and displaying it on the display means;
An optical information reader comprising:
The display control means instructs execution of calculation using an address calculation function in the font file with a specified character code as an argument, and the corresponding font based on the address of the font pattern data calculated by the execution instruction Read pattern data ,
At the head of the font file, header information indicating at least a relative allocation address of the address calculation function is arranged, and an absolute allocation address of the address calculation function is specified based on the header information and stored. Keep it,
An optical information reader.
前記表示制御手段は、前記アドレス計算関数を用いた計算結果としてのアドレスが存在しない場合には、所定のエラー対応表示を実行すること、
を特徴とする光学情報読取装置。The optical information reader according to claim 1.
The display control means, when there is no address as a calculation result using the address calculation function, to perform a predetermined error handling display;
An optical information reader.
複数のフォントファイルを備えていると共に、それらフォントファイル中のフォントパターンデータ同士は、文字コード体系は等しいが文字サイズあるいは字体の少なくともいずれかが異なったフォント属性を持っており、
前記表示制御手段は、指定された文字コードに対応するフォントパターンデータを、指定されたフォント属性用のフォントファイル中より読み出すこと、
を特徴とする光学情報読取装置。The optical information reader according to claim 1 or 2,
In addition to having multiple font files, the font pattern data in these font files have the same character code system but have different font attributes in at least one of the character size or font,
The display control means reads out font pattern data corresponding to the designated character code from the font file for the designated font attribute;
An optical information reader.
前記ヘッダ情報には、前記フォントパターンデータに関するバージョン情報あるいは言語種類の少なくともいずれかを示すデータが格納されていること、
を特徴とする光学情報読取装置。In the optical information reader according to any one of claims 1 to 3,
The header information stores data indicating at least one of version information or language type related to the font pattern data ;
An optical information reader.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP02035099A JP4038913B2 (en) | 1999-01-28 | 1999-01-28 | Optical information reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP02035099A JP4038913B2 (en) | 1999-01-28 | 1999-01-28 | Optical information reader |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000222566A JP2000222566A (en) | 2000-08-11 |
JP4038913B2 true JP4038913B2 (en) | 2008-01-30 |
Family
ID=12024684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP02035099A Expired - Fee Related JP4038913B2 (en) | 1999-01-28 | 1999-01-28 | Optical information reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4038913B2 (en) |
-
1999
- 1999-01-28 JP JP02035099A patent/JP4038913B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2000222566A (en) | 2000-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10311274B2 (en) | Reader for optical indicia presented under two or more imaging conditions within a single frame time | |
US8282006B2 (en) | Imaging device operative for image processing | |
CN105740746B (en) | Visual feedback for code readers | |
US20030006290A1 (en) | Optical reader comprising soft key including permanent graphic indicia | |
US7325737B2 (en) | Methods and apparatus for identifying candidate barcode fields | |
JP4270133B2 (en) | Information reader | |
US20030089775A1 (en) | Display-equipped optical reader having decode failure image display feedback mode | |
US20020171745A1 (en) | Multimode image capturing and decoding optical reader | |
US20050279834A1 (en) | Apparatus for optically reading information | |
JP2002074261A (en) | Information code reader | |
JP2007179372A (en) | Combined barcode and method of reading barcode | |
JP4038913B2 (en) | Optical information reader | |
US9940497B2 (en) | Minimizing laser persistence on two-dimensional image sensors | |
US10911610B2 (en) | Printer script autocorrect | |
JP6114320B2 (en) | Code reading learning system | |
JPH01222393A (en) | Information code sheet and its code recognizing method | |
US11227302B2 (en) | Code reading device, method, and program | |
JP4915307B2 (en) | Portable information reader | |
JP3500540B2 (en) | Barcode data processing device | |
JPS62269991A (en) | Character deformation printing processor | |
JPS63272144A (en) | Dump output device | |
JPH07186465A (en) | Printer | |
JPS63211479A (en) | Optical character reader | |
JPS6365561A (en) | 'kana' to 'kanji' converter | |
JPH02268385A (en) | Optical character reader |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050228 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070724 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070905 |
|
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: 20071016 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071029 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101116 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101116 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111116 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111116 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121116 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121116 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121116 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131116 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |