JPH0462548B2 - - Google Patents
Info
- Publication number
- JPH0462548B2 JPH0462548B2 JP60287049A JP28704985A JPH0462548B2 JP H0462548 B2 JPH0462548 B2 JP H0462548B2 JP 60287049 A JP60287049 A JP 60287049A JP 28704985 A JP28704985 A JP 28704985A JP H0462548 B2 JPH0462548 B2 JP H0462548B2
- Authority
- JP
- Japan
- Prior art keywords
- page
- line
- document
- information
- printed
- 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)
- Record Information Processing For Printing (AREA)
Description
【発明の詳細な説明】
[概要]
従来、文書を自動的にページごとに印刷する方
式として、予め定めた一定の行数ごとに区切つ
て、これを1ページとして印刷する方式と、文書
中に予め挿入しておいた改ページ記号による方式
とがあつたが、これらの内、前者は文書の内容や
構成に関係なく機械的に予め定められた行数分の
文字列を印刷するので、一体であるべき表や文章
群などが分断されて2ページに跨つて印刷される
等の不都合を生ずる場合があつた。また、後者の
方式においては、文書の編集が完了してから改ペ
ージ記号を挿入する必要があるので非常に作業効
率が悪いという問題点があつた。本発明はこのよ
うな従来の問題点を解決するため、印刷に際して
文書各行の階層関係に応じて1ページに印刷すべ
き区域を決定することにより、表などが分断され
たりして、読みにくい文書となることを防止する
ことのできる文書印刷方式を開示している。[Detailed Description of the Invention] [Summary] Conventionally, two methods have been used to automatically print a document page by page: a method in which the document is divided into a predetermined number of lines and printed as one page; There was a method using a page break mark inserted in advance, but the former method mechanically prints a predetermined number of lines of character strings regardless of the content or structure of the document, so Inconveniences such as tables, text groups, etc. that should be separated and printed across two pages have occurred in some cases. Furthermore, in the latter method, it is necessary to insert a page break symbol after the editing of the document is completed, so there is a problem that the work efficiency is extremely low. In order to solve these conventional problems, the present invention determines the area to be printed on one page according to the hierarchical relationship of each line of a document during printing. This document discloses a document printing method that can prevent this from occurring.
[産業上の利用分野]
本発明は文書処理装置の印刷に係る制御に関す
るもので、特にメモリ中に連続して貯えられてい
る文字列を自動的にページごとに区切つて印刷す
る場合の制御に係る。[Industrial Application Field] The present invention relates to control related to printing by a document processing device, and in particular to control when character strings that are continuously stored in a memory are automatically divided into pages and printed. Related.
[従来の技術]
メモリに連続的に記憶されている文字列情報か
ら成る文書情報を、自動的にページごとに区切つ
て印刷を行なうワードプロセツサや、その他の文
書処理装置において、印刷に際して連続した文字
列をページごとに区切る手段として、従来、以下
に述べる2つの方法の内のいずれかの方法が採ら
れていた。その1つは、印刷のため出力する文字
列が予め定めた行数に達したとき、その間の出力
された文字列を一ページとして処理する方式であ
り、他の1つは人手によつて、予め文字列中の改
ページさせたい位置に改ページのための制御符号
を挿入しておいて、印刷に際し装置が該制御符号
を検出することによつて改ページを行なう方式で
ある。[Prior Art] Word processors and other document processing devices that automatically separate page-by-page document information consisting of character string information that is continuously stored in memory and print it out continuously. Conventionally, one of the following two methods has been adopted as a means for dividing character strings into pages. One is a method in which when the string of characters to be output for printing reaches a predetermined number of lines, the strings output during that time are processed as one page, and the other is manually. In this method, a control code for a page break is inserted in advance at the position where a page break is desired in a character string, and the device performs a page break by detecting the control code during printing.
[発明が解決しようとする問題点]
上述した従来の改ページに係る制御方式の内、
前者の規定の行数ごとに、1ページとして印刷す
る方式においては、文章の構成や内容には無関係
に予め定められた行数ごとに機械的に改ページを
行なうので、例えば、文書中に挿入されている表
などが分断されて2ページに渡つて印刷された
り、本来表の上部に記載されるべき表題が、ペー
ジ末に取り残され、表のみが次ページの冒頭に印
刷されたり、あるいは表の最下部の罫線のみが次
ページの最初の行に印刷されたりするという問題
点があつた。[Problems to be solved by the invention] Among the conventional page break control methods described above,
In the former method, which prints each specified number of lines as one page, a page break is automatically performed every predetermined number of lines, regardless of the structure or content of the text. A table, etc., that is divided into sections and printed over two pages, a title that should normally be written at the top of the table is left at the end of the page, and only the table is printed at the beginning of the next page, or the table is printed at the beginning of the next page. There was a problem in which only the bottom line of the page was printed on the first line of the next page.
また、後者の文字列中に予め挿入された改ペー
ジのための制御符号によつて改ページを行なう方
式においては、文章の編集が終了してから人手に
よつて、ページ分割を決めて、改ページのための
制御符号を挿入しなければならないから、作業効
率が非常に悪く、更に、内容の一部に変更や追加
などがあると、それ以降の改ページのための制御
符号について見直しをしなければならない等の問
題点があつた。 In addition, in the latter method, in which a page break is performed using a control code for a page break inserted in advance in the character string, page divisions are determined manually after editing of the text is completed, and page breaks are made manually. Having to insert control codes for each page is very inefficient, and furthermore, if there are changes or additions to some of the content, the control codes for subsequent page breaks must be reviewed. There were some problems, such as having to do it.
本発明はこのような従来の問題点に鑑み、人手
により予め改ページを指示する制御符号等を挿入
しておく必要がなく、全く自動的に印刷に際する
改ページを行なわしめることが可能であつて、か
つ、一ページにまとめて印刷したい表等が分割さ
れてしまうことのない制御方式を提供することを
目的としている。 In view of these conventional problems, the present invention eliminates the need to manually insert a control code or the like to instruct a page break in advance, and can completely automatically perform a page break during printing. It is an object of the present invention to provide a control method that prevents tables and the like that are to be printed all on one page from being divided.
[問題点を解決するための手段]
本発明によれば上記目的は特許請求の範囲に記
載のとおり、文字情報列から成る文書情報をメモ
リに記憶しておいて自動的にページごとに区切つ
て印刷を行なう文書処理装置において、文書情報
の各行間の階層関係を調べてそれぞれの行ごとの
階層情報を生成する手段と、該階層情報を基に1
ページ分の文書を印刷する場合の最終行を決定す
る手段と、各ページについて、開始行から上記手
段により決定された最終行までを1ページ分とし
て印刷する手段とを具備する文書印刷装置により
達成される。[Means for Solving the Problems] According to the present invention, the above object is achieved by storing document information consisting of a string of character information in a memory and automatically dividing it into pages. In a document processing device that performs printing, there is a means for examining the hierarchical relationship between each line of document information and generating hierarchical information for each line, and a means for generating hierarchical information for each line.
Achieved by a document printing device equipped with means for determining the last line when printing a document for pages, and means for printing each page from the start line to the last line determined by the above means as one page. be done.
[実施例]
第1図は本発明を実施する装置と制御の例につ
いて説明する図であつて、1は入力となる行情報
付加文書、2は1を解析し、1ページに出力する
文書を予め決められた行数分だけ、バツフアに貯
える行数管理装置であり、3はバツフアに貯えら
れた1ページ分の文書を表している。4は1ペー
ジ分の文書3を入力として行情報から階層構造を
生成する規則の集まりである階層付け情報5を参
照しながら、行の間に親子関係のリンクと同じ内
容を表す行のリンクをはる階層付け装置である。
6は各行の親子関係と同じ内容を表す行のリンク
情報であり、バツフア内の各行と一対一で対応し
ている。7はリンク情報6を入力とし、親子関係
と同じ内容を表す行のリンクに基づいて、バツフ
ア内の1ページに最適なページ分割が実現できる
ように1ページの最終行を決定する装置であつ
て、8は1ページとして決定された文書であり、
バツフアに貯えられる。9は1ページ分の文書8
もしくは3を入力とし、バツフア内の1ページの
文書を印刷する装置であり、10は印刷された文
書を表している。[Example] Fig. 1 is a diagram explaining an example of an apparatus and control for implementing the present invention, in which 1 is a line information added document that is an input, and 2 is a document that analyzes 1 and outputs it on one page. This is a line number management device that stores a predetermined number of lines in a buffer, and 3 represents one page of documents stored in the buffer. 4 refers to the hierarchy information 5, which is a collection of rules for generating a hierarchical structure from line information using the one-page document 3 as input, and creates links between lines that express the same content as parent-child relationships between lines. Haru is a hierarchy device.
Reference numeral 6 denotes link information of a row representing the same content as the parent-child relationship of each row, and corresponds one-to-one with each row in the buffer. 7 is a device that receives link information 6 as input and determines the last line of one page so as to achieve optimal page division for one page in a buffer, based on links of lines expressing the same content as the parent-child relationship; , 8 is a document determined as one page,
It can be stored in a buffer. 9 is a one page document 8
Or, it is a device that takes input 3 and prints one page of document in the buffer, and 10 represents the printed document.
本装置の動作を説明すると、まず、行数管理装
置2が起動され、1の行情報付加文書を解析し、
バツフア内に印刷装置に出力される行数分の文書
情報を貯える。最終ページの場合は、バツフア内
の文書を直接印刷して、処理を終了する。最終ペ
ージでない場合は、階層付け装置が起動される。
第2図は、第1図に4で示した階層付け装置の動
作を説明する図であつて、参照符Aで示す各行情
報を持つ文字列がそれぞれ右端に示す図のように
リンクされることを示している。なお、右端区画
内に自と表示してあるものは自分を指すことを意
味している。 To explain the operation of this device, first, the line number management device 2 is activated, analyzes the line information added document 1, and
Document information for the number of lines to be output to the printing device is stored in the buffer. If it is the last page, the document in the buffer is directly printed and the process ends. If it is not the last page, the hierarchy device is activated.
FIG. 2 is a diagram illustrating the operation of the layering device shown at 4 in FIG. It shows. Note that "self" displayed in the rightmost section means that it refers to oneself.
行情報は、文書により様々に付加されているの
で、行情報から階層関係を生成する規則を階層付
け情報5に記述しておいて、これを参照して、行
間の階層付けを行う。第2図では階層として参照
符Bで示すように親子関係と、印刷文書の制約に
より多行に渡つてしまつた行を表す関係すなわち
同じ内容を表す関係の2種類を用意している。第
2図の表(フイールド意味記述)を例にとり動作
を説明する。行情報は、この場合行が何を表すか
を示しているID番号である。階層付け情報は5
は、ID番号により、親子と兄弟と同じ内容の行
を検索する規則であり、例えば“10に続く11は、
次に10があるまで同じ内容の行である”という規
則である。表では、“表の中の行は、親を表題と
し、区切りの線を含めて同じ内容を記述している
こと”が決められている。これにより階層情報例
のように階層付けがなされる。バツフア内の文書
の階層付けを完了しリンク情報6が完成したなら
ば、ぺージ最終行決定装置7が起動される。第3
図はページ最終行決定装置の動作を説明する図で
ある。本装置では最終行が一番最適な行になるま
で、最終行チエツクを行う。第4図は最終行チエ
ツクの制御の例を示す流れ図である。階層情報を
参照し、次の項目を検討する。 Since line information is added in various ways depending on the document, rules for generating hierarchical relationships from line information are written in the hierarchy information 5, and this is referred to to perform hierarchy between lines. In FIG. 2, two types of hierarchies are provided: a parent-child relationship, as indicated by reference numeral B, and a relationship that represents multiple lines due to constraints of the printed document, that is, a relationship that represents the same content. The operation will be explained using the table (field meaning description) in FIG. 2 as an example. The row information is an ID number indicating what the row represents in this case. Layering information is 5
is a rule that searches for lines with the same contents as parent, child, and siblings by ID number. For example, “ 11 following 10 is
The rule is that the rows have the same content until the next 10.In a table, the rows in the table must have the parent as the title and contain the same content, including the dividing line. As a result, hierarchy is created as in the example of hierarchy information. When the hierarchy of documents in the buffer is completed and the link information 6 is completed, the page final line determining device 7 is activated. Third
The figure is a diagram illustrating the operation of the page final line determining device. This device checks the last line until the last line becomes the most optimal line. FIG. 4 is a flowchart showing an example of control for checking the last row. Refer to the hierarchy information and consider the following items.
○ 同じ内容を表す行は、なるべく同じページに
印刷する。○ Lines expressing the same content should be printed on the same page whenever possible.
○ 親行と子行は,なるべく同じページに印刷す
る。○ Print the parent line and child line on the same page if possible.
最適な最終行を決定したならば、バツフアに先
頭行から最終行までを貯え、印刷装置9を起動
し、文書を印刷する。文書をすべて印刷した場合
は処理を完了し、そうでない場合は、最終行の次
の行を先頭行とし、次のページを印刷する。 Once the optimal last line is determined, the first line to the last line is stored in a buffer, the printing device 9 is activated, and the document is printed. If the entire document is printed, the process is completed; otherwise, the next page is printed with the line following the last line as the first line.
以上説明した実施例においては、構造編集の際
に生成された行情報に基づいて各行の階層付けを
行なう例について示しているが、このような行情
報が付加されていない場合については、文章内容
を解析して周辺の行の文字列との関係から、各行
ごとの行情報を生成してこれを基に更に階層付け
情報を参照して行間の階層付けを行なう方式とす
ればよい。 In the example described above, an example is shown in which each line is hierarchically assigned based on the line information generated during structural editing, but in the case where such line information is not added, the text content A method may be adopted in which line information is generated for each line based on the relationship with the character strings of the surrounding lines by analyzing the line information, and based on this, the hierarchy information is further referred to to perform the hierarchy between the lines.
[発明の効果]
以上説明したように本発明の方式によれば、印
刷すべき文章の行ごとの階層関係を反映して改ペ
ージすべき行の位置を決定するごとく制御してい
るので、文章中の表が分断されて印刷されたり、
表とその表題や罫線が異なるページに取り残され
たりするという不都合を生ずることがなく、ま
た、これらは予め改ページのための制御符号を人
手により挿入しておくなどの必要もなく総て自動
的に行なわれるから各種の文書を効率的に印刷す
ることが可能である。[Effects of the Invention] As explained above, according to the method of the present invention, control is performed such that the position of the line where a page break is to be made is determined by reflecting the hierarchical relationship of each line of the text to be printed. The inside table may be printed in sections,
This eliminates the inconvenience of tables and their titles and borders being left behind on different pages, and all of these are automatically done without the need for manually inserting control codes for page breaks in advance. It is possible to print various documents efficiently.
従つて、表や図形などが挿入され、多ページに
渡るような複雑な文書であつても、迅速に、合理
的な体裁の整つた印刷出力を容易に得ることがで
きる利点がある。 Therefore, even if the document is complex and includes tables, figures, etc. and spans many pages, there is an advantage that it is possible to quickly and easily obtain a reasonably well-formed printout.
第1図は本発明を実施する装置と制御の例につ
いて説明する図、第2図は階層付け装置の動作を
説明する図、第3図はページ最終行決定装置の動
作を説明する図、第4図は最終行チエツクの制御
の例を示す流れ図である。
1……行情報付加文書、2……行数管理装置、
3……1ページ分の文書、4……階層付け装置、
5……階層付け情報、6……リンク情報、7……
ページ最終行決定装置、8……1ページとして決
定された文書、9……印刷装置、10……印刷文
書。
FIG. 1 is a diagram for explaining an example of a device and control for implementing the present invention, FIG. 2 is a diagram for explaining the operation of a hierarchy device, FIG. 3 is a diagram for explaining the operation of a page final line determining device, and FIG. FIG. 4 is a flowchart showing an example of last row check control. 1...Line information addition document, 2...Line number management device,
3... One page document, 4... Hierarchy device,
5...Hierarchy information, 6...Link information, 7...
Page last line determining device, 8... document determined as one page, 9... printing device, 10... printed document.
Claims (1)
しておいて、自動的にページごとに区切つて印刷
を行なう文書処理装置において、 文書情報の各行間の階層関係を調べて、それぞ
れの行ごとの階層情報を生成する手段と、 該階層情報を基に1ページ分の文書を印刷する
場合の最終行を決定する手段と、 各ページについて、開始行から上記手段により
決定された最終行までを1ページ分として印刷す
る手段とを具備することを特徴とする文書印刷装
置。[Claims] 1. In a document processing device that stores document information consisting of a string of character information in a memory and automatically divides it into pages and prints them, the hierarchical relationship between each line of the document information is checked. , means for generating hierarchical information for each line; means for determining the last line when printing one page of a document based on the hierarchical information; 1. A document printing device comprising: means for printing up to the last line of a page as one page.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60287049A JPS62146663A (en) | 1985-12-20 | 1985-12-20 | Document printing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60287049A JPS62146663A (en) | 1985-12-20 | 1985-12-20 | Document printing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62146663A JPS62146663A (en) | 1987-06-30 |
| JPH0462548B2 true JPH0462548B2 (en) | 1992-10-06 |
Family
ID=17712388
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60287049A Granted JPS62146663A (en) | 1985-12-20 | 1985-12-20 | Document printing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS62146663A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022138941A (en) * | 2021-03-11 | 2022-09-26 | 株式会社ランドピア | Frame unit and simple structure |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008018871A (en) * | 2006-07-13 | 2008-01-31 | Calsonic Kansei Corp | Vehicular glass antifreezer |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0766384B2 (en) * | 1983-07-11 | 1995-07-19 | 株式会社東芝 | Document creation device |
| JPS6019224A (en) * | 1983-07-13 | 1985-01-31 | Hitachi Ltd | Table creation method |
-
1985
- 1985-12-20 JP JP60287049A patent/JPS62146663A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022138941A (en) * | 2021-03-11 | 2022-09-26 | 株式会社ランドピア | Frame unit and simple structure |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62146663A (en) | 1987-06-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6533822B2 (en) | Creating summaries along with indicators, and automatically positioned tabs | |
| US6934909B2 (en) | Identifying logical elements by modifying a source document using marker attribute values | |
| EP0394168B1 (en) | Shell document with variable document commands | |
| JPH0137783B2 (en) | ||
| JPS6087073A (en) | Composition-editing device with function for automatically adding title symbol | |
| JPH0462548B2 (en) | ||
| JPH05135025A (en) | Document editing device | |
| JP2974346B2 (en) | Kanji processing device | |
| Downes et al. | The amsart, amsproc, and amsbook document classes | |
| JPH05101053A (en) | Structured document editing method | |
| JPS61195455A (en) | Document preparation device | |
| JPS63221457A (en) | Document shaping device | |
| JPS61184629A (en) | Document forming device | |
| JP3157956B2 (en) | Document processing device with list display function of format setting | |
| JPS6231375B2 (en) | ||
| JPH0581247A (en) | Method for shaping document | |
| JPH07290792A (en) | Form creation processing method | |
| JPH04241618A (en) | Slip preparing device | |
| JPH038271B2 (en) | ||
| JPH08190570A (en) | Document data comparison and verification system | |
| JPH01235660A (en) | Emphasized printing system | |
| JP3008431B2 (en) | Document processing device | |
| JPH0379739B2 (en) | ||
| JPH082681B2 (en) | Document data processing device | |
| JPS62186355A (en) | Document creation method |