JPH02141267A - Character row output apparatus - Google Patents

Character row output apparatus

Info

Publication number
JPH02141267A
JPH02141267A JP63295141A JP29514188A JPH02141267A JP H02141267 A JPH02141267 A JP H02141267A JP 63295141 A JP63295141 A JP 63295141A JP 29514188 A JP29514188 A JP 29514188A JP H02141267 A JPH02141267 A JP H02141267A
Authority
JP
Japan
Prior art keywords
character
code
storage means
characters
character code
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
JP63295141A
Other languages
Japanese (ja)
Inventor
Toshiyuki Nakamu
中務 利幸
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP63295141A priority Critical patent/JPH02141267A/en
Publication of JPH02141267A publication Critical patent/JPH02141267A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To control a character interval to a proper value without being aware of a combination of individual characters by possessing the left and right end positions of each of a plurality of sections of a character divided in a height direction as a part of font data and calculating a character position so that two characters are not overlapped at each section and brought into contact with each other at a certain section. CONSTITUTION:A sentence input means 11 inputs a sentence from a keyboard or an external memory device as a character row and stores the same in a character code row memory means 12 as a character code row. Next, a character position calculating means 13 inputs a character code by one character from the character code row memory means 12 and inputs the data relating to the outer shape of the character corresponding to said character code from a font data memory means 14 and calculates the character position thereof so that said character and a previously printed or displayed character are not overlapped with each other at each of a plurality of the sections of the character divided in the height direction thereof and brought into contact with each other at least one section. Next, a character visualizing means 15 obtains the shape of the corresponding character from the font data memory means 14 on the basis of the given character code and said character is printed or displayed so as to become the character position where a base point is given.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はワードプコセンサ、電子写植などの計算機を用
いた文字列印刷装置あるいは文字列表示装置における文
字列出力方式に関し、特に欧文などの文字幅が一定でな
い文字群を扱う文字列出力方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a character string output method in a character string printing device or character string display device using a computer such as a word pco sensor or an electronic typesetting device, and particularly relates to Concerning a string output method that handles a group of characters with non-uniform width.

〔従来の技術〕[Conventional technology]

従来、この種の文字列出力方式では、文字位置の計算は
文字の基点と文字幅とをもとに行われていた。
Conventionally, in this type of character string output method, calculation of character position was performed based on the base point of the character and the character width.

例えば、第4図に示すように、行の基準線41上に基点
44が位置するように文字B42が置かれると、次の文
字y43はその基点46が文字B42の基点44から文
字B42の文字幅45だけ離れた基準線41上の位置に
なるように置かれる。
For example, as shown in FIG. 4, when the character B42 is placed so that the base point 44 is located on the line reference line 41, the next character y43 will have its base point 46 move from the base point 44 of the character B42 to the character B42. It is placed at a position on the reference line 41 separated by a width 45.

また、LとT、AとVなどが続けて印刷あるいは表示さ
れる場合には、前記文字位置の計算方式だけでは文字間
隔が開き過ぎるので、文字間隔の補正が行われる。例え
ば、第5図に示すように、文字T52が行の基準線51
上に置かれ、次の文字A53との間で文字間隔の補正が
必要な場合には、文字A53の基点56は、文字T52
の基点54から文字T52の文字幅55をTとAとの文
字間隔の補正値57で補正した値だけ離れた位置に位置
づけられる。
Furthermore, when L and T, A and V, etc. are printed or displayed consecutively, the character spacing is too wide using only the above-mentioned character position calculation method, so the character spacing is corrected. For example, as shown in FIG.
If character spacing needs to be corrected between the character A53 and the next character A53, the base point 56 of the character A53 is placed above the character T52.
The character width 55 of the character T52 is corrected by the correction value 57 for the character spacing between T and A.

補正が必要な文字の組合せとその補正値とは、あらかじ
め全て定義されている。
All combinations of characters that require correction and their correction values are defined in advance.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の文字列出力方式では、基点と文字幅とに
基づいて文字位置の計算を行っていたので、文字間隔が
開き過ぎる文字の組合せの全てについて補正値をあらか
じめ用意しておかなければならず、またそのような文字
の組合せを検出して補正するために処理が複雑で遅くな
るという欠点がある。
In the conventional character string output method described above, character positions are calculated based on the base point and character width, so correction values must be prepared in advance for all character combinations where the character spacing is too large. Another disadvantage is that the processing required to detect and correct such character combinations is complicated and slow.

本発明の目的は、上述の点に鑑み、文字を高さ方向に複
数に分けた各区分での左端位置および右端位置をフォン
ト情報の一部として持ち、2つの文字が各区分で重なら
ずにかつ少なくとも1つの区分で接触するように文字位
置を計算することにより、個々の文字の組合せを意識す
ることなく文字間隔を適切な値に調整することができる
文字列出力方式を提供することにある。
In view of the above-mentioned points, it is an object of the present invention to have the left end position and right end position of each division into which a character is divided into a plurality of parts in the height direction as part of font information, so that two characters do not overlap in each division. To provide a character string output method that can adjust character spacing to an appropriate value without being aware of individual character combinations by calculating character positions so that they touch each other in at least one segment. be.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の文字列出力方式は、キーボードなどから文章を
文字列として入力する文章入力手段と、この文章入力手
段により入力された文章を文字コードの並びとしてメモ
リあるいはファイルに格納する文字コード列格納手段と
、文字のフォント情報が文字コードに対応づけられて格
納されていて文字の外形に関する情報として文字の高さ
方向に複数に分けた各区分について左端位置および右端
位置の値を持つフォント情報格納手段と、前記文字コー
ド列格納手段から文字コードを入力し文字コードに対応
する文字の外形に関する情報を前記フォント情報格納手
段から得て文字の高さ方向に複数に分けた各区分で文字
が先に印刷または表示した文字と重ならずにかつ少なく
とも1つの区分で接触するように文字位置を計算する文
字位置計算手段と、この文字位置計算手段に入力された
文字コードに対応する文字の形を前記フォント情報格納
手段から得て前記文字位置計算手段により計算された文
字位置に印刷あるいは表示する文字可視化手段とを有す
る。
The character string output method of the present invention includes a text input means for inputting a text as a character string from a keyboard or the like, and a character code string storage means for storing the text input by the text input means as a sequence of character codes in a memory or a file. and a font information storage means in which font information of characters is stored in association with character codes, and has values for the left end position and right end position for each division divided into a plurality of parts in the height direction of the character as information regarding the outer shape of the character. Then, input a character code from the character code string storage means, obtain information regarding the outer shape of the character corresponding to the character code from the font information storage means, and divide the character into a plurality of sections in the height direction. A character position calculation means for calculating a character position so as not to overlap with a printed or displayed character and in contact with the character in at least one section, and a character shape corresponding to a character code input to this character position calculation means. and character visualization means for printing or displaying character positions obtained from the font information storage means and calculated by the character position calculation means.

〔作用〕[Effect]

本発明の文字列出力方式では、文章入力手段がキーボー
ドなどから文章を文字列として入力し、文字コード列格
納手段が文章入力手段により入力された文章を文字コー
ドの並びとしてメモリあるいはファイルに格納し、フォ
ント情報格納手段が文字のフォント情報が文字コードに
対応づけられて格納されていて文字の外形に関する情報
として文字の高さ方向に複数に分けた各区分について左
端位置および右端位置の値を持ち、文字位置計算手段が
文字コード列格納手段から文字コードを人力し文字コー
ドに対応する文字の外形に関する情報をフォント情報格
納手段から得て文字の高さ方向に複数に分けた各区分で
文字が先に印刷または表示した文字と重ならずにかつ少
なくとも1つの区分で接触するように文字位置を計算し
、文字可視化手段が文字位置計算手段に入力された文字
コードに対応する文字の形をフォント情報格納手段から
得て文字位置計算手段により計算された文字位置に印刷
あるいは表示する。
In the character string output method of the present invention, the text input means inputs a text as a character string from a keyboard or the like, and the character code string storage means stores the text input by the text input means in a memory or file as a sequence of character codes. , the font information storage means stores the font information of the character in correspondence with the character code, and has the values of the left end position and right end position for each division divided into a plurality of parts in the height direction of the character as information regarding the outer shape of the character. , the character position calculation means manually inputs the character code from the character code string storage means, obtains information about the outer shape of the character corresponding to the character code from the font information storage means, and calculates the character in each of the plurality of divisions in the height direction of the character. The character position is calculated so that the character position does not overlap with the previously printed or displayed character and it contacts in at least one section, and the character visualization means converts the shape of the character corresponding to the character code input into the character position calculation means into a font. The information is printed or displayed at the character position obtained from the information storage means and calculated by the character position calculation means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例に係る文字列出力方式の構
成を示すブロック図である0本実施例の文字列出力方式
は、文章入力手段11と、文字コード列格納手段12と
、文字位置計算手段13と、フォント情報格納手段14
と、文字可視化手段15とから構成される装置 第2図は、フォント情報格納手段14に文字コードに対
応して格納される文字のフォント情報の一例を説明する
ための図である。本実施例の文字列出力方式では、文字
を文字の高さ方向に上層と下層との2つに区分しており
、1つの文字に関する情報は、すべて文字の基点21を
原点とする座標で表される。フォント情報に含まれる文
字の形は、文字の全体を含む文字定義領域22内の二値
画像データとして扱われる。また、フォント情報内には
、文字の外形に関する情報として、文字の上層の左端の
位置である上層左端位置23と、文字の上層の右端の位
置である上層右端位置24と、文字の下層の左端の位置
である下層左端位置25と、文字の下層の右端の位置で
ある下層右端位置26とが文字の形から一定距離の所に
定義されている。
FIG. 1 is a block diagram showing the configuration of a character string output method according to an embodiment of the present invention. The character string output method of this embodiment includes a text input means 11, a character code string storage means 12, Character position calculation means 13 and font information storage means 14
and a character visualization means 15. FIG. 2 is a diagram for explaining an example of character font information stored in the font information storage means 14 in correspondence with character codes. In the character string output method of this embodiment, characters are divided into two layers, an upper layer and a lower layer, in the height direction of the character, and all information regarding one character is expressed in coordinates with the base point 21 of the character as the origin. be done. The character shape included in the font information is treated as binary image data within the character definition area 22 that includes the entire character. In addition, the font information includes information regarding the outer shape of the character, including the upper left end position 23, which is the left end position of the upper layer of the character, the upper right end position 24, which is the right end position of the upper layer of the character, and the left end of the lower layer of the character. A lower layer left end position 25, which is the position of , and a lower layer right end position 26, which is the right end position of the lower layer of the character, are defined at a certain distance from the character shape.

第3図は、文字位置計算手段13の動作を文字T32と
文字A33とを例にして説明する図である0文字位置計
算手段13は、文字T32が基準線31上に置かれてい
るとき、文字A33の基点37の位置(以下、単に文字
位置という)を文字T32の基点34からの距離として
、文字T32の上層右端位置35および下層右端位置3
6と文字A33の上層左端位置38および下層左端位置
39とから計算により求める。
FIG. 3 is a diagram illustrating the operation of the character position calculation means 13 using character T32 and character A33 as an example. The position of the base point 37 of the character A33 (hereinafter simply referred to as character position) is the distance from the base point 34 of the character T32, and the upper right end position 35 and the lower right end position 3 of the character T32
6 and the upper layer left end position 38 and lower layer left end position 39 of the character A33.

この計算により求める文字位置は、文字T32の右端と
入牢A33の左端とが上層または下層のいずれか一方の
層で接触し他方の層で接触あるいは離れている位置であ
り、上層および下層の各々で文字T32の右端位置から
文字A33の左端位置を引いた値のうちのより大きい方
の値となる。第3図では、上層で文字T32の右端と文
字A33の左端とが接触しており、文字A33の基点3
7は、文字T32の基点34を基準に文字T32の上層
右端位置35と文字A33の上層左端位1138との差
になっている。
The character position obtained by this calculation is the position where the right end of character T32 and the left end of prison A33 are in contact with each other on either the upper or lower layer, and are in contact or apart on the other layer, and are located in each of the upper and lower layers. This is the larger value obtained by subtracting the left end position of character A33 from the right end position of character T32. In FIG. 3, the right end of character T32 and the left end of character A33 are in contact with each other in the upper layer, and the base point 3 of character A33 is
7 is the difference between the upper right end position 35 of the character T32 and the upper left end position 1138 of the character A33 based on the base point 34 of the character T32.

次に、このように構成された本実施例の文字列出力方式
の動作について説明する。
Next, the operation of the character string output method of this embodiment configured as described above will be explained.

文章入力手段11は、キーボードまたは外部記憶装置か
ら文章を文字列として入力し、それを文字コード列とし
て文字コード列格納手段12に格納する。ここで、文字
コード列格納手段12は、メモリあるいはファイルであ
る。
The text input means 11 inputs a text as a character string from a keyboard or an external storage device, and stores it in the character code string storage means 12 as a character code string. Here, the character code string storage means 12 is a memory or a file.

次に、文字位置計算手段13は、文字コード列格納手段
12から1文字ずつ文字コードを人力し、その文字コー
ドに対応する文字の外形に関する情報をフォント情fi
l格納手段14から入力して、その文字位置を既述した
方法で計算する。さらに、文字位置計算手段13は、文
字可視化手段I5に文字コードと文字位置とを渡して印
刷あるいは表示を要求する。
Next, the character position calculation means 13 inputs the character code one character at a time from the character code string storage means 12, and inputs the information regarding the outer shape of the character corresponding to the character code into the font information fi.
1 is input from the storage means 14, and the character position is calculated by the method described above. Further, the character position calculation means 13 passes the character code and character position to the character visualization means I5 and requests printing or display.

文字可視化手段15は、与えられた文字コードをもとに
フォント情報格納手段14から対応する文字の形を得て
、それを基点が与えられた文字位置になるように印刷あ
るいは表示する。
The character visualization means 15 obtains the shape of the corresponding character from the font information storage means 14 based on the given character code, and prints or displays it so that the base point is at the given character position.

なお、文字の区分方法やフォント情報格納手段14での
文字の形および文字の外形に関する情報の持ち方は、本
実施例に限定されるものでないことはもちろんである。
It goes without saying that the method of classifying characters and the way of storing information regarding the shape of characters and the outer shape of characters in the font information storage means 14 are not limited to the present embodiment.

例えば、文字の高さ方向の区分をさらに多層にすること
により、より適切な文字間隔が得られるようになること
は明白である。また、文字の形についても、二値画像デ
ータとして持つのではなく、文字の黒い部分の境界を複
数の点で定義される曲線で近似した、いわゆるアウトラ
インフォントとして持つこともできる。
For example, it is obvious that more appropriate character spacing can be obtained by dividing the characters in multiple layers in the height direction. Furthermore, the shape of the characters can also be stored not as binary image data, but as a so-called outline font in which the boundaries of the black parts of the characters are approximated by curves defined by a plurality of points.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、文字を高さ方向に複数に
分けた各区分での左端位置および右端位置をフォント情
報の一部として持ち、各区分で2つの文字が重ならずに
かつ少なくとも1つの区分で接触するように文字位置を
計算することにより、個々の文字の組合せを意識するこ
となく文字間隔を適切な値に調整することができ、処理
が高速に行える効果がある。
As explained above, the present invention has the left end position and right end position of each division in which a character is divided into a plurality of parts in the height direction as part of font information, so that two characters in each division do not overlap and are at least By calculating the character positions so that they touch in one section, the character spacing can be adjusted to an appropriate value without being aware of the combinations of individual characters, which has the effect of speeding up processing.

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

第1図は本発明の一実施例に係る文字列出力方式の構成
を示すブロック図、 第2図は第1図中のフォント情報格納手段に格納される
フォント情報を説明するための図、第3図は第1図中の
文字位置計算手段が行う計算について説明するための図
、 第4図は従来の文字列出力方式で文字位置が計算される
方法を説明するための図、 第5図は従来の文字列出力方式で文字間隔の補正が必要
な場合の文字位置を計算する方法を説明するための図で
ある。 図において、 11・・・文章入力手段、 12・・・文字コード列格納手段、 13・・・文字位置計算手段、 14・・・フォント情報格納手段、 15・・・文字可視化手段である。
FIG. 1 is a block diagram showing the configuration of a character string output method according to an embodiment of the present invention; FIG. 2 is a diagram for explaining font information stored in the font information storage means in FIG. 1; Figure 3 is a diagram for explaining the calculations performed by the character position calculation means in Figure 1, Figure 4 is a diagram for explaining how character positions are calculated using the conventional character string output method, and Figure 5. 1 is a diagram for explaining a method for calculating character positions when character spacing needs to be corrected in a conventional character string output method. In the figure, 11... text input means, 12... character code string storage means, 13... character position calculation means, 14... font information storage means, 15... character visualization means.

Claims (1)

【特許請求の範囲】  キーボードなどから文章を文字列として入力する文章
入力手段と、 この文章入力手段により入力された文章を文字コードの
並びとしてメモリあるいはファイルに格納する文字コー
ド列格納手段と、 文字のフォント情報が文字コードに対応づけられて格納
されていて文字の外形に関する情報として文字の高さ方
向に複数に分けた各区分について左端位置および右端位
置の値を持つフォント情報格納手段と、 前記文字コード列格納手段から文字コードを入力し文字
コードに対応する文字の外形に関する情報を前記フォン
ト情報格納手段から得て文字の高さ方向に複数に分けた
各区分で文字が先に印刷または表示した文字と重ならず
にかつ少なくとも1つの区分で接触するように文字位置
を計算する文字位置計算手段と、 この文字位置計算手段に入力された文字コードに対応す
る文字の形を前記フォント情報格納手段から得て前記文
字位置計算手段により計算された文字位置に印刷あるい
は表示する文字可視化手段と を有することを特徴とする文字列出力方式。
[Scope of Claims] A text input means for inputting a text as a character string from a keyboard or the like; a character code string storage means for storing the text input by the text input means in a memory or a file as a sequence of character codes; font information storing means in which font information is stored in association with character codes, and has left end position and right end position values for each of the plurality of divisions divided in the height direction of the character as information regarding the outer shape of the character; A character code is input from the character code string storage means, information regarding the outer shape of the character corresponding to the character code is obtained from the font information storage means, and the character is printed or displayed first in each division divided into a plurality of characters in the height direction. a character position calculation means for calculating a character position so as not to overlap with the character and to touch the character in at least one section; 1. A character string output method, comprising: a character visualization means for printing or displaying the obtained characters from the character position calculation means at the character positions calculated by the character position calculation means.
JP63295141A 1988-11-22 1988-11-22 Character row output apparatus Pending JPH02141267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63295141A JPH02141267A (en) 1988-11-22 1988-11-22 Character row output apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63295141A JPH02141267A (en) 1988-11-22 1988-11-22 Character row output apparatus

Publications (1)

Publication Number Publication Date
JPH02141267A true JPH02141267A (en) 1990-05-30

Family

ID=17816809

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63295141A Pending JPH02141267A (en) 1988-11-22 1988-11-22 Character row output apparatus

Country Status (1)

Country Link
JP (1) JPH02141267A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02206822A (en) * 1989-02-07 1990-08-16 Canon Inc Document output device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02206822A (en) * 1989-02-07 1990-08-16 Canon Inc Document output device

Similar Documents

Publication Publication Date Title
US4523331A (en) Automated image input, storage and output system
JPH08161309A (en) Word processor
JPH02141267A (en) Character row output apparatus
CA1130925A (en) Ultrahigh resolution photocomposition system employing electronic character generation from magnetically stored data
JP3189345B2 (en) Character display processing method
JP2856235B2 (en) Character processing device and character output method
JP2617190B2 (en) String output device
JPS59136281A (en) Printer
JP2781727B2 (en) Continuous display of map symbols
JPS63186366A (en) Document preparing device
JP3087511B2 (en) Data converter
JPH03184182A (en) Character output layout determination system
JPH0321990A (en) Pattern genertaing system
JPH04267470A (en) Character processor
JPH0423183A (en) Document with bar code preparing device
JPH01103467A (en) Document output method
JPH0934440A (en) Multifont display device
JPH04268953A (en) Document preparing device
JPH02190358A (en) Device for expression of character face
EP0477122A2 (en) Method of utilizing fixed font metrics in a device using relative font metrics
JPH0321991A (en) Pattern generating system
JPH04151196A (en) Pattern generation device
JPH0272357A (en) Layout simulation device
JPH04131973A (en) Graphic output device
JPS58139245A (en) "kanji" display