Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0789274B2 - Continuous cotton character creation method - Google Patents
[go: Go Back, main page]

JPH0789274B2 - Continuous cotton character creation method - Google Patents

Continuous cotton character creation method

Info

Publication number
JPH0789274B2
JPH0789274B2 JP61230146A JP23014686A JPH0789274B2 JP H0789274 B2 JPH0789274 B2 JP H0789274B2 JP 61230146 A JP61230146 A JP 61230146A JP 23014686 A JP23014686 A JP 23014686A JP H0789274 B2 JPH0789274 B2 JP H0789274B2
Authority
JP
Japan
Prior art keywords
character
continuous
stroke
characters
stroke position
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 - Lifetime
Application number
JP61230146A
Other languages
Japanese (ja)
Other versions
JPS6385695A (en
Inventor
利宜 田中
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 JP61230146A priority Critical patent/JPH0789274B2/en
Publication of JPS6385695A publication Critical patent/JPS6385695A/en
Publication of JPH0789274B2 publication Critical patent/JPH0789274B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は連綿文字作成方式に関し、例えば、日本語ワ
ードプロセッサの出力機能として組み込んで、毛筆書体
の文字の連綿印字等に利用できる。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a continuous character creating method, which can be used as, for example, an output function of a Japanese word processor to continuously print characters in a writing brush.

[発明の概要] この発明は、文字フォント同士を連綿させる連綿文字作
成方式において、 各文字の情報として起筆と終筆の位置に関する情報を持
たせ、連綿対象である第1文字(前文字)と第2文字
(後文字)が与えられた場合、両文字の連綿の可否を第
1文字の終筆位置と第2文字の起筆位置との位置関係に
基づいて決定しているので、自然な連綿文字を作成する
ことができる。
[Summary of the Invention] In the present invention, in a continuous character creation method in which character fonts are continuously connected, information regarding the positions of the starting and ending strokes is provided as information of each character, and the first character (preceding character) that is the object of continuous writing When the second character (post-character) is given, whether or not continuous replenishment of both characters is determined based on the positional relationship between the end-writing position of the first character and the starting position of the second character. Characters can be created.

[従来の技術] 従来の文字連綿方式では、任意の文字と文字とを連綿さ
せることが困難であった。その理由は、従来技術では文
字フォントと文字フォントとを連結する領域、すなわち
連綿部分を「作成する」というようなことは行っておら
ず、代りに、ロゴ印刷と同様の手法で、メモリ内に連綿
させた文字フォント列を最初から持たせており、印字の
際に、単に文字フォント列を読み出す、という処理しか
行っていないからである。この方式の場合、上記文字フ
ォント列は定形句の連綿文字パターンに他ならず、非常
に多くの種類の文字フォント列を用意すれば、実際上、
連綿できる文字と文字との組合せに制限がなくなるが、
そのために必要なメモリ容量は莫大なものになってしま
う。
[Prior Art] It has been difficult to continuously connect arbitrary characters to each other by the conventional continuous character method. The reason is that the conventional technology does not "create" a region that connects character fonts and character fonts, that is, a continuous part. Instead, a similar method to logo printing is used in memory. This is because the continuous character font string is provided from the beginning, and only the process of simply reading out the character font string is performed at the time of printing. In the case of this method, the character font string is nothing but the continuous character pattern of the fixed phrase, and if a large number of character font strings are prepared, in practice,
There is no limit to the combination of characters that can be repeated, but
Therefore, the memory capacity required becomes enormous.

そこで、本件出願人は、昭和61年5月31日出願の特願昭
61−126011号において、文字フォントと文字フォントと
の連綿部分を自動作成する方式が提案している。この方
式により、任意の文字と文字とを連綿させることが可能
になった。
Therefore, the applicant of the present application is the Japanese Patent Application filed on May 31, 1986.
In No. 61-126011, a method for automatically creating a continuous portion of a character font and a character font is proposed. With this method, it becomes possible to continuously connect arbitrary characters.

[発明が解決しようとする問題点] しかし、無制限に文字を連綿させていくと、「読みやす
さ」、「自然さ」が損われることは明らかであり、この
面での解決が課題として残されている。換言すれば、連
綿されると読みづらくなり、不自然になってしまう文字
同士は連綿させない方がよいわけであるが、問題は連綿
の可否をどのような条件にするかということである。
[Problems to be Solved by the Invention] However, it is clear that if the characters are continuously linked, "readableness" and "naturalness" are impaired, and a solution in this respect remains as a problem. Has been done. In other words, it is better not to repeat characters that are difficult to read and become unnatural when repeated, but the problem is what kind of condition should be taken to determine whether or not continuous repetition is possible.

したがって、この発明は、新規な連綿可否条件によって
文字間の連綿の可否を決め、以って、連綿文字の読みや
すさ、自然さの向上を図る連綿文字作成方式を提供する
ことを課題とする。
Therefore, it is an object of the present invention to provide a continuous character creating method that determines whether continuous characters between characters can be combined or not based on a new continuous character compatibility condition, thereby improving the readability and naturalness of continuous characters. .

[問題点を解決するための手段] 第1図はこの発明の機能ブロック図である。本図におい
て、Aは各文字の起筆と終筆の位置を記憶する起筆終筆
位置記憶手段、Bはこの起筆終筆位置記憶手段より、第
1文字の終筆位置と第2文字の起筆位置の情報を抽出す
る抽出手段、Cは第1文字の終筆位置と第2文字の起筆
位置との位置関係に基づいて両文字の連綿部分を作成す
るかどうかを決定する連綿可否決定手段である。
[Means for Solving Problems] FIG. 1 is a functional block diagram of the present invention. In this figure, A is a brush stroke end stroke position storage means for storing the strokes of each character, and B is a stroke end position for the first character and a stroke position for the second character from this stroke end stroke position storage means. C is a continuation possibility determining means for deciding whether or not to create a continuous portion of both characters based on the positional relationship between the end stroke position of the first character and the stroke position of the second character. .

[発明の作用] この発明は、文字同士の連綿を行う場合において、前の
文字(第1文字)の終筆位置から後の文字(第2文字)
の起筆位置までの隔りが長すぎるような場合、連綿部分
が長くなりすぎて読みづらくなることに着目したもので
ある。終筆と起筆の隔りを考慮して連綿を行うため、こ
の発明では、第1図に起筆終筆位置記憶手段Aで示すよ
うに、各文字の付加情報として、その起筆と終筆の位置
情報を持たせている。そして、連綿可否決定の対象とな
る第1文字と第2文字に関し、第1文字の終筆位置情報
と第2文字の起筆位置情報とを抽出手段Bに抽出させ、
連綿可否決定手段Cにおいて、両者の位置関係に基づい
て、連綿の可否を決定している。
[Advantageous Effects of the Invention] In the present invention, when characters are continuously connected, a character (second character) after the last stroke of the preceding character (first character) is written.
When the distance to the writing position is too long, the continuous portion becomes too long and hard to read. Since the continuation is performed in consideration of the gap between the finish stroke and the brush stroke, in the present invention, as shown by the stroke finish stroke position storage means A in FIG. 1, the position of the stroke stroke and the stroke stroke is added as additional information of each character. It has information. Then, with respect to the first character and the second character that are the objects of the continuous availability determination, the extracting unit B is caused to extract the end-stroke position information of the first character and the stroke position information of the second character,
The continuous cotton availability determining means C determines the availability of continuous cotton based on the positional relationship between the two.

例えば、起筆と終筆の位置情報は、各文字フォントのマ
トリクス上におけるXとY座標の形式を有し、連綿可否
決定手段Cは第1文字の終筆と第2文字の起筆の各座標
成分の差が予め定めた基準値より小さい場合に連綿可と
判別する。
For example, the position information of the stroke and the end stroke has a format of X and Y coordinates in the matrix of each character font, and the continuous availability determination means C determines the coordinate components of the end stroke of the first character and the stroke of the second character. If the difference is smaller than the predetermined reference value, it is determined that continuous connection is possible.

文字間の連綿可能範囲を定める上記のような基準値はす
べての文字に共通の値とすることもできるが、各文字に
固有の値とすることで、連綿文字の美しさを向上させる
ことができる。
The above-mentioned reference value that defines the continuous range between characters can be a value common to all characters, but by setting a unique value for each character, the beauty of continuous characters can be improved. it can.

また、上記基準値をユーザプログラマブルにすること
で、連綿文字の作成にバリエーションをつけることがで
き、ユーザーの好みを反映させることが可能となる。
In addition, by making the above-mentioned reference value user programmable, it is possible to add variations to the continuous characters and to reflect the user's preference.

[実施例] 以下図面を参照して、この発明の一実施例を説明する。[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.

第2図に、本実施例のブロック構成を示す。本実施例は
日本語ワードプロセッサ上に実現されるもので草書風の
ひらがなをひらがな同士の起筆と終筆の位置関係に従っ
て連綿の可否を決定し、連綿印刷を行う機能を持ってい
る。
FIG. 2 shows the block configuration of this embodiment. This embodiment is implemented on a Japanese word processor, and has a function of determining whether or not continuous writing is possible based on the positional relationship between the writing and the ending of the hiragana in hiragana style, and performing continuous printing.

1は文書データを例えばJISのコード形式で保存する文
書データメモリである。
Reference numeral 1 is a document data memory for storing document data in a JIS code format, for example.

2は連綿させてよい文字間の起筆と終筆の範囲データを
記憶する連綿指定範囲メモリであり、ここでは、各文字
ごとにユーザーがその範囲を指定することができる。範
囲情報はx方向の長さとy方向の長さで与えられる。
Reference numeral 2 denotes a continuous specified range memory that stores range data of strokes and end strokes that may be repeated between characters. Here, the user can specify the range for each character. The range information is given by the length in the x direction and the length in the y direction.

3は印字制御部であり、図示しない入力装置(例えばキ
ーボード)を介して、連綿の範囲が指定されたときに
は、その情報を連綿指定範囲メモリ2に設定し、連綿の
印字指令が与えられたときには、後述する連綿印字を実
行する。
Reference numeral 3 denotes a print control unit which, when a range of continuous cotton is specified via an input device (not shown) (not shown), sets the information in the continuous range specified memory 2 and when a continuous print command is given. The continuous printing described later is executed.

4はフォントファイル構造のテーブルであり、このテー
ブルメモリには第3図に示すように、「あ」から「ん」
までの読み(文字コード)に、文字フォントデータ、文
字の起筆データX1、Y1、終筆データX2、Y2、連綿部分を
決めるためのスプライン計算で使用する補間データX3
Y3等が付属している。第4図は、文字フォントと起筆、
終筆、補間データの関係を例示したものである。なお、
本例では、連綿指定範囲メモリ2内の範囲データは文字
ごとに設定される関係上、各範囲データはフォントファ
イル構造テーブルの対応する文字情報とリンクされる。
Reference numeral 4 is a font file structure table, and in this table memory, as shown in FIG.
Up to the reading (character code), character font data, character writing data X 1 , Y 1 , final writing data X 2 , Y 2 , interpolation data X 3 used in spline calculation to determine continuous parts,
Y 3 etc. are included. Figure 4 shows the character font and brush strokes,
This is an example of the relationship between the final writing and the interpolation data. In addition,
In this example, since the range data in the continuous specified range memory 2 is set for each character, each range data is linked to the corresponding character information in the font file structure table.

出力文字記憶エリア(出力バッファ)5には、連綿指定
範囲メモリ2とフォントファイル構造テーブル4より取
り出した前文字と後文字の文字情報が置かれる。
In the output character storage area (output buffer) 5, character information of the preceding character and the succeeding character extracted from the continuous specified range memory 2 and the font file structure table 4 is placed.

連綿チェック作成部6は出力文字記憶エリア5にある文
字情報を使って、文字間の連綿の可否を決定し、連綿可
の場合には3次スプライン計算部7を起動して連綿部分
を計算させる。
The continuous strip check creating unit 6 determines whether continuous striping between characters is possible by using the character information stored in the output character storage area 5, and when continuous stripping is possible, activates the cubic spline calculation unit 7 to calculate the continuous strip portion. .

3次スプライン計算部7が行う処理は上述した特願昭61
−126011号に詳述してあるので、説明を省略する。
The processing performed by the cubic spline calculation unit 7 is the above-mentioned Japanese Patent Application No. 61.
Since it is described in detail in No. -126011, its explanation is omitted.

8は例えばページプリンタのような印字装置であり、9
はその印刷物である。
8 is a printing device such as a page printer, and 9
Is the printed matter.

第5図は本実施例の連綿可否の原理を図示したもので、
(a)に示すように、前文字「し」の終筆座標(x、
y)と後文字「て」の起筆(x′、y′)との間がそれ
ほど隔っていない場合、すなわち、x方向の差(x−
x′)とy方向の差(y−y′)が連綿指定範囲メモリ
2に設定された値lx、lyより小さい場合、連綿可と判別
され、連綿部分が印字される。一方、(b)に示すよう
に、前文字「せ」の終筆座標と後文字「ず」の始筆座標
との差が設定された指定範囲を越える場合には連綿不可
と判別され、連綿部分は作成されない。
FIG. 5 illustrates the principle of success / failure in this embodiment.
As shown in (a), the final stroke coordinates (x,
y) and the stroke (x ', y') of the latter letter "te" are not so far apart, that is, the difference in the x direction (x-
If the difference (y−y ′) between x ′) and the y direction is smaller than the values l x and l y set in the continuous cotton designation range memory 2, it is determined that continuous cotton is possible and the continuous cotton portion is printed. On the other hand, as shown in (b), when the difference between the end stroke coordinate of the front character "se" and the start stroke coordinate of the rear character "zu" exceeds the set specified range, it is determined that continuous line is not possible and the continuous line portion is Is not created.

第6図は連綿処理のゼネラルフローを示したもので、印
刷する文書の範囲その他必要な書式の設定後、草書の連
綿印刷の開始が指示されたとき、このフローに入る。
FIG. 6 shows a general flow of continuous printing processing, which is entered when the start of continuous printing of cursive is instructed after setting the range of the document to be printed and other necessary formats.

印刷制御部3により、フォントファイル構造テーブル4
と連綿指定範囲メモリ2より1文字分の文字情報が取り
出され、出力文字記憶エリア5に置かれる(S1)。デー
タポインタが印刷文書の先頭文字を示している場合は、
その文字フォントを印字し(S2、S3)、印字した文字の
文字情報を前文字情報として、データポイントを1つ進
め(S4)、次の文字情報の抽出に戻る。
The print control unit 3 controls the font file structure table 4
Then, the character information for one character is taken out from the continuous specified range memory 2 and placed in the output character storage area 5 (S1). If the data pointer points to the first character of the printed document,
The character font is printed (S2, S3), the character information of the printed character is used as the previous character information, the data point is advanced by one (S4), and the process returns to the extraction of the next character information.

抽出した文字情報が先頭文字情報でない場合は、最終文
字の印字完了がデータポインタによって示されるまで
(S5)、1文字単位で連綿チェックのサブルーチン(S
6)を実行して現在文字(後文字)の前文字に対する連
綿の可否を決め、その判別結果に従って連綿部分を作成
印字し、次の文字処理に移る。
If the extracted character information is not the first character information, the continuous character check subroutine for each character (S5) until the completion of printing the last character is indicated by the data pointer (S5)
6) is executed to decide whether or not continuous characters can be added to the preceding character of the current character (after character), the continuous character part is created and printed according to the determination result, and the next character processing is performed.

第7図は連綿チェックのサブルーチンの詳細フローであ
り、図示のように、T1で、連綿チェック作成部6は、後
文字情報の連綿指定範囲のx方向データを内部レジスタ
lx、y方向のデータをly、前文字の終筆位置のx座標を
x、y座標をy、現文字の起筆位置のx座標をx′、y
座標をy′に読み込む。T2で、(x−x′)を算出し、
lxとの大小を比較する。(x−x′)の計算値がlxを越
えているときはT3で示すように連綿部分の計算は実行し
ない。lx以内であればT4で示すように(y′−y)を算
出し、lyと大小を比較し、lyを越えているときはT5で示
すように連綿部分は作成せずにフローを抜ける。
FIG. 7 is a detailed flow of the continuous cotton check subroutine. As shown in FIG. 7, at T1, the continuous cotton check creating unit 6 stores the x-direction data in the continuous cotton specified range of the subsequent character information in the internal register.
l x , data in the y direction is l y , x coordinate of the last stroke position of the previous character is x, y coordinate is y, and x coordinate of the current character stroke position is x ′, y
Read the coordinates into y '. Calculate (xx-x ') at T2,
Compare the size with l x . (X-x ') calculated value of not perform the calculation of unbroken portion as shown by T3 when exceeds the l x. If it is within l x as shown by T4 calculates (y'-y), comparing the l y and sizes, the flow without unbroken part of creating as shown by T5 when exceeds the l y Exit through.

前文字の終筆x座標と現文字の起筆x座標との差(x−
x′)が設定値lx以内でありかつ前文字の終筆y座標と
現文字のy座標との差(y′−y)も設定値ly以内であ
る場合に限り、T6で示されるように連綿の対象となり、
連綿部分の作成、印字が行われる(T7)。
The difference between the end x coordinate of the previous character and the x coordinate of the current character (x-
x6) is within the set value l x , and the difference (y′−y) between the y coordinate of the previous character and the y coordinate of the current character is also within the set value l y, it is indicated by T6. Is subject to continuous cotton,
The continuous cotton part is created and printed (T7).

[発明の効果] 以上詳述したように、この発明は連綿部分があまり長い
と読みづらくなる、という連綿の基本的性質に沿ったも
ので、文字の終筆と起筆の位置情報を各文字に持たせ、
前文字の終筆と後文字の起筆との位置関係に従って連綿
の可否を決めているので、文字の組合せによる連綿が自
然に行われる利点がある。
[Effects of the Invention] As described in detail above, the present invention is in accordance with the basic property of continuous strips that it becomes difficult to read if the continuous strips are too long. Have it,
Since the continuation of the continuation is decided according to the positional relationship between the end stroke of the preceding character and the stroke of the succeeding character, there is an advantage that the continuation is naturally performed by combining the characters.

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

第1図はこの発明の機能ブロック図、第2図はこの発明
の一実施例の構成図、第3図はフォントファイルテーブ
ルの構成を示す図、第4図はフォントファイルテーブル
の情報の説明図、第5図は実施例による連綿処理の原理
説明図、第6図は連綿処理のゼネラルフローチャート、
第7図は連綿チェックの詳細なフローチャートである。 2……連綿指定範囲メモリ、3……印字制御部、4……
フォントファイル構造テーブル、6……連綿チェック作
成部、X1、Y1……起筆データ、X2、Y2……終筆データ、
lx、ly……連綿指定範囲データ。
FIG. 1 is a functional block diagram of the present invention, FIG. 2 is a configuration diagram of an embodiment of the present invention, FIG. 3 is a diagram showing a configuration of a font file table, and FIG. 4 is an explanatory diagram of information of the font file table. FIG. 5 is an explanatory view of the principle of continuous cotton processing according to the embodiment, FIG. 6 is a general flowchart of continuous cotton processing,
FIG. 7 is a detailed flowchart of continuous cotton check. 2 ... Continuous cotton specified range memory, 3 ... Print control unit, 4 ...
Font file structure table, 6 …… Continuous check creation section, X 1 , Y 1 …… Brush data, X 2 , Y 2 …… End brush data,
l x , l y ... Continuous range specified range data.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文字発生手段より与えられる文字同士を連
綿させる連綿文字作成方式において、 各文字の起筆と終筆の位置を記憶する起筆終筆位置記憶
手段と、 与えられた第1文字の終筆位置と与えられた第2文字の
起筆位置を上記起筆終筆位置記憶手段より抽出する抽出
手段と、 上記抽出手段より与えられる第1文字の終筆位置と第2
文字の起筆位置との位置関係に基づいて第1文字と第2
文字との連綿の可否を決定する連綿可否決定手段と、 を有することを特徴とする連綿文字作成方式。
1. A continuous character creating method for continuously connecting characters given by a character generating means, a writing end position storage means for storing the positions of the writing and ending of each character, and the end of a given first character. Extraction means for extracting the brush position and the given brush stroke position of the second character from the brush stroke end stroke position storage means, and the end stroke position of the first character given by the extraction means and the second stroke position.
The first character and the second character based on the positional relationship with the stroke position of the character.
A continuous character creation method characterized by having a continuous availability determining means for determining whether or not continuous characters are allowed.
JP61230146A 1986-09-30 1986-09-30 Continuous cotton character creation method Expired - Lifetime JPH0789274B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61230146A JPH0789274B2 (en) 1986-09-30 1986-09-30 Continuous cotton character creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61230146A JPH0789274B2 (en) 1986-09-30 1986-09-30 Continuous cotton character creation method

Publications (2)

Publication Number Publication Date
JPS6385695A JPS6385695A (en) 1988-04-16
JPH0789274B2 true JPH0789274B2 (en) 1995-09-27

Family

ID=16903307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61230146A Expired - Lifetime JPH0789274B2 (en) 1986-09-30 1986-09-30 Continuous cotton character creation method

Country Status (1)

Country Link
JP (1) JPH0789274B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2662035B2 (en) * 1989-07-05 1997-10-08 キヤノン株式会社 Character processor
JP2008229197A (en) 2007-03-23 2008-10-02 Brother Ind Ltd Embroidery data processing apparatus, embroidery sewing machine, embroidery data processing program, and computer-readable recording medium recording the embroidery data processing program
JP2009108434A (en) 2007-10-30 2009-05-21 Brother Ind Ltd Boring device and multi-needle embroidery sewing machine equipped with a boring device
JP4720921B2 (en) * 2009-03-23 2011-07-13 ブラザー工業株式会社 Multi-needle embroidery machine

Also Published As

Publication number Publication date
JPS6385695A (en) 1988-04-16

Similar Documents

Publication Publication Date Title
JPH0789274B2 (en) Continuous cotton character creation method
JPS645344B2 (en)
JPS58208865A (en) Document producing device
JP2584973B2 (en) Recognition result output method in character recognition device
JPH07122787B2 (en) Continuous character generator
JPH02280195A (en) Character processing device and method
JPH01229673A (en) English and european writing printing control system
JP2569489B2 (en) Brush character output device
JP2647510B2 (en) Character processing apparatus and method
JP2951809B2 (en) Handwritten font printing method
JP2687478B2 (en) Printing device
JP2525333B2 (en) Output device
JPH0687249A (en) Apparatus for printing address
JPH06100905B2 (en) Pattern output method
JP2567590B2 (en) Character generator
JPH08153092A (en) Document processing device
JPH07141340A (en) Document output method and document processing apparatus
JPH06320801A (en) Printer
JPH0542720A (en) Printing device
JPH01103467A (en) Document output method
JPH0831092B2 (en) Document processing device
JPH0652156A (en) Document processing method and apparatus
JPH06124281A (en) Japanese line processing method
JPH04111116A (en) character processing device
JPH082666B2 (en) Print processing device