JPH02307155A - Document processor - Google Patents

Document processor

Info

Publication number
JPH02307155A
JPH02307155A JP1127834A JP12783489A JPH02307155A JP H02307155 A JPH02307155 A JP H02307155A JP 1127834 A JP1127834 A JP 1127834A JP 12783489 A JP12783489 A JP 12783489A JP H02307155 A JPH02307155 A JP H02307155A
Authority
JP
Japan
Prior art keywords
line
document
document data
page
blank
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1127834A
Other languages
Japanese (ja)
Inventor
Kiyoshi Katano
清 片野
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 JP1127834A priority Critical patent/JPH02307155A/en
Publication of JPH02307155A publication Critical patent/JPH02307155A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically set a blank line into a document without interrupting the continuity of the document by outputting the document data on the next line as the document data on the next page after the coincidence is confirmed the output line number set at output of the document data on the next line and the output line number equivalent to one page excluding the set blank line. CONSTITUTION:A document processor consists of a keyboard 1, a CPU 2, a display part 3, a print part 4, a ROM 5a, a RAM 5b, a line counter 6, a register 7 and a print buffer 8. A command is inputted to point the number of blank lines in one page, and the output line number equivalent to one page excluding the blank lines is set based on the input command. Then the set output line number is compared with the output line number set at input of the document data on the next line. When the coincidence is confirmed between both output line numbers, the document data on the next line is outputted as the document data on the next page. As a result, a blank part can be automatically set by editing without impairing the contents of a document.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文書処理装置に関し、例えば電子タイプライタ
−等の文書処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document processing device, for example, a document processing device such as an electronic typewriter.

[従来の技術及びその課題] 従来、この種の装置においては、文書を印字する場合、
改ページコマンドを挿入して改ページを行っていた。こ
のようにして印字を行った場合、例えば、第5図〜第7
図に示される印字結果100〜102のような印字結果
となっていた。印字結果100では、X、の位置の行間
だけが2行分の空白が設定されており空白行数が不均一
である。又、印字結果101では、先頭行の先頭文字の
前の位置x2にスペースが設定されておらず前ページか
らの続きなのか読みにく(なる。最後の印字結果102
では、X s 、 X 4の各行で実際には空白の行が
位置すべきものなのか煩わしく見える。
[Prior art and its problems] Conventionally, in this type of device, when printing a document,
A page break was performed by inserting a page break command. When printing is done in this way, for example,
The printing results were as shown in the printing results 100 to 102 shown in the figure. In the print result 100, two blank lines are set only in the line spacing at the position X, and the number of blank lines is uneven. Also, in the print result 101, a space is not set at position x2 before the first character in the first line, making it difficult to read whether it is a continuation from the previous page.
Now, it seems troublesome whether there should actually be a blank line in each line of Xs and X4.

このように、上記従来例では、文書の編集に伴なって改
ページコマンドが移動してしまい、空白の大きさが変わ
ってしまうという欠点がある。また、改ページコマンド
の挿入により文書の連続関係が断たれてしまうという欠
点もある。
As described above, the conventional example described above has the drawback that the page break command moves as the document is edited, and the size of the blank space changes. Another disadvantage is that inserting a page break command breaks the continuity of documents.

本発明は上述した従来例の欠点に鑑みてなされたもので
あり、その目的とするところは、編集によって文書の内
容を崩すことなく空白部分を自動的に設定できる文書処
理装置を提供する点にある。
The present invention has been made in view of the above-mentioned drawbacks of the conventional example, and its purpose is to provide a document processing device that can automatically set blank areas without destroying the contents of a document by editing. be.

[課題を解決するための手段] 上述した課題を解決し、目的を達成するため、本発明に
係わる文書処理装置は、文書データな1行分毎に出力す
る文書処理装置において、1ページ中の空白行数を指示
するコマンドを入力する入力手段と、該入力手段で入力
されたコマンドに基づいて空白行を除く1ページ分の出
力行数を設定する設定手段と、次行の文書データを出力
するときの出力行数と前記設定手段で設定された出力行
数とを比較する比較手段と、該比較手段で出力行数の一
致を確認すると前記次行の文書データを次ページの文書
データとして出力する出力手段とを備える。
[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the purpose, a document processing device according to the present invention outputs document data line by line. an input means for inputting a command instructing the number of blank lines; a setting means for setting the number of output lines for one page excluding blank lines based on the command input by the input means; and outputting the next line of document data. a comparison means for comparing the number of output lines when the output line is set with the number of output lines set by the setting means; and when the comparison means confirms that the number of output lines matches, the document data of the next line is set as the document data of the next page. and output means for outputting the output.

[作用] かかる構成によれば、入力手段は1ページ中の空白行数
を指示するコマンドを入力し、設定手段は入力手段で入
力されたコマンドに基づいて空白行を除く1ページ分の
出力行数を設定し、比較手段は次行の文書データを出力
するときの出力行数と設定手段で設定された出力行数と
を比較し、出力手段は比較手段で出力行数の一致を確認
すると次行の文書データを次ページの文書データとして
出力するようにしている。
[Operation] According to this configuration, the input means inputs a command instructing the number of blank lines in one page, and the setting means outputs one page's worth of output lines excluding blank lines based on the command input by the input means. The comparison means compares the number of output lines when outputting the next line of document data with the number of output lines set by the setting means, and the output means uses the comparison means to confirm that the output line numbers match. The next line of document data is output as the next page of document data.

[実施例] 以下添付図面を参照して本発明に係わる好適な実施例を
詳細に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本実施例の文書処理装置の構成を示すブロック
図である。図中、1は文書の入出力や編集等を行うため
の各種キーを備えるキーボードを示し、2は本装置全体
の動作をROM5a中の各種プログラムに従って制御す
るCPUを示している。3は文書の編集時の表示画面を
形成する表示部を示し、4はキーボード1からの指示で
文書の印字を行う印字部を示している。
FIG. 1 is a block diagram showing the configuration of a document processing apparatus according to this embodiment. In the figure, reference numeral 1 indicates a keyboard provided with various keys for inputting/outputting and editing documents, and reference numeral 2 indicates a CPU that controls the operation of the entire apparatus according to various programs in the ROM 5a. Reference numeral 3 indicates a display unit that forms a display screen when editing a document, and reference numeral 4 indicates a printing unit that prints the document in response to instructions from the keyboard 1.

そして、5aは制御プログラム、エラー処理ブログラム
、第3図のフローチャートに従って動作させるためのプ
ログラム等を記憶しているROMを示し、5bは各種プ
ログラムのワークエリア及びエラー処理時の一時退避エ
リアとして用いるRAMを示している。又、6は文書デ
ータの印字する行をカウントする行カウンタを示し、7
は特定コマンドによって設定される空白の行数を格納す
るレジスタを示している。8は印字するための文書デー
タを格納する印字バッファを示している。
5a indicates a ROM that stores a control program, an error processing program, a program for operating according to the flowchart in FIG. 3, etc., and 5b is used as a work area for various programs and a temporary save area during error processing. RAM is shown. Further, 6 indicates a line counter that counts the lines to be printed in the document data, and 7
indicates a register that stores the number of blank lines set by a specific command. Reference numeral 8 indicates a print buffer that stores document data to be printed.

上記構成の動作としては、CPU2がキーボード1から
の各指示に従って、RAM5bに記憶された文書を表示
部3に表示して、編集処理が行われる。また、CPU2
はRAM5bに記憶された文書データを印字バッファ8
に出力し、印字部4では、印字バッファ8に格納された
文書データに基づいて印字を実行する。
As for the operation of the above configuration, the CPU 2 displays the document stored in the RAM 5b on the display section 3 in accordance with each instruction from the keyboard 1, and edit processing is performed. Also, CPU2
transfers the document data stored in the RAM 5b to the print buffer 8.
The printing unit 4 executes printing based on the document data stored in the print buffer 8.

次に、文書データの記憶方法について説明する。Next, a method of storing document data will be explained.

第2図は本実施例のRAM5bに記憶された文書データ
の一例を示している。図示の如く、通常、文書データは
トップマージン、ページエンド、レフトマージン、ライ
トマージン、タブ数。
FIG. 2 shows an example of document data stored in the RAM 5b of this embodiment. As shown in the figure, the document data usually includes the top margin, page end, left margin, right margin, and number of tabs.

タブの情報等のデータと実際の文書中の文字データ(ス
ペース等の含む)とで構成されている。本実施例では、
文字データ中の[7コが空白行数を指示する特定コマン
ドを示し、” 7 ”が空白の大きさ、即ち、空白の行
数を示している。このように、本実施例では文字データ
の行の先頭に挿入される。この挿入方法については後述
する。
It consists of data such as tab information and character data (including spaces, etc.) in the actual document. In this example,
[7] in the character data indicates a specific command that indicates the number of blank lines, and "7" indicates the size of the blank space, that is, the number of blank lines. In this way, in this embodiment, the character data is inserted at the beginning of the line. This insertion method will be described later.

次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

第3図は本実施例の文書処理動作を示すフローチャート
である。
FIG. 3 is a flowchart showing the document processing operation of this embodiment.

まず、キーボード1によって文書の作成或は文書を記憶
するRAM5bから文書データを読出して文書編集が行
われる。このとき、ユーザは関連する文書毎に改行ペー
ジを指示することができる(ステップSl、ステップS
2)。その方法としては、キーボード1より文書の先頭
行に例えば第2図で説明した特定コマンドのように[7
]と入力すれば良い。
First, the keyboard 1 is used to create a document or read document data from the RAM 5b that stores the document to edit the document. At this time, the user can specify a new line page for each related document (step Sl, step S
2). To do this, use the keyboard 1 to write a specific command such as [7
].

この後に、文書データは特定コマンドが付加された状態
でRAM5bに記憶され(ステップS3)、キーボード
1から次の指示が待たれる(ステップS4)。この後、
印字処理の指示があれば(ステップS4)、レジスタ7
及び行カウンタ6の内容が“0”にクリアされ(ステッ
プS5)、RAM5bから1行分の文書データが切出さ
れ、印字バッファ8に格納される(ステップS6)。
Thereafter, the document data is stored in the RAM 5b with the specific command added (step S3), and the next instruction from the keyboard 1 is awaited (step S4). After this,
If there is a print processing instruction (step S4), the register 7
The contents of the line counter 6 are cleared to "0" (step S5), and one line of document data is extracted from the RAM 5b and stored in the print buffer 8 (step S6).

そして、行カウンタ6の内容が1つカウントアツプされ
(ステップS7)、続いて、切出された1行分の文書デ
ータ中に特定コマンドが存在するか否か調べられる(ス
テップS8)。その結果、特定コマンドの存在が確認さ
れたときには、レジスタ7に特定コマンドの示す空白行
数がセットされる(ステップS9)。
Then, the contents of the line counter 6 are incremented by one (step S7), and then it is checked whether a specific command exists in the extracted one line of document data (step S8). As a result, when the existence of the specific command is confirmed, the number of blank lines indicated by the specific command is set in the register 7 (step S9).

このようにして、処理はステップSIOに進み、1行分
の印字が行われ、続いて、改行印刷か改ページかの判定
が行われる(ステップ511)。この判定においては、
以下に挙げる■〜■までの3つの条件のいずれかに該当
する場合、改ページが行われ、又、該当しない場合、改
行が行われる。パラメータとして、1ページの行数をP
、レジスタ7に記憶される空白の行数なり1行カウンタ
6に記憶される行数なβ、改行後の行数をρ°とする。
In this way, the process proceeds to step SIO, where one line of printing is performed, and then it is determined whether line feed printing or page feed is to be performed (step 511). In this judgment,
If any of the three conditions (■ to ■) listed below apply, a page break is performed, and if the conditions do not apply, a line feed is performed. As a parameter, the number of lines on one page is P
, β is the number of blank lines stored in the register 7 or the number of lines stored in the one-line counter 6, and ρ° is the number of lines after a line break.

条件としては、 ■β≦P−b (印字可能な行数)くρ°、■Pくρ°
、そして、 ■文書データに通常の改ページコマンドが存在する、 の3つである。そこで、例えば、P=38.b=7とし
た場合には(P−b=31 ) 、文書中に改ページコ
マンド(■の条件)が存在した場合を除いて、行数2が
第1行目〜第29行目までは順次改行しながら印字が行
われ(ステップS6〜ステツプ512)、改行前の行数
ρが第31行目に達すると印字可能な行数(P−b=3
1)と一致し、改行後の行数β°は第32行目となるこ
とから、条件■が満足される(β≦p−b<ρ゛)。
The conditions are: ■β≦P−b (number of printable lines) ρ°, ■P ρ°
, and ■ The document data has a normal page break command. So, for example, P=38. When b = 7 (P - b = 31), the number of lines is 2 from the 1st line to the 29th line, except when a page break command (■ condition) exists in the document. Printing is performed with line feeds sequentially (step S6 to step 512), and when the number of lines ρ before line feed reaches the 31st line, the number of printable lines (P-b=3)
1), and the number of lines β° after the line break is the 32nd line, so the condition (2) is satisfied (β≦p−b<ρ゛).

従って、次行の印字を次のページの第1行目として行う
ため、改ページが行われる(ステップ513)。改ペー
ジが行われた場合には、次の処理で前印字処理の終了か
否かが判定され(ステップ514)、終了するまでは、
ステップS5の処理に戻り、新しいページの印字処理が
再び開始される。又、ステップS14で処理の終了が確
認されると、処理はステップS4に戻り、ユーザからの
キー人力に従って処理が実施される。
Therefore, a page break is performed to print the next line as the first line of the next page (step 513). If a page break is performed, it is determined in the next process whether or not the pre-printing process has ended (step 514), and until the end,
The process returns to step S5, and the printing process for a new page is started again. Further, when the end of the process is confirmed in step S14, the process returns to step S4, and the process is executed according to the key input from the user.

第4図は本実施例の印字結果を示している。図中のEで
示される範囲は、上述した第3図のフローチャートに従
って設定された空白行の部分を示している。
FIG. 4 shows the printing results of this example. The range indicated by E in the figure indicates the blank line portion set according to the flowchart of FIG. 3 described above.

又、本実施例では、表示処理によってもRAMSb中の
テキストエリア内の文書データを印字処理と同様にペー
ジ内に空白行を設定することができる。この場合、上述
した印字処理と同様のため省略するが、印字処理の場合
のステップ85〜ステツプS14に表示処理の場合のス
テップ815〜ステツプS24がそれぞれ対応し、印字
の処理が表示の処理に置き換わるだけである。本処理が
表示処理に移行するときには、ステップS4の判定でキ
ーボード1からの指示が表示のときである。
Further, in this embodiment, a blank line can be set within a page of document data in a text area in RAMSb by display processing as well as by printing processing. In this case, steps 85 to S14 in the printing process correspond to steps 815 to S24 in the display process, and the printing process is replaced with the display process, although the explanation is omitted because it is similar to the printing process described above. Only. When this processing shifts to display processing, it is determined in step S4 that the instruction from the keyboard 1 is for display.

以上説明したように本実施例によれば、文書中の空白行
を文書の連続性を断つことなく自動的に設定することが
できる。
As described above, according to this embodiment, blank lines in a document can be automatically set without breaking the continuity of the document.

[発明の効果] 以上説明したように本発明によれば、文書中の空白行を
文書の連続性を断つことな(自動的に設定することがで
きる。
[Effects of the Invention] As described above, according to the present invention, blank lines in a document can be automatically set without breaking the continuity of the document.

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

第1図は本実施例の文書処理装置の構成を示すブロック
図、 第2図は本実施例のRAM5bに記憶された文書データ
の一例を示す図、 第3図は本実施例の文書処理動作を示すフローチャート
、 第4図は本実施例の印字結果を示す図、第5図〜第7図
は従来の印字結果を示す図である。 図中、1・・・キーボード、2・・・cPU、3・・・
表示部、4・・・印字部、5 a −・−ROM、5 
b−RA M 。 6・・・行カウンタ、7・・・レジスタ、30.Zoo
〜102・・・印字結果である。 第1図 第2図
FIG. 1 is a block diagram showing the configuration of the document processing device of this embodiment, FIG. 2 is a diagram showing an example of document data stored in the RAM 5b of this embodiment, and FIG. 3 is a document processing operation of this embodiment. FIG. 4 is a diagram showing the printing results of this embodiment, and FIGS. 5 to 7 are diagrams showing the conventional printing results. In the figure, 1...keyboard, 2...cPU, 3...
Display section, 4... Printing section, 5 a ---ROM, 5
b-RAM. 6... line counter, 7... register, 30. Zoo
~102...Printing results. Figure 1 Figure 2

Claims (3)

【特許請求の範囲】[Claims] (1)文書データを1行分毎に出力する文書処理装置に
おいて、 1ページ中の空白行数を指示するコマンドを入力する入
力手段と、 該入力手段で入力されたコマンドに基づいて空白行を除
く1ページ分の出力行数を設定する設定手段と、 次行の文書データを出力するときの出力行数と前記設定
手段で設定された出力行数とを比較する比較手段と、 該比較手段で出力行数の一致を確認すると前記次行の文
書データを次ページの文書データとして出力する出力手
段とを備えることを特徴とする文書処理装置。
(1) A document processing device that outputs document data line by line, including an input means for inputting a command indicating the number of blank lines in one page, and a blank line is output based on the command input by the input means. a setting means for setting the number of output lines for one page excluding the number of output lines; a comparison means for comparing the number of output lines when outputting the next line of document data with the number of output lines set by the setting means; and the comparison means and output means for outputting the document data of the next line as document data of the next page when it is confirmed that the number of output lines matches.
(2)前記出力手段は文書データを印字出力すること特
徴とする請求項第1項記載の文書処理装置。
(2) The document processing apparatus according to claim 1, wherein the output means prints out the document data.
(3)前記出力手段は文書データを表示出力すること特
徴とする請求項第1項記載の文書処理装置。
(3) The document processing apparatus according to claim 1, wherein the output means displays and outputs the document data.
JP1127834A 1989-05-23 1989-05-23 Document processor Pending JPH02307155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1127834A JPH02307155A (en) 1989-05-23 1989-05-23 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1127834A JPH02307155A (en) 1989-05-23 1989-05-23 Document processor

Publications (1)

Publication Number Publication Date
JPH02307155A true JPH02307155A (en) 1990-12-20

Family

ID=14969814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1127834A Pending JPH02307155A (en) 1989-05-23 1989-05-23 Document processor

Country Status (1)

Country Link
JP (1) JPH02307155A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7355742B2 (en) 2002-03-20 2008-04-08 Canon Kabushiki Kaisha Apparatus and method for controlling page break position

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7355742B2 (en) 2002-03-20 2008-04-08 Canon Kabushiki Kaisha Apparatus and method for controlling page break position

Similar Documents

Publication Publication Date Title
JPH01116758A (en) Document forming device
JPH02307155A (en) Document processor
JPH0522933B2 (en)
JPH0733105B2 (en) Ruled line printing method
JPS5843034A (en) Sentence edit processor
JPS59201870A (en) Printer
US5162993A (en) Word processing apparatus
JP2612402B2 (en) Display control method
JPH0537315Y2 (en)
JP2728906B2 (en) Character processor
JP3402759B2 (en) Document processing apparatus and document processing method
JPH0447448A (en) Word processor
JP3084041B2 (en) Character processor
JPH08174951A (en) Device and method for information processing
JPH07111727B2 (en) Document reader
JPH0560876B2 (en)
JPS60238919A (en) Power disconnection processing system of word processor
JP2914816B2 (en) Document processing device
JP3282647B2 (en) Overlay printing system and method
JPH0330049A (en) Document generation device
JPS63221069A (en) Document preparing and editing apparatus
JPH0345415B2 (en)
JP2849505B2 (en) Document processing device
JPS62208090A (en) Image processor
JPH01159758A (en) English editing system