JP2669539B2 - Character output method and character output device - Google Patents
Character output method and character output deviceInfo
- Publication number
- JP2669539B2 JP2669539B2 JP63154694A JP15469488A JP2669539B2 JP 2669539 B2 JP2669539 B2 JP 2669539B2 JP 63154694 A JP63154694 A JP 63154694A JP 15469488 A JP15469488 A JP 15469488A JP 2669539 B2 JP2669539 B2 JP 2669539B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- output
- pattern
- character pattern
- size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/153—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using cathode-ray tubes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- Dot-Matrix Printers And Others (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、印刷システムやワード・プロセッサでの文
字出力方法およびそれら文字出力装置に係る。その中で
も特に、日本語文字列の印字および表示に関する。Description: TECHNICAL FIELD The present invention relates to a character output method and a character output device in a printing system or a word processor. In particular, it relates to the printing and display of Japanese character strings.
従来の印刷システムやワード・プロセッサでの文字出
力方法およびそれら文字出力装置では文字枠に対する文
字パターンの大きさと位置が文字毎に決められている文
字枠内での文字パターン部分(これを字面と呼ぶことで
ある)の大きさや位置はその文字パターンを含む文字セ
ツトであるフオントのデザイン時に、各文字のパターン
の性質や同一フオント内の複数文字のバランス等を考慮
して定められたフオント・パターンとして確定する。A character output method in a conventional printing system or a word processor and a character pattern portion in the character frame in which the size and position of the character pattern with respect to the character frame are determined for each character in these character output devices (this is called a character surface). The size and position of the font is determined as a font pattern that is determined in consideration of the nature of the pattern of each character and the balance of multiple characters in the same font when designing a font that is a character set that includes the character pattern. Determine.
上記の従来技術では、同一フオント内の各文字パター
ンの大きさや位置を当該フオントの文字を並べたときに
バランスよく感ぜられるように考えてデザインするわけ
であるが、いかなる文字を隣接させた場合にもバランス
よく感じられる文字パターンを定めることは実際には難
しい。つまり、全く同じパターンの文字が、それに隣接
する文字によつて、ある場合は適切な大きさと感じら
れ、別の場合には大き目に感ぜられ、また別の場合には
小さ目に感ぜられることがあり得る。第3図の(a)
(b)で「田」の文字パターンは同一であるが、(a)
の文字列では適当なサイズに感ぜられ、(b)の文字列
では小さ目に感ぜられる。In the above-described conventional technology, the size and position of each character pattern in the same font are designed so that the characters in the font can be sensed in a well-balanced manner when the characters in the font are arranged. However, it is actually difficult to define a character pattern that feels well-balanced. That is, a character with the exact same pattern, depending on its adjacent character, may be felt in one case to be the right size, in another case to be oversized, and in another case to be smaller. Can be. (A) of FIG.
In (b), the character pattern of "Ta" is the same, but (a)
The character string of (1) is felt to have an appropriate size, and the character string of (b) is felt to be small.
この解決のために、異なるサイズの文字パターンを用
いるという方法は採用できない。それは、サイズの異な
る文字では、文字枠の幅が異なつてしまい、文字列とし
ての割付けが損なわれるからである。第5図はそれを示
す例である。第5図(a)の「田」という文字パターン
501が小さすぎるという問題を解決するためにより大き
いサイズの文字パターンを用いた例が(b)である。
(b)における「田」の文字パターン502は、そのサイ
ズのみを比較すると他の文字とバランスは良いが、文字
サイズそのものが大きくなつているため、次の文字
「さ」の配置位置が右にずれてしまつている。つまり、
上記問題の解決のために別のサイズの文字パターンをそ
のまま利用するという方法は採れない。For this solution, a method of using character patterns of different sizes cannot be adopted. This is because, for characters of different sizes, the widths of the character frames are different, and the assignment as a character string is impaired. FIG. 5 is an example showing it. Character pattern of "ta" in Fig. 5 (a)
(B) is an example in which a character pattern of a larger size is used to solve the problem that 501 is too small.
The character pattern 502 of “Ta” in (b) has a good balance with other characters when only its size is compared, but since the character size itself is large, the placement position of the next character “Sa” moves to the right. It has shifted. That is,
A method of directly using a character pattern of another size cannot be adopted to solve the above problem.
本発明の目的は、上記の問題を解決するため、指定サ
イズの文字枠の文字パターン列を出力する際に、その文
字枠内での文字パターンの大きさ及び位置の変更を可能
とし、隣接文字等の条件に応じてこの変更を実施し、文
字配列等の条件によらず常にバランスの良い文字パター
ン出力を与え得る文字出力方法および文字出力装置を提
供することにある。SUMMARY OF THE INVENTION An object of the present invention is to solve the above-described problem, when outputting a character pattern string of a character frame of a specified size, enabling the size and position of the character pattern in the character frame to be changed, and allowing adjacent characters to be changed. It is an object of the present invention to provide a character output method and a character output device capable of performing this change in accordance with such conditions as above, and always providing a well-balanced character pattern output irrespective of conditions such as a character arrangement.
上記目的は、文字パターンを文字字書に保持し、これ
を拡大縮小する手段を備え、出力すべき文字列中の当該
文字の出力に際して当該文字の文字パターンを文字字書
より取出し、指定サイズの文字パターンを得たあと、更
にこれを拡大縮小する必要があるか否かを判断し、その
必要があれば上記拡大縮小手段によつてそれを行ない、
そのパターンを文字字書中の配置位置情報を拡大縮小率
に応じて出力文字パターンの領域に配置することによつ
て達成される。The above object is to provide a means for storing a character pattern in a character script and enlarging or reducing the character pattern. When outputting the character in a character string to be output, the character pattern of the character is extracted from the character script and the specified size is obtained. After obtaining the character pattern, it is determined whether or not the character pattern needs to be further scaled, and if necessary, it is performed by the scaling means described above.
This is achieved by arranging the pattern in the area of the output character pattern in accordance with the arrangement position information in the character writing according to the enlargement / reduction ratio.
文字字書は、文字毎に文字の種別を表わすコード、表
示パターンを表わす文字のストロークの骨格点または輪
郭点の座標群、及び文字枠内の文字パターンの配置基準
点の位置情報等を記憶する。文字字書はこれを文字サイ
ズ毎に保持することも可能である。文字パターンを拡大
縮小する手段は、文字字書から読込んだ文字パターンを
基に従来技術の図形処理により変形を施すものである。
文字のコードは文字字書内に記憶された文字パターン群
の中から処理対象とする文字パターンを検索して取出す
のに用い、一方文字サイズは出力文字枠のサイズを決定
するとともに文字字書又は文字パターンの選択に用い
る。文字字書内の文字パターン配置基準点の位置情報
は、指定サイズの文字行のどの位置に当該文字枠を位置
づけるかを定める。文字パターンの配置位置補正値を定
める手段は、拡大縮小後の文字パターンを出力サイズの
文字枠内にバランスよく配置できるように文字パターン
を移動する際の移動量を決定する。文字パターン変更の
条件は、変更の方法や変更の有無を決定する。この条件
としては、隣接文字や出力対象文字のコード,文字パタ
ーンの性質又は変更対象文字セツト等がある。変更条件
として用いる文字パターンの性質の基準値情報とは、こ
れと出力対象文字パターンの性質とを比較することによ
つて当該文字の文字パターン変更法を決定する基準とな
る情報である。The character script stores a code representing a character type for each character, a coordinate group of skeleton points or contour points of a stroke of a character representing a display pattern, and positional information of an arrangement reference point of a character pattern in a character frame. . It is also possible for the character book to hold this for each character size. The means for enlarging / reducing the character pattern is to transform the character pattern based on the character pattern read from the character book by conventional graphic processing.
The character code is used to search for and extract the character pattern to be processed from the character pattern group stored in the character script, while the character size determines the size of the output character frame and Used to select a character pattern. The position information of the character pattern arrangement reference point in the character letter book determines the position of the character frame in the character line of the designated size. Means for determining the arrangement position correction value of the character pattern determines the amount of movement when the character pattern is moved so that the character pattern after scaling can be arranged in a character frame of the output size with good balance. The condition for changing the character pattern determines the changing method and the presence / absence of the change. These conditions include the codes of adjacent characters and the characters to be output, the nature of the character pattern, or the character set to be changed. The reference value information of the character pattern property used as the change condition is information serving as a reference for determining a character pattern changing method of the character by comparing this with the property of the output target character pattern.
以上により、文字出力の際の変更は文字枠内の文字パ
ターンの変更のみに限るので、文字枠そのものは予め定
められた位置に配置でき、それによつて文字列としての
割付けを維持しつつ、より美しいバランスの出力結果が
得られる。As described above, since the change at the time of character output is limited to the change of the character pattern in the character frame, the character frame itself can be arranged at a predetermined position, thereby maintaining the allocation as a character string and A beautifully balanced output result can be obtained.
以下、本発明の一実施例を図面を用いて詳細に説明す
る。Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
第2図は日本語ワードプロセツサの構成図である。図
中の符号201は処理装置、符号202はキーボード、符号20
3はデイスプレイ、符号204はプリンタ、符号205はデイ
スク記憶装置、符号206はメイン・メモリである。デイ
スク記憶装置205は、文字出力プログラムおよび各文字
の基本文字パターンを収容した文字字書を格納する。文
字出力プログラムはデイスク記憶装置205よりメイン・
メモリ206に読込まれ、処理装置201で実行される。本プ
ログラムは、出力の対象となる文字列に関して出力文字
サイズ,文字コード列および各種のコマンドをキーボー
ド202より読込み、入力された値をデイスプレイ203に表
示する。本プログラムは、指定された文字コードの文字
パターンをデイスク記憶装置205より読込む。この際、
字書中に文字サイズ毎の文字パターンが保持されている
のであれば指定サイズの文字パターンを取出す。他方、
字書には基準サイズの文字パターンが保持されているの
であれば、これに基づいて指定サイズの文字パターンを
作成する。このようにして、指定サイズの文字パターン
を得たあと、本プログラムは、実に、条件に応じて、文
字枠内の文字パターンのみを変更して変更文字パターン
を生成して出力文字パターン列上に配置し、デイスプレ
イ203またはプリンタ204に出力する。FIG. 2 is a block diagram of the Japanese word processor. In the figure, reference numeral 201 denotes a processing device, reference numeral 202 denotes a keyboard, and reference numeral 20 denotes a keyboard.
3 is a display, 204 is a printer, 205 is a disk storage device, and 206 is a main memory. The disk storage device 205 stores a character output program and a character book containing a basic character pattern of each character. The character output program is stored in the main storage from the disk storage device 205.
It is read into the memory 206 and executed by the processing device 201. The program reads an output character size, a character code string, and various commands for a character string to be output from the keyboard 202 and displays the input value on the display 203. This program reads the character pattern of the designated character code from the disk storage device 205. On this occasion,
If the character pattern holds a character pattern for each character size, the character pattern of the specified size is extracted. On the other hand,
If the character pattern holds a character pattern of a standard size, a character pattern of a designated size is created based on this. In this way, after obtaining the character pattern of the specified size, this program actually changes only the character pattern in the character frame according to the conditions, generates a changed character pattern, and puts it on the output character pattern string. It is arranged and output to the display 203 or the printer 204.
本プログラムの動作の詳細を以下第1図により説明す
る。第1図は、第2図の処理装置201で実行される本発
明の文字出力プログラムの動作を示すフローチヤートで
ある。Details of the operation of this program will be described below with reference to FIG. FIG. 1 is a flowchart showing the operation of the character output program of the present invention executed by the processing device 201 of FIG.
本実施例における文字字書の文字パターン保持形式
は、文字の各ストロークの種別とそのストロークの骨格
点列と太さ等のパラメタという3種の情報の組合せとし
て文字パターンをもつ、いわゆる骨格文字方式とする。
この方式の例は特願昭59−58263に記されている。骨格
文字方式について第7図より説明する。骨格文字方式で
は文字パターンをいくつかの基本パターンの組合せで表
現し、この基本パターンをストロークと呼ぶ。漢字の場
合は16種類程度のストロークがあればそれらの組合せに
よつてすべての文字パターンが表現できるとされてい
る。第7図のパターンは漢字を構成するストロークの1
つである「左払い」を表わす。「左払い」は上から左下
方向に筆を動かすストロークであり、例えば「休」とい
う文字の人偏「イ」の第1画の部分に用いられる。文字
字書の情報としては、文字を構成する各ストロークの種
別とそのストロークの骨格点列と太さ等のパラメタとい
う3種の情報を保持する。図のS1,S2、およびS3は骨格
点を示す。骨格点は文字枠の左下隅を原点とする直交座
標(X,Y)で表わす。これらの各骨格点の位置と太さの
パラメタW1,W2,W3とからストローク種別に特有の輪郭特
徴点P1,P2,P3,P4,P5、およびP6を発生させる。これらの
輪郭特徴点をストローク種別に応じて直線,スプライン
曲線およびベジエ曲線等の線でつなぐことによりストロ
ークの輪郭を作り、内部を塗りつぶすことによつて輪郭
パターンを生成する。このように生成したストロークの
輪郭パターンを合成して1文字のパターンを作る。骨格
文字方式における文字パターンの拡大縮小の方法として
は、まず骨格パターンの拡大縮小を施したあと輪郭パタ
ーンを生成する方法が考えられる。すなわち各骨格点の
座標(X,Y)に対し、文字パターンの拡大縮小率nを乗
じて座標の拡大縮小を行ない、その結果、(nX,nY)を
骨格点座標として得、所望のサイズの骨格パターン情報
を求める方法である。また太さパラメタについても上記
と同様に文字パターンの拡大縮小率nで定まる定数を乗
ずることにより所望のサイズの文字の太さを求めること
ができる。The character pattern holding format of the character script according to the present embodiment is a so-called skeletal character method having a character pattern as a combination of three types of information such as the type of each stroke of a character, a skeleton point sequence of the stroke, and parameters such as thickness. And
An example of this method is described in Japanese Patent Application No. 59-58263. The skeletal character system will be described with reference to FIG. In the skeletal character method, a character pattern is expressed by a combination of some basic patterns, and this basic pattern is called a stroke. It is said that in the case of kanji, if there are about 16 types of strokes, all character patterns can be expressed by their combination. The pattern in Fig. 7 is one of the strokes that make up the kanji.
"Left-payment". “Left payment” is a stroke that moves the brush from the top to the lower left, and is used, for example, in the first stroke portion of the character “I” with the character “rest”. As the information of the character letter book, three types of information such as a type of each stroke constituting a character, a skeleton point sequence of the stroke, and parameters such as a thickness are held. In the figure, S 1 , S 2 , and S 3 indicate skeleton points. The skeletal points are represented by Cartesian coordinates (X, Y) with the origin at the lower left corner of the character frame. The contour feature points P 1 , P 2 , P 3 , P 4 , P 5 , and P 6 specific to the stroke type are generated from the positions of these skeleton points and the parameters W 1 , W 2 , W 3 of the thickness. Let The outline of the stroke is created by connecting these outline feature points with a line such as a straight line, a spline curve, or a Bezier curve according to the stroke type, and an outline pattern is generated by painting the interior. A pattern of one character is created by combining the outline patterns of the strokes generated in this manner. As a method of enlarging / reducing a character pattern in the skeleton character method, a method of enlarging / reducing a skeleton pattern and then generating a contour pattern can be considered. That is, the coordinates (X, Y) of each skeleton point are multiplied by the character pattern enlargement / reduction rate n to perform the scaling of the coordinates. As a result, (nX, nY) is obtained as the skeleton point coordinates, and the desired size is obtained. This is a method for obtaining skeleton pattern information. As for the thickness parameter, the thickness of a character having a desired size can be obtained by multiplying a constant determined by the character pattern enlargement / reduction ratio n in the same manner as described above.
第1図において、符号101は出力文字のコードと、隣
接文字のコード及び出力文字の文字サイズSを読込む処
理、符号102は、上記出力文字の文字サイズ及び文字コ
ードを文字字書読出し部に対して与え文字パターンの各
骨格点の座標Pi(Xi,Yi)(ただし、1≦i≦骨格点
数)と文字配置位置rを求める処理、符号103は、出力
文字コードをキーとして文字字書を検索し、出力文字パ
ターンの黒地密度Bを読込む処理、符号104は、出力文
字のコードが文字パターン変更テーブルに含まれるか否
かを判定しその結果に応じて分岐する処理、符号105
は、処理104の判定結果が4‘Yes'の場合に隣接文字コ
ードをキーとして文字字書を検索し、隣接文字パターン
の黒地密度Cを読込む処理、符号106は、出力文字の文
字パターン黒地密度Bと隣接文字の文字パターン黒地密
度Cとの比率mを求める処理、符号107は、文字パター
ン拡大縮小条件の最小値Kを読込む処理、符号108は、
出力文字パターンを拡大縮小する必要があるか否かを、
上で求めたm,Kに基づいて判定する処理、符号109は、処
理108の判定結果が‘Yes'の場合に、処理106で求めた黒
地密度mに基づいて出力文字の文字パターン拡大縮小率
nを決定する処理、符号110は、文字パターンの骨格点
座標を一時的に退避する処理、符号111は、文字パター
ン骨格点の座標を処理109で決定した倍率nで拡大縮小
する処理、符号112は、文字パターン拡大縮小にともな
う文字パターン移動に必要なX軸方向の配置位置補正値
dxを、文字サイズSと処理109で決定した文字パターン
拡大縮小率nとに基づいて決定する処理、符号113は、
処理112と同様にY軸方向の配置位置補正値dyを、文字
配置位置rと文字パターン拡大縮小率nとに基づいて決
定する処理、符号114は、処理112と処理113で決定した
補正値の分だけ文字パターンの骨格点座標を移動する処
理、符号115は、処理114の移動により出力文字枠からは
み出した骨格点が1つでもあるかどうかを判定する処
理、符号116は、処理115の判定結果が‘Yes'の場合に、
文字パターンの骨格点座標を処理110で退避しておいた
値に回復する処理、符号117は、処理104の判定結果が
‘No'である場合、処理108の判定結果が‘No'である場
合、処理115の判定結果が‘No'である場合、及び処理11
6のあとで実行され、それぞれに定められた骨格点の座
標Pi(Xi,Yi)に基づいて輪郭を発生させ文字ターンを
生成し、出力文字枠内に配置する処理である。In FIG. 1, reference numeral 101 denotes a process of reading a code of an output character, a code of an adjacent character, and a character size S of an output character, and reference numeral 102 denotes a character size and character code of the output character in a character / character reading unit. On the other hand, a process of obtaining coordinates P i (X i , Y i ) (where 1 ≦ i ≦ the number of skeleton points) and a character arrangement position r of each skeleton point of the given character pattern. Reference numeral 103 denotes a character using the output character code as a key. A process of retrieving a script and reading the black background density B of the output character pattern. Reference numeral 104 denotes a process of determining whether or not the output character code is included in the character pattern change table and branching according to the result. 105
Is a process for searching for a character writing book by using the adjacent character code as a key and reading the black background density C of the adjacent character pattern when the determination result of the process 104 is 4'Yes'. Reference numeral 106 is a character pattern black background of the output character. A process 107 for obtaining a ratio m between the density B and the character pattern black background density C of the adjacent character, a process 107 for reading the minimum value K of the character pattern enlargement / reduction condition, and a process 108
Whether or not the output character pattern needs to be scaled,
A process 109 for determining based on the m and K obtained above, and reference numeral 109 denotes a character pattern enlargement / reduction ratio of an output character based on the black background density m obtained in the process 106 when the determination result of the process 108 is “Yes”. n is a process for determining n, 110 is a process for temporarily retreating the skeleton point coordinates of the character pattern, 111 is a process for scaling the coordinates of the skeleton point of the character pattern by the magnification n determined in the process 109, 112 Is the X-axis direction arrangement position correction value required for character pattern movement accompanying character pattern enlargement / reduction.
The process of determining dx based on the character size S and the character pattern enlargement / reduction ratio n determined in process 109, reference numeral 113,
Similar to the processing 112, the processing for determining the arrangement position correction value dy in the Y-axis direction based on the character arrangement position r and the character pattern enlargement / reduction rate n. Reference numeral 114 denotes the correction value of the correction value determined in the processing 112 and the processing 113. The process of moving the skeleton point coordinates of the character pattern by the amount, reference numeral 115 is a process of determining whether or not there is even one skeleton point protruding from the output character frame due to the movement of process 114, and reference numeral 116 is a determination of process 115. If the result is'Yes',
A process of restoring the skeleton point coordinates of the character pattern to the value saved in the process 110, reference numeral 117 indicates a case where the determination result of the process 104 is'No 'and a determination result of the process 108 is'No' If the determination result of step 115 is 'No', and
This is a process executed after 6 to generate a contour based on the coordinates P i (X i , Y i ) of the skeletal points determined for each, generate a character turn, and arrange it in the output character frame.
処理101で読込む文字サイズは出力文字枠サイズを与
える。処理102はこの文字サイズと文字コードを字書読
出し部に与える。文書読出し部は字書中に当該サイズの
文字パターンがあればそれを返し、なければ当該文字サ
イズになるよう拡大縮小して返す。ここで返す文字パタ
ーンは、文字枠の左下隅を原点とする直交座標で表わし
た文字ストロークの骨格点座標Pi(Xi,Yi)の系列であ
る。これからストロークの輪郭を生成し文字の出力パタ
ーンを生成することは特願昭59−58263号等の方法で可
能である。次に処理102の文字配置位置rは文字枠を行
に割付ける際に必要な配置情報であり、ここでは横書き
出力を前提として文字枠上Y=rの線を出力行のベース
ライン上に配置すべきことを示すものとする。次の文字
パターン黒地密度については後術する。処理104では、
文字パターン変更テーブルを参照してその中に当該文字
コードが有る場合に限つて、当該文字パターンを拡大縮
小することを決定する。通常のデザインを経た文字フオ
ントであれば、本特許の目的とする文字パターン変形を
要する文字の種類は文字フオント中の文字のごく一部分
である。変更テーブルには、例えば「日」,「目」,
「田」等の比較的文字のデザインが単純であるために隣
接文字との関係で文字パターンの大きさの見え方が変わ
るような文字のコード群を持つのが一法である。本テー
ブルは別途更新することが可能である。以下処理105か
ら処理116までは、文字パターン変更処理の主要部であ
り、後で具体的に説明する。処理117は、従来の骨格方
式の文字パターン生成技術を用いて文字パターンを生成
し、出力行に配置する。The character size read in the process 101 gives the output character frame size. The process 102 gives this character size and character code to the character reading unit. If there is a character pattern of the size in the written character, the document reading unit returns it, and if not, the character reading unit enlarges or reduces the character size and returns it. The character pattern returned here is a series of skeleton point coordinates P i (X i , Y i ) of the character stroke represented by rectangular coordinates with the origin at the lower left corner of the character frame. It is possible to generate a stroke contour and a character output pattern from this by a method such as Japanese Patent Application No. 59-58263. Next, the character arrangement position r in the processing 102 is arrangement information necessary for allocating a character frame to a line, and here, a line of Y = r on the character frame is arranged on the base line of the output line on the premise of horizontal writing output. It indicates what should be done. The next character pattern black background density will be described later. In process 104,
Only when the character code exists in the character pattern change table with reference to the character pattern change table, it is determined to enlarge or reduce the character pattern. In the case of a character font that has undergone a normal design, the type of character that requires character pattern deformation, which is the object of this patent, is only a small part of the character in the character font. In the change table, for example, “day”, “eye”,
Since the design of characters such as "ta" is relatively simple, it is one method to have a character code group that changes the appearance of the size of the character pattern in relation to adjacent characters. This table can be updated separately. The processes 105 to 116 are the main part of the character pattern changing process, and will be specifically described later. In the process 117, a character pattern is generated using a conventional skeleton type character pattern generation technique and is arranged in the output line.
ここで第4図を用いて文字パターン変更法の具体例を
示す。この変更の必要性については第3図によつて既に
説明した。第3図(a)(b)の各各に現われる「田」
という文字パターンは全く同一の文字パターンであるが
隣接文字が異なることによつて、(a)では適切な大き
さに、(b)では小さ過ぎると感ぜられる。そこで、第
3図の(b)における「田」の文字パターン301を文字
枠サイズを保存しつつ拡大したのが第4図(b)の
「田」の文字パターン401である。第4図におけるこの
他の3つの文字パターンは第3図の対応文字パターンと
同一である。ここで上記第4図(b)の「田」の文字パ
ターン401の拡大率は、第3図(b)の「武」の文字パ
ターン303と「田」の文字パターン301の黒地密度の値の
比率で求めたものである。さて、文字パターンの拡大縮
小を行なうと、出力行上のベースラインに合わせて配置
すべき位置である文字配置位置もそれに伴なつて拡大縮
小するのが普通である。しかし、ここでは文字枠サイズ
を保存してその中の文字パターンのみを拡大縮小したい
のであるから、拡大縮小後の文字配置位置の調整が必要
である。この調整量が配置位置補正値である。この値の
決定方法について後に述べる。Here, a specific example of the character pattern changing method will be described with reference to FIG. The necessity of this change has already been described with reference to FIG. "Field" appearing in each of Fig. 3 (a) and (b)
Is exactly the same character pattern but the adjacent characters are different, so that it is felt that (a) is an appropriate size and (b) is too small. Therefore, the character pattern 301 of “ta” in FIG. 4 (b) is enlarged while the character pattern 301 of “ta” in FIG. 3 (b) is preserved while maintaining the character frame size. The other three character patterns in FIG. 4 are the same as the corresponding character patterns in FIG. Here, the enlargement ratio of the character pattern 401 of "Ta" in FIG. 4 (b) is the same as the black background density value of the character pattern 303 of "Take" and the character pattern 301 of "Ta" in FIG. 3 (b). It is calculated by ratio. When a character pattern is enlarged or reduced, the character arrangement position, which is a position to be arranged in accordance with the base line on the output line, is usually enlarged or reduced accordingly. However, in this case, since it is desired to save the character frame size and enlarge or reduce only the character pattern in the character frame size, it is necessary to adjust the character arrangement position after the enlargement or reduction. This adjustment amount is the arrangement position correction value. The method of determining this value will be described later.
次に、第1図の処理105から処理116に到る文字パター
ン変更処理をより具体的に説明する。第1図では、文字
パターンの性質を表わす情報の1つである黒地密度に基
づいて文字パターンを変更する。文字パターンの黒地密
度は、文字枠内の総ドツト数に対する文字の出力パター
ン上のドツト数の割合で表わす。この黒地密度は、これ
を予め文字字書に記憶しておくことにより、前述の処理
102のように文字コードによつて検索可能である。今、
処理102で求めた結果として、文字パターン「田」の黒
地密度Bは31%であるとする。一方に、既に出力済みの
隣接文字である「武」303の黒地密度Cは処理105におい
て32.8%として求まるものとする。この結果、隣接文字
と当該文字の黒地密度の比mは32.8/39によりm≒1.058
と求められる。本実施例では、m−1の絶対値、即ち|m
−1|がある範囲を越えるときに文字パターンの拡大縮小
処理を行なうものとする。そのしきい値Kを字書に保持
するものとし処理107でこれを読込む。処理108は|(黒
地密度比−1)|>Kの判定を行なう。例えば、K=0.
04であるとする。すると、 |m−1|≒|1.058−1|=0.058>0.04 であるから処理108の判定は成立するので当該文字パタ
ーンの拡大縮小処理を行なう必要があり処理109に進
む。処理109では文字パターンの拡大縮小率nを求め
る。本実施例はこれを、黒地密度比の平方根として求め
る。つまり、n=m1/2とする。次の処理110では文字パ
ターンの骨格点座標Pi(Xi,Yi)をすべての骨格点につ
いて退避し後の処理116に備える。さて、処理111では各
々の骨格点座標Pi(Xi,Yi)をn倍にする。次の処理112
と処理113では各々X軸方向及びY軸方向の配置位置補
正値を決定する。Next, the character pattern change processing from processing 105 to processing 116 in FIG. 1 will be described more specifically. In FIG. 1, the character pattern is changed based on the black background density, which is one of the pieces of information representing the characteristics of the character pattern. The black background density of the character pattern is represented by the ratio of the number of dots on the character output pattern to the total number of dots in the character frame. The density of the black background is stored in advance in a character script, so that
It is possible to search by a character code such as 102. now,
As a result obtained in the process 102, it is assumed that the black background density B of the character pattern "T" is 31%. On the other hand, it is assumed that the black background density C of the adjacent character “take” 303 that has already been output is obtained as 32.8% in the processing 105. As a result, the ratio m between the adjacent characters and the black background density of the characters is 32.8 / 39, and m ≈ 1.058
Is required. In this embodiment, the absolute value of m−1, that is, | m
When −1 | exceeds a certain range, character pattern enlargement / reduction processing is performed. It is assumed that the threshold value K is held in the writing, and this is read in step 107. Process 108 determines || (black background density ratio-1) |> K. For example, K = 0.
Assume that it is 04. Then, since | m−1 | ≒ | 1.058−1 | = 0.058> 0.04, the determination in the process 108 is established, so that the character pattern needs to be enlarged or reduced, and the process proceeds to the process 109. In process 109, the enlargement / reduction ratio n of the character pattern is obtained. In this embodiment, this is obtained as the square root of the black background density ratio. That is, n = m 1/2 . In the next process 110, the skeleton point coordinates P i (X i , Y i ) of the character pattern are saved for all the skeleton points, and the subsequent process 116 is prepared. Now, in process 111, each skeleton point coordinate P i (X i , Y i ) is multiplied by n. Next action 112
In process 113, the arrangement position correction values in the X-axis direction and the Y-axis direction are determined.
ここで、配置位置補正の必要性を具体的に説明してお
く。第6図は、文字字書に保持される文字パターンと配
置位置情報との関係を説明するものである。第6図の
(a)はこの配置位置rが文字列の領域上のベースライ
ン上の位置を示すものであることを表わす。(b)点は
「田」という文字の文字枠と文字パターンと配置位置r
との関係を示す。(b)では、「田」の文字パターン中
の骨格点の代表としての一点Pi(Xi,Yi)を表示してい
る。これは骨格点Piの座標が(Xi,Yi)であることを示
す。座標は文字枠の左下隅を原点とする直交座標系で表
わし、右方向をX軸の正方向、上方向をY軸の正方向と
する。Piは文字の第i番目の骨格点を示すものとする。
さて、文字パターンを出力する際には出力行領域上にベ
ースラインを設定し、その上に当該文字の文字枠のY=
r(rは配置位置の値とする)の線を合わせて配置す
る。各文字パターンはこのことを前提に文字枠内にデザ
インされている。文字パターン601を出力行に配置した
例を第6図(e)に示す。Here, the necessity of the arrangement position correction will be specifically described. FIG. 6 illustrates the relationship between the character pattern held in the character writing and the arrangement position information. FIG. 6A shows that the arrangement position r indicates the position on the baseline in the character string area. (B) The point is the character frame of the character "Ta", the character pattern, and the arrangement position r.
The relationship is shown below. In (b), one point P i (X i , Y i ) is displayed as a representative of the skeleton points in the character pattern of “T”. This indicates that the coordinates of the skeleton point P i are (X i , Y i ). Coordinates are expressed in an orthogonal coordinate system whose origin is the lower left corner of the character frame, and the right direction is the positive direction of the X axis and the upward direction is the positive direction of the Y axis. Let P i denote the i-th skeleton point of the character.
By the way, when outputting a character pattern, a base line is set on the output line area, and Y =
The lines of r (r is the value of the arrangement position) are aligned and arranged. Each character pattern is designed in the character frame on the assumption of this. An example in which the character pattern 601 is arranged on the output line is shown in FIG. 6 (e).
次に、やはり第6図によつて、文字パターンの拡大縮
小と配置位置の変化との関係を説明する。文字パターン
601を拡大縮小率nで拡大すると、当該文字の任意の骨
格点Pi(Xi,Yi)は、第1図の処理111によりPi(nXi,nY
i)に移る。この結果の文字パターンは第6図(c)の
ようになる。文字枠サイズもn倍され、配置位置rもn
倍されている。出力文字列としては文字枠サイズをn倍
したものを配置してしまうと不都合であることは前述の
通りである。そこで、この文字枠の中から当該文字枠と
して変形前の文字枠を示したのが(c)の破線部分であ
る。この文字枠サイズは出力の目的に合うものであり、
その中の文字パターン部分のサイズも適切なものである
はずであるが、文字枠内の文字パターンの位置が適当で
ない。そこでこの文字枠内で文字パターンの位置を補正
するのが配置位置補正であり、X軸方向・Y軸方向への
補正の大きさを表わす値が配置位置補正値である。この
配置位置補正値に従つて文字パターン即ち各々の骨格点
をX軸・Y軸方向に平行移動させることにより、当該サ
イズの文字枠上の適切な位置に文字パターンが収容され
た第6図(d)のパターンが得られる。これを出力行上
に配置した結果を(f)に示す。Next, referring to FIG. 6, the relationship between the enlargement / reduction of the character pattern and the change of the arrangement position will be described. Character pattern
When 601 is enlarged by the scaling factor n, any skeleton point P i (X i , Y i ) of the character is changed to P i (nX i , nY) by the processing 111 in FIG.
Go to i ). The resulting character pattern is as shown in FIG. The character frame size is also multiplied by n, and the arrangement position r is also n.
Has been doubled. As described above, it is inconvenient to arrange an output character string that is n times the character frame size. Then, the broken line portion of (c) shows the character frame before transformation as the character frame from the character frame. This character box size is suitable for the purpose of output,
The size of the character pattern portion in it should be appropriate, but the position of the character pattern in the character frame is not appropriate. Therefore, correcting the position of the character pattern in the character frame is the arrangement position correction, and the value indicating the magnitude of the correction in the X-axis direction and the Y-axis direction is the arrangement position correction value. By moving the character pattern, that is, each skeleton point in parallel in the X-axis and Y-axis directions according to the arrangement position correction value, the character pattern is accommodated at an appropriate position on the character frame of the size shown in FIG. The pattern of d) is obtained. The result of arranging this on the output line is shown in FIG.
ここで、処理112,113及び114における配置位置補正値
の決定法とそれによる配置位置補正について説明する。
文字サイズをSとするとX軸方向の配置位置補正値dx
を、 dx=S(n−1)/2 で求める。ここで、nは処理109で求めた拡大縮小率で
ある。また、Y軸方向補正値dxは、 dy=r(n−1) として求める。この補正値dx,dyを用いて、処理114で実
際に文字パターンの平行移動を行なうのである。上記の
補正値の決定では、X軸方向は文字サイズSから求め、
Y軸方向は文字配置位置rから求めているが、Y軸方向
の補正値をX軸方向と同様に文字サイズSから求める方
法もある。この場合は、 dy=S(n−1)/2 で求める。この方法によれば、拡大縮小文字パターン
は、配置位置補正後、出力文字枠内のX軸・Y軸方向と
も中央に配置される。出力文字枠内の中央に配置された
文字パターンの列を出力する一つの方法として、出力文
字枠の縦(縦書きの場合など)または横方向の2等分線
を出力行領域上のベースラインに重ねて配置する方法が
ある。第6図の(g)は、その例であり、出力文字枠の
横方向の2等分線を出力行のベースラインに重ねて配置
した結果を表わす。Here, the method of determining the arrangement position correction value in the processes 112, 113 and 114 and the arrangement position correction by the method will be described.
When the character size is S, the arrangement position correction value dx in the X-axis direction
Is obtained by dx = S (n-1) / 2. Here, n is the enlargement / reduction ratio obtained in the processing 109. The Y-axis direction correction value dx is obtained as dy = r (n-1). Using the correction values dx and dy, the translation of the character pattern is actually performed in process 114. In the above-mentioned correction value determination, the X-axis direction is obtained from the character size S,
Although the Y-axis direction is obtained from the character arrangement position r, there is also a method of obtaining the correction value in the Y-axis direction from the character size S as in the X-axis direction. In this case, dy = S (n-1) / 2. According to this method, the enlarged / reduced character pattern is arranged at the center in the X-axis and Y-axis directions in the output character frame after the arrangement position is corrected. As one method of outputting a column of a character pattern arranged in the center of the output character frame, a vertical (for example, in vertical writing) or horizontal bisector of the output character frame is represented by a base line on an output line area. There is a method to place them on top of each other. FIG. 6 (g) is an example of this, and shows the result of arranging the horizontal bisector of the output character frame so as to overlap the base line of the output line.
以上で、第1図の処理114までの説明を終つた。次に
上記の拡大縮小処理(拡大の場合)によつて、文字パタ
ーンが当該文字枠サイズを越えてしまう場合についての
本実施例での取扱いについて述べる。その取扱いは簡単
で、拡大縮小前の文字パターンをそのまま用いるのであ
る。この文字枠からのはみ出しの判定が処理115であ
る。はみ出しと判定されると処理116に進み、処理110で
退避してあつた文字パターンを回復して出力文字パター
ンとして処理117に進む。一方、はみ出しの判定で‘No'
と判定されると、処理114の結果の文字パターンを出力
文字パターンとして処理117に進む。This is the end of the description up to the processing 114 in FIG. Next, a description will be given of how the present embodiment deals with a case where the character pattern exceeds the character frame size by the above-described enlargement / reduction processing (in the case of enlargement). The handling is simple, and the character pattern before scaling is used as it is. The determination of protruding from the character frame is processing 115. If it is determined to be the protrusion, the process proceeds to step 116, the character pattern saved in step 110 is recovered, and the process proceeds to step 117 as an output character pattern. On the other hand, it is'No 'when it is judged as protruding
Is determined, the process proceeds to process 117 using the character pattern resulting from process 114 as an output character pattern.
処理117は以上で得た出力文字パターンを元に、前述
の特願昭59−58263等の方々で骨格点より実際の出力パ
ターンに変換し、配置位置を出力文字パターン領域内の
ベースラインに重ねて出力する。Processing 117 converts the skeleton points into actual output patterns from the skeleton points based on the output character patterns obtained as described above, and applies the arrangement position to the base line in the output character pattern area. Output.
以上で第1図の説明を終る。以下では第1図で例示し
た方法の代替方法について簡単に述べることとする。This is the end of the description of FIG. In the following, an alternative to the method illustrated in FIG. 1 will be briefly described.
第1図では、文字パターン変更の条件として文字パタ
ーンの黒地密度比を用いる例を示した。実際には、この
変更条件の基準としては次に示すような種々の場合が考
えられる。FIG. 1 shows an example in which the black background density ratio of a character pattern is used as a condition for changing a character pattern. Actually, the following various cases are conceivable as the criteria for this change condition.
(1)隣接した文字の種類により当該文字の文字パター
ン変更を施すか否かを決める。文字パターン変更対象の
文字コードの組合せを設定しておき、それを参照するこ
とにより文字パターン変更の判定を行なう。(1) Whether to change the character pattern of the character is determined according to the type of the adjacent character. A combination of character codes for which a character pattern is to be changed is set in advance, and the character pattern change is determined by referring to it.
(2)隣接した文字のパターンの性質によつて決める。
性質としては、文字パターンを囲む最小の凸多角形のサ
イズ等がある。隣接文字の最小凸多角形のサイズを算出
し、当該文字の値と比較することにより文字パターン変
更の有無を決める。(2) Determined according to the pattern characteristics of adjacent characters.
The properties include the size of the smallest convex polygon that surrounds the character pattern. The size of the smallest convex polygon of the adjacent character is calculated and compared with the value of the character to determine whether or not the character pattern is changed.
(3)隣接文字について(2)と同様の性質を用いる
が、出力時に算出して求めるのではなく予め記憶してお
いた値を用いる方法。(3) A method similar to that of (2) is used for adjacent characters, but a value stored in advance is used instead of being calculated and obtained at the time of output.
(4)当該文字について予め字書内に文字パターン変更
要否フラグを設定しておき、それに基づいて決定する。(4) A character pattern change necessity flag is set in advance in the script for the character, and the determination is made based on the flag.
(5)文字パターン変更すべき文字コード群を予め記憶
しておき、当該文字のコードがその中に含まれるならば
変更する。逆に変更が許されない文字コード群を記憶し
ておく方法も可能である。(5) A character code group whose character pattern is to be changed is stored in advance, and if the character code is included in the character code group, the character code is changed. Conversely, a method of storing a group of character codes that cannot be changed is also possible.
(6)予め設定された情報(例えば、黒地密度の値)を
基準値とし、これと当該文字の該当する性質の値とを比
較し、その大小関係に応じて文字パターン変更の要否を
決定する。(6) Using preset information (for example, a value of black background density) as a reference value, comparing this with a value of a corresponding property of the character, and determining whether or not to change the character pattern according to the magnitude relationship. To do.
(7)当該文字パターンの出力以前に設定されたモード
(縦書きモード,可変ピツチ・モード等)に応じて文字
パターン変更を決定する。(7) Determine the character pattern change according to the mode (vertical writing mode, variable pitch mode, etc.) set before the output of the character pattern.
上記の代替方法について図を用いて説明する。ただ
し、代替方法と第1図の処理では共通する部分が多いの
で、以降の説明では代替方法に特有の処理を中心に図示
し、更にその前後の処理として対応する第1図の処理を
付加することにした。The above alternative method will be described with reference to the drawings. However, since there are many common parts between the alternative method and the processing of FIG. 1, in the following description, the processing peculiar to the alternative method is mainly shown, and the corresponding processing of FIG. 1 is added before and after the processing. It was to be.
以下において、第1図と同じ参照番号の処理は同じも
のをさす。In the following, the processes having the same reference numbers as in FIG. 1 are the same.
代替方法(1)の例を第8図に示す。本処理は、第1
図の処理103から処理109までの代替である。符号801
は、出力文字のコードと隣接文字のコードとの組合せが
文字パターン変更テーブルに含まれるか否かを判定しそ
の結果に応じて分岐する処理、符号802は、処理801の判
定結果が‘Yes'の場合に変更テーブルから出力文字の文
字パターン拡大縮小率nを読込む処理である。処理801
では、文字パターン変更対象の文字コードの組合せと、
それに関する文字パターン拡大縮小率とを収容した変更
テーブルを参照して、その中に当該文字と隣接文字との
コードの組合せが有る場合に限つて、当該文字パターン
を拡大縮小することを決定する。An example of alternative method (1) is shown in FIG. This processing is the first
This is an alternative from processing 103 to processing 109 in the figure. Reference numeral 801
Is a process of determining whether or not the combination of the code of the output character and the code of the adjacent character is included in the character pattern change table, and branching according to the result; and reference numeral 802, the determination result of the process 801 is 'Yes' In this case, the character pattern enlargement / reduction ratio n of the output character is read from the change table. Process 801
Then, the combination of the character codes to be changed
By referring to the change table containing the character pattern enlargement / reduction rate related thereto, it is decided to enlarge / reduce the character pattern only when there is a combination of the code of the character and the adjacent character in the change table.
代替方法(2)の例を第9図に示す。本処理は、第1
図の処理103から処理106までの代替である。符号901
は、出力文字の文字パターンを囲む最小凸多角形のサイ
ズBを算出する処理、符号902は、隣接文字の文字パタ
ーンを囲む最小凸多角形のサイズCを算出する処理、符
号903は、出力文字と隣接文字の文字パターン最小凸多
角形の比率mを求める処理である。処理901では、処理1
02で読込んだ出力文字の各骨格点座標から出力文字パタ
ーンを囲む最小凸多角形を求め、そのサイズBを算出す
る。ここでいうサイズとは凸多角形の面積のことであ
る。処理902では、隣接文字の骨格点座標から隣接文字
パターンを囲む最小凸多角形のサイズCを算出する。こ
の場合、隣接文字の骨格点座標は、予め隣接文字の出力
の際に記憶しておいた情報から得ることができる。FIG. 9 shows an example of the alternative method (2). This processing is the first
This is an alternative from the processing 103 to the processing 106 in the figure. Reference numeral 901
Is a process of calculating the size B of the smallest convex polygon that surrounds the character pattern of the output character, reference numeral 902 is a process of calculating the size C of the smallest convex polygon that surrounds the character pattern of the adjacent character, and reference numeral 903 is the output character And the character pattern minimum convex polygon ratio m of adjacent characters. In process 901, process 1
A minimum convex polygon surrounding the output character pattern is obtained from each skeleton point coordinate of the output character read in 02, and its size B is calculated. Here, the size refers to the area of the convex polygon. In step 902, the size C of the smallest convex polygon that surrounds the adjacent character pattern is calculated from the skeleton point coordinates of the adjacent character. In this case, the skeleton point coordinates of the adjacent character can be obtained from the information stored in advance when outputting the adjacent character.
代替方法(3)の例を第10図に示す。本処理は第1図
の処理103から処理106までの代替である。符号1001は、
出力文字のコードをキーとして文字字書を検索し、出力
文字パターンの最小凸多角形のサイズBを読込む処理、
符号1002は、隣接文字のコードをキーとして文字字書を
検索し、隣接文字パターンの最小凸多角形のサイズCを
読込む処理、符号1003は、出力文字と隣接文字の文字パ
ターン最小凸多角形の比率mを求める処理である。An example of alternative method (3) is shown in FIG. This processing is an alternative to processing 103 to processing 106 in FIG. Symbol 1001 is
A process of searching a character script using the code of the output character as a key and reading the size B of the minimum convex polygon of the output character pattern;
Reference numeral 1002 is a process for searching a character book by using the code of the adjacent character as a key and reading the size C of the minimum convex polygon of the adjacent character pattern. Reference numeral 1003 is a minimum convex polygon of the character pattern of the output character and the adjacent character. Is a process for obtaining the ratio m of
代替方法(4)の例を第11図に示す。本処理は第1図
の処理104の代替である。符号1001は、出力文字のコー
ドをキーとして文字字書を検索し、出力文字の文字パタ
ーン変更要否フラグFを読込む処理、符号1102は、処理
1101で読込んだ変更要否フラグFにより、出力文字パタ
ーンを変更する必要性があるか否かを判定し、F=‘1'
ならば変更が必要であると判断して‘Yes'に分岐し、F
≠‘1'ならば変更が不要であると判断して‘No'に分岐
する処理である。An example of alternative method (4) is shown in FIG. This process is an alternative to the process 104 in FIG. Reference numeral 1001 is a process for searching a character book by using the output character code as a key, and reading the character pattern change necessity flag F of the output character. Reference numeral 1102 is a process.
Based on the change necessity flag F read in 1101, it is determined whether it is necessary to change the output character pattern, and F = '1'
If so, it is judged that the change is necessary and the process branches to'Yes' and F
If ≠ '1', it is determined that the change is not necessary and the process branches to'No '.
代替方法(5)の例を第12図に示す。本処理は第1図
の処理104の代替である。符号1201は、出力文字のコー
ドが文字パターン変更禁止テーブルに含まれていないか
どうかを判定しその結果に応じて分岐する処理である。
処理1201では、出力文字コードが変更禁止テーブルに含
まれていなければ文字パターン変更を行なうものと判断
して‘Yes'に分岐し、逆に変更禁止テーブルに含まれて
いれば文字パターン変更を行なわないものと判断して
‘No'に分岐する。An example of alternative method (5) is shown in FIG. This process is an alternative to the process 104 in FIG. Reference numeral 1201 is a process of determining whether the code of the output character is not included in the character pattern change prohibition table and branching according to the result.
In process 1201, if the output character code is not included in the change prohibition table, it is determined that the character pattern is changed, and the process branches to'Yes'. Conversely, if it is included in the change prohibition table, the character pattern is changed. Judge that there is not, and branch to 'No'.
代替方法(6)の例を第13図に示す。本処理は第1図
の処理104から処理106までの代替である。符号1301は、
黒地密度の基準値Dを読込む処理、符号1302は、出力文
字の文字パターン黒地密度Bと黒地密度の基準値Dとの
比mを求める処理である。処理1301で参照する黒地密度
基準値は、文字セツト内に含まれる文字全体の平均値を
用いたり、または当該出力文字の処理以前に出力済みの
文字群から得た平均値を用いたりする方法がある。FIG. 13 shows an example of the alternative method (6). This processing is an alternative to processing 104 to processing 106 in FIG. Reference numeral 1301 indicates
Reference numeral 1302 denotes a process of reading the reference value D of the black background density, and reference numeral 1302 denotes a process of obtaining the ratio m between the character pattern black background density B of the output character and the reference value D of the black background density. As the black background density reference value referred to in the process 1301, a method of using an average value of all the characters included in the character set or an average value obtained from a group of characters output before the processing of the output character is used. is there.
代替方法(7)の例を第14図に示す。本処理は第1図
の処理104の代替である。符号1401は、文字ピツチ・モ
ードEを読込む処理、符号1402は、処理1401で読込んだ
文字ピツチ・モードEが可変ピツチ・モードであるか否
かを判定し、その結果に応じて分岐する処理である。処
理1402では、文字ピツチ・モードEが可変ピツチ・モー
ドであれば文字パターン変更を行なうものと判断して
‘Yes'に分岐し、逆に文字ピツチ・モードEが固定ピツ
チ・モードであれば文字パターン変更を行なわないもの
と判断して‘No'に分岐する。An example of alternative method (7) is shown in FIG. This process is an alternative to the process 104 in FIG. Reference numeral 1401 denotes a process for reading the character pitch mode E, and reference numeral 1402 denotes whether or not the character pitch mode E read in the process 1401 is the variable pitch mode, and branches depending on the result. Processing. In the processing 1402, if the character pitch mode E is the variable pitch mode, it is determined that the character pattern is to be changed, and the processing branches to "Yes". Conversely, if the character pitch mode E is the fixed pitch mode, the character pattern is changed. Judge that the pattern is not changed and branch to'No '.
第1図に述べた例では、基準サイズまたは各種サイズ
の文字パターンが文字字書に保持されているものと仮定
し、同一文字枠サイズについて同一文字コードの文字パ
ターンを複数個保持することはないと仮定している。In the example described in FIG. 1, it is assumed that a character pattern of a reference size or various sizes is held in a character script, and a plurality of character patterns of the same character code are not held for the same character frame size. It is assumed that
しかし、この点については別の実施例が考えられる。
つまり、文字字書内に予め同一の文字枠サイズで字面の
サイズが異なるパターンを複数個保持する。条件によつ
て、これらのパターンのうちの1つを選択する手段を持
つ。この場合には、第1図の文字パターンの拡大縮小処
理を行なわずとも所望の文字パターンを文字字書から読
込んで用いることにより、本発明の目的を達成できる。
この方法はドツト文字による文字パターン保持方式を採
用した文字出力装置等で可能である。However, other embodiments are conceivable in this regard.
That is, a plurality of patterns having the same character frame size but different character sizes are held in advance in the character writing. It has means for selecting one of these patterns depending on conditions. In this case, the object of the present invention can be achieved by reading and using a desired character pattern from a character script without performing the character pattern enlargement / reduction processing of FIG.
This method can be applied to a character output device or the like employing a character pattern holding method using dot characters.
本実施例によれば、出力対象文字パターンと隣接文字
パターンの黒地密度等の性質の値の比率に応じて出力対
象文字パターンの字面サイズを変更し、かつ出力行中に
適切に配置することができる。According to the present embodiment, it is possible to change the character size of the output target character pattern in accordance with the ratio of the values of the properties such as the black background density of the output target character pattern and the adjacent character pattern, and to appropriately arrange them in the output line. it can.
本発明によれば、条件に応じて文字パターンのサイズ
とそれに伴う位置の調整ができるので、従来技術による
よりバランスのよい文字列の並びが得られるという効果
がある。この際、文字枠の配置方法には影響を与えない
ので、既存の配置プログラム,出力装置の機能が利用で
きる。According to the present invention, the size of a character pattern and the position of the character pattern can be adjusted in accordance with the conditions, so that a more balanced arrangement of character strings according to the related art can be obtained. At this time, since the method of arranging the character frame is not affected, the functions of the existing arrangement program and output device can be used.
第1図は本発明の一実施例の文字出力プログラムの動作
を示すフローチヤート、第2図は第1図の文字出力プロ
グラムを実行する出力装置の構成図、第3図は文字パタ
ーン変更前の出力例、第4図は第3図の文字パターン変
更により改良した例、第5図は文字パターンの出力行と
文字枠の配置に関係を示す図、第6図は文字パターン配
置位置を詳細に説明した図、第7図は骨格文字方式の説
明図、第8図と第9図と第10図と第11図と第12図と第13
図と第14図は文字パターン変更の代替処理を示すフロー
チヤートである。 101……文字コード等の読込み、102……骨格点座標等の
読込み、103……出力文字の黒地密度の読込み、104……
文字パターン変更テーブルの参照による判定、105……
隣接文字の黒地密度の読込み、106……黒地密度比の計
算、107……拡大縮小条件のしきい値の読込み、108……
拡大縮小の必要性の判定、109……文字パターン拡大縮
小率の決定、110……骨格点座標の退避、111……拡大縮
小処理、112……X方向補正値の決定、113……Y方向補
正値の決定、114……文字パターン移動、115……はみ出
しのチエツク、116……骨格点座標の回復、117……文字
パターンの生成・配置。FIG. 1 is a flowchart showing the operation of a character output program according to one embodiment of the present invention, FIG. 2 is a block diagram of an output device for executing the character output program of FIG. 1, and FIG. An output example, FIG. 4 is an example improved by changing the character pattern of FIG. 3, FIG. 5 is a diagram showing the relationship between the output line of the character pattern and the arrangement of the character frame, and FIG. The figure explained, FIG. 7 is an explanatory view of the skeleton character system, FIG. 8, FIG. 9, FIG. 10, FIG. 11, FIG. 12, FIG.
FIG. 14 and FIG. 14 are flow charts showing an alternative process of changing a character pattern. 101: Read character code, etc., 102: Read skeleton point coordinates, etc., 103: Read black background density of output characters, 104 ...
Judgment by referring to the character pattern change table, 105 ...
Reading the black background density of adjacent characters, 106 …… Calculating the black background density ratio, 107 …… Reading the scaling threshold value, 108 ……
Judgment of necessity of enlargement / reduction, 109: determination of character pattern enlargement / reduction rate, 110: retraction of skeleton point coordinates, 111: enlargement / reduction processing, 112: determination of X-direction correction value, 113: Y-direction Determination of correction value, 114: movement of character pattern, 115: check of protrusion, 116: recovery of skeleton point coordinates, 117: generation and arrangement of character pattern.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/26 650 B41J 3/12 L (72)発明者 下位 憲司 東京都国分寺市東恋ケ窪1丁目280番地 株式会社日立製作所中央研究所内 (72)発明者 国西 元英 東京都国分寺市東恋ケ窪1丁目280番地 株式会社日立製作所中央研究所内 (56)参考文献 特開 昭61−270785(JP,A) 特開 昭63−63091(JP,A)────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical display location G09G 5/26 650 B41J 3/12 L (72) Inventor Subordinate Kenji 1-280, Higashi Koikeku, Kokubunji, Tokyo Address: Central Research Laboratory of Hitachi, Ltd. (72) Inventor Motohide Kuniishi 1-280, Higashi Koigokubo, Kokubunji City, Tokyo Address: Central Research Laboratory of Hitachi, Ltd. (56) Reference JP-A-61-270785 (JP, A) Kaisho 63-63091 (JP, A)
Claims (3)
れる際に取り得る領域である文字枠とを対応付けて記憶
しておき、 記憶された文字字面を複数出力する際に、 文字字面の大きさは隣接する文字字面に基づいて変更
し、 変更された文字字面を前記文字枠の大きさの範囲内に出
力することを特徴とする文字出力方法。1. A character face and a character frame, which is an area that can be taken when the character face is output, are stored in advance in association with each other, and when a plurality of stored character faces are output, A character output method, wherein the size of the character face is changed based on the adjacent character face, and the changed character face is output within the range of the size of the character frame.
て、 大きさを変更する文字字面の大きさは、隣接する文字字
面間で文字字面の黒地密度を比較し、 該比較結果に基づいて変更することを特徴とする文字出
力方法。2. The character output method according to claim 1, wherein the size of the character face whose size is to be changed is compared based on the black background density of the character face between adjacent character faces, and is changed based on the comparison result. A character output method characterized by:
段と、 前記記憶手段に記憶された文字字面を複数出力する際
に、文字字面の大きさは隣接する文字字面に基づいて変
更する変更手段と、 前記変更手段にて変更された文字字面および出力すべき
他の文字字面を出力する出力手段とを有することを特徴
とする文字出力装置。3. A storage unit for storing a character face to be output in advance, and a change for changing the size of the character face based on an adjacent character face when outputting a plurality of character faces stored in the storage unit. A character output device comprising: a unit and an output unit that outputs the character face changed by the changing unit and another character face to be output.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63154694A JP2669539B2 (en) | 1988-06-24 | 1988-06-24 | Character output method and character output device |
KR1019890008426A KR960009837B1 (en) | 1988-06-24 | 1989-06-19 | Character output method |
CN89104257A CN1014836B (en) | 1988-06-24 | 1989-06-23 | Character output method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63154694A JP2669539B2 (en) | 1988-06-24 | 1988-06-24 | Character output method and character output device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH025095A JPH025095A (en) | 1990-01-09 |
JP2669539B2 true JP2669539B2 (en) | 1997-10-29 |
Family
ID=15589901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63154694A Expired - Fee Related JP2669539B2 (en) | 1988-06-24 | 1988-06-24 | Character output method and character output device |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP2669539B2 (en) |
KR (1) | KR960009837B1 (en) |
CN (1) | CN1014836B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09156158A (en) * | 1995-12-06 | 1997-06-17 | Nec Corp | Printer |
US5909519A (en) * | 1996-05-21 | 1999-06-01 | Hewlett-Packard Company | Method for printing pseudo-bold characters at arbitrary orientations, scaling, and resolutions |
KR20030042618A (en) * | 2001-11-23 | 2003-06-02 | 이경희 | Character and graphic image editing method of cutting plotter with computer |
CN110077138B (en) * | 2019-04-24 | 2021-02-05 | 厦门联泰标识信息科技有限公司 | Multi-state jet printing method for high-resolution ink jet printer |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62103693A (en) * | 1985-10-31 | 1987-05-14 | キヤノン株式会社 | Script display system |
-
1988
- 1988-06-24 JP JP63154694A patent/JP2669539B2/en not_active Expired - Fee Related
-
1989
- 1989-06-19 KR KR1019890008426A patent/KR960009837B1/en not_active IP Right Cessation
- 1989-06-23 CN CN89104257A patent/CN1014836B/en not_active Expired
Also Published As
Publication number | Publication date |
---|---|
JPH025095A (en) | 1990-01-09 |
CN1039134A (en) | 1990-01-24 |
KR960009837B1 (en) | 1996-07-24 |
KR900000791A (en) | 1990-01-31 |
CN1014836B (en) | 1991-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4124494B2 (en) | Replacement computer font supply method and apparatus | |
US5771034A (en) | Font format | |
JPS63271290A (en) | Character pattern generation system | |
KR970008546B1 (en) | How to handle text or figures | |
US20060256116A1 (en) | Method and system of character placement in opentype fonts | |
JP2669539B2 (en) | Character output method and character output device | |
JP3037854B2 (en) | Character generation method and device | |
JPH02270019A (en) | Generation system for high quality character pattern | |
JPH02280195A (en) | Character generator | |
KR100227178B1 (en) | Character generator | |
JP2562458B2 (en) | Character generation method for computer system | |
JP3057978B2 (en) | Character generator | |
JPH0777969A (en) | Font rasterising device and method thereof | |
JP3092172B2 (en) | Data converter | |
JP2962525B2 (en) | Text block recognition method | |
JP2835056B2 (en) | High quality character pattern generation method | |
JP2965429B2 (en) | Character output device | |
JPS63224965A (en) | Character generator | |
JPH08101675A (en) | Font developing device | |
JP3055306B2 (en) | Data output device | |
JP3473046B2 (en) | Non-erected character drawing method and apparatus | |
JPS62282381A (en) | Continuous character forming device | |
JPH0784739A (en) | Data converter | |
JPH01166967A (en) | Pattern data forming method and pattern generator containing said pattern data | |
JPH11190990A (en) | Outline font displaying and printing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |