JP2006259819A - Image processing system and image processing method - Google Patents

Image processing system and image processing method Download PDF

Info

Publication number
JP2006259819A
JP2006259819A JP2005072626A JP2005072626A JP2006259819A JP 2006259819 A JP2006259819 A JP 2006259819A JP 2005072626 A JP2005072626 A JP 2005072626A JP 2005072626 A JP2005072626 A JP 2005072626A JP 2006259819 A JP2006259819 A JP 2006259819A
Authority
JP
Japan
Prior art keywords
layout
page
image processing
processing system
document
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
JP2005072626A
Other languages
Japanese (ja)
Inventor
Tetsuto Sugawara
哲人 菅原
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005072626A priority Critical patent/JP2006259819A/en
Publication of JP2006259819A publication Critical patent/JP2006259819A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing system or the like which can perform processing to "orphans" and "widows", and also can perform processing consistent with documents in which both "orphans" and "widows" are described, and further can perform attractive print and display even if a newpage occurs inside block factors. <P>SOLUTION: In an image processing system which performs processing to documents written in a structured language, a factor contained in the documents is characterized by having a layout determination means for determining a layout to the documents based on correlation between a 1st factor which indicates a line count to be left behind at least to the bottom of the page and a 2nd factor which indicates a line count to be left behind at least to the top of the page. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、構造化言語で記述された文書に対する画像処理システム及び画像処理方法に関する。詳しくは、スタイルシートの一つである「orphans」、及び「widows」に対する処理を行う画像処理システム及び画像処理方法に関する。   The present invention relates to an image processing system and an image processing method for a document described in a structured language. Specifically, the present invention relates to an image processing system and an image processing method for performing processing on “orphans” and “widows” which are one of style sheets.

従来から、XML(eXtensible Markup Language)やXHTML(eXtensible Hyper Text Markup Language)など、特定のアプリケーションに依存しない構造化言語により記述された文書に基づいて、モニタ画面に画像を表示させたり、プリンタで印刷する等の処理が行われている。通常、このような文書に基づいて画像を生成する(表示や印刷など)には、かかる言語で記述された文書に対し解析処理を行った後、レイアウト処理により各要素の1頁内での位置が決定され、その後、表示や印刷のための種々の処理を行う。   Conventionally, an image is displayed on a monitor screen or printed by a printer based on a document written in a structured language that does not depend on a specific application, such as XML (eXtensible Markup Language) or XHTML (eXtensible Hyper Text Markup Language). Processing is performed. Usually, in order to generate an image based on such a document (display, print, etc.), after analyzing the document described in such a language, the position of each element within one page is determined by layout processing. Then, various processes for display and printing are performed.

しかし、このようなレイアウト処理に関し、文書内のブロック要素をレイアウトすると、1頁内に収まりきらずにブロック要素内部で改ページが発生する場合がある。従来の画像処理システムでは、かかる場合、改ページが発生した時点で改ページの処理が行われていた。その結果、先行ページにはブロック要素の先頭部分の少数行のみ表示や印刷が行われたり、後続ページにはブロック要素の最後尾部分の少数行のみ表示等が行われるなど、見栄えの良くない状態で表示等が行われていた。   However, regarding such a layout process, when a block element in a document is laid out, a page break may occur inside the block element without being able to fit within one page. In a conventional image processing system, in this case, page break processing is performed when a page break occurs. As a result, only the minority lines at the beginning of the block element are displayed or printed on the preceding page, and only the minority lines at the end of the block element are displayed on the subsequent page. The display etc. were performed.

そこで、スタイルシート(特に、CSS(Cascading Style Sheet)3 ページメディアモジュール。以下の非特許文献1を参照)では、ページの下端に最低限残さなければいけない行数を示す「orphans」と、ページの上端に最低限残さなければならない行数を示す「widows」が定義され、これを用いることで、見栄えの良くない状態を回避するようにしている(例えば、以下の非特許文献1)。   Therefore, in the style sheet (especially CSS (Cascading Style Sheet) 3 page media module. See Non-Patent Document 1 below), “orphans” indicating the minimum number of lines that must be left at the bottom of the page, “Widows” indicating the minimum number of lines that must be left at the upper end is defined, and by using this, a state of poor appearance is avoided (for example, Non-Patent Document 1 below).

また、JPEGなどの単なる画像が入力されても内部でHTML文書の形式に変換させ、HTML文書に対する解析及びレイアウト処理を行うブロックに入力させることで、多くのハードウェア資源を設けることなく処理を行う画像形成装置が提案されている(例えば、以下の特許文献1)。
W3C “CSS3 Paged Media Module”[平成17年2月18日検索]、インターネット<URL http://www.w3.org/TR/css3-page> 特開2004−114326号公報
Also, even if a simple image such as JPEG is input, it is converted into an HTML document format internally, and input to a block that performs analysis and layout processing on the HTML document, thereby performing processing without providing many hardware resources. An image forming apparatus has been proposed (for example, Patent Document 1 below).
W3C “CSS3 Paged Media Module” [searched on February 18, 2005], Internet <URL http://www.w3.org/TR/css3-page> JP 2004-114326 A

しかしながら、「orphans」や「widows」がCSSで定義され、スタイルシートとして文書内に記述可能でも、画像の表示や印刷等の処理を行う画像処理システム内でどのように処理を行うべきか提案されていない。特に、従来の画像処理システムでは、この2つの要素が同時に文書内に記述された場合に、その組合せに対する整合性が考慮されていなかった。   However, even though “orphans” and “widows” are defined in CSS and can be described in a document as a style sheet, it is suggested how to perform processing in an image processing system that performs processing such as image display and printing. Not. In particular, in the conventional image processing system, when these two elements are described in the document at the same time, consistency with the combination is not considered.

そこで、本発明は上記問題点に鑑みてなされたものでその目的は、「orphans」や「widows」に対する処理を行い得る画像処理システムや画像処理方法を提供することにある。   Therefore, the present invention has been made in view of the above problems, and an object thereof is to provide an image processing system and an image processing method capable of performing processing on “orphans” and “widows”.

また、本発明の他の目的は、「orphans」と「widows」の双方が記述された文書に対して整合性の取れた処理を行い得る画像処理システム等を提供することにある。   Another object of the present invention is to provide an image processing system or the like that can perform consistent processing on a document in which both “orphans” and “widows” are described.

更に、本発明の他の目的は、ブロック要素内部で改ページが発生しても、見栄えの良い印刷や表示が行われる画像処理システム等を提供することにある。   Furthermore, another object of the present invention is to provide an image processing system or the like that can perform good-looking printing and display even when a page break occurs inside a block element.

上記目的を達成するために本発明は、構造化言語で記述された文書に対する処理を行う画像処理システムにおいて、前記文書に含まれる要素であって、ページの下端に最低限残さなければならない行数を示す第1の要素と、ページの上端に最低限残さなければならない行数を示す第2の要素との相関性に基づいて、前記文書に対するレイアウトを決定するレイアウト決定手段、を備えることを特徴としている。これにより、例えば、「orphans」と「widows」とを組み合わせて記述された文書に対して整合性の取れた処理を行い得る。また、「orphans」や「widows」によって示された行数を満たすレイアウトを行うため、ブロック要素内部で改ページが発生しても見栄えの良い印刷や表示を行い得る。   In order to achieve the above object, the present invention provides an image processing system that performs processing on a document described in a structured language. The number of lines that are elements included in the document and must be left at the bottom of a page Layout determining means for determining a layout for the document based on the correlation between the first element indicating the number of lines and the second element indicating the minimum number of lines that must be left at the top of the page. It is said. Thereby, for example, consistent processing can be performed on a document described by combining “orphans” and “widows”. In addition, since the layout satisfying the number of lines indicated by “orphans” and “widows” is performed, good-looking printing and display can be performed even if a page break occurs inside the block element.

また、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、前記第2の要素の条件を満たす処理を次ページに対して終えたとき現在のページのレイアウトを確定する、ことを特徴としている。これにより、例えば、現在のページのレイアウトが確定するため、その後の印刷等の処理を行うことができる。   Further, the present invention is characterized in that, in the image processing system, the layout determining means determines the layout of the current page when the processing satisfying the condition of the second element is finished for the next page. . Thereby, for example, since the layout of the current page is confirmed, subsequent processing such as printing can be performed.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、現在のページの先頭から前記文書に含まれるブロック要素をレイアウトしたときに改ページが発生した場合、改ページは行わない、ことを特徴としている。これにより、例えば、改ページを次々に行うことで発生する無限ループを回避できる。   Furthermore, in the image processing system according to the present invention, the layout determination means does not perform a page break when a page break occurs when a block element included in the document is laid out from the top of the current page. It is a feature. Thereby, for example, it is possible to avoid an infinite loop that occurs when page breaks are successively performed.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、現在のページの途中から前記文書に含まれるブロック要素をレイアウトしたときに改ページが発生した場合、前記現在のページにおける前記ブロック要素のレイアウト済みの行数が前記第1の要素の条件を満たさない場合は、次ページの先頭から前記ブロック要素全てをレイアウトする、ことを特徴としている。これにより、例えば、ブロック要素が次ページからレイアウトされるため、見栄えの良い印刷等を行い得る。   Furthermore, in the image processing system according to the present invention, when a page break occurs when the layout determination unit lays out a block element included in the document from the middle of the current page, the block element in the current page When the number of laid out lines does not satisfy the condition of the first element, all the block elements are laid out from the top of the next page. Thereby, for example, since the block elements are laid out from the next page, it is possible to perform printing that looks good.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、前記レイアウト済みの行数が前記第1の要素の条件を満たす場合でも前記現在のページのレイアウトを確定させない、ことを特徴としている。これにより、例えば、次ページにレイアウトしたブロック要素が「widows」によって示される条件を満たさない場合、現在のページから「widows」を満たすよう行を移動させるレイアウトを行うことが可能となる。   Furthermore, the present invention is characterized in that, in the image processing system, the layout determining means does not determine the layout of the current page even when the number of laid out rows satisfies the condition of the first element. . Thereby, for example, when the block element laid out on the next page does not satisfy the condition indicated by “widows”, it is possible to perform a layout in which lines are moved from the current page to satisfy “widows”.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、次ページに前記ブロック要素の残りをレイアウトしたときに前記第2の要素の条件を満たす場合は前記現在のページのレイアウトを確定させる、ことを特徴としている。これにより、例えば、次ページは「widows」の条件が満たされるため、前述した行を移動させるレイアウトをする必要がなく、レイアウトを確定することができる。   Furthermore, in the image processing system according to the present invention, the layout determining means determines the layout of the current page if the second element condition is satisfied when the rest of the block elements are laid out on the next page. It is characterized by that. Thereby, for example, since the condition of “widows” is satisfied for the next page, it is not necessary to perform the layout for moving the above-described line, and the layout can be determined.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、次ページに前記ブロック要素の残りをレイアウトしたときに前記次ページで改ページが発生した場合に前記現在のページのレイアウトを確定させる、ことを特徴としている。これにより、例えば、現在のページと次ページとの間で行を移動させるレイアウトを行う必要がないため、現在のページに対するレイアウトを確定することができる。   Furthermore, in the image processing system according to the present invention, the layout determining means determines the layout of the current page when a page break occurs on the next page when the rest of the block elements are laid out on the next page. It is characterized by that. Thereby, for example, since it is not necessary to perform a layout for moving a line between the current page and the next page, the layout for the current page can be determined.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、次ページに前記ブロック要素の残りをレイアウトした結果前記次ページが前記第2の要素の条件を満たさない場合は、前記第2の要素の条件を満たすまで、前記現在のページから1行削除し、削除した行を前記次ページに移動させるレイアウトを繰り返す、ことを特徴としている。これにより、例えば、次ページは「widows」の条件を満たすことになり、見栄えの良い印刷等を行うことができる。   Furthermore, in the image processing system according to the present invention, when the layout determining means lays out the rest of the block elements on the next page and the next page does not satisfy the condition of the second element, Until the element condition is satisfied, one line is deleted from the current page, and the layout for moving the deleted line to the next page is repeated. As a result, for example, the next page satisfies the condition of “widows”, and printing with good appearance can be performed.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、前記次ページに移動させるレイアウトを繰り返しているときに前記現在のページが前記第1の要素の条件を満たさなくなる場合は、前記ブロック要素全てを前記次ページに移動させる、ことを特徴としている。これにより、例えば、次ページは先頭からブロック要素がレイアウトされるため、見栄えの良い印刷等を行い得る。   Further, in the image processing system according to the present invention, when the layout determining means repeats the layout to be moved to the next page, the current page does not satisfy the condition of the first element. All elements are moved to the next page. As a result, for example, since the block elements are laid out from the top of the next page, it is possible to perform printing that looks good.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、前記次ページに前記ブロック要素の残りをレイアウトした結果前記次ページが前記第2の要素の条件を満たさない場合は、前記第2の要素の条件を満たす行数だけ、前記現在のページから前記次ページに移動する、ことを特徴としている。これにより、例えば、次ページは「widows」の条件を満たすことになり、見栄えの良い印刷等を行うことができるとともに、1行ずつレイアウトする場合と比較して処理を速くすることができる。   Further, in the image processing system according to the present invention, when the layout determining means lays out the rest of the block elements on the next page, the second page does not satisfy the condition of the second element. The number of lines satisfying the condition of the element is moved from the current page to the next page. As a result, for example, the next page satisfies the condition “widows”, and printing that looks good can be performed, and the processing can be speeded up as compared with the case of laying out line by line.

更に、本発明は前記画像処理システムにおいて、前記レイアウト決定手段は、前記第2の要素の条件を満たす行数だけ、前記現在のページから前記次ページに移動させた結果、前記現在のページが前記第1の条件を満たさなくなった場合は前記ブロック要素全てを前記次ページに移動する、ことを特徴としている。これにより、例えば、次ページの先頭からブロック要素がレイアウトされ、見栄えの良い印刷等を行い得る。   Further, in the image processing system according to the present invention, as a result of moving the layout determining unit from the current page to the next page by the number of rows that satisfy the condition of the second element, the current page is When the first condition is not satisfied, all the block elements are moved to the next page. Thereby, for example, block elements are laid out from the top of the next page, and printing with good appearance can be performed.

また、本発明は上記目的を達成するために、構造化言語で記述された文書に対する処理を行う画像処理システムにおいて、ページの先頭に最低限残さなければならない行数を示す要素の条件を満たすよう、前記文書に対するレイアウトを決定するレイアウト決定手段と、前記決定されたレイアウトに基づいて印刷を実行する印刷手段と、を備え、前記レイアウト決定手段は次ページに対する前記要素の条件を満たす処理を終えたとき現在のページに対するレイアウトを確定し、前記印刷手段は確定したレイアウトに基づいて印刷を実行する、ことを特徴としている。これにより、例えば、次ページが「widows」の条件を満たすとその前のページである現在のページのレイアウトが確定することになり、その後の印刷等の処理を行い得る画像処理システムを提供することができる。   In order to achieve the above object, the present invention satisfies the condition of an element indicating the minimum number of lines that must be left at the top of a page in an image processing system for processing a document described in a structured language. A layout determining unit that determines a layout for the document; and a printing unit that executes printing based on the determined layout, and the layout determining unit finishes the process that satisfies the element condition for the next page. In some cases, the layout for the current page is confirmed, and the printing means executes printing based on the confirmed layout. As a result, for example, when the next page satisfies the condition of “widows”, the layout of the current page, which is the previous page, is determined, and an image processing system capable of performing processing such as subsequent printing is provided. Can do.

更に、本発明は上記目的を達成するために、構造化言語で記述された文書に対するレイアウトを決定するレイアウト決定手段を備えた画像処理システムにおける画像処理方法において、ページの下端に最低限残さなければならない行数を示す第1の要素とページの先頭に最低限残さなければならない行数を示す第2の要素との相関性に基づいて、前記レイアウト決定手段で前記文書に対するレイアウトを決定する工程、を備えることを特徴としている。これにより、例えば、「orphans」や「widows」によって示された行数を満たすレイアウトを行うため、ブロック要素内部で改ページが発生しても見栄えの良い印刷や表示を行い得る画像処理方法を提供することができる。また、2つの要素が記述された文書に対しても整合性の取れた印刷結果を得ることができる。   Furthermore, in order to achieve the above object, the present invention provides an image processing method in an image processing system having layout determining means for determining a layout for a document described in a structured language. Determining the layout for the document by the layout determining means based on the correlation between the first element indicating the number of lines that must be left and the second element indicating the minimum number of lines that must remain at the top of the page; It is characterized by having. This provides, for example, an image processing method that can perform good-looking printing and display even if a page break occurs inside a block element in order to perform a layout that satisfies the number of lines indicated by “orphans” and “widows”. can do. In addition, a consistent print result can be obtained for a document in which two elements are described.

更に、本発明は上記目的を達成するために、構造化言語で記述された文書に対するレイアウトを決定するレイアウト決定手段と、決定されたレイアウトに基づいて印刷を実行する印刷手段とを備えた画像処理システムにおける画像処理方法において、ページの先頭に最低限残さなければならない行数を示す要素の条件を満たす処理を次ページに対して終えたとき、前記レイアウト決定手段により、現在のページに対するレイアウトを確定する工程と、確定したレイアウトに基づいて前記印刷手段により印刷を実行する工程と、を備えることを特徴としている。これにより、例えば、レイアウト確定により、現在のページに対する印刷等の処理を行うことが可能となる。   In order to achieve the above object, the present invention further provides image processing comprising layout determining means for determining a layout for a document described in a structured language, and printing means for executing printing based on the determined layout. In the image processing method in the system, when the processing that satisfies the condition of the element indicating the minimum number of lines that must be left at the top of the page is finished for the next page, the layout determination unit determines the layout for the current page And a step of executing printing by the printing unit based on the determined layout. Thereby, for example, processing such as printing for the current page can be performed by determining the layout.

以下、図面を参照して本発明を実施するための最良の形態を説明する。
<全体構成とその動作>
図1は、本発明が適用される画像処理システムの一例であるプリンタ1の全体の構成を示す図である。プリンタ1は、Xhtml解析手段10と、DOM−スタイル管理手段20と、CSS解析手段(CSSパーサ)30と、レイアウト手段40と、レンダリング部50、及び印刷処理部60から構成される。
The best mode for carrying out the present invention will be described below with reference to the drawings.
<Overall configuration and operation>
FIG. 1 is a diagram showing an overall configuration of a printer 1 as an example of an image processing system to which the present invention is applied. The printer 1 includes an Xhtml analysis unit 10, a DOM-style management unit 20, a CSS analysis unit (CSS parser) 30, a layout unit 40, a rendering unit 50, and a print processing unit 60.

Xhtml解析手段10は、DOM−スタイル管理手段20等を含む全体の管理を行う。Xhtml解析手段10には、タグ解析手段(XMLパーサ)100を備え、入力されたXHTML文書5に対してどのようなタグから文書5が構成されるかの解析を行う。ここで、本プリンタ1ではXHTML文書5がXML文書とCSS文書とから構成されるものとして処理を行う。従って、タグ解析手段100では、XHTML文書5内のCSS文書(CSSはXHTML文書5内に記述されても良いし、別文書として記述されていても良い。以下同様)以外の部分(本実施例ではこれをXML文書と称する)に対する処理を行う。なお、XHTML文書5は、例えば移動可能なメモリや、無線通信(ブルートゥースなど)により、本プリンタ1に入力されるものとする。   The Xhtml analysis means 10 performs overall management including the DOM-style management means 20 and the like. The Xhtml analysis means 10 is provided with a tag analysis means (XML parser) 100, and analyzes what tag the document 5 is composed of with respect to the input XHTML document 5. Here, in the printer 1, processing is performed on the assumption that the XHTML document 5 is composed of an XML document and a CSS document. Therefore, in the tag analysis means 100, a portion other than the CSS document in the XHTML document 5 (CSS may be described in the XHTML document 5 or may be described as a separate document. The same applies hereinafter) (this embodiment). Then, this is called an XML document). Note that the XHTML document 5 is input to the printer 1 by, for example, a movable memory or wireless communication (such as Bluetooth).

DOM−スタイル管理手段20は、DOMツリーとスタイルデータとを記憶し管理する。DOM−スタイル管理手段20には、DOMツリー生成手段210と、スタイルデータ記憶手段220とを備える。   The DOM-style management means 20 stores and manages the DOM tree and style data. The DOM-style management unit 20 includes a DOM tree generation unit 210 and a style data storage unit 220.

DOMツリー生成手段210は、タグ解析手段100からの解析後の各タグに関する情報が入力され、DOMツリーを生成して記憶する。生成されたDOMツリーにより、XHTML文書5内の各タグ間等の関連付けが把握できる。   The DOM tree generation unit 210 receives information on each tag after analysis from the tag analysis unit 100 and generates and stores a DOM tree. With the generated DOM tree, the association between the tags in the XHTML document 5 can be grasped.

また、スタイルデータ記憶手段220は、CSS解析手段30で解析されたスタイルデータをテーブル形式で記憶する。スタイルデータ記憶手段220は、CSSでデフォルトとして定義されたスタイルデータを記憶する領域と、文書作成者が定義したスタイルデータを記憶する領域に分かれている。スタイルデータを読み出してレイアウトする際には、文書作成者が定義したスタイルデータから読み出される。つまり、この記憶手段220の領域には優先順位があり、文書作成者のスタイルデータの方が優先され、文書作成者によって定義されていないと、デフォルトとして定義されたスタイルデータが使用される。   The style data storage unit 220 stores the style data analyzed by the CSS analysis unit 30 in a table format. The style data storage means 220 is divided into an area for storing style data defined as default in CSS and an area for storing style data defined by the document creator. When the style data is read and laid out, it is read from the style data defined by the document creator. In other words, the area of the storage means 220 has a priority, the style data of the document creator is given priority, and if not defined by the document creator, the style data defined as default is used.

CSS解析手段30は、Xhtml解析手段10からの指示に基づき、XHTML文書5内のCSS文書に対する解析を行う。具体的には、CSS解析手段30は、前述したテーブルを作成することで解析を行う。これにより、文書5内にどのようなCSSが記述されたかプリンタ1は把握することができる。なお、Xhtml解析手段10は、スタイルデータ記憶手段220に記憶されたスタイルデータと、DOMツリー生成手段210に記憶されたDOMツリーの各ノードとの関連付けを行う。   The CSS analysis unit 30 performs analysis on the CSS document in the XHTML document 5 based on an instruction from the Xhtml analysis unit 10. Specifically, the CSS analysis unit 30 performs analysis by creating the above-described table. Thereby, the printer 1 can grasp what CSS is described in the document 5. Note that the Xhtml analysis unit 10 associates the style data stored in the style data storage unit 220 with each node of the DOM tree stored in the DOM tree generation unit 210.

レイアウト手段40は、Xhtml解析手段10からのレイアウト指示に基づき、DOM−スタイル管理手段20に記憶されたDOMツリーとスタイルデータとを参照して、各要素に対するレイアウトを行う。レイアウト手段40の詳細は後述する。   The layout unit 40 performs layout for each element with reference to the DOM tree and the style data stored in the DOM-style management unit 20 based on the layout instruction from the Xhtml analysis unit 10. Details of the layout means 40 will be described later.

レンダリング部50は、レイアウト後の各要素に対して色付け等することでレンダリングを行う。印刷処理部60は、レンダリング後のデータが入力され、色変換、ハーフトーン処理などの画像処理を行い、その後、実際に印刷用紙に印字を行う。   The rendering unit 50 performs rendering by coloring each element after layout. The print processing unit 60 receives the rendered data, performs image processing such as color conversion and halftone processing, and then actually prints on the printing paper.

このように構成されたプリンタ1での動作を簡単に説明する。例えば、図2に示すXHTML文書5の例で説明する。プリンタ1に入力されたXHTML文書5はXhtml解析手段10で解析される。図2の例では、<body>タグ、<div>タグ、<p>タグの存在を確認する。そして、タグ解析手段100は、解析後のこれらのタグとタグ内の内容部分(文字列1、文字列2など)をDOMツリー生成手段210に出力する。   The operation of the printer 1 configured as described above will be briefly described. For example, an example of the XHTML document 5 shown in FIG. 2 will be described. The XHTML document 5 input to the printer 1 is analyzed by the Xhtml analysis means 10. In the example of FIG. 2, the presence of the <body> tag, <div> tag, and <p> tag is confirmed. Then, the tag analysis unit 100 outputs the analyzed tags and the content portions (character string 1, character string 2, etc.) in the tag to the DOM tree generation unit 210.

DOMツリー生成手段210では、DOMツリーを生成するが、図2(A)の例では、図2(B)のようにツリーを生成する。DOMツリーの各ノードは、タグ及びその内容部分から構成される。そして、一旦生成されたDOMツリーは生成手段210で記憶される。また、文書5内にCSS文書が含まれていると、DOMツリー生成手段210からの解析指示でCSS解析手段30がCSS文書を解析し、生成されたテーブルがスタイルデータ記憶手段220に記憶される。そして、レイアウト手段40でDOMツリーとスタイルデータとが参照されレイアウト処理、その後、レンダリング、印刷処理が行われる。   The DOM tree generation unit 210 generates a DOM tree. In the example of FIG. 2A, a tree is generated as shown in FIG. Each node of the DOM tree is composed of a tag and its content part. The DOM tree once generated is stored in the generation unit 210. If the document 5 includes a CSS document, the CSS analysis unit 30 analyzes the CSS document in response to an analysis instruction from the DOM tree generation unit 210, and the generated table is stored in the style data storage unit 220. . The layout means 40 refers to the DOM tree and the style data, and performs layout processing, and then rendering and printing processing.

次に、レイアウト手段40の詳細について説明する。図3は、レイアウト手段40の内部構成を示す図である。レイアウト手段40は、レイアウトマネージャ410と、レイアウト情報作成手段420と、フォントデータ提供手段430、及びレイアウト情報記憶手段440とを有する。   Next, details of the layout means 40 will be described. FIG. 3 is a diagram showing the internal configuration of the layout means 40. The layout means 40 includes a layout manager 410, layout information creation means 420, font data provision means 430, and layout information storage means 440.

レイアウトマネージャ410は、Xhtml解析手段10からのレイアウト指示に基づいてレイアウト情報作成手段420へレイアウト指示を行う。   The layout manager 410 issues a layout instruction to the layout information creation unit 420 based on the layout instruction from the Xhtml analysis unit 10.

レイアウト情報作成手段420は、レイアウトマネージャ410からの指示に基づき、DOM−スタイル管理手段20を参照して、DOMツリーとスタイルデータとからレイアウト情報を作成する。作成されたレイアウト情報は、レイアウト情報記憶手段440に出力される。ここで、レイアウト情報とは、座標位置や色などに関する情報である。   The layout information creation unit 420 creates layout information from the DOM tree and style data with reference to the DOM-style management unit 20 based on an instruction from the layout manager 410. The created layout information is output to the layout information storage unit 440. Here, the layout information is information relating to coordinate positions, colors, and the like.

また、レイアウト情報作成手段420には、レイアウト処理を実行するために、DOMツリー対応処理手段421と、終了判定手段422、及び領域マネージャ423を有する。   The layout information creation unit 420 includes a DOM tree correspondence processing unit 421, an end determination unit 422, and an area manager 423 in order to execute layout processing.

DOMツリー対応処理手段421は、DOMツリーの階層ごとにレイアウト処理を実行する部分である。また、終了判定手段422は、DOMツリーの各ノードに対して更に子ノードが存在するか否かを確認することで、各タグとその内容部分のレイアウトが終了したか否かを判定する。更に、領域マネージャ423は、レイアウト後の1頁内の残りレイアウト領域を管理する。即ち、DOMツリー対応処理手段421でDOMツリーの各ノードに対してレイアウトを行い、終了判定手段422で各タグ等のレイアウトが終了したか否かを判定し、領域マネージャ423で1頁内の残り領域を管理する。   The DOM tree correspondence processing means 421 is a part that executes layout processing for each layer of the DOM tree. In addition, the end determination unit 422 determines whether or not the layout of each tag and its content portion has ended by confirming whether or not there are further child nodes for each node of the DOM tree. Furthermore, the area manager 423 manages the remaining layout area in one page after layout. That is, the DOM tree correspondence processing unit 421 performs layout for each node of the DOM tree, the end determination unit 422 determines whether the layout of each tag has been completed, and the region manager 423 determines the remaining in one page. Manage areas.

フォントデータ提供手段430は、レイアウト情報作成手段420において文字列に対するレイアウトを行う際にメモリに記憶されたフォントデータを読み出して出力する。更に、フォントデータ提供手段430は、レイアウト情報作成手段420からレイアウトされた各ボックスの幅とその幅内に入れるべき文字列とに関する情報が入力され、そのボックスの1行分の幅に入った文字列の文字数と、実際に入った文字列の幅の情報を出力する。   The font data providing unit 430 reads out and outputs the font data stored in the memory when the layout information creating unit 420 performs the layout for the character string. Further, the font data providing unit 430 receives information on the width of each box laid out from the layout information creating unit 420 and the character string to be included in the width, and the character included in the width of one line of the box. Outputs information about the number of characters in the column and the width of the actual string entered.

レイアウト情報記憶手段440は、レイアウト情報作成手段420で作成されたレイアウト情報を記憶する。そして、記憶したレイアウト情報をレンダリング部50に出力する。   The layout information storage unit 440 stores the layout information created by the layout information creation unit 420. Then, the stored layout information is output to the rendering unit 50.

このように構成されたレイアウト手段40の動作を説明する。まず、Xhtml解析手段10からのレイアウト指示を受けると、レイアウトマネージャ410を経由して、その指示がレイアウト情報作成手段420に入力される。レイアウト情報作成手段420は、必要なDOMツリーやスタイルデータを参照してそのデータを取得する。その後、DOMツリー対応処理手段421は、実際のレイアウト処理を行う。   The operation of the layout means 40 configured as described above will be described. First, when a layout instruction is received from the Xhtml analysis means 10, the instruction is input to the layout information creation means 420 via the layout manager 410. The layout information creating unit 420 refers to a necessary DOM tree and style data and acquires the data. Thereafter, the DOM tree correspondence processing unit 421 performs an actual layout process.

図2に示すXHTML文書5に対するレイアウトの例を図4に示す。この図4を用いてレイアウト処理の動作を説明する。まず、DOMツリー対応処理手段421は、<body>タグに対する処理を行う(文書5内の前段部分にある要素に対するレイアウト処理は終了したものと仮定)。即ち、DOMツリー対応処理手段421は、この<body>タグに対し、設定された「margin」、「border」、「padding」の分だけ座標位置を移動させる。この「margin」、「border」、「padding」は、スタイルデータであり、その設定は文書内(XHTML文書5内でも、文書5とは別の文書でもよい)に記述され、スタイルデータ記憶手段220に記憶される。もし、スタイルデータが文書内に記述されないときは、スタイルデータ記憶手段220のデフォルトとして記憶された領域から読み出したデフォルトの値で処理を行う。また、領域マネージャ423は座標移動により、どれだけ残り領域があるかの演算を行い、残り領域を把握する。   An example of the layout for the XHTML document 5 shown in FIG. 2 is shown in FIG. The operation of the layout process will be described with reference to FIG. First, the DOM tree correspondence processing unit 421 performs a process for the <body> tag (assuming that the layout process for the element in the preceding part in the document 5 has been completed). That is, the DOM tree correspondence processing unit 421 moves the coordinate position by the set “margin”, “border”, and “padding” with respect to the <body> tag. These “margin”, “border”, and “padding” are style data, and the setting is described in the document (in the XHTML document 5 or a document different from the document 5). Is remembered. If the style data is not described in the document, the processing is performed with the default value read from the area stored as the default of the style data storage unit 220. Also, the area manager 423 calculates how much remaining area is present by moving the coordinates, and grasps the remaining area.

そして、終了判定手段422は、DOMツリーから、この<body>タグのすぐ下にノードがあるか否かを確認する。この場合、図2(B)に示すよう、<div>タグのノードが存在するので、終了判定手段422は、<body>タグに対する処理は終了しないと判定する。   Then, the end determination means 422 confirms from the DOM tree whether there is a node immediately below this <body> tag. In this case, as shown in FIG. 2B, since the node of the <div> tag exists, the end determination unit 422 determines that the process for the <body> tag does not end.

次いで、DOMツリー対応処理手段421は、この<div>タグに対する処理を行う。同様に、この<div>タグに対して設定された「margin」、「border」、「padding」の分だけ座標位置を移動させる。   Next, the DOM tree correspondence processing means 421 performs processing for the <div> tag. Similarly, the coordinate position is moved by “margin”, “border”, and “padding” set for this <div> tag.

以下、同様に順次レイアウトが実行されるが、要素の内容部分である文字列1の場合は以下のようにレイアウトを行う。即ち、DOMツリー対応処理手段421は、「margin」等による座標移動後、<div>タグに対するボックスの幅(図4参照)のデータと、文字列1のデータとをフォントデータ提供手段430に出力し、実際にその幅に入った文字列の文字数と、文字列の幅とに関する情報を得る。そして、DOMツリー対応処理手段421は、文字列1のすべてが1行分の幅に入ることができないと、次の行に対するレイアウトを行うべく座標位置を移動させる。DOMツリー対応処理手段421は、1行分の幅に入ることができなかった文字列1の残りの文字列に対して、再び前述の処理を繰り返す。これにより、図4に示すよう<div>タグのボックス内に含まれる文字列1のレイアウトが終了する(この例では3行分の枠にレイアウトされる)。   Thereafter, the layout is sequentially performed in the same manner, but in the case of the character string 1 which is the content part of the element, the layout is performed as follows. That is, the DOM tree correspondence processing means 421 outputs the data of the box width (see FIG. 4) with respect to the <div> tag and the data of the character string 1 to the font data providing means 430 after the coordinate movement by “margin” or the like. Then, information regarding the number of characters of the character string actually included in the width and the width of the character string is obtained. The DOM tree correspondence processing unit 421 moves the coordinate position to perform layout for the next line when all of the character string 1 cannot fit in the width of one line. The DOM tree correspondence processing unit 421 repeats the above-described processing again for the remaining character string of the character string 1 that could not fit into the width of one line. As a result, the layout of the character string 1 included in the box of the <div> tag is finished as shown in FIG. 4 (in this example, it is laid out in a frame for three lines).

そして、終了判定手段422により、すべてのノードに対する処理が終了したと判定されると、一連のレイアウト処理が終了する。レイアウト終了後は、前述したように、レンダリング、印刷処理が行われる。尚、本プリンタ1では、原則として1頁分のレイアウトが終了するとレイアウト後のデータ(各ボックス内の座標やスタイルデータなどのレイアウト情報)がレンダリング部50に出力される。   When the end determination unit 422 determines that the processing for all the nodes has been completed, the series of layout processing ends. After the layout is completed, rendering and printing processes are performed as described above. Note that, in principle, when the layout for one page is completed in the printer 1, data after layout (layout information such as coordinates and style data in each box) is output to the rendering unit 50.

[orphans、widowsが記述された文書に対する処理]
次に、本発明に係る「orphans」、「widows」に対する処理について説明する。ここで、「orphans」は、前述したように、ページの下端に最低限残さなければならない行数を示す要素(或いはプロパティ)である。例えば、図5(A)に示すように、1頁分の印刷用紙の大きさ70に対し、2つのブロック要素A及びB75がレイアウトされている場合に、ページの下端からの行数は「5」、「orphans」が「4」と設定されていると、このブロック要素B75は「orphans」によって指定された行数(以下、この行数を含め「orphans」と称す)を満たすことになる。勿論、「orphans」とレイアウトした行数とが一致する場合もこの条件を満たすことになる。
[Processing for documents with orphans and widows]
Next, processing for “orphans” and “widows” according to the present invention will be described. Here, as described above, “orphans” is an element (or property) indicating the number of lines that must be left at the bottom of the page. For example, as shown in FIG. 5A, when two block elements A and B75 are laid out with respect to the size 70 of the printing paper for one page, the number of lines from the lower end of the page is “5”. "," Orphans "is set to" 4 ", the block element B75 satisfies the number of lines specified by" orphans "(hereinafter referred to as" orphans "including this number of lines). Of course, this condition is also satisfied when “orphans” matches the number of lines laid out.

一方、「widows」は、ページの上端に最低限残さなければならない行数を示す要素(或いはプロパティ)である。例えば、図5(B)に示す例では、ページの先頭にレイアウトされたブロック要素A75の行数は「5」、「widows」が「4」と設定されていると、このブロック要素A75は、「widows」によって指定された行数(以下、この行数を含め「widows」を称す)を満たすことになる。勿論、「widows」とレイアウトした行数とが一致する場合も条件を満たすことになる。   On the other hand, “widows” is an element (or property) indicating the minimum number of lines that must be left at the top of the page. For example, in the example shown in FIG. 5B, when the number of rows of the block element A75 laid out at the top of the page is set to “5” and “widows” is set to “4”, the block element A75 is The number of lines specified by “widows” (hereinafter referred to as “widows” including this number of lines) will be satisfied. Of course, the condition is also satisfied when “widows” matches the number of lines laid out.

次に、この「orphans」と「widows」に対する処理アルゴリズムについて説明する。図6乃至図8はその一例である。なお、この処理は、主として前述したレイアウト手段40のレイアウト情報作成手段420により行われる。   Next, a processing algorithm for “orphans” and “widows” will be described. 6 to 8 are examples thereof. This process is mainly performed by the layout information creating unit 420 of the layout unit 40 described above.

処理が開始されると(S10)、まず、ページ先頭からプロック要素のレイアウトを開始したときに改ページが発生した場合、レイアウト済みの行数が「orphans」を超えなかったとしても、改ページは行わない(S11)。例えば、図9(A)に示すように、1頁の印刷用紙の大きさ70に対して、あるブロック要素に関するレイアウトを行った結果、印刷用紙の大きさ70を超える場合、このブロック要素75自体を次のページにレイアウトすることは行わない。次のページにこのブロック要素75をレイアウトしても、改ページが発生して、これを繰り返すことで、無限ループに入ってしまうからである。この場合、ページ先頭から順次レイアウトし、1頁分の印刷用紙の大きさ70を超えた部分は、次ページにレイアウトされる。   When the process is started (S10), first, if a page break occurs when layout of a block element is started from the top of the page, even if the number of laid out lines does not exceed “orphans” Not performed (S11). For example, as shown in FIG. 9A, when the layout relating to a certain block element is performed on the size 70 of the printing paper for one page, if the size 70 of the printing paper exceeds 70, the block element 75 itself Is not laid out on the next page. This is because even if this block element 75 is laid out on the next page, a page break occurs, and this is repeated to enter an infinite loop. In this case, the layout is sequentially performed from the top of the page, and the portion exceeding the size 70 of the printing paper for one page is laid out on the next page.

ここで、ブロック要素75をレイアウトした結果、改ページが発生したか否かは以下のようにして判断できる。即ち、レイアウト情報作成手段420は、各ブロック要素75に対する座標位置を管理している。前述したように、例えば文字列に対する1行分のレイアウトが終了する毎に、レイアウト情報作成手段420(とくにDOMツリー対応処理手段421)は、座標位置を移動させている。一方で、レイアウト情報作成手段420(とくに領域マネージャ423)は、1頁分の印刷用紙の大きさ70に対して、レイアウト後の残り領域を管理している。従って、レイアウト情報作成手段420は、1頁分の印刷用紙の大きさ70を超えて、ブロック要素75内の文字列等をレイアウトしたときに、改ページが発生すると認識する。   Here, whether or not a page break has occurred as a result of the layout of the block elements 75 can be determined as follows. That is, the layout information creation unit 420 manages the coordinate position for each block element 75. As described above, for example, every time layout of one line for a character string is completed, the layout information creation unit 420 (particularly the DOM tree correspondence processing unit 421) moves the coordinate position. On the other hand, the layout information creating means 420 (particularly the area manager 423) manages the remaining area after layout for the size 70 of the printing paper for one page. Accordingly, the layout information creating unit 420 recognizes that a page break occurs when a character string or the like in the block element 75 is laid out beyond the size 70 of one page of printing paper.

図6の処理アルゴリズムに戻り、ページの途中からプロック要素のレイアウトを開始したときに改ページが発生した場合に、現在のページのレイアウト済み行数を調べ、この行数が「orphans」を超えない場合は、次ページの先頭からブロック要素75のレイアウトを開始する(S12)。図9(B)に示すように、現在のページでブロック要素A75に対するレイアウトが終了し、ブロック要素B75に対するレイアウトを行った結果、ブロック要素B75の先頭から3行目まで現在のページにレイアウトされ、4行目以降が次ページにレイアウトされる場合を考える。ブロック要素B75のページの下端からの行数は「3」であり、「orphans」が「4」と設定されると、ブロック要素B75のレイアウトに関し、「orphans」の条件を満たさないことになる。従って、このような状況が発生した場合、レイアウト情報作成手段420は、次ページにこのブロック要素B75をまとめてレイアウトする。   Returning to the processing algorithm of FIG. 6, when a page break occurs when layout of a block element is started from the middle of the page, the number of laid out lines on the current page is checked, and this number of lines does not exceed “orphans”. In this case, the layout of the block element 75 is started from the top of the next page (S12). As shown in FIG. 9B, the layout for the block element A75 is completed on the current page, and as a result of performing the layout for the block element B75, the current page is laid out from the top of the block element B75 to the third line, Consider a case where the fourth and subsequent lines are laid out on the next page. The number of lines from the lower end of the page of the block element B75 is “3”, and when “orphans” is set to “4”, the condition of “orphans” is not satisfied with respect to the layout of the block element B75. Therefore, when such a situation occurs, the layout information creating unit 420 collectively lays out the block element B75 on the next page.

ここで、レイアウト済みの行数が「orphans」を超えても先行ページは印刷しない(S13)。つまり、先行ページのレイアウトが終了するものの、先行ページのレイアウトは確定させず、先行ページのレイアウト情報は前述のレイアウト情報記憶手段440からレンダリング50に出力されない。例えば、図10(A)に示すように、先行ページにレイアウトしたブロック要素B75の行数が「5」のとき、「orphans」の「4」を超えることになるが、レイアウトの終了した先行ページに対して印刷は行わない。先行ページに対する印刷を行うと、後続ページ側で「widows」の条件を満たさない場合に先行ページに対する再レイアウト(後述)を実行できなくなるからである。   Here, the preceding page is not printed even if the number of laid out lines exceeds “orphans” (S13). That is, although the layout of the preceding page is completed, the layout of the preceding page is not fixed, and the layout information of the preceding page is not output from the layout information storage unit 440 to the rendering 50. For example, as shown in FIG. 10A, when the number of rows of the block element B75 laid out on the preceding page is “5”, it will exceed “4” of “orphans”, but the preceding page whose layout has ended. Is not printed. This is because when the preceding page is printed, if the “widows” condition is not satisfied on the succeeding page side, the re-layout (described later) cannot be executed on the preceding page.

従って、まず、後続ページにブロック要素75の残りをレイアウトしたとき、「widows」を超えるか否か確認する。そして、「widows」を超えると、先行ページを印刷、即ち、レイアウト情報作成手段420は先行ページに対するレイアウトを確定させ、先行ページに関するレイアウト情報をレンダリング部50に出力することで、印刷の処理を行う(S14)。例えば、図10(B)に示すように、「widows」が「4」と設定され、ブロック要素B75に対するレイアウトを行った結果、後続ページが行数「6」となった場合、「widows」を超えるため、先行ページに対する印刷を行う。   Therefore, first, when the rest of the block element 75 is laid out on the subsequent page, it is confirmed whether or not “widows” is exceeded. When “widows” is exceeded, the preceding page is printed, that is, the layout information creating unit 420 determines the layout for the preceding page and outputs the layout information related to the preceding page to the rendering unit 50 to perform the printing process. (S14). For example, as shown in FIG. 10B, when “widows” is set to “4” and the layout for the block element B75 is performed, the subsequent page has the number of rows “6”. Therefore, the preceding page is printed.

また、後続ページにブロック要素75の残りをレイアウトしている途中、後続ページで改ページが発生した場合も先行ページを印刷する(S15、図7参照)。例えば、図11に示すように、ブロック要素B75を後続ページにレイアウトしたときに、ブロック要素B75が1頁分の印刷用紙の大きさ70を超えると、先行ページに関するレイアウト情報がレンダリング部50に出力され印刷が行われる。先行ページと後続ページとの間で再レイアウトを行う必要がないからである。   Also, when a page break occurs on the subsequent page while the rest of the block elements 75 are being laid out on the subsequent page, the previous page is printed (S15, see FIG. 7). For example, as shown in FIG. 11, when the block element B75 is laid out on the subsequent page and the block element B75 exceeds the size 70 of the printing paper for one page, the layout information related to the preceding page is output to the rendering unit 50. And printing is performed. This is because there is no need to re-layout between the preceding page and the succeeding page.

次に、後続ページにブロック要素75の残りをレイアウトした結果、「widows」を超えない場合、レイアウト情報作成手段420により、先行ページから1行削除し、その1行を後続ページに移動させるよう処理を行う。そして、レイアウト情報作成手段420は、この処理を「widows」を満たすまで(「widows」と同じ行数となるまで)繰り返す(S16)。前述した再レイアウトの処理である。この再レイアウト処理が終了すると、先行ページのレイアウトが確定し、先行ページのレイアウト情報がレンダリング部50等に出力される。   Next, if the result of laying out the rest of the block elements 75 on the subsequent page does not exceed “widows”, the layout information creating unit 420 deletes one line from the previous page and moves the one line to the subsequent page. I do. The layout information creating unit 420 repeats this process until “widows” is satisfied (until the same number of lines as “widows”) (S16). This is the re-layout process described above. When this re-layout process is completed, the layout of the preceding page is determined and the layout information of the preceding page is output to the rendering unit 50 and the like.

例えば、図12に示すよう、「widows」が「6」と設定され、後続ページにブロック要素B75をレイアウトした結果、その行数が「4」となると「widows」の条件は満たさない。従って、レイアウト情報作成手段420は、先行ページのブロック要素B75から1行削除して、その1行を後続ページに移動させる。「widows」は「6」なので、移動を2回繰り返すことで、「widows」を満たすことになる。   For example, as shown in FIG. 12, when “widows” is set to “6” and the block element B75 is laid out on the subsequent page and the number of rows is “4”, the condition of “widows” is not satisfied. Accordingly, the layout information creating unit 420 deletes one line from the block element B75 of the preceding page and moves the one line to the subsequent page. Since “widows” is “6”, “widows” is satisfied by repeating the movement twice.

なお、このように1行ずつ移動させるのは、後続ページのページサイズが異なる場合を考慮しているからである。例えば、図13に示すように、後続ページのページサイズが先行ページよりも幅広の場合、先行ページから1行、後続ページに移動させても、後続ページの1行分に足りず、「widows」の条件を満たさないこともあり得るからである。   The reason why the lines are moved line by line is that the case where the page sizes of the subsequent pages are different is taken into consideration. For example, as shown in FIG. 13, when the page size of the subsequent page is wider than the preceding page, even if the previous page is moved to one line and the subsequent page, it is not enough for one line of the subsequent page, and “widows” This is because the above condition may not be satisfied.

図7の処理に戻り、後続ページが「widows」を満たすよう、先行ページから1行ずつ移動させても、先行ページが「orphans」を満たさない場合もある。この場合は、レイアウト情報作成手段420は、改ページの発生するブロック要素75をすべて後続ページに移動させるようレイアウトする(S17)。例えば、図14に示すよう、先行ページから1行づつ移動させると後続ページが「widows」を満たすこととなるが、移動した結果、先行ページは「orphans」の条件を満たさなくなる。この場合、ブロック要素B75自体が後続ページに移動される。   Returning to the processing of FIG. 7, even if the preceding page is moved line by line from the preceding page so that the subsequent page satisfies “widows”, the preceding page may not satisfy “orphans”. In this case, the layout information creating unit 420 performs layout so that all block elements 75 in which page breaks occur are moved to subsequent pages (S17). For example, as illustrated in FIG. 14, if the previous page is moved line by line from the preceding page, the subsequent page satisfies “widows”. However, as a result of the movement, the preceding page does not satisfy the condition of “orphans”. In this case, the block element B75 itself is moved to the subsequent page.

以上により、「orphans」と「widows」が記述された文書に対する処理アルゴリズムが終了する(S18)。   This completes the processing algorithm for the document in which “orphans” and “widows” are described (S18).

前述したように、再レイアウトに関するS16、S17は、後続ページのページサイズが先行ページのページサイズとが異なる場合を考慮した処理となっている。ページサイズが共に同じであるときは、S16、S17に代わり、図8に示す処理アルゴリズムが実行される。即ち、後続ページにブロック要素75の残りをレイアウトした結果、「widows」を超えなかった場合、先行ページから「widows」を満たすのに必要な行数だけ後続ページに移動させる。そして、移動した結果、先行ページが「orphans」を満たさないとブロック要素75全体を後続ページに移動させる(S19)。1行ずつ移動させるのではなく、「widows」を満たす分必要な行数だけ移動させる。1行ずつ移動させる場合と比較して処理を速くすることができる。   As described above, S16 and S17 related to the re-layout are processes in consideration of the case where the page size of the subsequent page is different from the page size of the preceding page. When the page sizes are the same, the processing algorithm shown in FIG. 8 is executed instead of S16 and S17. That is, if the result of laying out the rest of the block elements 75 on the subsequent page does not exceed “widows”, the number of lines necessary to satisfy “widows” is moved from the previous page to the subsequent page. If the preceding page does not satisfy “orphans” as a result of the movement, the entire block element 75 is moved to the subsequent page (S19). Instead of moving one line at a time, move as many lines as needed to satisfy “widows”. The processing can be speeded up as compared with the case of moving line by line.

以上の処理アルゴリズムにより、本プリンタ1は「orphans」や「widows」が記述された文書5に対する処理を実行することができ、また、「orphans」と「widows」の双方の条件を満たすよう処理が行われるため、その整合性の取れた処理が行われる。更に、先行ページにブロック要素75の先頭部分の少数行のみ印刷や表示が行われたり、後続ページの最後尾部分の少数行のみ印刷等が行われる事態を回避でき、見栄えの良い印刷等を行い得る。   With the above processing algorithm, the printer 1 can execute processing on the document 5 in which “orphans” and “widows” are described, and processing that satisfies both the conditions of “orphans” and “widows” is performed. Therefore, the process with the consistency is performed. Furthermore, it is possible to avoid the situation in which only a small number of lines at the beginning of the block element 75 are printed or displayed on the preceding page, or only a small number of lines at the end of the following page are printed. obtain.

[orphans、widowsの値を動的に変更する処理]
次に、「orphans」、「widows」の値を動的に変更する処理アルゴリズムについて説明する。CSSでは、XHTML文書5内に、印刷する際の用紙サイズを指定することができる。その例を図15に示す。しかしながら、文書5内で用紙サイズを指定しても、本プリンタ1を使用する者(以下、「ユーザ」と称す)が本プリンタ1の液晶画面等を操作して、異なる用紙サイズを指定する場合がある。つまり、文書作成者とユーザとで異なる用紙サイズを指定する場合がある。
[Process to dynamically change values of orphans and widows]
Next, a processing algorithm for dynamically changing the values of “orphans” and “widows” will be described. In CSS, the paper size for printing can be designated in the XHTML document 5. An example is shown in FIG. However, even if the paper size is specified in the document 5, the person who uses the printer 1 (hereinafter referred to as “user”) operates the liquid crystal screen of the printer 1 to specify a different paper size. There is. In other words, different paper sizes may be specified by the document creator and the user.

このような状況で、「orphans」、「widows」が指定されていたときに、ユーザの指定した用紙サイズで印刷すると、想定していない位置で改ページが発生し、見栄えの良くない状態で印刷されてしまう場合がある。その例を図17に示す。文書作成者は、見栄えを良くするため、40行の縦幅の用紙サイズ71に対して「orphans」を「6」と指定した文書5を作成した。ところが、ユーザは10行の縦幅の用紙サイズ72を指定して印刷を行うと、図17(B)に示すように、必ずしも見栄え良くレイアウト、及びその後の印刷を行うことができない。つまり、ユーザが望んでいない状態で印刷されてしまう場合がある。そこで、文書作成者が指定した「orphans」、「widows」の値を、ユーザの指定した用紙サイズに応じて変更することで、そのレイアウトを動的に変更するようにする。   In such a situation, when “orphans” and “widows” are specified, if you print with the paper size specified by the user, a page break will occur at an unexpected position, and the print will not look good It may be done. An example is shown in FIG. In order to improve the appearance, the document creator created the document 5 in which “orphans” is designated as “6” for a paper size 71 having a vertical width of 40 lines. However, if the user performs printing by designating a paper size 72 having a vertical width of 10 lines, as shown in FIG. 17B, the layout and subsequent printing cannot always be performed with good appearance. That is, there are cases where printing is performed in a state not desired by the user. Therefore, the layout is dynamically changed by changing the values of “orphans” and “widows” specified by the document creator according to the paper size specified by the user.

図16は、このような「orphans」、「widows」の値を動的に変更する処理アルゴリズムの一例である。この処理アルゴリズムは、本実施例ではレイアウト手段40のレイアウト情報作成手段420により実行されるものとする。   FIG. 16 shows an example of a processing algorithm for dynamically changing the values of “orphans” and “widows”. In this embodiment, this processing algorithm is executed by the layout information creating means 420 of the layout means 40.

まず、処理が開始される(S30)と、レイアウト情報作成手段420は用紙サイズが異なるか否か判断する(S31)。文書作成者により作成された用紙サイズを示すデータは、スタイルデータ記憶手段220から読み出すことで得る。一方、ユーザの指定した用紙サイズは、例えば、図示しない液晶表示部でユーザが指定でき、その指定された用紙サイズに関する情報がレイアウト情報作成手段420に入力される。この両者を比較することでレイアウト情報作成手段420は本処理を判断する。   First, when the process is started (S30), the layout information creation unit 420 determines whether or not the paper sizes are different (S31). Data indicating the paper size created by the document creator is obtained by reading from the style data storage unit 220. On the other hand, the paper size designated by the user can be designated by, for example, a liquid crystal display unit (not shown), and information relating to the designated paper size is input to the layout information creating unit 420. By comparing the two, the layout information creating means 420 determines this processing.

そして、用紙サイズが同じであれば(NO)、動的に変更する処理を行うことなく、本処理アルゴリズムは終了する(S33)。一方、用紙サイズが異なれば(S31でYES)、レイアウト情報作成手段420は、「orphans」、「widows」を動的に変更する処理を行う(S32)。   If the paper sizes are the same (NO), the processing algorithm ends without performing the dynamic change process (S33). On the other hand, if the paper sizes are different (YES in S31), the layout information creating means 420 performs a process of dynamically changing “orphans” and “widows” (S32).

具体的には、図17に示すように、文書作成者が指定した(文書5に記述された)用紙サイズの縦方向の長さをXcm、文書作成者が指定した「orphans」を「orphans_x」とする。また、ユーザの指定した用紙サイズの縦方向の長さをYcmとし、変更後の「orphans」を「orphans_y」とすると、
「orphans_y」=(Y/X)×「orphans_x」
により、値を得る。一方、「widows」についても同様に、
「widows_y」=(Y/X)×「widows_x」
により、変更後の値を得る。つまり、ユーザの指定した用紙サイズに合わせるよう、「orphans」と「widows」の値を変更している。
Specifically, as shown in FIG. 17, the vertical length of the paper size designated by the document creator (described in document 5) is Xcm, and “orphans” designated by the document creator is “orphans_x”. And Also, if the length in the vertical direction of the paper size specified by the user is Ycm and the changed “orphans” is “orphans_y”,
“Orphans_y” = (Y / X) × “orphans_x”
To get the value. On the other hand, for “widows” as well,
"Widows_y" = (Y / X) x "widows_x"
To obtain the changed value. That is, the values of “orphans” and “widows” are changed to match the paper size specified by the user.

そして、レイアウト情報作成手段420は、このように動的に変更された「orphans_y」、「widows_y」を用いて、前述した「orphans」、「widows」に対する処理アルゴリズムを実行する。   Then, the layout information creating unit 420 executes the above-described processing algorithms for “orphans” and “widows” using “orphans_y” and “widows_y” dynamically changed in this way.

図18乃至図19は、「orphans」、「widows」を動的に変更する処理アルゴリズムを実行して、処理を行ったときの例を示す図である。文書作成者は40行の用紙サイズで、見栄えを良くするよう、「orphans」と「widows」を共に「8」と指定した場合、ユーザが10行の用紙サイズを指定すると、とくにブロック要素B75に関しては、図18に示すようにレイアウトされる。   FIG. 18 to FIG. 19 are diagrams illustrating an example when processing is performed by executing a processing algorithm that dynamically changes “orphans” and “widows”. When the document creator specifies “orphans” and “widows” as “8” in order to improve the appearance with a paper size of 40 lines, when the user specifies a paper size of 10 lines, the block element B75 is particularly concerned. Are laid out as shown in FIG.

ユーザの指定した用紙サイズで「orphans」と「widows」を変更せずに、前述した「orphans」、「widows」に対する処理アルゴリズムを実行すると、図19(A)に示すようにレイアウトされる。即ち、ブロック要素B75に関し、最初は1ページ目に先頭から6行分がレイアウトされるものの、「orphans」の「8」を満たさないため、2ページ目の先頭からレイアウトされる(図6のS12)。そして、2ページ目にはブロック要素B75が10行、3ページ目に6行レイアウトされるものの、3ページ目の行数は「widows」の「8」を満たさないため、2ページ目のブロック要素B75から2行分、3ページ目に移動する(S16とS17、又はS19)。そして、図19(A)のように1ページ目乃至3ページ目がレイアウトされる。   If the processing algorithm for “orphans” and “widows” described above is executed without changing “orphans” and “widows” with the paper size specified by the user, the layout is as shown in FIG. That is, regarding the block element B75, although 6 lines from the top are initially laid out on the first page, since “8” of “orphans” is not satisfied, the layout is started from the top of the second page (S12 in FIG. 6). ). The second page has the block element B75 laid out in 10 rows and the third page, but the third page does not satisfy “8” of “widows”, so the block element in the second page Move to the third page for two lines from B75 (S16 and S17, or S19). Then, the first to third pages are laid out as shown in FIG.

一方、「orphans」と「widows」を動的に変更すると、「orphans_y」と「widows_y」は、共に「2」(=(10/40)×8:説明を容易にするため、X、Yともに行数のままで計算した)となる。そして、この変更された「orphans_y」と「widows_y」を用いて、ブロック要素B75をレイアウトすると図19(B)に示すようになる。   On the other hand, if “orphans” and “widows” are dynamically changed, “orphans_y” and “widows_y” are both “2” (= (10/40) × 8: both X and Y are for ease of explanation. It is calculated with the number of lines still). When the changed “orphans_y” and “widows_y” are used to lay out the block element B75, the result is as shown in FIG.

このように、「orphans」と「widows」を動的に変更する処理アルゴリズムを実行することで、本プリンタ1はXHTML文書5で指定された用紙サイズとユーザが指定した用紙サイズとが一致しない場合でも、見栄えよく印刷することができる。また、ユーザの指定した用紙サイズに合わせるよう「orphans」と「widows」の値を変更して印刷を行うため、印刷用紙の枚数削減を図ることもできる。   As described above, when the processing algorithm for dynamically changing “orphans” and “widows” is executed, the printer 1 does not match the paper size specified in the XHTML document 5 with the paper size specified by the user. But you can print nicely. In addition, since the printing is performed by changing the values of “orphans” and “widows” to match the paper size specified by the user, the number of print sheets can be reduced.

図17乃至図19に示す例では、ユーザの指定した用紙サイズが文書内の用紙サイズよりも小さい例で説明したが、その逆の場合でも全く同様である。   In the example shown in FIGS. 17 to 19, the paper size specified by the user is described as being smaller than the paper size in the document, but the opposite is also true.

また、ユーザが指定した用紙サイズと文書作成者が指定した用紙サイズとが異なる場合で前述の例を説明した。例えば、それ以外にも、文書作成者が指定した用紙サイズでは、プリンタの印刷可能な用紙サイズの限界を超える場合、プリンタ1において印刷可能な用紙サイズに変更して印刷する場合でも同じことが言える。文書作成者が「A3」と指定し、プリンタ1では「A4」が最大の場合に、「A4」に変更して処理を行う等である。更に、ユーザの指定した用紙サイズで印刷できない場合にその用紙サイズをプリンタ1で変更する場合でも全く同様のことが言える。   The above example has been described in the case where the paper size specified by the user is different from the paper size specified by the document creator. For example, if the paper size specified by the document creator exceeds the limit of the paper size that can be printed by the printer, the same can be said even when printing is performed by changing to the paper size that can be printed by the printer 1. . When the document creator designates “A3” and “A4” is the maximum in the printer 1, the process is changed to “A4” and the process is performed. Furthermore, the same applies to the case where the printer 1 changes the paper size when printing cannot be performed with the paper size designated by the user.

[変形例]
前述した例は、画像処理システムの一例としてプリンタ1を例にして説明した。勿論、プリンタ1以外でも、複写機やファクシミリ、これらの機能を備える複合機、ディスプレイなどの表示装置、など種々の装置に適用可能である。このような場合でも、前述した例と同様の作用効果を得る。
[Modification]
In the above-described example, the printer 1 is described as an example of the image processing system. Of course, in addition to the printer 1, the present invention can be applied to various apparatuses such as a copying machine, a facsimile machine, a multifunction machine having these functions, and a display device such as a display. Even in such a case, the same effect as the above-described example is obtained.

また、前述の例では、構造化言語の例としてXHTML言語を使用して説明した。それ以外にも、例えば、HTML(Hyper Text Markup Language)やSGML(Standard Generalized Markup Language)などの言語により記述された文書であってもよい。   Moreover, in the above-mentioned example, it demonstrated using the XHTML language as an example of a structured language. In addition, for example, a document described in a language such as HTML (Hyper Text Markup Language) or SGML (Standard Generalized Markup Language) may be used.

画像処理システムの一例であるプリンタの全体構成を示す図である。1 is a diagram illustrating an overall configuration of a printer that is an example of an image processing system. FIG. XHTML文書の例と、DOMツリーの例とを示す図である。It is a figure which shows the example of a XHTML document, and the example of a DOM tree. レイアウト手段の内部構成を示す図である。It is a figure which shows the internal structure of a layout means. レイアウト手段で行われるレイアウトの一例を示す図である。It is a figure which shows an example of the layout performed by a layout means. 「orphans」と「widows」の概念を説明するための図である。It is a figure for demonstrating the concept of "orphans" and "widows". 「orphans」と「widows」の処理アルゴリズムの一例を示す図である。It is a figure which shows an example of the processing algorithm of "orphans" and "widows". 「orphans」と「widows」の処理アルゴリズムの一例を示す図である。It is a figure which shows an example of the processing algorithm of "orphans" and "widows". 「orphans」と「widows」の処理アルゴリズムの一例を示す図である。It is a figure which shows an example of the processing algorithm of "orphans" and "widows". レイアウトの一例を示す図である。It is a figure which shows an example of a layout. 「orphans」と「widows」を用いたレイアウトの一例を示す図である。It is a figure which shows an example of the layout using "orphans" and "widows". 「orphans」と「widows」を用いたレイアウトの一例を示す図である。It is a figure which shows an example of the layout using "orphans" and "widows". 「orphans」と「widows」を用いたレイアウトの一例を示す図である。It is a figure which shows an example of the layout using "orphans" and "widows". 「orphans」と「widows」を用いたレイアウトの一例を示す図である。It is a figure which shows an example of the layout using "orphans" and "widows". 「orphans」と「widows」を用いたレイアウトの一例を示す図である。It is a figure which shows an example of the layout using "orphans" and "widows". ページサイズを記述したXHTML文書の一例を示す図である。It is a figure which shows an example of the XHTML document which described the page size. 「orphans」と「widows」の変更アルゴリズムの一例を示す図である。It is a figure which shows an example of the change algorithm of "orphans" and "widows". XHTML文書とユーザとでレイアウトの違いを説明するための図である。It is a figure for demonstrating the difference in a layout with a XHTML document and a user. XHTML文書とユーザとでレイアウトの違いを説明するための図である。It is a figure for demonstrating the difference in a layout with a XHTML document and a user. 「orphans」と「widows」を動的に変更させたときと、変更させなかったときとでレイアウトの違いを説明するための図である。It is a figure for demonstrating the difference in a layout when changing "orphans" and "widows" dynamically, and not changing it.

符号の説明Explanation of symbols

1 プリンタ(画像処理システム)、5 XHTML文書、20 DOM−スタイル管理手段、40 レイアウト手段、70〜72 1頁分の印刷用紙の大きさ、75 ブロック要素、210 DOMツリー生成手段、220 スタイルデータ記憶手段、420 レイアウト情報作成手段   1 printer (image processing system), 5 XHTML document, 20 DOM-style management means, 40 layout means, 70 to 72 size of printing paper for one page, 75 block elements, 210 DOM tree generation means, 220 style data storage Means, 420 layout information creation means

Claims (15)

構造化言語で記述された文書に対する処理を行う画像処理システムにおいて、
前記文書に含まれる要素であって、ページの下端に最低限残さなければならない行数を示す第1の要素と、ページの上端に最低限残さなければならない行数を示す第2の要素との相関性に基づいて、前記文書に対するレイアウトを決定するレイアウト決定手段、
を備えることを特徴とする画像処理システム。
In an image processing system for processing a document described in a structured language,
A first element indicating a minimum number of lines that should be left at the bottom of the page, and a second element indicating a minimum number of lines that should be left at the top of the page. Layout determining means for determining a layout for the document based on the correlation;
An image processing system comprising:
請求項1記載の画像処理システムにおいて、
前記レイアウト決定手段は、前記第2の要素の条件を満たす処理を次ページに対して終えたとき現在のページのレイアウトを確定する、ことを特徴とする画像処理システム。
The image processing system according to claim 1,
The layout determination unit determines the layout of the current page when processing for satisfying the condition of the second element is completed for the next page.
請求項1記載の画像処理システムにおいて、
前記レイアウト決定手段は、現在のページの先頭から前記文書に含まれるブロック要素をレイアウトしたときに改ページが発生した場合、改ページは行わない、ことを特徴とする画像処理システム。
The image processing system according to claim 1,
The image processing system according to claim 1, wherein the layout determining means does not perform a page break when a page break occurs when a block element included in the document is laid out from the top of the current page.
請求項1記載の画像処理システムにおいて、
前記レイアウト決定手段は、現在のページの途中から前記文書に含まれるブロック要素をレイアウトしたときに改ページが発生した場合、前記現在のページにおける前記ブロック要素のレイアウト済みの行数が前記第1の要素の条件を満たさない場合は、次ページの先頭から前記ブロック要素全てをレイアウトする、ことを特徴とする画像処理システム。
The image processing system according to claim 1,
When a page break occurs when the block element included in the document is laid out from the middle of the current page, the layout determining means determines that the number of rows of the block element in the current page that have been laid out is the first number. An image processing system characterized by laying out all the block elements from the top of the next page when the element condition is not satisfied.
請求項4記載の画像処理システムにおいて、
前記レイアウト決定手段は、前記レイアウト済みの行数が前記第1の要素の条件を満たす場合でも前記現在のページのレイアウトを確定させない、ことを特徴とする画像処理システム。
The image processing system according to claim 4.
The image processing system according to claim 1, wherein the layout determining unit does not determine the layout of the current page even when the number of laid out rows satisfies the condition of the first element.
請求項2又は5記載の画像処理システムにおいて、
前記レイアウト決定手段は、次ページに前記ブロック要素の残りをレイアウトしたときに前記第2の要素の条件を満たす場合は前記現在のページのレイアウトを確定させる、ことを特徴とする画像処理システム。
The image processing system according to claim 2 or 5,
The layout determination means determines the layout of the current page if the second element condition is satisfied when the rest of the block elements are laid out on the next page.
請求項2又は5記載の画像処理システムにおいて、
前記レイアウト決定手段は、次ページに前記ブロック要素の残りをレイアウトしたときに前記次ページで改ページが発生した場合に前記現在のページのレイアウトを確定させる、ことを特徴とする画像処理システム。
The image processing system according to claim 2 or 5,
The layout determination means determines the layout of the current page when a page break occurs on the next page when the rest of the block elements are laid out on the next page.
請求項5記載の画像処理システムにおいて、
前記レイアウト決定手段は、次ページに前記ブロック要素の残りをレイアウトした結果前記次ページが前記第2の要素の条件を満たさない場合は、前記第2の要素の条件を満たすまで、前記現在のページから1行削除し、削除した行を前記次ページに移動させるレイアウトを繰り返す、ことを特徴とする画像処理システム。
The image processing system according to claim 5.
If the next page does not satisfy the condition of the second element as a result of laying out the rest of the block elements on the next page, the layout determining means until the condition of the second element is satisfied until the current page is satisfied. The image processing system is characterized in that one line is deleted from and a layout for moving the deleted line to the next page is repeated.
請求項8記載の画像処理システムにおいて、
前記レイアウト決定手段は、前記次ページに移動させるレイアウトを繰り返しているときに前記現在のページが前記第1の要素の条件を満たさなくなる場合は、前記ブロック要素全てを前記次ページに移動させる、ことを特徴とする画像処理システム。
The image processing system according to claim 8.
The layout determining means moves all the block elements to the next page if the current page does not satisfy the condition of the first element while repeating the layout to be moved to the next page. An image processing system.
請求項5記載の画像処理システムにおいて、
前記レイアウト決定手段は、前記次ページに前記ブロック要素の残りをレイアウトした結果前記次ページが前記第2の要素の条件を満たさない場合は、前記第2の要素の条件を満たす行数だけ、前記現在のページから前記次ページに移動する、ことを特徴とする画像処理システム。
The image processing system according to claim 5.
If the next page does not satisfy the condition of the second element as a result of laying out the rest of the block elements on the next page, the layout determining means, the number of rows satisfying the condition of the second element, An image processing system, wherein the image processing system moves from the current page to the next page.
請求項10記載の画像処理システムにおいて、
前記レイアウト決定手段は、前記第2の要素の条件を満たす行数だけ、前記現在のページから前記次ページに移動させた結果、前記現在のページが前記第1の条件を満たさなくなった場合は前記ブロック要素全てを前記次ページに移動する、ことを特徴とする画像処理システム。
The image processing system according to claim 10.
The layout determining means moves the current page from the current page to the next page by the number of lines that satisfy the condition of the second element, and as a result, the current page does not satisfy the first condition. An image processing system, wherein all block elements are moved to the next page.
請求項1乃至11記載の画像処理システムにおいて、
前記第1の要素は「orphans」であり、前記第2の要素は「widows」であることを特徴とする画像処理システム。
12. The image processing system according to claim 1, wherein:
The image processing system according to claim 1, wherein the first element is “orphans” and the second element is “widows”.
構造化言語で記述された文書に対する処理を行う画像処理システムにおいて、
ページの上端に最低限残さなければならない行数を示す要素の条件を満たすよう、前記文書に対するレイアウトを決定するレイアウト決定手段と、
前記決定されたレイアウトに基づいて印刷を実行する印刷手段と、
を備え、前記レイアウト決定手段は次ページに対する前記要素の条件を満たす処理を終えたとき現在のページに対するレイアウトを確定し、前記印刷手段は確定したレイアウトに基づいて印刷を実行する、ことを特徴とする画像処理システム。
In an image processing system for processing a document described in a structured language,
Layout determining means for determining a layout for the document so as to satisfy an element condition indicating a minimum number of lines that must be left at the top of the page;
Printing means for executing printing based on the determined layout;
The layout determining means determines the layout for the current page when processing for satisfying the element condition for the next page is completed, and the printing means executes printing based on the determined layout. Image processing system.
構造化言語で記述された文書に対するレイアウトを決定するレイアウト決定手段を備えた画像処理システムにおける画像処理方法において、
ページの下端に最低限残さなければならない行数を示す第1の要素とページの上端に最低限残さなければならない行数を示す第2の要素との相関性に基づいて、前記レイアウト決定手段で前記文書に対するレイアウトを決定する工程、
を備えることを特徴とする画像処理方法。
In an image processing method in an image processing system comprising layout determining means for determining a layout for a document described in a structured language,
Based on the correlation between the first element indicating the minimum number of lines to be left at the bottom of the page and the second element indicating the minimum number of lines to be left at the top of the page, the layout determining means Determining a layout for the document;
An image processing method comprising:
構造化言語で記述された文書に対するレイアウトを決定するレイアウト決定手段と、決定されたレイアウトに基づいて印刷を実行する印刷手段とを備えた画像処理システムにおける画像処理方法において、
ページの上端に最低限残さなければならない行数を示す要素の条件を満たす処理を次ページに対して終えたとき、前記レイアウト決定手段により、現在のページに対するレイアウトを確定する工程と、
確定したレイアウトに基づいて前記印刷手段により印刷を実行する工程と、
を備えることを特徴とする画像処理方法。
In an image processing method in an image processing system, comprising: a layout determining unit that determines a layout for a document described in a structured language; and a printing unit that executes printing based on the determined layout.
A step of determining the layout for the current page by the layout determining means when the processing for satisfying the condition of the element indicating the minimum number of lines that must be left at the top of the page is completed for the next page;
Executing printing by the printing means based on the determined layout;
An image processing method comprising:
JP2005072626A 2005-03-15 2005-03-15 Image processing system and image processing method Pending JP2006259819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005072626A JP2006259819A (en) 2005-03-15 2005-03-15 Image processing system and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005072626A JP2006259819A (en) 2005-03-15 2005-03-15 Image processing system and image processing method

Publications (1)

Publication Number Publication Date
JP2006259819A true JP2006259819A (en) 2006-09-28

Family

ID=37099052

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005072626A Pending JP2006259819A (en) 2005-03-15 2005-03-15 Image processing system and image processing method

Country Status (1)

Country Link
JP (1) JP2006259819A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009061681A (en) * 2007-09-06 2009-03-26 Seiko Epson Corp Printer, data processing apparatus for printer, and printing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02289054A (en) * 1989-03-30 1990-11-29 Sharp Corp Division inhibiting rule processor for word processor
JPH0452959A (en) * 1990-06-20 1992-02-20 Fuji Xerox Co Ltd Document processor
JP2004288220A (en) * 2004-07-09 2004-10-14 Sharp Corp Document preparing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02289054A (en) * 1989-03-30 1990-11-29 Sharp Corp Division inhibiting rule processor for word processor
JPH0452959A (en) * 1990-06-20 1992-02-20 Fuji Xerox Co Ltd Document processor
JP2004288220A (en) * 2004-07-09 2004-10-14 Sharp Corp Document preparing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009061681A (en) * 2007-09-06 2009-03-26 Seiko Epson Corp Printer, data processing apparatus for printer, and printing method

Similar Documents

Publication Publication Date Title
US7821690B2 (en) Information processing apparatus, image forming apparatus and method, and storage medium readable by computer therefor
US7903277B2 (en) Efficient printing of frames pages
US20050243371A1 (en) Document processing apparatus and method
US20100202010A1 (en) Method and system for printing a web page
JP2009510650A (en) Multi-form design with harmonized composition for dynamically aggregated documents
JP2005512185A (en) Multi-page SVG document directory
JP2006074601A (en) Document management system and its method
US7394563B2 (en) Image forming apparatus that executes an image trimming process with priority over other commands, method therefor, and storage medium storing a program therefor
WO2010143637A1 (en) Image processing apparatus, image processing method and storage medium
JP4556717B2 (en) Printer
JP5077105B2 (en) Image processing apparatus, image processing program, and image processing system
JP5792942B2 (en) Information processing apparatus, information processing method, and program
JP2006259819A (en) Image processing system and image processing method
JP4756907B2 (en) Image forming apparatus, processing method of image forming apparatus, computer program, and computer-readable recording medium
JP2005063243A (en) Information processor, program, and computer-readable storage medium
JP2006113803A (en) Document processor and method therefor
JP4599950B2 (en) Processing apparatus and processing method
JP4613659B2 (en) Image processing system
JP2009015753A (en) Display panel, screen editing method, and screen editing program
JP2010113650A (en) Structured document printer, structured document printing method and program
JP2006091956A (en) Processor and processing method
JP2013054527A (en) Information processing apparatus, information processing method, and program
JP4013748B2 (en) Document generator
JP2007004232A (en) Layout method
JP2006103280A (en) Printer, the printer controlling method, control program and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080307

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100910

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100921

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101111

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101214