JPH06282537A - Processing method for font style information - Google Patents

Processing method for font style information

Info

Publication number
JPH06282537A
JPH06282537A JP5071392A JP7139293A JPH06282537A JP H06282537 A JPH06282537 A JP H06282537A JP 5071392 A JP5071392 A JP 5071392A JP 7139293 A JP7139293 A JP 7139293A JP H06282537 A JPH06282537 A JP H06282537A
Authority
JP
Japan
Prior art keywords
character
font style
font
added
style 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
JP5071392A
Other languages
Japanese (ja)
Inventor
Toshiya Yasukawa
俊哉 安川
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.)
NIPPON DENKI MICOM TECH KK
NIPPON DENKI MICOM TECHNOL KK
Original Assignee
NIPPON DENKI MICOM TECH KK
NIPPON DENKI MICOM TECHNOL 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 NIPPON DENKI MICOM TECH KK, NIPPON DENKI MICOM TECHNOL KK filed Critical NIPPON DENKI MICOM TECH KK
Priority to JP5071392A priority Critical patent/JPH06282537A/en
Publication of JPH06282537A publication Critical patent/JPH06282537A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make it possible to perform the dynamic edition of a character string having font style information at high speed by performing the addition, insertion and deletion of the character string, referring to a specified table. CONSTITUTION:A style array 22 corresponding to character array data 21 to be an edition object is prepared. In the style array 22, the length of a character string and the index 22b of a font style table 23 corresponding to it are arrayed. The font style table 23 is composed of the combinations 23a of the kinds of fonts and the sizes 23b of characters. For instance, when characters are added, the font style information of the character just before the added character and the font style information of the added character are compared by referring to the table 23. When they are the same, the length 22a of the character string of the style array 22 of the just before character is made to be increased by the number of byte of the added character. When they are not the same, the font style information of the added character is added to the last of the style array 22.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ワードプロセッサやエ
ディタ等の画面表示装置を含む編集装置において、文字
を入力するときのフォントスタイル情報の処理方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of processing font style information when inputting characters in an editing device including a screen display device such as a word processor and an editor.

【0002】[0002]

【従来の技術】ワードプロセッサやエディタ等の画面表
示装置を含む編集装置において、文字を入力するときの
従来のフォントスタイル情報の処理方法は、設定したい
フォントスタイル情報に関するデータを文字列の一部と
して管理している。
2. Description of the Related Art In an editing device including a screen display device such as a word processor and an editor, a conventional method of processing font style information when inputting a character is to manage data relating to font style information to be set as a part of a character string. is doing.

【0003】図3はこのような従来のフォントスタイル
情報の処理方法の一例を示す模式図である。
FIG. 3 is a schematic view showing an example of such a conventional font style information processing method.

【0004】図3に示すように、フォントスタイル情報
32a・32b〜32nは、対応する文字列31a・3
1b〜31nと共に管理されており、文字列31a等を
動的に編集する場合は、変更する部分の文字列を含む全
てのデータを変更する必要がある。
As shown in FIG. 3, the font style information 32a, 32b to 32n corresponds to the corresponding character strings 31a, 3a.
It is managed together with 1b to 31n, and when dynamically editing the character string 31a or the like, it is necessary to change all the data including the character string of the portion to be changed.

【0005】[0005]

【発明が解決しようとする課題】上述したように、従来
のフォントスタイル情報の処理方法は、文字列を動的に
編集する場合に、変更する部分の文字列を含む全てのデ
ータを変更しなければならないため、フォントスタイル
情報を有する文字列の動的編集を高速に行うことが困難
であるという欠点を有している。
As described above, in the conventional font style information processing method, when a character string is dynamically edited, all the data including the character string of the part to be changed must be changed. Therefore, it has a drawback that it is difficult to dynamically edit a character string having font style information at high speed.

【0006】[0006]

【課題を解決するための手段】本発明のフォントスタイ
ル情報の処理方法は、あらかじめ定義してある文字フォ
ントの大きさおよび種類に関するフォントスタイルテー
ブルを主記憶装置および補助記憶装置に保持しておき、
追加または挿入または削除を行う文字のフォントスタイ
ル情報と元の文字列のフォントスタイル情報とを前記フ
ォントスタイルテーブルを参照することによって文字列
の長さの加減または追加を行って文字列の追加または挿
入または削除を行うことを含むものである。
According to a method of processing font style information of the present invention, a font style table relating to the size and type of a character font defined in advance is held in a main storage device and an auxiliary storage device,
The font style information of the character to be added or inserted or deleted and the font style information of the original character string are referred to the font style table to add or subtract the length of the character string to add or insert the character string. It also includes deleting.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0008】図1は本発明の一実施例を示すフローチャ
ート、図2は図1の実施例を利用するシステムにおける
文字配列およびフォントスタイル配列およびフォントス
タイルテーブルを示すフォーマット図である。
FIG. 1 is a flow chart showing an embodiment of the present invention, and FIG. 2 is a format diagram showing a character arrangement, a font style arrangement and a font style table in a system utilizing the embodiment of FIG.

【0009】図2において、一次元に配列された編集対
象の文字配列データ21に対応してスタイル配列22が
用意されており、スタイル配列22は、文字列の長さ(s
ize)22aと、それに対応するフォントスタイルテーブ
ル23のインデックス22bとが配列されている。文字
配列データ21は、文字列を編集するためのバッフアと
して利用する。
In FIG. 2, a style array 22 is prepared corresponding to the one-dimensionally arranged character array data 21 to be edited, and the style array 22 has a character string length (s
ize) 22a and the corresponding index 22b of the font style table 23 are arranged. The character array data 21 is used as a buffer for editing a character string.

【0010】フォントスタイルテーブル23は、フォン
ト種類の組合わせ23aと、文字の大きさ(fontsize)2
3bとで構成されており、フォント種類の組合わせ23
aには、該当する文字コードに対応する幾つかのフォン
トの種類をまとめたものを1個の情報として登録するこ
ともできる。フォントの種類またはフォントの大きさが
変ると、新たな情報として追加される。
The font style table 23 includes a combination 23a of font types and a font size 2
3b and a combination of font types 23
In a, it is possible to register, as one piece of information, a collection of several font types corresponding to the corresponding character code. When the font type or font size changes, it is added as new information.

【0011】次に、図1を参照して本発明の実施例につ
いて説明する。
Next, an embodiment of the present invention will be described with reference to FIG.

【0012】図1の実施例においては、文字列の追加が
行われたときは、その文字列のフォントスタイル情報も
何らかの手段によって指定されており、文字の追加また
は挿入または削除は、常に1文字単位で行われる。
In the embodiment of FIG. 1, when a character string is added, the font style information of the character string is also specified by some means, and the addition, insertion or deletion of a character is always one character. It is done in units.

【0013】システムを起動した直後に、あらかじめ設
定してあるフォントスタイル情報に関するフォントスタ
イルテーブルを作成する(ステップ1)。
Immediately after starting the system, a font style table relating to preset font style information is created (step 1).

【0014】次に、フォントスタイル情報を有する文字
を追加するのかまたは挿入するのかまたは削除するのか
を判断し、それらに応じた処理ルートを選択する(ステ
ップ2)。
Next, it is judged whether the character having the font style information is added, inserted or deleted, and the processing route corresponding to them is selected (step 2).

【0015】文字を追加するときは、ステップ3に移行
し、編集対象の文字配列データの最後尾に、フォントス
タイル情報を有する追加すべき文字を付加する。このと
きの追加すべき文字については、文字コードの種類を問
わない。すなわち、ASCII コードでも日本語コードでも
よい。
When adding a character, the process proceeds to step 3 and a character to be added having font style information is added to the end of the character array data to be edited. The characters to be added at this time may be of any character code type. That is, either ASCII code or Japanese code may be used.

【0016】次に、追加された文字の直前の文字のフォ
ントスタイル情報と追加した文字のフォントスタイル情
報とを比較し(ステップ4)、それらが同じ場合はステ
ップ5に移行し、それらが同じでない場合はステップ6
に移行する。追加された文字の直前の文字のフォントス
タイル情報と追加した文字のフォントスタイル情報とを
比較は、スタイル配列22内のインデックス22bを利
用してフォントスタイルテーブル23を参照して単純な
数値の比較として実行できる。
Next, the font style information of the character immediately before the added character is compared with the font style information of the added character (step 4), and if they are the same, the process proceeds to step 5 and they are not the same. If step 6
Move to. To compare the font style information of the character immediately before the added character with the font style information of the added character, refer to the font style table 23 using the index 22b in the style array 22 and perform a simple numerical value comparison. I can do it.

【0017】ステップ5においては、追加された文字の
直前の文字のスタイル配列22の文字列の長さ(size)2
2aを、追加した文字のバイト数だけ増加させる。
In step 5, the length (size) of the character string of the character style array 22 immediately before the added character is 2
2a is increased by the number of bytes of the added character.

【0018】ステップ6においては、追加した文字のフ
ォントスタイル情報をスタイル配列22の最後に追加
し、追加した文字のバイト数を追加したスタイル配列に
設定する。
In step 6, the font style information of the added character is added to the end of the style array 22, and the number of bytes of the added character is set in the added style array.

【0019】フォントスタイル情報を有する文字を挿入
するときは、既にある文字列の任意の文字の位置に新た
な文字を追加する(ステップ7)。
When inserting a character having font style information, a new character is added to the position of an arbitrary character in an existing character string (step 7).

【0020】次に、挿入された文字の直前および直後の
文字のフォントスタイル情報と挿入した文字のフォント
スタイル情報とを比較し(ステップ8)、それらが同じ
場合はステップ9に移行し、それらが同じでない場合は
ステップ10に移行する。
Next, the font style information of the character immediately before and immediately after the inserted character and the font style information of the inserted character are compared (step 8), and if they are the same, the process proceeds to step 9 and they are If they are not the same, the process proceeds to step 10.

【0021】ステップ9においては、挿入された文字の
直前または直後の文字のスタイル配列22の文字列の長
さ(size)22aを、挿入した文字のバイト数だけ増加さ
せる。
In step 9, the length (size) 22a of the character string of the character style array 22 immediately before or after the inserted character is increased by the number of bytes of the inserted character.

【0022】ステップ10においては、挿入した文字の
フォントスタイル情報を、スタイル配列22の文字を挿
入した位置に追加し、追加した文字のバイト数を追加し
たスタイル配列に設定する。
In step 10, the font style information of the inserted character is added to the position of the inserted character in the style array 22, and the number of bytes of the added character is set in the added style array.

【0023】フォントスタイル情報を有する文字を削除
するときは、既にある文字列の任意の位置の文字を削除
する(ステップ11)。すなわち、削除すべき文字のあ
る位置からその文字の文字列の長さ(size)22aを減算
する(ステップ12)。これによってその文字の文字列
の長さ(size)22aが0になたときは、そのフォントス
タイル情報に関する文字列が存在しないことになる。
When deleting a character having font style information, the character at an arbitrary position of the existing character string is deleted (step 11). That is, the length (size) 22a of the character string of the character is subtracted from the position of the character to be deleted (step 12). As a result, when the length (size) 22a of the character string of the character becomes 0, it means that the character string relating to the font style information does not exist.

【0024】[0024]

【発明の効果】以上説明したように、本発明のフォント
スタイル情報の処理方法は、あらかじめ定義してある文
字フォントの大きさおよび種類に関するテーブルを主記
憶装置または補助記憶装置に保持しておき、前記主記憶
装置または前記補助記憶装置内の文字列と前記テーブル
とを参照しながら動的に文字列の追加または挿入または
削除を行うように構成することにより、複数のフォント
スタイル情報を有する文字列を高速に編集することが可
能になるという効果がある。
As described above, according to the font style information processing method of the present invention, the table relating to the size and type of the character font defined in advance is held in the main storage device or the auxiliary storage device, A character string having a plurality of font style information by dynamically adding, inserting or deleting a character string while referring to the character string in the main storage device or the auxiliary storage device and the table There is an effect that it becomes possible to edit at high speed.

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

【図1】本発明の一実施例を示すフローチャートであ
る。
FIG. 1 is a flowchart showing an embodiment of the present invention.

【図2】図1の実施例を利用したシステムの文字配列お
よびフォントスタイル配列およびフォントスタイルテー
ブルを示すフォーマット図である。
FIG. 2 is a format diagram showing a character arrangement, a font style arrangement, and a font style table of the system using the embodiment of FIG.

【図3】従来のフォントスタイル情報の処理方法の一例
を示す模式図である。
FIG. 3 is a schematic diagram showing an example of a conventional font style information processing method.

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

1〜12 ステップ 21 文字配列データ 22 スタイル配列 22a 文字列の長さ(size) 22b インデックス22b 23 フォントスタイルテーブル 23a フォント種類の組合わせ 23b 文字の大きさ(fontsize) 31a・31b〜31n 文字列 32a・32b〜32n フォントスタイル情報 1 to 12 steps 21 character array data 22 style array 22a character string length (size) 22b index 22b 23 font style table 23a combination of font types 23b character size (fontsize) 31a / 31b to 31n character string 32a / 32b-32n font style information

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 あらかじめ定義してある文字フォントの
大きさおよび種類に関するテーブルを主記憶装置または
補助記憶装置に保持しておき、前記主記憶装置または前
記補助記憶装置内の文字列と前記テーブルとを参照しな
がら文字列の追加または挿入または削除を行うことを含
むことを特徴とするフォントスタイル情報の処理方法。
1. A table regarding a size and type of a character font defined in advance is held in a main storage device or an auxiliary storage device, and a character string in the main storage device or the auxiliary storage device and the table. A method of processing font style information, which comprises adding, inserting, or deleting a character string while referring to.
【請求項2】 あらかじめ定義してある文字フォントの
大きさおよび種類に関するフォントスタイルテーブルを
主記憶装置および補助記憶装置に保持しておき、追加ま
たは挿入または削除を行う文字のフォントスタイル情報
と元の文字列のフォントスタイル情報とを前記フォント
スタイルテーブルを参照することによって文字列の長さ
の加減または追加を行って文字列の追加または挿入また
は削除を行うことを含むことを特徴とするフォントスタ
イル情報の処理方法。
2. A font style table relating to the size and type of a character font defined in advance is held in the main storage device and the auxiliary storage device, and the font style information of the character to be added, inserted or deleted and the original font style information are stored. Font style information of a character string and adding or inserting or deleting a character string by adding or subtracting the length of the character string by referring to the font style table. Processing method.
JP5071392A 1993-03-30 1993-03-30 Processing method for font style information Pending JPH06282537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5071392A JPH06282537A (en) 1993-03-30 1993-03-30 Processing method for font style information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5071392A JPH06282537A (en) 1993-03-30 1993-03-30 Processing method for font style information

Publications (1)

Publication Number Publication Date
JPH06282537A true JPH06282537A (en) 1994-10-07

Family

ID=13459207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5071392A Pending JPH06282537A (en) 1993-03-30 1993-03-30 Processing method for font style information

Country Status (1)

Country Link
JP (1) JPH06282537A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01261774A (en) * 1988-04-13 1989-10-18 Fujitsu Ltd Document data processing system
JPH0222208A (en) * 1987-10-02 1990-01-25 Takeda Chem Ind Ltd Herbicide composition
JPH0344761A (en) * 1989-07-12 1991-02-26 Matsushita Electric Ind Co Ltd Document processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0222208A (en) * 1987-10-02 1990-01-25 Takeda Chem Ind Ltd Herbicide composition
JPH01261774A (en) * 1988-04-13 1989-10-18 Fujitsu Ltd Document data processing system
JPH0344761A (en) * 1989-07-12 1991-02-26 Matsushita Electric Ind Co Ltd Document processor

Similar Documents

Publication Publication Date Title
JPH0250478B2 (en)
JPH06282537A (en) Processing method for font style information
JPH05135025A (en) Document editor
JPS60176784A (en) Insertion printer for table data
JPH03233670A (en) Text data conversion system
JP2002140338A (en) Device and method for supporting construction of dictionary
JPH0431429B2 (en)
JP3329476B2 (en) Kana-Kanji conversion device
JPH0719261B2 (en) How to display the next screen in machine translation
JPS62127966A (en) Document processor
JP3037046B2 (en) Network configuration statement list editing method
JP3792060B2 (en) Line feed evaluation method and line feed evaluation processing apparatus
JP3050811B2 (en) Parsing tree database construction support device
JP2697868B2 (en) Output control method and device
JPS6354662A (en) Editing system for caption-item
JPH11161666A (en) Method and device for document data retrieval and document editing device
KR900000090B1 (en) Display control method
JPH0449421A (en) File editing system
JPH0830597A (en) Method and device for laying out character string
JPH0540638A (en) Vocabulary analyzing/editing system
JPH0736862A (en) Data inserting device
JPH05174024A (en) Document editor
JPH08287064A (en) Method for adjusting character modification
KR960035308A (en) How to create and edit an electronic document form in an electronic document exchange system
JPH0844732A (en) Document preparation and editing system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970729