[go: up one dir, main page]

JPH02178874A - Character ruled line processing method in document creation device - Google Patents

Character ruled line processing method in document creation device

Info

Publication number
JPH02178874A
JPH02178874A JP63331683A JP33168388A JPH02178874A JP H02178874 A JPH02178874 A JP H02178874A JP 63331683 A JP63331683 A JP 63331683A JP 33168388 A JP33168388 A JP 33168388A JP H02178874 A JPH02178874 A JP H02178874A
Authority
JP
Japan
Prior art keywords
ruled line
line
character
ruled
lines
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
JP63331683A
Other languages
Japanese (ja)
Inventor
Shiyuusuke Katayama
片山 修資
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP63331683A priority Critical patent/JPH02178874A/en
Publication of JPH02178874A publication Critical patent/JPH02178874A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To send out data speedily even to a printer which performs fast printing operation like a laser printer by storing character ruled lines as vector ruled lines. CONSTITUTION:The document preparing device consists of a keyboard 1 as an input device, a CRT display 2 as a display device, a printer 3 such as a laser printer, the main body 4 of the document preparing device, and a disk device 5 incorporated in the main body 4. Here, the start point and end point of each ruled line connected in the same direction by an inputted character ruled line are calculated and data on each inputted ruled line are stored as a vector ruled line by using the direction, start point, and end point. Consequently, the output speed when character ruled lines are displayed or printed by the document preparing device is increased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ワードプロセッサ等の文書作成装置におけ
る1文字車位で罫線をひく文字罫線を入力した際の罫線
データの処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for processing ruled line data when a character ruled line is inputted at one character position in a document creation device such as a word processor.

〔従来の技術〕[Conventional technology]

従来のワードプロセッサ等の文書作成装置において、文
字罫線を使って罫線枠を作成してその結果を表示したり
印刷したりする場合には、その度ごとに隣接する罫線の
つながる罫線パターン同士(縦罫線同士もしくは横罫線
同士)の文字間を、第6図(a)に破線で示すように罫
線のドツトパターンの複写によって補間してつなげる処
理や、同図(b)に示すように同じパターンの罫線同士
の端を順順に重ねてつなげる処理等を行なっていた。
In a conventional document creation device such as a word processor, when creating a ruled line frame using character ruled lines and displaying or printing the result, each time the connected ruled line patterns (vertical ruled lines) of adjacent ruled lines are The process of interpolating and connecting the spaces between characters (with each other or between horizontal ruled lines) by copying the dot pattern of the ruled lines, as shown by the broken line in Figure 6(a), or with the same pattern of ruled lines as shown in Figure 6(b). Processes such as sequentially overlapping and connecting the ends of each other were performed.

〔解決しようとする課題〕[Problem to be solved]

しかしながら、このような従来の文字罫線処理方式では
、文字罫線を含む作成文書の表示や印刷の度ごとに文字
罫線の罫線パターン同士をつなげる処理をしなければな
らないため、その処理に余計な時間がかかり、表示や印
刷の速度が遅くなってしまうという問題があった。
However, in such conventional character ruled line processing methods, it is necessary to perform a process of connecting the ruled line patterns of character ruled lines each time a created document containing character ruled lines is displayed or printed, which takes extra time. There was a problem in that the display and printing speeds were slow.

また、隣合う罫線パターンの端同士を重ねて印刷する方
式では、第6図(b)に示すように重ねて印刷した部分
が他の部分より太い罫線になり、見栄えが悪くなってし
まうという不都合も生じる。
In addition, in the method of printing the edges of adjacent ruled line patterns overlapping each other, as shown in Fig. 6(b), the overlapping printed area has thicker ruled lines than other areas, resulting in an unattractive appearance. also occurs.

この発明は、このような従来の問題点に鑑みてなされた
もので、文書作成装置で文字罫線を表示したり印刷した
りする際の出力速度と出力結果の見栄えを向上させるこ
とを目的とする。
This invention was made in view of these conventional problems, and aims to improve the output speed and appearance of output results when displaying or printing character lines on a document creation device. .

〔課題を解決するための手段〕[Means to solve the problem]

この発明は上記の目的を達成するため、文字罫線を入力
する手段を有する文書作成装置において、入力された文
字罫線により同一方向に接続される各罫線の始点及び終
点位置を算出し、入力された各罫線のデータをその方向
と始点及び終点位置によりベクトル罫線として記憶する
ことを特徴とする文字罫線処理方式を提供するものであ
る。
In order to achieve the above object, this invention calculates the starting and ending positions of each ruled line connected in the same direction by the inputted character ruled lines in a document creation device having a means for inputting character ruled lines. The present invention provides a character ruled line processing method characterized in that data of each ruled line is stored as a vector ruled line based on its direction, starting point, and end point position.

〔作 用〕[For production]

この発明による文字罫線処理方式は、1文字ごとに同一
罫線パターンを連結させる文字罫線を。
The character ruled line processing method according to the present invention creates character ruled lines that connect the same ruled line pattern for each character.

横罫線及び縦罫線ごとの始点と終点を算出して記憶し、
印刷や表示の際にこの始点と終点の2点を結ぶベクトル
罫線として出力する。
Calculates and stores the start and end points of each horizontal and vertical ruled line,
When printing or displaying, it is output as a vector ruled line connecting the two points, the starting point and the ending point.

〔実施例〕 以下、この発明の実施例を図面に基づいて具体的に説明
する。
[Example] Hereinafter, an example of the present invention will be specifically described based on the drawings.

第2図は、この発明の一実施例である文書作成装置の外
観斜視図である。
FIG. 2 is an external perspective view of a document creation device that is an embodiment of the present invention.

この文書作成装置は、入力装置であるキーボード12表
示装置であるCRTデイスプレィ2.印刷装置であるレ
ーザプリンタ等のプリンタ35文書作成装置の本体4及
びその本体4に内蔵した外部記憶装置であるフロッピデ
ィスク等のディスク装置5とからなる。
This document creation device includes a keyboard 12 which is an input device, a CRT display 2 which is a display device. It consists of a printer 3, such as a laser printer, which is a printing device, a main body 4 of a document creation device, and a disk device 5, such as a floppy disk, which is an external storage device built into the main body 4.

キーボード1は、各種文字情報を入力するための多数の
文字キー(数字キーを含む)の他に、文字罫線コード等
を入力するための各種機能キーカーソル移動キー等を備
えている。
The keyboard 1 includes a large number of character keys (including numeric keys) for inputting various character information, as well as various function keys, cursor movement keys, etc. for inputting character ruled line codes and the like.

CRTデイスプレィ2は、入力された各種文字や文字罫
葆等を表示し、プリンタ3は、文字や制御コードを受け
て文字罫線等を含む作成された文書を印刷する。
The CRT display 2 displays various input characters, character lines, etc., and the printer 3 receives the characters and control codes and prints the created document including the character lines, etc.

ディスク装置5は、作成された文書データをフロッピデ
ィスク等に格納して記憶する。
The disk device 5 stores the created document data on a floppy disk or the like.

第3図は、この文書作成装置の制御部の構成を示すブロ
ック図である。
FIG. 3 is a block diagram showing the configuration of the control section of this document creation device.

この制御部6はマイクロコンピュータであり、CPU7
.ROM8.RAM9.キーボードコントローラ1Q、
CRTコントローラ11.ディスクコントローラ12.
プリンタコントローラ13゜I10コントローラ14等
からなる。
This control unit 6 is a microcomputer, and the CPU 7
.. ROM8. RAM9. keyboard controller 1Q,
CRT controller 11. Disk controller 12.
It consists of a printer controller 13°I10 controller 14, etc.

CPU7は、文書作成2表示制御、印刷制御。The CPU 7 performs document creation 2 display control and print control.

この発明に係る文字罫線処理に関する制御等、この装置
全体の制御を司る。
It is in charge of the overall control of this device, such as the control related to character ruled line processing according to the present invention.

ROM8には、この装置の制御に必要な制御プログラム
及び各種の固定情報を格納している。
The ROM 8 stores a control program and various fixed information necessary for controlling this device.

RAM9は、キーボード1から入力されるデータを一時
的に格納したり、入力された文字データや文字罫線等の
情報を格納するデータエリア及びプログラム実行のため
のワーキングエリアとして使用される。
The RAM 9 is used as a data area for temporarily storing data input from the keyboard 1, information such as input character data and character lines, and a working area for program execution.

キーボードコントローラ10はキーボード1からの入力
データの判別等を、CRTコントローラ11は内部にビ
デオメモリ(VRAM)等を備えてCRTデイスプレィ
2の表示制御を、ディスクコントローラ12はディスク
−装置5の制御を、プリンタコントローラ13はプリン
タ3の制御をそれぞれ司る。そして、I10コントロー
ラ14は上記複数のコントローラの制御を司る。
The keyboard controller 10 determines input data from the keyboard 1, the CRT controller 11 has an internal video memory (VRAM), etc. and controls the display of the CRT display 2, the disk controller 12 controls the disk device 5, The printer controllers 13 each manage the control of the printers 3. The I10 controller 14 controls the plurality of controllers mentioned above.

第4図はこの文書作成装置の機能ブロック図であり、入
力装置9表示装置、印刷装置、及び外部記憶装置は、そ
れぞれ第3図のキーボード1゜CRTデイスプレィ2.
プリンタ3.及びディスク装置5に相当するので同一符
号を付している。
FIG. 4 is a functional block diagram of this document creation device, in which an input device 9, a display device, a printing device, and an external storage device are respectively connected to the keyboard 1° CRT display 2 shown in FIG.
Printer 3. and the disk device 5, so they are given the same reference numerals.

その他の各ブロック図は、第3図に示した制御部6の機
能を示している。
The other block diagrams show the functions of the control section 6 shown in FIG. 3.

入力装置1から入力される各種文字や文字罫線コード等
のデータは、入出力制御部15で判別されて入力データ
処理部16に送られる。
Data such as various characters and character ruled line codes inputted from the input device 1 are determined by the input/output control section 15 and sent to the input data processing section 16 .

入力データ処理部16は、この発明に関する機能として
は転送されたデータから文字罫線の始点と終点の算出や
罫線の終点位置の更新等の処理を行ない、−時記憶部1
8へ送ると共に入出力制御部15により表示データ処理
部19へ送り、表示装置2へ出力する。
The input data processing section 16 performs processing such as calculating the starting point and end point of a character ruled line and updating the end point position of the ruled line from the transferred data as a function related to the present invention, and stores the -time storage section 1
8 and also sent to the display data processing section 19 by the input/output control section 15 and output to the display device 2.

データベース部17には、文書の作成及び編集に使用す
るデータを格納している。
The database unit 17 stores data used for creating and editing documents.

−時記憶部18は、入力データ処理部1日で処理された
文字罫線の始点位置及び終点位置等のデータを一時格納
し、入出力制御部15を介して表示データ処理部19又
は印刷データ処理部20に送り、あるいは外部記憶装置
5のデータを格納する。
- The time storage section 18 temporarily stores data such as the starting point position and end point position of character ruled lines processed in one day by the input data processing section, and transmits the data to the display data processing section 19 or print data processing via the input/output control section 15. 20 or store the data in the external storage device 5.

表示データ処理部19は、入出力制御部15より受は取
ったデータによって表示データを生成し、表示装置2に
文字罫線を含んだ文書等を表示し、印刷データ処理部2
0は、同しく入出力制御部15より受は取ったデータに
よって印刷データを生成し、作成した文字罫線等を含む
文書を印刷装置6に印刷させる。
The display data processing section 19 generates display data based on the data received from the input/output control section 15, displays a document etc. including character ruled lines on the display device 2, and displays the document etc. containing character ruled lines on the display device 2.
0 generates print data based on the data also received from the input/output control unit 15, and causes the printing device 6 to print the document including the created character ruled lines and the like.

第1図は、この実施例によって有効印字領域に文字罫線
を入力した例を示した図で、これを基に罫線データの処
理を説明する。
FIG. 1 is a diagram showing an example in which character ruled lines are input into the effective print area according to this embodiment, and the processing of ruled line data will be explained based on this.

有効印字領域とは、横方向を示す行と縦方向を示す桁で
表わされる位置に文字や数値等を入力する領域である。
The effective print area is an area in which characters, numbers, etc. are input at positions indicated by lines indicating the horizontal direction and digits indicating the vertical direction.

ここに、文字罫線が第N行から第N+2行のそれぞれM
桁目からM+2桁目までに入力されているものとする。
Here, the character ruled lines are M from the Nth line to the N+2th line.
It is assumed that the information has been input from the digit to the M+2 digit.

その有効印字領域をドツト数を単位にして左右方向にX
軸、上下方向にY軸を取ると、第N行の行位置はY座標
でGn ドツトの位置、第N+1行の行位置はGn+1
ドツトの位置、第N+2行はGn+zドツトの位置、第
N+3行はGn+3ドツトの位置とする。
The effective printing area is X in the left and right direction in units of dots.
If we take the Y axis in the vertical direction, the row position of the Nth row is the Y coordinate, Gn.The dot position, the row position of the N+1st row is Gn+1.
The dot positions are as follows: the N+2nd row is the position of the Gn+z dot, and the N+3rd row is the Gn+3 dot position.

次に、第N行と第N+1行の行位置の距離であるGn+
1 とGnの差をLPnドツト、第N+1行と第N+2
行の行位置の距離であるGn+zとOn+1の差をLP
n+1トツ1〜、そして、第N+2行と第N+3行の行
位置の距離であるGn+aとGnlの差を L Pn+
 2とする。
Next, Gn+ which is the distance between the row positions of the Nth row and the N+1th row
The difference between 1 and Gn is LPn dot, the N+1st row and the N+2nd row
The difference between Gn+z and On+1, which is the distance between row positions, is LP
n+1 totu 1~, and the difference between Gn+a and Gnl, which is the distance between the row positions of the N+2 and N+3 rows, is L Pn+
Set it to 2.

更に、第N行と第N+1行の行間隔をLBnドツト、第
N+1行と第N+2行の行間隔をLBn+tドツト、そ
して第N+2行と第N+3行の行間隔を L Bn+ 
2 ドツトとする。
Furthermore, the line spacing between the Nth and N+1st rows is LBn dots, the line spacing between the N+1st and N+2nd lines is LBn+t dots, and the line spacing between the N+2nd and N+3rd lines is L Bn+
2 Dots.

また、第N行M桁目の桁位置をX座標でKn、mドツト
の位置、M+1桁目をKn、m+1 ドツトの位置、M
+2桁目をKn、m+2 ドツトの位置、M+3桁目を
Kn、m+3 ドツトの位置とする。
In addition, the digit position of the Nth row and Mth digit is Kn in the X coordinate, the m dot position, the M+1st digit is Kn, the m+1 dot position, M
The +2nd digit is the position of the Kn, m+2 dot, and the M+3rd digit is the position of the Kn, m+3 dot.

次に、第N行のM桁目とM+1桁目の桁位置の距離をC
Pn、mドツト、M+1桁目とM+2桁目の桁位置の距
離を CPn、m+1  ドツト、M+2桁目とM+3
桁目の桁位置の距離をCPn、m+zドツトとする。
Next, calculate the distance between the Mth digit and M+1st digit position of the Nth row by C
Pn, m dot, distance between M+1st digit and M+2nd digit CPn, m+1 dot, M+2nd digit and M+3
Let the distance between the digit positions be CPn, m+z dots.

そして、第N行のM桁目とM+1桁目の文字間隔をCB
n、mドツト、M+1桁目とM+2桁目の文字間隔を 
CBn、m+1  ドツト、M+2桁目とM+3桁目の
文字間隔を CBn 、 m+ 2ドツトとする。
Then, set the character spacing between the Mth column and M+1st column of the Nth line to CB
n, m dot, character spacing between M+1st digit and M+2nd digit
Let CBn, m+1 dot, and the character spacing between the M+2nd and M+3rd digits be CBn, m+2 dots.

まず、第N行M桁目に位置する文字罫線は横罫線Ω1と
縦罫線L1の2つのパターンを持つ文字罫線であり、こ
の横罫線Q1の始点のχ座標Sχ1とy座標S”/1及
び縦罫線L1の始点のX座標5Oc2とv座;[Syz
は同位置だから、上記のドツト数で表わすと、 S x1= S x z = Kn、m+ (CPn、
m −CBn、m)/ 2S”/1 =St/2 =G
n+(LPn−LBn)/2となる。
First, the character ruled line located in the Nth row and Mth column is a character ruled line that has two patterns: a horizontal ruled line Ω1 and a vertical ruled line L1. X coordinate 5Oc2 and v position of the starting point of vertical ruled line L1; [Syz
are at the same position, so when expressed with the number of dots above, S x1 = S x z = Kn, m+ (CPn,
m - CBn, m)/2S"/1 = St/2 = G
It becomes n+(LPn-LBn)/2.

そして、その終点は次のようになる。And the end point will be as follows.

一 上記の横罫線Ω1については、まず隣のM+1桁目との
文字間隔の中間点aになるから、そのX座標をEχ1+
”/座標をEylとすると、E x 1 = S x 
1 + CPn、m / 2E”/1 ==Sy1 である。
Regarding the horizontal ruled line Ω1 above, first, it is the midpoint a of the character interval with the adjacent M+1st digit, so its X coordinate is Eχ1+
”/If the coordinate is Eyl, E x 1 = S x
1 + CPn, m/2E”/1 ==Sy1.

次に、縦罫線L1については、まず第N行と第N+1行
との行間隔の中間点すになるから、そのX座標をEyl
、t/座標をE’/2とすると、EOc2 =Sz2 Eyz =Syz +LPn /2 である。
Next, regarding the vertical ruled line L1, first, since it is the midpoint of the line spacing between the Nth line and the N+1th line, its X coordinate is Eyl.
, t/coordinate is E'/2, then EOc2 = Sz2 Eyz = Syz + LPn /2.

次に、第N行M+1桁目に位置する文字罫線は横罫線Q
2のパターンのみを有し、その始点はM桁目との文字間
隔の中間点aだから、上記のX座標E OC1r y座
標E”/1で示される位置と同じである。
Next, the character ruled line located at the M+1st column of the Nth row is the horizontal ruled line Q
Since the starting point is the midpoint a of the character interval with the M-th digit, it is the same as the position indicated by the above-mentioned X coordinate E OC1r y coordinate E''/1.

そこで、M桁目の横罫線Q1の終点とM+1桁目の横罫
線f12の始点が一致し、双方の罫線とも横罫線で同一
パターンだから、同し色を持つならつながる罫線として
扱い、その終点をM+1桁目の横罫線Q2の終点である
M+1桁目とM+2桁目の文字間隔の中間点Cとする。
Therefore, the end point of the M-th horizontal ruled line Q1 and the starting point of the M+1-th horizontal ruled line f12 match, and since both ruled lines are horizontal ruled lines with the same pattern, if they have the same color, they are treated as connected ruled lines, and their end points are The end point of the horizontal ruled line Q2 at the M+1 digit is the midpoint C between the character spacing between the M+1 digit and the M+2 digit.

つまり、M桁目の横罫線Q1の終点をM+1桁目の横罫
線C2の終点Cに更新する。
That is, the end point of the M-th horizontal ruled line Q1 is updated to the end point C of the M+1-th horizontal ruled line C2.

従って、更新した終点のX座標とV座標はそれぞれ、 Ez1=Kn、m+1 +CPn、m+1−CBn、m
+1 / 2E”/1 :St/1 となる。
Therefore, the updated X and V coordinates of the end point are Ez1=Kn, m+1 +CPn, m+1-CBn, m
+1/2E”/1: St/1.

このようにして、次々と終点の位置を更新していくとM
+2桁目で第N行の横罫線が終了するから、その終点を
第N行に出力する横罫線Q3の終点とする。
In this way, by updating the end point position one after another, M
Since the horizontal ruled line of the Nth row ends at the +2nd digit, the ending point is set as the ending point of the horizontal ruled line Q3 to be output to the Nth row.

すると、終点のX座標とり座標はM+2桁目の文字罫線
の文字幅の中間点だから、 E x1= Kn、mHz + (CPn、mHz −
CBn、mHz )/ 2Ey1=SV1 となる。
Then, the X coordinate of the end point is the midpoint of the character width of the M+2nd digit character ruled line, so E x1 = Kn, mHz + (CPn, mHz -
CBn, mHz)/2Ey1=SV1.

ここで、上記の終点を始点として縦罫線L4が下に延び
ているから、その始点のX座標をSχ3゜X座標をS’
/3とすると、 Sχ3=EχI St/3 :St/1 となり、その終点は第N行と第N+1行との行間隔の中
間点dだから、そのX座標をEχ31 V座標をE”/
3とすると、 E x3= S x3 E y 3 = Gn+ LPn −LBn/ 2とな
る。
Here, since the vertical ruled line L4 extends downward from the above end point as the starting point, the X coordinate of the starting point is Sχ3°, and the X coordinate is S'
/3, then Sχ3=EχI St/3 :St/1, and the end point is the midpoint d of the line spacing between the Nth row and the N+1th row, so its X coordinate is Eχ31 and its V coordinate is E”/
3, Ex3=Sx3Ey3=Gn+LPn-LBn/2.

次に、第N+1行に移るとM桁目の文字罫線は縦罫線L
2のパターンのみを有し、その始点は第N行と第N+1
行の行間隔の中間点すになり、前述の縦罫線L1の終点
の座標 Exz =Kn+1 、m+(CPn+1 、m−CB
n+1 、m)/2Eyz =Gn+LPn−LBn/
2 と一致する。
Next, when moving to the N+1st line, the Mth character ruled line is the vertical ruled line L
It has only 2 patterns, and its starting points are the Nth row and the N+1th row.
The coordinates of the end point of the vertical ruled line L1 are Exz = Kn+1, m+(CPn+1, m-CB
n+1, m)/2Eyz = Gn+LPn-LBn/
Matches 2.

ここで、両罫線のパターンは縦罫線で同一だから色が同
じであればつながる罫線として扱い、縦罫線L1の終点
を第N+1行M桁の縦罫線L2の終点に更新する。
Here, since the patterns of both vertical ruled lines are the same, if the colors are the same, they are treated as connected ruled lines, and the end point of the vertical ruled line L1 is updated to the end point of the vertical ruled line L2 in the N+1st row and M column.

その位置は、第N+2行と第N+1行の行間隔の中間点
eであり、その座標は E $2 = S r2 E q 2 : Gnat + LPn+1− LBn
+1 / 2となる。
Its position is the midpoint e of the line spacing between the N+2 and N+1 rows, and its coordinates are E $2 = S r2 E q 2 : Gnat + LPn+1- LBn
It becomes +1/2.

次に、M+1桁目は空白文字だから次のM+2桁目に進
むと、この文字罫線は縦罫線L5のパターンのみを有し
、始点は第N行と第N+1行との行間隔の中間点dであ
るから、その位置のX座標をSχ3+V座標をS!/9
とすると、S x3 = S xz S y 3 = Gn+ LPn −LBn/ 2であ
る。
Next, since the M+1st column is a blank character, when proceeding to the next M+2 column, this character line has only the pattern of vertical ruled line L5, and the starting point is the midpoint d of the line spacing between the Nth line and the N+1th line. Therefore, the X coordinate of that position is Sχ3+V coordinate is S! /9
Then, S x3 = S xz S y 3 = Gn+ LPn - LBn/2.

この始点と縦罫線L4の終点は一致し、両罫線は同じパ
ターンの縦罫線だから色が同じであればつながる罫線と
して扱い、その終点を更新する。
This starting point and the end point of the vertical ruled line L4 match, and since both ruled lines have the same pattern, if they have the same color, they are treated as connected ruled lines and their end points are updated.

すなわち、縦罫線L4の終点は第N+1行目と第N+2
行目の行間隔の中間点fになり、そのX座標をEχ9r
V座標をE”/3とすると、E Oc3  = S x
3 E(/3  =Gn+x  +LPn+1 −LBn+
1  /2である。
In other words, the end points of the vertical ruled line L4 are the N+1st line and the N+2nd line.
It becomes the midpoint f of the line spacing of the row, and its X coordinate is Eχ9r
If the V coordinate is E”/3, E Oc3 = S x
3 E(/3 =Gn+x +LPn+1 -LBn+
It is 1/2.

そして、第N+2行に移るとM桁目の文字罫線は縦罫線
L3と横罫線ρ4の両方のパターンを持つ文字罫線で、
その縦罫線L3の始点と第N+1行の縦罫線L3の終点
とは一致し、同じ色ならつながるから第N行から第N+
2行のM桁目を通る縦罫線の最終的な終点となるので、
縦罫線L1の終点をこの位置に更新する。
Then, moving to the N+2th line, the M-th character ruled line is a character ruled line that has both patterns of vertical ruled line L3 and horizontal ruled line ρ4,
The starting point of the vertical ruled line L3 and the end point of the vertical ruled line L3 of the N+1 row match, and if they are the same color, they are connected, so from the Nth row to the N+
This is the final end point of the vertical ruled line that passes through the Mth column of the second line, so
The end point of the vertical ruled line L1 is updated to this position.

この縦罫線L3の終点は、第N+2行M桁の文字幅の中
間点だからその位置のX座標とV座標は、EOc2 =
Sxz E q 2 = Gn+z +(LPn+z −LBn
+2 )/2となる。
The end point of this vertical ruled line L3 is the midpoint of the character width in the N+2nd row and M column, so the X and V coordinates of that position are EOc2 =
Sxz E q 2 = Gn+z + (LPn+z −LBn
+2)/2.

ここで、第N+2行M桁の縦罫線L3の終点から横罫線
Q4が始まっているから、その始点のX座標をS Oc
4 + t/座標をS”/4とすると、Sr4 =Sz
2 Sv4=Et/2 となる。
Here, since the horizontal ruled line Q4 starts from the end point of the vertical ruled line L3 in the N+2nd row and M column, the X coordinate of the starting point is S Oc
4 + t/If the coordinate is S”/4, Sr4 = Sz
2Sv4=Et/2.

そして、その終点のχ座標をEχ4.?/座標をE”/
4 とすると、 Ex4=Kn、m+CPn、m−CBn、m /2Et
/4 =Sy4 となる。
Then, set the χ coordinate of the end point to Eχ4. ? /Coordinates are E”/
4, Ex4=Kn, m+CPn, m-CBn, m/2Et
/4=Sy4.

以後、同様にして隣接する罫線がつながるか否かを確認
しながら終点の位置を更新していくと、全部で4本の罫
線に関する始点と終点のデータが求まる。
Thereafter, by updating the position of the end point while checking whether adjacent ruled lines are connected in the same manner, data on the starting point and end point for a total of four ruled lines can be obtained.

上記の、罫線データを更新する処理の流れを示したのが
第5図である。
FIG. 5 shows the flow of the process for updating the ruled line data.

このルーチンは文字罫線の入力があるとスタートし、上
か左に罫線パターンが有るか否かをチエツクする。
This routine starts when a character ruled line is input, and checks whether there is a ruled line pattern on the top or left side.

そして、有れば次につながる罫線パターンが有るか否か
をチエツクして、有れば前記の方式に従って罫線データ
の終点位置を示す座標を更新する。
Then, if there is, it is checked whether there is a next connected ruled line pattern, and if there is, the coordinates indicating the end point position of the ruled line data are updated according to the method described above.

上記いずれかのチエツクでNoであれば新たな罫線が開
始されるので、新たに罫線データを作成して始点と終点
を求める。
If any of the above checks is No, a new ruled line is started, so new ruled line data is created and the starting point and ending point are determined.

こうして求めた各罫線の始点及び終点のデータにより、
文字罫線をベクトル罫線として管理する。
Based on the data of the starting point and ending point of each ruled line obtained in this way,
Manage character ruled lines as vector ruled lines.

次表にその罫線データ管理表の一例を示す。The following table shows an example of the ruled line data management table.

〔罫線データ管理表〕[Ruled line data management table]

この表は、13行の格納欄からなり第1行目は罫線の存
在するページ数を格納する「ページナンバ」欄、第2行
目は罫線の有るこのページ内での段番号を格納する「段
番号」欄、第3行目は罫線の方向を示す「方向」欄で、
横罫線なら「0」を縦罫線なら「1」を格納する。
This table has 13 rows of storage columns, the first row is a "page number" column that stores the number of pages that have ruled lines, and the second row is a "page number" column that stores the column number within this page that has ruled lines. The column number” column, the third line is the “direction” column that indicates the direction of the ruled line,
If it is a horizontal ruled line, "0" is stored, and if it is a vertical ruled line, "1" is stored.

第4行目は、実線2点線等の罫線の種類である線パター
ンを格納する「線種」欄、第5行目は罫線の色を示す情
報を格納する「色J欄である。
The fourth line is a ``line type'' column that stores the line pattern of the type of ruled line, such as a solid line with two dotted lines, and the fifth line is a ``color J'' column that stores information indicating the color of the ruled line.

そして、第6行目から第9行目までに前述した罫線の始
点位置と終点位置をドツト数を単位にした有効印字領域
の座標位置で格納する。
Then, from the sixth line to the ninth line, the above-mentioned starting and ending positions of the ruled lines are stored as coordinate positions of the effective print area in units of dot numbers.

つまり、第6行目に始点のχ座標を、第7行目に始点の
y座標を、第8行目に終点のχ座標を、第8行目に終点
のV座標をそれぞれ格納する。
That is, the 6th line stores the χ coordinate of the starting point, the 7th line stores the y coordinate of the starting point, the 8th line stores the χ coordinate of the ending point, and the 8th line stores the V coordinate of the ending point.

第10行目から第13行目までは、この罫線の始点と終
点に該当する行位置と桁位置を格納する。
From the 10th line to the 13th line, the line position and column position corresponding to the starting point and ending point of this ruled line are stored.

すなわち、第10行目に罫線が開始する桁位置を、第1
1行目にその行位置を、第12行目に罫線が終了する桁
位置を、第13行目にその行位置をそれぞれ格納する。
In other words, set the column position where the ruled line starts in the 10th line to the 1st column.
The line position is stored in the first line, the column position where the ruled line ends in the 12th line, and the line position in the 13th line.

これらの罫線管理データは、作成文書の登録時に−緒に
外部記憶装置5によりフロッピディスク等に格納される
These ruled line management data are stored on a floppy disk or the like by the external storage device 5 at the same time as the created document is registered.

なお、この管理表の様式はこの発明を実施するシステム
に応じて、行単位もしくは段組単位等で行なっても良い
Note that the format of this management table may be formed in units of rows or columns, depending on the system implementing the present invention.

〔発明の効果〕〔Effect of the invention〕

この発明による文字罫線処理方式によれば、文字罫線を
ベクトル罫線として記憶するため、レーザプリンタのよ
うな高速で印刷できる印刷装置に対しても迅速にデータ
を送ることが可能になる。
According to the character ruled line processing method according to the present invention, since character ruled lines are stored as vector ruled lines, data can be sent quickly even to a printing device capable of high-speed printing such as a laser printer.

また、文書更新の際には外部記憶装置によって読込まれ
る文書を最初に表示する文書画面を高速に表示でき、そ
の文書画面をスクロールさせる場合等にも高速で罫線表
示を行なうことができる。
Furthermore, when updating a document, a document screen that initially displays a document read from an external storage device can be displayed at high speed, and when the document screen is scrolled, ruled lines can be displayed at high speed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例による文字罫線の入力例と
その始点、終点位置の算出及び終点位置更新の説明図、 第2図はこの発明の一実施例である文書作成装置の外観
斜視図、 第6図は同じくその制御部の構成を示す機能ブロック図
、 第4図は同じくこの文書作成装置の構成を示す機能ブロ
ック図、 第5図は罫線の終点位置の更新処理の流れを示すフロー
図、 第6図は従来の文字罫線を表示、印刷する際の処理方式
の説明図である。 1・・・入力装置(キーボード) 2・・表示装置(CRTデイスプレィ)3・印刷装置(
プリンタ) 5・・・外部記憶装置(ディスク装置)15・・入出力
制御部  16・・入力データ処理部17・・・データ
ベース部 18・・・−時記憶部19・表示データ処理
部 20・印刷データ処理部 第6図 (b)
FIG. 1 is an explanatory diagram of an example of inputting character ruled lines, calculation of the start point and end point position, and updating of the end point position according to an embodiment of the present invention. FIG. 2 is an external perspective view of a document creation device according to an embodiment of the present invention. Figure 6 is a functional block diagram showing the configuration of the control unit; Figure 4 is a functional block diagram showing the configuration of the document creation device; Figure 5 is a flowchart of the process of updating the end point position of ruled lines. Flowchart FIG. 6 is an explanatory diagram of a conventional processing method for displaying and printing character ruled lines. 1...Input device (keyboard) 2...Display device (CRT display) 3.Printing device (
Printer) 5... External storage device (disk device) 15... Input/output control unit 16... Input data processing unit 17... Database unit 18... - Time storage unit 19, display data processing unit 20, printing Data processing section Fig. 6(b)

Claims (1)

【特許請求の範囲】[Claims] 1 文字罫線を入力する手段を有する文書作成装置にお
いて、入力された文字罫線により同一方向に接続される
各罫線の始点及び終点位置を算出し、入力された各罫線
のデータをその方向と始点及び終点位置によりベクトル
罫線として記憶することを特徴とする文字罫線処理方式
1. In a document creation device that has a means for inputting character ruled lines, calculate the starting point and end point position of each ruled line connected in the same direction by the inputted character ruled line, and calculate the data of each input ruled line by its direction, starting point, and A character ruled line processing method characterized by storing vector ruled lines according to end point positions.
JP63331683A 1988-12-29 1988-12-29 Character ruled line processing method in document creation device Pending JPH02178874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63331683A JPH02178874A (en) 1988-12-29 1988-12-29 Character ruled line processing method in document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63331683A JPH02178874A (en) 1988-12-29 1988-12-29 Character ruled line processing method in document creation device

Publications (1)

Publication Number Publication Date
JPH02178874A true JPH02178874A (en) 1990-07-11

Family

ID=18246411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63331683A Pending JPH02178874A (en) 1988-12-29 1988-12-29 Character ruled line processing method in document creation device

Country Status (1)

Country Link
JP (1) JPH02178874A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04250562A (en) * 1991-01-25 1992-09-07 Daikin Ind Ltd Document data capture and display method and device in a document processing system
JP2006297740A (en) * 2005-04-20 2006-11-02 Fuji Xerox Co Ltd Character ruled line processing method, apparatus and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6299872A (en) * 1985-10-25 1987-05-09 Fujitsu Ltd Ruled line conversion system for production of illustrated document

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6299872A (en) * 1985-10-25 1987-05-09 Fujitsu Ltd Ruled line conversion system for production of illustrated document

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04250562A (en) * 1991-01-25 1992-09-07 Daikin Ind Ltd Document data capture and display method and device in a document processing system
JP2006297740A (en) * 2005-04-20 2006-11-02 Fuji Xerox Co Ltd Character ruled line processing method, apparatus and program

Similar Documents

Publication Publication Date Title
US4881064A (en) Information processor having cursor display system and control
JP2740575B2 (en) Character processor
JPH02178874A (en) Character ruled line processing method in document creation device
JP3474961B2 (en) Document information processing device
JPS602668B2 (en) Character pattern registration processing method
US5526019A (en) Character processing apparatus
JPH0522933B2 (en)
JPH0844333A (en) Graphic input device
JPH0776967B2 (en) Character processor
JPH074956B2 (en) Character processor
JP3083665B2 (en) Sentence information processing equipment
JP2904994B2 (en) Coordinate connection display method
JP2617190B2 (en) String output device
JPS63186366A (en) Document preparing device
JPH0445875B2 (en)
JP3634387B2 (en) Document processing method and apparatus
JP2559131B2 (en) Screen controller
JP3404770B2 (en) Document processing device
JPS62177585A (en) document processing device
JPS63317818A (en) In-field document editing device
JPH01161394A (en) Method of making hard copy of multi-window picture
JPH02896A (en) character processing device
JPH06149512A (en) Item defining system
JPH06316131A (en) Composition data output device
JPH06318196A (en) Data output method