JP2589323B2 - Document creation device - Google Patents

Document creation device

Info

Publication number
JP2589323B2
JP2589323B2 JP62262393A JP26239387A JP2589323B2 JP 2589323 B2 JP2589323 B2 JP 2589323B2 JP 62262393 A JP62262393 A JP 62262393A JP 26239387 A JP26239387 A JP 26239387A JP 2589323 B2 JP2589323 B2 JP 2589323B2
Authority
JP
Japan
Prior art keywords
format
document
data
page
unit
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.)
Expired - Lifetime
Application number
JP62262393A
Other languages
Japanese (ja)
Other versions
JPH01103451A (en
Inventor
敏則 福田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP62262393A priority Critical patent/JP2589323B2/en
Publication of JPH01103451A publication Critical patent/JPH01103451A/en
Application granted granted Critical
Publication of JP2589323B2 publication Critical patent/JP2589323B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J21/00Column, tabular or like printing arrangements; Means for centralising short lines

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】 技術分野 この発明は、日本語ワードプロセツサ等の文書作成装
置における袋とじ印刷の書式制御処理に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a format control process for binding and printing in a document creation device such as a Japanese word processor.

従来技術 一般に、日本語ワードプロセツサ等の文書作成装置に
おいて袋とじ印刷処理を行なう場合は、1枚の用紙に印
刷される2頁分のデータについて右頁に相当する部分の
書式の右マージンと左マージンを入れ替えることにより
行なわれていた。
2. Description of the Related Art In general, when a binding process is performed in a document creation device such as a Japanese word processor, the right margin of the format corresponding to the right page is used for two pages of data printed on one sheet. This was done by swapping the left margin.

これは1つの文書に対して書式(特に右マージンと左
マージン)が一定あつたためである。しかし、今後の日
本語ワードプロセツサ等においては、1頁単位で書式
(特に右マージンと左マージンを含む)を変更できるよ
うになる。
This is because the format (particularly the right margin and left margin) is fixed for one document. However, in a future Japanese word processor or the like, the format (especially including the right margin and the left margin) can be changed in units of one page.

例えば、オペレータが袋とじの右頁になることを意識
して右頁に相当する頁の書式を設定し、袋とじ印刷を行
なうと、自動的に右頁の左右マージンを入れ替えてしま
い、オペレータが設定した文書イメージどおりの文書は
印刷されないという欠点がある。
For example, when the operator sets the format of the page corresponding to the right page with awareness of the right page of the binding and performs binding printing, the right and left margins of the right page are automatically replaced, and There is a disadvantage that a document according to the set document image is not printed.

目的 この発明は上記の点に鑑みてなされたものであり、日
本語ワードプロセツサ等の文書作成装置において、オペ
レータが設定した書式を尊重して文書の袋とじ印刷を行
なえるようにすることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described circumstances, and an object of the present invention is to enable a document creation device such as a Japanese word processor to perform document binding printing while respecting a format set by an operator. Aim.

構成 この発明は上記の目的を達成するため、各種の文字及
び制御情報等を入力する入力装置と、入力した文字を表
示する表示装置と、入力した文字を格納する記憶装置
と、入力した文字を印刷する印刷装置を具備し、文章を
印刷する際の書式条件を予め設定できる文書作成装置に
おいて、 袋とじ印刷を指定する袋とじ印刷指定手段と、文書フ
アイル記憶部より書式データ,文書データ,書式ポイン
タを読み込む文書フアイル読込手段と、該読込手段によ
り読み込まれた奇数ページの書式ポインタと偶数ページ
の書式ポインタを比較する比較手段と、該比較手段によ
り比較した結果同じ書式データであれば偶数ページの左
右マージンを入れ替え、違う書式データであれば左右マ
ージンを入れ替えずに2頁分の頁データを1枚の用紙に
印刷できるようにイメージデータに展開するテキスト展
開手段と、該テキスト展開手段により展開されたイメー
ジデータをプリンタへ出力するプリンタ出力手段とを備
えものである。
To achieve the above object, the present invention provides an input device for inputting various characters and control information, a display device for displaying the input characters, a storage device for storing the input characters, and a device for storing the input characters. A document preparation apparatus comprising a printing device for printing and capable of setting in advance format conditions for printing a sentence, a bag binding printing designating means for designating bag binding printing, and format data, document data, and format from a document file storage unit. A document file reading means for reading the pointer; a comparing means for comparing the odd-numbered page format pointer and the even-numbered page format pointer read by the reading means; Swap the left and right margins and print two pages of page data on one sheet without swapping the left and right margins for different format data. Text development means for developing the image data as, but a printer output means for outputting the image data developed by said text developing means to the printer.

以下、この発明の一実施例に基づいて具体的に説明す
る。
Hereinafter, a specific description will be given based on an embodiment of the present invention.

第4図は、この発明を実施した文書作成装置であるワ
ードプロセツサの一例を示す外観斜視図である。
FIG. 4 is an external perspective view showing an example of a word processor which is a document creation device embodying the present invention.

このワードプロセツサは、入力装置として各種の文字
情報と文書登録指示,文書更新指示等の制御情報などを
入力するキーボード(以下「入力部」とも云う)1と、
ポインテイング・デバイス2と、原稿等を読み取るイメ
ージスキヤナ3とを備えている。また、出力装置として
各種情報を表示する表示装置としてのCRTディスプレイ
装置(以下単に「表示装置」ともいう)4と、各種情報
をプリントアウトする印刷装置としてのレーザプリンタ
5とを備えている。さらに記憶装置として本体6内にフ
ロツピデイスク装置(FDD)7及びハードデイスク装置
(HDD)8を備えている。
The word processor includes a keyboard (hereinafter, also referred to as an "input unit") 1 as an input device for inputting various types of character information and control information such as a document registration instruction and a document update instruction.
A pointing device 2 and an image scanner 3 for reading a document or the like are provided. Further, a CRT display device (hereinafter, also simply referred to as a “display device”) 4 as a display device for displaying various information as an output device, and a laser printer 5 as a printing device for printing out various information are provided. Further, a floppy disk drive (FDD) 7 and a hard disk drive (HDD) 8 are provided in the main body 6 as storage devices.

第5図は、この文書作成装置の制御部を示すブロツク
図である。
FIG. 5 is a block diagram showing a control unit of the document creating apparatus.

この制御部10のマイクロプロセツサ(CPU)11は、例
えばCPU,ROM,RAM等を含む16ビツトマイクロプロセツサ
で構成されている。このマイクロプロセツサ11はこの文
書作成装置全体の制御を司り、メインメモリ12に格納し
たプログラムに従つて各種の表示制御,印刷制御,入力
制御,文書作成編集制御,印刷位置入力制御等を実行す
る。
The microprocessor (CPU) 11 of the control unit 10 is constituted by a 16-bit microprocessor including a CPU, a ROM, a RAM, and the like, for example. The microprocessor 11 controls the entire document creating apparatus and executes various display controls, print controls, input controls, document creating / editing controls, print position input controls, and the like according to programs stored in the main memory 12. .

メインメモリ12は、起動時にフロツプデイスク装置
(FDD)7又はハードデイスク装置(HDD)8からロード
されるオペレーテイングシステム等の常駐プログラムを
格納するシステム領域(常駐領域),非常駐プログラム
を格納する非常駐領域及び各種のデータを格納するデー
タエリア,プログラム実行のためのワーキングエリアを
構成するRAM等からなる。
The main memory 12 includes a system area (resident area) for storing a resident program such as an operating system loaded from a floppy disk drive (FDD) 7 or a hard disk drive (HDD) 8 at startup, a non-resident area for storing a non-resident program, and And a RAM which constitutes a working area for executing a program.

キーボードインタフエース(I/F)13は、キーボード
1からのキー情報の入力を司る。
A keyboard interface (I / F) 13 controls input of key information from the keyboard 1.

ポインテイングデバイス・インタフエース14は、ポイ
ンテイング・デバイス2からのXパルス,Yパルスに基づ
いて移動方向,移動量並びに移動速度を検出する。
The pointing device interface 14 detects a moving direction, a moving amount, and a moving speed based on the X pulse and the Y pulse from the pointing device 2.

なお、この等のキーボード1/F13及びポインテイング
・デバイスI/F14はインプツトコントローラとしてまと
めて構成することもできる。
Note that the keyboard 1 / F13 and the pointing device I / F14 can be collectively configured as an input controller.

スキヤナインタフエース15は、イメージスキヤナ3か
らの読み取りデータの入力を司る。
The scanner interface 15 controls input of read data from the image scanner 3.

CRTコントローラ16は、ビツトマツプメモリを内蔵
し、これに格納されている表示データと後述するビツト
マツプメモリ20に格納されている表示データの何れも取
り込んでCRTデイスプレイ装置4の表示を制御する。
The CRT controller 16 has a built-in bit map memory, and fetches both display data stored in the bit map memory and display data stored in a bit map memory 20, which will be described later, and controls the display of the CRT display device 4.

プリンタコントローラ17は、プリンタ5の制御を司
る。
The printer controller 17 controls the printer 5.

フロツピデイスクコントローラ(FDC)18はフロツピ
デイスクドライブ装置(FDD)7に対するデータの書込
み及び読出し制御を司る。
A floppy disk controller (FDC) 18 controls writing and reading of data to and from the floppy disk drive (FDD) 7.

ハートデイスクコントローラ(HDC)19は、ハードデ
イスクドライブ装置8に対するデータの書込み及び読出
し制御を司る。
A heart disk controller (HDC) 19 controls writing and reading of data to and from the hard disk drive 8.

ビツト・マツプメモリ20はイメージスキヤナ3からの
原稿画像データを入力して、それをビツト・マツプに展
開して格納する。
The bit map memory 20 receives the original image data from the image scanner 3 and develops and stores it in the bit map.

次に、第1図にこの発明の一実施例を示す文書作成装
置の袋とじ印刷の書式制御に係わる部分のシステム構成
の概要を示すブロツク図である。
Next, FIG. 1 is a block diagram showing an outline of a system configuration of a portion relating to form control of binding printing in a document creating apparatus according to an embodiment of the present invention.

この袋とじ印刷の書式制御に係わる部分は、入力部21
と頁展開処理部22及び頁展開処理部22内に含まれる書式
処理部23と印刷処理部24とプリンタ25と文書フアイル記
憶部26により構成されている。
The part related to the format control of the binding printing is input unit 21.
And a page processing unit 22, a format processing unit 23, a print processing unit 24, a printer 25, and a document file storage unit 26 included in the page processing unit 22.

同図において、入力部21は前記第4図及び第5図のキ
ーボード1であり、頁展開処理部22及びこの頁展開処理
部22内に含まれる書式処理部23と印刷処理部24は、第5
図のマイクロプロセツサ(CPU)11がこれらの機能を司
り、プリンタ25は第4図及び第5におけるプリンタ5で
あり、文書フアイル記憶部26はFDD7またはHDD8である。
4, an input unit 21 is the keyboard 1 shown in FIGS. 4 and 5, and a page expansion processing unit 22 and a format processing unit 23 and a print processing unit 24 included in the page expansion processing unit 22 are configured as shown in FIG. 5
The microprocessor (CPU) 11 in the figure controls these functions, the printer 25 is the printer 5 in FIGS. 4 and 5, and the document file storage unit 26 is the FDD 7 or the HDD 8.

次に第2図は、この実施例における文書データを袋と
じ印刷する文書フアイルの構成の一例を示したものであ
る。
Next, FIG. 2 shows an example of the configuration of a document file in which document data is printed in a closed state in this embodiment.

同図において書式ポインタの数字は、同じ番号の書式
データを示し、全く同一の書式データは、存在しない。
書式ポインタは各頁に存在するのではなく、書式の変更
のある頁のみに存在する。
In the figure, the number of the format pointer indicates the format data of the same number, and there is no completely the same format data.
The format pointer does not exist on each page, but only on the page whose format is changed.

ここで、書式データとは、用紙サイズ(例えばA3又は
A4等),用紙方向(縦長又は横長),左右マージン(mm
単位)のみとし、例えばこの第2図における書式データ
1及び2は、次のように設定されているものとする。
Here, the format data is a paper size (for example, A3 or
A4, etc.), paper direction (portrait or landscape), left / right margin (mm
2), for example, format data 1 and 2 in FIG. 2 are set as follows.

書式データ1:A4,縦長,左マージン100mm右マージン20mm 書式データ2:A4,縦長,左マージン20mm,右マージン50mm 第3図は、この実施例の袋とじ印刷の書式制御に係わ
る部分の機能構成を示すブロツク図であり、第1図のシ
ステム構成ブロツク図を、さらに詳細な機能部分として
示したものである。
Format data 1: A4, portrait, left margin 100mm, right margin 20mm Format data 2: A4, portrait, left margin 20mm, right margin 50mm Fig. 3 shows the functional configuration of the format control of the binding printing of this embodiment. FIG. 2 is a block diagram showing the system configuration block diagram of FIG. 1 as a more detailed functional part.

この袋とじ印刷の書式制御に係わる部分の機能構成
は、入力部21と、文書フアイル記憶部26,文書フアイル
読出部27,頁カウンタ28,書式ポインタレジスタ029,書式
ポインタレジスタ130,書式ポインタ比較部31,書式デー
タ格納部32,書式変換部33,テキスト展開部34及び印刷処
理部24,プリンタ25により構成されている。
The functional configuration of the part related to the format control of the binding printing includes an input unit 21, a document file storage unit 26, a document file reading unit 27, a page counter 28, a format pointer register 029, a format pointer register 130, and a format pointer comparison unit. The system includes a format data storage unit 32, a format conversion unit 33, a text development unit 34, a print processing unit 24, and a printer 25.

次に、これらの各構成要素の機能について説明する。 Next, the function of each of these components will be described.

入力部21は、キーボードで文書作成するための各種の
文字及び制御情報等を入力し、この発明に係る袋とじ印
刷の指定を行なう印刷指定手段としての機能も司る。
The input unit 21 also functions as a print designation unit that inputs various characters for creating a document, control information, and the like using a keyboard, and designates binding printing according to the present invention.

文書フアイル記憶部26は、第2図に示すような構成で
作成した文書を記憶し、これを文書フアイル読出部27に
出力する。
The document file storage unit 26 stores a document created with the configuration shown in FIG. 2, and outputs this to the document file reading unit 27.

文書フアイル読出部27は、文書フアイル読込手段であ
り、入力部21より袋とじ印刷の指示があると文書フアイ
ル記憶部26の書式ポインタを読み取り、これを書式ポイ
ンタレジスタ29または30に格納する。そして書式ポイン
タレジスタ29または30の示す書式データを書式データ格
納部32に格納する。
The document file reading unit 27 is a document file reading unit. When receiving an instruction to perform binding printing from the input unit 21, the document file reading unit 27 reads the format pointer of the document file storage unit 26 and stores it in the format pointer register 29 or 30. Then, the format data indicated by the format pointer register 29 or 30 is stored in the format data storage unit 32.

頁カウンタ28は、印刷する頁数をカウントすると共
に、左ページであるか右ページであるかを示す機能を司
る。また、入力部21より袋とじ印刷の指示があると文書
フアイル読出部27からの指示により、左ページを示すよ
うに「0」にリセツトする。また、右ページを示すとき
は「1」となる。
The page counter 28 has a function of counting the number of pages to be printed and indicating whether the page is a left page or a right page. Also, when there is an instruction to perform binding printing from the input unit 21, the instruction is reset to "0" so as to indicate the left page by the instruction from the document file reading unit 27. Also, it indicates "1" when indicating the right page.

書式ポインタレジスタ029は、文書フアイル読出部27
から第1頁目(奇数ページ)の書式ポインタを受取りこ
れを格納する。
The format pointer register 029 is provided in the document file reading unit 27.
And receives the format pointer of the first page (odd page) and stores it.

書式ポインタレジスタ130は、文書フアイル読出部27
から第2頁目(偶数ページ)の書式ポインタを受取りこ
れを格納する。
The format pointer register 130 stores the document file reading unit 27
And receives the format pointer of the second page (even numbered page) and stores it.

書式ポインタ比較部31は、書式ポインタレジスタ029
の内容と書式ポインタレジスタ130の内容を比較してそ
の結果をテキスト展開部34に出力する。即ちポインタの
比較手段である。
The format pointer comparison unit 31 includes a format pointer register 029
Is compared with the contents of the format pointer register 130, and the result is output to the text developing unit 34. That is, it is a pointer comparing means.

書式データ格納部32は印刷する頁の右マージン,左マ
ージン,用紙サイズ、たて長/よこ長の書式データを格
納している。
The format data storage unit 32 stores format data of a right margin, a left margin, a paper size, and a vertical / horizontal length of a page to be printed.

書式変換部33は、テキスト展開部34の指示により左右
の各頁の書式データを書式データ格納部32より取り出
し、これをテキスト展開部34に出力する。
The format conversion unit 33 extracts the format data of each of the left and right pages from the format data storage unit 32 according to the instruction of the text expansion unit 34, and outputs this to the text expansion unit 34.

テキスト展開部34は、文書フアイル読出部27からの文
書データと書式ポインタ比較部31からの左右の各頁の書
式比較データ及び書式変換部33からの書式データにより
文書データをイメージデータに展開するテキスト展開手
段である。
The text expanding unit 34 expands the document data into image data based on the document data from the document file reading unit 27, the format comparison data of the left and right pages from the format pointer comparing unit 31, and the format data from the format converting unit 33. It is a deployment means.

印刷処理部24は、プリンタ出力手段で、テキスト展開
部34から渡されたイメージデータをプリンタ25で印刷さ
せると共に、頁カウンタ28の内容を「0」にセツトす
る。
The print processing unit 24 causes the printer 25 to print the image data passed from the text development unit 34 by the printer output means, and sets the content of the page counter 28 to "0".

プリンタ25は、印刷処理部24の制御によりイメージデ
ータを用紙に印刷する。
The printer 25 prints the image data on paper under the control of the print processing unit 24.

次に、このような機能構成による袋とじ印刷の処理方
法を、文書フアイルの構成が第2図に示した例のように
なつており、その書式データ1,2が前述したように設定
されている場合について説明する。
Next, a processing method of binding and binding with such a functional configuration will be described. The configuration of the document file is as shown in FIG. 2, and the format data 1 and 2 are set as described above. Will be described.

まず、入力部21より袋とじ印刷を指示する入力がある
と、頁カウンタ28を「0」(左ページを示す)にリセツ
トし、文書フアイル読出部27は、文書フアイル記憶部26
の文書フアイルから1頁目の書式ポインタ1を読み取
る。そして読み取った書式ポインタの内容を、書式ポイ
ンタレジスタ029に格納する。更に書式ポインタレジス
タ029の示す書式データ1を書式データ格納部32へ格納
する。
First, when there is an input from the input unit 21 for instructing binding printing, the page counter 28 is reset to "0" (indicating the left page), and the document file reading unit 27 stores the document file storage unit 26.
The format pointer 1 of the first page is read from the document file. Then, the content of the read format pointer is stored in the format pointer register 029. Further, the format data 1 indicated by the format pointer register 029 is stored in the format data storage unit 32.

さらに、文書フアイル記憶部26より文書データを1頁
分読み取り、テキスト展開部34に渡す。テキスト展開部
34は、頁カウンタ28の内容が「0」であるのを確認し、
書式データを参照し、A3,横長のエリアの左半分(A4縦
長のエリア)に文書データをイメージに展開する。展開
を終えると頁カウンタ28に、右ページを示す「1」をセ
ツトする。
Further, the document data for one page is read from the document file storage unit 26 and passed to the text development unit 34. Text development section
34 confirms that the content of the page counter 28 is "0",
Referring to the format data, the document data is developed into an image in the left half (A4 portrait area) of the A3 landscape area. When the development is completed, "1" indicating the right page is set in the page counter 28.

次に、文書フアイル読出部27は、2頁目の書式ポイン
タを読み込むが存在しないため、書式ポインタレジスタ
130に書式ポインタレジスタ029の内容を書込み、書式デ
ータ格納部32へ書式ポインタレジスタ029の内容を格納
する。更に文書フアイル記憶部26より文書データを1頁
分読み取りテキスト展開部34へ渡す。
Next, the document file reading unit 27 reads the format pointer of the second page, but does not exist.
The contents of the format pointer register 029 are written into 130, and the contents of the format pointer register 029 are stored in the format data storage unit 32. Further, one page of document data is read from the document file storage unit 26 and passed to the text development unit 34.

テキスト展開部34は、頁カウンタ28の内容が「1」で
あるのを確認し、書式ポインタ比較部31を起動する。書
式ポインタ比較部31は書式ポインタレジスタ029と書式
ポインタレジスタ130の内容が同一であるのを確認し
て、テキスト展開部34へ戻る。
The text expansion unit 34 confirms that the content of the page counter 28 is “1”, and activates the format pointer comparison unit 31. The format pointer comparing unit 31 confirms that the contents of the format pointer register 029 and the format pointer register 130 are the same, and returns to the text developing unit 34.

テキスト展開部34は、左右頁の書式が同一であるた
め、書式変換部33より左右マージンの内容を入れ替えた
書式データを受取り、頁カウンタ28の内容が「1」であ
るので、A3横長のエリアの右半分(A4,縦長エリア)へ
文書データをイメージに展開する。
Since the format of the left and right pages is the same, the text developing unit 34 receives the format data in which the contents of the left and right margins are exchanged from the format conversion unit 33, and the content of the page counter 28 is "1". Expands the document data into an image in the right half (A4, portrait area) of

展開が終了すると、イメージデータを印刷処理部24へ
渡し、第1枚目を印刷する。そして頁カウンタ28の内容
を「0」にセツトする。
When the development is completed, the image data is transferred to the print processing unit 24, and the first sheet is printed. Then, the contents of the page counter 28 are set to "0".

次に、文書フアイル読出部27は、文書フアイル記憶部
26より3頁目の書式ポインタを読むが、書式ポインタが
存在しないため、書式ポインタレジスタ029に書式ポイ
ンタレジスタ130の内容を書き込み、書式データ格納部3
2へ書式データ1の内容を格納する。さらに文書フアイ
ル記憶部26より、文書データを1頁分読み取りテキスト
展開部34へ渡す。
Next, the document file reading section 27
The format pointer of the third page is read from 26, but since the format pointer does not exist, the contents of the format pointer register 130 are written into the format pointer register 029, and the format data storage unit 3
The contents of format data 1 are stored in 2. Further, one page of document data is read from the document file storage unit 26 and passed to the text development unit 34.

テキスト展開部34は、頁カウンタ28の内容が「0」で
あるのを確認し、書式データ1を参照して、A3,横長の
エリアの左半分(A4縦長のエリア)へ文書データをイメ
ージに展開する。展開を終えると頁カウンタ28を「1」
にセツトする。
The text expansion unit 34 checks that the content of the page counter 28 is "0", refers to the format data 1, and converts the document data into an image in the left half of the A3, landscape area (A4 portrait area). expand. When the development is completed, the page counter 28 is set to "1".
Set to

さらに文書フアイル読出部27は、文書フアイル記憶部
26より4頁の書式ポインタ2を読み取り、それを書式ポ
インタレジスタ130に格納し、書式ポインタレジスタ130
の示す書式データ2を書式データ格納部32へ格納する。
さらに、文書データを1頁分読み取つてテキスト展開部
34へ渡す。
Further, the document file reading unit 27 includes a document file storage unit.
26, the format pointer 2 of page 4 is read, and stored in the format pointer register 130;
Is stored in the format data storage unit 32.
Further, one page of the document data is read and a text developing unit is read.
Pass to 34.

テキスト展開部34は、頁カウンタ28の内容が「1」で
あるのを確認し、書式ポインタ比較部31を起動する。書
式ポインタ比較部31は書式ポインタレジスタ029と書式
ポインタレジスタ130の内容が同一でないことを確認し
て、テキスト展開部34へ戻る。テキスト展開部34は、左
右頁の書式が同一でないため、書式データ格納部32の書
式データを参照し、頁カウンタ28の内容が「1」である
ため、A3,横長のエリアの右半分(A4,縦長のエリア)へ
文書データをイメージに展開する。
The text expansion unit 34 confirms that the content of the page counter 28 is “1”, and activates the format pointer comparison unit 31. The format pointer comparing unit 31 confirms that the contents of the format pointer register 029 and the format pointer register 130 are not the same, and returns to the text developing unit 34. The text developing unit 34 refers to the format data in the format data storage unit 32 because the formats of the left and right pages are not the same, and since the content of the page counter 28 is “1”, A3, the right half (A4 , Vertically expand the document data into an image.

展開が終了すると、イメージデータを印刷処理部24へ
渡し、第2枚目を印刷する。そして頁カウンタ28の内容
を「0」にセツトする。
When the development is completed, the image data is transferred to the print processing unit 24, and the second sheet is printed. Then, the contents of the page counter 28 are set to "0".

次に文書フアイル読出部27は、文書フアイル記憶部26
より5頁6の書式ポインタを読むが、5頁が存在しない
ので袋とじ印刷の処理を終了する。
Next, the document file reading section 27
The format pointer for page 5 and page 6 is read, but since there are no pages 5, the binding print process ends.

次に、第6図のフローチヤートにより、上記の袋とじ
印刷の処理方法を説明する。
Next, a processing method of the above-described binding printing will be described with reference to the flowchart of FIG.

まず、頁カウンタ28のリセツトをする。そしてポイン
タを読み取る。このとき頁が存在するかどうかをチエツ
クし、NOであれば袋とじ印刷は終了であり、YESであれ
ば書式ポインタが存在するか否かをチエツクする。
First, the page counter 28 is reset. Then, the pointer is read. At this time, it is checked whether or not a page exists. If NO, the stapling printing is completed, and if YES, it is checked whether or not a format pointer exists.

YESであれば、次に頁カウンタ28の内容が「0」か
「1」かをチエツクする。まず「0」の場合は、書式ポ
インタレジスタ0に読み取つた内容を書き込む。そして
書式ポインタレジスタ0の示す書式データを書式データ
格納部32を格納する。
If YES, the page counter 28 is checked to see if it is "0" or "1". First, in the case of "0", the read content is written into the format pointer register 0. Then, the format data indicated by the format pointer register 0 is stored in the format data storage unit 32.

また、「1」の場合は、書式ポインタレジスタに読み
取つた内容を書き込む。そして書式ポインタレジスタ1
の示す書式データを書式データ格納部32に格納する。
In the case of "1", the read content is written to the format pointer register. And format pointer register 1
Is stored in the format data storage unit 32.

さきの書式ポインタが存在するか否かでNOの場合は、
次に頁カウンタ28の内容が「0」か「1」かをチエツク
する。まず「0」の場合は、書式ポインタレジスタ1の
内容を書式ポインタレジスタ0に書き込む。そして書式
ポインタレジスタ0の示す書式データを書式データ格納
部32に格納する。また、「1」の場合は、書式ポインタ
レジスタ0の内容を書式ポインタレジスタ1に書き込
む。そして、書式ポインタレジスタ1の示す書式データ
を書式データ格納部32に格納する。
If NO if the format pointer exists,
Next, it is checked whether the content of the page counter 28 is "0" or "1". First, in the case of "0", the contents of the format pointer register 1 are written into the format pointer register 0. Then, the format data indicated by the format pointer register 0 is stored in the format data storage unit 32. If the value is "1", the contents of the format pointer register 0 are written to the format pointer register 1. Then, the format data indicated by the format pointer register 1 is stored in the format data storage unit 32.

次に、1頁分の文書データを読み取る。そして頁カウ
ンタ28の内容が「0」か「1」かをチエツクする。まず
「0」の場合は、書式データの用紙サイズの1サイズ大
きな横長のサイズのエリアの左半分へ文書データをイメ
ージ展開する。そして頁カウンタ28を「1」にセツトし
て元に戻る。
Next, one page of document data is read. Then, it checks whether the content of the page counter 28 is "0" or "1". First, in the case of “0”, the document data is image-developed in the left half of the horizontally long area which is one size larger than the paper size of the format data. Then, the page counter 28 is set to "1" and the operation returns to the original state.

また、「1」の場合は、書式ポインタレジスタ0の内
容と書式ポインタレジスタ1の内容が同じか否かをチエ
ツクし、YESであれば書式データの左右マージンの内容
を入れ替える。
If "1", it is checked whether or not the contents of the format pointer register 0 and the contents of the format pointer register 1 are the same. If YES, the contents of the left and right margins of the format data are replaced.

また、NOであればそのままで、次に書式データの用紙
サイズの1サイズ大きな横長のサイズのエリアの右半分
へ文書データをイメージに展開する。そして印刷処理を
行ない。次に頁カウンタ28を「0」にセツトして元に戻
る。
If NO, the document data is developed into an image in the right half of a horizontally long area which is one size larger than the paper size of the format data. Then, a printing process is performed. Next, the page counter 28 is set to "0" and the operation returns to the original state.

次に第7図は、書式データ1,書式データ2の印刷イメ
ージを示したものである。
Next, FIG. 7 shows a print image of the format data 1 and the format data 2.

書式データ1は、左マージンが100mm,右マージンが20
mmであり、書式データ2は左マージンが20mm,右マージ
ンが50mmである。
Format data 1 has a left margin of 100 mm and a right margin of 20
mm, and the format data 2 has a left margin of 20 mm and a right margin of 50 mm.

第8図は、第2図に示した文書フアイルの文書を上記
の袋とじ印刷処理を行なつたときの印刷イメージを示す
ものである。
FIG. 8 shows a print image when the document file shown in FIG. 2 is subjected to the above-described binding printing process.

すなわち、1枚目の左ページは書式データ1で、左マ
ージンが100mm,右マージンが20mmである。
That is, the first left page is the format data 1, the left margin is 100 mm, and the right margin is 20 mm.

右ページも書式が同じであるから、左ページの左右マ
ージンを入れ替えて、右ページは左マージンが20mm,右
マージンが100mmとした印刷イメージである。
Since the format of the right page is the same, the left and right margins of the left page are switched, and the right page is a print image in which the left margin is 20 mm and the right margin is 100 mm.

2枚目は左ページが書式データ1で、左マージンが10
0mm,右マージンが20mmであり、右ページは書式データ2
であるから、左マージンが20mm,右マージンが50mmであ
る。
For the second sheet, the left page is format data 1 and the left margin is 10
0mm, right margin is 20mm, right page is format data 2
Therefore, the left margin is 20 mm and the right margin is 50 mm.

このように、左右のページの書式データが異なる場合
は、左右マージンを入れ替えないでそのまま印刷をす
る。
As described above, when the format data of the left and right pages is different, the printing is performed without changing the left and right margins.

第9図は、従来の袋とじ印刷処理方法による印刷イメ
ージを示したものである。
FIG. 9 shows a print image obtained by a conventional bag binding print processing method.

1枚目は、左右ページとも書式データ1で同じであ
り、右ページは左右マージンを入れ替えて印刷したもの
であ。2枚目は書式データ1と書式データ2で左右ペー
ジの書式が異なつているが、右ページの左右マージンを
入れ替えてしまうので、図示のような印刷イメージにな
つてしまう。
The first page has the same format data 1 for both the left and right pages, and the right page is printed with the left and right margins switched. On the second sheet, the format of the left and right pages is different between the format data 1 and the format data 2, but the left and right margins of the right page are exchanged, resulting in a printed image as shown in the figure.

このように、この発明による文書作成装置(ワードプ
ロセツサ)においては、左右の頁の書式を比較して、同
一書式の場合は従来通りに右頁の左右マージンを入れ替
え、同一でない場合は右頁の書式を変更せずに袋とじ印
刷を行なうことにより、頁単位に書式が設定された文書
の袋とじ印刷をも、そのマージン設定を尊重して、適切
に行なうことができる。
As described above, in the document creating apparatus (word processor) according to the present invention, the formats of the right and left pages are compared, and if the formats are the same, the right and left margins of the right page are replaced as before, and if they are not the same, the right page is replaced. Is performed without changing the format of the document, it is possible to appropriately perform the binding printing of a document in which the format is set for each page while respecting the margin setting.

効果 以上説明してきたように、この発明によれば、頁単位
で書式を設定することができる文書作成装置において、
オペレータの設定した書式を尊重した袋とじ印刷が可能
になる。
Effects As described above, according to the present invention, in a document creating apparatus capable of setting a format in page units,
Bag binding printing that respects the format set by the operator can be performed.

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

第1図はこの発明の一実施例を示す文書作成装置の袋と
じ印刷の書式制御に係わる部分のシステム構成の概要を
示すブロツク図、 第2図はこの実施例における文書データを袋とじ印刷す
る文書フアイルの構成の一例を示し説明図、 第3図はこの実施例の袋とじ印刷の書式制御に係わる部
分の機能構成を示すブロツク図、 第4図はこの発明を実施した文書作成装置であるワード
プロセツサの一例を示す外観斜視図、 第5図は同じくこの文書作成装置の制御部を示すブロツ
ク図、 第6図はこの実施例の袋とじ印刷の処理方法を示すフロ
ー図、 第7図は書式データ一,書式データ2の印刷イメージを
示す説明図、 第8図は第2図に示した文書フアイルの文書を袋とじ印
刷処理を行なつたときの印刷イメージを示す説明図、 第9図は従来の袋とじ印刷処理方法による印刷イメージ
を示した説明図である。 21…入力部(キーボード) 22…頁展開処理部、23…書式処理部 24…印刷処理部、25…プリンタ 26…文書フアイル記憶部 27…文書フアイル読出し部 28…頁カウンタ 29…書式ポインタレジスタ0 30…書式ポインタレジスタ1 31…書式ポインタ比較部 32…書式データ格納部 33…書式変換部、34…テキスト展開部
FIG. 1 is a block diagram showing an outline of a system configuration of a portion relating to form control of binding and printing of a document creating apparatus according to one embodiment of the present invention, and FIG. 2 is a binding and printing of document data in this embodiment. FIG. 3 is an explanatory diagram showing an example of the structure of a document file, FIG. 3 is a block diagram showing a functional structure of a portion relating to the format control of binding and printing in this embodiment, and FIG. 4 is a document creating apparatus embodying the present invention. FIG. 5 is a perspective view showing an example of a word processor, FIG. 5 is a block diagram showing a control unit of the document creating apparatus, FIG. 6 is a flow chart showing a method of binding and printing in this embodiment, FIG. FIG. 8 is an explanatory diagram showing a print image of format data 1 and format data 2; FIG. 8 is an explanatory diagram showing a print image when a document in the document file shown in FIG. The figure shows a conventional bag It is an explanatory diagram showing a print image by the print processing method. 21 ... Input unit (keyboard) 22 ... Page expansion processing unit, 23 ... Format processing unit 24 ... Print processing unit, 25 ... Printer 26 ... Document file storage unit 27 ... Document file reading unit 28 ... Page counter 29 ... Format pointer register 0 30: Format pointer register 1 31: Format pointer comparison unit 32: Format data storage unit 33: Format conversion unit, 34: Text development unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】各種の文字及び制御情報等を入力する入力
装置と、入力した文字を表示する表示装置と、前記入力
した文字を格納する記憶装置と、前記入力した文字を印
刷する印刷装置を具備し、文章を印刷する際の書式条件
を予め設定できる文書作成装置において、 袋とじ印刷を指定する袋とじ印刷指定手段と、文書フア
イル記憶部より書式データ,文書データ,書式ポインタ
を読み込む文書フアイル読込手段と、該読込手段により
読み込まれた奇数ページの書式ポインタと偶数ページの
書式ポインタを比較する比較手段と、該比較手段により
比較した結果同じ書式データであれば偶数ページの左右
マージンを入れ替え、違う書式データであれば左右マー
ジンを入れ替えずに2頁分の頁データを1枚の用紙に印
刷できるようにイメージデータに展開するテキスト展開
手段と、該テキスト展開手段により展開されたイメージ
データをプリンタへ出力するプリンタ出力手段とを備え
たことを特徴とする文書作成装置。
An input device for inputting various characters and control information, a display device for displaying input characters, a storage device for storing the input characters, and a printing device for printing the input characters are provided. A document preparation apparatus provided with a pre-set format condition for printing a document, a flap binding designation means for specifying flap binding printing, and a document file for reading format data, document data, and a format pointer from a document file storage unit. Reading means, comparing means for comparing the format pointer of the odd-numbered page and the format pointer of the even-numbered page read by the reading means; If the format data is different, the image data can be printed on one sheet of page data for two pages without changing the left and right margins. 1. A document creating apparatus, comprising: a text developing unit that expands image data into a printer; and a printer output unit that outputs image data expanded by the text expanding unit to a printer.
JP62262393A 1987-10-17 1987-10-17 Document creation device Expired - Lifetime JP2589323B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62262393A JP2589323B2 (en) 1987-10-17 1987-10-17 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62262393A JP2589323B2 (en) 1987-10-17 1987-10-17 Document creation device

Publications (2)

Publication Number Publication Date
JPH01103451A JPH01103451A (en) 1989-04-20
JP2589323B2 true JP2589323B2 (en) 1997-03-12

Family

ID=17375141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62262393A Expired - Lifetime JP2589323B2 (en) 1987-10-17 1987-10-17 Document creation device

Country Status (1)

Country Link
JP (1) JP2589323B2 (en)

Also Published As

Publication number Publication date
JPH01103451A (en) 1989-04-20

Similar Documents

Publication Publication Date Title
JP2589323B2 (en) Document creation device
JPS60141076A (en) Control system of printer
JP2744234B2 (en) Document processing device
JP3161744B2 (en) Information processing device
JPH05212916A (en) Printer device
JP2902736B2 (en) Multimedia data projector device
JPH06270496A (en) Document forming apparatus
JPH08156365A (en) Paging printer
JPH07168818A (en) Document preparing device
JPH08166944A (en) Document preparing device
JP2705192B2 (en) Document editing device
JPS63293077A (en) Character output device
JP4938556B2 (en) Image placement apparatus and image placement program
JPH05151216A (en) Document processor with frame editing function
JPH0196723A (en) Picture output device
JPH0441275A (en) Printing device
JPH05246076A (en) Printer
JPH08161308A (en) Document processor
JPH0424762A (en) Document processor with frame editing function
JPH08118739A (en) Print output device
JPH02289088A (en) Document processor
JPH05301485A (en) Apparatus for making document
JPH0764980A (en) Control method and device for preparing next page in document preparing device
JPH05210655A (en) Document preparing device
JPS63283955A (en) Recorder on both sides

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term