JPH0425571B2 - - Google Patents

Info

Publication number
JPH0425571B2
JPH0425571B2 JP57121824A JP12182482A JPH0425571B2 JP H0425571 B2 JPH0425571 B2 JP H0425571B2 JP 57121824 A JP57121824 A JP 57121824A JP 12182482 A JP12182482 A JP 12182482A JP H0425571 B2 JPH0425571 B2 JP H0425571B2
Authority
JP
Japan
Prior art keywords
line
character data
output
buffer
pitch
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
JP57121824A
Other languages
Japanese (ja)
Other versions
JPS5911439A (en
Inventor
Toshibumi Tako
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 JP57121824A priority Critical patent/JPS5911439A/en
Publication of JPS5911439A publication Critical patent/JPS5911439A/en
Publication of JPH0425571B2 publication Critical patent/JPH0425571B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [技術分野] 本発明は複数の領域に含まれ、それぞれ複数行
に渡り、行毎に可変の行ピツチの文字データを出
力する出力方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an output method for outputting character data included in a plurality of areas, each spanning a plurality of lines, and having a variable line pitch for each line.

[従来技術] 従来、複数の領域例えば左側頁、右側頁の同じ
行位置のそれぞれの1行を連続して出力する文字
処理装置はあつた(特開昭56−11583号公報、特
開昭48−27629号公報)。しかし、この方法では、
常に1頁目のn行目と2頁目のn行目は同一行位
置でしか出力されないという欠点があつた。従つ
て、複数の領域を有し、その1つの領域において
も行ピツチが複数種存在する場合における出力を
どの様に行うかについては、全く考慮されていな
かつたという欠点があつた。
[Prior Art] Conventionally, there have been character processing devices that continuously output one line at the same line position in a plurality of areas, for example, a left-hand page and a right-hand page (Japanese Patent Application Laid-open No. 11583-1983, Japanese Patent Application Laid-Open No. 11583-1983). -27629). However, with this method,
There was a drawback that the nth line of the first page and the nth line of the second page were always output only at the same line position. Therefore, there has been a drawback that no consideration has been given to how to perform output in the case where there are a plurality of areas and there are a plurality of types of line pitches even in one area.

[目的] 以上の点に鑑み、本発明の目的は、領域を複数
有し、それぞれの領域において、行毎に可変の行
ピツチの文字データの出力方法を提供することに
ある。
[Object] In view of the above points, an object of the present invention is to provide a method for outputting character data having a plurality of areas and having a variable line pitch for each line in each area.

以上の点に鑑み、本発明は、複数の領域に含ま
れ、それぞれ複数行に亘り、行毎に可変の行ピツ
チの文字データを、左右方向に並べて出力する
か、各領域それぞれ独立に、前記文字データを出
力するかを指示する指示情報を格納しておき、 前記指示情報が前者を指示する場合は、前記複
数の領域にそれぞれ含まれる文字データの、行方
向の出力位置を、前記行毎に可変の行ピツチに基
づいて導出し、 前記導出される前記出力位置に基づいて、前記
文字データを、左右方向に並べて、前記行方向に
沿つて順次出力し、 前記指示情報が後者を指示する場合、前記複数
の領域にそれぞれ含まれる文字データの、行方向
の出力位置を、各領域毎に前記行ピツチに基づい
て導出し、 前記導出される前記出力位置に基づいて、前記
文字データを、各領域毎に、前記行方向に沿つて
順次出力する出力方法を提供することを目的とし
ている。
In view of the above points, the present invention has the object of outputting character data included in a plurality of areas, each extending over a plurality of lines, and having a variable line pitch for each line, or outputting the character data side by side in the horizontal direction, or outputting the character data in each area independently. Instruction information that instructs whether to output character data is stored, and if the instruction information instructs the former, the output position in the row direction of the character data included in each of the plurality of areas is determined for each row. is derived based on a variable line pitch, and based on the derived output position, the character data is arranged horizontally and sequentially output along the line direction, and the instruction information indicates the latter. In this case, the output position in the line direction of the character data included in each of the plurality of areas is derived for each area based on the line pitch, and based on the derived output position, the character data is It is an object of the present invention to provide an output method that sequentially outputs each region along the row direction.

[実施例] 以下本発明の一実施例を図面に従つて説明す
る。
[Example] An example of the present invention will be described below with reference to the drawings.

第1図は本発明による文字処理装置の構成を示
すブロツク図である。
FIG. 1 is a block diagram showing the structure of a character processing device according to the present invention.

図においてCPU1は中央処理装置で各処理、
制御を行うものであり、それらの制御はROM1
の中に格納されているプログラムに従つて行なわ
れる。
In the figure, CPU1 is a central processing unit that performs various processing,
These controls are performed by ROM1.
This is done according to a program stored in the.

CG2は文字パターンを格納しているキヤラク
タ・ジエネレータでありワード・プロセツサ制御
部3は文章の入力、挿入、削除その他文章作成・
編集を行う。また入力された文字データ及び行単
位でのページ番号、行ピツチ先頭からの位置、次
行とのピツチをバツフア4に格納する。そしてプ
リント情報に関しても入力しプリント情報バツフ
ア5に格納しまた、印字行を1に初期化する。
CG2 is a character generator that stores character patterns, and word processor control unit 3 is used to input, insert, delete, and create sentences.
Make edits. In addition, the input character data, the page number in line units, the line pitch position from the beginning, and the pitch to the next line are stored in the buffer 4. Print information is also input and stored in the print information buffer 5, and the print line is initialized to 1.

プリンタ制御部6により、プリントの開始、終
了、キヤリツジ、リターンライン・フイードの制
御をプリンタ・インターフエイス7を介して行な
い、またプリンタ8への文字パターンの出力は
CG2を参照してプリンタ・インターフエイス7
内のダイレクト・メモリアクセスDMAを介して
行うようになつている。
The printer control unit 6 controls the start and end of printing, carriage, and return line feed via the printer interface 7, and outputs character patterns to the printer 8.
Printer interface 7 with reference to CG2
Direct memory access is now done via DMA.

またプリンタ制御部6はプリント情報バツフア
5を参照し袋とじ印刷の要求を認識すれば行ピツ
チ作成制御部9に指令し奇数、偶数2ページ分の
データを出力順に並べかえる処理を行なう。
Further, the printer control section 6 refers to the print information buffer 5, and if it recognizes the request for double-stitch printing, it instructs the line pitch creation control section 9 to rearrange the data for two odd and even pages in output order.

第2図はワード・プロセツサ制御部3で作成さ
れたバツフア4の内容を示している。終了行26
のページ番号部には0が格納される。
FIG. 2 shows the contents of the buffer 4 created by the word processor control section 3. End line 26
0 is stored in the page number field.

図に示す様にバツフア4に格納されているデー
タは、ページ番号部、行ピツチ部、先頭からの位
置部、次行との行ピツチ部、文字データ部より構
成されている。
As shown in the figure, the data stored in the buffer 4 is composed of a page number section, a line pitch section, a position section from the beginning, a line pitch section with the next line, and a character data section.

ここでプリンタ制御部3による制御される詳細
な手順を第3図に示すフローチヤートを参照して
説明する。
Here, the detailed procedure controlled by the printer control section 3 will be explained with reference to the flowchart shown in FIG.

ワード・プロセツサ制御部3からの指示により
プリンタ制御部6が手続きを開始する。
The printer control section 6 starts the procedure according to an instruction from the word processor control section 3.

まずステツプS31でワード・プロセツサ制御部
3によりセツトされているプリント情報バツフア
5内の情報が袋とじ印刷要求か否かの判別をす
る。袋とじ印刷要求でなければステツプS36へ進
む。袋とじ印刷要求であれば制御を行ピツチ作成
制御部9へ制御を渡し、袋とじ用にバツフア4を
変更する。詳細は後述する。
First, in step S31, it is determined whether the information in the print information buffer 5 set by the word processor control section 3 is a binding print request. If the request is not for bag binding printing, the process advances to step S36. If it is a bag binding printing request, control is passed to the line pitch creation control unit 9, and the buffer 4 is changed for bag binding. Details will be described later.

バツフア4変更の後ステツプS33でプリント情
報バツフア5内の袋とじ印刷要求かどうか判別
し、袋とじ印刷要求でなければステツプS36へ進
む。袋とじ印刷要求であればステツプS34へ進み
プリント情報バツフア5の印字行で示されるバツ
フア4内の行のページ番号が奇数かどうか判別し
偶数であればステツプS36へ進む。奇数であれば
ステツプS35へ進みプリンタ8のキヤリツジ(図
示せず)を右ページの印字位置へ移動するようプ
リンタインターフエイス7を介してプリンタ8へ
指令する。その後ステツプS37へ進む。
After changing the buffer 4, it is determined in step S33 whether or not there is a bag binding printing request in the print information buffer 5, and if it is not a bag binding printing request, the process advances to step S36. If it is a bag binding printing request, the process advances to step S34, where it is determined whether the page number of the line in the buffer 4 indicated by the print line of the print information buffer 5 is an odd number, and if it is an even number, the process advances to step S36. If the number is odd, the process advances to step S35, and the printer 8 is commanded via the printer interface 7 to move the carriage (not shown) of the printer 8 to the printing position of the right page. After that, the process advances to step S37.

ステツプS36では、キヤリツジをホーム・ポジ
シヨンへ移動するようプリンタインタフエイス7
を介してプリンタ8へ指令する。
In step S36, the printer interface 7 instructs the printer to move the carriage to the home position.
A command is sent to the printer 8 via the .

その後ステツプS37へ進み、ステツプS37では、
プリント情報バツフア5内の印字行で示される行
のバツフア4に格納されている文字データの文字
パターン送信をプリンタ・インターフエイス7に
指令する。その後ステツプS38に進み、この行の
終了まで繰り返す。ステツプS39では用紙1枚分
が終了しているか判別する。すなわち袋とじ印刷
要求でない場合は、プリント情報バツフア5内の
印字行で示されるバツフア4の該当行のページ番
号が印字行の次の行のページ番号より小さい時、
または次の行のページ番号が0のとき、また、袋
とじ印刷要求のときはプリント情報バツフア5内
の印字行で示されるバツフア4の該当行のページ
番号にページ番号が奇数ならば1加えた数、偶数
ならばページ番号より印字行の次の行が大きいか
または0のとき終了となる。
After that, proceed to step S37, and in step S37,
The printer interface 7 is instructed to transmit the character pattern of the character data stored in the buffer 4 of the line indicated by the print line in the print information buffer 5. After that, the process advances to step S38 and is repeated until the end of this line. In step S39, it is determined whether one sheet of paper has been processed. In other words, if it is not a bag binding printing request, when the page number of the corresponding line of the buffer 4 indicated by the print line in the print information buffer 5 is smaller than the page number of the line next to the print line,
Or, when the page number of the next line is 0, or when requesting double binding printing, add 1 to the page number of the corresponding line of buffer 4 indicated by the print line in print information buffer 5 if the page number is an odd number. If the number is an even number, the process ends when the next print line is greater than the page number or 0.

このステツプS39での判別の結果終了していれ
ばステツプS311へ進む。また、終了していなけ
ればステツプS310へ進み、プリント情報バツフ
ア5内の印字行で示されるバツフア4の該当行の
次行とのピツチ分だけラインフイードすることを
プリンタインターフエイス7に指令する。その後
プリント情報バツフア5内の印字行で示される値
を1増加しステツプS33に戻り処理を繰返し行
う。
If the result of the determination in step S39 is that the process has been completed, the process advances to step S311. If it has not been completed, the process advances to step S310, and the printer interface 7 is commanded to perform line feed by the pitch between the corresponding line of the buffer 4 indicated by the print line in the print information buffer 5 and the next line. Thereafter, the value indicated by the print line in the print information buffer 5 is incremented by 1, and the process returns to step S33 to repeat the process.

ステツプS311では、プリント情報バツフア5
内の印字行の示すバツフア4内の次の行のページ
番号が0かチエツクすることにより、全データが
終了したか判別し、終了していればプリント制御
を終りワード・プロセツサ制御に制御を移す。ま
た終了していなければ、プリント情報バツフア5
内の印字行の値を1増加し、新しい紙に取りかえ
られるのを待つてステツプS33に戻り処理を繰返
す。
In step S311, print information buffer 5
By checking whether the page number of the next line in buffer 4 indicated by the print line in is 0, it is determined whether all data has been completed, and if it has been completed, print control is terminated and control is transferred to word processor control. . If it has not finished, print information buffer 5
The value of the printed line in is incremented by 1, and after waiting for the paper to be replaced with a new one, the process returns to step S33 and repeats the process.

ここで前述した行ピツチ作成制御部9について
第4図に示すフローチヤートを参照して詳細を説
明する。
The above-mentioned row pitch creation control section 9 will now be described in detail with reference to the flowchart shown in FIG.

プリンタ制御部6により指令され行ピツチ作成
制御部9が手順を開始する。
The line pitch creation control section 9 starts the procedure in response to a command from the printer control section 6.

まずステツプS41でバツフア4内の先頭の行か
ら順次、次の処理を行う。ページ番号が奇数と次
のページ番号(奇数ページの次の偶数ページ)に
ついて、先頭からの位置部により小さい順にソー
トする。この時同じ値の場合は、ページ番号を小
さい方すなわち奇数ページ番号を先にする。
First, in step S41, the following processing is performed sequentially from the first row in the buffer 4. Sort pages with odd page numbers and the next page number (the even page after the odd page) in descending order of position from the beginning. At this time, if the values are the same, the page numbers are set to the smaller page number, that is, the odd page number first.

この後、ステツプS42で次行とのピツチ部を先
頭より計算し、次行とのピツチ部に再び格納す
る。処理している奇数、偶数ページデータの終り
の行に0を格納する。
Thereafter, in step S42, the pitch to the next row is calculated from the beginning and stored again in the pitch to the next row. 0 is stored in the last row of the odd and even page data being processed.

ステツプS43でバツフア4の最後まで処理を行
つたか判別し、終つていなければステツプS41に
戻り処理を繰り返す。終つていれば、制御をプリ
ンタ制御部へ戻し、処理を終了する。
In step S43, it is determined whether processing has been completed to the end of buffer 4. If it has not been completed, the process returns to step S41 and is repeated. If the process has been completed, control is returned to the printer control unit and the process ends.

第5図に本制御の実行後の状態を示す。 FIG. 5 shows the state after execution of this control.

また第6図にプリント情報バツフア5の内容を
示している。袋とじ印刷要求また、標準行ピツチ
情報はワード・プロセツサー制御部3で格納され
る。本実施例では標準行ピツチ情報に8が入力さ
れた場合になつている。
Further, FIG. 6 shows the contents of the print information buffer 5. Binding printing request and standard line pitch information are also stored in the word processor control section 3. In this embodiment, 8 is input as the standard row pitch information.

また本装置ではフロツピイーデイスク10、そ
の制御部11、表示器12、およびその制御部1
3、文字等情報を入力するキーボード14、その
制御部15を具備しワードプロセツサーを構成し
ている。
In addition, this device includes a floppy disk 10, a control section 11 thereof, a display 12, and a control section 1 thereof.
3. It is equipped with a keyboard 14 for inputting information such as characters, and a control section 15 thereof, and constitutes a word processor.

以上説明したように、本発明によれば、用紙の
左側、右側にそれぞれ1ページ合計2ページ分の
データを同時並行的に処理する場合、左右で行間
が違う場合にも出力することが可能となつた。
As explained above, according to the present invention, when data for a total of two pages, one page on the left side and one on the right side of the paper, is processed in parallel, it is possible to output data even if the line spacing is different on the left and right sides. Summer.

[効果] 以上詳述した様に本発明により、領域を複数有
し、それぞれの領域において、行毎に可変の行ピ
ツチの文字データの出力方法を提供することがで
可能となつた。
[Effects] As detailed above, according to the present invention, it has become possible to provide a method for outputting character data having a plurality of areas and having a variable line pitch for each line in each area.

以上詳述した様に本発明により、複数の領域に
含まれ、それぞれ複数行に亘り、行毎に可変の行
ピツチの文字データを、左右方向に並べて出力す
るか、 各領域それぞれ独立に、前記文字データを出力
するかを指示する指示情報を格納しておき、 前記指示情報が前者を指示する場合は、前記複
数の領域にそれぞれ含まれる文字データの、行方
向の出力位置を、前記行毎に可変の行ピツチに基
づいて導出し、 前記導出される前記出力装置に基づいて、前記
文字データを、左右方向に並べて、前記行方向に
沿つて順次出力し、 前記指示情報が後者を指示する場合は、前記複
数の領域にそれぞれ含まれる文字データの、行方
向の出力位置を、各領域毎に前記行ピツチに基づ
いて導出し、 前記導出される前記出力位置に基づいて、前記
文字データを、各領域毎に、前記行方向に沿つて
順次出力する出力方法を提供することが可能とな
つた。
As described in detail above, according to the present invention, character data included in a plurality of areas, each spanning multiple lines, and having a variable line pitch for each line, can be outputted side by side in the horizontal direction, or each area can be output independently from the above. Instruction information that instructs whether to output character data is stored, and if the instruction information instructs the former, the output position in the row direction of the character data included in each of the plurality of areas is determined for each row. is derived based on a variable line pitch, and based on the derived output device, the character data is arranged horizontally and sequentially output along the line direction, and the instruction information indicates the latter. In this case, the output position in the line direction of the character data included in each of the plurality of areas is derived for each area based on the line pitch, and the character data is output based on the derived output position. , it has become possible to provide an output method that sequentially outputs each region along the row direction.

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

第1図は本発明の一実施例を示すブロツク図、
第2図は入力されたバツフアの状態を示す図であ
り、第3図、第4図は制御手順を示すフローチヤ
ート、第5図は、制御手順で変更された後のバツ
フアの状態を示す図、第6図は、プリンタ情報バ
ツフアの内容を示す図である。 1……CPU、3……ワードプロセツサ制御部、
4……バツフア、6……プリンタ制御部、9……
行ピツチ作成制御部。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a diagram showing the state of the input buffer, FIGS. 3 and 4 are flowcharts showing the control procedure, and FIG. 5 is a diagram showing the state of the buffer after it has been changed in the control procedure. , FIG. 6 is a diagram showing the contents of the printer information buffer. 1...CPU, 3...Word processor control unit,
4...Buffer, 6...Printer control unit, 9...
Line pitch creation control unit.

Claims (1)

【特許請求の範囲】 1 複数の領域に含まれ、それぞれ複数行に亘
り、行毎に可変の行ピツチの文字データを、左右
方向に並べて出力するか、 各領域それぞれ独立に、前記文字データを出力
するかを指示する指示情報を格納しておき、 前記指示情報が前者を指示する場合は、前記複
数の領域にそれぞれ含まれる文字データの、行方
向の出力位置を、前記行毎に可変の行ピツチに基
づいて導出し、 前記導出される前記出力位置に基づいて、前記
文字データを、左右方向に並べて、前記行方向に
沿つて順次出力し、 前記指示情報が後者を指示する場合は、前記複
数の領域にそれぞれ含まれる文字データの、行方
向の出力位置を、各領域毎に前記行ピツチに基づ
いて導出し、 前記導出される前記出力位置に基づいて、前記
文字データを、各領域毎に、前記行方向に沿つて
順次出力することを特徴とする出力方法。
[Claims] 1. Character data included in a plurality of areas, each extending over a plurality of lines, with a variable line pitch for each line, is output side by side in the horizontal direction, or the character data is output in each area independently. If the instruction information instructs the former, the output position in the line direction of the character data included in each of the plurality of areas is variable for each line. is derived based on the line pitch, and based on the derived output position, the character data is arranged horizontally and sequentially output along the line direction, and when the instruction information indicates the latter, Deriving the output position in the line direction of the character data included in each of the plurality of areas based on the line pitch for each area, and dividing the character data into each area based on the derived output position. An output method characterized by sequentially outputting each row along the row direction.
JP57121824A 1982-07-13 1982-07-13 Character processor Granted JPS5911439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57121824A JPS5911439A (en) 1982-07-13 1982-07-13 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57121824A JPS5911439A (en) 1982-07-13 1982-07-13 Character processor

Publications (2)

Publication Number Publication Date
JPS5911439A JPS5911439A (en) 1984-01-21
JPH0425571B2 true JPH0425571B2 (en) 1992-05-01

Family

ID=14820833

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57121824A Granted JPS5911439A (en) 1982-07-13 1982-07-13 Character processor

Country Status (1)

Country Link
JP (1) JPS5911439A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59231686A (en) * 1983-06-13 1984-12-26 Fujitsu Ltd Control method of printing mode of covered binding printing
JPS6079984A (en) * 1983-10-07 1985-05-07 Toshiba Corp Printing-controlling system
JPS6215628A (en) * 1985-07-15 1987-01-24 Canon Inc Document processor
JP2685724B2 (en) * 1994-11-21 1997-12-03 キヤノン株式会社 Document processing method

Also Published As

Publication number Publication date
JPS5911439A (en) 1984-01-21

Similar Documents

Publication Publication Date Title
EP0117405B1 (en) Automatically balancing and vertically justifying text and/or graphics
EP0117406B1 (en) Automatically balancing and vertically justifying text and/or graphics
US5243691A (en) System for printing documents
DE69322199T2 (en) Device and method for translating printer languages
JPH0378651B2 (en)
JPH0425571B2 (en)
JPS6141412B2 (en)
CA1169570A (en) Method for confirming requested transactions between source and destination files of spatially related data stored in an interactive text processing system
JP3013512B2 (en) Barcode printer
JPH0532230B2 (en)
JPS59201870A (en) Printer
JP2699386B2 (en) Image recording device
JPH0570856B2 (en)
JP2995313B2 (en) Document data output device
JPS605385A (en) Character processor
JP2612277B2 (en) High-speed character printing method
JPH0753466B2 (en) Output device
JPS60147834A (en) Character output controller
JPS59123043A (en) Clean copy processor
JPH07115493B2 (en) Aspect conversion printing method
JPH0281654A (en) Halftone longitudinal connection of serial dot printer
JPS6235855A (en) Printing apparatus
JPH0739194B2 (en) Reverse printing order processor
JPH0751374B2 (en) Document processor
JPS61197269A (en) Character output device