JPH0679213B2 - Character processor - Google Patents

Character processor

Info

Publication number
JPH0679213B2
JPH0679213B2 JP58216060A JP21606083A JPH0679213B2 JP H0679213 B2 JPH0679213 B2 JP H0679213B2 JP 58216060 A JP58216060 A JP 58216060A JP 21606083 A JP21606083 A JP 21606083A JP H0679213 B2 JPH0679213 B2 JP H0679213B2
Authority
JP
Japan
Prior art keywords
width
character
input
characters
full
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
JP58216060A
Other languages
Japanese (ja)
Other versions
JPS60108885A (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 JP58216060A priority Critical patent/JPH0679213B2/en
Publication of JPS60108885A publication Critical patent/JPS60108885A/en
Publication of JPH0679213B2 publication Critical patent/JPH0679213B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [技術分野] 本発明は、文字処理装置に関し、特に、半巾文字を含む
文書情報を入力可能な文字処理装置に関するものであ
る。
Description: TECHNICAL FIELD The present invention relates to a character processing device, and more particularly to a character processing device capable of inputting document information including half-width characters.

[従来技術] 従来のこの種文字処理装置、例えば、日本文を処理する
文字処理装置において、半巾文字を数字,英字,例えば
“X2”における“2"のような上付文字(スーパースクリ
プト),例えば“H20”における“2"のような下付文字
(サブスクリプト)等を入力するために必要とされる
が、文字巾が通常の文字(全巾文字)の1/2であるの
で、半巾文字が1行に奇数個存在する場合、それ以降の
文字が上の行または下の行の並びとずれてしまうことが
ある。このように文字の並びにずれが生じると、例え
ば、文書を編集する際に、文書の一部を構成し数行にわ
たる範囲を指定することが困難になることがある。
[Prior Art] In a conventional character processing device of this type, for example, a character processing device for processing Japanese sentences, half-width characters are numbers or letters, for example, superscripts such as " 2 " in "X 2 " (superscript). , for example, it is required to enter the "H 2 0" subscript (subscript), such as in the "2" or the like, the character width is a half of normal characters (full width characters) Therefore, when there are an odd number of half-width characters in one line, the characters after that may be out of alignment with the lines above or below. If the characters are misaligned in this way, it may be difficult to specify a range that constitutes a part of the document and extends over several lines when the document is edited, for example.

第1図(A)および(B)は、それぞれ、ずれが生じた
場合の表示画面上の表示状態および記録媒体への印刷状
態を示す。これら図において、小正方形および小長方形
が、それぞれ、全巾文字および半巾文字を表わすものと
する。
FIGS. 1 (A) and 1 (B) show the display state on the display screen and the print state on the recording medium when the misalignment occurs, respectively. In these figures, small squares and small rectangles represent full-width characters and half-width characters, respectively.

同図(A)において、DISPは表示画面である。操作者が
その表示画面DISPを参照しつつ領域Aを指定して編集作
業を行うことを所望したとき、その編集に係る領域Aに
は半巾文字を奇数個含む行lが存在するので、斜線を施
した全巾文字Cのように、領域Aに含まれるか否か明確
でない文字が存在する場合がある。すなわち、領域Aの
指定を行えないことになる。
In FIG. 3A, DISP is a display screen. When the operator desires to perform the editing work by designating the area A while referring to the display screen DISP, the area A relating to the editing has a line 1 including an odd number of half-width characters. There are cases where there is a character such as the full-width character C that is applied and it is not clear whether or not it is included in the area A. That is, the area A cannot be designated.

また、第1図(B)において、Pは記録媒体である。す
なわち、この図に示すように、印刷時に文字の並びにず
れが生じ、印刷文書の美観が損なわれるのみならず、読
みづらさが生じることになる。
Further, in FIG. 1 (B), P is a recording medium. That is, as shown in this figure, the characters are misaligned during printing, which not only impairs the aesthetic appearance of the printed document, but also makes it difficult to read.

このような文字の並びのずれに対処するために、従来、
いくつかの方式が採用されてきた。
In order to deal with such misalignment of characters, conventionally,
Several methods have been adopted.

例えば、そのうちの一つは、文字のずれをそのまま放置
し、編集範囲の指定時などに特殊な規則を定めるという
方式である。具体的には、第1図(A)において符号C
で示す全巾文字を境界線Aで示される領域に含めるか含
めないかという問題に対して、文字入力時には補正を加
えず、第1図(A)において斜線で示すようにずれたま
まにしておき、編集時などにおいて範囲を指定する場
合、枠を示す境界線A上の文字を「含める」または「含
めない」という規則を、予めまたはその都度指定するよ
うにした方式である。しかしながら、この方式は、範囲
の指定に際して、あるいは印刷に際して、操作者がこの
規則を認識していなければならないので、統一的な編集
を行うことができないという欠点を有していた。
For example, one of them is a method in which the deviation of characters is left as it is and a special rule is set when the editing range is specified. Specifically, reference numeral C in FIG. 1 (A)
For the problem of whether or not to include the full-width character indicated by in the area indicated by the boundary line A, no correction is made when the character is input, and it is left displaced as indicated by the diagonal line in FIG. 1 (A). In addition, when the range is designated at every time, for example, when editing, the rule of "include" or "not include" the character on the boundary line A indicating the frame is designated in advance or each time. However, this method has a drawback in that the operator must be aware of this rule when designating the range or at the time of printing, so that it is not possible to perform a unified editing.

また、他の方式として、半巾文字を2文字単位で扱うこ
ととし、文字の並びがずれるのを防止するようにする方
式がある。しかしながら、この方式によれば、入力して
いる半巾文字が奇数個目のものである場合に、その次の
半巾文字、すなわち偶数個目の半巾文字が入力されるま
で、その奇数個目の半巾文字が表示されないので、編集
の際に一組の半巾文字の間に別の文字を挿入することが
困難となるという欠点があった。
In addition, as another method, there is a method in which half-width characters are handled in units of two characters to prevent the characters from being misaligned. However, according to this method, when the half-width character being input is an odd-numbered half-width character, the odd-numbered half-width character is input until the next half-width character, that is, the even-numbered half-width character is input. Since the characters are not displayed, it is difficult to insert another character between the set of half-width characters when editing.

[目的] 本発明の目的は、半巾文字の入力処理に関連した従来の
欠点を除去し、半巾文字の1文字毎の入力が可能で、か
つ上の行または下の行とのずれを防止して、統一的な編
集を可能とする文字処理装置および文字処理方法を提供
することにある。
[Purpose] The object of the present invention is to eliminate the conventional drawbacks associated with the processing of inputting half-width characters, to enable input of half-width characters character by character, and to prevent deviation from the upper line or the lower line. Therefore, it is to provide a character processing device and a character processing method that enable unified editing.

[実施例] 以下、図面を参照して本発明を詳細に説明する。[Examples] Hereinafter, the present invention will be described in detail with reference to the drawings.

第2図は本発明を適用する装置の全体構成例を示し、こ
こでは所定の巾を有する全巾文字および所定の巾の2分
の1の巾を有する半巾文字を入力する入力手段1と、入
力された全巾文字および半巾文字を有する文字列につい
て、全巾文字および半巾文字の混在による文字列の並び
のずれを補正する補正手段2と、補正された文字列を記
憶する記憶手段3とを具える。
FIG. 2 shows an example of the entire configuration of an apparatus to which the present invention is applied. Here, input means 1 for inputting full-width characters having a predetermined width and half-width characters having a width half the predetermined width, With respect to the input character string having full-width characters and half-width characters, a correction unit 2 that corrects a misalignment of the character strings due to a mixture of full-width characters and half-width characters, and a storage unit 3 that stores the corrected character string. Equipped with.

第3図は、本発明文字処理装置の1実施例を示す。ここ
で、CPUは、例えば、マイクロプロセッサ形態の中央処
理装置であり、文字処理のための演算、論理判断等を行
い、アドレスバスAB、コントロールバスCB、データバス
DBを介して、それらのバスに接続された各構成要素を制
御する。尚、CPUは後述するROMに格納された制御の手順
を実行することにより、後述するCRTコントローラと共
に表示制御手段として機能する。
FIG. 3 shows an embodiment of the character processing device of the present invention. Here, the CPU is, for example, a central processing unit in the form of a microprocessor, and performs arithmetic operations for character processing, logical judgments, etc., and an address bus AB, a control bus CB, a data bus.
Control each component connected to those buses via DB. The CPU functions as a display control unit together with a CRT controller described later by executing a control procedure stored in a ROM described later.

アドレスバスABはマイクロプロセッサCPUの制御の対称
とする構成要素を指示するアドレス信号を転送する。コ
ントロールバスCBはマイクロプロセッサCPUの制御の対
称となる各構成要素のコントロール信号を転送して供給
する。データバスDBは各構成機器相互間のデータの転送
を行う。
The address bus AB transfers address signals which indicate components which are symmetrical to the control of the microprocessor CPU. The control bus CB transfers and supplies control signals of the respective constituents which are symmetrical to the control of the microprocessor CPU. The data bus DB transfers data between the constituent devices.

つぎに、ROMが、読出し専用の固定メモリであり、第6
図以降につき後述するマイクロプロセッサCPUによる制
御の手順等を記憶させておく。
Next, the ROM is a read-only fixed memory,
The procedure of control by the microprocessor CPU, which will be described later with reference to the drawings, is stored.

また、RAMは、1ワード16ビット構成の書込み可能のラ
ンダムアクセスメモリであって、各構成要素からの各種
データの一時記憶に用いる。
Further, the RAM is a writable random access memory having 1 word and 16 bits, and is used for temporary storage of various data from each component.

DISKは作成された文書の外部記憶としての磁気ディスク
装置である。
DISK is a magnetic disk device as an external storage of created documents.

KBは入力手段であるキーボードであり、英数字キー,平
仮名キー,片仮名キー等の文字記号入力キー、および漢
字変換の始めと終りとを指定するキーをはじめ、文字処
理装置に対する各種機能を指示するための各種のファン
クションキーを具える。
KB is a keyboard that is an input means, and instructs various functions for the character processing device, including alphanumeric keys, hiragana keys, katakana keys, and other character symbol input keys, and keys that specify the start and end of kanji conversion. With various function keys for.

第4図はキーボードKBから入力される文字のキーコード
の構成の一例を示す。本例ではキーコードを1文字につ
いて16ビットとする。そして、文字が全巾文字の場合に
は図中(A)に示すように、最上位ビットMSBを0と
し、最下位ビットLSBからの14ビット、すなわち第3〜1
6ビットにその全巾文字のコードを格納するようにす
る。また、半巾文字の場合には、図中(B)に示すよう
に最上位ビットMSBを1とし、最下位ビットLSBからの7
ビット、すなわち第10〜16ビットにその半巾文字のコー
ドを格納し、第2〜9ビットにはダミーデータ、例えば
全て"0"を格納するようにする。
FIG. 4 shows an example of the structure of the key code of the character input from the keyboard KB. In this example, the key code is 16 bits per character. When the character is a full-width character, the most significant bit MSB is set to 0 and the 14th bit from the least significant bit LSB, that is, the 3rd to 1st bits, as shown in FIG.
The code of the full width character is stored in 6 bits. In the case of half-width characters, the most significant bit MSB is set to 1 as shown in (B) of the figure, and 7 from the least significant bit LSB.
The bit, that is, the 10th to 16th bits, stores the code of the half-width character, and the 2nd to 9th bits store dummy data, for example, "0".

また、第3図において、DBUFはバッファメモリであり、
キーボードKBから入力された文書データ等を格納する。
Further, in FIG. 3, DBUF is a buffer memory,
It stores the document data etc. input from the keyboard KB.

第5図はそのバッファメモリDBUFのデータ構成の一例を
示す。本例では、バッファメモリDBUFは第4図示のキー
コードに対応したデータ構造を有する。すなわち、一つ
のデータDは16ビットから成り、最上位ビットMSBには
全巾文字と半巾文字との区別を行う“0"または“1"を格
納するようにし、全巾文字ASCの場合には最下位ビットL
SBからの14ビット、すなわち、第3〜16ビットに文字の
コードを格納する。また、半巾文字HSCについては、左
半分の半巾文字であれば第3〜9ビット、右半分の半巾
文字であれば第10〜16ビットを割り当てて、それぞれの
コードを格納する。
FIG. 5 shows an example of the data structure of the buffer memory DBUF. In this example, the buffer memory DBUF has a data structure corresponding to the key code shown in FIG. That is, one data D consists of 16 bits, and the most significant bit MSB stores "0" or "1" for distinguishing between full-width character and half-width character, and in the case of full-width character ASC. Least significant bit L
The character code is stored in the 14th bit from the SB, that is, in the 3rd to 16th bits. Regarding the half-width character HSC, the third to ninth bits are assigned to the left half-width character, and the tenth to 16th bits are assigned to the right half-width character, and the respective codes are stored.

第3図において、CRは指定手段であるカーソルレジスタ
であり、CPUによりその内容を読み書きできる。後述す
るCRTコントローラCRTCは、このカーソルレジスタCRに
格納されたアドレスに対応する表示装置CRT上の位置に
カーソルを表示する。なお、カーソルレジスタCRは半巾
単位で表示座標を表現するもので、0,1,2,3,4,…の値を
とる。
In FIG. 3, CR is a cursor register which is a designation means, and its contents can be read and written by the CPU. The CRT controller CRTC described later displays the cursor at the position on the display device CRT corresponding to the address stored in the cursor register CR. The cursor register CR expresses display coordinates in half-width units and takes values 0, 1, 2, 3, 4, ....

CRTは陰極線管を用いた表示装置であり、その表示装置C
RT上の文字等のドット構成の表示パターンおよびカーソ
ルの表示はCRTコントローラCRTCにより制御される。
CRT is a display device using a cathode ray tube, and the display device C
CRT controller CRTC controls the display pattern of the dot configuration such as characters on RT and the display of the cursor.

CRTコントローラCRTCはカーソルレジスタCRおよびバッ
ファDBUFに蓄えられた内容を表示器CRTに表示する。
The CRT controller CRTC displays the contents stored in the cursor register CR and the buffer DBUF on the display CRT.

CGはキャラクタジェネレータであり、表示装置CRTに表
示する文字,記号,カーソル等のキャラクタ信号を発生
する。
CG is a character generator, which generates character signals such as characters, symbols, and cursors to be displayed on the display device CRT.

かかる各構成要素からなる本実施例の文字処理装置は、
キーボードKBからの各種の入力に応じて作動するもので
あり、キーボードKBから入力がなされると、まず、イン
タラプト信号が中央処理装置CPUに送出され、その中央
処理装置CPUがROM内に記憶されている各種の制御信号を
読出し、それらの制御信号に従って各種の制御が行われ
る。
The character processing device according to the present embodiment, which includes the respective constituent elements,
It operates according to various inputs from the keyboard KB, and when an input is made from the keyboard KB, first, an interrupt signal is sent to the central processing unit CPU, and the central processing unit CPU is stored in the ROM. Various control signals that are present are read out, and various types of control are performed according to those control signals.

なお、バッファDBUFの内容を表示装置CRT上の位置に対
応させて表示を行う表示手段は公知であるのでその説明
を省略し、単に文書データ等をバッファDBUFに格納する
ことで表示が行われることとする。
It should be noted that display means for displaying the contents of the buffer DBUF in correspondence with the position on the display device CRT is publicly known, and therefore its explanation is omitted, and the display is performed by simply storing the document data and the like in the buffer DBUF. And

次に第6図を用いて本実施例の文字処理装置による表示
処理の概略を説明する。
Next, the outline of the display processing by the character processing apparatus of this embodiment will be described with reference to FIG.

第6図は文書作成時における画面の一部を示す。まず図
中(A)は、表示器CRT上に第L行目まで入力された文
字が表示され、さらに第L+1行目に全巾文字がいくつ
か入力されたあと、半巾文字が4文字入力されたことを
示している。
FIG. 6 shows a part of the screen when creating a document. First, in (A) in the figure, the characters entered up to the L-th line are displayed on the display CRT, and some full-width characters are entered on the (L + 1) th line, and then four half-width characters are entered. It shows that.

次に、同図(B)は、半巾文字がさらに1個入力された
状態を示す。このとき、入力した文字すなわち、この場
合“オ”の次にSPCで示す半巾の空白が付加され、カー
ソルCMはこの空白の下に位置する。
Next, FIG. 6B shows a state in which one more half-width character is input. At this time, a half-width blank indicated by SPC is added next to the input character, that is, "O" in this case, and the cursor CM is positioned below this blank.

次に、同図(C)は同図(B)に示す状態後、さらに半
巾文字が1個入力された状態を示す。このとき、新たに
入力された文字“カ”は同図(B)で付加された空白部
分SPCの位置に表示され、カーソルCMは半巾文字“カ”
の次の位置に移動し、同図中(B)において付加された
空白SPCは取りのぞかれている。
Next, FIG. 6C shows a state in which one half-width character is further input after the state shown in FIG. At this time, the newly input character "KA" is displayed at the position of the blank portion SPC added in the same figure (B), and the cursor CM is a half-width character "KA".
Moved to the position next to, and the blank SPC added in (B) in the figure has been removed.

そして、同図中(D)は同図(B)に示した状態後、全
巾文字が1個入力された場合を示す。この場合、図中
(B)において付加された空白SPCはそのまま保存さ
れ、新たに入力された全巾文字“K"は空白SPCの次に表
示されている。
Then, (D) in the figure shows a case where one full-width character is input after the state shown in (B) of the figure. In this case, the blank SPC added in (B) in the figure is saved as it is, and the newly input full width character "K" is displayed next to the blank SPC.

さらに、図中(E)は同図中(C)に示した状態後全巾
文字が1個入力された場合を示す。この場合はカーソル
CMが示していた位置に新たに入力された文字“K"が表示
される。なお、図中(A)に示した状態後に全巾文字が
入力された場合も同様である。
Further, (E) in the figure shows a case where one full width character is input after the state shown in (C) in the figure. In this case the cursor
The newly entered character "K" is displayed at the position indicated by the CM. The same applies when full-width characters are input after the state shown in FIG.

また、図中(D)および(E)において倍巾文字が入力
された場合も全巾文字の場合と同様に処理する。
Also, when a double-width character is input in (D) and (E) in the figure, it is processed in the same manner as in the case of a full-width character.

すなわち、入力された半巾文字が奇数個の場合には半巾
の空白を付加することによって以降の文字の並びがずれ
るのを補正する。
That is, when the number of input half-width characters is an odd number, a half-width blank is added to correct the misalignment of subsequent characters.

第7図〜第10図を用いて、かかる処理を詳述する。This processing will be described in detail with reference to FIGS. 7 to 10.

第7図はキーボードから文字が入力されたときの本実施
例の文字処理装置による処理手順の一例を示すフローチ
ャート、第8図および第9図は半巾文字を入力した場合
の格納状態を示す説明図、第10図は半巾の空白部分が付
加される状態を示す説明図である。
FIG. 7 is a flow chart showing an example of a processing procedure by the character processing device of this embodiment when a character is input from the keyboard, and FIGS. 8 and 9 are explanatory views showing a storage state when a half-width character is input. , FIG. 10 is an explanatory view showing a state in which a half-width blank portion is added.

まず、ステップS7-1においてキーボードから文字が入力
される。この入力により得られるキーコードは第4図示
のように、全巾または半巾に関する情報を有する。
First, in step S7-1, a character is input from the keyboard. The key code obtained by this input has information on full width or half width as shown in FIG.

次に、ステップS7-2において入力された文字が全巾文字
か半巾文字かを判別する。すなわち、この判別は第4図
に示したキーコードの最上位ビットMSBを参照すること
で行うことができる。入力した文字が半巾文字であると
判定された場合はステップS7-3に進み、全巾文字である
と判定された場合はステップS7-7に進む。
Next, it is determined whether the character input in step S7-2 is a full-width character or a half-width character. That is, this determination can be made by referring to the most significant bit MSB of the key code shown in FIG. If it is determined that the input characters are half-width characters, the process proceeds to step S7-3, and if it is determined that they are full-width characters, the process proceeds to step S7-7.

ステップS7-3においては、入力した半巾文字もカーソル
CMが存在する位置に対応するバッファDBUF上の位置に格
納する。カーソルレジスタCRの値が偶数の場合、すなわ
ち、第8図(A)または第10図(A)に示すように、カ
ーソルCMが全巾文字に対して左半分の位置にある場合に
は、第8図(B)または第10図(B)に示すように、入
力した半巾文字“X"のコードをバッファDBUFの第3〜9
ビットに格納し、最上位ビットMSBを1とする。カーソ
ルレジスタCRの値が奇数の場合、すなわち、第9図
(A)に示すように、カーソルCMが全巾文字に対して右
半分の位置にある場合は、第9図(B)に示すように、
入力した半巾文字“X"のコードをバッファの第10〜16ビ
ットに格納する。
In step S7-3, the entered half-width character is also the cursor
Store in the position on the buffer DBUF corresponding to the position where CM exists. If the value of the cursor register CR is an even number, that is, if the cursor CM is at the left half position with respect to the full width character as shown in FIG. 8 (A) or FIG. 10 (A), As shown in FIG. 8 (B) or FIG. 10 (B), input the code of the half-width character “X” in the third to the ninth of the buffer DBUF.
It is stored in bits and the most significant bit MSB is set to 1. When the value of the cursor register CR is odd, that is, when the cursor CM is at the right half position with respect to the full width character as shown in FIG. 9 (A), as shown in FIG. 9 (B). To
Stores the code for the half-width character “X” that was entered in the 10th to 16th bits of the buffer.

ステップS7-4においては、カーソルレジスタCRの値を+
1歩進することにより、カーソルを次の文字の位置へ移
動する。
In step S7-4, the value of cursor register CR is set to +
By moving one step, the cursor is moved to the position of the next character.

ステップS7-5においては、ステップS7-3でバッファDBUF
上に格納された半巾文字の格納位置が奇数個目であった
か否かを判定し、奇数個目であった場合にはステップS7
-6に進み、一方、偶数個目であった場合には処理を終了
する。この判定に際してはカーソルレジスタCRの値を参
照するが、ステップS7-4にてカーソルレジスタCRの値を
+1歩進しているので、カーソルレジスタCRの値が奇数
の場合にステップS7-6に進むようにする。
In step S7-5, in step S7-3 the buffer DBUF
It is determined whether the storage position of the half-width character stored above is an odd number, and if it is an odd number, step S7.
-6. On the other hand, if the number is an even number, the process ends. When making this determination, the value of the cursor register CR is referred to, but since the value of the cursor register CR is incremented by 1 in step S7-4, if the value of the cursor register CR is an odd number, the process proceeds to step S7-6. To do so.

ステップS7-6において、入力した半巾文字の次に半巾の
空白(スペース)SPCを付加する。半巾空白SPCの付加
は、第10図(C)に示すように、入力した半巾文字を格
納したバッファの第10〜16ビットに半巾空白SPCのコー
ドを格納することにより行う。すなわち、ステップS7-6
にて半巾文字を1文字入力した場合の処理を終了する。
なお、続けて半巾文字が入力された時は、ステップS7-6
において格納された半巾空白SPCのコードの位置をカー
ソルレジスタCRの値が指しているので、この半巾空白SP
Cのコードに入力された半巾文字のコードが上書きされ
ることになる。
In step S7-6, a half-width blank (space) SPC is added to the input half-width character. The half-width blank SPC is added by storing the code of the half-width blank SPC in the 10th to 16th bits of the buffer storing the input half-width character, as shown in FIG. 10 (C). That is, step S7-6
The process when one half-width character is input is completed.
If half-width characters are continuously input, step S7-6
Since the value of the cursor register CR points to the code position of the half-width blank SPC stored in, the half-width blank SP
The half-width character code entered in the C code will be overwritten.

ステップS7-2において全巾文字が入力されたと判定され
た場合には、ステップS7-7において半巾文字が奇数個入
力された後にその全巾文字が入力されたか否かを判定
し、肯定判定であれば、ステップS7-8に進み、否定判定
であればステップS7-9に進む。この判定は、連続して入
力された半巾文字の個数が奇数個である場合はカーソル
レジスタCRの値が奇数であるので、その値を調べること
により行う。
If it is determined in step S7-2 that full-width characters have been input, it is determined in step S7-7 whether or not full-width characters have been input after an odd number of half-width characters have been input, and a positive determination is made. If so, the process proceeds to step S7-8, and if negative determination, the process proceeds to step S7-9. This determination is made by checking the value of the cursor register CR, which is an odd number, when the number of half-width characters continuously input is an odd number.

ステップS7-8においては、カーソルを次の文字位置へ進
める。これは半巾文字が奇数個入力された後では、カー
ソルCMが全巾文字に対して右半分の位置にあり、そこか
ら全巾文字を表示すると上の行または下の行との文字の
並びがずれてしまうからである。さらに、本実施例にお
いて採用したバッファDBUFの構造によって、右半分の位
置からは全巾文字を格納できないからである。カーソル
CMを進める処理はカーソルレジスタCRの値を+1歩進す
ることにより行う。
In step S7-8, the cursor is advanced to the next character position. This is because after an odd number of half-width characters has been input, the cursor CM is located on the right half position with respect to the full-width character, and when the full-width character is displayed from that position, the character alignment with the upper line or the lower line is displayed. This is because they are out of alignment. Furthermore, due to the structure of the buffer DBUF adopted in this embodiment, full-width characters cannot be stored from the right half position. cursor
The process of advancing the CM is performed by incrementing the value of the cursor register CR by one.

ステップS7-9においては、入力した全巾文字をバッファ
DBUFに格納する。バッファDBUFへの格納は、カーソルCM
に対応する位置のバッファの最上位ビットMSBを0と
し、下位14ビットに入力した全巾文字のコードを格納す
ることにより行う。
In step S7-9, buffer the input full-width characters.
Store in DBUF. Cursor CM is stored in the buffer DBUF.
The most significant bit MSB of the buffer at the position corresponding to is set to 0, and the input full-width character code is stored in the lower 14 bits.

ステップS7-10においては、カーソルCMを次の文字位置
に進める。入力した文字が全巾文字であるので、カーソ
ルレジスタCRの値を+2歩進し、処理を終了する。
In step S7-10, the cursor CM is advanced to the next character position. Since the input character is a full-width character, the value of the cursor register CR is incremented by +2 and the process ends.

なお、上述の実施例においては入力はキーボードから行
うようにしたが、入力機器はタブレット、光学文字読取
装置(OCR)、オンライン文字認識装置など、入力文字
が、その文字巾の情報と共に得られるものであればよ
く、いかなる形態のものも用いることができる。
In addition, in the above-described embodiment, the input is performed from the keyboard, but the input device is a tablet, an optical character reader (OCR), an online character recognition device, etc., in which the input characters can be obtained together with the character width information. However, any form can be used.

また、実施例においては入力に関連した処理についての
み示したが、この処理は文書の編集の場合にも容易に適
用できること勿論である。
Further, in the embodiment, only the process related to the input is shown, but it goes without saying that this process can be easily applied to the editing of the document.

また、実施例においては、半巾文字の次の半巾の空白
(スペース)を付加するようにしているが、これは、表
示および印刷されないキャラクタであればその形態を問
わない。さらに、空白の付加は奇数文字目の半巾文字が
入力されるたびに行うようにしたが、半巾文字でない文
字が入力されるまで付加しないようになし、半巾でない
文字が入力され、それによって並びがずれる場合のみ付
加するようにしてもよい。さらに加えて、内部データ中
に空白を表現するコードを存在させるようにしても良
く、あるいは内部データ中には空白を表現するコードを
存在させずに表示を行うときに疑似的に付加させるよう
にしても良い。
Further, in the embodiment, a half-width blank space following the half-width character is added, but this may be any form as long as it is a character that is not displayed or printed. In addition, the space was added each time an odd-numbered half-width character was entered.However, it is not added until a non-half-width character is entered, and a non-half-width character is entered, and the sequence is changed accordingly. You may make it add only when it shifts. In addition, a code that represents a space may be present in the internal data, or a code that represents a space may not be present in the internal data and may be added in a pseudo manner when displaying. May be.

[効果] 以上の説明から明らかなように、本発明によれば、半巾
文字であっても全巾文字と同様に一文字ずつ入力して表
示されるようにしたので、入力に際して半巾文字の確認
ができ、さらに半巾文字が全巾文字や倍巾文字と混在し
ても上の行または下の行と文字と並びがずれることがな
いので、編集に際しての範囲指定においても統一的に行
うことができるようになる。
[Effect] As is apparent from the above description, according to the present invention, even if a half-width character is input and displayed one by one like the full-width character, it is possible to confirm half-width characters when inputting. Even if half-width characters and full-width characters and double-width characters are mixed, the upper line or the lower line will not be misaligned with the characters, so it is possible to uniformly specify the range when editing. Like

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

第1図(A)および(B)は従来の文字処理装置におい
て、全巾文字と半巾文字との混在により文字列にずれが
生じた場合の、それぞれ、表示状態および印刷状態を示
す線図、 第2図は本発明を適用する文字処理の全体構成図、 第3図は本発明装置の1実施例を示すブロック図、 第4図は文字のキーコードの1構成例を示す線図、 第5図は記憶手段としてのバッファメモリのデータ構成
例を示す線図、 第6図は本実施例の装置による表示処理の概略を説明す
る説明図、 第7図はその表示処理手順の一例を示すフローチャー
ト、 第8図および第9図は半巾文字を入力した場合の格納処
理を説明する説明図、 第10図は半巾文字を入力した場合の補正処理を説明する
説明図である。 1…入力手段、 2…補正手段、 3…記憶手段、 CPU…中央処理装置、 KB…キーボード、 DBUF…バッファメモリ、 ROM…リードオンリメモリ、 CRT…表示装置、 CR…カーソルレジスタ。
FIGS. 1 (A) and 1 (B) are line diagrams showing a display state and a printing state, respectively, when a character string is displaced due to a mixture of full-width characters and half-width characters in a conventional character processing device, 2 is an overall configuration diagram of character processing to which the present invention is applied, FIG. 3 is a block diagram showing one embodiment of the device of the present invention, FIG. 4 is a diagram showing one configuration example of a character key code, FIG. 5 is a diagram showing an example of the data structure of a buffer memory as a storage means, FIG. 6 is an explanatory view for explaining the outline of the display processing by the apparatus of this embodiment, and FIG. 7 shows an example of the display processing procedure. Flowcharts, FIGS. 8 and 9 are explanatory views for explaining the storing process when half-width characters are input, and FIG. 10 is an explanatory diagram for explaining the correction process when half-width characters are input. 1 ... Input means, 2 ... Correction means, 3 ... Storage means, CPU ... Central processing unit, KB ... Keyboard, DBUF ... Buffer memory, ROM ... Read only memory, CRT ... Display device, CR ... Cursor register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】全巾文字および半巾文字を入力するための
入力手段と、 入力される文字の表示位置を半巾文字単位に指定する指
定手段と、 前記指定手段が全巾文字に対応した表示単位の後半部の
位置を指定している場合において、 前記入力手段から半巾文字の入力が指示された場合、該
指示により入力される半巾文字を前記指定された後半部
の位置に表示し、前記入力手段から全巾文字の入力が指
示された場合、該指示により入力される全巾文字の表示
位置を前記指定された後半部の位置から半巾分後方にず
らして表示させる表示制御手段と を備えたことを特徴とする文字処理装置。
1. Input means for inputting full-width characters and half-width characters, designating means for designating the display position of the input characters in units of half-width characters, and said designating unit corresponding to full-width characters. In the case where the position of the latter half portion of is designated, when half-width characters are instructed from the input means, the half-width character input by the instruction is displayed at the designated rear half position, and the input is performed. And a display control means for displaying the full-width character input position by the instruction by shifting the display position of the full-width character by a half width backward from the designated latter half position. A character processing device characterized by the above.
JP58216060A 1983-11-18 1983-11-18 Character processor Expired - Lifetime JPH0679213B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58216060A JPH0679213B2 (en) 1983-11-18 1983-11-18 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58216060A JPH0679213B2 (en) 1983-11-18 1983-11-18 Character processor

Publications (2)

Publication Number Publication Date
JPS60108885A JPS60108885A (en) 1985-06-14
JPH0679213B2 true JPH0679213B2 (en) 1994-10-05

Family

ID=16682644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58216060A Expired - Lifetime JPH0679213B2 (en) 1983-11-18 1983-11-18 Character processor

Country Status (1)

Country Link
JP (1) JPH0679213B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2635602B2 (en) * 1987-07-30 1997-07-30 株式会社東芝 Document creation device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56117280A (en) * 1980-02-22 1981-09-14 Tokyo Shibaura Electric Co Semiiangle character processing system

Also Published As

Publication number Publication date
JPS60108885A (en) 1985-06-14

Similar Documents

Publication Publication Date Title
JPS6038752B2 (en) How to change text stream
JPS63766A (en) Document processor
JPH0679213B2 (en) Character processor
JP2699974B2 (en) Pattern registration method
JPH0361596B2 (en)
JPH0644230A (en) Character processing method
JPH0522933B2 (en)
JPH0554149B2 (en)
JP2728906B2 (en) Character processor
JPH0128974B2 (en)
JP2698348B2 (en) Character processor
JPS5965339A (en) Document editing device
JPS59180620A (en) Document formation device
JPS59143188A (en) External character processing system for character display
JPS6218596A (en) Working area display system
JPH0734197B2 (en) Information processing equipment
JPS59136840A (en) Character processor
JPH0447448A (en) Word processor
JPS60164873A (en) Word processor provided with simple language for preparation of table
JPH09319353A (en) Character preparing device
JPH0670737B2 (en) Character processor
JPS62229316A (en) Character processor
JPS607471A (en) Expanded character pattern output system for character pattern generator
JPH02176855A (en) Document processor
JPH04332074A (en) Method and device for processing character