JPS62123558A - Kana-to-kanji converter - Google Patents

Kana-to-kanji converter

Info

Publication number
JPS62123558A
JPS62123558A JP60263336A JP26333685A JPS62123558A JP S62123558 A JPS62123558 A JP S62123558A JP 60263336 A JP60263336 A JP 60263336A JP 26333685 A JP26333685 A JP 26333685A JP S62123558 A JPS62123558 A JP S62123558A
Authority
JP
Japan
Prior art keywords
conversion
kanji
kana
key
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.)
Pending
Application number
JP60263336A
Other languages
Japanese (ja)
Inventor
Namio Aoki
青木 波男
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP60263336A priority Critical patent/JPS62123558A/en
Publication of JPS62123558A publication Critical patent/JPS62123558A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To omit the switch of the conversion unit with KANA (Japanese syllabary)/KANJI (Chinese characters) conversion between the sentences of different conversion units, by actuating a KANA/KANJI converting means against a non-converted character string obtained after the conversion is fixed under the control of the 2nd conversion designating means. CONSTITUTION:A processor 2 stores the input KANA code in an input buffer 4 and displays the corresponding KANA at a display part 3. When a conversion key 1-1 is pushed, the processor 2 performs the KANJI conversion and displays the candidate data at the part 3. When the buffer 4 stores the input characters, a paragraph mode flag 2-1 is set at 1 for execution of the paragraph conversion. While a single KANJI mode flag is equal to 1 when no input characters is stored in the buffer 4. Thus the single KANJI conversion is carried out. It is decided for execution of KANJI conversion whether the character codes stored in the buffer 4 are converted into KANJI for each paragraph or the KANA stored in a document memory 5 storing the fixed sentence data is converted into KANJI for each KANJI unit.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はワードプロセッサに係り、特に未変換かな文字
列を漢字に変換する回路を制御してかな漢字変換を行う
かな漢字変換装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a word processor, and more particularly to a kana-kanji conversion device that performs kana-kanji conversion by controlling a circuit that converts unconverted kana character strings into kanji.

〔従来の技術〕[Conventional technology]

日本語ワードプロセッサは入力誤りに対する訂正や文章
の編集等が行えるために各方面で使用されている。現在
使用されている日本語ワードプロセッサはかなを入力し
、その入力したかなを漢字に変換するかな漢字変換機能
を有している。
Japanese word processors are used in various fields because they can correct input errors and edit sentences. Japanese word processors currently in use have a kana-kanji conversion function that inputs kana and converts the input kana to kanji.

かな漢字変換には複文節変換、文節変換、単漢字変換に
分けられているが、殆どのワードプロセッサは文節変換
以上の機能を有するものが多い。
Kana-Kanji conversion is divided into multiple phrase conversion, bunsetsu conversion, and single kanji conversion, but most word processors have functions beyond phrase conversion.

例えばかなにより一括して入力した文章に対し、文章の
先頭から順次文節単位等で変換している。
For example, sentences input in bulk in kana are converted sequentially from the beginning of the sentence in units of clauses.

このような複文節変換や文節変換においては、順次かな
を漢字に変換するため、入力したかなに該当する漢字が
無い場合には一時的に誤った漢字に確定するか、その部
分をかなのままで確定してしまい、変換終了後に再度そ
のかなを入力して単漢字変換等を行っていた。−船釣に
文節変換と単漢字変換はワードプロセッサを操作するオ
ペレータによって指定されるので、このように文節変換
では変換できないものが混在するような文章においては
、単漢字変換モードと文節変換モードとを切換えて使用
していた。このため、操作が複雑となる問題が発生して
いた。また複文節変換を行えるワードプロセッサにおい
ても同様の問題が発生していた。
In such compound clause conversion and bunsetsu conversion, kana is converted into kanji in sequence, so if there is no kanji that matches the input kana, the kanji will be temporarily determined to be the wrong kanji, or the part will be left as kana. After the conversion was completed, I entered the kana again to perform single kanji conversion, etc. - In boat fishing, phrase conversion and single kanji conversion are specified by the operator operating the word processor, so for sentences that contain a mixture of words that cannot be converted using phrase conversion, single kanji conversion mode and phrase conversion mode can be used. I switched and used it. As a result, a problem has arisen in which operations become complicated. Similar problems have also occurred in word processors that can perform compound clause conversion.

〔発明の目的〕[Purpose of the invention]

本発明は上記従来の欠点に鑑み、変換単位の異なる文章
におけるかな漢字変換において変換単位の切換え操作が
不要で、変換処理を高速で行えるかな漢字変換装置を提
供することを目的とした。
In view of the above-mentioned conventional drawbacks, the present invention aims to provide a kana-kanji conversion device that does not require switching operations of conversion units when converting sentences with different conversion units into kana-kanji and can perform conversion processing at high speed.

〔発明の要点〕[Key points of the invention]

本発明は上記目的を達成するため日本語ワードプロセッ
サにおいて、 変換かな文字数の多い変換単位でかなを漢字に変換する
指定を行う第1の変換指定手段と、変換かな文字数の少
ない変換単位でかなを漢字に変換する指定を行う第2の
変換指定手段と、かなを漢字に変換するかな漢字変換手
段とを有し、 変換確定前の未変換文字列に対し、前記第1の変換指定
手段の制御で前記かな漢字変換手段が動作し、変換確定
後の無変換文字列に対し、前記第2の変換指定手段の制
御で前記かな漢字変換手段が動作することを特徴とした
In order to achieve the above object, the present invention provides a first conversion specification means for specifying conversion of kana to kanji in a conversion unit with a large number of conversion kana characters, and a conversion unit of conversion from kana to kanji with a small number of conversion kana characters. and a kana-kanji conversion means for converting kana into kanji, and the method includes a second conversion specification means for specifying conversion into kanji, and a kana-kanji conversion means for converting kana into kanji, and for an unconverted character string before the conversion is confirmed, the above-mentioned conversion specification means is controlled by the first conversion specification means. The kana-kanji conversion means operates, and the kana-kanji conversion means operates under the control of the second conversion designation means for the unconverted character string after the conversion is confirmed.

そしてその作用は以下の如くである。And its action is as follows.

日本語ワードプロセッサにおいて、かなを漢字に変換す
るかな漢字変換手段を第1の変換指定手段で制御して変
換かな文字数の多い変換単位で先ず変換を行い、続いて
第2の変換指定手段で制御して変換かな文字数の少ない
変換単位で変換を行う。特に第2の変換指定手段は前記
日本語ワードプロセッサが存する表示部で表示される確
定文節のカーソルの位置以後のかなを漢字に変換する指
定を行う。
In a Japanese word processor, the kana-kanji conversion means for converting kana to kanji is controlled by a first conversion specifying means to first perform conversion in units of conversion having a large number of converted kana characters, and then controlled by a second conversion specifying means. Conversion Kana Conversion is performed in conversion units with a small number of characters. In particular, the second conversion specifying means specifies converting kana characters after the cursor position of the fixed phrase displayed on the display unit where the Japanese word processor is located into kanji characters.

〔実  施  例〕〔Example〕

以下、図面を用いて本発明の詳細な説明する。 Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明の実施例の回路構成図である。FIG. 1 is a circuit diagram of an embodiment of the present invention.

キー人力部lは日本語ワードプロセッサに必要なキーを
有する。例えば、かなキーと、そしてそのかなを入力し
た後に漢字に変換する指定を行う変換キー1−1、変換
キー1−1の押下によって表示された候補が該当しなか
った時に次の候補を指定する次候補キー1−2、候補あ
るいは次候補等が表示された時にその表示された候補が
目的とした漢字であった場合に確定する確定キー1−3
や変換モードの指定を解除する解除キー1−4等より成
る。キー人力部lのキーの押下に対応して、キー人力部
はそのキーのコードをプロセッサ(CPU)2に出力す
る。プロセッサ2は、その押下されたキーのコードが加
わると内部に有するプログラムによってそのキーに対応
する制御処理を行う。本発明の実施例は日本語ワードプ
ロセッサであるので、プロセッサ2は例えば入力したか
なコードを入カバソファ4に格納するとともに対応する
かなを表示部3で表示する処理を行う。そして、変換キ
ー1−1が押下され、変換キー1−2に対応するコード
がプロセッサ2に加わった時には、プロセッサは後述す
るかな漢字変換を行い、候補データを表示部3で表示す
る。プロセッサ部2は文節モードフラグ2−1と単漢字
モードフラグ2−2を有しており、入力バッファ4に入
力文字が存在する時には文節モードフラグ2−1が“l
”となって文節変換を行う。また入力バッファ4に入力
文字が存在しない時には単漢字モードフラグが“1”と
なって、単漢字変換を行う。この時には入力バッファ4
に文字が存在しないので、文書メモリ5内に格納されて
いる確定文章データのかなに対して変換を行う。文字数
カウンタ6は入カバソファ4内に格納された未変換かな
文字数をカウントするものであり、このカウンタ6が加
わる判断部7で前述した入カバソファ4に入力文字があ
るか否かが判断される。本発明は前述した入カバソファ
4に格納されたかな文字コードを文節単位で漢字に変換
するかあるいは確定文章データが格納されている文書メ
モリ5のかなを1個の漢字単位で漢字に変換するかを選
択して、かな漢字変換を行うものである。なお、後述す
るが、文節変換モードであっても、入カバソファ4に格
納されている文字コードデータが例えば少なく文節を構
成できない等の時には、単漢字変換がなされる。
The key manual section 1 has keys necessary for a Japanese word processor. For example, the Kana key, and the conversion key 1-1 that specifies converting to kanji after inputting the kana, and the next candidate is specified when the candidates displayed by pressing the conversion key 1-1 do not match. Next candidate key 1-2, confirmation key 1-3 that is confirmed when the displayed candidate is the desired kanji when a candidate or next candidate is displayed.
and release keys 1-4 for canceling the designation of the conversion mode. In response to the depression of a key of the key human power section 1, the key human power section outputs the code of that key to the processor (CPU) 2. When the code of the pressed key is added, the processor 2 performs control processing corresponding to that key using an internal program. Since the embodiment of the present invention is a Japanese word processor, the processor 2 performs a process of storing the input kana code in the input cover sofa 4 and displaying the corresponding kana on the display section 3, for example. When the conversion key 1-1 is pressed and the code corresponding to the conversion key 1-2 is added to the processor 2, the processor performs kana-kanji conversion, which will be described later, and displays candidate data on the display unit 3. The processor unit 2 has a bunsetsu mode flag 2-1 and a single kanji mode flag 2-2, and when an input character exists in the input buffer 4, the bunsetsu mode flag 2-1 becomes "l".
” and phrase conversion is performed.Also, when there is no input character in input buffer 4, the single kanji mode flag becomes “1” and single kanji conversion is performed.In this case, input buffer 4
Since there are no characters in , the kana of the final text data stored in the document memory 5 is converted. The character number counter 6 counts the number of unconverted kana characters stored in the input cover sofa 4, and a determination section 7 to which this counter 6 is added determines whether or not there are input characters in the input cover sofa 4. The present invention converts the kana character code stored in the above-mentioned input cover sofa 4 into kanji in units of bunsetsu, or converts the kana character codes stored in the document memory 5 in which fixed sentence data is stored into kanji in units of kanji. , and performs kana-kanji conversion. As will be described later, even in the phrase conversion mode, when the character code data stored in the input cover sofa 4 is too small to form a phrase, single kanji conversion is performed.

第3図は変換キーに対する本発明の実施例の動作処理フ
ローチャート、第4図は確定キー、数値キーに対する動
作処理フローチャートである。以下では、第3図、第4
図のフローチャートを用いて第1図の動作を詳細に説明
する。
FIG. 3 is a flowchart of the operation processing of the embodiment of the present invention for the conversion key, and FIG. 4 is a flowchart of the operation processing for the confirmation key and numeric key. Below, Figures 3 and 4
The operation shown in FIG. 1 will be explained in detail using the flowchart shown in the figure.

キー人力部1の変換キー11が押下され、変換キー1−
1に対応したキーコードがブロモ、tす2に加わると、
第3図の処理S l(Kを実行する。
When the conversion key 11 of the key human power section 1 is pressed, the conversion key 1-
When the key code corresponding to 1 is added to bromo, tsu2,
Execute the process S1(K) in FIG.

先ず、文字数カウンタ6がOであるか否かの判別S1を
行う。前述したようにキー人力部1より加わったかなキ
ーコードのデータが入カバソファ4に格納されるたびに
文字数カウンタ6はそのかなコードデータ数分のカラン
l−が進み、変換して確定した時にはその変換したかな
文字骨の数がカウントダウンする。よって、この判別S
1によって文字数カウンタが0であると判別した時にY
 (YES)には変換すべきかなコードデータが入力バ
ッファ4に存在しない場合であり、また逆にOでない時
には変換すべきかなコードデータが入力バッファ4(こ
存在する場合である。なお、この判断は第1図の判断部
7でなされるものであり、その結果がプロセッサ回路2
に加わって、次の処理がなされる。存在している時には
すなわち文字数カウンタ6が0でない時N (No)に
は、人カバソファ4に格納されているかなデータを漢字
に変換する処理を以後で行う。先ずプロセッサ2の制御
信号が加わり、その制御信号によって文書メモリ5ある
いは入力バッファ4の出力を選択する入力セレクタ8で
、大カバソファ4を選択する指定をプロセッサ回路2は
行う(S2)。
First, a determination S1 is made as to whether or not the character number counter 6 is O. As mentioned above, each time the kana key code data added by the key input section 1 is stored in the input cover sofa 4, the character number counter 6 advances by the number of kana code data. The number of Kana character bones that have been converted will count down. Therefore, this discrimination S
Y when it is determined that the character number counter is 0 by 1
(YES) means that the code data to be converted does not exist in the input buffer 4, and conversely, when it is not O, it means that the code data to be converted does exist in the input buffer 4. is made by the judgment section 7 in FIG. 1, and the result is sent to the processor circuit 2.
In addition to this, the following processing is performed. When it exists, that is, when the character number counter 6 is not 0 (N (No)), a process of converting the kana data stored in the human cover sofa 4 into kanji is performed thereafter. First, a control signal from the processor 2 is applied, and the processor circuit 2 instructs the input selector 8, which selects the output of the document memory 5 or the input buffer 4, to select the large cover sofa 4 (S2).

そして、入力セレクタで選択された入力バッファ4の出
力を変換器セレクタ9で選択して文節変換器10あるい
は単漢字変換器11に出力する。
Then, the output of the input buffer 4 selected by the input selector is selected by the converter selector 9 and output to the phrase converter 10 or the single kanji converter 11.

この選択はプロセッサ2より出力される選択信号によっ
て制御される。なお、入カバソファ4にデータが格納さ
れている状態では最初は文節変換を行うので、この時に
は変換器セレクタ9は文節変換器10に入ノノハソファ
4の出力を加える。このデータが加わることにより、文
節変換器10は文節変換処理S3を行う。文節変換器1
0によって行われる文節変換処理S3は例えば文節を接
頭語、自立語、接尾語、付属語等に分解し、それぞれに
対し文節変換器が有する辞書メモリ (図示せず)を参
照して候補となる漢字まじりの文節に変換する処理であ
る。文節変換器10で変換された結果は判断部12に加
わり、判断部12は文節変換が可能であったか否かの判
別を行う(S4)。例えば1個のかな文字しか入力され
ない時に文節変換を行うことは不可能であるので、この
様な変換できない場合を判別するのが判断部12(処理
S4)である。そしてその結果はプロセッサ2に加わる
This selection is controlled by a selection signal output from processor 2. Note that in a state where data is stored in the input cover sofa 4, phrase conversion is performed at first, so at this time, the converter selector 9 adds the output of the input cover sofa 4 to the phrase converter 10. By adding this data, the phrase converter 10 performs phrase conversion processing S3. Clause converter 1
The phrase conversion processing S3 performed by the phrase converter S3, for example, breaks down the phrase into prefixes, independent words, suffixes, adjunct words, etc., and selects candidates for each by referring to a dictionary memory (not shown) possessed by the phrase converter. This process converts phrases into phrases that include kanji. The result of the conversion by the clause converter 10 is applied to the judgment unit 12, and the judgment unit 12 determines whether or not the clause conversion was possible (S4). For example, it is impossible to perform bunsetsu conversion when only one kana character is input, so the determining unit 12 (processing S4) determines when such conversion is not possible. The result is then applied to processor 2.

プロセッサ2はこの結果を判断して、不可能となった時
には単漢字変換処理S5の制御を行う。なお、この制御
は、大ノコセレクタ8の出力を変換器セレクト9によっ
て単漢字変換器11に出力する制御である。この制御に
よって、単漢字変換器11が動作する。判別処理S4に
おいて、Y (YES)であった時あるいはN (No
)で単漢字変換処理S5を実行した後は文節モードフラ
グ2−1を文節変換モードに指定する処理を行う (S
6)。
The processor 2 judges this result, and if it becomes impossible, controls the single kanji conversion process S5. Note that this control is a control in which the output of the large saw selector 8 is output to the single kanji converter 11 by the converter select 9. This control causes the single kanji converter 11 to operate. In the determination process S4, if Y (YES) or N (No
), after executing the single kanji conversion process S5, the process of specifying the bunsetsu mode flag 2-1 to the bunsetsu conversion mode is performed (S
6).

すなわち、文節モードフラグを1とした処理を行う。な
お、前述した処理32〜S5は文節変換モード時の処理
であるが、本発明の実施例ではこの時点で文節変換モー
ドの指定を行っている。当然ながら、たとえば判別処理
S1の直後に行ってもよい。
That is, processing is performed with the phrase mode flag set to 1. Note that the above-described processes 32 to S5 are the processes in the phrase conversion mode, but in the embodiment of the present invention, the phrase conversion mode is specified at this point. Naturally, it may be performed, for example, immediately after the determination process S1.

プロセッサ2によって文節モードフラグが設定された後
は、判断部12を介して文節変換器10あるいは単漢字
変換器11より判断部12を介して加わっている変換デ
ータを候補データメモリ13に格納する処理S7を行う
。この処理S7もプロセッサ2の制御によってなされる
。これにより、候補データメモリ13には候補となる例
えば複数の文節や漢字が格納される。そして、格納され
た候補はプロセッサ2に先ず出力され、プロセッサ2は
表示部3にその文字コードデータを出力して、表示する
(S8)。この候補表示処理S8を終えると、変換キー
に対する処理を終了する。
After the phrase mode flag is set by the processor 2, there is a process of storing the converted data added via the determination section 12 from the phrase converter 10 or the single kanji converter 11 via the determination section 12 into the candidate data memory 13. Perform S7. This process S7 is also performed under the control of the processor 2. As a result, the candidate data memory 13 stores, for example, a plurality of phrases and kanji as candidates. The stored candidates are first output to the processor 2, and the processor 2 outputs the character code data to the display unit 3 for display (S8). When this candidate display process S8 is finished, the process for the conversion key is finished.

一方、文字数カウンタ6が0であるか否かの判別S1に
おいて、0であると判別(Y)した時には、プロセッサ
2は入力セレクタ8に対し文書メモリ5を選択する制御
信号を加え、文書メモリ5を選択させる(S9)。表示
部3はプロセッサ2から出力される文字コードデータを
表示する他に、カーソルアドレスメモリ14より出力さ
れるアドレスデータで指示された位置をカーソルで表示
する機能を有しており、カウンタ4の値が0の時にはこ
のカーソルで指示された文を漢字に変換する。
On the other hand, in the determination S1 of whether or not the character number counter 6 is 0, when it is determined that it is 0 (Y), the processor 2 applies a control signal for selecting the document memory 5 to the input selector 8, and is selected (S9). In addition to displaying the character code data output from the processor 2, the display unit 3 has a function of displaying a cursor at a position specified by the address data output from the cursor address memory 14, and displays the value of the counter 4. When is 0, the sentence pointed to by this cursor is converted to kanji.

文書メモリの内容と表示部3で表示される内容は常に例
えばページ単位で1対1で対応しており、更にカーソル
アドレスメモリ14の出力は文書メモリ5にも加わって
いるのでこのアドレスデータによって指示された文書の
内容が入力セレクタ8に出力され、変換器レジスタ9を
介して単漢字変換器11に加わり漢字に変換される(S
10)。
The contents of the document memory and the contents displayed on the display section 3 always have a one-to-one correspondence, for example, page by page, and since the output of the cursor address memory 14 is also added to the document memory 5, instructions can be given using this address data. The content of the converted document is output to the input selector 8, and is input to the single kanji converter 11 via the converter register 9, where it is converted into kanji (S
10).

なお、カーソルアドレスメモリはプロセッサ2によって
制御されており、例えば、かな文字の入力やカーソル移
動キーが押下された時に順次変更されて表示される。な
お、図示しないが、文書メモリ5はカーソルアドレスメ
モリ14より加わるアドレスデータで指示される位置よ
り後方に少なくとも1個あるいはそれ以上のかなを読出
す続出回路を有しており、この単漢字変換処理StOが
動作している時には、それに続く文字データが続出され
る。なお、本発明の実施例における単漢字変換は例えば
最大5文字のかなを優先的に単漢字に変換する、いわゆ
る最長一致法による単漢字変換である。よって前述した
カーソル位置以後のひらがなの単漢字変換処理SIOで
かなが5文字続いて文書メモリ中に存在する場合には、
最初に検出する候補漢字は5文字のかなに対応する漢字
である。そして、5文字のかなに対応する漢字が無い場
合には、次のかな数すなわち4文字のかなに対応する漢
字が候補となる。更にそれ以下のかな文字に対しても同
様である。
The cursor address memory is controlled by the processor 2, and is sequentially changed and displayed when, for example, a kana character is input or a cursor movement key is pressed. Although not shown, the document memory 5 has a succession circuit that reads out at least one or more kana after the position specified by the address data added from the cursor address memory 14, and this single kanji conversion process When StO is operating, subsequent character data is output one after another. The single kanji conversion in the embodiment of the present invention is, for example, a single kanji conversion using the so-called longest match method, which preferentially converts up to five kana characters into a single kanji. Therefore, in the above-mentioned hiragana/kanji conversion processing SIO after the cursor position, if five kana characters exist in the document memory in succession,
The first candidate kanji to be detected is the kanji corresponding to the five kana characters. If there is no kanji that corresponds to the five kana characters, the next kana number, that is, the kanji character that corresponds to the four kana characters, becomes a candidate. The same applies to lower kana characters.

カーソル位置以後のひらがなの単漢字変換処理SIOの
後には、この処理S10によって漢字への変換が可能で
あったか否かすなわち変換されたか否かの判別処理Sl
lがなされる。変換されない場合Nはカーソルの位置以
後が漢字かあるいは漢字に変換されない文字(数字や“
を”、“ん”等のひらがな)の時であるので、変換処理
に意味を有さす、処理を終了する。
After the single kanji conversion process SIO of hiragana after the cursor position, processing S1 determines whether conversion into kanji is possible or not, that is, whether conversion has been performed.
l is done. If not converted, N indicates that the characters after the cursor position are kanji or characters that cannot be converted to kanji (numbers or “
Since this is a hiragana (such as "wo", "n", etc.), the conversion process has meaning, and the process ends.

前述した判別処理Sllは前述した判別処理S4と同様
であり、判断部12によってなされる。
The above-described discrimination process Sll is similar to the above-described discrimination process S4, and is performed by the judgment unit 12.

よってプロセッサ2は、変換可能であった時Yには次に
単漢字モードフラグを1とした処理S12を行う。そし
て前述した文節変換の場合と同様に処理S7より続いて
処理を行う。
Therefore, when the conversion is possible, the processor 2 next performs processing S12 in which the single kanji mode flag is set to 1. Then, as in the case of phrase conversion described above, processing continues from step S7.

第3図に示した変換キーに対する動作処理フローチャー
トと同様に、その変換した候補漢字が目的の漢字でない
時に次に押下される次候補における処理も行われる。な
お、この時には図示しないが、プロセッサ2内に設けら
れた次候補の処理の為のワークメモリが用いられる。
Similar to the operation processing flowchart for the conversion key shown in FIG. 3, when the converted candidate kanji is not the desired kanji, the next candidate pressed next is also processed. Note that at this time, although not shown, a work memory provided in the processor 2 for processing the next candidate is used.

以上の動作によって、変換キー1−1の押下に対し、そ
の押下する前述の状態で処理内容がかわり、単漢字変換
あるいは文節変換がなされる。特に本発明の実施例にお
いては、入力バッファ4にデータが有るか否かを判別し
て、有る場合には文節変換を行い、無い場合には単漢字
変換を行う。
Through the above-described operations, when the conversion key 1-1 is pressed, the processing contents change depending on the state in which the conversion key 1-1 is pressed, and single kanji conversion or bunsetsu conversion is performed. In particular, in the embodiment of the present invention, it is determined whether or not there is data in the input buffer 4, and if there is data, phrase conversion is performed, and if there is no data, single kanji conversion is performed.

特に入力バッファ4にデータが存在しない時に行う単漢
字変換は、確定されて文書メモリ5に格納された文書デ
ータのかなの部分を、漢字に変換することができる。第
4図は確定キー1−3あるいは候補表示に対応する選択
用数字キーを押下した時の文書確定の動作処理フローチ
ャートである。
In particular, single kanji conversion performed when no data exists in the input buffer 4 can convert the kana portion of document data that has been determined and stored in the document memory 5 into kanji. FIG. 4 is a flowchart of the document confirmation operation when the confirmation key 1-3 or the selection numeric key corresponding to the candidate display is pressed.

確定キー1−3あるいは数値キーが押下されるとそれに
対応した処理SKK、SSKを開始する。
When the confirm key 1-3 or the numeric key is pressed, the corresponding processes SKK and SSK are started.

なお、この処理の開始入力は異なるが、その処理そのも
のは全く同一のものであり、先ず、変換キーが以前に押
下され、現在変換モード中であるか否かの判別処理S1
3がなされる。例えば変換キーを押下していない時に数
値キー等を押下した時には判別処理S13において変換
モードでない(N)として、別処理SB(図示せず)を
実行する。変換モード中である時(Y)には次には候補
データが有るか歪力の判別処理S14を行う。変換キー
が押下されて、変換モードとなっていても前述した変換
処理において候補となる漢字が存在しないときもあるの
で、これを判別するのが判別処理14である。第4図に
示した動作フローチャートは確定処理であるので、候補
データが無い(N)時にはこのフロー内での処理はなく
、他の別処理SBを実行する。判別処理514において
候補データがあると判別(Y)した時には次には文節モ
ードであるか否かの判別処理S15を行う。
Although the start input for this process is different, the process itself is exactly the same. First, a process S1 is performed to determine whether the conversion key has been previously pressed and the conversion mode is currently in progress.
3 is done. For example, if a numeric key or the like is pressed while the conversion key is not pressed, it is determined that the conversion mode is not present (N) in the determination process S13, and another process SB (not shown) is executed. When the conversion mode is in effect (Y), next, a distortion force determination process S14 is performed to see if there is candidate data. Even if the conversion key is pressed and the conversion mode is set, there may be cases where there are no kanji characters that can be candidates in the conversion process described above, so the determination process 14 determines this. Since the operation flowchart shown in FIG. 4 is a confirmation process, when there is no candidate data (N), there is no process in this flow, and another separate process SB is executed. If it is determined in the determination process 514 that there is candidate data (Y), then a determination process S15 is performed to determine whether or not the phrase mode is set.

文節変換モードである時(Y)には文節変換における処
理を行う。先ず入カバソファ4内の被変換データを削除
816し、候補データを文書メモリ5に格納する(S1
7)。そして、候補データメモリ1.3内の候補データ
を消去818した後、文字数カウンタを減する処理S1
9を行う。被変換データを前述した処理S16において
削除しているので、この削除された数分前述した文字数
カウント減処理で減する。候補データメモリ13の出力
は文書メモリに加わっており、この確定における書込み
はプロセッサ回路2の制御によって確定した数字データ
が文書メモリに順次出力されて記憶される。これらの処
理SL6〜S19によって文節単位での漢字変換確定処
理がなされる。文節変換は入力された全てのかなに対し
て変換されるとは限らないので、次には文字数カウンタ
6の内容が0であるか否かの判別処理S20を行う。本
発明の実施例においてはこの判別は判断部7によってな
される。入力バッファ4内の格納されているデータが存
在する時には先ずは文字変換を行う様になされているの
で、判別処理S20において文字数カウンタ6の内容が
Oでない時(N)には残りのかなに対する次文節変換処
理S21を行う。
When in phrase conversion mode (Y), processing in phrase conversion is performed. First, the converted data in the input cover sofa 4 is deleted 816, and the candidate data is stored in the document memory 5 (S1
7). Then, after deleting 818 the candidate data in the candidate data memory 1.3, the process S1 of decrementing the character number counter
Do 9. Since the data to be converted is deleted in the process S16 described above, the deleted number is reduced by the character number count reduction process described above. The output of the candidate data memory 13 is added to the document memory, and the numerical data determined is sequentially output to the document memory and stored under the control of the processor circuit 2. Through these processes SL6 to S19, the kanji conversion confirmation process is performed in units of clauses. Since phrase conversion does not necessarily apply to all input kana, next a determination process S20 is performed to determine whether the content of the character number counter 6 is 0 or not. In the embodiment of the present invention, this determination is made by the determining section 7. When there is data stored in the input buffer 4, character conversion is first performed, so when the content of the character number counter 6 is not O (N) in the determination process S20, the next character conversion for the remaining kana is performed. Phrase conversion processing S21 is performed.

また、Oであった時(Y)には文節変換モードを解除S
22する。そしてこれらの処理321゜322を行った
後、本確定処理を終了する。
Also, when it is O (Y), the clause conversion mode is canceled S
22. After performing these processes 321 and 322, the main confirmation process ends.

前述した文節モード判別処理315は、結果的には入カ
バソファ4にかなが存在するか否かによってなされた処
理を判別するものである。なぜならば文字数カウンタ6
の内容がOであるか否かによって各変換データ指定処理
S6.S12が選択されてなされ、そのモードにおける
変換の結果によって押下された確定キーで確定処理がな
されるからである。よって文節変換モード判別処理S1
5において文節変換モードでない時(N)には、文書メ
モリ内のかなを漢字に変換する処理を行う。
The phrase mode determination process 315 described above ultimately determines the process performed depending on whether or not a kana is present in the entry cover sofa 4. Because character number counter 6
Each conversion data designation process S6. This is because S12 is selected and executed, and the confirmation process is executed by pressing the confirmation key depending on the result of conversion in that mode. Therefore, clause conversion mode determination processing S1
When the phrase conversion mode is not in step 5 (N), processing for converting kana in the document memory into kanji is performed.

先ず、候補文字が確定されたので(確定キーが押下され
たので、そのデータは候補データメモリ13に記憶され
ている)文書メモリ5内の被変換データを削除する処理
S23を行った後候補データを文書メモリ5に格納する
処理S24を行う。
First, since the candidate character has been confirmed (the data is stored in the candidate data memory 13 because the confirm key was pressed), the candidate character is deleted after performing the process S23 of deleting the converted data in the document memory 5. A process S24 is performed to store the file in the document memory 5.

これによってカーソルで指示された以後のかなが漢字に
変換される。しかしながら、文節変換モードでないすな
わち単漢字モードの時にはかなに対し1個の漢字にしか
変換しないので、この場合には更にかなが変換した漢字
のあとに続くか否かを判別する。そして続く場合には再
度単漢字変換を行わなくてはならない。なぜならば、こ
こで終了した場合には、カーソルを移動して再度変換キ
ー1−1を押下しなくてはならないからである。この様
なことを防止するため、本発明の実施例においては、そ
の変換処理したあとに続くかなを検出する処理S25を
行っている。続くかなが存在しない時(N)には更にそ
の後の文章や文節にかなが存在するか否かを検索(S2
6)する。そして判別処理S27において検索結果が判
別される。
This will convert the kana after the cursor to kanji. However, when it is not in the clause conversion mode, that is, when it is in the single kanji mode, only one kanji is converted from kana, so in this case, it is further determined whether or not a kana follows the converted kanji. If it continues, the single kanji conversion must be performed again. This is because if the process ends here, the cursor must be moved and the conversion key 1-1 pressed again. In order to prevent such a situation, in the embodiment of the present invention, a process S25 is performed to detect the kana following the conversion process. When there is no kana that follows (N), it is further searched to see if there is a kana in the subsequent sentence or phrase (S2
6) Do. Then, the search results are determined in determination processing S27.

このかな有か否かの判別処理327においてかな無しと
判別した時(N)には単漢字変換モードを解除する処理
(328)を行った後、全ての処理を終了する。
When it is determined that there is no kana in the kana presence/absence determination process 327 (N), the single kanji conversion mode is canceled (328), and then all processes are terminated.

一方、判別処理S25において次に続く文字がかなであ
った時(Y)や、更に検索処理S26によって検索し判
別処理S27でかな有りと判別した時(Y)には、対照
となるかなに対する単漢字変換処理329を行う。そし
て変換データを候補メモリS30に格納する(S30)
とともに候補表示処理S31を行って処理を終了する。
On the other hand, when the next character is a kana in the discrimination process S25 (Y), or when it is determined in the search process S26 that there is a kana in the discrimination process S27 (Y), the character corresponding to the contrasting kana is Kanji conversion processing 329 is performed. Then, the converted data is stored in the candidate memory S30 (S30)
At the same time, candidate display processing S31 is performed, and the processing ends.

なお、これらの処理S30.S31は前述した処理S7
゜S8と同じである。前述した確定処理においては、対
照となるかなが全て漢字に変換された時には文節変換モ
ードや単漢字変換モードを解除して処理を終了する。し
かしながら1文節変換モードや単漢字変換モードの時に
更に漢字に変換するかなが存在する時には、その残りの
かなに対して変換処理と表示を行って処理を終了する。
Note that these processes S30. S31 is the process S7 described above.
゜Same as S8. In the above-described confirmation process, when all the kana to be compared are converted to kanji, the phrase conversion mode or single kanji conversion mode is canceled and the process ends. However, if there are further kana to be converted into kanji in the one-phrase conversion mode or the single kanji conversion mode, the remaining kana are converted and displayed, and the process ends.

よって、使用者は確定キーを押下しても、まだ残ったか
なが自動的漢字に変換されて表示されるので、再度目的
の漢字への確定キーの押下のみで、変換が行える。
Therefore, even if the user presses the confirm key, the remaining kana characters are automatically converted to kanji and displayed, so that conversion can be performed simply by pressing the confirm key again to the desired kanji.

第2図は本発明の実施例におけるかなを漢字に変換する
動作の説明図である。第2図(A)に示すように「この
たび」と入力され文書メモリ5に格納さた後に[わがし
費が]なるかな文節を入力した時には、変換キー1−1
の押下によって第2図(B)に示す「このたび、我社が
」なる漢字に変換されて表示される;図中アンダーパー
は現在変換対照となる文節を表わしている。目的の漢字
であるのでオペレータが確定キーを押下するとその文が
確定されて第2図(C)に示すようにその文の後にカー
ソルが表示される。ここで、例えばオペレータが「この
たび、」の文の“たび”を漢字にすべきであると考え、
カーソルキー味ヨを押下して“このたび1の“た”の位
置にカーソルを移動しく第2図D)、変換キーを押下す
ると、“た”とその後に続く“び”に対応した候補漢字
“度”、“旅゛が表示される。前述の変換すなわち“我
社”の時には候補が1個しか存在しなかったので、表示
文中に変換結果が表示されるが、“たび”等の場合には
複数の候補漢字が存在するので表示文の下に表示される
。そして■が目的とした漢字であるので、第2図(F)
に示すように口のキーの押下によって“たび”が“度”
に変換されて文中に挿入される。
FIG. 2 is an explanatory diagram of the operation of converting kana to kanji in the embodiment of the present invention. As shown in FIG. 2 (A), when "Kontoki" is inputted and stored in the document memory 5, and then the phrase "Wagashi Expenses" is inputted, the conversion key 1-1 is pressed.
By pressing , it is converted into the kanji ``This time, our company'' shown in Figure 2 (B) and displayed; the under par in the figure represents the phrase that is currently being converted. Since this is the desired kanji, when the operator presses the confirm key, the sentence is confirmed and a cursor is displayed after the sentence as shown in FIG. 2(C). For example, if the operator thinks that "tabi" in the sentence "Kontoki," should be written in kanji,
Press the cursor key Ajiyo to move the cursor to the position of ``ta'' in 1 (Fig. 2 D), and press the conversion key to select the candidate kanji corresponding to ``ta'' and the following ``bi''. “Degree” and “Travel” are displayed. In the case of the conversion mentioned above, ``Our Company'', there was only one candidate, so the conversion result is displayed in the displayed sentence, but in the case of ``Tabi'', etc., there are multiple candidate kanji, so the displayed sentence displayed below. And since ■ is the desired kanji, Figure 2 (F)
As shown in the figure, “tabi” changes to “degree” by pressing the mouth key.
and inserted into the sentence.

以上延べたように本発明は、入力バッファに入っている
文字数によって変換モードを切換えて変換を行っている
。しかし般がら、本発明はこれに限らず、例えば文書メ
モリ中に各文字にフラグを設け、未確定のかなに対して
、例えば文節変換を行い、確定しているかなに対しては
単漢字変換等を行うようにすることが可能である。また
、1回目の文節変換モードにおける変換と、その後に行
う単漢字変換モードにおける変換をカーソルシフトキー
の例え【旧の操作で制御させたり、日の操作でかなの部
分に漢字を飛ばして移動させる等することにより、更に
変換操作を少なくすることが可能である。
As described above, the present invention performs conversion by switching the conversion mode depending on the number of characters in the input buffer. However, in general, the present invention is not limited to this. For example, a flag is set for each character in the document memory, and for example, bunsetsu conversion is performed for undetermined kana, and single kanji conversion is performed for determined kana. It is possible to do the following. In addition, the first conversion in bunsetsu conversion mode and the subsequent conversion in single kanji conversion mode can be compared to the cursor shift key [controlling with the old operation, skipping kanji to the kana part with day operation, etc. By doing so, it is possible to further reduce the number of conversion operations.

更に、本発明では文節変換と単漢字変換を用いているが
、これに限らず複文節と文節や、文章、複文節、文節、
単漢字等の順に行えるようにすることも可能である。
Furthermore, although bunsetsu conversion and single kanji conversion are used in the present invention, the present invention is not limited to this, and is not limited to compound bunsetsu and bunsetsu, sentences, compound bunsetsu, bunsetsu,
It is also possible to do it in the order of single kanji, etc.

〔発明の効果〕〔Effect of the invention〕

以上、延べたように本発明は入力したかなを文節や単漢
字単位で変換する他に、文書として記憶されたものに対
しても、かなであれば再度それを漢字に変換出来るよう
にしたものであり、本発明によれば、変換単位の異なる
文章におけるかな漢字変換において変換単位の切換え操
作が不要で、変換処理を高速で行えるかな漢字変換装置
を得ることができる。
As mentioned above, the present invention not only converts input kana in units of clauses or single kanji, but also converts input kana into kanji again if it is kana, even if it is stored as a document. According to the present invention, it is possible to obtain a kana-kanji conversion device that eliminates the need for a conversion unit switching operation in kana-kanji conversion of sentences with different conversion units, and can perform conversion processing at high speed.

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

第1図は本発明の実施例の回路構成図、第2図は本発明
の詳細な説明図、 第3図は変換キーに対する動作処理フローチャート、 第4図は確定キー、数値キーに対する動作処理フローチ
ャートである。 ■・・・キーボード、 ■−1・・・変換キー、 1−3・・・確定キー、 2・・・プロセッサ回路 4・・・入カバソファ、 5・・・文書メモリ、 6・・・文字数カウンタ、 7・・・判断部、 8・・・入力セレクタ、 9・・・変換器セレクタ、 10・・・文節変換器、 11・・・単漢字変換器、 12・・・判断部、 13・・・候補データメモリ。 特許 出願人   カシオ計算機株式会社A\ジ刊≦n
月め 重カイ乍のΔ乞〜弓図第2図 第3図
Fig. 1 is a circuit configuration diagram of an embodiment of the present invention, Fig. 2 is a detailed explanatory diagram of the invention, Fig. 3 is a flowchart of operation processing for conversion keys, and Fig. 4 is a flowchart of operation processing for confirmation keys and numerical keys. It is. ■...Keyboard, ■-1...Conversion key, 1-3...Confirmation key, 2...Processor circuit 4...Input cover sofa, 5...Document memory, 6...Character number counter , 7... Judgment unit, 8... Input selector, 9... Converter selector, 10... Phrase converter, 11... Single kanji converter, 12... Judgment unit, 13...・Candidate data memory. Patent Applicant Casio Computer Co., Ltd. Published by A\J≦n
Tsukime Jukai's ΔKai ~ Bow Figure 2 Figure 3

Claims (3)

【特許請求の範囲】[Claims] (1)日本語ワードプロセッサにおいて、 変換かな文字数の多い変換単位でかなを漢字に変換する
指定を行う第1の変換指定手段と、変換かな文字数の少
ない変換単位でかなを漢字に変換する指定を行う第2の
変換指定手段と、かなを漢字に変換するかな漢字変換手
段とを有し、 変更確定前の未変換文字列に対し、前記第1の変換指定
手段の制御で前記かな漢字変換手段が動作し、変更確定
後の無変換文字列に対し、前記第2の変換指定手段の制
御で前記かな漢字変換手段が動作することを特徴とした
かな漢字変換装置。
(1) In a Japanese word processor, the first conversion specification means specifies converting kana to kanji in a conversion unit with a large number of conversion kana characters, and specifies converting kana to kanji in a conversion unit with a small number of conversion kana characters. It has a second conversion specification means and a kana-kanji conversion means for converting kana into kanji, and the kana-kanji conversion means operates under the control of the first conversion specification means with respect to the unconverted character string before the change is confirmed. . A kana-kanji conversion device, wherein the kana-kanji conversion means operates on the unconverted character string after the change is confirmed, under the control of the second conversion designation means.
(2)前記かな漢字変換手段は単漢字変換手段と文節変
換手段より成り、前記第1の変換指定手段は前記文節変
換手段による変換指定を行い、前記第2の変換指定手段
は前記単漢字変換手段による変換指定を行うことを特徴
とした特許請求の範囲第1項記載のかな漢字変換装置。 する。
(2) The kana-kanji conversion means is comprised of a single-kanji conversion means and a bunsetsu conversion means, the first conversion specification means specifies conversion by the clause conversion means, and the second conversion specification means is the single-kanji conversion means. 2. A kana-kanji conversion device according to claim 1, characterized in that the conversion is specified by the following. do.
(3)前記第2の変換指定手段は前記日本語ワードプロ
セッサが有する表示部で表示されるカーソルの位置以後
のかなを漢字に変換する指定を行うことを特徴とした特
許請求の範囲第1項記載のかな漢字変換装置。
(3) The second conversion specifying means specifies converting kana to kanji after the cursor position displayed on the display unit of the Japanese word processor. Kana-kanji conversion device.
JP60263336A 1985-11-22 1985-11-22 Kana-to-kanji converter Pending JPS62123558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60263336A JPS62123558A (en) 1985-11-22 1985-11-22 Kana-to-kanji converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60263336A JPS62123558A (en) 1985-11-22 1985-11-22 Kana-to-kanji converter

Publications (1)

Publication Number Publication Date
JPS62123558A true JPS62123558A (en) 1987-06-04

Family

ID=17388057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60263336A Pending JPS62123558A (en) 1985-11-22 1985-11-22 Kana-to-kanji converter

Country Status (1)

Country Link
JP (1) JPS62123558A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012164270A (en) * 2011-02-09 2012-08-30 Kyocera Corp Portable electronic apparatus, display control method and display control program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012164270A (en) * 2011-02-09 2012-08-30 Kyocera Corp Portable electronic apparatus, display control method and display control program

Similar Documents

Publication Publication Date Title
JP3176059B2 (en) Translation equipment
JPS62123558A (en) Kana-to-kanji converter
JP3042284B2 (en) Japanese input device
JPS60129874A (en) Japanese word input device
JPS605318A (en) Input device of sentence composed of kana and kanji
JPS61249167A (en) Kana-kanji converting system
JPH0467227B2 (en)
JPS61255467A (en) Machine translating system
JPH0981555A (en) Method and device for document processing
JPH05342197A (en) Japanese word processor
JPH0850542A (en) Input device for plural windows
JPH1011433A (en) Method and device for homonym selection of japanese syllabary-chinese character conversion system
JPH08314913A (en) Kana (japanese sylalbary)/kanji (chinese syllabary) conversion device
JPS6336365A (en) Japanese language processor
JPS6398069A (en) Document preparing device
JPH06314277A (en) Document preparing device
JPH1040243A (en) Character processing method and device therefor
JPH03245260A (en) Document processor
JPS6215654A (en) Input device for japanese sentence
JPH0128977B2 (en)
JPS60178574A (en) Character string processor
JPS6118064A (en) Electronic device
JPS61211765A (en) Character information input system
JPH01144158A (en) Input system for chinese sentence
JPH04155571A (en) Document processor