Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2825397B2 - Ruled line creation device for document processing system - Google Patents
[go: Go Back, main page]

JP2825397B2 - Ruled line creation device for document processing system - Google Patents

Ruled line creation device for document processing system

Info

Publication number
JP2825397B2
JP2825397B2 JP4204001A JP20400192A JP2825397B2 JP 2825397 B2 JP2825397 B2 JP 2825397B2 JP 4204001 A JP4204001 A JP 4204001A JP 20400192 A JP20400192 A JP 20400192A JP 2825397 B2 JP2825397 B2 JP 2825397B2
Authority
JP
Japan
Prior art keywords
ruled line
ruled
coordinate
point
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP4204001A
Other languages
Japanese (ja)
Other versions
JPH0652159A (en
Inventor
雅明 笹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Consejo Superior de Investigaciones Cientificas CSIC
Original Assignee
Consejo Superior de Investigaciones Cientificas CSIC
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 Consejo Superior de Investigaciones Cientificas CSIC filed Critical Consejo Superior de Investigaciones Cientificas CSIC
Priority to JP4204001A priority Critical patent/JP2825397B2/en
Publication of JPH0652159A publication Critical patent/JPH0652159A/en
Application granted granted Critical
Publication of JP2825397B2 publication Critical patent/JP2825397B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は文書処理システムの罫
線作成装置に関し、さらに詳しくは、ワードプロセッサ
や文書作成が可能なコンピュータ等の文書処理システム
の画面上で文書編集中に表を作成するために利用される
文書処理システムの罫線作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a ruled line creating apparatus for a document processing system, and more particularly, to creating a table while editing a document on a screen of a document processing system such as a word processor or a computer capable of creating a document. The present invention relates to a ruled line creation device of a used document processing system.

【0002】[0002]

【従来の技術】図10は従来のマウスによる罫線の作成
方法を示す説明図である。図10に示すように、従来
は、罫線を作成する場合、画面上のカーソルをマウスま
たはキーボードによって移動させ、作成したい罫線の始
点91をまず指定し、次に始点91から垂直または水平
にカーソルを移動させて終点92を指定することによ
り、この2点を結ぶ罫線93を作成する方法が知られて
いる。
2. Description of the Related Art FIG. 10 is an explanatory diagram showing a conventional method for creating a ruled line using a mouse. As shown in FIG. 10, conventionally, when creating a ruled line, a cursor on the screen is moved by a mouse or a keyboard, a starting point 91 of the ruled line to be created is first specified, and then the cursor is moved vertically or horizontally from the starting point 91. There is known a method of creating a ruled line 93 connecting these two points by moving and specifying an end point 92.

【0003】[0003]

【発明が解決しようとする課題】近年、ワードプロセッ
サにおいては、罫線によって文書中に表を作成できる機
能を持つものが一般的になっている。この装置を用い
て、罫線によって領域を分割し、目的とする表を作成す
ることができるが、これまで効率良く罫線を作成する方
法がなかった。
In recent years, word processors generally have a function of creating a table in a document by using ruled lines. Using this apparatus, a target table can be created by dividing an area by a ruled line, but there has been no method for efficiently creating a ruled line.

【0004】また、従来は、ある領域を区切る目的で罫
線を作成する場合に、罫線の始点と終点をマウスやキー
ボードを用いて指定する必要があった。ところが、罫線
の始点と終点を指定する方法では、特に罫線が長い場
合、マウスやカーソルを始点から終点に移動するのに手
間がかかるという問題と、正確に始点と終点の座標を指
定しなければならないという操作性の問題があった。
Conventionally, when creating a ruled line for the purpose of delimiting a certain area, it has been necessary to specify the start point and the end point of the ruled line using a mouse or a keyboard. However, in the method of specifying the start point and end point of the ruled line, especially when the ruled line is long, it takes time to move the mouse or cursor from the start point to the end point, and it is necessary to specify the coordinates of the start point and end point accurately There was a problem of operability that it did not.

【0005】この発明は以上の事情を考慮してなされた
もので、罫線によってあらかじめ枠が構成され、その枠
内で格子状の表を作成する際に、指定された始点と終点
の座標情報から、始点または終点が含まれる矩形領域を
分断するような水平線、または、垂直線を引くことによ
り、目的とする罫線を自動的に効率良く作成する文書処
理システムの罫線作成装置を提供するものである。
The present invention has been made in view of the above circumstances. A frame is formed in advance by using ruled lines, and when a grid-like table is created in the frame, the coordinate information of the designated start point and end point is used. A ruled line creating apparatus for a document processing system that automatically and efficiently creates a desired ruled line by drawing a horizontal line or a vertical line that divides a rectangular area including a start point or an end point. .

【0006】[0006]

【課題を解決するための手段】図1はこの発明の基本構
成を示す説明図である。図1において、画面上に罫線か
らなる枠を作成し、その枠内で格子状の表を作成すると
ともに文書情報を編集することが可能な文書処理システ
ムの罫線作成装置において、各罫線の位置をX、Y座標
値として記憶する座標記憶手段101と、作成された罫
線と文書情報を表示する画面を有する表示手段102
と、枠および表を作成するための罫線の始点および終点
の位置を指定する指定手段103と、指定手段101よ
り指定された始点および終点のX、Y座標値をそれぞれ
読み取り、始点と終点のX、Y座標値に対応する縦線分
の長さと横線分の長さを算出する算出手段104と、算
出結果から縦罫線の作成か横罫線の作成かを判定する際
に、縦線分の長さと横線分の長さを比較して長い線分を
その罫線の方向と判定する判定手段105と、判定され
た罫線の方向と垂直になる他の罫線で、かつ始点および
終点の両外側に近い罫線の座標値を座標記憶手段から検
索する検索手段106と、始点または終点を通りその延
長線上に検索された両外側の罫線と直交する位置のX、
Y座標値を求めその罫線の始点および終点のX、Y座標
値として置き換え座標記憶手段101に記憶させるとと
もに置換したX、Y座標値に基づいて罫線を表示データ
に展開し表示手段102の画面に表示する制御手段10
7を備えてなる文書処理システムの罫線作成装置であ
る。
FIG. 1 is an explanatory diagram showing a basic configuration of the present invention. In FIG. 1, a ruled line creating apparatus of a document processing system capable of creating a frame formed of ruled lines on a screen, creating a grid-like table in the frame, and editing document information is used to determine the position of each ruled line. Coordinate storage means 101 for storing X and Y coordinate values, and display means 102 having a screen for displaying the created ruled lines and document information
And a designation unit 103 for designating the start and end points of a ruled line for creating a frame and a table, and reading the X and Y coordinate values of the start and end points designated by the designation unit 101, respectively. Calculating means 104 for calculating the length of the vertical line segment and the length of the horizontal line segment corresponding to the Y coordinate value, and determining whether to create a vertical ruled line or a horizontal ruled line based on the calculation result. Determining means 105 for comparing the length of the horizontal line segment with the length of the horizontal line segment to determine the long line segment as the direction of the ruled line, and another ruled line perpendicular to the determined direction of the ruled line and close to both outer sides of the start point and the end point. A search means 106 for searching the coordinate value of the ruled line from the coordinate storage means; X and X at positions orthogonal to both outer ruled lines which pass through the start point or the end point and are searched for on the extension line thereof;
The Y coordinate value is determined and stored in the replacement coordinate storage means 101 as the X and Y coordinate values of the start and end points of the ruled line. The ruled line is developed into display data based on the replaced X and Y coordinate values, and is displayed on the screen of the display means 102. Display control means 10
7 is a ruled line creation device of a document processing system comprising

【0007】また、図2に示すように、前記指定手段1
03により罫線の始点および終点の位置を指定し、前記
判定手段105により縦罫線の作成か横罫線の作成かを
判定された際に、縦罫線の作成ならば終点のX座標を始
点のX座標と等しく補正し、横罫線の作成ならば終点の
Y座標を始点のY座標と等しく補正する補正手段108
をさらに備え、補正手段108により罫線の終点のX、
Y座標値を一時的に補正してから検索手段106と制御
手段107の作動により所定の罫線を作成するよう構成
されてもよい。
[0007] Further, as shown in FIG.
03, the starting point and the ending point of the ruled line are designated. When the determination means 105 determines whether to create a vertical ruled line or a horizontal ruled line, if the vertical ruled line is created, the X coordinate of the end point is set to the X coordinate of the starting point. Correction means 108 for correcting the Y coordinate of the end point to be equal to the Y coordinate of the start point if a horizontal ruled line is created.
Is further provided, and the X, the end point of the ruled line,
The Y coordinate value may be temporarily corrected, and then a predetermined ruled line may be created by the operation of the search unit 106 and the control unit 107.

【0008】なお、この発明において、座標記憶手段1
01、算出手段104、判定手段105、検索手段10
6、制御手段107、補正手段108としては、CP
U、ROM、RAM、I/Oポートからなるマイクロコ
ンピュータを用いるのが好ましい。特に、座標記憶手段
101としては、通常、その中のRAMが用いられる。
また、外部記憶装置としてフロッピィーディスク、ハー
ドディスク等の外部記憶装置を用いてもよい。
[0008] In the present invention, the coordinate storage means 1
01, calculation means 104, determination means 105, search means 10
6. The control means 107 and the correction means 108
It is preferable to use a microcomputer including a U, a ROM, a RAM, and an I / O port. In particular, as the coordinate storage means 101, a RAM therein is usually used.
Further, an external storage device such as a floppy disk or a hard disk may be used as the external storage device.

【0009】表示手段102としては、CRTディスプ
レイ装置、LCD(液晶表示装置)、あるいはELディ
スプレイ装置が用いられる。指定手段103としては、
キーボード装置やタブレット装置、ポインティングデバ
イス、タッチセンサー等の入力装置が用いられる。
As the display means 102, a CRT display device, an LCD (liquid crystal display device), or an EL display device is used. As the specifying means 103,
Input devices such as a keyboard device, a tablet device, a pointing device, and a touch sensor are used.

【0010】[0010]

【作用】この発明によれば、図1において、各罫線の位
置をX、Y座標値として記憶する座標記憶手段101
と、作成された罫線と文書情報を表示する画面を有する
表示手段102を備え、指定手段103により画面上に
罫線からなる枠をあらかじめ作成してからその枠内で格
子状の表を作成するための罫線の始点および終点の位置
が指定されると、指定された始点および終点のX、Y座
標値をそれぞれ読み取り始点と終点のX、Y座標値に対
応する縦線分の長さと横線分の長さが算出手段104に
より算出される。その算出結果から判定手段105は縦
線分の長さと横線分の長さを比較して長い線分をその罫
線の方向と判定することにより縦罫線の作成か横罫線の
作成かを判定する。判定された罫線の方向と垂直になる
他の罫線でかつ始点および終点の両外側に近い罫線の座
標値が検索手段106により座標記憶手段101から検
索されると、制御手段107は始点または終点を通りそ
の延長線上に検索された両外側の罫線と直交する位置の
X、Y座標値を求めその罫線の始点および終点のX、Y
座標値として置き換え座標記憶手段101に記憶させる
とともに置換したX、Y座標値に基づいて罫線を表示デ
ータに展開し表示手段102の画面に表示する。
According to the present invention, in FIG. 1, coordinate storage means 101 for storing the position of each ruled line as X and Y coordinate values.
And a display unit 102 having a screen for displaying the created ruled lines and document information. In order to create a frame composed of ruled lines on the screen in advance by the specifying unit 103, and to create a grid-like table within the frame. Are specified, the X and Y coordinate values of the specified start and end points are read, respectively, and the length of the vertical line and the horizontal line corresponding to the X and Y coordinate values of the start and end points are read. The length is calculated by the calculating means 104. Based on the calculation result, the determination unit 105 compares the length of the vertical line segment with the length of the horizontal line segment, and determines the long line segment as the direction of the ruled line, thereby determining whether to create a vertical ruled line or a horizontal ruled line. When the coordinate value of another ruled line perpendicular to the direction of the determined ruled line and near the outside of both the start point and the end point is retrieved from the coordinate storage unit 101 by the retrieval unit 106, the control unit 107 sets the start point or the end point. X and Y coordinate values at positions orthogonal to both outer ruled lines searched on the extension line are obtained, and X and Y at the start and end points of the ruled line are obtained.
Based on the replaced X and Y coordinate values, the ruled lines are stored in the replacement coordinate storage unit 101 as coordinate values and are developed into display data and displayed on the screen of the display unit 102.

【0011】従って、あらかじめ設定した枠内で格子状
の表を作成する際に、指定された始点と終点の座標情報
から、始点または終点が含まれる矩形領域を分断するよ
うな横罫線、または縦罫線を引くことにより、目的とす
る罫線を自動的に効率良く作成することができる。
Therefore, when creating a grid-like table in a preset frame, a horizontal ruled line or a vertical ruled line that divides a rectangular area including the start point or end point from the coordinate information of the specified start point and end point. By drawing a ruled line, a target ruled line can be automatically and efficiently created.

【0012】前記指定手段103により罫線の始点およ
び終点の位置を指定するされ、前記判定手段105によ
り縦罫線の作成か横罫線の作成かを判定された際に、縦
罫線の作成ならば終点のX座標を始点のX座標と等しく
補正し、横罫線の作成ならば終点のY座標を始点のY座
標と等しく補正する補正手段108をさらに備え、補正
手段108により罫線の終点のX、Y座標値を一時的に
補正してから検索手段106と制御手段107の作動に
より所定の罫線を作成するような構成ならば、画面の操
作途中の確認がしやすくなり、さらに罫線作成の処理時
間が短縮される。
The starting point and the ending point of the ruled line are specified by the specifying means 103, and when the determination means 105 determines whether to create a vertical ruled line or a horizontal ruled line, if the vertical ruled line is created, the end point is determined. Correction means 108 for correcting the X coordinate to be equal to the X coordinate of the start point and, when creating a horizontal ruled line, correcting the Y coordinate of the end point to be equal to the Y coordinate of the start point, and the X and Y coordinates of the end point of the ruled line by the correction means 108 If the configuration is such that a predetermined ruled line is created by the operation of the search means 106 and the control means 107 after the value is temporarily corrected, it is easy to confirm the operation on the screen, and the processing time of the ruled line creation is further reduced. Is done.

【0013】[0013]

【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。なお、この発明はこれによって限定される
ものでない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the embodiments shown in the drawings. The present invention is not limited by this.

【0014】図3はこの発明の罫線作成装置をワードプ
ロセッサに適用した一実施例の構成を示すブロック図で
ある。図3において、1は仮名文字キー、数値キー、変
換キー、ファンクションキー等を備えたキーボードであ
り、このキーボード1から罫線の位置座標の指定および
処理情報や文書作成のための処理情報が入力される。2
はマウスであり、このマウス2から画面上のカーソルを
移動させて罫線の位置座標を指定してもよい。
FIG. 3 is a block diagram showing the configuration of an embodiment in which the ruled line forming device of the present invention is applied to a word processor. In FIG. 3, reference numeral 1 denotes a keyboard provided with kana character keys, numerical keys, conversion keys, function keys, and the like. The keyboard 1 is used to specify the position coordinates of ruled lines and to input processing information and processing information for document creation. You. 2
Is a mouse, and the position coordinates of the ruled line may be designated by moving the cursor on the screen from the mouse 2.

【0015】3は各プログラムの実行するCPU(中央
処理装置)であり、罫線を作成するための処理プログラ
ムと処理データを格納するメモリにより罫線の位置座標
検出、罫線距離算出、近傍罫線検索、位置座標置換、位
置座標補正、位置座標登録、罫線表示(または印刷出
力)等の処理を行う。4はハードディスクからなる外部
の主記憶装置である。プログラムメモリ、データメモリ
として用いられ、特に、この発明の罫線情報(位置座
標)の検出、算出、検索、置換、補正、登録、表示のた
めの罫線処理プログラムと、文書を変換するための辞
書、書式、罫線データ、文書データ等の各データが記憶
されている。
Reference numeral 3 denotes a CPU (central processing unit) for executing each program, which detects a position coordinate of a ruled line, calculates a ruled line distance, searches for a ruled line in the vicinity, and stores a processing program for creating ruled lines and a memory for storing processing data. Processing such as coordinate replacement, position coordinate correction, position coordinate registration, and ruled line display (or printout) is performed. Reference numeral 4 denotes an external main storage device including a hard disk. Used as a program memory and a data memory, in particular, a rule processing program for detecting, calculating, searching, replacing, correcting, registering and displaying ruled line information (position coordinates) of the present invention, and a dictionary for converting documents, Each data such as a format, ruled line data, and document data is stored.

【0016】5はフロッピィーディスクからなる外部の
補助記憶装置である。ハードディスク4と同様にプログ
ラムメモリ、データメモリとして用いられる。6はRA
M(ランダム・アクセス・メモリ)であり、特に、RA
M6は罫線データ(位置座標)を管理する罫線情報管理
領域である。7は罫線データ、文書データを表示するデ
ィスプレイであり、CRTディスプレイ装置やLCD
(液晶表示装置)が用いられる。
Reference numeral 5 denotes an external auxiliary storage device composed of a floppy disk. Like the hard disk 4, it is used as a program memory and a data memory. 6 is RA
M (random access memory), especially RA
M6 is a ruled line information management area for managing ruled line data (position coordinates). Reference numeral 7 denotes a display for displaying ruled line data and document data, such as a CRT display device or an LCD.
(Liquid crystal display device).

【0017】図4はRAMに管理される罫線管理情報を
示す説明図である。図4に示すように、各罫線は、その
始点の座標(x1,y1)と終点の座標(x2,y2)
でRAM6上で管理(登録)されている。ここで、図に
示すように、縦罫線と横罫線は別管理している。
FIG. 4 is an explanatory diagram showing ruled line management information managed in the RAM. As shown in FIG. 4, each ruled line has coordinates (x1, y1) of its starting point and coordinates (x2, y2) of its ending point.
Is managed (registered) on the RAM 6. Here, as shown in the figure, vertical ruled lines and horizontal ruled lines are managed separately.

【0018】図5は罫線作成の操作方法について2種類
の実施例を示す説明図である。図5において、「実施例
1」の罫線作成の操作方法について説明する。ディスプ
レイ7に表示されている文書画面に罫線によって表を作
成するには、外郭作成機能によって、左上の座標と右下
の座標を指定することにより、まず表の外郭(枠)を作
成する。この矩形領域を、罫線で分割することにより目
的とする表を作成していく。
FIG. 5 is an explanatory diagram showing two kinds of embodiments of the operation method for creating ruled lines. Referring to FIG. 5, an operation method for creating a ruled line according to the first embodiment will be described. In order to create a table with ruled lines on the document screen displayed on the display 7, the outline (frame) of the table is first created by designating the upper left coordinate and the lower right coordinate by the outline creation function. This rectangular area is divided by ruled lines to create a target table.

【0019】マウス2を使って罫線を引くためには、作
成しようとする罫線上の点で、かつ作成しようとする罫
線の始点に最も近い矩形領域の任意の点41をまず指定
(ポイント)する。
In order to draw a rule using the mouse 2, an arbitrary point 41 in the rectangular area closest to the start point of the rule to be created and the point on the rule to be created is first designated (pointed). .

【0020】つぎに、作成しようとする罫線の終点に最
も近い矩形領域の任意の点42をポイントする。このポ
イントする終点42は、必ずしも作成しようとする罫線
上になくてもよい。
Next, an arbitrary point 42 in the rectangular area closest to the end point of the ruled line to be created is pointed. The end point 42 to be pointed does not necessarily have to be on the ruled line to be created.

【0021】従って、上記のようなマウス2の操作によ
り、ポイントされた始点を含み、かつ、作成しようとす
る罫線の始点が含まれる矩形と、作成しようとする罫線
の終点が含まれる矩形を分断する水平の横罫線、または
垂直の縦罫線を引くことができる。よって、図4の実施
例1は、横罫線43が引かれる例を示す。
Therefore, by operating the mouse 2 as described above, a rectangle including the pointed start point and including the start point of the ruled line to be created and a rectangle including the end point of the ruled line to be created are divided. You can draw horizontal horizontal rules or vertical vertical rules. Therefore, the first embodiment of FIG. 4 shows an example in which the horizontal ruled line 43 is drawn.

【0022】ここで、ポイントされた始点とポイントさ
れた終点はポイントの順番であって、ポイントの位置関
係ではない。また、作成する罫線はポイントされた始点
のかわりにポイントされた終点を含む罫線とする実施例
も考えられる。
Here, the pointed start point and the pointed end point are in the order of the points, not the positional relationship of the points. Further, an embodiment in which the ruled line to be created is a ruled line including the pointed end point instead of the pointed start point can be considered.

【0023】図6、図7はこの発明による実施例1の罫
線作成処理を示すフローチャートである。図6〜図7を
用いて、図5に示す実施例1の罫線作成処理の流れを説
明する。ステップ51:マウス2により画面上に始点が
ポイントされると、指定された始点座標がCPU3の位
置座標検出の処理により取り込まれる。
FIGS. 6 and 7 are flowcharts showing a ruled line creation process according to the first embodiment of the present invention. The flow of the ruled line creation processing according to the first embodiment shown in FIG. 5 will be described with reference to FIGS. Step 51: When the start point is pointed on the screen by the mouse 2, the designated start point coordinates are captured by the position coordinate detection processing of the CPU 3.

【0024】ステップ52:同様に、マウス2により終
点がポイントされると、指定された終点座標がCPU3
の位置座標検出の処理により取り込まれる。
Step 52: Similarly, when the end point is pointed by the mouse 2, the designated end point coordinates are
Is acquired by the process of detecting the position coordinates.

【0025】ステップ53:始点の座標と、終点の座標
から、縦罫線の作成か横罫線の作成かを判定する。この
判定は、ポイントされた始点と終点の座標をそれぞれ
(px1,py1)、(px2,py2)とすると、|
px1−px2|と|py1−py2|を比較し、X座
標の距離がY座標の距離より大きければ、横罫線の作
成、それ以外であれば、縦罫線の作成と判断する。
Step 53: It is determined from the coordinates of the start point and the coordinates of the end point whether to create a vertical ruled line or a horizontal ruled line. This determination is made assuming that the coordinates of the pointed start and end points are (px1, py1) and (px2, py2), respectively.
By comparing px1-px2 | with | py1-py2 |, it is determined that a horizontal ruled line is created if the X coordinate distance is greater than the Y coordinate distance, and a vertical ruled line is created otherwise.

【0026】ステップ54:横罫線の作成と判断した場
合はステップ55に進み、ここで、px1<px2の場
合を説明する。
Step 54: When it is determined that a horizontal ruled line is to be created, the process proceeds to step 55, where the case where px1 <px2 will be described.

【0027】ステップ55:CPU3の近傍罫線検索の
処理によって、ポイントされた始点を囲む罫線の内、外
側に存在する縦罫線を、RAM6上に管理されている位
置座標を検索して捜し出す。より詳細には始点(x1,
y1)、終点(x2,y2)を両端に持ち、かつ、y1
<py1<y2、かつ、x1(=x2)<px1を満た
す縦罫線の内、|px1−x1|が最小となるものが求
める縦罫線である。
Step 55: The CPU 3 searches for a neighboring vertical ruled line by searching the position coordinates managed on the RAM 6 from among the ruled lines surrounding the pointed start point by the neighboring ruled line search processing. More specifically, the starting point (x1,
y1), end points (x2, y2) at both ends, and y1
Of the vertical ruled lines satisfying <py1 <y2 and x1 (= x2) <px1, the vertical ruled line that minimizes | px1-x1 | is the desired vertical ruled line.

【0028】ステップ56:同様に、近傍罫線検索の処
理によって、ポイントされた終点を囲む罫線の内、外側
に存在する縦罫線を、RAM6に管理されている位置座
標を検索して捜し出す。より詳細には、始点(x3,y
3)、終点(x4、y4)を両端に持ち、かつ、y2<
py2<y4、かつ、px2<x3(=x4)を満たす
縦罫線の内、|x3−px2|が最小となるものが求め
る縦罫線である。
Step 56: Similarly, by searching for a neighboring ruled line, a vertical ruled line existing outside of the ruled line surrounding the pointed end point is retrieved by searching the position coordinates managed by the RAM 6. More specifically, the starting point (x3, y
3) having end points (x4, y4) at both ends and y2 <
Among the vertical ruled lines satisfying py2 <y4 and px2 <x3 (= x4), the vertical ruled line that minimizes | x3-px2 | is the desired vertical ruled line.

【0029】ステップ57:次に、ポイントされた始点
を含み、かつ、求めた2つの縦罫線と交わる垂線(横罫
線)を求める。詳細には、前記で求めた縦罫線の両端の
座標を始点(x1,y1)、終点(x2,y2)およ
び、始点(x3,y3)、終点(x4,y4)とする
と、求める横罫線の位置座標は、始点(x1,py
1)、終点(x3,py1)となり、位置座標置換の処
理によって置換する。
Step 57: Next, a perpendicular line (horizontal rule line) including the pointed start point and intersecting with the obtained two vertical rule lines is obtained. In detail, assuming that the coordinates of both ends of the vertical ruled line obtained above are a start point (x1, y1), an end point (x2, y2), a start point (x3, y3), and an end point (x4, y4), The position coordinates are the starting point (x1, py
1) It becomes the end point (x3, py1) and is replaced by the process of position coordinate replacement.

【0030】ステップ58:さらに、この垂線(横罫
線)が、終点側の縦罫線と交わるかを調べる。詳細に
は、y3(=y1)<py1<y4が成り立てばよい。
成立しない場合は、エラーとなり、その場所に罫線を引
けないことを利用者に知らせて、処理を終了する。
Step 58: Further, it is checked whether or not the perpendicular (horizontal rule) intersects the vertical rule on the end point side. Specifically, y3 (= y1) <py1 <y4 may be satisfied.
If not, an error occurs and the user is notified that a ruled line cannot be drawn at that location, and the process ends.

【0031】ステップ59:求めた垂線(横罫線)の始
点(x1,py1)、終点(x3,py1)を罫線表示
の処理によって表示する。ステップ55〜59の処理に
より、所定の横罫線を引くことができる。
Step 59: The starting point (x1, py1) and the ending point (x3, py1) of the obtained perpendicular line (horizontal ruled line) are displayed by ruled line display processing. By the processing of steps 55 to 59, a predetermined horizontal ruled line can be drawn.

【0032】ステップ60〜64の処理により縦罫線の
場合にも、同様にして所定の縦罫線を引くことができ
る。
In the case of a vertical ruled line by the processing of steps 60 to 64, a predetermined vertical ruled line can be drawn in the same manner.

【0033】図5において、「実施例2」の罫線作成の
操作方法について説明する。ディスプレイ7に表示され
ている文書画面に罫線によって表を作成するには、外郭
作成機能によって、左上の座標と右下の座標を指定する
ことにより、まず表の外郭を作成する。この矩形領域
を、罫線で分割することにより目的とする表を作成して
いく。
Referring to FIG. 5, a description will be given of a method of operating ruled line creation according to the second embodiment. In order to create a table on the document screen displayed on the display 7 with ruled lines, the outline of the table is first created by designating the upper left coordinates and the lower right coordinates by the outline creation function. This rectangular area is divided by ruled lines to create a target table.

【0034】マウス2を使って罫線を引くためには、作
成しようとする罫線上の点で、かつ、作成しようとする
罫線の始点に最も近い矩形領域の任意の点44をまずポ
イントする。つぎに、作成しようとする罫線の終点方向
で、作成しようとする罫線の終点が他の罫線と交わる付
近の任意の点45をポイントする。このポイントする終
点45は、必ずしも作成しようとする罫線上になくても
良く、実施例1のように、作成しようとする罫線の終点
が含まれる矩形領域になくてもよい。
In order to draw a ruled line using the mouse 2, an arbitrary point 44 in the rectangular area closest to the starting point of the ruled line to be created and the point on the ruled line to be created is first pointed. Next, in the direction of the end point of the ruled line to be created, an arbitrary point 45 near the intersection of the ruled line to be created with another ruled line is pointed. The end point 45 to be pointed need not necessarily be on the ruled line to be created, and may not be in a rectangular area including the end point of the ruled line to be created as in the first embodiment.

【0035】この時、ポイントされた終点45の座標
を、ポイントされた始点の座標と水平に近ければ、水平
となる座標47に、また、垂直に近ければ垂直となる座
標に補正する。こうすることにより、ポイントされた始
点を含み、かつ、作成しようとする罫線の始点を含む矩
形と、作成しようとする罫線の終点に近い矩形を分断す
る水平の横罫線、または垂直の縦罫線を引くことができ
る。図5の実施例2では、横罫線46が引かれる。
At this time, the coordinate of the pointed end point 45 is corrected to a horizontal coordinate 47 if it is close to the coordinate of the pointed start point, and to a vertical coordinate if it is close to the vertical. By doing so, the rectangle that includes the pointed starting point and that includes the starting point of the ruled line to be created and the horizontal horizontal ruled line or the vertical vertical ruled line that separates the rectangle near the end point of the ruled line to be created Can be pulled. In the second embodiment shown in FIG. 5, a horizontal ruled line 46 is drawn.

【0036】ここで、ポイントされた始点とポイントさ
れた終点はポイントの順番であって、ポイントの位置関
係ではない。
Here, the pointed start point and the pointed end point are in the order of the points, not the positional relationship of the points.

【0037】図8、図9は本発明による実施例2の罫線
作成処理を示すフローチャート。図8〜図9を用いて、
図5に示す実施例2の罫線作成処理の流れを説明する。 ステップ71:マウス2により画面上に始点がポイント
されると、CPU3の位置座標検出の処理により始点座
標が取り込まれる。
FIGS. 8 and 9 are flowcharts showing ruled line creation processing according to the second embodiment of the present invention. Using FIGS. 8 and 9,
The flow of the ruled line creation processing according to the second embodiment illustrated in FIG. 5 will be described. Step 71: When the start point is pointed on the screen by the mouse 2, the start point coordinates are captured by the position coordinate detection processing of the CPU 3.

【0038】ステップ72:同様にマウス2により画面
上に終点がポイントされると、CPU3の位置座標検出
の処理により終点座標が取り込まれる。
Step 72: Similarly, when the end point is pointed on the screen by the mouse 2, the coordinates of the end point are captured by the position coordinate detection processing of the CPU 3.

【0039】ステップ73:始点の座標と、終点の座標
から、縦罫線の作成か横罫線の作成かを判定する。この
判定は、実施例1と同様にして行う。ポイントされた始
点と終点の座標をそれぞれ(px1,py1),(px
2,py2)とする。
Step 73: It is determined from the coordinates of the start point and the coordinates of the end point whether to create a vertical ruled line or a horizontal ruled line. This determination is performed in the same manner as in the first embodiment. The coordinates of the pointed start point and end point are (px1, py1), (px
2, py2).

【0040】ステップ74:横罫線の作成と判断した場
合はステップ75に進み、ここで、px1<px2の場
合を説明する。
Step 74: If it is determined that a horizontal ruled line is to be created, the process proceeds to step 75, where the case where px1 <px2 will be described.

【0041】ステップ75:位置座標補正の処理によっ
て、ポイントされた終点のY座標を補正し、始点のY座
標と等しくする。したがって、補正された終点の座標
は、(px2,py1)となる。
Step 75: The Y coordinate of the pointed end point is corrected to be equal to the Y coordinate of the start point by position coordinate correction processing. Therefore, the coordinates of the corrected end point are (px2, py1).

【0042】ステップ76:近傍罫線検索の処理によっ
て、ポイントされた始点を囲む罫線の内、外側に存在す
る横罫線を、RAM6に管理されている位置座標を検索
して捜し出す。より詳細には、始点(x1,y1)、終
点(x1,y2)を両端に持ち、かつ、y1<py1<
y2かつ、x1(=x2)<px1を満たす横罫線の
内、|px1−x1|が最小となるものが求める横罫線
である。
Step 76: By the neighborhood rule search process, a horizontal rule existing outside the ruled line surrounding the pointed start point is searched by searching the position coordinates managed in the RAM 6. More specifically, it has a start point (x1, y1) and an end point (x1, y2) at both ends, and has y1 <py1 <
Among the horizontal ruled lines satisfying y2 and x1 (= x2) <px1, the one that minimizes | px1-x1 | is the horizontal ruled line to be obtained.

【0043】ステップ77:同様に、近傍罫線検索の処
理によって、補正された終点を囲む罫線の内、外側に存
在する横罫線を、RAM6に管理されている位置座標を
検索して捜し出す。より詳細には、始点(x3,y
3)、終点(x4,y4)を両端に持ち、かつ、y3
(=y1)<py1<y4かつ、px1<x3(=x
4)を満たす縦罫線の内、|x3−px1|が最小とな
るものが求める縦罫線である。
Step 77: Similarly, by the process of searching for a neighboring rule, a horizontal rule existing outside the ruled line surrounding the corrected end point is retrieved by searching the position coordinates managed in the RAM 6. More specifically, the starting point (x3, y
3), having end points (x4, y4) at both ends and y3
(= Y1) <py1 <y4 and px1 <x3 (= x
Among the vertical ruled lines satisfying 4), the one in which | x3-px1 | is the minimum is the required vertical ruled line.

【0044】ステップ78:次に、ポイントされた始点
を含み、かつ、求めた2つの縦罫線と交わる垂線(横罫
線)を求める。詳細には、前記で求めた縦罫線の両端の
座標を始点(x1,y1)、終点(x2,y2)、およ
び、始点(x3,y3)、終点(x4,y4)とする
と、求める垂線(横罫線)の位置座標は、始点(x1,
py1)、終点(x3,py1)となり、位置座標置換
の処理によって置換する。ここで、終点はすでに補正さ
れているので、この垂線は終点側の縦罫線と交わるので
終点側の縦罫線と交わるか調べる処理をする必要はな
い。。
Step 78: Next, a perpendicular line (horizontal rule line) including the pointed starting point and intersecting with the obtained two vertical rule lines is obtained. More specifically, if the coordinates of both ends of the vertical ruled line obtained above are the starting point (x1, y1), the ending point (x2, y2), the starting point (x3, y3), and the ending point (x4, y4), the perpendicular ( The position coordinates of the horizontal ruled line are the starting point (x1,
py1) and the end point (x3, py1), and are replaced by position coordinate replacement processing. Here, since the end point has already been corrected, this perpendicular line intersects the vertical ruled line on the end point side, so that it is not necessary to perform processing to check whether it intersects with the vertical ruled line on the end point side. .

【0045】ステップ79:求めた垂線(横罫線)の始
点(x1,py1)、終点(x3,py1)を罫線表示
の処理によって表示する。ステップ75〜79の処理に
より、所定の横罫線を引くことができる。
Step 79: The starting point (x1, py1) and the ending point (x3, py1) of the obtained perpendicular line (horizontal ruled line) are displayed by ruled line display processing. By the processing of steps 75 to 79, a predetermined horizontal ruled line can be drawn.

【0046】ステップ80〜84の処理により縦罫線の
場合にも、同様にして所定の縦罫線を引くことができ
る。
In the case of a vertical ruled line by the processing of steps 80 to 84, a predetermined vertical ruled line can be similarly drawn.

【0047】[0047]

【発明の効果】予め作成した罫線の枠内で表を作成する
際に、正確に始点と終点の座標を指定しなくても、目的
とする罫線を自動的に効率良く作成することができるの
で、罫線が長い場合でもカーソルを始点から終点に移動
する距離が短くなり操作性が向上する。
According to the present invention, when a table is created within a frame of a ruled line created in advance, a target ruled line can be automatically and efficiently created without specifying coordinates of a start point and an end point accurately. Even when the ruled line is long, the distance for moving the cursor from the start point to the end point is shortened, and the operability is improved.

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

【図1】本発明の基本構成を示すブロック図。FIG. 1 is a block diagram showing a basic configuration of the present invention.

【図2】本発明の他の基本構成を示すブロック図。FIG. 2 is a block diagram showing another basic configuration of the present invention.

【図3】本発明の罫線作成装置をワードプロセッサに適
用した一実施例の構成を示すブロック図。
FIG. 3 is a block diagram showing a configuration of an embodiment in which the ruled line creation device of the present invention is applied to a word processor.

【図4】RAMに管理される罫線管理情報を示す説明
図。
FIG. 4 is an explanatory diagram showing ruled line management information managed in a RAM.

【図5】罫線作成の操作方法について2種類の実施例を
示す説明図。
FIG. 5 is an explanatory diagram showing two types of embodiments of a ruled line creation operation method.

【図6】本発明による実施例1の罫線作成処理を示すフ
ローチャート。
FIG. 6 is a flowchart illustrating ruled line creation processing according to the first embodiment of the present invention.

【図7】図6に続く実施例1の罫線作成処理を示すフロ
ーチャート。
FIG. 7 is a flowchart showing ruled line creation processing according to the first embodiment following FIG. 6;

【図8】本発明による実施例2の罫線作成処理を示すフ
ローチャート。
FIG. 8 is a flowchart illustrating a ruled line creation process according to a second embodiment of the present invention.

【図9】図8に続く実施例2の罫線作成処理を示すフロ
ーチャート。
FIG. 9 is a flowchart illustrating a ruled line creation process according to the second embodiment following FIG. 8;

【図10】従来のマウスによる罫線の作成方法を示す説
明図。
FIG. 10 is an explanatory view showing a conventional method for creating a ruled line using a mouse.

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

1 キーボード 2 マウス 3 CPU 4 ハードディスク(HD) 5 フロッピィーディスク(FD) 6 RAM 7 ディスプレイ 1 Keyboard 2 Mouse 3 CPU 4 Hard Disk (HD) 5 Floppy Disk (FD) 6 RAM 7 Display

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 17/21 - 17/26 G06T 11/60 - 11/80Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 17/21-17/26 G06T 11/60-11/80

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画面上に罫線からなる枠を作成し、その
枠内で格子状の表を作成するとともに文書情報を編集す
ることが可能な文書処理システムの罫線作成装置におい
て、各罫線の位置をX、Y座標値として記憶する座標記
憶手段と、作成された罫線と文書情報を表示する画面を
有する表示手段と、枠および表を作成するための罫線の
始点および終点の位置を指定する指定手段と、指定手段
より指定された始点および終点のX、Y座標値をそれぞ
れ読み取り、始点と終点のX、Y座標値に対応する縦線
分の長さと横線分の長さを算出する算出手段と、算出結
果から縦罫線の作成か横罫線の作成かを判定する際に、
縦線分の長さと横線分の長さを比較して長い線分をその
罫線の方向と判定する判定手段と、判定された罫線の方
向と垂直になる他の罫線で、かつ始点および終点の両外
側に近い罫線の座標値を座標記憶手段から検索する検索
手段と、始点または終点を通りその延長線上に検索され
た両外側の罫線と直交する位置のX、Y座標値を求めそ
の罫線の始点および終点のX、Y座標値として置き換え
座標記憶手段に記憶させるとともに置換したX、Y座標
値に基づいて罫線を表示データに展開し表示手段の画面
に表示する制御手段を備えてなる文書処理システムの罫
線作成装置。
A ruled line creating device of a document processing system capable of creating a frame formed of ruled lines on a screen, creating a grid-like table in the frame, and editing document information. Storage means for storing X and Y coordinate values, display means having a screen for displaying the created ruled lines and document information, and designation for designating the positions of the start and end points of the ruled lines for creating frames and tables Calculating means for reading the X and Y coordinate values of the starting point and the ending point specified by the specifying means and calculating the lengths of the vertical and horizontal line segments corresponding to the X and Y coordinate values of the starting and ending points, respectively When determining whether to create a vertical ruled line or a horizontal ruled line from the calculation result,
Determining means for comparing the length of the vertical line segment with the length of the horizontal line segment to determine the long line segment as the direction of the ruled line; and another ruled line perpendicular to the determined ruled line direction and having the start point and the end point. A search means for searching the coordinate storage means for coordinate values of a ruled line near both sides, and an X, Y coordinate value at a position orthogonal to the both-sided ruled lines passing through the starting point or the end point and being searched on an extension thereof, and obtaining the X and Y coordinate values of the ruled line Document processing comprising control means for storing the X and Y coordinate values of the start point and the end point in the replacement coordinate storage means, and for expanding the ruled lines into display data based on the replaced X and Y coordinate values and displaying the data on the screen of the display means. System for creating ruled lines.
【請求項2】 前記指定手段により罫線の始点および終
点の位置を指定し、前記判定手段により縦罫線の作成か
横罫線の作成かを判定された際に、縦罫線の作成ならば
終点のX座標を始点のX座標と等しく補正し、横罫線の
作成ならば終点のY座標を始点のY座標と等しく補正す
る補正手段をさらに備え、補正手段により罫線の終点の
X、Y座標値を一時的に補正してから検索手段と制御手
段の作動により所定の罫線を作成する請求項1記載の文
書処理システムの罫線作成装置。
2. The method according to claim 1, further comprising the step of specifying the start and end points of the ruled line by the specifying means, and determining whether to create a vertical ruled line or a horizontal ruled line by the determining means. Correction means for correcting the coordinates to be equal to the X coordinate of the start point and, when creating a horizontal ruled line, correcting the Y coordinate of the end point to be equal to the Y coordinate of the start point, temporarily corrects the X and Y coordinate values of the end point of the ruled line by the correction means. 2. The ruled line creation device for a document processing system according to claim 1, wherein a predetermined ruled line is created by operation of the search means and the control means after the correction is made.
JP4204001A 1992-07-30 1992-07-30 Ruled line creation device for document processing system Expired - Fee Related JP2825397B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4204001A JP2825397B2 (en) 1992-07-30 1992-07-30 Ruled line creation device for document processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4204001A JP2825397B2 (en) 1992-07-30 1992-07-30 Ruled line creation device for document processing system

Publications (2)

Publication Number Publication Date
JPH0652159A JPH0652159A (en) 1994-02-25
JP2825397B2 true JP2825397B2 (en) 1998-11-18

Family

ID=16483136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4204001A Expired - Fee Related JP2825397B2 (en) 1992-07-30 1992-07-30 Ruled line creation device for document processing system

Country Status (1)

Country Link
JP (1) JP2825397B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113592840B (en) * 2021-08-06 2025-03-28 中船发动机有限公司 A method and system for detecting the protruding length of fasteners in drawings

Also Published As

Publication number Publication date
JPH0652159A (en) 1994-02-25

Similar Documents

Publication Publication Date Title
JP2559792B2 (en) CAD sketch input drawing method
JPH05282099A (en) Target specification method
JP2825397B2 (en) Ruled line creation device for document processing system
JP2908002B2 (en) Drawing apparatus having auxiliary line display function, and drawing method using the drawing apparatus
JP2977360B2 (en) Ruled line selection method
JPH06168278A (en) Facility data retrieving device
JPH0731671B2 (en) Formula input editing method
JP2727819B2 (en) CAD / CAM equipment
JP3483977B2 (en) Cursor navigation device for graphic processing device
JP3058630B2 (en) Graphic processing unit
JP2671598B2 (en) Document processing device
JP3345142B2 (en) Document processing device with ruled line display function
JP2753226B2 (en) Drawing management method and apparatus
JPH08235377A (en) Figure input device
JP2593975B2 (en) Character string extraction method and character string extraction device in electronic typesetting device
JPH01194063A (en) Document file contents forming system
JPH08123653A (en) Word processor equipment
JP2003296373A (en) Cad program for disaster prevention facility
JP2645174B2 (en) Computer with field display function
JP2753227B2 (en) Drawing management method and apparatus
JPH0682360B2 (en) Document creation device
JP2020144453A (en) Image editing device and image editing method
JPS59177593A (en) Detection of display graphic
JPS6320681A (en) Tabulating and processing system
JPH0785125A (en) Drawing drawing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080911

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20080911

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090911

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090911

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100911

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees