JPH0683315A - Character string output device - Google Patents

Character string output device

Info

Publication number
JPH0683315A
JPH0683315A JP4255372A JP25537292A JPH0683315A JP H0683315 A JPH0683315 A JP H0683315A JP 4255372 A JP4255372 A JP 4255372A JP 25537292 A JP25537292 A JP 25537292A JP H0683315 A JPH0683315 A JP H0683315A
Authority
JP
Japan
Prior art keywords
character
character string
frame
character frame
characters
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
JP4255372A
Other languages
Japanese (ja)
Other versions
JP3211404B2 (en
Inventor
Shin Mikuni
伸 三国
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP25537292A priority Critical patent/JP3211404B2/en
Priority to US08/113,835 priority patent/US5506942A/en
Publication of JPH0683315A publication Critical patent/JPH0683315A/en
Application granted granted Critical
Publication of JP3211404B2 publication Critical patent/JP3211404B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily output a character string which is well balanced and gives the feeling of depth and a character string in a shape which is rich in variation at a high speed by giving natural longitudinal and lateral connections to the respective characters constituting the character string. CONSTITUTION:The character string of a key operation part 1 to be outputted is specified and an area held between two lines is specified as a character string arrangement area. A character frame generating device 5 determines character frame coordinates of the respective characters by equally dividing the character arrangement area by the number of the characters of the character string. Then the character frame generator 5 corrects the lateral width of each character frame according to the rate of the character frame to the character string arrangement area. Then a print data generation part 6 deforms the respective characters to size corresponding to the obtained character frame, and arranges and prints the characters in corresponding character frames.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、ワードプロセッサ等
において、出力対象の文字列を予め指定された範囲内に
配置出力する文字列出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string output device for arranging and outputting a character string to be output in a word processor or the like within a predetermined range.

【0002】[0002]

【従来の技術】従来、ワードプロセッサにおいて、文書
中の一部の文字列を強調する場合には、予めメーカサイ
ドによって決められている網かけ、反転、肉太、アンダ
ーライン、斜体、回転等によって所望する文字列に修飾
をかけて強調する方法、また、予め指定した線分に沿っ
て文字列を配置することにより文字列を円弧状、波形状
等に出力して強調する方法が知られている。
2. Description of the Related Art Conventionally, in a word processor, when emphasizing a part of a character string in a document, it is desired to use a halftone pattern, a reverse pattern, a thick line, an underline, an italic pattern, a rotation, etc., which is predetermined by the manufacturer. There is known a method of emphasizing a character string by applying a decoration, and a method of arranging the character string along a predesignated line segment to output the character string in an arc shape, a wavy shape, etc. .

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うにして文字列を強調する方法では予め決められた形態
でしか行うことができず、極めて自由度が低く、ユーザ
の要望に十分応じきれないという欠点があった。ところ
で、例えば、任意の文字列を強調する為に、その文字列
を構成する各文字の倍率を連続的に変化させ、先頭の文
字から末尾の文字に向かって文字を徐々に小さくしてゆ
けば、奥行き感のある文字列を出力させることができ、
文字列を強調する一態様として極めて効果的である。し
かし、このような強調を行う場合、従来においては、各
文字の縦、横の倍率を1文字毎に設定しながら、文字の
高さが高い場合は文字の横幅が広くなるように、逆に文
字の高さが低い場合は文字の横幅が狭くなるようにする
ことは極めて困難であり、バランスの取れた自然な奥行
き感のある文字列を得ることは事実上不可能に近く、誰
でも容易に自然な繋がりを持った文字列を得ることはで
きなかった。この発明の課題は、文字列を構成する各文
字の縦、横に自然な繋がりを持たせ、バランスの取れた
奥行き感のある文字列や変化に富んだ形状の文字列を簡
単かつ高速に出力できるようにすることである。
However, the method of emphasizing a character string in this way can be performed only in a predetermined form, has a very low degree of freedom, and cannot sufficiently meet the user's request. There was a flaw. By the way, for example, in order to emphasize an arbitrary character string, the magnification of each character that constitutes the character string is continuously changed, and the character is gradually reduced from the first character to the last character. , You can output a character string with a sense of depth,
It is extremely effective as one mode for emphasizing the character string. However, in the case of performing such emphasis, in the past, while setting the vertical and horizontal magnifications of each character for each character, if the height of the character is high, the width of the character becomes wide. It is extremely difficult to make the width of the characters narrow when the height of the characters is low, and it is virtually impossible to obtain a character string with a well-balanced and natural sense of depth. I couldn't get a string with a natural connection to. An object of the present invention is to easily and quickly output a character string having a well-balanced depth feeling and a character string having a variety of shapes by providing a natural connection in the vertical and horizontal directions of each character forming the character string. It is to be able to do it.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。文字列指定手段は出力対象の文字列を指定す
るキー入力装置等である。配置範囲指定手段は少なくと
も2本の線で挾まれた領域を文字列配置範囲として指定
するキー入力装置等で、例えば、直線、円弧、ベージュ
ール曲線等の中から任意の線を選択指定する。文字枠決
定手段はこの配置範囲指定手段で指定された文字列配置
範囲を前記文字列指定手段で指定された文字列の文字数
で均等分割することにより文字数分の文字枠を決定す
る。補正手段は前記配置範囲指定手段で指定された文字
列配置範囲に対し、前記文字枠決定手段によって決定さ
れた各文字枠が占める割合によって各文字枠の横幅を補
正する表示装置や印刷装置等である。出力手段はこの補
正手段によって補正された文字枠に応じた大きさに各文
字を変形し、対応する文字枠内に配置出力する表示装置
や印刷装置等である。
The means of the present invention are as follows. The character string designating means is a key input device or the like for designating a character string to be output. The arrangement range designation means is a key input device or the like that designates a region sandwiched by at least two lines as a character string placement range, and selects and designates an arbitrary line from, for example, a straight line, a circular arc, a Beigele curve or the like. The character frame determining means determines the character frames for the number of characters by equally dividing the character string arrangement range specified by the arrangement range specifying means by the number of characters of the character string specified by the character string specifying means. The correction means is a display device, a printing device, or the like that corrects the width of each character frame according to the ratio of each character frame determined by the character frame determination means to the character string arrangement range specified by the arrangement range specification means. is there. The output unit is a display device, a printing device, or the like that transforms each character into a size corresponding to the character frame corrected by the correction unit, and arranges and outputs the character in the corresponding character frame.

【0005】[0005]

【作用】この発明の手段の作用は次の通りである。い
ま、図3を参照してこの発明の手段の作用を具体的に説
明する。ここで、図3は2つの直線によって挾まれた領
域が文字列配置範囲として指定された場合における文字
枠の分割状態を示し、(A)は補正前、(B)は補正後
の分割状態である。この場合、配置範囲指定手段により
2本の直線を指定すると共に、その一方を水平な線、他
方をこの線に対向する斜線とすることにより2本の直線
で挾まれた台形の領域を文字列配置範囲として指定して
おく。この状態において、文字列指定手段によって指定
された文字列に対する出力指令に応答し、文字枠決定手
段は予め指定された文字列配置範囲を指定文字列の文字
数で均等分割することにより各文字が配置出力される文
字枠を決定する。ここで、図3の(A)は文字数「6」
で均等分割した場合で、台形の文字列配置範囲は、6つ
の文字枠に分割される。この場合、各文字枠の横幅がそ
れぞれ同じ大きさになるように均等分割される為、各文
字枠は図中左側が著しく縦長で、右側が横長となり、極
めてアンバランスなものとなる。この為、補正手段は配
置範囲指定手段で指定された文字列配置範囲に対し、文
字枠決定手段によって決定された各文字枠が占める割合
によって各文字枠の横幅を補正する。これによって図3
の(B)に示す如く、各文字枠の形は似たようになり、
自然な繋がりを持った文字枠が形成され、出力手段はこ
の文字枠に応じた大きさに各文字を変形し、対応する文
字枠内に配置出力する。したがって、文字列を構成する
各文字の縦、横に自然な繋がりを持たせ、バランスの取
れた奥行き感のある文字列や変化に富んだ形状の文字列
を簡単かつ高速に出力することができる。
The operation of the means of the present invention is as follows. Now, the operation of the means of the present invention will be specifically described with reference to FIG. Here, FIG. 3 shows the division state of the character frame when the area sandwiched by the two straight lines is designated as the character string arrangement range, (A) shows the division state before correction, and (B) shows the division state after correction. is there. In this case, two straight lines are designated by the arrangement range designating means, one of them is a horizontal line, and the other is a slanting line that opposes this line, so that the trapezoidal region sandwiched by the two straight lines is a character string. Specify it as the placement range. In this state, in response to the output command for the character string designated by the character string designating means, the character frame determining means divides the previously designated character string layout range into equal parts by the number of characters of the designated character string to arrange each character. Determines the output text box. Here, in FIG. 3A, the number of characters is “6”.
In the case of even division, the trapezoidal character string arrangement range is divided into six character frames. In this case, since the widths of the respective character frames are equally divided, the left side of each character frame in the drawing is remarkably vertical and the right side thereof is horizontally long, resulting in an extremely unbalanced state. Therefore, the correction unit corrects the lateral width of each character frame according to the ratio of each character frame determined by the character frame determination unit to the character string arrangement range specified by the arrangement range specification unit. As a result,
As shown in (B) of, the shape of each character frame becomes similar,
A character frame having a natural connection is formed, and the output means transforms each character into a size corresponding to this character frame and arranges and outputs it in the corresponding character frame. Therefore, it is possible to easily and rapidly output a character string with a well-balanced sense of depth and a character string with a variety of shapes by giving natural connection in the vertical and horizontal directions of each character that constitutes the character string. .

【0006】[0006]

【第1実施例】以下、図1〜図5を参照して第1実施例
を説明する。図1はワードプロセッサにおける文字列出
力装置のブロック構成図である。キー操作部1は各種の
文字キーや機能命令キー等を有し、キー操作部1から入
力された文字列データはCPUによって構成された主制
御部2に取り込まれたのち表示部3のテキスト画面に表
示出力されたり、配置文字メモリ4に格納される。この
配置文字メモリ4は印刷対象としての文字列データの他
に、この文字列データに対応してこの文字列が配置印刷
される領域(文字列配置範囲)を記憶保持するもので、
キー操作部1から任意の文字列配置範囲が指定される
と、主制御部2はそれを配置文字メモリ4に格納する。
ここで、文字列配置範囲は2本の線により挾まれる領域
によって特定されるもので、キー操作部1から入力指定
される。この2本の線の線種として本実施例において
は、直線、ベージュール曲線、円弧が予め用意されてお
り、その中から任意の線種を指定すると共に2本の線で
挾まれる文字列配置範囲の形状を任意に指定すると、こ
の文字列配置範囲を表わす数値データ(形状、位置デー
タ)が配置文字メモリ4に格納される。なお、2本の線
は1つの媒介変数によりその線上の点が表わされるよう
になっており、線の開始端の媒介変数は“0”、終端の
媒介変数は“1”として表わされ、線上の任意の点の媒
介変数は1以下の小数値となる。この配置文字メモリ4
内のデータはキー操作部1からの印刷指令に応答して読
み出され、主制御部2から文字枠発生装置5に送られ
る。
[First Embodiment] A first embodiment will be described below with reference to FIGS. FIG. 1 is a block diagram of a character string output device in a word processor. The key operation unit 1 has various character keys and function command keys, and the character string data input from the key operation unit 1 is taken into a main control unit 2 formed by a CPU and then a text screen of a display unit 3 is displayed. Is displayed and output or stored in the arranged character memory 4. The arranged character memory 4 stores and holds, in addition to the character string data to be printed, an area (character string arrangement range) in which the character string is arranged and printed corresponding to the character string data.
When an arbitrary character string arrangement range is designated by the key operation unit 1, the main control unit 2 stores it in the arranged character memory 4.
Here, the character string arrangement range is specified by the area sandwiched by the two lines, and is input and designated by the key operation unit 1. In the present embodiment, as the line type of these two lines, a straight line, a Beigele curve, and an arc are prepared in advance, and an arbitrary line type is designated from among them and a character string sandwiched by the two lines is specified. When the shape of the arrangement range is arbitrarily designated, numerical data (shape, position data) representing this character string arrangement range is stored in the arrangement character memory 4. It should be noted that the two lines are designed so that a point on the line is represented by one parameter, the parameter at the start of the line is represented as "0", and the parameter at the end is represented as "1", The parameter of any point on the line is a decimal value of 1 or less. This arrangement character memory 4
The data inside is read in response to a print command from the key operation unit 1 and sent from the main control unit 2 to the character box generator 5.

【0007】文字枠発生装置5は図2に示す様に構成さ
れたもので、文字列配置範囲を表わす数値データと印刷
対象である文字列を構成する文字数とに基づいて文字枠
座標(文字枠を定義する4隅の位置座標)を文字数分発
生出力し、1文字ずつ印刷データ発生部6に順次与え
る。この場合、主制御部2は印刷対象の文字列をその先
頭から1文字ずつ配置文字メモリ4から読み出して印刷
データ発生部6に与える。
The character box generator 5 is constructed as shown in FIG. 2, and based on the numerical data representing the character string arrangement range and the number of characters forming the character string to be printed, the character box coordinate (character frame The position coordinates of the four corners defining the above are generated and output for the number of characters, and are sequentially given to the print data generating unit 6 character by character. In this case, the main control unit 2 reads out the character string to be printed one character at a time from the beginning of the character string 4 and gives it to the print data generating unit 6.

【0008】印刷データ発生部6は配置文字メモリ4か
ら1文字毎に送られて来る文字コードによってキャラク
タジェネレータ7をアクセスし、当該する文字パターン
を読み出すと共に、この文字パターンを文字枠発生装置
5から送られて来た対応する文字枠座標に基づいてその
文字枠に応じた大きさに変形し、この文字枠内に収まる
位置に配置してプリンタ制御部8に送る。プリンタ制御
部8は印刷データ発生部6から送られて来た文字パター
ンを内部バッファ(図示せず)に蓄え、プリンタ9を駆
動して印字出力させる。なお、プリンタ9はサーマルプ
リンタや液晶プリンタ等のドットプリンタによって構成
されたものである。
The print data generator 6 accesses the character generator 7 by the character code sent from the arranged character memory 4 for each character, reads the relevant character pattern, and outputs this character pattern from the character frame generator 5. It is transformed into a size corresponding to the character frame based on the corresponding coordinate of the character frame that has been sent, and it is arranged in a position that fits within this character frame and sent to the printer control unit 8. The printer control unit 8 stores the character pattern sent from the print data generation unit 6 in an internal buffer (not shown) and drives the printer 9 to print it out. The printer 9 is a dot printer such as a thermal printer or a liquid crystal printer.

【0009】次に、文字枠発生装置5の構成を図2を参
照して詳述する。図2は文字枠発生装置5のブロック構
成図である。文字列配置範囲レジスタ5−1、文字数レ
ジスタ5−2は主制御部2から送られて来たデータがセ
ットされるもので、文字列配置範囲レジスタ5−1は2
本の線で挾まれた領域を表わす形状、位置を数値として
保持する数値レジスタであり、文字数レジスタ5−2は
文字列を構成する総文字数を保持する数値レジスタであ
る。文字枠発生制御部5−3は文字列配置範囲レジスタ
5−1、文字数レジスタ5−2の値にしたがって1文字
ずつ文字枠座標を発生させる為の一連の動作を制御する
もので、文字枠発生装置5を構成する各部へ制御信号を
与える。キー操作部1から主制御部2を介して文字枠発
生制御部5−3に印刷指令が与えられると、文字枠発生
制御部5−3は先ず単純分割変数値発生部5−4を駆動
させる。
Next, the structure of the character box generator 5 will be described in detail with reference to FIG. FIG. 2 is a block diagram of the character box generator 5. The data sent from the main control unit 2 is set in the character string arrangement range register 5-1 and the character number register 5-2.
The number register 5-2 is a numerical value register that holds the shape and position representing the area sandwiched by the lines of the book as numerical values, and the character number register 5-2 is the numerical value register that holds the total number of characters that make up the character string. The character frame generation control unit 5-3 controls a series of operations for generating character frame coordinates character by character according to the values of the character string arrangement range register 5-1 and the character number register 5-2. A control signal is given to each part of the device 5. When a print command is given from the key operation unit 1 to the character frame generation control unit 5-3 via the main control unit 2, the character frame generation control unit 5-3 first drives the simple division variable value generation unit 5-4. .

【0010】単純分割変数値発生部5−4は媒介変数
“0”〜“1”を文字数レジスタ5−2の値にしたがっ
て均等に分割することにより文字列を構成する各文字に
おける文字開始位置(文字の左側位置)と文字終了位置
(文字の右側位置)の媒介変数の値を発生する。即ち、
例えば文字数が「4」の場合、媒介変数はt=0、t=
0.25、t=0.5、t=0.75、t=1となり、
これによって発生された各媒介変数は変数値レジスタ・
選択出力部5−5の変数値バッファレジスタに格納され
る。ここで、文字枠発生制御部5−3は文字列を構成す
る各文字のうちその先頭文字から1文字ずつ文字の開始
位置とその文字の終了位置の媒介変数を座標計算装置5
−6に送る様に変数値レジスタ・選択出力部5−5に対
して転送指令を与える。
The simple division variable value generation unit 5-4 divides the intermediary variables "0" to "1" evenly according to the value of the number-of-characters register 5-2 so that the character start position ( Generates the values of the parameters for the left position of the character) and the end position of the character (right position of the character). That is,
For example, when the number of characters is “4”, the parameter is t = 0, t =
0.25, t = 0.5, t = 0.75, t = 1,
Each parameter generated by this is a variable value register
It is stored in the variable value buffer register of the selection output unit 5-5. Here, the character box generation control unit 5-3 uses the coordinate calculation device 5 to set the parameter of the character start position and the character end position one by one from the first character of the characters constituting the character string.
A transfer command is given to the variable value register / selection output unit 5-5 so as to be sent to -6.

【0011】座標計算装置5−6は文字列配置範囲レジ
スタ5−1から文字列配置範囲を定義する2本の線を表
わす数値データを読み出し、変数値レジスタ・選択出力
部5−5から送られて来た1文字分の媒介変数(文字の
開始・終了の媒介変数)の値から2本の線の上に乗るそ
れぞれ2つの点(合計4つの点)の位置座標を計算し、
これを文字枠座標として文字枠バッファ5−7に格納す
る。この場合、文字枠座標は文字枠の4隅の位置を表わ
す平面座標で、文字枠バッファ5−7には座標計算装置
5−6によって1文字ずつ発生された文字枠座標が記憶
される。このようにして文字枠バッファ5−7に収めら
れた文字枠は文字列配置範囲を単に文字数で均等分割す
ることによって得られたもので、各文字枠の形にバラツ
キがあり、自然な繋がりがない場合もあるので、本実施
例においてはこれを補正して各文字枠の形を近似させて
自然な繋がりを持たせる為に文字枠発生装置5内には面
積算出装置5−8、面積変換式変数値発生部5−9が設
けられている。
The coordinate calculator 5-6 reads out numerical data representing two lines defining the character string arrangement range from the character string arrangement range register 5-1 and sends it from the variable value register / selection output unit 5-5. Calculate the position coordinates of two points (four points in total) on each of the two lines from the value of the parameter for one character (the parameter for the start and end of the character).
This is stored in the character frame buffer 5-7 as character frame coordinates. In this case, the character frame coordinates are plane coordinates representing the positions of the four corners of the character frame, and the character frame buffer 5-7 stores the character frame coordinates generated one by one by the coordinate calculator 5-6. The character frames stored in the character frame buffer 5-7 in this way are obtained by simply dividing the character string arrangement range by the number of characters, and there is variation in the shape of each character frame, resulting in a natural connection. Since there is a case where there is no case, in the present embodiment, in order to correct this and approximate the shapes of the character frames to have a natural connection, the area calculation device 5-8 and the area conversion device 5 are provided in the character frame generation device 5. An expression variable value generator 5-9 is provided.

【0012】面積算出装置5−8は文字枠バッファ5−
7から各文字枠座標を読み出し、これに基づいて各文字
枠の占める面積を文字枠毎に求めると共に、全ての文字
枠の面積の総和を求めて面積変換式変数値発生部5−9
に与える。面積変換式変数値発生部5−9は面積算出装
置5−8によって求められた各種の面積を元に新たな媒
介変数の値を算出するもので、これによって得られた新
たな媒介変数を変数値レジスタ・選択出力部5−5の変
換値バッファレジスタにセットすることにより、この新
たな媒介変数に基づいて文字枠座標の計算を再実行す
る。
The area calculation device 5-8 is a character frame buffer 5-
Each character frame coordinate is read from 7, and the area occupied by each character frame is calculated for each character frame based on this, and the total area of all character frames is calculated to obtain the area conversion formula variable value generation unit 5-9.
Give to. The area conversion formula variable value generation unit 5-9 calculates the value of a new parameter based on various areas obtained by the area calculation device 5-8. The new parameter thus obtained is used as a variable. By setting in the converted value buffer register of the value register / selection output unit 5-5, the calculation of the character frame coordinates is re-executed based on this new parameter.

【0013】次に、本実施例の動作を説明する。いま、
図3に示す様に、文字列配置範囲として2つの直線L
1、L2によって挾まれた領域がキー操作部1から指定
されたものとし、また出力対象として指定された文字列
は6文字構成とする。この状態において、キー操作部1
から印刷指令を与えると、文字枠発生装置5にはその文
字列配置範囲を表わす数値データと文字数が与えられ、
対応する文字列配置範囲レジスタ5−1、文字数レジス
タ5−2にセットされる。すると、文字枠発生装置5に
おいて、先ず、単純分割変数値発生部5−4が駆動さ
れ、媒介変数“0”〜“1”を文字数「6」で均等分割
することにより各文字の媒介変数t0=0、t1=0.
167、t2=0.333、t3=0.499、t4=
0.667、t5=0.833、t6=1を求め、変数
値レジスタ・選択出力部5−5にセットする。なお、図
3においては、ある文字の終了側(右側)とその隣りの
文字の開始側(左側)が同一となるように設定し、文字
間ピッチをあけないようにしているが、これは説明の簡
略化を図る為である。
Next, the operation of this embodiment will be described. Now
As shown in FIG. 3, two straight lines L are used as the character string arrangement range.
It is assumed that the area sandwiched by 1 and L2 is designated by the key operation unit 1, and the character string designated as the output target has 6 characters. In this state, the key operation unit 1
When a print command is given from, the character box generator 5 is provided with numerical data representing the character string arrangement range and the number of characters,
It is set in the corresponding character string arrangement range register 5-1 and character number register 5-2. Then, in the character box generation device 5, first, the simple division variable value generation unit 5-4 is driven to equally divide the parametric variables "0" to "1" by the number of characters "6", and thereby the parametric variable t0 of each character. = 0, t1 = 0.
167, t2 = 0.333, t3 = 0.499, t4 =
0.667, t5 = 0.833, t6 = 1 are obtained and set in the variable value register / selection output unit 5-5. In FIG. 3, the end side (right side) of a certain character and the start side (left side) of the adjacent character are set to be the same, and no inter-character pitch is set, but this is explained. This is for the purpose of simplifying.

【0014】次に、文字枠発生制御部5−3は1番目の
文字の開始と終了の媒介変数を座標計算装置5−6に送
るように変数値レジスタ・選択出力部5−5に指令し、
座標計算装置5−6を駆動させる。すると、座標計算装
置5−6は文字列配置範囲レジスタ5−1からの2本の
線を表わすデータと変数値レジスタ・選択出力部5−5
からの媒介変数とから2本の線に乗るそれぞれ2つの点
の座標を計算する。この場合の座標計算は、 X=(x2−x1)t+x2 Y=(y2−y1)t+
1 ただし、(x1、y1)=線の開始端座標、(x2、y2
=線の終端座標。なお、 文字枠座標を計算するとき文
字間の隙間があかないように計算する。ここで、1番目
の文字枠座標を求めたらそれを文字枠バッファ5−7に
書き込む。次の2番目の文字枠座標についても同様の動
作を繰り返すことによって求め、以下、全文字分の文字
枠座標を求める。
Next, the character box generation control unit 5-3 commands the variable value register / selection output unit 5-5 to send the parameter for the start and end of the first character to the coordinate calculation unit 5-6. ,
The coordinate calculation device 5-6 is driven. Then, the coordinate calculation device 5-6 receives the data representing the two lines from the character string arrangement range register 5-1 and the variable value register / selection output unit 5-5.
From the parameter from and the coordinates of two points on each of the two lines are calculated. Coordinate calculation in this case, X = (x 2 -x 1 ) t + x 2 Y = (y 2 -y 1) t +
y 1 where (x 1 , y 1 ) = starting coordinate of the line, (x 2 , y 2 ).
= End coordinates of the line. When calculating the character frame coordinates, make sure that there are no gaps between characters. Here, when the first character box coordinate is obtained, it is written in the character box buffer 5-7. The same operation is repeated for the next second character box coordinate, and then the character box coordinates for all characters are obtained.

【0015】このようにして求められた全文字分の文字
枠座標は単純分割変数値発生部5−4で発生された等差
数列的な媒介変数によって求められた文字枠座標であ
り、図3の(A)に示す如く各文字枠の形状には統一性
はなく左側の第1番目の文字枠は著しく縦長で、逆に右
側の第6番目の文字枠は横長となっており、文字枠の形
はアンバランスなものとなる。
The character frame coordinates of all the characters thus obtained are the character frame coordinates obtained by the parametric variables which are generated by the simple division variable value generation unit 5-4 and are shown in FIG. As shown in (A) of Figure 5, the shapes of the character frames are not uniform, the first character frame on the left side is remarkably vertical, and conversely, the sixth character frame on the right side is horizontally long. The shape of is unbalanced.

【0016】そこで、本実施例においては、等差数列的
な媒介変数を求めた後、面積算出装置5−8を駆動させ
る。すると、面積算出装置5−8は文字枠バッファ5−
7の内容に基づいて各文字枠の占める面積を文字枠毎に
計算すると共に各文字枠の面積の総和を求める。ここ
で、図3の(A)に示すS1、S2、S3、S4、S
5、S6は各文字枠に対応する面積を示している。面積
変換式変数値発生部5−9はある文字枠に着目した場
合、文字列の左端から着目した文字枠の右端までの面積
の和を総面積S0で割ることによって着目した文字枠の
右側の媒介変数の値を算出する。次に、右隣の文字枠に
着目し、その面積を上述の面積の和に加え、これを総面
積S0で割ってこの文字枠の右側の媒介変数を求める。
つまり、各媒介変数t1、t2、t3、t4、t5は t1=S1/S0、t2=S1+S2/S0、t3=S1
+S2+S3/S0、t4=S1+S2+S3+S4/
S0、t5=S1+S2+S3+S4+S5/S0 によって求められる。
Therefore, in this embodiment, the area calculating device 5-8 is driven after the parametric variables in the arithmetic progression are obtained. Then, the area calculation device 5-8 causes the character frame buffer 5-
Based on the contents of 7, the area occupied by each character frame is calculated for each character frame, and the total area of each character frame is calculated. Here, S1, S2, S3, S4, S shown in FIG.
5 and S6 indicate the areas corresponding to the respective character frames. When paying attention to a certain character frame, the area conversion formula variable value generation unit 5-9 divides the sum of the areas from the left end of the character string to the right end of the focused character frame by the total area S0 to determine the right side of the focused character frame. Calculate the value of the parameter. Next, paying attention to the character box on the right side, the area is added to the sum of the above areas, and this is divided by the total area S0 to obtain the parameter on the right side of this character box.
That is, each of the parameters t 1 , t 2 , t 3 , t 4 , t 5 is t 1 = S1 / S0, t 2 = S1 + S2 / S0, t 3 = S1
+ S2 + S3 / S0, t 4 = S1 + S2 + S3 + S4 /
S0, t 5 = S1 + S2 + S3 + S4 + S5 / S0.

【0017】これによって変数値レジスタ・選択出力部
5−5内には新しい変数値列が揃うことになる。この新
しい媒介変数を用いて座標計算装置5−6は再度座標計
算を行い、各文字枠座標を求めて文字枠バッファ5−7
に再セットする。図3の(B)はこの場合の文字枠を示
し、各文字枠の形は似たようなものとなり、文字枠の高
さが高ければその横幅も広くなり、逆に文字枠の高さが
低ければその横幅も狭くなって自然な繋がりを持った文
字枠が得られる。ここで、文字枠バッファ5−7内に全
文字分の文字枠座標が揃うと文字枠発生制御部5−3は
主制御部2に対して演算終了を通知する。すると、文字
枠発生装置5の文字枠バッファ5−7からは文字枠座標
が1文字単位毎に取り出され、印刷データ発生部6に送
られる。この際、印刷データ発生部6は配置文字メモリ
4から1文字ずつ読み出された文字コードを文字パター
ンに変換し、この文字パターンを文字枠に応じた大きさ
に変換し、プリンタ9から印字出力させる。
As a result, new variable value sequences are prepared in the variable value register / selection output unit 5-5. The coordinate calculation device 5-6 performs the coordinate calculation again by using this new parameter, calculates each character frame coordinate, and calculates the character frame buffer 5-7.
To reset. FIG. 3B shows the character frame in this case. The shape of each character frame is similar, and if the height of the character frame is high, the width thereof is wide, and conversely, the height of the character frame is high. If the width is low, the width will be narrow and a character frame with a natural connection can be obtained. Here, when the character box coordinates for all the characters are aligned in the character box buffer 5-7, the character box generation controller 5-3 notifies the main controller 2 of the end of the calculation. Then, the character frame coordinates are extracted from the character frame buffer 5-7 of the character frame generator 5 for each character and sent to the print data generator 6. At this time, the print data generation unit 6 converts the character code read out character by character from the arranged character memory 4 into a character pattern, converts this character pattern into a size corresponding to the character frame, and prints out from the printer 9. Let

【0018】図4は文字配置範囲として2本の円弧に挾
まれた領域を用いて9文字構成の文字列を配置印刷する
場合において、この文字配置範囲内に割り当てられた文
字枠の分割状態を示した図で、(A)は補正前、(B)
は補正後の分割状態である。この様に2本の円弧を用い
る場合には角度を媒介変数とし、以下、上述した直線の
場合と同様の動作が行われる。ここで、単純分割による
補正前の文字枠は図4の(A)に示す如く中央部が著し
く縦長となり、左右両側部が著しく横長となるが、面積
計算を用いて補正演算を行った後の各文字枠は図4の
(B)に示す如く、やや縦長で、それぞれ似た形とな
る。
FIG. 4 shows the division state of the character frames allocated within this character arrangement range when the character arrangement of 9 characters is arranged and printed by using the region sandwiched by two arcs as the character arrangement range. In the figure shown, (A) is before correction, (B)
Is the corrected division state. When two arcs are used in this way, the angle is used as a parameter, and the same operation as in the case of the straight line described above is performed. Here, as shown in FIG. 4 (A), the character frame before correction by simple division has a significantly long central portion and a large horizontal portion on both left and right sides, but after the correction calculation is performed using the area calculation. As shown in FIG. 4B, each character frame is slightly vertically long and has a similar shape.

【0019】図5は文字列配置範囲として2本のベージ
ュール曲線に挾まれた領域を用いて9文字構成の文字列
を配置印刷する場合において、この文字列配置範囲内に
割り当てられた文字枠の分割状態を示した図で、(A)
は補正前、(B)は補正後の分割状態である。ここで、
単純分割による補正前の各文字枠は図5の(A)に示す
如く、その横幅および各文字枠の高さの変化量が一定に
近い状態で単純分割されているが、各文字枠の形状はア
ンバランスで、右側が著しく縦長となり、左側が著しく
横長となる。これに対し、面積計算を用いて補正演算を
行った後の各文字枠は図5の(B)に示す如くやや縦長
でそれぞれ似た形となり、自然な繋がりを持ったものと
なる。
FIG. 5 shows a character frame allocated within the character string arrangement range when a character string having 9 characters is arranged and printed by using an area sandwiched by two Beigele curves as the character string arrangement range. In the figure showing the divided state of (A)
Shows the state before the correction, and (B) shows the state after the correction. here,
As shown in FIG. 5A, each character frame before correction by simple division is simply divided in a state in which the width and the change amount of the height of each character frame are close to constant, but the shape of each character frame Is unbalanced, the right side is significantly longer and the left side is significantly longer. On the other hand, after the correction calculation is performed by using the area calculation, the character frames are slightly vertically long and have a similar shape as shown in FIG. 5B, and have natural connection.

【0020】このように本実施例においては、単純分割
変数値発生部5−4で等差数列的な媒介変数を求め、そ
れに応じて文字枠座標を決定した後、各文字枠が占める
面積から新しい媒介変数を求め、この新しい媒介変数か
ら文字枠の横幅を補正するようにしたから、単純分割に
比べて自然な感じの文字列形状を高速に得ることができ
る。また、文字列とその配列範囲を単に指定すればよく
簡単な操作で所望する文字列形状を得ることができる。
As described above, in the present embodiment, the simple division variable value generation unit 5-4 obtains parametric variables in the form of arithmetic progression, determines the character frame coordinates accordingly, and then determines the area occupied by each character frame. Since a new parameter is obtained and the width of the character frame is corrected from this new parameter, a character string shape that feels more natural than the simple division can be obtained at high speed. Further, it is sufficient to simply specify the character string and its array range, and the desired character string shape can be obtained by a simple operation.

【0021】[0021]

【第2実施例】図6は第2実施例に係る文字列出力装置
のブロック構成図である。なお、図1に示す第1実施例
と同一のものは同一符号をもって示し、その説明を省略
する。第1実施例では一旦、文字数分の全ての文字枠座
標を発生しておき、その後、文字枠の占める面積を算出
するようにしたが、この文字枠が媒介変数の関数の形に
なっていることに着目すれば、面積計算を積分式によっ
て直接数値計算できる場合がある。例えば、文字列配置
範囲を占める2本の線が両方とも直線や二次曲線のよう
な場合には積分式によって容易に計算することができ
る。
[Second Embodiment] FIG. 6 is a block diagram of a character string output apparatus according to the second embodiment. The same parts as those in the first embodiment shown in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted. In the first embodiment, all the character frame coordinates for the number of characters are generated once, and then the area occupied by the character frame is calculated, but this character frame is in the form of a parameter function. Focusing on this, there are cases where the area calculation can be directly numerically calculated by an integral expression. For example, when the two lines occupying the character string arrangement range are both straight lines or quadratic curves, they can be easily calculated by an integral formula.

【0022】ここで、媒介変数がtの時、2本の線上の
点がそれぞれp、qであったとする。このpとqとを結
ぶ長さをlとすると、lはtの関数であり、それをh
(t)とする。このh(t)の原始関数H(t)を求め
てtを入力すると“0”〜“t”までの定積分値とな
る。そこで、本実施例においてはこの定積分値を出力す
る積分演算器5−10が設けられている。この積分演算
器5−10には単純分割変数値発生部5−4から発生さ
れた媒介変数と文字列配置範囲レジスタ5−1から2本
の線を表わすデータが入力されており、それらに基づい
て積分演算を行い、その結果を変数値発生部5−11に
与える。ここで、変数値発生部5−11はG(t)/G
(1)の計算を行うが、積分演算器5−10は先ずG
(1)を計算して変数値発生部5−11に記憶保持させ
たのち、更にG(t)を求めて変数値発生部5−11に
与える。これによって変数値発生部5−11はG(t)
/G(1)の計算を行い、新たに求められた媒介変数に
基づいて座標計算装置5−6は再度座標計算を実行す
る。
Here, it is assumed that when the parameter is t, the points on the two lines are p and q, respectively. If the length connecting this p and q is l, then l is a function of t and
(T). When the primitive function H (t) of this h (t) is obtained and t is input, a definite integral value from "0" to "t" is obtained. Therefore, in this embodiment, an integration calculator 5-10 that outputs this constant integration value is provided. Data representing two lines from the parametric variable generated from the simple division variable value generation unit 5-4 and the character string arrangement range register 5-1 is input to the integration calculator 5-10, and based on them. Then, the integral calculation is performed, and the result is given to the variable value generator 5-11. Here, the variable value generator 5-11 uses G (t) / G
The calculation of (1) is performed.
After (1) is calculated and stored in the variable value generating unit 5-11 and stored, G (t) is further calculated and given to the variable value generating unit 5-11. As a result, the variable value generator 5-11 causes G (t)
/ G (1) is calculated, and the coordinate calculation device 5-6 executes the coordinate calculation again based on the newly obtained parameter.

【0023】このように構成された本実施例においては
図1で示した変数値レジスタ・選択出力部5−5が不要
となり、かつ変数値発生部5−11でG(t)/G
(1)を計算することにより即座に新しい媒介変数を得
ることができ、座標計算装置5−6を1回動作させれば
1文字分の文字枠座標が発生される為、第1実施例より
も更に高速に処理することができる。なお、原始関数H
(t)を2本の線と無関係に連続的に変化する関数を割
り当てればさまざまな特殊効果(例えば三角関数なら円
筒に張り付けたような効果)を得ることができる。
In the present embodiment thus constructed, the variable value register / selection output unit 5-5 shown in FIG. 1 is unnecessary, and the variable value generation unit 5-11 uses G (t) / G.
By calculating (1), a new parametric variable can be immediately obtained, and when the coordinate calculation device 5-6 is operated once, character frame coordinates for one character are generated. Can be processed even faster. The primitive function H
If (t) is assigned a function that continuously changes regardless of the two lines, various special effects (for example, the effect of sticking to a cylinder in the case of a trigonometric function) can be obtained.

【0024】なお、上記実施例は直線、円弧、ベージュ
ール曲線の中から任意の線種を選択して文字列配置範囲
を指定するようにしたが、その線種はこれに限定され
ず、また、文字列配置範囲は各文字の高さの変化量が極
端に変化しないものであればその形状は任意である。
In the above embodiment, an arbitrary line type is selected from straight lines, circular arcs, and Beigele curves to specify the character string arrangement range, but the line type is not limited to this. The shape of the character string arrangement range is arbitrary as long as the amount of change in the height of each character does not change extremely.

【0025】[0025]

【発明の効果】この発明によれば、文字列を構成する各
文字の縦、横に自然な繋がりを持たせ、バランスの取れ
た奥行き感のある文字列や変化に富んだ形状の文字列を
簡単かつ高速に出力することができる。
According to the present invention, a character string having a well-balanced depth feeling and a character string having a variety of shapes are formed by giving a natural connection in the vertical and horizontal directions of each character constituting the character string. It can be output easily and at high speed.

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

【図1】第1実施例に係る文字列出力装置のブロック構
成図。
FIG. 1 is a block configuration diagram of a character string output device according to a first embodiment.

【図2】図1で示した文字枠発生装置5のブロック構成
図。
FIG. 2 is a block configuration diagram of the character box generation device 5 shown in FIG.

【図3】文字列配置範囲として直線で挾まれた領域を用
いた場合における文字枠の分割状態を示し、(A)は補
正前の分割状態、(B)は補正後の分割状態を示した
図。
FIG. 3 shows a divided state of a character frame when a region sandwiched by straight lines is used as a character string arrangement range, (A) shows a divided state before correction, and (B) shows a divided state after correction. Fig.

【図4】文字列配置範囲として2本の円弧に挾まれた領
域を用いた場合における文字枠の分割状態を示し、
(A)は補正前の分割状態、(B)は補正後の分割状態
を示した図。
FIG. 4 is a view showing a divided state of a character frame when an area sandwiched by two arcs is used as a character string arrangement range,
FIG. 9A is a diagram showing a division state before correction, and FIG. 9B is a diagram showing a division state after correction.

【図5】文字列配置範囲として2本のベージュール曲線
によって挾まれた領域を用いた場合における文字枠の分
割状態を示し、(A)は補正前の分割状態、(B)は補
正後の分割状態を示した図。
FIG. 5 shows a divided state of a character frame when an area sandwiched by two Beigele curves is used as a character string arrangement range, (A) shows a divided state before correction, and (B) shows a corrected state. The figure which showed the division state.

【図6】第2実施例に係る文字枠発生装置のブロック構
成図。
FIG. 6 is a block configuration diagram of a character box generation device according to a second embodiment.

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

1 キー操作部 2 主制御部 4 配置文字メモリ 5 文字枠発生装置 5−1 文字列配置範囲レジスタ 5−2 文字数レジスタ 5−3 文字枠発生制御部 5−4 単純分割変数値発生部 5−5 変数値レジスタ・選択出力部 5−6 座標計算装置 5−7 文字枠バッファ 5−8 面積算出装置 5−9 面積変換式変数値発生部 5−10 積分演算器 5−11 変数値発生部 6 印刷データ発生部 7 キャラクタジェネレータ 8 プリンタ制御部 9 プリンタ 1 Key Operation Section 2 Main Control Section 4 Arranged Character Memory 5 Character Box Generator 5-1 Character String Arrangement Range Register 5-2 Character Number Register 5-3 Character Box Generation Control Section 5-4 Simple Division Variable Value Generation Section 5-5 Variable value register / selection output unit 5-6 Coordinate calculation device 5-7 Character frame buffer 5-8 Area calculation device 5-9 Area conversion formula variable value generation unit 5-10 Integral calculator 5-11 Variable value generation unit 6 Printing Data generator 7 Character generator 8 Printer controller 9 Printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】出力対象の文字列を指定する文字列指定手
段と、 少なくとも2本の線で挾まれた領域を文字列配置範囲と
して指定する配置範囲指定手段と、 この配置範囲指定手段で指定された文字列配置範囲を前
記文字列指定手段で指定された文字列の文字数で均等分
割することにより文字数分の文字枠を決定する文字枠決
定手段と、 前記配置範囲指定手段で指定された文字列配置範囲に対
し、前記文字枠決定手段によって決定された各文字枠が
占める割合によって各文字枠の横幅を補正する補正手段
と、 この補正手段によって補正された文字枠に応じた大きさ
に各文字を変形し、対応する文字枠内に配置出力する出
力手段と、 を具備したことを特徴とする文字列出力装置。
1. A character string designating means for designating a character string to be output, an arrangement range designating means for designating an area sandwiched by at least two lines as a character string layout range, and a layout range designating means. A character frame determining unit that determines a character frame for the number of characters by evenly dividing the specified character string arrangement range by the number of characters of the character string specified by the character string specifying unit; and a character specified by the arrangement range specifying unit. A correction unit that corrects the width of each character frame according to the ratio of each character frame determined by the character frame determination unit to the column arrangement range, and a size corresponding to the character frame corrected by this correction unit. A character string output device, comprising: an output unit that deforms a character and outputs the arranged character in a corresponding character frame.
JP25537292A 1992-09-01 1992-09-01 String output device Expired - Fee Related JP3211404B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP25537292A JP3211404B2 (en) 1992-09-01 1992-09-01 String output device
US08/113,835 US5506942A (en) 1992-09-01 1993-08-30 Apparatus of outputting a train of characters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25537292A JP3211404B2 (en) 1992-09-01 1992-09-01 String output device

Publications (2)

Publication Number Publication Date
JPH0683315A true JPH0683315A (en) 1994-03-25
JP3211404B2 JP3211404B2 (en) 2001-09-25

Family

ID=17277858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25537292A Expired - Fee Related JP3211404B2 (en) 1992-09-01 1992-09-01 String output device

Country Status (1)

Country Link
JP (1) JP3211404B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016091558A (en) * 2014-10-31 2016-05-23 キヤノン株式会社 Information processing device, control method thereof, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016091558A (en) * 2014-10-31 2016-05-23 キヤノン株式会社 Information processing device, control method thereof, and program
JP2017201531A (en) * 2014-10-31 2017-11-09 キヤノン株式会社 Information processing device, control method thereof, and program

Also Published As

Publication number Publication date
JP3211404B2 (en) 2001-09-25

Similar Documents

Publication Publication Date Title
US6437793B1 (en) System for rapidly performing scan conversion with anti-aliasing upon outline fonts and other graphic elements
JPH0728451A (en) Data conversion device
JP3211404B2 (en) String output device
JPH05269956A (en) Electronic composition device for composing along optional line
US5506942A (en) Apparatus of outputting a train of characters
JPH09127925A (en) Character string output device
JP3126696B2 (en) Character generation method
JP2868675B2 (en) An electronic typesetting device that changes the size of character strings arbitrarily for each character
JP2617190B2 (en) String output device
JP2958417B2 (en) String output device
JP3019255B2 (en) Outline font data storage medium
JP2770171B2 (en) Data output device
JP3156294B2 (en) Data processing device
JPH081554B2 (en) Character processor
JPH07234868A (en) Document preparing device
JPS6319062A (en) Ruled line preparing device
JPH08171381A (en) Layout display device
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPH09319857A (en) Method, device, and system for image processing and map processor
JPH0764970A (en) Character string output device
JPH0566759A (en) Modification character output device
JPH02254491A (en) Data converter
JPH08255256A (en) Character string output device
JPH0714635B2 (en) Character string allocation device
JPH049156B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080719

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090719

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090719

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100719

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110719

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110719

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120719

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees