JP2007196463A - Printer, its control method and its program - Google Patents

Printer, its control method and its program Download PDF

Info

Publication number
JP2007196463A
JP2007196463A JP2006015961A JP2006015961A JP2007196463A JP 2007196463 A JP2007196463 A JP 2007196463A JP 2006015961 A JP2006015961 A JP 2006015961A JP 2006015961 A JP2006015961 A JP 2006015961A JP 2007196463 A JP2007196463 A JP 2007196463A
Authority
JP
Japan
Prior art keywords
analysis
document
structured document
analysis level
style information
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.)
Granted
Application number
JP2006015961A
Other languages
Japanese (ja)
Other versions
JP4735286B2 (en
Inventor
Takamasa Niwa
孝将 丹羽
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 JP2006015961A priority Critical patent/JP4735286B2/en
Publication of JP2007196463A publication Critical patent/JP2007196463A/en
Application granted granted Critical
Publication of JP4735286B2 publication Critical patent/JP4735286B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To eliminate wasteful use of a memory and to reduce a processing burden when a structured document is printed. <P>SOLUTION: According to the multi-function printer 20, when an analysis level of a CSS document is designated to an XHTML document received from an external apparatus, a property name/property value necessary for the analysis level is selected from an original CSS document, and the XHTML document is developed into the memory 30 on the basis of the property name/property value after the selection. Therefore, unnecessary data is prevented from being developed into the memory 30. The wasteful use of the memory 30 can be eliminated when the XHTML document is subjected to printing processing, and also the processing burden at the time of printing can be reduced. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、印刷装置、その制御方法及びそのプログラムに関する。   The present invention relates to a printing apparatus, a control method thereof, and a program thereof.

従来より、XML文書やXHTML文書などに代表される階層構造を有する構造化文書を印刷可能な印刷装置が知られている。例えば、特許文献1には、XHTML文書に指定されたCSS文書を解析してスタイルオブジェクトを作成してDOMツリーとの関連づけを行う印刷装置が開示されている。
特開2005−111795号公報
2. Description of the Related Art Conventionally, printing apparatuses capable of printing structured documents having a hierarchical structure typified by XML documents and XHTML documents are known. For example, Patent Document 1 discloses a printing apparatus that analyzes a CSS document designated as an XHTML document, creates a style object, and associates it with a DOM tree.
JP 2005-11795 A

ところで、例えば印刷装置に対してデジタルテレビなどの外部装置が構造化文書の印刷指令を送信してきた場合、その印刷指令にARIB仕様で印刷せよという指令が付されていることがある。その場合、印刷装置は、その構造化文書のスタイルを定義するスタイル情報の解析を行う。例えば、スタイル情報がCSS文書の場合には、CSS文書からトークンを切り出し、プロパティ名・プロパティ値を取得し、そのプロパティ値が妥当か否かのチェックを行い、妥当であると判定したときにはそのプロパティ名・プロパティ値をルールセットオブジェクトとする。このようなスタイル情報の解析を行ったあと、ルールオブジェクトに基づいて構造化文書をメモリに展開し、メモリ展開したデータの中からARIB仕様に必要なデータのみを選択して印刷出力することが考えられる。しかしながら、メモリ展開するまではARIB仕様で印刷することを考慮していないため、メモリを無駄に使用するうえ処理時間が長くなるという問題がある。   By the way, for example, when an external device such as a digital television transmits a print instruction for a structured document to a printing apparatus, an instruction to print with the ARIB specification may be attached to the print instruction. In that case, the printing apparatus analyzes the style information that defines the style of the structured document. For example, when the style information is a CSS document, a token is cut out from the CSS document, a property name / property value is acquired, and whether the property value is valid is checked. Name / property values are rule set objects. After analyzing the style information, the structured document is expanded in the memory based on the rule object, and only the data necessary for the ARIB specification is selected from the expanded data and printed out. It is done. However, since it is not considered to print with the ARIB specification until the memory is expanded, there is a problem that the memory is wasted and the processing time is increased.

なお、XMLはeXtensible Markup Languageの略であり、XHTMLはeXtensible Hyper Text Markup Languageの略であり、CSSはCascading Style Sheetsの略であり、DOMはDocument Object Modelの略であり、ARIBは社団法人電波産業会(Association of Radio Industries and Business)を表す略称であるが、これらは当業界において周知である。   Note that XML is an abbreviation for eExtensible Markup Language, XHTML is an abbreviation for eXtensible Hyper Text Markup Language, CSS is an abbreviation for Cascading Style Sheets, and DOM is an abbreviation for DocMent Corporation. Abbreviations for Association of Radio Industries and Businesses, which are well known in the art.

本発明の印刷装置、その制御方法及びそのプログラムは、構造化文書を印刷する際にメモリの無駄な使用をなくすことを目的の一つとする。また、構造化文書を印刷する際の処理負担を軽減することを目的の一つとする。   The printing apparatus, the control method thereof, and the program thereof according to the present invention have an object to eliminate wasteful use of memory when printing a structured document. Another object is to reduce the processing load when printing a structured document.

本発明は、上述した目的の少なくとも一つを達成するために以下の手段を採った。   The present invention employs the following means in order to achieve at least one of the above-described objects.

本発明のスタイル情報解析装置は、
構造化文書を印刷可能な印刷装置であって、
前記構造化文書を外部装置から受信する受信手段と、
前記受信手段によって受信された構造化文書にスタイル情報の解析レベルが指定されているときには、該構造化文書に適用されるスタイル情報を前記解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出する解析手段と、
前記解析手段によって解析された結果に基づいて前記構造化文書をメモリ展開して印刷処理を実行する印刷処理実行手段と、
を備えることを要旨とする。
The style information analysis apparatus of the present invention is
A printing device capable of printing structured documents,
Receiving means for receiving the structured document from an external device;
When an analysis level of style information is specified in the structured document received by the receiving unit, the style information applied to the structured document is analyzed using definition information corresponding to the analysis level and the analysis is performed. Analysis means to select the style information required for the level,
Print processing execution means for executing memory processing on the structured document based on the result analyzed by the analysis means and executing print processing;
It is a summary to provide.

この印刷装置では、外部装置から受信した構造化文書にスタイル情報の解析レベルが指定されているときには、該構造化文書に適用されるスタイル情報をその解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出し、その解析結果に基づいて構造化文書をメモリ展開して印刷処理を実行する。このように、スタイル情報の解析レベルが指定されているときには、もとのスタイル情報からその解析レベルに必要なスタイル情報を選出するため、この選出後のスタイル情報に基づいて構造化文書をメモリに展開すれば、不要なデータをメモリに展開することがない。したがって、構造化文書を処理する際にメモリの無駄な使用をなくすことができるし、処理負担も軽減することができる。   In this printing apparatus, when the analysis level of the style information is specified in the structured document received from the external apparatus, the style information applied to the structured document is analyzed using the definition information corresponding to the analysis level. Then, the style information necessary for the analysis level is selected, the structured document is expanded in the memory based on the analysis result, and the printing process is executed. As described above, when the analysis level of the style information is specified, the style information necessary for the analysis level is selected from the original style information. Therefore, the structured document is stored in the memory based on the selected style information. If expanded, unnecessary data is not expanded in the memory. Therefore, it is possible to eliminate useless use of memory when processing structured documents, and to reduce the processing load.

なお、構造化文書としては、例えばマークアップ言語によって作成された文書(XML文書やXHTML文書など)が挙げられる。また、外部装置としては、例えばデジタルテレビなどを挙げることができる。また、スタイル情報としては、例えばCSS文書などが挙げられる。   The structured document includes, for example, a document (XML document, XHTML document, etc.) created by a markup language. An example of the external device is a digital television. The style information includes, for example, a CSS document.

本発明の印刷装置において、前記解析手段は、前記受信手段によって受信された構造化文書にスタイル情報の解析レベルが指定されていないときには、該構造化文書に適用されるスタイル情報を印刷出力に適した解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出するようにしてもよい。こうすれば、この選出後のスタイル情報に基づいて構造化文書をメモリに展開すれば、印刷に不要なデータをメモリに展開することがない。   In the printing apparatus according to the aspect of the invention, when the analysis level of the style information is not specified in the structured document received by the receiving unit, the analysis unit is suitable for printing out the style information applied to the structured document. Analysis may be performed using definition information corresponding to the analysis level, and style information necessary for the analysis level may be selected. In this way, if the structured document is expanded in the memory based on the selected style information, data unnecessary for printing is not expanded in the memory.

本発明の印刷装置において、前記解析手段は、前記構造化文書にスタイル情報の解析レベルが指定されているか否かの判定を、前記構造化文書を送信してきた外部装置の種類が所定の種類か否かによって判定するようにしてもよいし、前記受信手段と前記構造化文書を送信してきた外部装置とのデータパスが所定のデータパスか否かによって判定するようにしてもよい。例えば、外部装置の種類とスタイル情報の解析レベルとの対応関係が予め定められている場合には前者を採用し、データパスとスタイル情報の解析レベルとの対応関係が予め定められている場合には後者を採用することができる。   In the printing apparatus of the present invention, the analysis means determines whether or not an analysis level of style information is specified in the structured document, whether the type of the external device that has transmitted the structured document is a predetermined type. The determination may be made based on whether the data path between the receiving unit and the external apparatus that has transmitted the structured document is a predetermined data path. For example, when the correspondence between the type of external device and the analysis level of the style information is predetermined, the former is adopted, and when the correspondence between the data path and the analysis level of the style information is predetermined Can adopt the latter.

本発明の印刷装置において、スタイル情報がCSS文書の場合、解析レベルに対応する定義情報として該解析レベルで使用可能なプロパティ名を列挙したリストを採用してもよい。この場合、CSS文書を解析するにあたり、CSS文書中のプロパティ名のうち定義情報にリストアップされているプロパティ名を選出すればよい。あるいは、解析レベルに対応する定義情報として該解析レベルで使用可能なプロパティ値を列挙したリストを採用してもよい。この場合、CSS文書を解析するにあたり、CSS文書中のプロパティ名に対応して記述される定義情報にリストアップされているプロパティ値を選出すればよい。   In the printing apparatus of the present invention, when the style information is a CSS document, a list that lists property names that can be used at the analysis level may be adopted as definition information corresponding to the analysis level. In this case, when analyzing a CSS document, a property name listed in the definition information may be selected from property names in the CSS document. Or you may employ | adopt the list | wrist which enumerated the property value which can be used in this analysis level as definition information corresponding to an analysis level. In this case, when analyzing the CSS document, the property value listed in the definition information described corresponding to the property name in the CSS document may be selected.

本発明の印刷装置の制御方法は、
構造化文書を印刷可能な印刷装置の制御方法であって、
(a)前記構造化文書を外部装置から受信するステップと、
(b)前記ステップ(a)で受信した構造化文書にスタイル情報の解析レベルが指定されているときには、該構造化文書に適用されるスタイル情報を前記解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出するステップと、
(c)前記ステップ(b)で解析した結果に基づいて前記構造化文書をメモリ展開して印刷処理を実行するステップと、
を含むことを要旨とする。
The control method of the printing apparatus of the present invention includes:
A method for controlling a printing apparatus capable of printing a structured document, comprising:
(A) receiving the structured document from an external device;
(B) When the analysis level of the style information is specified in the structured document received in the step (a), the style information applied to the structured document is analyzed using the definition information corresponding to the analysis level. Selecting style information necessary for the analysis level;
(C) executing the printing process by developing the structured document in memory based on the result of the analysis in step (b);
It is made to include.

この印刷装置の制御方法では、外部装置から受信した構造化文書にスタイル情報の解析レベルが指定されているときには、該構造化文書に適用されるスタイル情報をその解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出し、その解析結果に基づいて構造化文書をメモリ展開して印刷処理を実行する。このように、スタイル情報の解析レベルが指定されているときには、もとのスタイル情報からその解析レベルに必要なスタイル情報を選出するため、この選出後のスタイル情報に基づいて構造化文書をメモリに展開すれば、不要なデータをメモリに展開することがない。したがって、構造化文書を処理する際にメモリの無駄な使用をなくすことができるし、処理負担も軽減することができる。   In this printing apparatus control method, when the analysis level of the style information is specified in the structured document received from the external apparatus, the style information applied to the structured document is used as the definition information corresponding to the analysis level. The style information necessary for the analysis level is selected, the structured document is expanded in the memory based on the analysis result, and the printing process is executed. As described above, when the analysis level of the style information is specified, the style information necessary for the analysis level is selected from the original style information. Therefore, the structured document is stored in the memory based on the selected style information. If expanded, unnecessary data is not expanded in the memory. Therefore, it is possible to eliminate useless use of memory when processing structured documents, and to reduce the processing load.

なお、本発明の印刷装置の制御方法において、上述したいずれかの本発明の印刷装置が備える構成によって奏される作用・機能を実現するためのステップを追加してもよい。   In the printing apparatus control method of the present invention, steps for realizing the functions and functions exhibited by the configuration of any of the above-described printing apparatuses of the present invention may be added.

本発明のプログラムは、上述した印刷装置の制御方法の各ステップを1又は複数のコンピュータに実現させるためのプログラムである。このプログラムは、コンピュータが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インタネットやLANなどの通信網)を介してあるコンピュータから別のコンピュータへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを一つのコンピュータに実行させるか又は複数のコンピュータに各ステップを分担して実行させれば、上述した印刷装置の制御方法と同様の作用・効果を奏することになる。   The program of the present invention is a program for causing one or more computers to realize each step of the above-described printing apparatus control method. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.), or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by a single computer or each computer executes the steps in a shared manner, the same operations and effects as those of the printing apparatus control method described above can be obtained.

次に、本発明を実施するための最良の形態を図面に基づいて説明する。図1は、本発明の一実施形態としてのマルチファンクションプリンタ20の構成の概略を示す構成図である。本実施形態のマルチファンクションプリンタ20は、図示するように、パーソナルコンピュータ40やデジタルテレビ42,デジタルカメラ44,携帯電話46などと接続され各種文書の入力を司る入力インタフェース22と、入力インタフェース22に入力されるXHTML文書の印刷を実行する印刷用アプリケーション24と、この印刷用アプリケーション24からのCSS解析依頼を受け付けるCSS解析部26と、このCSS解析部26がCSS文書の解析を行う際に参照する解析レベル対応テーブル及び定義情報をそれぞれ記憶する対応テーブル記憶領域32及び定義情報記憶領域34のほかCSS文書の解析結果であるルールセットオブジェクトを記憶するルールセットオブジェクト記憶領域36や印刷用画像を記憶する印刷用画像記憶領域38などを有するメモリ30と、印刷用アプリケーション24がルールセットオブジェクトに基づいて印刷用画像記憶領域38に展開した印刷用画像に基づいてカラーインクジェットの印刷ヘッドを駆動してカラー印刷を行う印刷実行部28とを備えている。このマルチファンクションプリンタ20は、その他にフラットベッド型のフルカラースキャナや各種ボタンが配列された操作パネルなどを備えているが、これらの説明については省略する。   Next, the best mode for carrying out the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram showing an outline of a configuration of a multifunction printer 20 as an embodiment of the present invention. As shown in the figure, the multifunction printer 20 of the present embodiment is connected to a personal computer 40, a digital television 42, a digital camera 44, a mobile phone 46, etc., and an input interface 22 for inputting various documents and an input to the input interface 22. A printing application 24 that prints the XHTML document to be printed, a CSS analysis unit 26 that receives a CSS analysis request from the printing application 24, and an analysis that the CSS analysis unit 26 refers to when analyzing the CSS document In addition to the correspondence table storage area 32 and the definition information storage area 34 for storing the level correspondence table and the definition information, respectively, the rule set object storage area 36 for storing the rule set object as the analysis result of the CSS document and the printing for storing the print image for Color printing is performed by driving a color inkjet print head based on a printing image developed in the printing image storage area 38 based on the rule set object by the memory 30 having the image storage area 38 and the like and the printing application 24. And a print execution unit 28. The multi-function printer 20 includes a flatbed type full-color scanner and an operation panel on which various buttons are arranged, but the description thereof is omitted.

メモリ30のテーブル記憶領域32に記憶されている解析レベル対応テーブルは、表1に示すように、XHTML文書をマルチファンクションプリンタ20へ送信してきた送信元がデジタルテレビ42のときにはCSS解析レベルがARIBとなるように対応づけられているが、その他の外部装置(パーソナルコンピュータ40、デジタルカメラ44及び携帯電話46)のときには特に対応するCSS解析レベルは存在しない。これは、デジタルテレビ42がXHTML文書をマルチファンクションプリンタ20へ送信してくる場合にはそのXHTML文書にCSS解析レベルとしてARIBを指定して送信してくるため、それを考慮して解析レベル対応テーブルではデジタルテレビ42にARIBが対応づけられている。一方、その他の外部装置がXHTML文書をマルチファンクションプリンタ20へ送信してくる場合にはそのXHTML文書にCSS解析レベルを指定することなく送信してくるため、それを考慮して解析レベル対応テーブルでは特に対応するCSS解析レベルが存在しないとしている。   As shown in Table 1, the analysis level correspondence table stored in the table storage area 32 of the memory 30 has a CSS analysis level of ARIB when the transmission source that has transmitted the XHTML document to the multi-function printer 20 is the digital television 42. However, there is no corresponding CSS analysis level for other external devices (personal computer 40, digital camera 44, and mobile phone 46). This is because when the digital television 42 transmits an XHTML document to the multi-function printer 20, the ARHTML is designated as the CSS analysis level in the XHTML document and transmitted, so that the analysis level correspondence table is taken into consideration. In this case, ARIB is associated with the digital television 42. On the other hand, when another external device transmits an XHTML document to the multi-function printer 20, the XHTML document is transmitted without specifying a CSS analysis level. In particular, there is no corresponding CSS analysis level.

Figure 2007196463
Figure 2007196463

メモリ30の定義情報記憶領域34に記憶されている定義情報としては、各種のCSS解析レベルに対応する定義情報がある。図2は、定義情報記憶領域34に記憶されている定義情報を示す説明図である。図2に示すように、CSS解析レベルがARIBのときの定義情報は、CSSスタイルシートに用いられる各種プロパティ名やプロパティ値のうちARIB規格に準拠したプロパティ名やプロパティ値をリストアップしたテーブルになっている。また、本実施例では、解析レベル対応テーブルでCSS解析レベルが存在しない(指定なし)の場合には、CSS解析レベルを印刷出力に適した所定の解析レベルとして処理するが、このときの定義情報としては、CSSスタイルシートに用いられる各種プロパティ名やプロパティ値のうち印刷時に利用可能なプロパティ名やプロパティ値をリストアップしたテーブルになっている。例えば、印刷時に利用可能なプロパティ名としては、文字色を指定するプロパティ名であるcolorやフォントに関する指定をまとめて行うプロパティ名であるfontなどが挙げられる。逆に、印刷時に利用不可能なプロパティ名としては、音量を指定するプロパティ名であるvolumeや読み方を指定するプロパティ名であるspeakなどが挙げられ、印刷時に利用不可能なプロパティ名・プロパティ値の組み合わせとしては、テキストを点滅させるときに用いられる組み合わせであるプロパティ名がtext-decorationのときのプロパティ値blinkなどが挙げられる。   The definition information stored in the definition information storage area 34 of the memory 30 includes definition information corresponding to various CSS analysis levels. FIG. 2 is an explanatory diagram showing definition information stored in the definition information storage area 34. As shown in FIG. 2, the definition information when the CSS analysis level is ARIB is a table listing property names and property values compliant with the ARIB standard among various property names and property values used in the CSS style sheet. ing. In this embodiment, when the CSS analysis level does not exist (no specification) in the analysis level correspondence table, the CSS analysis level is processed as a predetermined analysis level suitable for print output. Is a table listing property names and property values that can be used at the time of printing among various property names and property values used in the CSS style sheet. For example, property names that can be used at the time of printing include color, which is a property name for specifying a character color, and font, which is a property name for collectively specifying fonts. Conversely, property names that cannot be used for printing include volume, which is a property name that specifies volume, and speak, which is a property name that specifies how to read. The combination includes a property value blink when the property name is text-decoration, which is a combination used when blinking text.

メモリ30のルールセットオブジェクト記憶領域36には、CSS解析部26での解析の結果、定義情報を参照して妥当性が認められたプロパティ名とプロパティ値との組み合わせが一つのルールセットオブジェクトとして記憶される。   The rule set object storage area 36 of the memory 30 stores, as one rule set object, a combination of property names and property values that have been validated by referring to definition information as a result of analysis by the CSS analysis unit 26. Is done.

次に、こうして構成された本実施形態のマルチファンクションプリンタ20の動作、特にXHTML文書を印刷する際の動作について説明する。図3は、CSS解析部26により実行されるCSS解析ルーチンの一例を示すフローチャートである。マルチファンクションプリンタ20では、いずれかの外部装置(パーソナルコンピュータ40,デジタルテレビ42,デジタルカメラ44,携帯電話46)から入力インタフェース22を介してXHTML文書の印刷指令を入力すると、印刷用アプリケーション24が印刷実行部28にそのXHTML文書の印刷処理を実行させるが、その印刷処理の前に該印刷用アプリケーション24からCSS解析部26にそのXHTML文書に適用されるCSS文書の解析依頼がなされたときにCSS解析部26がCSS解析ルーチンを実行する。   Next, the operation of the multi-function printer 20 of this embodiment configured as described above, particularly the operation when printing an XHTML document will be described. FIG. 3 is a flowchart illustrating an example of a CSS analysis routine executed by the CSS analysis unit 26. In the multi-function printer 20, when a print command for an XHTML document is input from any external device (personal computer 40, digital television 42, digital camera 44, mobile phone 46) via the input interface 22, the printing application 24 prints. The execution unit 28 causes the XHTML document to be printed. When the CSS application 26 requests the CSS analysis unit 26 to analyze the CSS document applied to the XHTML document before the print processing, the CSS is executed. The analysis unit 26 executes a CSS analysis routine.

CSS解析部26は、このCSS解析ルーチンを開始すると、まず、XHTML文書にCSS文書の解析レベルの指定があるか否かを判定する(ステップS100)。このステップS100では、XHTML文書をマルチファンクションプリンタ20へ送信してきた外部装置がデジタルテレビ42のときには表1の解析レベル対応テーブルに照らして解析レベルの指定があると判定し、今回の解析レベルとしてデジタルテレビ42に対応するARIBを設定する(ステップS110)。一方、XHTML文書をマルチファンクションプリンタ20へ送信してきた外部装置がデジタルテレビ42以外の外部装置のときには表1の解析レベル対応テーブルに照らして解析レベルの指定がないと判定し、今回の解析レベルとして印刷出力に適した所定の解析レベルを設定する(ステップS120)。   When starting the CSS analysis routine, the CSS analysis unit 26 first determines whether or not the analysis level of the CSS document is specified in the XHTML document (step S100). In this step S100, when the external device that has transmitted the XHTML document to the multi-function printer 20 is the digital television 42, it is determined that there is an analysis level designation according to the analysis level correspondence table of Table 1, and the digital analysis is performed as the current analysis level. The ARIB corresponding to the television 42 is set (step S110). On the other hand, when the external device that has transmitted the XHTML document to the multi-function printer 20 is an external device other than the digital television 42, it is determined that there is no analysis level designation in accordance with the analysis level correspondence table of Table 1, A predetermined analysis level suitable for print output is set (step S120).

こうして解析レベルを設定した後、XHTML文書に適用されるCSS文書中の句切り文字(コロン(:)又はセミコロン(;))を手がかりにトークンを切り出し(ステップS130)、そのトークンの意味を解析してプロパティ名及びプロパティ値を取得する(ステップS140)。図4は、XHTML文書に適用されるオリジナルのCSS文書の一例を示す。ここでは5つのセレクタ(クラスセレクタ)についてそれぞれプロパティ名・プロパティ値が記述されている。なお、このCSS文書は、XHTML文書のヘッダ部分に記述された内部スタイルシートであってもよいし、ヘッダ部分にlinkタグを使って指定された外部スタイルシートであってもよいし、タグに対してスタイルシートの設定を記述したインラインスタイルシートであってもよい。そして、今回の解析レベルに対応する定義情報をメモリ30の定義情報記憶領域34(図2参照)から読み出し(ステップS150)、読み出した定義情報と先ほど取得したプロパティ名及びプロパティ値とを比較対照することにより、今回の解析レベルに合致するプロパティ名及びプロパティ値を選出し(ステップS160)、選出結果に基づいてルールセットオブジェクトを生成する(ステップS170)。例えば、図4に示すオリジナルのCSS文書のうち、解析レベルがARIBのときの定義情報を用いた場合には、文字色を指定するプロパティ名colorと赤色を指定するプロパティ値redとの組み合わせ及びボーダーのスタイルを指定するプロパティ名border-styleと一本線を指定するプロパティ値solidとの組み合わせが選出され、各組み合わせごとにルールセットオブジェクトが生成される。図5は、このようにして選出されたルールセットオブジェクトを便宜的にCSS文書で表したときの説明図である。また、解析レベルが印刷出力に適した所定の解析レベルのときの定義情報を用いた場合には、先ほどと同様のプロパティ名colorとプロパティ値redとの組み合わせやプロパティ名border-styleとプロパティ値solidとの組み合わせのほか、背景画像のリピートの仕方を指定するプロパティ名background-repeatと横方向にのみ背景画像を繰り返すことを指定するプロパティ値repeat-xとの組み合わせが選出され、各組み合わせごとにルールセットオブジェクトが生成される。図6は、このようにして選出されたルールセットオブジェクトを便宜的にCSS文書で表したときの説明図である。そして、生成したルールセットオブジェクトを印刷用アプリケーション24が利用できるようにメモリ30のルールセットオブジェクト記憶領域36に記憶し(ステップS180)、印刷用アプリケーション24へCSS文書の解析が終了した旨を通知し(ステップS190)、本ルーチンを終了する。なお、ステップS160ではプロパティ名やプロパティ値のスペルチェックも行うものとする。   After setting the analysis level in this way, a token is cut out using a punctuation character (colon (:) or semicolon (;)) in the CSS document applied to the XHTML document (step S130), and the meaning of the token is analyzed. The property name and property value are acquired (step S140). FIG. 4 shows an example of an original CSS document applied to an XHTML document. Here, property names and property values are described for five selectors (class selectors). This CSS document may be an internal style sheet described in the header part of the XHTML document, or an external style sheet specified using a link tag in the header part. It may be an inline style sheet describing style sheet settings. Then, the definition information corresponding to the current analysis level is read from the definition information storage area 34 (see FIG. 2) of the memory 30 (step S150), and the read definition information is compared with the property name and property value acquired earlier. As a result, a property name and a property value matching the current analysis level are selected (step S160), and a rule set object is generated based on the selection result (step S170). For example, in the original CSS document shown in FIG. 4, when the definition information when the analysis level is ARIB is used, a combination of a property name color that specifies a character color and a property value red that specifies red, and a border A combination of the property name border-style that specifies the style and the property value solid that specifies a single line is selected, and a rule set object is generated for each combination. FIG. 5 is an explanatory diagram when the rule set object selected in this way is represented by a CSS document for convenience. In addition, when the definition information when the analysis level is a predetermined analysis level suitable for print output is used, the same combination of property name color and property value red, property name border-style and property value solid as before In addition to the combination of, a combination of the property name background-repeat that specifies how to repeat the background image and the property value repeat-x that specifies that the background image is repeated only in the horizontal direction is selected, and a rule for each combination A set object is created. FIG. 6 is an explanatory diagram when the rule set object selected in this way is represented by a CSS document for convenience. The generated rule set object is stored in the rule set object storage area 36 of the memory 30 so that it can be used by the printing application 24 (step S180), and the printing application 24 is notified that the analysis of the CSS document is completed. (Step S190), this routine is finished. In step S160, the spelling check of the property name and property value is also performed.

印刷用アプリケーション24は、CSS解析部26からCSS文書の解析が終了した旨の通知を受信したあと、XHTML文書のボディ部分に記述されているコンテンツに対して、今回のXHTML文書に適用されるCSS文書のうちルールセットオブジェクトに合致するものを適用してレイアウトを作成し、そのレイアウトを用いてRGBデータとしての印刷用画像を描画してメモリ30の印刷用画像記憶領域に格納し、その印刷用画像のRGBデータをCMYKデータに色変換し、そのCMYKデータを誤差拡散処理などの画像処理を行って2値化し、2値化されたデータがカラー印刷されるよう印刷実行部28を制御する。こうすることにより、XHTML文書がデジタルテレビ42からマルチファンクションプリンタ20へ送信されてきた場合には、解析レベルとしてARIBを設定してその解析レベルでもってCSS文書を解析したあと、解析結果であるルールセットオブジェクトを利用して印刷用画像をメモリ30に展開し印刷を実行するため、メモリ30に無駄なデータを展開することがなく印刷処理に要する時間も短縮化される。また、XHTML文書がデジタルテレビ42以外の外部装置からマルチファンクションプリンタ20へ送信されてきた場合には、解析レベルとして印刷出力に適した所定の解析レベルを設定しその解析レベルでもってCSS文書を解析したあと、解析結果であるルールセットオブジェクトを利用して印刷用画像をメモリ30に展開し印刷を実行するため、メモリ30に無駄なデータを展開することがなく印刷処理に要する時間も短縮化される。   After receiving the notification that the analysis of the CSS document has been completed from the CSS analysis unit 26, the printing application 24 applies the CSS applied to the current XHTML document to the content described in the body part of the XHTML document. A layout is created by applying a document that matches the rule set object, and a print image as RGB data is drawn using the layout and stored in the print image storage area of the memory 30. The RGB data of the image is color-converted into CMYK data, the CMYK data is binarized by image processing such as error diffusion processing, and the print execution unit 28 is controlled so that the binarized data is color-printed. In this way, when an XHTML document is transmitted from the digital television 42 to the multi-function printer 20, after setting the analysis level to ARIB and analyzing the CSS document with the analysis level, the rule that is the analysis result Since the print image is expanded in the memory 30 using the set object and printing is performed, useless data is not expanded in the memory 30 and the time required for the printing process is shortened. When an XHTML document is transmitted from an external device other than the digital television 42 to the multi-function printer 20, a predetermined analysis level suitable for print output is set as the analysis level, and the CSS document is analyzed using the analysis level. After that, the image for printing is developed in the memory 30 using the rule set object that is the analysis result, and printing is performed, so that unnecessary data is not expanded in the memory 30 and the time required for the printing process is shortened. The

ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態のXHTML文書が本発明の構造化文書に相当し、入力インタフェース22が受信手段に相当し、CSS解析部26が解析手段に相当し、印刷用アプリケーション24が印刷処理実行手段に相当する。なお、本実施形態では、マルチファンクションプリンタ20の動作を説明することにより本発明の印刷装置の制御方法やそのプログラムの一例も明らかにしている。   Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The XHTML document of this embodiment corresponds to a structured document of the present invention, the input interface 22 corresponds to a receiving unit, the CSS analysis unit 26 corresponds to an analyzing unit, and the printing application 24 corresponds to a print processing execution unit. . In this embodiment, the operation of the multi-function printer 20 is described to clarify an example of the control method of the printing apparatus and the program thereof according to the present invention.

以上詳述したマルチファンクションプリンタ20によれば、外部装置から受信したXHTML文書にCSS文書の解析レベルが指定されているときには、オリジナルのCSS文書からその解析レベルで使用可能なプロパティ名・プロパティ値を選出し、この選出後のプロパティ名・プロパティ値に基づいてXHTML文書をメモリ30に展開するため、不要なデータをメモリ30に展開することがない。したがって、XHTML文書を印刷処理する際にメモリ30の無駄な使用をなくすことができるし、印刷時の処理負担も軽減することができる。   According to the multi-function printer 20 described in detail above, when the analysis level of the CSS document is specified in the XHTML document received from the external device, the property name / property value that can be used at the analysis level is specified from the original CSS document. Since an XHTML document is expanded in the memory 30 based on the selected property name / property value after selection, unnecessary data is not expanded in the memory 30. Therefore, useless use of the memory 30 can be eliminated when printing the XHTML document, and the processing load at the time of printing can be reduced.

また、外部装置から受信したXHTML文書にCSS文書の解析レベルが指定されていないときには、オリジナルのCSS文書から印刷出力に適した所定の解析レベルで使用可能なプロパティ名・プロパティ値を選出するため、解析レベルが指定されている場合と同様、XHTML文書を印刷処理する際にメモリ30の無駄な使用をなくすことができるし、印刷時の処理負担も軽減することができる。   Also, when the CSS document analysis level is not specified in the XHTML document received from the external device, a property name / property value usable at a predetermined analysis level suitable for print output is selected from the original CSS document. As in the case where the analysis level is designated, wasteful use of the memory 30 can be eliminated when the XHTML document is printed, and the processing load during printing can be reduced.

なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。   It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.

例えば、上述した実施形態では、XHTML文書にCSS文書の解析レベルが指定されているか否かの判定を、そのXHTML文書を送信してきた外部装置の種類がデジタルテレビか否かによって判定するようにしたが、解析レベル対応テーブルにおいてデータパスがイーサネット(登録商標)のときに解析レベルがARIBであると対応づけられ、他のデータパス(ブルートゥースなど)のときに解析レベルの指定なしと対応づけられている場合には、そのXHTML文書を送信してきた外部装置のデータパスがイーサネットか否かによってCSS文書の解析レベルが指定されているか否かを判定するようにしてもよい。   For example, in the above-described embodiment, whether or not the analysis level of the CSS document is specified in the XHTML document is determined based on whether or not the type of the external device that has transmitted the XHTML document is a digital television. However, in the analysis level correspondence table, when the data path is Ethernet (registered trademark), the analysis level is associated with ARIB, and when the data path is other data paths (such as Bluetooth), the analysis level is not designated. If the data path of the external device that has transmitted the XHTML document is Ethernet, it may be determined whether the CSS document analysis level is specified.

上述した実施形態では、XHTML文書を送信してきた外部装置の種類がデジタルテレビのときのみCSS文書の解析レベルの指定があると判定したが、外部装置の種類がデジタルテレビのとき以外でもCSS文書の解析レベルの指定があると判定するようにしてもよい。具体的には、外部装置の種類が携帯電話のときにはCSS文書の解析レベルが所定の解析レベル(例えばCSS−Print Enhanced Layout)に指定されていると判定するようにしてもよい。   In the above-described embodiment, it is determined that the analysis level of the CSS document is designated only when the type of the external device that has transmitted the XHTML document is digital television. However, the CSS document It may be determined that there is an analysis level designation. Specifically, when the type of the external device is a mobile phone, it may be determined that the analysis level of the CSS document is designated as a predetermined analysis level (for example, CSS-Print Enhanced Layout).

上述した実施形態では、構造化文書としてXHTML文書を取り上げたが、他のマークアップ言語により記述された文書を採用してもよい。また、スタイル情報としてCSS文書を取り上げたが、他のスタイルシート言語により記述された文書を採用してもよい。   In the above-described embodiment, an XHTML document is taken up as a structured document, but a document described in another markup language may be adopted. Further, the CSS document is taken up as style information, but a document described in another style sheet language may be adopted.

上述した実施形態では、印刷実行部28をカラーインクジェットの印刷ヘッドを備えるものとしたが、モノクロインクジェットの印刷ヘッドを備えるものとしてもよいし、カラーレーザプリンタやモノクロレーザプリンタとしてもよいし、ドットインパクトプリンタとしてもよい。   In the embodiment described above, the print execution unit 28 is provided with a color ink jet print head. However, the print execution unit 28 may be provided with a monochrome ink jet print head, a color laser printer or a monochrome laser printer, or a dot impact. It may be a printer.

上述した実施形態では、マルチファンクションプリンタ20に本発明を適用した例を示したが、XHTML文書の印刷をCSS文書を利用して行うことのできる装置であればこれに限定されるものではなく、例えばスキャナを有さないプリンタに本発明を適用してもよい。特に、ハガキサイズ専用のプリンタのように処理能力が比較的低いプリンタは、メモリ容量が少なかったり処理速度が遅かったりする場合が多いため、本発明を適用する意義が高い。   In the embodiment described above, an example in which the present invention is applied to the multi-function printer 20 has been described. However, the present invention is not limited to this as long as the apparatus can print an XHTML document using a CSS document. For example, the present invention may be applied to a printer that does not have a scanner. In particular, a printer with a relatively low processing capability, such as a postcard size printer, often has a small memory capacity and a low processing speed, so that it is highly meaningful to apply the present invention.

マルチファンクションプリンタ20の概略構成を表す説明図。2 is an explanatory diagram illustrating a schematic configuration of a multifunction printer 20. FIG. 各解析レベルの定義情報を示す説明図。Explanatory drawing which shows the definition information of each analysis level. CSS解析ルーチンのフローチャート。The flowchart of a CSS analysis routine. オリジナルのCSS文書の説明図。Illustration of the original CSS document. ARIBの解析結果を便宜的にCSS文書で表したときの説明図。Explanatory drawing when the analysis result of ARIB is expressed with a CSS document for convenience. 印刷に適したレベルの解析結果をCSS文書で表したときの説明図。Explanatory drawing when the analysis result of the level suitable for printing is represented by a CSS document.

符号の説明Explanation of symbols

20 マルチファンクションプリンタ、22 入力インタフェース、24 印刷用アプリケーション、26 CSS解析部、28 印刷実行部、30 メモリ、32 テーブル記憶領域、34 定義情報記憶領域、36 ルールセットオブジェクト記憶領域、38 印刷用画像記憶領域、40 パーソナルコンピュータ、42 デジタルテレビ、44 デジタルカメラ、46 携帯電話。   20 Multifunction Printer, 22 Input Interface, 24 Printing Application, 26 CSS Analysis Unit, 28 Print Execution Unit, 30 Memory, 32 Table Storage Area, 34 Definition Information Storage Area, 36 Rule Set Object Storage Area, 38 Print Image Storage Territory, 40 personal computer, 42 digital television, 44 digital camera, 46 mobile phone.

Claims (10)

構造化文書を印刷可能な印刷装置であって、
前記構造化文書を外部装置から受信する受信手段と、
前記受信手段によって受信された構造化文書にスタイル情報の解析レベルが指定されているときには、該構造化文書に適用されるスタイル情報を前記解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出する解析手段と、
前記解析手段によって解析された結果に基づいて前記構造化文書をメモリ展開して印刷処理を実行する印刷処理実行手段と、
を備える印刷装置。
A printing device capable of printing structured documents,
Receiving means for receiving the structured document from an external device;
When an analysis level of style information is specified in the structured document received by the receiving unit, the style information applied to the structured document is analyzed using definition information corresponding to the analysis level and the analysis is performed. Analysis means to select the style information required for the level,
Print processing execution means for executing memory processing on the structured document based on the result analyzed by the analysis means and executing print processing;
A printing apparatus comprising:
前記解析手段は、前記受信手段によって受信された構造化文書にスタイル情報の解析レベルが指定されていないときには、該構造化文書に適用されるスタイル情報を印刷出力に適した解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出する、
請求項1に記載の印刷装置。
When the analysis level of style information is not specified in the structured document received by the reception unit, the analysis unit defines the style information applied to the structured document corresponding to the analysis level suitable for print output. Analyzing using information and selecting style information necessary for the analysis level.
The printing apparatus according to claim 1.
前記構造化文書は、XML文書又はXHTML文書である、
請求項1又は2に記載の印刷装置。
The structured document is an XML document or an XHTML document.
The printing apparatus according to claim 1 or 2.
前記解析手段は、前記構造化文書にスタイル情報の解析レベルが指定されているか否かの判定を、前記構造化文書を送信してきた外部装置の種類が所定の種類か否かによって判定する、
請求項1〜3のいずれかに記載の印刷装置。
The analysis unit determines whether or not an analysis level of style information is specified in the structured document, based on whether or not a type of an external apparatus that has transmitted the structured document is a predetermined type;
The printing apparatus according to claim 1.
前記解析手段は、前記構造化文書にスタイル情報の解析レベルが指定されているか否かの判定を、前記受信手段と前記構造化文書を送信してきた外部装置とのデータパスが所定のデータパスか否かによって判定する、
請求項1〜4のいずれかに記載の印刷装置。
The analysis unit determines whether or not an analysis level of style information is specified in the structured document. Whether the data path between the receiving unit and the external apparatus that has transmitted the structured document is a predetermined data path. Judgment by whether or not
The printing apparatus according to claim 1.
前記スタイル情報は、CSS文書である、
請求項1〜5のいずれかに記載の印刷装置。
The style information is a CSS document.
The printing apparatus according to claim 1.
前記解析レベルに対応する定義情報は、該解析レベルで使用可能なプロパティ名を列挙したリストである、
請求項6に記載の印刷装置。
The definition information corresponding to the analysis level is a list listing property names that can be used at the analysis level.
The printing apparatus according to claim 6.
前記解析レベルに対応する定義情報は、該解析レベルで使用可能なプロパティ値を列挙したリストである、
請求項6又は7に記載の印刷装置。
The definition information corresponding to the analysis level is a list listing property values that can be used at the analysis level.
The printing apparatus according to claim 6 or 7.
構造化文書を印刷可能な印刷装置の制御方法であって、
(a)前記構造化文書を外部装置から受信するステップと、
(b)前記ステップ(a)で受信した構造化文書にスタイル情報の解析レベルが指定されているときには、該構造化文書に適用されるスタイル情報を前記解析レベルに対応する定義情報を用いて解析して該解析レベルに必要なスタイル情報を選出するステップと、
(c)前記ステップ(b)で解析した結果に基づいて前記構造化文書をメモリ展開して印刷処理を実行するステップと、
を含む制御方法。
A method for controlling a printing apparatus capable of printing a structured document, comprising:
(A) receiving the structured document from an external device;
(B) When the analysis level of the style information is specified in the structured document received in the step (a), the style information applied to the structured document is analyzed using the definition information corresponding to the analysis level. Selecting style information necessary for the analysis level;
(C) executing the printing process by developing the structured document in memory based on the result of the analysis in step (b);
Control method.
請求項9に記載の制御方法の各ステップを1又は複数のコンピュータに実現させるためのプログラム。   A program for causing each step of the control method according to claim 9 to be realized by one or more computers.
JP2006015961A 2006-01-25 2006-01-25 Printing apparatus, control method thereof, and program thereof Expired - Fee Related JP4735286B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006015961A JP4735286B2 (en) 2006-01-25 2006-01-25 Printing apparatus, control method thereof, and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006015961A JP4735286B2 (en) 2006-01-25 2006-01-25 Printing apparatus, control method thereof, and program thereof

Publications (2)

Publication Number Publication Date
JP2007196463A true JP2007196463A (en) 2007-08-09
JP4735286B2 JP4735286B2 (en) 2011-07-27

Family

ID=38451550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006015961A Expired - Fee Related JP4735286B2 (en) 2006-01-25 2006-01-25 Printing apparatus, control method thereof, and program thereof

Country Status (1)

Country Link
JP (1) JP4735286B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005170037A (en) * 2003-11-20 2005-06-30 Matsushita Electric Ind Co Ltd Printer, printing system, printing method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005170037A (en) * 2003-11-20 2005-06-30 Matsushita Electric Ind Co Ltd Printer, printing system, printing method, and program

Also Published As

Publication number Publication date
JP4735286B2 (en) 2011-07-27

Similar Documents

Publication Publication Date Title
JP2007200235A (en) Removable media device, removable media device control program and network equipment control program
JP2005063099A (en) Image processor
US8400667B2 (en) Image forming apparatus and image information saving method
US20130057884A1 (en) Information processing apparatus, computer program, and control method
JP2011022679A (en) Printer driver, information processor and computer-readable recording medium
US20040036903A1 (en) Printing apparatus
JP4735286B2 (en) Printing apparatus, control method thereof, and program thereof
US20070165270A1 (en) Image forming apparatus, system and method using printing layout templates
US9195415B2 (en) Print controller, computer readable medium having computer program product for generating print data based on print setting information stored thereon, and method of generating print setting information
JP2008040928A (en) Printed document working device
JP4423931B2 (en) Image processing device
JP2007196464A (en) Printer, its control method and its program
JP2006228009A (en) Printer driver and print system
JP2008299634A (en) Print control device and program
JP2004284259A (en) Image forming apparatus and its method
JP2007175952A (en) Image forming device, image forming method and control program
JP2005051792A (en) Printing file editing method, recording medium and printing file editing device, and color image formation system using it
JP5228543B2 (en) Print job processing system and print job processing method
JP2010218325A (en) Printing controller and printing system
JP5104446B2 (en) Print control apparatus, program, and system
JP4788288B2 (en) Printer control apparatus, printer control program, and recording medium
JP4059256B2 (en) Image forming apparatus and program
JP2006229879A (en) Fax transmission method, its program, and information processing apparatus
US20040114188A1 (en) Image processing apparatus and image processing program storage medium
US20190034138A1 (en) Methods and systems for merging an input document on a modified background form

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101116

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110329

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110411

R150 Certificate of patent or registration of utility model

Ref document number: 4735286

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140513

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees