JP2001092615A - Method and system for printing html document and recording medium - Google Patents

Method and system for printing html document and recording medium

Info

Publication number
JP2001092615A
JP2001092615A JP34674399A JP34674399A JP2001092615A JP 2001092615 A JP2001092615 A JP 2001092615A JP 34674399 A JP34674399 A JP 34674399A JP 34674399 A JP34674399 A JP 34674399A JP 2001092615 A JP2001092615 A JP 2001092615A
Authority
JP
Japan
Prior art keywords
print
tag
html document
printing
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
JP34674399A
Other languages
Japanese (ja)
Inventor
Mogen Ri
茂鉉 李
Seigen Kin
世元 金
Minchoru Kaku
▲ミン▼▲チョル▼ 郭
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.)
INFRAWARE Inc
Original Assignee
INFRAWARE Inc
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 INFRAWARE Inc filed Critical INFRAWARE Inc
Publication of JP2001092615A publication Critical patent/JP2001092615A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1244Job translation or job parsing, e.g. page banding
    • G06F3/1246Job translation or job parsing, e.g. page banding by handling markup languages, e.g. XSL, XML, HTML
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/221Parsing markup language streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To print all the pages of an HTML document in a large page size. SOLUTION: A print tag for defining a print type is added to a tag constituting an HTML document, and the HTML document in which the print tag is included is read, and the HTML document is syntax-analyzed so that a syntax analytic tree can be prepared. Then, the HTML document is rendered to the print type defined by the print tag, and printed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、HTML文書の印
刷方法、システム及び記録媒体に係り、より詳細にはH
TML(HyperText Markup Language)文書の印刷を改善
するHTML文書の印刷方法、システム及び記録媒体に
関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a method, a system and a recording medium for printing an HTML document.
The present invention relates to an HTML document printing method, system, and recording medium for improving printing of a TML (HyperText Markup Language) document.

【0002】[0002]

【従来の技術】現代社会では、情報を提供、交換する手
段としてインターネットが用いられることが多くなって
きており、インターネットは現代社会の重要な構成要素
となりつつある。
2. Description of the Related Art In the modern society, the Internet is increasingly used as a means for providing and exchanging information, and the Internet is becoming an important component of the modern society.

【0003】インターネットを通してアクセスされる情
報は、ウェブブラウザ(Web Browser)を用いて表示され
る。一般に、このようなウェブブラウザを用いて表示さ
れる情報は、主にHTMLを使用して作成されたHTM
L文書である。
[0003] Information accessed through the Internet is displayed using a web browser. In general, information displayed using such a web browser mainly includes HTML created using HTML.
L document.

【0004】HTML文書は、テキスト内にタグを埋め
込むことによりその構造が定義されており、タグ部分と
テキスト部分とに大別できる。タグ部分は、<BODY
></BODY>等のようにテキストの表示フォーマッ
トやページの表現形態等を定義するものであり、このタ
グ部分により定義された表現形態に則って、テキスト部
分の内容が表示される。
[0004] The structure of an HTML document is defined by embedding a tag in a text, and can be roughly divided into a tag portion and a text portion. The tag part is <BODY
></BODY>, etc., to define the display format of the text, the expression form of the page, and the like, and the contents of the text part are displayed in accordance with the expression form defined by the tag part.

【0005】[0005]

【発明が解決しようとする課題】通常、HTML言語で
作成されウェブブラウザにより表現されるHTML文書
は、ディスプレイ装置の表示画面に表示させたり、プリ
ンタ装置を用いて印刷したりすることができるが、実際
には、ウェブブラウザにより表現される文書は、ディス
プレイ装置を用いた表示にその主眼点を置いて開発され
ているのが現実である。例えば、HTML文書のサイズ
が大きく、ディスプレイ装置の表示画面に一度に収まり
きらない場合、通常のウェブブラウザではその文書の表
示をマウス等によりスクロールできるようになっている
が、このような大きなサイズのHTML文書をプリンタ
により印刷する場合には、ディスプレイ装置に表示され
た状態のまま印刷されるため、文書の表示の一部が切れ
てしまい、文書全体を印刷できない場合がある。これ
は、制限的な平面であるプリント用紙等のような静的な
媒体に、そのための印刷タイプの定義を行うことなくH
TML文書を印刷するためである。
Generally, an HTML document created in the HTML language and represented by a web browser can be displayed on a display screen of a display device or printed using a printer device. Actually, a document represented by a web browser is actually developed with a focus on display using a display device. For example, when the size of an HTML document is too large to fit on the display screen of the display device at a time, the display of the document can be scrolled with a mouse or the like in a normal web browser. When an HTML document is printed by a printer, the HTML document is printed as it is displayed on the display device, so that a part of the display of the document may be cut off and the entire document may not be printed. This can be done on static media, such as print paper, which is a limited plane, without defining a print type for it.
This is for printing a TML document.

【0006】このように、従来はウェブブラウザにより
表示される文書を印刷する場合、ディスプレイ装置に表
示された表示状態のままに印刷されてしまうという問題
があった。そこで、本発明は、ウェブブラウザにより表
現される文書等の印刷タイプを定義するHTML文書の
印刷方法、システム及び記録媒体を提供するにより、上
述の問題を解決することを目的とする。
As described above, conventionally, when a document displayed by a web browser is printed, there is a problem that the document is printed as it is displayed on a display device. Therefore, an object of the present invention is to solve the above-described problems by providing a method, a system, and a recording medium for printing an HTML document that defines a print type of a document or the like represented by a web browser.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明では、ウェブブラウザにより出力される文書
等の印刷タイプを定義できる印刷タグをHTML文書を
構成するタグに含ませるステップと、この印刷タグが含
まれたHTML文書を読み込み、当該HTML文書を構
文解析して構文解析ツリーを作成するステップと、該構
文解析ツリーを生成したHTML文書を、前記印刷タグ
に定義された印刷タイプにレンダリングするステップ
と、このレンダリングしたHTML文書をプリンタによ
り印刷するステップとを備えるHTML文書印刷方法が
提供される。印刷タグにより定義される印刷タイプは、
印刷用紙を基準として定義されることが好ましく、大部
分の使用者が印刷用紙に使用するA4規格又はB5規格
の印刷用紙を基準とすることが特に好ましい。
In order to achieve the above object, according to the present invention, a step of including a print tag capable of defining a print type such as a document output by a web browser in a tag constituting an HTML document, Reading an HTML document containing a print tag, parsing the HTML document to create a parse tree, and rendering the HTML document that generated the parse tree into a print type defined in the print tag And a step of printing the rendered HTML document by a printer. The print type defined by the print tag is
It is preferable that the printing paper is defined on the basis of the printing paper, and it is particularly preferable that the printing paper of the A4 standard or the B5 standard used by most users for the printing paper is used as the standard.

【0008】さらに、本発明では、HTML文書等の印
刷タイプを定義することができる印刷タグが、このHT
ML文書を構成するタグに含まれている印刷含有タグを
構文解析できる構文解析手段と、このHTML文書を印
刷タグに定義された印刷タイプにレンダリングすること
ができるレンダリング手段とを備えるHTML文書印刷
用システムが提供される。
Further, according to the present invention, a print tag capable of defining a print type of an HTML document or the like is provided by the HT.
An HTML document printing apparatus comprising: a parsing unit that can parse a print-containing tag included in a tag that constitutes an ML document; and a rendering unit that can render the HTML document into a print type defined in the print tag. A system is provided.

【0009】また、本発明では、上述した本発明の印刷
システムを実現することのできるプログラムを保持する
記憶媒体が提供される。すなわち、本発明では、HTM
L文書等の印刷タイプを定義することができる印刷タグ
が前記のHTML文書を構成するタグに含まれている印
刷包含タグを構文解析することができるパーサーと、こ
のHTML文書を印刷タグに定義された印刷タイプにレ
ンダリングさせ得るレンダーとを有するデータが記録さ
れているHTML文書印刷用記録媒体が提供される。な
お、本発明では、記憶媒体は機械読み取り可能であれば
どのような形態であってもよく、例えば、光記憶媒体、
磁気記憶媒体及び光磁気記憶媒体などが挙げられる。
According to the present invention, there is provided a storage medium holding a program capable of realizing the above-described printing system of the present invention. That is, in the present invention, the HTM
A parser capable of parsing a print inclusion tag included in the tags constituting the HTML document, wherein a print tag capable of defining a print type such as an L document is provided, and the HTML document is defined in a print tag. The present invention provides a recording medium for printing an HTML document in which data having a render that can be rendered to a print type is recorded. In the present invention, the storage medium may be in any form as long as it can be read by a machine. For example, an optical storage medium,
Examples include a magnetic storage medium and a magneto-optical storage medium.

【0010】本発明によれば、ウェブブラウザにより表
現される文書等の印刷タイプを定義する印刷タグを構文
解析(すなわちパーシング (parsing))することができ
る。また、本発明によれば、印刷タグに定義された印刷
タイプでHTML文書を表現する(レンダリング(rend
ering)する)ことができる。
According to the present invention, it is possible to parse (ie, parse) a print tag that defines a print type of a document or the like represented by a web browser. According to the present invention, an HTML document is represented by a print type defined in a print tag (rendering (rend)
ering)).

【0011】印刷タグとしては、例えば、つぎのような
ものが挙げられる。 (1)印刷時の出力抑止 印刷タグを<PRNOFF>〜</PRNOFF>とし
て定義し、この<PRNOFF>〜</PRNOFF>
として定義される印刷タグを、ディスプレイ装置には表
示されるが、プリンタでは印刷されないように構文解析
する。 (2)表示時の出力抑止 印刷タグを<PRNONLY>〜</PRNNLY>と
して定義し、この<PRNONLY>〜</PRNON
LY>として定義される印刷タグを、ディスプレイ装置
にはディスプレイされないが、プリンタには印刷される
ように構文解析する。 (3)ヘッダ定義 印刷タグを<HEADER>として定義し、この<HE
ADER>として定義される印刷タグを、ヘッダを指定
するものとして構文解析する。 (4)フッタ定義 印刷タグを<FOOTER>として定義し、この<FO
OTER>として定義される印刷タグを、フッタを指定
するものとして構文解析する。 (5)ハイパーリング定義 印刷タグを<PRNLINK>〜</PRNLINK>
として定義し、この<PRNLINK>〜</PRNL
INK>として定義される印刷タグを、ハイパーリンク
に連結されるHTML文書を一括して印刷できるように
構文解析する。なお、ハイパーリンクに連結されるHT
ML文書の全てを一括して印刷できるように構文解析す
ることもできる。 (6)カテゴリ定義 前記印刷タグを<CATEGORY>〜</CATEG
ORY>として定義し、この<CATEGORY>〜<
/CATEGORY>として定義される印刷タグを、上
述の<PRNLINK>〜</PRNLINK>として
定義される印刷タグが定義されたカテゴリに分類される
ように構文解析する。
The following are examples of the print tag. (1) Output suppression during printing A print tag is defined as <PRNOFF> to </ PRNOFF>, and the print tags are defined as <PRNOFF> to </ PRNOFF>.
Is parsed so that it is displayed on the display device but not printed by the printer. (2) Output suppression during display Print tags are defined as <PRNONLY> to </ PRNNLY>, and the print tags are defined as <PRNONLY> to </ PRNON.
The print tag defined as LY> is parsed so that it is not displayed on the display device but is printed on the printer. (3) Header definition The print tag is defined as <HEADER>.
The print tag defined as ADER> is parsed as specifying the header. (4) Footer definition The print tag is defined as <FOOTTER>, and this <FOOTER>
The print tag defined as OTER> is parsed as specifying the footer. (5) Hyper ring definition Print tags are <PRNLINK> to </ PRNLINK>
<PRNLINK> to </ PRNL
The print tag defined as INK> is parsed so that the HTML document linked to the hyperlink can be printed collectively. The HT linked to the hyperlink
Parsing can also be performed so that all ML documents can be printed at once. (6) Category definition The print tag is defined as <CATEGORY> to </ CATEG
OLY>, and the <CATEGORY> to <CATEGORY>
/ CATEGORY> is parsed so that the print tags defined as <PRNLINK> to </ PRNLINK> are classified into the defined category.

【0012】[0012]

【発明の実施の形態】以下、本発明の好ましい実施例
を、図面を用いて詳細に説明する。なお、図1は本発明
によるHTML文書の印刷方法の一実施例を示す流れ図
であり、図2は本発明によるHTML文書印刷用記録媒
体の一実施例を示す構成図であり、図3〜図9は、本発
明による、HTML文書を構成するタグに付加された、
印刷タグを備える印刷包含タグを解析するための一実施
例を示す流れ図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a flowchart showing an embodiment of an HTML document printing method according to the present invention, and FIG. 2 is a block diagram showing an embodiment of an HTML document printing recording medium according to the present invention. 9 is added to a tag constituting an HTML document according to the present invention.
5 is a flowchart illustrating one embodiment for analyzing a print inclusion tag with a print tag.

【0013】本発明の印刷方法は、図1に示すように、
まず、HTML文書を構成するタグに印刷タイプを定義
する印刷タグを含ませるステップS2を備える。このス
テップS2において、ユーザ(すなわち、インターネッ
トを用いてウェブブラウザを介して文書等をクライアン
トに提供するサーバ)が、HTML文書に上述の印刷タ
グを含ませることである。
The printing method according to the present invention, as shown in FIG.
First, there is provided a step S2 of including a print tag defining a print type in a tag constituting the HTML document. In step S2, the user (that is, a server that provides a document or the like to the client via the web browser using the Internet) includes the above-described print tag in the HTML document.

【0014】次に、本発明の印刷方法は、印刷タグが付
加されたHTML文書を読み込んで、これを構文解析
し、構文解析ツリー(Parsing Tree)を生成するステップ
S4と、この構文解析ツリーを生成したHTML文書
を、印刷タグに定義された印刷タイプでレンダリング(R
endering)するステップS6と、これを印刷するステッ
プS8とを備える。なお、ステップS4〜ステップS8
は、インターネットを用いるためのクライアントのパソ
コン (パーソナルコンピュータ)等において行われる。
Next, the printing method of the present invention reads an HTML document to which a print tag is added, parses the HTML document, and generates a parsing tree (Parsing Tree). Render the generated HTML document with the print type defined in the print tag (R
ending) and a step S8 of printing the same. Steps S4 to S8
Is performed on a client personal computer (personal computer) for using the Internet.

【0015】図2に示すように、クライアントのパソコ
ン等にHTML文書印刷用システムを設ければ、一般的
なタグと同様、サーバが提供する印刷タグをもシステム
が再解釈することができる。つまり、このようにするこ
とにより、システムが印刷タグの構文解析及びレンダリ
ングを実行することができるようになる。
As shown in FIG. 2, if an HTML document printing system is provided on a client personal computer or the like, the system can re-interpret a print tag provided by a server as well as a general tag. In other words, this allows the system to perform parsing and rendering of the print tag.

【0016】このような印刷タグを構文解析及びレンダ
リングするためのHTML文書印刷用システムを、図2
を用いて説明する。HTML文書印刷用システムは、図
2に示すように、構文解析手段22と、レンダリング手
段24とを備える。まず、ウェブサーバ又はローカルデ
ィスク等に保持されたHTML文書20を読み込み、構
文解析手段22を用いて、このHTML文書20から構
文解析ツリーを生成する。なお、HTML文書20は、
一般的はタグだけが存在する文書と、印刷を定義する印
刷タグが含まれる印刷包含タグを含む文書とのいずれで
もありうるが、ここでは、HTML文書20が印刷包含
タグを含むものとして説明する。
An HTML document printing system for parsing and rendering such a print tag is shown in FIG.
This will be described with reference to FIG. As shown in FIG. 2, the system for printing an HTML document includes a syntax analysis unit 22 and a rendering unit 24. First, an HTML document 20 stored in a web server or a local disk or the like is read, and a syntax analysis tree is generated from the HTML document 20 by using the syntax analysis unit 22. Note that the HTML document 20 is
Generally, it can be either a document having only a tag or a document including a print inclusion tag including a print tag that defines printing, but here, the HTML document 20 will be described as including the print inclusion tag. .

【0017】次に、構文解析ツリーを生成したHTML
文書をレンダリング手段24を用いてレンダリングした
後、このレンダリングされたHTML文書が印書出力装
置すなわちプリンタ26により印刷される。
Next, the HTML that has generated the parse tree
After rendering the document using the rendering means 24, the rendered HTML document is printed by a printing output device, that is, a printer 26.

【0018】本発明では、このような構成を備えるHT
ML文書印刷用システムを用い、構文解析及びレンダリ
ングを通して、印刷用紙を基準とするHTML文書の再
解釈(reinterpretation)が行われる。この印刷用紙を
基準とする再解釈によって、ディスプレイ装置に表示で
きる分量のHTML文書であれば、印刷用紙のような制
限された平面にその全体を印刷することが可能になる。
つまり、この再解釈によって、HTML文書は、ディス
プレイ装置に表示された状態のまま印刷されるのではな
く、ディスプレイ装置上でスクロールすることにより表
示される領域をも含めて文書全体が印刷される。換言す
れば、本発明では、HTML文書の内容が大きければフ
ォントサイズ、表又はイメージ等を縮小するか、又は、
印刷用紙を広く又は狭く設定して印刷されるようにHT
ML文書が再解釈されるのである。さらに、本発明で
は、印刷に先立って確認できるように、このように再解
釈されたHTML文書の印刷イメージ等をプレビュー機
能によりディスプレイ装置に表示することができる。
According to the present invention, the HT having such a configuration is provided.
Using a system for printing ML documents, reinterpretation of HTML documents based on printing paper is performed through parsing and rendering. This reinterpretation based on the printing paper makes it possible to print the entire HTML document on a limited plane such as the printing paper, as long as the HTML document can display on the display device.
That is, due to this reinterpretation, the HTML document is not printed as it is displayed on the display device, but the entire document including the area displayed by scrolling on the display device is printed. In other words, according to the present invention, if the content of the HTML document is large, the font size, table, image, or the like is reduced, or
HT so that the print paper is set to be wide or narrow
The ML document is reinterpreted. Further, in the present invention, the print image of the HTML document reinterpreted in this way can be displayed on the display device by the preview function so that the user can confirm the image before printing.

【0019】つぎに、HTML文書を構成するタグに加
えて印刷タグをも含む印刷含有タグについて、図3を用
いて説明する。ここで、印刷タグとは、HTML文書な
どのウェブブラウザにより表現される文書の印刷タイプ
を定義するタグである。
Next, a print-containing tag including a print tag in addition to a tag constituting the HTML document will be described with reference to FIG. Here, the print tag is a tag that defines a print type of a document represented by a web browser such as an HTML document.

【0020】本実施例の印刷システムは、HTML文書
を読み込んだ後(ステップS30)、タグを検出して
(ステップS31)、定義を閉じるタグ以外について
(ステップS32),当該タグが印刷包含タグである
か、一般のタグであるかを判断し(ステップS33)、
印刷包含タグでなければ、それぞれのタグに応じた処理
を行って(ステップS34)、処理を処理D(図5)に
進める。なお、通常、ステップS30において読み込ま
れるHTML文書は、ステップS31によりバッファに
格納される。
After reading the HTML document (step S30), the printing system of this embodiment detects a tag (step S31), and, for tags other than tags whose definition is to be closed (step S32), the tag is a print inclusion tag. It is determined whether the tag is a general tag (step S33),
If it is not a print inclusion tag, a process corresponding to each tag is performed (step S34), and the process proceeds to process D (FIG. 5). The HTML document read in step S30 is usually stored in a buffer in step S31.

【0021】ステップS33において印刷包含タグであ
れば、本実施例の印刷システムは、処理を処理C(図
4)に進める。図4に示すように、処理Cにおいて、本
実施例の印刷システムは、<PRNOFF>〜</PR
NOFF>に定義されるタグ(すなわち印刷包含タグ)
の処理を行う。本実施例では、<PRNOFF>タグは
ディスプレイ装置では表示されるが、プリンタでは印刷
されないようにする。そこで、<PRNOFF>タグと
</PRNOFF>との間のデータをバッファから削除
する(ステップS40,S41)。なお、この<PRN
OFF>等の印刷タグとして使用する文字列は、これに
限定されるものではなく、任意に変更することができ
る。
If the tag is a print inclusion tag in step S33, the printing system of this embodiment advances the process to process C (FIG. 4). As illustrated in FIG. 4, in the process C, the printing system according to the present exemplary embodiment performs the processing from <PRNOFF> to </ PR
NOFF> defined tags (ie print inclusion tags)
Is performed. In this embodiment, the <PRNOFF> tag is displayed on the display device but is not printed by the printer. Therefore, the data between the <PRNOFF> tag and </ PRNOFF> is deleted from the buffer (steps S40 and S41). Note that this <PRN
The character string used as a print tag such as "OFF>" is not limited to this, and can be arbitrarily changed.

【0022】つぎに、<PRNOFF>タグの使用例を
つぎに挙げる。 (1)使用例1 ・・・・前略 <PRNOFF> <INPUT type=text><IMG src="sample.gif"> ・・・・中略 </PRNOFF> 図4のステップS40〜ステップS43により、<PR
NOFF>と</PRNOFF>と間の文字列がディス
プレイ装置には表示されるようにする。すなわち、ディ
スプレイ装置に表示される文書と、プリンタにより印刷
される文書とを、別々に処理することができるようにす
る。
Next, an example of using the <PRNOFF> tag will be described. (1) Usage example 1... Omitted before <PRNOFF><INPUT type = text><IMG src = "sample.gif">... Omitted </ PRNOFF> In steps S40 to S43 in FIG. PR
The character string between <NOFF> and </ PRNOFF> is displayed on the display device. That is, the document displayed on the display device and the document printed by the printer can be separately processed.

【0023】また、本実施例の印刷システムは、<PR
NOFF>タグのREPLACEという属性(プロパテ
ィ)を処理するために、ステップS42及びステップS
43を実行する。このように、本実施例では、それぞれ
のタグに付加的な情報、又は、タグのオプション等を含
むプロパティを含めることができる。
The printing system according to the present embodiment has a <PR
In order to process the attribute (property) called NOFF> tag REPLACE, step S42 and step S42 are performed.
Step 43 is executed. As described above, in this embodiment, each tag can include additional information or a property including an option of the tag.

【0024】次に、本実施例の印刷システムは、図5に
示すように、<PRNONLY>〜</PRNONLY
>に定義されるタグの処理を行う。<PRNONLY>
タグは、上述した<PRNOFF>タグ(図4に図示)
とは反対に、ディスプレイ装置には表示されないが、プ
リンタによる印刷では出力されるタグである。<PRN
ONLY>タグも、<PRNOFF>タグと同様、タグ
として使用する文字列はこれに限定されるものではな
く、任意に変更することができる。
Next, as shown in FIG. 5, the printing system according to the present embodiment employs <PRNONLY> to </ PRNONLY.
> The tag defined in <> is processed. <PRNONLY>
The tag is the <PRNOFF> tag described above (shown in FIG. 4)
On the contrary, the tag is not displayed on the display device, but is output by printing by the printer. <PRN
In the <ONLY> tag, similarly to the <PRNOFF> tag, the character string used as the tag is not limited to this, and can be arbitrarily changed.

【0025】この<PRNONLY>タグの使用例を、
つぎに示す。 (2)使用例2 ・・・・前略 <PRNONLY> <!- この部分は印刷時にのみ出力されます。 --> </PRONLY> この使用例2における<PRNONLY>タグは、本発
明の構文解析手段により処理される。ステップS50〜
ステップS54は、注釈(annotation)の除去された文
字列が印刷されるように構文解析ツリーを生成するステ
ップである。後述する注釈が除去された文字列が印刷さ
れるように構文解析ツリーで生成させるステップであ
る。ここで、<PRNONLY>タグには、印刷のみが
可能であることを示す注釈を含めることもできる。
An example of use of this <PRNONLY> tag is as follows.
Shown below. (2) Example of use 2 ··· Abbreviation <PRNONLY><!-This part is output only when printing. -></PRONLY> The <PRNONLY> tag in this usage example 2 is processed by the parsing means of the present invention. Step S50-
Step S54 is a step of generating a parse tree such that a character string from which annotations have been removed is printed. This is a step of generating a character string with a parsing tree so that a character string from which an annotation described later is removed is printed. Here, the <PRNONLY> tag may include an annotation indicating that only printing is possible.

【0026】続いて、図6及び図7に示すように、印刷
された文書の様式に主に使用されるヘッダ及びフッタに
関するタグについての処理が行われる。本実施例では、
ヘッダとフッタとは、それぞれ<HEADER>タグ及
び<FOOTER>タグにより定義される。ステップS
60〜ステップS66(図6)と、ステップS70〜ス
テップS76(図7)とを実行することにより、指定さ
れたヘッダ/フッタがHTML文書内に配置される。ヘ
ッダ/フッタとしては、あらかじめ格納されているもの
を用いることができる。この場合、格納場所のURLの
指定を参照して、当該格納場所に保持された定義を用い
てヘッダ/フッタを作成するようにしてもよい。
Subsequently, as shown in FIGS. 6 and 7, processing is performed on a tag relating to a header and a footer mainly used in the format of a printed document. In this embodiment,
The header and the footer are defined by a <HEADER> tag and a <FOOTER> tag, respectively. Step S
By executing steps 60 to S66 (FIG. 6) and steps S70 to S76 (FIG. 7), the designated header / footer is arranged in the HTML document. As the header / footer, those stored in advance can be used. In this case, the header / footer may be created using the definition held in the storage location with reference to the specification of the URL of the storage location.

【0027】ここで、<HEADER>タグ及び<FO
OTER>タグは、HTML文書に含まれ、それぞれ、
ヘッダ又はフッタを定義するタグです。いかに、これら
のタグの使用例を示す。 (3)使用例3 <HTML> <HEAD> <TITLE>これはヘッダ/フッタの使用例です。</TITLE> <HEADER src="header.html" size=10%> <FOOTER src="footer.html" size=10%> </HEAD> <BODY> ・・・・中略 </BODY> ここで、<HTML>、<HEAD>、<BODY>、
<TITLE>、</BODY>等のようなタグは、通
常のHTMLタグである。
Here, the <HEADER> tag and the <FO
The OTER> tag is included in the HTML document,
Tag to define header or footer. Here is an example of how these tags can be used. (3) Usage example 3 <HTML><HEAD><TITLE> This is a usage example of header / footer. </ TITLE><HEADER src = "header.html" size = 10%><FOOTER src = "footer.html" size = 10%></HEAD><BODY> ····· Simplified </ BODY> where , <HTML>, <HEAD>, <BODY>,
Tags such as <TITLE> and </ BODY> are normal HTML tags.

【0028】また、本実施例では、ハイパーリンクによ
り連結されるHTML文書の全てを一回に印刷できるよ
うに、<CATEGORY>タグと<PRNLINK>
とを定義することができる。この<CATEGORY>
タグと<PRNLINK>タグとの処理を、図8及び図
9に示す。ステップS80〜ステップS85又はステッ
プS90〜ステップS95を実行することにより、ハイ
パーリンクで連結されたHTML文書が一度に印刷され
る。この<CATEGORY>タグと<PRNLINK
>タグとの使用例を、つぎに示す。 (4)使用例4 <HTML> <HEAD> <TITLE>これは文書の連結についての実施例です。
In this embodiment, a <CATEGORY> tag and a <PRNLINK> tag are used so that all HTML documents linked by hyperlinks can be printed at one time.
And can be defined. This <CATEGORY>
Processing of the tag and the <PRNLINK> tag is shown in FIGS. By executing steps S80 to S85 or steps S90 to S95, an HTML document linked by a hyperlink is printed at a time. This <CATEGORY> tag and <PRNLINK
The following shows an example of use with the> tag. (4) Usage example 4 <HTML><HEAD><TITLE> This is an example of linking documents.

【0029】 ここで、<CATEGORY>タグは、HTML文書の
内容を分類するためのタグである。この<PRNLIN
K>タグは、ハイパーリンクにより連結されて印刷され
るHTML文書を指定するためのタグである。本実施例
では、これらのタグを挿入しておくことにより、HTM
L文書に設定されている分類に従ってHTML文書を分
類することができ、同じ分類のHTML文書を連結して
一度に印刷することができる。
[0029] Here, the <CATEGORY> tag is a tag for classifying the contents of the HTML document. This <PRNLIN
The K> tag is a tag for designating an HTML document that is linked and printed by a hyperlink. In this embodiment, by inserting these tags, the HTM
HTML documents can be classified according to the classification set for the L documents, and HTML documents of the same classification can be linked and printed at one time.

【0030】さらに、本実施例では、ディスプレイ装置
に表示されている状態でHTML文書を編集するための
プログラミングも可能である。例えば、所望のフォント
を指定することができるようにしてもよく、また、HT
ML文書の一部を印刷する場合に印刷する箇所を選択で
きるようにしてもよい。このようにするには、編集機能
のためのタグを指定すればよい。従って、本実施例で
は、使用者は自分が所望する形態にHTML文書を編集
し、編集された文書を印刷することができる。
Further, in this embodiment, programming for editing an HTML document while being displayed on the display device is also possible. For example, it may be possible to specify a desired font.
When printing a part of the ML document, a portion to be printed may be selected. This can be done by specifying a tag for the editing function. Therefore, in this embodiment, the user can edit the HTML document in a desired format and print the edited document.

【0031】なお、本発明のHTML文書の印刷方法及
びシステムは、上述の実施例に限定されるものでなく、
本発明の印刷タグが含まれる印刷包含タグを構文解析す
ることができる構文解析手段(パーサー(parser))及
びこれをレンダリングすることができるレンダリング手
段(レンダー(render))を備えていれば足りる。ま
た、本発明では、これらを実現するプログラムを保持す
る記憶媒体も提供される。これらパーサー及びレンダー
が記憶された記憶媒体は、クライアントのパソコン等に
おいて容易にインプリメントすることができる。
The method and system for printing an HTML document according to the present invention are not limited to the above-described embodiment.
It suffices to have a parsing means (parser) capable of parsing the print inclusion tag including the print tag of the present invention and a rendering means (render) capable of rendering this. In addition, the present invention also provides a storage medium for holding a program for realizing these. The storage medium in which the parser and the render are stored can be easily implemented in a client personal computer or the like.

【0032】上述のような構成からなる本発明は、ウェ
ブブラウザ上に表現される文書の印刷タイプを定義する
ことができる印刷タグを、HTML文書を構成するタグ
に付加し、これを構文解析及びレンダリングすることに
より、インターネットを用いて情報等を提供受けるクラ
イアントに効率的な印刷環境を提供することができる。
According to the present invention having the above-described structure, a print tag which can define a print type of a document represented on a web browser is added to a tag constituting an HTML document, and the tag is subjected to parsing and parsing. By rendering, an efficient printing environment can be provided to a client who receives information or the like using the Internet.

【0033】すなわち、本発明によれば、HTML文書
を印刷する際、ディスプレイ装置に表示された状態のH
TML文書を印刷するのでなく、印刷タグに定義された
印刷タイプに応じて印刷される。これにより、本発明に
よれば、印刷用紙のような制限された平面に最も効率的
な印刷を行うことができるようになる。
That is, according to the present invention, when printing an HTML document, the H
Instead of printing the TML document, it is printed according to the print type defined in the print tag. Thus, according to the present invention, the most efficient printing can be performed on a limited flat surface such as printing paper.

【0034】また、本発明によれば、ハイパーリンクに
より連結されたHTML文書等を一度に印刷できるた
め、印刷に費やされる時間を短縮することもできる。
According to the present invention, an HTML document or the like linked by a hyperlink can be printed at a time, so that the time spent for printing can be reduced.

【0035】以上に、本発明を具体例に基づき詳細に説
明したが、本発明は、その技術思想の範囲内で多様な変
形及び修正が可能である。かかる変形及び修正もまた、
本願特許請求の範囲に属する。
Although the present invention has been described in detail with reference to specific examples, the present invention can be variously modified and modified within the scope of the technical idea. Such variations and modifications also
It belongs to the claims of the present application.

【0036】[0036]

【発明の効果】上述のように、本発明には、印刷タイプ
が定義されたHTML文書を印刷することにより、高品
質の印刷を使用者に提供する効果があるだけでなく、H
TML文書を印刷するための印刷時間を短縮することに
より、使用者の便宜を図ることができる。
As described above, the present invention not only has an effect of providing a user with high quality printing by printing an HTML document in which a printing type is defined, but also has
By shortening the printing time for printing the TML document, the convenience of the user can be achieved.

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

【図1】 本発明によるHTML文書印刷方法の一実施
例を示す流れ図である。
FIG. 1 is a flowchart showing one embodiment of an HTML document printing method according to the present invention.

【図2】 本発明によるHTML文書印刷用記録媒体の
一実施例を示す構成図である。
FIG. 2 is a configuration diagram showing an embodiment of a recording medium for printing an HTML document according to the present invention.

【図3】 HTML文書を構成するタグに本発明による
印刷タグが付加された印刷包含タグを解析するための一
実施例を示す流れ図である。
FIG. 3 is a flowchart showing one embodiment for analyzing a print inclusion tag in which a print tag according to the present invention is added to a tag constituting an HTML document.

【図4】 印刷抑止用タグ<PRNOFF>を解析する
一実施例を示す流れ図である。
FIG. 4 is a flowchart illustrating an example of analyzing a print suppression tag <PRNOFF>.

【図5】 表示抑止用タグ<PRNONLY>を解析す
る一実施例を示す流れ図である。
FIG. 5 is a flowchart illustrating an example of analyzing a display suppression tag <PRNONLY>.

【図6】 ヘッダ印刷用タグ<HEADER>を解析す
る一実施例を示す流れ図である。
FIG. 6 is a flowchart illustrating an example of analyzing a header print tag <HEADER>.

【図7】 フッタ印刷用タグ<FOOTER>を解析す
る一実施例を示す流れ図である。
FIG. 7 is a flowchart illustrating an example of analyzing a footer printing tag <FOOTTER>.

【図8】 カテゴリ定義用タグ<CATEGORY>を
解析する一実施例を示す流れ図である。
FIG. 8 is a flowchart showing an example of analyzing a category definition tag <CATEGORY>.

【図9】 ハイパーリンク定義用タグ<PRNLINK
>を解析する一実施例を示す流れ図である。
[Fig. 9] Hyperlink definition tag <PRNLINK
3 is a flowchart showing an embodiment for analyzing the &gt;

【符号の説明】[Explanation of symbols]

20…HTML文書、22…構文解析手段、24…レン
ダリング手段、26…プリンタ。
20 HTML document, 22 parsing means, 24 rendering means, 26 printer.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 郭 ▲ミン▼▲チョル▼ 大韓民国ソウル市瑞草区方背洞797−1テ ィーオーピービラト402戸 Fターム(参考) 2C061 AP01 AS02 HN15 5B021 BB02 CC05  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Guo ▲ Min ▼ ▲ Chol ▼ 402 F-Term, 797-1 Bop-dong, Seocho-gu, Seoul, South Korea F-term (reference) 2C061 AP01 AS02 HN15 5B021 BB02 CC05

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】(i)ウェブブラウザにより表現される文
書の印刷タイプを定義することができる印刷タグを、H
TML文書を構成するタグに含ませるステップと、 (ii)前記印刷タグが含まれたHTML文書を読み込
み、該HTML文書を構文解析して構文解析ツリーを生
成するステップと、 (iii)前記構文解析ツリーを生成したHTML文書
を、前記印刷タグにより定義された印刷タイプにレンダ
リングするステップと、 (iv)前記レンダリングしたHTML文書を、プリン
タを用いて印刷するステップとを備えることを特徴とす
るHTML文書の印刷方法。
(I) A print tag which can define a print type of a document represented by a web browser is defined as H
(Ii) reading the HTML document including the print tag and parsing the HTML document to generate a parsing tree; and (iii) the parsing. An HTML document comprising: rendering an HTML document that has generated a tree into a print type defined by the print tag; and (iv) printing the rendered HTML document using a printer. Printing method.
【請求項2】前記印刷タグは、<PRNOFF>〜</
PRNOFF>として定義され、 前記<PRNOFF>〜</PRNOFF>として定義
される印刷タグを、ディスプレイ装置には表示される
が、プリンタでは印刷されないように構文解析すること
を特徴とする請求項1記載のHTML文書の印刷方法。
2. The print tag according to claim 1, wherein the print tags include <PRNOFF> to </
The print tag defined as <PRNOFF> and defined as <PRNOFF> to </ PRNOFF> is parsed so as to be displayed on a display device but not printed by a printer. HTML document printing method.
【請求項3】前記印刷タグは、<PRNONLY>〜<
/PRNNLY>として定義され、 前記<PRNONLY>〜</PRNONLY>として
定義される印刷タグを、ディスプレイ装置にはディスプ
レイされないが、プリンタには印刷されるように構文解
析することを特徴とする請求項1記載のHTML文書の
印刷方法。
3. The printing tag according to claim 1, wherein the printing tag includes <PRNONLY> to
/ PRNNLY>, wherein the print tag defined as <PRNONLY> to </ PRNONLY> is parsed so as not to be displayed on the display device but to be printed on the printer. 1. A method for printing an HTML document according to item 1.
【請求項4】前記印刷タグは、<HEADER>として
定義され、 前記<HEADER>として定義される印刷タグを、ヘ
ッダを指定するものとして構文解析することを特徴とす
る請求項1記載のHTML文書の印刷方法。
4. The HTML document according to claim 1, wherein the print tag is defined as <HEADER>, and the print tag defined as <HEADER> is parsed as specifying a header. Printing method.
【請求項5】前記印刷タグは、<FOOTER>として
定義され、 前記<FOOTER>として定義される印刷タグを、フ
ッタを指定するものとして構文解析することを特徴とす
る請求項1記載のHTML文書の印刷方法。
5. The HTML document according to claim 1, wherein the print tag is defined as <FOOTTER>, and the print tag defined as <FOOTTER> is parsed as specifying a footer. Printing method.
【請求項6】前記印刷タグは、<PRNLINK>〜<
/PRNLINK>として定義され、 前記<PRNLINK>〜</PRNLINK>として
定義される印刷タグを、ハイパーリンクに連結されるH
TML文書を一括して印刷できるように構文解析するこ
とを特徴とする請求項1記載のHTML文書の印刷方
法。
6. The print tag includes <PRNLINK> to <PRNLINK>
/ PRNLINK> and the print tag defined as <PRNLINK> to </ PRNLINK> is linked to a hyperlink H
2. The method for printing an HTML document according to claim 1, wherein syntax analysis is performed so that the HTML document can be printed collectively.
【請求項7】前記の印刷タグは、<CATEGORY>
〜</CATEGORY>として定義され、前記<CA
TEGORY>〜</CATEGORY>として定義さ
れる印刷タグを、前記<PRNLINK>〜</PRN
LINK>として定義される印刷タグが定義されたカテ
ゴリに分類されるように構文解析することを特徴とする
請求項6記載のHTML文書の印刷方法。
7. The printer according to claim 1, wherein the print tag is <CATEGORY>.
~ <// CATEGORY>, the <CA
The print tags defined as “TEGORY” to “</ CATEGORY” are replaced with the print tags defined in the above “PRNLINK” to “</ PRN”.
7. The method for printing an HTML document according to claim 6, wherein parsing is performed so that a print tag defined as LINK> is classified into the defined category.
【請求項8】前記印刷タグにより定義される印刷タイプ
は、印刷用紙を基準として定義されることを特徴とする
請求項1記載のHTML文書の印刷方法。
8. The method according to claim 1, wherein the print type defined by the print tag is defined based on print paper.
【請求項9】HTML文書を構成するタグに該HTML
文書の印刷タイプを定義することができる印刷タグを含
ませた印刷包含タグを構文解析することができる構文解
析手段と、 前記HTML文書を前記印刷タグにより定義された印刷
タイプにレンダリングさせることができるレンダリング
手段とを備えることを特徴とするHTML文書印刷用シ
ステム。
9. HTML tags are included in HTML documents.
Parsing means capable of parsing a print inclusion tag including a print tag capable of defining a print type of the document; and rendering the HTML document to a print type defined by the print tag. An HTML document printing system, comprising: a rendering unit.
【請求項10】HTML文書を構成するタグに該HTM
L文書の印刷タイプを定義することができる印刷タグを
含ませた印刷包含タグを構文解析することができるパー
サーと、 前記HTML文書を前記の印刷タグにより定義された印
刷タイプにレンダリングさせることができるレンダーと
を有するデータが記録されていることを特徴とするHT
ML文書印刷用記録媒体。
10. A tag constituting an HTML document, wherein the HTML
A parser capable of parsing a print inclusion tag including a print tag capable of defining a print type of the L document; and rendering the HTML document to a print type defined by the print tag. HT characterized by recording data having a render
Recording medium for printing ML documents.
JP34674399A 1999-09-07 1999-12-06 Method and system for printing html document and recording medium Pending JP2001092615A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1999-37930 1999-09-07
KR1019990037930A KR20010026567A (en) 1999-09-07 1999-09-07 Method of printing HTML documents, System and Recording media

Publications (1)

Publication Number Publication Date
JP2001092615A true JP2001092615A (en) 2001-04-06

Family

ID=19610429

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34674399A Pending JP2001092615A (en) 1999-09-07 1999-12-06 Method and system for printing html document and recording medium

Country Status (2)

Country Link
JP (1) JP2001092615A (en)
KR (1) KR20010026567A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001325080A (en) * 2000-05-17 2001-11-22 Fuji Xerox Co Ltd Device for providing document data and document processor
US7808672B2 (en) 2002-10-04 2010-10-05 Fuji Xerox Co., Ltd. Image forming device and image formation control method
JP2011013771A (en) * 2009-06-30 2011-01-20 Canon Inc Device, method, and program for controlling print
JP2011258123A (en) * 2010-06-11 2011-12-22 Jgso Co Ltd Printing program and printing method
CN112757790A (en) * 2021-01-13 2021-05-07 北京京东振世信息技术有限公司 Method and device for printing label

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100740502B1 (en) * 2005-12-06 2007-07-19 주식회사 인프라웨어 Method of printing tables included in web pages

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001325080A (en) * 2000-05-17 2001-11-22 Fuji Xerox Co Ltd Device for providing document data and document processor
US7808672B2 (en) 2002-10-04 2010-10-05 Fuji Xerox Co., Ltd. Image forming device and image formation control method
JP2011013771A (en) * 2009-06-30 2011-01-20 Canon Inc Device, method, and program for controlling print
JP2011258123A (en) * 2010-06-11 2011-12-22 Jgso Co Ltd Printing program and printing method
CN112757790A (en) * 2021-01-13 2021-05-07 北京京东振世信息技术有限公司 Method and device for printing label

Also Published As

Publication number Publication date
KR20010026567A (en) 2001-04-06

Similar Documents

Publication Publication Date Title
US7228496B2 (en) Document editing method, document editing system, server apparatus, and document editing program
US20070245230A1 (en) Method, system, and computer-readable medium to uniformly render document annotations across multiple computer platforms
US7240281B2 (en) System, method and program for printing an electronic document
EP1517248A2 (en) Information processing apparatus, its control method, and program
US20100318897A1 (en) Method and apparatus for processing document conforming to docbase standard
MXPA04001932A (en) Method and system for enhancing paste functionality of a computer software application.
WO2002080030A2 (en) Improvements relating to developing documents
RU2322687C2 (en) System and method for providing multiple reproductions of content of documents
US20070180359A1 (en) Method of and apparatus for preparing a document for display or printing
JP4666996B2 (en) Electronic filing system and electronic filing method
JP2001092615A (en) Method and system for printing html document and recording medium
JP3712966B2 (en) Presentation material generating apparatus, presentation material generating method, and presentation material generating program
JP4542033B2 (en) System and method for providing multiple renditions of document content
JP2002189627A (en) Method of converting document data
US20060242571A1 (en) Systems and methods for processing derivative featurees in input files
JP2002229985A (en) Apparatus and method for structured document processing, and program for making computer execute the structured document processing
JP3835182B2 (en) Document creation support device
JP4148029B2 (en) Document processing device
US7644358B2 (en) Usability of a portal application
KR20080004011A (en) Information storage medium recording markup document, method and apparatus of processing markup document
WO2000067153A1 (en) System and file structure for supplying to an internet customer both a preview and a final print from the same print specification file
US7356543B2 (en) Structured document data, contents processing method, program for implementing that process, and storage medium storing program
JP2022140854A (en) Electronic apparatus for viewing electronic document, and display method
JP3125754U (en) Application-independent data generation system
JP2005044384A (en) Information processing program and layout information processing system