JP2543501C - - Google Patents

Info

Publication number
JP2543501C
JP2543501C JP2543501C JP 2543501 C JP2543501 C JP 2543501C JP 2543501 C JP2543501 C JP 2543501C
Authority
JP
Japan
Prior art keywords
character string
notation
kana
kanji
candidate character
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
Other languages
Japanese (ja)
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Publication date

Links

Description

【発明の詳細な説明】 (産業上の利用分野) この発明はワードプロセッサに関するものである。 (従来の技術) かな漢字変換機能を備えた日本語ワードプロセッサにおいてはキーボードの文
字キーで複数個の文節からなる1つの文章をかな入力で入力した場合、1つの文
章が多数の平仮名の文字データ列(未確定かな文字列)で記憶され、その未確定
かな文字列が表示器に表示される。そして、その未確定かな文字列を漢字交換す
べくキーボードに設けられた漢字変換キーを操作すると、その未確定かな文字列
が漢字変換され、漢字変換された文字列が候補文字列として表示器に表示される
ようになっている。又、他の候補文字列が存在する場合、表示された候補文字列
はキーボード上に設けられた次候補キーの操作により他の候補文字列に変更でき
るようになっている。 (発明が解決しようとする問題点) 従来の日本語ワードプロセッサにおいてはかな文字列を入力した後にそのかな
文字列を漢字変換したとき、入力した文字列がひらがな表記と漢字表記とのいず
れも一般的に使用されている場合でも漢字変換がされてしまい、後でひらがな表
記を選択しようとしても、ひらがな表記に変更することはできなかった。そして
、そのような場合には、かな文字列を区切ながら入力してひらがな表記したい区
切りで無変換キーを操作したり、全候補文字列を一旦確定させてから所望の部分
の漢字を削除してそこにひらがなを再入力したりしなければならず、いずれの場
合もその操作は非常に面倒であった。 (目的) この発明の目的は前記問題点を解決し、入力された文字列にかな表記及び漢字
表記のいずれもがある場合に、変更キーが操作された時、いずれかの表記が優先
的に選択され、この選択された表記が所望の表記でない場合には残りの表記を選
択させ、最終的に選択された表記を次回の変換のときにも優先的に選択すること
ができ、漢字変換処理の操作を容易に行うことができるワードプロセッサを提供
することにある。 (問題点を解決するための手段) 前記目的を達成するために、この発明のワードプロセッサは、かな文字を入力
するための入力手段と、その入力手段により入力されるかな文字を未確定かな文
字列として順次記憶する第1の記憶手段と、多数の候補文字列の各々に関する情 報として、読みを表すかな文字列データと、漢字表記データと、かなと漢字の両
表記が一般的に使用されるか否かを示す表記情報と、かなと漢字の両表記が一般
的にされる場合においてかな表記と漢字表記のいずれを優先するかを示す優先情
報とを記憶する第2の記憶手段と、前記第1の記憶手段内の変換対象となる未確
定かな文字列の読みと一致するかな文字列データに対応する候補文字列を前記第
2の記憶手段において検索し、前記表記情報に基づいてかなと漢字の両表記が一
般的に使用されない場合には、前記未確定かな文字列を漢字表記の候補文字列に
変換し、かなと漢字の両表記が一般的に使用される場合には、前記未確定かな文
字列を前記優先情報に従った一方の表記形態で表記される優先候補文字列に変換
する変換制御手段と、その変換制御手段によって変換された優先候補文字列を前
記両表記の他方の表記形態に変更する変更手段と、前記優先候補文字列を確定文
字列として確定する確定手段と、その確定手段により確定された確定文字列に対
応する候補文字列の前記優先情報を確定時の表記に従って書替える書替制御手段
とを備えている。 (作用) 上記の構成を有するこの発明のワードプロ−セッサにおいては、入力手段にて
かな文字を入力すると、第1の記憶手段はその入力手段により入力されるかな文
字を未確定かな文字列として順次記憶する。そして、変換制御手段は、前記第1
の記憶手段内の変換対象となる未確定かな文字列未確定かな文字列の読みと一致
するかな文字列データに対応する候補文字列を第2の記憶手段において検索し、
かなと漢字の両表記が一般的に使用されるか否かを示す表記情報に基づいて、か
なと漢字の両表記が一般的に使用されない場合には、前記未確定かな文字列を漢
字表記の候補文字列に変換し、かなと漢字の両表記が一般的に使用される場合に
は、前記未確定かな文字列を優先情報に従って一方の表記形態で表記される優先
候補文字列を変換する。また、変更手段は、変換制御手段によって変換された優
先候補文字列を両表記の他方の表記形態に変更する。操作者が前記優先候補文字
列あるいは変更手段により変更された優先候補文字列を確定文字列として選択す
べく確定手段を操作すると、優先候補文字列は確定文字列として確定する。する
と、書替制御手段はその確定手段により確定された確定文字列に対応する候補文 字列の優先情報を確定時の表記に従って書替える。 (実施例) 以下、この発明を日本語ワードプロセッサに具体化した一実施例を第1図〜第
5図に従って説明する。 第2図において、ワードプロセッサ1の本体ケース2の前側部には入力手段と
してのキーボード3が設けられ、後側部にはプリンタ4が設けられている。キー
ボード3には40桁を一行とする複数行を備える液晶表示器5が設けられている
。キーボード3上には各種操作キーが配置されていて、アルファベット及びひら
がなの各文字及び数字等を入力する文字キー6、漢字変換キー7、変更手段とし
ての次候補キー8、確定手段としての実行キー10、カーソル移動キー11等他
の各種キーが配設されている。 漢字変換キー7は入力されたかな文字列を漢字混じりの候補文字列に変換した
いときに操作され、次候補キー8は漢字変換を行ったときに変換された漢字混じ
りの候補文字列を他の候補文字列に替えたいときに使用される。又、実行キー1
0は操作者が選択した候補文字列を確定文字列にしたいとき使用されると共に、
文書の改行指令信号を出力する等他の処理を実行するためにも操作される。カー
ソル移動キー11は前記液晶表示器5の表示画面に表示されるカーソルを移動す
るとき使用される。 次に、このワードプロセッサ1の電気的構成を第1図に示す電気ブロック回路
図にて説明する。 本体ケース2に内蔵された変換制御手段、書替制御手段としての中央処理装置
(以下、CPUという)13には読出し専用のメモリ(ROM)14、及び読出
し及び書替可能なメモリ(RAM)よりなる作業用メモリ15が接続されている
。作業用メモリ15は文字キー6にて入力されてくる文字コードデータを一時記
憶する第1の記憶手段としての入力バッファ部15aと、候補文字列を一時記憶
する第2の記憶手段としての学習メモリ15b等を備えている。C PU13は
キーボードドライブ16を介して前記キーボード3に接続され、表示コントロー
ラ17を介して前記液晶表示器5に接続され、印字ドライバ18を介して前記プ
リンタ4に接続されると共にコードテーブル20が接続されている。又、CPU
1 3は漢字辞書メモリ19、文書メモリ21等の各種メモリと接続されている。 ROM14にはこのワードプロセッサを各種動作させるための日本語ワードプ
ロセッサ制御プログラム、キーボード制御プログラム、プリンタ制御プログラム
、液晶表示器制御プログラム等、各種の制御プログラムが記憶されたプログラム
メモリ22とキャラクタジェネレータ23とを備えている。そして、CPU13
はこの各種制御プログラムに従って動作するようになっている。キャラクタジェ
ネレータ23は各書体毎のドットマトリックスで表示或いは印字される文字や記
号等の文字パターンデータが記憶されている。 前記漢字辞書メモリ19にはかな漢字変換に必要な各種の漢字のデータが記憶
され、漢字変換時に適宜選択して読み出される。即ち、漢字辞書メモリ19には
第4図に示すように1つの読み25を表わす文字列データ、その文字列データに
対応する漢字表記データ26、文法情報27、ひらがなと漢字の両表記が一般的
に使用されるか否かの表記情報28及び両表記が一般的に使用される場合にはか
な表記・漢字表記のいずれかの表記を優先的に表記させるかの優先情報29等が
格納されている。 さらに、コードテーブル20には各文字や記号に対応するコードが記憶されて
いて、前記文字キー等の入力操作時にこのコードテーブル20に従って信号がコ
ード化される。又、文書メモリ21は前記キーボード3の文字キー6等を操作者
が操作して入力した文字データが入力バッファ部15aに記憶され、この文字デ
ータを保存するとき等に転送されて記憶するようになっている。 次に、上記のように構成したワードプロセッサ1の作用を第3図のフローチャ
ートに従って説明する。 電源が投入されると、ステップS1(以下、単に「S1」と略し、他も同様と
する)において、所定の初期設定がなされた後、S2において所謂キースキャン
状態となり、CPU13はキー入力がなされるのを待つ。 操作者がキーボード3上のいずれかのキーを操作すると、S2の判定がYES
となり、CPU13はキーボード制御プログラムに基づいて操作されたキーが何
であるかをS3,S 6、S16及びS20で判定する。 文字キー6等の文書入力に関するキーが操作されると、S3の判定がYESと なりCPU13はS4で入力された文字データを作業用メモリ15の入力バッフ
ァ部15aに順次記憶させると共に、液晶表示器制御プログラムに基づいてS5
で入力バッファ部15aに記憶されたデータに従って液晶表示器5に文書を表示
する。尚、かな漢字変換される前のかな文字列(以下、未確定かな文字列という
)は反転表示される。その後、プログラムは再びS2に戻る。 漢字変換キー7が操作された場合には、漢字変換キー7から入力される漢字変
換指令信号に基づいてCPU13はS 3での判定をNO、S6での判定をYE
Sとし、CPU13はS7において入力バッファ部15aに未確定かな文字列が
あるか無いかを判定し、無い場合にはS15でブザーを鳴らす等のエラー処理を
行ってからS2に戻る。一方、未確定かな文字列がある場合にはCPU13がS
7でYESと判定し、カーソルアドレスに基づいて変換対象となる未確定かな文
字列を読出し、S8において学習メモリ15bに該当する読みの候補文字列を検
索し、S9において学習メモリ15bに該当する候補文字列があったか無かった
かを判定する。最初は学習メモリ15bには読出すべき候補文字列が何も記憶さ
れていないため、S10に移行に、漢字辞書メモリ19を参照して対応する読み
25に対応する候補文字列を検索する。次にS11においてCPU13は検索し
た候補文字列に対応する各種データのうち表記情報28に基づいてかな表記・漢
字表記の両表記を有しているか否かを判定する。両表記があるとCPU13が判
定すると、次にCPU13はS12で優先情報29に基づいて漢字表記が優先か
否かを判定し、YESの場合にはCPU13はS13で漢字表記データ26に基
づいて漢字表記にてその候補文字列を液晶表示器5に表示してS2で次のキー入
力を待つ。 S11でCPU13がNOと判定したとき、CPU13は漢字表記データ26
があるときはS13で漢字表記にて候補文字列を液晶表示器5に表示し、無いと
きはS14でひらがな表記にて候補文字列を表示してS2で次のキー入力を待つ
。又、S12でCPU13がNOと判定したときにはS14で入力バッファ1
5aに記憶されている変換対象となった未確定かな文字列の文字コードに基づい
てひらがな表記にて候補文字列を液晶表示器5に表示してS2で次のキー入力で
待つ。すなわち、S14では反転表示されていた未確定かな文字列が通常表示さ
れ、 そのひらがな候補文字列として検索されたことになる。 次に前記のように液晶表示器5に表示された候補表記が所望の表記でない場合
には次候補キー8を操作する。すると、CPU13はその次候補キー8の操作に
より入力した再変換指令信号に基づいてS2でYES,S3,S6でNOで判定
をし、S16でYESの判定をする。そして、次にCPU13は現在液晶表示器
5に表示している候補文字列がかな表記・漢字表記の両表記を有しているか否か
をその読みに対応した表記情報28に基づいて判定する。 CPU13がS17でYESの判定をすると、CPU13はS18で現在液晶
表示器5に表示している候補文字列の優先情報29に基づいてその残りの他の表
記を液晶表示器5に表示してS2に戻る。又、CPU13がS17でNOの判定
をすると、CPU13はS19で現在液晶表示器5に表示している候補文字列を
除いて、S8に移行し、次の新たな候補文字列を学習メモリ15bにおいて検索
し、無ければS10で漢字辞書メモリ19から検索する。 次に前記のように液晶表示器5に表示された候補表記が所望の表記である場合
には実行キー10を操作する。すると、CPU13はその実行キー10の操作に
より入力した信号に基づいてS2でYES、S3,S6,S16でNOの判定を
し、S20でYESの判定をする。このYESの判定をすると、CPU13はS
21で現在液晶表示器5に表示している候補文字列を確定文字列として表示し、
その候補文字列の優先情報29をこの確定時の表記を優先するような情報に書替
えて、読みデータ25、漢字表記データ26、文法情報27、表記情報28等と
ともに学習メモリ15bに転送してS2に戻る。 このようにS2に戻って、順次文書を作成し、液晶表示器5に表示される未確
定かな文字列を確定文字列として表示させると、学習メモリ15bには今までに
漢字変換処理された未確定文字列に対応する読みを表わす文字列データ、その文
字列データに対応する漢字表記データ26、文法情報27、ひらがなと漢字の両
表記があるか無いかの表記情報28及び両表記がある場合にはかな表記・漢字表
記のうちの確定時の表記を優先的に表記させるような情報に書替えられた優先情
報29が格納され、このワードプロセッサ1は学習をすることになる。 このワードプロセッサ1が学習した場合には、以前に入力した未確定かな文字 列と同じ未確定かな文字列を入力し、この未確定かな文字列を漢字変換すべく漢
字変換キー7を操作したとき、S2でYES、S3でNO、S6及びS7でYE
Sとなるが、以前に入力した未確定かな文字列の読みに対応する候補文字列の文
字列データが学習メモリ15bに記憶されているため、S8で対応する候補文字
列が検索され、S9におけるCPU13の判定はYESとなる。続いて、CPU
13はS11でその読みに対応する表記情報28に基づいてかな表記・漢字表記
の両表記があるか否かを判定し、その判定結果に基づいてS12又はS13又は
S14のいずれかに移行する。 文字キー6、漢字変換キー7、次候補キー8、実行キー10以外のキーが操作
されると、S3、S6、S16及びS20の判定がすべてNOとなり、CPU1
3はS22において各キーに応じた前述の処理を行い、その後S2でキー入力を
待つ。 次に、具体例を説明をする。 電源がオン操作されて、初期設定がなされ、文字を入力している場合、S2〜
S5を経て今「あいにく」の未確定かな文字列が入力されたとすると、液晶表示
器5に「あいにく」が表示される。そして、この未確定かな文字列にカーソルを
位置した状態で、漢字変換キー7を操作すると、漢字変換キー7からの漢字変換
指令信号に基づいてCPU13はS6、S7でYESと判定し、S9でNOと判
定する。 そして、CPU13はS10で候補文字列を漢字辞書メモリ19から検索して
S11で両表記があるか否かをその検索した候補文字列に対応する表記情報28
から判定する。読み「あいにく」に対応する表記情報28は両表記有りのデータ
となっているため、S11ではCPU13はYESと判定し、続いてS12でC
PU13は優先情報29に基づいて判定する。この優先情報29は漢字辞書メモ
リ19内でひらがな優先のデータとなっているため、CPU13はNOと判定し
、S14でかな表記の「あいにく」を液晶表示器5にそのまま表示し、S2にで
次のキー入力を待つ。 表示された表記が操作者の希望する表記でない場合には操作者は次候補キー8
を操作する。すると、次候補キー8からの再変換指令信号に基づいてCPU13 はS2でYES、S3,S6でNO、S16でYESの判定をする。そして、次
にS17を経てCPU13はS18で現在液晶表示器5に表示している候補文字
列の他の表記、即ち、漢字表記「生憎」を液晶表示器5に表示してS2に戻る。 そして、次に実行キー10が操作されると、CPU13はその実行キー10の
操作により入力した信号に基づいてS2でYES、S3,S6,S16でNOの
判定をし、S20でYESの判定をする。このYESの判定をすると、CPU1
3はS21で現在液晶表示器5に表示している候補文字列を確定文字列として表
示し、第5図に示すように、優先情報29を漢字表記を優先するような情報に書
替えて読み「あいにく」に対応する各種データを学習メモリ15bに転送し、S
2に戻る。 このようにして、一旦読み「あいにく」に対応するかな文字列データ等が学習
メモリ15に記憶され、その後「あいにく」の読みが入力されると、その「あい
にく」の漢字変換時にはS8でCPU13はYESと判定し、以下、S11〜S
13に移行して漢字表記の「生憎」を表示することになる。 なお、この発明は前記実施例に限定されるものではなく、この発明の趣旨から
逸脱しない範囲で任意に変更することも可能である。 (発明の効果) 以上詳述したように、この発明のワードプロセッサによれば、入力された文字
列にかな表記及び漢字表記のいずれもが一般的に使用される場合に、変換キーが
操作された時、いずれかの表記が優先的に選択され、この選択された表記が所望
の表記でない場合には残りの表記を選択させ、最終的に選択された表記を次回の
変換のときにも優先的に選択することができ、漢字変換処理の操作を容易に行う
ことができる優れた効果を奏する。また、入力された文字列に漢字表記のみが一
般的に使用される場合には、変換キーが操作された時に、候補文字列としてかな
表記が選択されることはなく、漢字表記のみが候補文字列として選択されるので
、漢字表記のみが一般的に使用される文字列については、その漢字変換処理の操
作を従来同様に容易かつ迅速に行うことができる優れた効果をも奏する。
Description: TECHNICAL FIELD The present invention relates to a word processor. (Prior Art) In a Japanese word processor having a kana-kanji conversion function, when one sentence composed of a plurality of phrases is input by a kana input using a character key of a keyboard, one sentence is converted into a character data string of many hiragana characters ( (Undetermined kana character string), and the undetermined kana character string is displayed on the display. When the kanji conversion key provided on the keyboard is operated to exchange the unconfirmed kana character string, the unconfirmed kana character string is converted to kanji, and the kanji converted character string is displayed on the display as a candidate character string. It is displayed. When another candidate character string exists, the displayed candidate character string can be changed to another candidate character string by operating a next candidate key provided on the keyboard. (Problems to be Solved by the Invention) In a conventional Japanese word processor, when a kana character string is input and then the kana character string is converted to kanji, the input character string is generally written in both hiragana and kanji. Even if it was used, it was converted to kanji, and it was not possible to change to hiragana notation even if it tried to select hiragana notation later. Then, in such a case, input while separating the kana character string and operate the no-conversion key at the delimiter you want to write in hiragana, or once confirm all candidate character strings, delete the kanji of the desired part Hiragana had to be re-entered there, and in each case the operation was very troublesome. (Purpose) The purpose of the present invention is to solve the above-mentioned problem, and when there are both Kana notation and Kanji notation in an input character string, when a change key is operated, either notation is given priority. If the selected notation is not the desired notation, the remaining notation can be selected, and the finally selected notation can be preferentially selected also in the next conversion. It is an object of the present invention to provide a word processor that can easily perform the above operation. (Means for Solving the Problems) In order to achieve the above object, a word processor according to the present invention comprises: input means for inputting a kana character; and a character string for determining a kana character input by the input means. And first information storage means for sequentially storing kana character string data representing readings, kanji notation data, and both kana and kanji as information on each of a large number of candidate character strings.
Notation information indicating whether the notation is generally used and both kana and kanji notation
A second storage unit for storing priority information indicating which one of the kana notation and the kanji notation is prioritized in a case where the kana notation and the kanji notation are stored in the first storage unit. A candidate character string corresponding to the kana character string data that matches the reading is searched in the second storage means, and based on the notation information, both kana and kanji notations are matched.
When not commonly used, the undetermined kana character string is used as a candidate character string for Kanji notation.
Conversion control, when both Kana and Kanji notation are generally used, conversion control for converting the undetermined kana character string into a priority candidate character string written in one notation form according to the priority information Means, changing means for changing the priority candidate character string converted by the conversion control means to the other notation form of the two notations, fixing means for fixing the priority candidate character string as a fixed character string, and the fixing means And rewriting control means for rewriting the priority information of the candidate character string corresponding to the determined character string determined according to the notation at the time of the determination. (Operation) In the word processor of the present invention having the above configuration, when a kana character is inputted by the input means, the first storage means sets the kana character inputted by the input means as an undetermined kana character string. Store them sequentially. Then, the conversion control means includes the first
Searching in the second storage means for a candidate character string corresponding to the kana character string data that matches the reading of the undetermined kana character string to be converted in the storage means of
Based on the notation information indicating whether both kana and kanji notations are commonly used,
If both the kanji and kanji are not generally used, the undetermined kana character string is
Converted to a character string candidate character string, and if both kana and kanji notation are commonly used
Converts the priority candidate character strings, denoted by one of the representation form in accordance with the priority information the undetermined kana string. The changing means changes the priority candidate character string converted by the conversion control means to the other notation form of both notations. When the operator operates the deciding means to select the priority candidate character string or the priority candidate character string changed by the changing means as a confirmed character string, the priority candidate character string is decided as a decided character string. Then, the rewriting control means rewrites the priority information of the candidate character string corresponding to the determined character string determined by the determining means according to the notation at the time of determination. (Embodiment) An embodiment in which the present invention is embodied in a Japanese word processor will be described below with reference to FIGS. In FIG. 2, a keyboard 3 as input means is provided on a front side of a main body case 2 of the word processor 1, and a printer 4 is provided on a rear side. The keyboard 3 is provided with a liquid crystal display 5 having a plurality of lines each having 40 columns. Various operation keys are arranged on the keyboard 3, character keys 6 for inputting characters and numbers of alphabets and hiragana, kanji conversion keys 7, next candidate keys 8 as changing means, execution keys as fixing means 10 and other various keys such as a cursor movement key 11 are provided. The kanji conversion key 7 is operated when the input kana character string is to be converted to a candidate character string mixed with kanji, and the next candidate key 8 is used to convert the candidate character string mixed with kanji converted when performing kanji conversion. Used to change to a candidate character string. Execute key 1
0 is used when the operator wants to make the candidate character string selected by the operator a confirmed character string,
It is also operated to execute other processing such as outputting a line feed command signal of a document. The cursor movement key 11 is used to move a cursor displayed on the display screen of the liquid crystal display 5. Next, an electric configuration of the word processor 1 will be described with reference to an electric block circuit diagram shown in FIG. A central processing unit (hereinafter referred to as CPU) 13 as conversion control means and rewrite control means built in the main body case 2 includes a read-only memory (ROM) 14 and a readable and rewritable memory (RAM). Working memory 15 is connected. The work memory 15 includes an input buffer unit 15a as a first storage unit for temporarily storing character code data input by the character key 6, and a learning memory as a second storage unit for temporarily storing a candidate character string. 15b and the like. The CPU 13 is connected to the keyboard 3 via a keyboard drive 16, connected to the liquid crystal display 5 via a display controller 17, connected to the printer 4 via a print driver 18, and connected to the code table 20. Have been. Also, CPU
Reference numeral 13 is connected to various memories such as the kanji dictionary memory 19 and the document memory 21. The ROM 14 includes a program memory 22 and a character generator 23 in which various control programs such as a Japanese word processor control program, a keyboard control program, a printer control program, a liquid crystal display control program, and the like for causing the word processor to operate variously are stored. ing. And the CPU 13
Operate according to the various control programs. The character generator 23 stores character pattern data such as characters and symbols displayed or printed in a dot matrix for each typeface. The kanji dictionary memory 19 stores various kanji data required for kana-kanji conversion, and is appropriately selected and read at the time of kanji conversion. That is, the kanji dictionary memory 19 generally stores character string data representing one reading 25, kanji notation data 26 corresponding to the character string data, grammar information 27, and both hiragana and kanji notation as shown in FIG. And notation information 28 indicating whether or not the notation is used in general, and priority information 29 indicating whether the notation of either the kana notation or the kanji notation is preferentially indicated when both notations are generally used is stored. I have. Further, codes corresponding to each character or symbol are stored in the code table 20, and signals are coded according to the code table 20 at the time of the input operation of the character key or the like. The document memory 21 stores character data input by an operator operating the character keys 6 and the like of the keyboard 3 in the input buffer unit 15a, and transfers and stores the character data when storing the character data. Has become. Next, the operation of the word processor 1 configured as described above will be described with reference to the flowchart of FIG. When the power is turned on, in step S1 (hereinafter simply abbreviated as "S1", the same applies to other cases), predetermined initial settings are made, and a so-called key scan state is set in S2, and the CPU 13 performs key input. Wait for it. If the operator operates any key on the keyboard 3, the determination in S2 is YES
The CPU 13 determines in S3, S6, S16, and S20 what key is operated based on the keyboard control program. When a key related to document input such as the character key 6 is operated, the determination in S3 is YES, and the CPU 13 sequentially stores the character data input in S4 in the input buffer unit 15a of the working memory 15, and controls the liquid crystal display. S5 based on the program
To display a document on the liquid crystal display 5 in accordance with the data stored in the input buffer unit 15a. The kana character string before the kana-kanji conversion (hereinafter referred to as an undetermined kana character string) is highlighted. Thereafter, the program returns to S2 again. When the kanji conversion key 7 is operated, the CPU 13 determines NO in S3 and YE in S6 based on the kanji conversion command signal input from the kanji conversion key 7.
In S7, the CPU 13 determines in S7 whether there is an undetermined character string in the input buffer unit 15a, and if not, performs error processing such as sounding a buzzer in S15, and then returns to S2. On the other hand, if there is an undetermined kana character string,
7 is determined as YES, an undetermined kana character string to be converted is read based on the cursor address, a candidate character string for reading corresponding to the learning memory 15b is searched in S8, and a candidate character string corresponding to the learning memory 15b is searched in S9. Determines whether a character string was present or absent. At first, since no candidate character string to be read is stored in the learning memory 15b, the process proceeds to S10, in which the Kanji dictionary memory 19 is searched for a candidate character string corresponding to the corresponding reading 25. Next, in S11, the CPU 13 determines whether or not the various data corresponding to the searched candidate character string has both the Kana notation and the Kanji notation based on the notation information 28. When the CPU 13 determines that both notations are present, the CPU 13 next determines in S12 whether or not the kanji notation is prioritized based on the priority information 29. If YES, the CPU 13 determines in S13 the kanji notation data based on the kanji notation data 26. The candidate character string is displayed on the liquid crystal display 5 in the notation, and the next key input is waited in S2. When the CPU 13 determines NO in S11, the CPU 13
If there is, the candidate character string is displayed on the liquid crystal display 5 in Kanji notation in S13, and if not, the candidate character string is displayed in Hiragana notation in S14 and the next key input is awaited in S2. When the CPU 13 determines NO in S12, the input buffer 1 is determined in S14.
The candidate character string is displayed on the liquid crystal display 5 in hiragana notation based on the character code of the undetermined kana character string to be converted stored in 5a, and waits for the next key input in S2. That is, in S14, the undetermined kana character string that has been highlighted is normally displayed, and the character string has been searched for as a hiragana candidate character string. Next, as described above, when the candidate notation displayed on the liquid crystal display 5 is not the desired notation, the next candidate key 8 is operated. Then, the CPU 13 determines YES in S2, NO in S3 and S6 based on the re-conversion command signal input by operating the next candidate key 8, and determines YES in S16. Then, the CPU 13 determines whether or not the candidate character string currently displayed on the liquid crystal display 5 has both Kana notation and Kanji notation based on the notation information 28 corresponding to the reading. If the CPU 13 determines YES in S17, the CPU 13 displays the remaining other notations on the liquid crystal display 5 based on the priority information 29 of the candidate character string currently displayed on the liquid crystal display 5 in S18, and proceeds to S2. Return to If the CPU 13 determines NO in S17, the CPU 13 removes the candidate character string currently displayed on the liquid crystal display 5 in S19 and proceeds to S8 to store the next new candidate character string in the learning memory 15b. If not, a search is made from the kanji dictionary memory 19 in S10. Next, when the candidate notation displayed on the liquid crystal display 5 is the desired notation as described above, the execution key 10 is operated. Then, the CPU 13 determines YES in S2, NO in S3, S6, and S16 based on the signal input by operating the execution key 10, and determines YES in S20. When the determination is YES, the CPU 13 proceeds to S
At 21, the candidate character string currently displayed on the liquid crystal display 5 is displayed as a fixed character string,
The priority information 29 of the candidate character string is rewritten to information that gives priority to the notation at the time of finalization, and is transferred to the learning memory 15b together with the reading data 25, the kanji notation data 26, the grammar information 27, the notation information 28, etc. Return to As described above, the process returns to S2, where documents are sequentially created and the unconfirmed kana character string displayed on the liquid crystal display 5 is displayed as a confirmed character string. When there is character string data representing the reading corresponding to the determined character string, kanji notation data 26 corresponding to the character string data, grammar information 27, notation information 28 indicating whether or not there is both hiragana and kanji, and both notations Priority information 29 is stored which is rewritten with information that gives priority to the notation at the time of determination among the kana and kanji notations, and the word processor 1 learns. When the word processor 1 learns, when the same undetermined kana character string as previously input is input and the kanji conversion key 7 is operated to convert the undetermined kana character string to kanji, YES in S2, NO in S3, YE in S6 and S7
Since the character string data of the candidate character string corresponding to the reading of the previously undetermined kana character string is stored in the learning memory 15b, the corresponding candidate character string is searched in S8, and the process proceeds to S9. The determination of the CPU 13 is YES. Then, CPU
In step S11, it is determined in step S11 whether there is a kana notation or a kanji notation based on the notation information 28 corresponding to the reading, and the process proceeds to step S12, S13, or S14 based on the determination result. When keys other than the character key 6, the kanji conversion key 7, the next candidate key 8, and the execution key 10 are operated, the determinations of S3, S6, S16 and S20 are all NO, and the CPU 1
3 performs the above-described processing corresponding to each key in S22, and then waits for key input in S2. Next, a specific example will be described. If the power is turned on, initial settings are made, and characters are being input, S2
Assuming that an undetermined kana character string of “Unfortunately” has been input via S5, “Unfortunately” is displayed on the liquid crystal display 5. Then, when the kanji conversion key 7 is operated with the cursor positioned at this undetermined kana character string, the CPU 13 determines YES in S6 and S7 based on the kanji conversion command signal from the kanji conversion key 7, and in S9 It is determined as NO. Then, the CPU 13 searches the candidate character strings from the kanji dictionary memory 19 in S10, and determines whether or not both notations are present in S11 in the notation information 28 corresponding to the searched candidate character strings.
Is determined from Since the notation information 28 corresponding to the reading “unfortunately” is data with both notations, the CPU 13 determines YES in S11, and then determines C in S12.
The PU 13 makes a determination based on the priority information 29. Since this priority information 29 is the hiragana priority data in the kanji dictionary memory 19, the CPU 13 determines NO, and displays the kana notation "aiiniku" on the liquid crystal display 5 as it is in S14, and the next in S2. Wait for key input. If the displayed notation is not the one desired by the operator, the operator selects the next candidate key 8
Operate. Then, based on the re-conversion command signal from the next candidate key 8, the CPU 13 determines YES in S2, NO in S3, S6, and YES in S16. Then, after S17, the CPU 13 displays another notation of the candidate character string currently displayed on the liquid crystal display 5 in S18, that is, the kanji notation "unhappy" on the liquid crystal display 5, and returns to S2. Then, when the execution key 10 is operated next, the CPU 13 determines YES in S2, NO in S3, S6, and S16 based on the signal input by operating the execution key 10, and determines YES in S20. I do. When the determination of YES is made, the CPU 1
In step S21, the candidate character string currently displayed on the liquid crystal display 5 is displayed as a fixed character string in step S21. As shown in FIG. 5, the priority information 29 is rewritten to information giving priority to the kanji notation and read. Transfers various data corresponding to "Unfortunately" to the learning memory 15b,
Return to 2. In this way, the kana character string data and the like corresponding to the reading "Ainiku" are once stored in the learning memory 15, and then when the reading of the "Ainiku" is input, the CPU 13 in S8 at the time of converting the Kanji character of the "Ainiku" It is determined as YES, and the following S11 to S
Then, the processing shifts to 13 to display the word "unhappy" in Chinese characters. Note that the present invention is not limited to the above-described embodiment, and can be arbitrarily changed without departing from the spirit of the present invention. (Effects of the Invention) As described above in detail, according to the word processor of the present invention, the conversion key is operated when both the Kana notation and the Kanji notation are generally used in the input character string. When one of the notations is preferentially selected, if the selected notation is not the desired notation, the remaining notations are selected, and the finally selected notation is prioritized in the next conversion. This provides an excellent effect that the operation of the kanji conversion process can be easily performed. Also, only kanji notation is included in the input character string.
In general use, when a conversion key is operated,
Notation is not selected, only kanji notation is selected as a candidate character string,
For character strings in which only kanji notation is generally used,
It also has an excellent effect that the operation can be performed easily and quickly as before.

【図面の簡単な説明】 第1図はこの発明を具体化した一実施例の電気ブロック回路図、第2図は同じ く日本語ワードプロセッサの平面図、第3図はフローチャート、第4図は漢字辞
書メモリに記憶されているデータの内容を示す説明図、第5図は学習メモリに記
憶された優先情報が書替えられたときのデータの内容を示す説明図である。 1はワードプロセッサ、3はキーボード、4はプリンタ、5は液晶表示器、6
は文字キー、7は漢字変換キー、8は次候補キー、10は実行キー、13はCP
U、15は作業用メモリ、15aは入力バッファ部、15bは学習メモリ、19
は漢字辞書メモリ、26は漢字表記データ、27は文法情報、28は表記情報、
29は優先情報である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an electric block diagram of an embodiment of the present invention, FIG. 2 is a plan view of a Japanese word processor, FIG. 3 is a flowchart, and FIG. FIG. 5 is an explanatory diagram showing the contents of the data stored in the memory, and FIG. 5 is an explanatory diagram showing the contents of the data when the priority information stored in the learning memory is rewritten. 1 is a word processor, 3 is a keyboard, 4 is a printer, 5 is a liquid crystal display, 6
Is a character key, 7 is a kanji conversion key, 8 is a next candidate key, 10 is an execution key, and 13 is a CP.
U and 15 are working memories, 15a is an input buffer unit, 15b is a learning memory, 19
Is a kanji dictionary memory, 26 is kanji notation data, 27 is grammar information, 28 is notation information,
29 is priority information.

Claims (1)

【特許請求の範囲】 1.かな文字を入力するための入力手段と、 その入力手段により入力されるかな文字を未確定かな文字列として順次記憶す
る第1の記憶手段と、 多数の候補文字列の各々に関する情報として、読みを表すかな文字列データと
、漢字表記データと、かなと漢字の両表記が一般的に使用されるか否かを示す表
記情報と、かなと漢字の両表記が一般的にされる場合においてかな表記と漢字表
記のいずれを優先するかを示す優先情報とを記憶する第2の記憶手段と、 前記第1の記憶手段内の変換対象となる未確定かな文字列の読みと一致するか
な文字列データに対応する候補文字列を前記第2の記憶手段において検索し、
記表記情報に基づいてかなと漢字の両表記が一般的に使用されない場合には、前
記未確定かな文字列を漢字表記の候補文字列に変換し、かなと漢字の両表記が一
般的に使用される場合には、前記未確定かな文字列を前記優先情報に従った一方
の表記形態で表記される優先候補文字列に変換する変換制御手段と、 その変換制御手段によって変換された優先候補文字列を前記両表記の他方の表
記形態に変更する変更手段と、 前記優先候補文字列を確定文字列として確定する確定手段と、 その確定手段により確定された確定文字列に対応する候補文字列の前記優先情
報を確定時の表記に従って書替える書替制御手段と を備えることを特徴とするワードプロセッサ。
[Claims] 1. Input means for inputting kana characters, first storage means for sequentially storing kana characters input by the input means as undetermined kana character strings, and reading as information on each of a large number of candidate character strings. A table showing whether kana character string data, kanji notation data, and both kana and kanji notations are commonly used
Kana notation and Kanji table when both Kana and Kanji notation are commonly used
Second storage means for storing priority information indicating which of the above is given priority, and corresponding to kana character string data matching the reading of the undetermined kana character string to be converted in the first storage means. the candidate character string to be searched in said second storage means, before
If both kana and kanji are not generally used based on the spelling information,
Converts undetermined kana character strings to candidate character strings in kanji notation, and both kana and kanji notation
When commonly used , the conversion control means for converting the undetermined kana character string into a priority candidate character string represented in one notation form according to the priority information; Changing means for changing the priority candidate character string to the other notation form of the two notations, determining means for determining the priority candidate character string as a determined character string, and corresponding to the determined character string determined by the determining means. Rewriting control means for rewriting the priority information of the candidate character string in accordance with the notation at the time of finalization.

Family

ID=

Similar Documents

Publication Publication Date Title
JPH07114568A (en) Data retrieval device
JPH0330177B2 (en)
JP2543501C (en)
JP2543501B2 (en) Word processor
JPS61250768A (en) Device for updating conversion dictionary
JP3042284B2 (en) Japanese input device
JP2575650B2 (en) Kana-Kanji conversion device
JP2944666B2 (en) Character processor
JP2833650B2 (en) Document processing device
JP2761606B2 (en) Document data processing device
JPH0640325B2 (en) Writing device
JP2001134564A (en) Electronic dictionary
JP2001265765A (en) Electronic dictionary
JPH0721189A (en) Translation assisting system
JP3042437B2 (en) How to display conversion candidates for reading input character strings
JPS61250769A (en) System for registering dictionary information
JPH0422653A (en) Printer
JPS62266652A (en) Word processor
JPS6263366A (en) Searching system for unwritten part in word processor
JPS61194560A (en) Character processor
JPH0458363A (en) Word processor
JPS62266663A (en) Kana/kanji converting device
JPS63257862A (en) Character processor
JPS6278673A (en) Kana/kanji (chinese character) converter
JPH08292953A (en) Document processor