JPH05342195A - Dictionary retrieving method - Google Patents

Dictionary retrieving method

Info

Publication number
JPH05342195A
JPH05342195A JP4150709A JP15070992A JPH05342195A JP H05342195 A JPH05342195 A JP H05342195A JP 4150709 A JP4150709 A JP 4150709A JP 15070992 A JP15070992 A JP 15070992A JP H05342195 A JPH05342195 A JP H05342195A
Authority
JP
Japan
Prior art keywords
information
dictionary
word
header
words
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4150709A
Other languages
Japanese (ja)
Inventor
Atsushi Yoshitomi
厚 吉富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP4150709A priority Critical patent/JPH05342195A/en
Publication of JPH05342195A publication Critical patent/JPH05342195A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Machine Translation (AREA)

Abstract

PURPOSE:To store a lot of words with the same storage capacity by having 1 byte information with segmentation and header character codes added together. CONSTITUTION:Concerning the dictionary retrieving method for retrieving a dictionary describing header words and information corresponding to the header words by using the header words, it is expressed by the bit information of one bit that there are segmentation in the header words described in the dictionary, and the bit information is previously added at the positions of sections in character codes constituting the header words. For example, all the header are stored while being written in Japanese syllabary (KANA) and for the descriptions, codes for referring to the headers are stored. A code C1 shows KANA reference and a code C2 shows reference with the square form of KANA. On the other hand, the segmenting information is expressed by setting '1' at the seventh bit of a segmented character. Thus, the header information and the correspondent information can be outputted by utilizing the segmentation information, and the capacity of the header information can be reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、辞書検索装置、特に、
あらかじめ記憶手段に格納しておいた見出し情報の検索
を行い、検索された見出し情報とそれに対応する対応情
報を所定の出力手段に出力する辞書検索装置の辞書検索
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dictionary search device, and more particularly,
The present invention relates to a dictionary search method for a dictionary search device that searches for heading information stored in advance in storage means and outputs the searched heading information and corresponding information to a predetermined output means.

【0002】[0002]

【従来の技術】従来より、電子辞書などの辞書検索装置
においては、見出し情報(キーワードや見出し語)とそ
れに対応する情報(表記や意味)を記憶装置に記憶させ
ておき、所定の方法で見出し情報の検索を行い、検索さ
れた見出し情報、およびそれと対応する対応情報を表示
装置などを用いて出力するものが知られている。
2. Description of the Related Art Conventionally, in a dictionary search device such as an electronic dictionary, headline information (keyword or headword) and corresponding information (notation or meaning) are stored in a storage device, and the headline information is searched by a predetermined method. It is known that information is searched and the searched headline information and corresponding information corresponding thereto are output using a display device or the like.

【0003】特に、見出しと表記を出力する場合に、表
記の漢字についての読みを見出しから付与するために分
かち情報を見出しにあらかじめ記憶しているものなどが
ある。
In particular, when outputting a heading and a notation, there is a method in which the division information is stored in advance in the heading in order to give the reading about the kanji of the notation from the heading.

【0004】また、記憶容量を逓減するため、複数の見
出し情報および対応情報をブロックとして、ブロックご
とに圧縮を行っているものがあり、これらの圧縮された
情報を、検索時にブロックの先頭から各情報ごとに順次
展開していき、所望の情報を得る装置がある。
Further, in order to gradually reduce the storage capacity, there is one in which a plurality of heading information and corresponding information are used as a block and compression is performed for each block, and these compressed information are respectively extracted from the beginning of the block at the time of retrieval. There is a device that sequentially develops each piece of information to obtain desired information.

【0005】[0005]

【発明が解決しようとする課題】ところが、このような
情報検索装置では、平仮名およびカタカナをそれぞれ別
の1バイトコードで表し、分かち情報を記憶するにも1
バイトを占有しているために、見出し語が増えれば増え
るほど、分かちの占める記憶容量も大きくなってしまう
といった問題点がある。
However, in such an information retrieving apparatus, hiragana and katakana are represented by different one-byte codes, and the division information is also stored.
Since the bytes are occupied, there is a problem that as the number of headwords increases, the storage capacity occupied by the division also increases.

【0006】そこで、本発明の目的は、以上の問題を解
決し、分かち情報と見出し文字コードを合わせて1バイ
トで持つことにより、同じ記憶容量でたくさんの単語を
記憶できる辞書検索方法を提供することにある。
Therefore, an object of the present invention is to solve the above problems and provide a dictionary search method capable of storing a large number of words with the same storage capacity by having the separation information and the index character code in one byte. Especially.

【0007】また、ブロック圧縮を行う辞書検索装置で
は、圧縮された情報を展開する時に、ブロックの先頭か
ら展開していくことで、所望の見出し情報、および対応
情報を得るため、圧縮された情報がその前の情報を参照
して符号化されている場合など、再度ブロックの先頭か
ら展開しなければならず、展開にかかる時間のため、待
ち時間が生じるという問題点がある。
Further, in the dictionary search device for block compression, when the compressed information is expanded, the compressed information is expanded in order to obtain desired heading information and corresponding information. When the block is encoded by referring to the previous information, the block must be expanded again from the beginning, and there is a problem that a waiting time occurs due to the time required for expansion.

【0008】また検索を速くするために、各情報のアド
レスを示すポインタをあらかじめROMなどに記憶して
おいた場合には、多数の見出し情報を持つ場合に、それ
と同数のポインタを持たなければならず、大きな記憶容
量を要してしまう。
Further, in order to speed up the search, if a pointer indicating the address of each piece of information is stored in advance in the ROM or the like, if there are a large number of heading information, the same number of pointers must be held. However, a large storage capacity is required.

【0009】本発明の第2の目的は、以上の問題を解決
し、あらかじめROMなどにポインタを記憶しておかな
くても、一度検索したブロック中の情報をすばやく再展
開することができる辞書検索方法を提供することにあ
る。
A second object of the present invention is to solve the above problems and to quickly re-expand information in a block searched once without having to store a pointer in a ROM or the like in advance. To provide a method.

【0010】[0010]

【課題を解決するための手段】このような目的を達成す
るために、請求項1の発明は、見出し語および該見出し
語に対応する情報を記載した辞書を前記見出し語により
検索する辞書検索方法において、前記辞書に記載された
見出し語に分かちがあることを1ビットのビット情報で
表わし、当該見出し語を構成する文字コードの中の前記
分かちの位置に該当する文字コードに前記ビット情報を
予め付加しておくことを特徴とする。
In order to achieve such an object, the invention of claim 1 is a dictionary search method for searching a dictionary in which a headword and information corresponding to the headword are described by the headword. In 1, the fact that the entry word written in the dictionary has a division is represented by 1-bit bit information, and the bit information is previously stored in a character code corresponding to the division position among the character codes forming the entry word. It is characterized in that it is added.

【0011】請求項2の発明は、見出し語および該見出
し語に対応する情報複数を1ブロック単位として圧縮し
て記載した辞書を前記見出し語により検索する辞書検索
方法において、前記検索において、圧縮された前記ブロ
ックの情報を複数の前記見出し語および前記情報を順次
に元に展開する際に、前記見出し語および前記情報の記
載位置を記憶するようにしたことを特徴とする。
According to a second aspect of the present invention, there is provided a dictionary retrieval method for retrieving a dictionary in which a headword and a plurality of pieces of information corresponding to the headword are compressed by one block, and the dictionary is searched by the headword. When the information of the block is developed based on a plurality of the entry words and the information sequentially, the description positions of the entry words and the information are stored.

【0012】[0012]

【作用】請求項1の発明では、分かち情報は1ビットで
分かち位置を表わすので辞書に記載の情報ビット情報を
従来よりも減らすことができる。
According to the first aspect of the present invention, since the sharing information represents the sharing position with 1 bit, the information bit information described in the dictionary can be reduced as compared with the conventional case.

【0013】請求項2の発明では、見出し語および対応
の情報の記載位置を記憶しておくことで、前の展開情報
を用いて新たな展開を行う場合にも記憶情報を用いて展
開を行えばよく、従来のようにブロック先頭から再展開
を行う必要がなくなる。
According to the second aspect of the present invention, by storing the entry position of the entry word and the corresponding information, the expansion is performed using the stored information even when new expansion is performed using the previous expansion information. All that is required is that there is no need to re-expand from the beginning of the block as in the conventional case.

【0014】[0014]

【実施例】以下、図面に示す実施例に基づき、本発明を
詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the embodiments shown in the drawings.

【0015】<第1実施例>図1は、本発明を採用した
情報検索装置のブロック図を示す。
<First Embodiment> FIG. 1 is a block diagram of an information retrieval apparatus adopting the present invention.

【0016】図において符号2は、マイクロプロセッサ
などからなる中央演算処理装置(CPU)で、キーボー
ド1からの入力に従ってリードオンリメモリ(ROM)
4に格納されたプログラム4aの各処理を実行する。
In the figure, reference numeral 2 is a central processing unit (CPU) including a microprocessor, etc., and a read-only memory (ROM) according to an input from the keyboard 1.
4 executes each process of the program 4a stored in 4.

【0017】ここでキーボード1は、不図示のインター
フェース手段を介してCPU2を接続される。ROM4
には、見出し情報、およびその対応情報を格納した辞書
4bが格納されており、キーボード1から入力された文
字列を用いて辞書4bの情報が検索される。RAM3に
は、キーボード1からの入力データを一次記憶する入力
バッファ3a,表示すべきデータを展開する表示バッフ
ァ3bなどが設けられている。
Here, the keyboard 1 is connected to the CPU 2 via an interface means (not shown). ROM4
Stores a heading information and a dictionary 4b storing the corresponding information, and the information of the dictionary 4b is searched by using a character string input from the keyboard 1. The RAM 3 is provided with an input buffer 3a for temporarily storing input data from the keyboard 1, a display buffer 3b for expanding data to be displayed, and the like.

【0018】表示器6は、LCDパネル、あるいは、C
RTディスプレイなどから構成され、表示ドライバ5を
介して駆動される。
The display 6 is an LCD panel or C
It is composed of an RT display and the like, and is driven through the display driver 5.

【0019】図2は、本実施例における情報検索装置の
外観図で1,6はそれぞれ図1におけるキーボード1お
よび表示器6を示す。またキーボード1は、アルファベ
ットなどを入力する文字入力キー1aと情報検索を実行
させるサーチキー1b、およびカーソルキー1cなどか
ら構成される。
FIG. 2 is an external view of the information retrieving apparatus in this embodiment, and 1 and 6 respectively show the keyboard 1 and the display 6 in FIG. The keyboard 1 is composed of a character input key 1a for inputting an alphabet, a search key 1b for executing information search, a cursor key 1c, and the like.

【0020】図3は、文字列を入力し、それを用いて検
索した情報を表示した様子を示している。表示画面3−
(a)は文字列入力の途中を、表示画面3−(b)は入
力が終了した様子を、表示画面3−(c)はサーチキー
が押されて「言いそびれる」という単語が検索された様
子を、3−(d)は再びサーチキーが押されて次の単語
「言い出しっ屁」を表示した様子を示している。
FIG. 3 shows a state in which a character string is input and information retrieved using the character string is displayed. Display screen 3-
(A) is in the middle of inputting a character string, display screen 3- (b) shows that the input is completed, and display screen 3- (c) shows that the word "speak" was searched by pressing the search key. As for the state, 3- (d) shows a state in which the search key is pressed again to display the next word, "word of call".

【0021】図4は従来例における辞書4bの内容につ
いて示したもので、辞書4bには見出し語と、この見出
し語に対応する表記に関するデータが格納されている。
見出し語および表記の各単語の下段には実際に格納する
文字コードを示している(文字コード表は図10を参
照)。
FIG. 4 shows the contents of the dictionary 4b in the conventional example. The dictionary 4b stores headwords and notation data corresponding to the headwords.
The character code to be actually stored is shown below the headword and each word of the notation (see FIG. 10 for the character code table).

【0022】図5は、本発明における辞書4bの内容に
ついての一例を示したもので、見出しについては全て平
仮名で格納しており、表記には見出しを参照するコード
を格納している。コード「c1]は平仮名参照を示し、
コード「c2」はカタカナ参照を示すコードである。ま
た、分かち情報は分かちのある文字の第7ビットに1を
たてることで表される。
FIG. 5 shows an example of the contents of the dictionary 4b according to the present invention. Headings are all stored in hiragana, and notations store codes that refer to the headings. Code "c1" indicates a Hiragana reference,
The code “c2” is a code indicating a katakana reference. The division information is represented by setting 1 to the 7th bit of the divided character.

【0023】図6は、図1のCPU2の実行するデータ
処理のフローチャートで、CPU2はまずステップS1
でキーの入力処理を行い、ステップS2でそのキーの判
別を行う。ステップS3では、文字入力キー1aから入
力語が入力された際に、入力バッファ3aにセットする
処理をCPU2が行い、ステップS4では、キーボード
1のサーチキー1bが入力された際に検索処理を行う。
ステップS6では、表示バッファ3bにセットされたデ
ータを表示装置6に表示する処理を行う。以上の一連の
処理を繰り返し情報検索処理を行う。
FIG. 6 is a flowchart of data processing executed by the CPU 2 of FIG.
In step S2, the key input process is performed, and in step S2, the key is identified. In step S3, when an input word is input from the character input key 1a, the CPU 2 performs a process of setting in the input buffer 3a, and in step S4, a search process is performed when the search key 1b of the keyboard 1 is input. ..
In step S6, a process of displaying the data set in the display buffer 3b on the display device 6 is performed. The above series of processes are repeated to perform the information search process.

【0024】図7は、図6のステップS4の検索処理を
詳細に示したもので、CPU2はまず最初に見出し語の
各文字の第7ビットに“1”がたっているかをステップ
S101で調べ、もしたっている場合にはそれが何文字
目であるかを内部メモリに記録する。次にステップS1
02で見出し語の各文字の第7ビットをオフ(“0”)
する。そしてステップS103に進み、入力語と見出し
語の比較を行う。これらの一連の処理を入力語が見出し
語と等しいか大きくなる(見出し語が見つかる)まで繰
り返す。見出し語が見つかると、ステップS107に進
み、見つかった見出し語とその表記を表示バッファにセ
ットする。
FIG. 7 shows in detail the search process of step S4 of FIG. 6, in which the CPU 2 first checks in step S101 whether the 7th bit of each character of the entry word has "1". If so, it records in the internal memory what number it is. Then step S1
02 turns off the 7th bit of each character of the entry word (“0”)
To do. Then, in step S103, the input word and the entry word are compared. These series of processes are repeated until the input word is equal to or larger than the headword (the headword is found). When the headword is found, the process proceeds to step S107, and the found headword and its notation are set in the display buffer.

【0025】(他の実施例)図8,図9に見出し語がア
ルファベットにより構成される例を示す。
(Other Embodiments) FIGS. 8 and 9 show examples in which headwords are formed by alphabets.

【0026】図8は、従来例の熟語を見出し語とする場
合の記載例で、アルファベットとその分かちであるスペ
ースがそれぞれ1バイトで格納されている。(文字コー
ドは図10,図11を参照) 図9は本発明を適用した記載例で、見出し語である熟語
について、分かち情報であるスペースがあることを、分
かちがある文字の第7ビットを用いて表している。
FIG. 8 is an example of a description in the case of using a conventional idiom as an entry word, and the alphabet and the space as the division thereof are each stored in 1 byte. (For character codes, refer to FIG. 10 and FIG. 11.) FIG. 9 is a description example to which the present invention is applied. For a compound word that is an entry word, there is a space that is division information. It is expressed using.

【0027】<第2実施例>図12は、第2実施例の回
路構成を示すブロック図を示す。図において符号52
は、マイクロプロセッサなどからなるCPUで、キーボ
ード51からの入力に従ってROM54に格納されたプ
ログラム54aの各処理を実行する。
<Second Embodiment> FIG. 12 is a block diagram showing a circuit configuration of the second embodiment. In the figure, reference numeral 52
Is a CPU such as a microprocessor, which executes each process of the program 54a stored in the ROM 54 according to an input from the keyboard 51.

【0028】ここでキーボード51は、インターフェー
ス手段を介してCPU52と接続される。ROM54に
は、見出し情報、およびその対応情報を圧縮して格納し
た辞書54bが格納されており、キーボード51から入
力された文字列を用いて辞書4bの情報が検索される。
この場合の圧縮には、ハフマン法などの方法が用いら
れ、圧縮率を高めるに、前の文字列を参照する方法とし
てスライド辞書法などを用いる。
Here, the keyboard 51 is connected to the CPU 52 via the interface means. The ROM 54 stores a dictionary 54b in which headline information and its corresponding information are compressed and stored, and the information of the dictionary 4b is searched using a character string input from the keyboard 51.
A method such as the Huffman method is used for compression in this case, and a slide dictionary method or the like is used as a method for referring to the previous character string in order to increase the compression rate.

【0029】RAM53には、キーボード51からの入
力データを一次記憶する入力バッファ53a,表示すべ
きデータを展開する表示ファバア53b,情報検索を行
った際に展開された情報を格納する検索情報バッファ5
3c、および展開されたブロック中の各情報へのポイン
タを記憶するポインタ記憶バッファ53dなどが設けら
れている。表示器56は、LCD(液晶)パネル、ある
いは、CRT(陰極線管)ディスプレイなどから構成さ
れ、表示ドライバ55を介して駆動される。
The RAM 53 has an input buffer 53a for temporarily storing input data from the keyboard 51, a display user 53b for expanding data to be displayed, and a search information buffer 5 for storing information expanded when an information search is performed.
3c, and a pointer storage buffer 53d for storing pointers to each information in the expanded block. The display 56 is composed of an LCD (liquid crystal) panel, a CRT (cathode ray tube) display, or the like, and is driven via the display driver 55.

【0030】本実施例における装置の外観は図2の第1
実施例と同様であり、キーボード51は、アルファベッ
トなどを入力する文字入力キー51aと情報検索を実行
させるサーチキー51bおよびカーソルキー51cなど
から構成される。
The external appearance of the apparatus in this embodiment is the first in FIG.
Similar to the embodiment, the keyboard 51 includes a character input key 51a for inputting an alphabet, a search key 51b for executing information search, a cursor key 51c, and the like.

【0031】次に、以上の構成における動作について図
13〜図17を参照して説明する。図13〜図15は、
ROM54のプログラム格納領域54aに格納されたプ
ログラムの流れを示している。図16は、辞書4bのデ
ータ構造を示しており、図17はポインタ記憶バッファ
に各単語のアドレスが記憶されている様子を示してい
る。
Next, the operation of the above configuration will be described with reference to FIGS. 13 to 15 show
The flow of the program stored in the program storage area 54a of the ROM 54 is shown. FIG. 16 shows the data structure of the dictionary 4b, and FIG. 17 shows a state in which the address of each word is stored in the pointer storage buffer.

【0032】図16におけるINDEXは、ブロックの
先頭単語のよみと先頭アドレスにより構成され、単語辞
書における各単語はデータサイズと圧縮された単語のよ
み、および圧縮された単語データよりなる。この場合各
単語データは、それより前にある単語の単語データを参
照することにより、圧縮率を高めている。
The INDEX in FIG. 16 is composed of the reading of the leading word of the block and the leading address, and each word in the word dictionary consists of the data size, the reading of the compressed word, and the compressed word data. In this case, the compression rate of each word data is increased by referring to the word data of the word before that.

【0033】図13は、図12のCPU52の実行する
データ処理のフローチャートである。まずステップS1
1でキーの入力処理を行い、ステップS12でそのキー
の判別を行う。ステップS13では、文字入力キー51
aから入力語が入力された際に、入力バッファ53aに
セットする処理を行い、ステップS14では、キーボー
ド51のサーチキー51bが入力された際に情報検索処
理を行う。ステップS15では、検索された情報を表示
しているときに、サーチキー51bが入力された場合
に、前後の単語の検索を行う前後検索処理を行う。ステ
ップS17では、表示バッファ53bにセットされたデ
ータを表示装置56に表示する処理を行う。CPU52
は以上の一連の処理を繰り返しデータの処理を行う。
FIG. 13 is a flow chart of data processing executed by the CPU 52 of FIG. First, step S1
In step 1, a key input process is performed, and in step S12, the key is discriminated. In step S13, the character input key 51
When an input word is input from a, a process of setting it in the input buffer 53a is performed, and in step S14, an information search process is performed when the search key 51b of the keyboard 51 is input. In step S15, when the search key 51b is input while displaying the searched information, a pre-post search process of searching the words before and after is performed. In step S17, a process of displaying the data set in the display buffer 53b on the display device 56 is performed. CPU 52
Repeats the above series of processing to process data.

【0034】図14は、図13のステップS14におけ
る情報検索処理の詳細を示す。ステップS201でIN
DEXの先頭のよみをセットし、S202で入力語と比
較する。これを、S203,S204で入力語のほうが
小さい間は繰り返し、辞書順において、入力語と対応す
るブロックの先頭のアドレスを求める。ブロックの先頭
アドレスが見つかると、S205においてブロックの先
頭単語のよみをセットし、S206で入力語と比較す
る。これを入力語が小さい間は繰り返し、それと同時に
各単語のアドレスを順次ポインタ記憶バッファ53dに
記憶していく。ステップS210で検索された単語を展
開する処理を行い、ステップS211でよみおよび展開
された単語データを表示バッファにセットする。次にス
テップS212で次の見出し語のアドレスをポインタ記
憶バッファ53dに記憶する。
FIG. 14 shows details of the information search process in step S14 of FIG. IN in step S201
The reading at the beginning of DEX is set and compared with the input word in S202. This is repeated in S203 and S204 while the input word is smaller, and the start address of the block corresponding to the input word is obtained in the dictionary order. When the start address of the block is found, the reading of the start word of the block is set in S205 and compared with the input word in S206. This is repeated while the input word is small, and at the same time, the address of each word is sequentially stored in the pointer storage buffer 53d. In step S210, a process of expanding the searched word is performed, and in step S211, the read and expanded word data is set in the display buffer. Next, in step S212, the address of the next entry word is stored in the pointer storage buffer 53d.

【0035】図15は、図13のステップS15におけ
る前後検索処理の詳細を示す。ステップS301で前サ
ーチか次サーチの判別がなされ、それぞれの場合に従っ
て、ステップS302,S303でポインタ記憶バッフ
ァ53dから単語のアドレスを求める。次サーチの場合
には、ステップS304で、次の見出し語アドレスをポ
インタ記憶バッファ53dに記憶する。次にステップS
305で単語データの展開を行い、ステップS206で
よみおよび展開された単語データを表示バッファにセッ
トする。
FIG. 15 shows details of the pre-post search processing in step S15 of FIG. In step S301, the previous search or the next search is discriminated. According to each case, the word address is obtained from the pointer storage buffer 53d in steps S302 and S303. In the case of the next search, the next entry word address is stored in the pointer storage buffer 53d in step S304. Then step S
The word data is expanded in 305, and the read and expanded word data is set in the display buffer in step S206.

【0036】図14のステップS210、および図15
のステップS305における単語データの展開において
単語データがそれよりも前にある単語データを参照して
いる場合は、ポインタ記憶バッファ53dのアドレスを
参照して、参照される単語の単語データも展開して参照
部を復号化する。図18に例として、図15に示す単語
「愛情」がそれより2つ前の「愛」を参照して符号化さ
れている場合を示す。図中括弧で示す3つの数の組は、
参照する単語が何単語前のものか、どこから同じか、何
バイト同じかをそれぞれ示している。実際にはこれを符
号化したものが辞書中に埋め込まれる。この場合に、
「あいじょう」が検索されたとすると、「(2,1,
2)情」を展開し「あい」のアドレスをポインタ記憶バ
ッファから求め、「愛」を展開したうえで、「愛情」を
復号化する。
Step S210 of FIG. 14 and FIG.
When the word data refers to the word data that precedes it in the expansion of the word data in step S305, the address of the pointer storage buffer 53d is referred to and the word data of the referenced word is also expanded. Decode the reference part. As an example, FIG. 18 shows a case where the word “love” shown in FIG. 15 is coded with reference to “love” two before that. The set of three numbers shown in parentheses in the figure is
It shows how many words the reference word is before, where it is the same, and how many bytes are the same. Actually, the coded one is embedded in the dictionary. In this case,
If "aijo" is searched, "(2,1,
2) Expand "information", obtain the address of "ai" from the pointer storage buffer, expand "love", and then decode "love".

【0037】(他の実施例)図19に示すように、ブロ
ックが決まったらそのブロックの全単語へのポインタを
最初に全て求めるような処理を図14のステップS20
5に代り実行しても良い。そうすることで、前後検索の
時に新しく次の単語のポインタを求めなくても良くなる
ので処理は簡単になる。
(Other Embodiments) As shown in FIG. 19, when a block is determined, a process of first obtaining all pointers to all words in the block is performed in step S20 of FIG.
You may carry out instead of 5. By doing so, it is not necessary to find a new pointer for the next word at the time of pre- and post-search, so the process becomes simple.

【0038】また、前の情報への参照は、多重におこる
ようにしてもかまわない。
Further, the reference to the previous information may be made multiple times.

【0039】[0039]

【発明の効果】以上から明らかなように、請求項1の発
明によれば見出し情報を表す文字コードと分かち情報を
合わせて1バイト以下で表すことができ、その分かち情
報を利用して見出し情報と対応情報を出力することによ
り、見出し情報の容量を低減することができる。
As is clear from the above, according to the invention of claim 1, the character code representing the heading information and the division information can be represented together in 1 byte or less, and the division information is used to make the heading information. By outputting the correspondence information with, the capacity of the headline information can be reduced.

【0040】請求項2の発明によれば情報検索の際に、
圧縮されたブロック内の各情報の記載位置をきおくして
おくことで、情報を展開し前方への参照を復号化するよ
うな際に、わざわざブロックの先頭から展開処理を行わ
なくても、ポインタを参照して、情報単位で展開すれば
よく、高速な処理を行うことができる。
According to the invention of claim 2, at the time of information retrieval,
By keeping the position of each piece of information in the compressed block in advance, when decompressing the information and decoding the forward reference, you do not have to perform the decompression process from the beginning of the block. It is only necessary to refer to the pointer and expand in information units, and high-speed processing can be performed.

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

【図1】本発明を実施した辞書検索装置のブロック図で
ある。
FIG. 1 is a block diagram of a dictionary search device embodying the present invention.

【図2】本発明を実施した辞書検索装置の外観図であ
る。
FIG. 2 is an external view of a dictionary search device embodying the present invention.

【図3】本発明を実施した辞書検索装置の操作例を示し
た図である。
FIG. 3 is a diagram showing an operation example of a dictionary search device embodying the present invention.

【図4】従来の辞書の内容を示した図である。FIG. 4 is a diagram showing the contents of a conventional dictionary.

【図5】表記から見出しを参照するための参照のコード
を示した図である。
FIG. 5 is a diagram showing a reference code for referencing a heading from a notation.

【図6】データ処理のフローチャートである。FIG. 6 is a flowchart of data processing.

【図7】検索処理のフローチャートである。FIG. 7 is a flowchart of a search process.

【図8】従来例の見出しを示す図である。FIG. 8 is a diagram showing a heading of a conventional example.

【図9】見出し語についても前方参照によりコード化し
た例を示した図である。
FIG. 9 is a diagram showing an example in which headwords are also coded by forward reference.

【図10】分かちがない場合の例を示した図である。FIG. 10 is a diagram showing an example when there is no division.

【図11】漢字とその読みのテーブル内容を示した図で
ある。
FIG. 11 is a diagram showing table contents of Chinese characters and their readings.

【図12】第2実施例の回路構成を示すブロック図であ
る。
FIG. 12 is a block diagram showing a circuit configuration of a second embodiment.

【図13】データ処理のフローチャートである。FIG. 13 is a flowchart of data processing.

【図14】情報検索処理のフローチャートである。FIG. 14 is a flowchart of information search processing.

【図15】前後検索処理のフローチャートである。FIG. 15 is a flowchart of a pre-post search process.

【図16】辞書のデータ構造の説明図である。FIG. 16 is an explanatory diagram of a data structure of a dictionary.

【図17】ポインタ記憶バッファの説明図である。FIG. 17 is an explanatory diagram of a pointer storage buffer.

【図18】前方への参照による符号化の説明図である。FIG. 18 is an explanatory diagram of encoding with forward reference.

【図19】他の実施例における情報検索処理のフローチ
ャートである。
FIG. 19 is a flowchart of an information search process according to another embodiment.

【符号の説明】[Explanation of symbols]

1,51 キーボード 1a 文字入力キー 1b サーチキー 2,52 CPU 3,53 RAM 3a,53a 入力バッファ 3b,53b 表示バッファ 4,54 ROM 4a,54a プログラム格納領域 4b,54b 辞書格納領域 5,55 表示ドライバ 6,56 表示器 1, 51 keyboard 1a character input key 1b search key 2, 52 CPU 3, 53 RAM 3a, 53a input buffer 3b, 53b display buffer 4,54 ROM 4a, 54a program storage area 4b, 54b dictionary storage area 5, 55 display driver 6,56 indicator

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 見出し語および該見出し語に対応する情
報を記載した辞書を前記見出し語により検索する辞書検
索方法において、 前記辞書に記載された見出し語に分かちがあることを1
ビットのビット情報で表わし、 当該見出し語を構成する文字コードの中の前記分かちの
位置に該当する文字コードに前記ビット情報を予め付加
しておくことを特徴とする辞書検索方法。
1. A dictionary search method for searching for a dictionary in which an entry word and information corresponding to the entry word are searched by the entry word, wherein the entry word written in the dictionary is divided.
A dictionary retrieval method characterized in that the bit information is represented by bit information of bits, and the bit information is added in advance to a character code corresponding to the position of the division in the character code forming the entry word.
【請求項2】 見出し語および該見出し語に対応する情
報複数を1ブロック単位として圧縮して記載した辞書を
前記見出し語により検索する辞書検索方法において、 前記検索において、圧縮された前記ブロックの情報を複
数の前記見出し語および前記情報を順次に元に展開する
際に、前記見出し語および前記情報の記載位置を記憶す
るようにしたことを特徴とする辞書検索方法。
2. A dictionary search method for searching a dictionary in which a headword and a plurality of pieces of information corresponding to the headword are compressed in units of one block by the headword, wherein the information of the compressed block in the search. The dictionary search method is characterized in that, when sequentially developing a plurality of the entry words and the information based on the above, the entry positions of the entry words and the information are stored.
JP4150709A 1992-06-10 1992-06-10 Dictionary retrieving method Pending JPH05342195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4150709A JPH05342195A (en) 1992-06-10 1992-06-10 Dictionary retrieving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4150709A JPH05342195A (en) 1992-06-10 1992-06-10 Dictionary retrieving method

Publications (1)

Publication Number Publication Date
JPH05342195A true JPH05342195A (en) 1993-12-24

Family

ID=15502698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4150709A Pending JPH05342195A (en) 1992-06-10 1992-06-10 Dictionary retrieving method

Country Status (1)

Country Link
JP (1) JPH05342195A (en)

Similar Documents

Publication Publication Date Title
US5854597A (en) Document managing apparatus, data compressing method, and data decompressing method
JP3234104B2 (en) Method and system for searching compressed data
EP0293161B1 (en) Character processing system with spelling check function
KR100490240B1 (en) Data compressing apparatus, data decompressing apparatus, data compressing method, data decompressing method, and program recording medium
JPH05342195A (en) Dictionary retrieving method
JPH05113964A (en) Electronic dictionary
JPH06337857A (en) Kanji(chinese character) input system
JP2831837B2 (en) Document search device
JPH0140370B2 (en)
JP3155600B2 (en) Information retrieval device
JP4139805B2 (en) Apparatus, method and program for converting lexical data to data
JP4329493B2 (en) Dictionary data compression apparatus, electronic dictionary apparatus, and program
JPH06332666A (en) Compressing method for data
JP2002358301A (en) Electronic dictionary
JPH06187371A (en) Storing method and reading method for compressed place name data
JPS61285573A (en) Kana-to-kanji converting device
JPH03110673A (en) Electronic dictionary
JPS6029823A (en) Adaptive type symbol string conversion system
JPH04671A (en) Retrieving system for electronic dictionary
JPH11272256A (en) Character display control device and its control method
JPS63229563A (en) Index production system
JPH1039853A (en) Stepwise character display device
JPH0721182A (en) Character processor and its method
JPH03110674A (en) Electronic dictionary
JPH0623973B2 (en) Character processor frequency change method