JPH0520313A - Ruled line drawing mechanism - Google Patents

Ruled line drawing mechanism

Info

Publication number
JPH0520313A
JPH0520313A JP3171492A JP17149291A JPH0520313A JP H0520313 A JPH0520313 A JP H0520313A JP 3171492 A JP3171492 A JP 3171492A JP 17149291 A JP17149291 A JP 17149291A JP H0520313 A JPH0520313 A JP H0520313A
Authority
JP
Japan
Prior art keywords
points
ruled line
rectangle
coordinates
designated
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
JP3171492A
Other languages
Japanese (ja)
Inventor
Toru Nishikawa
徹 西川
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3171492A priority Critical patent/JPH0520313A/en
Publication of JPH0520313A publication Critical patent/JPH0520313A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To easily draw a delimiter line in the middle between stages by designating two points out of four corners between stages. CONSTITUTION:When an icon on a display device 2a is used to designate a longitudinal direction or a transverse direction in which a ruled line is drawn and the coordinates of two points are designated by a mouse 2d, the length of the major side and that of the minor side of a rectangle having these points as two points on a diagonal line are calculated, and the coordinates of middle points of major and minor sides are calculated, and the rules line is so drawn that it passes through middle points of the major sides or minor sides in accordance with the designated direction.

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 drawing mechanism, and more particularly to a ruled line drawing mechanism for a dividing line drawn in the center between paragraphs (hereinafter referred to as a space) of sentences of a Japanese word processor.

【0002】[0002]

【従来の技術】従来この種の日本語ワードプロセッサの
罫線引き機構は、オペレータが段間の中央を目算で指定
し、その指定に応じて段間に区切り用の罫線を引くよう
になっていた。
2. Description of the Related Art Conventionally, in the ruled line drawing mechanism of this type of Japanese word processor, an operator designates the center of a column by calculation and draws a ruled line for dividing between columns according to the designation.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の罫線引
き機構では段間の中央をオペレータが目算で指定するの
で、罫線を引くのに手間がかかるという問題点があり、
さらに目算のため罫線が中央からずれて引かれる場合が
あるという欠点がある。
In the above-described conventional ruled line drawing mechanism, since the operator specifies the center of the step by calculation, there is a problem that it takes time to draw the ruled line.
Furthermore, there is a drawback that the ruled line may be drawn off the center due to the calculation.

【0004】[0004]

【課題を解決するための手段】本発明の罫線引き機構
は、罫線を縦方向に引くか横方向に引くかを指定する第
1の手段と、段間の四隅のうち2点を指定する第2の手
段と、第2の手段によって指定された2点の座標を長方
形の対角線上の2点とみなして長方形の横方向の辺と縦
方向の辺との長さを計算する手段と、長方形の辺の長さ
の中間点の座標を計算する手段と、第1の手段による指
定が縦方向のときは長方形の横方向の辺の中間点どうし
を指定が横方向のときは長方形の縦方向の辺の中間点ど
うしをそれぞれ通るように罫線を引く手段とを有する。
The ruled line drawing mechanism of the present invention includes a first means for specifying whether to draw a ruled line in a vertical direction or a horizontal direction, and a second means for specifying two points among four corners between steps. 2 means, means for calculating the lengths of the horizontal side and the vertical side of the rectangle by regarding the coordinates of the two points designated by the second means as two points on the diagonal of the rectangle, and the rectangle Means for calculating the coordinates of the midpoint of the side length of the rectangle, and when the designation by the first means is the vertical direction, the midpoint of the sides of the rectangle in the horizontal direction is specified. And a means for drawing a ruled line so as to pass through the midpoints of the sides.

【0005】[0005]

【実施例】次に本発明をその実施例について図面を用い
て説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the accompanying drawings.

【0006】図1を参照すると、本発明の実施例は表示
装置2aと、日本語ワードプロセッサ本体2bと、キー
ボード2cと、ポインティングデバイス(以下マウスと
呼ぶ)2dとを有している。
Referring to FIG. 1, the embodiment of the present invention includes a display device 2a, a Japanese word processor body 2b, a keyboard 2c, and a pointing device (hereinafter referred to as a mouse) 2d.

【0007】図4(A)は段間のある段組の例図であ
る。段間は例図の場合に点3a−点3b間の線と点3c
−点3d間の線との間を意味する。段間の区切り線すな
わち罫線は3aと3bとの中間点を始点とし、3cと3
dの中間点を終点とする。この中間点を指定するのに操
作者が目算で行うのでは時間もかかりずれが生じる場合
がある。
FIG. 4A shows an example of a column set having columns. In the case of the example, the space between steps is the line between point 3a and point 3b and point 3c.
-Means between the line between the points 3d. The dividing line between the steps, that is, the ruled line, starts from the midpoint between 3a and 3b, and 3c
The midpoint of d is set as the end point. If the operator uses a calculation to specify the intermediate point, it may take time and a deviation may occur.

【0008】図2は本実施例の罫線引き機構において表
示装置2aに表示されるアイコンを含む表示画面の図で
ある。アイコン4aは縦方向、アイコン4bは横方向に
それぞれ罫線を引くことを示している。
FIG. 2 is a view of a display screen including icons displayed on the display device 2a in the ruled line drawing mechanism of this embodiment. The icon 4a indicates that the ruled line is drawn in the vertical direction, and the icon 4b indicates that the ruled line is drawn in the horizontal direction.

【0009】次に図4(B)のような段組に罫線を引く
場合を例として、図1の実施例の動作を図3をも参照し
て説明する。
Next, the operation of the embodiment shown in FIG. 1 will be described with reference to FIG. 3 as an example in which a ruled line is drawn on a column as shown in FIG. 4B.

【0010】まず、図4(B)における段間の罫線は縦
方向なので図2のアイコン4aを図1のマウス2dで指
定する。そして図2および図4(B)に示すように段間
の左上5aを始点、段間の右下5bを終点としてマウス
2dで指定する。これに応じて本体2b内でステップs
1において4aもしくは4bのアイコンが指定されたか
どうかを判断する。アイコンが指定された場合ステップ
s2でマウス2dが指定した2点の座標を受け取り、計
算手段がステップs3で計算によってそれを対角線上の
2点と見なす長方形の4点の座標を得る。ステップs4
において罫線を縦方向に引くか横方向に引くかを判断し
縦方向の場合はステップs5で長方形の4点のうち上2
点、下2点の中間点のそれぞれの座標を計算する。すな
わち横方向中間座標が計算される。また横方向の場合に
はステップs6で長方形4点のうち左2点、右2点の中
間点のそれぞれの座標を計算する。すなわち縦方向中間
座標が計算される。そしてステップs7で罫線描画手段
によってそれぞれの中間点を罫線で結ぶ。この結果、図
4(c)に示すように段間の中心を結んで縦方向に罫線
6aが引かれる。
First, since the ruled line between columns in FIG. 4B is in the vertical direction, the icon 4a in FIG. 2 is designated by the mouse 2d in FIG. Then, as shown in FIGS. 2 and 4B, the upper left 5a between the steps is designated as the starting point, and the lower right 5b between the steps is designated as the end point, and the mouse 2d is designated. Accordingly, in the main body 2b, step s
It is determined whether or not the icon of 4a or 4b is designated in 1. When the icon is designated, the coordinates of the two points designated by the mouse 2d are received in step s2, and the calculation means obtains the coordinates of the four points of the rectangle which are regarded as two diagonal points by calculation in step s3. Step s4
It is determined whether to draw the ruled line in the vertical direction or in the horizontal direction in step S2.
The coordinates of the middle point of the two points and the lower two points are calculated. That is, the lateral intermediate coordinates are calculated. In the case of the horizontal direction, in step s6, the coordinates of the middle points of the two points on the left and the two points on the right of the four points of the rectangle are calculated. That is, the vertical intermediate coordinates are calculated. Then, in step s7, the intermediate points are connected by ruled lines by the ruled line drawing means. As a result, as shown in FIG. 4C, the ruled line 6a is drawn in the vertical direction connecting the centers of the steps.

【0011】なお、アイコン指定にもとずいてそれに対
応する長方形の長辺および短辺のいずれか一方のみを計
算しその中間点を計算するようにしてもよいし、長辺お
よび短辺の両方ならびに両者の中間点をすべて計算しア
イコン指定にもとずいて計算結果から選択するようにし
てもよい。
It is also possible to calculate only one of the long side and the short side of the corresponding rectangle based on the icon designation and calculate the midpoint thereof, or both the long side and the short side. Alternatively, all intermediate points between the two may be calculated and selected from the calculation results based on the icon designation.

【0012】[0012]

【発明の効果】以上説明したように本発明は、段間の区
切り線を引くのに段間の四隅のうち2点を指定するだけ
でその段間の中間に簡単に区切り線を引くことができる
という効果がある。
As described above, according to the present invention, it is possible to easily draw a dividing line in the middle of the steps by only designating two points among the four corners of the steps to draw the dividing lines between the steps. There is an effect that can be done.

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

【図1】本発明の一実施例のブロック図。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】本発明の一実施例による罫線引き機能を示すア
イコンを含む表示装置の画面の図。
FIG. 2 is a diagram of a screen of a display device including an icon indicating a ruled line drawing function according to an embodiment of the present invention.

【図3】図1の一実施例の動作を示す流れ図。FIG. 3 is a flowchart showing the operation of the embodiment of FIG.

【図4】段間のある段組の図で(A)は段間の説明図、
(B)は本発明の一実施例を示す図、(C)は段間に区
切り線を引いた後の図。
FIG. 4 is a diagram of a column set having columns (A) is an explanatory diagram of columns;
(B) is a figure which shows one Example of this invention, (C) is a figure after drawing the dividing line between steps.

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

2a 表示装置 2b 日本語ワードプロセッサ本体 2c キーボード 2d ポインティングデバイス 3a〜3d 段間基準点 4a,4b アイコン 5a,5b 段間指定点 6a 罫線 2a display device 2b Japanese word processor body 2c keyboard 2d pointing device 3a to 3d inter-stage reference point 4a, 4b icon 5a, 5b inter-stage designated point 6a ruled line

Claims (1)

【特許請求の範囲】 【請求項1】 罫線を縦方向に引くか横方向に引くかを
指定する第1の手段と、段間の四隅のうち2点を指定す
る第2の手段と、前記第2の手段によって指定された前
記2点の座標を長方形の対角線上の2点とみなして前記
長方形の横方向の辺と縦方向の辺との長さを計算する手
段と、前記長方形の辺の長さの中間点の座標を計算する
手段と、前記第1の手段による指定が縦方向のときは前
記長方形の前記横方向の辺の中間点どうしを指定が横方
向のときは前記長方形の前記縦方向の辺の中間点どうし
をそれぞれ通るように罫線を引く手段とを有することを
特徴とする罫線引き機構。
Claim: What is claimed is: 1. A first means for designating whether to draw a ruled line in a vertical direction or a horizontal direction, a second means for designating two points out of four corners between steps, and A means for calculating the lengths of the horizontal side and the vertical side of the rectangle by regarding the coordinates of the two points designated by the second means as two points on the diagonal of the rectangle, and the side of the rectangle. Means for calculating the coordinates of the midpoint of the length of the rectangle, and when the designation by the first means is the vertical direction, the midpoints of the horizontal sides of the rectangle are designated. A ruled line drawing mechanism having means for drawing a ruled line so as to pass through the midpoints of the sides in the vertical direction.
JP3171492A 1991-07-12 1991-07-12 Ruled line drawing mechanism Pending JPH0520313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3171492A JPH0520313A (en) 1991-07-12 1991-07-12 Ruled line drawing mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3171492A JPH0520313A (en) 1991-07-12 1991-07-12 Ruled line drawing mechanism

Publications (1)

Publication Number Publication Date
JPH0520313A true JPH0520313A (en) 1993-01-29

Family

ID=15924103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3171492A Pending JPH0520313A (en) 1991-07-12 1991-07-12 Ruled line drawing mechanism

Country Status (1)

Country Link
JP (1) JPH0520313A (en)

Similar Documents

Publication Publication Date Title
JPH0520313A (en) Ruled line drawing mechanism
JPS6098489A (en) Image data processor
JPH0785132A (en) Graphic processor
JPS607482A (en) Image editing apparatus
JP2669366B2 (en) Line-symmetric figure input device
JPS6177088A (en) Image data processor
JP2830550B2 (en) Integrated circuit layout design equipment
JP3100218B2 (en) Output data item separation method
JP2985324B2 (en) Table support device
JPS6077284A (en) Input device of graphic
JP2825397B2 (en) Ruled line creation device for document processing system
JP2650804B2 (en) Scale value display processing method for extended polygon graph
JPS636855A (en) Analysis method for integrated-circuit mask pattern
JPH04252382A (en) Graphic drawing system
JPH06103493A (en) On-vehicle navigation system and display method therefor
JPH0573689A (en) Line segment plotting device
JPH02294719A (en) Oblique cursor key system
JPS613280A (en) Cad device
JPH05242088A (en) Method for displaying picture
JPH05274410A (en) Image area indicating device
JPH05120360A (en) Method for preparing dimension line in drawing device
JPH04326171A (en) Layout data editor
JPH0291690A (en) Enlargement/reduction display system
JPH05119762A (en) Text input system
JP2000242803A (en) Image processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20081102

Year of fee payment: 7

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

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20091102

LAPS Cancellation because of no payment of annual fees