JPH05135045A - Character processing method - Google Patents

Character processing method

Info

Publication number
JPH05135045A
JPH05135045A JP3295661A JP29566191A JPH05135045A JP H05135045 A JPH05135045 A JP H05135045A JP 3295661 A JP3295661 A JP 3295661A JP 29566191 A JP29566191 A JP 29566191A JP H05135045 A JPH05135045 A JP H05135045A
Authority
JP
Japan
Prior art keywords
character
modification
information
document
format information
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
JP3295661A
Other languages
Japanese (ja)
Inventor
Yasumasa Toratani
泰昌 虎谷
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 JP3295661A priority Critical patent/JPH05135045A/en
Publication of JPH05135045A publication Critical patent/JPH05135045A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To designate whether character modification is valid or invalid corresponding to the format information of a document by setting the character modification while containing the objective format information, and controlling whether the character modification is valid or invalid based on the set format information and the format information of a document to which an objective character to be modified belongs. CONSTITUTION:This method is composed of a CPU 1, ROM 2, RAM 3, external ROM 4, keyboard controller 5, keyboard 6, display controller 7, display device 8, peripheral device controller 9, external storage device 10, printer 11 and system bus 12. When only the modification information of characters is added to a character, the modification to the character is made valid in all the formats. When the modification information of characters and information expressing a format to validate the modification to the character are added to a character, the format information of the document containing the character is referred to and only when the format information of the document is coincident with the format information added to the character, the modification information to the character is made to be valid.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文書編集処理に関し、
特に、文字修飾処理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to document editing processing,
In particular, it relates to character modification processing.

【0002】[0002]

【従来の技術】従来より、文字に対する修飾として、文
字の向きを回転する回転修飾や、文字の字体を左右のど
ちらか一方に傾ける斜体修飾や、文字を太くする太字修
飾などが提案されている。これらの文字に対する修飾
を、文書中の複数の文字に施すことで、その文書を読む
人に対して、視覚的効果を与えることができる。
2. Description of the Related Art Hitherto, as modifications for characters, there have been proposed rotation modifications for rotating the direction of characters, italic modifications for inclining the font of the character to one of left and right, and bold modification for thickening the character. .. By applying a modification to these characters to a plurality of characters in the document, it is possible to give a visual effect to the person reading the document.

【0003】[0003]

【発明が解決しようとしている課題】しかし、従来の方
法では、あくまでも文字に対して修飾を施していたた
め、文書の書式情報は考慮されておらず、例えば、文書
書式が縦書きの時のみ文字に対する修飾を有効にしたい
ということができなかった。
However, in the conventional method, since the characters are only modified, the format information of the document is not considered. For example, when the document format is vertical writing, I couldn't say I wanted to make the modification effective.

【0004】[0004]

【課題を解決するための手段】上記課題を解決するため
に、本発明では、文字を表現する文字パターン情報に対
する文字修飾において、当該文字修飾の設定は対象とな
る書式情報を含んで設定され、設定された書式情報と修
飾対象文字の属する文書の書式情報とに基づいて、前記
文字修飾の有効・無効を制御する。
In order to solve the above-mentioned problems, in the present invention, in the character modification to character pattern information representing a character, the setting of the character modification is set including the target format information, The valid / invalid of the character modification is controlled based on the set format information and the format information of the document to which the character to be modified belongs.

【0005】[0005]

【実施例】以下図面に基づいて、本発明の実施例を詳細
に、かつ、具体的に説明する。
Embodiments of the present invention will now be described in detail and specifically with reference to the drawings.

【0006】本発明では、文字に対して文字の修飾情報
のみを付加した場合は、すべての書式でその文字に対す
る修飾を有効とし、文字に対して文字の修飾情報とその
文字に対する修飾が有効になる書式を表す情報を付加し
た場合は、その文字が含まれる文書の書式情報を参照
し、文書の書式情報と文字に対して付加された書式情報
が一致した場合のみ、その文字に対する修飾情報を有効
にする。
In the present invention, when only the character modification information is added to a character, the modification of the character is valid in all formats, and the character modification information and the modification of the character are valid for the character. When the information indicating the format is added, refer to the format information of the document that includes the character, and only when the format information of the document and the format information added to the character match, the modification information for the character is displayed. To enable.

【0007】図1は、本発明を適用し得るデータ処理の
概略説明図である。文字処理装置やプリンタには、文書
を構成するための文字情報やそれに対する修飾情報から
なる文書情報および文字を表現するための文字パターン
情報が格納されている。
FIG. 1 is a schematic explanatory diagram of data processing to which the present invention can be applied. The character processing device and the printer store document information including character information for forming a document and modification information for the document and character pattern information for expressing characters.

【0008】先ず文書情報から、文書の書式情報が取り
出されて一旦保存される。次に、文書に含まれる文字パ
ターン情報がその文字に対する修飾情報およびその文字
に付随する書式情報と共に取り出され、文字に対する書
式情報と先に得られた文書の書式情報が照合される。照
合された結果それらの書式情報が互いに一致している場
合は、その文字の文字パターン情報に、文字に対する修
飾情報に従った文字修飾が施され、その結果を得ること
ができる。一方、照合の結果それらの書式情報が互いに
異なっている場合は、その文字の文字パターンに対して
文字修飾は施されず、その文字パターンをそのまま得る
ことができる。
First, the document format information is extracted from the document information and temporarily stored. Next, the character pattern information included in the document is extracted together with the modification information for the character and the format information associated with the character, and the format information for the character and the previously obtained format information of the document are collated. When the format information matches with each other as a result of collation, the character pattern information of the character is subjected to character modification according to the modification information for the character, and the result can be obtained. On the other hand, if the format information is different from each other as a result of the collation, the character pattern of the character is not subjected to character modification, and the character pattern can be obtained as it is.

【0009】なお、文字に対してその修飾情報と共に書
式情報が付随していなかった場合は、書式指定がないも
のとみなして、いずれの書式においても、常にその文字
の文字パターンに対して修飾情報に従った文字修飾が施
され、その結果を得ることができる。
If the character is not accompanied by the format information together with the format information, it is considered that no format is specified, and in any format, the format information is always added to the character pattern of the character. The character modification according to is performed, and the result can be obtained.

【0010】図2は、本発明を適用した装置の構成を示
すブロック図である。1は中央演算処理装置(CPU)
であり、2は読み出し専用メモリ(ROM)であり、3
は読み書き可能なメモリ(RAM)であり、4は外部に
増設された読み出し専用メモリ(外部ROM)であり、
5はキーボード制御装置(KBC)であり、6はキーボ
ード(KB)であり、7は表示制御装置(CRTC)で
あり、8は表示装置(CRT)であり、9は周辺装置制
御装置(PKC)であり、10は外部記憶装置(FDお
よびHD)であり、11は印刷装置(PRT)であり、
12はそれら装置間のデータの送受信を行うためのシス
テムバスである。
FIG. 2 is a block diagram showing the structure of an apparatus to which the present invention is applied. 1 is a central processing unit (CPU)
2 is a read-only memory (ROM), and 3
Is a readable / writable memory (RAM), 4 is a read-only memory (external ROM) externally added,
5 is a keyboard controller (KBC), 6 is a keyboard (KB), 7 is a display controller (CRTC), 8 is a display device (CRT), and 9 is a peripheral device controller (PKC). 10 is an external storage device (FD and HD), 11 is a printing device (PRT),
Reference numeral 12 is a system bus for transmitting and receiving data between these devices.

【0011】本装置のプログラム(図3)は、ROM2
あるいはRAM3上に存在し、CPU1がシステムバス
12を通じて逐次プログラムをROM2あるいはRAM
3から読み出しつつ、目的の処理を行う。図3は、本発
明を文字処理装置に適用した場合の全体のフローチャー
トを示している。かかるフローチャートを使用して、本
装置の動作を、以下順を追って説明する。
The program (FIG. 3) of this apparatus is stored in the ROM 2
Alternatively, the program exists in the RAM 3 and the CPU 1 sequentially executes the program through the system bus 12 into the ROM 2 or the RAM.
While reading from 3, the target processing is performed. FIG. 3 shows an overall flowchart when the present invention is applied to a character processing device. The operation of the present apparatus will be described step by step using the flowchart.

【0012】図3のステップS1では、先ず、文書が存
在するか否かを判別する。これは、図2のRAM3内部
に文書データが存在するか否かを判別することよって行
う。RAM3内部に文書データが存在するならば、その
書式を表す情報をRAM3から読み込んでレジスタR1
に格納する。レジスタとしては、RAM3の領域を利用
すればよい。R1に格納される情報には、例えば、文書
が縦書きであるか横書きであるかの情報が含まれてい
る。
In step S1 of FIG. 3, first, it is determined whether or not a document exists. This is performed by determining whether or not the document data exists inside the RAM 3 in FIG. If the document data exists inside the RAM3, the information indicating the format is read from the RAM3 and stored in the register R1.
To store. The area of the RAM 3 may be used as the register. The information stored in R1 includes, for example, information indicating whether the document is written vertically or horizontally.

【0013】次にステップS2で、RAM3内部に格納
されている文書データから、文書を構成する文字情報を
1つずつ読み込んで、その情報をレジスタR2に格納す
る。それと同時に、文字に対する修飾情報をレジスタR
3に格納する。また、読み込んだ文字の修飾情報に対し
て、書式情報が付随している場合は、レジスタR4にそ
の書式情報を格納し、書式情報が付随していなかった場
合には、書式情報がないという情報をレジスタR4に格
納する。ここで、レジスタR2に格納される文字情報に
は、文字を指定するための文字コードのような情報が含
まれる。また、レジスタR3に格納される文字修飾情報
には、文字のパターンを回転させて表示させる回転修飾
や、字体を左右のどちらかに傾けて表示させる斜体修飾
や、字体を太くして表示させる太字修飾などが含まれ
る。また、レジスタR4に格納される書式情報には、レ
ジスタR1に格納される情報と同様に、文書の書式が縦
書きであるか横書きであるかの情報が含まれる。
Next, in step S2, the character information forming the document is read one by one from the document data stored in the RAM 3, and the information is stored in the register R2. At the same time, the modification information for the character is registered in the register R.
Store in 3. If the format information is attached to the read character modification information, the format information is stored in the register R4, and if the format information is not attached, the format information is not present. Is stored in the register R4. Here, the character information stored in the register R2 includes information such as a character code for designating a character. Further, the character decoration information stored in the register R3 includes a rotation modification for rotating and displaying a character pattern, an italic modification for tilting a font to one of left and right, and a bold font for displaying a thick font. Modifications are included. In addition, the format information stored in the register R4 includes information on whether the document format is vertical writing or horizontal writing, like the information stored in the register R1.

【0014】次に、ステップS2で得られた文字情報を
元にステップS3では、その文字に対応する文字パター
ンをROM2あるいはRAM3あるいは外部ROM4あ
るいはDKC9を通じてFDあるいはHD10から読み
出し、その文字パターンデータをレジスタR5に格納す
る。この文字パターンデータは、2次元のドットマトリ
クス形式によるものや、文字の輪郭を指定したアウトラ
イン形式によるものも含まれる。
Next, based on the character information obtained in step S2, in step S3, a character pattern corresponding to the character is read from the FD or HD 10 through the ROM 2 or RAM 3, the external ROM 4 or the DKC 9, and the character pattern data is registered. Store in R5. This character pattern data includes data in a two-dimensional dot matrix format and data in an outline format in which the contour of a character is designated.

【0015】次にステップS4では、レジスタR4の内
容を参照して、文字に対して書式指定があるか否かを判
別し、ステップS5において、書式情報がレジスタR4
内に存在した場合は、ステップS6に進み、存在しなか
った場合はステップS8に進む。
Next, in step S4, it is determined whether or not there is a format designation for the character by referring to the contents of the register R4. In step S5, the format information is registered in the register R4.
If it does exist, the process proceeds to step S6, and if it does not exist, the process proceeds to step S8.

【0016】ステップS6では、レジスタR1とレジス
タR4に格納されている書式情報を比較する。そしてス
テップS7において、それらが一致した場合はステップ
S8に進み、一致しない場合はステップS9に進む。こ
こでは、例えばステップS6において、レジスタR1と
レジスタR4に格納されている情報が共に縦書きならば
ステップS8に進み、一方が縦書きで他の一方が横書き
ならばステップS9に進むというようにする。しかし、
書式情報は縦書きおよび横書き以外にも他の種々の情報
が考えられ、これに限るものではない。
In step S6, the format information stored in the registers R1 and R4 is compared. Then, in step S7, if they match, the process proceeds to step S8, and if they do not match, the process proceeds to step S9. Here, for example, in step S6, if the information stored in the register R1 and the information stored in the register R4 are both vertical writing, the process proceeds to step S8, and if one is vertical writing and the other is horizontal writing, the process proceeds to step S9. .. But,
As the format information, various kinds of information other than vertical writing and horizontal writing are conceivable, and the format information is not limited to this.

【0017】ステップS8では、レジスタR3の内容に
従ってレジスタR5に格納されている文字パターンに対
して修飾を施す。ここで文字文字パターンに対する修飾
方法は、文字パターンを回転させる回転修飾や、斜体修
飾や太字修飾など既知の文字修飾方法すべてを含む。文
字修飾によって修飾された文字パターンは、再びレジス
タR5に格納される。
In step S8, the character pattern stored in the register R5 is modified according to the contents of the register R3. Here, the modification method for the character pattern includes all known character modification methods such as rotation modification for rotating the character pattern, italic modification, and bold modification. The character pattern modified by the character modification is stored again in the register R5.

【0018】レジスタR5に格納された文字パターン
は、ステップS9においてCRTC7によってCRT8
に出力されるか、あるいはシステムバスを通じてPRT
11に出力されるか、あるいはRAM3にそのデータが
格納されるか、あるいはPKC9をに通じてFDあるい
はHD10に格納される。
The character pattern stored in the register R5 is transferred to the CRT8 by the CRTC7 in step S9.
To the PRT or through the system bus
11 or the data is stored in the RAM 3 or is stored in the FD or HD 10 through the PKC 9.

【0019】次にステップS10において、RAM3内
の文書データ内に、まだ出力していない文字が残ってい
る否かを調べ、ステップS11において、まだ文字が残
っている場合は再びS2に戻って処理を繰り返し、残っ
ていない場合は、処理を終了する。
Next, in step S10, it is checked whether or not there is any character that has not been output in the document data in the RAM 3, and in step S11, if any character still remains, the process returns to step S2 again. Repeat, and if there is no remaining, end the processing.

【0020】以上の手順によって、文書中の文字に修飾
を施した例を図4の(A)及び(B)に示す。図4の
(A)に示した例は、文書の書式を横書きとし、文書中
の文字列「あいう」の3つの文字に右90度の回転修飾
を施し、かつ書式情報として3つの文字にそれぞれ縦書
き情報を付随させた場合の、文書の出力形態である。こ
の例では、文書の書式情報が横書きで、文字に付随して
いる書式情報が縦書きのため、図3のステップS6およ
びステップS7に示した判別手順によって、直接ステッ
プS9に進み、結果として文字には何も修飾が施されず
に出力される。
An example in which characters in a document are modified by the above procedure is shown in FIGS. 4A and 4B. In the example shown in FIG. 4A, the document format is horizontal writing, the three characters of the character string "Ai" in the document are rotated by 90 degrees to the right, and the three characters are respectively used as the format information. This is an output form of a document when vertical writing information is attached. In this example, since the format information of the document is horizontal writing and the format information attached to the characters is vertical writing, the determination procedure shown in steps S6 and S7 of FIG. Is output without any modification.

【0021】一方、図4の(B)に示した例は、図4の
(A)の文書の書式を縦書きに変更した場合の文書の出
力形態である。この例の場合は、文書および文字に付随
する書式情報の双方が縦書きであるため、図3のステッ
プS8に示した処理、すなわちこの例の場合では右90
度回転修飾が各文字に施される。
On the other hand, the example shown in FIG. 4B is an output form of the document when the format of the document in FIG. 4A is changed to vertical writing. In the case of this example, since both the document and the format information associated with the characters are written vertically, the process shown in step S8 of FIG. 3, that is, right 90 in this example.
A degree rotation modifier is applied to each character.

【0022】このように、本実施例では文書を特定の書
式にした時のみ有効な修飾を、文書中の文字に施すこと
ができる。また、本実施例では、扱うパターンとして文
字パターンを考慮したが、書式情報や修飾情報を別途設
定することで、本発明は図形パターンにも適用可能であ
る。
As described above, in this embodiment, the characters in the document can be modified only when the document has a specific format. Further, in the present embodiment, a character pattern is considered as a pattern to be handled, but the present invention can be applied to a graphic pattern by separately setting format information and decoration information.

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

【0024】[0024]

【発明の効果】以上、説明したように、本発明により、
文字処理装置において、文書の書式情報に応じて文字修
飾を有効としたり無効としたりすることが可能となっ
た。
As described above, according to the present invention,
In the character processing device, it is possible to enable or disable the character decoration depending on the format information of the document.

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

【図1】本発明を適用し得るデータ処理の該略を説明す
る図である。
FIG. 1 is a diagram illustrating the outline of data processing to which the present invention can be applied.

【図2】本発明を適用したの装置の構成を示すブロック
図である。
FIG. 2 is a block diagram showing a configuration of an apparatus to which the present invention has been applied.

【図3】本発明を適用した装置の処理全体のフローチャ
ートである。
FIG. 3 is a flowchart of the entire processing of the device to which the present invention is applied.

【図4】文字に対する修飾がそれぞれ有効・無効となる
場合の出力形態の例である。
FIG. 4 is an example of an output form in the case where a character modification is valid or invalid.

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

1 CPU 2 ROM 3 RAM 4 外部ROM 5 キーボード制御部 6 キーボード 7 表示装置制御部 8 表示装置 9 周辺装置制御部 10 外部記憶装置 11 印刷装置 12 システムバス 1 CPU 2 ROM 3 RAM 4 External ROM 5 Keyboard Control Unit 6 Keyboard 7 Display Device Control Unit 8 Display Device 9 Peripheral Device Control Unit 10 External Storage Device 11 Printing Device 12 System Bus

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字を表現する文字パターン情報に対す
る文字修飾において、当該文字修飾の設定は対象となる
書式情報を含んで設定され、設定された書式情報と修飾
対象文字の属する文書の書式情報とに基づいて、前記文
字修飾の有効・無効を制御することを特徴とする文字処
理方法。
1. In character modification for character pattern information representing a character, the setting of the character modification is set including target format information, and the set format information and the format information of the document to which the modification target character belongs A character processing method which controls whether the character modification is valid or invalid based on the above.
JP3295661A 1991-11-12 1991-11-12 Character processing method Pending JPH05135045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3295661A JPH05135045A (en) 1991-11-12 1991-11-12 Character processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3295661A JPH05135045A (en) 1991-11-12 1991-11-12 Character processing method

Publications (1)

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

Family

ID=17823541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3295661A Pending JPH05135045A (en) 1991-11-12 1991-11-12 Character processing method

Country Status (1)

Country Link
JP (1) JPH05135045A (en)

Similar Documents

Publication Publication Date Title
JPS61254980A (en) Character front transmission control system
JPH0545039B2 (en)
JPH05135045A (en) Character processing method
JP2845380B2 (en) Printing apparatus and control method thereof
JP2899012B2 (en) Character processing apparatus and method
JPH0522933B2 (en)
JP3054157B2 (en) Character processing device and character processing method
JP2856235B2 (en) Character processing device and character output method
JPH0610441Y2 (en) Word processor
JP2728906B2 (en) Character processor
JP2626769B2 (en) Output control device and method
JPH0456317B2 (en)
JP2940140B2 (en) Document data processing device
JP2884862B2 (en) Data processing device
JPH0630927B2 (en) Pattern output method
JP2612402B2 (en) Display control method
JPS63242561A (en) Font reducing system
JPH0778792B2 (en) Document creation device
JPH0580013B2 (en)
JPS63264386A (en) Document data printer
JPS63141761A (en) Word processor
JPH0439693A (en) Character image forming system
JPH0317697A (en) Vector font drawing method
JPH07160243A (en) Information processor or bit map memory control device
JPS6014285A (en) Data processor