JPS62189569A - Kanji/kana converting device - Google Patents

Kanji/kana converting device

Info

Publication number
JPS62189569A
JPS62189569A JP61031697A JP3169786A JPS62189569A JP S62189569 A JPS62189569 A JP S62189569A JP 61031697 A JP61031697 A JP 61031697A JP 3169786 A JP3169786 A JP 3169786A JP S62189569 A JPS62189569 A JP S62189569A
Authority
JP
Japan
Prior art keywords
kanji
kana
conversion
character
read
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
JP61031697A
Other languages
Japanese (ja)
Inventor
Toru Yamakita
徹 山北
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 JP61031697A priority Critical patent/JPS62189569A/en
Publication of JPS62189569A publication Critical patent/JPS62189569A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To expand the using scope of a KANJI (Chinese character) KANA (Japanese syllabary) converting device by applying the function to convert KANJI and KANA. CONSTITUTION:The device is equipped with a converting dictionary memory means 01, a memory position information memory means 02, a means 03 to read memory position information and a means to retrieve KANA to be read corresponding to the KANJI or an idiom of the converting object. The reading means 03 reads the memory position information to the KANJI and the idiom of the converting object from the memory position information memory means 02. A retrieving means 4 retrieves the KANA to be read corresponding to the KANJI or the idiom of the converting object from the converting dictionary memory means 01 designated by the read memory position information.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、漢字をかなへ変換する装置であって、日本語
ワードプロセッサ等に適用される技術分野に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a device for converting kanji to kana, and relates to a technical field applied to Japanese word processors and the like.

[発明の概要] 本発明は、日本語の文書データを処理する装置であって
、漢字をかなに変換する機能を付加することによって、
その利用節回を拡大可能にする装置である。
[Summary of the Invention] The present invention is a device for processing Japanese document data, and by adding a function to convert kanji to kana,
This is a device that allows you to expand the usage savings.

[従来の技術〕 従来の日本glワードブOセッサはかなを漢字に変換す
るように構成されているが、漢字をかなに変換するもの
は無かった。
[Prior Art] Conventional Japanese GL word book processors are configured to convert kana to kanji, but there is no one that converts kanji to kana.

[発明が解決しようとする問題点] 従来の装置では、その記憶媒体に既にかな漢字混り文と
して記憶されている文書中において、漢字もしくは熟語
の読みがなを随時出力したい場合が多々尋ったが、従来
の装置では不可能であった。
[Problems to be Solved by the Invention] With conventional devices, there are many cases where it is desired to output the readings of kanji or compound words at any time in a document that is already stored in the storage medium as a sentence containing kana and kanji. However, this was not possible with conventional equipment.

更に、従来のかな漢字変換辞書は、かなを漢字に変換す
るための構成になっており、漢字をかなに変換するには
不適当であった。
Furthermore, conventional kana-kanji conversion dictionaries are designed to convert kana to kanji, and are unsuitable for converting kanji to kana.

[問題点を解決するための手段] 第1図は本発明のブロック図である。01は変換辞書記
憶手段、02は記憶位置情報記憶手段、O3は記憶位置
情報を読み出す手段、04は変換対象の漢字もしくは熟
語に対応する読みがなを検索する手段である。
[Means for Solving the Problems] FIG. 1 is a block diagram of the present invention. 01 is a conversion dictionary storage means, 02 is a storage position information storage means, O3 is a means for reading out the storage position information, and 04 is a means for searching for a reading corresponding to a kanji or compound word to be converted.

[作 用コ 第1図において、読み出す手段03は変換対象の漢字、
熟語に対応する記憶位置情報を記憶位置情報記憶手段0
2より読み出し、検索する手段04は前記読み出された
記憶位置情報で指定される変換辞書記憶手段01より変
換対象の漢字もしくは熟語に対応する読みがなを検索す
る。
[Operation In Figure 1, the reading means 03 reads the kanji to be converted,
Storage location information storage means 0 stores storage location information corresponding to the idiom.
The reading and searching means 04 searches the conversion dictionary storage means 01 designated by the read storage location information for the reading corresponding to the kanji or compound word to be converted.

[実施例] (1)構成 第2図は本発明の一実施例を示す回路構成図である。1
は入力部であり、かなもしくは漢字を入力する手段を備
えている他、かなを漢字に変換指定するための漢字変換
/次候補キー1a、漢字をかなに変換指定するためのか
な変換/次候補キー1bを有している。2はCPtJで
あり、かな索引テーブル3、漢字索引テーブル4、変換
辞書メモリ5、付属語辞書メモリ6を参照して、かな漢
字変換もしくは漢字かな変換を行う。かな漢字検索テー
ブル3は、第3図に示すように、かな及びこのかなに対
応する熟語の親文字が記憶されている。
[Embodiment] (1) Configuration FIG. 2 is a circuit configuration diagram showing an embodiment of the present invention. 1
is an input section, which includes means for inputting kana or kanji, as well as a kanji conversion/next candidate key 1a for specifying conversion of kana to kanji, and a kana conversion/next candidate key for specifying conversion of kanji to kana. It has a key 1b. 2 is CPtJ, which performs kana-kanji conversion or kanji-kana conversion by referring to the kana index table 3, the kanji index table 4, the conversion dictionary memory 5, and the adjunct word dictionary memory 6. As shown in FIG. 3, the kana-kanji search table 3 stores the parent characters of kana and idioms corresponding to this kana.

例えば「はんあん」に対応する熟語は「本案」及び「翻
案」であるが、この熟語の親文字であるV本」及び「翻
」が記憶されている。尚、この実施例では親文字を記憶
するようにしたが、後述する変換辞書メモリ5に記憶さ
れている親文字のアドレスもしくは親文字の読みが記憶
されているアドレスに替えてかなを記憶するように構成
してもよい。漢字索引テーブル4は第4因に示すように
、漢字コード(図中、(亜) (奔)(本)(翻)・・
・で示す〉でアドレス指定される記憶位置に変換辞書メ
モリ5内の親文字を指定する親文字ポインタ(図中、八
1・・・Ai 、 Ai +1 、 Ai +2・・・
で示す)を記憶している。変換辞書メモリ5は、第5図
に示すように、親文字「奔」 「本」 「翻」等に関連
する付属文字が連続的に配列され、且つ親文字の読み及
び付属文字の読みが漢字に対応して連続的に配列して記
憶されている。同一の熟語で読みが複数通りあるもの、
例えば「本命」は「はんみよう」及び「はんめい」と読
まれるが、これは同図に示すように「命/みょう」及び
「命/めい」の如く同一の付属文字及び異なる読みが記
憶される。また、親文字の読みが複数通りあるもの、例
えば「本」は「ぼん」及び「ちと」と読まれるが、これ
は同図に示すように「はん」に関連する付属文字及びそ
の読みを連続的に記憶し、NEXTコードで区分される
位置から「もと」に関連する付属文字及びその読みを連
続的に記憶する。また、ENDコードの位置でその親文
字に関連する熟語の検索を終了する。付属後辞書メモリ
6は、接頭語、接尾語、助詞、助動詞等を記憶するメモ
リである。7はかな漢字混り文を記憶する文書メモリで
あり、変換対象の文字列もしくは変換結果の文字列が記
憶される。8は、印字、表示のための文字パターン及び
CPCI2の処理動作のためのプログラムを記憶するR
OMである。9はRAMで、後述する処理動作のための
各種ポインタ等を記憶する。10は表示部、11は印字
部である。
For example, the idioms corresponding to ``hanan'' are ``hongan'' and ``adaptation'', but the parent characters of this idiom, ``Vhon'' and ``han'', are stored. In this embodiment, the parent character is stored, but it is also possible to store the kana instead of the address of the parent character stored in the conversion dictionary memory 5, which will be described later, or the address where the pronunciation of the parent character is stored. It may be configured as follows. As shown in the fourth factor, Kanji index table 4 has kanji codes (in the figure, (A) (奔) (本) (translation)...
A parent character pointer (in the figure, 81... Ai, Ai +1, Ai +2...
) is memorized. As shown in FIG. 5, in the conversion dictionary memory 5, attached characters related to the parent characters "ben", "hon", "han", etc. are arranged continuously, and the readings of the parent characters and the attached characters are kanji. are sequentially arranged and stored in correspondence with each other. The same idiom with multiple readings,
For example, ``honmei'' is read as ``hanmiyo'' and ``hanmei,'' but as shown in the same figure, the same auxiliary characters and different readings can be read as ``life/myo'' and ``life/mei.'' be remembered. In addition, the parent character can be read in multiple ways, for example, ``hon'' is read as ``bon'' and ``chito,'' but as shown in the same figure, this also means that the auxiliary characters related to ``han'' and their readings are also read as ``bon.'' The attached characters related to the "original" and their pronunciations are continuously stored from the position divided by the NEXT code. Further, the search for a phrase related to the parent character is terminated at the position of the END code. The attached post-dictionary memory 6 is a memory that stores prefixes, suffixes, particles, auxiliary verbs, and the like. 7 is a document memory that stores sentences containing kana and kanji, and stores character strings to be converted or character strings resulting from conversion. 8 stores character patterns for printing and display and programs for processing operations of CPCI2;
It's OM. Reference numeral 9 denotes a RAM that stores various pointers and the like for processing operations to be described later. 10 is a display section, and 11 is a printing section.

(21動作 第6図はCPtJ2の処理動作を示すフローチャートで
ある。81以下は漢字変換/次候補キー1a@操作した
際の動作を示すフローチャートであり、82(l以下は
かな変換/次候補キー1bを操作した際のフローチャー
トを示す。入力部1より入力されたかな文字列、もしく
は文書メモリ7内のかな文字列を表示部10に表示し、
変換対象のかな文字列をカーソルで指定した後に漢字変
換/次候補キー18を操作すると、SlでフラグF1の
状態が検出される。フラグFs’Etび後述するフラグ
F2は変換結果が確定した後にO″に設定されるフラグ
であり、RAM9に記憶される。漢字変換/次候補キー
1aの最初の操作では、SlでFl−0と判定され、$
2でフラグF1が1′″にセットされる。次の89でか
な検索テーブル3が参照され、変換対象のかなと対応す
る熟語、漢字の親文字が読み出され、更に、S4で前記
読み出された親文字に対応する親文字ポインタが漢字索
引テーブル4から読み出される。次にS5で、この親文
字ポインタで指定される変換辞書メモリ5から親文字に
対応する読みがなが読み出され、親文字と関連する付几
文字に対応する読みがなの記憶位置を示す読みがなポイ
ンタが更新される。そして、親文字の読みと読みがなポ
インタで示される付属文字の読みとが合成される。但し
、S4から85へ移行した最初の85の処理では親文字
の読みだけが読み出される。次の86では、変換辞書メ
モリ5から読み出された読みと変換対象のかな文字列と
が比較される。不一致であればS7で変換辞書メモリ5
からENDコードが検出されるまで85〜Sもの処理を
繰り返す。即ち、読みがなポインタを順次更新し、変換
対象文字列と比較する。S7でENDコードが検出され
た際には、S8で、かな検索テーブル3に、他の親文字
ポインタが記憶されているか否かを検出し、記憶されて
いれば84以下の処理に戻る。S8で、次の親文字ポイ
ンタがなく、しかもSgでFs −Oが検出された際は
処理を終了する。SsでFs−1が検出された際は、後
述するように、同音語の次候補指定がなされている場合
であり、この場合は、読みがなポインタを親文字の読み
がなの位置に初期設定してS5の処理へ戻る。前記S6
の処理で、一致が検出された場合は、sllで、読みが
なと対応する親文字もしくは親文字と付属文字の合成文
字から成る熟語を変換結果の漢字、熟語として読み出す
。尚、読み出された漢字、熟語が文法的に正しいか否か
を付属語辞書メモリ6を参照して判別し、文法的に誤t
りであった場合は変換対象文字列の先頭文字もしくは末
尾文字を削除もしくは付加(伸張)して前述した83以
下の処理を行うようにするが、この手法は従来と同様で
あるのでその説明は省略する。次に、812で正しく変
換されたデータを文書メモリ7へ書ぎ込み、S13で表
示部10に表示した後、FsをII Oflに設定して
処理を終了する。表示された変換結果の漢字、熟語の他
の同音語を出力したい場合は再び漢字変換/次候補キー
18を操作する。
(21 operation Figure 6 is a flowchart showing the processing operation of CPtJ2. 81 and below is a flowchart showing the operation when operating kanji conversion/next candidate key 1a@, and 82 (l and below kana conversion/next candidate key 1b is shown. A kana character string input from the input section 1 or a kana character string in the document memory 7 is displayed on the display section 10,
When the kanji conversion/next candidate key 18 is operated after specifying the kana character string to be converted with the cursor, the state of the flag F1 is detected at Sl. The flag Fs'Et and the flag F2, which will be described later, are flags that are set to O'' after the conversion result is finalized, and are stored in the RAM 9. In the first operation of the kanji conversion/next candidate key 1a, press Sl to set Fl-0. It was determined that $
The flag F1 is set to 1'' in step 2. Next, the 89-digit kana search table 3 is referred to, and the parent character of the compound word or kanji corresponding to the kana to be converted is read out. The parent character pointer corresponding to the specified parent character is read from the kanji index table 4. Next, in S5, the pronunciation corresponding to the parent character is read from the conversion dictionary memory 5 specified by this parent character pointer. The reading pointer indicating the storage location of the reading corresponding to the attached character associated with the parent character is updated.Then, the reading of the parent character and the reading of the attached character indicated by the reading pointer are combined. However, in the first process 85 from S4 to 85, only the pronunciation of the parent character is read out.In the next process 86, the pronunciation read out from the conversion dictionary memory 5 and the kana character string to be converted are compared. If there is a mismatch, the conversion dictionary memory 5 is
The process from 85 to S is repeated until the END code is detected. That is, the reading pointer is sequentially updated and compared with the character string to be converted. When the END code is detected in S7, it is detected in S8 whether or not another parent character pointer is stored in the kana search table 3, and if it is stored, the process returns to steps 84 and below. In S8, if there is no next parent character pointer and Fs - O is detected in Sg, the process ends. When Fs-1 is detected in Ss, as described later, the next homophone candidate has been specified, and in this case, the reading pointer is initially set to the position of the reading of the parent character. Then, the process returns to S5. Said S6
If a match is detected in the process, the idiom consisting of the parent character corresponding to the pronunciation or the composite character of the parent character and the attached character is read out as the converted kanji or idiom. In addition, it is determined whether the read kanji or compound words are grammatically correct or not by referring to the attached word dictionary memory 6, and grammatically incorrect words are determined.
If it is, the first character or the last character of the string to be converted is deleted or added (expanded) and the above-mentioned process below 83 is performed, but since this method is the same as before, the explanation is as follows. Omitted. Next, in step 812, the correctly converted data is written into the document memory 7, and after displaying it on the display unit 10 in step S13, Fs is set to II Ofl, and the process ends. If you wish to output other homophones of the displayed kanji or compound words, operate the kanji conversion/next candidate key 18 again.

この場合は、SlでFs−1と判断され、StsでFs
に′1”を設定し、前記85以下の処理を行い、次の同
音語を変換辞書メモリ5がら検索する。
In this case, Sl is determined to be Fs-1, and Sts is determined to be Fs
is set to ``1'', the above-mentioned processes 85 and below are performed, and the conversion dictionary memory 5 is searched for the next homophone.

また、漢字をかなに変換する場合は、変換対象の漢字を
カーソル等で指定した後に、がな変換/次候補キー1b
を操作する。この時、CPLJ2は第6図のフローチャ
ートの8211以下の処理動作を実行する。S22で変
換対象の漢字が2N11以上の熟語から成る場合は、先
頭の漢字が検出され、32Bで、先頭の漢字に対応する
親文字ポインタが漢字索引テーブル4から読み出される
。次に、S24で、変換辞書メモリ5が親文字ポインタ
によって指定され親文字と親文字に付属する付属文字と
が合成された熟語が読み出される。付属文字は漢字ポイ
ンタで指定され、順次更新される。また、S23から8
24への最初の移行時におけるS24の処理では親文字
の漢字のみが読み出される。825で、変換辞書メモリ
5から読み出された漢字と変換対象の漢字とが比較され
。829で一致した漢字に対応する読みがなが変換結果
として読み出される。かな変換/次候補キー1bを続け
て操作すると次の読みがな候補が変換辞書メモリ5から
検索されて出力される。
Also, when converting a kanji to kana, after specifying the kanji to be converted with the cursor etc., press the Gana conversion/Next candidate key 1b.
operate. At this time, the CPLJ2 executes the processing operations from 8211 onwards in the flowchart of FIG. If the kanji to be converted consists of a compound word of 2N11 or more in S22, the first kanji is detected, and the parent character pointer corresponding to the first kanji is read from the kanji index table 4 in 32B. Next, in S24, the conversion dictionary memory 5 is designated by the parent character pointer, and a compound word in which the parent character and the accessory character attached to the parent character are combined is read out. Ancillary characters are specified using kanji pointers and are updated sequentially. Also, from S23 to 8
In the process of S24 at the first transition to 24, only the parent character kanji is read out. At 825, the kanji read from the conversion dictionary memory 5 and the kanji to be converted are compared. The pronunciation corresponding to the matched kanji in 829 is read out as a conversion result. When the kana conversion/next candidate key 1b is operated continuously, the next reading candidate is retrieved from the conversion dictionary memory 5 and output.

[発明の効果コ 以上のように、本発明によれば、漢字からがなへの変換
が効率良く行なえるため、日本語ワードプロセット等に
適用した際に、読みがなが不明な熟語や振りがなを付し
たい熟語を随時かなに変換でき、また漢字にするには不
適当であったものをかなに戻すこともできる等その利用
範囲が大幅に拡大する。
[Effects of the invention] As described above, according to the present invention, conversion from kanji to kana can be performed efficiently, so when applied to a Japanese word processing set, etc. The scope of its use is greatly expanded, as it allows you to convert phrases you want to add furigana to kana at any time, and it also allows you to convert phrases that are inappropriate for kanji back to kana.

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

第1図は本発明のブロック図、第2図は本発明の一実施
例を示す回路構成図、第3図はかな索引テーブルの構成
図、第4図は漢字索引テーブルの構成図、第5図は変換
辞書メモリの構成図、第6図はCPU2の動作を示すフ
ローチャートである。 1・・・入力部、2・・・CPU、3・・・かな索引テ
ーブル、4・・・漢字索引テーブル、5・・・変換辞書
メモリ。 少声改、/、刀ジオ町専磯枢磨4虹 第1図 第3図       第4図
FIG. 1 is a block diagram of the present invention, FIG. 2 is a circuit configuration diagram showing an embodiment of the present invention, FIG. 3 is a configuration diagram of an ephemeral index table, FIG. 4 is a configuration diagram of a kanji index table, and FIG. 5 is a configuration diagram of a kanji index table. The figure is a block diagram of the conversion dictionary memory, and FIG. 6 is a flowchart showing the operation of the CPU 2. 1... Input unit, 2... CPU, 3... Kana index table, 4... Kanji index table, 5... Conversion dictionary memory. Shosei Kai, /, Tojio Town Seniso Kurama 4 Rainbow Figure 1 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 漢字もしくは熟語をその読みがなと対応して記憶する変
換辞書記憶手段と、漢字に対応して前記変換辞書記憶手
段の記憶位置を示す記憶位置情報を記憶する記憶位置情
報記憶手段と、変換対象の漢字もしくは変換対象の熟語
の一部を構成する漢字に対応する記憶位置情報を前記記
憶位置情報記憶手段より読み出す手段と、読み出された
記憶位置情報で指定される前記変換辞書記憶手段の記憶
位置より変換対象の漢字もしくは熟語に対応する読みが
なを検索する手段とよりなる漢字かな変換装置。
A conversion dictionary storage means for storing kanji or compound words in correspondence with their readings; a storage location information storage means for storing storage position information indicating a storage position of the conversion dictionary storage means in correspondence with kanji; and a conversion target. means for reading storage location information corresponding to a kanji character or a kanji character forming part of a compound word to be converted from the storage location information storage means, and storage in the conversion dictionary storage means specified by the read storage location information. A kanji-kana conversion device consisting of means for searching the reading corresponding to a kanji or compound word to be converted based on its position.
JP61031697A 1986-02-15 1986-02-15 Kanji/kana converting device Pending JPS62189569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61031697A JPS62189569A (en) 1986-02-15 1986-02-15 Kanji/kana converting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61031697A JPS62189569A (en) 1986-02-15 1986-02-15 Kanji/kana converting device

Publications (1)

Publication Number Publication Date
JPS62189569A true JPS62189569A (en) 1987-08-19

Family

ID=12338262

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61031697A Pending JPS62189569A (en) 1986-02-15 1986-02-15 Kanji/kana converting device

Country Status (1)

Country Link
JP (1) JPS62189569A (en)

Similar Documents

Publication Publication Date Title
JPH0620192Y2 (en) Chinese display
JPH0447440A (en) Converting system for word
JPS62189569A (en) Kanji/kana converting device
JPS63313268A (en) Reading retrieving device in document forming device
JPS6246029B2 (en)
JPS62212877A (en) Kanji/kana converter
JPS62189568A (en) Kana kanji mutual conversion device
JP2584734B2 (en) Character processor
JPS62189565A (en) Kana/kanji converting device
JPH07210571A (en) Device and method for word retrieval processing
JPS62212876A (en) Kana/kanji mutual converter
JP3273778B2 (en) Kana-kanji conversion device and kana-kanji conversion method
JPS60129875A (en) Season word conversion system for kana/kanji converter
JPS62144269A (en) Information retrieving device
JPH06314292A (en) Information processor
JPS62168263A (en) Kana-kanji mutual converter
JPS6175954A (en) Input system of kanji data
JPS6198475A (en) Japanese sentence input device
JPS62189567A (en) Kanji/kana converting device
JPS60217452A (en) Japanese word input processing unit
JPH10154141A (en) Kana-to-kanji (japanese syllabary-to-chinese character) conversion device
JPS62174866A (en) Kana-kanji mutual converter
JPS60107171A (en) Voice kana (japanese syllabary) kanji (chinese character) converting system
JPS60204063A (en) Kanji correcting system
JPH05189414A (en) Word processor and its system