JP2002278727A - Character extraction printing program and printing controller - Google Patents

Character extraction printing program and printing controller

Info

Publication number
JP2002278727A
JP2002278727A JP2001078405A JP2001078405A JP2002278727A JP 2002278727 A JP2002278727 A JP 2002278727A JP 2001078405 A JP2001078405 A JP 2001078405A JP 2001078405 A JP2001078405 A JP 2001078405A JP 2002278727 A JP2002278727 A JP 2002278727A
Authority
JP
Japan
Prior art keywords
character
printing
print
data
command
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
JP2001078405A
Other languages
Japanese (ja)
Other versions
JP2002278727A5 (en
Inventor
Yukiko Yomo
弓希子 四方
Shinji Sumi
伸二 炭
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 JP2001078405A priority Critical patent/JP2002278727A/en
Publication of JP2002278727A publication Critical patent/JP2002278727A/en
Publication of JP2002278727A5 publication Critical patent/JP2002278727A5/ja
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PROBLEM TO BE SOLVED: To extract and print character data from a display picture in which the character data and image data coexist. SOLUTION: A converting part 142 of a printer driver 140 generates printing data by extracting a character plotting command in plotting data transmitted from an operation system. Thus, only the character data can be printed since only a printing command based on the character plotting command is generated and no printing command based on an image plotting command is generated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、印刷制御装置に係
り、特に、インターネットのWebページに表示される
画面から文字を抽出して印刷する印刷制御装置に関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a print control device, and more particularly to a print control device for extracting characters from a screen displayed on a Web page on the Internet and printing the characters.

【0002】[0002]

【従来の技術】インターネットが普及し、さまざまなW
ebサイトが運営されている。ユーザは、Webブラウ
ザを用いてWebサイトにアクセスすることで、Web
サイトが提供するWebページから種々の情報を得るこ
とができる。
2. Description of the Related Art With the spread of the Internet, various W
An e-site is operated. The user accesses the Web site using the Web browser, and thereby obtains the Web site.
Various information can be obtained from a Web page provided by the site.

【0003】Webサイトが提供するWebページは、
HTML(HyperText Markup Language)という言語で
記述され、ユーザの端末のWebブラウザは、このHT
ML言語を解釈してWebページを表示する。
[0003] Web pages provided by Web sites are:
It is described in a language called HTML (HyperText Markup Language), and the Web browser of the user's terminal uses the HT
The Web page is displayed by interpreting the ML language.

【0004】Webページは、主として、文字(テキス
ト)データと画像(イメージ)データとから構成され、
Webサイトの開設者は、それらのデータを適宜配置し
てWebページを作成する。
[0004] A Web page is mainly composed of character (text) data and image (image) data.
The creator of the Web site creates a Web page by appropriately arranging the data.

【0005】図6は、Webブラウザに表示されたWe
bページの一例を説明するための図である。本図におい
て、Webページ600は、イメージデータA601
と、イメージデータB602と、テキストデータである
見出し603と、テキストデータである本文604と、
イメージデータC605とが配置されている。
FIG. 6 shows a Web browser displayed on a Web browser.
It is a figure for explaining an example of page b. In the figure, a Web page 600 includes image data A601.
, Image data B 602, heading 603 as text data, text 604 as text data,
Image data C605 is arranged.

【0006】一般に、Webブラウザは、ユーザからの
印刷命令を受け付けるボタン、メニュー等を備えてい
る。そして、ユーザから印刷命令を受け付けると、表示
しているWebページの描画データをオペレーティング
システムを介してプリンタドライバに送る。そして、プ
リンタドライバは、Webページの描画データをプリン
タを制御するコードに変換し、印刷データとして、端末
に接続されたプリンタに送信する。プリンタは、受信し
た印刷データに基づいて印刷を行なう。そして、ユーザ
は、図11に示すような、Webブラウザで表示されて
いるイメージそのままの印刷結果を得ることができる。
Generally, a Web browser is provided with a button, a menu, and the like for receiving a print command from a user. When a print command is received from the user, the drawing data of the displayed Web page is transmitted to the printer driver via the operating system. Then, the printer driver converts the drawing data of the Web page into a code for controlling the printer, and transmits it as print data to a printer connected to the terminal. The printer performs printing based on the received print data. Then, the user can obtain the print result of the image displayed on the Web browser as shown in FIG.

【0007】[0007]

【発明が解決しようとする課題】図6に示したように、
Webページは、通常、文字データと画像データが混在
している。このため、Webページの情報を印刷して読
もうとした場合は、図11に示したように文字データと
画像データとが印刷される。
[Problems to be solved by the invention] As shown in FIG.
Normally, a Web page is a mixture of character data and image data. Therefore, when printing and reading information of a Web page, character data and image data are printed as shown in FIG.

【0008】ところが、一般に、画像データの印刷は、
文字データの印刷に比べて時間がかかる。このため、文
字データだけを速く印刷させたい場合がある。また、印
刷させる内容によっては、例えば、新聞記事のように文
字データだけ印刷できれば十分な場合がある。
However, generally, printing of image data is performed by
It takes longer than printing character data. For this reason, there is a case where only the character data is desired to be printed quickly. Also, depending on the content to be printed, it may be sufficient if only character data can be printed, for example, in a newspaper article.

【0009】本発明は、文字データ、画像データ等から
構成される表示画面から文字データを抽出して印刷させ
る技術を提供することにある。
An object of the present invention is to provide a technique for extracting character data from a display screen composed of character data, image data, and the like and printing the character data.

【0010】[0010]

【課題を解決するための手段】上記課題を解決するた
め、本発明によれば、印刷すべき文字列に関する情報を
有する文字描画コマンドを含む描画データに基づいて、
プリンタを制御する印刷コマンドを生成するプログラム
であって、文字抽出印刷するか否かの指示を受け付ける
処理と、文字抽出印刷する旨の指示を受け付けると、描
画データから文字描画コマンドを抽出し、抽出した文字
描画コマンドに基づいて印刷コマンドを生成する処理と
をコンピュータに実行させることを特徴とするプログラ
ムが提供される。
According to the present invention, there is provided, in accordance with the present invention, a drawing method comprising the steps of: drawing data including a character drawing command having information on a character string to be printed;
A program for generating a print command for controlling a printer, a process for receiving an instruction as to whether or not to perform character extraction printing, and, when receiving an instruction to perform character extraction and printing, extracting and extracting a character drawing command from drawing data. A program for causing a computer to execute a process of generating a print command based on the rendered character drawing command.

【0011】また、本発明によれば、印刷すべき文字列
に関する情報を有する文字描画コマンドを含む描画デー
タに基づいて、プリンタを制御する印刷コマンドを生成
してプリンタに送る印刷制御装置であって、文字抽出印
刷するか否かの指示を受け付ける手段と、文字抽出印刷
する旨の指示を受け付けると、描画データから文字描画
コマンドを抽出し、抽出した文字描画コマンドに基づい
て印刷コマンドを生成する手段とを備えることを特徴と
する印刷制御装置が提供される。
According to the present invention, there is also provided a print control apparatus for generating a print command for controlling a printer based on drawing data including a character drawing command having information on a character string to be printed and sending the print command to the printer. Means for receiving an instruction as to whether or not to perform character extraction printing, and means for, when receiving an instruction to perform character extraction printing, extracting a character drawing command from drawing data and generating a print command based on the extracted character drawing command And a print control device characterized by comprising:

【0012】これにより、文字描画コマンドに基づいた
印刷コマンドのみが生成され、画像描画コマンドに基づ
いた印刷コマンドは生成されないため、文字データのみ
を印刷することができる。
Thus, only the print command based on the character drawing command is generated, and the print command based on the image drawing command is not generated, so that only the character data can be printed.

【0013】[0013]

【発明の実施の形態】本発明の実施形態について、図面
を参照して詳細に説明する。本発明は、Webページの
印刷時において、特に効果的であるため、本実施形態で
は、Webブラウザで表示されるWebページを印刷す
る場合を例に説明する。ただし、本発明はこれに限られ
ない。
Embodiments of the present invention will be described in detail with reference to the drawings. The present invention is particularly effective at the time of printing a Web page. Therefore, in the present embodiment, a case where a Web page displayed by a Web browser is printed will be described as an example. However, the present invention is not limited to this.

【0014】図1は、本発明が適用される印刷システム
の構成を説明するためのブロック図である。図1に示す
ように、本印刷システムは、アプリケーションによる各
種処理、プリンタドライバによる印刷処理等を実現する
ためのホストコンピュータ10と、このホストコンピュ
ータ10に接続されるプリンタ30とを備えて構成され
る。ただし、印刷システムの構成はこれに限られない。
FIG. 1 is a block diagram for explaining the configuration of a printing system to which the present invention is applied. As shown in FIG. 1, the printing system includes a host computer 10 for realizing various processes by an application, a printing process by a printer driver, and the like, and a printer 30 connected to the host computer 10. . However, the configuration of the printing system is not limited to this.

【0015】ホストコンピュータ10は、各種プログラ
ムを実行するCPU(Central Processing Unit)1
1、データおよびプログラムを一時的に記憶するRAM
(Random Access Memory)12、各種データ、各種プロ
グラム等があらかじめ不揮発的に記憶されているROM
(Read Only Memory)13、接続されたプリンタ30と
のデータの送受信をつかさどるプリンタインタフェース
14、および、インターネット50と接続するための通
信制御装置15を具備している。ホストコンピュータ1
0は、RAM12に読み込んだプログラム等をCPU1
1が実行し、所定の処理を行うことで、プリンタホスト
として機能するようになっている。また、ホストコンピ
ュータ10には、内蔵または外付けの補助記憶装置2
4、カラーディスプレイ等の表示装置21、マウス、キ
ーボード等の入力装置22およびCD−ROM等の記録
媒体からデータを読み取るメディア読取装置23が接続
される。
The host computer 10 has a CPU (Central Processing Unit) 1 for executing various programs.
1. RAM for temporarily storing data and programs
(Random Access Memory) 12, ROM in which various data, various programs, and the like are stored in a nonvolatile manner in advance
(Read Only Memory) 13, a printer interface 14 for transmitting and receiving data to and from the connected printer 30, and a communication control device 15 for connecting to the Internet 50. Host computer 1
0 indicates that the program or the like read into the RAM 12 is
1 executes a predetermined process to function as a printer host. The host computer 10 has an internal or external auxiliary storage device 2.
4. A display device 21 such as a color display, an input device 22 such as a mouse and a keyboard, and a media reading device 23 that reads data from a recording medium such as a CD-ROM are connected.

【0016】プリンタ30は、例えば、レーザ方式のペ
ージプリンタである。ただし、これに限られない。例え
ば、インクジェット方式のラインプリンタであってもよ
い。プリンタ30は、ホストコンピュータ10から送ら
れる印刷データに基づいて印刷を行なう。
The printer 30 is, for example, a laser type page printer. However, it is not limited to this. For example, an inkjet type line printer may be used. The printer 30 performs printing based on print data sent from the host computer 10.

【0017】次に、上記印刷システムにおけるホストコ
ンピュータ10により実現される機能構成について、図
2のブロック図を参照して説明する。本実施形態では、
印刷対照として、Webページの描画データを例にする
が、これに限られるものではない。
Next, a functional configuration realized by the host computer 10 in the printing system will be described with reference to the block diagram of FIG. In this embodiment,
Drawing data of a Web page is taken as an example of a print control, but is not limited to this.

【0018】本図に示すように、ホストコンピュータ1
0上には、Webブラウザ100と、オペレーションシ
ステム120と、プリンタドライバ140とが構築され
る。
As shown in FIG. 1, the host computer 1
The web browser 100, the operation system 120, and the printer driver 140 are built on 0.

【0019】Webブラウザ100は、Webページを
閲覧するための機能であり、汎用的なアプリケーション
ソフトウェアで実現することができる。
The Web browser 100 is a function for browsing Web pages, and can be realized by general-purpose application software.

【0020】オペレーションシステム120は、ホスト
コンピュータ10を制御するための、いわゆる、基本ソ
フトウェアであり、本実施形態においては、Webブラ
ウザ100とプリンタドライバ140とのデータのやり
取りの仲介を行なう。
The operation system 120 is so-called basic software for controlling the host computer 10, and in this embodiment, mediates the exchange of data between the web browser 100 and the printer driver 140.

【0021】プリンタドライバ140は、オペレーショ
ンシステム120から送られたWebブラウザ100で
表示しているWebページの描画データを加工すること
ができ、さらにプリンタ30が解釈できる形式に変換し
て、印刷データとしてプリンタ30に送る。
The printer driver 140 can process the drawing data of the Web page displayed by the Web browser 100 sent from the operation system 120, further converts the drawing data into a format that can be interpreted by the printer 30, and converts the drawing data into print data. Send to printer 30.

【0022】本実施形態において、プリンタドライバ1
40は、変換部142と、印刷データ作成部144と、
インタフェース部146とを備えている。
In this embodiment, the printer driver 1
40 is a conversion unit 142, a print data creation unit 144,
An interface unit 146 is provided.

【0023】変換部142は、文字抽出部142aと縦
書き変換部142bとコード対応表142cとを備えて
いる。文字抽出部142aは、ユーザからの指示に従っ
て、Webページの描画データに含まれる文字描画コマ
ンドを抽出する処理を行なう。縦書き変換部142b
は、ユーザからの指示に従って、Webページの描画デ
ータに含まれる文字描画コマンド中の文字データ縦書き
に変換する処理を行なう。コード対応表142cは、同
一の文字において、横書き文字と縦書き文字とで文字コ
ードが異なる文字について、横書き文字コードと縦書き
文字コードとの対応を記録した表である。なお、コード
対応表142cは、プリンタドライバ140の外に持た
せるようにしてもよい。
The conversion unit 142 includes a character extraction unit 142a, a vertical writing conversion unit 142b, and a code correspondence table 142c. The character extracting unit 142a performs a process of extracting a character drawing command included in the drawing data of the Web page according to an instruction from the user. Vertical writing conversion unit 142b
Performs a process of converting to vertical writing of character data in a character drawing command included in drawing data of a Web page in accordance with an instruction from a user. The code correspondence table 142c is a table in which the correspondence between the horizontally written character code and the vertically written character code is recorded for the same character having different character codes between the horizontally written character and the vertically written character. Note that the code correspondence table 142c may be provided outside the printer driver 140.

【0024】印刷データ作成部144は、変換部142
が処理を行なった描画コマンド(ユーザから変換指示が
なかった場合は、オペレーションシステム120から送
られたままの描画コマンド)に対して、例えば、ラスタ
ライズ、ハーフトーン等の処理を行なって、プリンタ3
0が解釈可能な印刷データを生成する。すなわち、印刷
データ作成部144は、従来のプリンタドライバと同じ
機能を有している。
The print data creation unit 144 includes a conversion unit 142
Performs rasterization, halftone processing, and the like on the rendering command that has been processed (the rendering command sent from the operation system 120 when there is no conversion instruction from the user).
0 generates interpretable print data. That is, the print data creation unit 144 has the same function as the conventional printer driver.

【0025】ユーザインタフェース部146は、Web
ブラウザ100が、ユーザから印刷命令を受け付ける
と、例えば、図3に一例を示すような印刷設定画面50
0を、表示装置21に表示させ、ユーザからの印刷設定
を受け付ける。本図に示すように印刷設定画面500
は、用紙種類設定欄501と、用紙サイズ設定欄502
と、インク設定欄503と、印刷品質設定欄504と、
印刷部数設定欄505と、文字抽出印刷指定欄506
と、縦書き印刷指定欄507と、印刷処理を中止するた
めのキャンセルボタン508と、印刷実行ボタン509
とを備えている。
The user interface unit 146 is a Web interface.
When the browser 100 receives a print command from the user, for example, a print setting screen 50 as shown in FIG.
0 is displayed on the display device 21 and print settings from the user are accepted. As shown in FIG.
Are a paper type setting column 501 and a paper size setting column 502
, An ink setting column 503, a print quality setting column 504,
A print copy setting column 505 and a character extraction print designation column 506
Vertical print designation field 507, a cancel button 508 for canceling the printing process, and a print execution button 509.
And

【0026】ユーザは、本画面500で各設定を行な
い、従来と同様に、用紙種類、用紙サイズ、インク、印
刷指定、印刷部数等について所望の印刷を行うことがで
きる。また、詳細な処理については後述するが、本実施
形態では、文字抽出印刷指定欄506をチェックする
と、Webページから文字データのみを抽出して印刷す
ることができる。縦書き印刷指定欄507をチェックす
ると、Webページの文字データを縦書きにして印刷す
ることができる。
The user can make various settings on this screen 500 and perform desired printing on the paper type, paper size, ink, print designation, number of copies, etc., as in the related art. Although detailed processing will be described later, in the present embodiment, if the character extraction print designation field 506 is checked, only character data can be extracted from the Web page and printed. When the vertical writing print designation field 507 is checked, character data of a Web page can be printed in vertical writing.

【0027】次に、本実施形態におけるホストコンピュ
ータ10の動作について説明する。ここでは、Webブ
ラウザ100が、図6に示したWebページ500を表
示中に、ユーザから印刷命令を受け付けた場合を例に説
明する。
Next, the operation of the host computer 10 in this embodiment will be described. Here, a case will be described as an example where the web browser 100 receives a print command from the user while displaying the web page 500 shown in FIG.

【0028】図4は、このときのプリンタドライバ14
0の変換部142の処理を説明するためのフロー図であ
る。
FIG. 4 shows the printer driver 14 at this time.
FIG. 9 is a flowchart for explaining the process of a conversion unit 142 of 0.

【0029】プリンタドライバ140は、図3に示した
印刷設定画面500を、表示装置21に表示させ、ユー
ザからの印刷設定を受け付ける。そして、印刷実行ボタ
ン509のクリックを受け付けると、Webブラウザ1
00からWebページ500の描画データをオペレーシ
ョンシステム120を介して取得する(S101)。こ
こで、描画データは、文字描画コマンド、画像描画コマ
ンド、その他制御コマンド等から構成され、一般に、こ
れらのコマンドのパラメータにより描画位置、描画内容
等が特定される。具体的には、例えば、描画座標、セン
タリング情報、文字あるいは画像の内容、フォント、ア
ンダーライン等の文字修飾情報等が特定される。
The printer driver 140 displays the print setting screen 500 shown in FIG. 3 on the display device 21 and accepts print settings from the user. Then, when a click of the print execution button 509 is received, the Web browser 1
From 00, the drawing data of the Web page 500 is obtained via the operation system 120 (S101). Here, the drawing data is composed of a character drawing command, an image drawing command, other control commands, and the like. In general, a drawing position, a drawing content, and the like are specified by parameters of these commands. Specifically, for example, drawing coordinates, centering information, character or image contents, font, character modification information such as underline, and the like are specified.

【0030】また、プリンタドライバ140は、文字抽
出印刷指定欄506にチェックが入力されているかどう
かを調べる(S102)。その結果、チェックが入力さ
れている場合には、取得した描画データに含まれる描画
コマンドのうち、文字描画コマンドのみを抽出する(S
103)。
The printer driver 140 checks whether a check has been entered in the character extraction print designation field 506 (S102). As a result, when the check is input, only the character drawing command is extracted from the drawing commands included in the obtained drawing data (S
103).

【0031】図7は、文字描画コマンドが抽出された描
画データを用いて印刷を行なった場合の印刷結果を説明
するための図である。すなわち、図11に示した従来の
印刷結果に対し、文字部分のみが抽出され、画像部分が
削除された印刷結果となる。一般に、画像部分は、文字
部分に比べ、印刷時間を要するため、この処理を行なう
ことで、印刷時間を短くすることができる。なお、実際
には、変換部142が上述の処理により変換した描画デ
ータを、印刷データ作成部144が印刷データに変換し
てプリンタ30で印刷が行なわれる。
FIG. 7 is a diagram for explaining a printing result when printing is performed using drawing data from which a character drawing command has been extracted. That is, only the character portion is extracted from the conventional print result shown in FIG. 11 and the image result is deleted. In general, an image portion requires a longer printing time than a character portion. Therefore, by performing this process, the printing time can be shortened. In practice, the drawing data converted by the conversion unit 142 through the above-described processing is converted into print data by the print data creation unit 144 and printed by the printer 30.

【0032】図7に示した印刷結果は、抽出された文字
描画コマンドをそのまま印刷し、イメージ部分が削除さ
れたレイアウトとなっているため、イメージ部分の空欄
が目立っている。このため、プリンタドライバ140
は、文字部分を、例えば、左上から詰めて印刷できるよ
うに、再配置処理(S104)を行なうようにしてもよ
い。
The print result shown in FIG. 7 has a layout in which the extracted character drawing command is printed as it is and the image portion is deleted, so that blank spaces in the image portion are conspicuous. Therefore, the printer driver 140
For example, the rearrangement process (S104) may be performed so that the character portion can be printed from the upper left, for example.

【0033】再配置処理(S104)では、プリンタド
ライバ140は、オペレーションシステム120から取
得した描画データに含まれる印刷位置情報を無視して、
文字描画コマンドの順番に、印刷可能領域に文字描画コ
マンドが指定する文字データを、例えば、左上から順次
配置していくように描画コマンドを書き換える。このと
き、文字描画コマンドに含まれる文字に関する情報、例
えば、フォント、サイズ、アンダーライン等の文字修飾
等の指定は、そのまま用いるものとする。本例では、
「見出し」を描画するための文字描画コマンドには、セ
ンタリングの指定が含まれ、本文を描画するための文字
描画コマンド中には、「たちつてと」にアンダーライン
を付する旨の指定が含まれているものとする。
In the rearrangement process (S104), the printer driver 140 ignores the print position information included in the drawing data acquired from the operation system 120,
The drawing commands are rewritten so that the character data specified by the character drawing commands are sequentially arranged in the printable area from the upper left in the order of the character drawing commands. At this time, information on characters included in the character drawing command, for example, designation of font modification, character modification such as font, size, and underline is used as it is. In this example,
The character drawing command for drawing the “heading” includes the specification of centering, and the character drawing command for drawing the text includes the specification of underlining “Tatsutsuto”. It is assumed that

【0034】図8は、文字描画コマンドが抽出され、再
配置された描画データを用いて印刷を行なった場合の印
刷結果を説明するための図である。すなわち、図7に示
した印刷結果に対し、文字部分が再配置された結果とな
っている。本図において、「見出し」は、印刷可能領域
の上部にセンタリングされて印刷され、本文は、「見出
し」の次に、描画領域が左右に引き伸ばされて印刷され
ている。また、「たちつてと」にはアンダーラインが付
されて印刷されている。
FIG. 8 is a diagram for explaining a printing result when printing is performed using the drawing data in which the character drawing command is extracted and rearranged. That is, the result is that the character portion is rearranged with respect to the print result shown in FIG. In this figure, the “heading” is printed centered on the upper part of the printable area, and the text is printed after the “heading”, with the drawing area stretched left and right. "Tatsutsuto" is printed with an underline.

【0035】次に、プリンタドライバ140は、縦書き
印刷指定欄507にチェックが入力されているかどうか
を調べる(S105)。その結果、チェックが入力され
ている場合には、描画データに含まれる文字描画コマン
ドに対して縦書き変換処理(S106)を行なう。な
お、上記の文字抽出処理が行なわれている場合には、抽
出後(再配置処理も行なった場合は、再配置処理後)の
文字描画コマンドに対して行なう。
Next, the printer driver 140 checks whether or not a check has been entered in the vertical writing print designation field 507 (S105). As a result, when the check is input, the vertical writing conversion process (S106) is performed on the character drawing command included in the drawing data. If the above-described character extraction processing has been performed, the processing is performed on the character drawing command after the extraction (after the rearrangement processing when the rearrangement processing is also performed).

【0036】縦書き変換処理(S106)について図5
のフロー図を参照して説明する。
FIG. 5 shows the vertical writing conversion process (S106).
This will be described with reference to the flowchart of FIG.

【0037】プリンタドライバ140の縦書き変換部1
42bは、文字描画コマンドに含まれる印刷すべき文字
列データから、一文字ずつ順番に抽出する(S20
1)。
Vertical writing conversion unit 1 of printer driver 140
42b sequentially extracts characters one by one from the character string data to be printed included in the character drawing command (S20).
1).

【0038】そして、抽出した文字が2バイト文字であ
るかどうかを判断する(S202)。すなわち、縦書き
変換処理では、2バイト文字(日本語文)を対象に縦書
きに変換する。1バイト文字(英数字)は、縦書きにす
ると読みにくくなるため、縦書き変換は行なわない。
Then, it is determined whether or not the extracted character is a two-byte character (S202). In other words, in the vertical writing conversion process, double-byte characters (Japanese sentences) are converted into vertical writing. Since 1-byte characters (alphanumeric characters) are difficult to read when written vertically, vertical conversion is not performed.

【0039】抽出した文字が2バイト文字であれば、そ
の文字が、縦書きに際してコード変換が必要かどうかを
判断する(S203)。すなわち、例えば、句読点、促
音文字、括弧等は、横書き用文字と縦書き用文字とが区
別されており、それぞれ別の文字コードが割り振られて
いる。本実施形態においては、コード対応表142cを
参照して、抽出した文字がコード変換が必要かどうかを
判断する。
If the extracted character is a two-byte character, it is determined whether or not the character requires code conversion for vertical writing (S203). That is, for example, for punctuation marks, prompting characters, parentheses, and the like, the characters for horizontal writing and the characters for vertical writing are distinguished from each other, and different character codes are assigned to them. In the present embodiment, with reference to the code correspondence table 142c, it is determined whether or not the extracted character requires code conversion.

【0040】この結果、コード変換が必要な文字の場合
は、コード対応表142cにしたがって、文字コードの
変換を行なう(S204)。これらの文字は、コード変
換を行なうだけで、横書きを縦書きにすることができ
る。なお、文字描画コマンドに含まれる文字に関する情
報、例えば、フォント、サイズ、アンダーライン等の文
字修飾等の指定は、コード変換後もそのまま用いるもの
とする。
As a result, if the character requires code conversion, the character code is converted according to the code correspondence table 142c (S204). These characters can be changed from horizontal writing to vertical writing only by performing code conversion. Note that information regarding characters included in the character drawing command, for example, designation of character modification such as font, size, and underline is used as it is even after code conversion.

【0041】一方、コード変換が必要な文字でない場合
には、抽出した文字を反時計回りに90度回転させる
(S205)。
On the other hand, if the character does not require code conversion, the extracted character is rotated 90 degrees counterclockwise (S205).

【0042】次に、文字描画コマンドに含まれる印刷す
べき文字列データの処理が終了したかどうかを判断する
(S206)。その結果、終了していない場合には、次
の文字を抽出して(S201)、上記の処理を繰り返
す。
Next, it is determined whether the processing of the character string data to be printed included in the character drawing command has been completed (S206). As a result, if the processing has not been completed, the next character is extracted (S201), and the above processing is repeated.

【0043】一方、文字列データの処理が終了した場合
は、文字サイズの調整を行なう(S207)。一般に、
文字は縦サイズと横サイズは異なるため、文字を回転さ
せると、文字ピッチが変わってしまう。このため、あら
かじめ定められた描画領域あるいは再配置処理(S10
4)で設定された描画領域に文字が入りきらない場合が
ある。このため、プリンタドライバ140は印刷すべき
文字のサイズを計算し、描画領域に入りきらない場合に
は、入りきるように文字サイズ(ポイント数)を小さく
変更する。
On the other hand, when the processing of the character string data is completed, the character size is adjusted (S207). In general,
Since characters have different vertical and horizontal sizes, rotating the characters will change the character pitch. Therefore, a predetermined drawing area or a rearrangement process (S10)
In some cases, characters may not fit in the drawing area set in 4). For this reason, the printer driver 140 calculates the size of the character to be printed, and if it does not fit in the drawing area, changes the character size (points) to a smaller size so that it can fit.

【0044】図9は、縦書き変換された描画データを用
いて印刷を行なった場合の印刷結果を説明するための図
である。本図は、文字抽出印刷指定がされていない場合
の縦書き変換後の印刷結果である。本図に示すように、
本文の2バイト文字は縦書きに変換され、英数字は変換
されていない。
FIG. 9 is a diagram for explaining a printing result when printing is performed using drawing data that has been converted to vertical writing. This figure shows a print result after the vertical writing conversion when the character extraction printing is not specified. As shown in this figure,
Double-byte characters in the text are converted to vertical writing, and alphanumeric characters are not converted.

【0045】図10は、文字抽出印刷指定がなされ、再
配置処理(S104)が行なわれた場合の縦書き変換処
理後の印刷結果を説明する図である。本図に示すよう
に、再配置処理(S104)により設定された描画領域
に、2バイト文字が縦書きに変換されて印刷されてい
る。
FIG. 10 is a view for explaining a printing result after the vertical writing conversion process when the character extraction printing is specified and the rearrangement process (S104) is performed. As shown in the figure, 2-byte characters are converted into vertical writing and printed in the drawing area set by the rearrangement process (S104).

【0046】縦書き変換処理(S106)が終了する
と、変換部142は、変換された描画コマンドを含む描
画データを印刷データ作成部144に送る。その後は、
従来の印刷同様に、印刷データ作成部144が、描画デ
ータを印刷データに変換し、プリンタ30に送信し、印
刷が行なわれる。上記の図7〜図10に示した印刷結果
を説明する図は、本処理を経て得られた印刷結果であ
る。
When the vertical writing conversion process (S106) is completed, the conversion unit 142 sends the drawing data including the converted drawing command to the print data creation unit 144. After that,
As in the case of conventional printing, the print data creation unit 144 converts the drawing data into print data, transmits the print data to the printer 30, and performs printing. The figures explaining the printing results shown in FIGS. 7 to 10 are the printing results obtained through this processing.

【0047】[0047]

【発明の効果】上述のように、本発明によれば、横書き
仕様の文字情報を縦書きで印刷することができる。
As described above, according to the present invention, character information of the horizontal writing specification can be printed in vertical writing.

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

【図1】は、本発明が適用される印刷システムの構成を
説明するためのブロック図である。
FIG. 1 is a block diagram for explaining a configuration of a printing system to which the present invention is applied.

【図2】は、ホストコンピュータ10により実現される
機能構成について説明するためのブロック図である。
FIG. 2 is a block diagram for describing a functional configuration realized by a host computer 10.

【図3】は、印刷設定画面500の一例を説明するため
の図である。
FIG. 3 is a diagram illustrating an example of a print setting screen 500.

【図4】は、プリンタドライバ140の変換部142の
処理を説明するためのフロー図である。
FIG. 4 is a flowchart for explaining processing of a conversion unit 142 of the printer driver 140.

【図5】は、縦書き変換処理を説明するためのフロー図
である。
FIG. 5 is a flowchart for explaining vertical writing conversion processing.

【図6】は、Webブラウザに表示されたWebページ
の一例を説明するための図である。
FIG. 6 is a diagram for explaining an example of a Web page displayed on a Web browser.

【図7】は、文字描画コマンドが抽出された描画データ
を用いて印刷を行なった場合の印刷結果を説明するため
の図である。
FIG. 7 is a diagram for explaining a printing result when printing is performed using drawing data from which a character drawing command is extracted.

【図8】は、文字描画コマンドが抽出され、再配置され
た描画データを用いて印刷を行なった場合の印刷結果を
説明するための図である。
FIG. 8 is a diagram for explaining a print result when printing is performed using drawing data in which a character drawing command has been extracted and rearranged.

【図9】は、文字抽出印刷指定が行なわれた場合の縦書
き変換処理後の印刷結果を説明する図である。
FIG. 9 is a diagram illustrating a print result after a vertical writing conversion process when a character extraction print designation is performed;

【図10】は、文字抽出印刷指定がなされ、再配置処理
が行なわれた場合の縦書き変換処理後の印刷結果を説明
する図である。
FIG. 10 is a diagram illustrating a print result after vertical writing conversion processing when character extraction printing is specified and rearrangement processing is performed;

【図11】は、従来のWebページの印刷結果を説明す
るための図である。
FIG. 11 is a diagram for explaining a print result of a conventional Web page.

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

10…ホストコンピュータ 11…CPU 12…RAM 13…ROM 14…プリンタインタフェース 21…表示装置 22…入力装置 23…メディア読取装置 24…補助記憶装置 30…プリンタ DESCRIPTION OF SYMBOLS 10 ... Host computer 11 ... CPU 12 ... RAM 13 ... ROM 14 ... Printer interface 21 ... Display device 22 ... Input device 23 ... Media reading device 24 ... Auxiliary storage device 30 ... Printer

フロントページの続き Fターム(参考) 2C087 AA17 AB05 AC07 AC08 BA01 BA03 BA05 BD18 CA02 CA04 CA10 CB13 2C187 AC07 AC08 DB31 DB34 5B009 NA06 RC01 VC01 5B021 AA02 BB01 BB04 BB08 CC05Continued on the front page F term (reference) 2C087 AA17 AB05 AC07 AC08 BA01 BA03 BA05 BD18 CA02 CA04 CA10 CB13 2C187 AC07 AC08 DB31 DB34 5B009 NA06 RC01 VC01 5B021 AA02 BB01 BB04 BB08 CC05

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】印刷すべき文字列に関する情報を有する文
字描画コマンドを含む描画データに基づいて、プリンタ
を制御する印刷コマンドを生成するプログラムであっ
て、 文字抽出印刷するか否かの指示を受け付ける処理と、 文字抽出印刷する旨の指示を受け付けると、描画データ
から文字描画コマンドを抽出し、抽出した文字描画コマ
ンドに基づいて印刷コマンドを生成する処理とをコンピ
ュータに実行させることを特徴とするプログラム。
1. A program for generating a print command for controlling a printer based on drawing data including a character drawing command having information on a character string to be printed, and receiving an instruction as to whether or not to perform character extraction printing. A program for causing a computer to execute a process and a process of extracting a character drawing command from drawing data when receiving an instruction to perform character extraction printing, and generating a print command based on the extracted character drawing command. .
【請求項2】請求項1に記載のプログラムであって、 抽出した文字描画コマンドで特定される文字列の印刷位
置を、プリンタの描画可能領域と印刷すべき文字列の順
序とに基づいて再配置する処理をさらにコンピュータに
実行させることを特徴とするプログラム。
2. The program according to claim 1, wherein a printing position of the character string specified by the extracted character drawing command is re-established based on a drawable area of the printer and an order of the character string to be printed. A program for causing a computer to further execute a process of arranging.
【請求項3】請求項1または2に記載のプログラムを記
録した記録媒体。
3. A recording medium on which the program according to claim 1 is recorded.
【請求項4】印刷すべき文字列に関する情報を有する文
字描画コマンドを含む描画データに基づいて、プリンタ
を制御する印刷コマンドを生成してプリンタに送る印刷
制御装置であって、 文字抽出印刷するか否かの指示を受け付ける手段と、 文字抽出印刷する旨の指示を受け付けると、描画データ
から文字描画コマンドを抽出し、抽出した文字描画コマ
ンドに基づいて印刷コマンドを生成する手段とを備える
ことを特徴とする印刷制御装置。
4. A print control apparatus which generates a print command for controlling a printer based on drawing data including a character drawing command having information on a character string to be printed and sends the print command to the printer, wherein a character extraction printing is performed. And a means for receiving a command to perform character extraction printing, extracting a character drawing command from the drawing data, and generating a print command based on the extracted character drawing command. Printing control device.
【請求項5】請求項4に記載の印刷制御装置であって、 抽出した文字描画コマンドで特定される文字列の印刷位
置を、プリンタの描画可能領域と印刷すべき文字列の順
序とに基づいて再配置する手段をさらに備えることを特
徴とする印刷制御装置。
5. The printing control device according to claim 4, wherein a printing position of the character string specified by the extracted character drawing command is determined based on a drawable area of the printer and an order of the character string to be printed. A print control device further comprising means for rearranging the print data.
【請求項6】請求項4〜6のいずれか一項に記載の印刷
制御装置であって、 Webブラウザ手段をさらに備え、 前記描画データはWebブラウザの表示画面を印刷する
ためのデータであることを特徴とする印刷制御装置。
6. The print control device according to claim 4, further comprising a Web browser, wherein the drawing data is data for printing a display screen of the Web browser. A print control device characterized by the above-mentioned.
JP2001078405A 2001-03-19 2001-03-19 Character extraction printing program and printing controller Pending JP2002278727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001078405A JP2002278727A (en) 2001-03-19 2001-03-19 Character extraction printing program and printing controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001078405A JP2002278727A (en) 2001-03-19 2001-03-19 Character extraction printing program and printing controller

Publications (2)

Publication Number Publication Date
JP2002278727A true JP2002278727A (en) 2002-09-27
JP2002278727A5 JP2002278727A5 (en) 2004-08-26

Family

ID=18935021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001078405A Pending JP2002278727A (en) 2001-03-19 2001-03-19 Character extraction printing program and printing controller

Country Status (1)

Country Link
JP (1) JP2002278727A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004175020A (en) * 2002-11-28 2004-06-24 Canon Inc Image forming device
JP2005063415A (en) * 2003-07-31 2005-03-10 Canon Inc Communication system, information processor, printing control method and program
JP2005258938A (en) * 2004-03-12 2005-09-22 Nec Mobiling Ltd System and method for processing print information
JP2009230340A (en) * 2008-03-21 2009-10-08 Fuji Xerox Co Ltd Printing control device, program and system
JP2010003078A (en) * 2008-06-19 2010-01-07 Brother Ind Ltd Image forming system, image forming method, printing program and image forming device
JP2011013771A (en) * 2009-06-30 2011-01-20 Canon Inc Device, method, and program for controlling print
JP2020064659A (en) * 2019-12-26 2020-04-23 ブラザー工業株式会社 Information processing apparatus, recording system, and program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004175020A (en) * 2002-11-28 2004-06-24 Canon Inc Image forming device
US7616331B2 (en) 2002-11-28 2009-11-10 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and program
US7847957B2 (en) 2002-11-28 2010-12-07 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and program
JP2005063415A (en) * 2003-07-31 2005-03-10 Canon Inc Communication system, information processor, printing control method and program
US8289531B2 (en) 2003-07-31 2012-10-16 Canon Kabushiki Kaisha Peripheral device control system and method
JP2005258938A (en) * 2004-03-12 2005-09-22 Nec Mobiling Ltd System and method for processing print information
JP2009230340A (en) * 2008-03-21 2009-10-08 Fuji Xerox Co Ltd Printing control device, program and system
JP2010003078A (en) * 2008-06-19 2010-01-07 Brother Ind Ltd Image forming system, image forming method, printing program and image forming device
US8325365B2 (en) 2008-06-19 2012-12-04 Brother Kogyo Kabushiki Kaisha Image forming system, image forming method and image forming apparatus
JP2011013771A (en) * 2009-06-30 2011-01-20 Canon Inc Device, method, and program for controlling print
JP2020064659A (en) * 2019-12-26 2020-04-23 ブラザー工業株式会社 Information processing apparatus, recording system, and program

Similar Documents

Publication Publication Date Title
JP2002278727A (en) Character extraction printing program and printing controller
JP2002273943A (en) Printing program for converting to vertical writing, and printing controller
JPH0966643A (en) Print controlling device
JP2585298B2 (en) Document creation device
JPH03156668A (en) Document preparing device
JPH0346020A (en) Document processing system
JP2659930B2 (en) Print image display
JP2006248172A (en) Image formation device, printer driver, and image formation system
JP2659929B2 (en) Print image display
JPS605470B2 (en) typesetting system
JPH0330049A (en) Document generation device
JP4192457B2 (en) Database construction apparatus, database construction method, database construction program, recording medium
JP2610405B2 (en) Document creation device
JPH01229649A (en) Printing method using vector font data
JPH0572270B2 (en)
JP2995630B2 (en) Document data processing device
JPH0512267A (en) Automatic paragraphing system
JPH10232861A (en) Document output device
JPH10161827A (en) Method for outputting output-unable character information
JPH033068A (en) Word processor
JPH06320801A (en) Printer
JPH04148471A (en) Format setting device
JPH0581249A (en) Word processor
JPH07134709A (en) Document preparing device
JPH076167A (en) Format setting method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051101

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051226

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060124