JPH08314655A - Document output device - Google Patents

Document output device

Info

Publication number
JPH08314655A
JPH08314655A JP7115643A JP11564395A JPH08314655A JP H08314655 A JPH08314655 A JP H08314655A JP 7115643 A JP7115643 A JP 7115643A JP 11564395 A JP11564395 A JP 11564395A JP H08314655 A JPH08314655 A JP H08314655A
Authority
JP
Japan
Prior art keywords
character
data
image data
output device
arrangement
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.)
Granted
Application number
JP7115643A
Other languages
Japanese (ja)
Other versions
JP3339760B2 (en
Inventor
Kazuma Aoki
一磨 青木
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP11564395A priority Critical patent/JP3339760B2/en
Publication of JPH08314655A publication Critical patent/JPH08314655A/en
Application granted granted Critical
Publication of JP3339760B2 publication Critical patent/JP3339760B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To obtain an output result where characters are arrayed beautifully by arranging a coordinate position as the longitudinal arrangement reference of character image data at the longitudinal reference position on output image data. CONSTITUTION: A CPU 10 generates and stores a character image in a character image memory 12a in a working memory 12. Then standard position coordinate data 14b are read out of an arrangement position memory 14 to a position coordinate memory 12d in the working memory 12; when it is judged that this character is KANA(Japanese syllbary) or KANJI(Chinese character), base line data 19c stored as character data 19 are not used and the base line of this character is recalculated to rewrite the contents of the position coordinate memory 12d in the working memory 12 into KANA/KANJI position coordinate data 14c in the arrangement position memory 14. Further, the CPU 10 performs a process for arranging the character image stored in the character image memory 12a in the working memory 12 on the output image in an output image memory 16.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、キャラクタの形状を可
視化して印字、或いは、表示を行うプリンタ装置やディ
スプレイ装置の画素のオン/オフの情報である出力イメ
ージデータを生成する文書出力装置に関するものであ
り、特に、横書き文書におけるキャラクタのイメージを
好適に整列する処理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document output device for producing output image data which is information of ON / OFF of pixels of a printer device or a display device for visualizing and printing the shape of a character and displaying or displaying. In particular, the present invention relates to a process for appropriately aligning images of characters in a horizontal writing document.

【0002】[0002]

【従来の技術】従来、この種の出力装置は、キャラクタ
の形状を定義する形状データからキャラクタのイメージ
データであるキャラクタイメージを生成し、そのキャラ
クタイメージを出力メディアの画素を想定したイメージ
データである出力イメージ上に配置することで、出力装
置が参照する出力イメージを生成している。ここで、イ
メージデータとは、画素のオン/オフを定義したデータ
のことを表している。
2. Description of the Related Art Conventionally, this type of output device generates a character image which is image data of a character from shape data defining a shape of the character, and the character image is image data assuming pixels of an output medium. By arranging on the output image, the output image referred to by the output device is generated. Here, the image data represents data defining ON / OFF of pixels.

【0003】キャラクタに関する情報(以後、キャラク
タデータと称する)には、上記の形状データの他に、そ
れぞれのキャラクタを配列してキャラクタ列を作る際に
必要な情報として、配置データがあり、配置データに
は、文字送りデータとベースラインデータとが含まれて
いる。
In addition to the above-mentioned shape data, the information relating to characters (hereinafter referred to as character data) includes arrangement data as information necessary for arranging each character to form a character string. Contains character feed data and baseline data.

【0004】文字送りデータは、各キャラクタの文字送
り方向の存在領域すなわちキャラクタ幅を定義するもの
であって、存在領域の始点と終点の座標情報を持つもの
である。通常、文字送りの方向は、横書きと縦書きがあ
るため、この文字送りデータも横書き用のものと縦書き
用のものとがあり、その両方を持つものもある。例え
ば、図2に示すように、横書き用の文字送りデータは、
文字送り方向であるx方向の座標情報を持ち、キャラク
タの存在領域の開始位置である始点(一般に0)の座標
情報と、その終了位置であり且つ次のキャラクタの始点
と一致させるべき位置である終点の座標情報とからなっ
ている。
The character feed data defines an existing area in the character feed direction of each character, that is, a character width, and has coordinate information of a start point and an end point of the existing area. Normally, since the direction of character feed includes horizontal writing and vertical writing, this character feeding data is also for horizontal writing and for vertical writing, and some have both. For example, as shown in FIG. 2, the character feed data for horizontal writing is
It has the coordinate information in the x direction, which is the character feed direction, and the coordinate information of the starting point (generally 0) which is the starting position of the area where the character exists, and the ending position thereof and the position which should coincide with the starting point of the next character. It consists of coordinate information of the end point.

【0005】また、ベースラインデータは、文字送り方
向と直交する方向のキャラクタの位置合わせの基準とな
る位置(以後、ベースラインと呼ぶ。)を定義するもの
であり、その方向の座標情報を持つものである。そし
て、文字送りデータと同様に、横書き用のものと、縦書
き用のものと、その両方を持つものとがある。例えば、
図2において、横書き用のベースラインデータはy座標
であり、キャラクタ形状の整列の基準となる位置(一般
に0)の座標情報を持っている。
The baseline data defines a position (hereinafter referred to as a baseline) that serves as a reference for character alignment in a direction orthogonal to the character feed direction, and has coordinate information in that direction. It is a thing. Similar to the character feed data, there are horizontal writing data, vertical writing data, and both. For example,
In FIG. 2, the baseline data for horizontal writing is the y coordinate, and has the coordinate information of the position (generally 0) that is the reference for the alignment of the character shapes.

【0006】従来、各キャラクタイメージを出力イメー
ジ上に配置する際、各キャラクタの文字送りデータの始
点を指示された文字送り方向の座標位置に一致させ、且
つそのキャラクタのベースラインデータで示されるベー
スラインを指示された文字送り方向に直交する方向の座
標位置に一致させることでキャラクタの配置を行ってい
た。例えば、横書きでキャラクタを配置する場合は、横
書き用文字送りデータの始点の座標を指定されたx座標
に一致させ、横書き用ベースラインの座標を指定された
y座標に一致させる様にキャラクタイメージを出力イメ
ージ上に配置していた。
Conventionally, when arranging each character image on the output image, the start point of the character feed data of each character is made to coincide with the coordinate position in the designated character feed direction, and the base indicated by the baseline data of that character is used. Characters are arranged by matching the line with the coordinate position in the direction orthogonal to the designated character feed direction. For example, when arranging a character in horizontal writing, the character image is made so that the coordinates of the starting point of the horizontal writing character feed data match the specified x coordinate and the coordinates of the horizontal writing baseline match the specified y coordinate. It was placed on the output image.

【0007】ベースライン位置に関しては、一般的に、
縦書き用には、キャラクタの種類に関わらず、キャラク
タのデザイン上の中心を通る位置に設定され、また、横
書き用には、英文字のみの書体(フォント)では大文字
の最下部辺りに、英文字や仮名や漢字を含む日本語の書
体ではキャラクタのデザイン上の中心を通る位置に設定
されるものが多い。
Regarding the baseline position, in general,
For vertical writing, regardless of the type of character, it is set at a position that passes through the center of the design of the character.For horizontal writing, in the typeface (font) with only English characters, it is set near the bottom of the capital letters. In many Japanese typefaces including characters, kana, and kanji, they are set at a position that passes through the center of the character design.

【0008】また、一般に日本語書体のキャラクタセッ
トには、仮名や漢字の他に英文字も含まれ、この英文字
は、この書体の仮名や漢字との上下方向の位置のバラン
スも考慮にいれてデザインされている。すなわち、横書
きの場合、上述のようなベースライン位置の設定に従っ
たベースラインデータを用いて配列を行うと、明らかに
仮名や漢字が英文字に対して下がりすぎてバランスが悪
くなる。そのため、フォントデータを作成する時、英文
字の位置をベースラインより下げるか、仮名や漢字の位
置をベースラインより上げるかしてデザイン上のバラン
スをとる必要がある。一般的に、横書き用のベースライ
ンデータは、横に並べた時のバランスの良さが求められ
る英文字を基準に考慮され、仮名や漢字の形状データの
位置をベースラインより上げる、すなわち、図4に示す
ように、ベースラインがキャラクタの中心よりも若干下
方に位置するように各キャラクタのベースラインデータ
を調整して、フォントデータが作成される。
Generally, the Japanese character set character set includes English characters in addition to Kana and Kanji, and this English character takes into consideration the balance of the vertical position of the Kana and Kanji. Is designed. That is, in the case of horizontal writing, when the arrangement is performed using the baseline data according to the setting of the baseline position as described above, the kana and kanji obviously fall too much with respect to the English characters, and the balance is deteriorated. Therefore, when creating font data, it is necessary to balance the design by lowering the position of English characters from the baseline or raising the positions of kana and kanji above the baseline. Generally, the baseline data for horizontal writing is considered on the basis of English characters that are required to have good balance when arranged horizontally, and the position of the kana or kanji shape data is raised above the baseline, that is, as shown in FIG. As shown in, font data is created by adjusting the baseline data of each character so that the baseline is located slightly below the center of the character.

【0009】図4は、横書き用のベースラインとキャラ
クタの中心とのギャップが相異なる書体Aと書体Bとが
使用可能な文書出力装置にて、この2つの書体が混在し
た横書き文書を出力した場合の、書体A、及び、書体B
の横書き用のベースラインとキャラクタの形状データの
位置関係を示す図である。ここで、直線41はベースラ
インの位置を表し、キャラクタ42は書体Aの1つのキ
ャラクタであり、キャラクタ43は書体Bの1つのキャ
ラクタである。また、点44及び点45はそれぞれキャ
ラクタ42及びキャラクタ43のキャラクタの中心点を
示し、距離46及び距離47はそれぞれキャラクタ42
及びキャラクタ43のベースラインとキャラクタの中心
点との距離、すなわち、ギャップを示している。距離4
6は距離47よりも小さくデザインされている。
FIG. 4 shows a document output device capable of using a type A and a type B in which the gap between the horizontal writing baseline and the character center is different, and a horizontal writing document in which these two types are mixed is output. In case of type A and type B
FIG. 6 is a diagram showing a positional relationship between a horizontal writing baseline and character shape data. Here, the straight line 41 represents the position of the baseline, the character 42 is one character of the type A, and the character 43 is one character of the type B. Point 44 and point 45 indicate the center points of the characters 42 and 43, respectively, and distance 46 and distance 47 indicate the character 42, respectively.
And the distance between the baseline of the character 43 and the center point of the character, that is, the gap. Distance 4
The 6 is designed to be smaller than the distance 47.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、前述の
ようなデザイン上のバランスは、書体を超えてまで考慮
されている場合は少なく、一般的には、ベースライン位
置とキャラクタのデザイン上の中心との差は書体毎に異
なったものになっている。
However, the design balance as described above is rarely taken into consideration beyond the typeface, and generally, the baseline position and the design center of the character are not considered. The difference between is different for each typeface.

【0011】そのため、近年、この種の文書出力装置で
は、書体毎にキャラクタデータを記憶した書体データを
比較的手軽に外部から追加することができるようにな
り、複数の書体を用いた文書を出力するようになってき
たが、その場合、複数の書体のキャラクタを組み合わせ
ると美しく配置することができない問題が起こってき
た。
Therefore, in recent years, in this type of document output device, it has become possible to relatively easily add typeface data in which character data is stored for each typeface from the outside, and a document using a plurality of typefaces is output. However, in that case, a problem arises in which characters of multiple typefaces cannot be arranged beautifully when combined.

【0012】例えば、書体Aの漢字と、書体Bの仮名、
英文字を用いた文書を、従来の文書出力装置にて出力し
たとすると、図5(a)に示すように、書体Aの漢字に
対して書体Bの仮名が不自然に上がったような配置状態
になってしまう。尚、直線51は、この行の位置合わせ
の座標を示す補助線を示している。
For example, kanji of type A and kana of type B,
Assuming that a document using English characters is output by a conventional document output device, as shown in FIG. 5 (a), the layout is such that the kana of typeface B is unnaturally raised with respect to the kanji of typeface A. It will be in a state. Note that the straight line 51 indicates an auxiliary line indicating the coordinate for the alignment of this row.

【0013】このように、複数書体、複数サイズのキャ
ラクタを用いた文書を上述のような従来のベースライン
を一致させる方式で配置した場合、キャラクタが整列せ
ずに見栄えの悪い出力結果となる問題がある。
As described above, when a document using a plurality of typefaces and a plurality of sizes of characters is arranged by the conventional method of matching the baselines as described above, the characters are not aligned and an unattractive output result is produced. There is.

【0014】本発明は、上述した問題点を解決するため
になされたものであり、キャラクタデータ中のベースラ
インデータで示されるベースラインと、キャラクタイメ
ージのデザイン上の中心との差が異なる複数の書体のキ
ャラクタを混在させた文書であっても、従来のキャラク
タデータの形態を変えることなく、キャラクタを美しく
整列させた出力結果を得ることができる文書出力装置を
提供することを目的としている。
The present invention has been made to solve the above-mentioned problems, and a plurality of different baselines indicated by the baseline data in the character data and the design center of the character image have different differences. An object of the present invention is to provide a document output device capable of obtaining an output result in which characters are beautifully arranged without changing the form of conventional character data even in a document in which typeface characters are mixed.

【0015】[0015]

【課題を解決するための手段】この目的を達成するため
に請求項1の発明の文書出力装置は、形状に関する形状
データと配置位置に関する配置データとを含むキャラク
タデータ中の形状データからキャラクタイメージデータ
を発生し、配置データ中のベースラインデータを基に指
定された座標位置に横方向に配置することで、横書き文
書の出力装置における画素のオン/オフの情報である出
力イメージデータを生成する文書出力装置であって、キ
ャラクタイメージデータが配置される出力イメージデー
タ上の縦方向の基準位置に関するデータを記憶する記憶
手段と、キャラクタイメージデータの縦方向における配
置基準となる座標位置をキャラクタデータ中の形状デー
タに基づいて算出する算出手段と、算出手段で得られた
座標位置が、記憶手段に記憶されたデータで示される基
準位置に一致するようにキャラクタイメージデータを出
力イメージデータ上に配置する配置手段とを備えてい
る。
In order to achieve this object, a document output device according to the invention of claim 1 is characterized in that from character data to character image data in character data including shape data regarding a shape and arrangement data regarding an arrangement position. And output the image data that is the information of the ON / OFF of the pixel in the output device of the horizontal writing document by arranging in the horizontal direction at the coordinate position specified based on the baseline data in the arrangement data. The output device is a storage unit that stores data relating to a vertical reference position on the output image data in which the character image data is placed, and a coordinate position that is a vertical placement reference of the character image data in the character data. The calculation means for calculating based on the shape data and the coordinate position obtained by the calculation means are stored in memory. And a placement means for placing on the output image data character image data to match the reference position indicated by the data stored in the stage.

【0016】また、請求項2の発明の文書出力装置は、
形状に関する形状データと配置位置に関する配置データ
とを含むキャラクタデータ中の形状データからキャラク
タイメージデータを発生し、配置データ中のベースライ
ンデータを基に指定された座標位置に横方向に配置する
ことで、横書き文書の出力装置における画素のオン/オ
フの情報である出力イメージデータを生成する文書出力
装置であって、キャラクタが予め定めた特定キャラクタ
群に含まれる特定キャラクタであるか否かを判定する判
定手段と、特定キャラクタのキャラクタイメージデータ
が配置される出力イメージデータ上の縦方向の基準位置
に関するデータを記憶する記憶手段と、キャラクタイメ
ージデータの縦方向における配置基準となる座標位置を
キャラクタデータ中の形状データに基づいて算出する算
出手段と、キャラクタが判定手段で特定キャラクタであ
ると判定された場合に、算出手段で得られた座標位置が
記憶手段に記憶された基準位置に関するデータで示され
る基準位置に一致するようにキャラクタイメージデータ
を出力イメージデータ上に配置する配置手段とを備えて
いる。
The document output device according to the invention of claim 2 is
By generating character image data from the shape data in the character data that includes the shape data regarding the shape and the arrangement data regarding the arrangement position, and arranging in the horizontal direction at the coordinate position specified based on the baseline data in the arrangement data. A document output device for generating output image data, which is on / off information of pixels in an output device for a horizontal writing document, and determines whether or not the character is a specific character included in a predetermined specific character group. Determination means, storage means for storing data relating to a vertical reference position on the output image data in which the character image data of the specific character is placed, and the coordinate position serving as the vertical placement reference of the character image data in the character data. The calculation means that calculates based on the shape data of When the determination unit determines that the character is the specific character, the character image data is output so that the coordinate position obtained by the calculation unit matches the reference position indicated by the data regarding the reference position stored in the storage unit. Arrangement means arranged on the image data.

【0017】更に、請求項3の発明の文書出力装置は、
形状に関する形状データと配置位置に関する配置データ
とを含むキャラクタデータ中の形状データからキャラク
タイメージデータを発生し、配置データ中のベースライ
ンデータを基に指定された座標位置に横方向に配置する
ことで、横書き文書の出力装置における画素のオン/オ
フの情報である出力イメージデータを生成する文書出力
装置であって、キャラクタが予め定めた特定キャラクタ
群に含まれる特定キャラクタであるか否かを判定する判
定手段と、特定キャラクタのキャラクタイメージデータ
が配置される出力イメージデータ上の縦方向の基準位置
に関するデータを複数記憶する記憶手段と、記憶手段に
記憶される複数の基準位置に関するデータの中から使用
する書体、キャラクタサイズ、書体とキャラクタサイズ
の組合せ或いは行送り幅に基づいて1つを選択する選択
手段と、キャラクタイメージデータの縦方向における配
置基準となる座標位置をキャラクタデータ中の形状デー
タに基づいて算出する算出手段と、キャラクタが判定手
段で特定キャラクタであると判定された場合に、算出手
段で得られた座標位置を、選択手段で選択された記憶手
段に記憶されたデータで示される基準位置に一致するよ
うにキャラクタイメージデータを出力イメージデータ上
に配置する配置手段とを備えている。
Further, the document output device of the invention of claim 3 is
By generating character image data from the shape data in the character data that includes the shape data regarding the shape and the arrangement data regarding the arrangement position, and arranging in the horizontal direction at the coordinate position specified based on the baseline data in the arrangement data. A document output device for generating output image data, which is on / off information of pixels in an output device for a horizontal writing document, and determines whether or not the character is a specific character included in a predetermined specific character group. Used from the determination means, the storage means for storing a plurality of data regarding the vertical reference position on the output image data in which the character image data of the specific character is arranged, and the data regarding the plurality of reference positions stored in the storage means. Typeface, character size, combination of typeface and character size or line Selection means for selecting one on the basis of the width of the character image, calculation means for calculating a coordinate position serving as a reference for arranging the character image data in the vertical direction based on the shape data in the character data, and the character determining means for the specific character. When it is determined that the character image data is output on the output image data so that the coordinate position obtained by the calculation unit matches the reference position indicated by the data stored in the storage unit selected by the selection unit. And arranging means for arranging the same.

【0018】また、請求項4の発明の文書出力装置は、
請求項2或いは請求項3の文書出力装置の構成に加え、
キャラクタを特定する複数の特定キャラクタ群を記憶す
る第2の記憶手段と、第2の記憶手段の中から使用する
書体或いは書体とキャラクタサイズの組合せに基づいて
1つの特定キャラクタ群を選択する第2の選択手段とを
備えている。
The document output device according to the invention of claim 4 is
In addition to the configuration of the document output device according to claim 2 or 3,
Second storage means for storing a plurality of specific character groups for specifying characters, and second selection means for selecting one specific character group based on the typeface or combination of typeface and character size to be used from the second storage means. And selecting means.

【0019】また、請求項5の発明の文書出力装置は、
請求項2或いは請求項3の文書出力装置の構成に加え、
特定キャラクタを複数記憶する第3の記憶手段と、第3
の記憶手段に対して特定キャラクタを登録或いは削除す
る設定手段とを備えている。
The document output device according to the invention of claim 5 is
In addition to the configuration of the document output device according to claim 2 or 3,
Third storage means for storing a plurality of specific characters;
Setting means for registering or deleting the specific character in the storage means.

【0020】また、請求項6の発明の文書出力装置は、
請求項1、請求項2或いは請求項3の文書出力装置にお
いて、形状データから得られるキャラクタイメージデー
タの最大値及び最小値の所定割合の座標位置を求める算
出手段を備えている。
The document output device according to the invention of claim 6 is:
The document output apparatus according to claim 1, claim 2 or claim 3 further comprises a calculating unit for calculating a coordinate position of a predetermined ratio of the maximum value and the minimum value of the character image data obtained from the shape data.

【0021】また、請求項7の発明の文書出力装置は、
請求項2或いは請求項3の文書出力装置の構成に加え、
特定キャラクタを仮名と漢字とするものである。
The document output device according to the invention of claim 7 is:
In addition to the configuration of the document output device according to claim 2 or 3,
The specific characters are kana and kanji.

【0022】[0022]

【作用】上記の構成を有する請求項1の発明の文書出力
装置においては、記憶手段はキャラクタイメージデータ
が配置される出力イメージデータ上の縦方向の基準位置
に関するデータを記憶し、算出手段はキャラクタイメー
ジデータの縦方向における配置基準となる座標位置をキ
ャラクタデータ中の形状データに基づいて算出する。そ
して、配置手段は算出手段で得られた座標位置が、記憶
手段に記憶されたデータで示される基準位置に一致する
ようにキャラクタイメージデータを出力イメージデータ
上に配置する。複数の書体のキャラクタを混在させた文
書であっても、キャラクタを美しく整列させた出力結果
を得ることが可能になる。
According to the document output apparatus of the present invention having the above structure, the storage means stores data relating to the vertical reference position on the output image data where the character image data is arranged, and the calculation means. A coordinate position serving as an arrangement reference in the vertical direction of the image data is calculated based on the shape data in the character data. The arranging means arranges the character image data on the output image data so that the coordinate position obtained by the calculating means coincides with the reference position indicated by the data stored in the storing means. Even in a document in which characters of multiple typefaces are mixed, it is possible to obtain an output result in which the characters are beautifully arranged.

【0023】また、請求項2の発明の文書出力装置にお
いては、判定手段はキャラクタが予め定めた特定キャラ
クタ群に含まれる特定キャラクタであるか否かを判定
し、記憶手段は特定キャラクタのキャラクタイメージデ
ータが配置される出力イメージデータ上の縦方向の基準
位置に関するデータを記憶する。また、算出手段はキャ
ラクタイメージデータの縦方向における配置基準となる
座標位置をキャラクタデータ中の形状データに基づいて
算出する。そして、配置手段はキャラクタが判定手段で
特定キャラクタであると判定された場合に、算出手段で
得られた座標位置が記憶手段に記憶されたデータで示さ
れる基準位置に一致するようにキャラクタイメージデー
タを出力イメージデータ上に配置する。これにより、特
定キャラクタに対してだけ特別の配置処理を行うことが
可能になる。
In the document output device according to the second aspect of the present invention, the determination means determines whether or not the character is a specific character included in a predetermined specific character group, and the storage means stores a character image of the specific character. Data regarding the vertical reference position on the output image data in which the data is arranged is stored. Further, the calculating means calculates the coordinate position which is the arrangement reference in the vertical direction of the character image data, based on the shape data in the character data. Then, when the determining means determines that the character is the specific character, the arranging means sets the character image data so that the coordinate position obtained by the calculating means coincides with the reference position indicated by the data stored in the storing means. Is placed on the output image data. As a result, it becomes possible to perform special placement processing only for the specific character.

【0024】更に、請求項3の発明の文書出力装置にお
いては、判定手段はキャラクタが予め定めた特定キャラ
クタ群に含まれる特定キャラクタであるか否かを判定
し、記憶手段は特定キャラクタのキャラクタイメージデ
ータが配置される出力イメージデータ上の縦方向の基準
位置に関するデータを複数記憶する。また、選択手段は
記憶手段に記憶される複数の基準位置に関するデータの
中から使用する書体、キャラクタサイズ、書体とキャラ
クタサイズの組合せ或いは行送り幅に基づいて1つを選
択し、算出手段はキャラクタイメージデータの縦方向に
おける配置基準となる座標位置をキャラクタデータ中の
形状データに基づいて算出する。そして、配置手段はキ
ャラクタが判定手段で特定キャラクタであると判定され
た場合に、算出手段で得られた座標位置を、選択手段で
選択された記憶手段に記憶されたデータで示される基準
位置に一致するようにキャラクタイメージデータを出力
イメージデータ上に配置する。これにより、書体、キャ
ラクタサイズ、書体とキャラクタサイズの組合せ或いは
行送り幅に応じたより細やかなキャラクタの配置が可能
になる。
Further, in the document output device according to the third aspect of the present invention, the determining means determines whether or not the character is a specific character included in a predetermined specific character group, and the storing means stores a character image of the specific character. A plurality of data relating to the vertical reference position on the output image data in which the data is arranged are stored. Further, the selecting means selects one from the data relating to the plurality of reference positions stored in the storing means based on the typeface, character size, combination of typeface and character size or line feed width to be used, and the calculating means selects the character. A coordinate position serving as an arrangement reference in the vertical direction of the image data is calculated based on the shape data in the character data. Then, when the character is determined to be the specific character by the determining means, the arranging means sets the coordinate position obtained by the calculating means to the reference position indicated by the data stored in the storage means selected by the selecting means. The character image data is arranged on the output image data so that they match. As a result, it is possible to more finely arrange the characters according to the typeface, the character size, the combination of the typeface and the character size, or the line feed width.

【0025】また更に、請求項4の発明の文書出力装置
においては、請求項2或いは請求項3の文書出力装置の
作用の他に、第2の記憶手段はキャラクタを特定する複
数の特定キャラクタ群を記憶し、第2の選択手段は第2
の記憶手段の中から使用する書体或いは書体とキャラク
タサイズの組合せに基づいて1つの特定キャラクタ群を
選択する。これにより、複数書体の組合せやそのキャラ
クタサイズに応じて、より細かに特定された特定キャラ
クタ毎に配置手段による配置処理を行え、より細やかな
キャラクタの配置を行うことができる。
Furthermore, in the document output device of the invention of claim 4, in addition to the operation of the document output device of claim 2 or claim 3, the second storage means has a plurality of specific character groups for specifying characters. And the second selection means is the second
From the storage means, one specific character group is selected based on the typeface to be used or a combination of typeface and character size. As a result, the placement processing can be performed by the placement unit for each of the specific characters that are more finely specified according to the combination of the plurality of fonts and the character size thereof, and more detailed character placement can be performed.

【0026】また、請求項5の発明の文書出力装置にお
いては、請求項2或いは請求項3の文書出力装置の作用
の他に、第3の記憶手段は特定キャラクタを複数記憶
し、設定手段は第3の記憶手段に対して特定キャラクタ
を登録或いは削除し、判定手段は、キャラクタが第3の
記憶手段に記録されている特定キャラクタであるか否か
を判定する。これにより、所望のキャラクタを特定キャ
ラクタに付加或いは削除でき、装置の使用者の好みをキ
ャラクタの配置に反映することが可能になる。
Further, in the document output apparatus of the fifth aspect of the present invention, in addition to the operation of the document output apparatus of the second or third aspect, the third storage means stores a plurality of specific characters, and the setting means is the setting means. The specific character is registered or deleted from the third storage means, and the determination means determines whether or not the character is the specific character recorded in the third storage means. As a result, a desired character can be added to or deleted from the specific character, and the preference of the user of the device can be reflected in the character arrangement.

【0027】さらに、請求項6の発明の文書出力装置に
おいては、請求項1、請求項2或いは請求項3の文書出
力装置の作用の他に、算出手段は形状データから得られ
るキャラクタイメージデータの最大値及び最小値の所定
割合の座標位置を求める。これにより、キャラクタデー
タに特別な情報を付加することなく、適切なキャラクタ
の基準位置を算出することが可能になる。
Further, in the document output device of the invention of claim 6, in addition to the operation of the document output device of claim 1, claim 2 or claim 3, the calculation means calculates the character image data obtained from the shape data. A coordinate position of a predetermined ratio of the maximum value and the minimum value is calculated. This makes it possible to calculate an appropriate character reference position without adding special information to the character data.

【0028】また、請求項7の発明の文書出力装置にお
いては、特定キャラクタを仮名と漢字としている。これ
により、和文欧文が混在する文書であっても、キャラク
タを美しく整列させた出力結果を得ることが可能にな
る。
Further, in the document output apparatus according to the invention of claim 7, the specific characters are kana and kanji. This makes it possible to obtain an output result in which the characters are beautifully arranged, even in a document in which Japanese and Western texts are mixed.

【0029】[0029]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0030】本実施例は、日本語ワードプロセッサの印
字/表示装置にて出力される画像情報を生成する装置に
おける、キャラクタイメージを出力イメージ上へ配置す
る装置に本発明を適用した例で説明する。尚、キャラク
タイメージとは、キャラクタの形状を表すデータを、ま
た、出力イメージとは、印刷/表示装置で出力される画
像を表すデータを、それぞれ、出力メディア上の仮想的
な画素のオン/オフの情報であるイメージ情報で表した
データである。
The present embodiment will be described with an example in which the present invention is applied to an apparatus for arranging a character image on an output image in an apparatus for generating image information output by a printing / display apparatus of a Japanese word processor. Note that the character image is data representing the shape of the character, and the output image is data representing the image output by the printing / display device. It is data represented by image information which is information of.

【0031】図1に示すように、本実施例の文書出力装
置は、CPU10、プログラムメモリ11、ワーキング
メモリ12、フォントメモリ13、配置位置メモリ1
4、入力部15及び出力イメージメモリ16、特定キャ
ラクタコードリスト18等から構成され、それらはバス
17によって接続されている。
As shown in FIG. 1, the document output apparatus according to the present embodiment has a CPU 10, a program memory 11, a working memory 12, a font memory 13, and an arrangement position memory 1.
4, an input unit 15, an output image memory 16, a specific character code list 18, etc., which are connected by a bus 17.

【0032】CPU10は、本文書出力装置の機能を実
現するための制御を行うものであり、プログラムメモリ
11は、このCPU10で行う制御の手続きを定義した
プログラムを記憶するものである。また、ワーキングメ
モリ12は、プログラムメモリ11に記憶されたプログ
ラムの処理をCPU10で実行する際の一時的なデータ
を格納するものであり、後述する本実施例における処理
で使用するキャラクタイメージメモリ12a、文字送り
メモリ12b、ベースラインメモリ12c、及び、位置
座標メモリ12dをも含んでいる。
The CPU 10 performs control for realizing the function of the document output device, and the program memory 11 stores a program defining a control procedure performed by the CPU 10. The working memory 12 stores temporary data when the processing of the program stored in the program memory 11 is executed by the CPU 10, and the character image memory 12a used in the processing in this embodiment described later, It also includes a character feed memory 12b, a baseline memory 12c, and a position coordinate memory 12d.

【0033】フォントメモリ13は、キャラクタのイメ
ージデータであるキャラクタイメージを生成するための
情報であるキャラクタデータ19を記憶したデータベー
スである。キャラクタデータ19は、形状データ19
a、文字送りデータ19b及びベースラインデータ19
cから構成される。尚、フォントメモリ13のキャラク
タデータ19は、書体及びキャラクタを特定することで
読み出すことができる。本実施例では、書体を書体コー
ドと称する書体を一意に表す数値で表現し、キャラクタ
をキャラクタコードと称するキャラクタを一意に表す数
値で表現する。
The font memory 13 is a database that stores character data 19 that is information for generating a character image that is character image data. The character data 19 is the shape data 19
a, character feed data 19b and baseline data 19
It is composed of c. The character data 19 of the font memory 13 can be read by specifying the typeface and the character. In this embodiment, a typeface is expressed by a numerical value uniquely indicating a typeface called a typeface code, and a character is expressed by a numerical value uniquely indicating a character called a character code.

【0034】キャラクタデータ19の形状データ19a
は、キャラクタの形状を定義する情報であり、本実施例
ではビットマップ形式で記憶している。文字送りデータ
19bは、従来技術の項で述べた通り、そのキャラクタ
の文字送り方向の存在領域を定義する情報であり、本実
施例では、横書き用の始点のx座標値、終点のx座標
値、縦書き用の始点のy座標値、終点のy座標値を記憶
している。また、ベースラインデータ19cは、従来技
術の項で述べたとおり、そのキャラクタの文字送り方向
に直交する方向の位置合わせの情報であり、本実施例で
は、横書き用のy座標値と縦書き用のx座標値を記憶し
ている。
Shape data 19a of the character data 19
Is information defining the shape of the character, which is stored in the bitmap format in this embodiment. As described in the section of the prior art, the character feed data 19b is information that defines the existence area of the character in the character feed direction. In the present embodiment, the x coordinate value of the start point for horizontal writing and the x coordinate value of the end point. , The y-coordinate value of the start point and the y-coordinate value of the end point for vertical writing are stored. Further, the baseline data 19c is information of alignment in the direction orthogonal to the character feed direction of the character, as described in the section of the prior art. In this embodiment, the y coordinate value for horizontal writing and the vertical writing are used. The x-coordinate value of is stored.

【0035】図2にフォントメモリ13内のキャラクタ
データ19の例を概念的に示す。図2に示すように、フ
ォントメモリ13は、1つのキャラクタデータ19毎
に、形状データ19aとしてビットマップ21を記憶
し、また、文字送りデータ19bの横書き用の始点とし
て点22のx座標値を記憶し、終点として点23のx座
標値を記憶すると共に、縦書き用の始点として点24の
y座標値を記憶し、終点として点25のy座標値を記憶
し、さらに、ベースラインデータ19cの横書き用とし
て、直線26のy座標値を記憶し、かつ縦書き用として
直線27のx座標値を記憶している。ビットマップ21
は、幅がWビットで、かつ高さがHビットのビットマッ
プデータであり、幅方向は、CPU10がバイト単位で
扱えるようにバイトアライメントされており、このとき
の幅がWBバイトとすると、画素のオン/オフを1/0
で表すWBxHバイトの配列データで構成される。この
とき、画素は、左上から開始し、左から右、上から下の
順で記憶されている。
FIG. 2 conceptually shows an example of the character data 19 in the font memory 13. As shown in FIG. 2, the font memory 13 stores a bit map 21 as shape data 19a for each character data 19, and the x coordinate value of a point 22 as a horizontal writing start point of the character feed data 19b. The x-coordinate value of the point 23 is stored as the end point, the y-coordinate value of the point 24 is stored as the start point for vertical writing, the y-coordinate value of the point 25 is stored as the end point, and the baseline data 19c is stored. For horizontal writing, the y coordinate value of the straight line 26 is stored, and for vertical writing, the x coordinate value of the straight line 27 is stored. Bitmap 21
Is bitmap data having a width of W bits and a height of H bits, and is byte-aligned in the width direction so that the CPU 10 can handle it in byte units. If the width at this time is WB bytes, ON / OFF of 1/0
It is composed of WBxH byte array data represented by. At this time, the pixels are stored in order from left to right, left to right, and top to bottom.

【0036】尚、本実施例の横書きとは、キャラクタに
対して、左から右への水平方向にキャラクタを配置した
書式のことをいい、また、縦書きとは、キャラクタに対
して、上から下への水平方向にキャラクタを配置した書
式のことをいう。
The horizontal writing in the present embodiment means a format in which characters are arranged horizontally from left to right with respect to the character, and vertical writing is performed from the top to the character. A format in which characters are arranged horizontally downward.

【0037】配置位置メモリ14は、キャラクタイメー
ジの配置位置に関する情報を記憶するものであり、方向
データ14a、標準位置座標データ14b、仮名漢字位
置座標データ14c、及び、改行幅データ14dを記憶
している。
The layout position memory 14 stores information about the layout position of the character image, and stores direction data 14a, standard position coordinate data 14b, kana / kanji position coordinate data 14c, and line feed width data 14d. There is.

【0038】方向データ14aは、文字送りの方向を表
す情報であり、横書き/縦書きを表すフラグ情報であ
る。標準位置座標データ14b及び仮名漢字位置座標デ
ータ14cは、共に配置されるキャラクタの位置を出力
イメージ上の座標値で表すデータであり、標準位置座標
データ14bは仮名及び漢字以外のキャラクタを処理す
る場合に、仮名漢字位置座標データ14cは仮名及び漢
字のキャラクタを処理する場合にそれぞれ参照する情報
である。改行幅データ14dは、現在の改行幅を出力イ
メージの座標単位の量で表すデータである。
The direction data 14a is information indicating the direction of character feeding, and is flag information indicating horizontal writing / vertical writing. The standard position coordinate data 14b and the kana / kanji position coordinate data 14c are data representing the positions of the characters to be placed together by the coordinate values on the output image, and the standard position coordinate data 14b is for processing characters other than kana and kanji. The kana / kanji position coordinate data 14c is information to be referred to when processing kana and kanji characters. The line feed width data 14d is data that represents the current line feed width in the amount of the coordinate unit of the output image.

【0039】入力部15は、書体コード及びキャラクタ
コードを伴ったキャラクタ出力の指令、改行幅の設定等
の様々な指令を入力するものであり、出力イメージメモ
リ16は、表示/印刷装置により参照され、かつ、本文
書出力装置の出力データとなる出力イメージを記憶する
ものである。
The input section 15 is for inputting various commands such as a character output command accompanied by a typeface code and a character code, a line feed width setting, etc. The output image memory 16 is referred to by the display / printing device. In addition, an output image serving as output data of the document output device is stored.

【0040】特定キャラクタコードリスト18は、特定
のキャラクタコードが昇順(コードが次第に大きくなる
ような順)に2バイトの配列として記憶されている。こ
こに記憶されているキャラクタコードは、後述するよう
な特別な処理を行った方が美しく配置する事ができるこ
とが、予め統計的な処理等により調べられているもので
ある。
The specific character code list 18 stores the specific character codes as an array of 2 bytes in ascending order (the order in which the codes gradually increase). It has been preliminarily investigated by statistical processing that the character codes stored here can be arranged more beautifully by performing a special processing as described later.

【0041】次に、このように構成された文書出力装置
において、横書き文書を処理する場合のキャラクタイメ
ージ配置処理を、図3のフローチャートを用いて説明す
る。尚、この処理は、複数の書体が混在した文書の出力
を行う場合に起動される。それ以外の場合は、従来技術
の項に示した従来方式で出力処理を行う。
Next, the character image arranging process in the case of processing a horizontally-written document in the document output device thus constructed will be described with reference to the flowchart of FIG. It should be noted that this process is activated when a document in which a plurality of typefaces are mixed is output. In other cases, output processing is performed by the conventional method described in the section of the related art.

【0042】本実施例では、この処理を行うまでに、既
に、次のように配置位置メモリ14内のすべてのデータ
の初期化は終了している。方向データ14aは、文字送
りの方向として「横書き」を設定し、標準位置座標デー
タ14bは、キャラクタを配置する位置の出力イメージ
上での座標値をセットし、また、仮名漢字位置座標デー
タ14cは、標準位置座標データ14bに対して、改行
幅データ14dの20%だけy座標に加えた値をセット
しておく。改行幅データ14dは、入力部15から入力
される指令に基づいて設定する。
In this embodiment, by the time this process is performed, the initialization of all data in the arrangement position memory 14 has already been completed as follows. The direction data 14a sets "horizontal writing" as the character feed direction, the standard position coordinate data 14b sets the coordinate value on the output image of the position where the character is arranged, and the kana-kanji position coordinate data 14c is set. For the standard position coordinate data 14b, a value added to the y coordinate by 20% of the line feed width data 14d is set. The line feed width data 14d is set based on a command input from the input unit 15.

【0043】CPU10は、先ず、入力部15より入力
されたキャラクタコード及び書体コードで特定されるキ
ャラクタのキャラクタデータをフォントメモリ13より
読み出し、キャラクタイメージを生成し、ワーキングメ
モリ12内のキャラクタイメージメモリ12aにそのデ
ータを格納する(S31)。この際、フォントメモリ1
3からは、横書き用の文字送りデータ、ベースラインデ
ータも同時にワーキングメモリ12内の文字送りメモリ
12b、ベースラインメモリ12cにそれぞれ格納す
る。尚、本実施例のフォントメモリ13に記憶している
キャラクタデータの形状データはビットマップであるた
め、特別な変換をかけることなくキャラクタイメージを
得ることができる。
The CPU 10 first reads the character data of the character specified by the character code and the typeface code input from the input unit 15 from the font memory 13 to generate a character image, and the character image memory 12a in the working memory 12. The data is stored in (S31). At this time, font memory 1
From 3 onward, the horizontal character transfer data and the baseline data are simultaneously stored in the character transfer memory 12b and the baseline memory 12c in the working memory 12, respectively. Since the shape data of the character data stored in the font memory 13 of this embodiment is a bitmap, a character image can be obtained without any special conversion.

【0044】次に、配置位置メモリ14より、標準位置
座標データ14bをワーキングメモリ12内の位置座標
メモリ12dに読み込み(S32)、このキャラクタが
特定キャラクタである仮名あるいは漢字であるか否かを
判定する(S33)。判定は、入力部15より入力した
キャラクタコードが、特定キャラクタコードリスト18
に登録されているものか否かで判定する。
Next, the standard position coordinate data 14b is read from the arrangement position memory 14 into the position coordinate memory 12d in the working memory 12 (S32), and it is determined whether or not this character is a kana or kanji which is a specific character. Yes (S33). The determination is that the character code input from the input unit 15 is the specific character code list 18
Judgment is based on whether it is registered in.

【0045】ここで仮名あるいは漢字であると判定され
た場合は(S33でYES)、キャラクタデータ19と
して記憶されていたベースラインデータ19cを用いず
に、このキャラクタのベースラインを算出し直し(S3
4)、ワーキングメモリ12内の位置座標メモリ12d
の内容を、配置位置メモリ14の仮名漢字位置座標デー
タ14cに書き換える(S35)。この時のキャラクタ
のベースラインを算出方法は、キャラクタイメージのy
座標の最大値と最小値を求め、その中点の座標値を、こ
のキャラクタのベースライン位置としてワーキングメモ
リ12内のベースラインデータメモリ12cとして書き
換えるものである。
If it is determined to be a kana or kanji character (YES in S33), the baseline of this character is recalculated without using the baseline data 19c stored as the character data 19 (S3).
4), position coordinate memory 12d in working memory 12
Is rewritten into the kana / kanji position coordinate data 14c of the arrangement position memory 14 (S35). The method for calculating the character baseline at this time is y for the character image.
The maximum value and the minimum value of the coordinates are obtained, and the coordinate value of the midpoint is rewritten as the baseline position of this character in the baseline data memory 12c in the working memory 12.

【0046】ここで、キャラクタイメージのy座標の最
大値と最小値を求めるには次のようにする。先ず、キャ
ラクタのビットマップデータの原点にあたる配列データ
の最初から順に配列データを調べ、最初に1(画素がオ
ン)が見つかったメモリが何バイト目であるかを求め、
ビットマップデータの幅WBバイトを基に、原点からの
オフセットを算出する。これがy方向の最大値となる。
次いで、同様にして、配列データの最後から逆方向に配
列データを調べ、最初に1が見つかったメモリが何バイ
ト目であるかより、最後の点からのオフセットを算出
し、y方向の最小値を求める。
Here, the maximum and minimum values of the y coordinate of the character image are obtained as follows. First, the array data is examined in order from the beginning of the array data corresponding to the origin of the bit map data of the character, and the byte number of the memory in which 1 (pixel is on) is found first is determined,
The offset from the origin is calculated based on the width WB bytes of the bitmap data. This is the maximum value in the y direction.
Then, in the same manner, the array data is examined in the reverse direction from the end of the array data, and the offset from the last point is calculated depending on the byte number of the memory in which 1 is found first, and the minimum value in the y direction is calculated. Ask for.

【0047】次に、CPU10は、ワーキングメモリ1
2内のキャラクタイメージメモリ12aに記憶したキャ
ラクタイメージを出力イメージメモリ16の出力イメー
ジに配置する処理を行う(S36)。すなわち、キャラ
クタイメージ上のx座標を文字送りメモリ12bに記憶
した文字送りデータの始点のx座標値で、y座標をベー
スラインメモリ12cに記憶したベースラインデータで
表される点を、位置座標メモリ12dに記憶している位
置座標データに、一致させるように出力イメージメモリ
16の出力イメージに配置して、出力イメージに書き込
む。
Next, the CPU 10 makes the working memory 1
The character image stored in the character image memory 12a in 2 is arranged in the output image of the output image memory 16 (S36). That is, the x coordinate on the character image is the x coordinate value of the starting point of the character feed data stored in the character feed memory 12b, and the point represented by the baseline data stored in the baseline memory 12c is the position coordinate memory. It is arranged in the output image of the output image memory 16 so as to match the position coordinate data stored in 12d, and is written in the output image.

【0048】引き続き、配置位置メモリ14内の、標準
位置座標データ14b、仮名漢字位置座標データ14c
を更新する処理を行う(S37)。ここでは、ワーキン
グメモリ12内の文字送りメモリ12bに記憶された文
字送りデータの終点から始点を引いた値、すなわち、文
字送り量を、標準位置座標データ14bと仮名漢字位置
座標データ14cのx座標値に加えた値に変更する。
Subsequently, the standard position coordinate data 14b and the kana / kanji position coordinate data 14c in the arrangement position memory 14 are stored.
Is updated (S37). Here, the value obtained by subtracting the start point from the end point of the character feed data stored in the character feed memory 12b in the working memory 12, that is, the character feed amount is the x coordinate of the standard position coordinate data 14b and the kana / kanji position coordinate data 14c. Change to the value added to the value.

【0049】以上により、1つのキャラクタのキャラク
タイメージ配置処理を終える。
With the above, the character image layout process for one character is completed.

【0050】次に、従来技術の項で示した図5(a)と
同じ文書を本文書出力装置により出力する場合について
説明する。
Next, a case will be described in which the same document as shown in FIG. 5A shown in the section of the prior art is output by this document output device.

【0051】まず、「私」というキャラクタを示すキャ
ラクタコードが入力部15より入力されると、上述した
ように、「私」のキャラクタコードと書体コードによ
り、フォントメモリ13から該当するキャラクタデータ
を読み出し、キャラクタイメージを生成し、ワーキング
メモリ12内のキャラクタイメージメモリ12aにその
データを格納する(S31)。そして、配置位置メモリ
14より、標準位置座標データ14bをワーキングメモ
リ12内の位置座標メモリ12dに読み込む(S3
2)。
First, when the character code indicating the character "I" is input from the input unit 15, as described above, the corresponding character data is read from the font memory 13 by the character code "I" and the typeface code. , A character image is generated and the data is stored in the character image memory 12a in the working memory 12 (S31). Then, the standard position coordinate data 14b is read from the arrangement position memory 14 into the position coordinate memory 12d in the working memory 12 (S3).
2).

【0052】次いで、S33において、「私」は漢字で
あるのでYESと判断し、S34の処理を行うように分
岐する。そして、「私」のキャラクタイメージよりベー
スラインを算出し直し(S34),ワーキングメモリ1
2内の位置座標メモリ12dの内容を、配置位置メモリ
14の仮名漢字位置座標データ14cに書き換える(S
35)。そのあと、ワーキングメモリ12内のキャラク
タイメージメモリ12aに記憶した「私」のキャラクタ
イメージを出力イメージメモリ16の出力イメージに配
置する処理を行う(S36)。引き続き、配置位置メモ
リ14内の、標準位置座標データ14b、仮名漢字位置
座標データ14cを更新する(S37)。以上で、
「私」のキャラクタイメージ配置処理を終える。
Next, in S33, since "I" is a kanji character, YES is determined, and the process branches to perform the process of S34. Then, the baseline is recalculated from the character image of "I" (S34), and the working memory 1
The contents of the position coordinate memory 12d in 2 are rewritten to the kana / kanji position coordinate data 14c of the arrangement position memory 14 (S
35). After that, a process of arranging the character image of "I" stored in the character image memory 12a in the working memory 12 in the output image of the output image memory 16 is performed (S36). Subsequently, the standard position coordinate data 14b and the kana / kanji position coordinate data 14c in the arrangement position memory 14 are updated (S37). Above,
The character image placement process for "I" is completed.

【0053】次に、「は」が入力され、同様にS31及
びS32の処理が行われ、S33において、「は」は仮
名であるのでYESと判断され、S34に分岐し、ベー
スライン修正処理(S34)と位置座標データ修正処理
(S35)を行い、次いで、S36及びS37の処理を
行い、「は」の処理を終える。更に、引き続き、
「人」、「間」、「で」と順次入力され、これらは、仮
名あるいは漢字であるのでS33においてYESと判断
し、ベースライン修正処理(S34)及び位置座標デー
タ修正処理(S35)を行い、S36及びS37の処理
を行って、処理を終える。
Next, "ha" is input, and the processes of S31 and S32 are performed in the same manner. Since "ha" is a kana in S33, it is determined to be YES, and the process branches to S34 to perform the baseline correction process ( S34) and the position coordinate data correction process (S35) are performed, then the processes of S36 and S37 are performed, and the process of "ha" ends. Furthermore,
“Person”, “between”, and “de” are sequentially input. Since these are kana or kanji, YES is determined in S33, and baseline correction processing (S34) and position coordinate data correction processing (S35) are performed. , S36 and S37 are performed, and the process ends.

【0054】最後に、「y]が入力されると、「y]は
仮名あるいは漢字でないので、S33においてNOと判
断し、ベースライン修正処理と位置座標データ修正処理
は行わずに、S36の出力イメージにキャラクタイメー
ジを配置する処理を行い、S37の位置座標データ更新
処理を行って、「y]のキャラクタイメージ配置処理を
終える。
Finally, when "y" is input, since "y" is not a kana or kanji character, "NO" is determined in S33, the baseline correction process and the position coordinate data correction process are not performed, and the output of S36 is output. The character image is placed on the image, the position coordinate data updating process of S37 is performed, and the character image placement process of "y" is finished.

【0055】以上の一連の処理の結果、図5(b)の出
力結果が得られる。尚、直線52は、配置位置メモリ1
4に記憶した仮名漢字位置座標データ14cのy座標を
示した線、また、直線53は、標準位置座標データ14
bのy座標を示した線である。
As a result of the above series of processing, the output result of FIG. 5B is obtained. The straight line 52 is the arrangement position memory 1
The line indicating the y-coordinate of the kana / kanji position coordinate data 14c stored in No. 4 and the straight line 53 are the standard position coordinate data 14
It is the line which showed the y coordinate of b.

【0056】この様に、本文書出力装置のキャラクタイ
メージ配置処理によれば、仮名漢字は中心で整列され、
また、英文字は標準位置合わせの線上に整列されている
出力結果が得られる。
As described above, according to the character image arranging process of the document output device, the kana and kanji are aligned at the center,
Also, the output results are obtained in which the English characters are aligned on the standard alignment line.

【0057】尚、本発明の記憶手段は、配置位置メモリ
14の仮名漢字位置座標データ14cを記憶する領域に
相当し、算出手段の処理は、図3のフローチャートのS
34の処理に相当し、また、配置手段の処理は、S35
〜S36の処理に相当する。判定手段の処理は、図3の
フローチャートのS33の処理に相当する。
The storage means of the present invention corresponds to the area for storing the kana / kanji position coordinate data 14c of the arrangement position memory 14, and the processing of the calculation means is S in the flowchart of FIG.
The processing of the arranging means is S35.
Corresponds to the processing of S36. The process of the determination means corresponds to the process of S33 in the flowchart of FIG.

【0058】ここで、上述したS34のベースラインの
修正の処理は、形状の中点ではなく、6:4に分ける点
とするなど、キャラクタイメージを縦方向に所定割合に
分ける点であれば、どのような位置でも良い。また、S
34の処理は、縦書き用の文字送りデータの始点と終点
の中点をベースラインの修正値として用いることもでき
る。つまり、フォントメモリ13からこのキャラクタの
縦書き用文字送りデータを読み出し、その始点と終点の
中点を算出することで行うことができる。また、これも
形状の座標値をパラメータとして処理した場合と同様
に、始点と終点の中点のみならず、6:4に分ける点と
するなど、始点と終点を所定割合に分ける点であれば、
どのような位置でも良い。
Here, in the above-described processing of correcting the baseline in S34, if the character image is divided into a predetermined ratio in the vertical direction, such as dividing into 6: 4 instead of the midpoint of the shape, Any position is acceptable. Also, S
In the processing of 34, the midpoint between the start point and the end point of the vertical writing character feed data can be used as a baseline correction value. That is, this can be done by reading the vertical writing character feed data of this character from the font memory 13 and calculating the midpoint between the start point and the end point. Also, as in the case where the coordinate values of the shape are used as parameters, not only the midpoint of the start point and the end point but also the point divided into 6: 4, if the start point and the end point are divided at a predetermined ratio ,
Any position is acceptable.

【0059】また、処理する文書に英文字が含まれない
場合には、図3のフローチャートのS33における、仮
名・漢字の判定処理を無くし、常にS34〜S35の処
理を実行する様に変更することもできる。
If the document to be processed does not include English characters, the kana / kanji determination process in S33 of the flowchart of FIG. 3 should be eliminated and the process of S34 to S35 should be executed at all times. You can also

【0060】更に、本実施例においては、キャラクタ毎
にベースライン位置の算出を行ったが、日本語の書体の
ように、キャラクタイメージの最大値と最小値がキャラ
クタ毎にほとんど変わらないものもあるので、書体が変
わる毎に一度だけ、予め定められたキャラクタを基にし
てベースライン位置を算出し、その算出値を記憶してお
き、その書体の特定キャラクタの出力を行う時にその記
憶された値を使用するようにしてもよい。
Furthermore, in this embodiment, the baseline position is calculated for each character, but there are some fonts, such as Japanese typefaces, in which the maximum and minimum values of the character image are almost the same for each character. Therefore, every time the typeface changes, the baseline position is calculated based on a predetermined character, the calculated value is stored, and the stored value is output when the specific character of the typeface is output. May be used.

【0061】また、本実施例の、形状データ19aは、
ビットマップの形式で記憶し、変形等の処理を施さずに
直接用いたが、形状データをアウトライン形式等のスケ
ーラブルフォントの形式で記憶し、キャラクタジェネレ
ータによりこれらのデータを所望の形状に変換したキャ
ラクタイメージを生成し、また、キャラクタジェネレー
タで施された処理に応じた文字送りデータ、ベースライ
ンデータを用いて上述した処理を行うこともできる。
尚、キャラクタジェネレータによる形状データのキャラ
クタイメージへの変換処理は、本発明の主たる部分では
なく、また、既に実用化されている公知の技術であるた
め、説明は省略する。
Further, the shape data 19a of this embodiment is
Although it was stored in a bitmap format and used directly without processing such as deformation, shape data is stored in a scalable font format such as outline format, and a character generator converts these data into the desired shape. It is also possible to generate an image and perform the above-described processing by using character feed data and baseline data according to the processing performed by the character generator.
The conversion process of the shape data into the character image by the character generator is not a main part of the present invention and is a well-known technique that has already been put into practical use, and therefore the description thereof will be omitted.

【0062】本実施例では、仮名漢字位置座標データ1
4cは、x、y座標値で記憶したが、文字送り方向の座
標値は標準位置座標データと同一であるため、文字送り
方向と直交する方向の座標値のみで記憶することも可能
である。また、記憶する座標値は、標準位置座標データ
からの相対量で記憶しても良い。相対量で記憶した場
合、S35の処理はワーキングメモリ12内の位置座標
メモリ12dの内容を、配置位置メモリ14の標準位置
座標データ14bに仮名漢字位置座標データ14cを加
算したものに書き換える処理になる。
In this embodiment, kana and kanji position coordinate data 1
4c is stored as x and y coordinate values, but since the coordinate value in the character feed direction is the same as the standard position coordinate data, it is possible to store only the coordinate value in the direction orthogonal to the character feed direction. Further, the stored coordinate value may be stored as a relative amount from the standard position coordinate data. When the relative amount is stored, the process of S35 is a process of rewriting the contents of the position coordinate memory 12d in the working memory 12 to the standard position coordinate data 14b of the arrangement position memory 14 plus the kana / kanji position coordinate data 14c. .

【0063】また、位置座標データは、標準位置座標デ
ータ14bと仮名漢字位置座標データ14cの2つにと
したが、2つに限らず、さらに多くの数の位置座標デー
タを持つ構成にも容易に変更できる。このように複数の
位置座標データを持つことで、異なった書体の組合せ
や、より細分化された特定キャラクタ群に対応させて適
宜選択することにより、さらにきめ細かい補正を行うこ
とも可能である。
Further, although the position coordinate data is two, that is, the standard position coordinate data 14b and the kana / kanji position coordinate data 14c, it is not limited to two and can be easily constructed to have a larger number of position coordinate data. Can be changed to By having a plurality of position coordinate data in this way, it is possible to perform finer correction by appropriately selecting a combination of different typefaces or corresponding to a more subdivided specific character group.

【0064】更に、使用する書体の組合せや、キャラク
タのサイズ等により複数の特定キャラクタコードリスト
をメモリに格納しておき、文書を作成する時、どの書体
が使用されているか等の状況に応じて、その中から適当
なものを選択使用することも可能である。
Further, a plurality of specific character code lists are stored in the memory according to the combination of typefaces used, the size of characters, etc., and when creating a document, depending on the situation such as which typeface is used. It is also possible to select and use an appropriate one from them.

【0065】例えば、書体aと書体bと書体cが使用さ
れる文書を作成する際、キャラクタサイズが所定値より
大きくなると、書体cの特定のキャラクタのキャラクタ
配置のバランスの悪さが目立つようになることと、書体
bの特定のキャラクタも書体aの中ではバランスが悪く
なることが知られている場合、これらのバランスを補正
できるように、複数の位置座標データa,b,cと複数
の特定キャラクタコードリストb,cを予めメモリに格
納しておく。そして、実際に文書を作成するためにキャ
ラクタが入力されると次のようにキャラクタを配置す
る。
For example, when a document in which the typefaces a, b and c are used, if the character size becomes larger than a predetermined value, the imbalance of the character arrangement of the specific characters of the typeface c becomes conspicuous. In addition, when it is known that the particular character of the typeface b also becomes unbalanced in the typeface a, a plurality of position coordinate data a, b, c and a plurality of specific types are specified so that these balances can be corrected. The character code lists b and c are stored in the memory in advance. Then, when a character is input to actually create a document, the character is arranged as follows.

【0066】まず、出力するキャラクタがどの書体のも
のかを書体コードを基に判別し、書体bであった場合
は、メモリに格納されている複数の特定キャラクタコー
ドリストの中から、この書体bに対応した特定キャラク
タコードリストbを選択する。出力するキャラクタがこ
の特定キャラクタコードリストbに含まれているか否か
を判定し、含まれている場合には、複数の位置座標デー
タから対応する位置座標データbを選択し、前述のベー
スラインの修正の処理等を行って、前述した処理と同様
な配置処理を行う。
First, it is determined which type of character the output character is based on the typeface code, and if it is typeface b, this typeface b is selected from a plurality of specific character code lists stored in the memory. The specific character code list b corresponding to is selected. It is determined whether or not the character to be output is included in this specific character code list b, and if it is included, the corresponding position coordinate data b is selected from a plurality of position coordinate data and the above-mentioned baseline A correction process or the like is performed, and the same placement process as the above-described process is performed.

【0067】また、出力するキャラクタが書体cであっ
た場合は、さらにそのキャラクタサイズを確認し、所定
値よりも大きい場合は、複数の特定キャラクタコードリ
ストの中から特定キャラクタコードリストcを選択し、
出力するキャラクタがこの特定キャラクタコードリスト
cに含まれているか否かを判定し、含まれている場合に
は、複数の位置座標データから対応する位置座標データ
cを選択し、ベースラインの修正の処理等を行って配置
処理を行う。書体aのキャラクタや書体b、書体cで特
定キャラクタコードリストb,cに含まれていないキャ
ラクタであった場合は、複数の位置座標データの中の位
置座標データaに基づいて配置処理を行う。
If the character to be output is the typeface c, the character size is further checked. If it is larger than the predetermined value, the specific character code list c is selected from a plurality of specific character code lists. ,
It is determined whether or not the character to be output is included in the specific character code list c, and if it is included, the corresponding position coordinate data c is selected from a plurality of position coordinate data and the baseline correction is performed. Arrangement processing is performed by performing processing and the like. When the character is a character of typeface a or a character of typeface b or typec that is not included in the specific character code lists b and c, the placement processing is performed based on the position coordinate data a of the plurality of position coordinate data.

【0068】これにより、より細やかなキャラクタの特
定が可能となり、より美しい配置が可能となる。
As a result, it is possible to specify the character more finely and to arrange the character more beautifully.

【0069】更に、本実施例では、改行幅データの20
%を標準位置座標データ14bに加えたものを仮名漢字
位置座標データ14cとしていたが、改行幅によってそ
のパーセントを変えたり、キャラクタサイズによって変
化させることも可能である。例えば、改行幅がキャラク
タサイズの2倍以上の時は、改行幅データの10%を、
2倍未満の時は、20%を標準位置座標データ14bに
加えたものを仮名漢字位置座標データ14cとするとい
うような処理を行ってもよい。これにより、キャラクタ
の配置位置が指定された位置より不自然に上下すること
を防ぐことができる。
Further, in this embodiment, the line feed width data of 20 is used.
Although the% added to the standard position coordinate data 14b is used as the kana / kanji position coordinate data 14c, the percentage may be changed according to the line feed width or may be changed according to the character size. For example, if the line feed width is more than twice the character size, 10% of the line feed width data
When it is less than twice, processing such as adding 20% to the standard position coordinate data 14b to form the kana / kanji position coordinate data 14c may be performed. As a result, it is possible to prevent the character placement position from unnaturally moving up and down from the designated position.

【0070】また、本実施例では、標準位置座標データ
14bと仮名漢字位置座標データ14cの相対的な位置
関係を固定値で処理する方式を用いたが、これに限ら
ず、入力部15より、標準位置座標データ14bと仮名
漢字位置座標データ14cの値を得、配置位置メモリ1
4内のデータを書き換えることでどのような値にでも設
定可能である。このように、書き換えができると、一度
表示あるいは印字された文書をチェックして容易に修正
を加えたり、使用者毎に自由な設定ができるようにな
る。その他、どのような方法でも、キャラクタを配置す
る位置が特定できる情報であればどのような形態でも良
い。
In this embodiment, a method of processing the relative positional relationship between the standard position coordinate data 14b and the kana / kanji position coordinate data 14c with a fixed value is used. The values of the standard position coordinate data 14b and the kana / kanji position coordinate data 14c are obtained, and the arrangement position memory 1
It can be set to any value by rewriting the data in 4. As described above, if the data can be rewritten, it becomes possible to check the document once displayed or printed and to easily make corrections, or to freely set for each user. In addition, any form may be used as long as the information can identify the position where the character is arranged.

【0071】更に、本実施例では、日本語の仮名および
漢字に本発明を適用した例を示したが、これに限らず、
仮名漢字の他、「*」や「#」などの記号や、その他の
キャラクタを含む集合を特定キャラクタとしても良い。
また、特定キャラクタと特定キャラクタ以外のキャラク
タの割合によっては、特定キャラクタコードリスト18
に特定キャラクタ以外のキャラクタコードを記録した方
が、S33における判断が速やかに行われる場合も考え
られる。その場合、S33の判定は特定キャラクタコー
ドリスト18に登録されていない時、S34の処理に移
るように変更することで対応できる。
Further, in the present embodiment, an example in which the present invention is applied to Japanese Kana and Kanji has been shown, but the present invention is not limited to this.
In addition to kana and kanji, symbols such as “*” and “#” and a set including other characters may be used as the specific character.
Depending on the ratio of the specific character and the characters other than the specific character, the specific character code list 18
It may be considered that the character code other than the specific character is recorded in step S33 so that the determination in step S33 can be performed quickly. In that case, the determination in S33 can be dealt with by changing the process to S34 when it is not registered in the specific character code list 18.

【0072】更にまた、特定キャラクタコードリストを
読み書きができるメモリ上に持ち、必要に応じて、入力
部15から付加或いは削除を示す制御コードと付加或い
は削除したいキャラクタコードを入力したりすることに
より、特定キャラクタコードを付加したり、削除できる
ようにしてもよい。その場合、使用している書体の中の
一部のキャラクタを使用者が自分のデザインしたキャラ
クタに置き換えて使用するような場合でも、そのキャラ
クタを特定キャラクタにしたり、特定キャラクタでなく
したりする事ができ、美しい配置が可能となる。
Furthermore, by holding a specific character code list on a readable / writable memory and inputting a control code indicating addition or deletion and a character code to be added or deleted from the input unit 15 as necessary, A specific character code may be added or deleted. In that case, even when the user replaces some of the characters in the typeface with a character designed by him / herself, it is possible to make that character a specific character or not a specific character. It is possible and a beautiful arrangement is possible.

【0073】また、判定には、予め記憶した仮名あるい
は漢字を表すキャラクタコードのリストを照合する方式
をとったが、これに限らず、キャラクタデータ毎に対応
する識別子を予め記憶しておき(例えば、キャラクタコ
ードと識別子の組のテーブル用意しておく)、S33に
おいて、キャラクタコードに対応する識別子を読み出
し、その識別子が漢字等の特定のキャラクタであること
を示す場合は、S34、S35の処理を行っても良い。
あるいは、キャラクタコードの範囲によって特定キャラ
クタを指定することもできる。例えば、キャラクタコー
ドがシフトJISコードの場合、仮名あるいは漢字のコ
ード範囲は0x829Fから0xEAA4であるため、
その範囲内のコードのものは、S33においてYESと
判定する。その他、どのような方法でも、本発明を適用
すべきキャラクタが特定できるものであれば良い。
Further, in the determination, a method of collating a list of previously stored kana or kanji character codes is used, but the present invention is not limited to this, and an identifier corresponding to each character data is stored in advance (for example, , A table of pairs of character codes and identifiers is prepared), and in S33, when the identifier corresponding to the character code is read and it is shown that the identifier is a specific character such as Chinese character, the processes of S34 and S35 are performed. You can go.
Alternatively, the specific character can be designated by the range of the character code. For example, when the character code is a shift JIS code, the code range of kana or kanji is 0x829F to 0xEAA4.
If the code is within the range, YES is determined in S33. Any other method may be used as long as the character to which the present invention is applied can be specified.

【0074】本実施例の装置は、縦書きにも対応してい
るが、横書きのみが可能な装置でも良く、また、その際
には、フォントメモリ13中のキャラクタデータの縦書
きに関する情報は、配置一メモリ14内の方向データ1
4aは無くても良い。但し、縦書きに関する情報が無い
キャラクタデータを用いてS34の処理を実行する場合
は、後で変更例を示した縦書き用の文字送りデータを用
いた修正点の算出処理はできないため、形状の中点の算
出処理により行う。
The apparatus of the present embodiment is compatible with vertical writing, but may be an apparatus capable of only horizontal writing. In that case, the information on vertical writing of character data in the font memory 13 is: Direction data 1 in layout memory 14
4a may be omitted. However, when the process of S34 is executed using the character data that does not have the information related to the vertical writing, the correction point calculation process using the vertical writing character feed data, which is a modification example, cannot be performed. This is performed by the midpoint calculation process.

【0075】その他にも本実施例は、本発明の趣旨を逸
脱しない範囲で種々の変更が可能である。
Besides, the present embodiment can be variously modified without departing from the spirit of the present invention.

【0076】[0076]

【発明の効果】以上説明したことから明かなように、請
求項1の発明の文書出力装置によれば、キャラクタイメ
ージデータの縦方向における配置基準となる座標位置を
キャラクタデータ中の形状データに基づいて同一の算出
方法で算出し、その座標位置を出力イメージデータ上の
縦方向の基準位置に配置するので、キャラクタデータ中
の配置データのベースラインデータで示されるベースラ
インと、キャラクタイメージのデザイン上の中心との差
が異なる複数の書体のキャラクタを混在させた文書であ
っても、キャラクタを美しく整列させた出力結果を得る
ことができる。
As is apparent from the above description, according to the document output device of the first aspect of the invention, the coordinate position serving as the vertical arrangement reference of the character image data is based on the shape data in the character data. Are calculated by the same calculation method, and the coordinate position is placed at the vertical reference position on the output image data, so the baseline indicated by the baseline data of the placement data in the character data and the design of the character image Even in a document in which a plurality of typeface characters having different differences from the center of are mixed, the output result in which the characters are beautifully arranged can be obtained.

【0077】また、請求項2の発明の文書出力装置によ
れば、キャラクタが予め定めた特定キャラクタである場
合だけ配置基準となる座標位置を算出し、特定キャラク
タのキャラクタイメージデータが配置される出力イメー
ジデータ上の縦方向の基準位置に配置するので、特定キ
ャラクタに対してのみ特別な配置処理を行うように限定
でき、ベースラインに対する相対的な位置が統一されて
いるキャラクタと統一されていないキャラクタを混在さ
せた文書であっても、キャラクタを美しく整列させた出
力結果を得ることができる。
According to the document output device of the second aspect of the present invention, the coordinate position serving as the placement reference is calculated only when the character is a predetermined specific character, and the character image data of the specific character is output. Since it is placed at the reference position in the vertical direction on the image data, it can be limited so that special placement processing is performed only for specific characters. Characters whose relative positions with respect to the baseline are unified and those which are not unified. Even in a document in which characters are mixed, an output result in which characters are beautifully arranged can be obtained.

【0078】さらに、請求項3の発明の文書出力装置に
よれば、第2の記憶手段に複数の基準位置が記憶されて
おり、使用する書体、キャラクタサイズ、書体とキャラ
クタサイズの組合せ或いは行送り幅に基づいてその複数
の基準位置から1つを選択して適宜処理を行うので、書
体、キャラクタサイズ、書体とキャラクタサイズの組合
せ或いは行送り幅に応じたより細やかなキャラクタの配
置を行うことができる。
Further, according to the document output apparatus of the third aspect of the invention, the plurality of reference positions are stored in the second storage means, and the typeface to be used, the character size, the combination of the typeface and the character size, or line feed. Since one is selected from the plurality of reference positions based on the width and appropriate processing is performed, more detailed character placement can be performed according to the typeface, character size, combination of typeface and character size, or line feed width. .

【0079】さらにまた、請求項4の発明の文書出力装
置によれば、キャラクタを特定する複数の特定キャラク
タ群を記憶し、その複数の特定キャラクタ群の中から使
用する書体或いは書体とキャラクタサイズの組合せに基
づいて1つの特定キャラクタ群を選択するので、複数書
体の組合せやそのキャラクタサイズに応じて、より細か
に特定された特定キャラクタ毎に上述したような配置処
理を行うことができ、より細やかなキャラクタの配置を
行うことができる。
Furthermore, according to the document output apparatus of the present invention, a plurality of specific character groups for specifying a character are stored, and the typeface or typeface and character size to be used are selected from the plurality of specific character groups. Since one specific character group is selected based on the combination, it is possible to perform the above-described arrangement processing for each of the specific characters that are more finely specified according to the combination of plural typefaces and the character size thereof. It is possible to arrange various characters.

【0080】また、請求項5の発明の文書出力装置によ
れば、第3の記憶手段に特定キャラクタを複数記憶し、
設定手段により第3の記憶手段に対して特定キャラクタ
を登録或いは削除を行うので、所望のキャラクタを特定
キャラクタに付加或いは削除でき、装置の使用者の好み
をキャラクタの配置に反映することができる。
According to the document output apparatus of the present invention, a plurality of specific characters are stored in the third storage means,
Since the specific character is registered or deleted in the third storage means by the setting means, a desired character can be added to or deleted from the specific character, and the preference of the user of the device can be reflected in the character arrangement.

【0081】さらに、請求項6の発明の文書出力装置に
よれば、算出手段はキャラクタイメージデータの最大値
及び最小値の所定割合の座標位置を求めので、キャラク
タデータに特別な情報を付加することなく、適切なキャ
ラクタの基準位置を算出することができる。
Further, according to the document output apparatus of the present invention, since the calculating means obtains the coordinate position of a predetermined ratio of the maximum value and the minimum value of the character image data, special information is added to the character data. Instead, an appropriate character reference position can be calculated.

【0082】また、請求項7の発明の文書出力装置によ
れば、特定キャラクタを仮名と漢字とすることで、和文
欧文が混在する文書であっても、キャラクタを美しく整
列させた出力結果を得ることができる。
According to the document output apparatus of the invention of claim 7, by using the kana and kanji as the specific characters, the output result in which the characters are beautifully arranged is obtained even in a document in which Japanese and Western texts are mixed. be able to.

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

【図1】本発明を具体化した実施例のブロック図であ
る。
FIG. 1 is a block diagram of an embodiment embodying the present invention.

【図2】上記実施例のキャラクタデータの概念図であ
る。
FIG. 2 is a conceptual diagram of character data of the above embodiment.

【図3】上記実施例のキャラクタイメージ配置処理のフ
ローチャートである。
FIG. 3 is a flowchart of a character image placement process of the above embodiment.

【図4】実施例中で例示する書体A及びBのベースライ
ンの位置を示す図である。
FIG. 4 is a diagram showing the positions of the baselines of typefaces A and B exemplified in the examples.

【図5】(a)は従来技術、(b)は実施例による出力
結果を示す図である。
FIG. 5A is a diagram showing an output result according to a conventional technique, and FIG. 5B is a diagram showing an output result according to an embodiment.

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

10 CPU 11 プログラムメモリ 12 ワーキングメモリ 13 フォントメモリ 14 配置位置メモリ 18 特定キャラクタコードリスト 10 CPU 11 Program Memory 12 Working Memory 13 Font Memory 14 Arrangement Position Memory 18 Specific Character Code List

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/32 610 9288−5L G06F 15/20 563Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/32 610 9288-5L G06F 15/20 563Z

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 形状に関する形状データと配置位置に関
する配置データとを含むキャラクタデータ中の形状デー
タからキャラクタイメージデータを発生し、配置データ
中のベースラインデータを基に指定された座標位置に横
方向に配置することで、横書き文書の出力装置における
画素のオン/オフの情報である出力イメージデータを生
成する文書出力装置において、 キャラクタイメージデータが配置される出力イメージデ
ータ上の縦方向の基準位置に関するデータを記憶する記
憶手段と、 キャラクタイメージデータの縦方向における配置基準と
なる座標位置を前記キャラクタデータ中の形状データに
基づいて算出する算出手段と、 前記算出手段で得られた座標位置が、前記記憶手段に記
憶されたデータで示される基準位置に一致するようにキ
ャラクタイメージデータを出力イメージデータ上に配置
する配置手段とを備えることを特徴とする文書出力装
置。
1. Character image data is generated from shape data in character data including shape data regarding a shape and arrangement data regarding an arrangement position, and the character image data is generated in a lateral direction at a coordinate position designated based on baseline data in the arrangement data. In the document output device that generates the output image data that is the ON / OFF information of the pixel in the output device of the horizontal writing document by arranging the Storage means for storing the data; calculation means for calculating a coordinate position serving as an arrangement reference in the vertical direction of the character image data based on the shape data in the character data; and a coordinate position obtained by the calculation means, Key to match the reference position indicated by the data stored in the storage means. A document output device comprising: an arrangement unit that arranges character image data on the output image data.
【請求項2】 形状に関する形状データと配置位置に関
する配置データとを含むキャラクタデータ中の形状デー
タからキャラクタイメージデータを発生し、配置データ
中のベースラインデータを基に指定された座標位置に横
方向に配置することで、横書き文書の出力装置における
画素のオン/オフの情報である出力イメージデータを生
成する文書出力装置において、 キャラクタが予め定めた特定キャラクタ群に含まれる特
定キャラクタであるか否かを判定する判定手段と、 特定キャラクタのキャラクタイメージデータが配置され
る出力イメージデータ上の縦方向の基準位置に関するデ
ータを記憶する記憶手段と、 キャラクタイメージデータの縦方向における配置基準と
なる座標位置を前記キャラクタデータ中の形状データに
基づいて算出する算出手段と、 キャラクタが前記判定手段で特定キャラクタであると判
定された場合に、前記算出手段で得られた座標位置が前
記記憶手段に記憶されたデータで示される基準位置に一
致するようにキャラクタイメージデータを出力イメージ
データ上に配置する配置手段とを備えることを特徴とす
る文書出力装置。
2. The character image data is generated from the shape data in the character data including the shape data regarding the shape and the arrangement data regarding the arrangement position, and the character image data is generated in the lateral direction at the coordinate position designated based on the baseline data in the arrangement data. If the character is a specific character included in a predetermined specific character group in the document output device that generates output image data that is the ON / OFF information of the pixel in the horizontal writing document output device, Determining means, a storage means for storing data relating to a vertical reference position on the output image data in which the character image data of the specific character is placed, and a coordinate position serving as a vertical placement reference of the character image data. Calculated based on the shape data in the character data When the determining means determines that the character is the specific character, the character so that the coordinate position obtained by the calculating means matches the reference position indicated by the data stored in the storage means. A document output device, comprising: arranging means for arranging image data on the output image data.
【請求項3】 形状に関する形状データと配置位置に関
する配置データとを含むキャラクタデータ中の形状デー
タからキャラクタイメージデータを発生し、配置データ
中のベースラインデータを基に指定された座標位置に横
方向に配置することで、横書き文書の出力装置における
画素のオン/オフの情報である出力イメージデータを生
成する文書出力装置において、 キャラクタが予め定めた特定キャラクタ群に含まれる特
定キャラクタであるか否かを判定する判定手段と、 前記特定キャラクタのキャラクタイメージデータが配置
される出力イメージデータ上の縦方向の基準位置に関す
るデータを複数記憶する記憶手段と、 前記記憶手段に記憶される複数の基準位置に関するデー
タの中から使用する書体、キャラクタサイズ、書体とキ
ャラクタサイズの組合せ或いは行送り幅に基づいて1つ
を選択する選択手段と、 キャラクタイメージデータの縦方向における配置基準と
なる座標位置を前記キャラクタデータ中の形状データに
基づいて算出する算出手段と、 キャラクタが前記判定手段で特定キャラクタであると判
定された場合に、前記算出手段で得られた座標位置を、
前記選択手段で選択された前記記憶手段に記憶されたデ
ータで示される基準位置に一致するようにキャラクタイ
メージデータを出力イメージデータ上に配置する配置手
段とを備えることを特徴とする文書出力装置。
3. The character image data is generated from the shape data in the character data including the shape data regarding the shape and the arrangement data regarding the arrangement position, and the character image data is generated in the lateral direction at the coordinate position designated based on the baseline data in the arrangement data. If the character is a specific character included in a predetermined specific character group in the document output device that generates output image data that is the ON / OFF information of the pixel in the horizontal writing document output device, Determination means, a storage means for storing a plurality of data relating to a vertical reference position on output image data in which the character image data of the specific character is arranged, and a plurality of reference positions stored in the storage means Typeface used from data, character size, typeface and character A selecting means for selecting one based on a combination of sizes or a line feed width; a calculating means for calculating a coordinate position serving as an arrangement reference in the vertical direction of the character image data based on the shape data in the character data; Is determined to be a specific character by the determination means, the coordinate position obtained by the calculation means,
A document output device, comprising: arranging means for arranging the character image data on the output image data so as to match the reference position indicated by the data stored in the storage means selected by the selecting means.
【請求項4】 前記キャラクタを特定する複数の特定キ
ャラクタ群を記憶する第2の記憶手段と、 前記第2の記憶手段の中から書体或いは書体とキャラク
タサイズの組合せに基づいて1つの特定キャラクタ群を
選択する第2の選択手段とを備えることを特徴とする請
求項2及び請求項3に記載の文書出力装置。
4. A second storage means for storing a plurality of specific character groups for specifying the character, and one specific character group based on a typeface or a combination of the typeface and the character size from the second storage means. The document output device according to claim 2 or 3, further comprising a second selection unit that selects.
【請求項5】 前記特定キャラクタを複数記憶する第3
の記憶手段と、 前記第3の記憶手段に対して特定キャラクタを登録或い
は削除する設定手段とを備え、 前記判定手段は、キャラクタが前記第3の記憶手段に記
録されている特定キャラクタであるか否かを判定するこ
とを特徴とする請求項2及び請求項3に記載の文書出力
装置。
5. A third memory for storing a plurality of the specific characters
Storage means and setting means for registering or deleting a specific character with respect to the third storage means, wherein the determination means is the specific character whose character is recorded in the third storage means. The document output device according to claim 2 or 3, wherein it is determined whether or not the document is output.
【請求項6】 前記算出手段が、前記形状データから得
られるキャラクタイメージデータの最大値及び最小値の
所定割合の位置を求めることを特徴とする請求項1、請
求項2或いは請求項3に記載の文書出力装置。
6. The method according to claim 1, wherein the calculating means obtains a position of a predetermined ratio of the maximum value and the minimum value of the character image data obtained from the shape data. Document output device.
【請求項7】 前記特定キャラクタを仮名と漢字とする
ことを特徴とする請求項2或いは請求項3に記載の文書
出力装置。
7. The document output device according to claim 2, wherein the specific characters are kana and kanji.
JP11564395A 1995-05-15 1995-05-15 Document output device Expired - Fee Related JP3339760B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11564395A JP3339760B2 (en) 1995-05-15 1995-05-15 Document output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11564395A JP3339760B2 (en) 1995-05-15 1995-05-15 Document output device

Publications (2)

Publication Number Publication Date
JPH08314655A true JPH08314655A (en) 1996-11-29
JP3339760B2 JP3339760B2 (en) 2002-10-28

Family

ID=14667727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11564395A Expired - Fee Related JP3339760B2 (en) 1995-05-15 1995-05-15 Document output device

Country Status (1)

Country Link
JP (1) JP3339760B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6928611B2 (en) 2000-09-25 2005-08-09 Adobe Systems Incorporated Setting text composition spacing amount
US6993709B1 (en) 2000-02-12 2006-01-31 Adobe Systems Incorporated Smart corner move snapping
US7039862B2 (en) 2002-05-10 2006-05-02 Adobe Systems Incorporated Text spacing adjustment
US7071941B2 (en) 2000-02-12 2006-07-04 Adobe Systems Incorporated Method for calculating CJK emboxes in fonts
US7123261B2 (en) 2002-12-26 2006-10-17 Adobe Systems Incorporated Coordinating grid tracking and mojikumi spacing of Japanese text
US7167274B2 (en) 2001-09-28 2007-01-23 Adobe Systems Incorporated Line leading from an arbitrary point
US7168037B2 (en) 2000-09-25 2007-01-23 Adobe Systems Incorporated Text composition spacing amount setting device with icon indicators
US7296227B2 (en) 2001-02-12 2007-11-13 Adobe Systems Incorporated Determining line leading in accordance with traditional Japanese practices
US7305617B2 (en) 2000-02-12 2007-12-04 Adobe Systems Incorporated Method for aligning text to baseline grids and to CJK character grids
US7320104B2 (en) 2000-02-12 2008-01-15 Adobe Systems Incorporated Text grid creation tools
US7594171B2 (en) 2004-10-01 2009-09-22 Adobe Systems Incorporated Rule-based text layout

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993709B1 (en) 2000-02-12 2006-01-31 Adobe Systems Incorporated Smart corner move snapping
US7071941B2 (en) 2000-02-12 2006-07-04 Adobe Systems Incorporated Method for calculating CJK emboxes in fonts
US7305617B2 (en) 2000-02-12 2007-12-04 Adobe Systems Incorporated Method for aligning text to baseline grids and to CJK character grids
US7320104B2 (en) 2000-02-12 2008-01-15 Adobe Systems Incorporated Text grid creation tools
US6928611B2 (en) 2000-09-25 2005-08-09 Adobe Systems Incorporated Setting text composition spacing amount
US7168037B2 (en) 2000-09-25 2007-01-23 Adobe Systems Incorporated Text composition spacing amount setting device with icon indicators
US7296227B2 (en) 2001-02-12 2007-11-13 Adobe Systems Incorporated Determining line leading in accordance with traditional Japanese practices
US7167274B2 (en) 2001-09-28 2007-01-23 Adobe Systems Incorporated Line leading from an arbitrary point
US7039862B2 (en) 2002-05-10 2006-05-02 Adobe Systems Incorporated Text spacing adjustment
US7123261B2 (en) 2002-12-26 2006-10-17 Adobe Systems Incorporated Coordinating grid tracking and mojikumi spacing of Japanese text
US7594171B2 (en) 2004-10-01 2009-09-22 Adobe Systems Incorporated Rule-based text layout
US7783969B1 (en) 2004-10-01 2010-08-24 Adobe Systems Incorporated Rule-based text layout

Also Published As

Publication number Publication date
JP3339760B2 (en) 2002-10-28

Similar Documents

Publication Publication Date Title
JP3021547B2 (en) Character pattern generation method
PT671037E (en) METHOD AND SYSTEM FOR CREATION SPECIFICATION AND GENERATION PARAMETRIC SOURCES
JP3339760B2 (en) Document output device
US5313573A (en) Apparatus for forming character patterns with line segments
US4953108A (en) Document processor having a document composition function
JPS6017487A (en) Automatic line pitch setting method for document generator
US5727224A (en) Document image processor for inserting and editing bracket symbols and associated text
JP3663865B2 (en) Form processing apparatus and storage medium
JP2773145B2 (en) Document shaping method and document processing device
JP3147613B2 (en) Character data management device and character output device provided with the same
JP2737845B2 (en) Character processing method and apparatus
JP3275628B2 (en) Layout correction device
JP2677442B2 (en) Method of capturing illustrations in editing machine and editing machine
JP3235404B2 (en) Layout correction device
JPH06250632A (en) Character editing device
JPH08315164A (en) Layout correcting device
JPH0225355A (en) Data output device
JPH09179542A (en) Output method and device for character image data
JPH096875A (en) Document preparation device
JPS6321171A (en) Document processor
JPH06250630A (en) Character output device
JPH08123971A (en) Handwritten character editing device
JPH07311790A (en) Graphic correcting device for catalog or the like
JPH09123381A (en) Composition style deciding and supporting method
JPH0589127A (en) Document preparing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees