JPH06214987A - Document output method - Google Patents

Document output method

Info

Publication number
JPH06214987A
JPH06214987A JP5007261A JP726193A JPH06214987A JP H06214987 A JPH06214987 A JP H06214987A JP 5007261 A JP5007261 A JP 5007261A JP 726193 A JP726193 A JP 726193A JP H06214987 A JPH06214987 A JP H06214987A
Authority
JP
Japan
Prior art keywords
page
text
heading
nomble
variable
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
JP5007261A
Other languages
Japanese (ja)
Inventor
Satoru Akaogi
哲 赤荻
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP5007261A priority Critical patent/JPH06214987A/en
Publication of JPH06214987A publication Critical patent/JPH06214987A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To provide a document output method smoothly outputting texts including index by outputting a blank page with the nomble added if the corresponding page is the index and the nomble is proved to be an even number and applying the next nomble to the next page. CONSTITUTION:'1' is substituted for a nomble variable N and page offset variable P. (step A) A text directed by the page offset variable P is read in a temporary storage area. (step B) If any one of three conditions is negative at all times; (1) the page head of the text is an index control code, (2) the odd-numbered page setting is 'on', (3) the nomble variable N is an even number, the text of the corresponding page with '-N' added is outputted as it is (steps C,D,E,I,J). However, if three conditions are fulfilled, the blank page is outputted and a nomble '-4-' is applied to the blank page (steps F and G). The only nomble variable N is updated (step H), and the next index is outputted (steps I and J).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、見出し頁を含むテキス
トを円滑に出力できるようにした文書出力方法に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document output method capable of smoothly outputting a text including a heading page.

【0002】[0002]

【従来の技術】デスクトップパブリッシングシステムや
ワードプロセッサのような文書作成装置において、各章
の先頭に見出し頁を付した文書が取扱われることがあ
る。この見出し頁には、通常章題や副題などが記載され
る。そして、この見出し頁を奇数頁に配置し、各章が奇
数頁から始まるようにするのが、一般的に良いとされて
おり、事実ほとんどの書籍ではこのような体裁が採用さ
れている。
2. Description of the Related Art In a document creating apparatus such as a desktop publishing system or a word processor, a document having a heading page at the beginning of each chapter is sometimes handled. On this heading page, usually a chapter title, a subtitle, etc. are described. It is generally considered good to arrange the heading pages on odd pages so that each chapter starts on an odd page. In fact, most books use this format.

【0003】したがって、ユーザが上記文書作成装置を
用いて、章組みの文書(例えば出力したものを本にす
る)を取扱う場合においても、見出し頁を奇数頁とする
体裁とすることが多い。
Therefore, even when a user handles a chapter-structured document (for example, the output is a book) by using the document creation apparatus, it is often the case that the heading page is an odd page.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
文書作成装置においては、上記事情に対する配慮がなさ
れておらず、テキストの一部分が必ず奇数頁にくるよう
に指定することはできなかった。したがって、ユーザ自
身がある章の末尾の頁が奇数頁となったとき、この奇数
頁の次の白紙頁(偶数頁)をおき、その次頁(奇数頁)
を次の章の見出し頁とするようにしていた。ところが、
一旦ある章を完成させた後に、この章について頁の追加
や削除などの修正を行うことは日常茶飯事であり、ま
た、この章の前の章においてこのような修正が行なわれ
ることも多い。このような場合、せっかく一旦見出し頁
を奇数頁としていても、この見出し頁が前後にずれて、
偶数頁となってしまうことがある。その結果、ユーザは
その都度白紙頁の挿入又は削除などの面倒な操作をしな
ければならず、文書作成作業の効率が低下するという問
題点がある。
However, the above-mentioned circumstances have not been taken into consideration in the conventional document creating apparatus, and it has not been possible to specify that a part of the text is always on an odd page. Therefore, when the user himself / herself becomes an odd page at the end of a chapter, a blank page (even page) next to this odd page is set and the next page (odd page)
Was used as the heading page for the next chapter. However,
It is common practice to make corrections such as adding or deleting pages in this chapter after completing a chapter once, and such corrections are often made in the chapter before this chapter. In such a case, even if the heading page is once an odd numbered page, the heading page will shift back and forth,
It may become an even page. As a result, the user has to perform a troublesome operation such as inserting or deleting a blank page each time, resulting in a problem that the efficiency of the document creation work decreases.

【0005】上記事情に鑑み、本発明は、見出し頁を含
むテキストを円滑に出力できる文書出力方法を提供する
ことを目的とする。
In view of the above circumstances, it is an object of the present invention to provide a document output method capable of smoothly outputting a text including a heading page.

【0006】[0006]

【課題を解決するための手段】本発明は、該当頁が見出
し用の頁であり、かつノンブルが偶数である際、このノ
ンブルを付した白紙頁を出力し、この白紙頁の次頁に、
前記ノンブルの次のノンブルを付すと共に、上記見出し
情報を含むテキストを出力するようにしている。
According to the present invention, when the corresponding page is a heading page and the page number is an even number, a blank page with this page number is output, and the next page of the blank page is
A page number next to the page number is attached, and a text including the heading information is output.

【0007】[0007]

【作用】上記構成により、テキスト中の見出し情報が参
照され、見出し頁は必ず奇数頁として出力される。した
がって、ユーザは見出し頁が奇数頁か偶数頁かというこ
とに注意する必要がなく、それだけ文書作成を効率的に
行うことができる。
With the above structure, the heading information in the text is referred to, and the heading page is always output as an odd page. Therefore, the user does not need to pay attention to whether the heading page is an odd page or an even page, and the document can be efficiently created accordingly.

【0008】[0008]

【実施例】次に、図面を参照しながら本発明の実施例を
説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】図1は本発明の一実施例に係る本実施例の
文書出力方法を用いた文書作成装置のブロック図であ
り、1はCPU、2は図3,図4に示すフローチャート
に沿うソフトウェアが格納されたROM、3は記憶部と
してのRAMであり、このRAM3の所定領域が、図2
(a)に示すテキスト記憶部12と頁の区切りを示すオ
フセット記憶部13からなる、文書情報4を記憶する領
域となっている。同様に、RAM3の他の領域には、図
2(b)に示す見出し設定情報を含む書式情報5、図3
の頁番号K、図4のノンブル変数N、頁オフセット変数
Pなどの頁番号情報6が記憶されている。またTは文書
出力時に一時的に文書を記憶する一時記憶領域、7はキ
ーボード、8はプリンタ9又はCRT10に出力すべき
画像情報を記憶するイメージメモリ、11はCPU1,
ROM2などを接続するバスである。なお本実施例にお
いて、出力とは、プリンタ9に印字することの他CRT
10に表示することも含む。
FIG. 1 is a block diagram of a document creating apparatus using the document output method according to the embodiment of the present invention. 1 is a CPU and 2 is software according to the flowcharts shown in FIGS. 2 is a ROM in which is stored, and RAM is a RAM as a storage unit.
This is an area for storing the document information 4, which is composed of the text storage section 12 shown in (a) and the offset storage section 13 showing a page break. Similarly, in the other area of the RAM 3, the format information 5 including the heading setting information shown in FIG.
The page number information 6 such as the page number K, the page number variable N and the page offset variable P in FIG. Further, T is a temporary storage area for temporarily storing a document when outputting a document, 7 is a keyboard, 8 is an image memory for storing image information to be output to the printer 9 or CRT 10, 11 is a CPU 1,
It is a bus for connecting the ROM 2 and the like. In this embodiment, the output means not only printing on the printer 9 but also CRT.
Including displaying on 10.

【0010】さて図2(a)において、テキスト記憶部
12には、テキストが頁順に連続して格納されている。
そのうち、Cは見出し情報としての見出し制御コードで
あり、他のテキストと区別される。一方、オフセット記
憶部13内の情報は、先頭オフセットに始まり、テキス
トの終頁(n頁)の次のオフセット((n+1)頁目オ
フセット)までがある。先頭オフセットは、1頁目のテ
キストの先頭(つまり文頭)を指し、1頁目オフセット
は、1頁目と次頁(2頁目)の区切りを指すようになっ
ている。したがって、先頭オフセット〜1頁オフセッ
ト、1頁目オフセット〜2頁目オフセット、・・・とい
うようにテキストを出力すれば、テキストを頁単位に出
力できる。また、テキストの末尾は、n頁目オフセット
と(n+1)頁目オフセットとが同一の位置を指すこと
により、区別される。
In FIG. 2 (a), the text storage unit 12 stores text continuously in page order.
Among them, C is a heading control code as heading information and is distinguished from other texts. On the other hand, the information in the offset storage unit 13 starts from the head offset and extends to the next offset ((n + 1) th page offset) after the end page (n page) of the text. The head offset points to the head (that is, the head of the sentence) of the text on the first page, and the first page offset points to the delimiter between the first page and the next page (second page). Therefore, if the text is output such as the first offset to the first page offset, the first page offset to the second page offset, ..., The text can be output page by page. Further, the end of the text is distinguished by the n-th page offset and the (n + 1) -th page offset pointing to the same position.

【0011】また、図2(b)に示す見出し設定情報に
は、見出し頁の文字サイズなどの他、見出し頁を奇数頁
とするか否かについての奇数頁設定の情報が含まれる。
この設定の入力については、例えばCRT10上に設定
用のメニュー(図外)などを表示し、ユーザに選択して
もらうようにするとよい。
The heading setting information shown in FIG. 2 (b) includes, in addition to the character size of the heading page, information on odd-numbered page setting regarding whether or not the heading page is an odd page.
Regarding the input of this setting, for example, a setting menu (not shown) may be displayed on the CRT 10 so that the user can select it.

【0012】本実施例に係る文書作成装置は上記のよう
な構成よりなり、次に、図3を参照しながら、図2
(a)に示す文書情報が保存される過程を説明する。
The document creating apparatus according to the present embodiment has the above-described structure. Next, referring to FIG.
A process of storing the document information shown in (a) will be described.

【0013】まずステップ1にて、先頭オフセットが初
期化され、この先取オフセットはテキスト記憶部12内
のテキストの先頭を指す。次いで、頁番号Kが1とさ
れ、1頁目に入る文字が頁末までチェックされた上で、
1頁目オフセットに、次頁(2頁目)との区切りが書込
まれる(ステップ2,3,4)。これにより、1頁目の
処理が終る。次いで、頁番号Kを更新しながら(ステッ
プ5)、残りのテキストがなくなるまで、この処理をく
り返し(ステップ6)、終頁(n頁目)の処理が終わる
と、(n+1)頁目のオフセットにn頁目のオフセット
と同じ区切りが入れられる(ステップ7)。これでこの
テキストの末尾が示される。そして、テキストと書式と
がファイル化して保存され、文書の保存が完了する(ス
テップ8)。
First, in step 1, a head offset is initialized, and this prefetch offset points to the head of the text in the text storage unit 12. Next, the page number K is set to 1, and the characters on the first page are checked to the end of the page,
A break from the next page (second page) is written in the first page offset (steps 2, 3, 4). This completes the processing of the first page. Next, while updating the page number K (step 5), this processing is repeated until there is no remaining text (step 6), and when the processing of the last page (nth page) is completed, the offset of the (n + 1) th page The same delimiter as the offset of the nth page is put in (step 7). This marks the end of this text. Then, the text and the format are saved as a file, and the saving of the document is completed (step 8).

【0014】図5は、このように保存された具体例を示
す。テキスト記憶部12の内容において、第1頁は、第
1章の見出し頁であり、見出し制御コードCが頁頭に付
されている。第2頁は、第1章第1節のテキストが、第
3頁は第1章第2節のテキストが記載されている。そし
て、第4頁(偶数頁)は、第2章の見出し頁であり、こ
のまま出力すると、見出し頁を奇数頁とすることができ
ない。
FIG. 5 shows a specific example of such storage. In the content of the text storage unit 12, the first page is the heading page of Chapter 1, and the heading control code C is added to the head of the page. The text of Chapter 1 Section 1 is described on the second page, and the text of Chapter 1 Section 2 is described on the third page. The fourth page (even page) is the heading page of Chapter 2, and if it is output as it is, the heading page cannot be an odd page.

【0015】次に、図4,図6を参照しながら、図5の
文書が出力される過程を説明する。まず、ノンブル変数
Nと頁オフセット変数Pにそれぞれ1が代入され(ステ
ップA)、頁オフセット変数Pが指すテキスト(図5の
1頁目)が一時記憶領域Tに読込まれる(ステップ
B)。
Next, the process of outputting the document of FIG. 5 will be described with reference to FIGS. First, 1 is substituted into the page number variable N and the page offset variable P (step A), and the text pointed to by the page offset variable P (first page in FIG. 5) is read into the temporary storage area T (step B).

【0016】そして、(1)このテキストの頁先頭が見
出し制御コードであること、かつ(2)上記奇数頁設定
がオンであること、かつ(3)ノンブル変数Nが偶数で
あることの3条件のうち、いずれか一つでも否であれ
ば、該当頁のテキストが、ノンブル「−N−」を付され
て、そのまま出力される(ステップC,D,E,I,
J)。そして、頁オフセットが次頁オフセットと一致せ
ず終頁でないことを確認した上で(ステップK)、ノン
ブル変数Nと頁オフセット変数Pが更新され(ステップ
L)、処理がくり返される。
Then, there are three conditions: (1) the head of the page of this text is a heading control code, (2) the above-mentioned odd page setting is on, and (3) the number number N is an even number. If any one of them is not accepted, the text of the corresponding page is output as it is, with the page number "-N-" added thereto (steps C, D, E, I,
J). Then, after confirming that the page offset does not match the next page offset and is not the final page (step K), the page number variable N and the page offset variable P are updated (step L), and the process is repeated.

【0017】ここで、図5の第1頁目(見出し頁)は、
ノンブル変数Nが奇数であり、そのままノンブル(例え
ば「−1−」)が付されて出力される。また、図5の第
2頁、第3頁は、頁先頭に見出し制御コードがなく、同
様にそのまま出力される。そして、図6(a)は、図5
の第3頁が出力された状態を示す。ここで、ノンブル変
数Nと頁オフセット変数Pは、図5の頁が改まるごとに
更新され、P=3,N=3となっており、ノンブルは、
「−3−」となっている。
Here, the first page (heading page) in FIG. 5 is
The number N is an odd number, and a number (for example, “−1−”) is added as it is and output. Further, the second and third pages in FIG. 5 have no heading control code at the top of the page, and are similarly output as they are. Then, FIG.
The third page of is output. Here, the page number variable N and the page offset variable P are updated every time the page of FIG. 5 is revised, and P = 3 and N = 3, and the page number is
It is "-3-".

【0018】そして、ステップLでノンブル変数N及び
頁オフセット変数Pが更新され、P=4,N=4となっ
て、図5の第4頁(第2章の見出し頁)のテキストが読
込まれる(ステップB)。この頁のテキストは、上記3
条件を満たしている。すると、ステップFにて、白紙頁
が出力され、この白紙頁にノンブル「−4−」が付され
る(図6(b),ステップG)。そして、ノンブル変数
Nのみ更新され(ステップH)N=5となるが、頁オフ
セット変数Pは、依然P=4のままであり、頁オフセッ
ト変数Pは第2章の見出し頁を指している。そしてステ
ップIにて、第2章の見出し頁が出力され、この見出し
頁にノンブル「−5−」が付される(ステップJ)。す
なわち、第2章の見出し頁は、上記白紙頁(第4頁)の
次の頁である第5頁(奇数頁)に、ノンブル「−5−」
と共に出力されることになる。以後の処理は、上記処理
の繰り返しであるので、説明を省略する。なお、ステッ
プKにて頁オフセットと次頁オフセットが一致していれ
ば、テキストの末尾であるので、処理を終了する。
Then, in step L, the page number variable N and the page offset variable P are updated so that P = 4 and N = 4, and the text of page 4 (heading page of chapter 2) in FIG. 5 is read. (Step B). The text of this page is 3 above.
The conditions are met. Then, in step F, a blank page is output, and the page number is added with the page number "-4-" (FIG. 6 (b), step G). Then, only the number variable N is updated (step H) and N = 5, but the page offset variable P is still P = 4, and the page offset variable P points to the chapter page of Chapter 2. Then, in step I, the chapter 2 heading page is output, and the heading page is appended with the page number "-5" (step J). That is, the heading page of Chapter 2 is the page number (-5), which is the page following the blank page (4th page), and the page number "-5".
Will be output together with. Since the subsequent processing is a repetition of the above processing, description thereof will be omitted. If the page offset and the next page offset match in step K, it means the end of the text and the process ends.

【0019】[0019]

【発明の効果】本発明は、該当頁が見出し用の頁であ
り、かつノンブルが偶数である際、このノンブルを付し
た白紙頁を出力し、この白紙頁の次頁に、前記ノンブル
の次のノンブルを付すと共に、上記見出し情報を含むテ
キストを出力するようにしたので、見出し頁は必ず奇数
頁に出力され、ユーザが見出し頁の配置にとらわれる必
要はなく、円滑に文書を出力できる。
According to the present invention, when the corresponding page is a heading page and the page number is an even number, a blank page with this page number is output. Since the text including the heading information is output, the heading page is always output as an odd number page, and the user need not be restricted by the layout of the heading page and the document can be output smoothly.

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

【図1】本発明の一実施例に係る文書出力方法を用いた
文書作成装置のブロック図
FIG. 1 is a block diagram of a document creation apparatus using a document output method according to an embodiment of the present invention.

【図2】(a)本発明の一実施例に係る文書作成方法を
用いた文書作成装置のデータ構成図 (b)本発明の一実施例に係る文書作成方法を用いた文
書作成装置のデータ構成図
FIG. 2A is a data configuration diagram of a document creating apparatus using a document creating method according to an embodiment of the present invention. FIG. 2B is data of a document creating apparatus using a document creating method according to an embodiment of the present invention. Diagram

【図3】本発明の一実施例に係る文書保存方法の制御手
順を示すフローチャート
FIG. 3 is a flowchart showing a control procedure of a document storage method according to an embodiment of the present invention.

【図4】本発明の一実施例に係る文書出力方法のフロー
チャート
FIG. 4 is a flowchart of a document output method according to an embodiment of the present invention.

【図5】本発明の一実施例に係る文書出力方法の工程説
明図
FIG. 5 is a process explanatory diagram of a document output method according to an embodiment of the present invention.

【図6】(a)本発明の一実施例に係る文書出力方法の
工程説明図 (b)本発明の一実施例に係る文書出力方法の工程説明
図 (c)本発明の一実施例に係る文書出力方法の工程説明
6A is a process explanatory diagram of a document output method according to an embodiment of the present invention. FIG. 6B is a process explanatory diagram of a document output method according to an embodiment of the present invention. Process explanatory diagram of the document output method

【符号の説明】[Explanation of symbols]

1 CPU 2 ROM 3 RAM 4 文書情報 5 書式情報 6 頁番号情報 7 キーボード 8 イメージメモリ 9 プリンタ 10 CRT 11 バス 12 テキスト記憶部 13 オフセット記憶部 1 CPU 2 ROM 3 RAM 4 Document information 5 Format information 6 Page number information 7 Keyboard 8 Image memory 9 Printer 10 CRT 11 Bus 12 Text storage unit 13 Offset storage unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文書作成装置の記憶部に記憶されたテキス
トをノンブルを付しながら頁単位で出力する文書出力方
法であって、 該当頁が見出し用の頁であり、かつノンブルが偶数であ
る際、このノンブルを付した白紙頁を出力し、この白紙
頁の次頁に、前記ノンブルの次のノンブルを付すと共
に、上記見出し情報を含むテキストを出力することを特
徴とする文書出力方法。
1. A document output method for outputting text stored in a storage unit of a document creation device page by page while adding a page number, wherein the corresponding page is a heading page and the page number is an even number. At this time, a blank page attached with this page number is output, a page number next to the page number is attached to the next page of this page, and a text including the heading information is output.
JP5007261A 1993-01-20 1993-01-20 Document output method Pending JPH06214987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5007261A JPH06214987A (en) 1993-01-20 1993-01-20 Document output method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5007261A JPH06214987A (en) 1993-01-20 1993-01-20 Document output method

Publications (1)

Publication Number Publication Date
JPH06214987A true JPH06214987A (en) 1994-08-05

Family

ID=11661089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5007261A Pending JPH06214987A (en) 1993-01-20 1993-01-20 Document output method

Country Status (1)

Country Link
JP (1) JPH06214987A (en)

Similar Documents

Publication Publication Date Title
EP0075732A2 (en) Method and apparatus for merge processing in a text processing system
JP2681627B2 (en) Document creation and editing device
JPH06214987A (en) Document output method
JP2763227B2 (en) Format determination method
JPS6048081A (en) Character processor
JPH0410660B2 (en)
JPS6038750B2 (en) How to enter characters in a word processor
JPS61156366A (en) Word processor
JPS61105666A (en) Document processing device
JP3497263B2 (en) Method and apparatus for generating fixed format document from marked document
JP3157956B2 (en) Document processing device with list display function of format setting
JPH0666066B2 (en) Document processor with furigana addition function
JP2534685B2 (en) Information display method
JP2789596B2 (en) Document processing device
JPH0572270B2 (en)
JP2978178B2 (en) Document creation apparatus and control method thereof
JPH079705A (en) Method of printing designated page in one lump and apparatus thereof
JPH07200546A (en) Document confirming method
JPH0721189A (en) Translation assisting system
JPS62138958A (en) Document preparing device
JPS63103373A (en) Document producing device
JPS62186355A (en) Document preparation system
JPH05307550A (en) Document preparing device
JPS60104373A (en) Character processor
JPS6177955A (en) Automatic number application system for sentence number of document processing