JPH03232060A - Documentation device - Google Patents

Documentation device

Info

Publication number
JPH03232060A
JPH03232060A JP2030183A JP3018390A JPH03232060A JP H03232060 A JPH03232060 A JP H03232060A JP 2030183 A JP2030183 A JP 2030183A JP 3018390 A JP3018390 A JP 3018390A JP H03232060 A JPH03232060 A JP H03232060A
Authority
JP
Japan
Prior art keywords
line
rule
buffer
ruled
ruled 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.)
Pending
Application number
JP2030183A
Other languages
Japanese (ja)
Inventor
Tsutomu Tanaka
努 田中
Masanori Ito
昌典 伊藤
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2030183A priority Critical patent/JPH03232060A/en
Publication of JPH03232060A publication Critical patent/JPH03232060A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify table generation procedures by only designating the generation area of a table and the start point of a rule to judge a horizontal or vertical rule, and generating the horizontal or vertical rule from the designated start point thereafter. CONSTITUTION:When the start point of a rule is designated and this start point X is on a line XS or XE, a rule to be drawn is decided as a horizontal rule. A rule generating part 11 generates the horizontal rule of a designated line classification in the position of a work buffer 11 corresponding to the part from the position of the line XS to that of the line XE of the row read out to a one-row buffer 9. When the start point X is not on the line XS neither XE, the rule to be drawn is decided as a vertical rule, and a variable SL is set to a row counter variable ML. A one-row read part 7 reads out the row designated by ML in a text buffer 5 to the one-row buffer 9, and the vertical rule of the designated line classification is generated in the position of a work buffer 12 corresponding to a cursor position X of this read-out row. Thus, the table is easily generated.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は5文書内の所定領域に所定線種の罫線を縦横に
描いて表を作成する文書作成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a document creation device that creates a table by drawing ruled lines of a predetermined line type vertically and horizontally in a predetermined area within five documents.

(従来の技術及び発明が解決しようとする課題)従来の
ワードプロセッサ等の文書作成装置で表を作成する場合
5カーソルキーを始点から終点まで押して罫線を1本ず
つ描かなければならず、表の作成作業が繁雑であるとい
う問題があった。
(Prior art and problem to be solved by the invention) When creating a table using a document creation device such as a conventional word processor, it is necessary to press the 5 cursor key from the start point to the end point to draw ruled lines one by one. There was a problem that the work was complicated.

本発明はこのような問題点を解決するなめになされたも
のであって、表の作成領域、罫線の始点を指定するのみ
で、指定された始点から作成領域内に描く構成とするこ
とにより、表作成が容易であって操作性が高い文書作成
装置の提供を目的とする。
The present invention has been made to solve these problems, and by simply specifying the table creation area and the starting point of the ruled line, the table can be drawn from the specified starting point within the creation area. The purpose of the present invention is to provide a document creation device that facilitates table creation and has high operability.

さらには、罫線の作成領域内に文字が存在した場合は、
罫線の作成によるその文字と罫線の重なり若しくはその
文字の消去を防止し得る文書作成装置の提供を目的とす
る。
Furthermore, if there are characters within the border creation area,
It is an object of the present invention to provide a document creation device that can prevent characters from overlapping with ruled lines or from being erased due to the creation of ruled lines.

(課題を解決するための手段) 本発明の文書作成装置は、文書内の所定領域に罫線を縦
横に描いて表を作成する文書作成装置において、表の作
成領域を指定する手段と、罫線の始点を指定する手段と
、指定した始点の位置に基づき、描くべき罫線が縦罫線
か横罫線かを判定する手段と作成領域、罫線の始点を指
定したあとで、該始点から縦罫線又は横罫線を前記作成
領域内に描く手段とを備える。
(Means for Solving the Problems) A document creation device of the present invention is a document creation device that creates a table by drawing ruled lines vertically and horizontally in a predetermined area within a document. A means for specifying a starting point, a means for determining whether a ruled line to be drawn is a vertical ruled line or a horizontal ruled line based on the position of the specified starting point, a creation area, and after specifying the starting point of a ruled line, a vertical ruled line or a horizontal ruled line from the specified starting point and means for drawing within the creation area.

さらには、前記縦罫線又は横罫線を作成領域内に描く手
段は、罫線作成中に、その作成領域内に文字が存在する
場合は、その文字の位置には罫線を描くことなく処理す
る。
Furthermore, the means for drawing vertical ruled lines or horizontal ruled lines within the creation area does not draw a ruled line at the position of the character when a character is present within the creation area during ruled line creation.

(作 用) 本発明の文書作成装置は、表の作成領域を指定し、罫線
の始点を指定したあとで、描くべき罫線が横罫線か縦罫
線かを指定した始点に基づいて判定し、指定した始点か
ら表の作成領域に横罫線又は縦罫線を描く。
(Function) The document creation device of the present invention specifies the table creation area and the starting point of the ruled line, and then determines whether the ruled line to be drawn is a horizontal ruled line or a vertical ruled line based on the specified starting point, and specifies the specified starting point. Draw horizontal or vertical ruled lines in the table creation area from the starting point.

さらには、罫線の作成領域に文字が存在する場合、その
文字の位置に罫線を描くことはない。
Furthermore, if a character exists in the ruled line creation area, no ruled line is drawn at the position of the character.

(実施例) 以下、本発明をその実施例を示す図面に基づき説明する
(Example) Hereinafter, the present invention will be described based on drawings showing examples thereof.

第1図は本発明の文書作成装置の一実施例構成を示すブ
ロック図である。図中1は自動罫線の作成を指示するキ
ー、罫線の始点を指示すべくカーソルを表枠上で移動さ
せるカーソルキー、線種(細線、太線、点線等)を指定
するキー、処理の終了キー等を備えたキーボードであっ
て、キーボード1から入力された指令は制御部4に入力
される。制御部4は入力された指令に従って装置各部の
データ授受を制御する。行カウンタ2は文書の行数をカ
ウントし、カーソルカウンタ3は1行内の文字数をカウ
ントする。
FIG. 1 is a block diagram showing the configuration of an embodiment of the document creation device of the present invention. 1 in the figure is a key to instruct automatic ruled line creation, a cursor key to move the cursor on the table frame to indicate the starting point of the ruled line, a key to specify the line type (thin line, thick line, dotted line, etc.), and a key to end the process. Commands input from the keyboard 1 are input to the control unit 4. The control unit 4 controls data exchange between each part of the device according to input commands. A line counter 2 counts the number of lines in a document, and a cursor counter 3 counts the number of characters in one line.

テキストバッファ5は文書を記憶し、表枠判定部6は表
枠が完全であるか否かを判定する。1行データ読み出し
部7は1行分の文書データをテキストバッファ5から読
み出して1行バッファ9に格納する。文字判定部10は
1行バッファ9に格納された1行分の文書データ中の罫
線を生成する位置に文字(記号も含む)が存在するか否
かを判定する。罫線生成部11は1行バッファ9に格納
された行に描くべき指定線種の罫線データを作業バッフ
ァ12に生成する。この時、文字判定部11により判定
された文字の存在する位置には罫線は生成されない。作
業バッファ12に生成したデータは1行バッファ9に書
き込まれ、1行データ書き込み部8は1行バッファ9に
書き込まれたデータをテキストバッファ5に書き込む。
The text buffer 5 stores the document, and the table frame determination unit 6 determines whether the table frame is complete. The one-line data reading unit 7 reads one line of document data from the text buffer 5 and stores it in the one-line buffer 9. The character determination unit 10 determines whether or not a character (including a symbol) exists in one line of document data stored in the one-line buffer 9 at a position where a ruled line is to be generated. The ruled line generation unit 11 generates in the work buffer 12 ruled line data of a specified line type to be drawn on a line stored in the one-line buffer 9. At this time, no ruled line is generated at the position where the character determined by the character determination unit 11 exists. The data generated in the work buffer 12 is written to the one-line buffer 9, and the one-line data writing section 8 writes the data written to the one-line buffer 9 to the text buffer 5.

CRT等からなる表示部13はテキストバッファ5に書
き込まれたデータを表示する。
A display unit 13 made of a CRT or the like displays data written in the text buffer 5.

以上のような構成の文書作成装置が表枠内に縦罫線又は
横罫線を生成する手順を第2図に示すフローチャートに
基づいて説明する。
The procedure by which the document creation device configured as described above generates vertical ruled lines or horizontal ruled lines within a table frame will be explained based on the flowchart shown in FIG. 2.

まず、自動罫線指示キーが押されたかどうかを判定する
。キーが押されていた場合、カーソルの位置が移動可能
な罫線上に存在するか否かを判定する。カーソルが移動
可能な罫線上に存在する場合、カーソル位置を変数Xに
セットし、指定した表枠の左端の位置を変数XSに、右
端の位置を変数XEにセットする。表枠判定部6はXS
−XEの間が完全な表枠であるか否かを判定する。表枠
が完全である場合、その表枠の最下行を変数SLに、表
枠の最下行を変数ELにセットする。
First, it is determined whether the automatic ruled line instruction key has been pressed. If a key has been pressed, it is determined whether the cursor position is on a movable ruled line. If the cursor is on a movable ruled line, the cursor position is set to variable X, the left end position of the specified table frame is set to variable XS, and the right end position is set to variable XE. Table frame determination section 6 is XS
- Determine whether or not the space between XE is a complete table frame. If the table frame is complete, the bottom row of the table frame is set to variable SL, and the bottom row of the table frame is set to variable EL.

次に、カーソルキーにより罫線の始点が指定される。カ
ーソルキーは表枠上においてのみカーソルを移動でき、
左右キーによって半角1字左右に、上下キーによって1
行上下に移動し、カーソル位置の変数Xは、左キーの入
力によって“1”ずつマイナス5右キーの入力によって
1”ずつプラスされ、上下キーの入力によっては値が変
化しない。
Next, the starting point of the ruled line is specified using the cursor keys. The cursor keys can only move the cursor on the table frame.
Use the left and right keys to move one half-width character left and right, and the up and down keys to move one character left and right.
The line moves up and down, and the variable X at the cursor position is incremented by ``1'' by input with the left key, 5 by 1 by input with the right key, and the value does not change by input with the up and down keys.

罫線の始点が指定されると、その始点XがXS又はXE
の値と等しい場合、描くべき罫線を横罫線と判定する。
When the starting point of a ruled line is specified, the starting point
If it is equal to the value of , the ruled line to be drawn is determined to be a horizontal ruled line.

1行データ読み出し部7はカーソルのある行をテキスト
バッファ5から1行バッファ9に読み出す。罫線生成部
11は、1行バッファ9に読み出した行のXSの位置か
らXEの位置までの間に相当する作業バッファ11の位
置に、指定された線種で横罫線を生成する。この時、文
字判定部10が、XSの位置がらXEの位置までの間に
文字が存在することを判定すると、その文字の位置には
横罫線は生成されない。作業バッファ12に生成された
横罫線は1行バッファ9に書き込まれ、1行データ書き
込み部8は1行バッファ9の内容をテキストバッファ5
に書き込む。表示部13はMLが指定するテキストバッ
ファ5内の行を表示する。
The one-line data reading unit 7 reads the line where the cursor is located from the text buffer 5 to the one-line buffer 9. The ruled line generation unit 11 generates a horizontal ruled line in the specified line type at a position in the work buffer 11 corresponding to the position between the XS position and the XE position of the line read into the one-line buffer 9. At this time, if the character determination unit 10 determines that a character exists between the position XS and the position XE, no horizontal ruled line is generated at the position of that character. The horizontal ruled lines generated in the work buffer 12 are written to the one-line buffer 9, and the one-line data writing section 8 writes the contents of the one-line buffer 9 to the text buffer 5.
write to. The display unit 13 displays the line in the text buffer 5 specified by the ML.

また、始点XがXS又はXEの値と等しくない場合、描
くべき罫線を縦罫線と判定して変数SLを行カウンタ変
数MLにセットする。1行データ読み出し部7はMLが
指定するテキストバッファ5の行を1行バッファ9に読
み出す。1行バッファ9に読み出した行のカーソル位置
Xに相当する作業バッフアコ2の位置に指定線種で縦罫
線を生成する。この時2文字判定部10がカーソル位置
Xに文字が存在することを判定すると、その位置に相当
する作業バッファ12の位置には縦罫線は生成されない
。作業バッファ12に生成された罫線は1行バッファ9
に書き込まれ、1行データ書き込み部8は1行バッファ
9の内容をテキストバッファ5に書き込む。表示部13
はMLが指定するテキストバッファ5内の行を表示する
Furthermore, if the starting point X is not equal to the value of XS or XE, the ruled line to be drawn is determined to be a vertical ruled line, and the variable SL is set to the line counter variable ML. The one-line data reading unit 7 reads the line of the text buffer 5 specified by ML into the one-line buffer 9. A vertical ruled line is generated with the specified line type at the position of the work buffer icon 2 corresponding to the cursor position X of the line read into the one-line buffer 9. At this time, if the two-character determining unit 10 determines that a character exists at the cursor position X, no vertical ruled line is generated at the position in the work buffer 12 corresponding to that position. The ruled lines generated in the work buffer 12 are in the one-line buffer 9
The one-line data writing section 8 writes the contents of the one-line buffer 9 into the text buffer 5. Display section 13
displays the line in the text buffer 5 specified by ML.

さらに、行カウンタ変数MLに1″をプラスし、上述の
処理をMLがELを超えるまで繰り返し、縦罫線が描か
れる。
Furthermore, 1'' is added to the line counter variable ML, and the above-described process is repeated until ML exceeds EL, and vertical ruled lines are drawn.

第3図及び第4図はそれぞれ横罫線及び縦罫線生成の手
順を示す画面表示例であって、第3図(a)及び第4図
(a)に示すように表枠上の1点をカーソルで指定し、
第3図(b)及び第4図(b)に示すように罫線の始点
をカーソルで指定し、線種キーを押すと、第3図(C)
及び第4図(()に示す1よっに指定した始点から指定
した線種で横罫線及び縦罫線が描かれる。尚。罫線を生
成する位置に文字が存在する場合には第4図fc)に示
す如く、文字の存在する位置には罫線は生成されること
なく罫線の生成が行われる。
3 and 4 are screen display examples showing the procedure for generating horizontal ruled lines and vertical ruled lines, respectively, in which one point on the table frame is Specify with the cursor,
As shown in Figures 3(b) and 4(b), specify the starting point of the ruled line with the cursor and press the line type key.
and Fig. 4 (horizontal ruled lines and vertical ruled lines are drawn with the specified line type from the starting point specified by 1 shown in (). Note that if there is a character at the position where the ruled line is generated, Fig. 4 fc) As shown in the figure, a ruled line is generated without generating a ruled line at a position where a character exists.

(発明の効果) 本発明の文書作成装置は、表の作成領域、罫線の始点を
指定するのみで、横罫線か縦罫線かを判断した後、指定
した始点から横罫線又は縦罫線を生成する構成であるの
で、表の作成手順が簡便であって装置の操作性が高いと
いう優れた効果を奏する。
(Effects of the Invention) The document creation device of the present invention merely specifies the table creation area and the starting point of the ruled line, determines whether it is a horizontal ruled line or a vertical ruled line, and then generates a horizontal ruled line or a vertical ruled line from the specified starting point. Because of this configuration, the table creation procedure is simple and the device has excellent operability.

さらには、罫線の生成位置に文字が存在する場合には、
その位置には罫線は生成されないので、表内の文書を破
壊することなく表の作成を行うことができるという優れ
た効果を奏する。
Furthermore, if there are characters at the generation position of the ruled line,
Since no ruled lines are generated at that position, the table can be created without destroying the documents in the table, which is an excellent effect.

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

第1図乃至第4図はいずれも本発明の文書作成装置を示
す図であり、第1図は文書作成装置の構成を示すブロッ
ク図、第2図は罫線生成の手順を示すフローチャート、
第3図及び第4図は罫線生成の手順を示す画面表示例で
ある。 1・・・キーボード、2・・・行カウンタ、3・・カー
ソルカウンタ、4・・制御部、5・・・テキストバッフ
ァ、6・・・表枠判定部、7・・・1行データ読み出し
部、8・・・1行データ書き込み部、9・・・1行バッ
ファ、10・・・文字判定部、11・・・罫線生成部、
12・・・作業バッファ、13・・・表示部。 第2図A 第3図 (C)
1 to 4 are diagrams showing a document creation device of the present invention, in which FIG. 1 is a block diagram showing the configuration of the document creation device, FIG. 2 is a flowchart showing the procedure for generating ruled lines,
FIGS. 3 and 4 are screen display examples showing the procedure for generating ruled lines. 1...Keyboard, 2...Line counter, 3...Cursor counter, 4...Control unit, 5...Text buffer, 6...Table frame determination unit, 7...1 line data reading unit , 8... 1-line data writing unit, 9... 1-line buffer, 10... Character determination unit, 11... Ruled line generation unit,
12...Work buffer, 13...Display section. Figure 2A Figure 3(C)

Claims (1)

【特許請求の範囲】 1、文書内の所定領域に罫線を縦横に描いて表を作成す
る文書作成装置において、 表の作成領域を指定する手段と、 罫線の始点を指定する手段と、 指定した始点の位置に基づき、描くべき罫線が縦罫線か
横罫線かを判定する手段と、 作成領域、罫線の始点を指定したあとで、該始点から、
縦罫線又は横罫線を前記作成領域内に描く手段とを備え
たことを特徴とする文書作成装置。 2、前記縦罫線又は横罫線を指定した作成領域内に描く
手段は、罫線作成中に、その作成領域内に文字が存在す
る場合は、その文字の位置には罫線を描くことなく処理
することを特徴とする請求項第1項記載の文書作成装置
[Scope of Claims] 1. A document creation device that creates a table by drawing ruled lines vertically and horizontally in a predetermined area within a document, comprising: means for specifying a table creation area; means for specifying a starting point of the ruled line; A method for determining whether a ruled line to be drawn is a vertical ruled line or a horizontal ruled line based on the position of the starting point, and after specifying the creation area and the starting point of the ruled line, starting from the starting point,
A document creation device comprising means for drawing vertical ruled lines or horizontal ruled lines within the creation area. 2. The means for drawing vertical ruled lines or horizontal ruled lines in a specified creation area is such that if a character exists in the creation area during ruled line creation, the process is performed without drawing a ruled line at the position of the character. The document creation device according to claim 1, characterized in that:
JP2030183A 1989-11-20 1990-02-09 Documentation device Pending JPH03232060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2030183A JPH03232060A (en) 1989-11-20 1990-02-09 Documentation device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP1-302508 1989-11-20
JP30250889 1989-11-20
JP2030183A JPH03232060A (en) 1989-11-20 1990-02-09 Documentation device

Publications (1)

Publication Number Publication Date
JPH03232060A true JPH03232060A (en) 1991-10-16

Family

ID=26368491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2030183A Pending JPH03232060A (en) 1989-11-20 1990-02-09 Documentation device

Country Status (1)

Country Link
JP (1) JPH03232060A (en)

Similar Documents

Publication Publication Date Title
JP2972510B2 (en) Document creation device
JPH0541997B2 (en)
JPS6290758A (en) Information processor
JPS644189B2 (en)
JP3268029B2 (en) Handwriting input device
JPH03232060A (en) Documentation device
JPH05150926A (en) Information processor
JPH0546349A (en) Information processor
JP2685762B2 (en) Compound document creating apparatus and compound document creating method
JPH0542516Y2 (en)
JP2706010B2 (en) Information processing device
JPH03189724A (en) Document processor
JPH03287195A (en) Portable information processor
JP2787021B2 (en) Document editing device
JPH04118767A (en) Document preparing device
JPH01216465A (en) Document preparing device
JPS6210765A (en) Documentation device
JPS63191221A (en) Dividing system for display picture of computer system
JPH04367065A (en) Display system
JPH07141344A (en) Document display method
JPS62229316A (en) Character processor
JPS6343472A (en) Displaying method in image display device
JPH0362170A (en) Comment input method in cad system
JPH1021040A (en) Method and device for document display by screen division
JPH0212365A (en) Word processor