JPS60177386A - Document processor - Google Patents

Document processor

Info

Publication number
JPS60177386A
JPS60177386A JP59033402A JP3340284A JPS60177386A JP S60177386 A JPS60177386 A JP S60177386A JP 59033402 A JP59033402 A JP 59033402A JP 3340284 A JP3340284 A JP 3340284A JP S60177386 A JPS60177386 A JP S60177386A
Authority
JP
Japan
Prior art keywords
character
width
code
characters
byte
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
JP59033402A
Other languages
Japanese (ja)
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP59033402A priority Critical patent/JPS60177386A/en
Publication of JPS60177386A publication Critical patent/JPS60177386A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は全角文字と半角文字が混在した文書の作成8表
示、印刷に適した文書処理装置に関する0近年日本語文
書処理装置の進展には目ざましいものがあり、毎年各社
より新機種が発表されている。これら文書処理装置で扱
う文字は通常の漢字の大きさである全角文字9文字の配
列方向の外枠の大きさが全角文字の半分である半角文字
、逆に全角文字の倍である倍角文字などにより構成され
る。このため全角文字と半角文字の混在した文書で半角
文字を表示あるいは印刷する場合、いろいろな半角文字
指定の方法が考え出されてきた。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a document processing device suitable for creating, displaying, and printing documents containing a mixture of full-width and half-width characters.Recently, Japanese document processing devices have made remarkable progress. New models are announced by each company every year. The characters handled by these document processing devices include half-width characters whose outer frame size in the arrangement direction of nine full-width characters is half the size of a full-width character, and double-width characters whose outer frame is twice the size of a full-width character. Consisted of. For this reason, when displaying or printing half-width characters in a document containing a mixture of full-width and half-width characters, various methods for specifying half-width characters have been devised.

第1の方法は第1図に示すIts(日本工業規格)62
25に示される方法である。第1図において、1は2バ
イトで表現される文字コードで全角文字1文津湘当すん
2は制御文字コードのうち半角指定コードである。この
半角指定コード2の次に続く文字コードが半角文字とし
て扱われる。第2の方法は第2図に示すデータ構造をも
つ。第2図において、3,4は制御文字コードのうち、
各々順に半角開始コード、半角終了コードを示す。この
場合半角開始コード3と半角終了コード4に囲まれた領
域に存在する文字コード1の列が半角文字列となる。と
ころが上述の方法では全角文字と半角文字が同じコード
で良いという利点を有するが、半角文字に指定するため
には必らず制御コードを付加しなければならない。この
ことは半角文字を指定するごとにこれを表現するコード
分だけ文書データが長くなることを意味している。特に
第1の方法で文書のすべてが半角文字であったとすれば
、文書のデータ量は2倍になる。また第1の方法、第2
の方法のいずれに対しても文書の編集処理(挿入、削除
、移動、複写など)時に制御コード2,3.4のチェッ
クを行なわねばならないので処理の煩雑さや処理時間が
増大する結果となる。
The first method is Its (Japanese Industrial Standard) 62 shown in Figure 1.
This is the method shown in No. 25. In FIG. 1, 1 is a character code expressed in 2 bytes, and the full-width character 1 is a half-width designation code of the control character code. The character code following this half-width designation code 2 is treated as a half-width character. The second method has the data structure shown in FIG. In Figure 2, 3 and 4 are among the control character codes.
The half-width start code and half-width end code are shown in order. In this case, a string of character codes 1 existing in an area surrounded by half-width start code 3 and half-width end code 4 becomes a half-width character string. However, although the above method has the advantage that the same code can be used for full-width characters and half-width characters, it is necessary to add a control code to specify half-width characters. This means that each time you specify a half-width character, the document data becomes longer by the code that represents it. In particular, if all of the documents are half-width characters in the first method, the amount of data in the document will be doubled. Also, the first method, the second method
In any of the above methods, control codes 2, 3, and 4 must be checked during document editing processing (insertion, deletion, movement, copying, etc.), resulting in increased processing complexity and processing time.

結果として処理系全体(ハードウェア、ソフトウェアな
ど)へ負担がかかってくる。
As a result, a burden is placed on the entire processing system (hardware, software, etc.).

発明の目的 本発明は上記問題点に鑑み、全角文字と半角文字を制御
文字コードを存在させないで同−文書内に混在させるこ
とにより文書処理装置の処理系全体の負担を減少させる
ことを目的とする。
Purpose of the Invention In view of the above-mentioned problems, an object of the present invention is to reduce the burden on the entire processing system of a document processing device by mixing full-width characters and half-width characters in the same document without the presence of control character codes. do.

発明の構成 本発明は、文書の表示および印刷をする表示印刷手段と
、2バイトで全角文字が構成される図形文字コードおよ
び制御文字コードのいずれにも一致しない2バイートの
コードを、1バイトの半角文字2刻りコードで構劇れる
半角文字対に割当てる半角文字対コード割当手段と、前
記半角文字対コード割当手段により割当てられた2バイ
トの半角文字対コードおよび2バイトの図形文字コード
を用いて文書の作成処理を行なう文書作成手段を備えた
文書作成装置であり、全角文字および半角文字が文書中
に混在した状態で表示および印刷時の各文字長が該当文
字のコード長と一致するようにしたものである。
Structure of the Invention The present invention provides a display printing means for displaying and printing a document, and a 2-byte code that does not match either a graphic character code or a control character code that consists of 2-byte full-width characters, into a 1-byte code. Using a half-width character pair code assignment means for assigning to a half-width character pair composed of two half-width character inscription codes, and a 2-byte half-width character pair code and a 2-byte graphic character code assigned by the half-width character pair code assignment means. This is a document creation device that is equipped with a document creation means that performs document creation processing, and is capable of ensuring that the length of each character when displayed and printed matches the code length of the corresponding character when full-width and half-width characters are mixed in the document. This is what I did.

実施例の説明 第3図に本発明の一実施例を示す。11は文書処理装置
であり、文書の文字コードの入力および編集処理など文
書作成に必要なテータ処理を行なう。12は表示装置で
あシ、現在入力、編集中の文書を表示する。13は印刷
装置であり、現在入力、編集中の文書を印刷する。14
は記憶装置であシ、文書処理装置11で作成した文書を
記憶格納する。
DESCRIPTION OF EMBODIMENTS FIG. 3 shows an embodiment of the present invention. Reference numeral 11 denotes a document processing device, which performs data processing necessary for document creation, such as inputting and editing character codes of documents. A display device 12 displays the document currently being input or edited. A printing device 13 prints the document currently being input or edited. 14
is a storage device that stores documents created by the document processing device 11.

第4図aは本実施例に用いる文字コードの割当て図であ
る。l1S6220の7単位コード体系では16進数で
21から7Eの文字コードが割当てられ、その他の領域
は制御文字コードなどが割当てられている。Ji362
26では2バイト構成の通常の国語の文章の表記に用い
る図形文字コードが16進数で2121から7E7Eに
割当てられ、その他の領域は制御文字コードなどが割当
てられている。ところがこの2バイト構成のコードでは
各バイトの最上位ビン)(MSB)U定義されていない
。そこで2バイトで構成される図形文字コードおよび制
御文字コードと16進数で8080との論理和をとり、
領域をシフトすれば、Ji36220で定義される7単
位コード体系の文字領域とコード表上で分離することが
できる。第4図aにおいて、41はJiS6220で定
義される文字を半角とする半角コード領域、42はJi
S6226で定義される文字を全角文字とし、コード領
域上でシフトした図形文字コード領域である。
FIG. 4a is an assignment diagram of character codes used in this embodiment. In the 11S6220 7-unit code system, character codes from 21 to 7E in hexadecimal are assigned, and control character codes and the like are assigned to other areas. Ji362
In No. 26, the graphic character codes used to describe normal Japanese language sentences in 2-byte format are assigned to hexadecimal numbers 2121 to 7E7E, and control character codes and the like are assigned to other areas. However, in this 2-byte code, the most significant bin (MSB) U of each byte is not defined. Therefore, the graphic character code and control character code consisting of 2 bytes are ORed with 8080 in hexadecimal,
By shifting the area, it can be separated from the character area of the 7-unit code system defined in Ji36220 on the code table. In FIG. 4a, 41 is a half-width code area in which characters defined by JiS6220 are half-width, and 42 is a JiS6220-defined half-width code area.
This is a graphic character code area in which the characters defined in S6226 are double-byte characters and are shifted on the code area.

さらに文字データを取扱い易くするため、本発明の文書
処理装置で扱う文字コードをすべて2バイトで構成する
様に定義する。第4図すは2バイト構成の図形文字コー
ドであり、Cは半角文字コードを2文字対として取扱っ
ている。
Furthermore, in order to facilitate the handling of character data, all character codes handled by the document processing apparatus of the present invention are defined to consist of 2 bytes. Figure 4 shows a 2-byte graphic character code, and C handles a half-width character code as a 2-character pair.

上述の説明で全角文字と半角文字の各コードの混在の可
能性を示した。ところが第4図aに示すように15進数
で21A1と7EFE 、AI 21とFE7Eを対角
の2点とする2つの領域が定義されていない。
The above explanation has shown the possibility of a mixture of codes for full-width characters and half-width characters. However, as shown in FIG. 4a, two areas in which 21A1 and 7EFE and AI 21 and FE7E are two diagonal points in hexadecimal notation are not defined.

そこで次の実施例ではこの2つの領域を拡張して定義す
る。すなわち第5図aにおける51の拡張半角文字コー
ド領域と52の拡張図形文字コード領域である。この場
合、2バイトで構成される全角文字コードは第5図b、
半角文字コードの対は第6図Cとなる。すなわち下位バ
イトのMSE63はユーザが自由に使用できるビットと
なり、下線など文字コードの属性として定義することが
可能である。また上位バイトのMSB54は全角文字コ
ードと半角文字コードを区別するフラグとなる。上述で
は全角文字コードに対しては16進数の8080で論理
和ととったが、実際には8000で論理和をとればよい
Therefore, in the next embodiment, these two areas are expanded and defined. That is, there are 51 extended half-width character code areas and 52 extended graphic character code areas in FIG. 5a. In this case, the double-byte character code consisting of 2 bytes is shown in Figure 5b.
The pair of half-width character codes is shown in Figure 6C. That is, the lower byte MSE63 becomes a bit that can be used freely by the user, and can be defined as an attribute of a character code such as an underline. Further, MSB54 of the upper byte serves as a flag to distinguish between a full-width character code and a half-width character code. In the above description, the hexadecimal number 8080 is used as the logical sum for the full-width character code, but in reality, the logical sum may be taken as 8000.

以上のコードを用いて常に2バイトを1つの文字単位と
して文書作成処理が行なわれる。半角文字であれば2文
字が同時に編集処理(挿入、削除。
Using the above code, document creation processing is always performed using 2 bytes as one character unit. If it is a half-width character, two characters can be edited at the same time (insertion, deletion).

移動、複写など)される。ただ唯一の例外は半角文字が
1文字だけ入力された場合であるが、この時は半角文字
の対の前または後の位置に自動的に半角のスペースを補
なうことによって対処すれば良い。
moved, copied, etc.). The only exception is when only one half-width character is entered, but this can be handled by automatically adding a half-width space before or after a pair of half-width characters.

発明の効果 以上のように本発明は、全角文字をコード体系上シフト
させ、さらに半角文字を2文字の対で扱うことにより、
特別な制御コードを用いなくとも文書中に全角文字と半
角文字が混在することを可能としたものであり、次の効
果を有している01、表示および印刷時の各文字長が該
当文字のコード長と一致するので、文書の編集処理1表
示、印刷が容易となる。
Effects of the Invention As described above, the present invention shifts full-width characters in the code system and treats half-width characters as pairs of two characters.
This allows full-width and half-width characters to coexist in a document without using special control codes, and has the following effects: 01, the length of each character when displayed and printed is Since the code length matches the code length, the editing process 1 displaying and printing of the document becomes easy.

2、全角文字と半角文字が混在しても、両者を識別する
制御文字が不用なので、文書を記憶する領域が少なくて
すむ。
2. Even if full-width characters and half-width characters coexist, there is no need for control characters to distinguish between the two, so the area for storing documents can be reduced.

3、半角文字を2文字1対として扱うため文字コード長
が2バイトの固定長となる。このため文書中に半角文字
が奇数個で存在することはない。従って文章中の文字列
が半角文字分ずれることがなく、表示、印刷時に美しい
文字配列を得ることができる。
3. Since half-width characters are handled as a pair of two characters, the character code length is a fixed length of 2 bytes. Therefore, an odd number of half-width characters will not exist in a document. Therefore, the character strings in the text are not shifted by half-width characters, and a beautiful character arrangement can be obtained when displayed or printed.

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

第1図、第2図は従来の半角文字の指定方法を示す模式
図、第3図は本発明の一実施例を示すブロック図、第4
図a −Cは同実施例に用いた文字コードの割当て図と
データ構造を示す模式図、第5図a−Cは他の実施例に
おける文字コードの割当て図とデータ構造を示す模式図
である。 11・・・・・・文書処理装置、12・・・・・・表示
装置、13・・・・・・印刷装置、41・・・・・・半
角文字コード領域、42・・・・・図形文字コード領域
。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 り 第2図 第4図 第5図
FIGS. 1 and 2 are schematic diagrams showing a conventional method for specifying half-width characters, FIG. 3 is a block diagram showing an embodiment of the present invention, and FIG.
Figures a-C are schematic diagrams showing character code assignment diagrams and data structures used in the same embodiment, and Figures 5 a-C are schematic diagrams showing character code assignment diagrams and data structures in other embodiments. . 11... Document processing device, 12... Display device, 13... Printing device, 41... Half-width character code area, 42... Graphic Character code area. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 2 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 文書の表示および印刷をする表示印刷手段と、2バイト
で全角文字が構成される図形文字コードおよび制御文字
コードのいずれじも一致しない2バイトのコードを、1
バイトの半角文字2文字のコードで構成される半角文字
対に割当てる半角文字対コード割当手段と、前記半角文
字フ寸コード割当手段により割当てられた2バイトの半
角文字対コードおよび2バイトの図形文字コードを用い
て時の各文字長が該当文字のコード長と一致するように
したことを特徴とする文書処理装置。
The display/printing means that displays and prints the document, and the 2-byte code that does not match either the graphic character code or the control character code that consists of 2-byte full-width characters, are
A half-width character pair code assignment means for assigning a half-width character pair consisting of two-byte half-width character codes, and a 2-byte half-width character pair code and a 2-byte graphic character assigned by the half-width character size code assignment means. A document processing device characterized in that the length of each character of the time matches the code length of the corresponding character using a code.
JP59033402A 1984-02-23 1984-02-23 Document processor Pending JPS60177386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59033402A JPS60177386A (en) 1984-02-23 1984-02-23 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59033402A JPS60177386A (en) 1984-02-23 1984-02-23 Document processor

Publications (1)

Publication Number Publication Date
JPS60177386A true JPS60177386A (en) 1985-09-11

Family

ID=12385597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59033402A Pending JPS60177386A (en) 1984-02-23 1984-02-23 Document processor

Country Status (1)

Country Link
JP (1) JPS60177386A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02146677A (en) * 1988-04-08 1990-06-05 Internatl Business Mach Corp <Ibm> Relational data base system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02146677A (en) * 1988-04-08 1990-06-05 Internatl Business Mach Corp <Ibm> Relational data base system

Similar Documents

Publication Publication Date Title
JPS60177386A (en) Document processor
JPS5846427A (en) Document editing device
JPS59125778A (en) Character processor
JP2608276B2 (en) Document display device
JPS6043689A (en) Character processor
JPS61105666A (en) Document processing device
JPH0571982B2 (en)
JPH0572270B2 (en)
JP2534685B2 (en) Information display method
JPS60110033A (en) Display printer
JPH03266172A (en) Word processor
JP2594043B2 (en) Ruled line creation device
JPS63273174A (en) Generating method for file of document with pattern mixed
JPS62266648A (en) Layout display system for document preparing device
JPH03250362A (en) Document proofreading device
JPH035873A (en) Word processor provided with table of contents automatic generating function
JPS6184770A (en) Processor of japanese language document
JPH06274589A (en) Document processor
JPS60104373A (en) Character processor
JPH034360A (en) Document processor
JPH07168838A (en) Document processor
JPS58146982A (en) Device for editing document
JPH04147368A (en) Index editing system
JPH03142657A (en) Document processor
JPH01139262A (en) Character laying-out apparatus