JPH06203017A - Document preparing device - Google Patents

Document preparing device

Info

Publication number
JPH06203017A
JPH06203017A JP3248186A JP24818691A JPH06203017A JP H06203017 A JPH06203017 A JP H06203017A JP 3248186 A JP3248186 A JP 3248186A JP 24818691 A JP24818691 A JP 24818691A JP H06203017 A JPH06203017 A JP H06203017A
Authority
JP
Japan
Prior art keywords
reading
numerical value
kana
numeral
converted
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
JP3248186A
Other languages
Japanese (ja)
Inventor
Mitsuhiro Amo
光宏 天羽
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP3248186A priority Critical patent/JPH06203017A/en
Publication of JPH06203017A publication Critical patent/JPH06203017A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To easily obtain desired various numeral expressions by inputting various KANA (Japanese syllabary) reading to a numerical value, and allowing it to be subjected to KANA to KANJI (Chinese character) conversion. CONSTITUTION:In inputted KANA reading, KANA reading for discriminating reading for showing 1-9, reading for showing a digit of a numeral, and other expression and showing a numerical part is converted temporarily to Arabic numerals, and by setting this converted Arabic numerals to a key, a candidate numeral expression containing a KANJI, a numeral, etc., is obtained by a dictionary 22 in a ROM 2. In such a state, a numeral value of 'issen', (1000), etc., whose reading is inputted by a KANA, and a numerical value of 'it is happyaku tonde yon (804)', etc., can be converted to a numerical value having a desired numeral expression by only KANA to KANJI conversion. Also, when Arabic numerals are set as a key, and numerals of each country, or a numerical candidate for which a comma is put at every other 3 digits, etc., are registered in advance in the dictionary 22, KANA reading can be converted easily to various numeral expressions.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はかな漢字変換機能を有す
る文書作成装置に係わり、特に数値をひらがな読みで入
力した場合の各種数字への変換方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document preparation device having a kana-kanji conversion function, and more particularly to a conversion system for converting numbers into various numbers when the numbers are input in hiragana reading.

【0002】[0002]

【従来の技術】従来この種の文書作成装置にて数字に係
わるひらがなの読みをキー入力して各種数字に変換して
装置内に入力する場合に、例えば「いっせん」(一千、
壱千、千、1000)、「はっせん」(八千、800
0)、「ひとひゃく」(一百、壱百、100)、「ろっ
ぴゃく」(六百、600)、「はっぴゃく」(八百、80
0)、「いっちょう」(一兆、壱兆、1000000000000)、
「はっちょう」(八兆、8000000000000)、「にぃ」
(二、2)、「しぃ」(四、4)、「ごぅ」(五、
5)、「〜ぱち」(8、八)、京以上の単位等の数値の
読みをひらがなで入力してかな漢字変換しても、ほとん
ど上記()内の漢数字表現やアラビア数字への変換がで
きなかった。又、「〜とんで〜のように」というような
商業的数字の言い回しをひらがな読みで入力したり、中
国語や英語での数字の読みを入力しても所望の数字に変
換されることはなかった。又、数字の3桁毎にカンマを
つける例えば90,000というような表現や、各国の
数字(ローマ数字等)とかイタリック文字等の記号的な
数字等の表現に変換されることは上記いずれの場合もな
かった。このため、上記のようなひらがな読みに対応す
る漢数字やアラビア数字等を得たい場合は、英数字キー
やひらがなキーを用い、更に単漢字変換等をしなければ
ならず、変換効率が悪いという欠点があった。
2. Description of the Related Art Conventionally, in the case of inputting hiragana readings related to numbers into a key by inputting them into the device by inputting the readings of the hiragana related to the numbers in this type of document creation apparatus, for example, "Issen" (1,000,
Ichi thousand, thousand, 1000), "Hassen" (8,000, 800)
0), "Hitohyaku" (one hundred, one hundred, 100), "Roppyaku" (600,600), "Happyaku" (800, 80)
0), “Itcho” (1 trillion, 1 trillion, 1000000000000),
"Hatchou" (8 trillion, 8000000000000), "Nii"
(Two, two), "shii" (four, four), "gou" (five,
5), "~ Pachi" (8, 8), even if you input the readings of numbers such as Kyo and above in Hiragana and convert them to Kana-Kanji, most of the expressions in () and Arabic numerals will be converted. could not. In addition, even if you enter a phrase of a commercial number such as "~ and de ~ ~" in hiragana reading, or enter a number reading in Chinese or English, it will not be converted to the desired number. There wasn't. In addition, any of the above can be converted into an expression such as 90,000 with a comma for every three digits, or a symbolic numeral such as a numeral of each country (such as Roman numerals) or italics. There was no case. For this reason, if you want to obtain Kanji numbers or Arabic numbers that correspond to the above Hiragana readings, you must use alphanumeric keys or Hiragana keys to perform further single-Kanji conversion, resulting in poor conversion efficiency. There was a flaw.

【0003】[0003]

【発明が解決しようとする課題】上記の如く従来の文書
作成装置では、数字を例えば「いっせん」とか「はっち
ょう」とか「〜とんで〜のように」というようなひらが
な読みで入力すると、所望の漢数字或いはアラビア数字
に変換できない場合があり、このような場合は英数字キ
ーや、ひらがなキー等を適宜使用し、更に単漢字変換等
を行わなければ所望の数字表現が得られず、文書作成効
率が非常に悪くなるという欠点があった。又、京以上の
単位を変換しようとすると誤変換する機種もあった。
As described above, in the conventional document creating apparatus, when a number is input in a hiragana reading such as "Issen", "Hatchou" or "... , It may not be possible to convert to the desired Kanji or Arabic numbers. In such a case, you can not obtain the desired number expression unless you use alphanumeric keys or Hiragana keys, etc. and perform single Kanji conversion etc. However, there was a drawback that the document creation efficiency became very poor. In addition, there were some models that incorrectly converted when trying to convert units of K or more.

【0004】そこで本発明は上記の欠点を除去するもの
で、数値に対する各種ひらがな読みを入力してかな漢字
変換させた場合に所望の各種数字表現を容易に得ること
ができる文書作成装置を提供することを目的としてい
る。
Therefore, the present invention eliminates the above-mentioned drawbacks, and provides a document preparation apparatus which can easily obtain various desired numeric expressions when various Hiragana readings for numerical values are input and converted into Kana-Kanji. It is an object.

【0005】[0005]

【課題を解決するための手段】本発明は入力されたひら
がな読みを辞書を参照してかな漢字混じり文に変換する
文書作成装置において、前記ひらがな読みを入力する入
力手段と、この入力手段によって入力されたひらがな読
みの中で1〜9を表す読みと数値の桁を表す読みとを判
別する判別手段と、この判別手段によって1〜9を表す
読みと判別された読みを対応する数値に変換する第1の
変換手段と、同判別手段によって数値の桁を表す読みと
判別された読みを対応する数値に変換する第2の変換手
段と、前記数値の桁を表す読みの直前にある1〜9を表
す読みを前記第1の変換手段によって変換した数値と前
記数値の桁を表す読みを前記第2の変換手段によって変
換した数値とを乗算する乗算手段と、この乗算手段の各
乗算結果と前記第1の変換手段によって変換された数値
で且つ前記乗算手段によって乗算されなかった数値とを
加算する加算手段と、この加算手段の加算結果である数
値を見出しとして前記辞書を参照して候補文字又は候補
数字を検索する検索手段とを具備した構成を有する。
According to the present invention, there is provided a document creating device for converting an input hiragana reading into a kana-kanji mixed sentence by referring to a dictionary, and an input means for inputting the hiragana reading and the input means. A discriminating means for discriminating between readings representing 1 to 9 and readings representing digits of a numerical value in the hiragana reading, and converting the readings discriminated as readings representing 1 to 9 into corresponding numerical values. 1 conversion means, second conversion means for converting the reading that is determined to be a reading representing a digit of a numerical value into a corresponding numerical value, and 1 to 9 immediately before the reading that represents the digit of the numerical value. Multiplier means for multiplying the numerical value obtained by converting the reading indicated by the first converting means and the numerical value obtained by converting the reading indicating the digit of the numerical value by the second converting means, each multiplication result of the multiplying means and the first numerical value. Adding means for adding a numerical value converted by the converting means and not multiplied by the multiplying means, and a candidate character or a candidate numeral by referring to the dictionary with the numerical value as the addition result of the adding means as a heading. And a search means for searching for.

【0006】[0006]

【作用】本発明の文書作成装置において、入力手段は前
記ひらがな読みを入力する。判別手段は前記入力手段に
よって入力されたひらがな読みの中で1〜9を表す読み
と数値の桁を表す読みとを判別する。第1の変換手段は
前記判別手段によって1〜9を表す読みと判別された読
みを対応する数値に変換する。第2の変換手段は前記判
別手段によって数値の桁を表す読みと判別された読みを
対応する数値に変換する。乗算手段は前記数値の桁を表
す読みの直前にある1〜9を表す読みを前記第1の変換
手段によって変換した数値と前記数値の桁を表す読みを
前記第2の変換手段によって変換した数値とを乗算す
る。加算手段は前記乗算手段の各乗算結果と前記第1の
変換手段によって変換された数値で且つ前記乗算手段に
よって乗算されなかった数値とを加算する。検索手段は
前記加算手段の加算結果である数値を見出しとして前記
辞書を参照して候補文字又は候補数字を検索する。
In the document creating apparatus of the present invention, the input means inputs the Hiragana reading. The discriminating means discriminates among the hiragana readings input by the inputting means, the readings representing 1 to 9 and the readings representing digits of a numerical value. The first converting means converts the readings determined to be the readings representing 1 to 9 by the determining means into corresponding numerical values. The second converting means converts the reading determined to be the reading representing the digit of the numerical value by the determining means into a corresponding numerical value. The multiplying means converts the reading representing 1 to 9 immediately before the reading representing the digit of the numerical value by the first converting means and the numerical value representing the reading representing the digit of the numerical value by the second converting means. And multiply. The adding means adds each multiplication result of the multiplying means and the numerical value converted by the first converting means and not multiplied by the multiplying means. The searching means searches for a candidate character or a candidate numeral by referring to the dictionary with the numerical value that is the addition result of the adding means as a heading.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。図1は本発明の文書作成装置の一実施例を示し
たブロック図である。1は文書作成処理を行うCPU、
2はCPU1を動作させるプログラム21やかな漢字変
換時に使用する辞書22を有するROM、3は文書の読
みや各種動作指示等をCPU1に入力するキーボード、
4は数字変換用の作業エリアW1〜W3及びCPU1の
処理方向を示すデータを保持するスイッチエリアSWを
有すると共に、キーボード3から入力された読みを保持
する読み用バッファ41及び数値変換結果である見出し
が入る見出し用バッファ42を有しているRAM、5は
入力した読みやその変換結果等を表示する表示部であ
る。ここで、上記RAM4の作業エリアW1は数値全体
の計算用で、W2は4桁単位の計算用で、W3は種類1
(これについては後述する)用である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a document creating apparatus of the present invention. 1 is a CPU that performs document creation processing,
Reference numeral 2 is a ROM having a program 21 for operating the CPU 1 and a dictionary 22 used for kana-kanji conversion, 3 is a keyboard for inputting document reading and various operation instructions to the CPU 1,
Reference numeral 4 denotes a work area W1 to W3 for number conversion and a switch area SW that holds data indicating the processing direction of the CPU 1, a reading buffer 41 that holds the reading input from the keyboard 3, and a numerical conversion result heading. A RAM 5 having a heading buffer 42 for entering is a display unit for displaying the input reading and the conversion result thereof. Here, the work area W1 of the RAM 4 is for calculation of all numerical values, W2 is for calculation in units of four digits, and W3 is type 1
(This will be described later).

【0008】次に本実施例の動作について図2に示した
フローチャートに従って説明する。ここで、上記実施例
の動作を説明する前提として数字の種類を種類1、種類
2、種類3、種類4に分ける。種類1は1、2、〜9
(0を除く)を示し、種類2は万、億、兆を示し、種類
3は十、百、千を示し、種類4は1桁のものを除く特殊
な数字の読みを示すものとする。数字の読みを変換する
ときにRAM4のスイッチエリアSWに前記読みに係わ
る種類を入れて、CPU1の処理の方向を示すものとす
る。
Next, the operation of this embodiment will be described with reference to the flowchart shown in FIG. Here, as a premise for explaining the operation of the above-described embodiment, the types of numbers are divided into types 1, 2, 3, and 4. Type 1 is 1, 2, ~ 9
(Except 0), Type 2 indicates ten millions, billions and trillions, Type 3 indicates tenths, hundreds and thousands, and Type 4 indicates reading of special numbers except for one digit. When converting the reading of numbers, the type related to the reading is put in the switch area SW of the RAM 4 to indicate the direction of processing of the CPU 1.

【0009】オペレータはキーボード3から数字に係わ
る読みをひらがなで入力する。これにより、CPU1は
前記読みをRAM4の読み用バッファ41に格納すると
共に、表示部5の画面上に表示する。オペレータはその
後キーボード3のかな漢字変換キーを押して前記読みを
漢数字又はアラビア数字などに変換させる指示をCPU
1に出すと、CPU1は図2に示したフローチャートに
従った変換処理を行う。 まずステップ201にて、C
PU1はRAM4の作業エリアW1、W2、W3に0を
書き込むと共に、RAM4のスイッチエリアSWに0を
書き込んでステップ202に進む。ステップ202にて
RAM4の読み用バッファ4からかな漢字変換すべきひ
らがな読みを読みだして、ステップ203へ進む。ステ
ップ203では、前記読み出した数字に関する読みに例
えばろくろく又はおくおく等の同じ読みが続いてある場
合は文節切りを行い、そうでない場合は読み出した形の
ままでステップ204へ進む。ここで、前記入力された
読みの例として「ろくせんはっぴゃくまんとんでじゅう
ご」を例にとって以下の処理を説明する。
The operator inputs the readings related to the numbers from the keyboard 3 in hiragana. As a result, the CPU 1 stores the reading in the reading buffer 41 of the RAM 4 and displays it on the screen of the display unit 5. The operator then presses a kana-kanji conversion key on the keyboard 3 to instruct the CPU to convert the reading into kanji or Arabic numbers.
When it is set to 1, the CPU 1 performs the conversion process according to the flowchart shown in FIG. First, in step 201, C
The PU 1 writes 0 in the work areas W1, W2, W3 of the RAM 4 and 0 in the switch area SW of the RAM 4, and proceeds to step 202. In step 202, the hiragana reading to be converted into kana-kanji is read from the reading buffer 4 of the RAM 4, and the process proceeds to step 203. In step 203, if the same reading, such as rolling or leaving, is followed by the same reading of the read number, segmentation is performed. If not, the process proceeds to step 204 in the read form. Here, the following processing will be described by taking “Rokusen Happyakuman Tendujigo” as an example of the input reading.

【0010】ステップ204では読みがぜろ又はれい、
又は文節切れ、又は数字の可能性がない場合、又はRA
M4の作業エリアSWに種類1が書き込まれている場合
に、ステップ220へ進み、そうでない場合はステップ
205へ進む。ここでは最初の読みが「ろく」であるた
め、ステップ205へ進み、このステップでは入力され
た読みが「〜とんで〜」か否かを判定し、そうある場合
はステップ202へ戻り、そうでない場合はステップ2
06へ進む。この場合はステップ206へ進み、ここで
ROM2の辞書22を参照して前記読みをアラビア数字
(ここでは6)に変換してステップ207へ進む。ステ
ップ207では前記変換した数字の種類が4であるか否
かを判定し、種類4である場合はステップ208へ進
み、種類4でない場合はステップ209へ進む。この例
ではステップ209へ進み、前記変換した数字の種類が
種類1、2、3であるか否かを判定する。その結果、種
類1であればステップ210へ進み、種類2であればス
テップ212に進み、種類3であればステップ216へ
進む。この例では数字が6であるため種類1と判定され
てステップ210へ進み、ここでRAM4の作業エリア
W3に変換した数値、即ちこの例では6を書き込み、更
にステップ211に進んでRAM4のスイッチエリアS
Wに1を書き込んでステップ202に戻る。
In step 204, the reading is completed or read,
Or, if there is no possibility of breaks or numbers, or RA
If the type 1 is written in the work area SW of M4, the process proceeds to step 220, and if not, the process proceeds to step 205. Here, since the first reading is "Roku", the process proceeds to step 205, and in this step, it is determined whether or not the input reading is "--and ---", and if there is, the process returns to step 202, otherwise. If step 2
Proceed to 06. In this case, the process proceeds to step 206, where the reading is converted to Arabic numeral (here 6) by referring to the dictionary 22 of the ROM 2 and the process proceeds to step 207. In step 207, it is determined whether or not the type of the converted numeral is 4, and if it is type 4, the process proceeds to step 208, and if it is not type 4, the process proceeds to step 209. In this example, the process proceeds to step 209, and it is determined whether or not the types of converted numbers are types 1, 2, and 3. As a result, if the type is 1, the process proceeds to step 210, if the type is 2, the process proceeds to step 212, and if the type 3, the process proceeds to step 216. In this example, since the number is 6, it is determined to be type 1 and the process proceeds to step 210, where the number converted into the work area W3 of the RAM 4, that is, 6 is written, and the process proceeds to step 211 to proceed to the switch area of the RAM 4 S
Write 1 to W and return to step 202.

【0011】再びRAM4の読み用バッファ41から入
力されたひらがな読みの「せん」を読み出す。この読み
に関しては、ステップ203、ステップ204、ステッ
プ205、ステップ206と進んで、このステップ20
6で前記読みを1000に変換してステップ207へ進
む。ステップ207にて数値の種類が4でないためステ
ップ209へ進む。このステップ209で、数字の種類
が3であると判定されるため、ステップ216へ進む。
ステップ216ではRAM4の作業エリアW3の中身が
0であるか否かを判定し、この例では0でないため、ス
テップ217へ進む。ステップ217にて作業エリアW
3に保持されている数値に前記変換した数値を掛けて、
これを作業エリアW2の内容とし、この例では6000
を作業エリアW2に書き込んだ後、ステップ219へ進
む。ステップ219では作業エリアW3に0をスイッチ
エリアSWに0を書き込んでステップ202に戻る。
The hiragana reading "sense" input from the reading buffer 41 of the RAM 4 is read again. Regarding this reading, the process proceeds to step 203, step 204, step 205, and step 206, and this step 20
In step 6, the reading is converted into 1000 and the process proceeds to step 207. Since the type of numerical value is not 4 in step 207, the process proceeds to step 209. In this step 209, since it is determined that the number type is 3, the process proceeds to step 216.
In step 216, it is determined whether or not the content of the work area W3 of the RAM 4 is 0, and since it is not 0 in this example, the process proceeds to step 217. Work area W in step 217
Multiply the numerical value held in 3 by the converted numerical value,
This is the content of the work area W2, and in this example, 6000
After writing in the work area W2, the process proceeds to step 219. In step 219, 0 is written in the work area W3 and 0 is written in the switch area SW, and the process returns to step 202.

【0012】次にステップ202にて読み用バッファ4
1から「はっぴゃく」を読み出すと、この読みに関して
はステップ203、ステップ204、ステップ205、
ステップ206へ進んで、このステップ206にて80
0に変換してステップ207へ進む。この例では変換し
た数字が種類4であるため、ステップ208へ進み、R
AM4の作業エリアW2の内容にこの800を加算した
後、ステップ226へ進んでスイッチエリアSWに0を
書き込んでからステップ202に戻る。
Next, at step 202, the reading buffer 4
When "Happyaku" is read out from step 1, step 203, step 204, step 205,
Proceed to Step 206, and at Step 206, 80
It is converted to 0 and the process proceeds to step 207. In this example, since the converted number is the type 4, the process proceeds to step 208 and R
After adding 800 to the contents of the work area W2 of AM4, the process proceeds to step 226, 0 is written in the switch area SW, and then the process returns to step 202.

【0013】再びステップ202にて読み用バッファ4
1から「まん」を読み出す。この読みに関してはステッ
プ203、ステップ204、ステップ205、ステップ
206へ進んで、このステップ206にて10000に変
換する。次にステップ207にて変換した数字が種類4
でないためステップ209へ進み、ここで、数字の種類
が2であると判定されてステップ212に進む。ステッ
プ212にでは作業エリアW2とW3の内容を加算した
ものが0であるかないかを判定し、この例では0でない
ためステップ213へ進む。ステップ213では作業エ
リアW2とW3の内容を加算したものに、前記1000
0を掛けたものを作業エリアW1の内容に加算した後、
この加算結果を作業エリアW1の内容としてステップ2
15へ進む。ステップ215ではスイッチエリアSW、
作業エリアW2、W3の内容を0とした後、ステップ2
02へ戻る。一方、ステップ212にて作業エリアW2
とW3の内容を加算した値が0であった場合はステップ
214へ進み、作業エリアW1の内容に前記変換した数
値を加算し、その結果を作業エリアW1の内容としてス
テップ215へ進む。
In step 202 again, the reading buffer 4
Read "man" from 1. Regarding this reading, step 203, step 204, step 205, step
Proceed to 206 and convert to 10,000 in this step 206. Next, the number converted in step 207 is type 4
Since it is not, the process proceeds to step 209, where it is determined that the number type is 2, and the process proceeds to step 212. In step 212, it is determined whether or not the sum of the contents of the work areas W2 and W3 is 0. In this example, it is not 0, so the process proceeds to step 213. In step 213, the sum of the contents of the work areas W2 and W3 is added to the above 1000
After adding 0 to the contents of work area W1,
The result of this addition is used as the contents of the work area W1 in step 2
Proceed to 15. In step 215, the switch area SW,
After setting the contents of the work areas W2 and W3 to 0, step 2
Return to 02. On the other hand, in step 212, the work area W2
If the value obtained by adding the contents of W3 and W3 is 0, the process proceeds to step 214, the converted numerical value is added to the contents of the work area W1, and the result is taken as the contents of the work area W1 and the process proceeds to step 215.

【0014】再びステップ202にて読み用バッファ4
1から「とんで」を読み出す。この読みに関してはステ
ップ203、ステップ204、ステップ205へ進み、
ここで「〜とんで〜」という読みであるため、ステップ
202に戻る。
In step 202 again, the reading buffer 4
Read "Toden" from 1. For this reading, go to step 203, step 204, step 205,
Here, since the reading is "--and ---", the process returns to step 202.

【0015】ステップ202にて読み用バッファ41か
ら「じゅう」を読み出すと、この例ではステップ20
2、ステップ203。ステップ204、ステップ20
5、ステップ206へ進んで、ここで10に変換する。
更にステップ207、ステップ209へ進んで、数字の
種類が3であると判定され、ステップ216ヘ進んで作
業エリアW3の内容が0であるため、ステップ218へ
進む。ステップ218では作業エリアW2の内容に前記
10を加算して、これを作業エリアW2の内容とした
後、ステップ219へ進む。ステップ219ではスイッ
チエリアSWと作業エリアW3に0を書き込んだ後、ス
テップ202に戻る。
When "12" is read from the reading buffer 41 at step 202, step 20 is performed in this example.
2, step 203. Step 204, Step 20
5. Go to step 206 and convert to step 10.
Further, the process proceeds to steps 207 and 209, it is determined that the number type is 3, and the process proceeds to step 216, where the content of the work area W3 is 0, so the process proceeds to step 218. In step 218, 10 is added to the content of the work area W2 to make it the content of the work area W2, and then the process proceeds to step 219. In step 219, 0 is written in the switch area SW and the work area W3, and then the process returns to step 202.

【0016】ステップ202にて読み用バッファ41か
ら「ご」を読み出すと、この読みに関してはステップ2
03、ステップ204。ステップ205、ステップ20
6に進んで、ここで5に変換し、更にステップ207、
ステップ209、ステップ210に進んで作業エリアW
3に5を書き込んだ後、ステップ211にてスイッチエ
リアSWに1を書き込んでステップ202に戻る。
When "go" is read from the reading buffer 41 in step 202, step 2 is executed for this reading.
03, step 204. Step 205, Step 20
Proceed to step 6, and convert to step 5 here, and then step 207,
Go to step 209 and step 210 and work area W
After writing 5 to 3, 3 is written to 1 in the switch area SW in step 211 and the process returns to step 202.

【0017】ステップ202にて読み用バッファ41か
ら読みを読み出すと、この場合は文節切りになっている
ため、ステップ203、ステップ204に進んで、ここ
で文節切れで且つスイッチエリアSWが1であると判定
されてステップ220へ進む。ステップ220では作業
エリアW1、W2、W3の内容を加算してその結果を作
業エリアW1に書き込んでステップ221に進む。ステ
ップ221では読み用バッファ41から読み出した読み
が数字の可能性があるかないかを判定し、可能性がない
場合はステップ223に進み、ある場合はステップ22
2に進む。ステップ222ではRAM4の作業エリアW
1の内容を数値、この例では68000015と変換して、ステ
ップ223に進む。ステップ223では数字以外の候補
も作成した後、ステップ224へ進んで、その後に連な
る読みをかな漢字混じり文等に変換した後、ステップ2
25に進む。ステップ225では候補の並び変え、例え
ば別頭、別尾が前後にあると、数字を先に出す等の並び
代えを行って処理を終了する。この結果、CPU1は前
記「ろくせんはっぴゃくまんとんでじゅうご」というひ
らがなの読みを、68000015に変換して、これをRAM4
の見出し用バッファ42に格納する。
When the reading is read from the reading buffer 41 in step 202, since the phrase is broken in this case, the process proceeds to steps 203 and 204, where the phrase is broken and the switch area SW is 1. Then, the process proceeds to step 220. In step 220, the contents of the work areas W1, W2, W3 are added, the result is written in the work area W1, and the process proceeds to step 221. In step 221, it is determined whether or not the reading read from the reading buffer 41 may be a numeral, and if there is no possibility, the process proceeds to step 223, and if there is, the step 22.
Go to 2. In step 222, the work area W of the RAM 4
The contents of 1 are converted into a numerical value, 68000015 in this example, and the process proceeds to step 223. After creating candidates other than numbers in step 223, the process proceeds to step 224, and after that, the continuous reading is converted into a kana-kanji mixed sentence or the like, and then in step 2
Go to 25. In step 225, if the candidates are rearranged, for example, if another head and another tail are located before and after, the rearrangement is performed by, for example, putting the numbers first, and the process ends. As a result, the CPU 1 converts the reading of the hiragana "Rokusen Happyakumanto dejugo" into 68000015 and stores it in the RAM4.
It is stored in the buffer 42 for the header.

【0018】更にCPU1は前記見出し用バッファ42
に格納されている数値、この例では68000015を読みだし
て、これを見出しとしてROM2の辞書部22を参照し
て候補数字表現を読みだし、その中の第1候補を表示部
5に表示し、キーボード3から次候補選択指示が入力さ
れると、次候補を表示する。オペレータは所望の数字表
現が表示されたところで、これを選択する指示をキーボ
ード3から入力すると、CPU1はこれを変換数値とし
て確定する。
Further, the CPU 1 has the heading buffer 42.
, The numerical value stored in this example, 68000015, is read, the candidate numeral expression is read by referring to the dictionary section 22 of the ROM 2 with this as a heading, and the first candidate among them is displayed on the display section 5, When the next candidate selection instruction is input from the keyboard 3, the next candidate is displayed. When a desired numeral expression is displayed, the operator inputs an instruction to select it from the keyboard 3, and the CPU 1 fixes it as a converted numerical value.

【0019】本実施例によれば、入力されたひらがな読
みの中で1〜9を表す読みと、数字の桁を表す読みと、
他の表現とを区別して数値部分を表すひらがな読みを一
旦アラビア数字に変換し、この変換したアラビア数字を
見出しとしてROM2内の辞書22により漢数字等を含
む候補数字表現を得るようにすることにより、読みをひ
らがなで入力した「いっせん」等の数値や、「はっぴゃ
くとんでよん」等の数値を所望の数字表現を持つ数値に
かな漢字変換のみで変換することができる。又、前記ア
ラビア数字を見出しとしその候補として各国の数字と
か、3桁毎にカンマを付けた数値候補等を前記辞書22
に登録しておけば、容易に前記ひらがな読みを各種の数
字表現に変換することができる。
According to the present embodiment, among the inputted Hiragana readings, the readings representing 1 to 9 and the readings representing the digits of a numeral are provided.
By distinguishing from other expressions, the Hiragana reading that represents the numerical part is once converted into Arabic numerals, and the converted Arabic numerals are used as a heading to obtain candidate numeral expressions including Chinese numerals etc. from the dictionary 22 in the ROM2. It is possible to convert numbers such as "Issen", which is input in Hiragana for reading, and numbers such as "Happyaku to deyon" into numbers having a desired numerical expression only by Kana-Kanji conversion. In addition, the Arabic number is used as a heading, and the number of each country is used as a candidate, or a numerical value candidate in which a comma is added every three digits is used as the dictionary 22.
If registered in, it is possible to easily convert the hiragana reading into various numerical expressions.

【0020】[0020]

【発明の効果】以上記述した如く本発明の文書作成装置
によれば、数値に対する各種ひらがな読みを入力してか
な漢字変換させた場合に所望の各種数字表現を容易に得
ることができる。
As described above, according to the document creating apparatus of the present invention, various desired numeral expressions can be easily obtained when various Hiragana readings for numerical values are input and Kana-Kanji conversion is performed.

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

【図1】本発明の文書作成装置の一実施例を示したブロ
ック図。
FIG. 1 is a block diagram showing an embodiment of a document creation device of the present invention.

【図2】図1に示したCPUのひらがな読みを数値表現
に変換する際の動作を示したフロ−チャ−ト。
FIG. 2 is a flowchart showing the operation of converting the hiragana reading of the CPU shown in FIG. 1 into a numerical expression.

【符号の説明】[Explanation of symbols]

1…CPU 2…ROM 3…キ−ボ−ド 4…RAM 5…表示部 1 ... CPU 2 ... ROM 3 ... Keyboard 4 ... RAM 5 ... Display

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力されたひらがな読みを辞書を参照し
てかな漢字混じり文に変換する文書作成装置において、
前記ひらがな読みを入力する入力手段と、この入力手段
によって入力されたひらがな読みの中で1〜9を表す読
みと数値の桁を表す読みとを判別する判別手段と、この
判別手段によって1〜9を表す読みと判別された読みを
対応する数値に変換する第1の変換手段と、同判別手段
によって数値の桁を表す読みと判別された読みを対応す
る数値に変換する第2の変換手段と、前記数値の桁を表
す読みの直前にある1〜9を表す読みを前記第1の変換
手段によって変換した数値と前記数値の桁を表す読みを
前記第2の変換手段によって変換した数値とを乗算する
乗算手段と、この乗算手段の各乗算結果と前記第1の変
換手段によって変換された数値で且つ前記乗算手段によ
って乗算されなかった数値とを加算する加算手段と、こ
の加算手段の加算結果である数値を見出しとして前記辞
書を参照して候補文字又は候補数字を検索する検索手段
とを具備したことを特徴とする文書作成装置。
1. A document creating apparatus for converting input hiragana reading into a kana-kanji mixed sentence by referring to a dictionary,
An input unit for inputting the Hiragana reading, a discriminating unit for discriminating between readings representing 1 to 9 and readings representing digits of numerical values among the Hiragana readings inputted by the input unit, and 1 to 9 by the discriminating unit. And a second conversion means for converting a reading determined to be a reading that represents a reading into a corresponding numerical value, and a reading that is determined to be a reading representing a digit of a numerical value into a corresponding numerical value. , A numerical value obtained by converting the reading indicating 1 to 9 immediately before the reading indicating the digit of the numerical value by the first converting means and a numerical value obtained by converting the reading indicating the digit of the numerical value by the second converting means. Multiplying means for multiplying, addition means for adding each multiplication result of the multiplying means and a numerical value converted by the first converting means and not multiplied by the multiplying means, and addition by the adding means Document creating apparatus characterized by comprising a search means for searching for candidate character or candidate numeric value, the result by referring to the dictionary as a heading.
JP3248186A 1991-09-27 1991-09-27 Document preparing device Pending JPH06203017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3248186A JPH06203017A (en) 1991-09-27 1991-09-27 Document preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3248186A JPH06203017A (en) 1991-09-27 1991-09-27 Document preparing device

Publications (1)

Publication Number Publication Date
JPH06203017A true JPH06203017A (en) 1994-07-22

Family

ID=17174486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3248186A Pending JPH06203017A (en) 1991-09-27 1991-09-27 Document preparing device

Country Status (1)

Country Link
JP (1) JPH06203017A (en)

Similar Documents

Publication Publication Date Title
JPH11212967A (en) Prediction input device/method
JPH06203017A (en) Document preparing device
JP2621999B2 (en) Document processing device
JPH0128973B2 (en)
JPH08335217A (en) Reading converting method and document preparation device
JPH0380363A (en) Document processor
JPH06131337A (en) Character input device
JPH09153044A (en) Character processor and device for kana and english letter conversion
JP2542670B2 (en) Word processor
JPS63146157A (en) Document processor
JPH08320868A (en) Japanese syllabary-chinese character conversion device
JPS62187967A (en) Phrase access system for word processor
JPH05342197A (en) Japanese word processor
JPH076163A (en) Word processor device capable of processing chinese language
JPH0391062A (en) Document preparing device
JPH04169970A (en) Electronic equipment
JPH0827794B2 (en) Character processor
JPS63174165A (en) Word processor
JPH0394367A (en) Japanese input system
JPH08137862A (en) Character input method and document preparation device
JPH09223140A (en) Character input device
JPH06251203A (en) Handwritten character recognition device and japanese syllabary/chinese character converting method for handwritten input character
JPH08212210A (en) Document generation device, kana(japanese syllabary) mixed with kanji(chinese character)/kanji conversion method and dictionary generation device and its method
JPH01267770A (en) Kana(japanese syllabary)/kanji (chinese character) converter
JPS6312065A (en) Extending system for kana-kanji

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees