JP3632239B2 - Character converter - Google Patents

Character converter Download PDF

Info

Publication number
JP3632239B2
JP3632239B2 JP12556995A JP12556995A JP3632239B2 JP 3632239 B2 JP3632239 B2 JP 3632239B2 JP 12556995 A JP12556995 A JP 12556995A JP 12556995 A JP12556995 A JP 12556995A JP 3632239 B2 JP3632239 B2 JP 3632239B2
Authority
JP
Japan
Prior art keywords
numerical
character
type
characters
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12556995A
Other languages
Japanese (ja)
Other versions
JPH08305700A (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.)
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 JP12556995A priority Critical patent/JP3632239B2/en
Publication of JPH08305700A publication Critical patent/JPH08305700A/en
Application granted granted Critical
Publication of JP3632239B2 publication Critical patent/JP3632239B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、ワードプロセッサ等において、ある文字を他の文字に変換する文字変換装置に関する。
【0002】
【従来の技術】
ワードプロセッサ等においては、項目を分かり易く示すために、1文字分の大きさを持つ各種の数値文字が使用できるようになっている。
【0003】
例えば、図5の(A)に示す文書例では、数値文字として、丸数字が使用されており、同図の(B)の文書例では、括弧数字が使用されている。この他、数値文字としては、同図の(C)に示すように、ローマ数字(大文字、小文字)もよく用いられている。
【0004】
ところで、このような数値文字を使用した文書において、その使用している数値文字の種類を変更したいことがある。このような場合、例えば同図の(A)に示すような丸数字を同図の(B)に示すような括弧数字に変更したい場合には、次の2種類の変更方法があった。
【0005】
まず1つ目は、丸数字の数値文字が入力されている位置にカーソルを移動し、その上から括弧数字を入力する方法である。即ち、「丸数字の1」の上にカーソルを移動して「括弧数字の1」を入力、次に、「丸数字の2」の上にカーソルを移動して「括弧数字の2」を入力し、次に「丸数字の3」の上にカーソルを移動して「括弧数字の3」を入力し、次に、…と逐次上書きしていく方法である。
【0006】
2つ目の方法は、文書編集の基本機能である文字の置換機能を使用し、「丸数字の1」を「括弧数字の1」に、「丸数字の2」を「括弧数字の2」に、「丸数字の3」を「括弧数字の3」に、…と置き換える方法である。
【0007】
【発明が解決しようとする課題】
上記1つ目の方法の場合は、図6における表示例1に示すように、現在、カーソルが数値文字つまり「丸数字の1」の上にあるとき、別の種類の数値文字、例えば「括弧数字の1」を入力すると、同図の表示例2に示すように、その「丸数字の1」の代わりに「括弧数字の1」が文書に入力され、カーソルは次の桁に移動する。そして、次の「丸数字の2」を変更するために、その「丸数字の2」の上にカーソル移動して、「括弧数字の2」を入力することになる。従って、もし文書内に数値文字が100文字あれば、その100文字全てを1文字ずつ探し出してカーソル移動し、その上から適切な数値文字を入力する必要があり、大変な手間と時間がかかり、また入力忘れや入力間違いを起こす可能性があった。
【0008】
また、上記2つ目の方法の場合、上記1つ目の方法に比べ、文書内に存在するある特定の文字に限っては自動的に全て検索し、指定の文字に置換するが、文書内に使われている数値文字の最大数値の回数だけ置換機能を繰り返す必要があり(文書内に数値文字が「丸数字の1」から「丸数字の10」まで使用されている場合、置換機能を10回繰り返す必要がある)、やはり手間と時間がかかり、また置換忘れを起こす可能性があった。
【0009】
本発明の課題は、ある種類の数値文字から別の種類への数値文字への変換を一度の操作のみで行えるようにすることである。
【0010】
【課題を解決するための手段】
この発明の手段は次の通りである。
数値文字を数値の種類別に記憶すると共に、各種類における各数値文字をその数値文字の順番に従って記憶する数値文字記憶手段と、複数の文字からなる文書データ上において、任意の数値文字をその数値文字の種類とは異なる他の種類の数値文字に変更した場合、その変更前の種類を第1種類として特定し、その変更後における数値文字の種類を第2種類として特定する種類特定手段と、前記文書データ上において前記特定の第1種類と一致する種類の数値文字を検索すると共に、その検索された数値文字の数値順番を取得する順番取得手段と、前記特定の第2種類の各数値文字の内で、前記順番取得手段で取得された数値順番と一致する数値文字を読み出し、その読み出された数値文字を前記文書データ上で検索した数値文字と置換する数値置換手段とを具備する。
したがって、複数の文字からなる文書データ上において、任意の数値文字をその数値文字の種類とは異なる他の種類の数値文字に変更した場合、その変更前の種類を第1種類として特定し、その変更後における数値文字の種類を第2種類として特定して、文書データ上において第1種類と一致する種類の数値文字を検索すると共に、その検索された数値文字の数値順番を取得して、第2種類の各数値文字の内で、取得された数値順番と一致する数値文字を読み出し、その読み出された数値文字を文書データ上で検索した数値文字と置換することができる。
【0014】
【実施例】
以下、本発明の一実施例を、図1の(A)乃至図4の(B)を参照して説明する。
【0015】
図1の(A)は本発明の一実施例の適用されたワードプロセッサの構成を示す図で、入力部10は文書データや各種の機能命令を入力するキー入力装置であり、この入力部10から各キーに対応して出力される操作信号は、入力制御部12に与えられる。この入力制御部12は、入力されたキー操作信号を所定のコードに変換して保持するもので、CPU14はこの入力制御部12に保持されているキーコードを順次アクセスして取り込む。
【0016】
CPU14は、プログラムメモリ16に記憶されている各種プログラムに従ってこのワードプロセッサの全体動作を制御するものである。即ち、入力部10から入力制御部12を介して文書データが入力されると、CPU14は各種プログラムに従って、入力された文書データをRAM18のテキストメモリ18Aに格納したり、表示制御部20に与えて表示部22のテキスト画面に表示出力させる。
【0017】
また、入力部10からの入力によりテキストメモリ18Aの内容を編集するときにおいて、数値文字の上から別の種類の数値文字が入力された場合には、CPU14は、各種プログラムの内の数値文字置換プログラム16Aに従って、RAM18に設けられたIレジスタ18Bとポインタ18Cを使用して数値文字テーブル24を参照してテキストメモリ18Aの内容を変更する。そして、この変更後のテキストメモリ18Aの内容を表示制御部20に与えて表示部22のテキスト画面に表示出力させる。なお、数値文字テーブル24は、同図の(B)に示すように、括弧数字、丸数字、大文字のローマ数字、小文字のローマ数字、…を1から順に対応付けて記憶しているものである。そして、上記Iレジスタ18Bは、この数値文字テーブル24の何文字目かをカウントするためのものであり、ポインタ18Cは、この数値文字テーブル24のどの種類の数値文字を変換元及び変換先とするかを示すものである。
【0018】
次に、このような構成における動作を説明する。
【0019】
従来は、図6に示すように、カーソルが数値文字である「丸数字の1」の上にあるとき、別の種類の数値文字である「括弧数字の1」を入力すると、「丸数字の1」の代わりに「括弧数字の1」がテキストに入力され、カーソルは次の桁に移動するだけであった。これに対して、本実施例では、図2の表示例1に示すように、同様に現在、カーソルが数値文字である「丸数字の1」の上にあるとき、別の種類の数値文字である「括弧数字の1」を入力すると、表示例2に示すように、「丸数字の1」の代わりに「括弧数字の1」がテキスト上に入力され、カーソルが次の桁に移動すると同時に、テキスト上の他の丸数字も対応する括弧数字に変換される。即ち、「丸数字の2」が「括弧数字の2」に、「丸数字の3」が「括弧数字の3」に、「丸数字の4」が「括弧数字の4」に自動的に変換される。
【0020】
このような変換動作は、図3の(A)のフローチャートに示すようにして行われる。
【0021】
即ち、入力部10より何らかの文字がテキスト上に入力された場合、このフローチャートがスタートし、まず、その入力された文字を現在カーソルがある位置に相当するテキストメモリ18Aにある文字をRAM18に設けた不図示のバッファに待避させた後、そこテキストメモリ18Aの位置に上記入力文字をストアする(ステップS1)。次に、数値文字の上から別の種類の数値文字が入力されたものであったかどうかを判断する(ステップS2)。もしそうでなければ、通常の文字入力処理であるので、処理を終了する。
【0022】
一方、上記ステップS2において、ある数値文字上に別の種類の数値文字が入力されたと判断された場合には、数値文字置換プログラム16Aに従って、まず、数値文字テーブル24のポインタをセットするポインタセット処理を行った後(ステップS3)、テキスト上に存在する入力前の数値文字と同じ種類の数値文字全てを、入力後の数値文字と同じ種類の数値文字に置換する文字変換処理を行って(ステップS4)、処理を終了する。
【0023】
同図の(B)は、上記ステップS3におけるポインタセット処理を示している。
【0024】
即ち、まず数値文字テーブル24の先頭から変換元数値文字、つまり上記の例ではステップS1において待避しておいた「丸数字の1」を順に探す(ステップS31,S32)。そして、変換元数値文字が有ったならば、その数値文字の種類を示す変換元数値文字ポインタをRAM18に構成したポインタ18Cにセットする(ステップS33)。
【0025】
その後、同様にして変換先数値文字ポインタをセットする。即ち、数値文字テーブル24の先頭から変換先数値文字、つまり上記の例ではステップS1においてストアされた「括弧数字の1」を順に探す(ステップS34,S35)。そして、変換先数値文字が有ったならば、その数値文字の種類を示す変換先数値文字ポインタを上記ポインタ18Cにセットする(ステップS36)。
【0026】
次に、上記ステップS4における文字変換処理を図4の(A)のフローチャートを参照して説明する。
【0027】
即ち、まずテキストメモリ18Aの文字読み出し位置を示す不図示テキストポインタをリセットする(ステップS41)。そして、このテキストポインタがテキストメモリ18Aのエンドを指し示さないならば(ステップS42)、そのテキストポインタで指される文字に対して、詳細は後述するような文字データチェック及び対象文字変換処理を行った後(ステップS43)、テキストポインタを更新して(ステップS44)、上記ステップS42に戻る。つまり、テキストメモリ18Aの全体をその先頭から順次チェックしていき、変換すべき文字が有れば変換するものである。
【0028】
ここで、上記ステップS43における文字データチェック及び対象文字変換処理は、同図の(B)に示すようにして行われる。
【0029】
即ち、まずRAM18に構成されたIレジスタ18Bを「0」に初期化する(ステップS431)。そして、上記テキストポインタによって指されるテキストメモリ18Aの指定文字と、数値文字テーブル24の上記ポインタ18Cにセットされている変換元数値文字ポインタで示される種類の数値文字の内、上記Iレジスタ18Bの値で示される数値文字とが同じであるかどうか判別する(ステップS432)。即ち、上記の例では、テキストメモリ18Aの文字と「丸数字の1」とを比較することになる。
【0030】
そして、両者が同じでないならば、Iレジスタ18Bの値を更新し(ステップS433)、その更新されたIレジスタ18Bの値で示される数値文字テーブル24の文字が、その種類の数値文字がもはや無いことを示すENDコードであるかどうか判断する(ステップS434)。ENDコードの場合には、上記ステップS44に進むことになるが、ENDコードでなければ、上記ステップS432に戻って、次の数値文字との比較が行われる。つまり、上記テキストメモリ18Aから読出した文字を、「丸数字の2」,「丸数字の3」,「丸数字の4」,…と順次比較していき、一致するかどうか判断する。
【0031】
そして、上記ステップS432において一致すると判断されたときには、上記テキストポインタによって指されるテキストメモリ18Aの指定文字を、上記数値文字テーブル24の上記ポインタ18Cにセットされている変換先数値文字ポインタで示される種類の数値文字の内、上記Iレジスタ18Bの値で示される数値文字に書き換えて(ステップS435)、上記ステップS44に進む。
【0032】
このような処理により、図2の表示例2に示すように、「丸数字の2」が「括弧数字の2」に、2箇所の「丸数字の3」がそれぞれ「括弧数字の3」に、そして「丸数字の4」が「括弧数字の4」にそれぞれ自動的に書き換えられる。
【0033】
以上のように、文書中に項目を分かり易く示すための数値文字が使用され、その数値文字の種類を変更したい場合、通常の文字の入力により数値文字を1文字だけ変更すれば、文書中に存在する対応する全ての数値文字が同じ種類の数値文字に変更されるため、文書編集に時間と手間をかけず、また変更忘れが起こる可能性もなくすことができる。
【0034】
なお、通常の文字置換機能(検索文字と置換文字を入力することにより、文書中に存在する全ての検索文字を置換文字に置換する機能)においても同様の機能を持たせることができる。例えば、検索文字に「丸数字の1」、置換文字に「括弧数字の1」を入力すると、文書中の全ての「丸数字の1」を「括弧数字の1」に置換するだけでなく、同時に「丸数字の2」を「括弧数字の2」に、「丸数字の3」を「括弧数字の3」に、…に自動的に置換する。
【0035】
また、上記実施例では、新たな数値文字の上書きを行った際に記憶数値文字を新たな数値文字へ自動変換するようにしているが、変換指定によって始めて新たな数値文字へ変換するようにしても良い。
【0036】
また、小見出し,中見出し,大見出しの何れかを変換することで、見出し項目も変換するようにしても良い。例えば、大見出しの「括弧数字の1」を「1.」に、「括弧数字の2」を「2.」に変換した場合、中見出しとして使用されていた「丸数字の1」を「括弧数字の1」に、「丸数字の2」を「括弧数字の2」に、というように変換するようにしても良い。
【0038】
【発明の効果】
本発明によれば、複数の文字について、ある種類の文字から、その文字と関連する別の種類の文字への変換を一度の操作のみで行えるようになる。
【図面の簡単な説明】
【図1】(A)は一実施例の適用されたワードプロセッサのブロック構成図であり、(B)は(A)中の数値変換テーブルの記憶構成を示す図である。
【図2】一実施例の動作を説明するための表示変遷図である。
【図3】(A)は一実施例の動作を説明するためのフローチャートであり、(B)は(A)中のポインタセット処理のフローチャートである。
【図4】(A)は図3の(A)中の文字変換処理のフローチャートであり、(B)は(A)中の文字データチェック及び対象文字変換処理のフローチャートである。
【図5】(A)乃至(C)はそれぞれ数値文字の使用例を示す図である。
【図6】従来の動作を説明するための表示変遷図である。
【符号の説明】
10…入力部、12…入力制御部、14…CPU、16…プログラムメモリ、16A…数値文字置換プログラム、18…RAM、18A…テキストメモリ、18B…Iレジスタ、18C…ポインタ、20…表示制御部、22…表示部、24…数値文字テーブル。
[0001]
[Industrial application fields]
The present invention relates to a character conversion device that converts a character into another character in a word processor or the like.
[0002]
[Prior art]
In a word processor or the like, various numerical characters having a size corresponding to one character can be used in order to easily show items.
[0003]
For example, in the document example shown in FIG. 5A, a circled number is used as a numerical character, and in the document example in FIG. 5B, parenthesized numbers are used. In addition, Roman numerals (uppercase letters and lowercase letters) are often used as numerical characters, as shown in FIG.
[0004]
By the way, in a document using such numerical characters, there are cases where it is desired to change the type of numerical characters used. In such a case, for example, when it is desired to change a circled number as shown in (A) of the figure to a bracketed number as shown in (B) of the same figure, there are the following two types of changing methods.
[0005]
The first is a method in which the cursor is moved to a position where a circled numerical character is input, and a parenthesis is input from there. That is, move the cursor over “Circular Number 1” and enter “Parent Number 1”, then move the cursor over “Circular Number 2” and enter “Parent Number 2” Next, the cursor is moved over “circle number 3”, “parenthesis number 3” is input, and then overwritten sequentially.
[0006]
The second method uses a character replacement function, which is a basic function of document editing. “Circular number 1” is changed to “Parent number 1”, and “Circular number 2” is changed to “Parent number 2”. In this method, “circle number 3” is replaced with “bracket number 3” with.
[0007]
[Problems to be solved by the invention]
In the case of the first method, as shown in Display Example 1 in FIG. 6, when the cursor is currently over a numerical character, that is, “circle number 1”, another type of numerical character, for example, “parentheses” When a numeral “1” is entered, “parenthesis numeral 1” is entered in the document instead of the “circle numeral 1”, and the cursor moves to the next digit, as shown in display example 2 of FIG. Then, in order to change the next “circle number 2”, the cursor is moved over the “circle number 2”, and “parenthesis number 2” is input. Therefore, if there are 100 numerical characters in the document, it is necessary to search for all 100 characters one by one, move the cursor, and input an appropriate numerical character from there. Also, there was a possibility of forgetting to input or making an input error.
[0008]
In the case of the second method, as compared with the first method, only a specific character existing in the document is automatically searched and replaced with the designated character. It is necessary to repeat the replacement function as many times as the maximum number of numerical characters used in (If the numerical characters are used in the document from "1" to "10", the replacement function is It must be repeated 10 times), but it still took time and effort, and could cause forgetting to replace.
[0009]
An object of the present invention is to enable conversion from one type of numeric character to another type of numeric character with a single operation.
[0010]
[Means for Solving the Problems]
Means of the present invention are as follows.
Numerical character storage means for storing numerical characters according to the type of numerical values, and storing each numerical character in each type according to the order of the numerical characters, and any numerical character on the document data consisting of a plurality of characters The type specifying means for specifying the type before the change as the first type, and specifying the type of the numerical character after the change as the second type, The document data is searched for a numerical character of a type that matches the specific first type, and an order acquisition unit that acquires the numerical order of the searched numerical character, and each of the specific second type numerical character The numerical character that matches the numerical order acquired by the order acquisition means, and replaces the read numerical character with the numerical character searched on the document data Value substitution means.
Therefore, when an arbitrary numerical character is changed to another numerical character different from the numerical character type on the document data composed of a plurality of characters, the type before the change is specified as the first type, The type of the numeric character after the change is specified as the second type, the numeric character of the type that matches the first type is searched on the document data, the numerical order of the searched numeric character is acquired, Among the two types of numerical characters, the numerical character that matches the acquired numerical order can be read, and the read numerical character can be replaced with the numerical character searched on the document data.
[0014]
【Example】
An embodiment of the present invention will be described below with reference to FIGS. 1A to 4B.
[0015]
FIG. 1A is a diagram showing a configuration of a word processor to which an embodiment of the present invention is applied. An input unit 10 is a key input device for inputting document data and various function commands. The operation signal output corresponding to each key is given to the input control unit 12. The input control unit 12 converts the input key operation signal into a predetermined code and holds it. The CPU 14 sequentially accesses and takes in the key code held in the input control unit 12.
[0016]
The CPU 14 controls the overall operation of the word processor in accordance with various programs stored in the program memory 16. That is, when document data is input from the input unit 10 via the input control unit 12, the CPU 14 stores the input document data in the text memory 18A of the RAM 18 or gives it to the display control unit 20 according to various programs. Display output on the text screen of the display unit 22.
[0017]
Further, when editing the contents of the text memory 18A by input from the input unit 10, if another type of numerical character is input from above the numerical character, the CPU 14 replaces the numerical character replacement in various programs. According to the program 16A, the contents of the text memory 18A are changed by referring to the numerical character table 24 using the I register 18B and the pointer 18C provided in the RAM 18. Then, the contents of the text memory 18A after the change are given to the display control unit 20 and displayed on the text screen of the display unit 22. Note that the numerical character table 24 stores parenthesis numerals, round numerals, uppercase Roman numerals, lowercase Roman numerals,... In association with each other in order from 1 as shown in FIG. . The I register 18B is for counting the number of characters in the numerical character table 24, and the pointer 18C is used as a conversion source and conversion destination for which type of numerical character in the numerical character table 24. It is shown.
[0018]
Next, the operation in such a configuration will be described.
[0019]
Conventionally, as shown in FIG. 6, when the cursor is on the numerical character “circle number 1” and another numerical character “parenthesis number 1” is input, Instead of “1”, the “bracketed number 1” was entered into the text and the cursor only moved to the next digit. On the other hand, in this embodiment, as shown in display example 1 of FIG. 2, when the cursor is currently on the “circle number 1” which is a numerical character, another numerical character is used. When a certain “1” in parenthesis is entered, as shown in Display Example 2, “1 in parenthesis” is entered on the text instead of “1” in circle, and the cursor moves to the next digit at the same time. , Other round numbers on the text are also converted to the corresponding parenthesis numbers. That is, "circle number 2" is automatically converted to "parenthesis number 2", "circle number 3" is automatically converted to "bracket number 3", and "circle number 4" is automatically converted to "bracket number 4" Is done.
[0020]
Such a conversion operation is performed as shown in the flowchart of FIG.
[0021]
That is, when any character is input on the text from the input unit 10, this flowchart starts. First, the character in the text memory 18A corresponding to the current cursor position is provided in the RAM 18 with the input character. After being saved in a buffer (not shown), the input character is stored in the text memory 18A (step S1). Next, it is determined whether another type of numerical character has been input from above the numerical character (step S2). If not, it is a normal character input process, and the process ends.
[0022]
On the other hand, if it is determined in step S2 that another type of numeric character has been input on a certain numeric character, pointer setting processing for setting the pointer of the numeric character table 24 is first performed in accordance with the numeric character replacement program 16A. (Step S3), character conversion processing is performed to replace all numeric characters of the same type as the numeric characters before input existing in the text with numeric characters of the same type as the numeric characters after input (step S3). S4) The process is terminated.
[0023]
FIG. 5B shows the pointer setting process in step S3.
[0024]
That is, first, the conversion source numerical character, that is, “circle number 1” saved in step S1 in the above example is searched in order from the top of the numerical character table 24 (steps S31 and S32). If there is a conversion source numerical character, a conversion source numerical character pointer indicating the type of the numerical character is set in the pointer 18C configured in the RAM 18 (step S33).
[0025]
Thereafter, the conversion destination numeric character pointer is set in the same manner. That is, the conversion destination numerical character from the top of the numerical character table 24, that is, “the parenthesis number 1” stored in step S1 in the above example is searched in order (steps S34 and S35). If there is a conversion destination numerical character, a conversion destination numerical character pointer indicating the type of the numerical character is set in the pointer 18C (step S36).
[0026]
Next, the character conversion process in step S4 will be described with reference to the flowchart of FIG.
[0027]
That is, first, a text pointer (not shown) indicating a character reading position in the text memory 18A is reset (step S41). If this text pointer does not point to the end of the text memory 18A (step S42), a character data check and target character conversion process as will be described in detail later is performed on the character pointed to by the text pointer. (Step S43), the text pointer is updated (Step S44), and the process returns to Step S42. That is, the entire text memory 18A is checked sequentially from the beginning, and if there is a character to be converted, it is converted.
[0028]
Here, the character data check and the target character conversion processing in step S43 are performed as shown in FIG.
[0029]
That is, first, the I register 18B configured in the RAM 18 is initialized to “0” (step S431). Among the numerical characters of the type indicated by the designated character of the text memory 18A pointed to by the text pointer and the conversion source numerical character pointer set in the pointer 18C of the numerical character table 24, the I register 18B It is determined whether or not the numerical character indicated by the value is the same (step S432). That is, in the above example, the character in the text memory 18A is compared with “1”.
[0030]
If they are not the same, the value of the I register 18B is updated (step S433), and the character in the numerical character table 24 indicated by the updated value of the I register 18B no longer has that type of numerical character. It is determined whether or not the END code indicates (step S434). If it is an END code, the process proceeds to step S44. If it is not an END code, the process returns to step S432, and a comparison with the next numerical character is performed. That is, the characters read from the text memory 18A are sequentially compared with “circle number 2”, “circle number 3”, “circle number 4”, and so on to determine whether or not they match.
[0031]
When it is determined in step S432 that they match, the designated character in the text memory 18A pointed to by the text pointer is indicated by the conversion destination numerical character pointer set in the pointer 18C of the numerical character table 24. Of the types of numeric characters, the numeric characters indicated by the value in the I register 18B are rewritten (step S435), and the process proceeds to step S44.
[0032]
With this processing, as shown in display example 2 of FIG. 2, “circle number 2” becomes “parenthesis number 2” and two “round numbers 3” become “parenthesis number 3”, respectively. Then, “circle number 4” is automatically rewritten to “bracket number 4”.
[0033]
As described above, numerical characters are used in the document to indicate the items in an easy-to-understand manner, and when it is desired to change the type of the numerical character, if only one numerical character is changed by inputting a normal character, Since all the corresponding numerical characters that exist are changed to the same type of numerical characters, it is possible to save time and effort in document editing and to eliminate the possibility of forgetting to change.
[0034]
It should be noted that the same function can be provided in a normal character replacement function (a function that replaces all search characters existing in a document with replacement characters by inputting a search character and a replacement character). For example, if “1” is used as the search character and “1” is used as the replacement character, not only all “1” will be replaced with “1”. At the same time, “circle number 2” is automatically replaced with “parenthesis number 2”, “circle number 3” is replaced with “bracket number 3”, and so on.
[0035]
In the above embodiment, when a new numerical character is overwritten, the stored numerical character is automatically converted to a new numerical character. Also good.
[0036]
In addition, the heading item may be converted by converting any of the small heading, the medium heading, and the large heading. For example, when “1” is converted to “1.” and “2” is converted to “2.”, the “circle number 1” used as the middle heading is changed to “parentheses”. It is also possible to convert “number 1” to “circle number 2” to “parenthesis number 2”.
[0038]
【The invention's effect】
According to the present invention, a plurality of characters can be converted from one type of character to another type of character related to the character with a single operation.
[Brief description of the drawings]
FIG. 1A is a block diagram of a word processor to which an embodiment is applied, and FIG. 1B is a diagram showing a storage configuration of a numerical value conversion table in FIG.
FIG. 2 is a display transition diagram for explaining the operation of the embodiment;
FIG. 3A is a flowchart for explaining the operation of one embodiment, and FIG. 3B is a flowchart of pointer setting processing in FIG.
4A is a flowchart of character conversion processing in FIG. 3A, and FIG. 4B is a flowchart of character data check and target character conversion processing in FIG.
FIGS. 5A to 5C are diagrams showing examples of using numerical characters, respectively.
FIG. 6 is a display transition diagram for explaining a conventional operation.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 ... Input part, 12 ... Input control part, 14 ... CPU, 16 ... Program memory, 16A ... Numerical character replacement program, 18 ... RAM, 18A ... Text memory, 18B ... I register, 18C ... Pointer, 20 ... Display control part , 22 ... display unit, 24 ... numerical character table.

Claims (1)

数値文字を数値の種類別に記憶すると共に、各種類における各数値文字をその数値文字の順番に従って記憶する数値文字記憶手段と、
複数の文字からなる文書データ上において、任意の数値文字をその数値文字の種類とは異なる他の種類の数値文字に変更した場合、その変更前の種類を第1種類として特定し、その変更後における数値文字の種類を第2種類として特定する種類特定手段と、
前記文書データ上において前記特定の第1種類と一致する種類の数値文字を検索すると共に、その検索された数値文字の数値順番を取得する順番取得手段と、
前記特定の第 2 種類の各数値文字の内で、前記順番取得手段で取得された数値順番と一致する数値文字を読み出し、その読み出された数値文字を前記文書データ上で検索した数値文字と置換する数値置換手段と、
を具備することを特徴とする文字変換装置。
Numeric character storage means for storing numerical characters according to the type of numerical values, and storing each numerical character in each type according to the order of the numerical characters;
When an arbitrary numeric character is changed to another type of numeric character different from the numeric character type on the document data composed of a plurality of characters, the type before the change is specified as the first type, and after the change A type specifying means for specifying the type of numerical characters in the second type,
An order acquisition means for searching for numerical characters of a type that matches the specific first type on the document data, and acquiring the numerical order of the searched numerical characters;
Among the specific second- type numerical characters, numerical characters that match the numerical order acquired by the order acquisition means are read, and the read numerical characters are searched for on the document data and numerical characters A numerical replacement means to replace;
A character conversion device comprising:
JP12556995A 1995-04-27 1995-04-27 Character converter Expired - Fee Related JP3632239B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12556995A JP3632239B2 (en) 1995-04-27 1995-04-27 Character converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12556995A JP3632239B2 (en) 1995-04-27 1995-04-27 Character converter

Publications (2)

Publication Number Publication Date
JPH08305700A JPH08305700A (en) 1996-11-22
JP3632239B2 true JP3632239B2 (en) 2005-03-23

Family

ID=14913441

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12556995A Expired - Fee Related JP3632239B2 (en) 1995-04-27 1995-04-27 Character converter

Country Status (1)

Country Link
JP (1) JP3632239B2 (en)

Also Published As

Publication number Publication date
JPH08305700A (en) 1996-11-22

Similar Documents

Publication Publication Date Title
JP4313422B2 (en) Method and apparatus for presenting alternatives for selection using adaptive learning
JP3632239B2 (en) Character converter
US4761750A (en) Electronic calculator with a program calculation function
JPS6255189B2 (en)
JP2722684B2 (en) File system search device
JP2616451B2 (en) Data check device
JPH04362738A (en) Variable control method
JP3120443B2 (en) Command processing unit
JP2856450B2 (en) Kana-Kanji conversion method
JP3052339B2 (en) Document data processing device
JP3342028B2 (en) Kana-Kanji conversion device
JP2864418B2 (en) Document processing device
JPH0256059A (en) Document preparing device
JP3381069B2 (en) Data processing device
JPS5853768B2 (en) Document creation device with kanji dictionary
JPH09274620A (en) Data output device
JPH0581262A (en) 'kana'/'kanji' converter
JPH01307844A (en) Editing device
JPH04263329A (en) Knowledge correction back-up system
JPH05181835A (en) Data input device
JPH05189409A (en) Japanese word input device
JPH02297279A (en) Document processor with next registration code display function
JPH01304531A (en) Data base system
JPH04355825A (en) File access system of character unit
JPH0778160A (en) Document input device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041213

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090107

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100107

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110107

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110107

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120107

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130107

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130107

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees