JP2870524B2 - Character conversion processor - Google Patents

Character conversion processor

Info

Publication number
JP2870524B2
JP2870524B2 JP9219739A JP21973997A JP2870524B2 JP 2870524 B2 JP2870524 B2 JP 2870524B2 JP 9219739 A JP9219739 A JP 9219739A JP 21973997 A JP21973997 A JP 21973997A JP 2870524 B2 JP2870524 B2 JP 2870524B2
Authority
JP
Japan
Prior art keywords
conversion
character
character string
candidate
input
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
JP9219739A
Other languages
Japanese (ja)
Other versions
JPH10124507A (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.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP9219739A priority Critical patent/JP2870524B2/en
Publication of JPH10124507A publication Critical patent/JPH10124507A/en
Application granted granted Critical
Publication of JP2870524B2 publication Critical patent/JP2870524B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】この発明は、入力された文字列を
変換して表示する文字変換処理装置に関する。 【0002】 【従来の技術】従来の文字入力装置で各種文字列を入力
する場合、入力対象となる文字の文字種に応じて、各種
入力モードを切換えて入力していた。即ち、仮名混じり
漢字文字列の入力には仮名モードを選択して仮名漢字変
換処理を行ない、カタカナ文字列ではカタカナモードを
選択して入力を行い、英文字などの外国文字では英数モ
ードを選択して文字入力をしていた。 【0003】 【発明が解決しようとする課題】そのため、従来の文字
入力にあっては、対象となる文字列が仮名文字種である
のか、カタカナ文字種であるのか、英文字種であるの
か、を常に意識しながらモード切換操作を行なう必要が
あり、入力作業が煩雑となってスムースに行なえない、
という問題があった。また従来にあっては、仮名モード
で入力した平仮名文字をカタカナ文字に変換する機能を
有したもののもあるが、この場合は、通常の仮名漢字変
換キーの他に、カタカナ文字への変換を指定する専用の
カタカナ変換キーが必要になり、また変換キー操作時
は、対象がカタカナ文字であるのかどうかを判断して、
その上で上記カタカナ変換キーを操作する必要があり、
変換キーをその対象文字の文字種によって変えなければ
ならない、という煩雑さがあった。本発明の課題は、多
様な文字種の入力を簡易に行なえるようにすることであ
る。 【0004】 【課題を解決するための手段】請求項1の発明は、所望
する文字列を入力する入力手段と、上記入力文字列に対
する文字変換を指示する変換指示手段と、上記変換指示
手段による文字変換の指示操作により、上記入力文字列
に対する変換候補として、上記入力文字列に対応するカ
タカナ文字列候補、全部が大文字の外国文字列候補、頭
文字が大文字で他は小文字の外国文字列候補、全部が小
文字の外国文字列候補、を順次切換えて表示する変換候
補表示手段と、を具備したことを特徴とする。請求項2
の発明は、所望する文字列を入力する入力手段と、上記
入力文字列に対する文字変換を指示する変換指示手段
と、上記変換指示手段による文字変換の指示操作によ
り、上記入力文字列に対する変換候補として、全部が大
文字の外国文字列候補、頭文字が大文字で他は小文字の
外国文字列候補、全部が小文字の外国文字列候補、漢字
文字種の漢字文字列候補、ひらがな文字種のひらがな文
字列候補、を順次切換えて表示する変換候補表示手段
と、を具備したことを特徴とする。 【0005】 【発明の実施の形態】以下、本発明の一実施形態を図面
に基づいて詳細に説明する。構成 図1は、本発明の一実施形態による日本語ワードプロセ
ッサの構成図であり、キー入力部1は平仮名、片仮名等
に対応する各種の文字キー1Aの他、平仮名入力モード
を設定するための平仮名指定キー1B、入力された仮名
文字列を対応する他の文字種に変換したり、出力された
変換候補以外の他の変換候補を出力するよう指示する変
換/次候補キー1C、出力された変換候補を確定するよ
う指示する実行キー1D等のファンクションキーを有す
る構成となっている。入力制御部2は、キー入力部1の
キー操作信号を文字コードに変換し、変換された文字コ
ードを内蔵する入力バッファ2Aに一時保持する。CP
U(中央演算処理装置)3は、内蔵された各種のプログ
ラムに基づいて入力バッファ2Aから入力された文字コ
ード等を処理する。 【0006】変換辞書4はキー入力部1より入力された
仮名文字列を対応する漢字、ローマ字からなる外国語等
に変換するために使用される辞書であり、辞書項目とし
ては、仮名見出しd1、辞書フラグd2、変換候補d3
を有し、仮名見出しd1および変換候補d3の内容は、
文字コードで示されている。仮名見出しd1には、自立
語に対応する漢字および外国語の「読み」が平仮名で示
されている。変換候補d3には、仮名見出しd1に対応
する漢字、または外国語が登録されており、仮名見出し
d1が日本語であるときは、対応する漢字による全ての
変換候補が登録されている。一方、仮名見出しd1が英
単語であるときは、ローマ字で表記された1種類の変換
候補と、もし、漢字、英単語以外の外国語で表記され得
る変換候補が有ればそれらが登録されている。そして、
上記ローマ字で表記された1種類の変換候補の文字種
は、全てのローマ字が小文字となっている。辞書フラグ
d2は、仮名見出しd1が外国語に対応するものである
か否かを識別するとともに、外国語に対応するものであ
る場合には、前回選択した変換候補の文字種を学習する
ために設けられている。すなわち、辞書フラグd2の値
が“1”であれば、仮名見出しd1が日本語であること
を示し、“2”以上であれば仮名見出しd1が外国語で
あることを示している。また、前回選択した外国語の変
換候補の文字種が片仮名の場合は“2”、全文字が大文
字のローマ字(例えばPRINTER)の場合は
“3”、頭文字のみ大文字のローマ字(例えばPrin
ter)の場合は“4”、全文字が小文字のローマ字
(例えばprinter)の場合は“5”が、それぞれ
対応する辞書フラグd2にセットされる。そして、次
回、同一の入力仮名文字列を変換する際は、例えば辞書
フラグd2の値が“3”のときは、CPU3は、変換辞
書4から抽出した全て小文字のローマ字の単語を、全て
大文字のローマ字の単語に変換し、それを第1変換候補
として出力する。 【0007】なお、外国語に対応する辞書フラグd2の
初期値は“2”である。また、上述のようにして辞書フ
ラグd2の値が変更されたとしても、変換候補d3の項
目に登録された全文字小文字のローマ字の単語そのもの
は変更されることはない。 【0008】次候補フラグFは、第1変換候補が選択さ
れなかったとき、次の変換候補としてどのような文字種
を出力すべきかを指標するためのフラグである。この次
候補フラグFには、未変換(未確定)の入力仮名文字列
に対しては、CPU3により初期値として“0”がセッ
トされ、第1回目の変換/次候補キー1Cの操作により
辞書フラグd2の値がそのままセットされる。そして、
第2回目以降の変換/次候補キー1Cの操作時には、原
則としてその操作毎に、第1回目の操作によりセットさ
れた辞書フラグd2の値を初期値として、次候補フラグ
Fの値は“2”→“3”→“4”→“5”→“6”→
“2”→“3”……のように循環的に変化する。 【0009】対応コードテーブル5は、変換辞書4に登
録されたローマ字による変換候補が、全文字小文字のロ
ーマ字単語のみであるため、その他の文字種による変換
候補を出力するに際してコード変換するために使用され
るものである。すなわち、CPU3は変換辞書4から抽
出された全文字小文字のローマ字単語、または入力バッ
ファ2Aから入力された仮名文字列のコード列に対し
て、この対応コードテーブル5を参照して次候補フラグ
Fの値に応じてコード変換処理を実行する。この対応コ
ードテーブル5は、図1に示すように、「あ」→
「ア」、「い」→「イ」、「う」→「ウ」、……「a」
→「A」、「b」→「B」、「c」→「C」……と、平
仮名に対して片仮名、小文字ローマ字に対して大文字ロ
ーマ字が対応するよう構成されている。なお、通常、平
仮名と片仮名、小文字ローマ字と大文字ローマ字の各文
字コードは、それぞれ大部分のビットが一致しているの
で、対応コードテーブル5には、互いに識別可能な範囲
内で一致部分を削除して登録し、メモリ容量を削減する
と良い。 【0010】変換辞書4から抽出された変換候補、およ
びCPU3により作成された変換候補は出力バッファ6
に出力され、表示制御部8にてキャラクタデータに変換
されて表示部9に表示される。したがって、この表示部
9に表示された内容を見ることにより、使用者は所望す
る文字種に変換されたか否かを判断することができる。
そして、所望する文字種に変換されているときは、使用
者は実行キー1Dを操作して変換内容を確定する。この
ようにして確定された変換内容は、CPU3の制御のも
とに出力バッファ6からメモリ7に転送され、作成文書
としてメモリ7に登録される。また、確定時の次候補フ
ラグFの値は、CPU3の制御のもとに変換辞書4の対
応する辞書フラグd2に格納され、最終選択文字種とし
て学習される。 【0011】動作 次に、上述のように構成された実施形態の動作を説明す
る。今、図2(a)に示したように、キー入力部1のキ
ー操作により平仮名で「ぷりんたーせいぎょようえるえ
すあい」と入力され、入力制御部2に内蔵された入力バ
ッファ2Aにこれに対応する文字コード列が保持され、
表示部9にその内容が表示されているものとする。この
時点で、変換/次候補キー1Cを操作すると、CPU3
は変換プログラムにしたがって入力バッファ2Aの仮名
文字列(文字コード列)を変換処理する。 【0012】すなわち、まず最初に、図3に示したステ
ップS1にて次候補フラグFの値を判断する。この次候
補フラグFの値は、電源投入や自立語に対する変換/未
変換の確定ごとに“0”となるので、今の状態では
“0”であり、ステップS2に進む。このステップS2
では入力バッファ2Aに仮名文字が保持されているか否
かの判断を行い、仮名文字が保持されているときは、ス
テップS3にて文法解析を行い自立語を検知する。そし
て、検知された自立語に基づいて変換辞書4を検索し
(ステップS4)、対応する仮名見出しd1が存在する
か否かを判断する(ステップS5)。仮名見出しd1が
存在するときは、その仮名見出しに対応する辞書フラグ
d2を検知し(ステップS6)、検知した辞書フラグd
2の値に応じて変換処理を行う(ステップS7A〜S7
E)。すなわち、辞書フラグd2の値が“1”のとき
は、対応する変換候補d3の項目に記載されている漢字
の第1変換候補(文字コード列)を抽出し、出力バッフ
ァ6に出力して表示部9に表示せしめることにより仮名
漢字変換処理を行い、次候補フラグFに“1”をセット
して変換/次候補キー1Cの1回目の操作に対する処理
を終了する(ステップS7A、S8A)。辞書フラグd
2の値が“2”のときは、検知された自立語の平仮名の
文字コード列(仮名見出しd1に相当)を、対応コード
テーブル5を参照することにより片仮名コード列に変換
し、出力バッファ6に出力して表示部9に表示せしめ、
次候補フラグFに“2”をセットすることにより変換/
次候補キー1Cの1回目の操作に対する処理を終了する
(ステップS7B、S8B)。例えば、仮名見出し「ぷ
りんたー」に対応する辞書フラグd2の値が“2”のと
きは、図2(b)に示すように「プリンター」と変換さ
れる。出力バッファ6に入力された文字コード列は、表
示制御部8にてキャラクタデータに変換されることによ
り表示部9に表示される。辞書フラグd2の値が“3”
のときは、仮名見出しd1に対応するローマ字候補(全
文字小文字のローマ字のコード列)を変換辞書4から抽
出し、対応コードテーブル5を参照して対応する大文字
コードに変換して出力表示し、次候補フラグFに“3”
をセットする(ステップS7C、S8C)。同様に、辞
書フラグd2の値が“4”のときは、ローマ字候補の頭
文字のみを大文字コードに変換して出力表示し、次候補
フラグFに“4”をセットする(ステップS7D、S8
D)。辞書フラグd2の値が“5”のときは、変換辞書
4に記載されている全文字小文字のローマ字のコード列
を、コード変換することなくそのまま出力し、次候補フ
ラグFに“5”をセットする(ステップS7E、S8
E)。そして辞書フラグの値が“6”のときは、単に次
候補フラグFに“6”をセットして終了する(ステップ
S8F)。したがって、この場合は、表示部9の表示内
容は平仮名のままである。このように、次候補フラグF
に“6”をセットするのは、2回目の変換/次候補キー
1Cの操作時に、第2変換候補として片仮名を直ちに出
力するためである。 【0013】このようにして、第1回目の変換/次候補
キー1Cの操作により第1変換候補を出力するが、それ
が所望するものでないときは、使用者は再び変換/次候
補キー1Cを操作して第2変換候補を出力させる。すな
わち、2回目の変換/次候補キー1Cの操作時は、次候
補フラグFの値はステップS8A〜S8Fのいずれかの
処理により“1”以上となっているので、ステップS1
からステップS9G以降の処理に移行する。そして、次
候補フラグFの値が“1”のときは、漢字の第2変換候
補を出力表示する(ステップS9G、S10G)。な
お、このとき次候補フラグFの値は変換されない。次候
補フラグFの値が“2”のときは、ローマ字候補の全て
の文字コードを、全て大文字コードに変換して出力表示
し、次候補フラグFに“3”をセットして変換/次候補
キー1Cの2回目の操作に対する処理を終了する(ステ
ップS9H、S10H、S11H:図2(c)参照)。
次候補フラグFの値が“3”のときは、ローマ字候補の
頭文字コードのみを大文字コードに変換して出力表示
し、次候補フラグFに“4”をセットする(ステップS
9I、S10I、S11I)。次候補フラグFの値が
“4”のときは、コード変換することなく、変換辞書4
に登録された全文字小文字のローマ字のコード列(ロー
マ字候補)をそのまま出力表示し、次候補フラグFに
“5”をセットする(ステップS9J、S10J、S1
1J)。ステップS9Jでの判断の結果、次候補フラグ
Fの値が“4”でないとき、すなわち、次候補フラグF
の値が“5”、または“6”のときは、ステップS12
に進み、ローマ字以外の他の変換候補が全て出力された
か否かを判断する。その結果、未出力の他の変換候補が
存在するときは、ステップS13に進んで変換辞書4か
ら抽出した未出力の他の変換候補、例えば仮名見出し
「ふらんす」に対応する漢字表記の「仏蘭西」をそのま
ま出力表示する。このステップS12→S13のシーケ
ンス処理により、ローマ字以外の変換候補が2個以上存
在するときは、それらは、全文字小文字のローマ字によ
る変換候補の次に、順次出力される。なお、このとき次
候補フラグFの値は変更されない。一方、ステップS1
2での判断の結果、ローマ字以外の他の変換候補が存在
しないとき、または、ローマ字以外の変換候補が全て出
力された後は、ステップS9Kに進んで次候補フラグF
の値が“5”であるか否かを判断し、“5”であればス
テップS3にて検知された自立語の平仮名の文字コード
列をそのまま出力表示し、次候補フラグFに“6”をセ
ットする(ステップS10K、S11K)。一方、ステ
ップS9Kでの判断の結果、次候補フラグFの値が
“5”でないとき、すなわち“6”であるときは上記自
立語の平仮名の文字コード列を片仮名コード列に変換し
て出力表示し、次候補フラグFに“2”をセットする
(ステップS10L、S11L)。 【0014】このようにして出力された第2変換候補も
所望するものでないときは、さらに、変換/次候補キー
1Cを操作して第3変換候補を出力表示させる。前述の
「ぷりんたー」の例では、2回目の変換/次候補キー1
Cの操作時に、ステップS11Hで次候補フラグFに
“3”がセットされているので、第3回目の変換/次候
補キー1Cの操作時には、ステップS1→ステップS9
G→ステップS9H→ステップS9Iを経て、ステップ
S10Iに進み、ローマ字候補の頭文字コードのみを大
文字コードに変換して表示する(図2(d)参照)。 【0015】このように、ローマ字による変換候補とし
ては、全文字が小文字のローマ字で表記されたものだけ
を変換辞書4に登録しておき、対応する他の文字種によ
る変換候補は、登録された変換候補に対してコード変換
を行うことにより作成している。そして、変換/次候補
キー1Cの操作ごとに順次出力される変換候補の文字種
は、前回選択(確定)された文字種を初期の文字種とし
て、片仮名→全文字大文字のローマ字→頭文字のみ大文
字のローマ字→全文字小文字のローマ字→ローマ字およ
び平仮名、片仮名以外の文字種→平仮名→片仮名……の
ように、循環的に変化する。 【0016】確定のために実行キー1Dが操作される
と、CPU3は確定プログラムに従って確定処理を実行
する。すなわち、CPU3は、出力バッファ6に保持さ
れた変換候補を文書メモリ7に転送せしめて登録し(図
4ステップS51)、変換された平仮名コード列を入力
バッファ2Aから削除する(ステップS52)。この
後、次の変換対象として自立語が検知されると、図2
(e)に示したように、アンダーラインで示される変換
対象指標マークは、次の変換対象を指標する。そして、
確定時の次候補フラグFの値を対応する辞書フラグd2
にセットし、前回選択した文字種(変換候補)として学
習する(ステップS53)。次に、ステップS54に進
んで次候補フラグFに“0”をセットし、確定処理を終
了する。したがって、上述の「ぷりんたー」の例では、
確定時の次候補フラグFの値は“4”であるので、次に
再び「ぷりんたー」が変換対象となった際には、第1変
換候補としては、前回確定(選択)された頭文字のみ大
文字の「Printer」が出力表示される。 【0017】このように、平仮名入力により外国文字に
よる複数の文字種の変換候補が出力されるので、文字種
切換操作を行う必要がなく、入力速度を向上させること
が可能となる。また、外国文字による変換候補としては
全文字小文字のローマ字で表記された変換候補のみを登
録しておき、対応する他の文字種による変換候補は、コ
ード変換により作成することとしたので、変換辞書4の
メモリ容量の増大率を必要最小限に抑制することができ
る。 【0018】なお、本発明は、上記実施形態に限定され
るものではなく、例えば、対応コードテーブル5を設け
ることなく、コード変換はソフトウェアにより行うこと
も可能である。この際、16進表示のJISコードを使
用した場合、例えば、a(2361)、A(2341)
のように対応する小文字ローマ字と大文字ローマ字との
文字コードは、2桁目だけが異なっており、他の桁は同
一であるので、小文字ローマ字から大文字ローマ字への
コード変換は、2桁目だけを置換すれば良い。また、例
えば、あ(2422)、ア(2522)のように、対応
する平仮名と片仮名との文字コードは、3桁目だけが異
なり他の桁は同一であるので、平仮名から片仮名へのコ
ード変換は、3桁目だけを置換すれば良い。このよう
に、ソフトウェアによりコード変換を行った場合には、
対応コードテーブル5の分だけメモリ容量を低減するこ
とができる。また、上述の実施例のように、変換/次候
補キー1Cの操作ごとに、順次次候補を出力するのでは
なく、変換候補を一括してメニュー表示させ、その中か
ら選択せしめるようにしても良い。さらに変換辞書4に
日本語と外国語とを混在させることなく、仮名漢字変換
辞書と仮名外国文字変換辞書とを設けても良い。 【0019】 【発明の効果】請求項1の発明によれば、所望する入力
文字列に対する文字変換の指示操作により、その入力文
字列に対する変換候補として、上記入力文字列に対応す
るカタカナ文字列候補、全部が大文字の外国文字列候
補、頭文字が大文字で他は小文字の外国文字列候補、全
部が小文字の外国文字列候補、を順次切換えて表示する
ことができ、文字種の異なるカタカナ文字列候補や各種
外国文字列候補を1つの変換指示手段による指示操作に
より自動的に切換えて表示させることができ、文字種対
応の変換指示操作を行なうといった煩雑な操作が不要と
なり、所望する文字種による所望する変換候補を直ちに
得ることができる。請求項2の発明によれば、所望する
入力文字列に対する文字変換の指示操作により、その入
力文字列に対する変換候補として、全部が大文字の外国
文字列候補、頭文字が大文字で他は小文字の外国文字列
候補、全部が小文字の外国文字列候補、漢字文字種の漢
字文字列候補、ひらがな文字種のひらがな文字列候補、
を順次切換えて表示することができ、文字種の異なる各
種文字列候補を1つの変換指示手段による指示操作によ
り自動的に切換えて表示させることができ、文字種対応
の変換指示操作を行なうといった煩雑な操作が不要とな
り、所望する文字種による所望する変換候補を直ちに得
ることができる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character conversion processing device for converting an input character string and displaying the converted character string. 2. Description of the Related Art When inputting various character strings with a conventional character input device, various input modes are switched according to the character type of a character to be input. In other words, for inputting Kanji character strings mixed with Kana, select Kana mode and perform Kana-Kanji conversion processing, select Katakana mode for Katakana character strings and input, and select Alphanumeric mode for foreign characters such as English characters And input characters. [0003] Therefore, in conventional character input, it is always conscious whether the target character string is a kana character type, a katakana character type, or an English character type. It is necessary to perform the mode switching operation while performing, and the input work becomes complicated and cannot be performed smoothly.
There was a problem. Also, in the past, there was a function to convert Hiragana characters entered in Kana mode to Katakana characters, but in this case, in addition to the normal Kana-Kanji conversion key, specify the conversion to Katakana characters Special katakana conversion key is required, and when operating the conversion key, judge whether the target is katakana characters,
Then it is necessary to operate the above katakana conversion key,
There is a problem that the conversion key must be changed depending on the character type of the target character. An object of the present invention is to make it possible to easily input various character types. According to a first aspect of the present invention, there is provided an input unit for inputting a desired character string, a conversion instruction unit for instructing a character conversion for the input character string, and the conversion instruction unit. By a character conversion instruction operation, as a conversion candidate for the input character string, a katakana character string candidate corresponding to the input character string, a foreign character string candidate with all capital letters, and a foreign character string candidate with an initial capital letter and other small letters , Conversion candidate display means for sequentially switching and displaying foreign character string candidates, all of which are lowercase letters. Claim 2
According to the invention, input means for inputting a desired character string, conversion instruction means for instructing character conversion for the input character string, and character conversion instruction operation by the conversion instruction means, as conversion candidates for the input character string , A foreign character string candidate with all uppercase letters, a capital letter with an initial capital letter and a lowercase letter, a foreign character string candidate with all lowercase letters, a Kanji character string candidate with Kanji character type, and a Hiragana character string candidate with Hiragana character type. Conversion candidate display means for sequentially switching and displaying. An embodiment of the present invention will be described below in detail with reference to the drawings. Configuration FIG. 1 is a configuration diagram of a Japanese word processor according to an embodiment of the present invention. In addition to various character keys 1A corresponding to hiragana, katakana, etc., a key input unit 1 also includes hiragana for setting a hiragana input mode. A designation key 1B, a conversion / next candidate key 1C for instructing to convert an input kana character string into another corresponding character type or to output another conversion candidate other than the output conversion candidate, and an output conversion candidate Is configured to have a function key such as an execution key 1D for instructing to confirm the setting. The input control unit 2 converts a key operation signal of the key input unit 1 into a character code, and temporarily stores the converted character code in an internal input buffer 2A. CP
The U (central processing unit) 3 processes a character code or the like input from the input buffer 2A based on various built-in programs. [0006] The conversion dictionary 4 is a dictionary used to convert a kana character string input from the key input unit 1 into a corresponding foreign language composed of kanji and roman characters, and the like. Dictionary flag d2, conversion candidate d3
And the contents of the kana heading d1 and the conversion candidate d3 are
Indicated by character code. In the kana heading d1, the kanji corresponding to the independent word and the “reading” of the foreign language are indicated by hiragana. In the conversion candidate d3, a kanji or foreign language corresponding to the kana heading d1 is registered. When the kana heading d1 is Japanese, all conversion candidates in the corresponding kanji are registered. On the other hand, when the kana heading d1 is an English word, one type of conversion candidate written in Roman characters and, if there are conversion candidates that can be written in foreign languages other than kanji and English words, these are registered. I have. And
In the character type of one type of conversion candidate described in the Roman characters, all Roman characters are lowercase. The dictionary flag d2 is provided to identify whether or not the kana heading d1 corresponds to a foreign language, and to learn the character type of the previously selected conversion candidate when the kana heading d1 corresponds to a foreign language. Have been. That is, if the value of the dictionary flag d2 is "1", it indicates that the kana heading d1 is in Japanese, and if it is "2" or more, it indicates that the kana heading d1 is in a foreign language. In addition, when the character type of the foreign language conversion candidate selected last time is katakana, the character type is “2”, when all characters are uppercase Roman characters (for example, PRINTER), “3”, and only the initials are uppercase Roman characters (for example, Prin
"ter"), "5" is set in the corresponding dictionary flag d2 when all characters are lowercase Roman characters (for example, printer). Next, when the same input kana character string is converted next time, for example, when the value of the dictionary flag d2 is “3”, the CPU 3 converts the all lowercase Roman alphabet words extracted from the conversion dictionary 4 into all uppercase characters. Convert to Romanized words and output them as first conversion candidates. The initial value of the dictionary flag d2 corresponding to a foreign language is "2". Further, even if the value of the dictionary flag d2 is changed as described above, the Roman word of all lowercase letters registered in the item of the conversion candidate d3 is not changed. [0008] The next candidate flag F is a flag for indicating what kind of character should be output as the next conversion candidate when the first conversion candidate is not selected. In the next candidate flag F, “0” is set as an initial value by the CPU 3 for an unconverted (unconfirmed) input kana character string, and the dictionary is operated by the first conversion / next candidate key 1C. The value of the flag d2 is set as it is. And
When the conversion / next candidate key 1C is operated after the second time, the value of the dictionary flag d2 set by the first operation is set as an initial value and the value of the next candidate flag F is set to "2" for each operation in principle. → “3” → “4” → “5” → “6” →
It changes cyclically as “2” → “3”. The correspondence code table 5 is used for converting the code when outputting the conversion candidates based on other character types because the conversion candidates based on the Roman characters registered in the conversion dictionary 4 are only Roman words having all lowercase letters. Things. That is, the CPU 3 refers to the corresponding code table 5 for the Roman character word of all lowercase characters extracted from the conversion dictionary 4 or the code string of the kana character string input from the input buffer 2A, and Execute code conversion processing according to the value. This correspondence code table 5 is, as shown in FIG.
"A", "I" → "I", "U" → "U", ... "a"
→ “A”, “b” → “B”, “c” → “C”..., Hiragana and katakana, and lowercase Roman letters correspond to uppercase Roman letters. Normally, most of the bits of the character codes of Hiragana and Katakana, and the lowercase Roman characters and uppercase Roman characters have most of the same bits, so the corresponding code table 5 deletes the matching portions within a range that can be identified from each other. It is better to register and reduce the memory capacity. The conversion candidates extracted from the conversion dictionary 4 and the conversion candidates created by the CPU 3 are stored in an output buffer 6.
Are converted into character data by the display control unit 8 and displayed on the display unit 9. Therefore, by looking at the content displayed on the display unit 9, the user can determine whether or not the character type has been converted to the desired character type.
Then, when the character type has been converted to the desired character type, the user operates the execution key 1D to determine the content of the conversion. The conversion content determined in this way is transferred from the output buffer 6 to the memory 7 under the control of the CPU 3, and registered in the memory 7 as a created document. The value of the next candidate flag F at the time of determination is stored in the corresponding dictionary flag d2 of the conversion dictionary 4 under the control of the CPU 3, and is learned as the last selected character type. Operation Next, the operation of the embodiment configured as described above will be described. Now, as shown in FIG. 2 (a), "Printa" is input by a key operation of the key input unit 1 in hiragana, and is input to the input buffer 2A incorporated in the input control unit 2. The corresponding character code string is retained,
It is assumed that the contents are displayed on the display unit 9. At this point, when the conversion / next candidate key 1C is operated, the CPU 3
Converts a kana character string (character code string) in the input buffer 2A according to a conversion program. That is, first, the value of the next candidate flag F is determined in step S1 shown in FIG. The value of the next candidate flag F becomes "0" each time the power is turned on or the conversion / unconversion for the independent word is determined. Therefore, the value is "0" in the current state, and the process proceeds to step S2. This step S2
Then, it is determined whether or not a kana character is held in the input buffer 2A. If a kana character is held, a grammatical analysis is performed in step S3 to detect an independent word. Then, the conversion dictionary 4 is searched based on the detected independent word (step S4), and it is determined whether or not the corresponding kana heading d1 exists (step S5). When the kana heading d1 exists, the dictionary flag d2 corresponding to the kana heading is detected (step S6), and the detected dictionary flag d is detected.
Conversion processing is performed according to the value of 2 (steps S7A to S7).
E). That is, when the value of the dictionary flag d2 is "1", the first conversion candidate (character code string) of the kanji described in the corresponding conversion candidate d3 item is extracted, output to the output buffer 6, and displayed. The kana-kanji conversion process is performed by causing the unit 9 to display the kana-kanji character, the next candidate flag F is set to "1", and the process for the first operation of the conversion / next candidate key 1C ends (steps S7A and S8A). Dictionary flag d
When the value of "2" is "2", the character code string of the detected hiragana of the independent word (corresponding to the kana heading d1) is converted into a katakana code string by referring to the corresponding code table 5, and the output buffer 6 And display it on the display unit 9.
By setting the next candidate flag F to “2”, the conversion /
The processing for the first operation of the next candidate key 1C ends (steps S7B, S8B). For example, when the value of the dictionary flag d2 corresponding to the kana heading "@rinta" is "2", it is converted to "printer" as shown in FIG. 2B. The character code string input to the output buffer 6 is displayed on the display unit 9 by being converted into character data by the display control unit 8. The value of the dictionary flag d2 is "3"
In the case of, a Roman character candidate (a code string of Roman characters in all lowercase letters) corresponding to the kana heading d1 is extracted from the conversion dictionary 4, converted to a corresponding uppercase code with reference to the corresponding code table 5, and output and displayed. "3" in the next candidate flag F
Is set (steps S7C and S8C). Similarly, when the value of the dictionary flag d2 is "4", only the first letter of the Roman alphabet candidate is converted to an uppercase code and output and displayed, and the next candidate flag F is set to "4" (steps S7D and S8).
D). When the value of the dictionary flag d2 is "5", the Roman character code string of all lowercase letters described in the conversion dictionary 4 is output without code conversion, and "5" is set in the next candidate flag F. (Steps S7E, S8
E). If the value of the dictionary flag is "6", the next candidate flag F is simply set to "6" and the process is terminated (step S8F). Therefore, in this case, the display content of the display unit 9 remains in hiragana. Thus, the next candidate flag F
Is set to "6" in order to immediately output katakana as a second conversion candidate when the second conversion / next candidate key 1C is operated. In this way, the first conversion / next candidate key 1C is operated to output the first conversion candidate. If the first conversion candidate is not the desired one, the user again inputs the conversion / next candidate key 1C. Operate to output the second conversion candidate. That is, at the time of operating the second conversion / next candidate key 1C for the second time, the value of the next candidate flag F is "1" or more due to one of the processes of steps S8A to S8F.
Then, the processing shifts to the processing after step S9G. When the value of the next candidate flag F is "1", the second conversion candidate of the kanji is output and displayed (steps S9G and S10G). At this time, the value of the next candidate flag F is not converted. When the value of the next candidate flag F is "2", all the character codes of the Roman character candidates are converted to all uppercase codes and output and displayed, and the next candidate flag F is set to "3" to be converted / next candidate. The processing for the second operation of the key 1C is terminated (steps S9H, S10H, S11H: see FIG. 2C).
If the value of the next candidate flag F is "3", only the initial code of the Roman character candidate is converted to an uppercase code and output and displayed, and "4" is set to the next candidate flag F (step S).
9I, S10I, S11I). When the value of the next candidate flag F is “4”, the conversion dictionary 4
Is output and displayed as it is, and the next candidate flag F is set to "5" (steps S9J, S10J, S1).
1J). If the result of the determination in step S9J is that the value of the next candidate flag F is not “4”,
Is "5" or "6", the process proceeds to step S12.
To determine whether all the conversion candidates other than the Roman characters have been output. As a result, if there is another conversion candidate that has not been output, the process proceeds to step S13, and the other conversion candidates that have not been output extracted from the conversion dictionary 4, for example, the kanji notation “Furan” corresponding to the kana heading “Frans” "West" is output and displayed as it is. If there are two or more conversion candidates other than Roman characters in the sequence processing from step S12 to S13, they are sequentially output next to the conversion candidates using all lowercase Roman characters. At this time, the value of the next candidate flag F is not changed. On the other hand, step S1
As a result of the determination in step 2, if there is no other conversion candidate other than the Roman characters, or after all the conversion candidates other than the Roman characters have been output, the process proceeds to step S9K, where the next candidate flag F
Is determined to be "5". If the value is "5", the character code string of the hiragana of the independent word detected in step S3 is output and displayed as it is, and the next candidate flag F is set to "6". Is set (steps S10K and S11K). On the other hand, if the result of the determination in step S9K is that the value of the next candidate flag F is not "5", that is, "6", the character code string of the hiragana of the independent word is converted to a katakana code string and output and displayed. Then, "2" is set to the next candidate flag F (steps S10L and S11L). If the second conversion candidate thus output is not the desired one, the conversion / next candidate key 1C is further operated to output and display the third conversion candidate. In the above example of "Printa", the second conversion / next candidate key 1
Since the next candidate flag F is set to "3" in step S11H at the time of operation of C, when the third conversion / next candidate key 1C is operated, step S1 → step S9
G → Step S9H → Step S9I, and then proceed to Step S10I, where only the initial code of the Roman alphabet candidate is converted into an uppercase code and displayed (see FIG. 2 (d)). As described above, as conversion candidates in Roman characters, only those in which all characters are written in lowercase Roman characters are registered in the conversion dictionary 4, and conversion candidates corresponding to other character types are registered conversion candidates. It is created by performing code conversion on the candidates. The character type of the conversion candidate which is sequentially output for each operation of the conversion / next candidate key 1C is as follows: the previously selected (confirmed) character type is used as the initial character type, and katakana → all uppercase Roman characters → initial uppercase Roman characters → all lowercase Roman letters → Roman characters and character types other than Hiragana and Katakana → Hiragana → Katakana ... When the execution key 1D is operated for determination, the CPU 3 executes a determination process according to a determination program. That is, the CPU 3 transfers the conversion candidates held in the output buffer 6 to the document memory 7 for registration (step S51 in FIG. 4), and deletes the converted hiragana code string from the input buffer 2A (step S52). Thereafter, when an independent word is detected as the next conversion target, FIG.
As shown in (e), the conversion target index mark indicated by an underline indicates the next conversion target. And
Dictionary flag d2 corresponding to the value of next candidate flag F at the time of determination
And learn as the previously selected character type (conversion candidate) (step S53). Next, the process proceeds to step S54, where "0" is set to the next candidate flag F, and the determination process ends. Therefore, in the above example of "Printa",
Since the value of the next candidate flag F at the time of finalization is “4”, next time when “Printa” is again subject to conversion, the first conversion candidate is only the first letter that was previously finalized (selected). An upper case “Printer” is output and displayed. As described above, the conversion candidates of a plurality of character types by foreign characters are output by inputting hiragana, so that there is no need to perform a character type switching operation, and it is possible to improve the input speed. Further, only conversion candidates represented by lowercase Roman characters are registered as conversion candidates for foreign characters, and conversion candidates for other corresponding character types are created by code conversion. The increase rate of the memory capacity can be suppressed to a necessary minimum. The present invention is not limited to the above embodiment. For example, code conversion can be performed by software without providing the corresponding code table 5. At this time, when a hexadecimal JIS code is used, for example, a (2361), A (2341)
Corresponding character codes between lowercase Roman letters and uppercase Roman letters differ only in the second digit, and the other digits are the same, so the code conversion from lowercase Roman to uppercase Roman is performed by changing only the second digit. Just replace it. Also, for example, as in (a) (2422) and (a), the character codes of the corresponding hiragana and katakana differ only in the third digit, and the other digits are the same, so that the code conversion from hiragana to katakana is performed. Need only be replaced with the third digit. Thus, when code conversion is performed by software,
The memory capacity can be reduced by the corresponding code table 5. Further, as in the above-described embodiment, instead of sequentially outputting the next candidate for each operation of the conversion / next candidate key 1C, the conversion candidates may be collectively displayed in a menu and selected from the menu. good. Further, a kana-kanji conversion dictionary and a kana foreign character conversion dictionary may be provided in the conversion dictionary 4 without mixing Japanese and foreign languages. According to the first aspect of the present invention, by performing a character conversion instruction operation on a desired input character string, a katakana character string candidate corresponding to the input character string is selected as a conversion candidate for the input character string. , Can be displayed sequentially by switching between all foreign capital string candidates in uppercase, foreign capital string candidates with initial capital letters in lower case, and foreign character strings in all lowercase letters. Katakana character string candidates with different character types And various foreign character string candidates can be automatically switched and displayed by an instruction operation by one conversion instruction means, and a complicated operation such as performing a conversion instruction operation corresponding to a character type is not required, and a desired conversion by a desired character type can be performed. Candidates can be obtained immediately. According to the second aspect of the present invention, by performing a character conversion instruction operation on a desired input character string, as a conversion candidate for the input character string, a foreign character string candidate in which all characters are uppercase and a foreign character in which the first character is uppercase and the other characters are lowercase are used. Character string candidates, foreign character string candidates with all lowercase letters, Kanji character string candidates for Kanji character types, Hiragana character string candidates for Hiragana character types,
Can be sequentially switched and displayed, and various character string candidates having different character types can be automatically switched and displayed by an instruction operation by one conversion instruction means, and a complicated operation such as performing a conversion instruction operation corresponding to the character type can be performed. Becomes unnecessary, and a desired conversion candidate based on a desired character type can be immediately obtained.

【図面の簡単な説明】 【図1】本発明の一実施例による日本語ワードプロセッ
サの構成図。 【図2】図1の動作を説明するための図。 【図3】図1の動作を説明するための図。 【図4】図1の動作を説明するための図。 【符号の説明】 1 キー入力部 3 CPU 4 変換辞書 5 対応コードテーブル
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a configuration diagram of a Japanese word processor according to one embodiment of the present invention. FIG. 2 is a diagram for explaining the operation of FIG. 1; FIG. 3 is a diagram for explaining the operation of FIG. 1; FIG. 4 is a diagram for explaining the operation of FIG. 1; [Description of Signs] 1 Key input unit 3 CPU 4 Conversion dictionary 5 Corresponding code table

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 17/21 - 17/28 Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 17/21-17/28

Claims (1)

(57)【特許請求の範囲】 1.所望する文字列を入力する入力手段と、 上記入力文字列に対する文字変換を指示する変換指示手
段と、 上記変換指示手段による文字変換の指示操作により、上
記入力文字列に対する変換候補として、上記入力文字列
に対応するカタカナ文字列候補、全部が大文字の外国文
字列候補、頭文字が大文字で他は小文字の外国文字列候
補、全部が小文字の外国文字列候補、を順次切換えて表
示する変換候補表示手段と、 を具備したことを特徴とする文字変換処理装置。 2.所望する文字列を入力する入力手段と、 上記入力文字列に対する文字変換を指示する変換指示手
段と、 上記変換指示手段による文字変換の指示操作により、上
記入力文字列に対する変換候補として、全部が大文字の
外国文字列候補、頭文字が大文字で他は小文字の外国文
字列候補、全部が小文字の外国文字列候補、漢字文字種
の漢字文字列候補、ひらがな文字種のひらがな文字列候
補、を順次切換えて表示する変換候補表示手段と、 を具備したことを特徴とする文字変換処理装置。
(57) [Claims] Input means for inputting a desired character string, and a conversion instruction hand for instructing character conversion for the input character string
And the character conversion instruction operation by the conversion instruction means
As the conversion candidate for the input character string,
Katakana character string candidates corresponding to
Character string candidates, foreign character strings with initial capital letters and other lowercase letters
Complementary, all lowercase foreign character string candidates are sequentially switched and displayed
And a conversion candidate display means for displaying the character. 2. Input means for inputting a desired character string, and a conversion instruction hand for instructing character conversion for the input character string
And the character conversion instruction operation by the conversion instruction means
As conversion candidates for the input character string,
Foreign character string candidates, foreign sentences with initial capital letter and other lowercase letters
Character string candidates, foreign character string candidates with all lowercase letters, Kanji character type
Kanji character string candidate, Hiragana character string of Hiragana character type
Conversion candidate display means for sequentially switching and displaying complements .
JP9219739A 1997-08-01 1997-08-01 Character conversion processor Expired - Lifetime JP2870524B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9219739A JP2870524B2 (en) 1997-08-01 1997-08-01 Character conversion processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9219739A JP2870524B2 (en) 1997-08-01 1997-08-01 Character conversion processor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP6279729A Division JP2761622B2 (en) 1994-10-20 1994-10-20 Character converter

Publications (2)

Publication Number Publication Date
JPH10124507A JPH10124507A (en) 1998-05-15
JP2870524B2 true JP2870524B2 (en) 1999-03-17

Family

ID=16740234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9219739A Expired - Lifetime JP2870524B2 (en) 1997-08-01 1997-08-01 Character conversion processor

Country Status (1)

Country Link
JP (1) JP2870524B2 (en)

Also Published As

Publication number Publication date
JPH10124507A (en) 1998-05-15

Similar Documents

Publication Publication Date Title
KR100344947B1 (en) Apparatus and method for inputting chinese characters
JP2870524B2 (en) Character conversion processor
JP2870525B2 (en) Character conversion processor
JPH0740263B2 (en) Japanese word processor
JP2761622B2 (en) Character converter
JP2943791B2 (en) Language identification device, language identification method, and recording medium recording language identification program
JPH08297663A (en) Device and method for correcting input error
JP2833650B2 (en) Document processing device
JP3042284B2 (en) Japanese input device
JPH08171568A (en) Multilingual input method
JP2878461B2 (en) Document input device
JPH08335217A (en) Reading converting method and document preparation device
JP2001290813A (en) Method and device for japanese syllabary-to-chinese character conversion and recording medium
JPH10198677A (en) Document preparing device
JPH0594431A (en) Japanese sillabary converter
JPH0340418B2 (en)
WO2004003786A1 (en) Sentence input system
JPH0769909B2 (en) Document processor
JPH04133167A (en) Kana/kanji converter
JPH08194698A (en) Character processor
JPH08194701A (en) Character processor
JPH0769908B2 (en) Document processor
JPH1027171A (en) Handwritten character converter
JPH11149472A (en) Word converting method and information processor
JPH07191992A (en) Character processing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term