JPH05135046A - Method and device for processing character - Google Patents

Method and device for processing character

Info

Publication number
JPH05135046A
JPH05135046A JP3295686A JP29568691A JPH05135046A JP H05135046 A JPH05135046 A JP H05135046A JP 3295686 A JP3295686 A JP 3295686A JP 29568691 A JP29568691 A JP 29568691A JP H05135046 A JPH05135046 A JP H05135046A
Authority
JP
Japan
Prior art keywords
width
characters
input
character
punctuation mark
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
JP3295686A
Other languages
Japanese (ja)
Inventor
Hiroshi Maruoka
広 丸岡
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 JP3295686A priority Critical patent/JPH05135046A/en
Publication of JPH05135046A publication Critical patent/JPH05135046A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To prepare a beautiful document by turning prearranged objects into a half-size characters. CONSTITUTION:The character processor is equipped with an input means 2 to input characters, document storing means 1 to store a document while mixing half-size characters and full-size characters, prearranged object setting means 3 to set whether the prearranged objects are inputted in the half or not, prearranged object discriminating means 4 to discriminate whether the characters inputted from the input means 2 are prearranged object characters or not, and prearranged object half-size converting means 5 to convert the characters discriminated as the prearranged objects by the discriminating means 4 into the half-size width when the setting means 3 sets that the prearranged objects are inputted in the half size.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文字処理装置に関し、特
に、文書中に文字を入力する場合の処理に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing device, and more particularly to a process for inputting a character in a document.

【0002】[0002]

【従来の技術】従来の文字処理装置には、文字を全角単
位でしか入力できない文字処理装置と、入力シフトの変
更により半角と全角とが入力可能で混在させることがで
きる文字処理装置と、文字の種類によりその文字幅・文
字間隔が異なる設定となっている文字処理装置がある。
2. Description of the Related Art A conventional character processing device includes a character processing device that can input characters only in full-width units, a character processing device that can mix half-width and full-width characters by changing input shifts, and There is a character processing device in which the character width and character spacing are set differently depending on the type.

【0003】[0003]

【発明が解決しようとしている課題】したがって、文字
を全角単位でしか入力できない装置の場合は、例えば通
常文字中に約物(括弧や句読点等)が出てくると、約物
と通常文字との間隔が空きすぎるため、見映えのよくな
い文書が作成されるという欠点がある。
Therefore, in the case of a device in which characters can only be entered in full-width units, for example, when a punctuation mark (parentheses or punctuation marks) appears in a normal character, the punctuation mark and the normal character are separated from each other. There is a drawback in that a document that does not look good is created because the intervals are too large.

【0004】また、入力シフトの変更により半角と全角
とが入力可能な装置の場合は、文書の仕上がりはよい
が、オペレータは、約物を入力する際には、その度毎に
一々半角シフトに設定して約物を半角で入力し、再び全
角シフトに戻して通常文字を入力さなければならず、入
力操作が大変面倒であった。
Further, in the case of a device capable of inputting half-width and full-width by changing the input shift, the finish of the document is good, but when the operator inputs the punctuation marks, the operator shifts by half-width each time. The input operation was very troublesome because I had to set it and enter the punctuation marks in half-width, then return to full-width shift again to enter normal characters.

【0005】次に、文字の種類によりその文字幅・文字
間隔が異なる設定となっている装置の場合は、文字の種
類によりその文字に最適な幅を持つため、単に入力して
いけば奇麗な文書を作成可能である。しかし、文字の種
類により異なる文字幅を持つため、それらのパターンを
格納する方法が、単なる全角/半角幅のパターンの場合
に比べて、非常に煩雑になるため、結果として高価な装
置になる。また、文字の配置位置が可変ピッチとなるた
め、これを高速で処理するには極めて高速なCPUを必
要とするため、この点でも高価な装置になるという欠点
がある。
Next, in the case of a device in which the character width and character spacing are set differently depending on the character type, there is an optimum width for that character depending on the character type, so if you simply type Documents can be created. However, since the character width varies depending on the type of character, the method of storing these patterns is much more complicated than the case of a simple full-width / half-width pattern, resulting in an expensive apparatus. Further, since the arrangement position of characters has a variable pitch, an extremely high-speed CPU is required to process the characters at a high speed, and this also has a drawback of being an expensive device.

【0006】そこで本発明では、半角と全角が混在して
入力できる文字処理装置であり、まず約物を半角で入力
するか全角で入力するかを指定し、約物を半角で入力す
る指定の場合には、入力文字列に対し、その中で約物が
存在すれば、それを自動的に半角幅に変換して文書内に
入力するため、文書編集の作成効率が向上し、見映えの
よい文書を作成できる文字処理装置を提供することを目
的とする。
Therefore, the present invention is a character processing device capable of inputting a mixture of half-width and full-width characters. First, it is designated whether the punctuation mark is to be inputted in half-width or full-width, and the punctuation mark is designated in half-width. In this case, if there is a punctuation mark in the input character string, it will be automatically converted to a half-width and input in the document, improving the efficiency of document editing and improving the appearance. An object is to provide a character processing device capable of creating a good document.

【0007】[0007]

【問題を解決するための手段】上記課題を解決するため
に、本発明文字処理装置は、文字を入力する入力手段
と、半角文字と全角文字が混在した配置で記憶可能な文
書記憶手段と、約物を半角で入力するか否かを設定する
設定手段と、前記入力手段より入力された文字が約物文
字か否かを判別する判別手段と、前記設定手段に約物を
半角で入力すると設定されている場合は、前記判別手段
により約物と判別された文字を半角幅に変換する変換手
段とを有する。
In order to solve the above-mentioned problems, the character processing apparatus of the present invention comprises an input means for inputting characters, a document storage means capable of storing half-width characters and full-width characters in a mixed arrangement. Setting means for setting whether or not to input punctuation characters in half-width, determination means for determining whether or not the characters input by the input means are punctuation characters, and inputting punctuation in half-width characters for the setting means When it is set, it has a conversion means for converting a character discriminated as a punctuation mark by the discrimination means into a half-width.

【0008】[0008]

【実施例】以下、図面を参照して本発明の1実施例を詳
細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0009】図1は、本発明文字処理装置の基本構成を
示す図である。
FIG. 1 is a diagram showing the basic configuration of the character processing apparatus of the present invention.

【0010】同図において、1は、半角文字と全角文字
が混在して配置可能な文書記憶手段、2は文字を入力す
る入力手段、3は、約物を半角で入力するかどうかを指
示し記憶する約物設定手段、4は、約物設定手段3の出
力が約物を半角で入力するときは、入力手段2の出力の
文字に対し約物文字かどうかを判別する約物判別手段、
5は、約物判別手段4の出力が約物である場合は、入力
手段2の文字を半角幅に変換する約物半角変換手段であ
る。
In the figure, 1 is a document storage means in which half-width characters and full-width characters can be mixedly arranged, 2 is input means for inputting characters, and 3 is an instruction as to whether or not half-width characters can be input. When the output of the punctuation mark setting means 3 inputs a punctuation mark in half-width, the punctuation mark setting means 4 to store the punctuation mark determining means for deciding whether or not it is a punctuation mark character with respect to the character output by the input means 2.
Reference numeral 5 is a punctuation mark half-width conversion unit for converting the character of the input unit 2 into a half-width when the output of the punctuation-mark determination unit 4 is a punctuation mark.

【0011】図2は、本実施例における約物の半角化の
具体例を示す図である。
FIG. 2 is a diagram showing a specific example of half-width conversion of the punctuation mark in this embodiment.

【0012】ここでは、入力文字として『「省力化」を
1位に、残りの』が入力される場合を例として説明す
る。
Here, a case will be described as an example in which ““ labor saving ”is ranked first and the rest” are input as input characters.

【0013】まず、全角のみで入力する場合は、図2
(A)のように入力される。次に約物半角モードであれ
ば、まず、『「』が約物であるため、半角幅に変換して
入力される。続いて『省』から『化』については、約物
でないため、そのまま全角幅で入力される。続い
て『」』は約物であるため、半角幅に変換して入力され
る。続いて『を』から『に』については、約物でないた
め、そのまま全角幅で入力される。続いて『、』は約物
であるため、半角幅に変換して入力される。続いて
『残』から『の』については、約物でないため、そのま
ま全角幅で入力される。結果として図2(B)に示すよ
うに入力される。
First, in the case of inputting only full-width characters, FIG.
Input as shown in (A). Next, in the punctuation mark half-width mode, first, "" is a punctuation mark, so it is converted into a half-width, and then input. Input in full width, and then """is a punctuation mark, so it is input after being converted to half width. Next, "o" to "ni" are not punctuation marks, so they are entered as full width. Then, since "," is a punctuation mark, it is input after being converted to a half-width. Then, "remaining" to "no" are not punctuation marks, so they are entered as full width. As a result, the input is made as shown in FIG.

【0014】図3は、本発明の1実施例の文字処理装置
を示す図である。
FIG. 3 is a diagram showing a character processing apparatus according to an embodiment of the present invention.

【0015】ここで、11はキーボードであり、文章の
入力やその他編集入力に必要な処理を指示するキーを有
する。なお、本発明における約物半角設定解除キーの入
力もここに備えられている。
Reference numeral 11 denotes a keyboard, which has keys for instructing processing necessary for text input and other editing input. In addition, the input of the approximately half-width setting cancel key in the present invention is also provided here.

【0016】12は、例えばマイクロプロッセサ形態の
CPUであり、ROM13に記憶された処理手順に従っ
て、文字処理に必要な制御を行っている。
Reference numeral 12 denotes a microprocessor type CPU, for example, which performs control necessary for character processing according to a processing procedure stored in the ROM 13.

【0017】ROM13は、図4〜図6に示す処理手順
を記憶しているメモリである。
The ROM 13 is a memory that stores the processing procedure shown in FIGS.

【0018】RAM14は、書き込み可能なメモリであ
り、文書メモリ15、先頭表示レジスタ17、及び文字
処理に必要なその他のメモリ領域18を含む。このメモ
リ領域18には本発明における約物半角モードの設定も
記憶される。イニシャライズ時は、このモードは通常モ
ードが設定記憶されている。
The RAM 14 is a writable memory and includes a document memory 15, a head display register 17, and another memory area 18 necessary for character processing. The memory area 18 also stores settings of the approximately half-angle mode of the present invention. At the time of initialization, the normal mode is set and stored as this mode.

【0019】文書メモリ15は、文字コードなどの文字
情報や修飾情報に関する情報が格納される。
The document memory 15 stores character information such as a character code and information regarding modification information.

【0020】カーソルレジスタ16は、カーソル位置を
記憶する。
The cursor register 16 stores the cursor position.

【0021】表示先頭レジスタは、表示される行の第1
桁の文字位置を記憶する。
The display head register is the first row of the displayed line.
Memorize the character position of the digit.

【0022】19は表示器であり、例えば48桁*15
行の文字情報とカーソルが表示される。
Reference numeral 19 is a display device, for example, 48 digits * 15
The textual information of the line and the cursor are displayed.

【0023】20は、各部の制御に必要なアドレス信
号、データ信号、及びコントロール信号の転送を行うバ
スラインである。
Reference numeral 20 is a bus line for transferring address signals, data signals and control signals necessary for controlling each section.

【0024】図4〜図6は、ROM13に記憶されCP
U12によって行われる、本発明の処理手順の1例を示
すフローチャートである。
4 to 6 show the CP stored in the ROM 13.
It is a flow chart which shows an example of the processing procedure of the present invention performed by U12.

【0025】図4は、全体処理の過程を示すフローチャ
ートである。
FIG. 4 is a flow chart showing the steps of the overall processing.

【0026】本装置は、電源を投入するとまず図4ステ
ップS1へ進み、イニシャライズされる。
When the power is turned on, this apparatus first proceeds to step S1 in FIG. 4 and is initialized.

【0027】ステップS2では、モードの選択が行わ
れ、文書編集処理が選択された場合は、ステップS3へ
進み文書編集処理を実行する。その他のモードが選択さ
れた場合には、その他の文書処理を行う。
In step S2, the mode is selected, and if the document editing process is selected, the process proceeds to step S3 to execute the document editing process. When another mode is selected, other document processing is performed.

【0028】図5は、文書編集処理の過程を示すフロー
チャートである。
FIG. 5 is a flow chart showing the process of document editing processing.

【0029】ステップS3の文書編集処理においては、
まず、ステップS31でキーの入力処理が行われる。
In the document editing process of step S3,
First, in step S31, a key input process is performed.

【0030】ここで終了キーが押された場合には、その
まま文書編集処理を終了する。また、約物設定解除キー
が入力された場合には、ステップS32の約物設定解除
処理において、メモリ領域18内の約物半角モードの設
定を、通常モードであれば約物半角モードへ、約物半角
モードであれば通常モードへ設定し、再びステップS3
1へ戻る。文字が入力された場合には、ステップS33
へ進み文字入力処理を実行する。その他のキーが押され
た場合には、ステップS33へ進み入力キーに応じた文
書編集処理を実行する。
If the end key is pressed here, the document editing process is ended. If the punctuation mark release key is pressed, the punctuation mark release mode in step S32 sets the punctuation mark half-width mode setting in the memory area 18 to the punctuation mark half-width mode in the normal mode. If the half-width mode is set, the normal mode is set, and step S3 is performed again.
Return to 1. If characters have been input, step S33.
Proceed to and execute the character input process. If any other key is pressed, the process proceeds to step S33 to execute the document editing process corresponding to the input key.

【0031】図6は、文字入力処理の過程を示すフロー
チャートである。
FIG. 6 is a flow chart showing the process of character input processing.

【0032】ステップS33の文字入力処理において
は、まずステップS331の約物半角判別処理におい
て、ステップS32で設定されている約物半角モードが
通常モードか約物半角モードかを判別する。この場合の
約物文字は例えば次の文字である。
In the character input process of step S33, first, in the punctuation mark half-width discrimination process of step S331, it is discriminated whether the punctuation mark half-width mode set in step S32 is the normal mode or the punctuation mark half-width mode. The punctuation marks in this case are, for example, the following characters.

【0033】句読点 、 , 。 . 括弧 ( ) 「 」 『 』 [ ] { }Punctuation marks ,. . brackets ( ) " " " " [ ] { }

【0034】ここで、通常モードと判別された場合に
は、ステップS333の文字記入処理へ進む。約物半角
モードと判別された場合には、ステップS332へ進
み、対象文字列中の約物文字の全角文字幅のコードを半
角文字幅のコードへ変換する。次に、ステップS333
の文字記入処理において、対象文字を文書メモリ15ヘ
記入する。
If it is determined that the mode is the normal mode, the process proceeds to the character entry process in step S333. If the punctuation mark half-width mode is determined, the process proceeds to step S332, and the full-width character width code of the punctuation mark character in the target character string is converted into a half-width character width code. Next, step S333.
In the character entry process (1), the target character is entered in the document memory 15.

【0035】以上示した処理の流れにより、まず約物を
半角で入力するか全角で入力するかを指定し、半角で入
力する場合には、文字の入力した結果に対し、その入力
文字列中で約物が存在すれば、それを自動的に半角幅に
変換して文書内に入力することが可能になる。
According to the flow of the processing shown above, it is first designated whether the punctuation marks are to be entered in half-width or full-width. When inputting in half-width, the characters entered in the input character string If there is a punctuation mark, it will be possible to automatically convert it to a half-width and input it in the document.

【0036】(その他の実施例)本実施例は全角幅の文
字を半角幅に変換する場合を示したが、同様に4倍角幅
の文字を縦倍角幅の文字に変換すること、横倍角幅の文
字を全角幅の文字に変換することも容易に実現できる。
また、本実施例は約物に変換する文字の例を示したが、
これらの文字はオペレータが選択的に各種の組み合わせ
で選択し、その選択された組で約物変換することも容易
に実現できる。また、本実施例は、JISキーボード配
列内に存在する約物を対象としてあるが、全角幅より半
角幅の方が余分なスペースが空かない文字については、
対象を広げることは構わない。
(Other Embodiments) In this embodiment, the case of converting a full-width character into a half-width character is explained. Similarly, a quadruple-width character is converted into a vertical double-width character. It is also possible to easily convert the character of to a full-width character.
In addition, in the present embodiment, an example of characters converted into punctuation marks is shown.
It is also easy to realize that the operator selectively selects these characters in various combinations and performs punctuation conversion with the selected set. In addition, although the present embodiment is intended for the punctuation marks existing in the JIS keyboard array, for a character in which the half-width is less than the full-width, there is no extra space,
It does not matter to expand the target.

【0037】また、本発明は、単体の装置に限らず、複
数の装置からなるシステムにも適用可能であり、更に、
装置またはシステムに、ソフトウェアを提供することに
よっても、実現可能であることは、言うまでもない。
The present invention is applicable not only to a single device but also to a system composed of a plurality of devices.
It goes without saying that it can be realized by providing software to the device or system.

【0038】[0038]

【発明の効果】上述したように本発明によれば、半角と
全角が混在して入力でき、まず約物を半角で入力するか
全角で入力するかを指定し、半角で入力する場合には、
文字の入力した結果に対し、その入力文字列中で約物が
存在すれば、それを自動的に半角幅に変換して文書内に
入力するため、文書編集の作成効率が向上し、簡単な処
理により、見映えのよい文書を作成できる文字処理装置
を提供することが可能になる。
As described above, according to the present invention, half-width and full-width characters can be input in a mixed manner. First, it is designated whether the punctuation mark is to be input in half-width or full-width. ,
If there is a punctuation mark in the input character string for the character input result, it is automatically converted to a half-width and input in the document, improving the efficiency of document editing and making it easier. The processing makes it possible to provide a character processing device that can create a document that looks good.

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

【図1】本発明文字処理装置の基本構成を示す図であ
る。
FIG. 1 is a diagram showing a basic configuration of a character processing device of the present invention.

【図2】約物の半角化の具体例を示す図である。FIG. 2 is a diagram showing a specific example of half-width conversion of a punctuation mark.

【図3】本発明の1実施例の文字処理装置を示す図であ
る。
FIG. 3 is a diagram showing a character processing device according to an embodiment of the present invention.

【図4】全体処理の過程を示すフローチャートである。FIG. 4 is a flowchart showing the steps of overall processing.

【図5】文書編集処理の過程を示すフローチャートであ
る。
FIG. 5 is a flowchart showing a process of document editing processing.

【図6】文字入力処理の過程を示すフローチャートであ
る。
FIG. 6 is a flowchart showing a process of character input processing.

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

11 キーボード 12 CPU 13 ROM 14 RAM 19 表示器 19A 表示用のバッファメモリ 20 バスライン 21 外部記憶装置 11 keyboard 12 CPU 13 ROM 14 RAM 19 indicator 19A display buffer memory 20 bus line 21 external storage device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文字を入力する入力手段と、 半角文字と全角文字が混在した配置で記憶可能な文書記
憶手段と、 約物を半角で入力するか否かを設定する設定手段と、 前記入力手段より入力された文字が約物文字か否かを判
別する判別手段と、 前記設定手段に約物を半角で入力すると設定されている
場合は、前記判別手段により約物と判別された文字を半
角幅に変換する変換手段とを有することを特徴とする文
字処理装置。
1. An input unit for inputting characters, a document storage unit capable of memorizing an arrangement in which half-width characters and full-width characters are mixed, setting means for setting whether or not to input punctuation marks in half-width characters, and the input. When it is set that the character input from the means is a punctuation mark character, and the setting means is to input the punctuation mark in half-width characters, the character determined to be a punctuation mark by the determination means is A character processing device, comprising: a conversion unit for converting to a half-width.
【請求項2】 入力文字を、半角文字と全角文字が混在
した配置で記憶可能な文字処理装置において、 約物を半角で入力するか否かを設定し、 入力された文字が約物文字か否かを判別し、 約物を半角で入力すると設定されている場合は、前記判
別により約物と判別された文字を半角幅に変換すること
を特徴とする文字処理方法。
2. A character processing device capable of storing input characters in a layout in which half-width characters and full-width characters are mixed, and whether or not to input punctuation marks in half-width characters is set. A character processing method, wherein it is determined whether or not to input the punctuation mark in half-width, and when it is set to input the punctuation mark in half-width, the character determined as the punctuation mark in the determination is converted into a half-width.
JP3295686A 1991-11-12 1991-11-12 Method and device for processing character Pending JPH05135046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3295686A JPH05135046A (en) 1991-11-12 1991-11-12 Method and device for processing character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3295686A JPH05135046A (en) 1991-11-12 1991-11-12 Method and device for processing character

Publications (1)

Publication Number Publication Date
JPH05135046A true JPH05135046A (en) 1993-06-01

Family

ID=17823870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3295686A Pending JPH05135046A (en) 1991-11-12 1991-11-12 Method and device for processing character

Country Status (1)

Country Link
JP (1) JPH05135046A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07141340A (en) * 1993-11-16 1995-06-02 Fuji Software Kk Document output method and document processor
KR100421129B1 (en) * 1994-12-07 2004-05-17 세이코 엡슨 가부시키가이샤 Character information processing device for performing printing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07141340A (en) * 1993-11-16 1995-06-02 Fuji Software Kk Document output method and document processor
KR100421129B1 (en) * 1994-12-07 2004-05-17 세이코 엡슨 가부시키가이샤 Character information processing device for performing printing

Similar Documents

Publication Publication Date Title
EP0125458A2 (en) Display menu/chart key
JPH04311275A (en) Picture forming device
JPS61254349A (en) Daisy wheel type printer
JPH05135046A (en) Method and device for processing character
JP2606917B2 (en) Image processing method
JPH0227150B2 (en)
JPH08211860A (en) Display color changing device
JPS5971528A (en) Original forming machine
JPS5819936A (en) Kanji (chinese character) input device
JPH0731313Y2 (en) Document input device
JPS5948412B2 (en) character converter
JPH0511319B2 (en)
JPH0640325B2 (en) Writing device
JPS6263366A (en) Searching system for unwritten part in word processor
JPH07141355A (en) Method and device for information processing
JPH08212048A (en) Document preparing device
JPS6367620A (en) Command input device
JPS61280945A (en) Letter processor
JPH0950535A (en) Image data output device
JPH05143049A (en) Document processor with settable and variable superscript and subscript character size
JPS59142632A (en) Character processing device
JPH04275666A (en) Document preparing device
JPS62229462A (en) Document processor
JPH07108719A (en) Document processor
JPH07325814A (en) Character output device and output method therefor