JPH08216480A - Pattern generator - Google Patents

Pattern generator

Info

Publication number
JPH08216480A
JPH08216480A JP7044878A JP4487895A JPH08216480A JP H08216480 A JPH08216480 A JP H08216480A JP 7044878 A JP7044878 A JP 7044878A JP 4487895 A JP4487895 A JP 4487895A JP H08216480 A JPH08216480 A JP H08216480A
Authority
JP
Japan
Prior art keywords
pattern
ruled line
data
vector data
continuous
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
JP7044878A
Other languages
Japanese (ja)
Inventor
Masahiko Muramatsu
正彦 村松
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP7044878A priority Critical patent/JPH08216480A/en
Publication of JPH08216480A publication Critical patent/JPH08216480A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: To form rules over a plurality of continuous characters at a high speed. CONSTITUTION: The pattern storage means of a pattern generator stores patterns P21, P22 as rule basic pattern. '4' is input as a parameter A together with the character codes of the patterns P21, P11 from input means to the generator. The generator reads the patterns P21, P11 from the storage means by the input code, processes the combination pattern PO by the parameter A to obtain a chain pattern PA over the five continuous characters. The superposed line segments 5a to 5d of the pattern PA are deleted, and the patterns PB after the deletion are simultaneously rasterized.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、文書作成システムに
おける文字処理装置としてのパターン発生装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern generating device as a character processing device in a document creating system.

【0002】[0002]

【従来の技術】ワードプロセッサなどの文書作成システ
ムにおいて文書中に文字の一種として罫線を形成するに
は、キー入力操作やマウス操作などにより文書作成シス
テムの文字処理装置に文字コードとして罫線データを入
力して、その罫線データにより文字処理装置のパターン
記憶手段から罫線パターンのベクトルデータを読み出
し、そのベクトルデータをラスタライズして文字処理装
置から出力して、ディスプレイ上に罫線を表示し、ある
いはさらにプリンタにより用紙上に印字する方法がとら
れる。
2. Description of the Related Art In order to form a ruled line as a kind of character in a document in a document creation system such as a word processor, ruled line data is input as a character code to a character processing device of the document creation system by a key input operation or a mouse operation. Then, the ruled line data is used to read the vector data of the ruled line pattern from the pattern storage means of the character processing device, the vector data is rasterized and output from the character processing device, and the ruled line is displayed on the display, or the paper is printed by the printer. The method of printing on the top is taken.

【0003】この場合、従来は、罫線パターンと文字コ
ードが1対1の対応関係にされ、例えば罫線パターンと
して図13(A)(B)(C)に示すような各パターン
P11,P12,P21,P22,P23,P24,P
31,P32,P33,P34を出力する場合には、こ
れらすべての罫線パターンについてのベクトルデータが
あらかじめパターン記憶手段に格納され、文字処理装置
に入力された文字コードにより読み出されるようにされ
ている。
In this case, conventionally, the ruled line pattern and the character code have a one-to-one correspondence relationship, and for example, as the ruled line pattern, each pattern P11, P12, P21 as shown in FIGS. , P22, P23, P24, P
When outputting 31, P32, P33, and P34, vector data for all of these ruled line patterns is stored in the pattern storage means in advance and read by the character code input to the character processing device.

【0004】しかし、この方法によるときは、パターン
記憶手段として大容量のものが必要となる。
However, this method requires a large-capacity pattern storage means.

【0005】そこで、特開平4−111115号公報で
は、パターン記憶手段には図13(A)(B)(C)の
パターンP11,P21,P31のような限られた罫線
パターンのみを罫線基本パターンとして格納し、図13
(A)(B)(C)のパターンP12,P22〜P2
4,P32〜P34のような罫線パターンは、その罫線
基本パターンを回転させることにより得る方法が提案さ
れている。
Therefore, in Japanese Patent Laid-Open No. 4-111115, only the limited ruled line patterns such as the patterns P11, P21 and P31 of FIGS. 13A, 13B and 13C are stored in the pattern storage means. Stored as FIG.
(A) (B) (C) patterns P12, P22 to P2
A method of obtaining a ruled line pattern such as 4, P32 to P34 by rotating the ruled line basic pattern has been proposed.

【0006】この特開平4−111115号公報に示さ
れた方法によるときは、例えば、罫線基本パターンとし
て横線の罫線パターンP11がパターン記憶手段に格納
されている場合に、「横書き」により、表やグラフなど
の一部として図14(A)に示すように横線の罫線を複
数文字分にわたって連続して形成するときには、図14
(B)に示すようにパターン記憶手段から横線の罫線パ
ターンP11についてのベクトルデータを複数文字分に
わたって繰り返し読み出し、図14(C)に示すように
その読み出したそれぞれのベクトルデータをラスタライ
ズして出力する。
According to the method disclosed in Japanese Patent Laid-Open No. 4-111115, for example, when a ruled line pattern P11 of horizontal lines is stored in the pattern storage means as a ruled line basic pattern, a table or When a horizontal ruled line is continuously formed over a plurality of characters as shown in FIG.
As shown in FIG. 14B, the vector data for the horizontal ruled line pattern P11 is repeatedly read from the pattern storage means over a plurality of characters, and each read vector data is rasterized and output as shown in FIG. 14C. .

【0007】また、例えば、同様に罫線基本パターンと
して横線の罫線パターンP11がパターン記憶手段に格
納されている場合に、「縦書き」により、表やグラフな
どの一部として図15(A)に示すように縦線の罫線を
複数文字分にわたって連続して形成するときには、図1
5(B)に示すようにパターン記憶手段から横線の罫線
パターンP11についてのベクトルデータを複数文字分
にわたって繰り返し読み出し、その読み出したそれぞれ
のベクトルデータを90度回転させて図15(C)に示
すように縦線の罫線パターンP12についてのベクトル
データを複数文字分にわたって繰り返し得、図15
(D)に示すようにその回転後のそれぞれのベクトルデ
ータをラスタライズして出力する。
Also, for example, when a horizontal ruled line pattern P11 is similarly stored in the pattern storage means as a ruled line basic pattern, "vertical writing" is used to display a part of a table or graph as shown in FIG. When forming vertical ruled lines continuously over a plurality of characters as shown in FIG.
As shown in FIG. 15C, the vector data for the horizontal ruled line pattern P11 is repeatedly read out over a plurality of characters from the pattern storage means as shown in FIG. 5B, and the read-out vector data is rotated by 90 degrees. The vector data of the vertical ruled line pattern P12 can be repeatedly obtained for a plurality of characters.
As shown in (D), each vector data after the rotation is rasterized and output.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、特開平
4−111115号公報に示された従来の方法において
は、罫線基本パターンとして横線の罫線パターンP11
がパターン記憶手段に格納されている場合でも、図14
(A)に示すように横線の罫線を複数文字分にわたって
連続して形成するときには、すべての罫線パターンにつ
いてのベクトルデータがパターン記憶手段に格納される
従前の方法と同様に、図14(B)に示すようにパター
ン記憶手段から横線の罫線パターンP11についてのベ
クトルデータを複数文字分にわたって繰り返し読み出
し、さらに図14(C)に示すようにその読み出したそ
れぞれのベクトルデータをラスタライズしなけらばなら
ず、連続する複数文字分にわたる罫線を形成するのに時
間がかかる不都合がある。
However, in the conventional method disclosed in Japanese Patent Laid-Open No. 4-111115, a horizontal ruled line pattern P11 is used as the ruled line basic pattern.
14 is stored in the pattern storage means, FIG.
When horizontal ruled lines are continuously formed over a plurality of characters as shown in (A), vector data for all ruled line patterns are stored in the pattern storage means, as in the conventional method shown in FIG. The vector data for the horizontal ruled line pattern P11 must be repeatedly read from the pattern storage means over a plurality of characters as shown in FIG. 14, and the read vector data must be rasterized as shown in FIG. 14C. However, there is an inconvenience that it takes time to form a ruled line for a plurality of consecutive characters.

【0009】さらに、特開平4−111115号公報に
示された従来の方法においては、例えば、罫線基本パタ
ーンとしてパターン記憶手段に縦線の罫線パターンP1
2が格納されてなく、横線の罫線パターンP11が格納
されている場合に、縦書きにより図15(A)に示すよ
うに縦線の罫線を複数文字分にわたって連続して形成す
るときには、図15(B)に示すようにパターン記憶手
段から横線の罫線パターンP11についてのベクトルデ
ータを複数文字分にわたって繰り返し読み出し、その読
み出したそれぞれのベクトルデータを90度回転させて
図15(C)に示すように縦線の罫線パターンP12に
ついてのベクトルデータを複数文字分にわたって繰り返
し得るとともに、図15(D)に示すようにその回転後
のそれぞれのベクトルデータをラスタライズしなければ
ならず、すべての罫線パターンについてのベクトルデー
タがパターン記憶手段に格納される従前の方法に比べ
て、すなわち罫線パターンのベクトルデータを回転させ
ることなく連続する複数文字分にわたる罫線を形成する
ときに比べて、連続する複数文字分にわたる罫線を形成
するのにかなり時間がかかる欠点がある。
Further, in the conventional method disclosed in Japanese Patent Laid-Open No. 4-111115, for example, a ruled line pattern P1 of vertical lines is stored in the pattern storage means as a ruled line basic pattern.
2 is not stored and the horizontal line ruled line pattern P11 is stored, when vertical line ruled lines are continuously formed over a plurality of characters as shown in FIG. As shown in FIG. 15C, the vector data for the horizontal ruled line pattern P11 is repeatedly read from the pattern storage means over a plurality of characters, and the read vector data is rotated by 90 degrees, as shown in FIG. The vector data for the vertical ruled line pattern P12 can be repeated for a plurality of characters, and the rotated vector data must be rasterized as shown in FIG. Compared with the conventional method in which vector data is stored in the pattern storage means, that is, the ruled line pattern is Than when forming a ruled line across multiple characters consecutive without rotating the vector data over emissions, there is a disadvantage that it takes considerable time to form a border across multiple characters consecutive.

【0010】そこで、この発明は、文書作成システムに
おける文字処理装置としてのパターン発生装置におい
て、連続する複数文字分にわたる罫線を高速で形成する
ことができるようにしたのもである。
In view of the above, the present invention has made it possible for a pattern generation device as a character processing device in a document creation system to form a ruled line over a plurality of consecutive characters at high speed.

【0011】[0011]

【課題を解決するための手段】請求項1の発明では、パ
ターン発生装置として、図1に示して後述する実施例の
参照符号を引用すると、罫線基本パターンのベクトルデ
ータを記憶するパターン記憶手段21と、文字を出力す
べきことを指示する入力文字データ中の罫線データによ
り上記パターン記憶手段21から罫線基本パターンのベ
クトルデータを読み出すパターン読出手段24と、上記
入力文字データ中に罫線データが2文字分以上連続する
とき、上記パターン記憶手段21から読み出された罫線
基本パターンのベクトルデータにもとづいて、連続する
複数文字分にわたる1つの罫線出力パターンについての
ベクトルデータを生成するパターン加工手段27と、上
記罫線出力パターンのベクトルデータをラスタライズし
て出力するラスタライズ手段28と、を設ける。
According to the first aspect of the present invention, when the reference numeral of the embodiment shown in FIG. 1 and described later is cited as the pattern generating device, the pattern storing means 21 for storing the vector data of the ruled line basic pattern. And pattern reading means 24 for reading the vector data of the ruled line basic pattern from the pattern storage means 21 by the ruled line data in the input character data indicating that a character should be output, and two ruled line data in the input character data. A pattern processing unit 27 for generating vector data for one ruled line output pattern over a plurality of consecutive characters based on the vector data of the ruled line basic pattern read from the pattern storage unit 21 when the number of consecutive minutes or more, Raster that rasterizes and outputs the vector data of the above ruled line output pattern And the size means 28, an provided.

【0012】請求項2の発明では、請求項1の発明のパ
ターン発生装置において、上記各手段に加えて、上記入
力文字データ中の罫線データが示す罫線パターンが、上
記罫線基本パターンを回転もしくはミラー反転させ、ま
たは位置移動もしくは太さ変更し、あるいは上記罫線基
本パターンにその他の変換を施すことにより得られるも
のであるとき、上記パターン記憶手段から読み出された
罫線基本パターンのベクトルデータを変換することによ
って、上記入力文字データ中の罫線データが示す罫線パ
ターンのベクトルデータを得るパターン変換手段25を
設ける。
According to a second aspect of the invention, in the pattern generating apparatus of the first aspect of the invention, in addition to the above means, the ruled line pattern indicated by the ruled line data in the input character data rotates or mirrors the ruled line basic pattern. When it is obtained by inverting, moving the position or changing the thickness, or performing other conversion on the ruled line basic pattern, the vector data of the ruled line basic pattern read from the pattern storage means is converted. Thus, the pattern conversion means 25 for obtaining the vector data of the ruled line pattern indicated by the ruled line data in the input character data is provided.

【0013】[0013]

【作用】上記のように構成した請求項1の発明のパター
ン発生装置においては、例えば、罫線基本パターンとし
て図13(A)に示すような横線の罫線パターンP11
および図13(B)に示すような左上隅に角を有するL
形の罫線パターンP21がパターン記憶手段21に格納
されている場合において、横書きにより、罫線パターン
P21の直後に罫線パターンP11が4文字分連続する
ような、図5(D)に示すような連続罫線PCを形成す
るとき、入力文字データ中に罫線パターンP21を示す
罫線データと罫線パターンP11を示す罫線データが連
続して得られることによって、パターン読出手段24に
よりパターン記憶手段21から図5(A)に示すように
罫線パターンP21のベクトルデータと罫線パターンP
11のベクトルデータが連続して読み出される。
In the pattern generating apparatus according to the first aspect of the present invention configured as described above, for example, a horizontal ruled line pattern P11 as shown in FIG. 13A is used as the ruled line basic pattern.
And L having a corner in the upper left corner as shown in FIG.
In the case where the ruled line pattern P21 of the shape is stored in the pattern storage means 21, the continuous ruled line as shown in FIG. 5D in which the ruled line pattern P11 is continuous for four characters immediately after the ruled line pattern P21 by horizontal writing. When the PC is formed, the ruled line data indicating the ruled line pattern P21 and the ruled line data indicating the ruled line pattern P11 are continuously obtained in the input character data. As shown in, the vector data of the ruled line pattern P21 and the ruled line pattern P
Eleven vector data are continuously read.

【0014】さらに、入力文字データ中に罫線パターン
P11が4文字分連続すべきことを示すパラメータが付
与されることによって、または入力文字データ中に罫線
パターンP11を示す罫線データが4文字分連続して得
られ、これがパターン発生装置において検出されること
によって、パターン加工手段27においては、パターン
記憶手段21から読み出された罫線パターンP21,P
11のベクトルデータにもとづいて、罫線パターンの加
工により、罫線パターンP21の直後に罫線パターンP
11が4文字分連続するような、図5(C)に示すよう
な連続する5文字分にわたる1つの罫線出力パターンP
Bのベクトルデータが生成される。
Furthermore, by adding a parameter indicating that the ruled line pattern P11 should be continuous for four characters in the input character data, or the ruled line data indicating the ruled line pattern P11 is continuous for four characters in the input character data. The obtained pattern is detected by the pattern generator, so that the pattern processing means 27 causes the ruled line patterns P21, P read from the pattern storage means 21.
Based on the vector data of 11, the ruled line pattern P is processed immediately after the ruled line pattern P21 by processing the ruled line pattern P21.
One ruled line output pattern P over five consecutive characters as shown in FIG. 5C such that 11 is consecutive for four characters.
B vector data is generated.

【0015】そして、この連続する5文字分にわたる1
つの罫線出力パターンPBについてのベクトルデータが
ラスタライズ手段28により一度にラスタライズされ
る。したがって、図5(D)に示すような連続する5文
字分にわたる罫線PCが高速で形成される。
Then, 1 over this continuous 5 characters
Vector data for one ruled line output pattern PB is rasterized at once by the rasterizing means 28. Therefore, the ruled line PC for five consecutive characters as shown in FIG. 5D is formed at high speed.

【0016】上記のように構成した請求項2の発明のパ
ターン発生装置においては、例えば、罫線基本パターン
としてパターン記憶手段21に図13(A)に示すよう
な縦線の罫線パターンP12が格納されてなく、横線の
罫線パターンP11が格納されている場合において、縦
書きにより、罫線パターンP12が4文字分連続するよ
うな、図9に示すような連続罫線PJを形成するとき、
入力文字データ中に罫線パターンP12を示す罫線デー
タが得られることによって、パターン読出手段24によ
りパターン記憶手段21から図9に示すように罫線パタ
ーンP11のベクトルデータが読み出されるとともに、
その読み出された罫線パターンP11のベクトルデータ
がパターン変換手段25により90度回転させられて、
パターン変換手段25から図9に示すように罫線パター
ンP12のベクトルデータが得られる。
In the pattern generating apparatus of the second aspect of the present invention configured as described above, for example, the ruled line basic pattern is stored in the pattern storage means 21 as a ruled line pattern P12 of vertical lines as shown in FIG. 13 (A). In the case where the horizontal ruled line pattern P11 is stored, when the continuous ruled line PJ as shown in FIG. 9 is formed by vertical writing such that the ruled line pattern P12 is continuous for four characters,
By obtaining the ruled line data indicating the ruled line pattern P12 in the input character data, the pattern reading unit 24 reads the vector data of the ruled line pattern P11 from the pattern storage unit 21 as shown in FIG.
The read vector data of the ruled line pattern P11 is rotated 90 degrees by the pattern conversion means 25,
Vector data of the ruled line pattern P12 is obtained from the pattern conversion means 25 as shown in FIG.

【0017】さらに、入力文字データ中に罫線パターン
P12が4文字分連続すべきことを示すパラメータが付
与されることによって、または入力文字データ中に罫線
パターンP12を示す罫線データが4文字分連続して得
られ、これがパターン発生装置において検出されること
によって、パターン加工手段27においては、パターン
変換手段25から得られた罫線パターンP12のベクト
ルデータにもとづいて、罫線パターンの加工により、図
9に示すような連続する4文字分にわたる1つの罫線出
力パターンPKについてのベクトルデータが生成され
る。
Further, by adding a parameter indicating that the ruled line pattern P12 should be continuous for 4 characters in the input character data, or the ruled line data indicating the ruled line pattern P12 is continuous for 4 characters in the input character data. 9 is obtained by processing the ruled line pattern on the basis of the vector data of the ruled line pattern P12 obtained from the pattern conversion means 25 in the pattern processing means 27 as shown in FIG. Vector data for one ruled line output pattern PK over four consecutive characters is generated.

【0018】そして、この連続する4文字分にわたる1
つの罫線出力パターンPKについてのベクトルデータが
ラスタライズ手段28により一度にラスタライズされ
る。したがって、罫線パターンのベクトルデータの回転
も、ラスタライズも、それぞれ一度なされるだけであ
り、図9に示すような連続する4文字分にわたる罫線P
Jが高速で形成される。
Then, 1 for this continuous four characters
Vector data for one ruled line output pattern PK is rasterized at once by the rasterizing means 28. Therefore, the vector data of the ruled line pattern is rotated and rasterized only once, and the ruled line P for four consecutive characters as shown in FIG.
J is formed at high speed.

【0019】[0019]

【実施例】図1は、この発明のパターン発生装置の一例
を備える文書作成システムの一例を示し、その文書作成
システムは、入力装置10、この発明のパターン発生装
置の一例であるパターン発生装置20、および出力装置
30を備える。
1 shows an example of a document creating system including an example of a pattern generating apparatus of the present invention. The document creating system includes an input device 10 and a pattern generating apparatus 20 which is an example of the pattern generating apparatus of the present invention. , And an output device 30.

【0020】入力装置10は、キー入力手段やマウスな
どからなる入力手段11と、入力手段11による入力操
作により辞書メモリから文字コードを読み出し、編集処
理などをする処理手段12と、作成ずみの文書について
のデータを記憶する文書データ記憶手段13とを有し、
後述するようにパターン発生装置20に対して文字を出
力すべきことを指示する入力文字データを送出する。
The input device 10 includes an input means 11 including a key input means and a mouse, a processing means 12 for reading a character code from a dictionary memory by an input operation by the input means 11 and performing an editing process, and a prepared document. Document data storage means 13 for storing data about
As will be described later, the input character data instructing the pattern generator 20 to output a character is transmitted.

【0021】パターン発生装置20は、この例では、パ
ターン記憶手段21、罫線データ判別手段22、連続罫
線判別手段23、パターン読出手段24、パターン変換
手段25、パターン加工判別手段26、パターン加工手
段27、ラスタライズ手段28、およびパターン出力手
段29を有する。
In this example, the pattern generation device 20 includes a pattern storage means 21, a ruled line data determination means 22, a continuous ruled line determination means 23, a pattern reading means 24, a pattern conversion means 25, a pattern processing determination means 26, and a pattern processing means 27. , Rasterizing means 28, and pattern output means 29.

【0022】パターン記憶手段21は、罫線基本パター
ンのベクトルデータを記憶するものである。以下に示す
例は、罫線基本パターンとしてパターン記憶手段21
に、図13(A)に示すような横線の罫線パターンP1
1および図13(B)に示すような左上隅に角を有する
L形の罫線パターンP21のみが格納され、図13
(A)に示すような縦線の罫線パターンP12および図
13(B)に示すような罫線パターンP21を回転させ
た罫線パターンP22〜P24は格納されない場合であ
る。
The pattern storage means 21 stores vector data of the ruled line basic pattern. In the example shown below, the pattern storage means 21 is used as the ruled line basic pattern.
, A horizontal ruled line pattern P1 as shown in FIG.
1 and only the L-shaped ruled line pattern P21 having a corner in the upper left corner as shown in FIG.
This is a case where the ruled line pattern P12 having vertical lines as shown in FIG. 13A and the ruled line patterns P22 to P24 obtained by rotating the ruled line pattern P21 as shown in FIG. 13B are not stored.

【0023】罫線データ判別手段22は、入力装置10
からパターン発生装置20に送出された入力文字データ
中の罫線データを判別して、パターン発生装置20に取
り込む。罫線データとしては、罫線文字コードのほかに
後述するパラメータを含む。
The ruled line data discriminating means 22 is the input device 10.
The ruled line data in the input character data sent from the pattern generator 20 to the pattern generator 20 is discriminated and taken into the pattern generator 20. The ruled line data includes parameters to be described later in addition to the ruled line character code.

【0024】連続罫線判別手段23は、罫線データ判別
手段22の出力データから、入力文字データ中に罫線デ
ータが2文字分以上連続するか否かを判別する。入力文
字データ中に、ある1つの罫線文字コードとともに後述
するパラメータが得られる場合も、罫線データが2文字
分以上連続する場合である。連続罫線判別手段23から
は、その判別出力とともに、罫線データ判別手段22の
出力データ、すなわち入力文字データ中の罫線データが
取り出される。この連続罫線判別手段23の出力データ
は、パターン読出手段24に送出されるとともに、パタ
ーン加工判別手段26に送出される。
The continuous ruled line discriminating unit 23 discriminates from the output data of the ruled line data discriminating unit 22 whether or not the ruled line data is continuous for two characters or more in the input character data. Even when a parameter to be described later is obtained in the input character data together with a certain ruled line character code, the ruled line data is continuous for two characters or more. From the continuous ruled line discriminating means 23, along with the discrimination output, the output data of the ruled line data discriminating means 22, that is, the ruled line data in the input character data is taken out. The output data of the continuous ruled line discriminating means 23 is sent to the pattern reading means 24 and the pattern processing discriminating means 26.

【0025】パターン読出手段24は、入力装置10か
ら罫線データ判別手段22および連続罫線判別手段23
を通じてパターン読出手段24に入力された罫線データ
中の罫線文字コードにより、パターン記憶手段21か
ら、その罫線文字コードに対応する罫線基本パターンの
ベクトルデータを、すなわち罫線文字コードが罫線パタ
ーンP11またはP12を示すときには罫線パターンP
11のベクトルデータを、罫線文字コードが罫線パター
ンP21,P22,P23またはP24を示すときには
罫線パターンP21のベクトルデータを、読み出す。
The pattern reading means 24 includes the ruled line data discrimination means 22 and the continuous ruled line discrimination means 23 from the input device 10.
Through the ruled line character code in the ruled line data input to the pattern reading means 24 through the pattern storage means 21, the vector data of the ruled line basic pattern corresponding to the ruled line character code, that is, the ruled line character code is the ruled line pattern P11 or P12. When shown, ruled line pattern P
When the ruled line character code indicates the ruled line pattern P21, P22, P23 or P24, the vector data of 11 is read out.

【0026】パターン読出手段24によりパターン記憶
手段21から読み出された罫線基本パターンのベクトル
データは、入力文字データ中に罫線データが2文字分以
上連続せず、かつ入力文字データ中の罫線文字コードが
示す罫線パターンが罫線基本パターンであるときには、
パターン読出手段24から直接、ラスタライズ手段28
に取り込まれる。
In the vector data of the ruled line basic pattern read from the pattern storage unit 21 by the pattern reading unit 24, the ruled line data is not continuous for two or more characters in the input character data, and the ruled line character code in the input character data is When the ruled line pattern indicated by is a ruled line basic pattern,
Rasterizing means 28 directly from the pattern reading means 24.
Is taken into.

【0027】また、入力文字データ中に罫線データが2
文字分以上連続するか否かにかかわらず、入力文字デー
タ中の罫線文字コードが示す罫線パターンが罫線基本パ
ターンでないときには、パターン記憶手段21から読み
出された罫線基本パターンのベクトルデータは、パター
ン変換手段25に供給される。
In addition, the ruled line data is 2 in the input character data.
If the ruled line pattern indicated by the ruled line character code in the input character data is not the ruled line basic pattern, the vector data of the ruled line basic pattern read from the pattern storage means 21 is converted into the pattern regardless of whether or not there are continuous characters. Is supplied to the means 25.

【0028】さらに、入力文字データ中に罫線データが
2文字分以上連続し、かつ入力文字データ中の罫線文字
コードが示す罫線パターンが罫線基本パターンであると
きには、パターン記憶手段21から読み出された罫線基
本パターンのベクトルデータは、パターン加工判別手段
26に取り込まれる。
Further, when the ruled line data is continuous for two characters or more in the input character data and the ruled line pattern indicated by the ruled line character code in the input character data is the ruled line basic pattern, it is read from the pattern storage means 21. The vector data of the ruled line basic pattern is taken into the pattern processing discrimination means 26.

【0029】パターン変換手段25は、入力文字データ
中の罫線文字コードが示す罫線パターンが罫線基本パタ
ーンでないとき、パターン読出手段24によりパターン
記憶手段21から読み出された罫線基本パターンのベク
トルデータを、入力文字データ中の罫線文字コードが示
す罫線パターンのベクトルデータに変換する。すなわ
ち、上記の例では、入力文字データ中の罫線文字コード
が罫線パターンP12またはP22〜P24を示すと
き、パターン記憶手段21から読み出された罫線パター
ンP11またはP21のベクトルデータを回転させて、
罫線パターンP12またはP22〜P24のベクトルデ
ータを得る。
When the ruled line pattern indicated by the ruled line character code in the input character data is not the ruled line basic pattern, the pattern conversion unit 25 converts the vector data of the ruled line basic pattern read from the pattern storage unit 21 by the pattern reading unit 24 into Converts to vector data of the ruled line pattern indicated by the ruled line character code in the input character data. That is, in the above example, when the ruled line character code in the input character data indicates the ruled line pattern P12 or P22 to P24, the vector data of the ruled line pattern P11 or P21 read from the pattern storage means 21 is rotated,
Vector data of the ruled line pattern P12 or P22 to P24 is obtained.

【0030】パターン変換手段25で得られた罫線パタ
ーンのベクトルデータは、入力文字データ中に罫線デー
タが2文字分以上連続しないときには、パターン変換手
段25から直接、ラスタライズ手段28に取り込まれ、
入力文字データ中に罫線データが2文字分以上連続する
ときには、パターン加工判別手段26に取り込まれる。
The vector data of the ruled line pattern obtained by the pattern conversion means 25 is directly fetched from the pattern conversion means 25 into the rasterization means 28 when the ruled line data in the input character data is not continuous for two characters or more.
When the ruled line data continues for two characters or more in the input character data, it is taken into the pattern processing discrimination means 26.

【0031】パターン加工判別手段26は、入力文字デ
ータ中に罫線データが2文字分以上連続するとき、罫線
パターンの加工により連続する複数文字分にわたる1つ
の罫線出力パターンについてのベクトルデータを生成す
るか否かを、後述するように判別する。
When the ruled line data is continuous for two characters or more in the input character data, the pattern processing discrimination means 26 generates vector data for one ruled line output pattern over a plurality of consecutive characters by processing the ruled line pattern. Whether or not it is determined as described later.

【0032】パターン加工判別手段26で連続する複数
文字分にわたる1つの罫線出力パターンについてのベク
トルデータを生成すると判断したときには、パターン記
憶手段21から読み出された罫線基本パターンのベクト
ルデータないしパターン変換手段25から得られた罫線
パターンのベクトルデータと、後述するパラメータが、
パターン加工手段27に取り込まれる。
When the pattern processing discriminating means 26 determines that vector data for one ruled line output pattern for a plurality of consecutive characters is to be generated, the vector data of the ruled line basic pattern read from the pattern storing means 21 or the pattern converting means. The vector data of the ruled line pattern obtained from No. 25 and the parameters described later are
It is taken into the pattern processing means 27.

【0033】パターン加工判別手段26で連続する複数
文字分にわたる1つの罫線出力パターンについてのベク
トルデータを生成しないと判断したときには、パターン
記憶手段21から読み出された罫線基本パターンのベク
トルデータないしパターン変換手段25から得られた罫
線パターンのベクトルデータが、パターン加工判別手段
26を通じてそのままラスタライズ手段28に取り込ま
れる。
When the pattern processing discriminating means 26 determines that the vector data for one ruled line output pattern for a plurality of consecutive characters is not generated, the vector data or pattern conversion of the ruled line basic pattern read from the pattern storage means 21. The vector data of the ruled line pattern obtained from the means 25 is taken into the rasterizing means 28 as it is through the pattern processing discrimination means 26.

【0034】パターン加工手段27は、入力文字データ
中に罫線データが2文字分以上連続し、パターン加工判
別手段26で連続する複数文字分にわたる1つの罫線出
力パターンについてのベクトルデータを生成すると判断
したとき、後述するように、その連続する複数文字分に
わたる1つの罫線出力パターンについてのベクトルデー
タを生成する。
The pattern processing means 27 judges that the ruled line data is continuous for two characters or more in the input character data, and the pattern processing judgment means 26 determines to generate vector data for one ruled line output pattern over a plurality of continuous characters. At this time, as will be described later, vector data for one ruled line output pattern over a plurality of consecutive characters is generated.

【0035】ラスタライズ手段28は、パターン記憶手
段21から読み出されてパターン読出手段24からラス
タライズ手段28に直接取り込まれた罫線基本パターン
のベクトルデータ、パターン変換手段25からラスタラ
イズ手段28に直接取り込まれた罫線パターンのベクト
ルデータ、パターン加工判別手段26を通じてラスタラ
イズ手段28に取り込まれた、パターン記憶手段21か
らの罫線基本パターンのベクトルデータないしパターン
変換手段25からの罫線パターンのベクトルデータ、お
よびパターン加工手段27で生成された連続する複数文
字分にわたる1つの罫線出力パターンについてのベクト
ルデータを、ラスタライズする。
The rasterizing means 28 is the vector data of the ruled line basic pattern read from the pattern storing means 21 and directly taken into the rasterizing means 28 from the pattern reading means 24, and directly taken into the rasterizing means 28 from the pattern converting means 25. The vector data of the ruled line pattern, the vector data of the ruled line basic pattern from the pattern storage unit 21 or the vector data of the ruled line pattern from the pattern conversion unit 25, and the pattern processing unit 27, which are loaded into the rasterizing unit 28 through the pattern processing determination unit 26. The vector data for one ruled line output pattern over a plurality of consecutive characters generated in (1) is rasterized.

【0036】パターン出力手段29は、ラスタライズ手
段28からのラスタライズされたパターンデータを出力
装置30に出力するもので、パターン発生装置20の出
力バッファを構成する。
The pattern output means 29 outputs the rasterized pattern data from the rasterization means 28 to the output device 30, and constitutes an output buffer of the pattern generation device 20.

【0037】出力装置30は、CRTディスプレイや液
晶ディスプレイなどの表示手段31と、プリンタなどの
印字手段32とを有し、パターン発生装置20のパター
ン出力手段29からのラスタライズされたパターンデー
タにより、表示手段31上に罫線を表示するとともに、
印字手段32により罫線を印字する。
The output device 30 has a display means 31 such as a CRT display or a liquid crystal display, and a printing means 32 such as a printer, and displays the rasterized pattern data from the pattern output means 29 of the pattern generator 20. While displaying the ruled lines on the means 31,
The printing unit 32 prints ruled lines.

【0038】具体的に、図13(A)(B)に示した罫
線パターンP11,P12,P21,P22により、横
書きにより、図2または図3に示すような表を形成する
場合につき示す。
Specifically, a case will be described in which the ruled line patterns P11, P12, P21 and P22 shown in FIGS. 13A and 13B are used to form a table as shown in FIG. 2 or 3 by horizontal writing.

【0039】ただし、図2の表は、1行目R1から3行
目R3までについては、それぞれ、1文字目がパターン
P21、2文字目から5文字目までがそれぞれパターン
P11、6文字目がパターンP21、7文字目から9文
字目までがそれぞれパターンP11、10文字目がパタ
ーンP22で構成され、4行目R4については、1文字
目から10文字目までがそれぞれパターンP11で構成
されるものである。
However, in the table of FIG. 2, for the first line R1 to the third line R3, the first character is the pattern P21, the second character to the fifth character are the pattern P11 and the sixth character, respectively. In the pattern P21, the 7th to 9th characters are respectively composed of the pattern P11, the 10th character is composed of the pattern P22, and in the 4th row R4, the 1st to 10th characters are respectively composed of the pattern P11. Is.

【0040】この場合、1行目R1から3行目R3まで
のそれぞれ1文字目から5文字目までを連続罫線2a、
6文字目から9文字目までを連続罫線2b、4行目R4
の1文字目から10文字目までを連続罫線2c、とす
る。
In this case, the first to fifth characters of the first line R1 to the third line R3 are respectively the continuous ruled lines 2a,
Continuous ruled line 2b from the 6th character to the 9th character, 4th line R4
The 1st to 10th characters are defined as the continuous ruled line 2c.

【0041】また、図3の表は、1行目R1および3行
目R3については、それぞれ、1文字目、3文字目およ
び5文字目がパターンP21、2文字目、4文字目およ
び6文字目がパターンP11、7文字目がパターンP1
2で構成され、2行目R2については、1文字目、3文
字目、5文字目および7文字目にのみ不連続にパターン
P12を有するものである。
Further, in the table of FIG. 3, for the first line R1 and the third line R3, the first character, the third character and the fifth character are the pattern P21, the second character, the fourth character and the sixth character, respectively. The pattern is P11 for the eye and the pattern P1 for the seventh character
The second row R2 has the pattern P12 discontinuously only in the first character, the third character, the fifth character and the seventh character.

【0042】この場合、1行目R1および3行目R3の
それぞれ1文字目から6文字目までを連続罫線3aとす
る。
In this case, the first to sixth characters of the first line R1 and the third line R3 are set as the continuous ruled line 3a.

【0043】ここで、図4に示すように、パターンP2
1とパターンP11が連続するものを、組合せパターン
POとする。連続罫線2aは、組合せパターンPOの直
後にパターンP11が3文字分連続するものであり、連
続罫線2bは、組合せパターンPOの直後にパターンP
11が2文字分連続するものである。また、連続罫線3
aは、組合せパターンPO全体が3回連続するものであ
る。
Here, as shown in FIG. 4, the pattern P2
A combination of 1 and the pattern P11 is a combination pattern PO. In the continuous ruled line 2a, the pattern P11 is continuous for three characters immediately after the combination pattern PO, and in the continuous ruled line 2b, the pattern P11 is immediately after the combination pattern PO.
11 is continuous for two characters. Also, the continuous ruled line 3
In a, the whole combination pattern PO is repeated three times.

【0044】そして、入力装置10において入力手段1
1により、パターン発生装置20に罫線を出力すべきこ
とを指示し、パターン発生装置20に罫線データを送出
する場合には、連続罫線2aまたは2bのように組合せ
パターンPOの直後にパターンP11が何文字分か連続
すべき連続罫線ついては、パターンP21およびP11
の入力操作を一度ずつ行うとともに、パラメータAとし
てパターンP11が連続すべき文字数を設定する。すな
わち、連続罫線2aについては、A=4を、連続罫線2
bについては、A=3を、それぞれ指定する。
Then, in the input device 10, the input means 1
When 1 is used to instruct the pattern generation device 20 to output a ruled line and to send the ruled line data to the pattern generation device 20, the pattern P11 immediately follows the combination pattern PO, such as the continuous ruled line 2a or 2b. For continuous ruled lines that should be continuous for characters, patterns P21 and P11
The input operation is performed once, and the number of characters that the pattern P11 should be consecutive is set as the parameter A. That is, for the continuous ruled line 2a, A = 4
For b, specify A = 3.

【0045】連続罫線2cのようにパターンP11が何
文字分か連続すべき連続罫線についても、パターンP1
1の入力操作を一度行うとともに、パラメータAとして
パターンP11が連続すべき文字数を設定する。すなわ
ち、連続罫線2cについては、A=10を指定する。
For a continuous ruled line such as the continuous ruled line 2c which should be continuous for several characters, the pattern P1
The input operation 1 is performed once, and the number of characters that the pattern P11 should continue is set as the parameter A. That is, A = 10 is designated for the continuous ruled line 2c.

【0046】また、連続罫線3aのように組合せパター
ンPO全体が何回か連続すべき連続罫線については、パ
ターンP21およびP11の入力操作を一度ずつ行うと
ともに、別のパラメータBとして組合せパターンPO全
体が連続すべき回数を設定する。すなわち、連続罫線3
aについては、B=3を指定する。
For continuous ruled lines, such as the continuous ruled line 3a, where the entire combination pattern PO should be continuous several times, the input operation of the patterns P21 and P11 is performed once, and the entire combination pattern PO is set as another parameter B. Set the number of consecutive times. That is, the continuous ruled line 3
For a, B = 3 is specified.

【0047】入力手段11による上記のような入力操作
により、連続罫線2aおよび2bについては、それぞれ
パターンP21およびP11の文字コードとパラメータ
Aが、連続罫線2cについては、パターンP11の文字
コードとパラメータAが、連続罫線3aについては、パ
ターンP21およびP11の文字コードとパラメータB
が、それぞれ処理手段12からパターン発生装置20に
入力される。
By the above-mentioned input operation by the input means 11, the character code and the parameter A of the patterns P21 and P11 are respectively set for the continuous ruled lines 2a and 2b, and the character code and the parameter A of the pattern P11 are set for the continuous ruled line 2c. However, for the continuous ruled line 3a, the character codes of the patterns P21 and P11 and the parameter B
Are input to the pattern generator 20 from the processing means 12, respectively.

【0048】パターン発生装置20では、入力文字デー
タ中にパラメータAまたはBが存在することにより、連
続罫線判別手段23において連続罫線2a,2b,2
c,3aのような連続罫線が判別される。
In the pattern generator 20, since the parameter A or B exists in the input character data, the continuous ruled line discriminating means 23 causes the continuous ruled lines 2a, 2b, 2 to be detected.
Continuous ruled lines such as c and 3a are discriminated.

【0049】そして、連続罫線2a,2bまたは3aに
ついては、それぞれ罫線基本パターンであるパターンP
21およびP11のベクトルデータが、連続罫線2cに
ついては、罫線基本パターンであるパターンP11のベ
クトルデータが、それぞれパターン読出手段24により
パターン記憶手段21から読み出され、その読み出され
たベクトルデータと、連続罫線判別手段23からのパラ
メータAまたはBが、パターン加工判別手段26に供給
されて、パターンの加工をすべきことが判別される。
For each of the continuous ruled lines 2a, 2b or 3a, the pattern P, which is the ruled line basic pattern, is used.
21 and P11, for the continuous ruled line 2c, the vector data of the pattern P11 which is the ruled line basic pattern is read from the pattern storage unit 21 by the pattern reading unit 24, and the read vector data, The parameter A or B from the continuous ruled line discriminating means 23 is supplied to the pattern processing discriminating means 26 to discriminate that the pattern should be processed.

【0050】文書データ記憶手段13には、文書データ
として1文字ごとに文字コードが格納される。すなわ
ち、図2または図3に示すような表については、それぞ
れの行のそれぞれの文字ごとに文字コードが文書データ
記憶手段13に記憶される。
The document data storage means 13 stores a character code for each character as document data. That is, in the table as shown in FIG. 2 or 3, the character code is stored in the document data storage means 13 for each character in each line.

【0051】この文書データ記憶手段13に記憶された
文書データにより、パターン発生装置20に罫線を出力
すべきことが指示され、パターン発生装置20に罫線デ
ータが送出される場合には、入力文字データ中に罫線文
字コードが2文字分以上連続することにより、連続罫線
判別手段23において連続罫線2a,2b,2c,3a
のような連続罫線が判別され、パターン加工判別手段2
6において、その連続する罫線文字コードの内容からパ
ターンの加工をするか否かが判別され、パターンの加工
をするときには上記のパラメータAまたはBが設定され
る。
When the document data stored in the document data storage means 13 instructs the pattern generator 20 to output a ruled line and the ruled line data is transmitted to the pattern generator 20, the input character data is input. Since the ruled line character code is continuous for two characters or more in the inside, the continuous ruled line discriminating means 23 causes the continuous ruled lines 2a, 2b, 2c, 3a.
A continuous ruled line such as
At 6, it is judged from the contents of the continuous ruled line character code whether or not to process the pattern, and when the pattern is processed, the parameter A or B is set.

【0052】そして、いずれの場合も、パターンの加工
をすべきときには、パターン記憶手段21から読み出さ
れたベクトルデータとパラメータAまたはBがパターン
加工手段27に送出され、パターン加工手段27におい
て、図10に示す手順に従って、連続する複数文字分に
わたる1つの罫線出力パターンについてのベクトルデー
タが生成される。
In any case, when the pattern is to be processed, the vector data read from the pattern storage means 21 and the parameter A or B are sent to the pattern processing means 27, and the pattern processing means 27 displays the pattern data. According to the procedure shown in 10, vector data for one ruled line output pattern for a plurality of consecutive characters is generated.

【0053】まず、パラメータが上記のAであるかBで
あるかを、すなわち連続罫線が、連続罫線2a,2bの
ように組合せパターンPOの直後にパターンP11が何
文字分か連続し、または連続罫線2cのようにパターン
P11が何文字分か連続すべきものであるか、連続罫線
3aのように組合せパターンPO全体が何回か連続すべ
きものであるかを判断する(ステップS1)。
First, it is determined whether the parameter is A or B described above, that is, the continuous ruled line is the continuous ruled lines 2a and 2b, the pattern P11 is continuous for several characters immediately after the combination pattern PO, or continuous. It is determined whether the pattern P11 should be continuous for several characters like the ruled line 2c or how many times the entire combination pattern PO should be continuous like the continuous ruled line 3a (step S1).

【0054】パラメータがAであるときには、まず、連
続罫線2a,2bのように組合せパターンPOの直後に
パターンP11が何文字分か連続すべきものについては
組合せパターンPO中の右側の文字であるパターンP1
1についての、連続罫線2cのようにパターンP11が
何文字分か連続すべきものについては最初の文字である
パターンP11についての、それぞれパターン記憶手段
21から読み出されたベクトルデータのx座標の最大値
と最小値の差をx座標加算分dxとして算出する(ステ
ップS2)。
When the parameter is A, first, for the continuous ruled lines 2a and 2b, when the pattern P11 should be continuous for several characters immediately after the combination pattern PO, the pattern P1 which is the character on the right side of the combination pattern PO.
The maximum value of the x-coordinate of the vector data read from the pattern storage means 21 for the pattern P11 that is the first character of the continuous ruled line 2c for which the pattern P11 should be continuous for several characters. Is calculated as the x-coordinate addition dx (step S2).

【0055】すなわち、連続罫線2a,2bのように組
合せパターンPOの直後にパターンP11が何文字分か
連続すべきものについては、図5(A)に示すように、
組合せパターンPO中のパターンP21を構成する6個
の点を(x1,y1)(x2,y2)(x3,y3)
(x6,y6)(x7,y7)(x8,y8)とし、組
合せパターンPO中のパターンP11を構成する4個の
点を(x3,y3)(x4,y4)(x5,y5)(x
6,y6)とするとき、dx=x4−x3を算出する。
That is, as for the continuous ruled lines 2a and 2b, in which the pattern P11 should be continuous for several characters immediately after the combination pattern PO, as shown in FIG.
The six points forming the pattern P21 in the combination pattern PO are (x1, y1) (x2, y2) (x3, y3)
(X6, y6) (x7, y7) (x8, y8), and the four points forming the pattern P11 in the combination pattern PO are (x3, y3) (x4, y4) (x5, y5) (x
6, y6), dx = x4-x3 is calculated.

【0056】次に、ループカウンタの変数iをゼロとし
た上で(ステップS3)、変数iを1だけインクリメン
トし(ステップS4)、連続罫線2a,2bのように組
合せパターンPOの直後にパターンP11が何文字分か
連続すべきものについては組合せパターンPOに対し
て、組合せパターンPO中のパターンP11を構成する
4個の点のx座標にそれぞれi・dxを加算したものを
4個の点のx座標とし、パターンP11を構成する4個
の点のy座標をそれぞれそのまま4個の点のy座標とす
るパターンを、連続罫線2cのようにパターンP11が
何文字分か連続すべきものについては最初の文字である
パターンP11に対して、そのパターンP11を構成す
る4個の点のx座標にそれぞれi・dxを加算したもの
を4個の点のx座標とし、パターンP11を構成する4
個の点のy座標をそれぞれそのまま4個の点のy座標と
するパターンを、それぞれ付加した連鎖パターンのベク
トルデータを生成する(ステップS5)。
Next, the variable i of the loop counter is set to zero (step S3), the variable i is incremented by 1 (step S4), and the pattern P11 is formed immediately after the combination pattern PO like continuous ruled lines 2a and 2b. In the combination pattern PO, a number obtained by adding i · dx to the x coordinates of the four points forming the pattern P11 in the combination pattern PO is the x of the four points. A pattern in which the y-coordinates of the four points forming the pattern P11 are respectively used as the y-coordinates of the four points as they are is the first pattern for which the pattern P11 should be continuous for several characters like the continuous ruled line 2c. For a pattern P11 that is a character, the x-coordinates of the four points are obtained by adding i · dx to the x-coordinates of the four points that form the pattern P11. And, 4 constituting the pattern P11
Vector data of a chained pattern is generated by adding patterns each having the y-coordinate of each point as the y-coordinate of each of the four points (step S5).

【0057】次に、パラメータAに対して1だけ少ない
数をnとして、変数iがnより小さいか否かを判断し
(ステップS6)、変数iがnより小さいときには、ス
テップS4に戻って変数iを1だけインクリメントし、
さらにパターンを付加した連鎖パターンのベクトルデー
タを生成するとともに、変数iがnに達したときには、
パターンの付加を停止する。
Next, it is determined whether or not the variable i is smaller than n by setting n to be one less than the parameter A (step S6). When the variable i is smaller than n, the process returns to step S4 and the variable is changed. increment i by 1,
When the vector data of the chain pattern to which the pattern is added is generated and the variable i reaches n,
Stop adding the pattern.

【0058】したがって、連続罫線2aについては、A
=4,n=3であることから、図5(B)に示すよう
に、組合せパターンPO中のパターンP21およびP1
1に対して、点(x3+dx,y3)(x4+dx,y
4)(x5+dx,y5)(x6+dx,y6)で構成
される1文字分のパターンP11b、点(x3+2d
x,y3)(x4+2dx,y4)(x5+2dx,y
5)(x6+2dx,y6)で構成される1文字分のパ
ターンP11c、および点(x3+3dx,y3)(x
4+3dx,y4)(x5+3dx,y5)(x6+3
dx,y6)で構成される1文字分のパターンP11d
が付加された連鎖パターンPAのベクトルデータが生成
される。
Therefore, for the continuous ruled line 2a, A
= 4, n = 3, the patterns P21 and P1 in the combination pattern PO as shown in FIG.
For 1, the point (x3 + dx, y3) (x4 + dx, y
4) One character pattern P11b composed of (x5 + dx, y5) (x6 + dx, y6), point (x3 + 2d)
x, y3) (x4 + 2dx, y4) (x5 + 2dx, y
5) One character pattern P11c composed of (x6 + 2dx, y6) and point (x3 + 3dx, y3) (x
4 + 3dx, y4) (x5 + 3dx, y5) (x6 + 3
pattern P11d for one character composed of dx, y6)
The vector data of the chain pattern PA to which is added is generated.

【0059】連続罫線2bについては、A=3,n=2
であることから、パターンP21およびP11に対して
上記のパターンP11bおよびP11cが付加された連
鎖パターンのベクトルデータが生成される。
For the continuous ruled line 2b, A = 3, n = 2
Therefore, the vector data of the chain pattern in which the patterns P11b and P11c are added to the patterns P21 and P11 is generated.

【0060】また、連続罫線2cについては、パターン
P11が10文字分連続すべきもので、A=10,n=
9であることから、最初の文字であるパターンP11に
対して同じパターンP11が9個付加された連鎖パター
ンのベクトルデータが生成される。
Regarding the continuous ruled line 2c, the pattern P11 should be continuous for 10 characters, and A = 10, n =
Since it is 9, vector data of a chain pattern in which nine same patterns P11 are added to the pattern P11 which is the first character is generated.

【0061】次に、ループカウンタの変数iをゼロとし
た上で(ステップ7)、変数iを1だけインクリメント
し(ステップS8)、上記の連鎖パターンのi番目のパ
ターンと(i+1)番目のパターンの重なり合う線分を
削除する(ステップS9)。
Next, the variable i of the loop counter is set to zero (step 7), the variable i is incremented by 1 (step S8), and the i-th pattern and the (i + 1) -th pattern of the above-mentioned chain pattern are set. The overlapping line segments of are deleted (step S9).

【0062】すなわち、連続罫線2aについての図5
(B)に示した連鎖パターンPAについては、まず、組
合せパターンPO中のパターンP21とパターンP11
の重なり合う線分5aを削除する。また、連続罫線2c
についての上記の連鎖パターンについては、まず、最初
の文字であるパターンP11と次の文字であるパターン
P11の重なり合う線分を削除する。
That is, FIG. 5 for the continuous ruled line 2a.
Regarding the chain pattern PA shown in (B), first, the pattern P21 and the pattern P11 in the combination pattern PO are shown.
The overlapping line segment 5a of is deleted. In addition, continuous ruled line 2c
With respect to the above-mentioned chain pattern of, the overlapping line segment of the pattern P11 which is the first character and the pattern P11 which is the next character is first deleted.

【0063】一般に、図7(A)に示すように、ある罫
線パターンPpの右辺a−bと、これに続く罫線パター
ンPqの左辺c−dが、互いの一部で重なり合うとき
(図7(A)では便宜上僅かに離しているが、右辺a−
bと左辺c−dはx座標が同一であるとする)、その重
なり合う部分は、点a,b,c,d中のy座標が2番目
に大きい点と3番目に大きい点との間の部分、すなわち
図7(A)の場合には点aと点dの間の部分であり、そ
のy座標が2番目に大きい点と3番目に大きい点との間
の線分を削除することによって、図7(B)に示すよう
に1つの合成された罫線パターンPrが得られる。
In general, as shown in FIG. 7A, when a right side ab of a ruled line pattern Pp and a left side cd of a ruled line pattern Pq following the ruled line pattern Pp partially overlap each other (see FIG. 7 ( In A), they are slightly separated for convenience, but on the right side a-
b and the left side cd are assumed to have the same x coordinate), and the overlapping portion is between the point where the y coordinate in points a, b, c, d is the second largest point and the third largest point. By deleting the part, that is, the part between the points a and d in the case of FIG. 7A, and the y coordinate between the second largest point and the third largest point, , One combined ruled line pattern Pr is obtained as shown in FIG.

【0064】ステップS9においては、このようにy座
標が2番目に大きい点と3番目に大きい点との間の線分
を削除することにより、上記のように重なり合う線分を
削除するものである。ただし、この例は、上記の点aと
点cのy座標が等しく、かつ点bと点dのy座標が等し
い場合である。
In step S9, the line segment between the point having the second largest y-coordinate and the point having the third largest y-coordinate is deleted, thereby deleting the overlapping line segment as described above. . However, in this example, the points a and c have the same y coordinate, and the points b and d have the same y coordinate.

【0065】次に、連続罫線ないし連鎖パターンの全体
の文字数に対して1だけ少ない数をnとして、変数iが
nより小さいか否かを判断し(ステップS10)、変数
iがnより小さいときには、ステップS8に戻って変数
iを1だけインクリメントし、さらに連鎖パターンのi
番目のパターンと(i+1)番目のパターンの重なり合
う線分を削除するとともに、変数iがnに達したときに
は、線分の削除を停止する。
Next, it is determined whether or not the variable i is smaller than n by setting n as a number smaller by 1 with respect to the total number of characters of the continuous ruled line or chain pattern (step S10). When the variable i is smaller than n. , The process returns to step S8, the variable i is incremented by 1, and the chain pattern i
The overlapping line segment of the (i + 1) th pattern is deleted, and when the variable i reaches n, the deletion of the line segment is stopped.

【0066】したがって、連続罫線2aについての図5
(B)に示した連鎖パターンPAについては、n=4で
あることから、パターンP21,P11,P11b,P
11c,P11dの重なり合う線分5a,5b,5c,
5dがすべて削除されて、図5(C)に示すように、点
(x1,y1)(x2,y2)(x4+3dx,y4)
(x5+3dx,y5)(x7,y7)(x8,y8)
で構成される、連続する5文字分にわたる1つの罫線出
力パターンPBについてのベクトルデータが生成され
る。
Therefore, the continuous ruled line 2a shown in FIG.
For the chain pattern PA shown in (B), since n = 4, the patterns P21, P11, P11b, P
11c, P11d overlapping line segments 5a, 5b, 5c,
5d are all deleted, and as shown in FIG. 5C, points (x1, y1) (x2, y2) (x4 + 3dx, y4)
(X5 + 3dx, y5) (x7, y7) (x8, y8)
The vector data for one ruled line output pattern PB for 5 consecutive characters constituted by

【0067】連続罫線2bについての連鎖パターンにつ
いては、n=3であることから、パターンP21,P1
1,P11b,P11cの重なり合う線分5a,5b,
5cがすべて削除されて、連続する4文字分にわたる1
つの罫線出力パターンについてのベクトルデータが生成
される。
As for the chain pattern for the continuous ruled line 2b, since n = 3, the patterns P21, P1
1, P11b, P11c overlapping line segments 5a, 5b,
All 5c are deleted, and 1 for 4 consecutive characters
Vector data for one ruled line output pattern is generated.

【0068】また、連続罫線2cについての連鎖パター
ンについては、n=9であることから、10個のパター
ンP11の重なり合う9個の線分がすべて削除されて、
連続する10文字分にわたる1つの罫線出力パターンに
ついてのベクトルデータが生成される。
Since n = 9 for the chain pattern for the continuous ruled line 2c, all nine overlapping line segments of the ten patterns P11 are deleted,
Vector data for one ruled line output pattern over 10 consecutive characters is generated.

【0069】パラメータがBであるときには、すなわち
連続罫線3aのように組合せパターンPO全体が何回か
連続すべきものであるときには、ステップS1でパラメ
ータがBであると判断した後、まず、図6(A)に示す
組合せパターンPO中のパターンP21およびP11に
ついての、それぞれパターン記憶手段21から読み出さ
れたベクトルデータにつき、パターンP21とパターン
P11の重なり合う線分6aを、図7で示した方法によ
り削除して、図6(B)に示すような連続する2文字分
にわたる1つの合成パターンPEについてのベクトルデ
ータを生成する(ステップS11)。
When the parameter is B, that is, when the entire combination pattern PO is to be consecutive several times like the continuous ruled line 3a, it is determined in step S1 that the parameter is B, and then, as shown in FIG. For the pattern data P21 and P11 in the combination pattern PO shown in A), the line segment 6a where the pattern P21 and the pattern P11 overlap is deleted by the method shown in FIG. Then, as shown in FIG. 6B, vector data for one combined pattern PE over two consecutive characters is generated (step S11).

【0070】組合せパターンPO中のパターンP21を
構成する6個の点を(x1,y1)(x2,y2)(x
3,y3)(x6,y6)(x7,y7)(x8,y
8)とし、パターンP11を構成する4個の点を(x
3,y3)(x4,y4)(x5,y5)(x6,y
6)とするとき、合成パターンPEは、点(x1,y
1)(x2,y2)(x4,y4)(x5,y5)(x
7,y7)(x8,y8)で構成されるものとなる。
The six points forming the pattern P21 in the combination pattern PO are (x1, y1) (x2, y2) (x
3, y3) (x6, y6) (x7, y7) (x8, y
8), the four points forming the pattern P11 are (x
3, y3) (x4, y4) (x5, y5) (x6, y
6), the combined pattern PE is the point (x1, y
1) (x2, y2) (x4, y4) (x5, y5) (x
7, y7) (x8, y8).

【0071】次に、その合成パターンPEについてのベ
クトルデータのx座標の最大値と最小値の差をx座標加
算分dxとして算出する(ステップS12)。すなわ
ち、dx=x4−x2を算出する。
Next, the difference between the maximum value and the minimum value of the x-coordinate of the vector data for the combined pattern PE is calculated as the x-coordinate addition dx (step S12). That is, dx = x4-x2 is calculated.

【0072】次にループカウンタの変数iをゼロとした
上で(ステップS13)、変数iを1だけインクリメン
トし(ステップS14)、合成パターンPEに対して、
合成パターンPEを構成する6個の点のx座標にそれぞ
れi・dxを加算したものを6個の点のx座標とし、合
成パターンPEを構成する6個の点のy座標をそれぞれ
そのまま6個の点のy座標とするパターンを付加した連
鎖パターンのベクトルデータを生成する(ステップS1
5)。
Next, the variable i of the loop counter is set to zero (step S13), and the variable i is incremented by 1 (step S14).
The x-coordinates of the six points that make up the x-coordinates of the six points that make up the composite pattern PE are taken as the x-coordinates of the six points, and the y-coordinates of the six points that make up the composite pattern PE are six as they are. Vector data of a chain pattern to which a pattern to be the y coordinate of the point is added is generated (step S1).
5).

【0073】次に、パラメータBに対して1だけ少ない
数をnとして、変数iがnより小さいか否かを判断し
(ステップS16)、変数iがnより小さいときには、
ステップS14に戻って変数iを1だけインクリメント
し、さらにパターンを付加した連鎖パターンのベクトル
データを生成するとともに、変数iがnに達したときに
は、パターンの付加を停止する。
Next, it is determined whether or not the variable i is smaller than n by setting n to be one less than the parameter B (step S16). When the variable i is smaller than n,
Returning to step S14, the variable i is incremented by 1 to generate vector data of a chain pattern to which a pattern is added, and when the variable i reaches n, the addition of the pattern is stopped.

【0074】したがって、連続罫線3aについては、B
=3,n=2であることから、図6(C)に示すよう
に、合成パターンPEに対して、点(x1+dx,y
1)(x2+dx,y2)(x4+dx,y4)(x5
+dx,y5)(x7+dx,y7)(x8+dx,y
8)で構成される2文字分にわたるパターンPb、およ
び点(x1+2dx,y1)(x2+2dx,y2)
(x4+2dx,y4)(x5+2dx,y5)(x7
+2dx,y7)(x8+2dx,y8)で構成される
2文字分にわたるパターンPcが付加された連鎖パター
ンPFのベクトルデータが生成される。
Therefore, for the continuous ruled line 3a, B
= 3, n = 2, the point (x1 + dx, y) with respect to the composite pattern PE as shown in FIG. 6 (C).
1) (x2 + dx, y2) (x4 + dx, y4) (x5
+ Dx, y5) (x7 + dx, y7) (x8 + dx, y
8) pattern Pb for two characters and point (x1 + 2dx, y1) (x2 + 2dx, y2)
(X4 + 2dx, y4) (x5 + 2dx, y5) (x7
+ 2dx, y7) (x8 + 2dx, y8) is generated, and vector data of the chain pattern PF to which the pattern Pc for two characters is added is generated.

【0075】次に、ループカウンタの変数iをゼロとし
た上で(ステップS17)、変数iを1だけインクリメ
ントし(ステップS18)、上記の連鎖パターンのi番
目のパターンと(i+1)番目のパターンの重なり合う
線分を、図7で示した方法により削除する(ステップS
19)。すなわち、連続罫線3aについての図6(C)
に示した連鎖パターンPFについては、まず、合成パタ
ーンPEとパターンPbの重なり合う線分6bを削除す
る。
Next, the variable i of the loop counter is set to zero (step S17), the variable i is incremented by 1 (step S18), and the i-th pattern and the (i + 1) -th pattern of the above-mentioned chain pattern are set. The overlapping line segments of are deleted by the method shown in FIG. 7 (step S
19). That is, FIG. 6C for the continuous ruled line 3a.
With regard to the chain pattern PF shown in (1), first, the line segment 6b where the composite pattern PE and the pattern Pb overlap is deleted.

【0076】次に、パラメータBに対して1だけ少ない
数をnとして、変数iがnより小さいか否かを判断し
(ステップS20)、変数iがnより小さいときには、
ステップS18に戻って変数iを1だけインクリメント
し、さらに連鎖パターンのi番目のパターンと(i+
1)番目のパターンの重なり合う線分を削除するととも
に、変数iがnに達したときには、線分の削除を停止す
る。
Next, it is determined whether or not the variable i is smaller than n by setting the number smaller than the parameter B by 1 to n (step S20). When the variable i is smaller than n,
Returning to step S18, the variable i is incremented by 1, and the i-th pattern of the chain pattern and (i +
1) The overlapping line segment of the 1st pattern is deleted, and when the variable i reaches n, the deletion of the line segment is stopped.

【0077】したがって、連続罫線3aについての図6
(C)に示した連鎖パターンPFについては、B=3,
n=2であることから、パターンPE,Pb,Pcの重
なり合う線分6b,6cがすべて削除されて、図6
(D)に示すように、連続する6文字分にわたる1つの
罫線出力パターンPGについてのベクトルデータが生成
される。
Therefore, FIG. 6 for the continuous ruled line 3a is shown.
For the chain pattern PF shown in (C), B = 3
Since n = 2, all the line segments 6b and 6c in which the patterns PE, Pb, and Pc overlap are deleted, and
As shown in (D), vector data for one ruled line output pattern PG over six consecutive characters is generated.

【0078】以上のように、横書きにより、図2または
図3に示すような表を形成する場合における、連続罫線
2a,2bのように組合せパターンPOの直後にパター
ンP11が何文字分か連続し、もしくは連続罫線2cの
ようにパターンP11が何文字分か連続し、または連続
罫線3aのように組合せパターンPO全体が何回か連続
すべきものについては、パターン加工手段27におい
て、それぞれの連続罫線を構成する、連続する複数文字
分にわたる1つの罫線出力パターンについてのベクトル
データが生成される。
As described above, when the table as shown in FIG. 2 or FIG. 3 is formed by horizontal writing, the pattern P11 is continuous for several characters immediately after the combination pattern PO as in the continuous ruled lines 2a and 2b. Alternatively, if the pattern P11 is continuous for several characters like the continuous ruled line 2c, or if the entire combination pattern PO is to be repeated several times like the continuous ruled line 3a, each continuous ruled line is processed by the pattern processing means 27. Vector data for one ruled line output pattern that constitutes a plurality of consecutive characters is formed.

【0079】そして、ラスタライズ手段28において、
その連続する複数文字分にわたる1つの罫線出力パター
ンについてのベクトルデータがラスタライズされ、ラス
タライズ手段28から、ラスタライズ後のパターンデー
タが得られる。
Then, in the rasterizing means 28,
The vector data for one ruled line output pattern over a plurality of consecutive characters is rasterized, and the rasterized means 28 obtains the rasterized pattern data.

【0080】すなわち、連続罫線2aについての図5
(C)に示した罫線出力パターンPBについては、図5
(D)に示すように連続する5文字分が一度にラスタラ
イズされ、ラスタライズ後のパターンPCのデータが得
られる。また、連続罫線3aについての図6(D)に示
した罫線出力パターンPGについては、図6(E)に示
すように連続する6文字分が一度にラスタライズされ、
ラスタライズ後のパターンPHについてのデータが得ら
れる。
That is, FIG. 5 for the continuous ruled line 2a.
The ruled line output pattern PB shown in FIG.
As shown in (D), continuous 5 characters are rasterized at once, and the data of the pattern PC after rasterization is obtained. In the ruled line output pattern PG shown in FIG. 6D for the continuous ruled line 3a, continuous 6 characters are rasterized at once as shown in FIG.
Data about the pattern PH after rasterization is obtained.

【0081】そして、このように連続する複数文字分が
一度にラスタライズされることにより、上述した例にお
いては、連続罫線2a,2b,2c,3aのような連続
する複数文字分にわたる罫線が高速で形成される。
By thus rasterizing a plurality of consecutive characters at once, in the above-described example, the ruled lines extending over a plurality of consecutive characters such as the continuous ruled lines 2a, 2b, 2c, 3a can be processed at high speed. It is formed.

【0082】図2の表の1行目R1から3行目R3まで
の10文字目のパターンP22、または図3の表の1行
目R1の7文字目、2行目R2の1,3,5,7文字
目、および3行目R3の7文字目のパターンP12につ
いては、連続罫線判別手段23においては入力文字デー
タ中に罫線データが2文字分以上連続しないと判断さ
れ、パターン加工判別手段26においてもパターンを加
工しないと判断される。
The pattern P22 of the tenth character from the first line R1 to the third line R3 in the table of FIG. 2 or the seventh character of the first line R1 of the table of FIG. Regarding the pattern P12 of the fifth and seventh characters and the seventh character of the third line R3, the continuous ruled line discrimination means 23 determines that the ruled line data does not continue for two or more characters in the input character data, and the pattern processing discrimination means Also in 26, it is determined that the pattern is not processed.

【0083】この場合には、パターンP22またはP1
2の文字コードが罫線データ判別手段22から連続罫線
判別手段23を通じてパターン読出手段24に入力され
ることにより、パターン記憶手段21から対応する罫線
基本パターンであるパターンP21またはP11のベク
トルデータが読み出され、そのパターンP21またはP
11のベクトルデータがパターン変換手段25で回転さ
せられることにより、パターン変換手段25からパター
ンP22またはP12のベクトルデータが得られ、その
パターンP22またはP12のベクトルデータがラスタ
ライズ手段28で1文字分ずつ個別にラスタライズされ
る。
In this case, the pattern P22 or P1
By inputting the character code of 2 from the ruled line data determination means 22 to the pattern read means 24 through the continuous ruled line determination means 23, the vector data of the corresponding ruled line basic pattern of the pattern P21 or P11 is read from the pattern storage means 21. The pattern P21 or P
By rotating the 11 vector data by the pattern converting means 25, the vector data of the pattern P22 or P12 is obtained from the pattern converting means 25, and the vector data of the pattern P22 or P12 is individually separated by the rasterizing means 28 for each character. Rasterized to.

【0084】パターン変換手段25では、図11に示す
手順に従って、罫線基本パターンであるパターンP21
またはP11のベクトルデータが回転させられる。
In the pattern converting means 25, the pattern P21 which is the ruled line basic pattern is followed in accordance with the procedure shown in FIG.
Alternatively, the vector data of P11 is rotated.

【0085】まず、パターン記憶手段21から読み出さ
れた罫線基本パターンのベクトルデータとともにパター
ン読出手段24からパターン変換手段25に送出された
罫線文字コードが罫線基本パターンを示すか否かを判断
し(ステップS21)、罫線文字コードが罫線基本パタ
ーンを示すときには、以下に示す変換処理をすることな
く、パターン記憶手段21から読み出された罫線基本パ
ターンのベクトルデータをそのままパターン加工判別手
段26またはラスタライズ手段28に送出する。
First, it is judged whether or not the ruled line character code sent from the pattern reading unit 24 to the pattern conversion unit 25 together with the vector data of the ruled line basic pattern read from the pattern storage unit 21 indicates the ruled line basic pattern ( In step S21), when the ruled line character code indicates the ruled line basic pattern, the vector data of the ruled line basic pattern read from the pattern storage means 21 is directly subjected to the pattern processing determination means 26 or the rasterizing means without performing the conversion processing described below. 28.

【0086】罫線文字コードが示す罫線パターンが罫線
基本パターンでないときには、その罫線文字コードが示
す罫線パターンが対応する罫線基本パターンを反時計方
向に何度回転させたものであるかを検出し、その回転角
をθとする(ステップS22)。
When the ruled line pattern indicated by the ruled line character code is not the ruled line basic pattern, it is detected how many times the corresponding ruled line basic pattern indicated by the ruled line character code is rotated counterclockwise, and The rotation angle is θ (step S22).

【0087】すなわち、罫線文字コードがパターンP2
2を示すときには、パターンP22は対応する罫線基本
パターンであるパターンP21を反時計方向に270度
回転させたものであるから、θ=3π/2が検出され、
設定される。また、罫線文字コードがパターンP12を
示すときには、パターンP12は対応する罫線基本パタ
ーンであるパターンP11を反時計方向に180度回転
させたものであるから、θ=πが検出され、設定され
る。
That is, the ruled line character code is the pattern P2.
When it indicates 2, the pattern P22 is obtained by rotating the corresponding ruled line basic pattern P21 counterclockwise by 270 degrees, and therefore θ = 3π / 2 is detected,
Is set. When the ruled line character code indicates the pattern P12, since the pattern P12 is obtained by rotating the corresponding ruled line basic pattern P11 counterclockwise by 180 degrees, θ = π is detected and set.

【0088】次に、パターン記憶手段21から読み出さ
れた罫線基本パターンを構成する一つの座標点を検出
し、(x,y)とする(ステップS23)。すなわち、
パターン記憶手段21から読み出された罫線基本パター
ンが図8の左側に示すようにパターンP21であるとき
には、その6個の座標点e,f,g,h,i,jのうち
の一つ、例えば座標点eが検出される。
Next, one coordinate point constituting the ruled line basic pattern read from the pattern storage means 21 is detected and set as (x, y) (step S23). That is,
When the ruled line basic pattern read from the pattern storage means 21 is the pattern P21 as shown on the left side of FIG. 8, one of the six coordinate points e, f, g, h, i, j, For example, the coordinate point e is detected.

【0089】次に、罫線文字コードが示す変換後の罫線
パターンを構成する一つの座標点を(X,Y)とする
(ステップS24)。すなわち、罫線文字コードが図8
の右側に示すようにパターンP22を示すときには、そ
の6個の座標点E,F,G,H,I,Jのうちのある一
つが(X,Y)とされる。
Next, one coordinate point forming the converted ruled line pattern indicated by the ruled line character code is set to (X, Y) (step S24). That is, the ruled line character code is as shown in FIG.
When the pattern P22 is shown as shown on the right side of, the one of the six coordinate points E, F, G, H, I, and J is set to (X, Y).

【0090】次に、 X=x・cosθ−y・sinθ …(1) Y=x・sinθ+y・cosθ …(2) の演算により、上記の座標点(X,Y)を求める(ステ
ップS25)。すなわち、罫線文字コードがパターンP
22を示すときには、その6個の座標点E〜Jのうちの
一つ、例えば座標点Eが求められる。
Next, the coordinate point (X, Y) is obtained by the calculation of X = x · cos θ−y · sin θ (1) Y = x · sin θ + y · cos θ (2) (step S25). That is, the ruled line character code is the pattern P.
When 22 is indicated, one of the six coordinate points E to J, for example, the coordinate point E is obtained.

【0091】次に、パターン記憶手段21から読み出さ
れた罫線基本パターンのすべての座標点を変換したか否
かを判断し(ステップS26)、いまだすべての座標点
を変換していないときには、ステップS23に戻って、
上述した方法により、パターン記憶手段21から読み出
された罫線基本パターンを構成する他の一つの座標点を
変換するとともに、すべての座標点を変換したときに
は、変換処理を終了する。
Next, it is judged whether or not all the coordinate points of the ruled line basic pattern read from the pattern storage means 21 have been converted (step S26). If all the coordinate points have not been converted yet, the step is executed. Return to S23,
By the method described above, another one of the coordinate points forming the ruled line basic pattern read from the pattern storage means 21 is converted, and when all the coordinate points are converted, the conversion process is ended.

【0092】このようにパターン記憶手段21から読み
出された罫線基本パターンのすべての座標点が変換され
ることにより、罫線文字コードが示す罫線パターンのベ
クトルデータが得られる。すなわち、罫線文字コードが
パターンP22を示すときには、その6個の座標点E〜
Jが求められることにより、パターンP22のベクトル
データが得られる。また、罫線文字コードがパターンP
12を示すときには、その4個の座標点が求められるこ
とにより、パターンP12のベクトルデータが得られ
る。
By thus converting all the coordinate points of the ruled line basic pattern read from the pattern storage means 21, vector data of the ruled line pattern indicated by the ruled line character code is obtained. That is, when the ruled line character code indicates the pattern P22, the six coordinate points E to
By obtaining J, the vector data of the pattern P22 is obtained. In addition, the ruled line character code is the pattern P.
When 12 is shown, the vector data of the pattern P12 is obtained by obtaining the four coordinate points.

【0093】上述した例は、横書きにより、図2または
図3に示すような表を形成する場合であるが、縦書きに
より、例えば罫線パターンP12が4文字分連続するよ
うな、図9に示すような連続罫線PJを形成する場合に
つき、示す。
The above-mentioned example is a case where a table as shown in FIG. 2 or 3 is formed by horizontal writing, but it is shown in FIG. 9 in which the ruled line pattern P12 is continuous for four characters by vertical writing. A case of forming such a continuous ruled line PJ will be described.

【0094】この場合、入力手段11によりパターン発
生装置20に罫線を出力すべきことを指示し、罫線デー
タを送出するときには、パターンP12の入力操作を一
度行うとともに、パラメータAとしてパターンP12が
連続すべき文字数である「4」を設定する。
In this case, when the input means 11 instructs the pattern generator 20 to output a ruled line and transmits the ruled line data, the pattern P12 is input once and the pattern P12 continues as the parameter A. Set "4" which is the number of characters to be used.

【0095】これにより、パターン記憶手段21からパ
ターンP12に対応する罫線基本パターンであるパター
ンP11のベクトルデータが読み出されるとともに、そ
の読み出されたパターンP11のベクトルデータがパタ
ーン変換手段25で図11に示した手順に従って回転さ
せられることにより、パターン変換手段25からパター
ンP12のベクトルデータが得られる。
As a result, the vector data of the pattern P11 which is the ruled line basic pattern corresponding to the pattern P12 is read from the pattern storage means 21, and the read vector data of the pattern P11 is shown in FIG. By being rotated according to the procedure shown, vector data of the pattern P12 is obtained from the pattern conversion means 25.

【0096】そして、このパターン変換手段25から得
られたパターンP12のベクトルデータがパターン加工
判別手段26を通じてパターン加工手段27に取り込ま
れて、図10に示した手順に従ってパターンの加工がな
されることにより、図9に示すような連続する4文字分
にわたる1つの罫線出力パターンPKのベクトルデータ
が生成される。
Then, the vector data of the pattern P12 obtained from the pattern converting means 25 is taken into the pattern processing means 27 through the pattern processing determining means 26, and the pattern is processed according to the procedure shown in FIG. , Vector data of one ruled line output pattern PK over four consecutive characters as shown in FIG. 9 is generated.

【0097】ただし、この場合は縦書きにより罫線を形
成する場合であるので、パターンの加工についての、座
標加算分の算出・加算、および連鎖パターンにおける重
なり合う線分の削除などについては、x座標に代えてy
座標が用いられる。
However, in this case, since the ruled lines are formed by vertical writing, the calculation / addition of the coordinate addition, the deletion of the overlapping line segments in the chain pattern, and the like in the pattern processing are performed with the x coordinate. Instead of y
Coordinates are used.

【0098】そして、ラスタライズ手段28において、
その連続する4文字分にわたる1つの罫線出力パターン
PKのベクトルデータがラスタライズされ、ラスタライ
ズ手段28から、図9に示すようなラスタライズ後のパ
ターンPLのデータが得られる。
Then, in the rasterizing means 28,
The vector data of one ruled line output pattern PK over the continuous four characters is rasterized, and the rasterizing means 28 obtains the data of the rasterized pattern PL as shown in FIG.

【0099】したがって、罫線パターンのベクトルデー
タの回転も、ラスタライズも、それぞれ一度なされるだ
けであり、連続する4文字分にわたる罫線PJが高速で
形成される。
Therefore, the vector data of the ruled line pattern is rotated and rasterized only once, and the ruled line PJ for four consecutive characters is formed at high speed.

【0100】罫線基本パターンとして横線の罫線パター
ンP11の代わりに縦線の罫線パターンP12がパター
ン記憶手段21に格納されている場合に、横書きによ
り、図2の連続罫線2cのようにパターンP11が複数
文字分連続するような連続罫線を形成するときも、同様
に、罫線パターンのベクトルデータの回転も、ラスタラ
イズも、それぞれ一度なされるだけである。
When a vertical ruled line pattern P12 is stored in the pattern storage means 21 instead of the horizontal ruled line pattern P11 as the ruled line basic pattern, a plurality of patterns P11 such as the continuous ruled line 2c in FIG. When forming a continuous ruled line that is continuous for characters, similarly, the vector data of the ruled line pattern is also rotated and rasterized only once.

【0101】上述した例は、罫線基本パターンを回転さ
せることにより、入力文字データ中の罫線文字コードが
示す所期の罫線パターンを得る場合であるが、回転以外
の変換により、所期の罫線パターンを得るようにするこ
ともできる。
In the example described above, the desired ruled line pattern indicated by the ruled line character code in the input character data is obtained by rotating the ruled line basic pattern, but the desired ruled line pattern is obtained by conversion other than rotation. Can also be obtained.

【0102】例えば、罫線基本パターンとして図12
(A)に示すようなL形のパターンP41のベクトルデ
ータをパターン記憶手段21に格納し、このパターン記
憶手段21から読み出したパターンP41のベクトルデ
ータをミラー反転させることにより、図12(A)に示
すようなパターンP42,P43,P44のベクトルデ
ータを得ることができる。
For example, FIG. 12 shows a ruled line basic pattern.
By storing the vector data of the L-shaped pattern P41 as shown in (A) in the pattern storage means 21 and mirror-inversion of the vector data of the pattern P41 read from this pattern storage means 21, FIG. 12 (A) is obtained. The vector data of the patterns P42, P43, P44 as shown can be obtained.

【0103】また、罫線基本パターンとして図12
(B)に示すように1文字分中の上下方向の中央に位置
する横線のパターンP51のベクトルデータをパターン
記憶手段21に格納し、このパターン記憶手段21から
読み出したパターンP51のベクトルデータを位置移動
することにより、図12(B)に示すように上方または
下方に位置するパターンP52,P53のベクトルデー
タを得ることができる。
As a ruled line basic pattern, FIG.
As shown in (B), the vector data of the horizontal line pattern P51 located in the vertical center of one character is stored in the pattern storage means 21, and the vector data of the pattern P51 read from the pattern storage means 21 is positioned. By moving, vector data of the patterns P52 and P53 located above or below as shown in FIG. 12B can be obtained.

【0104】さらに、罫線基本パターンとして図12
(C)に示すような中間的な太さの横線のパターンP6
1のベクトルデータをパターン記憶手段21に格納し、
このパターン記憶手段21から読み出したパターンP6
1のベクトルデータを太さ変更することにより、図12
(C)に示すような細いまたは太いパターンP62,P
63のベクトルデータを得ることができる。
Further, as a ruled line basic pattern, FIG.
A pattern P6 of horizontal lines having an intermediate thickness as shown in (C)
1 vector data is stored in the pattern storage means 21,
The pattern P6 read from the pattern storage means 21
12 by changing the thickness of the vector data of FIG.
Thin or thick pattern P62, P as shown in (C)
63 vector data can be obtained.

【0105】また、回転、ミラー反転、位置移動および
太さ変更などのうちの2つ以上を組み合わせることによ
り、所期の罫線パターンを得るようにすることもでき
る。
It is also possible to obtain a desired ruled line pattern by combining two or more of rotation, mirror reversal, position movement and thickness change.

【0106】[0106]

【発明の効果】上述したように、この発明によれば、連
続する複数文字分にわたる罫線を高速で形成することが
できる。
As described above, according to the present invention, it is possible to form a ruled line over a plurality of consecutive characters at high speed.

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

【図1】この発明のパターン発生装置の一例を備える文
書作成システムの一例を示す機能ブロック図である。
FIG. 1 is a functional block diagram showing an example of a document creation system including an example of a pattern generation device of the present invention.

【図2】形成しようとする罫線の一例を示す図である。FIG. 2 is a diagram showing an example of ruled lines to be formed.

【図3】形成しようとする罫線の他の例を示す図であ
る。
FIG. 3 is a diagram showing another example of a ruled line to be formed.

【図4】組合せパターンの一例を示す図である。FIG. 4 is a diagram showing an example of a combination pattern.

【図5】パターン加工の説明に供する図である。FIG. 5 is a diagram for explaining pattern processing.

【図6】パターン加工の説明に供する図である。FIG. 6 is a diagram for explaining pattern processing.

【図7】線分削除の説明に供する図である。FIG. 7 is a diagram for explaining line segment deletion.

【図8】パターン回転の説明に供する図である。FIG. 8 is a diagram for explaining pattern rotation.

【図9】縦書きにより罫線を形成する場合におけるパタ
ーン回転およびパターン加工の説明に供する図である。
FIG. 9 is a diagram for explaining pattern rotation and pattern processing when a ruled line is formed by vertical writing.

【図10】パターン加工の手順を示すフローチャートで
ある。
FIG. 10 is a flowchart showing a procedure of pattern processing.

【図11】パターン回転の手順を示すフローチャートで
ある。
FIG. 11 is a flowchart showing a procedure of pattern rotation.

【図12】罫線基本パターンとその変換態様の例を示す
図である。
FIG. 12 is a diagram showing an example of a ruled line basic pattern and its conversion mode.

【図13】罫線基本パターンとその回転態様の例を示す
図である。
FIG. 13 is a diagram showing an example of a ruled line basic pattern and its rotation mode.

【図14】従来の方法の説明に供する図である。FIG. 14 is a diagram for explaining a conventional method.

【図15】従来の方法の説明に供する図である。FIG. 15 is a diagram for explaining a conventional method.

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

20 パターン発生装置 21 パターン記憶手段 24 パターン読出手段 27 パターン加工手段 28 ラスタライズ手段 20 pattern generator 21 pattern storage means 24 pattern reading means 27 pattern processing means 28 rasterizing means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】罫線基本パターンのベクトルデータを記憶
するパターン記憶手段と、 文字を出力すべきことを指示する入力文字データ中の罫
線データにより上記パターン記憶手段から罫線基本パタ
ーンのベクトルデータを読み出すパターン読出手段と、 上記入力文字データ中に罫線データが2文字分以上連続
するとき、上記パターン記憶手段から読み出された罫線
基本パターンのベクトルデータにもとづいて、連続する
複数文字分にわたる1つの罫線出力パターンについての
ベクトルデータを生成するパターン加工手段と、 上記罫線出力パターンのベクトルデータをラスタライズ
して出力するラスタライズ手段と、 を備えることを特徴とするパターン発生装置。
1. A pattern storage means for storing vector data of a ruled line basic pattern, and a pattern for reading vector data of the ruled line basic pattern from the pattern storage means by ruled line data in input character data indicating that a character should be output. When the ruled line data for two characters or more continues in the reading means and the input character data, one ruled line output for a plurality of consecutive characters is output based on the vector data of the ruled line basic pattern read from the pattern storage means. A pattern generating apparatus comprising: a pattern processing unit that generates vector data about a pattern; and a rasterizing unit that rasterizes and outputs the vector data of the ruled line output pattern.
【請求項2】上記各手段に加えて、 上記入力文字データ中の罫線データが示す罫線パターン
が、上記罫線基本パターンを回転もしくはミラー反転さ
せ、または位置移動もしくは太さ変更し、あるいは上記
罫線基本パターンにその他の変換を施すことにより得ら
れるものであるとき、上記パターン記憶手段から読み出
された罫線基本パターンのベクトルデータを変換するこ
とによって、上記入力文字データ中の罫線データが示す
罫線パターンのベクトルデータを得るパターン変換手段
を備える、 ことを特徴とする請求項1に記載のパターン発生装置。
2. In addition to the above means, the ruled line pattern indicated by the ruled line data in the input character data is obtained by rotating or mirror-reversing the ruled line basic pattern, moving the position or changing the thickness, or the ruled line basic. When the pattern is obtained by other conversion, the vector data of the ruled line basic pattern read from the pattern storage means is converted to obtain the ruled line pattern indicated by the ruled line data in the input character data. The pattern generation device according to claim 1, further comprising a pattern conversion unit that obtains vector data.
JP7044878A 1995-02-09 1995-02-09 Pattern generator Pending JPH08216480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7044878A JPH08216480A (en) 1995-02-09 1995-02-09 Pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7044878A JPH08216480A (en) 1995-02-09 1995-02-09 Pattern generator

Publications (1)

Publication Number Publication Date
JPH08216480A true JPH08216480A (en) 1996-08-27

Family

ID=12703756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7044878A Pending JPH08216480A (en) 1995-02-09 1995-02-09 Pattern generator

Country Status (1)

Country Link
JP (1) JPH08216480A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012126120A (en) * 2010-11-24 2012-07-05 Ricoh Co Ltd Apparatus for drawing image on thermal rewritable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012126120A (en) * 2010-11-24 2012-07-05 Ricoh Co Ltd Apparatus for drawing image on thermal rewritable medium

Similar Documents

Publication Publication Date Title
EP0803107B1 (en) Method and apparatus for processing a table
JPH08216480A (en) Pattern generator
JPS6282472A (en) Picture processing system
US5740275A (en) Method and apparatus for processing characters using pattern data conversion
JP3257925B2 (en) Translucent color image generation device
JPH01184140A (en) Color image forming apparatus
JP3066060B2 (en) Polygonal approximation method for Besee curve section
JPH0785266A (en) Image rotating device
JP3129717B2 (en) Image processing apparatus and image processing method
JP3005389B2 (en) Polygon 3D display system
JPH0225348A (en) Image output device
JP3254770B2 (en) Round character generator
JP3305381B2 (en) Halftone output method
JP2740539B2 (en) Enlarged reproduction image information creation method and apparatus
JP3383037B2 (en) Hologram recording medium creation device
JP3039214B2 (en) Data converter
JPH01259398A (en) Address generating device
JP3156297B2 (en) Pattern output device
JPH06337315A (en) Formation of hologram original plate and its device
JPH06251164A (en) Character pattern generating device
JPS63311867A (en) Character picture generator
JPH04332091A (en) Vector control device
JPS6356476A (en) Printer controller
JPH04250582A (en) Method and device for drawing polygon
JPH0728449A (en) Data conversion device