JPH0968960A - Character generator - Google Patents

Character generator

Info

Publication number
JPH0968960A
JPH0968960A JP7223034A JP22303495A JPH0968960A JP H0968960 A JPH0968960 A JP H0968960A JP 7223034 A JP7223034 A JP 7223034A JP 22303495 A JP22303495 A JP 22303495A JP H0968960 A JPH0968960 A JP H0968960A
Authority
JP
Japan
Prior art keywords
character
pattern
connection pattern
connection
writing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7223034A
Other languages
Japanese (ja)
Inventor
Isao Takahashi
高橋  功
Toshio Masuda
年男 増田
Tsuguo Hatsuda
継生 初田
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.)
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering 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 Hitachi Ltd, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP7223034A priority Critical patent/JPH0968960A/en
Publication of JPH0968960A publication Critical patent/JPH0968960A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To link and output adjacent character patterns with a small storage capacity by selecting and extracting the connection patterns formed to comply with writing start positions and writing end positions and connecting the adja cent character patterns. SOLUTION: A processor 4 temporarily stores the characters to be printed, for example, character patterns 21 ('a' of Japanese syllabary) and ('ni') into a character code storage region 54 when these characters are inputted. At this time, the processor stores the shapes of the writing start position and writing end of the character. The processor retrieves the address of the connection pattern corresponding to the spacing between the characters from a connection pattern table 53 by the shape of the writing start position and writing end of the previously stored pattern and the writing start position of the character before transfer to a printer 3. The processor reads the connection pattern of this address out of a connection pattern storage region 52 and transfers the pattern to the printer 3. The character pattern is thereafter transferred to the printer 3. At this time, the processor 4 stores the writing position and shape of writing end of the character in order to connect the third character.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、隣合う2つの文字を繋
げて印字出力又は表示出力する文字発生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character generator for connecting two adjacent characters to print or display them.

【0002】[0002]

【従来の技術】従来、隣合う2つの文字を繋げて印字出
力又は表示出力する装置として、特開平4−4165号
に開示されたイメージパターン発生装置がある。
2. Description of the Related Art Conventionally, there is an image pattern generating device disclosed in Japanese Patent Laid-Open No. 4-4165 as a device for printing or displaying by connecting two adjacent characters.

【0003】このイメージパターン発生装置では、起筆
位置,終筆位置をそれぞれ5か所に限定し、その中でデ
ザイン的に劣るものを除き、各起筆位置で始まり、各終
筆位置で終わる文字のイメージパターンを全て記憶して
おき、イメージパターン決定手段により決定されたイメ
ージパターンを発生させている。
In this image pattern generating device, the starting position and the ending position are limited to 5 positions, respectively, except for the inferior one in terms of design, of characters which start at each starting position and end at each ending position. All the image patterns are stored and the image pattern decided by the image pattern decision means is generated.

【0004】[0004]

【発明が解決しようとする課題】しかし、上記従来技術
にあっては、文字を繋げて印字するという事が出来る
が、1つの文字について、最多で起筆位置5か所,終筆
位置5か所の合計25パターンのイメージパターンを記
憶しなければならないため、記憶容量が非常に大きくな
るという問題があった。
However, in the above-mentioned prior art, it is possible to print by connecting characters, but for one character, there are a maximum of 5 starting positions and 5 ending positions. Since a total of 25 image patterns must be stored, there is a problem that the storage capacity becomes very large.

【0005】本発明の目的は、少ない記憶容量で隣接す
る文字パターンを繋げて出力することができる文字発生
装置を提供することにある。
An object of the present invention is to provide a character generator capable of connecting and outputting adjacent character patterns with a small storage capacity.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明は、文字パターン、該文字パターンの起筆
及び終筆位置,終筆の形状から成る文字属性、隣接する
文字パターン同士を接続する複数の接続パターン、隣接
する文字パターンの組合せにおいていずれの種類の接続
パターンを用いるべきかを設定した接続パターンテーブ
ルを記憶した記憶手段と、発生すべき文字に関する文字
コードの入力により、該文字コードに対応した文字パタ
ーンおよび文字属性を前記記憶手段内から検索する第1
の手段と、検索によって得られた文字属性中の起筆及び
終筆位置,終筆の形状の情報によって前記接続パターン
テーブルを検索し、隣接する文字パターンの組合せにお
いて用いる接続パターンの種類を抽出する第2の手段
と、抽出された接続パターンの種類の情報に対応する接
続パターンを前記記憶手段内から検索する第3の手段
と、検索された接続パターンを隣接する文字パターンを
接続するパターンとして出力する第4の手段とを備える
ことを特徴とする。
In order to achieve the above-mentioned object, the present invention provides a character pattern, a character attribute consisting of the starting and ending positions of the character pattern, the shape of the final writing, and adjacent character patterns. By connecting a plurality of connection patterns to be connected, a storage means for storing a connection pattern table which sets which kind of connection pattern should be used in a combination of adjacent character patterns, and inputting a character code related to the character to be generated, A first search for a character pattern and a character attribute corresponding to a code from the storage means
Means, and the connection pattern table is searched by the information of the stroke and end position and the shape of the end stroke in the character attributes obtained by the search, and the type of connection pattern used in the combination of adjacent character patterns is extracted. 2 means, a third means for searching the storage means for a connection pattern corresponding to the extracted information of the type of the connection pattern, and the searched connection pattern is output as a pattern for connecting adjacent character patterns. And a fourth means.

【0007】[0007]

【作用】上記手段によれば、発生すべき文字に関する文
字コードを入力すると、第1の手段が該文字コードに対
応した文字パターンおよび文字属性を記憶手段内から検
索する。
According to the above means, when the character code relating to the character to be generated is input, the first means searches the storage means for the character pattern and the character attribute corresponding to the character code.

【0008】次に、第2の手段が文字属性中の起筆及び
終筆位置,終筆の形状の情報によって接続パターンテー
ブルを検索し、隣接する文字パターンの組合せにおいて
用いる接続パターンの種類を抽出する。
Next, the second means searches the connection pattern table according to the information on the stroke and end position and the shape of the end stroke in the character attributes, and extracts the type of connection pattern used in the combination of adjacent character patterns. .

【0009】次に、第3の手段が抽出された接続パター
ンの種類の情報に対応する接続パターンを記憶手段内か
ら検索し、さらに第4の手段が検索された接続パターン
を隣接する文字パターンを接続するパターンとして出力
する。
Next, the third means searches the storage means for a connection pattern corresponding to the extracted information on the type of the connection pattern, and the fourth means searches the connection pattern searched for the adjacent character pattern. Output as a connection pattern.

【0010】表示装置または印字装置は、第4の手段か
ら出力された接続パターンによって隣接する文字を接続
して表示または印字する。
The display device or the printing device displays or prints by connecting the adjacent characters by the connection pattern output from the fourth means.

【0011】すなわち、本発明においては、隣接する文
字との繋がり具合を考慮して1つの文字について複数の
文字パターンを用意しておくのでなく、起筆位置,終筆
位置に合わせた接続パターンを選択抽出して隣接する文
字パターンを接続する。
That is, in the present invention, a plurality of character patterns for one character are not prepared in consideration of the connection with adjacent characters, but a connection pattern that matches the starting position and the ending position is selected. Extract and connect adjacent character patterns.

【0012】従って、1つの文字については1つの文字
パターンのみを用意し、この他に複数の接続パターンを
用意しておくだけでよいため、文字を発生するために用
いる記憶容量が少なくなる。
Therefore, since it is sufficient to prepare only one character pattern for one character and a plurality of connection patterns in addition to this, the storage capacity used for generating the character is reduced.

【0013】なお、文字を繋げる際に、上(又は左)の
文字の終筆位置と下(又は右)の文字の起筆位置の組合
せにより、接続部分が間延びして見えるような場合は、
下(又は右)の文字を回転又は貼付位置の移動といった
補正を行う事で接続部分を短くし、全体として統一感の
ある美しい印刷物の出力が可能になる。
When connecting characters, if the connecting portion appears to be elongated due to the combination of the end position of the upper (or left) character and the start position of the lower (or right) character,
By correcting the lower (or right) letters by rotating or moving the pasting position, the connection part can be shortened and a beautiful printed matter with a unified feeling can be output as a whole.

【0014】[0014]

【実施例】以下、本発明の一実施例を図を用いて詳細に
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0015】図1は、本発明の文字発生装置の一実施例
を示すブロック構成図であり、キーボード1および表示
装置2、プリンタ3、処理装置4、記憶装置5とから構
成されている。
FIG. 1 is a block diagram showing an embodiment of the character generator of the present invention, which comprises a keyboard 1, a display device 2, a printer 3, a processing device 4 and a storage device 5.

【0016】記憶装置5には、文字パターン記憶領域5
1、接続パターン記憶領域52、接続パターンテーブル
53、文字コード記憶領域54、文字回転フラグ記憶領
域5貼付け位置移動フラグ記憶領域56が設けられてい
る。
The storage device 5 includes a character pattern storage area 5
1, a connection pattern storage area 52, a connection pattern table 53, a character code storage area 54, a character rotation flag storage area 5 and an attachment position movement flag storage area 56 are provided.

【0017】文字パターン記憶領域51は、文字パター
ン、該文字パターンの起筆及び終筆位置,終筆の形状な
どから成る文字属性をn文字分(n≧2の整数)記憶し
たものであり、この実施例での文字パターン21は図2
に示すように縦32ドット×横32ドットのドットフォ
ントで構成されている。
The character pattern storage area 51 stores character attributes consisting of a character pattern, a stroke and a finish position of the character pattern, a shape of the finish stroke, etc. for n characters (an integer of n ≧ 2). The character pattern 21 in the embodiment is shown in FIG.
As shown in (3), it is composed of a dot font of 32 dots vertically × 32 dots horizontally.

【0018】また、日常文書や手紙等に用いられる行草
書体を交えた仮名を美しく書く「続け書きの手法」を想
定した場合、図3に示すように、上の文字の終筆位置は
A〜Dの4種類、下の文字の起筆位置はa〜dの4種類
に分けられ、それぞれの点を接続する組み合わせは16
種になる。しかし、上の文字の終筆位置Dと下の文字の
起筆位置dが繋がる場合は、間延びして見えてしまうの
で繋げないようにし、下の文字は回転または貼付位置の
移動をする情報により起筆位置をcに補正するようにす
る。よって、接続できる組合せは15種となる。また、
上の文字の終筆の形が4種類ある事から、接続パターン
は全部で60種必要となる。
Assuming a "continuation method" for beautifully writing a kana with a cursive typeface used for everyday documents and letters, as shown in FIG. The four types of D and the writing positions of the letters below are divided into four types of a to d, and there are 16 combinations for connecting the respective points.
It becomes a seed. However, if the upper stroke end position D of the upper character is connected to the lower stroke position d of the lower character, it will appear as an extension and should not be connected, and the lower character should be rotated or moved based on the information to move the pasting position. Correct the position to c. Therefore, there are 15 combinations that can be connected. Also,
Since there are four types of final strokes for the above letters, a total of 60 connection patterns are required.

【0019】そこで、文字パターン記憶領域51に記憶
される文字属性は、図4に示すように、文字コード41
1,字幅情報412,その他の属性413の他に、接続
情報として起筆位置(a〜d)414,起筆の太さ41
5,終筆位置(A〜D)416,終筆の太さ417,終
筆の形418,回転角度(0度の場合は回転不可)41
8,回転後の終筆位置420,貼付位置移動値(0の場
合は移動不可)421,貼付位置移動後の終筆位置42
2の情報で構成されている。
Therefore, the character attribute stored in the character pattern storage area 51 is, as shown in FIG.
1, character width information 412, other attributes 413, as well as the writing position (a to d) 414 and the thickness 41 of the writing as connection information.
5, finish stroke position (A to D) 416, finish stroke thickness 417, finish stroke shape 418, rotation angle (rotation is not possible when 0 degree) 41
8, final writing position 420 after rotation, pasting position movement value (move when 0) 421, final writing position 42 after pasting position movement
It is composed of two pieces of information.

【0020】文字コード411は、JISやシフトJI
S等のコード体系に対応したユニークなコードであり、
複数のコード体系に対応したコードを持つことが出来
る。
The character code 411 is JIS or shift JI.
It is a unique code corresponding to the code system such as S,
You can have a code that supports multiple code systems.

【0021】字幅情報412は、各文字の文字ピッチを
示すものである。また、終筆位置414は図2に示した
ように分類したA〜Dの4種類のどの位置かを示すもの
である。
The character width information 412 indicates the character pitch of each character. Further, the final writing position 414 indicates which of the four types of positions A to D classified as shown in FIG.

【0022】終筆の太さ415は、終筆位置での太さを
座標で表わしたものである。また、起筆位置414は図
2に示したように分類したa〜dの4種類のどの位置か
を表すものである。さらに、起筆の太さ415は、起筆
位置での太さを座標で表わしたものである。終筆の形4
18は終筆の形を4種類に分類した時のイ〜ニの4種類
のどの形かを表すものである。終筆の形418のイ〜ニ
の分類については図5に例示している。
The final stroke thickness 415 represents the thickness at the final stroke position in coordinates. In addition, the writing position 414 indicates which of the four types of positions a to d classified as shown in FIG. Further, the brush stroke thickness 415 is a coordinate representing the thickness at the brush stroke position. Final stroke form 4
Reference numeral 18 represents one of the four types of a to d when the shape of the final stroke is classified into four types. The classification of the final stroke forms 418 of A to D is illustrated in FIG.

【0023】一方、接続パターン記憶領域52には、隣
接する文字パターン同士を接続するための60種の接続
パターン22が記憶されている。この実施例での接続パ
ターン22は、図2に示すように16ドット×32ドッ
トの横半角ドットフォントで構成されている。
On the other hand, the connection pattern storage area 52 stores 60 kinds of connection patterns 22 for connecting adjacent character patterns. The connection pattern 22 in this embodiment is composed of horizontal half-width dot font of 16 dots × 32 dots as shown in FIG.

【0024】一方、接続パターンテーブル53には、隣
接する文字パターンの組合せにおいていずれの種類の接
続パターン22を用いるべきかが設定されている。詳し
くは、図5に示すように、上の文字の終筆位置(A〜
D)、終筆の形(イ〜ニ)に対し、下の文字の起筆位置
(a〜d)に対応する接続パターンが格納されているア
ドレスが設定されている。
On the other hand, in the connection pattern table 53, which type of connection pattern 22 should be used in the combination of the adjacent character patterns is set. For details, as shown in FIG. 5, the final stroke position (A to
D), with respect to the shape of the final stroke (a to d), the address in which the connection pattern corresponding to the writing position (a to d) of the lower character is stored is set.

【0025】ここで、終筆の形(イ)は、図5に例示し
ているように、下に向かう形である。また、終筆の形
(ロ)は丸形の曲線、終筆の形(ハ)は結びで丸くなる
形、終筆の形(ニ)は跳ね上げ、抑えの形である。
Here, the shape (a) of the final stroke is a downward shape, as illustrated in FIG. In addition, the shape of the final stroke (b) is a round curve, the shape of the final stroke (c) is a rounded shape with a knot, and the shape of the final stroke (d) is a bounce-up and hold-down shape.

【0026】次に、図2に示したひらがな2文字「あ」
と「に」の接続の仕方について図6及び図7のフローチ
ャートを参照して説明する。
Next, the two hiragana characters "a" shown in FIG.
A method of connecting “and” to “ni” will be described with reference to the flowcharts of FIGS. 6 and 7.

【0027】接続処理の概要は、次の通りである。ま
ず、処理装置4は印刷または表示すべき文字「あ」,
「に」がキーボード1から入力されたならば、その文字
コードを文字コード記憶領域54に一時記憶させる。そ
して、その一時記憶した文字コードを表示装置2または
プリンタ3へ転送する。
The outline of the connection process is as follows. First, the processing device 4 uses the character "a" to be printed or displayed,
When "ni" is input from the keyboard 1, the character code is temporarily stored in the character code storage area 54. Then, the temporarily stored character code is transferred to the display device 2 or the printer 3.

【0028】その時「あ」の文字の文字属性中の終筆位
置(B)と終筆の形(ロ)とを記憶しておく。そして下
の文字「に」の文字パターンを文字コード記憶領域54
より受け取り、「に」の文字パターンをプリンタ3又は
表示装置2へ転送する前に、先程記憶した「あ」の終筆
位置(B),終筆の形(ロ)と「に」の起筆位置(d)
とにより「あ」と「に」の文字間に該当する接続パター
ンのアドレスを接続パターンテーブル53から検索す
る。
At that time, the ending stroke position (B) and the ending stroke shape (b) in the character attributes of the character "A" are stored. Then, the character pattern of the lower character "ni" is set in the character code storage area 54
Before receiving the character pattern of "ni" and transferring it to the printer 3 or the display device 2, the ending stroke position (B) of "a", the ending stroke shape (b), and the starting stroke position of "ni" stored earlier. (D)
By using, the connection pattern table 53 is searched for the address of the connection pattern corresponding to the characters "a" and "ni".

【0029】これにより、「あ」の終筆位置(B),終
筆の形(ロ),「に」の起筆位置(d)から接続パター
ンのアドレスは「54」であることがわかる。
From this, it can be seen that the address of the connection pattern is "54" from the final writing position (B) of "a", the final writing shape (b), and the initial writing position (d) of "ni".

【0030】そこで、アドレス「54」の接続パターン
を接続パターン記憶領域52から読出し、プリンタ3又
は表示装置2へ転送する。この後、下の文字「に」の文
字パターンをプリンタ3又は表示装置2へ転送する。こ
の時、処理装置4は第3文字目の文字を繋げるために、
「に」の終筆位置(C)と終筆の形(イ)を記憶してお
く。
Therefore, the connection pattern of the address "54" is read from the connection pattern storage area 52 and transferred to the printer 3 or the display device 2. After that, the character pattern of the lower character "ni" is transferred to the printer 3 or the display device 2. At this time, the processing device 4 connects the third character,
The ending stroke position (C) and the ending stroke shape (a) of "ni" are stored.

【0031】この繰返しにより文字を繋げて印字又は表
示する事が出来る。
By repeating this, characters can be connected and printed or displayed.

【0032】以下、図6および図7のフローチャートに
沿って説明する。
The operation will be described below with reference to the flowcharts of FIGS. 6 and 7.

【0033】まず、処理装置4は印刷または表示すべき
n文字分の文字「あ」,「に」がキーボード1から入力
されたならば、その文字コードを文字コード記憶領域5
4に一時記憶させる(ステップ610)。
First, if the characters "a" and "ni" for n characters to be printed or displayed are input from the keyboard 1, the processor 4 sets the character code to the character code storage area 5.
4 for temporary storage (step 610).

【0034】次に、変数mをm=1に初期設定する(ス
テップ611)。
Next, the variable m is initialized to m = 1 (step 611).

【0035】次に、m番目の文字である「あ」の文字パ
ターンと文字属性とを「あ」の文字コードによって文字
パターン記憶領域51から読出し、さらに文字属性から
「あ」の終筆位置(B),終筆の形(ロ)を抽出する
(ステップ612)。
Next, the character pattern of "m" which is the m-th character and the character attribute are read from the character pattern storage area 51 by the character code of "a", and the final writing position (" B), the shape (b) of the final stroke is extracted (step 612).

【0036】次に、m+1番目の文字である「に」の文
字パターンと文字属性とを「に」の文字コードによって
文字パターン記憶領域51から読出し、さらに文字属性
から「に」の起筆位置(c)および終筆位置,終筆の形
を抽出する(ステップ613)。
Next, the character pattern of "ni" which is the m + 1st character and the character attribute are read from the character pattern storage area 51 by the character code of "ni", and the writing position (c) of "ni" is read from the character attribute. ), The final stroke position, and the final stroke shape are extracted (step 613).

【0037】次に、文字回転フラグおよび貼付け位置移
動フラグを記憶領域55および56から読出し、これら
のフラグがONか否かを判定する(ステップ614)。
文字回転フラグおよび貼付け位置移動フラグがONであ
れば、m番目の文字がm−1番目の文字との繋がり具合
で回転または移動して接続することを意味するので、m
番目の文字の回転または移動後の終筆位置、終筆の形
と、m+1番目の文字の起筆位置とから接続パターンテ
ーブル53を検索し、該当する接続パターンを抽出する
(ステップ616)。
Next, the character rotation flag and the pasting position movement flag are read from the storage areas 55 and 56, and it is determined whether or not these flags are ON (step 614).
If the character rotation flag and the pasting position movement flag are ON, it means that the m-th character is rotated or moved in connection with the m-1th character to be connected.
The connection pattern table 53 is searched from the final writing position and shape of the final writing after the rotation or movement of the th character, and the writing position of the m + 1th character, and the corresponding connection pattern is extracted (step 616).

【0038】しかし、文字回転フラグおよび貼付け位置
移動フラグがONでなければ、m番目の文字である
「あ」の終筆位置(B)、終筆の形(ロ)と、m+1番
目の文字である「に」の起筆位置(c)とから接続パタ
ーンテーブル53を検索し、該当するアドレス「54」
から接続パターンを抽出する(ステップ615)。
However, if the character rotation flag and the pasting position movement flag are not ON, the final writing position (B) of the mth character "A", the final writing shape (b), and the m + 1th character The connection pattern table 53 is searched from the writing position (c) of a certain "ni", and the corresponding address "54" is searched.
A connection pattern is extracted from (step 615).

【0039】次に、「あ」の終筆位置と「に」の起筆位
置とが「D−d」の接続形態であるかどうかを判定する
(ステップ617)。
Next, it is judged whether or not the final writing position of "a" and the starting position of "ni" are in the connection form of "Dd" (step 617).

【0040】「D−d」の接続形態であれば、隣合う文
字が間延びして接続されて美観上好ましくないので、m
+1番目の文字の回転または移動処理を行う(ステップ
619)。
In the case of the "Dd" connection form, adjacent characters are extended and connected, which is not aesthetically pleasing.
The + 1st character is rotated or moved (step 619).

【0041】図2の「あ」,「に」を接続する場合、
「D−d」の接続形態ではないので回転または移動処理
は行わない。
When "a" and "ni" in FIG. 2 are connected,
Since it is not the "D-d" connection form, the rotation or movement process is not performed.

【0042】m+1番目の文字の回転または移動処理を
行った場合、m+1番目の文字の終筆位置を変更する
(ステップ620)。この後、文字回転フラグおよび貼
付け位置移動フラグをONにする(ステップ621)。
When the m + 1st character is rotated or moved, the end stroke position of the m + 1st character is changed (step 620). Then, the character rotation flag and the pasting position movement flag are turned on (step 621).

【0043】次に、m番目の文字パターン、m+1番目
の文字パターンと、これらを接続する接続パターン(ス
テップ615または616で抽出した接続パターン)を
プリンタ3または表示装置2にを出力する(ステップ6
22)。
Next, the mth character pattern, the m + 1th character pattern, and the connection pattern (the connection pattern extracted in step 615 or 616) for connecting these are output to the printer 3 or the display device 2 (step 6).
22).

【0044】文字回転フラグおよび貼付け位置移動フラ
グがONでなかった場合、ステップ619,620,9
21の処理は行わない。
If the character rotation flag and the pasting position movement flag are not ON, steps 619, 620, 9 are executed.
21 is not performed.

【0045】これにより、「あ」と「に」の文字が図2
に示したように接続されて印字または表示される。
As a result, the characters "a" and "ni" are displayed in FIG.
It is connected and printed or displayed as shown in.

【0046】次に、処理装置4は、変数mをm+1に更
新し(ステップ623)、更新後の変数mがnに等しい
か否かを判定し、m=nであれば、入力されたn文字分
の出力が終了したことになるので、処理を終了する(ス
テップ624)。
Next, the processor 4 updates the variable m to m + 1 (step 623) and determines whether the updated variable m is equal to n. If m = n, the input n is input. Since the output for the characters has been completed, the process ends (step 624).

【0047】しかし、m=nでなければ、ステップ61
2に戻り、2番目の文字と3番目の文字の接続処理を行
う。
However, if m = n is not satisfied, step 61
Returning to 2, the connection processing of the second character and the third character is performed.

【0048】次に、上の文字の終筆位置Dと下の文字の
起筆位置dが繋がると、図8(a)の様に間延びして見
える場合を補正する処理について説明する。
Next, a process for correcting the case where the upper stroke end position D of the upper character and the lower stroke position d of the lower character appear to be elongated as shown in FIG. 8A will be described.

【0049】補正には、文字の形や大きさにより、文字
を回転する場合と貼付位置の移動を行う場合がある。こ
こでは、文字を回転する場合で説明する。
For correction, the character may be rotated or the pasting position may be moved depending on the shape and size of the character. Here, the case of rotating a character will be described.

【0050】処理装置4は、ステップ617において
「れ」の終筆位置(D),終筆の形(ニ)と、「て」の
起筆位置(d)により、接続形態「D−d]に該当する
と判明した場合、ステップ619において「m+1」番
目の文字である「て」の回転処理を行う。この回転は、
文字属性中の回転角度419に設定された角度に従う。
そして、回転した後の「て」の起筆位置を(d)から
(c)に補正し、さらに終筆位置(C)を(B)に変更
する(ステップ620)。
In step 617, the processing device 4 establishes the connection form "D-d" based on the final writing position (D) of "RE", the shape of the final writing (D), and the writing position (d) of "TE". If it is found to be applicable, in step 619, the rotation processing of "te" which is the "m + 1" th character is performed. This rotation is
According to the angle set in the rotation angle 419 in the character attribute.
Then, the writing position of the "te" after the rotation is corrected from (d) to (c), and the final writing position (C) is changed to (B) (step 620).

【0051】次に、文字回転フラグ6をONにし、
「れ」と「て」の文字間に該当する接続パターンのアド
レスを接続パターンテーブル53より検索する。
Next, the character rotation flag 6 is turned on,
The connection pattern table 53 is searched for the address of the connection pattern corresponding to the characters "re" and "te".

【0052】ここでの例では、「れ」の終筆位置
(D),終筆の形(ニ),「て」の起筆位置(c)から
接続パターンのアドレスは「48」であることが判明す
る。そこで、「れ」の文字パターンをプリンタ3または
表示装置2へ転送した後、アドレス「48」の接続パタ
ーンを接続パターン記憶領域52から読出し、プリンタ
3または表示装置2へ転送する。その後、回転角度41
9で指定された角度だけ回転させた「て」の文字パター
ンをプリンタ3またはは表示装置2へ転送する。その
時、処理装置4は「て」の終筆位置と終筆の形(ニ)を
記憶しておくが、終筆位置については文字回転フラグ6
がONの時は回転後の終筆位置(B)を記憶する。
In this example, the address of the connection pattern is "48" from the final writing position (D) of "re", the final writing shape (d), and the writing position (c) of "te". Prove. Therefore, after transferring the character pattern of "re" to the printer 3 or the display device 2, the connection pattern of the address "48" is read from the connection pattern storage area 52 and transferred to the printer 3 or the display device 2. Then, the rotation angle 41
The character pattern of “TE” rotated by the angle designated by 9 is transferred to the printer 3 or the display device 2. At that time, the processing device 4 stores the end stroke position of the “te” and the shape (d) of the end stroke, but regarding the end stroke position, the character rotation flag 6
When is ON, the final stroke position (B) after rotation is stored.

【0053】これによって、図8(a)の「れ」,
「て」,「ゆ」の文字は図8(b)に示すように、
「れ」と「て」の間が間延びしない形に補正されて印字
または表示される。
As a result, the "re" in FIG.
The characters "te" and "yu" are as shown in FIG.
The space between "re" and "te" is corrected or printed so as not to extend.

【0054】文字の起筆位置を左右に移動する場合でも
同様である。但し、移動の場合は、貼付け位置移動値4
21および貼付け位置移動後終筆位置422によって移
動量が指定される。
The same applies when moving the writing position of a character to the left or right. However, in the case of movement, the pasting position movement value 4
The movement amount is designated by 21 and the finishing stroke position 422 after the movement of the pasting position.

【0055】図9に、文字「ゆ」と「れ」、「あ」と
「に」、「れ」と「て」の印字例を示している。「れ」
と「て」については、起筆位置(d)を(c)に変更し
て印字していることを示している。
FIG. 9 shows an example of printing the characters "Yu" and "Le", "A" and "Ni", and "Le" and "Te". "Re"
And "te" indicate that the writing position (d) is changed to (c) for printing.

【0056】なお、以上の説明においては、縦書き文字
について説明したが、横書き文字についても同様であ
り、左の文字と右の文字の間に縦半角文字を挿入するこ
とで実現可能である。これにより、英文字についても文
字を繋げた印字結果又は表示結果を得ることができる。
In the above description, vertical writing characters have been described, but the same applies to horizontal writing characters, which can be realized by inserting vertical half-width characters between the left character and the right character. As a result, it is possible to obtain a print result or a display result in which characters are connected even for English characters.

【0057】また、全角文字と全角文字の間に半角文字
を挿入する方法について説明したが、上の文字の終筆位
置と下の文字の起筆位置を文字の中心寄りに持つことで
接続パターンの半角文字と文字パターンの全角文字を重
ねて印字又は表示することも可能である。
Also, the method of inserting a half-width character between full-width characters has been described. However, by having the end position of the upper character and the start position of the lower character near the center of the character, the connection pattern It is also possible to print or display half-width characters and full-width characters of a character pattern in an overlapping manner.

【0058】また、接続パターンの文字幅は半角文字に
限らず、接続パターンの文字属性の中の字幅情報412
に文字ピッチを持っているので様々な文字幅に対応でき
る。
The character width of the connection pattern is not limited to half-width characters, and the character width information 412 in the character attributes of the connection pattern is used.
Since it has a character pitch, it can support various character widths.

【0059】また、ドット文字の接続について説明した
が、ベクトル文字の接続については終筆位置,起筆位
置,終筆の太さ,起筆の太さを座標として持たせ、その
座標から一定の演算式を利用して隣合う2つの文字間に
接続線を発生させ、印字又は表示することで可能であ
る。
The connection of dot characters has been described, but regarding the connection of vector characters, the final writing position, the starting position, the thickness of the final writing, and the thickness of the starting brush are given as coordinates, and a fixed arithmetic expression is derived from the coordinates. It is possible to generate a connection line between two adjacent characters by using, and print or display.

【0060】さらに、ドットフォントの場合を説明した
が、アウトラインフォントにおいても同様である。ま
た、アウトラインフォントでは、起筆の太さ及び終筆の
太さにより、接続パターンのアウトライン座標データを
上(又は左)の文字の終筆の太さ及び、下(又は右)の
文字の起筆の太さに補正することにより、ドットフォン
トより一層美しい印刷物を出力することが可能である。
Further, the case of the dot font has been described, but the same applies to the outline font. Also, in outline fonts, the outline coordinate data of the connection pattern depends on the thickness of the stroke and the thickness of the stroke, and the stroke thickness of the upper (or left) character and the stroke of the lower (or right) character By correcting the thickness, it is possible to output a printed material that is more beautiful than the dot font.

【0061】また、日本語の縦書きの場合で説明した
が、横書きのラテン文字、アラビア文字等の場合でも、
同様に適用可能である。
In addition, although it has been described in the case of vertical writing in Japanese, even in the case of horizontal writing Latin characters, Arabic characters, etc.,
It is equally applicable.

【0062】[0062]

【発明の効果】以上のように本発明によれば、隣接する
文字との繋がり具合を考慮して1つの文字について複数
の文字パターンを用意しておくのでなく、起筆位置,終
筆位置に合わせた接続パターンを選択抽出して隣接する
文字パターンを接続するようにしたので、少ない記憶容
量で隣接する文字パターンを繋げて出力することができ
る。また、手書きによる行草書体や英文字筆記体のイメ
ージと同等の統一感のある美しい印刷物の出力が可能に
なる。
As described above, according to the present invention, it is not necessary to prepare a plurality of character patterns for one character in consideration of the connection with adjacent characters. Since the connection patterns are selectively extracted and the adjacent character patterns are connected, the adjacent character patterns can be connected and output with a small storage capacity. In addition, it is possible to output a beautiful printed material with a sense of unity, which is equivalent to the image of a cursive typeface in handwriting or an English writing system.

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

【図1】本発明の一実施例を示すブロック構成図であ
る。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】実施例における文字パターンおよび接続パター
ンのドット構成図である。
FIG. 2 is a dot configuration diagram of a character pattern and a connection pattern in the example.

【図3】接続形態の分類を示す説明図である。FIG. 3 is an explanatory diagram showing classification of connection forms.

【図4】文字パターン,接続パターン,文字属性の説明
図である。
FIG. 4 is an explanatory diagram of character patterns, connection patterns, and character attributes.

【図5】接続パターンテーブルの構成を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing a configuration of a connection pattern table.

【図6】文字の接続処理の手順を示すフローチャートで
ある。
FIG. 6 is a flowchart showing a procedure of character connection processing.

【図7】図6の続きを示すフローチャートである。FIG. 7 is a flowchart showing a continuation of FIG. 6;

【図8】起筆位置を補正した印字又は表示結果の一例を
示す説明図である。
FIG. 8 is an explanatory diagram illustrating an example of a print or display result in which the brush stroke position is corrected.

【図9】印字又は表示結果の説明図である。FIG. 9 is an explanatory diagram of a print or display result.

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

1…キーボード、2…表示装置、3…プリンタ、4…処
理装置、5…記憶装置、51…文字パターン記憶領域、
52…接続パターン記憶領域、53…接続パターンテー
ブル、55…文字回転フラグ記憶領域、56…貼付け位
置移動フラグ。
1 ... Keyboard, 2 ... Display device, 3 ... Printer, 4 ... Processing device, 5 ... Storage device, 51 ... Character pattern storage area,
52 ... Connection pattern storage area, 53 ... Connection pattern table, 55 ... Character rotation flag storage area, 56 ... Pasting position movement flag.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 増田 年男 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング株式会社内 (72)発明者 初田 継生 神奈川県海老名市下今泉810番地 株式会 社日立製作所オフィスシステム事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Toshio Masuda 1 Horiyamashita, Hadano-shi, Kanagawa Hitachi Computer Engineering Co., Ltd. (72) Inventor Tsutsuo Hatta 810 Shimoimaizumi, Ebina, Kanagawa Prefecture Stock Company Hitachi Office Systems Division

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字パターン、該文字パターンの起筆及
び終筆位置,終筆の形状から成る文字属性、隣接する文
字パターン同士を接続する複数の接続パターン、隣接す
る文字パターンの組合せにおいていずれの種類の接続パ
ターンを用いるべきかを設定した接続パターンテーブル
を記憶した記憶手段と、 発生すべき文字に関する文字コードの入力により、該文
字コードに対応した文字パターンおよび文字属性を前記
記憶手段内から検索する第1の手段と、 検索によって得られた文字属性中の起筆及び終筆位置,
終筆の形状の情報によって前記接続パターンテーブルを
検索し、隣接する文字パターンの組合せにおいて用いる
接続パターンの種類を抽出する第2の手段と、 抽出された接続パターンの種類の情報に対応する接続パ
ターンを前記記憶手段内から検索する第3の手段と、 検索された接続パターンを隣接する文字パターンを接続
するパターンとして出力する第4の手段とを備えること
を特徴とする文字発生装置。
1. A character pattern, a stroke and end position of the character pattern, a character attribute consisting of the shape of the end stroke, a plurality of connection patterns connecting adjacent character patterns, and any kind of combination of adjacent character patterns. By storing a connection pattern table in which whether or not to use the connection pattern is stored, and by inputting a character code relating to a character to be generated, a character pattern and a character attribute corresponding to the character code are retrieved from the storage means. The first means and the starting and ending positions in the character attributes obtained by the search,
Second means for searching the connection pattern table by the information of the shape of the final stroke and extracting the type of connection pattern used in the combination of the adjacent character patterns, and the connection pattern corresponding to the information of the type of the extracted connection pattern And a fourth means for outputting the searched connection pattern as a pattern for connecting adjacent character patterns, the character generation device.
JP7223034A 1995-08-31 1995-08-31 Character generator Pending JPH0968960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7223034A JPH0968960A (en) 1995-08-31 1995-08-31 Character generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7223034A JPH0968960A (en) 1995-08-31 1995-08-31 Character generator

Publications (1)

Publication Number Publication Date
JPH0968960A true JPH0968960A (en) 1997-03-11

Family

ID=16791815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7223034A Pending JPH0968960A (en) 1995-08-31 1995-08-31 Character generator

Country Status (1)

Country Link
JP (1) JPH0968960A (en)

Similar Documents

Publication Publication Date Title
US6600490B1 (en) Digital type font providing typographic feature transformation capability
US5295238A (en) System, method, and font for printing cursive character strings
JP4124494B2 (en) Replacement computer font supply method and apparatus
US5185818A (en) Method of substituting fonts and displaying characters
KR100255574B1 (en) Character generating apparatus
JPH0968960A (en) Character generator
KR100227178B1 (en) Character generation device
JP4079366B2 (en) CHARACTER GENERATION DEVICE, CHARACTER GENERATION METHOD, CHARACTER GENERATION PROGRAM, AND STORAGE MEDIUM
JPH10143134A (en) Method for forming and storing characters and apparatus therefor
JP2669539B2 (en) Character output method and character output device
Parhami Computers and challenges of writing in Persian
Fouladi et al. Toward automatic development of handwritten personal Farsi/Arabic OpenType® fonts
JP2965429B2 (en) Character output device
JP2569489B2 (en) Brush character output device
JPH08153092A (en) Document processor
JPH11190990A (en) Outline font displaying and printing method
Karow Two decades of typographic research at URW: A retrospective
JPH07141340A (en) Document output method and document processor
JPH06230766A (en) Font generating system
JP3223044B2 (en) Graphic processing unit
JP2803746B2 (en) Character processing method and apparatus
JP2844445B2 (en) Continuous cotton body storing method, continuous cotton body creating method, and continuous cotton body creating apparatus
JP4080470B2 (en) Character pattern generator
JPH044165A (en) Image pattern generation device
JPH08286655A (en) Character pattern generator