JPH057742B2 - - Google Patents
Info
- Publication number
- JPH057742B2 JPH057742B2 JP63017090A JP1709088A JPH057742B2 JP H057742 B2 JPH057742 B2 JP H057742B2 JP 63017090 A JP63017090 A JP 63017090A JP 1709088 A JP1709088 A JP 1709088A JP H057742 B2 JPH057742 B2 JP H057742B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- frame
- text
- display
- input
- 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 - Lifetime
Links
Landscapes
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、テキスト文字列と図形データとを同
一ページ上に作成できる文書編集装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document editing device that can create text character strings and graphic data on the same page.
本発明の背景として、文書作成編集装置(ワー
ドプロセツサ)が普及しつつある。しかしながら
それらの多くは文字しか扱えない。勿論、インデ
ント、タブ、マージン等のワードプロセシング機
能は具備しているわけであるが、それとて、文字
列の処理の範囲を超えない。翻つて、オフイスの
分野で作られる文書(レポート)というのは、文
字列とともにページ上適当な場所に図表等が、レ
イアウトされて1つの体裁を整えている。
As a background to the present invention, document creation and editing devices (word processors) are becoming popular. However, many of them can only handle text. Of course, it has word processing functions such as indentation, tabs, and margins, but these do not exceed the scope of character string processing. On the other hand, documents (reports) created in the office field consist of text strings and charts and tables laid out at appropriate locations on the page to create a single format.
この観点に立つと、現在のワードプロセツサは
上例の文書の文字部のみ作るにとどまり、例えば
図形等のデータは、別の機会に作成し、、ワード
プロセツサで作成した紙の上に物理的に貼り合わ
せるという使用形態を余儀なくさせていると言え
る。
From this point of view, current word processors only create the text part of the document in the example above; data such as figures, etc., are created on another occasion, and then physically printed on the paper created with the word processor. It can be said that it is forced to use a method of pasting them together.
本発明は、ワードプロセツサ上において、文字
データと図形データが統一的に扱えるようにし、
文字と図形が1ページ上に混在したものを1度に
作成することで、前述の業務上のオーバヘツドを
合理化することを目的としている。 The present invention enables character data and graphic data to be handled uniformly on a word processor,
The purpose is to streamline the aforementioned business overhead by creating a mixture of text and graphics on one page at the same time.
本発明の他の目的は、特にテキスト編集画面上
の行間隔および行内文字間隔が固定されている比
較的安価な文書編集装置において、テキストデー
タに合成される描画図形の編集を容易にできるよ
うにすることにある。 Another object of the present invention is to facilitate the editing of drawing figures to be synthesized with text data, especially in a relatively inexpensive document editing device in which line spacing and in-line character spacing on a text editing screen are fixed. It's about doing.
本発明は、ワードプロセツサにおいては、印刷
書式の指定を変更してもテキスト編集画面上の行
間隔および行内文字間隔は不変であり、表示され
ているテキスト文字列と実際に印刷出力されるテ
キスト文字列とでは行間隔および行内文字間隔が
全くことなるということ、更には、例えば図形を
置くためにテキスト内に矩形領域を枠明けした場
合でも、この枠自体、ユーザが表示画面で見てい
るものと印刷出力されるものとでは縦、横の比率
が異なつてしまうということに注目している。
In a word processor, even if the print format specification is changed, the line spacing and in-line character spacing on the text editing screen remain unchanged, and the displayed text string and the text actually printed out are The line spacing and in-line character spacing are completely different from text strings.Furthermore, even if a rectangular area is opened within the text to place a figure, for example, this frame itself is not visible to the user on the display screen. We are focusing on the fact that the vertical and horizontal ratios of the printed version and the printed version are different.
本発明では、上記目的を達成するために、文書
編集および書式指定のためのデータおよび指令を
入力するための入力手段と、文書データを表示す
るための表示画面を有する表示手段と、文書デー
タをユーザ指定の行間隔および行内文字間隔をも
つ書式に従つて印刷出力するための出力手段と、
上記入力手段からのデータ入力または指令入力に
応答して制御動作するデータ処理手段とからなる
文書編集装置において、上記データ処理手段が、
上記入力手段から入力されたテキスト文字列の
少なくとも一部を、上記ユーザ指定の書式とは異
なる所定の行間隔および行内文字間隔で、上記表
示画面に表示するための第1手段と、上記入力手
段から編集中の文書上に枠を設定し該枠内へ図形
を描画するための入力操作が行われたとき、上記
表示画面に印刷出力上の枠領域と相似した形状の
図形表示枠を表示し、入力図形データに応じて上
記図形表示枠内に印刷出力上の図形と相似した形
で描画された図形を表示するための第2の手段
と、上記入力手段から出力指令が入力されたと
き、枠明けされたテキスト文字列と該枠内に位置
する上記表示図形と相似した図形とからなる編集
文書を、上記指定書式に従つて上記出力手段に出
力するための第3手段とを備えたことを特徴とす
る。 In order to achieve the above object, the present invention provides an input means for inputting data and commands for editing and formatting a document, a display means having a display screen for displaying document data, and a display means for displaying document data. an output means for printing according to a format having user-specified line spacing and inline character spacing;
A document editing device comprising a data processing means that performs a control operation in response to data input or command input from the input means, wherein the data processing means converts at least a part of the text character string input from the input means into A first means for displaying on the display screen with predetermined line spacing and in-line character spacing different from the user-specified format; and a first means for setting a frame on the document being edited from the input means and drawing a figure within the frame. When an input operation for drawing is performed, a figure display frame with a shape similar to the frame area on the printout is displayed on the display screen, and the printout is displayed within the figure display frame according to the input figure data. a second means for displaying a figure drawn in a shape similar to the figure; and when an output command is input from the input means, a text character string opened in a frame and the above-mentioned display located within the frame. The present invention is characterized by comprising a third means for outputting an edited document consisting of a figure and a similar figure to the output means in accordance with the specified format.
本発明は、印刷書式の指定を変更してもテキス
ト編集画面上の行間隔および行内文字間隔が変ら
ない文書編集装置において、図形作成時に、図形
を置くためにテキスト内に枠明けされる矩形領域
を印刷出力上の枠領域と相似した形状にして表示
し、入力データに応じて上記図形表示枠内に印刷
出力上の図形と相似した形で描画図形を表示する
ようにしているため、ユーザはプリントイメージ
を編集画面上でモニタしながらデータを入力でき
る。
The present invention provides a document editing device in which line spacing and in-line character spacing on a text editing screen do not change even if the print format specification is changed. The user can You can input data while monitoring the print image on the editing screen.
以下、実施例に基づき本発明の詳細を説明す
る。
Hereinafter, details of the present invention will be explained based on Examples.
第1図に示す本装置は、マイクロコンピユータ
を中核とする構成をとり、プログラムの置かれて
いるコントロール部10と、キーボード21から
入力されたキーを読み込むキー入力制御部20
と、テキストデータおよび図形データおよび枠領
域定義データおよび印刷様式のパラメータを記憶
するメモリ部30と、さらにそれらのデータを保
存するための外部メモリ41およびその外部メモ
リを制御する外部メモリ制御部40と、CRTデ
イスプレイ51に表示するための画面表示制御部
50およびリフレツシユメモリ52およびCRT
文字パターンメモリ53と、プリンタ61にテキ
ストおよび図形データを混在印刷するための印刷
制御部60および印刷のための1行分の文字パタ
ーンをストアするドツトデータバツフア62、さ
らにプリンタ文字パターンメモリ63より構成さ
れる。CRT文字パターンメモリ53、プリンタ
文字パターンメモリ63は、あらかじめ定められ
た複数の文字パターンの各々を記憶する複数の第
1の領域と、後述するごとく、コントロール部1
0で作成される図形パターンの一部をそれぞれ記
憶する複数の第2の領域とからなり、第1、第2
の領域は、同じ大きさの表示又はプリントパター
ンを記憶する。各領域は文字コードによりアクセ
スされる。 The present device shown in FIG. 1 has a configuration with a microcomputer at its core, and includes a control section 10 in which a program is placed, and a key input control section 20 that reads keys input from a keyboard 21.
, a memory unit 30 that stores text data, graphic data, frame area definition data, and print style parameters; an external memory 41 that stores these data; and an external memory control unit 40 that controls the external memory. , a screen display control unit 50 for displaying on a CRT display 51, a refresh memory 52, and a CRT.
A character pattern memory 53, a print control unit 60 for printing a mixture of text and graphic data on a printer 61, a dot data buffer 62 for storing one line of character patterns for printing, and a printer character pattern memory 63. configured. The CRT character pattern memory 53 and the printer character pattern memory 63 include a plurality of first areas storing each of a plurality of predetermined character patterns, and a control unit 1 as described later.
0, and a plurality of second areas each storing a part of the graphic pattern created in
The area stores display or print patterns of the same size. Each area is accessed by a character code.
コントロール部10、メモリ部30、リフレツ
シユメモリ52、CRT文字パターンメモリ53、
ドツトデータバツフア62、プリンタ文字パター
ンメモリ63、キー入力制御部20、外部メモリ
制御部40は、共通のバス70に接続されてお
り、このバス70を介してデータの交換を行う。 control section 10, memory section 30, refresh memory 52, CRT character pattern memory 53,
The dot data buffer 62, printer character pattern memory 63, key input control section 20, and external memory control section 40 are connected to a common bus 70 and exchange data via this bus 70.
外部メモリ41、外部メモリ制御部40、ある
いは外部メモリ41への格納処理を行なうプログ
ラムは、主として、メモリ部30の効率的利用の
ため一時不要となつたデータを退避する用途に使
用される。以下の説明においては、外部メモリ4
1に関する動作は特に必要な場合を除き省略す
る。本文中、メモリ部30へのアクセスに関する
動作の中には、必要に応じて行なわれる外部メモ
リ41へのアクセスの意味まで含んでいることと
する。 The external memory 41, the external memory control unit 40, or the program that performs storage processing in the external memory 41 is mainly used to save data that is temporarily no longer needed for efficient use of the memory unit 30. In the following explanation, external memory 4
The operations related to 1 will be omitted unless particularly necessary. In this text, operations related to accessing the memory unit 30 include accessing the external memory 41 as necessary.
キーボード21より入力されたテキストデータ
はコントロール部10のプログラムを介し、メモ
リ30中のテキストデータエリアに格納されると
共に、コントロール部10上の画面編集処理プロ
グラムにより、画面に表示する形式に編集されて
(詳細後述)、リフレツシユメモリ52にパターン
コードが書き込まれる。書き込みと同時に画面表
示制御部50によりリフレツシユメモリ52内の
文字コードによりCRT文字パターンメモリ53
を読出し、CRTデイスプレイ51に逐次表示さ
れる。こうしてテキストがCRTデイスプレイ5
1に表示される(第3図70)。 Text data input from the keyboard 21 is stored in a text data area in the memory 30 via the program of the control section 10, and is edited into a format to be displayed on the screen by the screen editing processing program on the control section 10. A pattern code is written into the refresh memory 52 (details will be described later). At the same time as writing, the screen display control unit 50 uses the character code in the refresh memory 52 to write data to the CRT character pattern memory 53.
are read out and sequentially displayed on the CRT display 51. In this way, the text appears on the CRT display 5.
1 (Fig. 3, 70).
一般に、文書一ページを構成する文字列につい
てみると、その行数および一行の文字数は、
CRTの一画面に表示可能な行数および一行内の
文字数に比べて大きい。つまり、画面上には、作
成中の文書一ページの一部しか見えない。また、
位置指定に関しても、文書一ページ上の行位置、
行内文字位置と値と、CRT画面上での行位置、
行内文字位置の値との間にはずれがある。 Generally, when looking at the character strings that make up one page of a document, the number of lines and the number of characters per line are:
It is larger than the number of lines that can be displayed on one CRT screen and the number of characters in one line. In other words, only a portion of one page of the document being created is visible on the screen. Also,
Regarding position specification, line position on one page of document,
In-line character position and value, line position on CRT screen,
There is a discrepancy between the value and the inline character position.
これらのギヤツプを埋めるために、画面編集処
理プログラムは、以下の機能を持つ。 In order to fill in these gaps, the screen editing processing program has the following functions.
(1) リフレツシユメモリ52からカーソル位置を
読み込んだ際に得られる画面上のカーソルの行
位置、行内文字位置を文書ページ上の行位置、
行内文字位置に変換する機能、また、その逆に
文書ページ上の位置座標を画面上の位置座標に
変換し、リフレツシユメモリ52のその場所に
カーソルをセツトする機能。(1) The line position and in-line character position of the cursor on the screen obtained when reading the cursor position from the refresh memory 52, the line position on the document page,
A function to convert the position of a character in a line, or vice versa, a function to convert position coordinates on a document page to position coordinates on the screen, and set a cursor at that position in the refresh memory 52.
(2) 文書ページ上での行位置、行内文字位置に対
する文字列表示要求をその位置に関して、画面
上の行位置、行内文字位置に変換し、その画面
上の位置に表示する機能。(2) A function that converts a character string display request for a line position or inline character position on a document page into a line position or inline character position on the screen, and displays the string at that position on the screen.
(3) 文書1ページの範囲において、どの部分の文
字列でも画面上に見えるようにするための上下
方向のスクロール機能および左右方向のスクロ
ール機能。(3) A vertical scrolling function and a horizontal scrolling function to make any part of the character string visible on the screen within one page of a document.
これらの機能は、いずれも画面編集処理プログ
ラム内において、画面に表示されている文字列
が、文書ページ上のどの位置にある文字列かを対
応させたテーブルを用意しておくことにより構成
可能である。 All of these functions can be configured by preparing a table in the screen editing processing program that maps the character strings displayed on the screen to the character string positions on the document page. be.
以上により、画面は、文書ページの一部区画を
表示する窓と見ることができ、カーソル等の位置
情報もすべて文書ページ換算で取扱い可能とな
る。 As a result of the above, the screen can be viewed as a window that displays a section of a document page, and all positional information such as a cursor can be handled in terms of document pages.
次にこのような画面が表示されているとして、
公知の手法によりキーボード21上のカーソル
(図示せず)を動かし、図形データを置きたい領
域の左上隅部にて止める。この後、キーボード2
1上に用意された「枠空け」を表わす専用のフア
ンクシヨンキー(図示せず)を打鍵する。この入
力キーはキー入力制御部20を介しコントロール
部10に伝えられ、コントロール部10に用意さ
れた枠空けのためのプログラムモジユールが実行
される。この実行により、まず上述のカーソル位
置がリフレツシユメモリ52から読出され、コン
トロール部10に送られる。コントロール部10
はこのデータを取込むとともに、CRT画面上に
「図形データを置きたい領域の右下隅部を指定せ
よ」という意味のメツセージを表示し、利用者に
カーソルを所定の場所に移動するよう指示する。
ここで先のプログラムは、次のキー入力待ちとな
る。カーソルが枠領域の右下隅に移動された後に
「枠空け」を示す専用フアンクシヨンキーが押さ
れると、その時点でのカーソル位置がリフレツシ
ユメモリ52から読出され、コントロール部10
に送られる。これらのマンマシンインタラクシヨ
ンにより枠領域の左上隅、右下隅の画面内の行位
置、行内文字位置座標が定められる。現在の表示
画面が各文書ページのどの領域にあるかという情
報をもとにして、枠空けのプログラムの実行によ
り、枠の画面内の行位置、行内文字位置を、プリ
ントページ内の枠の行位置と文字位置に変換す
る。これらの値は、当該位置の枠領域に関するデ
ータとして、メモリ30中、枠領域定義データに
記憶される。 Next, if you see a screen like this,
A cursor (not shown) on the keyboard 21 is moved using a known method and stopped at the upper left corner of the area where the graphic data is to be placed. After this, keyboard 2
1. Press the dedicated function key (not shown) prepared above that indicates "Empty frame." This input key is transmitted to the control section 10 via the key input control section 20, and a program module for emptying the frame prepared in the control section 10 is executed. By this execution, the above-mentioned cursor position is first read out from the refresh memory 52 and sent to the control section 10. Control section 10
At the same time as importing this data, it displays a message on the CRT screen saying, ``Specify the lower right corner of the area where you want to place the graphic data,'' and instructs the user to move the cursor to the specified location.
At this point, the previous program waits for the next key input. When the dedicated function key indicating "Empty Frame" is pressed after the cursor has been moved to the lower right corner of the frame area, the cursor position at that point is read from the refresh memory 52, and the control unit 10
sent to. These man-machine interactions determine the line positions and in-line character position coordinates within the screen of the upper left corner and lower right corner of the frame area. Based on the information on which area of each document page the current display screen is located in, the frame emptying program is executed to determine the line position and character position within the line of the frame on the print page. Convert to position and character position. These values are stored as frame area definition data in the memory 30 as data regarding the frame area at the position.
枠領域定義データは、各枠ごとに第2図aの形
式でメモリ部30に格納されている。 The frame area definition data is stored in the memory section 30 in the format shown in FIG. 2a for each frame.
すなわち、フイールド302aには、この枠内
に印示されるべき図形データがすでにメモリ部3
0の図形データエリアに格納されているのか、あ
るいは、またデータはなく、単に枠領域のみ空い
ているのかを識別するフラグがストアされる。 That is, the field 302a contains the graphic data to be printed within this frame that has already been stored in the memory unit 3.
A flag is stored that identifies whether the data is stored in the graphic data area 0 or whether there is no data and only the frame area is empty.
また、先に求められた左上隅、右下隅のページ
上換算での行および行内文字位置がフイールド3
02b〜302eにストアされる。フイールド3
02fには、この枠内に印加されるべき図形デー
タがすでにメモリ部30内の図形データエリアに
格納されているときには、その格納アドレスがス
トアされるようになつている。データがまだない
ときには、無効の値となつている。 Also, the line and in-line character position in the top left corner and bottom right corner calculated earlier are field 3.
02b to 302e. field 3
When the graphic data to be applied within this frame is already stored in the graphic data area in the memory section 30, the storage address is stored in 02f. If there is no data yet, the value is invalid.
一つの表示画面に複数の枠を設けるときには、
以上の操作が繰り返される。 When setting multiple frames on one display screen,
The above operations are repeated.
以上のようにして、カーソルにより枠空けの指
示がなされる(第3図72)。 In the manner described above, the cursor is used to instruct the user to empty the frame (FIG. 3, 72).
この後コントロール部10内の画面表示用編集
処理のプログラムに制御が移り、コントロール部
10では、枠領域定義データをもとにして、メモ
リ30から順次に読み出したテキストデータの表
示アドレスを判定し、全ての文字列を枠領域の外
に配列させるようにテキストデータを編集する。
このような指定枠領域外へのテキストの自動レイ
アウトは、例えば特開昭55−43633号で知られて
いる。枠空けされた後のテキストデータの文字コ
ードを、画面上に表示するために、リフレツシユ
メモリ52に送り、画面表示制御部50を介し、
CRTデイスプレイ51の画面上に枠空け後のテ
キストが表示される(第3図74)。以上までの
処理により、画面上には枠空けされた文書が、メ
モリ上にはテキストデータと共に枠に関する管理
データがそれぞれ生成された。ここで本装置は次
のキー入力待ちになる。 After that, the control is transferred to the screen display editing processing program in the control unit 10, and the control unit 10 determines the display address of the text data sequentially read from the memory 30 based on the frame area definition data. Edit the text data so that all strings are arranged outside the frame area.
Such automatic layout of text outside the designated frame area is known, for example, from Japanese Patent Application Laid-open No. 43633/1983. The character code of the text data after the frame is blanked is sent to the refresh memory 52 in order to be displayed on the screen, and via the screen display control unit 50,
The text after the frame is blanked is displayed on the screen of the CRT display 51 (FIG. 3, 74). Through the processes described above, a document with a frame has been created on the screen, and management data regarding the frame along with text data has been generated in the memory. At this point, the device waits for the next key input.
次に、本発明のもう一つの前提であるところの
印刷様式パラメータ(第2図b)について説明す
る。 Next, the printing format parameters (FIG. 2b), which is another premise of the present invention, will be explained.
テキストデータは、印刷時に見やすくするため
に、いくつかの種類の行間隔、行内文字間隔のう
ちから適当なものが選ばれ、その様式に従つてい
印刷される。第4図に示すように行間隔Yと文字
間隔Xは、図形データ定義以前にユーザより選択
指示されており、各々、ドツト数/行、あるい
は、ドツト数/字という単位でメモリ部30の印
刷様式パラメータエリアのフイールド304a,
bに保持される。ここで、先程設定した枠の大き
さが、印刷時には、これら行間隔、文字間隔の選
び方で変つてくることに注意を要する。なお、そ
の他の印刷様式、例えばレフトハンドマージン等
のパラメータは、本発明の内容に直接関与しない
ため、第2図bの「その他のパラメータ」エリア
304cにストアされると述べるに止める。 In order to make text data easier to read when printed, an appropriate one is selected from among several types of line spacing and in-line character spacing, and the text data is printed according to that format. As shown in FIG. 4, the line spacing Y and the character spacing Field 304a in the format parameter area,
b. Note that the size of the frame you set earlier will change during printing depending on how you choose line spacing and character spacing. Note that other printing format parameters, such as left hand margin, etc., are not directly related to the content of the present invention, so it will only be stated that they are stored in the "other parameters" area 304c in FIG. 2b.
次に、本発明の主題である文書上への図形デー
タの埋め込みに関する制御方式に関して述べる。 Next, a control method for embedding graphic data on a document, which is the subject of the present invention, will be described.
前述までの処理により、本装置はキー入力待ち
となつている。ここでは、文書編集に関するキー
は何でも受けつけられる状態にある。 As a result of the processing described above, the device is waiting for a key input. Here, any key related to document editing can be accepted.
図形処理への切換えは、以下の方式にて実現さ
れる。 Switching to graphic processing is realized by the following method.
カーソルを移動し、前述までの処理によつて得
られている枠内(枠内であればどこでもよい)に
カーソルを置く、この後「図形処理」を意味する
専用のフアンクシヨンキー(図示せず)を打鍵す
る(第31図76)。この入力キーはキー入力制
御部20を介してコントロール部10に伝えら
れ、コントロール部10に用意された図形処理プ
ログラムが起動される。本プログラムの働きによ
り、フアンクシヨンキーが打鍵された時点でのカ
ーソルの位置が調べられ、その位置がページ上の
どの枠内なのか、あるいは枠内でないのかが判定
される。前述のごとく、枠に関する情報としてす
でに枠の領域に関する位置情報が各枠ごとにメモ
リ30中に枠領域定義データとして記憶、管理さ
れており、前述の判定は、これら情報と、得られ
たカーソル位置との比較によつてなされる。結果
として、そのカーソル位置がある枠内にあること
が見つかつた際、さらにプログラムの働きによ
り、その枠が印刷時にどういう大きさになるのか
を次のようにして算出する。 Move the cursor and place it within the frame obtained by the above processing (anywhere within the frame is fine), then press the dedicated function key (not shown) that means "shape processing". ) (Figure 31, 76). This input key is transmitted to the control section 10 via the key input control section 20, and a graphic processing program prepared in the control section 10 is started. This program checks the position of the cursor at the time the function key is pressed, and determines whether the cursor is within a frame on the page or not. As mentioned above, positional information regarding the frame area is already stored and managed as frame area definition data in the memory 30 for each frame, and the above-mentioned determination is based on this information and the obtained cursor position. This is done by comparing with As a result, when it is found that the cursor position is within a certain frame, the program further calculates what size that frame will be when printed as follows.
まず、メモリ部30内の枠領域定義データ内の
枠の左上隅、右下隅の行、文字位置情報から枠の
行数、行内文字数を求める。これらの行数、文字
数と印刷様式パラメータの行間隔304a、行内
文字間隔304bの積により印字されたときの枠
のたて方向、よこ方向の物理長さを求める。 First, the number of lines of the frame and the number of characters in the line are determined from the upper left corner, lower right corner lines, and character position information of the frame in the frame area definition data in the memory unit 30. The physical length in the vertical and horizontal directions of the frame when printed is determined by the product of the number of lines and characters and the line spacing 304a and in-line character spacing 304b of the printing format parameters.
この結果、枠領域のたて方向、よこ方向の物理
長(ドツト数)が求まり、この値は、当該枠の枠
内ベクトルデータ(つまり図形データ)の一部と
して保持され、さらに、この値を用いて、枠領域
表示用の線分データ(線分の始点、終点からなる
もの)が発生され、このデータはメモリ部30の
適当なワークエリアにストアされ、図形作画可能
領域の範囲として用いられる。詳細は後述する
が、図形としての各データ例えばベクトルデー
タ、図形内の文字列データはこの枠領域の物理長
の範囲でドツトデータに展開されることになる。 As a result, the physical length (number of dots) in the vertical and horizontal directions of the frame area is determined, and this value is retained as part of the frame vector data (i.e., figure data) of the frame. is used to generate line segment data (consisting of the starting point and ending point of the line segment) for displaying the frame area, and this data is stored in an appropriate work area of the memory unit 30 and used as the range of the graphic drawing area. . Although details will be described later, each data as a figure, such as vector data and character string data within a figure, will be developed into dot data within the physical length of this frame area.
次に図形データの入力法について説明する。 Next, a method of inputting graphic data will be explained.
この時点では、まだ画面に枠空けされたテキス
トデータが表示されているが、図形作画時にはテ
キスト中の枠は、印刷時の枠に比べて大きさ、た
とよこ比も違うため、使用しない。そこで、プリ
ント・イメージの図形表示のために、CRT画面
を図形専用に使用するように、旧テキスト画面を
削去する(リフレツシユメモリ52に空白コード
を書き並べる。)
図形データの入力法の一例としてグラフデータ
入力を取り上げる。グラフデータは、フアンクシ
ヨンキーの打鍵により、CRT画面にグラフのメ
ニユーを表示し、グラフの種類をユーザに選択さ
せる。ユーザの選択に基づき、コントロール部1
0上に用意された所定のグラフデータ入力に関す
るプログラムが起動され、そのプログラムの働き
により、グラフのデータ(例えば円グラフにおけ
る百分率等)の入力操作(キーボード21と
CRTデイスプレイ51間でのマンマシンインタ
ラクシヨン)を支援する。その結果取り込まれた
グラフのデータは、先程設定した枠領域の大きさ
の中に入るようなベクトルデータ(曲線、直線等
を近似する線分の始点と終点の組からなるデー
タ)列に展開され、図形データ(第2図cフイー
ルド303c)の中に格納される。ベクトルデー
タの格納が完了すると、次にベクトルデータをド
ツトデータに変換し、CRT画面に表示するプロ
グラムを起動する。本プログラムは、以下の働き
を行なう。 At this point, the text data with a blank frame is still displayed on the screen, but the frame in the text is not used when drawing graphics because it has a different size and aspect ratio than the frame when printing. Therefore, in order to display the graphics of the print image, the old text screen is deleted so that the CRT screen is used exclusively for graphics (blank codes are written in the refresh memory 52).An example of how to input graphics data Let's take graph data input as an example. For graph data, pressing the function key displays a graph menu on the CRT screen and allows the user to select the type of graph. Based on the user's selection, control part 1
A program for inputting predetermined graph data prepared on the computer is started, and the operation of the program allows input operations (keyboard 21 and
Man-machine interaction between CRT displays 51 is supported. The resulting graph data is expanded into a sequence of vector data (data consisting of a pair of starting and ending points of a line segment that approximates a curve, straight line, etc.) that fits within the size of the frame area set earlier. , is stored in the graphic data (FIG. 2 c field 303c). Once the vector data has been stored, a program is started that converts the vector data into dot data and displays it on the CRT screen. This program performs the following functions.
(1) プリント時のドツト長で与えられている枠領
域の大きさが、CRTデイスプレイの画面の表
示面積内に入るよう、各ベクトルデータの各々
を適当な倍率に縮尺する(たてよこ同じ倍率に
縮尺する)。(1) Each vector data is scaled to an appropriate magnification so that the size of the frame area given by the dot length during printing falls within the display area of the CRT display screen (the same magnification is used both vertically and horizontally). ).
(2) さらに、CRTの画面のドツトピツチは、横
方向に比べて縦方向が大きく(たとえば1.3倍)
一方、プリンタのドツトピツチは横方向と縦方
向とが等しいので、CRTとプリンタでは、表
示のドツトピツチについて、たとよこ比率に差
があり、例えばプリント時に正方形となる枠領
域も、ドツトピツチの差から画面上、偏平す
る。そこで、この偏平を補正するように、各ベ
クトルデータのたて方向の座標値をある偏平倍
率(今の例では、1.3分の1)で縮尺するか、
あるいは横方向の座標値をこの偏平倍率の逆の
値(今の例では1.3倍)で拡大する。これら縮
尺操作を、枠領域を現わす線分データおよび図
形データエリア内のフイールド303c(第2
図c)の中のベクトルデータのドツト展開処理
を行なう。ドツト展開はCRTの1文字表示領
域ごとに、その領域に位置する図形の線分に対
するドツトパターンを発生することにより行な
い展開したドツトデータは、CRT文字パター
ンメモリ53上の文字記憶の第1の領域とは区
分された第2の領域に格納され、これに対応す
るコードを発生し、これをリフレツシユメモリ
52の該当位置へ書込む。(2) Furthermore, the dot pitch of a CRT screen is larger in the vertical direction than in the horizontal direction (for example, 1.3 times).
On the other hand, since the dot pitch of a printer is the same in the horizontal and vertical directions, there is a difference in the horizontal and vertical ratios of the dot pitch displayed between CRTs and printers.For example, the frame area that becomes a square when printing is also , oblate. Therefore, to correct this flattening, either scale the vertical coordinate values of each vector data by a certain flattening factor (1/1.3 in the current example), or
Alternatively, expand the horizontal coordinate value by the opposite value of this flatness magnification (1.3 times in the current example). These scaling operations are performed using the line data representing the frame area and the field 303c (second
Dot expansion processing is performed on the vector data in Figure c). Dot development is performed by generating a dot pattern for the line segment of the figure located in each character display area of the CRT, and the developed dot data is stored in the first area of character storage on the CRT character pattern memory 53. A corresponding code is generated and written to the corresponding location in the refresh memory 52.
この後、図形(現時点では線分要素のみ表示
されているもの)の中に、文字列データを入力
していく。文字列データは、ワードプロセツサ
において通常に具備される文字列を作成するプ
ログラムにより、キーボード21から、データ
が入力される。入力された文字列は、テキスト
データとは区別され、図形内の文字データとし
て、図形データエリア(第2図cフイールド3
03c)中に格納される。また文字列の表示
は、前述のように、CRT文字パターンメモリ
53を用い、その位置情報は、CRT表示位置
(行位置、行内文字位置)で管理される。この
値は、プリント時に、先程述べた縮小倍率、偏
平倍率に基づき、その値から逆算して、プリン
ト開始のドツト位置に変換される。リフレツシ
ユメモリ52は、いわば単層の構造であり、画
面上のある位置には、1つのコード、1つのパ
ターンのみが対応するものである。したがつ
て、線分パターンと、文字パターンは、画面上
の表示区分(セル)のうえでは、重畳されな
い。ここでは、プログラムの働きにより、同一
表示区画上に線分と文字が競合する際には、文
字を優先して表示する(文字コードをリフレツ
シユメモリ52に書込む)ことにする。従つ
て、コントロール部10は、まず線分パターン
コードをリフレツシユメモリ52に書込む処理
をした後、必要ならば、文字コードを新たにリ
フレツシユメモリ52に書込む。先に述べたベ
クトルデータをドツトデータに変換し、CRT
画面に表示するプログラムは、かかる構成によ
つて実現され、かつこれにより表示されるもの
は、プリント印刷時と同じ枠領域のたてよこ比
を持つものが得られることとなる(第3図7
8)。 After this, character string data is input into the figure (currently only line elements are displayed). The character string data is input from the keyboard 21 using a program for creating character strings that is normally provided in a word processor. The input character string is distinguished from text data and is stored in the figure data area (FIG. 2 c field 3) as character data within the figure.
03c). Further, as described above, the character string is displayed using the CRT character pattern memory 53, and its position information is managed by the CRT display position (line position, in-line character position). At the time of printing, this value is calculated backward from the value based on the reduction magnification and flatness magnification mentioned earlier and is converted to the dot position at the start of printing. The refresh memory 52 has a so-called single-layer structure, and only one code and one pattern correspond to a certain position on the screen. Therefore, the line segment pattern and the character pattern are not superimposed on the display section (cell) on the screen. Here, due to the function of the program, when a line segment and a character conflict on the same display section, the character is displayed with priority (the character code is written in the refresh memory 52). Therefore, the control section 10 first writes the line segment pattern code into the refresh memory 52, and then writes a new character code into the refresh memory 52 if necessary. Convert the vector data mentioned above to dot data and display it on a CRT.
The program displayed on the screen is realized by this configuration, and the displayed item has the same vertical-to-width ratio of the frame area as when printing (see Fig. 3, 7).
8).
以上の図形作成までの過程より、図形データ
(第2図c)が完成する。 Through the above process up to graphic creation, graphic data (FIG. 2c) is completed.
図形データ(第2図c)の項目詳細は下記の通
り。 The details of the graphic data (Fig. 2c) are as follows.
(1) データ識別(303a)
データ(303c)の内容が、下記のいずれ
かであるかを識別する。(1) Data identification (303a) Identifies whether the content of data (303c) is one of the following.
(a) 図形データの共通情報
枠の縦方向、横方向の物理長、縮小倍率、
偏平倍率、など
(b) ベクトルデータ列
始点、終点より成る。各々の座標値は印刷
時の枠領域のドツト長換算である。 (a) Common information for graphic data Physical length of the frame in the vertical and horizontal directions, reduction ratio,
Oblate magnification, etc. (b) Vector data string Consists of a starting point and an ending point. Each coordinate value is a dot length conversion of the frame area at the time of printing.
(c) 図形内文字データ列 位置座標、文字コード列より成る。 (c) Character data string in figure Consists of position coordinates and character code string.
(2) ポインタ(303b)
複数個の図形データを一連づけするために、
以降にデータが続くのであれば、そのメモリ上
のアドレスを保持する。以降に続くデータがな
ければ終了を示すデータが書き込まれている。(2) Pointer (303b) In order to connect multiple pieces of graphic data,
If data continues after that, its memory address is retained. If there is no subsequent data, data indicating the end has been written.
(3) データ(303c) 前述(a)の通り。(3) Data (303c) As mentioned in (a) above.
これらデータの先頭アドレスは、枠内領域定義
データ内の、枠内データ格納先アドレス(302
f)で保持されている。以上までは、枠内に図形
データを作ることを前提とした方式についてであ
つたが、同様な考え方として、枠が見つかつた時
点で、その枠についてすでに図形データが格納さ
れているのなら、それを直ちに画面に表示するよ
うな構成も可能である。 The start address of these data is the frame data storage destination address (302
f). Up until now, we have been talking about the method that assumes that graphic data is created within a frame, but in a similar way, when a frame is found, if graphic data is already stored for that frame, then It is also possible to have a configuration in which the information is immediately displayed on the screen.
かかる方式によつて、メモリ30上にテキス
ト、枠、図形の3種のデータが統一的に管理され
うることになる。その後図形終了キー打鍵(第3
図80)により、元の枠空けされたテキスト画面
が表示される(第3図82)。印刷時には、印刷
の起動を意味するキーが打鍵されると(第3図8
4)コントロール部10上の印刷に関するプログ
ラムを起動し、この働きにより、テキスト、枠、
図形を同時に参照し、テキストはコードデータと
して与えられるので、それをもとにプリンタ文字
パターンメモリ62より該当する文字パータンを
取り出し、1行分のドツトデータバツフア63の
所定位置に格納する。さらに、その出力行が枠領
域をよぎつているかを枠領域定義データよりに判
別し、枠であり、かつ枠の中のデータが存在する
のであれば、そのデータ(図形ベクトル)をドツ
トデータに展開し、同様にドツトデータバツフア
62に格納することで一度にこれらの混在したも
のを作り出す。なお、印字のときのドツトパター
ンの展開は、表示のときと異なり、縮小、偏平化
等の操作は行なわない。その後、印刷制御部60
を介し、プリンタ61に印刷させる(第3図8
6)。上例はプリンタ61をワイヤドツトプリン
タのようにスキヤンするタイプのものを想定して
いる。 With this method, three types of data, text, frame, and graphic data, can be managed in a unified manner on the memory 30. Then press the figure end key (3rd
80), the original text screen with a blank frame is displayed (FIG. 3 82). When printing, when a key indicating the start of printing is pressed (Fig. 3, 8)
4) Start the printing program on the control unit 10, and use this function to print text, frames,
Since the graphics are referred to at the same time and the text is given as code data, the corresponding character pattern is taken out from the printer character pattern memory 62 based on it and stored at a predetermined position in the dot data buffer 63 for one line. Furthermore, it is determined whether the output line crosses the frame area based on the frame area definition data, and if it is a frame and data inside the frame exists, that data (figure vector) is expanded into dot data. However, by similarly storing them in the dot data buffer 62, a mixture of these is created at once. Note that, unlike the development of the dot pattern during printing, operations such as reduction and flattening are not performed, unlike when displaying. After that, the print control section 60
The printer 61 is made to print via the
6). The above example assumes that the printer 61 is of a type that scans like a wire dot printer.
その後、プリンタを、1文字高さ分(第4図で
は、文字A,Bの高さ)のみ改行し、先に表示し
た図形に連なる図形をプリントする。この後、行
間隔Y(第4図)と、上述の1文字高さ分との差
だけ改行し、次の文字行について、文字と図形パ
ターンの印字を繰り返す。 Thereafter, the printer changes the line by one character height (in FIG. 4, the height of letters A and B) and prints a figure that is continuous with the previously displayed figure. Thereafter, a line break is made by the difference between the line spacing Y (FIG. 4) and the height of one character described above, and printing of characters and graphic patterns is repeated for the next character line.
勿論、文字パターンと図形パターンとが混在せ
ず、文字パターンのみを有する行では、行間隔Y
ごとの改行を行えばよい。また、図形パターンと
文字パターンの混在する行については、まず、文
字パターンのみを印字し、しかる後、改行しない
で、同一行内に図形パターンを印字する方法を採
ることも有効である。 Of course, in a line that has only a character pattern without a mixture of character patterns and graphic patterns, the line spacing Y
Just do a line break for each. Furthermore, for lines containing a mixture of graphic patterns and character patterns, it is also effective to first print only the character pattern, and then print the graphic pattern within the same line without line breaks.
以上の実施例では、第3図78に示すように、
図形作画領域を表示するときに、枠空けされたテ
キスト画面の表示を止め、図形作画領域用枠のみ
を表示した。しかし、場合によつては、第3図7
4に示す枠内に、図形印字領域枠に比例した大き
さの図形作画領域用枠を表示し、この後の枠内に
図形を作画するようにしてもよい。 In the above embodiment, as shown in FIG. 3 78,
When displaying a graphic drawing area, the text screen with a blank frame was stopped and only the frame for the graphic drawing area was displayed. However, in some cases,
A figure drawing area frame having a size proportional to the figure printing area frame may be displayed within the frame shown in 4, and a figure may be drawn within the subsequent frame.
また、以上の実施例では、図形データをベクト
ルデータとして管理する方法について述べたが、
本方式に依れば、ベクトルでなく、例えばFAX
等より入力した画像データであつても容易に対処
できる。 Furthermore, in the above embodiment, a method for managing graphic data as vector data has been described;
According to this method, instead of vectors, for example, FAX
Even image data input from other sources can be easily handled.
以上の実施例の説明からも明らかな如く、本発
明によれば、表示画面上に出力装置側の実際の出
力形状と同じ図形作成用の枠が表示されるため、
ユーザはこの枠内でモニタした図形と同一の図形
をもつ文書を得ることができ、文書作成の操作が
著しく改善される。
As is clear from the description of the embodiments above, according to the present invention, a frame for creating a figure that is the same as the actual output shape of the output device is displayed on the display screen.
The user can obtain a document with the same graphic as the graphic monitored within this frame, and the document creation operation is significantly improved.
第1図は本発明による文書編集装置の1実施例
を示すブロツク構成図、第2図はメモリ30に格
納されるデータ構造の1例を示す図、第3図は文
書編集の過程を説明するための図、第4図はテキ
ストの文字ピツチと行ピツチを説明するための図
である。
FIG. 1 is a block diagram showing one embodiment of the document editing device according to the present invention, FIG. 2 is a diagram showing an example of the data structure stored in the memory 30, and FIG. 3 explains the process of document editing. FIG. 4 is a diagram for explaining the character pitch and line pitch of text.
Claims (1)
のデータ入力または指令入力に応答して制御動作
するデータ処理装置とからなる文書編集装置にお
いて、 上記入力装置は、印刷書式を指定するための手
段と、テキストデータおよび図形データを入力す
るための手段と、テキスト中に設定すべき枠空け
領域を指定するための手段と、テキストデータ入
力モードと図形データ入力モードとの切替を指令
するための手段と、印刷装置への出力を指令する
ための手段とを備え、 上記表示装置は、上記データ入力手段から入力
されたテキストデータを所定の行間隔および行内
文字間隔で表示画面に表示するテキストデータ表
示モードと、上記データ入力手段から入力された
図形データに応じた描画を表示画面に表示する図
形表示モードとを有し、 上記データ処理装置は、 上記印刷書式指定手段によつて指定された印刷
時の行間隔および行内文字間隔を含む印刷書式デ
ータを記憶するための手段と、 上記表示装置をテキストデータ表示モードで動
作させ、上記データ入力手段から入力されたテキ
ストデータの少なくとも一部を上記表示装置に出
力する手段と、 テキストデータ表示画面で上記枠空け領域指定
手段によつて指定された枠空けデータを記憶する
ための手段と、 上記データ入力モード切替指令手段によつて図
形データ入力モードへの切替が指令された時、上
記表示装置を図形表示モードに切替え、上記表示
画面に印刷出力上の枠領域と相似した図形表示枠
を表示し、上記データ入力手段から入力された図
形データに応じて上記図形表示枠内に印刷出力上
の図形と相似した図形を表示させるための手段
と、 上記印刷指令手段から印刷指令が入力されたと
き、上記枠空けデータに基づいて枠空けされ、上
記印刷書式データに従つた印刷行間隔および行内
文字間隔をもつテキスト文字列と、上記枠内に位
置付けされた上記表示図形と相似した図形とから
なる編集文書を印刷装置に出力させるための手段
と を有することを特徴とする文書編集装置。 2 前記データ処理装置が、 前記枠空け指令手段から枠データが入力された
時、枠空け指定された領域内にテキスト文字列を
含まないように編集文書中のテキスト文字列の配
置を変更し、枠空けされたテキスト文字列を前記
表示画面に表示出力させるための手段と、 図形データ入力モードへの切替指令が与えられ
た時、テキスト表示画面を消去した後、前記図形
データ入力のための枠領域を前記表示画面に出力
させるための手段と を有することを特徴とする第1項記載の文書編集
装置。[Scope of Claims] 1. A document editing device comprising an input device, a display device, and a data processing device that performs control operations in response to data input or command input from the input device, wherein the input device is configured to input a print format. a means for specifying a frame area to be set in the text, a means for inputting text data and graphic data, a means for specifying a frame blank area to be set in the text, and switching between a text data input mode and a graphic data input mode. and a means for commanding output to a printing device, and the display device displays text data input from the data input device at predetermined line spacing and in-line character spacing on a screen. The data processing device has a text data display mode in which the data is displayed on the display screen, and a graphic display mode in which a drawing corresponding to the graphic data inputted from the data input means is displayed on the display screen. means for storing printing format data including line spacing and in-line character spacing specified during printing; and operating the display device in a text data display mode to store at least text data input from the data input means. means for outputting a part of the data to the display device; means for storing frame blank data specified by the frame blank area specifying means on the text data display screen; and means for storing frame blank data specified by the frame blank area specifying means on the text data display screen; When switching to the graphic data input mode is commanded, the display device is switched to the graphic display mode, a graphic display frame similar to the frame area on the printout is displayed on the display screen, and the data input from the data input means is means for displaying a figure similar to a figure on the printed output in the figure display frame according to the figure data set in the print output; To cause the printing device to output an edited document consisting of a text string that is spaced out and has print line spacing and in-line character spacing according to the print format data, and a figure similar to the display figure positioned within the frame. A document editing device comprising: means for editing a document. 2. When the frame data is input from the frame emptying command means, the data processing device changes the arrangement of the text string in the edited document so that the text string is not included in the area designated for frame emptying, means for displaying and outputting a text string with a blank space on the display screen, and a frame for inputting the graphic data after erasing the text display screen when a switching command to a graphic data input mode is given; 2. The document editing device according to claim 1, further comprising means for outputting the area to the display screen.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63017090A JPS63211454A (en) | 1988-01-29 | 1988-01-29 | document editing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63017090A JPS63211454A (en) | 1988-01-29 | 1988-01-29 | document editing device |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55155860A Division JPS5781670A (en) | 1980-11-07 | 1980-11-07 | Editing method of document |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63211454A JPS63211454A (en) | 1988-09-02 |
| JPH057742B2 true JPH057742B2 (en) | 1993-01-29 |
Family
ID=11934288
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63017090A Granted JPS63211454A (en) | 1988-01-29 | 1988-01-29 | document editing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS63211454A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02166552A (en) * | 1988-12-21 | 1990-06-27 | Ricoh Co Ltd | document creation device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5421127A (en) * | 1977-07-18 | 1979-02-17 | Canon Inc | Display system |
| JPS5543633A (en) * | 1978-09-22 | 1980-03-27 | Toshiba Corp | Document production device |
-
1988
- 1988-01-29 JP JP63017090A patent/JPS63211454A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63211454A (en) | 1988-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH028339B2 (en) | ||
| US6324554B1 (en) | Character processing apparatus | |
| JPH0541997B2 (en) | ||
| JPS58208865A (en) | Document producing device | |
| JPH057742B2 (en) | ||
| JPS6177958A (en) | document editing device | |
| JPH10187679A (en) | Table processing device and storage medium | |
| JP3277588B2 (en) | Image editing method | |
| JPS6244866A (en) | Area format setting system | |
| JPS62197873A (en) | text processing device | |
| JP2671365B2 (en) | Character / graphic editing device | |
| JP2751224B2 (en) | Document creation device | |
| JPH103371A (en) | Page layout comparator and page layout display device | |
| JPH0236482A (en) | information recording device | |
| JPS6411985B2 (en) | ||
| JPH076167A (en) | Formatting method | |
| JPS6359654A (en) | information processing equipment | |
| JPH05151206A (en) | Document processor having closed ruled line forming function | |
| JPH03263257A (en) | Document processor | |
| JPH0580013B2 (en) | ||
| JPH02228726A (en) | Picture processing device | |
| JPH08138070A (en) | Information processing device with frame editing function | |
| JPS59201129A (en) | Document producer | |
| JPH04282746A (en) | Document preparing device | |
| JPH03105556A (en) | Document processor |