JP2006099400A - Document processing system - Google Patents

Document processing system Download PDF

Info

Publication number
JP2006099400A
JP2006099400A JP2004284347A JP2004284347A JP2006099400A JP 2006099400 A JP2006099400 A JP 2006099400A JP 2004284347 A JP2004284347 A JP 2004284347A JP 2004284347 A JP2004284347 A JP 2004284347A JP 2006099400 A JP2006099400 A JP 2006099400A
Authority
JP
Japan
Prior art keywords
text
document
page
book
file
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.)
Withdrawn
Application number
JP2004284347A
Other languages
Japanese (ja)
Inventor
Kazufumi Kobashi
和文 小橋
Satoshi Nishikawa
智 西川
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2004284347A priority Critical patent/JP2006099400A/en
Publication of JP2006099400A publication Critical patent/JP2006099400A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that since a text object recognized as the object to be edited is likely to be recognized as one object in the middle of words, and text data located at a remote position on an original is likely to be recognized as one object when text data are edited, the edit operation takes a time and effort. <P>SOLUTION: In this system where display and printing and bookbinding are instructed to two types pages of page constituted of an image read from a scanner and page constituted of electronic originals, an original editting means for correcting each plotting data in an original taken in this system recognizes text data plotted on the original according to predetermined conditions. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はパーソナルコンピュータなどの情報処理装置、スキャナおよびプリンタなどから生成された電子データを編集する文書処理方法に関するものである。   The present invention relates to a document processing method for editing electronic data generated from an information processing apparatus such as a personal computer, a scanner and a printer.

従来、紙の文書をスキャナで読み取り、読み取った画像データを画像編集手段で修正加工し、両面やステイプル、パンチ穴等の加工指示を付加して印刷装置より出力することが一般的に行われている。   Conventionally, it has been generally performed that a paper document is read by a scanner, the read image data is corrected by an image editing unit, and processing instructions such as double-sided, stapling, and punch holes are added and output from a printing apparatus. Yes.

また、PC上のアプリケーションソフトウェアで作成した文書データを、作成したアプリケーションに依存しない電子データに変換し、両面やステイプル、パンチ穴等の加工指示を付加して印刷装置より出力することが一般的に行われている。   Also, document data created by application software on a PC is converted into electronic data that does not depend on the created application, and processing instructions such as double-sided, stapling, and punch holes are added and output from the printing apparatus. Has been done.

さらに、画像データのページと電子データのページを組み合わせて電子原稿として保存し、両面やステイプル、パンチ穴等の加工指示を付加して印刷装置より出力することも行われている。   Further, a page of image data and a page of electronic data are combined and stored as an electronic document, and processing instructions such as double-sided, stapling, and punch holes are added and output from a printing apparatus.

複数のアプリケーションソフトウェアで作成した文書データを、独自形式の電子フォーマットに変換し、描画されているデータを編集する技術は一般的に行われている。
特開2002−279353
A technique for converting document data created by a plurality of application softwares into a unique electronic format and editing the rendered data is generally performed.
JP2002-279353

しかしながら、上述した従来の技術では、テキストデータを編集する際に編集対象として認識されるテキストオブジェクトが、単語の途中で1オブジェクト、または原稿上の離れた位置に存在するテキストデータを1オブジェクトとして認識してしまうことがあり、ユーザにとって編集しづらく、編集作業に手間がかかっていた。   However, in the above-described conventional technology, a text object recognized as an editing target when editing text data is recognized as one object in the middle of a word or text data existing at a distant position on a document as one object. It was difficult for the user to edit, and it took time and effort to edit.

本発明は、上述した問題点を踏まえてなされてものであり、スキャナから読み取った画像からなるページと、電子原稿からなるページの二種類のページに対して、表示・印刷・製本指示を行うシステムで、システム内に取り込んだ原稿内の各描画データを修正可能な原稿編集手段と、前記原稿編集手段には、描画データを新規作成することも可能にしている原稿編集手段と、前記手段はユーザが選択したページを対象に起動させることが可能な原稿編集手段を有する文書処理システムにおいて、前記原稿編集手段には原稿上に描画されているテキストデータを、所定の条件に従って認識するテキストオブジェクト認識手段をもつことを特徴とする文書管理システム。   The present invention has been made in view of the above-described problems, and is a system for instructing display, printing, and bookbinding for two types of pages: an image page read from a scanner and an electronic document page. Thus, a document editing means capable of correcting each drawing data in the document captured in the system, a document editing means capable of newly creating drawing data in the document editing means, and the means In the document processing system having the document editing means that can be activated for the page selected by the user, the document editing means recognizes text data drawn on the document according to a predetermined condition. Document management system characterized by having

以上、本発明を用いることによって、原稿上のテキストデータをユーザにとって編集し易い形で、編集オブジェクトとして認識することを可能とする。   As described above, by using the present invention, text data on a document can be recognized as an edit object in a form that is easy for a user to edit.

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

<システム概要>
まず、本発明に係る文書処理システムの概要について、図1乃至図12を参照して以下に説明する。尚、この文書処理システムは、一般のアプリケーションによって作成されたデータファイルを電子原稿ファイルに変換する電子原稿ライタと、その電子原稿ファイルを編集する機能を提供する製本アプリケーションとを含み、作成されたデータを一まとめにした文書の作成及び編集を可能とし、その操作性を向上させて文書編集を効率的に行えるものである。
<System overview>
First, an outline of a document processing system according to the present invention will be described below with reference to FIGS. The document processing system includes an electronic manuscript writer that converts a data file created by a general application into an electronic manuscript file, and a bookbinding application that provides a function for editing the electronic manuscript file. It is possible to create and edit a document in which the above are integrated, improve the operability thereof, and efficiently edit the document.

<システム構成及び動作>
図1は、本実施形態の文書処理システムのソフトウェア構成を示す図である。文書処理システムは、本発明の情報処理装置に好適な実施形態であるデジタルコンピュータ101(以下、ホストコンピュータとも呼ぶ)によって実現されている。図1に示す一般アプリケーション101は、ワードプロセシングやスプレッドシート、フォトレタッチ、ドロー、あるいはペイント、プレゼンテーション、テキスト編集などの機能を提供するアプリケーションプログラムであり、OSに対する印刷機能を有している。これらのアプリケーションは、作成された文書データや画像データなどのアプリケーションデータを印刷する際に、オペレーティングシステム(OS)によって提供される所定のインタフェース(一般に、GDIと呼ばれる)を利用する。即ち、アプリケーション101は、作成したデータを印刷するために、上述のインタフェースを提供するOSの出力モジュールに対して、あらかじめ定められる、OSに依存する形式の出力コマンド(GDI関数と呼ばれる)を送信する。一方、出力コマンドを受けた出力モジュールは、その出力コマンドをプリンタ等の出力デバイスが処理可能な形式に変換して、変換されたコマンド(DDI関数と呼ばれる)を出力する。出力デバイスが処理可能な形式はデバイスの種類やメーカ、機種などによって異なるため、デバイスごとにデバイスドライバが提供されており、OSではそのデバイスドライバを利用してコマンドの変換を行い、印刷データを生成し、JL(Job Language)でくくることにより印刷ジョブが生成される。OSとしてマイクロソフト社のウインドウズ(登録商標)を利用する場合には、前述した出力モジュールとしてはGDI(Graphic Device Interface)と呼ばれるモジュールが相当する。
<System configuration and operation>
FIG. 1 is a diagram showing a software configuration of the document processing system according to the present embodiment. The document processing system is realized by a digital computer 101 (hereinafter also referred to as a host computer) which is a preferred embodiment of the information processing apparatus of the present invention. A general application 101 shown in FIG. 1 is an application program that provides functions such as word processing, spreadsheet, photo retouching, drawing, painting, presentation, and text editing, and has a printing function for the OS. These applications use a predetermined interface (generally called GDI) provided by an operating system (OS) when printing application data such as created document data and image data. That is, the application 101 transmits an OS-dependent output command (referred to as a GDI function) to the OS output module that provides the above-described interface in order to print the created data. . On the other hand, the output module that has received the output command converts the output command into a format that can be processed by an output device such as a printer, and outputs the converted command (referred to as a DDI function). Since the format that can be processed by the output device varies depending on the device type, manufacturer, model, etc., a device driver is provided for each device, and the OS uses that device driver to convert commands and generate print data. A print job is generated by enclosing with JL (Job Language). When using Microsoft Windows (registered trademark) as the OS, a module called GDI (Graphic Device Interface) corresponds to the output module described above.

電子原稿ライタ102は、上述のデバイスドライバを改良したものであり、本文書処理システム実現のために提供されるソフトウェアモジュールである。但し、電子原稿ライタ102は特定の出力デバイスを目的としておらず、詳細は後述する製本アプリケーション104やプリンタドライバ106により処理可能な形式に出力コマンドを変換する。この電子原稿ライタ102による変換後の形式(以後電子原稿形式と呼ぶ)は、ページ単位の原稿を詳細な書式をもって表現可能であれば特に問わない。実質的な標準形式のうち、例えばアドビシステムズによるPDF形式やSVG形式などが電子原稿形式として採用できる。   The electronic manuscript writer 102 is an improvement of the above-described device driver and is a software module provided for realizing the document processing system. However, the electronic document writer 102 is not intended for a specific output device, and converts the output command into a format that can be processed by the bookbinding application 104 and the printer driver 106 described later in detail. The format after conversion by the electronic document writer 102 (hereinafter referred to as an electronic document format) is not particularly limited as long as a document in units of pages can be expressed in a detailed format. Of substantial standard formats, for example, PDF format or SVG format by Adobe Systems can be adopted as the electronic document format.

一般アプリケーション101から電子原稿ライタ102を利用させる場合には、出力に使用するデバイスドライバとして電子原稿ライタ102を指定してから印刷を実行させる。但し、電子原稿ライタ102によって作成されたままの電子原稿ファイルは、電子原稿ファイルとして完全な形式を備えていない。そのため、デバイスドライバとして電子原稿ライタ102を指定するのは製本アプリケーション104であり、その管理下でアプリケーションデータの電子原稿ファイルへの変換が実行される。そして、製本アプリケーション104は電子原稿ライタ102が生成した新規の不完全な電子原稿ファイルを後述する形式を備えた電子原稿ファイルとして完成させる。以下、この点を明瞭に識別する必要がある場合、電子原稿ライタ102によって作成されたファイルを「電子原稿ファイル」と呼び、製本アプリケーション104によって構造を与えられた電子原稿ファイルを「ブックファイル」と呼ぶ。また、特に区別する必要がない場合は、アプリケーションにより生成されるドキュメントファイル、電子原稿ファイル、及びブックファイルをいずれも文書ファイル(または文書データ)と呼ぶ。   When using the electronic document writer 102 from the general application 101, the electronic document writer 102 is designated as a device driver used for output, and printing is executed. However, the electronic document file as created by the electronic document writer 102 does not have a complete format as an electronic document file. Therefore, the bookbinding application 104 designates the electronic document writer 102 as a device driver, and conversion of application data into an electronic document file is executed under the management of the bookbinding application 104. Then, the bookbinding application 104 completes the new incomplete electronic document file generated by the electronic document writer 102 as an electronic document file having a format described later. Hereinafter, when it is necessary to clearly identify this point, a file created by the electronic manuscript writer 102 is called an “electronic manuscript file”, and an electronic manuscript file given a structure by the bookbinding application 104 is called a “book file”. Call. If there is no need to distinguish between them, a document file, an electronic manuscript file, and a book file generated by an application are all referred to as a document file (or document data).

このようにデバイスドライバとして電子原稿ライタ102を指定し、一般アプリケーション101によりデータを印刷させることで、アプリケーションデータはアプリケーション101によって定義されたページ(以後論理ページあるいは原稿ページと呼ぶ)を単位とする電子原稿形式に変換され、電子原稿ファイル103としてハードディスクなどの記憶媒体に格納される。尚、ハードディスクは、本実施形態の文書処理システムを実現するコンピュータが備えているローカルドライブであっても良く、ネットワークに接続されている場合にはネットワーク上に提供されるドライブであっても良い。   In this way, by specifying the electronic document writer 102 as a device driver and printing data by the general application 101, the application data is electronic in units of pages (hereinafter referred to as logical pages or document pages) defined by the application 101. It is converted into a document format and stored as an electronic document file 103 in a storage medium such as a hard disk. The hard disk may be a local drive included in a computer that implements the document processing system of the present embodiment, or may be a drive provided on the network when connected to the network.

製本アプリケーション104は電子原稿ファイル(あるいはブックファイル)103を読み込み、それを編集するための機能を利用者に提供する。但し、製本アプリケーション104は、各ページの内容を編集する機能は提供しておらず、ページを最小単位として構成される、後述する章やブックの構造を編集するための機能を提供している。   The bookbinding application 104 reads an electronic original file (or book file) 103 and provides a user with a function for editing the electronic original file (or book file) 103. However, the bookbinding application 104 does not provide a function for editing the contents of each page, but provides a function for editing the structure of a chapter or book, which will be described later, configured with a page as a minimum unit.

製本アプリケーション104によって編集されたブックファイル103を印刷する際には、製本アプリケーション104によって電子原稿デスプーラ105が起動される。電子原稿デスプーラ105は、製本アプリケーションと共にコンピュータ内にインストールされるプログラムモジュールであり、製本アプリケーションで利用するドキュメント(ブックファイル)を印刷する際に、プリンタドライバへ描画データを出力するために使用されるモジュールである。電子原稿デスプーラ105は、指定されたブックファイルをハードディスクから読み出し、ブックファイルに記述された形式で各ページを印刷するために、前述したOSの出力モジュールに適合する出力コマンドを生成し、不図示の出力モジュールに出力する。その際に、出力デバイスとして使用されるプリンタ107用のプリンタドライバ106がデバイスドライバとして指定される。上述の出力モジュールは、受信した出力コマンドをデバイスコマンドに変換して指定されたプリンタ107用のプリンタドライバ106に出力し、そのプリンタドライバ106がプリンタ107で解釈実行可能なページ記述言語等のコマンドに変換する。そして、変換されたコマンドはプリンタドライバ106から不図示のシステムスプーラを介してプリンタ107に送信され、プリンタ107によってコマンドに応じた画像が印刷される。   When the book file 103 edited by the bookbinding application 104 is printed, the bookbinding application 104 activates the electronic document despooler 105. The electronic document despooler 105 is a program module installed in the computer together with the bookbinding application, and is a module used to output drawing data to the printer driver when printing a document (book file) used in the bookbinding application. It is. The electronic manuscript despooler 105 reads out a designated book file from the hard disk and generates an output command suitable for the OS output module described above to print each page in the format described in the book file. Output to the output module. At that time, the printer driver 106 for the printer 107 used as the output device is designated as the device driver. The above-described output module converts the received output command into a device command and outputs the device command to the designated printer driver 106 for the printer 107. Convert. The converted command is transmitted from the printer driver 106 to the printer 107 via a system spooler (not shown), and the printer 107 prints an image corresponding to the command.

図2は、コンピュータ100のハードウェアブロック図である。図2において、CPU201は、ROM203のプログラム用ROMに記憶された、あるいはハードディスク211からRAM202にロードされたOSや一般アプリケーション、製本アプリケーションなどのプログラムを実行し、図1のソフトウェア構成や、後述するフローチャートの手順を実現する。RAM202は、CPU201の主メモリ、ワークエリア等として機能する。キーボードコントローラ(KBC)205は、キーボード209や不図示のポインティングデバイスからのキー入力を制御する。CRTコントローラ(CRTC)206は、CRTディスプレイ210の表示を制御する。ディスクコントローラ(DKC)207は、ブートプログラム、種々のアプリケーション、フォントデータ、ユーザファイル、後述する編集ファイル等を記憶するハードディスク(HD)211やフロッピー(登録商標)ディスク(FD)等とのアクセスを制御する。PRTC208は、接続されたプリンタ107との間の信号の交換を制御する。NC212はネットワークに接続されて、ネットワークに接続された他の機器との通信制御処理を実行する。   FIG. 2 is a hardware block diagram of the computer 100. 2, a CPU 201 executes programs such as an OS, a general application, and a bookbinding application that are stored in a program ROM of the ROM 203 or loaded from the hard disk 211 to the RAM 202, and the software configuration in FIG. Realize the procedure. The RAM 202 functions as a main memory, work area, and the like for the CPU 201. A keyboard controller (KBC) 205 controls key input from a keyboard 209 or a pointing device (not shown). A CRT controller (CRTC) 206 controls display on the CRT display 210. A disk controller (DKC) 207 controls access to a hard disk (HD) 211, a floppy (registered trademark) disk (FD), and the like that store a boot program, various applications, font data, user files, edit files (to be described later), and the like. To do. The PRTC 208 controls the exchange of signals with the connected printer 107. The NC 212 is connected to the network and executes communication control processing with other devices connected to the network.

<電子原稿データの形式>
編集アプリケーション104の詳細を言及する前に、ブックファイルのデータ形式について説明する。ブックファイルは紙媒体の書物を模倣した3層の層構造を有する。まず、上位層は「ブック」と呼ばれ、1冊の本を模倣しており、その本全般に係る属性が定義されている。その下の中間層は、本でいう章に相当し、やはり「章」と呼ばれる。各章についても、章毎の属性が定義できる。そして、下位層は「ページ」であり、アプリケーションプログラムで定義された各ページに相当する。尚、各ページについてもページ毎の属性が定義できる。更に、一つのブックは複数の章を含んでいてよく、また一つの章は複数のページを含むこともできる。
<Electronic manuscript data format>
Before referring to details of the editing application 104, the data format of the book file will be described. The book file has a three-layer structure that mimics a paper medium book. First, the upper layer is called a “book”, imitating one book, and attributes related to the book in general are defined. The middle layer below it corresponds to the chapter in the book and is also called “chapter”. For each chapter, attributes for each chapter can be defined. The lower layer is “page”, which corresponds to each page defined by the application program. For each page, attributes for each page can be defined. Further, one book may include a plurality of chapters, and one chapter may include a plurality of pages.

図3に示す(A)は、ブックファイルの形式の一例を模式的に示す図である。図示するように、この例では、ブックファイルにおけるブック,章,ページは、それぞれに相当するノードにより示されている。一つのブックファイルは一つのブックを含む。ブック,章は、ブックとしての構造を定義するための概念であるから、定義された属性値と下位層へのリンクとをその実体として含む。ページは、アプリケーションプログラムによって出力されたページ毎のデータを実体として有する。そのため、ページは、その属性値のほかに、原稿ページの実体(原稿ページデータ)と各原稿ページデータへのリンクを含む。   FIG. 3A is a diagram schematically illustrating an example of a book file format. As shown in the figure, in this example, the book, chapter, and page in the book file are indicated by corresponding nodes. One book file contains one book. Since the book and chapter are concepts for defining the structure of the book, they include defined attribute values and links to lower layers as entities. The page has data for each page output by the application program as an entity. Therefore, a page includes a document page entity (document page data) and a link to each document page data in addition to the attribute value.

尚、紙媒体等に出力する際の印刷ページは複数の原稿ページを含む場合がある。この構造に関してはリンクによって表示されず、ブック、章、ページ各階層における属性として表示される。   Note that a print page when outputting to a paper medium or the like may include a plurality of document pages. This structure is not displayed by a link, but is displayed as an attribute in each hierarchy of a book, chapter, and page.

図3において、ブック301には、ブック属性が定義されていると共に、2つの章302A,302Bがリンクされている。このリンクにより、章302A,302Bがブック301に包含されていることが表示される。章302Aには、ページ303A,303Bがリンクされ、これらページが含まれることが示されている。各ページ303A,303Bにはそれぞれ属性値が定義され、その実体である原稿ページデータ(1)、(2)へのリンクが含まれる。これらリンクは、図3に示す(B)のように原稿ページデータ304のデータ(1),(2)を指し示し、ページ303A、303Bの実体が原稿ページデータ(1)、(2)であることを表示している。   In FIG. 3, a book 301 has a book attribute defined therein and two chapters 302A and 302B are linked. By this link, it is displayed that chapters 302A and 302B are included in book 301. The chapter 302A is linked to pages 303A and 303B, indicating that these pages are included. Each page 303A, 303B has an attribute value defined, and includes links to the original document page data (1), (2). These links indicate the data (1) and (2) of the original page data 304 as shown in (B) of FIG. 3, and the entities of the pages 303A and 303B are the original page data (1) and (2). Is displayed.

図4は、ブック属性のリストである。下位層と重複して定義可能な項目に関しては、下位層の属性値が優先採用される。そのため、ブック属性にのみ含まれる項目に関しては、ブック属性に定義された値はブック全体を通して有効な値となる。しかし、下位層と重複する項目については、下位層において定義されていない場合における既定値としての意味を有する。尚、図示された各項目は具体的に1項目に対応するのではなく、関連する複数の項目を含むものもある。   FIG. 4 is a list of book attributes. For items that can be defined overlapping with the lower layer, the attribute value of the lower layer is preferentially adopted. Therefore, for items included only in the book attribute, the value defined in the book attribute becomes a valid value throughout the book. However, items that overlap the lower layer have meanings as default values when they are not defined in the lower layer. Each illustrated item does not specifically correspond to one item, but may include a plurality of related items.

図5は章属性の、図6はページ属性のリストである。章属性とページ属性との関係もブック属性と下位層の属性との関係と同様である。   5 is a list of chapter attributes, and FIG. 6 is a list of page attributes. The relationship between chapter attributes and page attributes is the same as the relationship between book attributes and lower layer attributes.

図4〜図6から明らかなように、ブック属性に固有の項目は、印刷方法、製本詳細、表紙/裏表紙、インデックス紙、合紙、章区切りの6項目である。これらはブックを通して定義される項目である。印刷方法の属性としては、片面印刷、両面印刷、製本印刷の3つの値を指定できる。ここで、製本印刷とは、別途指定する枚数の用紙を束にして2つ折りにし、その束をつづり合わせることで製本が可能となる形式で印刷する方法である。製本詳細属性としては、製本印刷が指定されている場合に、見開き方向や、束になる枚数等が指定できる。   As is apparent from FIGS. 4 to 6, items unique to the book attributes are six items: printing method, bookbinding details, front / back cover, index paper, slip sheet, and chapter break. These are items defined throughout the book. As printing method attributes, three values of single-sided printing, double-sided printing, and bookbinding printing can be designated. Here, bookbinding printing is a method of printing in a format that allows bookbinding by bundling a separately designated number of sheets into two and folding the bundle. As the bookbinding details attribute, when bookbinding printing is designated, the spread direction, the number of sheets to be bundled, and the like can be designated.

表紙/裏表紙属性は、ブックとしてまとめられる電子原稿ファイルを印刷する際に、表紙及び裏表紙となる用紙を付加することの指定、及び付加した用紙への印刷内容の指定を含む。インデックス紙属性は、章の区切りとして、印刷装置に別途用意される耳付きのインデックス紙の挿入の指定及びインデックス(耳)部分への印刷内容の指定を含む。この属性は、印刷用紙とは別に用意された用紙を所望の位置に挿入するインサート機能を持ったインサータが使用する印刷装置に備えられている場合か、あるいは、複数の給紙カセットを使用可能である場合に有効となる。これは合紙属性についても同様である。   The front cover / back cover attribute includes designation of adding sheets as a front cover and a back cover when printing an electronic document file to be collected as a book, and designation of print contents on the added sheet. The index sheet attribute includes designation of insertion of index sheets with ears separately prepared in the printing apparatus as chapter breaks and designation of print contents in the index (ear) portion. This attribute can be used when a printing device used by an inserter having an insert function for inserting a sheet prepared separately from the printing sheet into a desired position, or a plurality of paper cassettes can be used. Effective in some cases. The same applies to the slip sheet attribute.

合紙属性は、章の区切りとして、インサータから、あるいは給紙カセットから供給される用紙の挿入の指定、及び合紙を挿入する場合には、給紙元の指定などを含む。   The slip sheet attribute includes designation of insertion of a sheet supplied from an inserter or a sheet feed cassette as a chapter break, and designation of a sheet feed source when a slip sheet is inserted.

章区切り属性は、章の区切り目において、新たな用紙を使用するか、新たな印刷ページを使用するか、特に何もしないか等の指定を含む。片面印刷時には、新たな用紙の使用と新たな印刷ページの使用とは同じ意味を持つ。両面印刷時には、「新たな用紙の使用」を指定すれば連続する章が1枚の用紙に印刷されることは無いが、「新たな印刷ページの使用」を指定すれば、連続する章が1枚の用紙の表裏に印刷されることがあり得る。   The chapter break attribute includes designation of whether to use a new sheet, use a new print page, or do nothing in particular at the chapter break. During single-sided printing, the use of a new paper and the use of a new print page have the same meaning. In double-sided printing, if “use new paper” is specified, consecutive chapters will not be printed on one sheet, but if “use new print page” is specified, consecutive chapters will be 1 It may be printed on the front and back of a sheet of paper.

章属性に関しては、章に固有の項目はなく、全てブック属性と重複する。従って、章属性における定義とブック属性における定義とが異なれば、章属性で定義された値が優先する。ブック属性と章属性とにのみ共通する項目は、用紙サイズ、用紙方向、N−up印刷指定、拡大縮小、排紙方法の5項目である。これらのうち、N−up印刷指定属性は1印刷ページに含まれる原稿ページ数を指定するための項目である。指定可能な配置としては、1×1、1×2、2×2、3×3、4×4などがある。排紙方法属性は、排出した用紙にステイプル処理を施すか否かを指定するための項目であり、この属性の有効性は使用する印刷装置がステイプル機能を有するか否かに依存する。   As for chapter attributes, there are no items unique to chapters, and all items overlap with book attributes. Therefore, if the definition in the chapter attribute is different from the definition in the book attribute, the value defined in the chapter attribute has priority. Items common to only the book attribute and chapter attribute are five items: paper size, paper orientation, N-up printing designation, enlargement / reduction, and paper discharge method. Among these, the N-up print designation attribute is an item for designating the number of document pages included in one print page. Examples of arrangements that can be specified include 1 × 1, 1 × 2, 2 × 2, 3 × 3, and 4 × 4. The paper discharge method attribute is an item for designating whether or not to staple the discharged paper, and the validity of this attribute depends on whether or not the printing apparatus to be used has a stapling function.

ページ属性に固有の項目には、ページ回転属性、ズーム、配置指定、アノテーション、ページ分割などがある。ページ回転属性は、原稿ページを印刷ページに配置する際の回転角度を指定するための項目である。ズーム属性は、原稿ページの変倍率を指定するための項目である。変倍率は、仮想論理ページ領域のサイズを100%として指定される。仮想論理ページ領域とは、原稿ページを、Nup等の指定に応じて配置した場合に、1原稿ページが占める領域である。例えば、1×1であれば、仮想論理ページ領域は1印刷ページに相当する領域となり、1×2であれば、1印刷ページの各辺を約70パーセントに縮小した領域となる。   Items unique to the page attribute include a page rotation attribute, zoom, layout designation, annotation, and page division. The page rotation attribute is an item for designating a rotation angle when placing an original page on a print page. The zoom attribute is an item for designating the scaling factor of the original page. The scaling factor is specified with the size of the virtual logical page area as 100%. The virtual logical page area is an area occupied by one original page when the original page is arranged in accordance with designation of Nup or the like. For example, if it is 1 × 1, the virtual logical page area is an area corresponding to one print page, and if it is 1 × 2, each side of one print page is an area reduced to about 70%.

ブック、章、ページについて共通な属性としては、ウォーターマーク属性及びヘッダ・フッタ属性がある。ここで、ウォーターマークとは、アプリケーションで作成されたデータに重ねて印刷される、別途指定される画像や文字列などである。ヘッダ・フッタは、それぞれ各ページの上余白及び下余白に印刷されるウォーターマークである。但し、ヘッダ・フッタには、ページ番号や日時など変数により指定可能な項目が用意されている。尚、ウォーターマーク属性およびヘッダ・フッタ属性において指定可能な内容は、章とページとは共通であるが、ブックはそれらと異なっている。ブックにおいてはウォーターマークやヘッダ・フッタの内容を設定できるし、また、ブック全体を通してどのようにウォーターマークやヘッダ・フッタを印刷するかを指定することができる。一方、章やページでは、その章やページにおいて、ブックで設定されたウォーターマークやヘッダ・フッタを印刷するか否かを指定できる。   Attributes common to the book, chapter, and page include a watermark attribute and a header / footer attribute. Here, the watermark is a separately designated image or character string that is printed over data created by an application. The header / footer is a watermark printed on the upper margin and the lower margin of each page. However, items that can be specified by variables such as page numbers and date / time are prepared in the header / footer. The contents that can be specified in the watermark attribute and the header / footer attribute are common to the chapter and the page, but the book is different from them. In the book, the contents of the watermark and header / footer can be set, and how the watermark, header and footer are printed throughout the book can be specified. On the other hand, for a chapter or page, whether or not to print a watermark or header / footer set in the book can be specified for the chapter or page.

<ブックファイルの生成手順>
ブックファイルは上述したような構造及び内容を有している。次に、製本アプリケーション104及び電子原稿ライタ102によるブックファイルの作成手順について説明する。ブックファイルの作成手順は、製本アプリケーション104によるブックファイルの編集操作の一環として実現される。
<Book file generation procedure>
The book file has the structure and contents as described above. Next, a book file creation procedure by the bookbinding application 104 and the electronic document writer 102 will be described. The book file creation procedure is realized as part of the book file editing operation by the bookbinding application 104.

図7は、製本アプリケーション104によりブックファイルを開く際の手順である。まず、開こうとするブックファイルが、新規作成すべきものであるか、それとも既存のものであるか判定する(ステップS701)。新規作成の場合には、章を含まないブックファイルを新規に作成する(ステップS702)。新規に作成されるブックファイルは、図3の例で示せば、ブックノード301のみ有し、章のノードに対するリンクが存在しないブックのノードとなる。ブック属性は、新規作成用としてあらかじめ用意された属性のセットが適用される。そして、新規ブックファイルを編集するためのユーザインタフェース(UI)画面を表示する(ステップS703)。図11は、新規にブックファイルが作成された際のUI画面の一例である。この場合は、ブックファイルは実質的な内容を持たないため、UI画面1100には何も表示されない。   FIG. 7 shows a procedure when the bookbinding application 104 opens a book file. First, it is determined whether the book file to be opened is to be newly created or is an existing one (step S701). In the case of new creation, a new book file not including a chapter is created (step S702). In the example of FIG. 3, the newly created book file is a book node that has only the book node 301 and does not have a link to the chapter node. As the book attribute, a set of attributes prepared in advance for new creation is applied. Then, a user interface (UI) screen for editing the new book file is displayed (step S703). FIG. 11 shows an example of a UI screen when a book file is newly created. In this case, since the book file has no substantial content, nothing is displayed on the UI screen 1100.

一方、既存のブックファイルがあれば、指定されたブックファイルを開き(ステップS703)、そのブックファイルの構造、属性、内容に従ってユーザインタフェース(UI)画面を表示する。図10は、既存のブックファイルから指定されたブックファイルを表示するUI画面の一例である。UI画面1100は、ブックの構造を示すツリー部1101と、印刷された状態を表示するプレビュー部1102とを含む。ツリー部1101には、ブックに含まれる章、各章に含まれるページが図3に示す(A)のような木構造で表示される。ツリー部1101に表示されるページは原稿ページである。またプレビュー部1102には、印刷ページの内容が縮小されて表示される。その表示順序はブックの構造を反映したものとなっている。   On the other hand, if there is an existing book file, the designated book file is opened (step S703), and a user interface (UI) screen is displayed according to the structure, attributes, and contents of the book file. FIG. 10 is an example of a UI screen that displays a book file designated from an existing book file. The UI screen 1100 includes a tree portion 1101 that shows a book structure, and a preview portion 1102 that displays a printed state. The tree portion 1101 displays chapters included in the book and pages included in each chapter in a tree structure as shown in FIG. A page displayed in the tree portion 1101 is a manuscript page. In the preview area 1102, the contents of the print page are reduced and displayed. The display order reflects the book structure.

さて、開かれたブックファイルには、電子原稿ライタ102によって電子原稿ファイルに変換されたアプリケーションデータを、新たな章として追加することができる。この機能を電子原稿インポート機能と呼ぶ。図7に示す手順によって新規に作成されたブックファイルに電子原稿インポートすることで、そのブックファイルには実体が与えられる。この機能は、図10の画面にアプリケーションデータをドラッグアンドドロップ操作することで起動される。   In the opened book file, application data converted into an electronic manuscript file by the electronic manuscript writer 102 can be added as a new chapter. This function is called an electronic document import function. By importing an electronic document into a newly created book file by the procedure shown in FIG. 7, an entity is given to the book file. This function is activated by dragging and dropping application data on the screen of FIG.

図8に電子原稿インポートの手順を示す。まず、指定されたアプリケーションデータを生成したアプリケーションプログラムを起動し、デバイスドライバとして電子原稿ライタ102を指定してアプリケーションデータを印刷出力させることで、電子原稿データに変換する(ステップS801)。変換を終えたなら、変換されたデータが画像データであるか否かを判定する(ステップS802)。この判定は、ウインドウズOSの下であれば、アプリケーションデータのファイル拡張子に基づいて行われる。例えば、拡張子が「bmp」であればウインドウズビットマップデータであり、「jpg」であればjpeg圧縮された画像データ、「tiff」であればtiff形式の画像データであると判定できる。また、このような画像データの場合はS8010のようにアプリケーションを起動せずに、画像データから直接電子原稿ファイルを生成することが可能であるため、S8010の処理を省略することも可能である。   FIG. 8 shows an electronic document import procedure. First, the application program that generated the specified application data is activated, the electronic document writer 102 is specified as a device driver, and the application data is printed out to be converted into electronic document data (step S801). When the conversion is completed, it is determined whether or not the converted data is image data (step S802). This determination is made based on the file extension of the application data under the Windows OS. For example, if the extension is “bmp”, it is determined to be Windows bitmap data, if “jpg”, it is determined to be jpg compressed image data, and if “tiff”, it is determined to be image data in the tif format. In the case of such image data, since it is possible to generate an electronic document file directly from the image data without starting an application as in S8010, the processing in S8010 can be omitted.

ここで、画像データでなかった場合には、ステップS801で生成された電子原稿ファイルを、現在開かれているブックファイルのブックに、新たな章として追加する(ステップS803)。章属性としては、ブック属性と共通するものについてはブック属性の値がコピーされ、そうでないものについては、予め用意された規定値に設定される。   If it is not image data, the electronic document file generated in step S801 is added as a new chapter to the book of the book file that is currently open (step S803). As the chapter attribute, the value of the book attribute is copied for those that are common to the book attribute, and for those that are not, the preset value is set in advance.

また、ステップS802で画像データである場合には、原則として新たな章は追加されず、指定されている章に、ステップS801で生成された電子原稿ファイルに含まれる各原稿ページが追加される(ステップS804)。但し、ブックファイルが新規作成されたファイルであれば、新たな章が作成されて、その章に属するページとして電子原稿ファイルの各ページが追加される。ページ属性は、上位層の属性と共通のものについてはその属性値が与えられ、アプリケーションデータにおいて定義された属性を電子原稿ファイルに引き継いでいるものについてはその値が与えられる。例えば、Nup指定などがアプリケーションデータにおいて指定されていた場合には、その属性値が引き継がれる。このようにして、新規なブックファイルが作成され、あるいは、新規な章が追加される。   In the case of image data in step S802, a new chapter is not added in principle, and each original page included in the electronic original file generated in step S801 is added to the designated chapter ( Step S804). However, if the book file is a newly created file, a new chapter is created, and each page of the electronic document file is added as a page belonging to the chapter. As for the page attribute, an attribute value is given to an attribute common to the upper layer attribute, and a value is given to an attribute that inherits the attribute defined in the application data in the electronic document file. For example, when Nup designation or the like is designated in the application data, the attribute value is inherited. In this way, a new book file is created or a new chapter is added.

図9は、図8に示すステップS801において、電子原稿ライタ102により電子原稿ファイルを生成させる手順のフローチャートである。まず、新たな電子原稿ファイルを作成してそれを開く(ステップS901)。指定したアプリケーションデータに対応するアプリケーションを起動し、電子原稿ライタをデバイスドライバとしてOSの出力モジュールに対して出力コマンドを送信させる。出力モジュールは、受信した出力コマンドを電子原稿ライタ102によって電子原稿形式のデータに変換し、出力する(ステップS902)。その出力先はステップS901で開いた電子原稿ファイルである。指定されたデータ全てについて変換が終了したか判定し(ステップS903)、終了していれば電子原稿ファイルを閉じる(ステップS904)。電子原稿ライタ102によって生成される電子原稿ファイルは、図3の(B)に示される原稿ページデータの実体を含むファイルである。   FIG. 9 is a flowchart of a procedure for generating an electronic document file by the electronic document writer 102 in step S801 shown in FIG. First, a new electronic document file is created and opened (step S901). An application corresponding to the designated application data is started, and an output command is transmitted to the output module of the OS using the electronic document writer as a device driver. The output module converts the received output command into electronic document format data by the electronic document writer 102 and outputs the converted data (step S902). The output destination is the electronic document file opened in step S901. It is determined whether the conversion has been completed for all the designated data (step S903). If the conversion has been completed, the electronic document file is closed (step S904). The electronic manuscript file generated by the electronic manuscript writer 102 is a file including the manuscript page data entity shown in FIG.

<ブックファイルの編集>
以上のようにして、アプリケーションデータからブックファイルを作成することができる。生成されたブックファイルについては、章及びページに対して次のような編集操作が可能である。
(1)新規追加
(2)削除
(3)コピー
(4)切り取り
(5)貼り付け
(6)移動
(7)章名称変更
(8)ページ番号名称振り直し
(9)表紙挿入
(10)合紙挿入
(11)インデックス紙挿入
(12)各原稿ページに対するページレイアウト。
<Edit book file>
As described above, a book file can be created from application data. With respect to the generated book file, the following editing operations are possible for chapters and pages.
(1) New addition (2) Delete (3) Copy (4) Cut (5) Paste (6) Move (7) Rename chapter (8) Rename page number (9) Insert cover (10) Insert paper Insert (11) Insert index paper (12) Page layout for each document page.

このほか、一旦行った編集操作を取り消す操作や、更に取り消した操作をやり直す操作が可能である。これら編集機能により、例えば複数のブックファイルの統合、ブックファイル内で章やページの再配置、ブックファイル内で章やページの削除、原稿ページのレイアウト変更、合紙やインデックス紙の挿入などの編集操作が可能となる。これらの操作を行うと、図4、図5に示す属性に操作結果が反映されたり、あるいはブックファイルの構造に反映される。例えば、ブランクページの新規追加操作を行えば、指定された箇所にブランクページが挿入される。このブランクページは原稿ページとして扱われる。また、原稿ページに対するレイアウトを変更すれば、その変更内容は、印刷方法やN−up印刷、表紙/裏表紙、インデックス紙、合紙、章区切りといった属性に反映される。   In addition, an operation for canceling an editing operation once performed, and an operation for redoing the canceled operation are possible. With these editing functions, for example, integration of multiple book files, rearrangement of chapters and pages in the book file, deletion of chapters and pages in the book file, layout change of manuscript pages, insertion of slip sheets and index sheets Operation becomes possible. When these operations are performed, the operation results are reflected in the attributes shown in FIGS. 4 and 5, or in the book file structure. For example, if a blank page new addition operation is performed, a blank page is inserted at a designated location. This blank page is treated as a manuscript page. If the layout of the original page is changed, the changed content is reflected in attributes such as a printing method, N-up printing, front / back cover, index paper, slip sheet, and chapter break.

<ブックファイルの出力>
以上のように作成・編集されるブックファイルは、印刷出力を最終目的とするものである。ここで、利用者が図10に示した製本アプリケーションのUI画面1100からファイルメニューを選択し、そこから印刷を選択すると、指定した出力デバイスにより印刷出力される。この際、まず製本アプリケーション104は、現在開かれているブックファイルからジョブチケットを作成し、そのジョブチケットを電子原稿デスプーラ105に渡す。一方、電子原稿デスプーラ105は、ジョブチケットをOSの出力コマンド、例えばウインドウズのGDI関数に変換し、それを出力モジュール、例えばGDIに送信する。出力モジュールは、指定されたプリンタドライバ106によってデバイスに適したコマンドを生成し、そのデバイスに送信する。
<Output book file>
The book file created and edited as described above has a final purpose of print output. Here, when the user selects a file menu from the UI screen 1100 of the bookbinding application shown in FIG. 10 and selects print from there, the output is printed by the designated output device. At this time, the bookbinding application 104 first creates a job ticket from the currently opened book file, and passes the job ticket to the electronic document despooler 105. On the other hand, the electronic document despooler 105 converts the job ticket into an OS output command, for example, a Windows GDI function, and transmits it to an output module, for example, GDI. The output module generates a command suitable for the device by the designated printer driver 106 and transmits the command to the device.

ここで、ジョブチケットは原稿ページを最小単位とする構造を有するデータである。ジョブチケットにおける構造は、用紙上における原稿ページのレイアウトを定義している。ジョブチケットは1ジョブにつき1つ発行される。そのため、まず最上位にドキュメントというノードがあり、文書全体の属性、例えば両面印刷/片面印刷などが定義されている。その下には、用紙ノードが属し、用いるべき用紙の識別子やプリンタにおける給紙口の指定などの属性が含まれる。各用紙ノードには、その用紙で印刷されるシートのノードが属する。1シートは1枚の用紙に相当する。各シートには、印刷ページ(物理ページ)が属する。片面印刷ならば1シートには1物理ページが属し、両面印刷ならば1シートに2物理ページが属する。各物理ページには、その上に配置される原稿ページが属する。また物理ページの属性として、原稿ページのレイアウトが含まれる。   Here, the job ticket is data having a structure in which the original page is a minimum unit. The structure in the job ticket defines the layout of the manuscript page on the paper. One job ticket is issued per job. For this reason, there is a document node at the top, and attributes of the entire document, such as double-sided printing / single-sided printing, are defined. Below that, a paper node belongs, and includes attributes such as an identifier of a paper to be used and designation of a paper feed port in the printer. Each paper node includes a node of a sheet printed on the paper. One sheet corresponds to one sheet. A print page (physical page) belongs to each sheet. For single-sided printing, one physical page belongs to one sheet, and for double-sided printing, two physical pages belong to one sheet. Each physical page has an original page arranged thereon. The physical page attribute includes the layout of the original page.

電子原稿デスプーラ105は、上述のジョブチケットを、出力モジュールへの出力コマンドに変換する。   The electronic document despooler 105 converts the above-described job ticket into an output command to the output module.

<そのほかのシステム構成>
本実施形態の文書処理システムの概要は以上のようなものである。これはスタンドアロン型のシステムであるが、これを拡張したサーバクライアントシステムでもほぼ同様の構成・手順でブックファイルを作成・編集できる。但し、ブックファイルや印刷処理はサーバによって管理される。
<Other system configurations>
The outline of the document processing system of this embodiment is as described above. Although this is a stand-alone system, a book file can be created and edited with almost the same configuration and procedure even on a server client system that is an expanded system. However, book files and print processing are managed by the server.

図12は、サーバクライアント型文書処理システムの構成を示すブロック図である。クライアント文書処理システムは、スタンドアロン型システムに、クライアントモジュールであるDOMS(Document Output Management Service:文書出力管理サービス)ドライバ109及びDOMSプリントサービスモジュール110、DS(文書サービス)クライアントモジュール108を加えた構成を有する。このクライアント文書処理システム1200に文書管理サーバ1201、印刷集中管理サーバ1202及びプリントサーバ1203が接続されている。これらサーバは、通常ネットワークによってクライアント文書処理システムと接続されるが、サーバが同時にクライアントとしても機能する場合には、ネットワーク間の通信をシミュレートするプロセス間通信によって接続される。   FIG. 12 is a block diagram showing the configuration of the server client type document processing system. The client document processing system has a configuration in which a DOMS (Document Output Management Service: Document Output Management Service) driver 109, a DOMS print service module 110, and a DS (Document Service) client module 108 are added to a stand-alone system. . A document management server 1201, a print central management server 1202, and a print server 1203 are connected to the client document processing system 1200. These servers are normally connected to the client document processing system via a network, but are connected by inter-process communication that simulates communication between networks when the server also functions as a client at the same time.

尚、図12に示す例では、文書管理サーバ1201と印刷集中管理サーバ1202の両方のサーバがクライアントに接続されているが、何れか一方のみネットワーク上に存在する場合もあり得る。例えば、接続されているサーバが文書管理サーバであれば、そのクライアントモジュール108を含む文書管理サーバクライアントシステム1201SCが、また印刷集中管理サーバ1202であれば、そのクライアントモジュールを含む印刷管理サーバクライアントシステム1202SCが、スタンドアロン型文書管理システムに追加される。   In the example shown in FIG. 12, both the document management server 1201 and the print central management server 1202 are connected to the client, but only one of them may exist on the network. For example, if the connected server is a document management server, the document management server client system 1201SC including the client module 108 is used. If the connected server is the print central management server 1202, the print management server client system 1202SC including the client module is used. Will be added to the stand-alone document management system.

文書管理サーバ1201は、製本アプリケーション104により作成・編集されたブックファイルを格納するサーバである。文書管理サーバ1201によってブックファイルを管理する場合、ブックファイルはクライアントPCのローカルHDに代わって、あるいはそれに加えて、文書管理サーバ1201のデータベース1211に保存される。製本アプリケーション104と文書管理サーバ1201との間のブックファイルの保存及び読み出しは、DSクライアント108及びDSコア1212を介して行われる。   The document management server 1201 is a server that stores book files created and edited by the bookbinding application 104. When a book file is managed by the document management server 1201, the book file is stored in the database 1211 of the document management server 1201 instead of or in addition to the local HD of the client PC. Saving and reading of book files between the bookbinding application 104 and the document management server 1201 are performed via the DS client 108 and the DS core 1212.

印刷集中管理サーバ1202は、クライアント文書管理システム1200に格納された、あるいは文書管理サーバ1201に格納されたブックファイルの印刷を管理するサーバである。クライアントにおける印刷要求は、DOMSドライバ109およびDOMSプリントサービスモジュール110を介して印刷集中管理サーバ1202のDOMSWGサーバモジュール1221に送信される。集中印刷管理サーバ1202は、クライアントのプリンタで印刷する場合にはクライアントのDOMSプリントサービスモジュール110を介して電子原稿デスプーラ105に電子原稿データを渡し、プリントサーバ1203により印刷する場合には、プリントサーバ1203のDOMSプリントサービスモジュール1203に送信する。集中印刷管理サーバは、例えば保存されているブックファイルに対して印刷要求を発行した利用者の資格などについてセキュリティチェックを行ったり、印刷処理のログを保存したりする。このように、文書処理システムは、スタンドアロンとしても、クライアントサーバシステムとしても実現できる。   The print central management server 1202 is a server that manages printing of book files stored in the client document management system 1200 or stored in the document management server 1201. The print request in the client is transmitted to the DOMSWG server module 1221 of the print central management server 1202 via the DOMS driver 109 and the DOMS print service module 110. The centralized print management server 1202 passes the electronic document data to the electronic document despooler 105 via the client's DOMS print service module 110 when printing with the client printer, and when printing with the print server 1203, the print server 1203. To the DOMS print service module 1203. For example, the centralized print management server performs a security check on the qualification of the user who issued the print request to the saved book file, and saves a print processing log. As described above, the document processing system can be realized as a stand-alone or a client-server system.

<プレビュー表示の内容>
既に説明した通り、ブックファイルが製本アプリケーションによって開かれると、図10に示したユーザインタフェース画面1100が表示される。ツリー部1101には、開いているブック(以下、「注目ブック」と呼ぶ)の構造を示すツリーが表示される。プレビュー部には、利用者の指定に応じて、3通りの表示方法が用意されている。まず、第1は原稿ページをそのまま表示する原稿ビューと呼ばれるモードである。この原稿ビューモードでは、注目ブックに属する原稿ページの内容が縮小されて表示される。尚、プレビュー部1102の表示にレイアウトは反映されない。次に、第2は印刷ビューモードである。この印刷ビューモードでは、プレビュー部1102には原稿ページのレイアウトが反映された形で原稿ページが表示される。そして、第3は簡易印刷ビューモードである。この簡易印刷ビューモードでは、各原稿ページの内容はプレビュー部の表示には反映されず、レイアウトのみが反映される。
<Contents of preview display>
As described above, when the book file is opened by the bookbinding application, the user interface screen 1100 shown in FIG. 10 is displayed. The tree portion 1101 displays a tree indicating the structure of an open book (hereinafter referred to as “target book”). In the preview section, three display methods are prepared according to the user's designation. First, a mode called a document view that displays a document page as it is. In this document view mode, the content of the document page belonging to the book of interest is reduced and displayed. Note that the layout is not reflected in the display of the preview unit 1102. Next, the second is a print view mode. In the print view mode, the document page is displayed on the preview unit 1102 in a form that reflects the layout of the document page. The third is a simple print view mode. In this simple print view mode, the contents of each original page are not reflected in the display of the preview portion, but only the layout is reflected.

<ステイプル制御>
次に、ステイプル機能を有するプリンタと接続するコンピュータ100の製本アプリケーション104によって行われるステイプル制御について説明する。
<Stapling control>
Next, stapling control performed by the bookbinding application 104 of the computer 100 connected to a printer having a stapling function will be described.

図13は、ステイプル制御システムの構成を示すブロック図である。図示するように、ステイプル制御システムは、図2に示したホストコンピュータ100とステイプル機能を有するプリンタ107とで構成される。   FIG. 13 is a block diagram showing the configuration of the staple control system. As shown in the figure, the staple control system includes the host computer 100 shown in FIG. 2 and a printer 107 having a staple function.

以下、プリンタ107の構成について説明する。尚、本発明の機能が実現されるのであれば、単体の機器であっても、複数の機器からなるシステムであっても、LAN,WAN等のネットワークを介して接続がなされ、処理が行われるシステムであっても本発明を適用できる。   Hereinafter, the configuration of the printer 107 will be described. If the function of the present invention is realized, a single device or a system composed of a plurality of devices can be connected and processed via a network such as a LAN or WAN. The present invention can be applied even to a system.

図示するように、プリンタ107において、1301はプリンタCPUであり、ROM1302内のプログラム用ROMに記憶された制御プログラム等や外部メモリ1303に記憶された制御プログラム等に基づいてシステムバス1304に接続される印刷部I/F1305を介して、印刷部(プリンタエンジン)1306に出力情報としての画像信号を出力する。また、このROM1302内のプログラムROMには、CPU1301の制御プログラム等が記憶され、ROM1302内のフォント用ROMには、出力情報を生成する際に使用するフォントデータ等が記憶され、ROM1302内のデータ用ROMには、ハードディスク等の外部メモリ1303がないプリンタの場合、ホストコンピュータ100上で利用される情報等が記憶されている。   As shown in the figure, in the printer 107, reference numeral 1301 denotes a printer CPU, which is connected to a system bus 1304 based on a control program stored in a program ROM in a ROM 1302 or a control program stored in an external memory 1303. An image signal as output information is output to the printing unit (printer engine) 1306 via the printing unit I / F 1305. In addition, the program ROM in the ROM 1302 stores a control program of the CPU 1301, and the font ROM in the ROM 1302 stores font data used for generating output information. The ROM stores information used on the host computer 100 in the case of a printer that does not have an external memory 1303 such as a hard disk.

また、CPU1301は、入力部1307を介してホストコンピュータ100との通信処理が可能となっており、プリンタ107内の情報等をホストコンピュータ100に通知できる。RAM1308は、CPU1301の主メモリや、ワークエリア等として機能するRAMであり、図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。   The CPU 1301 can perform communication processing with the host computer 100 via the input unit 1307 and can notify the host computer 100 of information in the printer 107 and the like. The RAM 1308 is a RAM that functions as a main memory, a work area, or the like of the CPU 1301 and is configured so that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown).

尚、RAM1308は、出力情報展開領域、環境データ格納領域、NVRAM等に用いられる。上述したハードディスク(HD)、ICカード等の外部メモリ1303は、メモリコントローラ(MC)1309によりアクセスを制御される。外部メモリ1303は、オプションとして接続され、フォントデータ、エミュレーションプログラム、フォームデータ等を記憶する。また、操作パネル1311は操作のためのスイッチ及びLED表示器等で構成されている。   The RAM 1308 is used as an output information expansion area, environment data storage area, NVRAM, and the like. Access to the above-described external memory 1303 such as a hard disk (HD) or IC card is controlled by a memory controller (MC) 1309. The external memory 1303 is connected as an option and stores font data, an emulation program, form data, and the like. In addition, the operation panel 1311 includes switches for operation, LED indicators, and the like.

また、上述の外部メモリ1303は1個に限らず、複数個備えられ、内蔵フォントに加えてオプションカード、言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリを複数接続できるように構成されていても良い。更に、図示しないNVRAMを有し、操作パネル1311からのプリンタモード設定情報を記憶するようにしても良い。   The external memory 1303 described above is not limited to one, and a plurality of external memories 1303 are provided. In addition to the built-in font, a plurality of external memories storing option cards and programs for interpreting printer control languages with different language systems can be connected. May be. Furthermore, an NVRAM (not shown) may be provided, and printer mode setting information from the operation panel 1311 may be stored.

<ブックファイル編集機能>
製本アプリケーション104にて生成されたブックファイルに対して、文章・画像の編集を行うことを可能とする原稿エディタを備える。前記原稿エディタは、製本アプリケーションから起動し、ブックファイルを論理ページ毎に編集することが可能である。図15はエディタの起動フローを示している。まず製本アプリケーションにて、選択された原稿ファイルに対してメニューを表示させる(1501)。前記メニューより“原稿エディタ”が選択されたことを認識する(1502)。原稿エディタを起動し、メイン画面を表示する(1503)。図14は製本アプリケーションから、前記原稿エディタを起動するUI例を示している。1401は製本アプリケーション、1402はインポートされた原稿ファイル。1403は前記原稿ファイル選択時のポップアップメニュー、1404はマウスポインタを示している。原稿エディタの起動は、インポートされた原稿ファイルをマウスポインタで選択し、ポップアップメニューを表示させ、メニュー内の“原稿エディタ”を選択することで実行される。ここではポップアップメニューからの起動であったが、その他(たとえばツールボタン、メニューアイテム)を利用した起動方法であっても良い。
<Book file editing function>
A manuscript editor is provided that allows text / image editing to be performed on the book file generated by the bookbinding application 104. The manuscript editor is activated from a bookbinding application and can edit a book file for each logical page. FIG. 15 shows the startup flow of the editor. First, in the bookbinding application, a menu is displayed for the selected document file (1501). It is recognized that “Original Editor” has been selected from the menu (1502). The manuscript editor is activated and the main screen is displayed (1503). FIG. 14 shows an example of a UI for starting the document editor from the bookbinding application. 1401 is a bookbinding application, and 1402 is an imported document file. Reference numeral 1403 denotes a pop-up menu when the original file is selected, and reference numeral 1404 denotes a mouse pointer. The manuscript editor is activated by selecting an imported manuscript file with a mouse pointer, displaying a pop-up menu, and selecting “document editor” in the menu. Here, the activation is performed from the pop-up menu, but other activation methods (for example, tool buttons, menu items) may be used.

次に、原稿エディタで行える編集機能について説明をする。図16は原稿エディタの全体UIを示している。1601は原稿エディタ、1602はメニューバー、1603はツールボタン、1604はページ移動ボタン、1605はズーム指定ボックス、1606は編集対象の原稿ファイル、1607はテキストオブジェクト、1608・1609は図形オブジェクト、1610は直線オブジェクトを示している。これらを元に各編集機能について説明を行う。   Next, editing functions that can be performed by the manuscript editor will be described. FIG. 16 shows the entire UI of the document editor. 1601 is a manuscript editor, 1602 is a menu bar, 1603 is a tool button, 1604 is a page movement button, 1605 is a zoom designation box, 1606 is a manuscript file to be edited, 1607 is a text object, 1608 and 1609 are graphic objects, and 1610 is a straight line. Indicates an object. Based on these, each editing function will be described.

[テキスト編集機能]
図17はテキストオブジェクトの選択の例を示している。図16で示した原稿ファイル1606を詳細に示している。1701はテキストオブジェクト、1702はオブジェクトのコントロールハンドル、1703はマウスポインタを示している。マウスポインタで原稿ファイル内のテキスト上を選択すると、選択されたテキストがオブジェクトとしてマッチングされ、選択状態となる。選択状態になったオブジェクトには1702で示した、コントロールハンドルが表示され、選択されたことをユーザに示す。この例では、コントロールハンドルが表示されたが、テキストオブジェクトの外接矩形を表示するようにしても良い。テキストオブジェクトは、選択して移動・削除・テキスト属性の変更・テキストの追加・削除などの操作を行うことができる。
[Text editing function]
FIG. 17 shows an example of selection of a text object. The document file 1606 shown in FIG. 16 is shown in detail. Reference numeral 1701 denotes a text object, 1702 denotes an object control handle, and 1703 denotes a mouse pointer. When the text on the document file is selected with the mouse pointer, the selected text is matched as an object and is in a selected state. A control handle indicated by 1702 is displayed on the selected object to indicate to the user that it has been selected. In this example, the control handle is displayed, but a circumscribed rectangle of the text object may be displayed. A text object can be selected and operated such as moving, deleting, changing text attributes, adding or deleting text.

図18はテキスト編集のフローを示している。まずマウスポインタで選択された原稿ファイル内のテキストを、テキストオブジェクトとして抽出する(1801)。抽出されたテキストオブジェクトに対して、テキストの追加、テキストの削除、テキスト属性の変更、テキストオブジェクトの移動・削除などの編集を施し(1802−1806)、編集が終了したら終了。図19はテキスト追加の例を示している。図17のテキストオブジェクト1701についてテキストの追加を行う。選択状態になっているテキストオブジェクトを再度マウスポインタ1903で選択すると、テキストオブジェクトが矩形1901で囲まれ、編集カーソル1902が表示される。テキストを追加する位置にカーソルを移動させ、文字を入力すると、テキストオブジェクトに入力した文字が追加される。図19では、“日本語のテスト”のテストの前に“テスト”を追加したときの例を示している。   FIG. 18 shows a text editing flow. First, the text in the document file selected with the mouse pointer is extracted as a text object (1801). The extracted text object is subjected to editing such as addition of text, deletion of text, change of text attribute, movement / deletion of text object (1802-1806), and ends when editing is completed. FIG. 19 shows an example of adding text. Text is added to the text object 1701 in FIG. When the selected text object is selected again with the mouse pointer 1903, the text object is surrounded by a rectangle 1901 and an edit cursor 1902 is displayed. When the cursor is moved to the position where the text is to be added and characters are input, the input characters are added to the text object. FIG. 19 shows an example in which “test” is added before the “Japanese test” test.

図20はテキスト削除の例を示している。図17のテキストオブジェクト1701についてテキストの削除を行う。テキスト追加と同様の方法でテキストオブジェクトが矩形で囲まれ、編集カーソル2001が表示されている状態にする。その状態で、バックスペースキーや削除を実行すると、編集カーソルの前の文字が削除される。図20では、“日本語のテスト”の“テスト”を削除したときの例を示している。   FIG. 20 shows an example of text deletion. The text is deleted from the text object 1701 in FIG. The text object is surrounded by a rectangle and the edit cursor 2001 is displayed in the same manner as the text addition. If the backspace key or delete is executed in this state, the character before the edit cursor is deleted. FIG. 20 shows an example when “test” of “Japanese test” is deleted.

テキスト属性の編集について、各テキストオブジェクト内のテキストは属性を持っており、その属性についても編集することが可能である。テキスト属性には、フォント・スタイル・サイズ・色・文字装飾・文字間隔・水平スケーリング率・単語間隔などがある。それぞれの意味、設定方法については、公知であるため説明は省略する。   Regarding editing of text attributes, the text in each text object has an attribute, and the attribute can also be edited. Text attributes include font, style, size, color, character decoration, character spacing, horizontal scaling rate, word spacing, and the like. Since the meaning and setting method of each are well known, description thereof will be omitted.

[テキストボックス編集機能]
前述したテキストオブジェクトは1行に限定された編集であったが、原稿エディタは複数行のテキストを新規に作成する機能を有する。複数行のテキストを作成する際には、テキストボックスを用いる。図22はテキストボックス編集のフローを示している。まずテキストボックス作成モードへ遷移し(2201)、マウスドラッグの矩形でテキストボックスを生成する(2202)。次に、作成したテキストボックスに対して、テキストオブジェクトの編集(この編集は前述した1行テキストの編集操作と同じ)、テキストボックス属性の編集、テキストボックスの移動・削除などの編集を施し(2203−2206)、編集が終了したら終了する。図21はテキストボックス作成の例を示している。原稿ファイル1606上にテキストボックス作成モードで、マウスポインタ1903を用いて矩形を描画すると、テキストボックス2101が作成される。作成されたテキストボックスには、新規作成時およびボックスを選択時に、コントロールハンドル2102が表示される。コントロールハンドルをマウスポインタでドラッグすることにより、ボックスのリサイズが可能である。
[Text box editing function]
Although the text object described above is editing limited to one line, the manuscript editor has a function of newly creating a plurality of lines of text. Use text boxes when creating multi-line text. FIG. 22 shows a text box editing flow. First, a transition is made to the text box creation mode (2201), and a text box is generated with a mouse drag rectangle (2202). Next, the created text box is edited by editing a text object (this editing is the same as the one-line text editing operation described above), editing a text box attribute, moving / deleting a text box, and the like (2203). -2206), the process ends when the editing is completed. FIG. 21 shows an example of creating a text box. When a rectangle is drawn on the document file 1606 using the mouse pointer 1903 in the text box creation mode, a text box 2101 is created. In the created text box, a control handle 2102 is displayed when a new box is created and when the box is selected. The box can be resized by dragging the control handle with the mouse pointer.

図23は前述したテキストボックス内にテキストを追加する例を示している。選択状態のテキストボックスを再度マウスポインタで選択すると、テキストオブジェクト編集の時と同様に、ボックス内に編集カーソルが表示される。その状態で、テキストを入力することにより、テキストボックスにテキストを追加することが可能である。また、テキストの削除についてもテキストオブジェクトの時と同様の方法で、行うことが可能である。図23はテキストボックス2101に“テキストボックステスト。複数行”というテキストを追加した例を示している。前述したとおり、テキストボックスは複数行のテキストをサポートする。右端までに収まらないテキストは改行されて表示される(2301)。   FIG. 23 shows an example of adding text in the text box described above. When the selected text box is selected again with the mouse pointer, an editing cursor is displayed in the box as in the text object editing. In this state, it is possible to add text to the text box by inputting text. In addition, the text can be deleted by the same method as that for the text object. FIG. 23 shows an example in which the text “text box test, multiple lines” is added to the text box 2101. As mentioned earlier, text boxes support multiple lines of text. Text that does not fit to the right end is displayed with a line feed (2301).

テキストボックスおよびテキストボックス内のテキストについてもテキストオブジェクトと同様に属性を編集することが可能である。テキストボックスの属性には、線種・線幅・線の色・塗りつぶし・不透明度などがある。テキストボックス内のテキストの属性は、手テキストオブジェクトと同様である。それぞれの意味、設定方法については、公知であるため説明は省略する。   The attributes of the text box and the text in the text box can be edited similarly to the text object. Text box attributes include line type, line width, line color, fill, and opacity. The attribute of the text in the text box is the same as that of the hand text object. Since the meaning and setting method of each are well known, description thereof will be omitted.

[イメージ編集機能]
次に、原稿エディタにおけるイメージの編集機能について説明をする。イメージの編集機能には、“イメージの挿入”と“イメージの書き出し”がある。
[Image editing function]
Next, an image editing function in the manuscript editor will be described. Image editing functions include “insert image” and “export image”.

イメージの挿入について説明をする。図27はイメージ挿入および回転・移動・削除の全体フローを示している。まず、イメージ挿入モードに遷移し、イメージ選択ダイアログを表示する(2701)。前記ダイアログで選択されたイメージをエディタ上に表示する(2702)。表示されたイメージに対して、回転や移動・削除などの編集を施し(2703−2705)、編集が終了したら終了。図24はイメージの挿入モードへ遷移するためのUI例を示している。2401は原稿エディタ、2402はメニュー、2403はイメージ挿入モードメニューを示している。原稿エディタのメニューバーより、イメージの挿入が選択されると、イメージの挿入ダイアログが表示される。イメージ挿入ダイアログで挿入するイメージファイルを選択することで、原稿上にイメージオブジェクトとして挿入する。図25はイメージ挿入が挿入された例を示している。前述した方法でイメージを挿入すると、原稿ファイル1606にイメージ2501が挿入される。イメージの挿入される位置については、原稿ファイルの中心となる。ただし、位置については、中心に限定せずに原稿ファイルの左上基準、左下基準などユーザビリティを考慮して変更できるようにしても良い。また、挿入の方法についても、メニューからの挿入だけでなく、ツールボタンなどで行えるようにしても良い。   The image insertion will be described. FIG. 27 shows the overall flow of image insertion and rotation / movement / deletion. First, a transition is made to the image insertion mode and an image selection dialog is displayed (2701). The image selected in the dialog is displayed on the editor (2702). Editing such as rotation, movement, and deletion is performed on the displayed image (2703-2705), and the process ends when editing is completed. FIG. 24 shows an example UI for transitioning to the image insertion mode. Reference numeral 2401 denotes an original editor, 2402 denotes a menu, and 2403 denotes an image insertion mode menu. When insert image is selected from the menu bar of the manuscript editor, an insert image dialog is displayed. By selecting an image file to be inserted in the image insertion dialog, it is inserted as an image object on the original. FIG. 25 shows an example in which image insertion is inserted. When an image is inserted by the method described above, an image 2501 is inserted into the document file 1606. The position where the image is inserted is the center of the document file. However, the position may be changed in consideration of usability such as the upper left reference and the lower left reference of the document file without being limited to the center. Also, the insertion method may be performed not only from the menu but also by a tool button.

挿入したイメージ、もしくは原稿ファイルに配置されたイメージオブジェクトに対しては、回転、移動・削除と言った編集を行うことができる。図26はイメージを回転した例を示している。2601はイメージを時計回りに90度回転されたものを示している。移動・削除については、公知であるため説明は省略する。   Editing such as rotation, movement, and deletion can be performed on the inserted image or the image object arranged in the document file. FIG. 26 shows an example in which the image is rotated. Reference numeral 2601 denotes an image rotated 90 degrees clockwise. Since the movement / deletion is publicly known, a description thereof will be omitted.

次にイメージの書き出しについて説明する。図29はイメージの書き出しの全体フローを示している。まず書き出す対象のイメージを選択することにより抽出する(2901)。次に、ポップアップメニューなどからイメージ書き出しダイアログを表示させる(2902)。そして、書き出し先(場所)や書き出すイメージのファイル名などを入力して、入力を確定させることで、指定された場所にイメージを保存する(2903−2904)。図28はイメージの書き出しの例を示している。書き出すイメージを選択し、ポップアップメニュー2801を表示させ、イメージの書き出しを指定する。イメージの書き出しを指定すると、イメージの書き出しダイアログを表示する。表示したダイアログ内で設定した書き出し場所・イメージファイル名を適用させイメージの書き出しを行う。   Next, image writing will be described. FIG. 29 shows the overall flow of image writing. First, extraction is performed by selecting an image to be written (2901). Next, an image export dialog is displayed from a pop-up menu or the like (2902). Then, by inputting the export destination (location), the file name of the image to be written, etc., and confirming the input, the image is saved in the designated location (2903-2904). FIG. 28 shows an example of image writing. An image to be written is selected, a pop-up menu 2801 is displayed, and image writing is designated. When image export is specified, the image export dialog is displayed. Apply the export location and image file name set in the displayed dialog to export the image.

[オブジェクト編集機能]
次に、原稿エディタにおけるオブジェクトの編集機能について説明をする。オブジェクトの種類には、四角形・楕円・角丸四角形・直線・オートシェイプ・その他任意図形が存在する。それらのオブジェクトの新規作成および編集を行うことが可能である。原稿ファイルの描画されているオブジェクトに対しても選択すること、および編集を加えることができる。新規作成、および編集操作については、移動・削除や各属性(色・線種など)の変更など公知の技術であるため、個々の説明は省略する。図32は、オブジェクトの編集フローを示している。まずオブジェクト作成フローに遷移し(3201)、マウスドラッグで描画された矩形により、オブジェクトを作成する(3202)。オブジェクトの編集(属性の編集や移動・削除など)を施し(3203−3205)、編集が終了したら終了する。次に一例として楕円の新規作成について説明をする。
[Object editing function]
Next, an object editing function in the manuscript editor will be described. The types of objects include a rectangle, an ellipse, a rounded rectangle, a straight line, an auto shape, and other arbitrary figures. These objects can be newly created and edited. It is also possible to select and edit an object on which an original file is drawn. Since the new creation and editing operations are known techniques such as movement / deletion and change of each attribute (color, line type, etc.), individual descriptions are omitted. FIG. 32 shows an object editing flow. First, the process proceeds to an object creation flow (3201), and an object is created with a rectangle drawn by mouse dragging (3202). Object editing (attribute editing, movement / deletion, etc.) is performed (3203-3205), and the process ends when editing is completed. Next, the creation of a new ellipse will be described as an example.

図30は楕円オブジェクトの新規作成モードに遷移するためのUI例を示している。3001は原稿エディタ、3002はメニュー、3003は楕円作成モード遷移メニューを示している。3003の楕円作成モード遷移メニューを選択し、原稿エディタ上でマウス矩形を描画することで楕円オブジェクトを作成することができる。図31は楕円オブジェクトが作成された例を示している。作成された楕円オブジェクト3101は、選択状態になるとコントロールハンドル3102を表示し、選択されたことをユーザに認識させる。   FIG. 30 shows an example of a UI for transitioning to an ellipse object new creation mode. Reference numeral 3001 denotes a manuscript editor, 3002 denotes a menu, and 3003 denotes an ellipse creation mode transition menu. An ellipse object can be created by selecting an ellipse creation mode transition menu 3003 and drawing a mouse rectangle on the document editor. FIG. 31 shows an example in which an ellipse object is created. When the created ellipse object 3101 is selected, a control handle 3102 is displayed to allow the user to recognize that it has been selected.

本発明の実施例について説明する。図33は本発明におけるテキストオブジェクトのパターンマッチング(マッチング)処理の全体フローを示している。各処理について説明する。まずマウスポインタなどを用いて、原稿上のある位置を選択させ、その位置を認識する(3301)。前ステップで認識された原稿上の位置にテキストデータがあるかどうかを判定する(3302)。もし全ステップでテキストデータがないと判定された場合は、パターンマッチング処理は終了となる。反対に、テキストデータがあると判定された場合は、本発明のパターンマッチング処理へと移る(3303)。パターンマッチング処理の詳細については後述する。最後に、パターンマッチング処理にて認識されたテキストオブジェクトを表示させる(3304)。表示されたテキストオブジェクトは、前述した方法で編集作業を行うことが可能である。   Examples of the present invention will be described. FIG. 33 shows an overall flow of pattern matching processing for text objects in the present invention. Each process will be described. First, a position on the document is selected using a mouse pointer or the like, and the position is recognized (3301). It is determined whether there is text data at the position on the document recognized in the previous step (3302). If it is determined that there is no text data in all steps, the pattern matching process ends. On the other hand, if it is determined that there is text data, the process proceeds to the pattern matching process of the present invention (3303). Details of the pattern matching process will be described later. Finally, the text object recognized by the pattern matching process is displayed (3304). The displayed text object can be edited by the method described above.

図34は前述したステップ3303について詳細を示しているフローチャートである。各ステップについて説明する。まず、原稿上で指定された場所にあるテキスト情報を取得する(3401)。取得するテキスト情報とは、原稿上に描画されているテキストデータの描画位置情報やフォント情報などが含まれる。次に取得したテキスト情報をパターンマッチング対象のテキスト情報として設定する(3402)。そして、マッチング対象としたテキスト情報とY座標が等しいテキスト情報が、現在編集中の原稿ページ上に存在するかどうかを判定する(3403)。存在しないと判定された場合、マッチング対象のテキスト情報が最終的にテキストオブジェクトとしてマッチングされる(3408)。存在すると判定された場合、そのテキスト情報を、マッチング候補のテキスト情報として設定する(3404)。ここから先は、前ステップでマッチング候補としたテキスト情報に対して、マッチング対象とされていたテキスト情報とグループ化してマッチングすべきかどうかを、いくつかの条件を利用して判定していくステップとなる。まず、マッチング対象のテキスト情報とマッチング候補のテキスト情報の間にテキスト以外のオブジェクトが存在するかどうかを判定する(3405)。テキスト以外のオブジェクトとは、図形オブジェクトや画像オブジェクトなどを指す。もし、そのようなオブジェクトがテキスト情報の間に描画されていたとすると、マッチング候補として設定したテキストオブジェクトはグループ化されず、マッチング対象のテキスト情報が最終的にテキストオブジェクトとしてマッチングされる(3408)。テキスト以外のオブジェクトが存在しないとすると、マッチングの例外処理へと遷移する(3406)。例外処理の詳細については、後述する。マッチング例外処理が終了して、マッチング候補として設定されたテキスト情報を、マッチング対象のテキスト情報へ追加する(3407)。最後にマッチング対象とされたテキスト情報をマッチングする(3408)。   FIG. 34 is a flowchart showing details of step 3303 described above. Each step will be described. First, text information at a specified location on the document is acquired (3401). The acquired text information includes drawing position information and font information of text data drawn on the document. Next, the acquired text information is set as text information for pattern matching (3402). Then, it is determined whether or not text information having the same Y coordinate as the text information to be matched exists on the currently edited document page (3403). If it is determined that it does not exist, the text information to be matched is finally matched as a text object (3408). If it is determined that it exists, the text information is set as matching candidate text information (3404). From here on, the text information that was selected as a matching candidate in the previous step is a step that uses several conditions to determine whether it should be matched with the text information that was targeted for matching. Become. First, it is determined whether there is an object other than text between the text information to be matched and the text information to be matched (3405). An object other than text refers to a graphic object or an image object. If such an object is drawn between text information, the text objects set as matching candidates are not grouped, and the text information to be matched is finally matched as a text object (3408). If no object other than text exists, the process proceeds to matching exception processing (3406). Details of the exception processing will be described later. After the matching exception process is completed, the text information set as a matching candidate is added to the text information to be matched (3407). Finally, the text information to be matched is matched (3408).

図35は前述したステップ3406のパターンマッチング例外処理について詳細を示しているフローチャートである。まず、マッチング候補のテキスト情報を取得する(3501)。取得するテキスト情報は、前述したとおりで原稿上に描画されているテキストデータの描画位置情報やフォント情報などが含まれる。前ステップにて取得したテキスト情報より、マッチング例外処理を行う。まず、マッチング対象として設定したテキスト情報と座標が異なるかどうかを判定する(3502)。ここで指している座標とは、座標の回転・歪みのことである。もし、マッチング候補のテキスト座標が、マッチング対象のテキスト座標と異なっていた場合は、グループ化は行わずにマッチングを行う。したがって、マッチング候補として設定されていたテキスト情報を削除する(3505)。つぎに、マッチング候補のテキスト情報について、水平スケーリングが負の値をとっているかどうかを判定する(3503)。この判定は、マッチング対象のテキスト情報と、マッチング候補のテキスト情報とで、テキストの水平スケーリングが正負逆転しているかどうかの判定であり、もしマッチング対象のテキスト情報が負の値をとっているのであれば、マッチング候補のテキストが正の値でも判定はYESといことになる。水平スケーリングの値が逆転していると判定された場合は、グループ化は行わずにマッチングを行う。したがって、マッチング候補として設定されていたテキスト情報を削除する(3505)。最後に、マッチング候補のテキスト情報について、マッチング対象のテキスト情報とテキストレンダリングモードが異なっているかどうかを判定する。テキストレンダリングモードとは、文字の描画方法を設定するパラメータであり、白抜きや、輪郭と塗りつぶしで異なる色にする等の特殊効果を得るためのものである。テキストレンダリングモードが異なると判定された場合は、グループ化は行わずにマッチングを行う。したがって、マッチング候補として設定されていたテキスト情報を削除する(3505)。以上の例外処理を行った末、すべてに当てはまらなかったテキスト情報のみがマッチング候補のテキスト情報として保持される。本フローチャートを抜けた後は、図34のフローチャートのステップ3407へ進み、処理を行う。結果的に、図34のマッチング条件フローチャート、および図35のマッチング例外処理フローチャートを処理した結果、マッチング候補として削除されず残っているテキスト情報のみが、最初にマッチング対象として指定されたテキスト情報とグループ化され1つのテキストオブジェクトとしてマッチングされる。   FIG. 35 is a flowchart showing details of the pattern matching exception process in step 3406 described above. First, text information of matching candidates is acquired (3501). The text information to be acquired includes drawing position information and font information of text data drawn on the original as described above. Matching exception processing is performed from the text information acquired in the previous step. First, it is determined whether or not the coordinates are different from the text information set as a matching target (3502). The coordinates indicated here are rotation / distortion of coordinates. If the text coordinates of the matching candidate are different from the text coordinates to be matched, matching is performed without performing grouping. Therefore, the text information set as a matching candidate is deleted (3505). Next, it is determined whether or not the horizontal scaling takes a negative value for the matching candidate text information (3503). This determination is to determine whether the horizontal scaling of the text is reversed between positive and negative in the text information to be matched and the text information of the matching candidate, because the text information to be matched has a negative value. If there is, the determination is YES even if the matching candidate text is a positive value. If it is determined that the horizontal scaling value is reversed, matching is performed without grouping. Therefore, the text information set as a matching candidate is deleted (3505). Finally, it is determined whether or not the matching candidate text information is different from the text information to be matched with the text rendering mode. The text rendering mode is a parameter for setting a character drawing method, and is for obtaining a special effect such as white color or different colors for outline and paint. If it is determined that the text rendering mode is different, matching is performed without performing grouping. Therefore, the text information set as a matching candidate is deleted (3505). After the above exception processing is performed, only text information that does not apply to all is stored as matching candidate text information. After exiting this flowchart, the process proceeds to step 3407 in the flowchart of FIG. 34 to perform processing. As a result, as a result of processing the matching condition flowchart of FIG. 34 and the matching exception processing flowchart of FIG. And matched as one text object.

図36は、上述したテキストパターンマッチングのUI例を示している。原稿ページ(1606)上に、文字列(3601−3607)が描画されている。マウスポインタ1903を用いて原稿上の位置を指定する。図37は図36の文字列3601についてパターンマッチングを行った例を示している。上述したパターンマッチング処理を行うと、3701のように1テキストオブジェクトとして“あいうえお”が編集対象としてマッチングされる。図38は図36の文字列3602についてパターンマッチングを行った例を示している。文字列3602は“う”(3802)のフォント属性が他の文字と異なっている。パターンマッチング処理を行うと、3801のように1テキストオブジェクトとして“あいうえお”が編集対象としてマッチングされる。図39は図36の文字列3603についてパターンマッチングを行った例を示している。文字列3603は“う”(3902)の座標が回転されている。パターンマッチングを行うと、“あい”(3901)が1テキストオブジェクトとしてマッチングされ、座標が異なる“う”(3903)が1テキストオブジェクトとしてマッチングされ、残りの“えお”(3904)が1テキストオブジェクトとしてマッチングされる。図40は図36の文字列3604についてパターンマッチングを行った例を示している。文字列3604は“う”(4001)が他の文字の水平スケーリングとは異なっている。ただし、スケーリングの値はともに正である。パターンマッチングを行うと、“あいうえお”(4002)が1テキストオブジェクトとしてマッチングされる。図41は図36の文字列3605についてパターンマッチングを行った例を示している。文字列3605は“う”(4102)のY座標が他の文字と異なる。パターンマッチングを行なうと、“あい”(4101)が1テキストオブジェクトとしてマッチングされ、Y座標が異なる“う”(4103)が1テキストオブジェクトとしてマッチングされ、残りの“えお”(4104)が1テキストオブジェクトとしてマッチングされる。図42は図36の文字列3606についてパターンマッチングを行った例を示している。文字列3606は“う”(4202)のテキストレンダリングモードが他の文字と異なる。パターンマッチングを行なうと、“あい”(4201)が1テキストオブジェクトとしてマッチングされ、レンダリングモードの異なる“う”(4203)が1テキストオブジェクトとしてマッチングされ、残りの“えお”が1テキストオブジェクトとしてマッチングされる。   FIG. 36 shows an example of the text pattern matching UI described above. A character string (3601-3607) is drawn on the document page (1606). A position on the document is designated using the mouse pointer 1903. FIG. 37 shows an example in which pattern matching is performed on the character string 3601 in FIG. When the above-described pattern matching processing is performed, “Aiueo” is matched as an edit target as one text object as in 3701. FIG. 38 shows an example in which pattern matching is performed on the character string 3602 of FIG. The character string 3602 is different from other characters in the font attribute of “U” (3802). When the pattern matching process is performed, “aiueo” is matched as an edit target as one text object as in 3801. FIG. 39 shows an example in which pattern matching is performed on the character string 3603 in FIG. In the character string 3603, the coordinates of “U” (3902) are rotated. When pattern matching is performed, “Ai” (3901) is matched as one text object, “U” (3903) with different coordinates is matched as one text object, and the remaining “Eo” (3904) is one text object. As matched. FIG. 40 shows an example in which pattern matching is performed on the character string 3604 of FIG. The character string 3604 is different from the horizontal scaling of other characters in “U” (4001). However, both scaling values are positive. When pattern matching is performed, “Aiueo” (4002) is matched as one text object. FIG. 41 shows an example in which pattern matching is performed on the character string 3605 of FIG. The character string 3605 is different from other characters in the Y coordinate of “U” (4102). When pattern matching is performed, “Ai” (4101) is matched as one text object, “Y” (4103) having a different Y coordinate is matched as one text object, and the remaining “Eo” (4104) is one text. Matched as an object. FIG. 42 shows an example in which pattern matching is performed on the character string 3606 of FIG. The character string 3606 is different from other characters in the text rendering mode of “U” (4202). When pattern matching is performed, “Ai” (4201) is matched as one text object, “U” (4203) with different rendering modes is matched as one text object, and the remaining “Eo” is matched as one text object. Is done.

図43は実際の原稿ファイルのサンプルデータにおけるパターンマッチングの例を示している。文書データを上述したパターンマッチング処理を行うことによって、グループ化されて編集対象としてマッチングされる。パターンマッチングの条件を満たしていれば、4301で示すように1行のテキストデータとしてマッチングされ、ユーザにとって編集作業を行い易いかたちとなる。   FIG. 43 shows an example of pattern matching in sample data of an actual document file. By performing the above-described pattern matching process on document data, the document data is grouped and matched as an editing target. If the pattern matching condition is satisfied, it is matched as one line of text data as indicated by reference numeral 4301 so that the user can easily perform editing work.

本実施形態のスタンドアロン型の文書処理システムのソフトウェア構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a software configuration example of a stand-alone document processing system according to the present exemplary embodiment. 本実施形態の文書処理システムを実現するハードウェア構成例を示すブロック図である。It is a block diagram which shows the hardware structural example which implement | achieves the document processing system of this embodiment. ブックファイルの構造の一例を示す図である。It is a figure which shows an example of the structure of a book file. ブック属性の一覧を示す図である。It is a figure which shows the list of book attributes. 章属性の一覧を示す図である。It is a figure which shows the list of chapter attributes. ページ属性の一覧を示す図である。It is a figure which shows the list of page attributes. ブックファイルを開く手順例を示すフローチャートである。It is a flowchart which shows the example of a procedure which opens a book file. 電子原稿ファイルをブックファイルにインポートする手順例を示すフローチャートである。It is a flowchart which shows the example of a procedure which imports an electronic manuscript file into a book file. 図8のステップ801に示すアプリケーションデータを電子原稿ファイルに変換する手順例を示すフローチャートである。FIG. 9 is a flowchart illustrating an exemplary procedure for converting application data shown in Step 801 of FIG. 8 into an electronic document file. FIG. 製本アプリケーションのUI画面である。It is a UI screen of a bookbinding application. 新規にブックファイルが作成された際のUI画面である。It is a UI screen when a book file is newly created. クライアントサーバ型の文書処理システムのソフトウェア構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a software configuration example of a client server type document processing system. ステイプル制御システムの構成を示すブロック図である。It is a block diagram which shows the structure of a staple control system. 本発明の原稿エディタの起動の例を示すUI画面である。It is a UI screen showing an example of activation of the manuscript editor of the present invention. 原稿エディタの起動手順を示すフローチャートである。It is a flowchart which shows the starting procedure of a manuscript editor. 原稿エディタのメインUI画面を示している。The main UI screen of the manuscript editor is shown. テキスト編集におけるテキストオブジェクトの選択を示す図である。It is a figure which shows selection of the text object in text editing. テキスト編集を実行する手順を示すフローチャートである。It is a flowchart which shows the procedure which performs a text edit. テキスト編集におけるテキストの追加を示す図である。It is a figure which shows the addition of the text in text editing. テキスト編集におけるテキストの削除を示す図である。It is a figure which shows the deletion of the text in text editing. テキスト編集におけるテキストボックス作成を示す図である。It is a figure which shows the text box creation in text editing. テキストボックスの編集手順を示すフローチャートである。It is a flowchart which shows the edit procedure of a text box. テキストボックスへのテキスト追加を示す図である。It is a figure which shows the text addition to a text box. イメージ編集におけるイメージ挿入メニューの例を示す図である。It is a figure which shows the example of the image insertion menu in image editing. イメージ編集におけるイメージの挿入の例を示す図である。It is a figure which shows the example of the insertion of the image in image editing. イメージ編集におけるイメージの回転の例を示す図である。It is a figure which shows the example of the rotation of the image in image editing. イメージの挿入手順を示すフローチャートである。It is a flowchart which shows the insertion procedure of an image. イメージ編集におけるイメージ書き出しメニューの例を示す図である。It is a figure which shows the example of the image export menu in image editing. イメージの書き出し手順を示すフローチャートである。It is a flowchart which shows the writing-out procedure of an image. オブジェクト編集における楕円作成メニューの例を示す図である。It is a figure which shows the example of the ellipse creation menu in object editing. オブジェクト編集における楕円作成の例を示す図である。It is a figure which shows the example of ellipse creation in object editing. オブジェクト編集における新規作成順を示すフローチャートである。It is a flowchart which shows the new creation order in object edit. 本発明の実施例におけるパターンマッチングの全体手順を示すフローチャートである。It is a flowchart which shows the whole procedure of the pattern matching in the Example of this invention. パターンマッチングの全体手順の中のパターンマッチング条件判定の手順を示すフローチャートである。It is a flowchart which shows the procedure of pattern matching condition determination in the whole procedure of pattern matching. パターンマッチング条件判定の手順の中のパターンマッチング例外処理手順を示すフローチャートである。It is a flowchart which shows the pattern matching exception process procedure in the procedure of pattern matching condition determination. 原稿データ内のテキストデータの例を示す図である。It is a figure which shows the example of the text data in original data. 一般のテキストデータに対するパターンマッチングの例を示した図である。It is the figure which showed the example of the pattern matching with respect to general text data. フォント属性が異なるテキストデータに対するパターンマッチングの例を示した図である。It is the figure which showed the example of the pattern matching with respect to the text data from which a font attribute differs. 文字方向が異なるテキストデータに対するパターンマッチングの例を示した図である。It is the figure which showed the example of the pattern matching with respect to the text data from which a character direction differs. 水平スケーリングが異なるテキストデータに対するパターンマッチングの例を示した図である。It is the figure which showed the example of the pattern matching with respect to the text data from which horizontal scaling differs. Y座標の異なるテキストデータに対するパターンマッチングの例を示した図である。It is the figure which showed the example of the pattern matching with respect to the text data from which a Y coordinate differs. テキストレンダリングモードが異なるテキストデータに対するパターンマッチングの例を示した図である。It is the figure which showed the example of the pattern matching with respect to the text data from which a text rendering mode differs. 原稿ファイルにおけるテキストパターンマッチングの例を示した図である。It is the figure which showed the example of the text pattern matching in a manuscript file.

符号の説明Explanation of symbols

100 ホストコンピュータ
107 プリンタ
201 CUP
202 RAM
203 ROM
204 システムバス
207 ディスクコントローラ
100 Host computer 107 Printer 201 CUP
202 RAM
203 ROM
204 System bus 207 Disk controller

Claims (8)

スキャナから読み取った画像からなるページと、電子原稿からなるページの二種類のページに対して、表示・印刷・製本指示を行うシステムで、システム内に取り込んだ原稿内の各描画データを修正可能な原稿編集手段と、前記原稿編集手段には、描画データを新規作成することも可能にしている原稿編集手段と、前記手段はユーザが選択したページを対象に起動させることが可能な原稿編集手段を有する文書処理システムにおいて、前記原稿編集手段には原稿上に描画されているテキストデータを、所定の条件に従って認識するテキストオブジェクト認識手段をもつことを特徴とする文書管理システム。   A system that provides display, printing, and bookbinding instructions for two types of pages: images consisting of images read from a scanner and pages consisting of electronic manuscripts. Each drawing data contained in the system can be modified. The original editing means, the original editing means includes original editing means that can newly create drawing data, and the means includes original editing means that can be activated for a user-selected page. A document management system comprising: a text object recognizing unit for recognizing text data drawn on a manuscript in accordance with a predetermined condition. 前記テキストオブジェクト認識手段は、原稿上に描画されているテキストデータに対して、連続したテキスト情報のみを認識することを特徴とする請求項1に記載の文書管理システム。   2. The document management system according to claim 1, wherein the text object recognition means recognizes only continuous text information for text data drawn on a document. 前記テキストオブジェクト認識手段は、原稿上に描画されているテキストデータに対して、Y座標の等しいテキストデータのみを認識することを特徴とする請求項1または2に記載の文書管理システム。   The document management system according to claim 1, wherein the text object recognition unit recognizes only text data having the same Y coordinate with respect to text data drawn on a document. 前記テキストオブジェクト認識手段は、原稿上に描画されているテキストデータに対して、テキストデータ間にテキスト以外のオブジェクトが存在しないときのみ認識することを特徴とする請求項1乃至3のいずれかに記載の文書管理システム。   4. The text object recognizing means recognizes text data drawn on a document only when no object other than text exists between the text data. Document management system. 前記テキストオブジェクト認識手段は、原稿上に描画されているテキストデータに対して、所定の条件においてはテキストオブジェクトとして認識されないように制御することを特徴とする請求項1乃至4のいずれかに記載の文書管理システム。   5. The text object recognizing unit controls the text data drawn on the original so as not to be recognized as a text object under a predetermined condition. Document management system. 前記テキストオブジェクト認識手段は、原稿上に描画されているテキストデータに対して、テキストデータの座標に回転・歪みがある場合は、テキストオブジェクトとして認識しないことを特徴とする請求項5に記載の文書管理システム。   6. The document according to claim 5, wherein the text object recognizing means does not recognize the text data drawn on the document as a text object when the coordinates of the text data are rotated or distorted. Management system. 前記テキストオブジェクト認識手段は、原稿上に描画されているテキストデータに対して、テキストデータの水平スケーリングが負の値をとる場合は、テキストオブジェクトとして認識しないことを特徴とする請求項5または6に記載の文書管理システム。   7. The text object recognition unit according to claim 5, wherein the text object recognition unit does not recognize the text data when the horizontal scaling of the text data takes a negative value with respect to the text data drawn on the document. Document management system described. 前記テキストオブジェクト認識手段は、原稿上に描画されているテキストデータに対して、テキストのレンダリングモードが異なる場合は、テキストオブジェクトとして認識しないことを特徴とする請求項5乃至7に記載の文書管理システム。   8. The document management system according to claim 5, wherein the text object recognition unit does not recognize the text data drawn on the document as a text object when the text rendering mode is different. .
JP2004284347A 2004-09-29 2004-09-29 Document processing system Withdrawn JP2006099400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004284347A JP2006099400A (en) 2004-09-29 2004-09-29 Document processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004284347A JP2006099400A (en) 2004-09-29 2004-09-29 Document processing system

Publications (1)

Publication Number Publication Date
JP2006099400A true JP2006099400A (en) 2006-04-13

Family

ID=36239151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004284347A Withdrawn JP2006099400A (en) 2004-09-29 2004-09-29 Document processing system

Country Status (1)

Country Link
JP (1) JP2006099400A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018507492A (en) * 2015-11-12 2018-03-15 シャオミ・インコーポレイテッド Method, apparatus, program, and recording medium for creating graphical user interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018507492A (en) * 2015-11-12 2018-03-15 シャオミ・インコーポレイテッド Method, apparatus, program, and recording medium for creating graphical user interface
US10108323B2 (en) 2015-11-12 2018-10-23 Xiaomi Inc. Method and device for drawing a graphical user interface

Similar Documents

Publication Publication Date Title
JP4136634B2 (en) Document processing apparatus and method
JP4817556B2 (en) Information processing apparatus, document processing method and program in information processing apparatus
US8218190B2 (en) Document processing apparatus and method
US7882432B2 (en) Information processing apparatus having font-information embedding function, information processing method therefor, and program and storage medium used therewith
JP3937778B2 (en) Information processing apparatus and method
US7685517B2 (en) Image editing of documents with image and non-image pages
JP4756870B2 (en) Document processing apparatus, document processing method, and program
JP3962721B2 (en) Document processing apparatus and document processing method
JP5049515B2 (en) Information processing apparatus, information processing method, and information processing program
JP4564693B2 (en) Document processing apparatus and method
JP4185899B2 (en) Document processing method and system
US20030056176A1 (en) Document processing method and apparatus, and print control method and apparatus
JP4095512B2 (en) Document conversion method and apparatus
JP5409124B2 (en) Information processing apparatus, control method, and program
JP5341388B2 (en) Document processing apparatus and document processing method
JP2006107142A (en) Document processor, and method
JP2006293598A (en) Document processing system
JP4095269B2 (en) Information processing method, information processing apparatus, and printing apparatus
JP2007172247A (en) Information processor, information processing method and information processing program
JP4799253B2 (en) Information processing apparatus and processing method thereof
JP2007128325A (en) Printing control apparatus and means therefor
JP2006202025A (en) Document processing method, print control method, and its system
JP2010113596A (en) Document processing system
JP2006099400A (en) Document processing system
JP2013161459A (en) Document processing method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071204