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
JPH07104860B2 - Character processing method - Google Patents
[go: Go Back, main page]

JPH07104860B2 - Character processing method - Google Patents

Character processing method

Info

Publication number
JPH07104860B2
JPH07104860B2 JP5101655A JP10165593A JPH07104860B2 JP H07104860 B2 JPH07104860 B2 JP H07104860B2 JP 5101655 A JP5101655 A JP 5101655A JP 10165593 A JP10165593 A JP 10165593A JP H07104860 B2 JPH07104860 B2 JP H07104860B2
Authority
JP
Japan
Prior art keywords
character
width
full
cursor
characters
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
JP5101655A
Other languages
Japanese (ja)
Other versions
JPH0644230A (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 JP5101655A priority Critical patent/JPH07104860B2/en
Publication of JPH0644230A publication Critical patent/JPH0644230A/en
Publication of JPH07104860B2 publication Critical patent/JPH07104860B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

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 method,
In particular, the present invention relates to a character processing method applied to a character processing device capable of inputting document information including half-width characters.

【0002】[0002]

【従来の技術】従来の文字処理装置、例えば、日本文を
処理する文字処理装置において、半巾文字は数字,英
字,例えば“ X2 ”における“2”のような上付文字
(スーパースクリプト),例えば“H2O ”における
“2”のような下付文字(サブスクリプト)等を入力す
るために必要とされるが、文字巾が通常の文字(全巾文
字)の1/2 であるので、半巾文字が1 行に奇数個存在す
る場合、それ以降の文字が上の行または下の行の並びと
ずれてしまうことがある。このように文字の並びにずれ
が生じると、例えば、文書を編集する際に、文書の一部
を構成し数行にわたる範囲を指定することが困難になる
ことがある。
2. Description of the Related Art In a conventional character processing device, for example, a character processing device for processing Japanese sentences, a half-width character is a numeral, an alphabetic character, for example, a superscript (superscript) such as " 2 " in "X 2 ", For example, it is necessary to enter a subscript (subscript) such as "2" in "H 2 O", but the character width is 1/2 of the normal character (full width character). , If 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.

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

【0004】同図(A) において、DISPは表示画面であ
る。操作者がその表示画面DISPを参照しつつ領域A を指
定して編集作業を行うことを所望したとき、その編集に
係る領域A には半巾文字を奇数個含む行lが存在するの
で、斜線を施した全巾文字C のように、領域A に含まれ
るか否か明確でない文字が存在する場合がある。すなわ
ち、領域A の指定を行えないことになる。
In FIG. 1A, DISP is a display screen. When the operator desires to perform 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 it is not clear whether or not it is included in area A, such as the full-width character C that was applied. That is, the area A cannot be specified.

【0005】また、図1(B) において、P は記録媒体で
ある。すなわち、この図に示すように、印刷時に文字の
並びにずれが生じ、印刷文書の美観が損なわれるのみな
らず、読みづらさが生じることになる。
In FIG. 1B, 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.

【0006】[0006]

【発明が解決しようとする課題】このような文字の並び
のずれに対処するために、従来、いくつかの方式が採用
されてきた。
In order to deal with such misalignment of characters, several systems have been conventionally adopted.

【0007】例えば、そのうちの一つは、文字のずれを
そのまま放置し、編集範囲の指定時などに特殊な規則を
定めるという方式である。しかしながら、この方式は、
範囲の指定に際して、あるいは印刷に際して、操作者が
この規則を認識していなければならないので、統一的な
編集を行うことができないという欠点を有していた。
[0007] For example, one of them is a system in which the deviation of characters is left as it is and a special rule is set when the editing range is designated. However, this method
The operator has to be aware of this rule when designating the range or when printing, and thus has a drawback that uniform editing cannot be performed.

【0008】また、他の方式として、半巾文字を2 文字
単位で扱うこととし、文字の並びがずれるのを防止する
ようにする方式がある。しかしながら、この方式によれ
ば、入力している半巾文字が奇数個目のものである場合
に、その次の半巾文字、すなわち偶数個目の半巾文字が
入力されるまで、その奇数個目の半巾文字が表示されな
いので、編集の際に一組の半巾文字の間に別の文字を挿
入することが困難となるという欠点があった。
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.

【0009】本発明の目的は、これら問題点に鑑みてな
されたもので、とくに全巾文字に対して半巾文字を上書
きするに際して、当該上書きに係る文字列と上の行また
は下の行との並びにずれが生じないようにすることを目
的とする。
The object of the present invention has been made in view of these problems, and particularly when a full width character is overwritten with a half width character, the character string relating to the overwriting and the upper line or the lower line are overwritten. In addition, the purpose is to prevent deviation.

【0010】[0010]

【課題を解決するための手段】このような課題を解決す
るために、本願発明は、入力手段により入力された全巾
文字および半巾文字を表示手段の表示画面に表示し、表
示画面上に表示されている全巾文字の位置を指示し、指
示された全巾文字に半巾文字を上書きする文字処理方法
であって、前記指示されている位置が、全巾文字の前の
半巾部分である場合、上書きされた全巾文字の文字コー
ドを、上書きする半巾文字の文字コード所定の半巾文
字コードの順に置き換え、全巾文字の後の半巾部分であ
る場合、上書きされた全巾文字の文字コードを、所定の
半巾文字コード、上書きする半巾文字の文字コードの順
に置き換えることを特徴とする。
In order to solve such a problem, the present invention displays full-width characters and half-width characters input by the input means on the display screen of the display means and displays them on the display screen. Character processing method that indicates the position of full width character that is written and overwrites half width character on the specified full width character
And the specified position is before the full-width character.
If it is a half-width part, replace the character code of the overwritten full-width character with the character code of the half-width character to be overwritten and the specified half- width character code in that order.
If you want to change the character code of
Half width character code, character code of half width character to overwrite
It is characterized by replacing with.

【0011】[0011]

【作用】本願発明によれば、表示画面上に表示されてい
る、指示された全巾文字に半巾文字を上書きする場合
に、指示された位置が全巾文字の前の半巾部分である場
合は、全巾文字の文字コードが上書きする半巾文字の文
字コード、所定の半巾文字コードの順に置き換えられ、
全巾文字の後の半巾部分である場合は全巾文字の文字コ
ードが、所定の半巾文字コード、上書きする半巾文字の
文字コードの順に置き換えられる。全巾文字の文字コー
ドが上書きする半巾文字の文字コードと所定の半巾文字
コードとに置き換えられるので、上書きされた文字の
に続く文字が半角ずれることがない。また、指示された
位置に基づいて、上書きする半幅文字コードの位置が変
わるので、全巾文字の左半分または右半分のいずれの位
置にも、簡易な操作で半幅文字を上書きすることができ
る。
According to the present invention, it is displayed on the display screen.
When overwriting the specified full-width characters with half-width characters
If the specified position is the half-width part before the full-width character,
, The full-width character code overwrites the half-width character sentence.
The character code and the specified half-width character code are replaced in this order,
If it is a half-width part after the full-width character, the full-width character
The specified half-width character code,
It is replaced in the order of the character code. Since the full width character code is replaced with the overwriting half width character code and the predetermined half width character code, the characters following the overwritten character will not be shifted by one-byte . Also instructed
The position of the half-width character code to be overwritten changes based on the position.
Therefore, either the left half or the right half of the full-width character
You can also overwrite half-width characters with a simple operation.
It

【0012】[0012]

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

【0013】図2は本発明を適用する文字処理装置の全
体構成図である。すなわち、本発明装置は、所定の巾を
有する全巾文字および所定の巾の2分の1の巾を有する
半巾文字を入力する入力手段1と、文字列のデータを記
憶する記憶手段2と、記憶された文字列について修正,
編集を行う編集手段3と、編集された文字列および入力
手段により入力された文字列について、全巾文字および
半巾文字の混在による文字列の並びのずれを補正して、
記憶手段3に記憶させる補正手段4とを具える。
FIG. 2 is an overall configuration diagram of a character processing device to which the present invention is applied. That is, the device of the present invention comprises an input means 1 for inputting a full-width character having a predetermined width and a half-width character having a width half the predetermined width, and a storage means 2 for storing character string data. Modify the stored character string,
With respect to the editing means 3 for editing, and the edited character string and the character string input by the input means, the misalignment of the character strings due to the mixture of full-width characters and half-width characters is corrected,
Compensation means 4 to be stored in the storage means 3.

【0014】図3は、本発明を適用する文字処理装置の
1 実施例を示す。ここで、CPU は、例えば、マイクロプ
ロセッサ形態の中央処理装置であり、文字処理のための
演算、論理判断等を行い、アドレスバスAB、コントロー
ルバスCB、データバスDBを介して、それらのバスに接続
された各構成要素を制御する。
FIG. 3 shows a character processing apparatus to which the present invention is applied.
1 An example is shown. Here, the CPU is, for example, a central processing unit in the form of a microprocessor, performs arithmetic operations for character processing, logical judgments, etc., and accesses these buses via the address bus AB, control bus CB, and data bus DB. Control each connected component.

【0015】アドレスバスABはマイクロプロセッサCPU
の制御の対象とする構成要素を指示するアドレス信号を
転送する。コントロールバスCBはマイクロプロセッサCP
U の制御の対象とする各構成要素のコントロール信号を
転送して供給する。データバスDBは各構成機器相互間の
データの転送を行う。
The address bus AB is a microprocessor CPU
An address signal designating a component to be controlled by is transferred. Control bus CB is microprocessor CP
Transfers and supplies the control signal of each component controlled by U. The data bus DB transfers data between the constituent devices.

【0016】つぎに、ROM は、読出し専用の固定メモリ
であり、図6以降につき後述するマイクロプロセッサCP
U による制御の手順等を記憶させておく。
The ROM is a read-only fixed memory, and is a microprocessor CP described later with reference to FIG.
Memorize the control procedure by U.

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

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

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

【0020】図4はキーボードKBから入力される文字の
キーコードの構成の一例を示す。本例ではキーコードを
1 文字について16ビットとする。そして、文字が全巾文
字の場合には図中(A) に示すように、最上位ビットMSB
を0 とし、最下位ビットLSBからの14ビット、すなわち
第3 〜16ビットにその全巾文字のコードを格納するよう
にする。また、半巾文字の場合には、図中(B) に示すよ
うに最上位ビットMSBを1 とし、下位7 ビットでその半
巾文字のコードを表わすようにする。
FIG. 4 shows an example of the structure of a key code of a character input from the keyboard KB. In this example, the key code
Each character has 16 bits. If the character is a full-width character, the most significant bit MSB as shown in (A) in the figure.
Is set to 0 and the code of the full width character is stored in 14 bits from the least significant bit LSB, that is, in the 3rd to 16th bits. For half width characters, the most significant bit MSB is set to 1 and the lower 7 bits represent the half width character code, as shown in (B) in the figure.

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

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

【0023】図3において、CRはカーソルレジスタであ
り、CPU によりその内容を読み書きできる。後述するCR
T コントローラCRTCは、このカーソルレジスタCRに格納
されたアドレスに対応する表示装置CRT 上の位置にカー
ソルを表示する。なお、カーソルレジスタCRは半巾単位
で表示座標を表現するもので、0,1,2,3,4,…の値をと
る。
In FIG. 3, CR is a cursor register, the contents of which can be read and written by the CPU. CR to be described later
The T controller CRTC 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, ....

【0024】CRT は陰極線管を用いた表示装置であり、
その表示装置CRT 上の文字等のドット構成の表示パター
ンおよびカーソルの表示はCRT コントローラにより制御
される。
CRT is a display device using a cathode ray tube,
The display pattern of dots and the cursor on the display device CRT and the display of the cursor are controlled by the CRT controller.

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

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

【0027】かかる各構成要素からなる本発明を適用す
る文字処理装置は、キーボードKBからの各種の入力に応
じて作動するものであり、キーボードKBから入力がなさ
れると、まず、インタラプト信号が中央処理装置CPU に
送出され、その中央処理装置CPU がROM 内に記憶されて
いる各種の制御信号を読出し、それらの制御信号に従っ
て各種の制御が行われる。
The character processing device to which the present invention is applied, which comprises each of the above components, operates in response to various inputs from the keyboard KB. When an input is made from the keyboard KB, the interrupt signal is first transmitted to the center. The central processing unit CPU, which is sent to the processing unit CPU, reads out various control signals stored in the ROM, and various controls are performed in accordance with these control signals.

【0028】なお、バッファDBUFの内容を表示装置CRT
上の位置に対応させて表示を行う表示手段は公知である
のでその説明を省略し、単に文書データ等をバッファDB
UFに格納することで表示が行われることとする。
The contents of the buffer DBUF are displayed on the display device CRT.
Displaying means for displaying in correspondence with the upper position is well known, so its explanation is omitted and document data etc. are simply stored in the buffer DB.
It will be displayed by storing it in the UF.

【0029】次に、図6を用いて、本発明を適用する文
字処理装置による第1の編集処理の概略を説明する。こ
こで、第1の編集処理とは、カーソルが指示する位置に
存在する文字を全巾文字に置換える処理(以下オーバー
ライト処理という)と挿入処理とを行う処理を言う。ま
た、以下の記述において、左半分および右半分の半巾文
字とは、それぞれ全巾文字に対して左半分および右半分
に位置する半巾文字を言うものとする。
Next, the outline of the first editing process by the character processing device to which the present invention is applied will be described with reference to FIG. Here, the first editing process is a process of replacing a character existing at the position indicated by the cursor with a full-width character (hereinafter referred to as an overwrite process) and an inserting process. Further, in the following description, left half and right half half-width characters refer to half-width characters located on the left half and right half with respect to the full-width character, respectively.

【0030】図6において、(A) 〜(F) はオーバーライ
ト処理の場合の表示例を示す。
In FIG. 6, (A) to (F) show display examples in the case of overwrite processing.

【0031】図中(A) および(B) は、カーソルCMが左半
分の半巾文字を指示している場合であり、この場合、半
巾文字の上から全巾文字“X ”をオーバーライトする
と、半巾文字2 文字、すなわち、“B ”および“C ”が
全巾文字1 文字、すなわち、“X ”に置き換わることを
示す。
In the figures, (A) and (B) show the case where the cursor CM designates a half width character in the left half. In this case, when the full width character "X" is overwritten on the half width character, Indicates that two half-width characters, ie, “B” and “C”, are replaced by one full-width character, ie, “X”.

【0032】図中(C) および(D) はカーソルCMが右半分
の半巾文字を指示している場合であり、カーソルCMの位
置から全巾文字“X ”をオーバーライトすると、そのま
までは上の行または下の行と文字の並びがずれてしまう
ので、カーソルCMのある位置を半巾の空白(スペース)
SPC に置き換え、その次の文字位置すなわち、“E ”か
ら全巾文字“X ”をオーバーライトすることを示す。
In the figures, (C) and (D) are the cases where the cursor CM is pointing to the right half width character, and when the full width character "X" is overwritten from the position of the cursor CM, the upper half is left as it is. Since the line and the line below are out of alignment with the character, the position where the cursor CM is located is a half-width blank space.
Indicates to replace with SPC and overwrite full width character "X" from the next character position, ie "E".

【0033】図中、(E) および(F) は全巾文字上に全巾
文字をオーバーライト処理する場合であり、それぞれ図
中(A) および(C) と同様に置換されることを示す。
In the figure, (E) and (F) indicate the case where the full-width character is overwritten on the full-width character, and it indicates that the characters are replaced in the same manner as (A) and (C) in the figure, respectively. .

【0034】図6において(G) 〜(L) は、全巾文字を挿
入する場合を示す。
In FIG. 6, (G) to (L) show the case of inserting full-width characters.

【0035】図中(G) および(H) は左半分にある半巾文
字すなわち、“B ”の前に全巾文字“X ”を挿入する場
合を示す。
In the figures, (G) and (H) show the case where the full width character "X" is inserted before the half width character in the left half, that is, "B".

【0036】図中(I) は右半分にある半巾文字の前に全
巾文字を挿入する場合である。この場合、カーソルのあ
る位置に全巾文字をオーバーライトすると、そのままで
は上の行または下の行と文字の並びがずれてしまうの
で、半巾文字、すなわち、この場合“C ”と全巾文字す
なわち、この場合“X ”との間に半巾の空白SPC を付加
する。さらに、挿入した全巾文字“X ”の後の半巾文字
の数が奇数になるので、半巾文字、すなわちこの場合
“F ”と全巾文字すなわち、この場合“K ”との間にも
半巾の空白SPC を付加し、ずれを補正する。
In the figure, (I) is a case where a full width character is inserted before a half width character in the right half. In this case, if you overwrite the full-width character at the position of the cursor, the characters will be out of alignment with the upper line or the lower line, so half-width characters, that is, "C" and full-width characters , In this case, add a half-width blank SPC between “X”. In addition, the number of half-width characters after the inserted full-width character “X” will be an odd number, so that there is also a half-width character between the half-width character, that is, “F” in this case A blank SPC is added to correct the deviation.

【0037】図中(J) は右半分にある半巾文字の前に全
巾文字を挿入する場合であり、半巾文字の後に補正のた
めの空白を付加する場合である。この場合においても、
図中(C) ,(D)および(G) と同様に、半巾の空白SPC を付
加して全巾文字を挿入するようにするが、挿入した文字
の後の半巾文字の数が偶数となるので、挿入前に存在し
ていた半巾の空白、すなわち、この場合“E ”と“K ”
との間に存在していた空白SPC を除くようにする。
In the figure, (J) is a case where a full width character is inserted before the half width character in the right half and a case where a blank for correction is added after the half width character. Even in this case,
Similar to (C), (D) and (G) in the figure, half-width blank SPCs are added to insert full-width characters, but the number of half-width characters after the inserted character is an even number. So, the half-width blank that existed before the insertion, ie "E" and "K" in this case
Remove the blank SPC that existed between and.

【0038】図中(K) および(L) は全巾文字上、すなわ
ち、この場合“B ”の位置にカーソルCMがあるときに全
巾文字“X ”の挿入を行う場合であり、それぞれ、図
中、(G) および(I) と同様に処理することを示す。
In the figure, (K) and (L) indicate the case where the full-width character "X" is inserted on the full-width character, that is, when the cursor CM is located at the position "B" in this case. In the figure, the same processing as (G) and (I) is shown.

【0039】図7はかかる第1 の編集処理手順の1 例を
示すフローチャートである。
FIG. 7 is a flowchart showing an example of the first editing processing procedure.

【0040】まず、ステップS7-1において、全巾文字が
1 文字入力されると、ステップS7-2において、入力した
文字をオーバーライト処理するか挿入処理するかを調
べ、オーバーライト処理であればステップS7-13 、挿入
処理であればステップS7-3に進む。
First, in step S7-1, the full-width character is
When one character is input, in step S7-2, it is checked whether the input character is to be overwritten or inserted. If it is overwriting, go to step S7-13. If it is insertion, go to step S7-3. move on.

【0041】ステップS7-3においては、カーソルが全巾
文字に対して左半分にあるのか右半分にあるのかを判別
する。この判別は、カーソルレジスタCRの内容を参照す
ることで行う。すなわち、カーソルレジスタCRの内容が
偶数である場合、すなわちカーソルが左半分にある場合
はステップS7-10 に進み、カーソルレジスタCRの内容が
奇数である場合、すなわちカーソルが右半分にある場合
はステップS7-4に進む。
In step S7-3, it is determined whether the cursor is on the left half or the right half of the full width character. This determination is made by referring to the contents of the cursor register CR. That is, if the content of the cursor register CR is even, that is, if the cursor is in the left half, proceed to step S7-10.If the content of the cursor register CR is odd, that is, if the cursor is in the right half, proceed to step S7-10. Proceed to S7-4.

【0042】ステップS7-4においては、カーソルが指示
している文字が全巾文字か半巾文字かの判別を行う。こ
の判別は、カーソルに対応するバッファのDBUFの最上位
ビットMSB を参照することにより行う。すなわち、カー
ソルがさしている文字が全巾文字の場合はステップS7-9
に進み、半巾文字の場合はステップS7-5に進む。
In step S7-4, it is determined whether the character pointed by the cursor is a full-width character or a half-width character. This determination is made by referring to the most significant bit MSB of DBUF of the buffer corresponding to the cursor. That is, if the character pointed by the cursor is a full-width character, step S7-9
If it is a half-width character, proceed to step S7-5.

【0043】ステップS7-5においては、カーソルが指示
する半巾文字以降、最初に存在する全巾文字の1 文字前
の半巾文字が空白SPC であるか否かを判別する。その文
字が半巾の空白SPC である場合はステップS7-8、空白SP
C ではない場合にはステップS7-6に進む。
In step S7-5, it is determined whether the half width character before the first full width character after the half width character designated by the cursor is a blank SPC. If the character is a half-width blank SPC, step S7-8, blank SP
If it is not C, the process proceeds to step S7-6.

【0044】ステップS7-6においては、カーソルが指示
する半巾文字以降最初に存在する全巾文字から、適当な
区切りまでの文字列を全巾文字1 文字分後にずらす。さ
らに、その最初に存在する全巾文字までの半巾文字を半
巾文字1 文字分後にずらす。
In step S7-6, the character string from the first full-width character after the half-width character designated by the cursor to an appropriate division is shifted by one full-width character. In addition, the first half-width characters up to the full-width character are shifted by one half-width character.

【0045】続いて、ステップS7-7においてはこの処理
により全巾文字と半巾文字との間に生じる半巾文字1 文
字分のすき間に半巾の空白SPC を付加する。このすき間
は半巾文字を半巾文字1 文字分ずらすために生じるもの
であり、半巾文字の列の最初(カーソルの位置) と最後
とに生じる。
Subsequently, in step S7-7, a half-width blank SPC is added to the space for one half-width character generated between the full-width character and the half-width character by this processing. This gap is created by shifting the half-width character by one half-width character, and it occurs at the beginning (position of the cursor) and the end of the half-width character string.

【0046】ステップS7-8においては、半巾文字の列の
最後の空白を取り除き、カーソルがさす半巾文字以降取
り除いた空白の1 文字前までの文字列を半巾文字1 文字
分後にずらし、ステップS7-7に進む。
In step S7-8, the last blank space in the half-width character string is removed, and the character string up to one character before the blank space after the half-width character pointed by the cursor is shifted by one half-width character, and then step S7- Proceed to 7.

【0047】ステップS7-9においては、カーソルを半巾
文字1 文字分進める。これは、カーソルレジスタCRの内
容を+1歩進することにより行う。
In step S7-9, the cursor is advanced by one half-width character. This is done by incrementing the contents of the cursor register CR by one.

【0048】ステップS7-10 においては、カーソルが指
示する文字以降適当な区切りまでの文字列を全巾文字1
文字分後にずらす。これによって生じるカーソルが指示
する位置のすき間に対応したバッファDBUFには、いかな
る文字情報が格納されていてもよい。
In step S7-10, the character string from the character pointed by the cursor to the proper delimiter
Shift after a character. Any character information may be stored in the buffer DBUF corresponding to the gap of the position indicated by the cursor generated thereby.

【0049】ステップS7-11 においては、カーソルが指
示する文字位置に対応したバッファDBUFに入力した全巾
文字を格納する。
In step S7-11, the full-width character input to the buffer DBUF corresponding to the character position designated by the cursor is stored.

【0050】ステップS7-12 においては、カーソルを全
巾文字1 文字分進める。これは、カーソルレジスタCRの
内容を+2歩進することにより行う。この処理をもって、
全巾文字1 文字が入力された場合の処理を終了する。
In step S7-12, the cursor is advanced by one full width character. This is done by incrementing the contents of the cursor register CR by +2. With this process,
Terminates the process when one full-width character is input.

【0051】オーバーライト処理を行う場合には、ステ
ップS7-13 において、カーソルが指示する文字が全巾文
字か半巾文字を判別する。この判別は、カーソルに対応
するバッファDBUFの最上位ビットMSB を参照することに
より行う。カーソルが指示する文字が全巾文字である場
合はステップS7-11 に進み、半巾文字である場合はステ
ップS7-14 に進む。
When the overwrite processing is performed, it is determined in step S7-13 whether the character pointed by the cursor is a full-width character or a half-width character. This determination is made by referring to the most significant bit MSB of the buffer DBUF corresponding to the cursor. If the character pointed by the cursor is a full-width character, the process proceeds to step S7-11, and if it is a half-width character, the process proceeds to step S7-14.

【0052】ステップS7-14 において、カーソルが全巾
文字に対して左半分にあるか右半分にあるかを判別す
る。この判別はカーソルレジスタCRの内容を参照するこ
とにより行う。すなわち、カーソルレジスタCRの内容が
偶数、すなわちカーソルが左半分にある場合にはステッ
プS7-11 に進み、カーソルレジスタCRの内容が奇数、す
なわちカーソルが右半分にある場合にはステップS7-15
に進む。
In step S7-14, it is determined whether the cursor is in the left half or the right half of the full width character. This judgment is made by referring to the contents of the cursor register CR. That is, if the content of the cursor register CR is even, that is, if the cursor is in the left half, proceed to step S7-11, and if the content of the cursor register CR is odd, that is, if the cursor is in the right half, step S7-15.
Proceed to.

【0053】ステップS7-15 において、カーソルが指示
する半巾文字を半巾の空白SPC に置き換える。
In step S7-15, the half-width character designated by the cursor is replaced with a half-width blank SPC.

【0054】ステップS7-16 においては、カーソルを半
巾文字1 文字分進める。これは、カーソルレジスタCRの
内容を+1だけ歩進することにより行い、この処理の終了
後、ステップS7-11 に移行する。
In step S7-16, the cursor is advanced by one half-width character. This is done by incrementing the content of the cursor register CR by +1. After the end of this processing, the flow shifts to step S7-11.

【0055】次に、図8を用いて、本発明を適用する文
字処理装置による第2 の編集処理手順の概略を説明す
る。
Next, with reference to FIG. 8, an outline of the second editing processing procedure by the character processing device to which the present invention is applied will be described.

【0056】ここで、第2 の編集処理とは、カーソルが
指示する位置に存在する全巾文字または半巾文字に対し
ての半巾文字のオーバーライト処理および挿入処理を言
う。
Here, the second editing process is a process of overwriting and inserting a half-width character to a full-width character or a half-width character existing at the position indicated by the cursor.

【0057】図中(A) に示すように、カーソルCMが全巾
文字“L ”の左半分にあった場合のオーバーライト処理
においては、カーソルが指示する位置に入力した半巾文
字、すなわち、この場合“X ”を表示し、右半分に半巾
の空白(スペース) SPC を付加するようにする。
As shown in (A) in the figure, in the overwrite processing when the cursor CM is in the left half of the full width character "L", the half width character input at the position designated by the cursor, that is, this Display "X" and add a half-width SPC to the right half.

【0058】図中(B)に示すように、カーソルCMが全巾
文字“L ”の右半分にあった場合のオーバーライト処理
においては、左半分に半巾の空白SPC を付加し、右半分
に入力した半巾文字“X ”を表示する。
As shown in (B) in the figure, in the overwrite process when the cursor CM is in the right half of the full-width character "L", a half-width blank SPC is added to the left half and the right half is added. Displays the half-width character "X" that you entered.

【0059】図中(C) に示すように、カーソルCMが半巾
文字“M ”を指示していた場合のオーバーライト処理に
おいては、カーソルCMが指示している位置に入力した半
巾文字“X ”を表示するようにする。
As shown in (C) in the figure, in the overwrite processing when the cursor CM is pointing to the half-width character "M", the half-width character "X" input at the position indicated by the cursor CM To be displayed.

【0060】図中(D) に示すように、カーソルCMが全巾
文字“L ”の左半分にあった場合の挿入処理は、カーソ
ルCMが指示する文字“L ”とその前の文字“K ”との間
で行い、挿入した半巾文字“X ”には半巾の空白SPC を
付加するようにする。
As shown in (D) in the figure, when the cursor CM is in the left half of the full-width character "L", the insertion process is performed by the character "L" indicated by the cursor CM and the character "K" before it. ", And add a half-width blank SPC to the inserted half-width character" X ".

【0061】図中(E) に示すように、カーソルCMが全巾
文字“L ”の右半分にあった場合の挿入処理は、カーソ
ルCMが指示する文字“L ”とその次の文字“M ”との間
で行い、挿入した半巾文字“X ”には半巾の空白を付加
するようにする。
As shown in (E) in the figure, when the cursor CM is in the right half of the full width character "L", the insertion processing is performed by the character "L" indicated by the cursor CM and the character "M" next to it. ", And add a half-width space to the inserted half-width character" X ".

【0062】図中(F) に示すように、カーソルCMが半巾
文字を指示し、その半巾文字以降最初に存在する全巾文
字の一文字前、すなわち半巾文字列の最後尾に存在する
半巾文字が空白でなかった場合の挿入処理においては、
カーソルCMのさす文字“L ”とその前の文字“K ”との
間に入力した文字“X ”を挿入し、半巾文字列の最後尾
に半巾の空白SPC を付加するようにする。
As shown in (F) in the figure, the cursor CM indicates a half-width character, and the one-width character before the first full-width character after the half-width character, that is, the half-width character existing at the end of the half-width character string is In the insertion process when it is not blank,
Insert the entered character "X" between the character "L" at the cursor CM and the character "K" before it, and add a half-width blank SPC to the end of the half-width character string.

【0063】図中(G) に示すように、カーソルCMが半巾
文字“L ”を指示し、半巾文字列の最後尾の文字が空白
SPC である場合の挿入処理においては、その空白SPC を
取り除き、カーソルCMのさす文字“L ”とその前の文字
“K ”との間に入力した文字“X ”を挿入するようにす
る。
As shown in (G) in the figure, the cursor CM indicates a half-width character "L", and the last character of the half-width character string is blank.
In the insertion processing in the case of SPC, the blank SPC is removed and the input character "X" is inserted between the character "L" of the cursor CM and the character "K" before it.

【0064】なお、これらいずれの場合においても、オ
ーバーライト処理または挿入の処理の後、カーソルCMは
半巾文字1 文字分後へ移動する。
In any of these cases, after the overwrite processing or the insertion processing, the cursor CM is moved backward by one character.

【0065】次に、図9〜図12を用いて、かかる第2
の編集処理を詳述する。図9は第2の編集処理手順の一
例を示すフローチャート、図10および図11は半巾文
字のオーバーライト処理において、カーソル指示位置に
応じたバッファメモリのデータ格納状態を説明する説明
図、図12は処理の過程において全巾文字1 文字を半巾
の空白2 文字に置換してバッファメモリに格納する状態
を示す説明図である。
Next, with reference to FIG. 9 to FIG.
The editing process of will be described in detail. FIG. 9 is a flow chart showing an example of the second editing processing procedure, FIGS. 10 and 11 are explanatory views for explaining the data storage state of the buffer memory according to the cursor pointing position in the overwrite processing of half-width characters, and FIG. It is explanatory drawing which shows the state which replaces 1 full-width character with 2 half-width blank characters, and stores it in a buffer memory in the process of processing.

【0066】まず、ステップS9-1にて半巾文字が1 文字
入力されると、ステップS9-2にて、その文字をオーバラ
イト処理するのか挿入処理するのかを調べ、オーバーラ
イト処理であればステップS9-3に進み、挿入処理であれ
ばステップS9-4に進む。
First, when one half-width character is input in step S9-1, it is checked in step S9-2 whether the character is overwritten or inserted, and if it is overwritten, step If it is an insertion process, the process proceeds to step S9-4.

【0067】ステップS9-3においては、カーソルCMが指
示している文字が全巾文字か半巾文字かを判別する。こ
の判別は、カーソルに対応したバッファDBUFの最上位ビ
ットMSB を参照することにより行う。そして、カーソル
CMが指示している文字が半巾文字の場合にはステップS9
-9, 全巾文字の場合にはステップS9-8に進む。
In step S9-3, it is determined whether the character pointed by the cursor CM is a full-width character or a half-width character. This determination is performed by referring to the most significant bit MSB of the buffer DBUF corresponding to the cursor. And the cursor
If the characters indicated by the CM are half-width characters, step S9
-9, in case of full-width character, the process proceeds to step S9-8.

【0068】ステップS9-9においては、入力した半巾文
字をカーソル位置に対応したバッファDBUFに格納する。
カーソルレジスタCRの値が偶数の場合、すなわち、図1
0に示すように、カーソルCMが全巾文字の左半分に相当
する位置にあった場合には、入力した半巾文字“X ”の
コードをバッファDBUFの第3 〜9 ビットに格納する。カ
ーソルレジスタCRの値が奇数の場合すなわち、図11に
示すように、カーソルCMが全巾文字の右半分に相当する
位置にあった場合には、入力した半巾文字“X”のコー
ドをバッファDBUFの第10〜16ビットに格納する。
In step S9-9, the input half-width character is stored in the buffer DBUF corresponding to the cursor position.
If the value of the cursor register CR is an even number, that is,
As shown in 0, when the cursor CM is located at the position corresponding to the left half of the full-width character, the code of the input half-width character "X" is stored in the 3rd to 9th bits of the buffer DBUF. When the value of the cursor register CR is an odd number, that is, when the cursor CM is at the position corresponding to the right half of the full width character as shown in FIG. 11, the code of the input half width character “X” is stored in the buffer DBUF. Stored in the 10th to 16th bits of.

【0069】ステップS9-10 においては、カーソルCMを
半巾文字1 文字分進める。これは、カーソルレジスタCR
の値を+1歩進することにより行う。このステップS9-10
の処理をもって半巾文字を1 文字入力した場合の処理手
順を終了する。
In step S9-10, the cursor CM is advanced by one half-width character. This is the cursor register CR
It is performed by incrementing the value of by +1. This step S9-10
With the processing in step 1, the processing procedure when one half-width character is input ends.

【0070】ステップS9-8においては、カーソルCRが指
示している全巾文字1 文字を半巾の空白SPC 文字に置き
換える。これは、図12に示すように、カーソル位置に
対応するバッファの最上位ビットMSB を“1 ”とし、第
3 〜9 ビットと第10〜16ビットとに半巾の空白SPC に対
応したコードを格納することにより行う。
In step S9-8, one full-width character designated by the cursor CR is replaced with a half-width blank SPC character. This is done by setting the most significant bit MSB of the buffer corresponding to the cursor position to "1" as shown in FIG.
This is done by storing the code corresponding to the half-width blank SPC in the 3rd to 9th bits and the 10th to 16th bits.

【0071】挿入処理を行う場合には、ステップS9-4
において、カーソルがさしている文字が全巾文字か半巾
文字かの判別を行う。この判別は、カーソル位置に対応
したバッファの内容の最上位ビットMSB を参照すること
により行う。ここで、全巾文字と判定された場合はステ
ップS9-5に進み、半巾文字と判定された場合はステップ
S9-11 に進む。
When performing the insertion process, step S9-4
In, it is determined whether the character pointed by the cursor is a full width character or a half width character. This judgment is made by referring to the most significant bit MSB of the contents of the buffer corresponding to the cursor position. If it is determined to be full-width characters, the process proceeds to step S9-5, and if it is determined to be half-width characters, the step is performed.
Continue to S9-11.

【0072】ステップ9-5 において、カーソルCMが全巾
文字の右半分の位置にあるか左半分の位置にあるかを判
別する。この判別は、カーソルレジスタCRの内容を参照
することで行う。カーソルレジスタCRの内容が偶数、す
なわち、カーソルCMが左半分にある場合にはステップS9
-7に進み、カーソルレジスタCRの内容が奇数、すなわち
カーソルCMが右半分にある場合にはステップS9−6 に進
む。
In step 9-5, it is determined whether the cursor CM is at the right half position or the left half position of the full width character. This determination is made by referring to the contents of the cursor register CR. If the content of the cursor register CR is even, that is, if the cursor CM is in the left half, step S9
-7, if the content of the cursor register CR is odd, that is, if the cursor CM is in the right half, proceed to step S9-6.

【0073】ステップS9-6においては、カーソルCMを半
巾文字1 文字分進める。この処理はカーソルレジスタCR
の値を+1歩進することにより行う。
In step S9-6, the cursor CM is advanced by one half-width character. This process is performed by cursor register CR
It is performed by incrementing the value of by +1.

【0074】ステップS9-7においては、カーソルCMが指
示している文字以降、適当な区切り部分までの文字列を
全巾文字1 文字分ずつ後へずらす。これは、バッファDB
UFの内容を全巾文字1 文字分ずつシフトすることにより
行う。なお、この処理の後、カーソルCMが指示する位置
には、いかなる全巾文字の情報が格納されていてもよ
い。
In step S9-7, the character string from the character designated by the cursor CM to the appropriate delimiter is shifted backward by one full width character. This is the buffer DB
It is performed by shifting the contents of UF by one full width character. After this process, any full-width character information may be stored at the position indicated by the cursor CM.

【0075】ステップS9-11 においては、カーソルを指
示する半巾文字以降最初に存在する全巾文字の1文字前
の半巾が半巾の空白SPC であるか否かを判別する。半巾
の空白SPC である場合はステップS9-14 に進み、空白SP
C ではない場合はステップS9-12 に進む。
In step S9-11, it is determined whether or not the half width before the full width character first existing after the half width character indicating the cursor is the half width blank SPC. If it is a half-width blank SPC, proceed to step S9-14 and enter a blank SP.
If not C, proceed to step S9-12.

【0076】ステップS9-12 においては、カーソルCMが
指示する半巾文字以降最初に存在する全巾文字から適当
な区切りまでの文字列を全巾文字1 文字分後へずらし、
その全巾文字までに存在する半巾文字の文字列を半巾文
字1 文字分後へずらす。
In step S9-12, the character string from the first full width character after the half width character designated by the cursor CM to an appropriate division is shifted to the position after one full width character,
The half-width character string existing up to the full-width character is shifted back by one half-width character.

【0077】ステップS9-13 においては、かかる処理に
より全巾文字と半巾文字との間に生じる半巾文字1 文字
分のすき間に、半巾の空白SPC を付加する。
At step S9-13, a half-width blank SPC is added to the space for one half-width character generated between the full-width character and the half-width character by such processing.

【0078】ステップS9-14 においては、カーソルCMが
指示する半巾文字以降最初に存在する全巾文字の1 文字
前の空白SPC を取り除き、カーソルがする文字以降、取
り除いた半巾空白SPC の1 文字前の文字列を半巾文字1
文字分ずつ後へずらす。
In step S9-14, the blank SPC that is one character before the first full-width character after the half-width character designated by the cursor CM is removed, and one character before the half-width blank SPC that is removed after the character pointed by the cursor. Half-width characters 1
Move backward by each character.

【0079】ステップS9-8, S9-13 およびS9-14 の処理
終了後はステップS9-9に進む。
After the processing of steps S9-8, S9-13 and S9-14 is completed, the process proceeds to step S9-9.

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

【0081】また、実施例においては、必要に応じて空
白(スペース)を付加するようにしているが、これは、
表示および印刷されないキャラクタであればその形態を
問わない。また、実施例においては、カーソルが全巾文
字の右半分にある場合、カーソルを一つ進ませてから挿
入を行うようにしているが、カーソルが指示する文字の
前( 左側) に挿入するという方式に統一することもでき
る。
Further, in the embodiment, a blank is added as needed, but this is
The form of the character does not matter as long as it is not displayed or printed. Further, in the embodiment, when the cursor is in the right half of the full-width character, the insertion is performed after advancing the cursor by one, but it is said that the insertion is performed before the character pointed by the cursor (on the left side). The method can be unified.

【0082】また、実施例では、カーソルが半巾で表示
されているが、カーソルが全巾の場合には、左半分に存
在するカーソルと同様にみなすようにしてもよいこと勿
論である。
Further, in the embodiment, the cursor is displayed with a half width. However, when the cursor is a full width, it may be regarded as a cursor existing in the left half.

【0083】また、上述の実施例では、文字のオーバー
ライトまたは挿入という編集に関連した処理についての
み示したが、この文書の入力( 作成) の場合にも容易に
適用可能である。
Further, in the above-mentioned embodiment, only the processing related to editing such as character overwriting or insertion is shown, but it can be easily applied to the case of inputting (creating) this document.

【0084】また、実施例においては、カーソルが右半
分にある場合のオーバーライト処理では入力文字を右半
分、付加した空白を左半分に位置づけるようにしたが、
左半分に入力文字、右半分に付加した空白を位置づける
ようにしてもよい。同様に、カーソルが右半分にある場
合の挿入処理についても、右半分に入力文字, 左半分に
空白を位置ずけることもできる。
In the embodiment, in the overwrite processing when the cursor is in the right half, the input character is positioned in the right half and the added space is positioned in the left half.
The input character may be positioned in the left half and the added space may be positioned in the right half. Similarly, for the insertion process when the cursor is in the right half, it is possible to position the input character in the right half and the space in the left half.

【0085】また、実施例中オーバーライト処理では半
巾文字2文字を全巾文字1文字に置き換えるようにして
いるが、半巾の空白を付加する等によって、半巾文字1
文字を全巾文字1文字に置き換えるようにしてもよい。
Further, in the overwrite processing in the embodiment, two half-width characters are replaced with one full-width character.
The characters may be replaced with one full-width character.

【0086】さらに、挿入処理を逆に行えるようにし
て、半巾文字の削除する処理に適用することもできる。
Furthermore, the insertion process can be performed in reverse, and the invention can be applied to the process of deleting half-width characters.

【0087】[0087]

【効果】以上の説明から明らかなように、本発明によれ
ば、全巾文字を半巾文字で上書きする場合に、全巾文字
の文字コードが上書きする半巾文字の文字コードと所定
の半巾文字コードとに置き換えられるので、上書きされ
文字の後に続く文字が半角ずれることを防ぐことがで
きる。このため、全角文字を半角文字で上書きした場合
であっても、上書きされた文字の後ろに続く文字列中の
文字と、その文字列の上下の列の文字との間に半角のず
れが生じない。従って、上書きにより印刷文書の美観お
よび読み安さが損なわれることを防ぐことができる。更
に、全巾文字の前半の半巾部分が指定されて半巾文字が
上書きされた場合は、全巾文字の文字コードを、上書き
する半巾文字の文字コード、所定の半巾文字の文字コー
ドの順に置き換え、全巾文字の後半の半巾部分が指定さ
れて半巾文字が上書きされた場合は、全巾文字の文字コ
ードを、所定の半巾文字の文字コード、上書きする半巾
文字の文字コードの順に置き換えるので、全巾文字の前
半または後半のいずれの位置にも半巾文字を表示するこ
とができる。
As is apparent from the above description, according to the present invention
In the case of overwriting the full width characters in half width characters, since replaced by the character code of the half width characters character code of full width character is overwritten with a predetermined half width character code, overwrites
Character following the characters can be prevented from being shifted half-width. For this reason, even if full-width characters are overwritten with half-width characters, there will be a half-width gap between the characters in the character string that follows the overwritten character and the characters in the columns above and below that character string. Absent. Therefore, it is possible to prevent the aesthetic appearance and readability of the printed document from being impaired by the overwriting. In addition, the first half width part of the full width character is specified and the half width character becomes
If overwritten, overwrite the character code of full-width characters.
The half-width character code, the specified half-width character code
, And the half width part of the latter half of the full width character is specified.
And half-width characters are overwritten, the full-width character
Character code of the specified half width character, half width to overwrite
Since it is replaced in order of the character code of the character, before the full width character
Half- width characters can be displayed in either the half or the second half position .

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

【図1】従来の文字処理装置において、全巾文字と半巾
文字との混在により文字列にずれが生じた場合の、それ
ぞれ、表示状態および印刷状態を示す線図である。
FIG. 1 is a diagram showing a display state and a printing state when a character string is displaced due to a mixture of full-width characters and half-width characters in a conventional character processing device, respectively.

【図2】本発明を適用する文字処理装置の全体構成図で
ある。
FIG. 2 is an overall configuration diagram of a character processing device to which the present invention is applied.

【図3】本発明を適用する文字処理装置の1 実施例を示
すブロック図である。
FIG. 3 is a block diagram showing one embodiment of a character processing device to which the present invention is applied.

【図4】文字のキーコードの1 構成例を示す線図であ
る。
FIG. 4 is a diagram showing a configuration example of a character key code.

【図5】記憶手段としてのバッファメモリのデータ構成
例を示す線図である。
FIG. 5 is a diagram showing a data configuration example of a buffer memory as a storage unit.

【図6】本発明を適用する文字処理装置による第1 の編
集処理の概要を説明する説明図である。
FIG. 6 is an explanatory diagram illustrating an outline of first editing processing by the character processing device to which the present invention is applied.

【図7】その第1 の編集処理の手順の一例を示すフロー
チャートである。
FIG. 7 is a flowchart showing an example of a procedure of the first editing process.

【図8】本発明を適用する文字処理装置による第2 の編
集処理の概要を説明する説明図である。
FIG. 8 is an explanatory diagram illustrating an outline of second editing processing by the character processing device to which the present invention is applied.

【図9】その第2 の編集処理の手順の一例を示すフロー
チャートである。
FIG. 9 is a flowchart showing an example of a procedure of a second editing process.

【図10】第2 の編集処理手順における半巾文字のオー
バライト処理において、カーソル指示位置に応じたバッ
ファメモリのデータ格納の状態を説明する説明図であ
る。
FIG. 10 is an explanatory diagram illustrating a data storage state of a buffer memory according to a cursor pointing position in overwrite processing of half-width characters in the second editing processing procedure.

【図11】第2 の編集処理手順における半巾文字のオー
バライト処理において、カーソル指示位置に応じたバッ
ファメモリのデータ格納の状態を説明する説明図であ
る。
FIG. 11 is an explanatory diagram illustrating a state of data storage in a buffer memory according to a cursor designated position in overwrite processing of half-width characters in the second editing processing procedure.

【図12】第2 の編集処理手順において、全巾文字1 文
字を半巾の空白2 文字に置換してバッファメモリに格納
する状態を説明する説明図である。
FIG. 12 is an explanatory diagram illustrating a state in which one full-width character is replaced with two half-width blank characters and stored in the buffer memory in the second edit processing procedure.

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

1 入力手段 2 記憶手段 3 編集手段 4 補正手段 CPU 中央処理装置 KB キーボード DBUF バッファメモリ ROM リードオンリメモリ CRT 表示装置 CR カーソルレジスタ 1 Input Means 2 Storage Means 3 Editing Means 4 Correcting Means CPU Central Processing Unit KB Keyboard DBUF Buffer Memory ROM ROM Read Only Memory CRT Display Device CR Cursor Register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力手段により入力された全巾文字およ
び半巾文字を表示手段の表示画面に表示し、 表示画面上に表示されている全巾文字の位置を指示し、 指示された全巾文字に半巾文字を上書きする文字処理方
法であって、 前記指示されている位置が、全巾文字の前の半巾部分で
ある場合、 上書きされた全巾文字の文字コードを、上書
きする半巾文字の文字コード所定の半巾文字コード
順に置き換え、全巾文字の後の半巾部分である場合、上
書きされた全巾文字の文字コードを、所定の半巾文字コ
ード、上書きする半巾文字の文字コードの順に置き換え
ことを特徴とする文字処理方法。
1. A full-width character and a half-width character input by the input means are displayed on a display screen of the display means, the position of the full-width character displayed on the display screen is designated, and the designated full-width character is displayed. Character processing method to overwrite half width characters
It is a law, and the specified position is the half width part before the full width character.
In some cases, the character code of the full width characters overwritten, half width character code to overwrite, the predetermined half width character code
Replace in order, if it is the half width part after the full width character,
Change the written full-width character code to the specified half-width character
Replace the character code of the half width character
Character processing method characterized by that.
JP5101655A 1993-04-28 1993-04-28 Character processing method Expired - Lifetime JPH07104860B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5101655A JPH07104860B2 (en) 1993-04-28 1993-04-28 Character processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5101655A JPH07104860B2 (en) 1993-04-28 1993-04-28 Character processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP58218121A Division JPS60110079A (en) 1983-11-19 1983-11-19 Character processor

Publications (2)

Publication Number Publication Date
JPH0644230A JPH0644230A (en) 1994-02-18
JPH07104860B2 true JPH07104860B2 (en) 1995-11-13

Family

ID=14306404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5101655A Expired - Lifetime JPH07104860B2 (en) 1993-04-28 1993-04-28 Character processing method

Country Status (1)

Country Link
JP (1) JPH07104860B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55143645A (en) * 1979-04-26 1980-11-10 Toshiba Corp Input-output system for en character and em character
JPS56117280A (en) * 1980-02-22 1981-09-14 Tokyo Shibaura Electric Co Semiiangle character processing system

Also Published As

Publication number Publication date
JPH0644230A (en) 1994-02-18

Similar Documents

Publication Publication Date Title
JPS6038752B2 (en) How to change text stream
US4430725A (en) Method for displaying source and destination file headers for easy comparison of proposed header changes
JPH07104860B2 (en) Character processing method
JPH0554149B2 (en)
JPH0679213B2 (en) Character processor
JPH0361596B2 (en)
JPH05143575A (en) How to display input characters with enlarged characters
JPS6038750B2 (en) How to enter characters in a word processor
JPS62105266A (en) Character processor
JPH0414169A (en) document processing device
JP2655836B2 (en) Table device
JPS6177982A (en) Document processing method
JP2698348B2 (en) Character processor
JPS605401Y2 (en) Text creation device with page boundary display function
JPH0734197B2 (en) Information processing equipment
JPS59180620A (en) Document formation device
JPS61241865A (en) document editing device
JPS59143188A (en) External character processing system for character display
JPS63304365A (en) Text data editing/output system for multi-media editing/ output device
JPH03176759A (en) Character processing device and method
JPH0578036B2 (en)
JPH02165372A (en) character processing device
JPS6177980A (en) image processing system
JPH04199266A (en) document processing device
JPS644223B2 (en)