JP2010211439A - Character output device and program - Google Patents

Character output device and program Download PDF

Info

Publication number
JP2010211439A
JP2010211439A JP2009055902A JP2009055902A JP2010211439A JP 2010211439 A JP2010211439 A JP 2010211439A JP 2009055902 A JP2009055902 A JP 2009055902A JP 2009055902 A JP2009055902 A JP 2009055902A JP 2010211439 A JP2010211439 A JP 2010211439A
Authority
JP
Japan
Prior art keywords
character
unit
processing
output
characters
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
JP2009055902A
Other languages
Japanese (ja)
Inventor
Masaya Miyazaki
昌也 宮崎
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2009055902A priority Critical patent/JP2010211439A/en
Priority to US12/509,744 priority patent/US8804141B2/en
Publication of JP2010211439A publication Critical patent/JP2010211439A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03GELECTROGRAPHY; ELECTROPHOTOGRAPHY; MAGNETOGRAPHY
    • G03G15/00Apparatus for electrographic processes using a charge pattern
    • G03G15/50Machine control of apparatus for electrographic processes using a charge pattern, e.g. regulating differents parts of the machine, multimode copiers, microprocessor control
    • G03G15/5062Machine control of apparatus for electrographic processes using a charge pattern, e.g. regulating differents parts of the machine, multimode copiers, microprocessor control by measuring the characteristics of an image on the copy material
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Record Information Processing For Printing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To align the directions of characters between pages in output processing of a document including the pages different in size. <P>SOLUTION: The directions of respective characters in a page to be processed are identified based on character commands (S112-S140), a total sum of information about the directions of the respective characters is identified (S142), and the direction of the top of the characters in the page as a whole is identified (S144). If the directions of the tops of the characters are different among respective pages, setting is made to turn a page (S150-S152). Even if the document includes the pages different in size, the drawing directions of characters can be surely aligned in a fixed direction since processing is carried out for each page. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、文字出力装置およびプログラムに関する。   The present invention relates to a character output device and a program.

印刷装置を始めとする画像形成装置で印刷処理を実行する際に、用紙サイズや用紙の置き方が混在することがある。つまり、同一の文書内に、複数の異なるサイズの用紙に対する描画が混在して指定されることがある。   When printing processing is executed in an image forming apparatus such as a printing apparatus, there are cases where paper sizes and paper placement methods are mixed. That is, there are cases where drawing on a plurality of different sizes of paper is specified in the same document.

その対処として、特許文献1では、複数の用紙サイズが混在した印刷処理を画像形成装置が受け付けた場合でも、後処理が適正に施された出力結果を得る仕組みが提案されている。一例として、複数の用紙サイズが混在しているときに、両面指定文章においては長辺綴じ、短辺綴じと、用紙のポートレート形式(用紙を縦長に使用する形態)とランドスケープ形式(用紙を縦長に使用する形態)の組み合わせにより、裏面が回転する場合に向きが合うように回転制御をするようにしている。   As a countermeasure, Patent Document 1 proposes a mechanism for obtaining an output result in which post-processing is appropriately performed even when the image forming apparatus accepts a printing process in which a plurality of paper sizes are mixed. As an example, when multiple paper sizes are mixed, long side binding, short side binding, paper portrait format (a mode in which the paper is used in portrait orientation), and landscape format (paper in portrait orientation) are used. The combination is used to control the rotation so that the orientation is correct when the back surface rotates.

特許3840257号公報Japanese Patent No. 3840257

本発明は、ページ間の文字の向きを一定方向に揃えることのできる仕組みを提供することを目的とする。   An object of the present invention is to provide a mechanism that can align the direction of characters between pages in a certain direction.

請求項1に記載の発明は、処理対象頁における処理対象領域ごとに、文字の描画方向を特定する文字方向特定部と、前記文字方向特定部が特定した文字の描画方向と出力媒体の向きの関係に基づいて、処理対象頁の回転の要否を判定する文字回転判定部と、前記文字回転判定部の判定結果に基づいて出力処理を行なう出力部と、を備えた文字出力装置である。   According to the first aspect of the present invention, for each processing target area in the processing target page, a character direction specifying unit that specifies a character drawing direction, a character drawing direction specified by the character direction specifying unit, and an output medium direction A character output device comprising: a character rotation determination unit that determines whether or not the processing target page needs to be rotated based on the relationship; and an output unit that performs an output process based on a determination result of the character rotation determination unit.

請求項2に記載の発明は、請求項1に記載の発明において、前記文字方向特定部は、前記処理対象領域内の文字の描画命令に基づいて文字座標系における文字の向きを特定することで、前記処理対象領域内の文字の描画方向を特定する。   According to a second aspect of the present invention, in the first aspect of the invention, the character direction specifying unit specifies a character direction in the character coordinate system based on a character drawing command in the processing target area. The drawing direction of characters in the processing target area is specified.

請求項3に記載の発明は、請求項1に記載の発明において、前記文字方向特定部は、前記処理対象領域内に文字が複数あるときには、前記処理対象領域内の各文字の方向の情報の総和を元に、領域全体としての文字の描画方向を特定する。   According to a third aspect of the present invention, in the first aspect of the present invention, when there are a plurality of characters in the processing target area, the character direction specifying unit stores information on the direction of each character in the processing target area. Based on the sum, the drawing direction of the character as a whole area is specified.

請求項4に記載の発明は、請求項1に記載の発明において、前記文字方向特定部は、前記文字の描画命令が複数の文字の連続を示しているときには、連続している複数の文字の内の何れか1つの文字の方向を特定し、その方向の情報に連続する文字数分の重付けをすることで、連続している複数の文字の全体としての描画方向を特定する。   According to a fourth aspect of the present invention, in the first aspect of the present invention, the character direction specifying unit may include a plurality of consecutive characters when the character drawing command indicates the continuation of the plurality of characters. The direction of any one of the characters is specified, and the drawing direction as a whole of a plurality of continuous characters is specified by adding the number of continuous characters to the information of the direction.

請求項5に記載の発明は、請求項1〜4の内の何れか一項に記載の発明において、前記処理対象領域の指定を受け付ける領域指定部を備える。   The invention according to claim 5 is the invention according to any one of claims 1 to 4, further comprising an area designating unit that accepts designation of the processing target area.

請求項6に記載の発明は、請求項1〜5の内の何れか一項に記載の発明において、前記文字方向特定部が特定した文字の方向の情報を前記処理対象領域と対応付けて記憶する文字方向記憶部を備え、前記文字回転判定部は、前記文字方向記憶部から読み出した文字の方向の情報に基づいて、前記処理対象頁の回転の要否を判定する。   The invention according to claim 6 is the invention according to any one of claims 1 to 5, wherein the character direction information specified by the character direction specifying unit is stored in association with the processing target area. A character direction storage unit, and the character rotation determination unit determines whether or not the processing target page needs to be rotated based on the character direction information read from the character direction storage unit.

請求項7に記載の発明は、請求項1に記載の発明において、前記文字回転判定部は、文字方向を特定する情報が添付されている出力指示の場合は、その添付されている文字方向に従って、処理対象頁の回転の要否を判定する。   According to a seventh aspect of the invention, in the first aspect of the invention, in the case of the output instruction in which the information for specifying the character direction is attached, the character rotation determining unit follows the attached character direction. The necessity of rotation of the processing target page is determined.

請求項8に記載の発明は、請求項1〜6の内の何れか一項に記載の発明において、文字方向を特定する情報が添付されている出力指示の場合に、その添付されている文字方向に従って処理対象頁の回転の要否を判定したときの出力結果と、前記文字方向特定部が特定した文字の描画方向と出力媒体の向きの関係に基づいて処理対象頁の回転の要否を前記文字回転判定部が判定したときの出力結果を比較する文字描画方向比較部を備え、前記文字回転判定部は、それぞれの出力結果が異なると前記文字描画方向比較部が判定しているときには、何れの出力結果を採用するかの確認指示に基づいて処理を行なう。   The invention according to claim 8 is the character attached to the output of the invention according to any one of claims 1 to 6 in which the information specifying the character direction is attached. The necessity of rotation of the processing target page is determined based on the output result when the necessity of rotation of the processing target page is determined according to the direction and the relationship between the character drawing direction specified by the character direction specifying unit and the orientation of the output medium. A character drawing direction comparison unit that compares output results when the character rotation determination unit determines, and the character rotation determination unit determines that the character drawing direction comparison unit determines that each output result is different. Processing is performed based on a confirmation instruction as to which output result is adopted.

請求項9に記載の発明は、処理対象頁における処理対象領域ごとに、文字の描画方向を特定する文字方向特定工程と、前記文字方向特定工程で特定した文字の描画方向と出力媒体の向きの関係に基づいて、処理対象頁の回転の要否を判定する文字回転判定工程と、を電子計算機に実行させるプログラムである。   The invention according to claim 9 is a character direction specifying step for specifying a character drawing direction for each processing target area in the processing target page, a character drawing direction specified in the character direction specifying step, and an output medium direction. This is a program for causing an electronic computer to execute a character rotation determination step for determining whether or not the processing target page needs to be rotated based on the relationship.

請求項1,9に記載の発明によれば、サイズの異なる文書の出力処理においても、ページ間の文字の向きを一定方向に揃えることができる。   According to the first and ninth aspects of the present invention, it is possible to align the direction of characters between pages in a certain direction even in output processing of documents of different sizes.

請求項2に記載の発明によれば、文字描画処理後の画像情報から文字方向を特定する場合よりも簡易に文字の描画方向を特定できる。   According to the second aspect of the present invention, it is possible to specify the character drawing direction more easily than the case of specifying the character direction from the image information after the character drawing process.

請求項3に記載の発明によれば、処理対象領域内に文字が複数ある場合においても、その領域全体として、文字の向きを一定方向に揃えることができる。   According to the third aspect of the present invention, even when there are a plurality of characters in the processing target area, it is possible to align the direction of the characters in a certain direction as the entire area.

請求項4に記載の発明によれば、連続文字列の描画命令のときに、1文字ずつ文字方向を特定する場合よりも処理が短時間で済む。   According to the fourth aspect of the present invention, when a continuous character string drawing command is issued, the processing time is shorter than when the character direction is specified character by character.

請求項5に記載の発明によれば、処理対象領域のユーザ指定を受け付けることができる。   According to the fifth aspect of the present invention, it is possible to accept user designation of the processing target area.

請求項6に記載の発明によれば、保存している文書の出力処理の場合にも、ページ間の文字の向きを一定方向に揃えることができる。   According to the sixth aspect of the present invention, it is possible to align the direction of characters between pages in a certain direction even in the case of output processing of a stored document.

請求項7に記載の発明によれば、文字方向のユーザ指定がある場合には、その指示に従って処理できる。   According to the seventh aspect of the present invention, when there is a user designation in the character direction, it can be processed according to the instruction.

請求項8に記載の発明によれば、文字方向のユーザ指定がある場合において、その指示に従った処理と請求項1〜6に従った処理とで出力結果に不一致がある場合でも、ユーザの意図に従った処理ができる。   According to the eighth aspect of the present invention, when there is a user designation in the character direction, even if there is a discrepancy in the output results between the processing according to the instruction and the processing according to the first to sixth aspects, Processing according to the intention is possible.

印刷システムの構成例を示す図である。1 is a diagram illustrating a configuration example of a printing system. 文字描画処理の問題点を説明する図である。It is a figure explaining the problem of a character drawing process. 第1実施形態(第1構成例)の画像処理部の構成を示す図である。It is a figure which shows the structure of the image process part of 1st Embodiment (1st structural example). 第1実施形態(第1構成例)の画像処理部の構成を示す図である。It is a figure which shows the structure of the image process part of 1st Embodiment (1st structural example). 文字方向特定部の基本動作を説明する図である。It is a figure explaining the basic operation | movement of a character direction specific | specification part. 文字の天の向きを決定する手法を説明する図である。It is a figure explaining the method of determining the celestial direction of a character. ベクトル成分処理部の動作を説明する図である。It is a figure explaining operation | movement of a vector component process part. マトリクス成分処理部434の動作を説明する図である。FIG. 10 is a diagram for explaining the operation of a matrix component processing unit 434. ベクトル成分処理とマトリクス成分処理の対比を説明する図である。It is a figure explaining contrast of vector component processing and matrix component processing. 文字回転判定部の動作を説明する図である。It is a figure explaining operation | movement of a character rotation determination part. 第1実施形態の画像処理部の全体動作を説明するフローチャートである。It is a flowchart explaining the whole operation | movement of the image processing part of 1st Embodiment. 第2実施形態の画像処理部の構成を示す図である。It is a figure which shows the structure of the image process part of 2nd Embodiment. 領域指定部の基本動作を説明する図である。It is a figure explaining the basic operation | movement of an area | region designation | designated part. 領域指定部の第1構成例とその動作を説明する図である。It is a figure explaining the 1st structural example and operation | movement of an area | region designation | designated part. 領域指定部の第2構成例とその動作を説明する図である。It is a figure explaining the 2nd structural example and operation | movement of an area | region designation | designated part. 領域指定部の第3構成例とその動作を説明する図である。It is a figure explaining the 3rd structural example and operation | movement of an area | region designation | designated part. 第2実施形態の画像処理部の全体動作を説明するフローチャートである。It is a flowchart explaining the whole operation | movement of the image processing part of 2nd Embodiment. 第3実施形態の画像処理部の構成を示す図である。It is a figure which shows the structure of the image process part of 3rd Embodiment. 重付け処理部の動作を説明する図である。It is a figure explaining operation | movement of a weighting process part. 第3実施形態の画像処理部の全体動作を説明するフローチャートである。It is a flowchart explaining the whole operation | movement of the image processing part of 3rd Embodiment. 第4実施形態の画像処理部の構成を示す図である。It is a figure which shows the structure of the image process part of 4th Embodiment. 文字方向記憶部を利用した文字の再描画処理を説明する図である。It is a figure explaining the redrawing process of the character using a character direction memory | storage part. 第4実施形態の画像処理部の全体動作を説明するフローチャートである。It is a flowchart explaining the whole operation | movement of the image processing part of 4th Embodiment. 第5実施形態(第1構成例)の画像処理部の構成を示す図である。It is a figure which shows the structure of the image process part of 5th Embodiment (1st structural example). 第5実施形態(第2構成例)の画像処理部の構成を示す図である。It is a figure which shows the structure of the image process part of 5th Embodiment (2nd structural example). 文字描画方向比較部の動作を説明する図である。It is a figure explaining operation | movement of a character drawing direction comparison part. 第5実施形態の画像処理部の全体動作を説明するフローチャート(第1例)である。It is a flowchart (1st example) explaining the whole operation | movement of the image processing part of 5th Embodiment. 第5実施形態の画像処理部の全体動作を説明するフローチャート(第2例)である。It is a flowchart (2nd example) explaining the whole operation | movement of the image processing part of 5th Embodiment. 文字出力装置を、電子計算機を利用して構成するときの構成例を示すブロック図である。It is a block diagram which shows the structural example when comprising a character output device using an electronic computer.

以下、図面を参照して本発明の実施形態について詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

文字出力装置は、紙やOHP(Over Head Projector )シートなどの印刷媒体に文字を印刷出力する形態の画像形成装置(いわゆる印刷装置)であってもよいし、液晶やCRT(陰極線管)などの表示媒体に文字を表示する形態の表示装置であってもよい。以下では、代表して、文字出力装置として印刷装置を使用する印刷システムを例に説明する。   The character output device may be an image forming device (so-called printing device) configured to print characters on a print medium such as paper or an OHP (Over Head Projector) sheet, or may be a liquid crystal or a CRT (cathode ray tube). It may be a display device that displays characters on a display medium. In the following, a printing system that uses a printing apparatus as a character output apparatus will be described as an example.

<システム構成>
図1は、印刷システムの構成例を示す図である。本実施形態の印刷システム1は、ホスト側装置2と、印刷装置3が、通信手段の一例である伝送路9で接続されている。印刷装置3は、印刷機能のみを持つ単機能機(いわゆるプリンタ)でもよいし、印刷機能だけでなく複写やFAXなどの他の機能も持ついわゆる複合機でもよい。
<System configuration>
FIG. 1 is a diagram illustrating a configuration example of a printing system. In the printing system 1 of the present embodiment, the host side device 2 and the printing device 3 are connected by a transmission path 9 which is an example of a communication unit. The printing apparatus 3 may be a single function machine (so-called printer) having only a printing function, or may be a so-called multifunction machine having not only a printing function but also other functions such as copying and FAX.

ホスト側装置2は、文字や図形や写真を含む文書データを作成して出力するもので、たとえばパーソナルコンピュータ(パソコン)が使用される。ホスト側装置2によって作成される文字・図形・写真を含む文書データは、PDL(Page Description Language )で記述された印刷データ(PDLデータ)として印刷装置3に送られる。PDLデータは、画像(写真、イメージ)、図形(グラフィックス)、文字などを同様に取り扱い、図形や文字などの拡大、回転、変形などが自由に制御できるデータである。   The host-side device 2 creates and outputs document data including characters, graphics, and photographs. For example, a personal computer (personal computer) is used. Document data including characters, graphics, and photographs created by the host-side device 2 is sent to the printing device 3 as print data (PDL data) described in PDL (Page Description Language). PDL data is data that can handle images (photos, images), figures (graphics), characters, and the like in the same manner, and can freely control enlargement, rotation, deformation, etc. of the figures and characters.

[ホスト側装置]
ホスト側装置2は、文書や図形などの画像データを生成するデータ取得部210と、ホスト側装置2の各部の動作を制御する中央制御部220と、印刷装置3との間のインタフェース機能をなすインタフェース部230(IF部)を有する。
[Host side device]
The host-side device 2 functions as an interface between the data acquisition unit 210 that generates image data such as documents and graphics, the central control unit 220 that controls the operation of each unit of the host-side device 2, and the printing device 3. It has an interface unit 230 (IF unit).

データ取得部210には、たとえば、文書や図形などのデータを生成するためのアプリケーションプログラムが組み込まれる。なお、データ取得部210は、外部で生成されたデータを取り込んで印刷出力に供するものであってもよい。   In the data acquisition unit 210, for example, an application program for generating data such as a document or a graphic is incorporated. Note that the data acquisition unit 210 may take in data generated externally and use it for printout.

中央制御部220には、ホスト側装置2の全体を制御するソフトウェアであるOS(オペレーティングシステム)や印刷装置3を制御するためのソフトウェアであるプリンタドライバPDが組み込まれる。   The central control unit 220 incorporates an OS (operating system) that is software for controlling the entire host-side device 2 and a printer driver PD that is software for controlling the printing device 3.

これにより、ホスト側装置2は、印刷装置3に対して印刷指示を発する装置を、プログラムに基づいてソフトウェア的に実現するようになる。すなわち、各機能部を構成するためのプログラムを格納したCD−ROMなどからプログラムを読み出して図示しないハードディスク装置などにインストールさせておき、ハードディスク装置からプログラムを読み出して中央制御部220を構成する図示しないCPU(Central Processing Unit )やMPU(Micro Processing Unit )が決められた処理手順を実行することにより、各機能をソフトウェア的に実現する。   Thereby, the host side apparatus 2 implement | achieves the apparatus which issues a printing instruction | indication with respect to the printing apparatus 3 by software based on a program. That is, a program is read from a CD-ROM or the like storing a program for configuring each functional unit and installed in a hard disk device (not shown), and the central control unit 220 is configured by reading the program from the hard disk device. Each function is realized in software by a CPU (Central Processing Unit) and MPU (Micro Processing Unit) executing predetermined processing procedures.

ホスト側装置2内のハードウェアや各種の装置、および、各種のソフトウェアは、オペレーティングシステムOSによって制御、管理されている。このオペレーティングシステムOSによる制御および管理の元で、アプリケーションプログラムが動作する。アプリケーションプログラムは、文字や画像などを印刷する指示を行なう。ここでは、印刷する内容はページ記述言語によって記述された描画情報として出力されるものとする。   The hardware, various devices, and various software in the host-side device 2 are controlled and managed by the operating system OS. An application program operates under the control and management by the operating system OS. The application program instructs to print characters and images. Here, it is assumed that the content to be printed is output as drawing information described in a page description language.

たとえば、ホスト側装置2に組み込まれているアプリケーションプログラムから、イメージ描画命令、グラフィック描画命令、フォント描画命令などの命令種別を持った描画命令が順次プリンタドライバPDに入力される。   For example, a drawing command having a command type such as an image drawing command, a graphic drawing command, or a font drawing command is sequentially input to the printer driver PD from an application program incorporated in the host-side device 2.

プリンタドライバPDは、通常、印刷装置3に付属して提供されるものであり、ホスト側装置2にロードされて機能するプログラムである。またプリンタドライバPDは、通常、特定の印刷装置3での使用が予想される様々なデータ形式にホスト側装置2を対応させるために使用される。プリンタドライバPDは、アプリケーションプログラムから描画情報を受け取ると、印刷装置3に送信する前に、様々な処理ステップを実行する。たとえば、アプリケーションプログラムから受け取った描画情報を印刷装置3で解釈可能なコマンドおよび描画オブジェクトの列に変換して送信する。   The printer driver PD is normally provided with the printing apparatus 3 and is a program that is loaded into the host side apparatus 2 and functions. The printer driver PD is usually used to make the host side apparatus 2 correspond to various data formats expected to be used in a specific printing apparatus 3. When the printer driver PD receives the drawing information from the application program, the printer driver PD executes various processing steps before transmitting the drawing information to the printing apparatus 3. For example, the drawing information received from the application program is converted into a command and drawing object string that can be interpreted by the printing apparatus 3 and transmitted.

本実施形態では、プリンタドライバPDは描画命令を印刷装置3が理解可能なプリント命令としてPDLデータに変換してインタフェース部230に出力する。インタフェース部230に入力されたプリント命令は、伝送路9(接続ケーブルやネットワーク)を通り印刷装置3に伝送される。印刷装置3は、受け取ったPDLデータに従って、用紙に画像を印刷(画像出力)する。   In the present embodiment, the printer driver PD converts the drawing command into PDL data as a print command understandable by the printing apparatus 3 and outputs the PDL data to the interface unit 230. The print command input to the interface unit 230 is transmitted to the printing apparatus 3 through the transmission path 9 (connection cable or network). The printing apparatus 3 prints an image on a sheet (image output) according to the received PDL data.

[印刷装置]
印刷装置3は、画像出力装置の一例であり、ホスト側装置2から出力された印刷データ(PDLデータ)に基づいて印刷処理を実行する。ここでPDLで作成されている印刷データは、ページ内の任意位置の画像、図形、文字を表現する描画命令およびデータを任意の順で配置した命令およびデータ列で構成されている。印刷装置3は、ページプリンタであり、印刷前に出力単位ごと(1ページごと)に画像データをレンダリング(描画展開)してからプリンタエンジン部にそのラスタデータを出力する。
[Printer]
The printing apparatus 3 is an example of an image output apparatus, and executes printing processing based on print data (PDL data) output from the host side apparatus 2. Here, the print data created by PDL is composed of a command and a data string in which drawing commands and data representing images, graphics, and characters at arbitrary positions in the page are arranged in an arbitrary order. The printing apparatus 3 is a page printer, which renders (draws and develops) image data for each output unit (one page) before printing, and then outputs the raster data to the printer engine unit.

このような機能の実現のために、印刷装置3は、中央演算制御処理部310、RAM312(RAM:Random Access Memory )、インタフェース部330、PDLデータ解釈部340(インタプリタ部)、描画処理装置の一例である画像処理部350を備える。また印刷装置3は、印刷制御部370(出力制御部)、プリンタエンジン部380、画像処理部382、給紙部384、排出部386、後処理部387、プリンタIF部388、ハードディスク装置390(HDD)を備える。   In order to realize such functions, the printing apparatus 3 includes an example of a central processing control processing unit 310, a RAM 312 (RAM: Random Access Memory), an interface unit 330, a PDL data interpretation unit 340 (interpreter unit), and an example of a drawing processing device. The image processing unit 350 is provided. The printing apparatus 3 includes a print control unit 370 (output control unit), a printer engine unit 380, an image processing unit 382, a paper feeding unit 384, a discharge unit 386, a post-processing unit 387, a printer IF unit 388, a hard disk device 390 (HDD). ).

中央演算制御処理部310は、印刷装置3の全体を制御する。インタフェース部330は、ホスト側装置2との間のインタフェース機能をなす。   The central processing control processing unit 310 controls the entire printing apparatus 3. The interface unit 330 functions as an interface with the host-side device 2.

PDLデータ解釈部340は、PDLデータを解釈し、得た描画命令を画像処理部350に渡す描画命令出力装置の一例である。PDLデータ解釈部340は、取り込んだ描画情報やコマンドと描画データの列などを認識し、コマンドと引数に組み立ててコマンドを解釈する。   The PDL data interpretation unit 340 is an example of a drawing command output device that interprets PDL data and passes the obtained drawing command to the image processing unit 350. The PDL data interpretation unit 340 recognizes the fetched drawing information, the sequence of the command and the drawing data, and assembles the command and the argument to interpret the command.

画像処理部350は、PDLデータ解釈部340から受けとった解釈命令に基づいて、グラフィックス描画、文字描画、イメージ描画を行なうことで、ビットマップデータ(ラスタデータ)を生成する。このとき、画像処理部350は、生成したデータを一旦、ハードディスク装置390のページメモリ領域に記憶させる。たとえばカラー印刷を行なうのであれば、それぞれの色ごとに、たとえばC(シアン),M(マゼンタ),Y(イエロ),K(ブラック)の4プレーンにラスタ化し、ハードディスク装置390のページメモリ領域に個別に記憶させる。なお、ハードディスク装置390にページメモリ領域を確保するのに代えて、RAM312にページメモリ領域を確保してもよい。   The image processing unit 350 generates bitmap data (raster data) by performing graphics drawing, character drawing, and image drawing based on the interpretation command received from the PDL data interpretation unit 340. At this time, the image processing unit 350 temporarily stores the generated data in the page memory area of the hard disk device 390. For example, if color printing is performed, each color is rasterized into, for example, four planes of C (cyan), M (magenta), Y (yellow), and K (black) and stored in the page memory area of the hard disk device 390. Remember individually. Instead of securing the page memory area in the hard disk device 390, the page memory area may be secured in the RAM 312.

印刷制御部370は、出力制御部の一例であり、画像処理部350により描画展開されたビットマップデータに基づいてプリンタエンジン部380による印刷処理を制御する。プリンタエンジン部380は、印刷制御部370の指令に従って印刷処理を実行する。プリンタエンジン部380とシステムバスとの間にはプリンタIF部388が設けられる。プリンタエンジン部380は、画像処理部350にて処理されたデータに基づいて、画像を出力媒体に形成する画像形成部(画像出力部)の一例である。   The print control unit 370 is an example of an output control unit, and controls print processing by the printer engine unit 380 based on the bitmap data drawn and developed by the image processing unit 350. The printer engine unit 380 executes print processing in accordance with instructions from the print control unit 370. A printer IF unit 388 is provided between the printer engine unit 380 and the system bus. The printer engine unit 380 is an example of an image forming unit (image output unit) that forms an image on an output medium based on the data processed by the image processing unit 350.

印刷制御部370は、印刷を行なう際に、プリンタエンジン部380を起動し、出力単位分のビットマップデータを、プリンタIF部388を介してプリンタエンジン部380に供給する。   When performing printing, the print control unit 370 activates the printer engine unit 380 and supplies bitmap data for an output unit to the printer engine unit 380 via the printer IF unit 388.

プリンタエンジン部380は、出力処理部の一例であり、プリンタIF部388を介して供給されるビットマップデータに従って、用紙に画像を形成して出力する。すなわち、プリンタエンジン部380は、ページメモリ領域に格納された画像データに従って実際に被記録媒体上に画像を形成する。プリンタエンジン部380としては、たとえばレーザ方式を始め、種々の方式の記録方法を採用してよい。このとき、画像処理部382にて、2値化処理やスクリーン処理を行なうこともある。   The printer engine unit 380 is an example of an output processing unit, and forms and outputs an image on a sheet in accordance with bitmap data supplied via the printer IF unit 388. That is, the printer engine unit 380 actually forms an image on the recording medium in accordance with the image data stored in the page memory area. The printer engine unit 380 may employ various types of recording methods such as a laser method. At this time, the image processing unit 382 may perform binarization processing or screen processing.

給紙部384は、図示しないが、1つまたは複数の給紙トレイを具備しておち、プリンタエンジン部380に供給される印刷媒体の一例である用紙を収容する。   Although not shown, the paper supply unit 384 includes one or a plurality of paper supply trays, and stores paper that is an example of a print medium supplied to the printer engine unit 380.

排出部386は、図示しないが、プリンタエンジン部380にて印刷処理が実行された後の用紙が排出される排出トレイを具備する。排出部386は、印刷制御部370から回転角とともに回転指示を受けたとき、その指示に従った回転角で用紙を回転させてから排出する。   Although not shown, the discharge unit 386 includes a discharge tray for discharging sheets after the printing process is executed by the printer engine unit 380. When receiving the rotation instruction together with the rotation angle from the print control unit 370, the discharge unit 386 rotates the sheet at the rotation angle according to the instruction and then discharges the sheet.

後処理部387は、印刷指示に後処理の指示が添付されているときには、その指示に従って後処理を行なう。「後処理」としては、たとえば、出力される用紙に対してステイプラによりステイプル処理する(用紙を短辺綴じ長辺綴じにする)ことや、用紙の短辺または長辺にパンチ穴を開けるパンチ処理などがある。   When a post-processing instruction is attached to the print instruction, the post-processing unit 387 performs post-processing according to the instruction. As “post-processing”, for example, stapling is performed on the output paper by a stapler (the paper is short-sided and long-sided), or punching is performed to punch holes on the short side or long side of the paper. and so on.

ハードディスク装置390は、不揮発性の記憶媒体の一例であり、画像処理部350により生成されたラスタデータを記憶するだけでなく、PDLデータ解釈部340で解釈・変換した描画オブジェクトおよび描画演算指示(纏めて描画命令とも称する)を一時的に格納しておくためデータ格納部の一例としても機能する。   The hard disk device 390 is an example of a nonvolatile storage medium. The hard disk device 390 not only stores raster data generated by the image processing unit 350 but also draw objects and drawing calculation instructions (summary) interpreted and converted by the PDL data interpretation unit 340. And also serves as an example of a data storage unit.

<文字描画処理の問題点と改善手法の原理>
図2は、文字描画処理の問題点を説明する図である。
<Problems of character drawing processing and principle of improvement method>
FIG. 2 is a diagram for explaining the problem of the character drawing process.

近年のオフィス環境において、複数の用紙サイズを組み合わせた文章を作成する用途が増加し、印刷装置3が高機能化するに従い、複雑な後処理(フィニッシング処理)をすることが可能になっている。このとき、たとえば用紙を縦置きにして文字が正視状態となる形態の画像(ポートレイト画像と称する)と用紙を横置きにして文字が正視状態となる形態の画像(ランドスケープ画像と称する)が混在するなど、混合サイズ文書の出力処理が指示されることがある。この場合、出力向きが合わない(出力結果の描画方向が異なる)ケースが起こり得る。「描画方向」とは、人が見て文字を適正に読める(正視状態の)方向を意味する。   In recent office environments, the use of creating a text combining a plurality of paper sizes has increased, and as the printing apparatus 3 becomes more sophisticated, it has become possible to perform complex post-processing (finishing processing). At this time, for example, there is a mixture of an image (referred to as a portrait image) in which characters are placed in a normal state with the paper placed vertically and an image (referred to as a landscape image) in which the characters are placed in a straight state with the paper placed horizontally. For example, an output process of a mixed size document may be instructed. In this case, a case where the output direction does not match (the drawing direction of the output result is different) may occur. “Drawing direction” means the direction in which a person can read characters properly (in a normal state).

たとえば、図2(1)は、1ページ目がA4でポートレイト画像、2ページ目がA3でランドスケープ画像の、2ページで構成された文書(原稿)の出力が指示されているケースである。給紙部384では、第1給紙トレイにA4サイズの用紙が縦方向給紙がされるように収容され、第2給紙トレイにA3サイズの用紙が横方向給紙がされるように収容されているものとする。「縦方向給紙」とは、用紙の長辺側を先頭にして給紙する形態であり、「横方向給紙」とは用紙の短辺側を先頭にして給紙する形態である。   For example, FIG. 2 (1) is a case in which the output of a document (original) composed of two pages, the first page being A4 and a portrait image, the second page being A3 and a landscape image, is instructed. In the paper feed unit 384, A4 size paper is stored in the first paper feed tray so that it can be fed in the vertical direction, and A3 size paper is housed in the second paper feed tray so that it can be fed in the horizontal direction. It is assumed that “Vertical paper feed” is a form in which paper is fed starting from the long side of the paper, and “Horizontal paper feed” is a form in which paper is fed starting from the short side of the paper.

この場合、1ページ目のA4原稿(ポートレイト画像)では、文字が正視した状態で出力されるのに対して、2ページ目のA3原稿(ランドスケープ画像)では、文字が反転した状態で出力されてしまうことがある。つまり、サイズの異なる原稿の片面出力では、ランドスケープ画像(A3サイズ)のページの描画方向が1ページ目の描画方向と反対の結果になることがある。   In this case, the A4 document (portrait image) on the first page is output in a state where the characters are viewed straight, whereas the A3 document (landscape image) on the second page is output in a state where the characters are reversed. May end up. In other words, when a single-sided output of originals of different sizes is used, the drawing direction of the landscape image (A3 size) page may be opposite to the drawing direction of the first page.

また、図2(2)は、1,2ページ目がA4でポートレイト画像、3,4ページ目がA3でランドスケープ画像の、4ページで構成された文書(原稿)に対して、ステイプル(Staple)と両面(長辺綴じ)の指示がされているケースである。給紙部384では、第1給紙トレイにA4サイズの用紙が縦方向給紙がされるように収容され、第2給紙トレイにA3サイズの用紙が横方向給紙がされるように収容されているものとする。   In FIG. 2B, a document (original) composed of four pages, that is, a portrait image of A4 for the first and second pages and a landscape image of A3 for the third and fourth pages, is stapled. ) And double-sided (long edge binding) instructions. In the paper feed unit 384, A4 size paper is stored in the first paper feed tray so that it can be fed in the vertical direction, and A3 size paper is housed in the second paper feed tray so that it can be fed in the horizontal direction. It is assumed that

この場合、1,2ページ目のA4原稿(ポートレイト画像)に関しては表裏ともに文字が正視した状態で出力されるのに対して、3,4ページ目のA3原稿(ランドスケープ画像)に関しては、表面(3ページ目に対応)では文字が正視した状態で出力されるのに対して、裏面(4ページ目に対応)では文字が反転した状態で出力されてしまうことがある。つまり、ランドスケープ画像(A3サイズ)の両面印刷では表裏の描画方向が反対の結果になることがある。   In this case, the A4 manuscript (portrait image) on the first and second pages is output with the characters facing both front and back, whereas the A3 manuscript (landscape image) on the third and fourth pages is output on the front side. In the case of (corresponding to the third page), the characters are output in a state of being viewed straight, whereas in the back surface (corresponding to the fourth page), the characters may be output in an inverted state. In other words, in landscape printing (A3 size) double-sided printing, the front and back drawing directions may be opposite.

この問題を解決するためには、プリンタドライバの設定をユーザが変更することで回避することが考えられる。しかしながら、そのための操作が必要になる難点があるし、プリンタドライバ経由以外の出力形態には適用できない難点もある。   In order to solve this problem, it can be avoided that the user changes the setting of the printer driver. However, there is a problem that an operation for that is necessary, and there is a problem that it cannot be applied to an output form other than via a printer driver.

本実施形態では、ページ(頁)ごとに、文字の描画方向と出力媒体の向き(給送態様)との関係を特定し、その特定結果に基づいて、出力結果物において(後処理がある場合は後処理後において)、文字が適正に読める方向となるように、文字を回転させて出力処理を行なうようにする。   In this embodiment, for each page (page), the relationship between the character drawing direction and the output medium direction (feed mode) is specified, and the output result is based on the specified result (when there is post-processing). (After post-processing), the character is rotated so that the character can be read properly and the output process is performed.

ここで、「文字を回転させて出力処理を行なう」とは、文字が適正に読める方向となるように画像処理にて予め文字を回転させた後に出力媒体上に文字描画を行なう第1形態と、出力媒体上に文字描画を行なうときには文字を回転させずに、印刷された出力媒体を回転させることで、出力結果物において(後処理がある場合は後処理後において)、文字が適正に読める方向となるようにする第2形態の何れをも含む意味である。   Here, “rotate the character and perform the output process” is the first form in which the character is drawn on the output medium after the character is rotated in advance by image processing so that the character is properly read. When characters are drawn on the output medium, the printed output medium is rotated without rotating the characters, so that the characters can be read properly in the output result (after the post-processing if there is post-processing). It is meant to include any of the second forms that are oriented.

第1形態は、実際に出力媒体上に文字描画を行なう前に、本実施形態を適用しない場合における出力結果物での出力媒体上の文字の描画方向が正視状態になるか否かを判定し、正視状態にならないときには、事前に(実際の描画処理の前に)、画像処理にて文字を回転させる手法である。この手法は、排出部386の機構が複雑になる難点はないが、描画処理部410に回転処理部412を必要とする。   In the first mode, before the character is actually drawn on the output medium, it is determined whether or not the drawing direction of the character on the output medium in the output result when the present embodiment is not applied is in a normal viewing state. This is a technique in which characters are rotated by image processing in advance (before actual drawing processing) when a normal viewing state is not achieved. In this method, there is no difficulty in complicating the mechanism of the discharge unit 386, but the drawing processing unit 410 requires the rotation processing unit 412.

第2形態は、従前のままで出力媒体上に文字描画を行なってから、出力結果物での出力媒体上の文字の描画方向が正視状態になるように出力媒体を回転させる手法である。回転の要否の判定は、文字描画の前後の何れに実行してもよい。この手法は、排出部386の機構が複雑になる難点があるが、描画処理部410に回転処理部412を必要としない。   The second form is a method of rotating the output medium so that the drawing direction of the characters on the output medium in the output result is in the normal viewing state after the characters are drawn on the output medium as before. The determination of the necessity of rotation may be performed either before or after the character drawing. This method has a drawback that the mechanism of the discharge unit 386 becomes complicated, but the drawing processing unit 410 does not need the rotation processing unit 412.

また、第2形態において、文字描画処理後のラスタイメージ(印刷結果物を含む)で文字方向や回転の要否を判定する場合には、ラスタイメージから文字を抽出し文字認識することで文字方向が正視状態であるか否かを判定する手法を採り得る。この手法は、複写原稿にも対処し得る反面、装置構成や処理が複雑になる難点がある。   Further, in the second embodiment, when determining the character direction and necessity of rotation in the raster image (including the printed product) after the character drawing process, the character direction is obtained by extracting the character from the raster image and recognizing the character. A method of determining whether or not is in a normal vision state can be adopted. This method can cope with a copy original, but has a problem that the apparatus configuration and processing are complicated.

そこで、本実施形態では、印刷データに文字コマンドが含まれる場合には、好ましくは、第1・第2形態の何れにおいても、文字描画コマンドの解釈結果から各文字の描画方向を特定することにする。さらに、決められた領域(ページ全体やページ内の特定の領域)に複数の文字が存在するときには、全体として文字の方向を特定し、最後に、その全体として文字の方向が4つの直交方向(上向き・下向き、左向き・右向き:特に文字の天の向きと称する)の何れに該当するかを特定する。そして、文字の描画方向(ここでは特に「文字の天の向き」)と各出力媒体の給送態様との関係から、ページの回転の要否を判定することにする。   Therefore, in the present embodiment, when the print command includes a character command, it is preferable to specify the drawing direction of each character from the interpretation result of the character drawing command in both the first and second forms. To do. Furthermore, when there are a plurality of characters in a predetermined area (the entire page or a specific area within the page), the direction of the character is specified as a whole, and finally, the direction of the character as a whole is divided into four orthogonal directions ( (Upward / downward, leftward / rightward: particularly called the celestial direction of characters). Then, it is determined whether or not the page needs to be rotated based on the relationship between the character drawing direction (here, “character celestial direction” in particular) and the feeding mode of each output medium.

<画像処理部:第1実施形態>
[装置構成]
図3〜図3Aは、第1実施形態の画像処理部350Aの構成を示す図である。ここで、図3は、第1構成例を示し、図3Aは、第2構成例を示す。
<Image Processing Unit: First Embodiment>
[Device configuration]
3 to 3A are diagrams illustrating the configuration of the image processing unit 350A according to the first embodiment. Here, FIG. 3 shows a first configuration example, and FIG. 3A shows a second configuration example.

第1実施形態の画像処理部350Aは、グラフィックス描画、文字描画、イメージ描画を行なう描画処理部410と、文字方向特定部420と、文字回転判定部440を備える。   The image processing unit 350A according to the first embodiment includes a drawing processing unit 410 that performs graphics drawing, character drawing, and image drawing, a character direction specifying unit 420, and a character rotation determination unit 440.

描画処理部410は、90度単位で描画画像を回転させる回転処理部412を具備している。回転処理部412は、文字回転判定部440から回転角とともに回転指示を受けたとき、その指示に従った回転角での描画処理を行なう。   The drawing processing unit 410 includes a rotation processing unit 412 that rotates a drawing image in units of 90 degrees. When the rotation processing unit 412 receives a rotation instruction together with the rotation angle from the character rotation determination unit 440, the rotation processing unit 412 performs a drawing process at the rotation angle according to the instruction.

文字方向特定部420は、各文字の方向に基づき文書の決められた領域全体としての文字の方向を特定する。第1実施形態における「決められた領域」はページ全体である点に特徴がある。文字方向特定部420は、文字コマンド取得部422と文字ベクトル処理部430を有する。   The character direction specifying unit 420 specifies the direction of the character as the entire predetermined area of the document based on the direction of each character. The “determined area” in the first embodiment is characterized in that it is the entire page. The character direction identification unit 420 includes a character command acquisition unit 422 and a character vector processing unit 430.

文字コード取得部422は、文書中の文字コードを取得し文字ベクトル処理部440に渡す。   The character code acquisition unit 422 acquires a character code in the document and passes it to the character vector processing unit 440.

文字ベクトル処理部430は、ベクトル成分処理部432およびマトリクス成分処理部434の何れか一方を具備する。ベクトル成分処理部432を備えるのが、図3に示す第1構成例の画像処理部350A_1であり、マトリクス成分処理部434を備えるのが、図3Aに示す第2構成例の画像処理部350A_2である。   The character vector processing unit 430 includes one of a vector component processing unit 432 and a matrix component processing unit 434. The image processing unit 350A_1 of the first configuration example shown in FIG. 3 includes the vector component processing unit 432, and the image processing unit 350A_2 of the second configuration example shown in FIG. 3A includes the matrix component processing unit 434. is there.

ベクトル成分処理部432は、絶対座標系における文字ベクトル(詳細は後述する)のx方向成分とy方向成分のそれぞれの演算合成により領域全体としての文字の方向を特定する。一方、マトリクス成分処理部434は、絶対座標系に対する文字座標系の回転角θを変数とする2行2列のマトリクス(フォント座標マトリクスと称する)の演算合成により領域全体としての文字の方向を特定する。   The vector component processing unit 432 specifies the direction of the character as a whole region by calculating and synthesizing the x direction component and the y direction component of a character vector (details will be described later) in the absolute coordinate system. On the other hand, the matrix component processing unit 434 specifies the direction of the character as a whole region by arithmetic synthesis of a 2-by-2 matrix (referred to as a font coordinate matrix) using the rotation angle θ of the character coordinate system with respect to the absolute coordinate system as a variable. To do.

[文字方向特定処理]
図4〜図4Aは、文字方向特定部420の基本動作を説明する図である。ここで、図4(1)は、文字方向特定部420が扱う文字ベクトルを説明する図である。図4(2)は、各文字の文字ベクトルに基づき全体としての文字方向を特定する手法を説明する図である。図4Aは、特定された全体としての文字方向に基づき出力媒体上に文字を描画するときの文字の天の向きを決定する手法を説明する図である。
[Character direction identification processing]
4A to 4A are diagrams illustrating the basic operation of the character direction specifying unit 420. FIG. Here, FIG. 4A is a diagram for explaining a character vector handled by the character direction specifying unit 420. FIG. 4B is a diagram for explaining a method of specifying the character direction as a whole based on the character vector of each character. FIG. 4A is a diagram for explaining a technique for determining the top direction of a character when drawing the character on the output medium based on the specified character direction as a whole.

本実施形態において、「文字ベクトル」とは、図4(1)に示すように、文字座標系(文字を正視した状態においた座標形)におけるX軸方向(縦方向)とY軸方向(縦方向)の各単位ベクトルを意味し、これを各文字の描画方向を特定するための情報として利用する。X軸方向とY軸方向の内、Y軸方向の成分が文字を正視した状態の方向である。したがって、X軸方向とY軸方向の何れか一方で文字方向を特定する情報として使用するときはY軸方向の単位ベクトルを使用するのが好適である。   In the present embodiment, the “character vector” refers to the X-axis direction (vertical direction) and the Y-axis direction (vertical direction) in the character coordinate system (coordinate shape when the character is viewed straight) as shown in FIG. (Direction) unit vector, which is used as information for specifying the drawing direction of each character. Of the X-axis direction and the Y-axis direction, the component in the Y-axis direction is the direction in which the character is viewed. Therefore, it is preferable to use a unit vector in the Y-axis direction when it is used as information for specifying the character direction in either the X-axis direction or the Y-axis direction.

たとえば、文字座標形において、文字を正視した状態の方向(Y軸方向の単位ベクトルの方向)が4つの直交方向の何れに該当するかを特定すればよいときには、回転角が、0度、90度、180度、270度の何れであるかに着目すればよい。   For example, in the character coordinate form, when it is sufficient to specify which of the four orthogonal directions corresponds to the direction in which the character is viewed straight (the direction of the unit vector in the Y-axis direction), the rotation angle is 0 degree, 90 degrees. It may be noted whether the angle is 180 degrees, 180 degrees, or 270 degrees.

文字ベクトル処理部430は、ページごとに、「決められた領域」に含まれる各文字について、「文字ベクトル」のY軸方向の単位ベクトルを、各文字におけるベクトル方向として決定する。   The character vector processing unit 430 determines, for each page, the unit vector in the Y-axis direction of the “character vector” as the vector direction of each character for each character included in the “determined area”.

文字方向特定部420は、図4(2)に示すように、「決められた領域(ここではページ全体)」に含まれる各文字について(図4(2−1))、ベクトル方向を特定したら(図4(2−2))、さらにその総和の方向を特定する(図4(2−3))。つまり、文書の各ページについて、文字描画方向のベクトル方向の和を計算することで、文字の総和の方向(特にY軸方向の総和の終点)を特定するということである。処理対象領域中(ページ全体や指定された特定領域)に文字が1つではなく複数ある場合には、処理対象領域中の各文字の方向の総和を元に、全体として文字描画方向を特定するのである。   As shown in FIG. 4 (2), the character direction specifying unit 420 specifies the vector direction for each character included in the “determined area (here, the entire page)” (FIG. 4 (2-1)). (FIG. 4 (2-2)), and the direction of the sum is further specified (FIG. 4 (2-3)). In other words, for each page of the document, the sum of the vector direction of the character drawing direction is calculated to specify the direction of the sum of the characters (particularly the end point of the sum in the Y-axis direction). When there are a plurality of characters in the processing target area (entire page or specified specific area) instead of one, the character drawing direction is specified as a whole based on the sum of the directions of the characters in the processing target area. It is.

また、文字方向特定部420は、特定した文字の総和の方向に基づいて、図4Aに示すように、文書の各ページにおける文字の天の向きを特定する。ここでは、「文字の天の向き」としては、用紙を縦置きにした状態を基準として、上向き(上方向)・下向き(下方向)、左向き(左方向)・右向き(右方向)という4つの直交方向の何れに「文字の総和の方向」が該当するかを特定する。一例として、45度〜135度であれば上向き、135度〜225度であれば左向き、225度〜315度であれば下向き、315度〜45度であれば右向きとする。丁度境界に合致するときには該当の何れに対応させてもよい。   Further, the character direction specifying unit 420 specifies the top direction of the characters on each page of the document, as shown in FIG. 4A, based on the direction of the total sum of the specified characters. Here, there are four "character orientations": upward (upward), downward (downward), leftward (leftward), and rightward (rightward), based on the state in which the paper is placed vertically. It is specified which of the orthogonal directions corresponds to the “direction of the sum of characters”. As an example, 45 degrees to 135 degrees is upward, 135 degrees to 225 degrees is leftward, 225 degrees to 315 degrees is downward, and 315 degrees to 45 degrees is rightward. When it just matches the boundary, it may correspond to any of the corresponding.

図4A(1)はA4サイズの状態を示している。ポートレイト画像の場合であれば、多くの文字は縦置きで正視の状態で記述されているであろうから、文字の総和の方向は45度〜135度の範囲内と考えられるので、文字の天の向きは上向きとなる。   FIG. 4A (1) shows an A4 size state. In the case of a portrait image, since many characters will be described vertically and in a straight line, the direction of the sum of characters is considered to be within a range of 45 degrees to 135 degrees. The direction of heaven is upward.

図4A(2)はA3サイズの状態を示している。ランドスケープ画像の場合であれば、多くの文字は横置きで正視の状態で記述されているであろうから、文字の総和の方向は135度〜225度または315度〜45度の範囲内と考えられるので、文字の天の向きは右向きか左向きとなる。その何れとなるかは、描画処理と、用紙搬送系において、A3サイズの縦置きの用紙を右回転させて横置き状態にするのか左回転させて横置き状態にするのかの扱いに依存する。そして、その影響で、文字が逆視状態で出力されることが起こり得る。   FIG. 4A (2) shows an A3 size state. In the case of a landscape image, since many characters will be described in a landscape orientation with a normal view, the direction of the sum of the characters is considered to be in the range of 135 degrees to 225 degrees or 315 degrees to 45 degrees. Therefore, the celestial direction of the character is right or left. Whether this is the case depends on the drawing processing and the handling of whether the A3 size portrait paper is rotated to the right and placed in the landscape orientation or the left orientation in the landscape orientation in the paper transport system. As a result, characters may be output in a reverse viewing state.

次ぎに、「文字ベクトルの特定」や「文字の総和の方向の特定」などの一連の処理を行なうベクトル成分処理部432やマトリクス成分処理部434の具体的な動作について説明する。   Next, specific operations of the vector component processing unit 432 and the matrix component processing unit 434 that perform a series of processes such as “specification of character vectors” and “specification of the direction of summation of characters” will be described.

[ベクトル成分処理]
図5は、ベクトル成分処理部432の動作を説明する図である。
[Vector component processing]
FIG. 5 is a diagram for explaining the operation of the vector component processing unit 432.

ベクトル成分処理部432は、絶対座標系(x,y座標系)における各文字のY軸方向の文字ベクトルのx方向成分とy方向成分を(x,y)で表わし、そのx方向成分とy方向成分の別に、演算合成(単純な加算処理でよい)をすることで、領域全体としての文字の方向を特定する。つまり、Y軸方向の文字ベクトルの総和の終点の方向を特定する。   The vector component processing unit 432 represents the x direction component and the y direction component of the character vector in the Y axis direction of each character in the absolute coordinate system (x, y coordinate system) by (x, y), and the x direction component and y The direction of the character as a whole area is specified by performing arithmetic synthesis (simple addition processing may be used) separately from the direction component. That is, the direction of the end point of the sum of the character vectors in the Y-axis direction is specified.

たとえば、絶対座標系(x,y座標系)に対する文字座標系の回転角が0度(図5(1))のときの文字ベクトルを(0,1)とし、回転角が90度(図5(2))のときの文字ベクトルを(−1,0)とし、回転角が180度(図5(3))のときの文字ベクトルを(0,−1)とし、回転角が270度(図5(4))のときの文字ベクトルを(1,0)とする。   For example, when the rotation angle of the character coordinate system with respect to the absolute coordinate system (x, y coordinate system) is 0 degree (FIG. 5 (1)), the character vector is (0, 1), and the rotation angle is 90 degrees (FIG. 5). (2)) the character vector is (-1, 0), the rotation angle is 180 degrees (FIG. 5 (3)), the character vector is (0, -1), and the rotation angle is 270 degrees ( The character vector in FIG. 5 (4)) is assumed to be (1, 0).

「A,B,C」の3文字の回転角が0度で、「1」の1文字の回転角が90度である、4文字が記載された図5(5)に示すようなページを処理対象とするときには、その領域全体(ページ全体)としての文字の方向は、「(0,1)+(0,1)+(0,1)+(−1,0)=(−1,3)」となる。   A page as shown in FIG. 5 (5) in which four characters are described, in which the rotation angle of three characters “A, B, C” is 0 degree and the rotation angle of one character “1” is 90 degrees. When processing, the direction of characters as the entire area (the entire page) is “(0, 1) + (0, 1) + (0, 1) + (− 1, 0) = (− 1, 3) ”.

(−1,3)で示される正接(タンジェント:tangent )は、「3/−1=−3」であり、y成分が「正」で大きさが「1」以上のため、45度〜135度に該当するので、ページ全体としての文字の方向は上向き(上方向)であると特定される。   The tangent (tangent) indicated by (−1, 3) is “3 / −1 = −3”, the y component is “positive”, and the size is “1” or more. Therefore, the character direction of the entire page is specified to be upward (upward).

[マトリクス成分処理]
図6は、マトリクス成分処理部434の動作を説明する図である。
[Matrix component processing]
FIG. 6 is a diagram for explaining the operation of the matrix component processing unit 434.

マトリクス成分処理部434は、絶対座標系(x,y座標系)に対する文字座標系の回転角θを変数として各文字の文字ベクトル(X軸方向とY軸方向の各単位ベクトル)をフォント座標マトリクスに変換して表わす。   The matrix component processing unit 434 uses the rotation angle θ of the character coordinate system with respect to the absolute coordinate system (x, y coordinate system) as a variable, and sets the character vector (each unit vector in the X-axis direction and Y-axis direction) of each character as a font coordinate matrix. Convert to and express.

因みに、フォント座標マトリクスにおいて、X軸方向の単位ベクトルのx方向成分が1行1列目の値でy方向成分が2行1列目の値であり、Y軸方向の単位ベクトルのx方向成分が1行2列目の値でy方向成分が2行2列目の値である。   Incidentally, in the font coordinate matrix, the x-direction component of the unit vector in the X-axis direction is the value in the first row and first column, the y-direction component is the value in the second row and first column, and the x-direction component of the unit vector in the Y-axis direction. Is the value of the first row and the second column, and the y-direction component is the value of the second row and the second column.

マトリクス成分処理部434は、各文字のフォント座標マトリクスの演算合成により、領域全体としての文字の方向を特定する。このとき、マトリクス成分処理部434は、フォント座標における単位マトリクス成分(フォント座標マトリクス)の総和を算出し、Y軸方向の単位ベクトルの総和の端点へのベクトルがどの方向に向くかを演算する。   The matrix component processing unit 434 specifies the direction of the character as a whole region by calculating and synthesizing the font coordinate matrix of each character. At this time, the matrix component processing unit 434 calculates the sum of the unit matrix components (font coordinate matrix) in the font coordinates, and calculates in which direction the vector to the end point of the sum of the unit vectors in the Y-axis direction is directed.

たとえば、絶対座標系(x,y座標系)に対する文字座標系の回転角が0度(図6(1))のときのフォント座標マトリクスをMX_0とし、回転角が90度(図6(2))のときのフォント座標マトリクスをMX_90 、回転角が180度(図6(3))のときのフォント座標マトリクスをMX_180とし、回転角が270度(図6(4))のときのフォント座標マトリクスをMX_270とする。   For example, when the rotation angle of the character coordinate system with respect to the absolute coordinate system (x, y coordinate system) is 0 degrees (FIG. 6 (1)), the font coordinate matrix is MX_0, and the rotation angle is 90 degrees (FIG. 6 (2)). ) Is MX_90, the font coordinate matrix is 180 degrees (FIG. 6 (3)), and the font coordinate matrix is MX_180, and the rotation angle is 270 degrees (FIG. 6 (4)). Is MX_270.

そして、「A,B,C」の3文字の回転角が0度で、「1」の1文字の回転角が90度である、4文字が記載された図6(5)に示すようなページを処理対象とするときには、その領域全体(ページ全体)としてのフォント座標マトリクスは、図6(5)に示す式(1)の通りである。   Then, as shown in FIG. 6 (5) in which four characters are described, in which the rotation angle of three characters “A, B, C” is 0 degree and the rotation angle of one character “1” is 90 degrees. When a page is a processing target, the font coordinate matrix as the entire area (the entire page) is as shown in Expression (1) shown in FIG.

ここで、Y軸方向の単位ベクトルの総和が、2列目に示される。この例では、そのx方向成分(1行2列目の値)が「−1」でy方向成分(2行2列目の値)が「3」である。したがって、正接(タンジェント:tangent )は、「3/−1=−3」であり、y成分が「正」で大きさが「1」以上のため、45度〜135度に該当するので、ページ全体としての文字の方向は上向き(上方向)であると特定される。当然のことながら、図5で説明した[ベクトル成分処理]の場合と同様の結果が得られる。   Here, the sum of unit vectors in the Y-axis direction is shown in the second column. In this example, the x-direction component (value of the first row and the second column) is “−1”, and the y-direction component (value of the second row and the second column) is “3”. Therefore, the tangent is “3 / −1 = −3”, the y component is “positive”, and the size is “1” or more, and therefore corresponds to 45 to 135 degrees. The character direction as a whole is specified to be upward (upward). Naturally, the same result as in the case of [vector component processing] described in FIG. 5 is obtained.

[ベクトル成分処理とマトリクス成分処理の対比]
図6Aは、ベクトル成分処理とマトリクス成分処理の対比を説明する図である。前例では、文字座標形において、文字が直交関係(回転角θが0度、90度、180度、270度)で配置されている場合で示したが、回転角θは任意でよい。この場合、ベクトル成分処理とマトリクス成分処理との間には、回転角θの正弦要素(sinθ)と余弦要素(cosθ)を用いた2行2列の行列式により、図6Aに示すような関係を持つ。
[Contrast between vector component processing and matrix component processing]
FIG. 6A is a diagram illustrating a comparison between vector component processing and matrix component processing. In the previous example, in the character coordinate form, the case where the characters are arranged in an orthogonal relationship (rotation angle θ is 0 degrees, 90 degrees, 180 degrees, 270 degrees) is shown, but the rotation angle θ may be arbitrary. In this case, a relationship as shown in FIG. 6A is established between the vector component processing and the matrix component processing by a 2-by-2 determinant using a sine element (sin θ) and a cosine element (cos θ) of the rotation angle θ. have.

ここで、ベクトル成分処理部432によるベクトル成分処理と、マトリクス成分処理部434によるマトリクス成分処理を比較した場合、図6Aに示したように、どちらの手法でも、文字の天の向きは特定される。ただし、前者は演算処理が簡易であるが2つの変数を要するのに対して、後者は1つの変数(回転角θ)でよいが演算処理が複雑になると言う相違がある。何れが優れているかは一概に決められない。   Here, when the vector component processing by the vector component processing unit 432 and the matrix component processing by the matrix component processing unit 434 are compared, as shown in FIG. 6A, the celestial direction of the character is specified by either method. . However, although the former is simple in arithmetic processing but requires two variables, the latter may be one variable (rotation angle θ), but there is a difference that the arithmetic processing becomes complicated. It is not possible to determine which is better.

[文字回転方向決定処理]
図7は、文字回転判定部440の動作を説明する図である。文字回転判定部440は、文字ベクトル処理部430で特定された「文字の天の向き」と各出力媒体の給送方向の向きとの関係から、各ページについての文字の回転の要否を判定する。全文字分のベクトル方向の総和と用紙の給紙方向との関係、つまり給紙される用紙上に「全文字分のベクトル方向の総和」がどのように描画され、それがページ間でどのような関係にあるかに基づき、各ページについての文字の回転の要否を判定するということである。
[Character rotation direction determination processing]
FIG. 7 is a diagram for explaining the operation of the character rotation determination unit 440. The character rotation determination unit 440 determines whether or not it is necessary to rotate the character for each page based on the relationship between the “direction of the top of the character” specified by the character vector processing unit 430 and the direction of the feeding direction of each output medium. To do. The relationship between the total vector direction for all characters and the paper feed direction, that is, how the "total vector direction for all characters" is drawn on the fed paper and how it is drawn between pages That is, the necessity of character rotation for each page is determined based on whether or not there is a relationship.

たとえば、文字回転判定部440は、各ページのベクトル方向の判定結果である「文字の天の向き」が一致しているか否かを判定する。そして、ページ間の向きが一致しない場合には、何れかのページを回転をさせて印刷させる。基本的には、出力結果物において、文字が正視状態となるように、正視状態にないページを回転させる。   For example, the character rotation determination unit 440 determines whether or not “the direction of the top of the character” that is the determination result of the vector direction of each page matches. If the orientations between pages do not match, any page is rotated and printed. Basically, pages that are not in the normal viewing state are rotated so that the characters are in the normal viewing state in the output product.

たとえば、図7(1)は、第1実施形態を適用しない場合の状態を示している。1ページ目がA4でポートレイト画像、2ページ目がA3でランドスケープ画像の、2ページで構成された文書(原稿)の出力が指示されているケースにおいて、1ページ目のA4原稿(ポートレイト画像)では文字が正視した状態で出力されるのに対して、2ページ目のA3原稿(ランドスケープ画像)では文字が反転した状態で出力されてしまっている。   For example, FIG. 7 (1) shows a state where the first embodiment is not applied. In the case where the output of a document (original) composed of two pages, in which the first page is A4 and a portrait image, the second page is A3 and a landscape image, the A4 original (portrait image) of the first page is designated. ) Is output in a state in which the characters are viewed straight, whereas in the A3 document (landscape image) on the second page, the characters are output in an inverted state.

これに対して図7(2)は、第1実施形態を適用した場合の状態を示している。文字ベクトル処理部430により、2ページ目のA3原稿(ランドスケープ画像)では文字が反転した状態で出力されてしまうことが特定される。そこで、文字回転判定部440は、2ページ目を回転するように、描画処理部410の回転処理部412または印刷制御部370に指示する。この指示を受けた回転処理部412は、その指示に従った回転角での描画処理を行なう。この指示を受けた印刷制御部370は、その指示に従った回転角で用紙を回転させてから排出するように排出部386を制御する。その結果、用紙サイズが異なる場合でも、何れのページでも文字が正視された状態での出力結果物となる。   On the other hand, FIG. 7B shows a state when the first embodiment is applied. The character vector processing unit 430 specifies that characters are output in an inverted state in the A3 document (landscape image) on the second page. Therefore, the character rotation determination unit 440 instructs the rotation processing unit 412 or the print control unit 370 of the drawing processing unit 410 to rotate the second page. Receiving this instruction, the rotation processing unit 412 performs a drawing process at a rotation angle according to the instruction. Upon receiving this instruction, the print control unit 370 controls the discharge unit 386 so that the sheet is rotated after being rotated at a rotation angle according to the instruction and then discharged. As a result, even if the paper sizes are different, an output result is obtained in a state where characters are viewed from any page.

[処理手順:第1実施形態]
図8は、第1実施形態の画像処理部350Aの全体動作を説明するフローチャートである。
[Processing Procedure: First Embodiment]
FIG. 8 is a flowchart for explaining the overall operation of the image processing unit 350A of the first embodiment.

印刷装置3は、ホスト側装置2から印刷データ(PDLデータ)を受け取ると、ハードディスク装置390やRAM312に一時的にデータを記憶する、つまり、処理データをスプールする(S110)。   When receiving the print data (PDL data) from the host-side device 2, the printing device 3 temporarily stores the data in the hard disk device 390 or the RAM 312, that is, spools the processing data (S110).

PDLデータ解釈部340は、スプールしたデータを順次取り込み解釈する。このとき、PDLデータ解釈部340は、コマンドが文字コマンド(文字命令:文字の描画命令)であるか否かを判定する(S112)。PDLデータ解釈部340は、全ての文字コマンドを文字方向特定部420の文字コマンド取得部422にコマンドを渡す。   The PDL data interpretation unit 340 sequentially fetches and interprets spooled data. At this time, the PDL data interpretation unit 340 determines whether or not the command is a character command (character command: character drawing command) (S112). The PDL data interpretation unit 340 passes all character commands to the character command acquisition unit 422 of the character direction identification unit 420.

文字ベクトル処理部430は、前述のようにして、各文字コマンドについて、ベクトル成分処理部432またはマトリクス成分処理部434により、文字座標系のベクトル方向を特定する(S134)。この処理を、全ての文字コマンドについて完了するまで継続する(S140)。   As described above, the character vector processing unit 430 specifies the vector direction of the character coordinate system for each character command by the vector component processing unit 432 or the matrix component processing unit 434 (S134). This process is continued until completion for all character commands (S140).

全ての文字コマンドについてベクトル方向を特定し終えたら(S140−YES)、文字ベクトル処理部430は、全文字分のベクトル方向の総和を特定する(S142)。   When the vector direction is specified for all the character commands (S140-YES), the character vector processing unit 430 specifies the sum of the vector directions for all characters (S142).

文字ベクトル処理部430は、全文字分のベクトル方向の総和の方向が4つの「文字の天の向き」の何れに該当するかを特定する(S144)。   The character vector processing unit 430 specifies which of the four “directions of the celestial character” corresponds to the direction of the sum of the vector directions of all characters (S144).

文字回転判定部440は、文字ベクトル処理部430で特定された「文字の天の向き」と各出力媒体の給送方向の向きとの関係から、各ページについての文字の回転の要否を判定する。具体的には、前ページの「文字の天の向き」と現ページの「文字の天の向き」が同じか否かを判定する(S150)。同じでなければ、文字回転判定部440は、該当ページを回転する設定にする(S152)。この後、描画処理部410は、該当ページを描画処理する(S170)。   The character rotation determination unit 440 determines whether or not it is necessary to rotate the character for each page based on the relationship between the “direction of the top of the character” specified by the character vector processing unit 430 and the direction of the feeding direction of each output medium. To do. Specifically, it is determined whether or not the “top direction of characters” on the previous page is the same as the “top direction of characters” on the current page (S150). If they are not the same, the character rotation determination unit 440 sets to rotate the corresponding page (S152). Thereafter, the rendering processing unit 410 performs rendering processing on the corresponding page (S170).

画像処理部350は、残ページの有無を確認し(S178)、残ページがある場合には(S178−YES)、ステップS112に戻り次ページの処理を実行する。   The image processing unit 350 confirms whether there is a remaining page (S178). If there is a remaining page (S178-YES), the process returns to step S112 to execute the process for the next page.

このように、第1実施形態では、図8中に点線で示す描画処理を行なうための前処理において、該当ページの天の向きを特定し、前ページとの向きの違いがある場合は回転させる設定を有効にする。ページ全体において、文章の天の向きを決定し、出力結果物上で、何れのページにおいても、文字が正視した状態となるようにしている。   As described above, in the first embodiment, in the pre-process for performing the drawing process indicated by the dotted line in FIG. 8, the top direction of the corresponding page is specified, and if there is a difference in the direction from the previous page, the page is rotated. Enable the setting. The direction of the top of the sentence is determined for the entire page, and the characters are viewed in any page on the output result.

したがって、複数の用紙サイズで構成されている文書の天の向きをユーザのオペレーション無しに自動に判定して排出するようになる。ユーザが実際の原稿の描画向きを判断できないケースでも、文字の方向が揃わなくなる可能性が排除される。プリンタドライバで「文字方向」に関するユーザ設定がない場合でも、確実に、各ページの文字が正視した状態となる。また、文字描画コマンドに回転などの編集演算がされていても、正しい向きが特定され、確実に、各ページの文字が正視した状態となる。   Therefore, the orientation of the top of a document composed of a plurality of paper sizes is automatically determined and discharged without user operation. Even in the case where the user cannot determine the actual drawing direction of the original, the possibility that the directions of characters are not aligned is eliminated. Even if there is no user setting related to “character direction” in the printer driver, the characters on each page are surely viewed. Even if editing operations such as rotation are performed on the character drawing command, the correct orientation is specified, and the characters on each page are surely viewed.

文字コマンドを元に各種の処理を行なうので、グラフィックス(図形)やイメージ(写真・画像)のコマンドはスキップし、文字描画コマンドもラスタライズはしないでメトリクス情報のみの演算をして処理をする。文字描画コマンドに基づきラスタライズしてから処理する場合や出力媒体上の文字を読み取ってから処理する場合に比べて、全体としての処理は簡易で負荷も軽いと考えられる。   Since various processes are performed based on the character command, graphics (graphic) and image (photo / image) commands are skipped, and the character drawing command is not rasterized and only the metric information is calculated. Compared to processing after rasterizing based on a character drawing command or processing after reading characters on an output medium, the overall processing is considered to be simple and light.

<第2実施形態>
[装置構成]
図9は、第2実施形態の画像処理部350Bの構成を示す図である。ここでは、図3に示した第1実施形態(第1構成例)への適用例で示すが、図3Aに示した第1実施形態(第2構成例)に対しても同様に適用し得る。
<Second Embodiment>
[Device configuration]
FIG. 9 is a diagram illustrating a configuration of the image processing unit 350B of the second embodiment. Here, an example of application to the first embodiment (first configuration example) shown in FIG. 3 is shown, but the same applies to the first embodiment (second configuration example) shown in FIG. 3A. .

第2実施形態の画像処理部350Bは、第1実施形態の画像処理部350A_1をベースに、領域指定部500を備える点に特徴がある。領域指定部500は、文字方向特定部420における処理対象領域の指定を受け付け、文字方向特定部420(の文字コマンド取得部422)に通知する。文字方向特定部420は、ページ全体を処理対象領域とするのではなく、領域指定部500から通知された処理対象領域内の文字について第1実施形態と同様の処理を行なう。   The image processing unit 350B of the second embodiment is characterized in that it includes an area designating unit 500 based on the image processing unit 350A_1 of the first embodiment. The area designation unit 500 receives the designation of the processing target area in the character direction identification unit 420 and notifies the character direction identification unit 420 (the character command acquisition unit 422). The character direction specifying unit 420 does not set the entire page as the processing target region, but performs the same processing as that of the first embodiment on the characters in the processing target region notified from the region specifying unit 500.

なお、図中に点線で示すように、領域指定部500による領域指定機能を有効にする無効にするかを切り替える切替部510を設けて、ページ全体を処理対象領域とするのかその一部を処理対象領域とするのかを、用途により使い分ける(切り替える)ようにしてもよい。   In addition, as shown by a dotted line in the figure, a switching unit 510 that switches whether to enable or disable the area specifying function by the area specifying unit 500 is provided to process the entire page as a processing target area or a part thereof. The target area may be used (switched) depending on the application.

[領域指定処理]
図10は、領域指定部500の基本動作を説明する図である。領域指定部500は、予め、処理対象領域を、マスク領域や矩形領域などで指定を受け付けることで、文字方向特定部420に対して、文書(ページ)に特徴のある領域内の文字のみを処理対象とするように指示する。領域の指定手段としては、後述のように、PDLやユーザインタフェース画面などを利用する。
[Area specification processing]
FIG. 10 is a diagram for explaining the basic operation of the area designating unit 500. The area designating unit 500 accepts designation of the processing target area in advance as a mask area, a rectangular area, or the like, thereby processing only the characters in the area characterized by the document (page) with respect to the character direction specifying unit 420. Instruct to target. As the area designating means, as will be described later, a PDL or a user interface screen is used.

[領域指定処理:第1構成例]
図11は、領域指定部500の第1構成例とその動作を説明する図である。第1構成例の領域指定部500_1は、領域の指定手段としてPDLを利用する形態である。この場合、領域指定部500_1は、指定領域をPDLとして蓄積しておいて、原稿を処理するときに、領域判定用として読み出す。
[Area designation processing: first configuration example]
FIG. 11 is a diagram for explaining a first configuration example of the area designating unit 500 and its operation. The area designating unit 500_1 of the first configuration example uses PDL as an area designating unit. In this case, the area designating unit 500_1 stores the designated area as a PDL and reads it for area determination when processing the document.

ここで「指定領域をPDLとして蓄積」とは、マスク領域や矩形領域を示すコマンドとして、ホスト側装置2(クライアント)側で作成したデータをハードディスク装置390に格納しておくことを意味する。   Here, “accumulate specified area as PDL” means that data created on the host side apparatus 2 (client) side is stored in the hard disk apparatus 390 as a command indicating a mask area or a rectangular area.

[領域指定処理:第2構成例]
図11Aは、領域指定部500の第2構成例とその動作を説明する図である。第2構成例の領域指定部500_2は、領域の指定手段としてユーザインタフェース画面を利用する形態の第1例である。この第1例では、領域指定部500_2は、印刷装置3のユーザインタフェースまたはホスト側装置2でのリモートユーザインタフェース上で指定領域の指定を受け付け、第1例と同様にして、予めPDLデータとしてハードディスク装置390に蓄積しておく。そして、原稿を処理するときに、その情報を領域判定用として読み出す。
[Area designation processing: second configuration example]
FIG. 11A is a diagram for explaining a second configuration example of the area designating unit 500 and its operation. The area specifying unit 500_2 of the second configuration example is a first example in which a user interface screen is used as an area specifying unit. In this first example, the area designating unit 500_2 accepts designation of the designated area on the user interface of the printing apparatus 3 or the remote user interface on the host side apparatus 2, and in the same way as in the first example, the hard disk is stored in advance as PDL data. Accumulated in the device 390. Then, when the document is processed, the information is read for area determination.

[領域指定処理:第3構成例]
図11Bは、領域指定部500の第3構成例とその動作を説明する図である。第3構成例の領域指定部500_3は、領域の指定手段としてユーザインタフェース画面を利用す形態の第2例である。この第2例では、指定領域の選択メニュを表示してユーザによる選択を受け付ける点が第1例(第2構成例)と異なる。その他は、第1例(第2構成例)と同じである。
[Area designation processing: third configuration example]
FIG. 11B is a diagram for explaining a third configuration example of the area designating unit 500 and its operation. The area specifying unit 500_3 in the third configuration example is a second example in which a user interface screen is used as an area specifying unit. This second example is different from the first example (second configuration example) in that a selection menu for a designated area is displayed and a selection by the user is accepted. Others are the same as the first example (second configuration example).

[処理手順:第2実施形態]
図12は、第2実施形態の画像処理部350Bの全体動作を説明するフローチャートである。
[Processing Procedure: Second Embodiment]
FIG. 12 is a flowchart for explaining the overall operation of the image processing unit 350B of the second embodiment.

第2実施形態では、領域指定部500が、処理対象領域の指定を受け付けたときには、文字方向特定部420は、その指示に従う点が第1実施形態と異なる。その他は、第1実施形態と同様である。   In the second embodiment, when the area designating unit 500 accepts designation of a processing target area, the character direction specifying unit 420 is different from the first embodiment in that it follows the instruction. Others are the same as in the first embodiment.

このため、第2実施形態では、文字ベクトル処理部430は、文字コマンドが、領域指定部500が受け付けた指定領域内であるか否かを判定する(S120)。そして、指定領域内にある文字コマンドについてのみ(S120−YES)、前述のようにして、各文字コマンドについて、ベクトル成分処理部432またはマトリクス成分処理部434により、文字座標系のベクトル方向を特定する(S134)。以下、第1実施形態と同様である。   Therefore, in the second embodiment, the character vector processing unit 430 determines whether or not the character command is within the designated area received by the area designating unit 500 (S120). Only for the character commands in the designated area (S120-YES), the vector component processing unit 432 or the matrix component processing unit 434 specifies the vector direction of the character coordinate system for each character command as described above. (S134). Hereinafter, it is the same as that of 1st Embodiment.

<第3実施形態>
[装置構成]
図13は、第3実施形態の画像処理部350Cの構成を示す図である。ここでは、図3に示した第1実施形態(第1構成例)への適用例で示すが、第1実施形態(第2構成例)や第2実施形態に対しても同様に適用し得る。
<Third Embodiment>
[Device configuration]
FIG. 13 is a diagram illustrating a configuration of an image processing unit 350C according to the third embodiment. Here, although shown in the application example to 1st Embodiment (1st structural example) shown in FIG. 3, it can apply similarly also to 1st Embodiment (2nd structural example) and 2nd Embodiment. .

第3実施形態の画像処理部350Cは、第1実施形態の画像処理部350A_1をベースに、文字方向特定部420が、重付け処理部438を備える点に特徴がある。   The image processing unit 350C of the third embodiment is characterized in that the character direction specifying unit 420 includes a weighting processing unit 438 based on the image processing unit 350A_1 of the first embodiment.

文字列を連続で指定しているコマンドの場合、ベクトル成分処理部432やマトリクス成分処理部434は、連続する文字列の内の何れか1つ(たとえば最初の文字)だけについてベクトル方向を特定して、その結果を重付け処理部438に渡す。重付け処理部438は、文字列を連続で指定しているコマンドに基づき、「最初の文字についてのベクトル方向」を、文字数分重み付けすることで、連続した文字列分のベクトル方向を特定する。   In the case of a command that designates a character string continuously, the vector component processing unit 432 and the matrix component processing unit 434 specify the vector direction for only one of the consecutive character strings (for example, the first character). The result is passed to the weighting processing unit 438. The weighting processing unit 438 specifies the vector direction for the continuous character string by weighting the “vector direction for the first character” by the number of characters based on the command that continuously specifies the character string.

[重付け処理]
図14は、重付け処理部438の動作を説明する図である。重付け処理部438は、文字列を連続で指定しているコマンドの場合は、最初の文字だけベクトル方向を算出して、他の文字は文字数分重み付けする。
[Weight processing]
FIG. 14 is a diagram for explaining the operation of the weighting processing unit 438. In the case of a command in which character strings are continuously specified, the weighting processing unit 438 calculates the vector direction for only the first character and weights the other characters by the number of characters.

一例として、コマンドを図14(1)に示すように定義する。この例では、文字描画コマンドであることを示す「FONT」、描画位置を規定するX方向座標「X」およびY方向座標「Y」、描画する文字コード[CHAR」を指定する。なお、文字コード[CHAR」は、アスキー(ASCII)コードの16進法表記とする。   As an example, a command is defined as shown in FIG. In this example, “FONT” indicating a character drawing command, X-direction coordinates “X” and Y-direction coordinates “Y” for defining a drawing position, and a character code [CHAR] to be drawn are designated. Note that the character code [CHAR] is an ASCII code in hexadecimal notation.

ここで、文字列を連続で指定する場合は、文字コードの部分に、複数の文字コードが記載される。この場合の描画位置を規定するX方向座標「X」およびY方向座標「Y」は、最初の文字の描画意図を示す。   Here, when character strings are successively specified, a plurality of character codes are described in the character code portion. In this case, the X-direction coordinate “X” and the Y-direction coordinate “Y” that define the drawing position indicate the intention of drawing the first character.

文字列を連続で指定しているコマンドの一例が図14(2)に示されている。この例では、「FONT 100 200 41 42 43」であり、「41」は文字「A」、「42」は文字「B」、「43」は文字「C」であるから、文字「ABC」を座標(100,200)の位置に描画することを示している。   An example of a command designating a character string continuously is shown in FIG. In this example, “FONT 100 200 41 42 43”, “41” is the letter “A”, “42” is the letter “B”, and “43” is the letter “C”, so the letter “ABC” is changed. It shows drawing at the position of coordinates (100, 200).

この場合、先ず、ベクトル成分処理部432は、FONTコマンドには3文字あることが分かるので、「A」の文字の判定のみを行なう。ベクトル成分処理部432は、「A」の文字の判定でベクトルは(0,1)と特定し、その結果を重付け処理部438に通知する。重付け処理部438は、FONTコマンドには3文字あることが分かるので、ベクトル成分処理部432から通知された「A」の文字で判定した(0,1)を3倍する。   In this case, first, the vector component processing unit 432 knows that there are three characters in the FONT command, and therefore only determines the character “A”. The vector component processing unit 432 identifies the vector as (0, 1) by determining the character “A”, and notifies the weighting processing unit 438 of the result. Since the weighting processing unit 438 knows that there are three characters in the FONT command, the weighting processing unit 438 triples (0, 1) determined by the character “A” notified from the vector component processing unit 432.

[処理手順:第3実施形態]
図15は、第3実施形態の画像処理部350Cの全体動作を説明するフローチャートである。
[Processing procedure: third embodiment]
FIG. 15 is a flowchart for explaining the overall operation of the image processing unit 350C of the third embodiment.

第3実施形態では、文字列を連続で指定しているコマンドの場合は、最初の文字だけベクトル方向を特定して、他の文字は文字数分重み付けする点が第1実施形態と異なる。その他は、第1実施形態と同様である。   The third embodiment is different from the first embodiment in that in the case of a command that designates a character string continuously, the vector direction is specified only for the first character and the other characters are weighted by the number of characters. Others are the same as in the first embodiment.

このため、第3実施形態では、文字方向特定部420は先ず、文字コマンドが文字列を連続で指定しているコマンド(連続文字コマンドと称する)であるか否かを判定する(S130)。連続文字コマンドでなければ第1実施形態と同様に文字ごとに処理する(S130−NO)。   For this reason, in the third embodiment, the character direction specifying unit 420 first determines whether or not the character command is a command (referred to as a continuous character command) that consecutively specifies a character string (S130). If it is not a continuous character command, processing is performed for each character as in the first embodiment (S130-NO).

一方、連続文字コマンドのときには、ベクトル成分処理部432やマトリクス成分処理部434は、連続文字分の最初の文字だけベクトル方向を特定して、その結果を重付け処理部438に渡す(S130−YES,S136)。重付け処理部438は、「最初の文字についてのベクトル方向」を文字数分重み付けすることで、つまり、連続文字列は文字数分ベクトル方向に重み付けすることで、連続した文字列分のベクトル方向を特定する(S138)。以下、第1実施形態と同様である。   On the other hand, when the command is a continuous character command, the vector component processing unit 432 and the matrix component processing unit 434 specify the vector direction only for the first character of continuous characters, and pass the result to the weighting processing unit 438 (S130-YES). , S136). The weighting processing unit 438 identifies the vector direction of consecutive character strings by weighting the “vector direction of the first character” by the number of characters, that is, by weighting the continuous character string by the number of characters. (S138). Hereinafter, it is the same as that of 1st Embodiment.

<第4実施形態>
[装置構成]
図16は、第4実施形態の画像処理部350Dの構成を示す図である。ここでは、図3に示した第1実施形態(第1構成例)への適用例で示すが、第1実施形態(第2構成例)や第2・第3実施形態に対しても同様に適用し得る。
<Fourth embodiment>
[Device configuration]
FIG. 16 is a diagram illustrating a configuration of an image processing unit 350D according to the fourth embodiment. Here, an example of application to the first embodiment (first configuration example) shown in FIG. 3 is shown, but the same applies to the first embodiment (second configuration example) and the second and third embodiments. Applicable.

この第4実施形態は、印刷装置3が出力処理の指示をホスト側装置2から受け付けたときに、その指示が親展印刷などのように、即時に印刷処理を行なわずに、記憶媒体(ハードディスク装置390)を利用した「蓄積プリント」での印刷処理を行なう場合など、蓄積文書の出力時への適用例である。   In the fourth embodiment, when the printing apparatus 3 receives an output processing instruction from the host-side apparatus 2, the instruction is not immediately performed as in the case of confidential printing. 390) is an application example when outputting a stored document, such as when performing a print process using “accumulated print”.

第4実施形態の画像処理部350Dは、第1実施形態の画像処理部350A_1をベースに、文字方向記憶部600を備える点に特徴がある。印刷装置3はホスト側装置2から「蓄積プリント」の指示を受け付けると、処理データを一旦ハードディスク装置390に保持し、その後に出力指示があるまで処理を保留する。   The image processing unit 350D of the fourth embodiment is characterized in that it includes a character direction storage unit 600 based on the image processing unit 350A_1 of the first embodiment. When receiving the “stored print” instruction from the host-side apparatus 2, the printing apparatus 3 once holds the processing data in the hard disk device 390 and then holds the process until there is an output instruction.

このとき、ハードディスク装置390に保持する「処理データ」は、受け付けた印刷データ(PDLデータ)のままではなく、描画処理部410でラスタライズした状態のデータ(ラスタイメージ)にしておくのがよい。出力指示を受けてから描画展開するよりも用紙が排出されるまでの時間が短縮されるからである。   At this time, the “process data” stored in the hard disk device 390 is preferably not the received print data (PDL data) but the data (raster image) rasterized by the drawing processing unit 410. This is because the time until the sheet is discharged after receiving the output instruction is shorter than drawing development.

また、ハードディスク装置390に「処理データ」を保持するとき、文字方向特定部420はベクトル方向(特に処理対象領域の全体の方向)を特定し、文字方向記憶部600は、蓄積する処理データの処理対象領域に関連付けて、文字方向特定部420が特定したベクトル方向の情報をハードディスク装置390の対応する領域に記憶する。処理対象領域をページ全体とする場合には、ページ全体のラスタイメージと対応付けておけばよい。   When the “process data” is stored in the hard disk device 390, the character direction specifying unit 420 specifies the vector direction (particularly, the entire direction of the processing target area), and the character direction storage unit 600 processes the accumulated process data. The vector direction information specified by the character direction specifying unit 420 is stored in the corresponding area of the hard disk device 390 in association with the target area. If the processing target area is the entire page, it may be associated with the raster image of the entire page.

[再描画処理]
図17は、文字方向記憶部600を利用した文字の再描画処理を説明する図である。
[Redraw processing]
FIG. 17 is a diagram illustrating a character redrawing process using the character direction storage unit 600.

たとえば、全ページがA4でポートレイト画像の文書1と、全ページがA3でランドスケープ画像の文書2が、「蓄積プリント」での印刷指示となっている場合を想定する。   For example, it is assumed that the document 1 of the portrait image with all pages A4 and the document 2 of the landscape image with all pages A3 are instructed to be printed in “accumulated print”.

この出力処理の指示を受け付けた印刷装置3においては、描画処理部410で描画展開してラスタイメージをハードディスク装置390に記憶(蓄積)する。また、文字方向特定部420は処理対象領域の全体の方向を特定し、文字方向記憶部600は、ラスタイメージに関連付けてベクトル方向の情報を記憶する。   In the printing apparatus 3 that has received this output processing instruction, the drawing processing unit 410 performs drawing development and stores (accumulates) the raster image in the hard disk device 390. In addition, the character direction specifying unit 420 specifies the entire direction of the processing target area, and the character direction storage unit 600 stores vector direction information in association with the raster image.

その後、印刷装置3は、文書1と文書2を纏めて出力する指示を受け付けると、文書1と文書2のベクトル方向の関係に基づいて、文書1と文書2を纏めて出力する結果物として、何れの文書(ページ)においても、文字が正視した状態となるようにする。   Thereafter, when the printing apparatus 3 receives an instruction to output the document 1 and the document 2 together, as a result of outputting the document 1 and the document 2 together based on the relationship between the vector directions of the document 1 and the document 2, In any document (page), the characters are viewed in a straight line.

[処理手順:第4実施形態]
図18は、第4実施形態の画像処理部350Dの全体動作を説明するフローチャートである。
[Processing Procedure: Fourth Embodiment]
FIG. 18 is a flowchart for explaining the overall operation of the image processing unit 350D of the fourth embodiment.

第4実施形態では、「蓄積プリント」での印刷指示の場合に、処理対象領域の全体の方向を特定し、処理データ(ラスタイメージ)に関連付けてベクトル方向の情報を記憶しておき、その後の出力指示を受けたときに、ベクトル方向の情報を活用する点が第1実施形態と異なる。または、全ての印刷文書について一定期間はラスタイメージをハードディスク装置390に保存しておき、再出力の指示を受けたときに、ベクトル方向の情報を活用する点が第1実施形態と異なる。その他は、第1実施形態と同様である。以下では、「蓄積プリント」の場合を例に説明する。   In the fourth embodiment, in the case of a print instruction for “accumulation print”, the entire direction of the processing target area is specified, and information on the vector direction is stored in association with the processing data (raster image). It differs from the first embodiment in that vector direction information is utilized when an output instruction is received. Alternatively, it differs from the first embodiment in that raster images are stored in the hard disk device 390 for a certain period of time for all printed documents, and vector direction information is utilized when a re-output instruction is received. Others are the same as in the first embodiment. Hereinafter, the case of “accumulated print” will be described as an example.

第4実施形態では、描画処理部410が該当ページを描画処理した後には(S170)、印刷制御部370は、「蓄積プリント」での印刷指示であるか否かを判定する(S172)。「蓄積プリント」での印刷指示でなければ、普通通りに印刷制御部370は、即時に用紙への印刷処理を指示する(S172−NO)。   In the fourth embodiment, after the rendering processing unit 410 performs rendering processing on the corresponding page (S170), the print control unit 370 determines whether the print instruction is “accumulated print” (S172). If the print instruction is not “accumulated print”, the print control unit 370 immediately instructs a print process on paper as usual (S172—NO).

「蓄積プリント」での印刷指示であれば、印刷制御部370は、文字方向記憶部600に対して文字方向特定部420の処理結果を描画処理部410の処理結果に関連付けて記憶するように指示する(S172−YES)。この指示を受け付けた文字方向記憶部600は、文字方向特定部420が特定した処理対象領域の全体の方向の情報を、描画処理部410が生成したラスタイメージに関連付けて記憶する(S174)。描画処理部410は、生成したラスタイメージをハードディスク装置390に記憶(蓄積)する(S186)。   If the print instruction is “accumulated print”, the print control unit 370 instructs the character direction storage unit 600 to store the processing result of the character direction specifying unit 420 in association with the processing result of the drawing processing unit 410. (S172-YES). Upon receiving this instruction, the character direction storage unit 600 stores information on the entire direction of the processing target area specified by the character direction specifying unit 420 in association with the raster image generated by the drawing processing unit 410 (S174). The drawing processing unit 410 stores (accumulates) the generated raster image in the hard disk device 390 (S186).

印刷制御部370は、ハードディスク装置390に保存してある複数の文書を纏めて出力する指示を受け付けると(S190−YES)、文字方向記憶部600に保存してある各文書のベクトル方向の関係に基づいて、第1実施形態のステップS150〜S152と同様の処理を行なうことで、各ページの文字の描画方向が揃うように、具体的には、各文書を纏めて出力する結果物として何れの文書(ページ)においても文字が正視した状態となるようにする(S192)。   When the print control unit 370 receives an instruction to collectively output a plurality of documents stored in the hard disk device 390 (S190-YES), the print control unit 370 determines the relationship between the vector directions of the documents stored in the character direction storage unit 600. Based on the same processing as in steps S150 to S152 of the first embodiment, specifically, as a result of collectively outputting each document, any result can be obtained so that the drawing directions of characters on each page are aligned. Even in the document (page), the characters are viewed in a straight line (S192).

このように、第4実施形態の仕組みでは、第1実施形態の仕組みが、「蓄積プリント」にける出力処理の前処理として適用される。その出力処理時の向合わせに、第1実施形態の仕組みが活用される。各文書のベクトル方向の特定処理は文書の処理データ(ラスタイメージ)を保存する過程で済んでいるので、文書のベクトル方向の特定するための前処理の処理速度の影響がそれ程求められない。   As described above, in the mechanism of the fourth embodiment, the mechanism of the first embodiment is applied as a pre-process of the output process in “accumulation print”. The mechanism of the first embodiment is used for matching at the time of output processing. Since the processing for specifying the vector direction of each document is completed in the process of storing the processing data (raster image) of the document, the influence of the processing speed of the preprocessing for specifying the vector direction of the document is not so much required.

<第5実施形態>
[装置構成]
図19〜図19Aは、第5実施形態の画像処理部350Eを説明する図である。ここで、図19は第1例の画像処理部350E_1の構成を示し、図19Aは第2例の画像処理部350E_2の構成を示す。ここでは、図3に示した第1実施形態(第1構成例)への適用例で示すが、第1実施形態(第2構成例)や第2〜第4実施形態に対しても同様に適用し得る。
<Fifth Embodiment>
[Device configuration]
19 to 19A are diagrams illustrating an image processing unit 350E according to the fifth embodiment. Here, FIG. 19 shows the configuration of the image processor 350E_1 of the first example, and FIG. 19A shows the configuration of the image processor 350E_2 of the second example. Here, an example of application to the first embodiment (first configuration example) shown in FIG. 3 is shown, but the same applies to the first embodiment (second configuration example) and the second to fourth embodiments. Applicable.

第5実施形態の画像処理部350E_1,350E_2は、第1実施形態の画像処理部350A_1をベースに、文字方向指示受付部700を備える点に特徴がある。また、図19Aに示す第2例の画像処理部350E_2は、文字方向特定部420が文字描画方向比較部450を有する点が第1例の画像処理部350E_1と異なる。   The image processing units 350E_1 and 350E_2 of the fifth embodiment are characterized in that a character direction instruction receiving unit 700 is provided on the basis of the image processing unit 350A_1 of the first embodiment. Also, the image processing unit 350E_2 of the second example illustrated in FIG. 19A is different from the image processing unit 350E_1 of the first example in that the character direction specifying unit 420 includes a character drawing direction comparison unit 450.

文字描画方向比較部450は、文字方向特定部420によるベクトル方向特定処理を適用したときの各ページ(ページ全体や特定領域)の文字の描画状態とユーザ設定のままで処理したときの各ページ(ページ全体や特定領域)の文字の描画状態が一致するか否かを判定する。特に、文字描画方向比較部450は、ページ全体や特定領域の文字の描画方向がページ間で揃うか否かを判定する。好ましくは、画像処理部350E_2は、文字方向記憶部600と同様の文字方向記憶部452を備えるものとするとよい。   The character drawing direction comparison unit 450 applies the character drawing state of each page (entire page or specific area) when the vector direction specifying process by the character direction specifying unit 420 is applied and each page when processing is performed according to the user settings ( It is determined whether or not the character drawing states of the entire page and the specific area match. In particular, the character drawing direction comparison unit 450 determines whether or not the drawing direction of characters in the entire page or a specific area is uniform between pages. Preferably, the image processing unit 350E_2 includes a character direction storage unit 452 similar to the character direction storage unit 600.

第5実施形態は、ホスト側装置2から印刷装置3へ送信される印刷データに「文字方向」を特定する情報が添付される場合への適用例である。文字方向指示受付部700は、印刷データに含まれる「文字方向」に関するユーザ設定を受け付け、その情報を描画処理部410と文字方向特定部420に通知する。文字方向特定部420は、「文字方向」に関するユーザ設定の有無に応じて処理を切り替える。   The fifth embodiment is an application example in the case where information specifying “character direction” is attached to print data transmitted from the host-side device 2 to the printing device 3. The character direction instruction accepting unit 700 accepts user settings relating to “character direction” included in the print data, and notifies the drawing processing unit 410 and the character direction specifying unit 420 of the information. The character direction identification unit 420 switches processing according to the presence / absence of a user setting related to “character direction”.

たとえば、プリンタドライバで「文字方向」に関するユーザ設定がある場合にも、第1実施形態を適用すると、ユーザ設定の「文字方向」に関わらず、各ページの文字が正視した状態となるように処理してしまう。このことは、ユーザ設定の「文字方向」の指定が誤っていた場合でも、確実に各ページの文字が正視した状態となる反面、ユーザが意図的に「文字方向」を「正視した状態」とは異なるように指定しているときには、実際にはユーザの意図しない向きに処理されることになる。   For example, even when there is a user setting related to “character direction” in the printer driver, if the first embodiment is applied, processing is performed so that characters on each page are viewed straight regardless of the “character direction” of the user setting. Resulting in. This means that even if the “text direction” setting in the user settings is incorrect, the characters on each page are surely viewed straight, while the user intentionally changes the “text direction” to “front view”. Are specified in different directions, they are actually processed in a direction not intended by the user.

第5実施形態は、この点を考慮して、「文字方向」に関してユーザ設定がある場合には、その指示に従う方を優先して印刷処理を行なうか(第1例の画像処理部350E_1の場合)、または、第1実施形態を適用した結果の「文字方向」と異なるときには確認を求めてから印刷処理を行なう(第2例の画像処理部350E_2の場合)。   In the fifth embodiment, in consideration of this point, when there is a user setting regarding “character direction”, the printing process is prioritized according to the instruction (in the case of the image processing unit 350E_1 in the first example) ) Or, when the result of applying the first embodiment is different from the “character direction”, the print processing is performed after obtaining confirmation (in the case of the image processing unit 350E_2 in the second example).

[文字描画方向比較処理]
図19Bは、文字描画方向比較部450の動作を説明する図である。文字方向特定部420によるベクトル方向特定処理を適用したときの出力結果物の文字の描画状態は、必ず、何れのページでも文字が正視した状態で揃う。これに対して、ユーザ設定のままで処理したときの出力結果物の文字の描画状態は、印刷装置3が備える描画処理部410の描画処理や用紙サイズおよび搬送態様(横方向給紙か縦方向給紙)や、裏面排出(裏返しての排出)、片面/両面の相違、フィニッシング(後処理)の有無などの扱い方によって、様々なことが起こり得る。図2に示した状態と同様の図19B(1),(2)に示すようにページ間で文字の描画方向が揃わないこともあるし、図19B(3)に示すように、文字の描画方向が揃っているけれども文字が倒立した状態で揃って排出されることもある。
[Character drawing direction comparison processing]
FIG. 19B is a diagram for explaining the operation of the character drawing direction comparison unit 450. When the vector direction specifying process by the character direction specifying unit 420 is applied, the character drawing state of the output result is always aligned in a state where the characters are viewed from any page. On the other hand, the drawing state of the characters of the output result when the processing is performed with the user setting is the drawing processing of the drawing processing unit 410 included in the printing apparatus 3, the paper size, and the conveyance mode (horizontal paper feeding or vertical direction). Various types of things can occur depending on how to handle such as (paper feeding), back side discharge (reverse discharge), single / double side difference, and finishing (post-processing). As shown in FIGS. 19B (1) and (2) similar to the state shown in FIG. 2, the drawing direction of characters may not be aligned between pages, and as shown in FIG. 19B (3) Although the directions are aligned, the characters may be ejected in an inverted state.

文字描画方向比較部450は、ユーザ設定のままで処理したときのページ全体や特定領域の文字の描画方向がページ間で揃うか否かを判定する。ページ間で文字の描画方向に不一致が発生するときには、文字方向特定部420による処理結果と不一致が発生すると判定してよい。したがって、文字描画方向比較部450は、文字回転判定部440による「前ページの向きと同じか否か」の判定処理結果を利用してよい。具体的には、文字描画方向比較部450は、ページ間で文字の描画方向が一致しないページがあるときには「不一致」と判定してよい。   The character drawing direction comparison unit 450 determines whether or not the drawing direction of the entire page or the character in the specific area is aligned between pages when processing is performed with the user setting. When a mismatch occurs in the character drawing direction between pages, it may be determined that a mismatch occurs with the processing result by the character direction specifying unit 420. Therefore, the character drawing direction comparison unit 450 may use the determination processing result “whether it is the same as the direction of the previous page” by the character rotation determination unit 440. Specifically, the character drawing direction comparison unit 450 may determine “mismatch” when there is a page in which the character drawing direction does not match between pages.

ユーザ設定のままで処理したときのページ全体や特定領域の文字の描画方向が全てのページで文字を逆視した状態のときは、実際には、文字方向特定部420による処理結果と違うが、「不一致」とは見なさない。本実施形態の仕組みは、ページ間の文字の描画方向が一致しないときに一致するように回転処理を行なうことを技術思想とするものであり、ページ間の文字の描画方向が逆視で一致しているときには、回転処理を行なうことは必須でないからである。   When the processing is performed with the user settings, the entire page or the drawing direction of the character in the specific area is in a state where the characters are viewed backwards on all pages. Not considered “mismatch”. The mechanism of this embodiment is based on the technical idea that the rotation process is performed so that the character drawing directions between pages do not match, and the character drawing directions between pages match in reverse view. This is because it is not essential to perform the rotation process.

文字描画方向比較部450は、ユーザ設定での処理結果と文字方向特定部420による処理結果との間に「不一致」があると判定したときには、その旨の情報をホスト側装置2側に送りユーザに通知する。このとき、双方の描画状態の模式図を比較して表示する仕組みを採るとよい。   When the character drawing direction comparison unit 450 determines that there is a “mismatch” between the processing result of the user setting and the processing result of the character direction identification unit 420, the character drawing direction comparison unit 450 sends information to that effect to the host side device 2 side. Notify At this time, a mechanism for comparing and displaying schematic diagrams of both drawing states may be employed.

後に、第1実施形態のベクトル方向特定処理を適用して処理する方を選択されたときに、これまでの文字方向特定部420での一連の処理を無駄にしないように、文字方向記憶部452は、第4実施形態の文字方向記憶部600と同様に、文字方向特定部420が特定した処理対象領域の全体の方向の情報を印刷データのページに関連付けて記憶するのがよい。   Later, when one of the processings by applying the vector direction specifying process of the first embodiment is selected, the character direction storage unit 452 does not waste a series of processes in the character direction specifying unit 420 so far. In the same manner as the character direction storage unit 600 of the fourth embodiment, it is preferable to store information on the entire direction of the processing target area specified by the character direction specifying unit 420 in association with the page of the print data.

[処理手順:第5実施形態(第1例)]
図20は、第5実施形態の画像処理部350Eの全体動作を説明するフローチャート(第1例)である。ここで、図20に示す第1例は、「文字方向」に関してユーザ設定がある場合には、その指示に従う方を優先する形態である。図20Aに示す第2例は、「文字方向」に関してユーザ設定がある場合において、その指示のままで処理したときの出力結果物の文字の描画状態が第1実施形態のベクトル方向特定処理を適用した結果の「文字方向」と異なるときには確認を求めてから印刷処理を行なう形態である。
[Processing Procedure: Fifth Embodiment (First Example)]
FIG. 20 is a flowchart (first example) illustrating the overall operation of the image processing unit 350E according to the fifth embodiment. Here, in the first example shown in FIG. 20, when there is a user setting regarding “character direction”, priority is given to the direction in accordance with the instruction. In the second example shown in FIG. 20A, when there is a user setting regarding “character direction”, the character drawing state of the output result when processing is performed with the instruction applied, the vector direction specifying process of the first embodiment is applied. When the result is different from the “character direction”, the print processing is performed after asking for confirmation.

第5実施形態は、「文字方向」に関するユーザ設定の有無に応じて処理を切り替える点が第1実施形態と異なる。その他は、第1実施形態と同様である。特に、第5実施形態(第1例)では、ユーザ設定がある場合にはその指示に従う点が後述の第2例と異なる。   The fifth embodiment is different from the first embodiment in that processing is switched according to the presence / absence of a user setting relating to “character direction”. Others are the same as in the first embodiment. In particular, the fifth embodiment (first example) differs from the second example described later in that the user setting is followed when there is a user setting.

このため、第5実施形態(第1例)では、文字方向指示受付部700は、印刷データに、「文字方向」に関してのユーザ設定があるか否かを判定する(S104)。ユーザ設定があるときには(S104−YES)、文字方向指示受付部700は、その設定情報を抽出して描画処理部410に渡すとともに文字方向特定部420に対しては第1実施形態のベクトル方向特定処理(S110〜S144まで)を禁止させる。文字回転判定部440は、ユーザ設定に従って、回転の要否を判定する(S150)。ユーザ設定がないときには、文字方向指示受付部700は、第1実施形態のベクトル方向特定処理を許可する(S104−NO)。   For this reason, in the fifth embodiment (first example), the character direction instruction receiving unit 700 determines whether or not there is a user setting regarding “character direction” in the print data (S104). When there is a user setting (S104-YES), the character direction instruction receiving unit 700 extracts the setting information and passes it to the drawing processing unit 410, and the character direction specifying unit 420 determines the vector direction of the first embodiment. Processing (up to S110 to S144) is prohibited. The character rotation determination unit 440 determines whether or not rotation is necessary according to the user setting (S150). When there is no user setting, the character direction instruction receiving unit 700 permits the vector direction specifying process of the first embodiment (S104—NO).

このように、第5実施形態(第1例)では、ホスト側装置2(クライアント)側で文字の天の向きが判別・指定できる場合は、第1実施形態のベクトル方向特定処理をスキップする。実際の原稿の描画向きがクライアント(ユーザ)側で正確に判断できているか否かは別として、ユーザが指定した「意図」に沿う状態の結果物が得られる。   As described above, in the fifth embodiment (first example), when the host device 2 (client) side can determine and designate the direction of the top of the character, the vector direction specifying process of the first embodiment is skipped. Regardless of whether or not the actual document drawing direction can be accurately determined on the client (user) side, a result in a state in accordance with the “intention” designated by the user is obtained.

[処理手順:第5実施形態(第2例)]
図20Aは、第5実施形態の画像処理部350Eの全体動作を説明するフローチャート(第2例)である。ここで、図20Aに示す第2例は、「文字方向」に関してユーザ設定がある場合において、その指示のままで処理したときの出力結果物の文字の描画状態が第1実施形態を適用した結果の「文字方向」と異なるときには確認を求めてから印刷処理を行なう形態である。
[Processing procedure: fifth embodiment (second example)]
FIG. 20A is a flowchart (second example) illustrating the overall operation of the image processing unit 350E of the fifth embodiment. Here, in the second example shown in FIG. 20A, when there is a user setting regarding “character direction”, the result of applying the first embodiment is the character drawing state of the output result when processing is performed with the instruction as it is. When the character direction is different from the “character direction”, the print processing is performed after confirmation is requested.

第5実施形態(第2例)では、ユーザ設定がある場合にも、第1実施形態のベクトル方向特定処理を実行し、そのときの出力結果物の文字の描画状態とユーザ設定のままで処理したときの出力結果物の文字の描画状態が一致するか否かを判定し、不一致のときにはユーザ確認を行なってから印刷処理を行なう。   In the fifth embodiment (second example), even when there is a user setting, the vector direction specifying process of the first embodiment is executed, and the processing is performed with the character drawing state of the output result at that time and the user setting as it is. It is determined whether or not the drawing state of the characters of the output result at that time matches, and if they do not match, the print processing is performed after user confirmation.

このため、第5実施形態(第2例)では、文字方向特定部420での前処理(ベクトル方向特定処理)が完了したら、描画処理部410による描画処理(S170)の前に、文字方向記憶部452は、文字方向特定部420が特定した処理対象領域の全体の方向の情報を印刷データのページに関連付けて記憶する(S160)。   Therefore, in the fifth embodiment (second example), when the preprocessing (vector direction specifying process) in the character direction specifying unit 420 is completed, the character direction storage is performed before the drawing process (S170) by the drawing processing unit 410. The unit 452 stores the information on the entire direction of the processing target area specified by the character direction specifying unit 420 in association with the page of the print data (S160).

文字方向指示受付部700は、印刷データに「文字方向」に関してのユーザ設定があるか否かを判定する(S162)。文字方向指示受付部700は、ユーザ設定があるときにはその設定情報を抽出して描画処理部410に渡すとともに、文字方向特定部420の文字描画方向比較部450に対しては、そのときの出力結果物の文字の描画状態とユーザ設定のままで処理したときの出力結果物の文字の描画状態が一致するか否かの比較処理を指示する。   The character direction instruction receiving unit 700 determines whether or not there is a user setting regarding “character direction” in the print data (S162). When there is a user setting, the character direction instruction accepting unit 700 extracts the setting information and passes it to the drawing processing unit 410, and outputs the output result to the character drawing direction comparing unit 450 of the character direction specifying unit 420 at that time. A comparison process is instructed as to whether or not the drawing state of the character of the object matches the drawing state of the character of the output result when processing is performed with the user setting.

文字描画方向比較部450は、文字回転判定部440による「前ページの向きと同じか否か」の判定処理結果を利用して、ページ間で文字の描画方向が一致しないページがあるか否かを判定する(S164)。   The character drawing direction comparison unit 450 uses the determination processing result “whether or not it is the same as the direction of the previous page” by the character rotation determination unit 440 to determine whether there is a page in which the character drawing direction does not match between pages. Is determined (S164).

文字描画方向比較部450は、ユーザ設定での処理結果と文字方向特定部420による処理結果とが「一致」していると判定したときには(S164−YES)そのまま処理を継続させる。文字描画方向比較部450は、ユーザ設定での処理結果と文字方向特定部420による処理結果との間に「不一致」があると判定したときには(S164−NO)、その旨の情報をホスト側装置2側に送りユーザに通知し、何れで出力処理を実行するかの指示を待つ(S166)。   When the character drawing direction comparison unit 450 determines that the processing result of the user setting and the processing result of the character direction identification unit 420 are “match” (S164—YES), the processing is continued. When the character drawing direction comparison unit 450 determines that there is a “mismatch” between the processing result of the user setting and the processing result of the character direction identification unit 420 (S164—NO), the information to that effect is displayed on the host side device. 2 is notified to the user, and an instruction as to which output process is executed is waited for (S166).

印刷制御部370は、ユーザ設定優先であれば(S166−YES)、つまりユーザ設定での処理の指示を受け付けたときには、ユーザ設定に従って印刷処理を行なうように制御する(S168)。印刷制御部370は、第1実施形態のベクトル方向特定処理を適用した処理の指示を受け付けたときには(S166−NO)、文字描画方向比較部450の文字方向記憶部452に保存してある各文書のベクトル方向の関係に基づいて、ステップS150〜S152と同様の処理を行なうことで、結果物として何れの文書(ページ)においても文字が正視した状態となるようにする(S169)。   If the user setting is prioritized (S166-YES), that is, if an instruction for processing in the user setting is accepted, the print control unit 370 controls to perform the printing process according to the user setting (S168). When the print control unit 370 receives an instruction for processing to which the vector direction specifying processing of the first embodiment is applied (S166-NO), each document stored in the character direction storage unit 452 of the character drawing direction comparison unit 450 Based on the relationship between the vector directions, the same processing as in steps S150 to S152 is performed, so that the character is viewed in any document (page) as a result (S169).

ステップS166−YES,S168の系統を通る場合には、第5実施形態(第1例)と同様になる。一方、ステップS166−NO,S169の系統を通る場合には、ユーザ設定の「文字方向」の指定が誤っていた場合でも、確実に各ページの文字が正視した状態となる。ユーザが意図的に「文字方向」を「正視した状態」とは異なるように指定するときには、この系統を通ることをユーザは選択せずステップS166−YES,S168の系統を通ることを選択するであろうから、実際にはユーザの意図しない向きに処理されるという不都合は解消されると考えてよい。   When passing through the system of steps S166-YES and S168, it is the same as in the fifth embodiment (first example). On the other hand, when passing through the system of steps S166-NO and S169, even if the user-specified “character direction” is specified incorrectly, the characters on each page are surely viewed. When the user intentionally designates the “text direction” to be different from the “right-viewed state”, the user does not select to go through this system, but selects to go through the system of steps S166-YES and S168. Therefore, it may be considered that the inconvenience of processing in the direction not intended by the user is actually eliminated.

<電子計算機による構成>
図21は、印刷装置3のベクトル方向特定処理およびページ回転処理を行なう構成の他の構成例を示すブロック図である。ここでは、パーソナルコンピュータなどの電子計算機を利用して、ソフトウェアを実行するマイクロプロセッサなどから構築される印刷装置3のベクトル方向特定処理および文字回転制御の機構のより現実的なハードウェア構成を示している。
<Configuration by electronic computer>
FIG. 21 is a block diagram illustrating another configuration example of the configuration for performing the vector direction specifying process and the page rotation process of the printing apparatus 3. Here, a more realistic hardware configuration of a vector direction specifying process and a character rotation control mechanism of the printing apparatus 3 constructed from a microprocessor or the like that executes software using an electronic computer such as a personal computer is shown. Yes.

すなわち、本実施形態において、ベクトル方向特定処理およびページ回転処理を行なう印刷装置3の制御機構の仕組みは、ハードウェア処理回路により構成することに限らず、その機能を実現するプログラムコードに基づき電子計算機(コンピュータ)を用いてソフトウェア的に実現される。よって、本実施形態に係る仕組みを、電子計算機(コンピュータ)を用いてソフトウェアで実現するために好適なプログラムあるいはこのプログラムを格納したコンピュータ読取可能な記憶媒体が発明として抽出される。ソフトウェアにより実行させる仕組みとすることで、ハードウェアの変更を伴うことなく、処理手順などが容易に変更されることとなる。   That is, in the present embodiment, the mechanism of the control mechanism of the printing apparatus 3 that performs the vector direction specifying process and the page rotation process is not limited to being configured by a hardware processing circuit, but based on a program code that realizes the function. It is realized by software using (computer). Therefore, a program suitable for realizing the mechanism according to the present embodiment by software using an electronic computer (computer) or a computer-readable storage medium storing this program is extracted as an invention. By adopting a mechanism that is executed by software, the processing procedure and the like can be easily changed without changing hardware.

前述の一連のベクトル方向特定処理およびページ回転処理はハードウェアまたはソフトウェアの単独に限らずその両者の複合構成によっても実現され得る。ソフトウェアによる処理を実行する場合、処理手順を示したプログラムを、ハードウェアに組み込まれたコンピュータ内の記憶媒体に組み込んで(インストールして)実行させたり、各種処理が実行可能な汎用の電子計算機にプログラムを組み込んで実行させる。   The series of vector direction specifying processing and page rotation processing described above can be realized not only by hardware or software alone but also by a combined configuration of both. When executing processing by software, a program showing the processing procedure is installed (installed) in a storage medium in a computer embedded in hardware and executed, or a general-purpose electronic computer capable of executing various types of processing is used. Incorporate and execute the program.

ベクトル方向特定処理機能およびページ回転処理機能をコンピュータに実行させるプログラムは、CD−ROMなどの記録媒体を通じて配布される。また、このプログラムは、CD−ROMではなくFDに格納されてもよい。また、MOドライブを設け、MOに前記プログラムを格納してもよく、またフラッシュメモリなどの不揮発性の半導体メモリカードなど、その他の記録媒体にプログラムを格納してもよい。さらに、ソフトウェアを構成するプログラムは、記録媒体を介して提供されることに限らず、有線または無線などの通信網を介して提供されてもよい。たとえば、他のサーバなどからインターネットなどのネットワークを経由してプログラムをダウンロードして取得したり、更新したりしてもよい。さらに、ベクトル方向特定処理およびページ回転処理を行なう機能を実現するプログラムコードを記述したファイルとしてプログラムが提供されるが、この場合、一括のプログラムファイルとして提供されることに限らず、コンピュータで構成されるシステムのハードウェア構成に応じて、個別のプログラムモジュールとして提供されてもよい。   A program that causes a computer to execute the vector direction specifying processing function and the page rotation processing function is distributed through a recording medium such as a CD-ROM. Further, this program may be stored in the FD instead of the CD-ROM. In addition, an MO drive may be provided to store the program in the MO, or the program may be stored in another recording medium such as a nonvolatile semiconductor memory card such as a flash memory. Furthermore, the program constituting the software is not limited to being provided via a recording medium, and may be provided via a wired or wireless communication network. For example, the program may be downloaded and acquired from another server or the like via a network such as the Internet or updated. Further, the program is provided as a file describing a program code for realizing the function of performing the vector direction specifying process and the page rotation process. In this case, the program is not limited to being provided as a batch program file, and is configured by a computer. Depending on the hardware configuration of the system, it may be provided as an individual program module.

たとえば、コンピュータシステム900は、中央制御部910、記憶部912、操作部914、図示を割愛したその他の周辺部材を有している。   For example, the computer system 900 includes a central control unit 910, a storage unit 912, an operation unit 914, and other peripheral members omitted from illustration.

中央制御部910は、CPU(Central Processing Unit )やマイクロプロセッサ(microprocessor)で構成される。この中央制御部910は、コンピュータが行なう演算と制御の機能を超小型の集積回路に集約させたCPUを代表例とする電子計算機の中枢をなすものと同様のものである。   The central control unit 910 includes a CPU (Central Processing Unit) and a microprocessor. The central control unit 910 is similar to the central control unit 910 that forms the center of an electronic computer whose representative example is a CPU in which functions of computation and control performed by a computer are integrated into an ultra-small integrated circuit.

記憶部912は、読出専用の記憶部であるROM(Read Only Memory)、または随時読出し・書込みが可能なメモリであるRAMなどを具備する。ROMにはベクトル方向特定処理機能用およびページ回転処理機能用の制御プログラムなどが格納される。操作部914は、利用者による操作を受け付けるためのユーザインタフェースである。   The storage unit 912 includes a ROM (Read Only Memory) that is a read-only storage unit, or a RAM that is a memory that can be read and written as needed. The ROM stores control programs for the vector direction specifying processing function and the page rotation processing function. The operation unit 914 is a user interface for accepting an operation by a user.

なお、コンピュータシステム900の制御系としては、メモリカードなどの図示を割愛した外部記録媒体を挿脱可能に構成し、またインターネットなどの通信網との接続が可能に構成するとよい。このためには、制御系は、中央制御部910や記憶部912の他に、可搬型の記録媒体の情報を読み込むメモリ読出部920や外部との通信インタフェース手段としての通信I/F922を備えるようにするとよい。メモリ読出部920を備えることで外部記録媒体からプログラムのインストールや更新に対応する。通信I/F922を備えることで、通信網を介しプログラムのインストールや更新に対応する。基本的なベクトル方向特定処理およびページ回転処理の仕組みは前記実施形態と同様である。   The control system of the computer system 900 may be configured such that an external recording medium such as a memory card that is not shown can be inserted and removed, and can be connected to a communication network such as the Internet. For this purpose, the control system includes a memory reading unit 920 that reads information on a portable recording medium and a communication I / F 922 as a communication interface unit with the outside in addition to the central control unit 910 and the storage unit 912. It is good to make it. By providing the memory reading unit 920, the program can be installed and updated from an external recording medium. By providing the communication I / F 922, the program can be installed or updated via the communication network. The basic vector direction specifying process and page rotation process mechanism are the same as in the above embodiment.

なお、ここでは、印刷装置3の制御機構をコンピュータにてソフトウェア上で実現する構成例で説明しているが、本実施形態のベクトル方向特定処理およびページ回転処理を実現するための印刷装置3の制御機構の各部(機能ブロックを含む)の具体的手段は、ハードウェア、ソフトウェア、通信手段、これらの組み合わせ、その他の手段を用いることができ、このこと自体は当業者において自明である。また、機能ブロック同士が複合して1つの機能ブロックに集約されてもよい。また、コンピュータにプログラム処理を実行させるソフトウェアは、組合せの態様に応じて分散してインストールされる。   Here, the configuration example in which the control mechanism of the printing apparatus 3 is realized on software by a computer has been described. Specific means for each part (including functional blocks) of the control mechanism may be hardware, software, communication means, a combination thereof, or other means, which is obvious to those skilled in the art. Moreover, the functional blocks may be combined and integrated into one functional block. Also, software that causes a computer to execute program processing is installed in a distributed manner according to the combination.

以上、本発明について実施形態を用いて説明したが、本発明の技術的範囲は前記実施形態に記載の範囲には限定されない。発明の要旨を逸脱しない範囲で前記実施形態に多様な変更または改良を加えることができ、そのような変更または改良を加えた形態も本発明の技術的範囲に含まれる。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. Various changes or improvements can be added to the above-described embodiment without departing from the gist of the invention, and embodiments to which such changes or improvements are added are also included in the technical scope of the present invention.

また、前記の実施形態は、クレーム(請求項)に係る発明を限定するものではなく、また実施形態の中で説明されている特徴の組合せの全てが発明の解決手段に必須であるとは限らない。前述した実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜の組合せにより種々の発明を抽出できる。実施形態に示される全構成要件から幾つかの構成要件が削除されても、効果が得られる限りにおいて、この幾つかの構成要件が削除された構成が発明として抽出され得る。   Further, the above embodiments do not limit the invention according to the claims (claims), and all combinations of features described in the embodiments are not necessarily essential to the solution means of the invention. Absent. The embodiments described above include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. Even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, as long as an effect is obtained, a configuration from which these some constituent requirements are deleted can be extracted as an invention.

たとえば、前記実施形態では、ホスト側装置2からの印刷データに文字コマンドが含まれる場合には、文字コマンドを元に文字方向を特定するようにしているがこのことは必須でない。文字描画処理後や複写原稿のラスタイメージで文字方向や回転の要否を判定するように構成してもよい。この場合、ラスタイメージから文字を抽出し文字認識する公知の仕組みを利用すればよい。   For example, in the above-described embodiment, when the print data from the host-side device 2 includes a character command, the character direction is specified based on the character command, but this is not essential. It may be configured such that the character direction and the necessity of rotation are determined after the character drawing process or by the raster image of the copy original. In this case, a known mechanism for extracting characters from a raster image and recognizing the characters may be used.

前記実施形態では、印刷装置3での文字描画の場合について説明したが、これには限定されない。たとえば、PDF(Portable Document Format)フォーマットの電子文書を作成するなど、電子的な印刷文書を作成して表示出力する場合にも、前記実施形態の仕組みを適用し得る。   In the embodiment, the case of character drawing in the printing apparatus 3 has been described. However, the present invention is not limited to this. For example, the mechanism of the above-described embodiment can also be applied to a case where an electronic print document is generated and displayed and output, such as an electronic document in PDF (Portable Document Format) format.

1…印刷システム、2…ホスト側装置、3…印刷装置、310…中央演算制御処理部、312…RAM、330…インタフェース部、340…PDLデータ解釈部、350…画像処理部、370…印刷制御部、380…プリンタエンジン部、382…画像処理部、384…給紙部、386…排出部、387…後処理部、388…プリンタIF部、390…ハードディスク装置、410…描画処理部、412…回転処理部、420…文字方向特定部、422…文字コマンド取得部、430…文字ベクトル処理部、432…ベクトル成分処理部、434…マトリクス成分処理部、438…重付け処理部、440…文字回転判定部、450…文字描画方向比較部、452…文字方向記憶部、500…領域指定部、510…切替部、600…文字方向記憶部、700…文字方向指示受付部、9…伝送路   DESCRIPTION OF SYMBOLS 1 ... Printing system, 2 ... Host side apparatus, 3 ... Printing apparatus, 310 ... Central processing control processing part, 312 ... RAM, 330 ... Interface part, 340 ... PDL data interpretation part, 350 ... Image processing part, 370 ... Print control , 380... Printer engine unit, 382... Image processing unit, 384... Paper feeding unit, 386... Ejection unit, 387. Rotation processing unit 420 ... Character direction specifying unit 422 ... Character command acquisition unit 430 ... Character vector processing unit 432 ... Vector component processing unit 434 ... Matrix component processing unit 438 ... Weighting processing unit 440 ... Character rotation Determining unit, 450 ... Character drawing direction comparing unit, 452 ... Character direction storage unit, 500 ... Area specifying unit, 510 ... Switching unit, 600 ... Character direction憶部, 700 ... character direction instruction receiving section, 9 ... transmission line

Claims (9)

処理対象頁における処理対象領域ごとに、文字の描画方向を特定する文字方向特定部と、
前記文字方向特定部が特定した文字の描画方向と出力媒体の向きの関係に基づいて、処理対象頁の回転の要否を判定する文字回転判定部と、
前記文字回転判定部の判定結果に基づいて出力処理を行なう出力部と、
を備えた文字出力装置。
A character direction specifying unit for specifying a drawing direction of a character for each processing target area in the processing target page;
A character rotation determination unit that determines the necessity of rotation of the processing target page based on the relationship between the character drawing direction specified by the character direction specifying unit and the orientation of the output medium;
An output unit that performs an output process based on a determination result of the character rotation determination unit;
A character output device.
前記文字方向特定部は、前記処理対象領域内の文字の描画命令に基づいて文字座標系における文字の向きを特定することで、前記処理対象領域内の文字の描画方向を特定する
請求項1に記載の文字出力装置。
The character direction specifying unit specifies a character drawing direction in the processing target area by specifying a character orientation in a character coordinate system based on a character drawing command in the processing target area. The described character output device.
前記文字方向特定部は、前記処理対象領域内に文字が複数あるときには、前記処理対象領域内の各文字の方向の情報の総和を元に、領域全体としての文字の描画方向を特定する
請求項1に記載の文字出力装置。
The character direction specifying unit, when there are a plurality of characters in the processing target area, specifies a character drawing direction as a whole area based on a sum of information on the direction of each character in the processing target area. The character output device according to 1.
前記文字方向特定部は、前記文字の描画命令が複数の文字の連続を示しているときには、連続している複数の文字の内の何れか1つの文字の方向を特定し、その方向の情報に連続する文字数分の重付けをすることで、連続している複数の文字の全体としての描画方向を特定する
請求項1に記載の文字出力装置。
The character direction specifying unit specifies a direction of any one of a plurality of consecutive characters when the character drawing command indicates a continuation of a plurality of characters, and includes information on the direction. The character output device according to claim 1, wherein the drawing direction as a whole of a plurality of consecutive characters is specified by weighting the number of consecutive characters.
前記処理対象領域の指定を受け付ける領域指定部
を備える請求項1〜4の内の何れか一項に記載の文字出力装置。
The character output device according to any one of claims 1 to 4, further comprising: an area designation unit that receives designation of the processing target area.
前記文字方向特定部が特定した文字の方向の情報を前記処理対象領域と対応付けて記憶する文字方向記憶部を備え、
前記文字回転判定部は、前記文字方向記憶部から読み出した文字の方向の情報に基づいて、前記処理対象頁の回転の要否を判定する
請求項1〜5の内の何れか一項に記載の文字出力装置。
A character direction storage unit that stores information on the direction of the character specified by the character direction specifying unit in association with the processing target area;
The said character rotation determination part determines the necessity of rotation of the said process target page based on the information of the direction of the character read from the said character direction memory | storage part, The any one of Claims 1-5. Character output device.
前記文字回転判定部は、文字方向を特定する情報が添付されている出力指示の場合は、その添付されている文字方向に従って、処理対象頁の回転の要否を判定する
請求項1に記載の文字出力装置。
The character rotation determination unit determines whether or not it is necessary to rotate the processing target page according to the attached character direction when the output instruction is attached with information specifying the character direction. Character output device.
文字方向を特定する情報が添付されている出力指示の場合に、その添付されている文字方向に従って処理対象頁の回転の要否を判定したときの出力結果と、前記文字方向特定部が特定した文字の描画方向と出力媒体の向きの関係に基づいて処理対象頁の回転の要否を前記文字回転判定部が判定したときの出力結果を比較する文字描画方向比較部を備え、
前記文字回転判定部は、それぞれの出力結果が異なると前記文字描画方向比較部が判定しているときには、何れの出力結果を採用するかの確認指示に基づいて処理を行なう
請求項1〜6の内の何れか一項に記載に記載の文字出力装置。
In the case of an output instruction to which information specifying the character direction is attached, the output result when the necessity of rotation of the processing target page is determined according to the attached character direction and the character direction specifying unit specified A character drawing direction comparison unit that compares output results when the character rotation determination unit determines whether or not the rotation of the processing target page is necessary based on the relationship between the character drawing direction and the direction of the output medium;
The character rotation determination unit performs processing based on a confirmation instruction as to which output result is to be adopted when the character drawing direction comparison unit determines that the respective output results are different. The character output device according to any one of the above.
処理対象頁における処理対象領域ごとに、文字の描画方向を特定する文字方向特定工程と、
前記文字方向特定工程で特定した文字の描画方向と出力媒体の向きの関係に基づいて、処理対象頁の回転の要否を判定する文字回転判定工程と、
を電子計算機に実行させるプログラム。
A character direction specifying step for specifying a drawing direction of the character for each processing target area in the processing target page;
A character rotation determination step of determining whether or not the processing target page needs to be rotated based on the relationship between the character drawing direction specified in the character direction specification step and the orientation of the output medium;
A program that causes an electronic computer to execute.
JP2009055902A 2009-03-10 2009-03-10 Character output device and program Pending JP2010211439A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2009055902A JP2010211439A (en) 2009-03-10 2009-03-10 Character output device and program
US12/509,744 US8804141B2 (en) 2009-03-10 2009-07-27 Character output device, character output method and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009055902A JP2010211439A (en) 2009-03-10 2009-03-10 Character output device and program

Publications (1)

Publication Number Publication Date
JP2010211439A true JP2010211439A (en) 2010-09-24

Family

ID=42730465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009055902A Pending JP2010211439A (en) 2009-03-10 2009-03-10 Character output device and program

Country Status (2)

Country Link
US (1) US8804141B2 (en)
JP (1) JP2010211439A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5370698B2 (en) * 2011-06-16 2013-12-18 コニカミノルタ株式会社 Image forming system and post-processing method using the same
JP6465399B2 (en) * 2015-03-19 2019-02-06 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, and program
JP2017151493A (en) * 2016-02-22 2017-08-31 富士ゼロックス株式会社 Image processing device, image reading device, and program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05110814A (en) * 1991-10-17 1993-04-30 Ricoh Co Ltd Copying picture recorder
JPH08274980A (en) * 1995-04-03 1996-10-18 Canon Inc Composite image processing unit
JP2001027865A (en) * 1999-07-14 2001-01-30 Canon Inc Image forming device, image forming control method and storage medium
JP2004130588A (en) * 2002-10-09 2004-04-30 Ricoh Co Ltd Image formation apparatus
JP2006014247A (en) * 2004-06-29 2006-01-12 Fuji Xerox Co Ltd Image forming apparatus, image control method and image control program
JP2006035529A (en) * 2004-07-23 2006-02-09 Ricoh Co Ltd Printer
JP2006115309A (en) * 2004-10-15 2006-04-27 Fuji Xerox Co Ltd Document processing method, device and program
JP2008179112A (en) * 2007-01-26 2008-08-07 Fuji Xerox Co Ltd Image formation device, terminal unit, image forming system and program thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6504540B1 (en) * 1995-06-19 2003-01-07 Canon Kabushiki Kaisha Method and apparatus for altering one or more attributes of one or more blocks of image data in a document
JP3684036B2 (en) * 1997-07-03 2005-08-17 キヤノン株式会社 Image processing apparatus and image processing method
JP3840257B2 (en) 1998-04-06 2006-11-01 キヤノン株式会社 Image forming method, image forming system, image forming apparatus, and recording medium
US6336011B1 (en) 1998-04-06 2002-01-01 Canon Kabushiki Kaisha Sheet binding system for an image forming apparatus
JP3951791B2 (en) * 2002-04-30 2007-08-01 コニカミノルタホールディングス株式会社 Image forming apparatus and image forming method
US7450268B2 (en) * 2004-07-02 2008-11-11 Hewlett-Packard Development Company, L.P. Image reproduction
JP4766657B2 (en) * 2005-05-02 2011-09-07 キヤノン株式会社 Image processing apparatus, control method therefor, and program
JP4856925B2 (en) * 2005-10-07 2012-01-18 株式会社リコー Image processing apparatus, image processing method, and image processing program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05110814A (en) * 1991-10-17 1993-04-30 Ricoh Co Ltd Copying picture recorder
JPH08274980A (en) * 1995-04-03 1996-10-18 Canon Inc Composite image processing unit
JP2001027865A (en) * 1999-07-14 2001-01-30 Canon Inc Image forming device, image forming control method and storage medium
JP2004130588A (en) * 2002-10-09 2004-04-30 Ricoh Co Ltd Image formation apparatus
JP2006014247A (en) * 2004-06-29 2006-01-12 Fuji Xerox Co Ltd Image forming apparatus, image control method and image control program
JP2006035529A (en) * 2004-07-23 2006-02-09 Ricoh Co Ltd Printer
JP2006115309A (en) * 2004-10-15 2006-04-27 Fuji Xerox Co Ltd Document processing method, device and program
JP2008179112A (en) * 2007-01-26 2008-08-07 Fuji Xerox Co Ltd Image formation device, terminal unit, image forming system and program thereof

Also Published As

Publication number Publication date
US20100231953A1 (en) 2010-09-16
US8804141B2 (en) 2014-08-12

Similar Documents

Publication Publication Date Title
JP4762612B2 (en) Image processing system and image processing method
US7551299B2 (en) Method and apparatus for handling different print data formats
US10019659B2 (en) Image forming system, data processing apparatus, image forming apparatus, recording medium and display method
JP6051722B2 (en) Program and information processing apparatus
JP2009273025A (en) Image processing apparatus, image processing method, image processing program, and recording medium with the same recorded
EP2278449A2 (en) Apparatus, method, system and storage medium for setting print status
JP6671989B2 (en) Printing apparatus for rotating image data, printing method, and program.
JP6844474B2 (en) Printer driver and information processing device
US9256813B2 (en) Automatic print job ticket settings based on raster images of previously printed document
US20200089443A1 (en) Printing system, information processing apparatus, method of controlling same, storage medium, external apparatus, method of controlling same, and storage medium
US9924051B2 (en) Image forming apparatus, method for controlling image forming apparatus, and storage medium for performing printing based on collection settings
JP2009048096A (en) Image processing apparatus, image forming apparatus, processing condition setting method and processing condition setting program
JP2010211439A (en) Character output device and program
US8773692B2 (en) Printing control apparatus and printing control method for document layout processing
US20160269593A1 (en) Document production system having automatic adjustment of content to fit the page margin of a pre-printed media
JP6917285B2 (en) Image forming device
US8259313B2 (en) Image processing apparatus, method, and computer-readable medium storing the program thereof
US10310788B2 (en) Control method for generating data used for printing and information processing apparatus
US10140558B2 (en) Print control system, print control apparatus, and program
US8456703B2 (en) Information processing apparatus for printing print job information
JP2015130072A (en) Information processing apparatus, print control method, and program
JP2023158554A (en) Character image quality adjustment system, character image quality adjustment device, and control method and program therefor
JP6372365B2 (en) Printing instruction apparatus, printing system, and program
JP2006087042A (en) Image processing apparatus
JP5265042B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium for recording the same

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110314

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110720