Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0628062B2 - Character processing apparatus and method - Google Patents
[go: Go Back, main page]

JPH0628062B2 - Character processing apparatus and method - Google Patents

Character processing apparatus and method

Info

Publication number
JPH0628062B2
JPH0628062B2 JP1317256A JP31725689A JPH0628062B2 JP H0628062 B2 JPH0628062 B2 JP H0628062B2 JP 1317256 A JP1317256 A JP 1317256A JP 31725689 A JP31725689 A JP 31725689A JP H0628062 B2 JPH0628062 B2 JP H0628062B2
Authority
JP
Japan
Prior art keywords
type
cursor
conversion
input
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1317256A
Other languages
Japanese (ja)
Other versions
JPH03176759A (en
Inventor
英一朗 戸島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP1317256A priority Critical patent/JPH0628062B2/en
Publication of JPH03176759A publication Critical patent/JPH03176759A/en
Publication of JPH0628062B2 publication Critical patent/JPH0628062B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は仮名漢字変換により漢字仮名混り文を入力する
文字処理装置に関する。特に、数字を入力して、ローマ
数字(例えば、IV)、丸数字(例えば、)などの数値
を表現する記号に変換する装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention relates to a character processing device for inputting a kanji / kana mixed sentence by kana / kanji conversion. In particular, the present invention relates to a device for inputting a number and converting it into a symbol that represents a number such as a Roman numeral (for example, IV) or a circled numeral (for example).

[従来の技術] 日本語の文章を作成する際、ローマ数字、丸数字など
の、「数値を表現する記号」を表題、見出しとして使用
する機会が頻繁にある。現在の日本語ワードプロセッサ
などは一般に仮名漢字変換を使用して文字を入力してい
るので、この様な記号の入力は、数字を入力してそれを
仮名漢字変換することにより行なっている。
[Prior Art] When creating a Japanese sentence, there are often opportunities to use "symbols representing numbers" such as Roman numerals and circled figures as titles and headings. Since current Japanese word processors and the like generally use Kana-Kanji conversion to input characters, such symbols are input by inputting numbers and converting them into Kana-Kanji.

この様な数値を表現する記号は、同じ種類のものが連続
して使用される傾向にある。このため、一度、ある数字
変換候補を選択すると、次回に数字を変換したとき、直
前に選択された数字変換候補と同じ種類の候補が第1候
補として変換される様に装置を構成するのが一般的であ
る。すなわち、数字変換の学習機能である。
As for symbols that express such numerical values, the same type tends to be continuously used. For this reason, the apparatus is configured such that once a certain number conversion candidate is selected, the next time the number is converted, the same type of candidate as the number conversion candidate selected immediately before is converted as the first candidate. It is common. That is, it is a learning function for digit conversion.

[発明が解決しようとしている課題] ところが、この様な数字変換の学習機能によれば、文書
の作成段階では比較的快適に記号入力ができるが、校正
段階では思い通りの入力ができない。
[Problems to be Solved by the Invention] However, according to such a learning function for digit conversion, it is possible to input symbols relatively comfortably in the document creation stage, but not to input as desired in the proofreading stage.

例えば、既にやIVと入力されている文章において、そ
の数値をやVに変更したい場合、またはIVの上にカ
ーソルをおいて数字「5」を打鍵し、変換することにな
る。数字変換の変換結果は学習機能によって決まるの
で、その直前に選択した数字変換候補が例えば(8)で
あれば、カーソル上の文字に無関係に(5)が変換され
ることになる。意図しているやVを変換するためには
次候補キーで次候補を表示させなければならない。
For example, when it is desired to change the numerical value to or V in a sentence in which or IV has already been input, or the cursor is placed on IV and the numeral "5" is typed to convert it. Since the conversion result of the number conversion is determined by the learning function, if the number conversion candidate selected immediately before that is (8), (5) will be converted regardless of the character on the cursor. In order to convert V as intended, the next candidate must be displayed with the next candidate key.

[課題を解決するための手段(及び作用)] 上記課題を解決するために、本発明の文字処理装置は、
数字を入力する入力手段と、該入力手段より入力される
数字の表示位置を指示するカーソルを表示させるカーソ
ル表示手段と、該カーソル表示手段により表示されたカ
ーソルの位置に存在する文字の種類を判別する判別手段
と、前記入力手段より入力された数字を当該数字を表す
複数種の数字表現に変換する変換手段と、該変換手段に
よる変換結果を表示する候補表示手段と、該候補表示手
段により表示される複数種の数字表現より1つの数字表
現を選択する選択手段と、該選択手段により選択された
数字表現を前記カーソルの位置に表示させる表示制御手
段と、前記選択手段により選択された数字表現の種類を
記憶する記憶手段とを有し、前記候補表示手段が、前記
変換手段の変換結果を表示する際に、前記判別手段によ
り判別された文字の種類が数字表現の1種であった時に
は、前記判別手段により判別された種類の数字表現を優
先して表示し、前記判別された文字の種類が数字表現で
なかった時には、前記記憶手段に記憶された種類の数字
表現を優先して表示することを特徴とする。
[Means (and Action) for Solving the Problems] In order to solve the above problems, the character processing device of the present invention is
Input means for inputting a number, cursor display means for displaying a cursor for indicating a display position of the number input by the input means, and type of character existing at the position of the cursor displayed by the cursor display means Discriminating means, converting means for converting the number inputted by the input means into a plurality of types of numerical expressions representing the numeral, candidate displaying means for displaying the conversion result by the converting means, and displaying by the candidate displaying means. Selecting means for selecting one numerical expression from a plurality of types of numerical expressions, display control means for displaying the numerical expression selected by the selecting means at the position of the cursor, and numerical expression selected by the selecting means. And a storage unit that stores the type of the character, and the candidate display unit displays the conversion result of the conversion unit. When the type is one of the numerical expressions, the numerical expression of the type discriminated by the discriminating means is preferentially displayed, and when the type of the discriminated character is not the numerical representation, it is stored in the storage means. It is characterized by preferentially displaying the numerical expressions of the selected types.

また、本発明の文字処理方法は、情報を入力する入力部
と、情報を表示する表示部と、数字表現の種類を記憶す
る記憶部と、を有する文字処理装置において、前記表示
部にカーソルを表示させるカーソル表示工程と、該カー
ソル表示工程により表示されたカーソルの表示位置に対
して、前記入力部より数字を入力する入力工程と、該入
力工程により入力された前記数字を当該数字を表す複数
種の数字表現に変換する変換工程と、前記カーソルの表
示位置に前記入力工程による数字の入力に先立って表示
されている文字の種類を判別する判別工程と、前記変換
工程による変換結果を、候補として前記表示部に表示
し、その際、前記判別工程により判別された文字の種類
が数字表現の1種であった時には、前記判別された種類
の数字表現を優先して表示し、前記判別された文字の種
類が数字表現でなかった時には、前記記憶部に記憶され
た種類の数字表現を優先して表示する候補表示工程と、
該候補表示工程によって候補として表示される複数種の
数字表現より、選択指示に基づいて1つの数字表現を選
択する選択工程と、該選択工程により選択された数字表
現を前記カーソルの表示位置に表示させる数字表現表示
工程と、前記選択工程により選択された数字表現の種類
を前記記憶部に記憶する記憶工程とを具えたことを特徴
とする。
Further, in the character processing method of the present invention, in a character processing device having an input unit for inputting information, a display unit for displaying information, and a storage unit for storing the type of numeral expression, a cursor is placed on the display unit. A cursor display step for displaying, an input step of inputting a number from the input unit at the display position of the cursor displayed by the cursor display step, and a plurality of the numbers input by the input step representing the number. A conversion step of converting into a numeral representation of a seed, a determination step of determining the type of a character displayed at the cursor display position prior to the input of a number by the input step, and a conversion result by the conversion step as candidates. Is displayed on the display unit, and at that time, when the type of the character discriminated in the discrimination step is one of the numerical expressions, the numerical representation of the judged type is given priority. Displayed, wherein when the type of the determined character is not numeric representation, a candidate display step of displaying with priority numbers representation of the type stored in the storage unit,
A selecting step of selecting one numerical expression based on a selection instruction from a plurality of numerical expressions displayed as candidates in the candidate displaying step, and displaying the numerical expression selected in the selecting step at the display position of the cursor And a storing step of storing the type of the numerical expression selected by the selecting step in the storage section.

[実施例] 以下図面を参照しながら本発明を詳細に説明する。EXAMPLES The present invention will be described in detail below with reference to the drawings.

第1図は本発明の全体構成の一例である。FIG. 1 is an example of the overall configuration of the present invention.

図示の構成において、CPUは、マイクロプロセッサで
あり、文字処理のための演算、論理判断等を行ない、ア
ドレスバスAB、コントロールバスCB,データバスD
Bを介して、それらのバスに接続された各構成要素を制
御する。
In the illustrated configuration, the CPU is a microprocessor, performs arithmetic operations for character processing, logical judgments, etc., and has an address bus AB, a control bus CB, and a data bus D.
Via B, each component connected to those buses is controlled.

アドレスバスABはマイクロプロセッサCPUの制御の
対象とする構成要素を指示するアドレス信号を転送す
る。コントロールバスCBはマイクロプロセッサCPU
の制御の対象とする各構成要素のコントロール信号を転
送して印加する。データバスDBは各構成機器相互間の
データの転送を行なう。
The address bus AB transfers an address signal indicating a component to be controlled by the microprocessor CPU. Control bus CB is a microprocessor CPU
The control signals of the respective components to be controlled by are transferred and applied. The data bus DB transfers data between the constituent devices.

つぎにROMは、読出し専用の固定メモリであり、第1
0図〜第13図につき後述するマイクロプロセッサCP
Uによる制御の手順を記憶させておく。
Next, the ROM is a fixed read-only memory.
Microprocessor CP described later with reference to FIGS. 0 to 13
The control procedure by U is stored.

また、RAMは、1ワード16ビットの構成の書込み可
能のランダムアクセスメモリであって、各構成要素から
の各種データの一時記憶に用いる。CONTBLは数字
変換を行なうための変換テーブルである数字変換テーブ
ルである。IBUFは入力されたキーデータ等が記憶さ
れる入力バッファである。OBUFは仮名漢字変換の出
力結果が記憶される出力バッファである。TBUFはテ
キストバッファであり、本文字処理装置で取り扱う文書
を内部形式で記憶する。DOBUFはテキストバッファ
に記憶される文字が同音語であるときに使用される同音
語バッファである。CCONTPは数字変換の学習を行
なうためのワークである現変換タイプである。
The RAM is a writable random access memory having a structure of 1 word 16 bits, and is used for temporary storage of various data from each constituent element. CONTBL is a number conversion table which is a conversion table for performing number conversion. The IBUF is an input buffer that stores input key data and the like. OBUF is an output buffer in which the output result of Kana-Kanji conversion is stored. TBUF is a text buffer that stores documents handled by the character processing device in an internal format. DOBUF is a homophone word buffer used when the characters stored in the text buffer are homophone words. CCONTP is a current conversion type which is a work for learning digit conversion.

KBはキーボードであって、アルファベットキー、ひら
かなキー、カタカナキー等の文字記号入力キー、及び、
変換キー、次候補キー、選択キー等の本文字処理装置に
対する各種機能を指示するための各種のファンクション
キーを備えている。
KB is a keyboard, which is a character / symbol input key such as an alphabet key, a hiragana key, or a katakana key, and
Various function keys such as a conversion key, a next candidate key, and a selection key for instructing various functions for the character processing apparatus are provided.

DISKは文書データを記憶するための外部記憶部であ
り、テキストバッファTBUF上に作成された文書の保
管を行ない、保管された文書はキーボードの指示によ
り、必要な時呼び出される。
DISK is an external storage unit for storing document data, stores a document created in the text buffer TBUF, and the stored document is called when necessary by a keyboard instruction.

CRはカーソルレジスタである。CPUにより、カーソ
ルレジスタの内容を読み書きできる。後述するCRTコ
ントローラCRTCは、ここに蓄えられたアドレスに対
応する表示装置CRT上の位置にカーソルを表示する。
CR is a cursor register. The CPU can read and write the contents of the cursor register. The CRT controller CRTC described later displays a cursor at a position on the display device CRT corresponding to the address stored here.

DBUFは表示用バッファメモリで、表示すべきデータ
のパターンを蓄える。文書データの内容の表示を行なう
ときは、テキストバッファTBUF上のデータに基づい
てDBUF上にパターンを展開することにより行なわれ
る。
DBUF is a display buffer memory that stores a pattern of data to be displayed. When displaying the contents of the document data, the pattern is developed on the DBUF based on the data on the text buffer TBUF.

CRTCはカーソルレジスタCR及びバッファDBUF
に蓄えられた内容を表示器CRTに表示する役割を担
う。
CRTC is cursor register CR and buffer DBUF
It plays the role of displaying the contents stored in the display CRT.

またCRTは陰極線管等を用いた表示装置であり、その
表示装置CRTにおけるドット構成の表示パターンおよ
びカーソルの表示CRTコントローラで制御する。
Further, the CRT is a display device using a cathode ray tube or the like, and is controlled by a display pattern of a dot configuration and a cursor display CRT controller in the display device CRT.

さらに、CGはキャラクタジェネレータであって、表示
装置CRTに表示する文字、記号のパターンを記憶する
ものである。
Further, CG is a character generator, which stores patterns of characters and symbols to be displayed on the display device CRT.

かかる各構成要素からなる本発明文字処理装置において
は、キーボードKBからの各種の入力に応じて作動する
ものであって、キーボードKBからの入力が供給される
と、まず、インタラプト信号がマイクロプロセッサCP
Uに送られ、そのマイクロプロセッサCPUがROM内
に記憶してある各種の制御信号を読出し、それらの制御
信号に従って各種の制御が行なわれる。
The character processing device of the present invention comprising the above-described components operates in response to various inputs from the keyboard KB. When an input from the keyboard KB is supplied, first, an interrupt signal is sent to the microprocessor CP.
The control signal is sent to U, the microprocessor CPU reads out various control signals stored in the ROM, and various controls are performed in accordance with these control signals.

第2図は本発明における数字変換の変換例を示した図で
ある。
FIG. 2 is a diagram showing a conversion example of digit conversion in the present invention.

2−1は何も入力されていない状態の画面である。カー
ソルはアンダラインで示してある。この状態で数字
「2」を入力すると2−2の画面になる。
2-1 is a screen in a state where nothing is input. The cursor is underlined. If the number "2" is input in this state, a screen 2-2 is displayed.

2−2においては数字「2」は読みとして表示されてい
る。ここで、変換キーを打鍵すると数字「2」が変換さ
れ、2−3の画面になる。
In 2-2, the number "2" is displayed as a reading. Here, when the conversion key is pressed, the number "2" is converted and a 2-3 screen is displayed.

2−3の画面は数字「2」が変換された状態である。こ
こでは直前に「VI」などが選択されていたとして第1候
補として「II」が変換されている。この状態で次候補キ
ーを打鍵すると2−4の画面になる。
The screen of 2-3 is a state in which the number "2" is converted. Here, “II” has been converted as the first candidate because “VI” or the like has been selected immediately before. When the next candidate key is pressed in this state, a screen 2-4 is displayed.

2−4においては数字変換の次候補が表示され、更に候
補の一覧が表示されている。ここで意図している候補で
ある「」が表示されているので選択すると、2−5の
画面になり、「」が選択確定される。
In 2-4, the next candidate for digit conversion is displayed, and a list of candidates is displayed. Since "" which is the intended candidate is displayed here, when it is selected, the screen of 2-5 is displayed and "" is selected and confirmed.

第3図はカーソル上に数字変換の変換結果が存在する場
合の変換例を示した図である。
FIG. 3 is a diagram showing a conversion example in the case where the conversion result of digit conversion exists on the cursor.

3−1はカーソル上に「」が既に入力されている状態
を示した画面である。この状態で数字「2」を打鍵する
と3−2の画面となる。
3-1 is a screen showing a state in which "" has already been input on the cursor. When the number "2" is pressed in this state, a screen 3-2 is displayed.

3−2の画面は数字「2」が読みとして表示されている
画面であり、ここで変換キーを打鍵すると3−3の画面
となる。
The screen 3-2 is a screen in which the number "2" is displayed as a reading, and when the conversion key is pressed here, the screen 3-3 is displayed.

3−3では数字「2」が変換されて「」となってい
る。すなわち、もともとカーソル上に「」が存在した
ので、それに影響を受けて他の数字変換の候補の中から
「」が第1候補として決定されたのである。
In 3-3, the number "2" is converted into "". That is, since "" originally existed on the cursor, "" was determined as the first candidate among other candidates for digit conversion due to the influence.

第4図は本発明のおける数字変換のための記号の文字コ
ード表を示した図である。基本となる文字の文字コード
としてはJIS X 0208コードを使用しており、数字変換の
記号のコードはJIS X 0208コードで使用していない領域
に割り当ててある。
FIG. 4 is a diagram showing a character code table of symbols for digit conversion in the present invention. The JIS X 0208 code is used as the character code of the basic character, and the code of the symbol for digit conversion is assigned to the area not used by the JIS X 0208 code.

第5図は第4図で示した文字コード表に基づいた数字変
換テーブルの構成を示した図である。
FIG. 5 is a diagram showing the configuration of a numeral conversion table based on the character code table shown in FIG.

左側のフィールドは開始コードを示し、右側のフィール
ドは終了コードを意味する。例えば、タイプ1の記号に
ついては7421〜7A2Aが割り振られてあり、この
うち、7421が「1」の値を持つ記号であることが分
かる。
The left field indicates the start code and the right field indicates the end code. For example, with respect to the type 1 symbol, 7421 to 7A2A are assigned, and it is understood that 7421 is a symbol having a value of "1".

末尾にはFFFFが格納され、それによりテーブルの末
尾が分かる様になっている。
FFFF is stored at the end so that the end of the table can be identified.

第6図は入力バッファIBUF、出力バッファOBUF
の構成を示した図である。
FIG. 6 shows an input buffer IBUF and an output buffer OBUF.
It is a figure showing the composition of.

IBUF、OBUFともに同じ構成である。最初の2バ
イトは各バッファのサイズ情報であり、バッファに格納
されている文字数から1を減じたものを2倍した数値が
入る。入力バッファの末尾にある「」はそこで変換キ
ーが打鍵されたことを意味する。各文字は1文字2バイ
トで構成され、JIS X 0208コードで格納される。
Both IBUF and OBUF have the same configuration. The first 2 bytes are the size information of each buffer, and the numerical value obtained by doubling the value obtained by subtracting 1 from the number of characters stored in the buffer is entered. The "" at the end of the input buffer means that the conversion key was pressed there. Each character consists of 2 bytes per character and is stored in JIS X 0208 code.

第7図はテキストバッファTBUFの構成を示した図で
ある。
FIG. 7 is a diagram showing the structure of the text buffer TBUF.

テキストは複数個の固定長からなる文字データより構成
される。各文字データは1文字2バイトで構成され、JI
S X 0208コードで格納される。
The text is composed of a plurality of fixed length character data. Each character data consists of 2 bytes per character.
Stored as SX 0208 code.

MSBはその文字が確定した通常文字であるか、次候補
を表示可能な同音語であるかどうかを示すフラグであ
る。0のときは通常文字であり、1のときは同音語コー
ドであることを意味する。同音語コードのときは文字コ
ードのJIS X 0208コードの代わりに同音語番号が格納さ
れる。同音語番号に基づいて第11図に示す同音語バッ
ファを参照すれば、その同音語の候補のどのようなもの
があるか、あるいはその同音語の性質が分かるようにな
っている。
The MSB is a flag indicating whether the character is a fixed normal character or a homophone capable of displaying the next candidate. A value of 0 means a normal character, and a value of 1 means a homophone code. In the case of a homophone code, a homophone number is stored instead of the JIS X 0208 code of the character code. By referring to the homophone word buffer shown in FIG. 11 based on the homophone word number, it is possible to know what kind of candidate the homophone word is, or the nature of the homophone word.

第8図は同音語バッファDOBUFの構成を示した図で
ある。
FIG. 8 is a diagram showing the structure of the homophone word buffer DOBUF.

「読み」はその同音語の読み列が格納される。例えば、
同音語「回答」については「かいとう」と格納される。
“Yomi” stores the reading string of the homophone. For example,
The same phoneme “answer” is stored as “kaito”.

「候補総数」はその同音語バッファに格納されている変
換候補の総数を格納する。例えば、同音語「回答」につ
いて変換候補が「回答」「解答」「怪盗」「会頭」の4
つであれば、値4が格納される。
The “total number of candidates” stores the total number of conversion candidates stored in the homophone word buffer. For example, the conversion candidates for the homonym “answer” are “answer”, “answer”, “phantom thief”, and “presiding”
If so, the value 4 is stored.

「候補番号」はその同音語の現在指示されている候補
(すなわち、現在表示されている候補)が先頭から何番
目の候補であるかを示す値が格納される。変換直後の状
態では値1が格納され、第1候補が表示される。次候補
キーが打鍵されるごとにこの値に1が加算され、次候補
が表示される。
The “candidate number” stores a value indicating the number of candidates from the beginning of the currently designated candidate (that is, the currently displayed candidate) of the homonym. In the state immediately after conversion, the value 1 is stored and the first candidate is displayed. Each time the next candidate key is pressed, 1 is added to this value and the next candidate is displayed.

「表示」には各変換候補の表記が格納される。The "display" stores the notation of each conversion candidate.

「変換タイプ」には変換候補が数字変換の候補であった
ときにその数字変換のタイプが格納される。例えば、タ
イプ1のときは値1、タイプ2のときは値2を格納す
る。数字変換の候補でなかったときは無効値0を格納す
る。
The “conversion type” stores the type of numeral conversion when the conversion candidate is a candidate for numeral conversion. For example, the value 1 is stored for type 1 and the value 2 is stored for type 2. When it is not a candidate for digit conversion, an invalid value 0 is stored.

第9図は現変換タイプCCONTPの構成を示した図で
ある。
FIG. 9 is a diagram showing the structure of the current conversion type CCONTP.

現変換タイプは直前に選択された数字変換の候補の変換
タイプを記憶したワークであり、このワークにより数字
変換の学習が行なわれる。
The current conversion type is a work that stores the conversion type of the numerical conversion candidate selected immediately before, and the work of learning the numerical conversion is performed.

現変換タイプは1バイトで構成される。例えば、直前に
選択された数字変換がタイプ1のとき、値1が格納さ
れ、タイプ2のとき、値2が格納される。
The current conversion type consists of 1 byte. For example, the value 1 is stored when the last selected digit conversion is type 1, and the value 2 is stored when it is type 2.

学習が行なわれていないときは値0が格納される。The value 0 is stored when learning is not performed.

上述の実施例の動作をフローに従って説明する。The operation of the above embodiment will be described according to the flow.

第10図はキー入力を取り込み、処理を行なう部分のフ
ローチャートである。
FIG. 10 is a flow chart of a part for receiving a key input and performing a process.

ステップ10−1はキーボードからのデータを取り込む
処理である。ステップ10−2で取り込まれたキーの種
別を判定し、各キーの処理ルーチンに分岐する。
Step 10-1 is a process for fetching data from the keyboard. The type of the key fetched in step 10-2 is determined, and the process branches to each key processing routine.

変換キーであったときはステップ10−3に分岐し、ス
テップ10−3において第11図に詳述するように仮名
漢字変換の変換処理を行なう。
If it is a conversion key, the process branches to step 10-3, and in step 10-3, conversion process of kana-kanji conversion is performed as described in detail in FIG.

次候補キーであったときはステップ10−4に分岐し、
第12図に詳述するように次候補処理を行なう。
If it is the next candidate key, the process branches to step 10-4,
Next candidate processing is performed as described in detail in FIG.

選択キーであったときはステップ10−5に分岐し、第
13図に詳述するように選択処理を行なう。
If it is the select key, the process branches to step 10-5 and the selecting process is performed as described in detail in FIG.

その他のキーのときはステップ10−6に分岐し、挿
入、削除等の通常の文字処理装置において行なわれるそ
の他の処理が行なわれる。
If the key is any other key, the process branches to step 10-6, and other processes such as insertion and deletion that are carried out in a normal character processing device are carried out.

然る後、ステップ10−1に分岐する。After that, the process branches to step 10-1.

第11図はステップ10−3の「変換処理」を詳細化し
たフローチャートである。
FIG. 11 is a detailed flowchart of the "conversion process" in step 10-3.

ステップ11−1において入力読みが数字であるかどう
か判定する。数字のときはステップ11−2に分岐し数
字変換処理を行なうが、数字でないときはステップ11
−7に分岐し、通常の仮名漢字変換処理を行ない、ステ
ップ11−8に分岐する。
In step 11-1, it is determined whether the input reading is a number. If it is a numeral, it branches to step 11-2 to perform numeral conversion processing, but if it is not a numeral, step 11
The process branches to -7, the ordinary kana-kanji conversion processing is performed, and the process branches to step 11-8.

ステップ11−2において数字変換テーブルCONTB
Lに従って、入力文字コードを数字変換する。この段階
では、複数の変換候補はバッファに蓄えておく。
In step 11-2, the numeric conversion table CONTB
According to L, the input character code is converted into numbers. At this stage, a plurality of conversion candidates are stored in the buffer.

ステップ11−3においてカーソル上の文字をテキスト
バッファTBUFより読み取る。
In step 11-3, the character on the cursor is read from the text buffer TBUF.

ステップ11−4において読み取られたカーソル上の文
字を数字変換テーブルCONTBLを参照することによ
り数字変換により変換される記号のコード(数字変換コ
ード)であるかどうか判定する。数字変換コードであれ
ば、変換タイプも同時に求め、ステップ11−5に分岐
し、その変換タイプの候補を第1候補として決定する。
数字変換コードでなければ、ステップ11−6に分岐
し、現変換タイプCCONTPの変換候補を第1候補と
して決定する。その後ステップ11−8に分岐する。
In step 11-4, it is determined whether or not the character on the cursor read in step 11-4 is a code of a symbol (numerical conversion code) converted by numerical conversion by referring to the numerical conversion table CONTBL. If it is a numeral conversion code, the conversion type is also obtained at the same time, and the process branches to step 11-5, and the candidate of the conversion type is determined as the first candidate.
If it is not a numeric conversion code, the process branches to step 11-6 and the conversion candidate of the current conversion type CCONTP is determined as the first candidate. After that, the process branches to step 11-8.

ステップ11−8において決定された第1候補に従って
同音語バッファを作成する。
A homophone word buffer is created in accordance with the first candidate determined in step 11-8.

ステップ11−9においてその同音語バッファに基づ
き、変換結果を出力バッファOBUFに作成し、出力す
る。
In step 11-9, the conversion result is created in the output buffer OBUF based on the homophone word buffer and is output.

第12図はステップ10−4の「次候補処理」を詳細化
したフローチャートである。
FIG. 12 is a detailed flowchart of the "next candidate process" in step 10-4.

ステップ12−1においてカーソル位置の文字データよ
り対応する同音語バッファを求める。
In step 12-1, the corresponding homophone word buffer is obtained from the character data at the cursor position.

ステップ12−2において、上記求めた同音語バッファ
の現候補番号をカウントアップし、次候補に設定する。
In step 12-2, the current candidate number of the homophone word buffer obtained above is counted up and set as the next candidate.

ステップ12−3において候補一覧を表示する。In step 12-3, the candidate list is displayed.

第13図はステップ10−5の「選択処理」を詳細化し
たフローチャートである。
FIG. 13 is a detailed flowchart of the "selection process" in step 10-5.

ステップ13−1においてカーソル位置の文字データよ
り対応する同音語バッファを求める。
In step 13-1, the corresponding homophone word buffer is obtained from the character data at the cursor position.

ステップ13−2において、上記求めた同音語バッファ
の現候補番号の示す候補をテキストバッファTBUFに
確定する処理を行なう。これにより、文字データは同音
語でなくなり通常文字となる。
In step 13-2, the process of determining the candidate indicated by the current candidate number of the homophone word buffer obtained in the text buffer TBUF is performed. As a result, the character data is not a homophone and becomes a normal character.

ステップ13−3において、もし候補一覧が表示されて
いればそれを消去する処理を行なう。
In step 13-3, if the candidate list is displayed, it is deleted.

ステップ13−4において上記確定された同音語候補の
変換タイプを取り出し、それが数字変換の候補であれ
ば、変換タイプを現変換タイプに代入する。これによ
り、次回に数字変換されたとき学習が行なわれることに
なる。
In step 13-4, the conversion type of the confirmed homophone word candidate is extracted, and if it is a candidate for numeral conversion, the conversion type is substituted for the current conversion type. As a result, learning will be performed the next time the numbers are converted.

[他の実施例] 以上の説明において、数字変換の変換する文字は単一の
文字であるとして説明したが、数字を複数の文字列に変
換する場合も同様に処理できる。例えば、数字列を漢数
字に変換する場合がそれに当たる。
[Other Embodiments] In the above description, the character to be converted in the number conversion has been described as a single character, but the same processing can be performed when converting a number into a plurality of character strings. For example, this corresponds to the case of converting a numeric string into Chinese numerals.

この場合も、やはり、カーソル上の文字を読み取り、そ
れによって第1候補を変化させる手法で同じ様に処理で
きる。
In this case, too, the same process can be performed by reading the character on the cursor and changing the first candidate accordingly.

ただし、このとき、もともと存在する漢数字列を正確に
取り除きつつ、新しく変換された変換結果に置換える処
理が必要があるとより便利なものになる。
However, at this time, it becomes more convenient if it is necessary to accurately remove the existing Chinese numeral string and replace it with the newly converted result.

[発明の効果] 以上の説明から明らかなように本発明によれば、数字を
変換する際に、もしカーソル上の文字が数字変換の変換
結果であるときにはその変換タイプの変換候補を第1候
補とし、そうでなければ、前回に選択された数字変換の
変換候補と同じ変換タイプの変換候補を第1候補とする
ことにより、オペレータの意図に沿った数字変換が行な
われるので、操作性の高い文字処理装置を実現すること
ができる。
[Effect of the Invention] As is apparent from the above description, according to the present invention, when converting a number, if the character on the cursor is the conversion result of the number conversion, the conversion candidate of the conversion type is the first candidate. Otherwise, since the conversion candidate of the same conversion type as the conversion candidate of the previously selected numerical conversion is set as the first candidate, the numerical conversion is performed in accordance with the intention of the operator, so that the operability is high. A character processing device can be realized.

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

第1図は本発明の全体構成のブロック図、 第2図は本発明における数字変換の変換例を示した図、 第3図は本発明における記号上での数字変換の変換例を
示した図、 第4図は本発明で変換する記号のコード表を示した図、 第5図は本発明における数字変換テーブルCONTBL
の構成を示した図、 第6図は本発明における入力バッファIBUF、出力バ
ッファOBUFの構成を示した図、 第7図は本発明におけるテキストバッファTBUFの構
成を示した図、 第8図は本発明における同音語バッファDOBUFの構
成を示した図、 第9図は本発明における現変換タイプCCONTPの構
成を示した図、 第10図〜第13図は本発明文字処理装置の動作を示す
フローチャート。 DISK…外部記憶部 CPU…マイクロプロセッサ ROM…読出し専用メモリ RAM…ランダムアクセスメモリ CONTBL…数字変換テーブル IBUF…入力バッファ OBUF…出力バッファ TBUF…テキストバッファ DOBUF…同音語バッファ CCONTP…現変換タイプ
FIG. 1 is a block diagram of the overall configuration of the present invention, FIG. 2 is a diagram showing a conversion example of digit conversion in the present invention, and FIG. 3 is a diagram showing a conversion example of digit conversion on symbols in the present invention. FIG. 4 is a diagram showing a code table of symbols to be converted in the present invention, and FIG. 5 is a numeral conversion table CONTBL in the present invention.
FIG. 6 is a diagram showing a configuration of an input buffer IBUF and an output buffer OBUF in the present invention, FIG. 7 is a diagram showing a configuration of a text buffer TBUF in the present invention, and FIG. The figure which showed the structure of the homophone word buffer DOBUF in invention, FIG. 9 is the figure which showed the structure of the present conversion type CCONTP in this invention, and FIGS. 10-13 are the flowcharts which show operation | movement of the character processing device of this invention. DISK ... External storage CPU ... Microprocessor ROM ... Read-only memory RAM ... Random access memory CONTBL ... Numeric conversion table IBUF ... Input buffer OBUF ... Output buffer TBUF ... Text buffer DOBUF ... Homophone buffer CCONTTP ... Current conversion type

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】数字を入力する入力手段と、 該入力手段より入力される数字の表示位置を指示するカ
ーソルを表示させるカーソル表示手段と、 該カーソル表示手段により表示されたカーソルの位置に
存在する文字の種類を判別する判別手段と、 前記入力手段より入力された数字を当該数字を表す複数
種の数字表現に変換する変換手段と、 該変換手段による変換結果を表示する候補表示手段と、 該候補表示手段により表示される複数種の数字表現より
1つの数字表現を選択する選択手段と、 該選択手段により選択された数字表現を前記カーソルの
位置に表示させる表示制御手段と、 前記選択手段により選択された数字表現の種類を記憶す
る記憶手段とを有する文字処理装置において、 前記候補表示手段が、前記変換手段の変換結果を表示す
る際に、前記判別手段により判別された文字の種類が数
字表現の1種であった時には、前記判別手段により判別
された種類の数字表現を優先して表示し、前記判別され
た文字の種類が数字表現でなかった時には、前記記憶手
段に記憶された種類の数字表現を優先して表示すること
を特徴とする文字処理装置。
1. An input means for inputting a numeral, a cursor display means for displaying a cursor for indicating a display position of the numeral input by the input means, and a cursor display means existing at the position of the cursor displayed by the cursor display means. Discriminating means for discriminating the type of characters, converting means for converting the number input by the input means into a plurality of types of numerical expressions representing the number, and candidate display means for displaying the conversion result by the converting means, Selection means for selecting one numeric expression from a plurality of types of numeric expressions displayed by the candidate display means, display control means for displaying the numeric expression selected by the selection means at the position of the cursor, and the selection means. In a character processing device having a storage unit that stores the selected type of numeral expression, the candidate display unit displays the conversion result of the conversion unit. At this time, when the type of the character discriminated by the discriminating means is one of the numerical expressions, the numerical expression of the type discriminated by the discriminating means is preferentially displayed, and the judged character type is A character processing device characterized by preferentially displaying a numerical expression of the type stored in the storage means when the numerical expression is not.
【請求項2】情報を入力する入力部と、情報を表示する
表示部と、数字表現の種類を記憶する記憶部と、を有す
る文字処理装置において、 前記表示部にカーソルを表示させるカーソル表示工程
と、 該カーソル表示工程により表示されたカーソルの表示位
置に対して、前記入力部より数字を入力する入力工程
と、 該入力工程により入力された前記数字を当該数字を表す
複数種の数字表現に変換する変換工程と、 前記カーソルの表示位置に前記入力工程による数字の入
力に先立って表示されている文字の種類を判別する判別
工程と、 該変換工程による変換結果を、候補として前記表示部に
表示し、その際、前記判別工程により判別された文字の
種類が数字表現の1種であった時には、前記判別された
種類の数字表現を優先して表示し、前記判別された文字
の種類が数字表現でなかった時には、前記記憶部に記憶
された種類の数字表現を優先して表示する候補表示工程
と、 該候補表示工程によって候補として表示される複数種の
数字表現より、選択指示に基づいて1つの数字表現を選
択する選択工程と、 該選択工程により選択された数字表現を前記カーソルの
表示位置に表示させる数字表現表示工程と、 前記選択工程により選択された数字表現の種類を前記記
憶部に記憶する記憶工程とを具えたことを特徴とする文
字処理方法。
2. A character processing device having an input section for inputting information, a display section for displaying information, and a storage section for storing the type of numeral expression, and a cursor displaying step of displaying a cursor on the display section. And an input step of inputting a number from the input unit to the display position of the cursor displayed in the cursor display step, and converting the number input in the input step into a plurality of types of numerical expressions representing the number. A conversion step of converting, a determination step of determining the type of character displayed at the cursor display position prior to the input of a number in the input step, and a conversion result of the conversion step in the display unit as a candidate. When the type of the character discriminated in the discrimination step is one of the numerical expressions at that time, the numerical expression of the discriminated type is preferentially displayed, When the type of the displayed character is not a numerical expression, a candidate display step of preferentially displaying the numerical expression of the type stored in the storage unit, and a plurality of types of numerical expressions displayed as candidates by the candidate display step A selection step of selecting one numeric expression based on a selection instruction, a numeric expression display step of displaying the numeric expression selected by the selection step at the display position of the cursor, and a number selected by the selection step. And a storage step of storing the type of expression in the storage section.
JP1317256A 1989-12-05 1989-12-05 Character processing apparatus and method Expired - Lifetime JPH0628062B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1317256A JPH0628062B2 (en) 1989-12-05 1989-12-05 Character processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1317256A JPH0628062B2 (en) 1989-12-05 1989-12-05 Character processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH03176759A JPH03176759A (en) 1991-07-31
JPH0628062B2 true JPH0628062B2 (en) 1994-04-13

Family

ID=18086221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1317256A Expired - Lifetime JPH0628062B2 (en) 1989-12-05 1989-12-05 Character processing apparatus and method

Country Status (1)

Country Link
JP (1) JPH0628062B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6299127B2 (en) * 2013-09-19 2018-03-28 カシオ計算機株式会社 Display device and display program

Also Published As

Publication number Publication date
JPH03176759A (en) 1991-07-31

Similar Documents

Publication Publication Date Title
US5418718A (en) Method for providing linguistic functions of English text in a mixed document of single-byte characters and double-byte characters
JPH07114568A (en) Data retrieval device
JPH0628062B2 (en) Character processing apparatus and method
JPH0628061B2 (en) Character processing apparatus and method
JPS628259A (en) Kana (japanese syllabary)-kanji (chinese character) converting system
JP2786260B2 (en) Kana-Kanji conversion device
JPS60245075A (en) Automatic agate display system
JP2944666B2 (en) Character processor
JP2697901B2 (en) Character processor
JP2713942B2 (en) Kana-Kanji conversion device
JPH0731679B2 (en) Character processor
JPS6089235A (en) character processing device
JPH0731680B2 (en) Character processor
JPH07200565A (en) Character processor
JPH0962666A (en) Document processing method and apparatus
JPS6348593A (en) character processing device
JPH04155467A (en) character processing device
JPH03141461A (en) Document processing method and device
JPS60221865A (en) Document processor
JPH0362170A (en) Comment input method in cad system
JPS6112308B2 (en)
JPH0447446A (en) Character processor
JPH04332073A (en) Method and device for processing character
JPS6336365A (en) Japanese language processor
JPH0816908B2 (en) Character processing device and character processing method