JPH0320858A - Document editing device - Google Patents

Document editing device

Info

Publication number
JPH0320858A
JPH0320858A JP1156013A JP15601389A JPH0320858A JP H0320858 A JPH0320858 A JP H0320858A JP 1156013 A JP1156013 A JP 1156013A JP 15601389 A JP15601389 A JP 15601389A JP H0320858 A JPH0320858 A JP H0320858A
Authority
JP
Japan
Prior art keywords
height
line
floating
data
floating area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1156013A
Other languages
Japanese (ja)
Inventor
Toshiyuki Takada
高田 俊幸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP1156013A priority Critical patent/JPH0320858A/en
Publication of JPH0320858A publication Critical patent/JPH0320858A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To improve document editing efficiency by displaying a floating area by automatically expanding the row height of a row including the floating area or compressing the height of the floating area when the preset height of the floating area is superimposed on an adjacent row by performing document edit. CONSTITUTION:A row constitution processing means C comprises character string data at every row from the character string data and row information stored in a character string data storage means A and floating area data stored in a floating area data storage means B, and a height comparison means E compares the row height of each row with the height of the floating area corresponding to floating mark data on the row, and judges whether or not the height exceeds the row height. When the height of the floating area exceeds the row height, a row expansion means F displays the floating area after automatically expanding the row height to the height of the floating area, or it is displayed after automatically compressing the height of the floating area to the row height with a floating area compression means G.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は,編集する文書の行内に浮動領域を設定する
機能を持つ文書編集装置に関する.〔従来の技術〕 一般に、ワードプロセッサ,デスクトップパブリッシン
グ等の文書編集装置には、文書編集時に通常の文字では
表わせない数式や図形等を挿入したい場合に、高さと幅
を入力して行内に浮動領域を設ける機能を持つものがあ
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] This invention relates to a document editing device that has a function of setting a floating area within the lines of a document to be edited. [Prior Art] Generally, in document editing devices such as word processors and desktop publishing, when editing a document, if you want to insert a mathematical formula or figure that cannot be expressed with normal characters, you can enter a height and width to create a floating area within a line. There are some that have the function of providing

この浮動領域は、文書編集装置のテキスト記憶部に浮動
マークデータで記憶され,例えば第14図(a)に示す
ように文字データとともに浮動マークデータ■,■,■
が記憶される. そして、同図(b)に示すように浮動マークデータ■の
前に文字データ「ΔΔΔΔΔΔΔ」を挿入すると、それ
以後の文字列データが挿入した文字数分だけ後方へ移動
し、浮動マークデータの前の文字データを削除すれば、
その後の文字列データがその削除した文字数分だけ前方
に移動して行構成も変わる. そして、この文字列データとともに浮動マークデータも
移動するので、行内の浮動マークデータにつれて対応す
る浮動領域が文字方向に移動して表示される. その際、浮動マークデータが示す浮動領域が行の末尾か
らはみ出してしまうと、浮動領域全体を次行の先頭に移
動させるため,固定領域と異なり文書編集によって文字
列に変化があった場合に,設定し直す必要がないという
利点がある.しかし、この浮動領域を設定した後に、第
15図(a)に示すように、予め設定した1行の行高h
を浮動領域43の高さHより狭く設定し直してしまった
場合,その浮動領域と上下(横書きの場合)の行とが重
なってしまうことになる. そこで従来は、このような場合に第15図(b)に示す
ように、浮動領域43を設けた行とそれに隣接する行と
の間にそれぞれ改行マークを挿入して、1行分のスペー
スをあけて重ならないようにしていた. 【発明が解決しようとする課題〕 しかしながら上記のような文書編集装置では、文書の編
集中に浮動領域が隣接する行と重なるたびに改行操作を
行なわなければならないので、操作者にとって負担とな
っていた. また.m接する(上下の)行との重なりを解消するため
に改行を施してしまうと、例えば第15図(b)の例で
は文字『5」と「6」の間及び浮動領域と「10」の間
が改行されてしまうためつながらなくなり、浮動領域の
利点が失われてしまうという問題があった. この発明は,上記の点に鑑みてなされたものであり,文
書編集の際に設定した浮動領域が隣接する行と重なって
しまうような書式の変更があった場合に、自動的に重な
らないようにすると共に、浮動領域の利点が失われない
ようにすることを目的とする. 〔課題を解決するための手段〕 この発明は上記の目的を達戒するためになされたもので
あり,第1図の機能ブロック図に示すように,文字デー
タと浮動マークデータとからなる文字列データ,及び1
行の区切りと行高を示す行情報を記憶する文字列データ
記憶手段Aと、その文字列データ記憶手段Aに記憶され
た浮動マークデータに対応する浮動領域の高さと幅を示
す浮動領域データを記憶する浮動領域データ記憶手段B
と、 上記の文字列データと行情報及び浮動領域データとによ
って文字列データを行ごとに構成する行構成処理手段C
と、 行構威処理手段Cによって構成された行ごとの文字列デ
ータを表示する表示手段Dとを備えた文書編集装置にお
いて、 行構成処理手段Cによって構威された各行の行高とその
行に存在する上記浮動マークデータに対応する浮動領域
の高さとを比較してその高さが行高を越えるか否かを判
断する高さ比較手段Eと,高さ比較手段Eによって浮動
領域の高さが行高を越えると判断された行の行高を浮動
領域の高さまで拡張して表示手段Dに表示させる行拡張
手段Fとを設けたものである。
This floating area is stored as floating mark data in the text storage unit of the document editing device, and for example, as shown in FIG. 14(a), floating mark data ■, ■,
is memorized. Then, as shown in the same figure (b), when character data "ΔΔΔΔΔΔΔ" is inserted before the floating mark data ■, the subsequent character string data moves backward by the number of characters inserted, and the character data before the floating mark data If you delete character data,
Subsequent character string data will be moved forward by the number of deleted characters, and the line structure will also change. Since the floating mark data also moves along with this character string data, the corresponding floating area moves in the character direction as the floating mark data in the line is displayed. At that time, if the floating area indicated by the floating mark data extends beyond the end of the line, the entire floating area is moved to the beginning of the next line, so unlike fixed areas, if the character string changes due to document editing, The advantage is that there is no need to reconfigure the settings. However, after setting this floating area, as shown in FIG.
If it is set to be narrower than the height H of the floating area 43, the floating area and the lines above and below (in the case of horizontal writing) will overlap. Conventionally, in such a case, as shown in FIG. 15(b), a new line mark is inserted between the line in which the floating area 43 is provided and the line adjacent thereto to free up one line's worth of space. I left them open so they wouldn't overlap. [Problems to be Solved by the Invention] However, in the above-mentioned document editing device, a line break operation must be performed every time a floating area overlaps an adjacent line during document editing, which is a burden to the operator. Ta. Also. If a line break is applied to eliminate the overlap with m adjacent (upper and lower) lines, for example, in the example in Figure 15(b), the space between the characters "5" and "6" and between the floating area and "10" There was a problem in that the spaces between them were line breaks, which caused them to not connect, and the advantage of floating areas was lost. This invention was made in view of the above points, and is designed to automatically prevent the floating area set during document editing from overlapping when there is a format change that would cause the floating area to overlap an adjacent line. The purpose is to avoid losing the advantages of floating areas. [Means for Solving the Problems] This invention has been made to achieve the above object, and as shown in the functional block diagram of Fig. 1, a character string consisting of character data and floating mark data. data, and 1
A character string data storage means A that stores line information indicating line separation and line height, and floating area data that represents the height and width of the floating area corresponding to the floating mark data stored in the character string data storage means A. Floating area data storage means B to store
and a line configuration processing means C that configures character string data for each line using the above character string data, line information, and floating area data.
and a display means D for displaying character string data for each line constructed by the line structure processing means C, the line height of each line and the line constructed by the line structure processing means C. A height comparison means E compares the height of the floating area corresponding to the floating mark data existing in the area to determine whether the height exceeds the line height; A line expanding means F is provided for expanding the line height of a line determined to exceed the line height to the height of the floating area and displaying it on the display means D.

また、上記の文書編集装置において, 行拡張手段Fに代えて、高さ比較手段Eによって浮動領
域の高さが行高を越えると判断された行の浮動領域の高
さを行高まで縮小して表示手段Dに表示させる浮動領域
縮小手段Gを設けてもよい.さらに,行拡張手段Fと浮
動領域縮小手段Gを両方共設けると共に、そのいずれか
一方を指定して有効にする拡張・縮小指定手段Hを設け
るとよい. 〔作 用〕 この発明による文書編集装置は、文字列データ記憶手段
Aに記憶された文字列データ及び行情報と,浮動領域デ
ータ記憶手段Bに記憶された浮動領域データとから,行
構成処理手段Cが上記の文字列データを行ごとに構威し
,高さ比較手段Eがその構成された各行の行高とその行
に存在する浮動マークデータに対応する浮動領域の高さ
を比較して,その高さが行高を越えるか否かを判断する
.そして、浮動領域の高さが行の高さを越える場合には
行拡張手段Fがその行の高さを浮動領域の高さまで自動
的に拡張して表示させるので、改行操作をするような煩
わしさがなく,シかも最少限度の拡張で済むので浮動領
域の利点を失うことが少なくなる. あるいは、浮動領域縮小手段Gによって浮動領域の高さ
を行高まで自動的に縮小して表示させるようにすれば、
浮動領域が狭くなりはするが浮動領域の利点を失うよう
なことは完全に解消される。
Furthermore, in the above document editing device, instead of the line expansion means F, the height of the floating area of the line determined by the height comparison means E to exceed the line height is reduced by the line height. A floating area reduction means G may be provided for displaying on the display means D. Furthermore, it is preferable to provide both a line expansion means F and a floating area reduction means G, and an expansion/reduction specifying means H for specifying and validating either one of them. [Operation] The document editing device according to the present invention converts the character string data and line information stored in the character string data storage means A and the floating area data stored in the floating area data storage means B into line configuration processing means. C composes the above character string data line by line, and the height comparing means E compares the line height of each composed line with the height of the floating area corresponding to the floating mark data existing in that line. , determine whether the height exceeds the line height. If the height of the floating area exceeds the height of the line, the line expansion means F automatically expands the height of the line to the height of the floating area and displays it, so there is no need to bother with line feed operations. Since there is no storage space and only a minimum amount of expansion is required, the advantages of floating areas are less likely to be lost. Alternatively, if the floating area reduction means G automatically reduces the height of the floating area to the line height and displays it,
Although the floating area becomes narrower, the loss of the advantages of the floating area is completely eliminated.

〔実施例〕〔Example〕

以下、この発明の一実施例を第2図乃至第13図によっ
て具体的に説明する. 第2図は,この発明による文書編集装置の構成を示すブ
ロック図である. この文書編集装置は、入力装置であるキーボード1,マ
イクロコンピュータ(CPU)2,RAM,ROM等の
メモリ3,フロツビディスク装置等の記憶装1!4及び
CRT等の表示装Itsからなり、これらがバスライン
を介して接続されている.キーボード1は、文字・数字
を入力するキーや文書編集にかかわる各種の機能を指示
するキーを備え、文字データ,浮動マークデータの入力
、浮動領域の高さと幅の入力,行拡張あるいは領域縮小
のいずれか一方を有効にする指示の入力,行拡張あるい
は領域縮小の実行の入力等を行なう.CI’U2は、こ
の文書編集装置全体の制御を司るとともに、第1図に示
した行構成処理手段C,高さ比較手段E,行拡張手段F
,浮動領域縮小手段Gの実現とその他の文書編集に係わ
る機能の処理を行なう. メモリ3は、キーボード1によって入力される文字列デ
ータと浮動マークデータに対応する浮動領域データを一
時的に格納して,CPU2による処理を施すワークエリ
アであり、また、記憶装置4に記憶された文書データを
読み込んで編集する際のワークエリアともなる。すなわ
ち、第1図に示した文字列データ記憶手段A,浮動領域
データ記憶手段Bの役目を果たす。
Hereinafter, one embodiment of the present invention will be explained in detail with reference to FIGS. 2 to 13. FIG. 2 is a block diagram showing the configuration of a document editing device according to the present invention. This document editing device consists of a keyboard 1 as an input device, a microcomputer (CPU) 2, a memory 3 such as RAM and ROM, a storage device 1!4 such as a floppy disk device, and a display device Its such as a CRT. are connected via a bus line. The keyboard 1 has keys for inputting letters and numbers and keys for instructing various functions related to document editing, including inputting character data, floating mark data, inputting the height and width of a floating area, and expanding lines or reducing an area. Input instructions to enable one or the other, input to execute line expansion or area reduction, etc. The CI'U2 controls the entire document editing device, and also controls the line configuration processing means C, height comparison means E, and line expansion means F shown in FIG.
, implements the floating area reduction means G and processes other functions related to document editing. The memory 3 is a work area that temporarily stores floating area data corresponding to character string data and floating mark data input through the keyboard 1, and processes the data by the CPU 2. It also serves as a work area when reading and editing document data. That is, it serves as the character string data storage means A and the floating area data storage means B shown in FIG.

記憶装置4は,メモリ3で編集された文字列データ及び
浮動領域データを含む編集した文aデータを記憶する外
部記憶装置である. 表示装15は例えばCRT,LCD等のディスプレイ装
置(以下の説明ではrcRTJという)であり,メモリ
3に格納した文字列データと浮動領域データ及びその他
操作者に対する各種の指示メッセージ等を表示する. 次に、第3図は第2図のCPU2及びメモリ3の詳細な
機能の構成を示すブロック図であり、第2図と共通のも
のには同じ符号を付してある.キーボード1からキー人
力があると、入力制御部6を介してそのキーに対応する
データを入力文字識別部7に送る。
The storage device 4 is an external storage device that stores edited sentence a data including the character string data and floating area data edited in the memory 3. The display device 15 is, for example, a display device such as a CRT or LCD (referred to as rcRTJ in the following explanation), and displays character string data and floating area data stored in the memory 3, as well as various other instruction messages for the operator. Next, FIG. 3 is a block diagram showing the detailed functional configuration of the CPU 2 and memory 3 in FIG. 2, and the same parts as in FIG. 2 are given the same reference numerals. When a key is pressed from the keyboard 1, data corresponding to that key is sent to the input character identification section 7 via the input control section 6.

入力文字識別部7は、送られたデータを識別して文字入
力処理部8,浮動領域入力処理部9,行形式入力処理部
10,書式入力処理部11,編集処理部12のいずれか
へ送る. 文字入力処理部8は、文字データを受け取って文字列デ
ータ部13に記憶させた後、処理を頁構成処理部17に
移行させる. 浮動領域入力処理部9は、浮動マークデータと浮動領域
の高さ,幅と属性の通常の指定,行拡張指定,浮動領域
縮小指定と浮動実データとを受け取り、文字列データ部
13に浮動マークデータを文字データとともに記憶させ
,領域データ部14に浮動実データ及び浮動領域の高さ
と幅を記憶させる.なお、浮動実データは浮動領域を記
憶するテーブルに格納される。そして、処理を頁構成処
理部17に移行する. 行形式入力処理部10は,入力文字識別部7から送られ
た行ピッチ,行属性の行形式情報を行形式データ部15
に記憶させて、処理を頁構成処理部17に移行する. 書式入力処理部11は、紙サイズ,用紙方向,余白,段
組等の頁書式情報を受け取り、それを頁書式データ部1
日に記憶させて処理を頁構成処理部17に移行する. また、上記以外の編集機能の指示は編集処理部12に送
られて処理される. 頁構成処理部17は、行構成処理部1日によって行ごと
に構成された文字列データをもとに頁を構成する処理を
行なう. 頁構成データ部18は、頁構成処理部17によって構成
された頁ごとの情報を記憶する.行構戊処理部1日は、
文字列データ部1゛3から読み込んだ文字列データを、
領域データ部14,行形式データ部15及び頁書式デー
タ部16からそれぞれ読み込んだ浮動領域の高さと幅,
行形式情報,頁書式情報,行の高さのデータに基づいて
行ごとに構戊して行高を決定する処理、浮動領域の行内
のアドレスを決定する処理等を行なう。
The input character identification section 7 identifies the sent data and sends it to one of the character input processing section 8, floating area input processing section 9, line format input processing section 10, format input processing section 11, and editing processing section 12. .. After receiving the character data and storing it in the character string data section 13, the character input processing section 8 transfers the processing to the page composition processing section 17. The floating area input processing unit 9 receives the floating mark data, the normal specifications of the height, width and attributes of the floating area, the line extension specification, the floating area reduction specification, and the floating actual data, and inputs the floating mark into the character string data unit 13. The data is stored together with the character data, and the floating actual data and the height and width of the floating area are stored in the area data section 14. Note that floating actual data is stored in a table that stores floating areas. Then, the process is transferred to the page configuration processing section 17. The line format input processing section 10 inputs the line format information of the line pitch and line attributes sent from the input character identification section 7 to the line format data section 15.
, and the processing is transferred to the page configuration processing section 17. The format input processing section 11 receives page format information such as paper size, paper direction, margins, columns, etc., and inputs it to the page format data section 1.
The page structure processing section 17 then stores the page structure in the page structure processing section 17. Further, instructions for editing functions other than those mentioned above are sent to the editing processing section 12 for processing. The page configuration processing unit 17 performs processing to configure a page based on the character string data configured for each line by the line configuration processing unit 1. The page configuration data unit 18 stores information for each page configured by the page configuration processing unit 17. On the 1st day of the processing department,
The string data read from string data section 1-3,
The height and width of the floating area read from the area data section 14, line format data section 15, and page format data section 16, respectively,
Processing to determine line height for each line based on line format information, page format information, and line height data, and process to determine in-line addresses of floating areas are performed.

行構成データ部21は、行構成処理部19によって構威
された行の先頭の文字列データを記憶し、領域位置デー
タ部22は、浮動領域の行内の文字方向及び行方向のア
ドレスを記憶する.頁表示処理部23は,頁構成処理部
17によって構成された頁を表示する処理を行ない、行
表示処理部24へ行ごとの表示の処理を移行する.行表
示処理部24は、行構成データ部21,領域位置データ
部22に記憶された情報によって,頁表示処理部23の
処理による頁の文字列の表示に際して行ごとに表示デー
タを作成し、領域表示処理部25は、浮動マークデータ
に対応する浮動領域の浮動実データの表示データを作成
する.表示メモリ2Bは、行表示処理部24及び領域表
示処理部25で作威された表示データを格納して、表示
制御部27は、CRT5の制御を司ってその表示データ
をCRT5の画面上に表示させる.第4図は、第3図の
行構成処理部19による行構戒処理のフローチャートで
ある. 始めに,ステップ1で文字幅加算値(N)と行高の最大
値(MAX)とをそれぞれOにリセットする。この文字
幅加算値(N)は文字列データを読み込むごとにその文
字幅を加算する変数であり、行高の最大値(MAX)は
1行の文字列データが構威された時にその行の行高を決
定する変数である. 次に,ステップ2で文字列データ部13から1文字づつ
順に文字列データを読み込み、ステップ3で文末コード
もしくは改行コードか否かを判断する。
The line configuration data section 21 stores the character string data at the beginning of the line constructed by the line configuration processing section 19, and the area position data section 22 stores the character direction and line direction address within the row of the floating area. .. The page display processing unit 23 performs a process of displaying the page configured by the page configuration processing unit 17, and transfers the process of displaying each line to the line display processing unit 24. The line display processing unit 24 uses the information stored in the line configuration data unit 21 and the area position data unit 22 to create display data for each line when displaying character strings on a page by the processing of the page display processing unit 23, and The display processing unit 25 creates display data of the floating actual data of the floating area corresponding to the floating mark data. The display memory 2B stores the display data created by the line display processing section 24 and the area display processing section 25, and the display control section 27 controls the CRT 5 and displays the display data on the screen of the CRT 5. Display it. FIG. 4 is a flowchart of line structure precept processing by the line structure processing section 19 of FIG. First, in step 1, the character width addition value (N) and the maximum line height value (MAX) are each reset to O. This character width addition value (N) is a variable that adds the character width each time character string data is read, and the maximum value (MAX) of the line height is the value of the character string data when that line is read. This is a variable that determines the line height. Next, in step 2, character string data is read one character at a time from the character string data section 13, and in step 3, it is determined whether it is a sentence end code or a line feed code.

この判断により、文末コードあるいは改行コードならス
テップ4に進み、次行の先頭の文字を読み込んでリター
ンする. ステップ3において、文末コードもしくは改行コード以
外ならステップ5に進み、浮動マークデータであるか否
かを判断する. この判断によって,浮動マークデータならステップ6に
進み,領域データ部14のその浮動マークデータに対応
する浮動領域の幅を文字幅とし、ステップ7で浮動実デ
ータの属性が行拡張に指定されているか否かを判断する
Based on this judgment, if it is an end-of-sentence code or a line feed code, proceed to step 4, read the first character of the next line, and return. In step 3, if the code is other than a sentence end code or line feed code, proceed to step 5, and judge whether or not it is floating mark data. Based on this judgment, if it is floating mark data, proceed to step 6, set the width of the floating area corresponding to the floating mark data in the area data section 14 as the character width, and check whether the attribute of the floating actual data is specified as line extension in step 7. Decide whether or not.

ステップ7で行拡張が指定されていれば、ステップ8に
進んで浮動領域の高さを行高にしてステップ10に進み
、行拡張が指定されてなければ、ステップ9に進んで行
高をそのままにしてステップ10に進む. そして、ステップ10では、浮動領域の文字方向のアド
レスを領域位置データ部22に記憶させてステップ12
に進む。
If line extension is specified in step 7, proceed to step 8 and change the height of the floating area to the line height and proceed to step 10; if line extension is not specified, proceed to step 9 and leave the line height unchanged. and proceed to step 10. Then, in step 10, the address of the floating area in the character direction is stored in the area position data section 22, and step 12
Proceed to.

ステップ5において、浮動マークデータでなければステ
ップ11に進み、行構成データ部21に文字高に応じた
行高と文字幅を記憶させてステップ12に進む。
In step 5, if it is not floating mark data, the process proceeds to step 11, where the line configuration data section 21 stores the line height and character width corresponding to the character height, and the process proceeds to step 12.

ステップ↓2では、文字幅加算値(N)を1行の長さで
ある行幅と比較し,行幅の方が小さくなったら1行の構
成が終了したのでステップ4に進む。
In step ↓2, the character width addition value (N) is compared with the line width, which is the length of one line, and if the line width becomes smaller, it means that the configuration of one line has been completed, and the process proceeds to step 4.

この比較によって、行幅以下ならステップ13に進み、
文字幅加算値(N)にステップ6もしくはステップ11
における文字幅を新たに加算して、ステップ14に進む
Based on this comparison, if it is less than the line width, proceed to step 13,
Step 6 or Step 11 for character width addition value (N)
The character width in is newly added, and the process proceeds to step 14.

ステップ14では、行高(MAX)とステップ8,ステ
ップ9,ステップ11のいずれかにおいて決定した行高
とを比較して、行高の方が大ならステップ15でこの行
高を行高(MAX)とし、行高が行高(MAX)以下な
らそのままステップ2に戻る.最初は行高(MAX)=
Oであるから当然[MAX<行高]であり、上記ステッ
プで決定した行高を行高(MAX)とする. このようにして、文字列データを1文字づつ読み込み、
浮動領域の高さが文字高に応じた行高(MAX)を越え
る場合には、その浮動領域の高さを新たな行高(MAX
)にし、浮動領域の文字方向のアドレスを領域位置デー
タ部22に記憶させる処理を,読み込んだ文字列データ
の文字幅が1行の幅を越えるまで行なって行を構成する
.次に,行構成処理が終了すると頁構成処理部17によ
って頁構成処理を行なう. その頁構成処理について第5図のフローチャートによっ
て説明する. ステップ20で前述の行構成処理が終了すると,ステッ
プ21で頁内に行が納まるか否かを判断し、頁内に納ま
らなければステップ26へ進むが、納まればステップ2
2に進んで、行構成データ部21に行構成データを記憶
させ,ステップ23で浮動領域の行方向のアドレスを記
憶させる.そして、ステップ24で改頁コードか否かを
判断し.改頁コードならステップ26に進み、改頁コー
ドでなければステップ25に進む.ステップ25では、
文末コードか否かを判断し、文末コードなら頁構成処理
を終了し、文末コードでなければステップ20に戻る. ステップ26では、頁構成データ部18から次の頁構成
データを読み込んでステップ20に戻る.このようにし
て、行構成処理と頁構成処理が終了すると,行表示処理
部24による行表示処理を行なって行の表示をする。
In step 14, the line height (MAX) is compared with the line height determined in step 8, step 9, or step 11, and if the line height is larger, in step 15 this line height is changed to the line height (MAX). ), and if the line height is less than the line height (MAX), return to step 2. Initially, line height (MAX) =
Since it is O, naturally [MAX<line height], and the line height determined in the above step is set as the line height (MAX). In this way, read the string data one character at a time,
If the height of the floating area exceeds the line height (MAX) corresponding to the character height, the height of the floating area is set to the new line height (MAX).
) and stores the address in the character direction of the floating area in the area position data section 22 until the character width of the read character string data exceeds the width of one line to form a line. Next, when the line configuration processing is completed, page configuration processing is performed by the page configuration processing section 17. The page configuration process will be explained using the flowchart shown in FIG. When the above-mentioned line composition processing is completed in step 20, it is determined in step 21 whether the line fits within the page. If the line does not fit within the page, the process proceeds to step 26, but if it does, step 2
In step 2, the row configuration data is stored in the row configuration data section 21, and in step 23, the address of the floating area in the row direction is stored. Then, in step 24, it is determined whether or not it is a page break code. If it is a page break code, proceed to step 26; if it is not a page break code, proceed to step 25. In step 25,
It is determined whether or not it is an end-of-sentence code, and if it is an end-of-sentence code, the page configuration process is ended, and if it is not an end-of-sentence code, the process returns to step 20. In step 26, the next page configuration data is read from the page configuration data section 18, and the process returns to step 20. When the line configuration processing and page configuration processing are completed in this manner, the line display processing section 24 performs line display processing to display the lines.

その行表示処理について第6図のフローチャートによっ
て説明する. 始めに、ステップ30で文字列データ部13から文字列
データを1文字つづ読み込み、ステップ31で行構成デ
ータ部21の行構成データを参照して次行の先頭文字か
否かを判断する。
The line display process will be explained using the flowchart shown in FIG. First, in step 30, character string data is read character by character from the character string data section 13, and in step 31, it is determined whether or not it is the first character of the next line by referring to the line configuration data in the line configuration data section 21.

そして、先頭文字以外ならステップ32に進んで浮動マ
ークデータか否かを判断し,浮動マークデータならステ
ップ33へ進み,:4動領域の属性が領域縮小に指定さ
れているか否かを判断する。
If it is other than the first character, the process advances to step 32 to determine whether or not it is floating mark data, and if it is floating mark data, the process advances to step 33 to determine whether the :4 dynamic area attribute is designated as area reduction.

そして、領域縮小が指定されていればステップ34へ進
んで、領域表示処理部25によって浮動領域の高さを行
高まで縮小させ,それを表示制御部27によってCRT
5の画面上に表示させてステップ30に戻る. また,領域縮小が指定されてなければステップ35へ進
んで、浮動領域をそのまま表示させてステップ30に戻
る.領域拡張が指定されている場合は,第4図の行構成
処理において必要に応じてその行高が領域の高さまで拡
張されているので、ステップ35で浮動領域をそのまま
表示しても隣接する行の文字と重なることはない。
If area reduction is specified, the process proceeds to step 34, where the area display processing unit 25 reduces the height of the floating area to the line height, and the display control unit 27 displays the floating area on the CRT.
5 on the screen and return to step 30. If area reduction is not specified, the process proceeds to step 35, displays the floating area as is, and returns to step 30. If area expansion is specified, the line height is expanded to the area height as necessary in the line configuration process shown in Figure 4, so even if the floating area is displayed as is in step 35, adjacent lines It does not overlap with the characters.

ステップ32の判断で浮動マークデータでなければステ
ップ36に進み,文字データを表示させてステップ30
に戻る. こうして,読み込んだ文字列データがステップ31で次
行の先頭文字であると判断されたら、1行の表示処理を
終了する。
If it is not floating mark data as determined in step 32, the process advances to step 36, character data is displayed, and step 30
Return to. In this way, when it is determined in step 31 that the read character string data is the first character of the next line, the display process for one line is ended.

第7図(a),(b)は,浮動領域を含む行の表示例を
示す図である. すなわち、浮動領域の属性が行拡張に指定された場合は
同図(a)に示すように.浮動領域28を含む行の行高
hを浮動領域28の高さHまで拡張して表示する.また
、属性が領域縮小に指定された場合は同図(b)に示す
ように、浮動領域2日の高さHをその行の行高hまで縮
小して表示する。
FIGS. 7(a) and 7(b) are diagrams showing display examples of lines including floating areas. In other words, when the attribute of the floating area is specified as line expansion, as shown in FIG. The row height h of the row including the floating area 28 is expanded to the height H of the floating area 28 and displayed. Further, when the attribute is designated as area reduction, the height H of the floating area 2 days is reduced to the row height h of the row and displayed, as shown in FIG. 2(b).

次に、第8図のフローチャートによって、浮動領域の設
定について説明する。
Next, setting of the floating area will be explained with reference to the flowchart of FIG.

操作者が,行内へ新たに浮動領域を設ける作業を選択し
たら、第9図に示すメニューをCRT5の画面に表示す
る. そこで操作者が、このメニューに従って高さ偵に領域の
高さを.Ili欄に幅をそれぞれキーボード1の数字キ
ーを用いて鵬単位の数値で入カし、属性設定欄の領域属
性を「通常(属性なし)」,r行拡張」,『領域縮小』
のいずれが(デフォルトは「通常』になっている)に設
定して実行キーによって「実行」を指示すると,その領
域の高さ及び幅と属性を第3図の領域データ部14に格
納し、「通常」か否かを判断して「通常」でなければ処
理を終了する. しかし,「通常」が指定されている場合には、入力され
た領域の高さが行高を越えているか否かを判断し、越え
ている場合には第10図に示すような確認のメッセージ
を表示する。
When the operator selects the task of creating a new floating area within the line, the menu shown in FIG. 9 is displayed on the screen of the CRT 5. Then, the operator sets the height of the area according to this menu. Enter the width in the Ili column using the numeric keys on keyboard 1, and set the area attributes in the attribute setting column to ``Normal (no attribute)'', ``R line expansion'', and ``Area reduction''.
(The default is "Normal") and when you instruct "Execute" using the execution key, the height, width and attributes of that area are stored in the area data section 14 in FIG. Determine whether it is "normal" or not, and if it is not "normal", terminate the process. However, if "Normal" is specified, it is determined whether the height of the input area exceeds the line height, and if it does, a confirmation message as shown in Figure 10 is displayed. Display.

ここで,取消キーによって「取消」が指示されると、再
び第9図のメニューを表示して高さと幅の入力に戻る。
If "cancel" is instructed by the cancel key, the menu shown in FIG. 9 is displayed again and the process returns to inputting the height and width.

実行キーによって「実行」が指示されると、この処理を
終了する。
When "execute" is instructed by the execution key, this process ends.

次に、属性が行拡張に設定されている場合の編集文書の
表示例について説明する。
Next, a display example of an edited document when the attribute is set to line expansion will be described.

第11図(a)は、文字列データ部13に記憶された文
字列データの一例図であり、斜線を施して示す『浮」,
「を」,『必J=’J*’デ」,・・・・・・はそれぞ
れ行頭の文字データ,■,■,■は浮動マークデータで
ある. この文字列データの行構成は,第3図の行構成データ部
21に第11図(b)に示すような行構成データテーブ
ル40が設けられており、そこに第1行目からの各行頭
の文字データ「浮」,「を」,r必」, r−J, r
デ」,・・曲・順に格納している.また,浮動マークデ
ータの,■,■に対応する浮動実データは、第12図に
示すように領域データ部14内の浮動領域テーブル41
にそれぞれ格納されている. そして、浮動マークデータ■及び■で示される浮動実デ
ータAとBの領域の高さがその行の行高を越えていて、
領域属性として行拡張が指定されているとすると、文字
列データと浮動実データが合成されたCRT5の画面上
の表示は、第13図に示すように浮動実データAを含む
2行目及びBを含む3行目の行高がそれぞれ浮動実デー
タA及びBの領域の高さまで拡張される。
FIG. 11(a) is an example of character string data stored in the character string data section 13.
"wo", "J='J*'de", etc. are character data at the beginning of the line, and ■, ■, ■ are floating mark data. The line structure of this character string data is determined by the line structure data table 40 as shown in FIG. 11(b) provided in the line structure data section 21 of FIG. character data ``uki'', ``wo'', r necessary'', r-J, r
The songs are stored in the order of songs. In addition, the floating actual data corresponding to ■ and ■ of the floating mark data are stored in the floating area table 41 in the area data section 14 as shown in FIG.
are stored in each. Then, the height of the area of floating actual data A and B indicated by floating mark data ■ and ■ exceeds the line height of that line,
Assuming that line expansion is specified as an area attribute, the display on the screen of the CRT5 in which the character string data and floating actual data are combined is the second line containing floating actual data A and B, as shown in Figure 13. The row height of the third row containing . is expanded to the height of the floating real data A and B areas.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この発明による文Wm集装置は、
設定した浮動領域の高さが文書編集によって隣接する行
と重なるような場合には、自動的にその浮動領域を含む
行の行高を拡張するかその浮動領域の高さを縮小して表
示するので、文書編集時に浮動領域の再設定や余分な改
行操作を行なわなくて済み、文書編集の能率が良くなる
As explained above, the sentence Wm collection device according to the present invention is
If the height of the set floating area overlaps an adjacent line due to document editing, the line height of the line containing the floating area will be automatically expanded or the height of the floating area will be reduced and displayed. Therefore, when editing a document, there is no need to reset the floating area or perform extra line feed operations, improving the efficiency of document editing.

また、一連の文字列及び浮動領域が常につながって移動
するという浮動領域の利点が損なわれるようなことも殆
んどなくなる.
Furthermore, the advantage of floating areas, in which a series of character strings and floating areas always move in a connected manner, is almost never lost.

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

第1図はこの発明の基本的構成を示す機能ブロック図, 第2図はこの発明による文書編集装置の一実施例の構成
を示すブロック図、 第3図は同じくその機能構成を示すブロック図、第4図
は第3図の行構成処理部19による行構成処理のフロー
図、 第5図は第3図の頁構成処理部17による頁構成処理の
フロー図, 第6図は第3図の行表示処理部24による行表示処理の
フロー図、 第7図(a)(b)はこの発明による文書II集装置に
よって行拡張及び領域縮小処理をした表示例を示す説明
図、 第8図はこの実施例による浮動領域の設定処理のフロー
図、 第9図は同じくその浮動領域の設定の際にCRT5に表
示されるメニュー画面の一例を示す図、 第10図は同じく浮動領域の高さが行高を越えた場合に
CRT5に表示される確認メッセージの一例を示す図, 第11図(a)(b)は文字列データ及び行構成データ
の格納状態の一例を示す説明図、 第12図は浮動領域テーブルと浮動実データの説明図、 第13図は第11図及び第12図のデータによる表示例
を示す図, 第14図は従来の浮動領域表示の説明に供する文字列デ
ータの説明図、 第15図は従来の浮動領域と隣接する行が重ならないよ
うに表示する例を示す説明図である。 1・・・キーボード 2・・・マイクロコンピュータ(CPU)3・・・メモ
リ      4・・・記憶装置5・・・表示装ff 
(CRT) 6・・・入力制御部    7・・・入力文字識別部8
・・・文字入力処理部  9・・・浮動領域入力処理部
10・・・行形式入力処理部 11・・・書式入力処理部  1 13・・・文字列データ部  1 15・・・行形式データ部  1 17・・・頁構成処理部   1 19・・・行構成処理部   2 22・・・領域位置データ部 2 24・・・行表示処理部   2 26・・・表示メモリ    2 28・・・浮動領域 40・・・行構成データテーブル 41・・・浮動領域テーブル
FIG. 1 is a functional block diagram showing the basic configuration of the present invention, FIG. 2 is a block diagram showing the configuration of an embodiment of a document editing device according to the present invention, and FIG. 3 is a block diagram showing the functional configuration thereof. 4 is a flowchart of the line configuration processing by the line configuration processing unit 19 in FIG. 3, FIG. 5 is a flowchart of the page configuration processing by the page configuration processing unit 17 in FIG. 3, and FIG. A flowchart of line display processing by the line display processing unit 24. FIGS. 7(a) and 7(b) are explanatory diagrams showing display examples of line expansion and area reduction processing performed by the document II collection device according to the present invention. FIG. A flowchart of the floating area setting process according to this embodiment, FIG. 9 is a diagram showing an example of the menu screen displayed on the CRT 5 when setting the floating area, and FIG. 10 is a diagram showing the height of the floating area. A diagram showing an example of a confirmation message displayed on the CRT5 when the line height is exceeded. Figures 11 (a) and (b) are explanatory diagrams showing an example of the storage state of character string data and line configuration data. Figure 12 13 is an explanatory diagram of a floating area table and floating actual data, FIG. 13 is a diagram showing a display example using the data in FIGS. 11 and 12, and FIG. 14 is an explanation of character string data used to explain conventional floating area display. FIG. 15 is an explanatory diagram showing an example of displaying a conventional floating area so that adjacent lines do not overlap. 1...Keyboard 2...Microcomputer (CPU) 3...Memory 4...Storage device 5...Display device ff
(CRT) 6... Input control section 7... Input character identification section 8
...Character input processing section 9...Floating area input processing section 10...Line format input processing section 11...Format input processing section 1 13...Character string data section 1 15...Line format data Part 1 17... Page configuration processing unit 1 19... Line configuration processing unit 2 22... Area position data unit 2 24... Line display processing unit 2 26... Display memory 2 28... Floating Area 40...Line configuration data table 41...Floating area table

Claims (1)

【特許請求の範囲】 1 文字データと浮動マークデータとからなる文字列デ
ータ、及び1行の区切りと行高を示す行情報を記憶する
文字列データ記憶手段と、 該手段に記憶された浮動マークデータに対応する浮動領
域の高さと幅を示す浮動領域データを記憶する浮動領域
データ記憶手段と、 前記文字列データと行情報及び前記浮動領域データとに
よつて前記文字列データを行ごとに構成する行構成処理
手段と、 該手段によつて構成された行ごとの文字列データを表示
する表示手段とを備えた文書編集装置において、 前記行構成処理手段によつて構成された各行の行高とそ
の行に存在する前記浮動マークデータに対応する浮動領
域の高さとを比較してその高さが行高を越えるか否かを
判断する高さ比較手段と、該高さ比較手段によつて浮動
領域の高さが行高を越えると判断された行の行高を前記
高さまで拡張して前記表示手段に表示させる行拡張手段
とを設けたことを特徴とする文書編集装置。 2 請求項1記載の文書編集装置において、行拡張手段
に代えて、前記高さ比較手段によつて浮動領域の高さが
行高を越えると判断された行の浮動領域の高さを行高ま
で縮小して前記表示手段に表示させる浮動領域縮小手段
を設けたことを特徴とする文書編集装置。 3 請求項1記載の文書編集装置において、前記高さ比
較手段によつて浮動領域の高さが行高を越えると判断さ
れた行の浮動領域の高さを行高まで縮小して前記表示手
段に表示させる浮動領域縮小手段と、 前記行拡張手段と浮動領域縮小手段のいずれか一方を指
定して有効にする拡張・縮小指定手段とを設けたことを
特徴とする文書編集装置。
[Scope of Claims] 1. A character string data storage means for storing character string data consisting of character data and floating mark data, and line information indicating line delimiters and line heights, and a floating mark stored in the means. floating area data storage means for storing floating area data indicating the height and width of the floating area corresponding to the data; and configuring the character string data for each line by the character string data, line information, and the floating area data. A document editing device comprising a line structure processing means for displaying character string data for each line formed by the means, and a display means for displaying character string data for each line formed by the line structure processing means. and a height comparing means for comparing the height of the floating area corresponding to the floating mark data existing in the row and determining whether the height exceeds the row height; A document editing device comprising: a line expanding means for expanding the line height of a line for which it is determined that the height of the floating area exceeds the line height to the height and displaying it on the display means. 2. In the document editing device according to claim 1, instead of the line expansion means, the height of the floating area of the line for which the height of the floating area is determined to exceed the line height by the height comparing means is determined as the line height. 1. A document editing device comprising a floating area reduction means for reducing the size of the area and displaying the reduced area on the display means. 3. The document editing device according to claim 1, wherein the display means reduces the height of the floating area of a line for which the height of the floating area is determined to exceed the line height by the line height by the height comparing means. 1. A document editing device comprising: a floating area reduction means for displaying a floating area; and an expansion/reduction specifying means for specifying and validating either the line expansion means or the floating area reduction means.
JP1156013A 1989-06-19 1989-06-19 Document editing device Pending JPH0320858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1156013A JPH0320858A (en) 1989-06-19 1989-06-19 Document editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1156013A JPH0320858A (en) 1989-06-19 1989-06-19 Document editing device

Publications (1)

Publication Number Publication Date
JPH0320858A true JPH0320858A (en) 1991-01-29

Family

ID=15618411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1156013A Pending JPH0320858A (en) 1989-06-19 1989-06-19 Document editing device

Country Status (1)

Country Link
JP (1) JPH0320858A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6765595B2 (en) 2001-08-16 2004-07-20 International Business Machines Corporation Dual mode data field

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6765595B2 (en) 2001-08-16 2004-07-20 International Business Machines Corporation Dual mode data field

Similar Documents

Publication Publication Date Title
JP2975863B2 (en) Document creation device
JPH0320858A (en) Document editing device
JP3175221B2 (en) Document creation device
JP3035126B2 (en) Information processing device
JPH04247561A (en) Document processor
JPH04256065A (en) Document editing device
JP2593457B2 (en) Information display method
JP2922372B2 (en) Text processing device in the area
JPH03161861A (en) Document processor with tabulating function
JPH0635907A (en) Structurized document editor
JPH0573544A (en) Document editing device
JPH01111261A (en) Document editing device
JPS62186355A (en) Document preparation system
JPH03266068A (en) Automatic reduction processing system for table block
JPH0571111B2 (en)
JPH08137839A (en) Document processor
JPS59125406A (en) Automatic computer programming device
JPH01216462A (en) Document preparing device
JPH0573546A (en) Document editing device
JPH04113450A (en) Sentence editing device
JPS62204377A (en) Document producing device
JPS6359658A (en) Document processor
JPH0756910A (en) Word processor
JPH0567089A (en) Word processor
JPH08137857A (en) Document processor