JP2572029B2 - Character processor - Google Patents

Character processor

Info

Publication number
JP2572029B2
JP2572029B2 JP60072676A JP7267685A JP2572029B2 JP 2572029 B2 JP2572029 B2 JP 2572029B2 JP 60072676 A JP60072676 A JP 60072676A JP 7267685 A JP7267685 A JP 7267685A JP 2572029 B2 JP2572029 B2 JP 2572029B2
Authority
JP
Japan
Prior art keywords
cursor
character
dictionary
input
kana
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60072676A
Other languages
Japanese (ja)
Other versions
JPS61233861A (en
Inventor
洋 高倉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP60072676A priority Critical patent/JP2572029B2/en
Publication of JPS61233861A publication Critical patent/JPS61233861A/en
Application granted granted Critical
Publication of JP2572029B2 publication Critical patent/JP2572029B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [技術分野] 本発明は、仮名により入力された日本語表現を仮名漢
字混じり文に変換する文字処理装置に関するものであ
る。
Description: TECHNICAL FIELD The present invention relates to a character processing device for converting a Japanese expression input by a kana into a sentence containing kana and kanji.

[従来技術] 従来、この種の文字処理装置としては、種々の方式に
よるものが提案されているが、その基本となるものは、
入力された日本語仮名列に対し、あらかじめ用意された
辞書との局所的な一致をとり、この一致がとられた文字
列の一致情報から品詞の情報を取り出し、さらにその一
致に対する残りの文字列に対してその品詞情報を用いて
文法判断を行い、文法的に成立すれば、辞書中の一致文
字列に対応する漢字を取り出して、仮名漢字混じり文に
するというものである。
[Prior Art] Conventionally, as this type of character processing apparatus, various types of character processing apparatuses have been proposed.
A local match with the dictionary prepared in advance is taken for the input Japanese kana string, the part-of-speech information is extracted from the match information of the matched character string, and the remaining character string for the match is obtained. Then, a grammatical judgment is made using the part-of-speech information, and if it is grammatically established, the kanji corresponding to the matching character string in the dictionary is extracted to form a kana-kanji mixed sentence.

従って、仮名漢字変換の良し悪しは辞書に依存すると
ころが高く、変換率を上げるには大きな容量を持つ辞書
が必要となった。そのために、辞書は、リードオンリメ
モリ(ROM)やメインメモリ等のランダムアクセスメモ
リ(RAM)上に持つのは好ましくなく、やむを得ず辞書
をこのROMやRAMの形態で持つ文字処理装置においては、
辞書を圧縮したり、辞書の単語数を減らしたりしてい
た。この結果、仮名漢字変換のスピードが上る反面どう
しても圧縮辞書の処理のためにその処理が煩雑になった
り、単語数の減少のために、変換率が下がるという欠点
があった。そこで、この欠点を改善すべく、フロッピー
ディスクや固定ディスク等の形態の辞書を持つことが多
くなり、この結果として如何に早く辞書を読むことがで
きるかということが問題となった。
Therefore, the quality of kana-kanji conversion depends largely on the dictionary, and a dictionary having a large capacity is required to increase the conversion rate. For this reason, it is not preferable to have a dictionary on a random access memory (RAM) such as a read-only memory (ROM) or a main memory. In a character processing device having a dictionary in the form of the ROM or RAM, it is unavoidable that:
They compressed the dictionary and reduced the number of words in the dictionary. As a result, while the speed of the kana-kanji conversion is increased, there is a disadvantage that the processing is inevitably complicated due to the processing of the compression dictionary and the conversion rate is reduced due to the reduction in the number of words. Therefore, in order to remedy this drawback, a dictionary in the form of a floppy disk, a fixed disk or the like is often used, and as a result, a problem has arisen as to how quickly the dictionary can be read.

そこで、これを解決するための手段の一つとして、入
力仮名に対して最長一致をした辞書中の読みの見出しの
ブロックを見つけ出し、そのブロック内で処理をすると
いうものがあるが、この処理系では、最長一致以外の単
語は見つけることができない。従って、この場合には例
えば「ひとは」という入力文字列に対して「人」という
単語は見つかるが、「火」や「非」等の単語を見つける
ことができないという欠点があった。
Therefore, as one of means for solving this problem, there is a method of finding the block of the reading heading in the dictionary that has the longest match with the input kana and performing processing within the block. Cannot find words other than the longest match. Therefore, in this case, for example, although the word "person" is found for the input character string "hito wa", there is a drawback that words such as "fire" and "non" cannot be found.

また他の手段としては、最長一致までの全ての見出
し、例えば「ひとは」に対して「ひと」と「ひ」という
見出しを含むブロックを見つけて処理するものがある
が、この場合には、一回の仮名漢字変換指示に対し、複
数のブロックを連続的に読むので、入力で仮名漢字変換
を指示してから、この変換結果を得るまでの時間がかか
るという欠点があった。
As another means, there is a method of finding and processing a block including all the headings up to the longest match, for example, the heading "Human" and "Hi" for "Human wa". In this case, A plurality of blocks are continuously read in response to a single Kana-Kanji conversion instruction, so that there is a drawback in that it takes time from instructing Kana-Kanji conversion by input to obtaining this conversion result.

そこで、これらの欠点を改善するために、一文字の仮
名入力を行う度に、対応する辞書を読むという方法があ
る。例えば「ひとは」という入力を行うときに、まず
「ひ」という入力があったときに「ひ」を含むブロック
を読み、次に「と」という入力があったときに「ひと」
を含むブロックを読み、その次に「は」という入力があ
ったときに「ひとは」を含むブロックを読みにいく。そ
して、総当り式で単語を処理し、「人は」「火とは」
「非とは」を出力する。この結果により、オペレータの
入力にあわせた辞書の読み込みが行え、仮名漢字変換の
指示に対し、素早い変換が行える。
Therefore, in order to improve these drawbacks, there is a method of reading a corresponding dictionary every time one-character kana is input. For example, when inputting "Hito", first read the block containing "Hi" when there is an input "Hi", and then read "Hito" when there is an input "To"
Is read, and when there is an input of "ha", the block containing "hitoha" is read. Then, the word is processed by the brute force formula, and "people" and "fire"
“Non-what” is output. As a result, the dictionary can be read in accordance with the input of the operator, and quick conversion can be performed in response to the instruction of kana-kanji conversion.

しかし、今度は入力された仮名列に対し、挿入や削除
を行いたい場合、現在までに読み込んだ辞書とのつじつ
まがあわなくなるという欠点があった。例えば「かん
じ」という入力を行ったのち「ん」を消去するとき、つ
まり「かじ」を入力して変換したい場合には、既に一文
字目に対応するブロックには「か」を含むブロック、二
文字目に対応するブロックには「かん」を含むブロッ
ク、三文字目に対応するブロックには「かんじ」を含む
ブロックが入っており、「かじ」を含むブロックが読み
込まれていないので、「かじ」が変換できないという欠
点があった。
However, there is a drawback that if the user wants to insert or delete the entered kana string, the dictionary will not be consistent with the dictionary read so far. For example, if you delete "n" after inputting "kanji", that is, if you want to convert by inputting "kaji", the block corresponding to the first character already has a block containing "ka" and two characters The block corresponding to the eyes contains the block containing "kan", the block corresponding to the third character contains the block containing "kanji", and the block containing "kanji" is not read, so "kaji" However, there was a drawback that conversion was not possible.

[目的] そこで、本発明の目的は、入力位置を示すカーソルの
移動に伴って、単語のよみに関連した情報が格納される
辞書を検索することにより、操作者の入力にあわせてか
な漢字変換処理を行うとともに、入力された仮名列に対
して容易に削除や挿入等の修正を行い、更にその修正さ
れた仮名列を用いてかな漢字変換処理が行えるようにし
た文字処理装置を提供することにある。
[Object] Accordingly, an object of the present invention is to provide a kana-kanji conversion process in accordance with an input by an operator by searching a dictionary in which information related to the reading of a word is stored with movement of a cursor indicating an input position. To provide a character processing device that easily corrects an input kana string, such as deletion or insertion, and can perform kana-kanji conversion processing using the corrected kana string. .

[実施例] 以下、図面を参照して本発明を詳細に説明する。Examples Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は、本発明を適用した日本語ワードプロセッサ
のシステムブロック図である。
FIG. 1 is a system block diagram of a Japanese word processor to which the present invention is applied.

第1図において、1はラスタスキャン表示方式で使用
されるCRT表示装置のような表示装置、2は一画面分の
表示パターン情報をドットマトリックスで記憶するビデ
オRAM(VRAM)、3はこのビデオVRAM2に対するパターン
情報の書き込みと表示装置1への読み出しの制御を行う
表示制御部である。
In FIG. 1, 1 is a display device such as a CRT display device used in a raster scan display system, 2 is a video RAM (VRAM) for storing display pattern information for one screen in a dot matrix, and 3 is this video VRAM2. And a display control unit that controls writing of pattern information to the display device 1 and readout to the display device 1.

4は主制御部であり、第4図と第7図のフローチャー
トに示す制御手順に従ったプログラムが格納されている
主メモリ41を有するマイクロプロセッサ(MPU)42その
他から成り、日本語ワードプロセッサの主制御を行うと
ともに、ディスク装置6から読み込んだ辞書を蓄えたり
する。ディスク装置6は、本システムを制御するための
ソフトウエアや仮名漢字変換のための辞書、フォントな
どが格納されている。
Reference numeral 4 denotes a main control unit which comprises a microprocessor (MPU) 42 and the like having a main memory 41 in which a program according to the control procedure shown in the flowcharts of FIGS. 4 and 7 is stored. In addition to controlling, the dictionary read from the disk device 6 is stored. The disk device 6 stores software for controlling the system, dictionaries for kana-kanji conversion, fonts, and the like.

5は入力装置としてのキーボードであり、このキーボ
ード5上には、ひらがなを入力する仮名キー、かな漢字
変換にかかるキー、カーソルの移動を指示するカーソル
左・右移動キー、その他のキーを配置する。
Reference numeral 5 denotes a keyboard as an input device, on which a kana key for inputting hiragana, a key for kana-kanji conversion, a cursor left / right shift key for instructing cursor movement, and other keys are arranged.

そして、これらの各構成要素は、I/Oバス7を介して
主制御部4と電気的に接続する。
These components are electrically connected to the main control unit 4 via the I / O bus 7.

第2図は第1図で示したディスク装置6内に含まれる
辞書ファイルの構造を説明する説明図である。
FIG. 2 is an explanatory diagram for explaining the structure of the dictionary file included in the disk device 6 shown in FIG.

図において、201は辞書ファイル200中の見出しに対す
るインデックスであり、辞書部202の各ブロックの先頭
の単語の読みの頭から4文字が格納されている。辞書部
202は、202−1から202−Nまでのブロックに分かれて
おり、単語の読みと漢字表記と品詞等の文法情報が含ま
れている。またこのブロック202−1〜202−Nは、複数
にまたがって同一の読みの単語を持たない様に、更に4
文字まで一致する読みを持つ単語は同一ブロックにある
様に構成されている。従って、通常各ブロックの終りに
はダミーの情報が含まれる。
In the figure, reference numeral 201 denotes an index for a heading in the dictionary file 200, and four characters from the beginning of the first word of each block of the dictionary unit 202 are stored. Dictionary section
202 is divided into blocks 202-1 to 202-N and includes grammatical information such as word reading, kanji notation, and part of speech. The blocks 202-1 to 202-N are further divided into four so as not to have the same reading word over a plurality of blocks.
Words that have matching readings up to the letter are configured to be in the same block. Therefore, dummy information is usually included at the end of each block.

第3図は、第2図で示した辞書ファイルの内容がキー
ボード5から入力される仮名列に従い、主メモリ41の部
分辞書に読み込まれていく過程の一例を説明する図であ
る。
FIG. 3 is a view for explaining an example of a process in which the contents of the dictionary file shown in FIG. 2 are read into a partial dictionary of the main memory 41 in accordance with a kana sequence input from the keyboard 5.

301は表示装置1に表示されて表示文字間に存在する
カーソルであって、仮名入力の挿入位置を示す。第3図
の(B)に示すように1文字目の「し」がキーボード5
から入力されると、第3図の(G)で示すディスク装置
6中の辞書ファイル200からインデックスをサーチし
て、「し」という単語を含むブロックを主メモリ41中の
部分辞書41−Aに読み出す(第3図の(B′)参照)。
次に第3図の(C)に示すように、「ょ」という文字が
入力されると、同様に「しょ」という単語を含むブロッ
クを部分辞書41−Bに、さらに第3図の(D)に示すよ
うに「う」という文字が入力されると「しょう」という
単語を含むブロックを部分辞書41Cに、さらにまた第3
図の(E)に示すように「に」という文字が入力される
と「しょうに」という単語を含むブロックが部分辞書41
Dにそれぞれ読み込まれる(第3図の(C′)〜
(E′)参照)。
Reference numeral 301 denotes a cursor displayed on the display device 1 and present between display characters, and indicates the insertion position of the kana input. As shown in FIG. 3 (B), the first character "" is the keyboard 5
From the dictionary file 200 in the disk device 6 shown in FIG. 3 (G), an index is searched, and a block including the word "shi" is stored in the partial dictionary 41-A in the main memory 41. Read (see (B ') in FIG. 3).
Next, as shown in FIG. 3 (C), when the character “ょ” is input, similarly, a block including the word “し” is added to the partial dictionary 41-B and further, (D) in FIG. )), When the character "U" is input, a block containing the word "Sho" is added to the partial dictionary 41C and further to the third dictionary.
When the character “Ni” is input as shown in FIG.
D ((C ') in FIG. 3)
(E ')).

以下に、第3図の(F)で示すように、「ん」「が」
という文字が読み込まれた時は、辞書中のブロック4文
字まで一致する読みは同一ブロック内にあるという原則
と、同じ読みを含むブロックは複数にまたがらないとい
う原則とによって辞書の読み込みを必要としないので、
部分辞書には読み込まない。
In the following, as shown in FIG.
When the character is read, it is necessary to read the dictionary based on the principle that readings that match up to 4 characters in the block in the dictionary are in the same block, and that the block containing the same reading does not extend over multiple blocks. Not
Does not load into partial dictionaries.

第4図はこの部分辞書41A〜41Dを用いた文節変換の一
実施例のフローチャートである。
FIG. 4 is a flowchart of an embodiment of phrase conversion using the partial dictionaries 41A to 41D.

ステップS−1およびS−2で、キーボード5から入
力された文字列全体で決まる単語が4つの部分辞書41A
〜41Dの中にあるか否かを調べ、それがあればステップ
S−3でその自立語を候補として採用する。ただし、自
立語としては接頭語を含むものも許すものとする。
In steps S-1 and S-2, the words determined by the entire character string input from the keyboard 5 include four partial dictionaries 41A.
It is checked whether it is within .about.41D, and if so, the independent word is adopted as a candidate in step S-3. However, independent words that include a prefix are also allowed.

次にステップS−4で、4つの部分辞書41A〜41Dから
長さが1から辞書の読みの最大長(Ymax)までの読みの
自立語を取り出す。例えば文字列が「ひとは」のときに
は、読みが「ひ」の自立語と読みが「ひと」の自立語が
取り出される。次にステップS−5で、その自立語の読
みを取りさった入力の残余の文字列を付属語とみなして
自立語と付属語との接続チェックを行う。
Next, in step S-4, the independent words of reading from the length 1 to the maximum reading length of the dictionary (Ymax) are extracted from the four partial dictionaries 41A to 41D. For example, when the character string is "hitoha", an independent word whose pronunciation is "hi" and an independent word whose reading is "hito" are extracted. Next, in step S-5, the connection between the independent word and the attached word is checked by regarding the remaining character string of the input that has read the independent word as an attached word.

そして、ステップS−6でその接続チェックの判定を
行い、接続可能であれば次のステップS−7でその接続
の終了可能性を判断し、終了可能であればステップS−
8で部分辞書中の漢字表記を用いて自立語を漢字に変換
し、ステップS−9でかな漢字変換を成功とする。
Then, the connection check is determined in step S-6. If the connection is possible, the possibility of terminating the connection is determined in the next step S-7. If the connection is possible, step S-
In step 8, the independent word is converted to kanji using the kanji notation in the partial dictionary, and in step S-9, the kana-kanji conversion is successful.

ステップS−6およびS−7でいずれも失敗に終った
場合には、ステップS−5で検索した文字列の中に接尾
語があったと考え、ステップS−10でその文字列を用い
て不図示の接尾語辞書を検索する。そして、ステップS
−11でその検索結果を判断し、その接尾語辞書に接尾語
が無ければステップS−11で変換が失敗となる。
If both of the steps S-6 and S-7 fail, it is considered that the suffix is included in the character string searched in the step S-5, and the character string is not used in the step S-10. Search the suffix dictionary shown. And step S
The search result is determined in -11, and if there is no suffix in the suffix dictionary, the conversion fails in step S-11.

ステップS−11で接尾語があったと判断されると、ス
テップS−13で自立語と接尾語とを除いた入力の読みの
文字列を付属語とみなしこれらの接続チェックを行う。
そして、ステップS−14でその接続が可能か否か判断
し、接続が不可能であればステップS−16で変換が失敗
となる。ステップS−14で接続可能であった場合には、
ステップS−15で終了可能性を調べ、不可能であればス
テップS−16で変換が失敗となる。他方、ステップS−
15で終了が可能であれば、ステップS−17で自立語と接
尾語とを漢字に置き換えてかな漢字変換が終了となる。
If it is determined in step S-11 that there is a suffix, in step S-13, the character string of the input reading excluding the independent word and the suffix is regarded as an adjunct, and a connection check is performed for these.
Then, in step S-14, it is determined whether or not the connection is possible. If the connection is not possible, the conversion fails in step S-16. If connection is possible in step S-14,
The possibility of termination is checked in step S-15, and if impossible, the conversion fails in step S-16. On the other hand, step S-
If the end is possible in step 15, the independent word and the suffix are replaced by kanji in step S-17, and the kana-kanji conversion ends.

第5図はキーボード5から入力された仮名文字列とカ
ーソルおよび部分辞書の読み込み状態を示す図である。
FIG. 5 is a diagram showing a reading state of a kana character string, a cursor and a partial dictionary input from the keyboard 5.

第5図の(A)は既に「しょうにんが」という文字列
が読み込まれた状態で部分辞書41〜41Dの状態は、第5
図の(F)に示すように部分辞書41Aが「し」を含むブ
ロック、部分辞書41Bが「しょ」を含むブロック、部分
辞書41Cが「しょう」を含むブロック、部分辞書41Dが
「しょうに」を含むブロックとなっている。
FIG. 5A shows a state in which the character string "Shouniga" has already been read and the state of the partial dictionaries 41 to 41D is the fifth.
As shown in (F) of the figure, the partial dictionary 41A is a block containing "shi", the partial dictionary 41B is a block containing "sho", the partial dictionary 41C is a block containing "sho", and the partial dictionary 41D is "shoni". It is a block containing.

ところで、第5図の(B)に示すように、カーソル30
1を「し」と「ょ」の間に移動しただけでは、辞書の読
み込みは行われない。さらに、第5図の(C)に示すよ
うにバックスペースキーによって「し」が削除されても
辞書の読み込みは行われず、部分辞書41A〜41Dの状態は
変化しない。ところが、ここで第5図の(D)に示すよ
うに「り」が入力されるとカーソル301が右に1つシフ
トされ、第5図の(G)に示すように部分辞書41Aに
「り」を含むブロックが読み出される。
By the way, as shown in FIG.
Just moving 1 between "" and "" does not read the dictionary. Further, as shown in FIG. 5 (C), even if "shi" is deleted by the backspace key, the dictionary is not read, and the state of the partial dictionaries 41A to 41D does not change. However, when "R" is input as shown in FIG. 5D, the cursor 301 is shifted right by one, and as shown in FIG. 5G, "R" is entered in the partial dictionary 41A. Are read out.

次にカーソル301を「ょ」,「う」,「に」,の後に
順に移動すると部分辞書41Bから41Dにかけて「りょ」を
含むブロック、「りょう」を含むブロック、「りょう
に」を含むブロックがそれぞれ読み込まれ第5図の
(E)に示す状態では、部分辞書41A〜41Dの中身は第5
図の(H)のようになり、入力が正しく変換できる部分
辞書の状態となる。
Next, when the cursor 301 is moved in order after “」 ”,“ 」”, “に”, a block including “り”, a block including “り”, and a block including “り” are applied to the partial dictionaries 41B to 41D. Are read and the contents of the partial dictionaries 41A to 41D are in the state shown in FIG.
As shown in (H) of the figure, the state of the partial dictionary in which the input can be correctly converted is obtained.

なお、これらの制御手順については後述する。 Note that these control procedures will be described later.

第6図は、カーソルの制御と部分辞書の読み込みを行
うための制御を示すブロック図である。
FIG. 6 is a block diagram showing control of a cursor and control for reading a partial dictionary.

図において、600はキーボード5から入力された仮名
文字列データである。601は全体を制御する中央処理装
置(CPU)である。602は表示装置1上のカーソルの位置
を検出してその座標を教えるカーソル位置検出器であ
る、603はディスクドライバであり、磁気ディスク604の
入出力を制御する。ここでは第2図で示すような辞書フ
ァイルの入出力を制御する。605は部分辞書であり、上
述した部分辞書41A〜41Dを有し、磁気ディスク604から
読み込んだ辞書ファイルのブロックを格納する。
In the figure, reference numeral 600 denotes kana character string data input from the keyboard 5. Reference numeral 601 denotes a central processing unit (CPU) for controlling the whole. Reference numeral 602 denotes a cursor position detector for detecting the position of the cursor on the display device 1 and instructing its coordinates. Reference numeral 603 denotes a disk driver, which controls input and output of the magnetic disk 604. Here, input / output of a dictionary file as shown in FIG. 2 is controlled. Reference numeral 605 denotes a partial dictionary, which has the partial dictionaries 41A to 41D described above, and stores blocks of a dictionary file read from the magnetic disk 604.

606は部分辞書管理レジスタであり、現在部分辞書41A
〜41D中に読み込まれている辞書ファイル200の4つの各
ブロックの番号を記憶している。また、このレジスタ60
6には、直前の部分辞書(部分辞書Nに対して部分辞書
N−1)と同一ブロックを示す場合には、(FFFFFFFF)
16が格納される。610は最終読み込みブロックレジスタ
であり、最も近くに読み込みまれたブロック番号を記憶
している。
Reference numeral 606 denotes a partial dictionary management register.
4D stores the numbers of the four blocks of the dictionary file 200 that are read in .about.41D. Also, this register 60
6 shows (FFFFFFFF) when the same block as the preceding partial dictionary (partial dictionary N-1 relative to partial dictionary N) is indicated.
16 is stored. A last read block register 610 stores the number of the block that has been read closest.

このように、部分辞書管理レジスタ606と最終読み込
みブロックレジスタ610とによって、既に読み込まれて
いるブロックの読み込みを抑制し、部分辞書への読み込
み時間の短縮と入出力の回数の減少を行っている。
As described above, the reading of the blocks already read is suppressed by the partial dictionary management register 606 and the final read block register 610, so that the reading time to the partial dictionary and the number of times of input / output are reduced.

607はカーソル位置レジスタであり、現在のカーソル
位置を記憶している。608は有効データバッファ長レジ
スタであり、データバッファ609中の有効なデータの長
さを記憶している。データバッファ609はキーボードか
らの入力仮名文字列600を一時的に蓄えるバッファであ
る。
A cursor position register 607 stores the current cursor position. An effective data buffer length register 608 stores the length of effective data in the data buffer 609. The data buffer 609 is a buffer for temporarily storing the input kana character string 600 from the keyboard.

第7図は、キーボードからの読み込みと表示装置上の
カーソルと部分辞書の読み込みについての各制御を説明
するフローチャートであり、以下にこれを説明する。
FIG. 7 is a flowchart for explaining each control of reading from the keyboard and reading of the cursor and the partial dictionary on the display device, which will be described below.

まず、ステップS−19でキーボードからのキー入力を
持つ、キー入力があると、ステップS−20でかな漢字の
変換キーか否かを判断し、変換キーであれば次のステッ
プS−22でかな漢字の変換処理を行う。ステップS−20
で変換キーで無ければステップS−21でかな漢字の無変
換キーか否か判断し、無変換キーであればステップS−
23で無変換処理をする。
First, in step S-19, if there is a key input from the keyboard, if there is a key input, it is determined in step S-20 whether the key is a kana-kanji conversion key. Is performed. Step S-20
If it is not a conversion key, it is determined in step S-21 whether or not it is a kana-kanji non-conversion key.
At 23, no conversion processing is performed.

ステップS−22およびS−23の各処理が終了すると、
次のステップS−24で有効データバッファ長レジスタ60
8の内容をカーソル位置レジスタ607の内容分減らし、残
余のデータの長さにする。また、データバッファ609の
内容もステップS−25でカーソル位置レジスタ607の内
容分だけ左へシフトし、ステップS−19へ戻る。この時
には、もちろんエコーされている文字列、すなわち出力
されて表示装置に表示されている文字列も同じだけ左へ
シフトする。
When the processes in steps S-22 and S-23 are completed,
In the next step S-24, the valid data buffer length register 60
The content of 8 is reduced by the content of the cursor position register 607 to make the length of the remaining data. Also, the contents of the data buffer 609 are shifted to the left by the contents of the cursor position register 607 in step S-25, and the process returns to step S-19. At this time, the echoed character string, that is, the character string output and displayed on the display device is also shifted to the left by the same amount.

ステップS−21で無変換キーでなければ、次のステッ
プS−26で仮名キーか否かを判断し、仮名キーであれ
ば、ステップS−27でデータバッファ609のカーソル対
応位置に仮名データを挿入格納する。従って、有効デー
タバッファ長レジスタ608内の長さ情報以内のデータ
は、右へシストされる。次にステップS−28で仮名デー
タをエコーし、ステップS−29でデータバッファ609の
カーソル位置に対応する所までの仮名データによって辞
書ファイルのインデックスを検索する。
If the key is not a non-conversion key in step S-21, it is determined whether or not it is a kana key in the next step S-26. Insert and store. Therefore, data within the length information in the valid data buffer length register 608 is shifted to the right. Next, in step S-28, the kana data is echoed, and in step S-29, the index of the dictionary file is searched by the kana data up to the position corresponding to the cursor position in the data buffer 609.

次に、ステップS−30でカーソル位置が2文字以上の
ところにあるか否かを判断し、2文字以上であれば、ス
テップS−31で現在のカーソル位置に該当する部分辞書
の内容が直前の部分辞書の内容と一致するか否かを判断
し、一致すればステップS−34で部分辞書管理レジスタ
606の現在のカーソル位置に該当するところに(FFFFFFF
F)16をセットし、ステップS−19へ戻る。
Next, in step S-30, it is determined whether or not the cursor position is at two or more characters. If the cursor position is at least two characters, the content of the partial dictionary corresponding to the current cursor position is determined at step S-31. It is determined whether or not the content of the partial dictionary matches the content of the partial dictionary.
At the location corresponding to the current cursor position of 606 (FFFFFFF
F) Set 16 and return to step S-19.

ステップS−31でそれが一致しない場合には、次のス
テップS−32で直前の部分辞書管理レジスタの内容が
(FFFFFFFF)16か否定かを判断し、それが(FFFFFFFF)
16であれば次のステップS−33で最終読み込みブロック
レジスタ610と検索結果とが同じか否かを判定し、同じ
であればステップS−34へ移行し、同じでなければステ
ップS−35へ移行する。
If they do not match in step S-31, it is determined in next step S-32 whether the content of the previous partial dictionary management register is (FFFFFFFF) 16 or negation.
If it is 16 , in the next step S-33, it is determined whether or not the final read block register 610 and the search result are the same. If they are the same, the process proceeds to step S-34; Transition.

ステップS−32で部分辞書管理レジスタが(FFFFFFF
F)16でなければステップS−35へ進み、ステップS−3
5で現在のカーソル位置に対応する部分辞書管理レジス
タ606の内容とステップS−29の検索結果が同じか否か
を判断する。ステップS−35で同じであれば、次のステ
ップS−36で最終読み込みブロックレジスタ610に検索
結果をセットしてステップS−19へ戻る。
In step S-32, the partial dictionary management register sets (FFFFFFF
F) If it is not 16 , proceed to step S-35, and step S-3
At 5, it is determined whether the contents of the partial dictionary management register 606 corresponding to the current cursor position and the search result at step S-29 are the same. If the result is the same in step S-35, the search result is set in the final read block register 610 in the next step S-36, and the process returns to step S-19.

他方、ステップS−35で同じでなければ、次のステッ
プS−37で部分辞書管理レジスタ606に検索結果をセッ
トし、さらにステップS−38で現在のカーソル位置に対
応する部分辞書に辞書ファイルから検索ブロックを読み
込む。次いでステップS−39で最終読み込みブロックレ
ジスタ610に検索結果をセットしてステップS−19へ戻
る。
On the other hand, if it is not the same in step S-35, the retrieval result is set in the partial dictionary management register 606 in the next step S-37, and further, in step S-38, the dictionary file is stored in the partial dictionary corresponding to the current cursor position. Load search block. Next, in step S-39, the search result is set in the final read block register 610, and the process returns to step S-19.

ステップS−26で仮名キーでない場合には、ステップ
S−40でカーソル左移動キーか否かを判断し、肯定判定
であればステップS−43でカーソルの左移動とカーソル
位置レジスタ607の更新を行ってステップS−19へ戻
る。
If it is not a kana key in step S-26, it is determined in step S-40 whether or not it is a cursor leftward movement key. If the determination is affirmative, in step S-43, movement of the cursor leftward and updating of the cursor position register 607 are performed. And return to step S-19.

ステップS−40でカーソル左移動キーでないときに
は、次のステップS−41でカーソル右移動キーか否かを
判定し、肯定判定であれば、ステップS−42でカーソル
の右移動とカーソル位置レジスタの更新を行ってステッ
プS−29へ移る。
If it is not the cursor left movement key in step S-40, it is determined in next step S-41 whether or not it is the cursor right movement key. If the determination is affirmative, in step S-42 the cursor right movement and the cursor position register After updating, the process moves to step S-29.

ステップS−41でカーソル右移動キーでなければ、ス
テップS−44でそのデータをデータバッファ609に挿入
格納し、ステップS−45でそのデータをエコーし、すな
わちそのデータを読み出して表示装置1に表示し、ステ
ップS−19に戻る。
If it is not the cursor right movement key in step S-41, the data is inserted and stored in the data buffer 609 in step S-44, and the data is echoed in step S-45, that is, the data is read out and displayed on the display device 1. Is displayed, and the process returns to step S-19.

このように、以上の制御手順によれば、例えば第5図
の(D)および(E)に示すようにカーソル301の移動
に応じて、部分辞書41A〜41Dの読み込み内容を第5図の
(G)から(H)のように変化させることができる。
As described above, according to the above control procedure, the read contents of the partial dictionaries 41A to 41D are changed according to the movement of the cursor 301 as shown in (D) and (E) of FIG. 5, for example. It can be changed from G) to (H).

[効果] 以上説明したように、本発明によれば、単語の読みを
表す仮名文字が1文字入力される度に、先頭よりカーソ
ルの位置までの仮名文字列によって辞書を検索すること
で、辞書の検索を迅速化する。そして、入力済の仮名文
字に修正の必要が生じた場合には、カーソルを修正すべ
き文字まで後退させて、カーソル位置の仮名文字を修正
し、カーソルを1文字分前進させる毎に、先頭よりカー
ソルの位置までの仮名文字列によって辞書を検索するこ
とで、検索後の文字列の修正に対しても、修正された文
字列による辞書の検索がなされる。ここで、カーソルを
後退させて文字を修正した場合、カーソルを前進させる
操作は、入力済の文字に続けて新たに文字を入力するた
めに元々必要な操作であるので、修正された文字列によ
る辞書の検索は、何ら特別な操作を要さずに行うことが
できる。
[Effects] As described above, according to the present invention, every time a kana character representing a reading of a word is input, the dictionary is searched by the kana character string from the beginning to the position of the cursor. Search faster. If the input kana character needs to be corrected, the cursor is moved backward to the character to be corrected, the kana character at the cursor position is corrected, and each time the cursor is moved forward by one character, the cursor is moved from the beginning. By searching the dictionary using the kana character string up to the position of the cursor, the dictionary is searched using the corrected character string even when the character string after the search is corrected. Here, when the character is corrected by moving the cursor backward, the operation of moving the cursor forward is an operation originally necessary for inputting a new character following the already-input character, so that the operation based on the corrected character string is performed. The dictionary search can be performed without any special operation.

また、修正はカーソル位置の文字に対して行われ、検
索はカーソルを1文字分先進させる毎に行われるので、
カーソルを順次前進させながら複数箇所の文字を修正す
るような場合にも、修正された文字列による辞書の検索
を効率よく行うことができるという効果がある。
Also, since the correction is made for the character at the cursor position and the search is made every time the cursor is advanced by one character,
Even in the case where characters at a plurality of positions are corrected while the cursor is sequentially advanced, there is an effect that a dictionary can be efficiently searched using the corrected character strings.

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

第1図は本発明を適用した日本語ワードプロセッサの構
成の一例を示すブロック図、 第2図は本発明実施例の辞書のフォーマットの一例を示
す説明図、 第3図はキーボードからの文字入力とそれに対応する部
分辞書の読み込みの関係を示す説明図、 第4図は本発明実施例における仮名漢字変換の制御手順
の一例を示すフローチャート、 第5図は本発明実施例におけるキーボードから入力され
た文字列とカーソルと部分辞書との関係を示す説明図、 第6図は本発明実施例のカーソルの制御および辞書への
読み込みの制御を行う制御回路の一例を示すブロック
図、 第7図は本発明実施例における入力文字列、カーソルの
動き、および部分辞書の読み込みの制御手順の一例を示
すフローチャートである。 1…表示装置、2…ビデオRAM、3…表示制御部、4…
主制御部、5…キーボード、6…ディスク装置、41A〜4
1D…部分辞書、600…入力仮名文字列、601…CPU、602…
カーソル位置検出器、603…ディスクドライバ、606…部
分辞書管理レジスタ、607…カーソル位置レジスタ、608
…有効データバッファ長レジスタ、609…データバッフ
ァ、610…最終読み込みブロックレジスタ。
FIG. 1 is a block diagram showing an example of the configuration of a Japanese word processor to which the present invention is applied, FIG. 2 is an explanatory diagram showing an example of a dictionary format according to an embodiment of the present invention, and FIG. FIG. 4 is an explanatory diagram showing a reading relationship of a corresponding partial dictionary. FIG. 4 is a flowchart showing an example of a control procedure of kana-kanji conversion in the embodiment of the present invention. FIG. 5 is a character input from a keyboard in the embodiment of the present invention. FIG. 6 is an explanatory diagram showing a relationship between a column, a cursor, and a partial dictionary. FIG. 6 is a block diagram showing an example of a control circuit for controlling a cursor and controlling reading into a dictionary according to the embodiment of the present invention. 9 is a flowchart illustrating an example of a control procedure for reading an input character string, movement of a cursor, and a partial dictionary in the embodiment. DESCRIPTION OF SYMBOLS 1 ... Display apparatus, 2 ... Video RAM, 3 ... Display control part, 4 ...
Main control unit, 5: keyboard, 6: disk device, 41A-4
1D… partial dictionary, 600… input kana character string, 601… CPU, 602…
Cursor position detector, 603: Disk driver, 606: Partial dictionary management register, 607: Cursor position register, 608
... Effective data buffer length register, 609 ... Data buffer, 610 ... Last read block register.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】単語の読みを表す仮名文字列を入力する入
力手段と、 該入力手段から入力された仮名文字列を記憶する記憶手
段と、 前記入力手段から入力され、前記記憶手段に記憶された
仮名文字列を表示させる表示制御手段と、 表示上で文字の位置を指定するカーソルを表示させるカ
ーソル表示手段と、 該カーソル表示手段によって表示された前記カーソル
を、操作者のカーソル移動指示に応答して、前記表示制
御手段により表示された仮名文字列上で前進または後退
させるカーソル移動手段と、 単語の読みと、該単語の表記を含む単語情報とを対応さ
せて格納する辞書手段と、 前記記憶手段に記憶された仮名文字列中の、先頭より前
記カーソルの位置までの仮名文字列によって、前記辞書
手段を検索する検索手段と、 前記入力手段より1文字入力される度に、当該入力され
た文字を前記カーソルの位置に表示させるとともに前記
カーソルを1文字分前進させ、前記検索手段を起動させ
る第1制御手段と、 前記カーソル移動手段により前記カーソルを修正すべき
文字まで後退させ、当該カーソルで指定される文字を修
正する修正手段と、 前記カーソル移動手段によりカーソルを1文字分前進さ
せる毎に、前記検索手段を起動させる第2制御手段とを
有することを特徴とする文字処理装置。
1. An input means for inputting a kana character string representing a reading of a word, a storage means for storing a kana character string input from the input means, and an input from the input means and stored in the storage means Display control means for displaying a kana character string, cursor display means for displaying a cursor for designating a character position on a display, and responding to the cursor movement instruction of the operator by displaying the cursor displayed by the cursor display means. A cursor moving means for moving forward or backward on the kana character string displayed by the display control means; a dictionary means for storing word reading and word information including the notation of the word in association with each other; A search unit that searches the dictionary unit by a kana character string from a head to a position of the cursor in a kana character string stored in a storage unit; Each time one character is input, the input character is displayed at the position of the cursor, and the cursor is moved forward by one character to activate the search means. To a character to be corrected, and a correction means for correcting a character designated by the cursor, and a second control means for activating the search means each time the cursor is moved forward by one character by the cursor moving means. A character processing device comprising:
【請求項2】前記検索手段による検索結果を格納する格
納手段と、 前記検索手段による新たな検索結果と前記格納手段に格
納済の検索結果とを比較する比較手段と、 該比較手段による比較の結果、前記新たな検索結果と前
記格納済の検索結果とが一致する場合、当該新たな検索
結果の前記格納手段への格納を抑止することを特徴とす
る特許請求の範囲第1項記載の文字処理装置。
2. A storage means for storing a search result by the search means; a comparison means for comparing a new search result by the search means with a search result stored in the storage means; 2. The character according to claim 1, wherein when the new search result matches the stored search result, storing of the new search result in the storage unit is suppressed. Processing equipment.
JP60072676A 1985-04-08 1985-04-08 Character processor Expired - Lifetime JP2572029B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60072676A JP2572029B2 (en) 1985-04-08 1985-04-08 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60072676A JP2572029B2 (en) 1985-04-08 1985-04-08 Character processor

Publications (2)

Publication Number Publication Date
JPS61233861A JPS61233861A (en) 1986-10-18
JP2572029B2 true JP2572029B2 (en) 1997-01-16

Family

ID=13496205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60072676A Expired - Lifetime JP2572029B2 (en) 1985-04-08 1985-04-08 Character processor

Country Status (1)

Country Link
JP (1) JP2572029B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58169617A (en) * 1982-03-31 1983-10-06 Fujitsu Ltd Japanese word input processing system
JPS608922A (en) * 1983-06-29 1985-01-17 Toshiba Corp Japanese language processing device

Also Published As

Publication number Publication date
JPS61233861A (en) 1986-10-18

Similar Documents

Publication Publication Date Title
US4891786A (en) Stroke typing system
US5214583A (en) Machine language translation system which produces consistent translated words
US5270927A (en) Method for conversion of phonetic Chinese to character Chinese
US4505602A (en) Method for encoding ideographic characters
US7010519B2 (en) Method and system for expanding document retrieval information
EP0575192A2 (en) Finite state automaton text search apparatus having two-level memory structure
JP2572029B2 (en) Character processor
GB2229837A (en) Word processing
JP2655729B2 (en) Image processing apparatus and method
US5079702A (en) Phonetic multi-lingual word processor
JPS6172359A (en) Character correction system for close writing kana-to-kanji conversion
JPH0652524B2 (en) Document creation device
JPS6175950A (en) Character correction system for close writing kana-to-kanji conversion
JPH04253262A (en) Reading kana addition system
JP2837006B2 (en) Text compression device
JPS60262263A (en) Information retriever
JPS58169617A (en) Japanese word input processing system
JP3048793B2 (en) Character converter
JPH06251204A (en) Character recognition device
JPS605318A (en) Input device of sentence composed of kana and kanji
JPS59161722A (en) Character processor
JPS60207947A (en) Character string processor
JP3566873B2 (en) Kana-kanji conversion apparatus and method, and storage medium storing kana-kanji conversion program
JPH03168864A (en) Character processor
JPS60251461A (en) "kana"/"kanji" converter

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term