JPH06203077A - Electronic dictionary - Google Patents
Electronic dictionaryInfo
- Publication number
- JPH06203077A JPH06203077A JP4361614A JP36161492A JPH06203077A JP H06203077 A JPH06203077 A JP H06203077A JP 4361614 A JP4361614 A JP 4361614A JP 36161492 A JP36161492 A JP 36161492A JP H06203077 A JPH06203077 A JP H06203077A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- input
- search
- key
- length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は電子辞書に係り、特にワ
イルドカードを使用して検索が行なえる電子辞書に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic dictionary, and more particularly to an electronic dictionary that can be searched by using wildcards.
【0002】[0002]
【従来の技術】電子辞書としては、コンピュータやワー
プロ(ワードプロセッサ)に組み込まれたものや、小型
携帯型の専用機など、各種の製品が開発されており、そ
の機能も、単に見出語を指定してその対応情報を得ると
いう基本的なものだけでなく、各種の付加的な機能を備
えたものが提供されている。この付加的機能の一つにワ
イルドカードの使用があり、検索すべき見出語の綴りを
正確に把握していない場合に、如何なる文字或は文字列
の代わりになる特殊文字、所謂ワイルドカードを、指定
する見出語に含めて検索指令を出すことができる電子辞
書が提案されている。2. Description of the Related Art As electronic dictionaries, various products have been developed, such as those built into a computer or word processor (word processor), and small portable dedicated machines. Then, not only the basic one for obtaining the corresponding information but also the one provided with various additional functions is provided. One of these additional functions is the use of wildcards, which allows you to use special characters, so-called wildcards, in place of any character or string if you do not know exactly the spelling of the term you are searching for. , An electronic dictionary has been proposed that can issue a search command by including it in a specified headword.
【0003】このワイルドカードには、如何なる文字に
対しても代用可能な特殊文字と、任意長の如何なる文字
列に対しても代用可能な特殊文字との2種類の特殊文字
が使用されているが、綴りの分からない部分の文字数が
明確でない場合もあるので、一般にワイルドカードとし
ては、如何なる文字列に対しても代用可能な特殊文字が
使用される。This wild card uses two types of special characters, a special character that can substitute for any character and a special character that can substitute for any character string of arbitrary length. Since there are cases where the number of characters in the part that cannot be spelled is unclear, special characters that can substitute for any character string are generally used as wild cards.
【0004】[0004]
【発明が解決しようとする課題】前述した従来の電子辞
書でワイルドカードを使用すると、ワイルドカードが任
意の長さの文字列に対応付けられるために、検索される
見出語の候補が膨大な数になってしまい、これらの候補
の中から目的の見出語を見付けるのに、手間がかかって
しまうという問題があった。When a wildcard is used in the above-mentioned conventional electronic dictionary, the wildcard is associated with a character string of an arbitrary length, so that the number of found word candidates to be searched is enormous. There is a problem that it takes a lot of time and it takes time to find the target word out of these candidates.
【0005】本発明は、前述したような電子辞書でのワ
イルドカード使用の現状に鑑みてなされたものであり、
その目的は、ワイルドカードを使用する検索時に、対応
する文字列の長さを制限し、検索される見出語数を抑
え、目的の見出語を迅速に見付けることができる電子辞
書を提供することにある。The present invention has been made in view of the current situation of using wildcards in an electronic dictionary as described above,
The purpose is to provide an electronic dictionary that limits the length of the corresponding character string when searching using a wildcard, reduces the number of found words to be searched, and can quickly find the desired found word. It is in.
【0006】[0006]
【課題を解決するための手段】前記目的を達成するため
に、本発明の電子辞書は、見出語と該見出語の対応情報
とからなる対照辞書を格納する辞書格納手段と、前記対
照辞書の見出語の各文字に対応するコードを入力する文
字コード入力手段と、前記対照辞書の見出語の如何なる
文字列とも一致する特殊コードを入力する特殊コード入
力手段と、前記コード及び前記特殊コードに対応する前
記見出語の検索コマンドを入力する検索指示入力手段
と、前記検索コマンドに基づいて前記対照辞書から対応
する見出語及び対応情報を検索する検索手段と、該検索
手段により検索された見出語及び対応情報を表示する表
示手段とを有する電子辞書において、前記特殊コード入
力手段から入力される特殊コードで検索される文字列長
を制限する展開長制限指令を入力する展開長設定手段
と、該展開長設定手段により設定される展開長制限値に
基づき前記特殊コードに対応して検索される文字列長を
制限するように前記検索手段を制御する検索制御手段と
を有することを特徴とするものである。In order to achieve the above object, the electronic dictionary of the present invention comprises a dictionary storage means for storing a comparison dictionary composed of a found word and corresponding information of the found word; Character code input means for inputting a code corresponding to each character of the word found in the dictionary, special code input means for inputting a special code that matches any character string of the word found in the contrast dictionary, said code and said A search instruction input means for inputting a search command for the found word corresponding to a special code, a search means for searching for the corresponding found word and corresponding information from the contrast dictionary based on the search command, and the searching means. In an electronic dictionary having a display means for displaying the retrieved headword and corresponding information, a development length control for limiting the character string length searched by the special code input from the special code input means. Expansion length setting means for inputting a command, and a search for controlling the searching means so as to limit the character string length searched for in correspondence with the special code based on the expansion length limit value set by the expansion length setting means. It has a control means.
【0007】[0007]
【作用】このような構成なので、文字コード入力手段か
らのコードと、特殊コード入力手段からの特殊コードと
に基づいて、検索指示手段から検索コマンドが発せられ
る特殊コードを使用する検索動作時には、展開長設定手
段から特殊コードに対応して検索される文字列長を制限
する展開長制限指令が入力される。そして、検索制御手
段は、設定される展開長制限値に基づいて特殊コードに
対応して検索される文字列長を制限するように検索手段
を制御し、この検索手段によって対照辞書から該コード
及び該特殊コードに対応する見出語及び対応情報が検索
され、検索された見出語及び対応情報が表示手段によっ
て表示される。With this configuration, the expansion is performed during the search operation using the special code from which the search command means issues a search command based on the code from the character code input means and the special code from the special code input means. From the length setting means, an expansion length limit command for limiting the length of the character string retrieved corresponding to the special code is input. Then, the search control means controls the search means so as to limit the length of the character string searched for corresponding to the special code based on the set expansion length limit value, and the search means controls the code and The headword and the corresponding information corresponding to the special code are searched, and the searched headword and the corresponding information are displayed by the display means.
【0008】[0008]
【実施例】以下、本発明の実施例を図1乃至図13を参
照して説明する。Embodiments of the present invention will be described below with reference to FIGS.
【0009】[第1実施例]まず、本発明の第1実施例
を図1乃至図7を参照して説明する。図1は本実施例に
係る電子辞書の構成を示すブロック図であり、同図にお
いて、6は電子辞書全体を制御するCPU(中央演算処
理装置)で、このCPU6には、制御プログラムメモリ
4a及び英単語と対応する日本語の英和辞書を格納する
辞書メモリ4bを具備するROM4と、アルファベット
・数字キー2a、翻訳キー10、設定キー9及びワイル
ドカードキー8よりなるキーボード2とがそれぞれ接続
してある。また、CPU6には、展開長下限値5a及び
展開長上限値5bを含む各種のデータが格納されるRA
M5と、表示駆動部7とがそれぞれ接続してあり、この
表示駆動部7には表示部3が接続してある。[First Embodiment] First, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing a configuration of an electronic dictionary according to the present embodiment. In FIG. 1, reference numeral 6 denotes a CPU (central processing unit) for controlling the entire electronic dictionary. The CPU 6 includes a control program memory 4a and a control program memory 4a. A ROM 4 having a dictionary memory 4b for storing an English-Japanese dictionary corresponding to English words and a keyboard 2 including an alphabet / numerical key 2a, a translation key 10, a setting key 9 and a wild card key 8 are connected to each other. is there. Further, the CPU 6 stores various data including the expansion length lower limit value 5a and the expansion length upper limit value 5b.
M5 and the display drive unit 7 are connected to each other, and the display unit 3 is connected to the display drive unit 7.
【0010】制御プログラムメモリ4aには、ワイルド
カード処理プログラムを含む各種制御プログラムが格納
してあり、辞書メモリ4bには、英和辞書の見出語と対
応する日本語データへのポインタのテーブル及び日本語
データ本体が格納してある。また、アルファベット・数
字キー2aは、アルファベットと数字を入力する機能を
有し、ワイルドカードキー8は、任意の文字列に一致す
る特殊コードであるワイルドカード〈w〉を入力する機
能を有している。更に、設定キー9は、ワイルドカード
〈w〉に対応して検索する文字列の長さを制限する展開
長制限値の設定指示を入力する機能を有している。翻訳
キー10は、アルファベットやワイルドカード〈w〉か
らなる入力文字列(入力コード列)に一致する英単語と
対応する日本語を辞書メモリ4bから検索する検索コマ
ンドを入力する機能を有している。The control program memory 4a stores various control programs including a wild card processing program, and the dictionary memory 4b stores a table of pointers to Japanese data corresponding to the words found in the English-Japanese dictionary and Japan. The word data body is stored. The alphanumeric key 2a has a function of inputting alphabets and numbers, and the wildcard key 8 has a function of inputting a wildcard <w> which is a special code that matches an arbitrary character string. There is. Furthermore, the setting key 9 has a function of inputting an instruction to set a development length limit value that limits the length of the character string to be searched in correspondence with the wild card <w>. The translation key 10 has a function of inputting a search command for searching the dictionary memory 4b for Japanese corresponding to an English word that matches an input character string (input code string) formed of an alphabet or a wildcard <w>. .
【0011】CPU6は、設定キー9により展開長制限
値の設定指示信号が入力されると、制御プログラムメモ
リ4aのブログラムに基づき、アルファベット・数字キ
ー2aより入力された数字コード列から、展開長下限値
5aと展開長上限値5bとを決定しRAM5のワークエ
リアに格納する。また、CPU6は、翻訳キー10によ
って検索コマンドが入力されると、制御プログラムメモ
リ4a内の検索プログラムにより、アルファベット・数
字キー2aより入力された文字列に一致する英単語を、
辞書メモリ4b内の見出語とポインタのテーブルから検
索する。この場合、入力文字列にワイルドカード〈W〉
が含まれると、CPU6は、ワイルドカード〈W〉に対
応させる文字列の長さが、展開長下限値5a以上で展開
長上限値5b以下になるように検索処理を行なう。When the instruction key for setting the expansion length limit value is input by the setting key 9, the CPU 6 outputs the expansion length from the numerical code string input by the alphabet / number keys 2a based on the program of the control program memory 4a. The lower limit value 5a and the expansion length upper limit value 5b are determined and stored in the work area of the RAM 5. When the search command is input by the translation key 10, the CPU 6 causes the search program in the control program memory 4a to display an English word that matches the character string input by the alphabet / number key 2a.
The table of the found word and the pointer in the dictionary memory 4b is searched. In this case, enter the wildcard <W> in the input string.
Including "," the CPU 6 performs a search process such that the length of the character string corresponding to the wild card <W> is not less than the expansion length lower limit value 5a and not more than the expansion length upper limit value 5b.
【0012】図2は操作パネル11の平面図であり、こ
の操作パネル11には表示部3とキーボード2とが配設
してあり、表示部3の下方にアルファベット・数字キー
2aが設けてあり、表示部3の側方に翻訳キー10、設
定キー9及びワイルドカードキー8が設けてある。FIG. 2 is a plan view of the operation panel 11. The operation panel 11 is provided with a display section 3 and a keyboard 2, and below the display section 3 alphabet / number keys 2a are provided. A translation key 10, a setting key 9 and a wild card key 8 are provided on the side of the display unit 3.
【0013】図3は本実施例における辞書格納手段のデ
ータ格納状態を示す説明図であり、辞書メモリ4bは、
日本語データ本体12と見出語及びポインタのテーブル
13とで構成され、日本語データ本体12は、日本語デ
ータ長格納部14と日本語データ格納部15とよりなっ
ている。また、テーブル13は、見出語数格納部16、
見出語データ長格納部17、見出語格納部18及びポイ
ンタ格納部19よりなっている。ここで、日本語データ
長格納部14には、これに続いてメモリ上に配置される
日本語データ格納部15のデータ長が格納してある。ま
た、日本語データ格納部15は見出語格納部18内の英
単語に対応する日本語を格納し、見出語数格納部16は
見出語とポインタテーブル13内の英単語の総数を格納
している。更に、見出語データ長格納部17はこれに続
いてメモリ上に配置される見出語格納部18のデータ長
を格納する。そして、見出語格納部18は英和辞書の見
出語である英単語を格納し、ポインタ格納部19は見出
語格納部18内の英単語に対応する日本語が格納された
日本語データ格納部15の開始位置のアドレスを格納し
ている。FIG. 3 is an explanatory view showing the data storage state of the dictionary storage means in this embodiment, and the dictionary memory 4b is
It is composed of a Japanese data main body 12 and a headword / pointer table 13, and the Japanese data main body 12 is composed of a Japanese data length storage unit 14 and a Japanese data storage unit 15. In addition, the table 13 includes the word count storage unit 16,
The headword data length storage unit 17, the headword storage unit 18, and the pointer storage unit 19 are included. Here, the Japanese data length storage unit 14 stores the data length of the Japanese data storage unit 15 arranged on the memory subsequent to this. Further, the Japanese data storage unit 15 stores Japanese corresponding to the English words in the found word storage unit 18, and the found word number storage unit 16 stores the found words and the total number of English words in the pointer table 13. is doing. Further, the headword data length storage unit 17 stores the data length of the headword storage unit 18 arranged on the memory following this. The headword storage unit 18 stores the English words that are the headwords in the English-Japanese dictionary, and the pointer storage unit 19 stores the Japanese data corresponding to the English words in the headword storage unit 18. The address of the start position of the storage unit 15 is stored.
【0014】例えば、見出語である英単語「ident
ify」と、その対応情報の日本語「確認する、鑑定す
る;同一視する」の格納状態を説明すると、日本語デー
タ格納部15に日本語文字列、日本語データ長格納部1
4に当該日本語文字列のバイト数である「30」が格納
され、見出語格納部18に英単語文字列、見出語データ
長格納部17に当該英単語文字列のバイト数である
「8」、ポインタ格納部19に日本語文字列が格納され
る日本語データ格納部15の先頭アドレス「1234」
がそれぞれ格納される。For example, the English word "ident" which is the found word
Explaining the storage state of “ify” and its corresponding information “Japanese,“ Confirm, appraise; identify ””, the Japanese data storage unit 15 stores the Japanese character string and the Japanese data length storage unit 1.
4, the number of bytes "30" of the Japanese character string is stored, the found word storage unit 18 is the English word character string, and the found word data length storage unit 17 is the number of bytes of the English word character string. "8", the start address "1234" of the Japanese data storage unit 15 in which the Japanese character string is stored in the pointer storage unit 19
Are stored respectively.
【0015】図4は本実施例に係る電子辞書全体の動作
を示すフローチャート、図5は、図4のステップ407
の照合処理の詳細動作を示すフローチャートであり、こ
こで、図4及び図5を参照して動作を説明する。ただ
し、その説明に際して、スタックなどを含めてRAM5
のワークエリアの初期化のステップと、後処理のステッ
プは省略する。FIG. 4 is a flow chart showing the operation of the entire electronic dictionary according to this embodiment, and FIG. 5 is a step 407 in FIG.
6 is a flowchart showing a detailed operation of the collating process of FIG. 5, and the operation will be described here with reference to FIGS. 4 and 5. However, in the explanation, the RAM 5 including the stack is included.
The work area initialization step and the post-processing step are omitted.
【0016】図4のステップ401において、キーボー
ド2から入力される文字列を格納する入力バッファが初
期化され、ステップ402に進んでキーボード2からの
キー入力の処理が行なわれ、ステップ403では、翻訳
キー10の入力操作がなされたか否かが判定される。こ
のステップ403において入力操作がなされれば、ステ
ップ406で辞書メモリ4b内の見出語とポインタのテ
ーブル13の先頭に格納されている見出語を、入力バッ
ファと英和辞書の見出語とを比較するために使用する見
出語バッファにコピーする。In step 401 of FIG. 4, an input buffer for storing a character string input from the keyboard 2 is initialized, the flow proceeds to step 402, and a key input process from the keyboard 2 is performed. It is determined whether or not the input operation of the key 10 has been performed. If an input operation is performed in this step 403, in step 406 the entry word stored in the dictionary memory 4b and the entry word stored at the beginning of the pointer table 13 are loaded into the input buffer and the entry word in the English-Japanese dictionary. Copies to the headword buffer used for comparison.
【0017】次いで、ステップ407で、入力バッファ
内の文字列と見出語バッファ内の文字列の照合処理を行
ない、ステップ408で照合処理が見出語とボインタの
テーブル13の末尾に達したか否かが判定され、末尾に
達するまで、ステップ409で見出語バッファ内の見出
語を更新して前記ステップ407に戻り、照合処理が繰
り返される。この照合処理の結果、前記ステップ408
で末尾に達すると、ステップ410でRAM5のワーク
エリア上に作成された検索結果のリストが表示部3に表
示される。Next, in step 407, the character string in the input buffer is compared with the character string in the found word buffer, and in step 408, the matching process reaches the end of the found word and the table 13 of the pointer. Whether or not it is determined, and until the end is reached, the found word in the found word buffer is updated in step 409, the process returns to step 407, and the matching process is repeated. As a result of this collation process, the step 408 is executed.
When the end of the search is reached, the list of search results created in the work area of the RAM 5 is displayed on the display unit 3 in step 410.
【0018】一方、前記ステップ403において翻訳キ
ー10の入力操作がなされないと、ステップ404に進
んで設定キー9の入力操作か否かの判定が行なわれ、入
力操作がなされた場合は、ステップ411でアルファベ
ット・数字キー2aの操作により展開長下限値5aと展
開長上限値5bとの入力処理が行なわれる。そして、ス
テップ412に進んで、展開長下限値5aと展開長上限
値5bとがRAM5のワークエリア内に格納される。ま
た、前記ステップ404において設定キー9の入力操作
がなされないと、ステップ405で入力バッファに1文
字追加して前記ステップ402に戻る。On the other hand, if the input operation of the translation key 10 is not performed in the step 403, the process proceeds to step 404, it is determined whether the input operation is the setting key 9, and if the input operation is performed, the step 411 is executed. The input processing of the expansion length lower limit value 5a and the expansion length upper limit value 5b is performed by operating the alphabet / number keys 2a. Then, the process proceeds to step 412, and the expansion length lower limit value 5a and the expansion length upper limit value 5b are stored in the work area of the RAM 5. If the setting key 9 is not operated in step 404, one character is added to the input buffer in step 405 and the process returns to step 402.
【0019】このようにして、本実施例では、ステップ
402におけるキーボード2からのキー入力の処理、ス
テップ403及びステップ404での入力キーの種類の
判断、ステップ405での入力バッファへの1文字追加
処理の入力ループで、入力バッファに文字列が格納され
る。そして、ステップ406乃至ステップ409におい
て、制御プログラムメモリ4a内の検索プログラムによ
って、入力バッファ内の文字列(入力文字列)に一致す
る見出語と、その対応情報とが検索される。As described above, in this embodiment, the key input process from the keyboard 2 in step 402, the type of the input key in steps 403 and 404 is determined, and one character is added to the input buffer in step 405. In the input loop of processing, the character string is stored in the input buffer. Then, in steps 406 to 409, the search program in the control program memory 4a searches for the found word that matches the character string (input character string) in the input buffer and the corresponding information.
【0020】次に、図4のフローチャートのステップ4
07の照合動作を、図5のフローチャートを参照して説
明する。Next, step 4 in the flow chart of FIG.
The verification operation of 07 will be described with reference to the flowchart of FIG.
【0021】図5のステップ501で、入力バッファ内
にワイルドカード〈W〉が含まれているか否かが判定さ
れ、含まれていればステップ502に進んで、入力バッ
フア内の文字列と見出語バッファ内の文字列とを単純に
比較する。この比較で文字並びと長さが一致しているこ
とがステップ503で判定されると、ステップ524に
進んで、見出語バッファ内の文字列と対応する日本語デ
ータを検索結果リストに追加する。また、ステップ50
3で一致していないと判定されると、直ちに本照合処理
動作を終了する。In step 501 of FIG. 5, it is determined whether or not the wild card <W> is included in the input buffer. If it is included, the process proceeds to step 502 to find the character string in the input buffer. Simply compare the string in the word buffer. If it is determined in step 503 that the character arrangement matches the length in this comparison, the process proceeds to step 524, and the Japanese data corresponding to the character string in the found word buffer is added to the search result list. . Also, step 50
If it is determined in 3 that they do not match, this collation processing operation is immediately terminated.
【0022】一方、前記ステップ501においてワイル
ドカード〈W〉が含まれていない場合、ステップ504
に進んで、入力バッファ内の文字列の先頭がワイルドカ
ード〈W〉であるか否かが判定され、ワイルドカード
〈W〉であればステップ506に進む。このステップ5
06では、入力バッファ内の文字列の先頭から最初のワ
イルドカード〈W〉の直前までの部分文字列を、見出語
バッファ内の文字列の先頭の部分文字列と比較する。次
のステップ507でこの比較結果、即ち一致しているか
否かが判定され、一致しない場合は、直ちに本照合処理
動作を終了し、一致した場合はステップ508に進む。On the other hand, when the wild card <W> is not included in step 501, step 504
Then, it is determined whether or not the beginning of the character string in the input buffer is a wild card <W>. If it is a wild card <W>, the process proceeds to step 506. This step 5
At 06, the partial character string from the beginning of the character string in the input buffer to immediately before the first wildcard <W> is compared with the partial character string at the beginning of the character string in the find word buffer. In the next step 507, the comparison result, that is, whether or not they match, is determined. If they do not match, the present collation processing operation is immediately terminated, and if they match, the process proceeds to step 508.
【0023】このステップ508では、以降の処理で入
力バッファと見出語バッファのそれぞれ何文字目からの
部分文字列を照合するかという照合開始位置が、それぞ
れレジスタAとレジスタBにセットされる。即ち、レジ
スタAには、前記ステップ506で比較を行なった部分
文字列に続くワイルドカード〈W〉の直後の文字位置
(入力バッファ内の文字列の中で、これから照合しなけ
ればならない部分文字列の先頭位置)がセットされ、レ
ジスタBには、前記ステップ506での比較で一致した
部分文字列の直後の文字位置(見出語バッフア内の文字
列の中で、これから照合してもよい部分文字列の先頭位
置)をセットする。In this step 508, the collation start positions of the collation of the partial character strings from the input buffer and the head word buffer for the subsequent processes are set in the register A and the register B, respectively. That is, in the register A, the character position immediately after the wildcard <W> following the partial character string compared in step 506 (the partial character string in the input buffer that must be collated from now on) Is set in the register B, and the character position immediately after the partial character string matched in the comparison in step 506 (the character string in the found word buffer, which may be collated from now on) is set in the register B. Set the beginning position of the character string).
【0024】一方、ステップ504においてワイルドカ
ード〈W〉であればステップ505に進んで、前記ステ
ップ508と同様な照合開始位置のセットが行なわれ、
レジスタAには入力バッファの先頭のワイルドカード
〈W〉の次の文字位置である「2」がセットされ、レジ
スタBには見出語バッファ内の文字列の先頭位置である
「1」がセットされる。On the other hand, if the wild card <W> in step 504, the process proceeds to step 505, and the collation start position is set in the same manner as in step 508,
Register A is set to the character position next to the wildcard <W> at the beginning of the input buffer, “2”, and register B is set to the beginning position of the character string in the found word buffer, “1”. To be done.
【0025】前記ステップ508またはステップ505
における照合開始位置のセットが済むと、ステップ50
9で入力バッファ内の文字列に、レジスタAが示す文字
位置以降にワイルドカード〈W〉が存在するか否かを判
定し、存在する場合にはステップ510に進む。このス
テップ510では、見出語バッファの照合開始位置であ
るレジスタBの値と、展開長下限値5aを加えた値をレ
ジスタCにセットする。次いで、ステップ511に進ん
で入力バッファ内のレジスタAが示す位置から、ワイル
ドカード〈W〉の直前までの部分文字列を探索文字列と
して、この探索文字列を見出語バッファ内のレジスタC
が示す位置以降の部分文字列の中から探し出す。The above step 508 or step 505
After setting the collation start position in step 50, step 50
At 9, it is determined whether or not there is a wildcard <W> in the character string in the input buffer after the character position indicated by the register A. If it exists, the process proceeds to step 510. In this step 510, a value obtained by adding the value of the register B which is the collation start position of the found word buffer and the expansion length lower limit 5a is set in the register C. Next, in step 511, the partial character string from the position indicated by register A in the input buffer to immediately before the wildcard <W> is used as the search character string, and this search character string is found in register C in the find word buffer.
The substring after the position indicated by is searched for.
【0026】そして、ステップ512において、前記ス
テップ511での処理により探索文字列に一致する部分
が見出語バッファ内に見付かったと判定した場合は、ス
テップ513に進み、見付からない場合は、直ちに本照
合処理動作を終了する。前記ステップ513では、見出
語バッファ内で探索文字列が一致した部分の先頭位置を
レジスタCにセットした後、ステップ514に進んでレ
ジスタCの値とレジスタBの値の差が展開長上限値5b
以下であるか否かが判定され、展開長上限値5b以下で
あると部分文字列の照合が成功したと判定し、次のステ
ップ515に進む。If it is determined in step 512 that the portion matching the search character string is found in the found word buffer by the processing in step 511, the process proceeds to step 513, and if not found, the main collation is immediately performed. The processing operation ends. In step 513, the head position of the portion where the search character string matches in the found word buffer is set in the register C, and then the process proceeds to step 514, where the difference between the value of the register C and the value of the register B is the expansion length upper limit value. 5b
It is determined whether or not it is below, and if it is less than or equal to the expansion length upper limit value 5b, it is determined that matching of the partial character strings has succeeded, and the process proceeds to the next step 515.
【0027】このステップ515では、現在の探索文字
列に関する部分文字列の照合に使用された各照合開始位
置と、一致部分の先頭位置、即ち、レジスタA、レジス
タB及びレジスタCを、これらの値専用のスタックに保
存する。そして、ステップ516に進んで、入力バッフ
ァ内の次の探索文字列を処理するために、レジスタA及
びレジスタBに新しい照合開始位置をセットして、前記
ステップ509に戻る。このレジスタA及びレジスタB
への新しい照合開始位置のセットは、レジスタAに前記
ステップ511における探索文字列の長さと「1」を加
え、レジスタBにレジスタCの値にステップ511での
探索文字列の長さを加えた値をセットして行なわれる。In this step 515, each collation start position used for collating the partial character string relating to the current search character string and the head position of the coincident portion, that is, register A, register B and register C Save to a dedicated stack. Then, the process proceeds to step 516, in which a new collation start position is set in the register A and the register B in order to process the next search character string in the input buffer, and the process returns to step 509. This register A and register B
The new collation start position is set to register A by adding the length of the search character string in step 511 and "1", and register B by adding the length of the search character string in step 511 to the value of register C. It is done by setting a value.
【0028】このようにして、本実施例では、ステップ
509〜ステップ516のループによって、入力バッフ
ァ内の前後をワイルドカード〈W〉で挟まれた部分文字
列の照合処理が、バッファの末尾方向へと順次進められ
る。ただし、このループのステップ514の判定で、レ
ジスタCの値とレジスタBの値との差が、展開長上限値
5bを越えていると判断した場合には、部分文字列の照
合が失敗したと判断し、ステップ521に進む。In this way, in the present embodiment, the collation process of the partial character string in which the front and rear of the input buffer are sandwiched by the wildcard <W> is performed toward the end of the buffer by the loop of steps 509 to 516. And proceed in sequence. However, if it is determined in step 514 of this loop that the difference between the value of register C and the value of register B exceeds the expansion length upper limit value 5b, it is determined that the collation of the partial character string has failed. A determination is made and the process proceeds to step 521.
【0029】このステップ521で、レジスタA、B、
Cの値専用のスタックに復帰させ得るデータが残ってい
るか否かを判定し、残っていない場合は本照合処理動作
を終了し、残っている場合は、部分文字列の照合を一つ
前の探索文字列に関する処理に戻すため、ステップ52
2でレジスタA、B、Cを復帰させ、ステップ523で
前記ステップ511の処理が前回と同じ結果を出さない
ように、レジスタCの値を「1」増加した後、前記ステ
ップ511に戻り、前記ステップ509からステップ5
16のループに復帰する。At step 521, registers A, B,
It is determined whether or not there is data that can be returned to the stack dedicated to the value of C. If there is no data remaining, this collation processing operation is terminated. To return to the processing related to the search character string, step 52
In step 2, the registers A, B, and C are restored, and in step 523, the value of the register C is incremented by “1” so that the processing in step 511 does not give the same result as the previous time, and then the process returns to step 511 and Step 509 to Step 5
Return to the 16 loop.
【0030】このようにして、ステップ509からステ
ップ516のループにより、部分文字列の照合が末尾方
向に進められていくと、最後には入力バッファの照合開
始位置以降には、ワイルドカード〈W〉が存在しない状
態がステップ509で判定され、この場合はステップ5
17に進む。このステップ517では、入力バッファ内
の文字列の末尾からレジスタAの値が示す位置までの文
字列を、見出語バッフアの末尾から先頭方向に向かって
比較し、その比較結果をステップ518で判定し、一致
していればステップ519に進み、一致していなければ
本照合処理動作を終了する。この時、レジスタAの値が
示す位置に文字がない場合、即ち、ワイルドカード
〈W〉が入力バッファ内の文字列の末尾の文字である場
合は、末尾の文字の直後に存在するヌル文字列(長さ0
の文字列)が一致したと判定して、ステップ519に進
む。In this way, when the collation of the partial character string is advanced toward the end by the loop from step 509 to step 516, the wildcard <W> is finally obtained after the collation start position of the input buffer. Is not present in step 509, and in this case, step 5
Proceed to 17. In this step 517, the character strings from the end of the character string in the input buffer to the position indicated by the value of register A are compared from the end of the found word buffer toward the beginning, and the comparison result is determined in step 518. If they do match, the process proceeds to step 519. If they do not match, this collation processing operation ends. At this time, if there is no character in the position indicated by the value of register A, that is, if the wildcard <W> is the last character of the character string in the input buffer, the null character string existing immediately after the last character (Length 0
Character string) and the process proceeds to step 519.
【0031】そして、このステップ519で、一致部分
の先頭位置をレジスタCにセットし、ステップ520で
レジスタCの値とレジスタBの値との差が、展開長下限
値5a以上で且つ展開長上限値5b以下の範囲内である
か否かを判定し、当該範囲内であればステップ524に
進んで、検索結果のリストに見出語バッファ内の文字列
と対応する日本語を追加し、本照合処理動作を終了す
る。また、前記ステップ520の判定が、前記範囲外の
場合には、ステップ521に進んでレジスタA、B、C
のスタックからの復帰が行なわれ、ステップ523でレ
ジスタCの値を「1」増加して前記ステップ511に戻
り、前記ステップ509からステップ514のループに
復帰する。Then, in this step 519, the start position of the coincident portion is set in the register C, and in step 520, the difference between the value of the register C and the value of the register B is the expansion length lower limit value 5a or more and the expansion length upper limit. It is determined whether or not the value is within the range of 5b or less, and if it is within the range, the process proceeds to step 524, the Japanese character string corresponding to the character string in the found word buffer is added to the search result list, and the book The collation processing operation ends. If the determination in step 520 is outside the range, the process proceeds to step 521 to register A, B, C.
The stack C is returned from the stack, the value of the register C is incremented by "1" in step 523, the process returns to step 511, and the process loops from step 509 to step 514.
【0032】図6及び図7は、本実施例でのキーボード
における操作と表示部における表示の説明図であり、前
記入力ループで図6Aのように、設定キー9が操作され
ると、同図Gのように展開長下限値5aと展開長上限値
5bの入力を促す設定画面が表示部3に表示される。そ
こで、同図Bのようにアルファベット・数字キー2aを
操作して「0010」を入力すると、同図Hのような表
示画面が表示部に表示される。次いで、同図Cのように
設定キー9が操作されると、図4のステップ411で、
展開長下限値5aを「0」、展開長上限値5bを「1
0」とする入力が行なわれ、これらの値が次のステップ
412でRAM5に格納され、図4のステップ410の
表示処理で図6Iのように、英単語入力画面が表示され
る。FIGS. 6 and 7 are explanatory views of the operation on the keyboard and the display on the display unit in this embodiment, and when the setting key 9 is operated as in FIG. 6A in the input loop, FIG. As in G, a setting screen for prompting the input of the development length lower limit value 5a and the development length upper limit value 5b is displayed on the display unit 3. Therefore, when the alphabet / number keys 2a are operated to input "0010" as shown in FIG. 9B, a display screen as shown in FIG. 11H is displayed on the display section. Next, when the setting key 9 is operated as shown in FIG. 4C, in step 411 of FIG.
The development length lower limit value 5a is "0", and the development length upper limit value 5b is "1".
0 "is input, these values are stored in the RAM 5 in the next step 412, and the English word input screen is displayed as shown in FIG. 6I in the display processing of step 410 of FIG.
【0033】この直後に、入力ループで図6Dのように
アルファベット・数字キー2aにより「a」,「b」,
「a」が入力され、ワイルドカードキー8が操作される
と図6Jのような英単語入力画面が表示され、同図Eの
ように翻訳キー10が操作されると、図4のステップ4
06に進み、ステップ406〜ステップ409において
検索処理が行なわれ、ステップ410で検索結果リスト
が表示される。この時、検索結果リストが1画面に納ま
らない場合は、図6K、Lに示すように2画面以上に分
けて表示され、検索結果リストの末尾に破線を表示す
る。この時、画面の切り換えは、図6Fのように翻訳キ
ー10が入力されたときに行なわれる。Immediately after this, in the input loop, as shown in FIG. 6D, "a", "b",
When "a" is input and the wildcard key 8 is operated, an English word input screen as shown in FIG. 6J is displayed, and when the translation key 10 is operated as shown in FIG. 6E, step 4 in FIG.
The process proceeds to 06, the search process is performed in steps 406 to 409, and the search result list is displayed in step 410. At this time, if the search result list does not fit on one screen, the search result list is divided into two or more screens as shown in FIGS. 6K and 6L, and a broken line is displayed at the end of the search result list. At this time, the screens are switched when the translation key 10 is input as shown in FIG. 6F.
【0034】図6の例では、同図K、Lに示すように、
ワイルドカード「W」が2文字に展開された「abac
k」や「abase」から、8文字に展開された「ab
andonment」まで、7個のリストが検索結果と
して得られる。In the example of FIG. 6, as shown in K and L of FIG.
The wildcard "W" is expanded to two letters "abac"
"ab" expanded to 8 characters from "k" or "abase"
7 lists are obtained as search results up to "andment".
【0035】一方、図7M、N及びOのようにキーボー
ド2が操作されると、同図R、S及びTのような表示が
行なわれ、展開長下限値5aを「0」、展開長上限値5
bを「3」としてRAM5に格納する。この直後に、図
7P、Qのように、アルファベット・数字キー2a、ワ
イルドカードキー8及び翻訳キー10が操作されると、
同図U、Vに示すような表示が行なわれる。On the other hand, when the keyboard 2 is operated as shown in FIG. 7M, N and O, the display as shown in R, S and T in FIG. 7 is performed, and the expansion length lower limit value 5a is set to "0" and the expansion length upper limit is set. Value 5
b is stored in the RAM 5 as "3". Immediately after this, as shown in FIGS. 7P and Q, when the alphabet / number keys 2a, the wildcard key 8 and the translation key 10 are operated,
The displays shown in U and V of FIG.
【0036】図7Vに示す検索結果は、図6の場合と同
一の英和辞書を検索したものであるが、展開長下限値5
aを「0」に、展開長上限値5bを「3」に設定したた
めに、検索結果リストは3個だけになっている。The search result shown in FIG. 7V is obtained by searching the same English-Japanese dictionary as in the case of FIG.
Since a is set to "0" and the expansion length upper limit value 5b is set to "3", there are only three search result lists.
【0037】このように、本実施例によると、ワイルド
カード〈W〉を含めて検索する見出語を指定する場合、
ワイルドカード〈w〉に対応して検索する文字列の長さ
の下限値と上限値とを予め設定することにより、検索し
た見出語のリストが必要以上に多くならず、最終的な検
索を迅速に行なうことができる。As described above, according to the present embodiment, when the headword to be searched is specified including the wildcard <W>,
By presetting the lower limit value and the upper limit value of the length of the character string to be searched corresponding to the wild card <w>, the list of found headwords will not be unnecessarily increased and the final search will be performed. It can be done quickly.
【0038】[第2実施例]次に、本発明の第2実施例
を、図8乃至図10を参照して説明する。[Second Embodiment] Next, a second embodiment of the present invention will be described with reference to FIGS.
【0039】本実施例は、上述した第1実施例に比し
て、展開長の設定が簡単に行なえる構成にしてある。即
ち第1実施例では、ROM4内の制御プログラムに基づ
いて、CPU6で実行される図4のステップ404、4
11、412によって、展開長が設定されるが、本実施
例では、入力ループにおいてワイルドカード〈W〉の直
後に、アルファベット・数字キー2aから展開長に対応
する数字を入力することにより、展開長下限値5aと展
開長上限値5bとの設定ができる。本実施例におけるそ
の他の構成は、第1実施例と同一である。The present embodiment has a structure in which the expansion length can be set more easily than the first embodiment described above. That is, in the first embodiment, steps 404 and 4 in FIG. 4 executed by the CPU 6 are executed based on the control program stored in the ROM 4.
Although the expansion length is set by 11, 412, in the present embodiment, the expansion length is input by inputting the number corresponding to the expansion length from the alphabet / number key 2a immediately after the wild card <W> in the input loop. The lower limit value 5a and the expansion length upper limit value 5b can be set. Other configurations in this embodiment are the same as those in the first embodiment.
【0040】次に、本実施例の動作を、図8に基づき説
明する。なお、その説明に際し、スタックなどを含めて
RAMのワークエリアの初期化のステップと、後処理の
ステップを省略する。図8は本実施例に係る電子辞書の
動作を示すフローチャートである。Next, the operation of this embodiment will be described with reference to FIG. In the description, the step of initializing the work area of the RAM including the stack and the step of post-processing are omitted. FIG. 8 is a flowchart showing the operation of the electronic dictionary according to this embodiment.
【0041】まず、ステップ801でキーボード2から
入力される文字列を格納する入力バッファを初期化し、
第1実施例と同様に、ステップ802でのキー入力処
理、ステップ803、804、805の入力ループでキ
ーボード2の各キーの操作状態を判定し、入力バッファ
に文字列を蓄える。この入力ループのステップ803で
翻訳キー10の入力操作がなされたと判定されると、上
述した第1実施例と同様にステップ806乃至ステップ
809で入力バッファ内の文字列(入力文字列)に一致
する見出語と対応情報を英和辞書から検索し、ステップ
810において検索結果のリストを表示する。また、前
記ステップ804で設定キー9の操作が行なわれた旨の
判定がなされると、ステップ811で展開長下限値5a
と展開長上限値5bの入力処理が行なわれ、入力した値
をRAM5のワークエリア内に格納する。First, in step 801, an input buffer for storing a character string input from the keyboard 2 is initialized,
Similar to the first embodiment, the operation state of each key of the keyboard 2 is determined by the key input process in step 802 and the input loop of steps 803, 804 and 805, and the character string is stored in the input buffer. When it is determined in step 803 of this input loop that the input operation of the translation key 10 has been performed, it matches the character string (input character string) in the input buffer in steps 806 to 809 as in the first embodiment described above. The headword and corresponding information are searched from the English-Japanese dictionary, and a list of search results is displayed in step 810. If it is determined in step 804 that the setting key 9 has been operated, the expansion length lower limit value 5a is determined in step 811.
And the expansion length upper limit value 5b is input, and the input value is stored in the work area of the RAM 5.
【0042】本実施例では、ステップ805において、
アルファベット・数字キー2aからの数字の入力である
と判定されると、ステップ813に進んで一つ前に操作
されたキーがワイルドカードキー8であったか否かの判
定が行なわれる。ワイルドカードキー8であった場合に
は、ステップ814に進んで展開長下限値5aを
「0」、展開長上限値5bを前記入力された数字に対応
する値にしてRAM5内に格納し、前記ステップ802
に戻る。また、前記ステップ813で、一つ前に操作さ
れたキーがワイルドカードキー8でないと判定される
と、ステップ815に進んで入力バッファに入力された
1文字を追加して、前記ステップ802に戻る。前記ス
テップ805で数字の入力でないと判定された場合に
も、前記ステップ815に進んで入力バッファに入力さ
れた1文字を追加して、前記ステップ802に戻る。In this embodiment, in step 805,
When it is determined that the number is input from the alphabet / number key 2a, the process proceeds to step 813, and it is determined whether or not the previously operated key is the wild card key 8. If it is the wild card key 8, the process proceeds to step 814 and the expansion length lower limit value 5a is set to "0" and the expansion length upper limit value 5b is stored in the RAM 5 as a value corresponding to the input number. Step 802
Return to. If it is determined in step 813 that the previously operated key is not the wildcard key 8, the process proceeds to step 815, one character input in the input buffer is added, and the process returns to step 802. . Even when it is determined in step 805 that the input is not a numeral, the process proceeds to step 815, one character input in the input buffer is added, and the process returns to step 802.
【0043】図9及び図10は本実施例に係る電子辞書
におけるキーボードの操作と表示部での表示状態を示す
説明図であり、入力ループで図9Aのようにアルファベ
ット・数字キー2aによりアルファベット「a」,
「b」,「a」が入力され、ワイルドカードキー8が操
作されると、同図Eのように英単語の入力画面が表示さ
れ、同図Bのように、アルファベット・数字キー2aに
より数字「8」が入力されると、同図Fのように表示す
る。この時、図8のステップ805では数字キーが入力
操作されたと判定するからステップ813に進んで1つ
前がワイルドカード〈w〉か否かが判定される。このス
テップ813で、1つ前がワイルドカード〈w〉である
と判定されれば、次のステップ814に進んで展開長下
限値5aを「0」、展開長上限値5bを「8」としてR
AM5に格納する。9 and 10 are explanatory views showing the operation of the keyboard and the display state on the display unit in the electronic dictionary according to the present embodiment. In the input loop, the alphabet "" is displayed by the alphabet / number keys 2a as shown in FIG. 9A. a ”,
When "b" and "a" are input and the wildcard key 8 is operated, an English word input screen is displayed as shown in E of the same figure, and numbers are input by the alphabet / number keys 2a as shown in B of the same figure. When "8" is input, it is displayed as shown in FIG. At this time, in step 805 of FIG. 8, since it is determined that the numeric key has been input, the process proceeds to step 813, and it is determined whether or not the previous one is a wild card <w>. If it is determined in this step 813 that the previous one is a wild card <w>, the process proceeds to the next step 814 and the expansion length lower limit value 5a is set to “0”, the expansion length upper limit value 5b is set to “8”, and R is set.
Store in AM5.
【0044】また、図9Cのように翻訳キー10が入力
操作されると、図8のステップ806に進み、このステ
ップ806乃至ステップ809で検索処理が行なわれ、
ステップ810で検索結果リストが表示される。この
時、検索結果リストが1画面に納まらない場合は、図9
G、Hに示すように、2画面以上に分けて表示され、検
索結果の末尾には破線を表示する。この時の画面の切り
換えは、図9Dのように翻訳キー10の入力操作が行な
われたときに行なわれる。When the translation key 10 is input as shown in FIG. 9C, the process proceeds to step 806 in FIG. 8, and the search process is performed in steps 806 to 809.
In step 810, the search result list is displayed. At this time, if the search result list does not fit on one screen,
As shown in G and H, the display is divided into two or more screens, and a broken line is displayed at the end of the search result. The screens are switched at this time when the translation key 10 is input as shown in FIG. 9D.
【0045】図9に示す例では、同図G、Hのようにワ
イルドカード〈W〉が2文字に展開された「abac
k」や「abase」から、8文字に展開された「ab
andonment」まで、7個のリストが検索結果と
して得られる。In the example shown in FIG. 9, the wild card <W> is expanded into two characters as shown in G and H in FIG.
"ab" expanded to 8 characters from "k" or "abase"
7 lists are obtained as search results up to "andment".
【0046】一方、図10I、Jのように入力が行なわ
れると、同図L、Mのように表示が行なわれ、展開長下
限値5aを「0」、展開長上限値5bを「3」としてR
AM5に格納する。その後、同図Kの翻訳キー10の入
力操作により検索指示信号が入力されると、同図Nのよ
うに検索結果の表示が行なわれる。図10に示す検索で
は図9と同一の英和辞書を検索したものであるが、展開
長下限値5aを「0」、展開長上限値5bを「3」に設
定したので、検索結果リストでは3個の表示だけが示さ
れている。On the other hand, when an input is made as shown in FIGS. 10I and 10J, a display is made as shown in FIGS. 10A and 10B, the development length lower limit value 5a is "0", and the development length upper limit value 5b is "3". As R
Store in AM5. After that, when the search instruction signal is input by the input operation of the translation key 10 in FIG. 9K, the search result is displayed as in N in FIG. In the search shown in FIG. 10, the same English-Japanese dictionary as in FIG. 9 is searched. However, since the expansion length lower limit value 5a is set to “0” and the expansion length upper limit value 5b is set to “3”, the search result list shows 3 Only the individual displays are shown.
【0047】このように、本実施例によると、上述した
第1実施例で得られる効果に加えて、ワイルドカード
〈W〉の展開長の設定のためのアルファベット・数字キ
ー2aの操作が簡易化されて、装置の操作が簡単にな
り、検索時間が短縮する。As described above, according to this embodiment, in addition to the effect obtained in the first embodiment described above, the operation of the alphanumeric key 2a for setting the expansion length of the wild card <W> is simplified. This simplifies the operation of the device and shortens the search time.
【0048】[第3実施例]次に、本発明の第3実施例
を図11乃至図13を参照して説明する。図11は本実
施例に係る電子辞書の動作を示すフローチャート、図1
2及び図13は、同電子辞書におけるキーボードの操作
と表示部の表示状態を示す説明図である。[Third Embodiment] Next, a third embodiment of the present invention will be described with reference to FIGS. 11 to 13. 11 is a flowchart showing the operation of the electronic dictionary according to the present embodiment, FIG.
2 and 13 are explanatory diagrams showing a keyboard operation and a display state of the display unit in the electronic dictionary.
【0049】本実施例は、ワイルドカードキーを連続し
て操作することにより、展開長下限値5aと展開長上限
値5bの設定が可能な構成にしてある。In this embodiment, the expansion length lower limit value 5a and the expansion length upper limit value 5b can be set by continuously operating the wild card key.
【0050】本実施例におけるその他の構成は、第1実
施例と同一である。The other structure of this embodiment is the same as that of the first embodiment.
【0051】ここで図11を参照して本実施例の動作を
説明する。なお、その説明に際し、スタックなどを含め
てRAMのワークエリアの初期化のステップと、後処理
のステップとを省略する。The operation of this embodiment will be described with reference to FIG. In the description, the step of initializing the work area of the RAM including the stack and the step of post-processing will be omitted.
【0052】図11のステップ1101で、キーボード
2から入力される文字列を格納する入力バッファを初期
化し、第1実施例と同様にステップ1102でのキー入
力処理、ステップ1103、1104、1105の入力
ループでキーボード2の各キーの操作状態を判定し、入
力バッファに文字列を蓄える。この入力ループのステッ
プ1103で翻訳キー10の操作が行なわれた旨の判定
がなされると、上述した第1実施例と同様にステップ1
106乃至ステップ1109で、入力バッファ内の文字
列(入力文字列)に一致する見出語と、その対応情報と
を英和辞書から検索し、ステップ1110において検索
結果リストを表示する。また、ステップ1104で設定
キー9の操作が行なわれた旨の判定がなされると、ステ
ップ1111で展開長下限値5aと展開長上限値5bの
入力処理が行なわれ、入力した値をRAM5のワークエ
リア内に格納する。In step 1101 of FIG. 11, the input buffer for storing the character string input from the keyboard 2 is initialized, and the key input processing in step 1102, the input in steps 1103, 1104 and 1105 is performed as in the first embodiment. A loop determines the operation state of each key of the keyboard 2 and stores the character string in the input buffer. When it is determined in step 1103 of this input loop that the translation key 10 is operated, step 1 is performed as in the first embodiment described above.
In steps 106 to 1109, the headword matching the character string (input character string) in the input buffer and the corresponding information are searched from the English-Japanese dictionary, and the search result list is displayed in step 1110. If it is determined in step 1104 that the setting key 9 has been operated, the expansion length lower limit value 5a and the expansion length upper limit value 5b are input in step 1111 and the input values are stored in the RAM 5 as a work. Store in the area.
【0053】本実施例では、ステップ1105で、ワイ
ルドカードキー8の操作が行なわれた旨の判定がなされ
ると、ステップ1113に進んで、一つ前に操作したキ
ーがワイルドカードキー8であったか否かの判定が行な
われ、ワイルドカードキー8であると判定されると、ス
テップ1114に進む。このステップ1114では、2
つ前に操作されたキーがワイルドカードキー8でない場
合、展開長下限値5aを「0」、展開長上限値5bを
「2」にそれぞれ設定してRAM5に格納し、2つ前に
操作されたキーがワイルドカードキー8の場合は、RA
M5の展開上限値5bを「1」だけ増加して前記ステッ
プ1102に戻る。In the present embodiment, when it is determined in step 1105 that the wild card key 8 has been operated, the process proceeds to step 1113 and whether the previously operated key is the wild card key 8 or not. If it is determined that it is the wild card key 8, the process proceeds to step 1114. In this step 1114, 2
When the previously operated key is not the wild card key 8, the expansion length lower limit value 5a is set to "0" and the expansion length upper limit value 5b is set to "2" and stored in the RAM 5, and is operated two times before. If the key is wildcard key 8, RA
The expansion upper limit value 5b of M5 is increased by "1" and the process returns to step 1102.
【0054】一方、前記ステップ1113でワイルドカ
ードキー8でないと判定されると、ステップ1115に
進み、入力バッファに入力された数字を追加して前記ス
テップ1102に戻る。また、ステップ1105でワイ
ルドカードキー8からの入力がないと判定された場合
も、ステップ1115に進んで入力バッファに入力され
た1文字を追加して前記ステップ1102に戻る。On the other hand, if it is determined in step 1113 that it is not the wild card key 8, the process proceeds to step 1115, the number entered in the input buffer is added, and the process returns to step 1102. Also, if it is determined in step 1105 that there is no input from the wild card key 8, the process proceeds to step 1115, one character entered in the input buffer is added, and the process returns to step 1102.
【0055】次いで、図12及び図13を参照して本実
施例の動作を説明する。Next, the operation of this embodiment will be described with reference to FIGS.
【0056】図12Aのようにアルファベット・数字キ
ー2aによりアルファベット「a」,「b」,「a」が
入力されると、同図Eのように英単語入力画面が表示さ
れ、次いでワイルドカードキー8が連続して8回操作さ
れると、その結果が同図Fのように表示される。この
時、図11のステップ1105の判定結果と、ステップ
1113の判定結果とによって、ステップ1114に進
み、展開長下限値5aを「0」、展開長上限値5bを
「8」としてRAM5に格納する。When alphabets "a", "b", and "a" are input by the alphabet / number keys 2a as shown in FIG. 12A, an English word input screen is displayed as shown in FIG. When 8 is operated 8 times in succession, the result is displayed as shown in FIG. At this time, depending on the determination result of step 1105 and the determination result of step 1113 of FIG. 11, the process proceeds to step 1114, and the expansion length lower limit value 5a is stored in the RAM 5 as “0” and the expansion length upper limit value 5b is “8”. .
【0057】また、図12Cに示すように翻訳キー10
が操作されると、図11のステップ1106に進み、こ
のステップ1106乃至ステップ1109において検索
処理が行なわれ、ステップ1110で検索結果リストが
表示される。このとき、検索結果リストが1画面に納ま
らない場合は、図12G、Hに示すように、2画面以上
に分けて表示され、検索結果の末尾に破線を表示する。
この時の画面の切り換えは、図12Dのように翻訳キー
10が入力されたときに行なわれる。Also, as shown in FIG. 12C, the translation key 10
When is operated, the process proceeds to step 1106 of FIG. 11, the search process is performed in steps 1106 to 1109, and the search result list is displayed in step 1110. At this time, if the search result list does not fit on one screen, it is displayed in two or more screens as shown in FIGS. 12G and 12H, and a broken line is displayed at the end of the search results.
The screen switching at this time is performed when the translation key 10 is input as shown in FIG. 12D.
【0058】図12に示す例では、同図G、Hのように
ワイルドカード〈W〉が2文字に展開された「abac
k」や「abase」から、8文字に展開された「ab
andonment」まで、7個のリストが検索結果と
して得られる。In the example shown in FIG. 12, the wildcard <W> is expanded into two characters as shown in G and H of FIG.
"ab" expanded to 8 characters from "k" or "abase"
7 lists are obtained as search results up to "andment".
【0059】一方、図13I、Jのように入力が行なわ
れると、同図L、Mのように表示が行なわれ、展開長下
限値5aを「0」、展開長上限値5bを「3」としてR
AM5に格納する。その後、同図Kの翻訳キー10の操
作により、検索指示が入力されると、同図Nのように表
示が行なわれる。図13に示す検索では、図12と同一
の英和辞書を検索したものであるが、展開長下限値5a
を「0」、展開長上限値5bを「3」に設定したので、
検索結果リストでは3個の表示だけが示されている。On the other hand, when an input is made as shown in FIGS. 13I and 13J, a display is made as shown in L and M of FIG. 13A, the expansion length lower limit value 5a is "0" and the expansion length upper limit value 5b is "3". As R
Store in AM5. After that, when a search instruction is input by operating the translation key 10 in FIG. 9K, a display as shown in N in FIG. In the search shown in FIG. 13, the same English-Japanese dictionary as in FIG. 12 is searched, but the expansion length lower limit value 5a
Is set to "0" and the expansion length upper limit value 5b is set to "3".
Only three displays are shown in the search result list.
【0060】このように、本実施例によれば、第1実施
例で得られる効果に加えて、ワイルドカードキー8の操
作だけで、ワイルドカード〈w〉の展開長の設定を簡単
に行なうことができ、装置の操作が更に簡単になり、検
索時間が短縮する。As described above, according to this embodiment, in addition to the effect obtained in the first embodiment, the expansion length of the wild card <w> can be easily set only by operating the wild card key 8. The operation of the device is further simplified, and the search time is shortened.
【0061】[0061]
【発明の効果】以上詳述したように、本発明の電子辞書
によれば、展開長設定手段からの展開長制限指令によっ
て、特殊コード入力手段から入力される特殊コードを使
用する検索動作時には、設定される展開長制限値に基づ
いて、特殊コードに対応して検索される文字列長が制限
された状態で、検索制御手段により検索手段が制御され
て検索が行なわれるので、検索した見出語のリストが必
要以上に多くならず、最終的な検索を迅速に行なうこと
ができる。As described above in detail, according to the electronic dictionary of the present invention, during the search operation using the special code input from the special code input means by the expansion length limit command from the expansion length setting means, Based on the set expansion length limit value, the search control unit controls the search unit to perform the search while the length of the character string to be searched corresponding to the special code is limited. The list of words does not grow unnecessarily and the final search can be done quickly.
【図1】本発明の第1実施例に係る電子辞書の構成を示
すブロック図である。FIG. 1 is a block diagram showing a configuration of an electronic dictionary according to a first embodiment of the present invention.
【図2】同電子辞書におけるキーボードの構成を示す平
面図である。FIG. 2 is a plan view showing a configuration of a keyboard in the electronic dictionary.
【図3】同電子辞書における辞書メモリのデータ格納状
態を示す説明図である。FIG. 3 is an explanatory diagram showing a data storage state of a dictionary memory in the electronic dictionary.
【図4】同電子辞書全体の動作を示すフローチャートで
ある。FIG. 4 is a flowchart showing an operation of the entire electronic dictionary.
【図5】図4の照合動作の詳細を示すフローチャートで
ある。FIG. 5 is a flowchart showing details of the matching operation of FIG.
【図6】図1の電子辞書におけるキーボードの操作と表
示部の表示状態を示す説明図である。6 is an explanatory diagram showing a keyboard operation and a display state of a display unit in the electronic dictionary of FIG.
【図7】同電子辞書におけるキーボードの操作と表示部
の表示状態を示す説明図である。FIG. 7 is an explanatory diagram showing a keyboard operation and a display state of a display unit in the electronic dictionary.
【図8】本発明の第2実施例に係る電子辞書の動作を示
すフローチャートである。FIG. 8 is a flowchart showing the operation of the electronic dictionary according to the second embodiment of the present invention.
【図9】本発明の第2実施例に係る電子辞書におけるキ
ーボードの操作と表示部の表示状態を示す説明図であ
る。FIG. 9 is an explanatory diagram showing the operation of the keyboard and the display state of the display unit in the electronic dictionary according to the second embodiment of the present invention.
【図10】同電子辞書におけるキーボードの操作と表示
部の表示状態を示す説明図である。FIG. 10 is an explanatory diagram showing a keyboard operation and a display state of a display unit in the electronic dictionary.
【図11】同電子辞書の動作を示すフローチャートであ
る。FIG. 11 is a flowchart showing an operation of the electronic dictionary.
【図12】同電子辞書におけるキーボードの操作と表示
部の表示状態を示す説明図である。FIG. 12 is an explanatory diagram showing a keyboard operation and a display state of a display unit in the electronic dictionary.
【図13】同電子辞書におけるキーボードの操作と表示
部の表示状態を示す説明図である。FIG. 13 is an explanatory diagram showing a keyboard operation and a display state of a display unit in the electronic dictionary.
1 電子辞書 2 キーボード 2a アルファベット・数字キー(文字コード入力手
段) 3 表示部(表示手段) 4 ROM(辞書格納手段) 4a 制御プログラムメモリ 4b 辞書メモリ 5 RAM 5a 展開長下限値(展開長制限値) 5b 展開長上限値(展開長制限値) 6 CPU(検索制御手段) 7 表示駆動部 8 ワイルドカードキー(特殊コード入力手段) 9 設定キー(展開長設定手段) 10 翻訳キー(検索指示入力手段)1 Electronic Dictionary 2 Keyboard 2a Alphabet / Numeric Keys (Character Code Input Means) 3 Display Unit (Display Means) 4 ROM (Dictionary Storage Means) 4a Control Program Memory 4b Dictionary Memory 5 RAM 5a Expansion Length Lower Limit Value (Expansion Length Limit Value) 5b Expansion length upper limit value (expansion length restriction value) 6 CPU (search control means) 7 Display drive section 8 Wild card key (special code input means) 9 Setting key (expansion length setting means) 10 Translation key (search instruction input means)
─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───
【手続補正書】[Procedure amendment]
【提出日】平成5年7月15日[Submission date] July 15, 1993
【手続補正1】[Procedure Amendment 1]
【補正対象書類名】図面[Document name to be corrected] Drawing
【補正対象項目名】全図[Correction target item name] All drawings
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【図1】 [Figure 1]
【図2】 [Fig. 2]
【図6】 [Figure 6]
【図7】 [Figure 7]
【図3】 [Figure 3]
【図9】 [Figure 9]
【図10】 [Figure 10]
【図12】 [Fig. 12]
【図4】 [Figure 4]
【図13】 [Fig. 13]
【図5】 [Figure 5]
【図8】 [Figure 8]
【図11】 FIG. 11
Claims (1)
対照辞書を格納する辞書格納手段と、前記対照辞書の見
出語の各文字に対応するコードを入力する文字コード入
力手段と、前記対照辞書の見出語の如何なる文字列とも
一致する特殊コードを入力する特殊コード入力手段と、
前記コード及び前記特殊コードに対応する前記見出語の
検索コマンドを入力する検索指示入力手段と、前記検索
コマンドに基づいて前記対照辞書から対応する見出語及
び対応情報を検索する検索手段と、該検索手段により検
索された見出語及び対応情報を表示する表示手段とを有
する電子辞書において、前記特殊コード入力手段から入
力される特殊コードで検索される文字列長を制限する展
開長制限指令を入力する展開長設定手段と、該展開長設
定手段により設定される展開長制限値に基づき前記特殊
コードに対応して検索される文字列長を制限するように
前記検索手段を制御する検索制御手段とを有することを
特徴とする電子辞書。1. A dictionary storage means for storing a reference dictionary composed of a found word and corresponding information of the found word, and a character code input means for inputting a code corresponding to each character of the found word of the said contrast dictionary. And special code input means for inputting a special code that matches any character string of the word found in the contrast dictionary,
Search instruction input means for inputting a search command for the found word corresponding to the code and the special code; search means for searching for the corresponding found word and corresponding information from the contrast dictionary based on the search command; In an electronic dictionary having a display word for displaying the headword and corresponding information searched by the search means, a development length restriction command for restricting the character string length searched by the special code input from the special code input means. And a search control for controlling the search means so as to limit the character string length searched in correspondence with the special code based on the expansion length limit value set by the expansion length setting means. An electronic dictionary having means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4361614A JPH06203077A (en) | 1992-12-28 | 1992-12-28 | Electronic dictionary |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4361614A JPH06203077A (en) | 1992-12-28 | 1992-12-28 | Electronic dictionary |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06203077A true JPH06203077A (en) | 1994-07-22 |
Family
ID=18474292
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4361614A Pending JPH06203077A (en) | 1992-12-28 | 1992-12-28 | Electronic dictionary |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06203077A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005539310A (en) * | 2002-09-13 | 2005-12-22 | ソニー・エリクソン・モバイルコミュニケーションズ, エービー | Number search method and apparatus including number search function |
| JP2022148873A (en) * | 2021-03-24 | 2022-10-06 | カシオ計算機株式会社 | Information retrieval device, information retrieval method, and program |
-
1992
- 1992-12-28 JP JP4361614A patent/JPH06203077A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005539310A (en) * | 2002-09-13 | 2005-12-22 | ソニー・エリクソン・モバイルコミュニケーションズ, エービー | Number search method and apparatus including number search function |
| JP2022148873A (en) * | 2021-03-24 | 2022-10-06 | カシオ計算機株式会社 | Information retrieval device, information retrieval method, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5220625A (en) | Information search terminal and system | |
| JPH06203077A (en) | Electronic dictionary | |
| JP3945075B2 (en) | Electronic device having dictionary function and storage medium storing information retrieval processing program | |
| JPH0256053A (en) | Document preparing device | |
| US5262948A (en) | Word processor | |
| JP2815911B2 (en) | Electronic dictionary | |
| JP3498635B2 (en) | Information retrieval method and apparatus, and computer-readable recording medium | |
| JP2008117310A (en) | Dictionary search apparatus and dictionary search processing program | |
| JP2001134564A (en) | Electronic dictionary | |
| JPH07325844A (en) | Electronic dictionary search device | |
| JPH0375960A (en) | Character processing device frequency change method | |
| WO2005098672A1 (en) | Electronic dictionary | |
| JPH103475A (en) | Character processor | |
| JPH05135010A (en) | Character processing method and device therefor | |
| JPH02249087A (en) | English word retrieving device | |
| JPH07129554A (en) | Document processor | |
| JPH04120656A (en) | Document processor | |
| JPH028956A (en) | Document processor | |
| JPH10177573A (en) | Method and device for processing document | |
| JPH08287046A (en) | Information processing device | |
| JPH07160697A (en) | Document processor | |
| JPH01318156A (en) | Document processor | |
| JPS62279426A (en) | Document preparing device | |
| JPH07168839A (en) | Electronic dictionary device | |
| JPH07129609A (en) | Data processing method and device |