JPH03137764A - Document creation method and document processing device - Google Patents
Document creation method and document processing deviceInfo
- Publication number
- JPH03137764A JPH03137764A JP1275023A JP27502389A JPH03137764A JP H03137764 A JPH03137764 A JP H03137764A JP 1275023 A JP1275023 A JP 1275023A JP 27502389 A JP27502389 A JP 27502389A JP H03137764 A JPH03137764 A JP H03137764A
- Authority
- JP
- Japan
- Prior art keywords
- data
- frame
- editing
- document
- processing
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
【発明の詳細な説明】 [産業上の利用分野コ 本発明は文書処理装置、特に文字(文意)。[Detailed description of the invention] [Industrial application fields] The present invention relates to a document processing device, particularly to characters (text).
図形、イメージ等により文書データの組版をする文書処
理装置に関するものである。The present invention relates to a document processing device that formats document data using figures, images, etc.
尚、「組版」とは元来活版印刷の1行程を表す言葉であ
り、「原稿に基づいて活字を拾い、原稿の指定に基づて
い順序1字詰め9行数1字間。The word ``composition'' originally refers to one process of letterpress printing, and it refers to ``picking up type based on the manuscript, and placing it in the order of one character, nine lines, and one character apart, based on the specifications of the manuscript.
行間1位M等を正しく組み上げ、バランスのとれた1つ
の文書を作り上げる」ことを意味するものであるが、本
発明ではこれらの処理を電子的に行うことを意味する。This means "to properly assemble the line spacing (M), etc., and create a well-balanced document", but in the present invention, it means to perform these processes electronically.
[従来の技術]
従来のワードプロセッサ(以下ワープロ)では、文書中
に縦線1横線等で罫引きされた表を描く場合に罫線素片
をつなぎあわせて行い、地図やイラストレーション等の
図形データ、写真等のイメージデータを張り込む場合は
、枠の素片を示すブロックマークで閉じた矩形枠(以下
ブロックとも言う)を描き、そのブロックの中にイメー
ジや図形といった枠の属性と、枠とは別に作成して用意
されたデータとの対応をとるために設けられた名前等の
識別子とをセットし、印刷時に枠内にイメージや図形を
張り込むという方法をとっていた。[Prior Art] In conventional word processors (hereinafter referred to as word processors), when drawing a table in a document that is ruled by one vertical line, one horizontal line, etc., it is done by connecting ruled line segments, and it is used to draw graphical data such as maps and illustrations, photographs, etc. When pasting image data such as, draw a rectangular frame (hereinafter also referred to as a block) closed with block marks indicating the frame pieces, and in that block, write the attributes of the frame such as images and shapes, and separate from the frame. A method was used in which an identifier such as a name was set to correspond to the created and prepared data, and an image or figure was pasted into the frame when printing.
一方、近年マイクロプロセッサの発達やCRT、プリン
タ等の周辺機器の進歩に伴い、ワークステーションを基
にした高度な文書処理が行われるようになってきた。そ
れは通常WSIWYG(What You See I
s What You Get)と呼ばれるもので、文
書の印刷結果を画面に表示しながら、リアルタイムに入
力編集を行うものである。又、文書中にブロックとして
の独立した情報を持つため、ブロックとして独立した処
理が行えるようになっている。On the other hand, in recent years, with the development of microprocessors and advances in peripheral devices such as CRTs and printers, advanced document processing has come to be performed using workstations. It's usually WSIWYG (What You See I
s What You Get), which performs input and editing in real time while displaying the print result of the document on the screen. Furthermore, since the document contains independent information as blocks, independent processing can be performed as blocks.
このブロックにおいて実際に人力編集操作を行う場合、
先ずブロック人力編集モードに入って枠空け(ブロック
の定義)を指示し、文書中に空けるべぎブロックの情報
を決定しなければならない。次に、空けられたブロック
に対して文章人力編集9図形入力編集、イメージ入力編
集などのモードに移って、各文章1図形、イメージなど
のデータを入力編集する。ここで、実際に入力編集した
データが、ブロックに対して小さい(或は少ない)場合
は、再度ブロック入力編集モードに戻ってブロックサイ
ズの縮小を行う。また、データ入力中にブロックの大き
さが不足した場合も、−度ブロック入力編集モードに戻
ってブロックサイズの拡大を行う。このようにデータ量
とブロックサイズとに隔たりがあって体裁が悪い場合は
、その都度データ人力編集モードとブロック人力編集モ
ードとを行き来して何度も操作を繰り返して、入力編集
を実行する。When actually performing manual editing operations in this block,
First, you must enter block manual editing mode, instruct frame blanking (block definition), and determine the information of the block to be blanked in the document. Next, for the empty block, the mode shifts to text manual editing, graphic input editing, image input editing, etc., and data such as graphics and images are input and edited for each text. Here, if the data actually input and edited is smaller (or smaller) than the block, the block input/edit mode is returned to and the block size is reduced. Also, if the block size becomes insufficient during data input, the block size is enlarged by returning to the block input editing mode. If there is a discrepancy between the data amount and the block size and the appearance is unsatisfactory, input editing is performed by switching back and forth between the data manual editing mode and the block manual editing mode and repeating the operation many times each time.
[発明が解決しようとしている訝題]
ところが、従来のワープロでは、文章の増減に従い、罫
線素片を移動して拡大できるブロックの方向は一方向に
過ぎなかったし、まして、図形やイメージなどのデータ
はブロックとは別に作成されるので、そのデータの描か
れる大きさとブロックサイズには関連性がない。また、
従来のワークステーションによる組版処理でも、前述の
ようにブロック入力編集操作とデータ人力操作とは全く
切り離されている。[Question that the invention is trying to solve] However, in conventional word processors, the direction of blocks that can be enlarged by moving ruled line segments is only one direction as the number of sentences increases or decreases. Since the data is created separately from the block, there is no relationship between the size of the data and the block size. Also,
Even in conventional typesetting processing using a workstation, block input editing operations and data manual operations are completely separated, as described above.
従って、ブロック中のデータの入力中にその大きさや形
に不具合が事態が発生した場合、その都度ブロックの人
力編集操作に戻ってブロックの大きさや形を整えてから
、再度データの入力と編集とを繰り返さなければならな
いので、操作が非常に煩雑となってしまう。Therefore, if a problem occurs with the size or shape of the data in a block, each time you go back to manually edit the block, adjust the size and shape of the block, and then input and edit the data again. must be repeated, making the operation extremely complicated.
本発明は、前記従来の欠点を除去し、データに対応して
矩形枠(ブロック)を適正な大きさに編集可能な文書処
理装置を提供する。The present invention eliminates the above-mentioned conventional drawbacks and provides a document processing device capable of editing a rectangular frame (block) to an appropriate size in accordance with data.
[課題を解決するための手段]
この課題を解決するために、本発明の文書処理装置は、
文字データ、図形データ、イメージデータ、表組データ
等のデータを割り付けて1つの文書を作成する文書処理
装置であって、前記各データを割り付ける枠を作成する
枠作成手段と、前記各データを入力する入力手段と、該
人力データが前記枠に適応しない場合に、前記人力デー
タに対応して前記枠を調整する枠調整手段とを備える。[Means for Solving the Problem] In order to solve this problem, the document processing device of the present invention has the following features:
A document processing device that creates one document by allocating data such as character data, graphic data, image data, table data, etc., comprising a frame creating means for creating a frame in which each of the data is allocated, and inputting each of the data. and frame adjustment means that adjusts the frame in accordance with the human data when the human data does not fit the frame.
ここで、前記人力手段は、前記枠作成手段の作成した枠
外にも各データを人力可能である。Here, the human power means can manually create each data outside the frame created by the frame creation means.
更に、前記枠が存在しない場合に、枠作成を指示する枠
作成指示手段を備える。The apparatus further includes frame creation instructing means for instructing the creation of a frame when the frame does not exist.
[作用]
かかる構成において、人力されたデータに合わせて枠の
大きさを変更するようにしたので、データに対応して矩
形枠(ブロック)を適正な大きさに編集可能である。[Operation] In this configuration, since the size of the frame is changed according to the manually inputted data, it is possible to edit the rectangular frame (block) to an appropriate size according to the data.
[実施例コ
以下、図面を参照して、本発明の実施例について詳細に
説明する。尚、本発明でいう「文書」とは、文章(字)
9図形、イメージの少なくとも1つから構成されるデー
タ群を表わすものである。また、本発明の文書処理装置
は、本発明の機能を達成するものであれば、単体の機器
であっても複数の機器から成るシステムであっても、L
AN等を介して達成される各機器、或は各システムを含
むものであっても良い。[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, "document" as used in the present invention refers to sentences (characters)
This represents a data group consisting of at least one of nine figures and images. Further, the document processing device of the present invention can be used as a single device or a system consisting of a plurality of devices, as long as it achieves the functions of the present invention.
It may include each device or each system achieved through an AN or the like.
〈文書処理装置の構成例〉
第1図は、本実施例の文書処理装置の構成を示すブロッ
ク図である。<Example of Configuration of Document Processing Apparatus> FIG. 1 is a block diagram showing the configuration of the document processing apparatus of this embodiment.
11はCRT表示部で、ラスクスキャンして文書画像デ
ータを表示する。12はビデオRAM(VRAM) で
、CR7表示部11の1画面のパターン展開情報を記憶
する。13は表示制御部で、VRAM12へのパターン
展開制御およびCR7表示部11のパターン読出しを制
御する。Reference numeral 11 denotes a CRT display unit that performs rask scanning and displays document image data. A video RAM (VRAM) 12 stores pattern development information for one screen of the CR7 display section 11. Reference numeral 13 denotes a display control section which controls pattern expansion into the VRAM 12 and pattern reading from the CR7 display section 11.
14は文書編集制御とデータ制御とを行うマイクロプロ
セッサ(以下M P U )で、各部を総括的に制御す
る。15は主メモリで、後述のフローチャートで示され
る制御プログラムや文書データ等が格納されるROM及
びRAMから成り、特に枠制御中には粋制御データ記憶
部15aを有する。14 is a microprocessor (hereinafter referred to as MPU) that performs document editing control and data control, and generally controls each section. Reference numeral 15 denotes a main memory, which is comprised of a ROM and a RAM in which control programs and document data shown in flowcharts to be described later are stored, and has a control data storage section 15a especially during frame control.
16は外部磁気ディスク装置で、文書ファイル16a等
を格納している。17は位置を指示する指示手段を兼ね
るボインテングデバイス(以下PD)で、CR7表示部
11の任意の位Mを指定する。18はキーボード(以下
KBD)、19はI10バスで、各ブロックとMPU1
4とを接続する。更に、イメージ人力のためのスキャナ
20、あるいは文書記録用のプリンタ21が接続されて
も良い。Reference numeral 16 denotes an external magnetic disk device, which stores document files 16a and the like. Reference numeral 17 denotes a pointing device (hereinafter referred to as PD) which also serves as an indicating means for indicating a position, and is used to specify an arbitrary position M on the CR7 display section 11. 18 is a keyboard (hereinafter referred to as KBD), 19 is an I10 bus, and each block and MPU1
Connect with 4. Furthermore, a scanner 20 for manual image processing or a printer 21 for document recording may be connected.
第2図は、第1図に示したMPU 14の機能を説明す
るブロック図である。ディスク16には以下の第10図
で示すような文書ファイル16aが格納されている。そ
の文書データは制御手段25によりページ処理手段26
に手渡され、1ページ毎に割り付けられる。その割り付
けられた結果のページ情報は記憶手段27に蓄えられ、
制御手段25によって指示されたページを表示手段28
に表示する。コマンドの人力や表示ページの指示は人力
手段29で行い、制御手段25で解析して、ページ処理
手段26や表示手段28を制御することで行う。ディス
ク16の文書データは入力手段29から人力し、ページ
処理手段26で割り付け、記憶手段27に記憶した後に
、「ディスク保存コマンド」により保存される。記憶手
段27上の文書データのフォーマットは、ディスク16
中の文書データのフォーマットと同一でも良いが、制御
手段25やページ処理手段26が処理し易いように変え
てもよい。FIG. 2 is a block diagram illustrating the functions of the MPU 14 shown in FIG. 1. The disk 16 stores a document file 16a as shown in FIG. 10 below. The document data is transferred to the page processing means 26 by the control means 25.
It is handed over to the person and allocated on a page-by-page basis. The page information resulting from the allocation is stored in the storage means 27,
The display means 28 displays the page instructed by the control means 25.
to be displayed. Manual commands and display page instructions are performed by manual means 29, analyzed by control means 25, and controlled by page processing means 26 and display means 28. Document data on the disk 16 is manually inputted from the input means 29, allocated by the page processing means 26, stored in the storage means 27, and then saved by a "disk save command". The format of the document data on the storage means 27 is the format of the document data on the disk 16.
The format may be the same as that of the document data contained therein, but it may be changed so that the control means 25 and page processing means 26 can easily process it.
く文書処理装置の動作例〉
第3図から第9図までは、本実施例の操作を具体的な表
示例を用いて説明した図である。Example of Operation of Document Processing Apparatus> FIGS. 3 to 9 are diagrams illustrating the operation of this embodiment using specific display examples.
第3図は本実施例の人力編集画面である。31は文書用
紙に対応した表示画面で、初期的には文章データ(文字
データ)が未入力であることを示す黒点34が表示され
る。32は文書編集カーソルで、現在のデータの人力編
集位置を示す。33はボインティングカーソルで第1図
のPCl3と連動した動きをし、文書編集カーソル32
の移動や範囲指定の設定、コマンドの指示をPCl3の
不図示のスイッチとともに行う。FIG. 3 shows the manual editing screen of this embodiment. 31 is a display screen corresponding to document paper, and initially a black dot 34 is displayed indicating that no text data (character data) has been input. A document editing cursor 32 indicates the current manual editing position of data. 33 is a pointing cursor that moves in conjunction with PCl3 in Fig. 1, and the document editing cursor 32
Movement, range specification settings, and command instructions are performed together with a switch (not shown) of the PCl3.
KBD18からのデータはの人力編集カーソル32の位
置から仮名漢字変換されながら人力される。35は編集
メニューで文書用紙31に対して行える機能の選択や人
力編集するデータの切り替えを行う。36はコマンドメ
ニューで編集メニュー35の各機能のサブ機能を示すメ
ニューである。通常ブロック(枠)に関する人力編集は
枠編集メニュー37を選ぶことで行い、そのブロックに
データを人力編集する場合は、編集メニュー35内の「
文章」、「表組」、「図形」。The data from the KBD 18 is manually input while being converted into kana-kanji from the position of the manual editing cursor 32. An edit menu 35 is used to select functions that can be performed on the document sheet 31 and to switch data to be manually edited. Reference numeral 36 denotes a command menu which shows sub-functions of each function of the edit menu 35. Normally, manual editing of a block (frame) is performed by selecting the frame editing menu 37, and when manually editing data in that block, select "
"Text", "Table", "Graphics".
「イメージ」などを選んでコマンドメニュー36を表示
してから行う。ここで、編集メニュー35で反転表示さ
れているものは現在選ばれている編集メニューを示す。Select "Image" or the like to display the command menu 36, and then do this. Here, the highlighted edit menu 35 indicates the currently selected edit menu.
(文章MA集)
文章編集では、用紙又は枠内の文字の入力及び編集を行
うことができる。文字の入力はローマ字かな変換、かな
漢字変換等の機能を用いて行われる。各用紙には書式が
割当てられていて、用紙サイズ、用紙中の文書等の入力
編集する領域である版面の位置、段組の数9段中の行数
、本文の文字サイズ、書体(明朝、ゴシック等)、ノン
プル(ページ番号)、柱(欄外の見出し)等が定義され
ている。文字はこの書式に従って組まれて表示又は印刷
される。又編集機能により部分的な文字サイズ、書体の
変更、アンダーライン。(Text MA Collection) Text editing allows you to input and edit characters on paper or in frames. Character input is performed using functions such as romaji-kana conversion and kana-kanji conversion. A format is assigned to each sheet of paper, including the paper size, the position of the hanmen which is the area for inputting and editing documents, etc. on the sheet, the number of columns in nine columns, the font size of the main text, and the font (Mincho). , Gothic, etc.), non-pull (page number), column (heading outside the margin), etc. are defined. Characters are organized and displayed or printed according to this format. Also, the editing function allows you to change partial font size, font, and underline.
圏点、ルビ、上付、下付文字等の文字修飾、センタリン
グ、右寄せ、左寄せ、均等割付等の行そろえ等も行う。We also perform character modifications such as emphasis marks, ruby, superscripts, and subscripts, and line alignment such as centering, right alignment, left alignment, and equal allocation.
さらに、文字列を検索して他の文字列に置換する検索置
換の機能も持つ。It also has a search and replace function that searches for a string and replaces it with another string.
又、カーソル32は文字の移動、入力、削除に伴い、文
字に追従して動く。Further, the cursor 32 moves to follow the characters as they are moved, input, or deleted.
(図形編集)
次に図形編集は、直線8円、矩形、だ円等の図形の入力
、及び面種、線種の変更1図形の移動、複写1消去、変
形1回転、拡大、縮小等の編集機能を持ち、複数のレイ
アの層から構成されていて、各レイア単独の表示1編集
ができ、複数レイアを重ねて表示することができる多重
レイア構造などの機能を持つ。(Figure editing) Next, figure editing involves inputting figures such as 8 straight circles, rectangles, ellipses, etc., changing surface types and line types, moving 1 figure, copying 1 erasing, transforming 1 rotation, enlarging, reducing, etc. It has an editing function, is composed of multiple layers, and has functions such as a multi-layer structure that allows each layer to be displayed and edited individually, and multiple layers to be displayed in an overlapping manner.
(イメージ編集)
イメージ編集は、イメージスキャナからの画像の人力、
イメージデータの回転1反転、移動。(Image editing) Image editing is the manual processing of images from an image scanner.
Rotation 1 inversion and movement of image data.
複写、消去、並びに1ドツト単位で編集を行うドツト単
位編集、イメージ−データを部分的に切り出すトリミン
グ等の機能を有する。It has functions such as copying, erasing, dot-by-dot editing, and trimming to partially cut out image data.
(枠編集)
枠編集は浮動枠(浮動ブロック)と固定枠(固定ブロッ
ク)との新規定義、修正変更、削除などを行うものであ
る。(Frame Editing) Frame editing is the process of newly defining, modifying, and deleting floating frames (floating blocks) and fixed frames (fixed blocks).
(表組処理)
表組処理では、小組の人っていない粋に対して編集を行
うことかできる。機能は罫線を引いたり移動、削除を行
う罫線編集と、文字を人力したりアンダーライン、ルビ
などの修飾を行う文字編集とに大きく2つに分けられる
。罫線編集は罫線を引いて表を作り、セルと呼ばれる罫
線で囲まれた矩形の領域を作成することが目的である。(Table-setting processing) In table-setting processing, editing can be performed on sections that are not occupied by small group members. Functions can be broadly divided into two: border editing, which draws, moves, and deletes borders, and character editing, which allows you to manually edit text and add decorations such as underlining and ruby. The purpose of ruled line editing is to create a table by drawing ruled lines, and to create a rectangular area surrounded by ruled lines called a cell.
文字はこのセルの中に人力することができる。文字編集
は、罫線編集で作られたセルの中に文字を人力すること
が目的である。これら2つの編集機能を用いることによ
り、良質かつ複雑な表を迅速に簡単に作成できる。本実
施例における表組機能は、ブロック内でのみ使用するこ
とができる。Characters can be entered manually into this cell. The purpose of character editing is to manually enter characters into cells created by ruled line editing. By using these two editing functions, you can quickly and easily create high-quality and complex tables. The table function in this embodiment can only be used within a block.
(自動枠制御処理)
以下、本実施例の自動枠制御処理は1表組」を例にとっ
て説明するが、特にこれに限るわけではなく、「図形」
「イメージ」 「文章ノであってもかまわない。(Automatic frame control processing) The automatic frame control processing of this embodiment will be explained below using the example of "one table set", but is not limited to this, and the "figure"
``Image'' ``It doesn't matter if it's text.
第4図は、第3図の編集メニューで1表組」を選んだと
きに表示される人力編集画面である。FIG. 4 shows a manual editing screen that is displayed when "1 table set" is selected in the editing menu shown in FIG.
第3図の入力編集画面では、ブロックか定義されていな
いため、「表組」の機能に拶ることが不可能である。こ
の場合、枠編集37とは別の枠作成メニュー41を表示
し、ブロックの定義を可能とする。これは、この枠作成
メニュー41で浮動ブロック(浮動枠)か固定ブロック
(固定枠)かを選びボインティングカーソル33を用い
てブロックの対角する2点を選ぶことで行う。In the input editing screen shown in FIG. 3, since no blocks are defined, it is impossible to use the "table" function. In this case, a frame creation menu 41 separate from the frame editing 37 is displayed to enable block definition. This is done by selecting either a floating block (floating frame) or a fixed block (fixed frame) in the frame creation menu 41 and selecting two diagonal points of the block using the pointing cursor 33.
ここで、ブロックが定義されると1表組」の入力MA集
が可能となるため、第5図のようにコマンドメニューが
開放され、「表組」の人力編集状態となる。Here, when a block is defined, it becomes possible to input MA collection of "one table set", so the command menu is opened as shown in FIG. 5, and the "table set" manual editing state is entered.
第5図は1表組」の罫線入力編集画面を示す図である。FIG. 5 is a diagram showing a ruled line input/edit screen for "1 table set".
「表組」は罫線人力編集画面で罫線コマンド51を用い
て罫線を入力し、適宜コマンドメニュー52の中の他の
コマンドを用いて編集する。出来上った罫線が囲む領域
をセルと称し、文字編集コマンド53を指示することで
、第6図に示す文字人力編集画面で各セルに文字を入力
し、表を作成するものである。罫線の人力編集は、単に
線を人力するだけでなく、線の太さや点線などの線の種
類の変更、罫線の8yJJ、複写などの編集も行える。For "table layout", ruled lines are entered using the ruled line command 51 on the ruled line manual editing screen, and edited using other commands in the command menu 52 as appropriate. The area surrounded by the completed ruled lines is called a cell, and by instructing the character editing command 53, characters are input into each cell on the manual character editing screen shown in FIG. 6, and a table is created. Manual editing of ruled lines not only allows you to manually edit the lines, but also allows you to change the thickness of the line, type of line such as dotted line, edit ruled lines 8yJJ, copy them, etc.
第6図は「表組」の文字人力編集の画面の一例を示した
図である。文字入力編集画面では車に各セル文字を入力
するだけでなく、各セル内の文字の大きさやゴシック・
明朝などの書体、その他セルにかかわる属性の設定63
や、各文字に対してルビ、上付き文字、下付き文字、ア
ンダーラインなどの文字修飾64、右よせ、左よせ。FIG. 6 is a diagram showing an example of a screen for manually editing characters in "table format". On the character input editing screen, you can not only input the characters in each cell to the car, but also change the size of the characters in each cell and the Gothic style.
Setting fonts such as Mincho and other attributes related to cells 63
and character decorations such as ruby, superscript, subscript, and underline for each character64, right alignment, and left alignment.
センタリング等の特殊編集分離禁止66などの指示を行
うことかできる。第6図は第5図の罫線入力編集で罫線
を作成した後、各罫線により囲まれてできたセルに対し
、実際に文字列を人力しているところを示している。It is possible to issue instructions such as prohibition of special editing and separation 66 such as centering. FIG. 6 shows how, after creating ruled lines using the ruled line input/editing shown in FIG. 5, character strings are actually entered manually into cells surrounded by the ruled lines.
ここで、実際に文字列を入力した結果、表61の大ぎさ
が足りないときに、表61を広げる必要があるが、ブロ
ックの大きさが表61を広げるには充分ではないととに
は、ブロック自体も広げる必要がある。そこで、第7図
のように罫線の人力編集で必要なだけの罫線71を引く
と第8図のようにブロックそのものも広げることかでざ
る。Here, as a result of actually inputting the character string, if the table 61 is not large enough, it is necessary to expand the table 61, but the block size is not large enough to expand the table 61. , the block itself also needs to be expanded. Therefore, if the necessary number of ruled lines 71 are drawn by manually editing the ruled lines as shown in FIG. 7, the block itself will be expanded as shown in FIG. 8.
また、第6図で表61の部分62が不用てあった場合、
罫線消去54で部分62の罫線を消去すると、その罫線
で定義されるセル内のデータは消去される。しかし、そ
の結果ブロック内の下部の空白部が大きくなりすぎるの
で、キーボード上の不図示のrF I TJキーを押下
することで、第9図のようにブロックの大きさを最適化
することができる。Also, if part 62 of table 61 is not used in Fig. 6,
When the ruled line in the portion 62 is erased by the ruled line erasure 54, the data in the cell defined by the ruled line is erased. However, as a result, the blank space at the bottom of the block becomes too large, so by pressing the rF I TJ key (not shown) on the keyboard, the size of the block can be optimized as shown in Figure 9. .
くデータフォーマット例〉
第10図はハードディスク16中の文書ファイルのフォ
ーマットにっての一例を示す図である。Example of Data Format> FIG. 10 is a diagram showing an example of the format of a document file in the hard disk 16.
ヘッダ101は本文書ファイルの動作可能なハード環境
のフラグや文書ファイル中の各データ102〜106へ
のポインタなどが格納されている。The header 101 stores flags of a hardware environment in which this document file can operate, pointers to each data 102 to 106 in the document file, and the like.
本文書式102は、文書ファイル中の文書データの書式
データが格納されている。103は固定枠制御部で、固
定枠の大きさや枠の属性。The document format 102 stores format data of document data in a document file. A fixed frame control unit 103 controls the fixed frame size and frame attributes.
固定枠データへのポインタなどが格納されている。10
4は固定枠データで、固定枠に人力された文意1表組1
図形、イメージの実データが格納されている。105の
ページデータは各ページ毎に割り付けられたデータが、
ページ単位毎に区切られて格納されている。ページ単位
のデータには文意1図形、イメージが含まれる。ページ
データテーブル106にはベージデータの各ページ中の
データへのポインタが格納されている。Stores pointers to fixed frame data. 10
4 is fixed frame data, 1 table set 1 has been manually added to the fixed frame.
Actual data of figures and images are stored. The page data of 105 is the data allocated for each page,
It is separated and stored in page units. The page unit data includes sentence meaning 1 figures and images. The page data table 106 stores pointers to data in each page of page data.
第11図は、第10図の固定枠制御部103と固定枠デ
ータ104とを更に詳細に説明した図である。FIG. 11 is a diagram illustrating the fixed frame control unit 103 and fixed frame data 104 of FIG. 10 in more detail.
固定枠は1つの文書中に複数定義が可能である。従って
、固定枠制御部1o3.固定枠データ104は各枠毎に
情報が区切られて、枠制御データ111−1〜111−
M、枠データ112−t〜112−Mのような構造にな
る。固定枠データには文章・表組データ、図形データ、
イメージデータが含まれる。文章・表組データは2つの
データのうちどちらかが定義可能であり、文章データの
場合は、その中に枠内の文章の書式を司る小組書式が付
加される。固定枠制御部103は固定枠データ104内
の各枠データに関する制御情報であり、その詳細は12
6のようなものである。Multiple fixed frames can be defined in one document. Therefore, fixed frame control unit 1o3. Fixed frame data 104 has information separated for each frame, and frame control data 111-1 to 111-
M, frame data 112-t to 112-M have a structure. Fixed frame data includes text/table data, graphic data,
Contains image data. Text/table data can be defined as one of two types of data, and in the case of text data, a small format that governs the format of the text within the frame is added to it. The fixed frame control unit 103 is control information regarding each frame data in the fixed frame data 104, and its details are described in 12.
It is like 6.
ページ番号113は枠の存在するページ番号、プライオ
リティ114は枠が重畳したときの1量先順位、線種1
15は枠線を表示するかどうか、表示するときは実線か
点線か破線がなどを示す。Page number 113 is the page number where the frame exists, priority 114 is the 1-quantity priority when frames overlap, line type 1
15 indicates whether or not a frame line is to be displayed, and when displayed, whether it is a solid line, a dotted line, or a broken line.
線幅116は枠の線の太さを示す。Line width 116 indicates the thickness of the line of the frame.
X座標117、X座標118は枠が用紙の左上端を原点
にどの位置に置かれるかを示したものである。枠幅11
9.枠高120は枠の大きさを示す。禁止領域121は
枠に対して本文の文書データを制御する領域を枠の上下
左右端からの距離で示す。小!ni式へのポインタ12
2は固定枠データ104内の文書・表組データ中に小組
書式か存在する場合の小組へのポインタである。The X coordinate 117 and the X coordinate 118 indicate where the frame is placed with the upper left corner of the sheet as the origin. Frame width 11
9. The frame height 120 indicates the size of the frame. The prohibited area 121 indicates an area in which the document data of the main body of the frame is controlled by the distance from the top, bottom, left, and right ends of the frame. small! Pointer to ni expression 12
2 is a pointer to a small set when a small set format exists in the document/table data in the fixed frame data 104.
文書・表組データポインタ123、図形データポインタ
124、イメージデータポインタ125は固定枠データ
104内の対応する枠データの文書・表組データ、図形
データ、イメージデータへのポインタである。The document/table data pointer 123, the graphic data pointer 124, and the image data pointer 125 are pointers to the document/table data, graphic data, and image data of the corresponding frame data in the fixed frame data 104.
第12図はハードディスク16中の文書データの1部で
ある文章・表組データのレイアウトの一例を示す図であ
り、制御テーブル130.罫線テーブル140.テキス
トテーブル150.セル(第14図のような枠)属性テ
ーブル160から構成される。FIG. 12 is a diagram showing an example of the layout of text/table data that is part of the document data in the hard disk 16, and shows an example of the layout of the control table 130. Ruled line table 140. Text table 150. It is composed of a cell (frame as shown in FIG. 14) attribute table 160.
制御テーブル130は文章・表組データ全体を管理する
ためのものである。型式番号は表組データ型式を表わす
番号が格納されている。座標変換情報132は内部記t
、!座標単位からCRT又はプリンタ座標単位への変換
のための制OII情報が格納されている。次に斜線、横
線、樅線、テキスト、セル属+1133〜137の各々
のオフセットは罫線テーブルの斜線、横線、N線、テキ
ストデータテーブル、セル属性テーブルのテーブル領域
の始点アドレスを示すデータである。又、カウントは斜
線、横線、縦線、テキスト、セル属性の各レコードの個
数を示すもので、斜線レコードはn、個まで横線レコー
ドはn2個まで、ば線レコードはn3個まで、テキスト
レコードはn4個まで、セル属性レコードはn5個まで
である。The control table 130 is for managing the entire text/table data. The model number stores a number representing the tabular data format. The coordinate transformation information 132 is internally recorded t
,! Control OII information for conversion from coordinate units to CRT or printer coordinate units is stored. Next, the offsets of diagonal lines, horizontal lines, fir lines, text, and cell attributes +1133 to +137 are data indicating the starting point address of the table area of the diagonal line, horizontal line, N line, text data table, and cell attribute table of the ruled line table. In addition, the count indicates the number of diagonal lines, horizontal lines, vertical lines, text, and cell attribute records, with diagonal line records up to n, horizontal line records up to n2, bar records up to n3, and text records up to n3. The number of cell attribute records is up to n4, and the number of cell attribute records is up to n5.
これらのオフセットとカウンタにより罫線テーブル、テ
キストテーブル、属性テーブルの領域を把握することが
できる。These offsets and counters allow the areas of the ruled line table, text table, and attribute table to be grasped.
罫線テーブル140は、斜線141.横線】42.縦線
143各々の情報の集まりである。The ruled line table 140 has diagonal lines 141 . Horizontal line】42. This is a collection of information for each vertical line 143.
p (x、y)は、各線の開始位置が格納されている。p (x, y) stores the starting position of each line.
線種は例えは実線、−点鎖線のような各線の線種を表わ
す情報が格納されている。線幅には各線の太さの情報が
格納されている。フラグには各罫線のロック情報が格納
されている。丸めには、横線と縦線の交点の角丸めの情
報が格納されている。横線レコード142.縦線レコー
ド143の長さには各線の長さの情報が格納されている
。斜線の横方向長さ、縦方向長さにはそれぞれ横方向、
縦方向の長さの情報が格納されている。横線レコード1
42のテキストオフセットシこは、その横線が構成する
セルに対応するテキストデータがテキストテーブル15
0のどの位置に格納されているかを示すオフセット値が
格納されている。テキストを持たない場合は−1の値か
格納されている。罫線テーブル140の各レコード14
1〜143は、P (x、y)の示す開始位置情報によ
り、斜線、横線はX座標値昇順、縦線はX座標値昇順に
整列されている。なお、この罫線はセルを構成する素片
といっても良い。The line type stores information representing the line type of each line, such as a solid line or a dashed-dotted line. Line width stores information about the thickness of each line. Lock information for each ruled line is stored in the flag. Rounding stores information about corner rounding at the intersection of a horizontal line and a vertical line. Horizontal line record 142. The length of the vertical line record 143 stores information about the length of each line. The horizontal and vertical lengths of the diagonal line are the horizontal and vertical lengths, respectively.
Information about the length in the vertical direction is stored. horizontal line record 1
42 text offset box indicates that the text data corresponding to the cell that the horizontal line constitutes is in the text table 15.
An offset value indicating where in 0 is stored is stored. If there is no text, a value of -1 is stored. Each record 14 of the ruled line table 140
1 to 143 are arranged in diagonal lines and horizontal lines in ascending order of X coordinate values, and vertical lines in ascending order of X coordinate values, based on the start position information indicated by P (x, y). Note that this ruled line may be called an elemental piece that constitutes a cell.
テキストテーブル150は可変長テキストレコード15
1から構成される。属性オフセットは、そのテキストの
属性、例えば組み方向(縦組/横組)、文字の大きさ、
左、右、センタリングなどの文字揃え、行間、字間等が
セル属性テーブルのどこに格納されているかを示すオフ
セットである。テキスト・アドレスにはテキストデータ
の始点アドレス。テキスト・カウントにはテキストデー
タの文字数が格納されている。テキストデータは文字コ
ードの配列でテキスト・カウント個の2バイトコードか
ら成る。フラグはセルの表示状態などのフラグがセット
される。テキストレコードは文字又は属性を持ったセル
に1つずつ存在し、このテキストレコードに対するセル
属性レコードも必ず1つ存在する。但し、セル属性がま
ったく同じテキストには同じセル属性が割り当てられる
。Text table 150 has variable length text records 15
Consists of 1. Attribute offset is the attribute of the text, such as writing direction (vertical/horizontal writing), font size,
This is an offset indicating where in the cell attribute table, character alignment such as left, right, centering, line spacing, character spacing, etc. are stored. The text address is the start address of the text data. The text count stores the number of characters in text data. The text data is an array of character codes and consists of text count 2-byte codes. Flags such as the display state of cells are set. One text record exists for each cell having characters or attributes, and there is always one cell attribute record for this text record. However, the same cell attributes are assigned to texts that have exactly the same cell attributes.
セル属性テーブル160は可変長のセル属性レコード1
61から構成される。属性サイズは1つのセル属性のサ
イズでバイト数が格納される。フラグは使用されている
か未使用かのフラグが格納されている。中塗りはセルの
中塗りパターン番号が格納されている。組フラグは縦組
か横組かのフラグ、字間1文字ピッチどちらの指定か、
行間1行ピッチどちらの指定かのフラグが格納されてい
る。表方式は、上、下、左、右の文字揃え、回転表示の
回転角度、表示方式(白抜ぎ、重ね書きなど)の情報が
格納されている。The cell attribute table 160 has a variable length cell attribute record 1.
It consists of 61 pieces. The attribute size is the size of one cell attribute, and the number of bytes is stored. A flag indicating whether the flag is used or not is stored. In the middle color, the middle color pattern number of the cell is stored. The composition flag is a flag for vertical or horizontal writing, and whether to specify 1 character pitch between characters.
A flag indicating which one-line pitch is specified is stored. The table format stores information on top, bottom, left, right character alignment, rotation angle for rotated display, and display format (outline, overwriting, etc.).
フォントは文字書体(明朝、ゴシックなど)の情報が格
納されている。文字サイズは文字の大きさが格納される
。行ピッチ、文字ピッチは組フラグに従って、行ピッチ
又は行間、文字ピッチ又は字間の値が格納される。左右
マージン、上下マージンは左右、上下のマージンの値が
格納される。Font stores information about character fonts (Mincho, Gothic, etc.). The font size stores the size of the font. For the line pitch and character pitch, values of line pitch or line spacing, character pitch, or character spacing are stored according to the set flag. The values of the left and right margins and the top and bottom margins are stored in the left and right margins and the top and bottom margins.
縦横の罫線は、第13図に示すように交点において分割
されて記憶される。このように記憶しているので、表を
描くときには図形的に行い、各セルに対して編集(1つ
のセルの左辺のみを消去する等)する時は、各素片にっ
てい行うことか可能となる。又、各セルのテキストデー
タは第14図に示すように各セルを構成する罫線のうち
左上端の横罫線170(太線で示した罫線)が保持して
いる。The vertical and horizontal ruled lines are divided and stored at intersections, as shown in FIG. Since it is memorized in this way, it is possible to draw a table graphically, and when editing each cell (delete only the left side of one cell, etc.), it is possible to do it for each element. becomes. Furthermore, as shown in FIG. 14, the text data of each cell is held by a horizontal ruled line 170 (a ruled line shown in bold) at the upper left end of the ruled lines forming each cell.
く処理手順フローチャート〉
次に第15図のフローチャートを参照しながら、本実施
例の文書処理、組版処理作業の手順を説明する。尚、こ
こで云う文書とは、画像データを含めた言葉である。さ
らに、説明を簡単にするためにキーコントローラ等の説
明は省略し、すべてMPU 14が管理しているものと
する。Processing Procedure Flowchart> Next, the document processing and typesetting processing procedures of this embodiment will be explained with reference to the flowchart of FIG. Note that the term "document" used here includes image data. Further, to simplify the explanation, explanation of the key controller and the like will be omitted, and it will be assumed that the MPU 14 manages everything.
また処理手順はプログラム化されているが、それはDI
SK16の中にあってもよいし、ROM化されていても
よい。Also, the processing procedure is programmed, but it is
It may be in the SK16 or may be in the form of a ROM.
MPU14はステップS1でキーボード18またはPC
l3等からの人力を待機し、キー人力がなされたら、ス
テップS2で文書呼出し指令であるかどうかを判定し、
呼出し指令でない場合は他の制御に移行する。(本発明
に直接関係がない説明は省略する)。呼出し指令ならば
、ステップS3で図示しないイメージメモリまたはペー
ジメモリ上に文書データがなく白紙状態、すなわち初期
状態ではあるかどうかを判断し、初期状態でないならば
ステップS5以降に進み、初期状態ならばステップS4
で外部磁気ディスク装置16等から文書データをメモリ
上に呼び出す。次いで、ステップS5.S6でVRAM
12上に展開された文書データおよび編集メニューをC
R7表示部ll上に、例えば第3図に示すように表示す
る。ステップS7でキーボード18またはPD17から
のキー人力を待機し、キー人力があると、以下の各分岐
ステップでそのキー人力による指示を判断して対応した
処理を行う。The MPU 14 uses the keyboard 18 or the PC in step S1.
Waiting for human power from l3 etc., and when key human power is performed, it is determined in step S2 whether it is a document call command,
If it is not a call command, transfer to other control. (Descriptions not directly related to the present invention will be omitted). If it is a call command, it is determined in step S3 whether there is no document data in the image memory or page memory (not shown) and the page is in a blank state, that is, in an initial state. If it is not in an initial state, the process advances to step S5 and thereafter; if in an initial state, it is determined. Step S4
The document data is read from the external magnetic disk device 16 or the like onto the memory. Next, step S5. VRAM on S6
12.Click the expanded document data and edit menu on
It is displayed on the R7 display section 11 as shown in FIG. 3, for example. In step S7, a key input from the keyboard 18 or PD 17 is waited for, and if there is a key input, the instruction by the input key input is determined in each of the following branch steps and corresponding processing is performed.
まず、キー人力がカーソル32のB動指示であれば、ス
テップS9でカーソル32を位置カーソルとして移動す
る。First, if the key input is a B movement instruction for the cursor 32, the cursor 32 is moved as a position cursor in step S9.
キー人力がPCl3および矢印33によるメニュ一部6
1中の「範囲指定」のキーを指定する指令ならば。ステ
ップSitでカーソル32を範囲カーソルと設定する。Menu part 6 with key human power PCl3 and arrow 33
If it is a command that specifies the "range specification" key in 1. In step Sit, the cursor 32 is set as a range cursor.
キー人力が、例えば行揃え等の編集コマンドである場合
は、ステップS13で各編集コマンドを実行し、次いで
ステップS14で部分修正を行うかどうかを判断し、部
分修正ならばステップS15で修正した部分をCRT表
示部11に再表示する。部分修正でないならばステップ
516で全面修正指令を待ち、人力されたら全面修正を
施し、ステップS17で全面修正画面をCRT表示部1
1に表示する。For example, if the key input is an editing command such as line alignment, each editing command is executed in step S13, and then in step S14 it is determined whether or not to make a partial correction, and if it is a partial correction, the corrected part is is redisplayed on the CRT display section 11. If it is not a partial correction, wait for a full correction command in step 516, perform the full correction if manual correction is made, and display the full correction screen on the CRT display unit 1 in step S17.
Display on 1.
キー人力が書式コマンドであるならば、ステップS19
で入力された書式コマンドを実行した後、ステップS1
4進み上記修正を行う。If the key input is a format command, step S19
After executing the format command input in step S1
Advance 4 and make the above corrections.
キー人力が枠編集コマンドであるならば、ステップS2
1で入力された枠編集コマンドを実行する。If the key command is a frame editing command, step S2
Execute the frame editing command input in step 1.
キー人力がプリントコマンドであるならば、ステップS
23でプリント処理を実行する。If the key command is a print command, step S
At step 23, print processing is executed.
キー人力が表組指令であるならば、ステップS25で表
組処理を実行する。If the key input is a table layout command, table layout processing is executed in step S25.
キー人力が他のアプリケーション選択指令ならば、ステ
ップS27で他のアプリケーション処理、例えば文書更
新を行う。If the key input is another application selection command, other application processing, such as document update, is performed in step S27.
第16図は第15図のステップS25の表組処理ルーチ
ンのフローチャートである。FIG. 16 is a flowchart of the table processing routine of step S25 in FIG.
ステップS3でPCl3かうの入力を待機し、人力され
たらステップS32でその人力の種類が新規枠空けかど
うか調べる。新規枠空けならステップ333へ進み枠空
は処理を行う。新規枠空けは対角する2点を指示するこ
とで行う。In step S3, the system waits for the input of PCl3, and when it is manually input, it is checked in step S32 whether or not the type of manual input is to open a new slot. If a new frame is vacant, the process advances to step 333, and the frame is empty. A new frame is created by specifying two diagonal points.
次に、ステップS34でその新規枠を表組の人力編集の
対象としてステップS37へ進む。Next, in step S34, the new frame is set as a target for manual editing of the table, and the process advances to step S37.
ステップS32で新規枠空けでないならステップS35
で既存枠が指示されたかどうか調べ、既存枠でないなら
ば表組処理を抜けてリターンする。If a new slot is not vacant in step S32, step S35
Checks whether an existing frame has been specified, and if it is not an existing frame, exits table formatting processing and returns.
既存枠なら、ステップ336で指示された枠を表組の入
力編集枠としてステップS37へ進む。If it is an existing frame, the frame designated in step 336 is set as the table input editing frame and the process advances to step S37.
ステップS37ではキーボード18またはPCl3から
の人力を待機し、入力があれば以下の各分岐ステップで
指示を判断して、指示された編集に従った処理が行なわ
れる。In step S37, human input from the keyboard 18 or the PCI 3 is waited for, and if there is an input, the instruction is determined in each of the following branch steps, and processing according to the instructed editing is performed.
ステップS38で罫線人力編集が指示されたかどうか調
べ、罫線入力編集ならステップS39で罫線処理を行う
。It is checked in step S38 whether manual editing of ruled lines has been instructed, and if input editing of ruled lines, ruled line processing is performed in step S39.
文字の入力編集なら、ステップS41で文字処理を行う
。If inputting and editing characters, character processing is performed in step S41.
その他の表組コマンドなら、ステップS43でその他の
表組コマンド処理を実行して、ステップS37へ戻る。If it is another table command, other table command processing is executed in step S43, and the process returns to step S37.
上記とのコマンドでもない場合には表組処理を抜けてリ
ターンする。If the command is not one of the above commands, exit table formatting processing and return.
第17図は、第16図のステップS 3’ 3の枠空は
処理ルーチンのフローチャートである。FIG. 17 is a flowchart of the processing routine shown in step S3'3 of FIG. 16.
ステップS51で第11図の固定枠制御部の制御データ
の領域を確保する。以降説明を簡単にするため第11図
の制御データ126が確保されたとして説明する。In step S51, an area for control data of the fixed frame control unit shown in FIG. 11 is secured. Hereinafter, to simplify the explanation, the explanation will be given assuming that the control data 126 in FIG. 11 is secured.
ステップS52で枠空けの対象となった指定ページをペ
ージ番号113にセットする。次に、ステップS53で
線種115、線幅116にデイフォルト値をセットし、
ステップS54でPD17で開始点として指示された点
を用紙左上端原点としたとぎのX座標、X座標値に換算
して、X座標ti7.y座標118にセットする。In step S52, the specified page to be blanked out is set to page number 113. Next, in step S53, default values are set for line type 115 and line width 116,
In step S54, the point designated as the starting point by the PD 17 is converted into the X coordinate and the X coordinate value with the origin of the upper left end of the paper sheet, and the X coordinate ti7. Set the y coordinate to 118.
ステップS55でPD18で指示された開始点と終了点
から枠の幅と枠の高さを算出し、枠幅119、枠高さ1
120にセットする。ステ、ツブS56で、禁止領域1
21にデイフォルト値をセットし、ステップS57で各
ポインタ122〜125を初期化する。In step S55, the width of the frame and the height of the frame are calculated from the start point and end point specified by the PD 18, and the frame width is 119 and the frame height is 1.
Set it to 120. Ste, Tsubu S56, prohibited area 1
A default value is set in 21, and each pointer 122 to 125 is initialized in step S57.
次に、ステップS58で固定枠制御部103をサーチし
、ステップS59で今空けようとしてしλる枠と重なる
枠があるかどうかチエ・ツクし、重なりがない場合には
ステップS60でプライオリティ114に“1”をセッ
トし、重なりがある場合にはステップS61で一番大き
いプライオリティの値に”1”を加えた値をプライオリ
ティ114にセットし、ステップS62でページ表示処
理を呼んで、表示ページの空けられた枠と他のデータを
表示しリターンする。Next, in step S58, the fixed frame control unit 103 is searched, and in step S59, it is checked whether there is a frame that overlaps with the frame that is about to be vacated. If there is no overlap, the priority 114 is set in step S60. "1" is set, and if there is an overlap, the value obtained by adding "1" to the largest priority value is set in the priority 114 in step S61, and the page display process is called in step S62 to display the displayed page. Display the empty frame and other data and return.
第18図は、第16図ステップS39の罫線処理ルーチ
ンのフローチャートである。FIG. 18 is a flowchart of the ruled line processing routine of step S39 in FIG. 16.
ステップS71で“FIT”コマンドか否かを判断し、
“FIT”コマンドであれば、ステップS72で人力さ
れている各罫線のデータの枠の左上端を原点としたX座
標、X座標を調べ最大値、RL少値を求め、ステップ3
73で罫線データが存在している部分の領域のその幅と
高さを求め、ステップS74でその幅に左右の余白分と
して2α(αは定数で、編集操作で設定/変更可能)を
加えたものを枠幅119にセットする。In step S71, it is determined whether it is a “FIT” command,
If it is a "FIT" command, in step S72, the X coordinate with the upper left corner of the data frame of each ruled line as the origin is checked, and the maximum value and RL small value are determined, and in step S72
In step S73, the width and height of the area where the ruled line data exists is determined, and in step S74, 2α (α is a constant and can be set/changed by editing operation) is added to the width as left and right margins. Set the object to frame width 119.
また、ステップS75では高さに上下の余白分として2
β(βは定数で編集操作で設定/変更可能)を加えたも
のを枠高120にセットする。In addition, in step S75, the height is set to 2 as the top and bottom margins.
The frame height 120 is set by adding β (β is a constant and can be set/changed by editing operation).
次に、ステップS6ではステップS72で求めた最少値
のx、X座標をα、βとして枠内の全ての罫線データを
再計算し、罫線データの座標値を変更する。ステップS
77で変更された枠と罫線データでページの表示してリ
ターンする。Next, in step S6, all the ruled line data within the frame is recalculated using the minimum x and X coordinates obtained in step S72 as α and β, and the coordinate values of the ruled line data are changed. Step S
In step 77, the page is displayed with the changed frame and ruled line data and the process returns.
ステップS71で“FIT”コマンドでなければ、以下
の各分岐でコマンドを調べ、対応処理を行う。罫線引き
ならステップS79で罫線引き処理をし、罫線移動なら
ステップS81で罫線移動処理を行い、罫線複写ならス
テップS83で罫線移動処理を行う。罫線削除処理なら
ステップ585で罫線削除処理を行い、上記各コマンド
でない場合は、ステップ5136でその他の罫線コマン
ド処理を行う。If it is not a "FIT" command in step S71, the command is checked in each of the following branches and corresponding processing is performed. If a ruled line is to be drawn, a ruled line drawing process is performed in step S79, if a ruled line is to be moved, a ruled line movement process is performed in step S81, and if a ruled line is to be copied, a ruled line movement process is performed in step S83. If it is a ruled line deletion process, the ruled line deletion process is performed in step 585, and if it is not one of the above commands, other ruled line command processing is performed in step 5136.
各コマンド処理の後は、ステップS87へ進んで、ステ
ップS87,388では全ての罫線データが枠内に納っ
ているかどうかチエツクして、枠からはみでる場合はス
テップS89で枠サイズ変更処理をし、ステップS90
で罫線データの変更処理を行い、ステップS77でペー
ジの表示処理を行ってリターンする。After processing each command, the process advances to step S87, and in steps S87 and 388 it is checked whether all the ruled line data is within the frame, and if it is outside the frame, the frame size is changed in step S89, Step S90
Processing to change the ruled line data is performed in step S77, and page display processing is performed in step S77, and the process returns.
第19図は第18図のステップS89の枠サイズ変更処
理ルーチンのフローチャートである。FIG. 19 is a flowchart of the frame size change processing routine of step S89 in FIG.
ステップ510ではみだしが枠の上部に対して行われて
いれは、ステップ5102で枠高120に上部にはみだ
したff1(y方向)+βを枠高に加え、ステップ51
03ではみだしが枠の下部に対して行われていれば、ス
テップ5104で下部にはみたした量(y方向)+βを
枠高120に加え、ステップ5105ではみだしが枠の
左部に対して行われていれば、ステップ5106で左部
にはみだした4A(x方向)+βを枠幅119に加え、
ステップ5107ではみだしが枠の右部に対して行われ
ていれば、ステップ5108で右部にはみだしたff1
(x方向)+βを枠幅119に加えてリターンする。In step 510, if the overhang is performed on the top of the frame, in step 5102, ff1 (y direction) + β of the overhang at the top is added to the frame height 120, and in step 51
In step 03, if the protrusion is performed on the bottom of the frame, in step 5104, the amount (y direction) + β added to the bottom is added to the frame height 120, and in step 5105, the protrusion is performed on the left side of the frame. If it is, add 4A (x direction) + β that protrudes to the left side to the frame width 119 in step 5106,
In step 5107, if the protrusion is performed on the right side of the frame, in step 5108, the ff1 that protrudes on the right side is
Add (x direction) +β to the frame width 119 and return.
第20図は、第18図ステップ390の罫線データ変更
処理ルーチンのフローチャートである。FIG. 20 is a flowchart of the ruled line data change processing routine of step 390 in FIG.
ステップ5111で罫線データが上部に対してはみだし
ているかいなかを調べ、はみだしているならステップ5
112で枠内の罫線データのy座標の最少値を求める。Check whether the ruled line data protrudes from the top in step 5111, and if it does, step 5
In step 112, the minimum value of the y-coordinate of the ruled line data within the frame is determined.
次にステップ5113でその最少値をβにして他の罫線
の座標値を再計算し、罫線のデータを作り直す。ステッ
プ5114で粋の右部がはみだしているかどうか調べ、
右部はみだしならステップ5115で枠内の罫線データ
のX座標の最少値を求め、ステップ5116でその最少
値をαにして他の罫線の座標値を再計算し、罫線データ
を作り直しリターンする。Next, in step 5113, the coordinate values of other ruled lines are recalculated by setting the minimum value to β, and the data of the ruled lines is regenerated. In step 5114, check whether the right side of the iki is protruding,
If the right part protrudes, the minimum value of the X coordinate of the ruled line data within the frame is determined in step 5115, and in step 5116, the minimum value is set to α, the coordinate values of other ruled lines are recalculated, and the ruled line data is regenerated and the process returns.
尚、αやβの値はオペレータが設定するようにしても良
いし、システムが自動的に最適値を決めるようにしても
よい。或はその両方を可能にしても良いのは言うまでも
ない。Note that the values of α and β may be set by the operator, or the system may automatically determine the optimum values. Needless to say, it is also possible to enable both.
又、本実施例では各データの人力中に枠の太きさを変更
したいこζが多いので、各データの人力編集時に’FI
T”を設けたが、枠編集時に“FIT”を行うようにし
てもよい。In addition, in this embodiment, there are many cases in which the thickness of the frame is changed during manual editing of each data, so when editing each data manually, 'FI
Although "FIT" is provided, "FIT" may be performed when editing the frame.
[発明の効果コ
本発明により、データに対応して矩形枠(ブロック)を
適正な大きさに編集可能な文書処理装置を提供できる。[Effects of the Invention] According to the present invention, it is possible to provide a document processing device that can edit a rectangular frame (block) to an appropriate size in accordance with data.
すなわち、予め人力編集するデータより大きめの枠さえ
あけとけば人力編集を行った後に簡単に枠の適当な大き
さが決定できるので操作が非常に軽減できる。また、−
旦データを入力した後に、データの量に偏向があっても
簡単に最適な犬ぎさを決めることができる。That is, as long as a frame larger than the data to be manually edited is opened in advance, the appropriate size of the frame can be easily determined after the manual editing, and the operation can be greatly reduced. Also, -
Once the data is input, even if the amount of data is biased, the optimal dog size can be easily determined.
第1図は本実施例の文書処理装Mの構成を示すブロック
図、
第2図は第1図のMPU14の機能を示すブロック図、
第3図は本実施例の入力編集画面を示す図、第4図は第
3図の編集メニューで1表組」を選んだときの入力画面
を示す図、
第5図は「表組」の罫線入力編集画面を示す図、
第6図は1表組」の文字人力編集画面を示す図、
第7図1第8図、第9図は表組の罫線編集と枠との関係
を説明した図、
第10図はハードディスク内の文書フォーマットを示す
図、
第11図は第10図の固定枠制御部、固定枠データを詳
細に示す図、
第12図は第10図文書フォーマットの一部をなす表組
データテーブルのレイアウトを示す図、第13図は罫線
の交点の様子を示す図、第14図はセル中の文章データ
の保持の仕方を説明する図、
第15図は本実施例の文書処理及び組版処理作業手順を
示すフローチャート、
第1字図は第15図の表組処理の手順を示すフローチャ
ート、
第17図は第16図の枠空は処理の手順を示すフローチ
ャート、
第18図は第16図の罫線処理の手順を示すフローチャ
ート、
第19図は、第18図の枠サイズ変更処理の手順を示す
フローチャート、
第20図は、第18図の罫線データ変更処理の手順を示
すフローチャートである。
図中、11・CR7表示部、12−VRAM。
13・・・表示制御部、14・・・MPU、15・・・
主メモリ、15a・・・枠制御データ記憶部、16・・
・外部磁気ディスク、16a・・・文書ファイル、17
・・・ポインティングデバイス、18・・・キーボード
、19・・・I10バス、20・・・スキャナ、21・
・・プリンタ、25・・・制御手段、26・・・ページ
処理手段、27・・・記憶手段、28・・・表示手段、
29・・・入力手段である。
0
1
第2図
第1図
第10図
126
嫉11
図FIG. 1 is a block diagram showing the configuration of the document processing device M of this embodiment, FIG. 2 is a block diagram showing the functions of the MPU 14 of FIG. 1, and FIG. 3 is a diagram showing the input editing screen of this embodiment. Figure 4 shows the input screen when "1 table set" is selected in the edit menu of Figure 3. Figure 5 shows the ruled line input editing screen for "table set". Figure 6 shows the input screen for "1 table set". Figure 7 shows the text editing screen manually; Figures 7, 1, 8 and 9 are diagrams explaining the relationship between table layout ruled line editing and frames; Figure 10 is a diagram showing the document format in the hard disk; Figure 11 is a diagram showing the fixed frame control section and fixed frame data in Figure 10 in detail, Figure 12 is a diagram showing the layout of a table data table that is part of the document format in Figure 10, and Figure 13 is a diagram showing the fixed frame control section and fixed frame data in Figure 10. Figure 14 is a diagram showing the intersection of ruled lines, Figure 14 is a diagram explaining how to retain text data in a cell, Figure 15 is a flowchart showing the document processing and typesetting processing procedure of this embodiment, Figure 1 is a flowchart showing the procedure of the table processing shown in Fig. 15, Fig. 17 is a flowchart showing the procedure of the processing shown in Fig. 16, and Fig. 18 is a flowchart showing the procedure of the ruled line processing shown in Fig. 16. 18 is a flowchart showing the procedure for changing the frame size in FIG. 18, and FIG. 20 is a flowchart showing the procedure for changing the ruled line data in FIG. 18. In the figure, 11-CR7 display section, 12-VRAM. 13...Display control unit, 14...MPU, 15...
Main memory, 15a... Frame control data storage section, 16...
・External magnetic disk, 16a...Document file, 17
... Pointing device, 18 ... Keyboard, 19 ... I10 bus, 20 ... Scanner, 21.
... printer, 25 ... control means, 26 ... page processing means, 27 ... storage means, 28 ... display means,
29...Input means. 0 1 Figure 2 Figure 1 Figure 10 Figure 126 Jealousy 11 Figure
Claims (3)
データ等のデータを割り付けて1つの文書を作成する文
書処理装置であつて、 前記各データを割り付ける枠を作成する枠作成手段と、 前記各データを入力する入力手段と、 該入力データが前記枠に適応しない場合に、前記入力デ
ータに対応して前記枠を調整する枠調整手段とを備える
ことを特徴とする文書処理装置。(1) A document processing device that creates one document by allocating data such as character data, graphic data, image data, table data, etc., comprising frame creation means for creating a frame in which each of the data is allocated; A document processing apparatus comprising: input means for inputting data; and frame adjustment means for adjusting the frame in accordance with the input data when the input data does not fit into the frame.
にも各データを入力可能であることを特徴とする請求項
第1項記載の文書処理装置。(2) The document processing apparatus according to claim 1, wherein the input means is capable of inputting each data outside the frame created by the frame creation means.
作成指示手段を更に備えることを特徴とする請求項第1
項記載の文書処理装置。(3) Claim 1 further comprising frame creation instructing means for instructing creation of a frame when the frame does not exist.
The document processing device described in Section 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1275023A JPH03137764A (en) | 1989-10-24 | 1989-10-24 | Document creation method and document processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1275023A JPH03137764A (en) | 1989-10-24 | 1989-10-24 | Document creation method and document processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03137764A true JPH03137764A (en) | 1991-06-12 |
Family
ID=17549800
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1275023A Pending JPH03137764A (en) | 1989-10-24 | 1989-10-24 | Document creation method and document processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03137764A (en) |
-
1989
- 1989-10-24 JP JP1275023A patent/JPH03137764A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH028339B2 (en) | ||
| JP3062259B2 (en) | Document processing apparatus and method | |
| JP3277588B2 (en) | Image editing method | |
| JP2608300B2 (en) | Document processing method | |
| JP2542965B2 (en) | Image editing equipment | |
| JP2851846B2 (en) | Document processing method and apparatus | |
| JP3026617B2 (en) | Document processing apparatus and method | |
| JP2823162B2 (en) | Document processing device | |
| JP2810368B2 (en) | Image processing method | |
| JP2862239B2 (en) | Document processing device | |
| JP2547798B2 (en) | Document processing method | |
| JP3062258B2 (en) | Document processing apparatus and method | |
| JPH01130274A (en) | Document processor | |
| JP2833701B2 (en) | Document processing method | |
| JPS62179064A (en) | Picture processing system | |
| JPH0547860B2 (en) | ||
| JP2547797B2 (en) | Document processing method | |
| JPH0750477B2 (en) | Information processing equipment | |
| JP2547799B2 (en) | Document processing method | |
| JPH05334301A (en) | Document processor | |
| JP2962720B2 (en) | Image processing method | |
| JPH01130254A (en) | document processing device | |
| JPH0547861B2 (en) | ||
| JPH0827698B2 (en) | Document processing device | |
| JPH01130270A (en) | document processing device |