JPH0630106B2 - Character processor - Google Patents

Character processor

Info

Publication number
JPH0630106B2
JPH0630106B2 JP1056783A JP5678389A JPH0630106B2 JP H0630106 B2 JPH0630106 B2 JP H0630106B2 JP 1056783 A JP1056783 A JP 1056783A JP 5678389 A JP5678389 A JP 5678389A JP H0630106 B2 JPH0630106 B2 JP H0630106B2
Authority
JP
Japan
Prior art keywords
character
field
characters
horizontal
vertical
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
JP1056783A
Other languages
Japanese (ja)
Other versions
JPH02289056A (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.)
PII EFU YUU KANSAI SOFUTOEA KK
PII EFU YUU KK
Original Assignee
PII EFU YUU KANSAI SOFUTOEA KK
PII EFU YUU KK
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 PII EFU YUU KANSAI SOFUTOEA KK, PII EFU YUU KK filed Critical PII EFU YUU KANSAI SOFUTOEA KK
Priority to JP1056783A priority Critical patent/JPH0630106B2/en
Publication of JPH02289056A publication Critical patent/JPH02289056A/en
Publication of JPH0630106B2 publication Critical patent/JPH0630106B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [概要] 日本語入力が可能な文字処理装置であって罫線によって
形成されたフィールドに文字列が入力されると該フィー
ルド内にその文字列を格納する機能を備えた文字処理装
置に関し、 横(縦)書き文書内に罫線によって形成された縦(横)
長の1×n文字が格納されるフィールドに文字を格納し
ても、自動的に縦(横)書き用の文字コードに変換され
る文字処理装置を提供することを目的とし、 罫線によって形成されたフィールドが、横(縦)書き文
書作成時に、横(縦)方向に1文字分で縦(横)方向に
n文字分の形状であることを識別するフィールド形状認
識部と、該フィールド形状認識部による識別出力により
罫線内に入力された文字を、変換テーブルを用いて縦
(横)書用の文字に変換する文字コード変換部とを備え
るよう構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A character processing device capable of inputting Japanese and having a function of storing a character string in a field formed by ruled lines when the character string is input into the field. Regarding a character processing device, vertical (horizontal) formed by ruled lines in a horizontal (vertical) written document
The purpose is to provide a character processing device that automatically converts character codes for vertical (horizontal) writing even when characters are stored in a field that stores 1 × n long characters. And a field shape recognition unit for recognizing that the field has a shape of one character in the horizontal (vertical) direction and n characters in the vertical (horizontal) direction when a horizontal (vertical) written document is created. A character code conversion unit that converts a character input into the ruled line by the identification output by the unit into a character for vertical (horizontal) writing using a conversion table is configured.

[産業上の利用分野] 本発明は日本語入力が可能な文字処理装置であって罫線
によって形成されたフィールドに文字列が入力されると
該フィールド内にその文字列を格納する機能を備えた文
字処理装置に関する。
[Field of Industrial Application] The present invention is a character processing device capable of inputting Japanese and has a function of storing a character string in a field formed by ruled lines when the character string is input into the field. It relates to a character processing device.

近年、日本語入力が可能な文字処理装置として、ワード
プロセッサ、ワークステーション等が広く利用され、そ
の機能の高度化に対するニーズは非常に大きなものとな
ってきている。特に、単なる文章だけでなく、表,グラ
フなども文書に取り込むことができるワードプロセッサ
に対するニーズが増大して更に高機能化することが望ま
れている。
In recent years, word processors, workstations, and the like have been widely used as character processing devices capable of inputting Japanese, and there is an enormous need for sophisticated functions. In particular, there is an increasing need for a word processor that can incorporate not only simple sentences but also tables and graphs into documents, and it is desired that the functions be further enhanced.

その中で、文章中に罫線によって区切った領域を設け
て、各種の表を記述したり、多数の項目についてそれぞ
れの属性を記述する機能が頻繁に利用されている。罫線
で囲まれた領域に文字を入力すると、従来の日本語の処
理機能として罫線の領域内に文字が収納されるが、横書
文書中に縦に1列の文字を書き込んだり、縦書文書中に
横に1行の文字を書き込む場合、使用する文字(記号を
含む)が縦書または横書の文字として不適当な例があ
り、これを改善することが望まれている。
Among them, a function of describing various tables and describing respective attributes of a large number of items is frequently used by providing areas separated by ruled lines in the text. When you enter characters in the area surrounded by ruled lines, the characters are stored in the area of the ruled lines as a conventional Japanese processing function. However, you can write one column of characters vertically in a horizontal writing document, or in a vertical writing document. When writing one line of characters horizontally, there are cases where the characters used (including symbols) are unsuitable for vertical writing or horizontal writing, and it is desired to improve this.

[従来の技術] 第6図は従来例の説明図である。[Prior Art] FIG. 6 is an explanatory diagram of a conventional example.

第6図のA.は従来例の構造図、B.は従来例の操作手
順を示す。
FIG. 6A. Is a structural diagram of a conventional example, B. Shows the operation procedure of the conventional example.

A.において、60はかな文字,英数字,記号などの文
字キー,罫線文字などの線図形の入力キー,かな漢字変
換キーなどの制御機能キーを含むキー入力部、61はキ
ー入力部60からのキー入力によりかな漢字変換等の処
理を行う日本語変換制御部、62は罫線により囲まれた
フィールドを識別するフィールド認識部、63は罫線フ
ィールドに入力された文字を再編成する再編成制御部、
64は文字,罫線を含む文書データを格納する文字格納
部である。
A. In the figure, 60 is a key input unit including character keys such as kana characters, alphanumeric characters and symbols, line figure input keys such as ruled line characters, control function keys such as kana-kanji conversion keys, and 61 is a key input from the key input part 60. A Japanese conversion control unit that performs processing such as Kana-Kanji conversion, 62 is a field recognition unit that identifies a field surrounded by ruled lines, 63 is a reorganization control unit that reorganizes the characters input in the ruled line field,
A character storage unit 64 stores document data including characters and ruled lines.

キー入力部60の操作により日本語変換の結果できた文
字は、その作成中の文書の格納方向に従って文字格納部
64に格納される。特に、罫線文字が入力されその文字
によって閉鎖域が形成され、カーソルがその中にある状
態で文字が入力されると、その領域に入るように再編成
を行う。これを、第6図のB.に示す従来例の操作手順
を用いて説明する。
The characters produced as a result of Japanese conversion by operating the key input unit 60 are stored in the character storage unit 64 according to the storage direction of the document being created. In particular, when a ruled line character is input and the character forms a closed area, and when a character is input with the cursor inside the character, reorganization is performed so as to enter the area. This is shown in FIG. It will be described using the operation procedure of the conventional example shown in FIG.

この例は、罫線により囲まれたフィールドが、横書文書
中に縦に1列の文字が収容される形状である場合を示
し、縦書文書中に横に1行の文字を書き込む形状である
場合も同様である。
This example shows a case where the field surrounded by the ruled line has a shape in which one horizontal line of characters is accommodated vertically in the horizontal writing document, and one horizontal line of characters is written in the vertical writing document. The same applies to the case.

B.のは、罫線が引かれた横書文書に、“項目1”,
“項目2”などの文字が入力された後、横方向に1文字
分で縦方向に複数文字が書き込める縦長のフィールド6
5の先頭にカーソルを置いた状態を示す。
B. In the horizontal document with ruled lines, "item 1",
A vertical field 6 that allows you to write one character in the horizontal direction and multiple characters in the vertical direction after entering characters such as "Item 2"
5 shows a state in which the cursor is placed at the head of 5.

の状態で「データ」という文字を入力すると、フィー
ルド認識部62は当該カーソルが置かれたフィールド6
5が罫線により囲まれていることを認識して、その認識
結果を再編成制御部63に供給する。再編成制御部63
はこれにより「データ」という本来横書の文字列を、フ
ィールド65内で再編成して文字格納部64に格納して
に示すように表示する。
When the character "data" is input in the state of, the field recognition unit 62 causes the field 6 where the cursor is placed.
It recognizes that 5 is surrounded by ruled lines and supplies the recognition result to the reorganization control unit 63. Reorganization control unit 63
As a result, the originally horizontally written character string "data" is reorganized in the field 65 and stored in the character storage unit 64 and displayed as shown in.

このの表示をみて、操作者は「データ」という語句の
中の「ー」という文字(記号)が縦書の文字として不適
当であると判断すると、に示すようにカーソルを
「ー」の位置に移動する。次にその文字に代わる という文字コードをキー入力部60から入力すると、
に示すように縦書文字として正しいコードが入力され
る。
Looking at this display, if the operator judges that the character (symbol) "-" in the word "data" is inappropriate for vertical writing, move the cursor to the position "-" as shown in. Move to. Then replace that letter If you enter the character code from the key input unit 60,
The correct code is input as vertical text as shown in.

[発明が解決しようとする課題] 上記したように、従来の日本語入力装置では、文書を作
成する時に最初に縦書きまたは横書きを指定すると、自
動的にそれにあった文字コードが選択されるが、横書き
文書内に罫線によって形成された縦長のフィールド(1
×n文字)へ文字を入力しても横書き用の文字コードが
入力されてしまい、これを縦書き用の文字コードに変更
するにはキー入力部から文字入力の操作を行わなければ
ならないという問題があった。同様に、縦書き文書内に
罫線によって形成された横長のフィールドが、横方向一
行にn文字(1×n文字)を書き込む形状の時も、同様
の問題が発生した。
[Problems to be Solved by the Invention] As described above, in the conventional Japanese input device, when vertical writing or horizontal writing is first designated when creating a document, the character code suitable for that is automatically selected. , Vertical fields formed by ruled lines in a horizontal document (1
A character code for horizontal writing is input even when a character is input to (× n characters), and in order to change this to a character code for vertical writing, it is necessary to perform a character input operation from the key input unit. was there. Similarly, when a horizontally long field formed by ruled lines in a vertically written document has a shape in which n characters (1 × n characters) are written in one line in the horizontal direction, the same problem occurs.

本発明は、横(縦)書き文書内に罫線によって形成され
た縦(横)長の1×n文字が格納されるフィールドに文
字を格納しても、自動的に縦(横)書き用の文字コード
に変換される文字処理装置を提供することを目的とす
る。
According to the present invention, even if a character is stored in a field that stores vertical (horizontal) long 1 × n characters formed by ruled lines in a horizontal (vertical) writing document, it is automatically written for vertical (horizontal) writing. An object is to provide a character processing device that is converted into a character code.

[課題を解決するための手段] 第1図は本発明の基本構成図である。[Means for Solving the Problems] FIG. 1 is a basic configuration diagram of the present invention.

10はフィールド形状認識部、11は文字コード変換
部、12は変換テーブル、13は文字格納部を表す。
Reference numeral 10 is a field shape recognition unit, 11 is a character code conversion unit, 12 is a conversion table, and 13 is a character storage unit.

フィールド形状認識部10,文字コード変換部の各手段
は従来の日本語入力機能を備えたワードプロセッサなど
の情報処理装置内に備えられた手段である。変換テーブ
ル12には、縦書きと横書きとで異なる文字が使用され
る文字コードについて、縦書きのコードと横書きのコー
ドが対応付けて格納されている。
The field shape recognition unit 10 and the character code conversion unit are means provided in an information processing apparatus such as a conventional word processor having a Japanese input function. The conversion table 12 stores, for character codes in which different characters are used for vertical writing and horizontal writing, a vertical writing code and a horizontal writing code in association with each other.

本発明は日本語文字を入力した時に、フィールド形状を
識別して縦(横)書き文書中にこれと直角方向に伸びる
罫線により形成されるフィールドが1文字幅でn文字分
の文字を収納される形状であることを識別すると、文字
コード変換部においてそのフィールドの形状に合った文
字コードを選択し変換が行われる。
According to the present invention, when a Japanese character is input, the field shape is identified and a field formed by a ruled line extending in a direction perpendicular to this is stored in a vertical (horizontal) written document with a character width of n characters. When it is identified that the shape is the same, the character code conversion unit selects a character code suitable for the shape of the field and performs conversion.

[作用] 文字格納部13には従来のワードプロセッサと同様の機
能により罫線文字により形成されたフィールドに、入力
された文字が格納されているものとする。情報処理装置
に含まれるフィールド形状認識部10は、カーソルによ
り指示したフィールド内に文字が入力された場合、文字
格納部13のデータに基づいてその罫線によって形成さ
れたフィールドが、次のようなものであるかを識別す
る。すなわち、横(縦)書き文書作成時に、横(縦)方
向に1文字分で縦(横)方向にn文字分の形状(これ
を、1×n文字の形状という)であるかどうかを識別す
る。
[Operation] It is assumed that the input character is stored in the field formed by the ruled line character in the character storage unit 13 by the same function as that of the conventional word processor. When a character is input in the field designated by the cursor, the field shape recognition unit 10 included in the information processing device determines that the field formed by the ruled line based on the data in the character storage unit 13 is as follows. Identify which is. That is, when creating a horizontal (vertical) writing document, it is identified whether or not the shape is one character in the horizontal (vertical) direction and n characters in the vertical (horizontal) direction (this is referred to as 1 × n character shape). To do.

もし、フィールド形状認識部10により1×nの形状で
あることを認識すると、文字コード変換部11を起動す
る。文字コード変換部11は、その認識されたフィール
ド内の文字について、変換テーブル12を参照する。こ
の場合、横書き文書作成中であれば、フィールド内の各
文字(横書きコード)と変換テーブル12内の横書き用
のコードとを照合して、一致していた場合、そのコード
の縦書き用のコードを変換テーブルから取り出して文字
格納部13の元の横書き用のコードが格納されていた位
置に格納する。
If the field shape recognition unit 10 recognizes that the shape is 1 × n, the character code conversion unit 11 is activated. The character code conversion unit 11 refers to the conversion table 12 for the character in the recognized field. In this case, if a horizontal writing document is being created, each character in the field (horizontal writing code) is compared with the horizontal writing code in the conversion table 12, and if they match, the vertical writing code of that code is compared. Is extracted from the conversion table and stored in the character storage unit 13 at the position where the original code for horizontal writing was stored.

縦書き文書作成中に、横方向の罫線により形成された1
×n文字のフィールドが認識された場合も、同様に文字
コード変換部11において変換テーブルを用いて同様に
文字コードが変換される。
1 created by horizontal ruled lines during vertical writing
Even when a field of × n characters is recognized, the character code conversion unit 11 similarly converts the character code using the conversion table.

但し、この場合は縦書き用コードを横書き用コードに変
換する。
However, in this case, the vertical writing code is converted to the horizontal writing code.

[実施例] 第2図(a),(b)は本発明の実施例構成図、第3図(a)は
フィールド形状認識部の実施例の処理フロー図、第3図
(b)はフィールド形状認識の原理とデータの説明図、第
4図は文字コード変換部の実施例の処理フロー図、第5
図は本発明による具体的動作例を示す図である。
[Embodiment] FIGS. 2 (a) and 2 (b) are configuration diagrams of an embodiment of the present invention, and FIG. 3 (a) is a processing flow chart of an embodiment of a field shape recognition unit, and FIG.
(b) is an explanatory view of the principle of field shape recognition and data, FIG. 4 is a processing flow chart of the embodiment of the character code conversion unit, and FIG.
The figure is a diagram showing a specific operation example according to the present invention.

第2図の(a)において、20はキー入力部、21は日本
語変換制御部、22はフィールド認識部、23は再編成
制御部、24はフィールド形状認識部、25は文字コー
ド変換部、26は変換テーブル、27は文字格納部であ
る。
In FIG. 2A, 20 is a key input unit, 21 is a Japanese conversion control unit, 22 is a field recognition unit, 23 is a reorganization control unit, 24 is a field shape recognition unit, 25 is a character code conversion unit, Reference numeral 26 is a conversion table, and 27 is a character storage unit.

変換テーブル26には第2図の(b)に示すように、横書
き文字のコードとして「(」,「:」,「ー」・・・の
各コードが示され、それぞれ対応する縦書き文字のコー
ドとして「⌒」,「‥」, ・・・の各コードが格納されている。
As shown in (b) of FIG. 2, the conversion table 26 shows each code of “(”, “:”, “−” ... As a code, "⌒", "...", Each code of ... Is stored.

実施例の構成において、20〜23の各部は従来例の構
成(第6図参照)と同じものであり、本発明により設け
られた構成は24〜26の部分である。
In the structure of the embodiment, each part of 20 to 23 is the same as the structure of the conventional example (see FIG. 6), and the structure provided by the present invention is the part of 24 to 26.

フィールド形状認識部24はフィールド認識部22によ
り罫線により囲まれたフィールドを識別し、その結果に
従って再編成制御部23において文字列をフィールド内
に配置する制御を行われた後に起動する。
The field shape recognizing unit 24 identifies the field surrounded by the ruled line by the field recognizing unit 22, and according to the result, the reorganization controlling unit 23 controls the arrangement of the character string in the field and then activates.

第3図(a)に示すフィールド形状認識部の実施例の処理
フローを第3図(b)を参照しながら説明する。
A processing flow of the embodiment of the field shape recognition unit shown in FIG. 3 (a) will be described with reference to FIG. 3 (b).

初めに、文字格納部(第2図27)における文字データ
の格納状態を説明すると、第3図(b)のロ.に示すよう
に、文字格納部を構成するメモリの各番地に1ワードが
格納され、それぞれ1文字のJISコードを表し、1行
分のデータが順次格納され、引き続き次の行のデータが
格納されている。この文字コードには、罫線を表すコー
ドも含まれている。また、同図のハ.には制御データが
示され、この情報処理装置における現在の文書データの
1行の幅(文字数)と、現在の作成中の文書が縦書き
か、横書きかを示す、方向フラグD(例えば、縦方向の
時“1”,横方向の時“0”)が制御データとして設定
されている。
First, the storage state of the character data in the character storage unit (FIG. 27) will be described. As shown in, one word is stored at each address of the memory that constitutes the character storage unit, each represents one character of the JIS code, one line of data is sequentially stored, and then the data of the next line is stored. ing. This character code also includes a code representing a ruled line. In addition, c. Indicates the control data, and the width (number of characters) of one line of the current document data in this information processing apparatus and the direction flag D (for example, vertical direction) indicating whether the current document being created is vertical writing or horizontal writing. "1" for the direction and "0" for the lateral direction) are set as control data.

また、現在のカーソル位置(フィールド内の先端位置)
が、a行のb桁であるものとして、横書き文書中の縦書
き方向の「1×n」のフィールドを認識する第3図(a)
の処理がスタートする。
Also, the current cursor position (tip position in the field)
Recognizes a field of "1 × n" in the vertical writing direction in a horizontal writing document, assuming that it is the b digit of line a in FIG. 3 (a).
The process of starts.

ステップ30において、認識フラグRを「1×n行でな
い」状態(“0”)にセットする。次にステップ31で
カーソル位置の行数aを変数cを保持するレジスタにセ
ットする。次に文字数(フィールド内の文字数であり、
日本語変換制御部21より送られてる)から1を減ずる
(ステップ32)。次に文字数が0かどうかを判別する
(ステップ33)。文字数が0でない時は、次に同じ行
cの、右隣りb+1の文字が罫線かどうかを第3図(b)
ロ.に示すメモリの内容を読み出して判別し(ステップ
34)、罫線であれば変数cの値に1を加算する(ステ
ップ35)。
In step 30, the recognition flag R is set to the “not 1 × n row” state (“0”). Next, at step 31, the number of rows a at the cursor position is set in the register holding the variable c. Then the number of characters (the number of characters in the field,
1 is subtracted from the value sent from the Japanese conversion control unit 21) (step 32). Next, it is determined whether the number of characters is 0 (step 33). If the number of characters is not 0, then it is determined whether the character on the right side b + 1 of the same line c is a ruled line, as shown in FIG. 3 (b).
B. The contents of the memory shown in are read out and discriminated (step 34). If it is a ruled line, 1 is added to the value of the variable c (step 35).

これにより、次の行(下側)に移り、そこでc行のb−
1の桁の文字が罫線であるかどうかを同様にメモリの該
当ワードを読み出して判別する(ステップ36)。この
文字が罫線であるときは、次のステップ32に戻り、上
記と同様のフローをたどって最後に文字数が0になる
と、認識フラグRを「1×n行である」の状態にセット
する(ステップ37)。
This moves to the next row (lower side), where b-
Similarly, it is determined whether the character of the first digit is a ruled line by reading the corresponding word in the memory (step 36). If this character is a ruled line, the process returns to the next step 32, and when the number of characters is 0 at the end by following the same flow as above, the recognition flag R is set to the state of “1 × n lines” ( Step 37).

このステップ32〜36の判別は第3図(b)のイ.に示
す原理で行われ、c行のb桁の前後(b−1とb+1)
の文字コードが罫線である時、次の行c+1について同
様の判別をして罫線であれば、以下同様にn文字(入力
された文字数)分について条件が成立するかどうかを識
別することにより行われる。同様の原理で、縦書き文書
中の横方向の1×nのフィールド形状を認識することが
できることは明らかである。
The determinations in steps 32 to 36 are a. In FIG. 3 (b). It is performed according to the principle shown in, and before and after the b digit of the c line (b-1 and b + 1).
When the character code of is a ruled line, the same determination is made for the next line c + 1, and if it is a ruled line, it is determined whether or not the condition is satisfied for n characters (the number of input characters). Be seen. It is obvious that a 1 × n field shape in the horizontal direction in a vertically written document can be recognized by the same principle.

ステップ34,36においてNOと判別されると、フィ
ールド形状は「1×n行」ではないものと判断され、文
字コード変換部25の処理は行われない。
If NO is determined in steps 34 and 36, it is determined that the field shape is not “1 × n rows”, and the processing of the character code conversion unit 25 is not performed.

次に、文字コード変換部の実施例の処理フローを第4図
の(a)により説明する。
Next, the processing flow of the embodiment of the character code conversion unit will be described with reference to FIG.

フィールド形状認識部24において、「1×n」の認識
をして認識フラグRが“1”にセットされると、文字コ
ード変換部の処理がスタートし、最初に文書が縦書き文
書かを判別する(ステップ40)。この判別は第3図
(b)のハ.に示す制御データである方向フラグDを調べ
ることによりわかる。横書き文書である場合、判別結果
はNOとなり、ステップ42に移り、サーチポインタを
テーブル(変換テーブル)の先頭にセットし、データポ
インタをテーブル先頭+1にセットする。
When the field shape recognition unit 24 recognizes “1 × n” and the recognition flag R is set to “1”, the processing of the character code conversion unit starts, and it is first determined whether the document is a vertically written document. (Step 40). This judgment is shown in FIG.
C of (b). This can be understood by examining the direction flag D which is the control data shown in. If it is a horizontal writing document, the determination result is NO, the process moves to step 42, the search pointer is set to the head of the table (conversion table), and the data pointer is set to the table head + 1.

変換テーブルはメモリにより構成され、文字コードの配
置の例を第4図の(b)に示す。図示のように、テーブル
の先頭アドレスに横書き用文字「(」のコードが格納さ
れ、その次のアドレスに対応する縦書き用文字「⌒」が
格納され1単位を構成し、以下交互に横書き用文字とそ
れに対応する縦書き用文字のコードが対となって複数単
位が順次格納され、終端コードで終了する。
The conversion table is composed of a memory, and an example of the arrangement of character codes is shown in FIG. As shown in the figure, the code for the horizontal writing character "(" is stored in the first address of the table, and the vertical writing character "⌒" corresponding to the next address is stored to form one unit. A plurality of units are sequentially stored as a pair of a character and a code for a character for vertical writing corresponding to the character, and the end code ends.

したがって、横書き文書の場合、横書き文字コードの先
頭を探索(サーチ)ポインタとして、変換テーブルの内
容を読み出して、ステップ43において終端(終端コー
ド)かどうかを識別し、NOと判別されると次にフィー
ルド内の変換文字(文字格納部27から取り出した変換
対象である文字)の先頭とサーチポインタにより読み出
した文字とを比較する(ステップ44)。もし一致した
場合は、データポインタの内容(この場合縦書き用文
字)を取り出して変換文字の位置(第2図の文字格納部
27)に格納する。一致しない場合、サーチポインタと
データポインタを+2して変換テーブルの次の文字単位
について同様の処理を行う(ステップ48)。ステップ
45で1文字分の変換が終了するか、ステップ43でサ
ーチポインタが終端位置まで達すると、次の変換文字を
取り出し(ステップ46)、変換文字の終了でない時は
最初のステップ40に戻って上記と同様の処理を行い、
変換対象となる全ての文字について処理が終了するとこ
の文字コード変換処理を終了する(ステップ47)。
Therefore, in the case of a horizontally written document, the head of the horizontally written character code is used as a search pointer to read the contents of the conversion table, and in step 43 it is discriminated whether or not it is the end (termination code). The head of the conversion character (character to be converted extracted from the character storage unit 27) in the field is compared with the character read by the search pointer (step 44). If they match, the content of the data pointer (vertical writing character in this case) is extracted and stored in the position of the converted character (character storage unit 27 in FIG. 2). If they do not match, the search pointer and the data pointer are incremented by +2 and the same processing is performed for the next character unit of the conversion table (step 48). When the conversion for one character is completed in step 45, or when the search pointer reaches the end position in step 43, the next converted character is taken out (step 46). If it is not the end of the converted character, the process returns to the first step 40. Perform the same processing as above,
When the processing is completed for all the characters to be converted, the character code conversion processing is ended (step 47).

最初のステップ40において、縦書き文書であることが
判別されると、ステップ41においてサーチポインタを
テーブル先頭+1にセットし、データポインタをテーブ
ル先頭にセットして、ステップ42の場合と反対のアド
レスが設定される。この後の処理は横書き文書の場合と
同様である。
When it is determined in the first step 40 that the document is a vertical writing document, in step 41 the search pointer is set to the table head + 1, the data pointer is set to the table head, and the address opposite to that in step 42 is set. Is set. The subsequent processing is the same as in the case of the horizontal writing document.

本発明による具体的動作例を示す第5図について説明す
る。
FIG. 5 showing a specific operation example according to the present invention will be described.

において、罫線により表作成を行う。At, a table is created by ruled lines.

で、カーソルを縦1桁×横n行のフィールド先頭に移
動する。
Moves the cursor to the beginning of the field of vertical 1 digit x horizontal n rows.

において、日本語文「(データ)」を入力すると従来
のフィールド認識と再編成の機能によりフィールド内に
入った形で文字格納部に格納される(表示しない)。
At, the Japanese sentence “(data)” is stored (not displayed) in the character storage unit in the form of entering the field by the conventional field recognition and reorganization functions.

では、の入力終了後、罫線フィールドの形状が認識
され、各文字コードについて変換テーブルの内容とチェ
ックされ、一致したものは変換される。
After the input of, the shape of the ruled line field is recognized, the contents of the conversion table are checked for each character code, and the ones that match are converted.

文字コードの変換後のデータが罫線フィールド内に表
示され、縦書き用の文字により正しく変換されたことが
分かる。
The data after the character code conversion is displayed in the ruled line field, and it can be seen that the characters for vertical writing were correctly converted.

[発明の効果] 本発明によれば、表などの罫線に囲まれた領域に日本語
入力を行う際に、利用者に面倒な操作を要求することな
く正確な文字表現による文書を作成することができる。
EFFECTS OF THE INVENTION According to the present invention, when inputting Japanese in a region surrounded by ruled lines such as a table, a document with an accurate character expression is created without requiring the user to perform a troublesome operation. You can

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

第1図は本発明の基本構成図、第2図は本発明の実施例
構成図、第3図(a)はフィールド形状認識部の実施例の
処理フロー図、第3図(b)はフィールド形状認識の原理
とデータの説明図、第4図は文字コード変換部の実施例
の処理フロー図、第5図は本発明による具体的動作例を
示す図、第6図は従来例の説明図である。 第1図中、 10:フィールド形状認識部 11:文字コード変換部 12:変換テーブル 13:文字格納部
FIG. 1 is a basic block diagram of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 (a) is a process flow chart of an example of a field shape recognition unit, and FIG. 3 (b) is a field. Principle of shape recognition and explanatory diagram of data, FIG. 4 is a process flow chart of an embodiment of a character code conversion unit, FIG. 5 is a diagram showing a concrete operation example according to the present invention, and FIG. 6 is an explanatory diagram of a conventional example. Is. In FIG. 1, 10: field shape recognition unit 11: character code conversion unit 12: conversion table 13: character storage unit

フロントページの続き (56)参考文献 特開 昭61−250724(JP,A) 特開 昭61−267090(JP,A) 特開 昭63−254489(JP,A) 実開 昭61−164559(JP,U)Continuation of the front page (56) Reference JP 61-250724 (JP, A) JP 61-267090 (JP, A) JP 63-254489 (JP, A) Actual development 61-164559 (JP , U)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】日本語入力が可能な文字処理装置であって
罫線によって形成されたフィールドに文字列が入力され
ると該フィールド内にその文字列を格納する機能を備え
た文字処理装置において、 罫線によって形成されたフィールドが、横(縦)書き文
書作成時に、横(縦)方向に1文字分で縦(横)方向に
n文字分の形状であることを識別するフィールド形状認
識部(10)と、 該フィールド形状認識部(10)による識別出力により罫線
内に入力された文字を、変換テーブル(12)を用いて縦
(横)書用の文字に変換する文字コード変換部(11)とを
備えることを特徴とする文字処理装置。
1. A character processing device capable of inputting Japanese characters, the character processing device having a function of storing a character string in a field formed by ruled lines when the character string is input in the field. A field shape recognition unit (10) for identifying that a field formed by ruled lines has a shape of one character in the horizontal direction and n characters in the vertical direction when creating a horizontal (vertical) writing document. ) And a character code conversion unit (11) for converting characters input in the ruled lines by the identification output by the field shape recognition unit (10) into characters for vertical (horizontal) writing using the conversion table (12). A character processing device comprising:
JP1056783A 1989-03-09 1989-03-09 Character processor Expired - Lifetime JPH0630106B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1056783A JPH0630106B2 (en) 1989-03-09 1989-03-09 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1056783A JPH0630106B2 (en) 1989-03-09 1989-03-09 Character processor

Publications (2)

Publication Number Publication Date
JPH02289056A JPH02289056A (en) 1990-11-29
JPH0630106B2 true JPH0630106B2 (en) 1994-04-20

Family

ID=13037025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1056783A Expired - Lifetime JPH0630106B2 (en) 1989-03-09 1989-03-09 Character processor

Country Status (1)

Country Link
JP (1) JPH0630106B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008040773A (en) * 2006-08-07 2008-02-21 Fuji Xerox Co Ltd Image output device and image output program

Also Published As

Publication number Publication date
JPH02289056A (en) 1990-11-29

Similar Documents

Publication Publication Date Title
KR0163178B1 (en) Method and apparatus for encoding and decoding chinese characters
EP0241646A2 (en) Document processing apparatus
KR910003523A (en) Document data processing method using image data
JPH06332610A (en) Handwritten information input processing system
JPH0128980B2 (en)
JPH0554073A (en) Digital translation device
JP3422157B2 (en) Handwritten character input device and handwritten character input method
JPH0630106B2 (en) Character processor
JP2695784B2 (en) How to search and display sentences
JPH0575143B2 (en)
JP2504471B2 (en) Text editing device
JPH0677252B2 (en) Japanese data input processor
JP2674542B2 (en) Handwriting recognition device
JP2989387B2 (en) Term recognition device and term recognition method in input character processing device
JP2634926B2 (en) Kana-Kanji conversion device
JPH09114824A (en) Document processor
JPH05165818A (en) Document processor
JPH04123262A (en) List type data processor
JPH0816571A (en) Kanji input device
JP2845235B2 (en) Document data processing device
JP2845234B2 (en) Document data processing device
JP2761606B2 (en) Document data processing device
JPH11282965A (en) Character recognizing device and computer readable storage medium recording character recognition program
JPH0719189B2 (en) Data input device
JPH03137768A (en) Document processor