JPH01100667A - Contents forming device - Google Patents

Contents forming device

Info

Publication number
JPH01100667A
JPH01100667A JP62259063A JP25906387A JPH01100667A JP H01100667 A JPH01100667 A JP H01100667A JP 62259063 A JP62259063 A JP 62259063A JP 25906387 A JP25906387 A JP 25906387A JP H01100667 A JPH01100667 A JP H01100667A
Authority
JP
Japan
Prior art keywords
contents
character string
document
line head
page number
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
JP62259063A
Other languages
Japanese (ja)
Inventor
Akira Shirata
白田 明
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP62259063A priority Critical patent/JPH01100667A/en
Publication of JPH01100667A publication Critical patent/JPH01100667A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To form the contents of a document by designating a line head form defined to be the index of the contents, extracting a character string starting in the line head form coinciding with the designated line head form and storing the extracted character string and a corresponding page number in a contents storing means. CONSTITUTION:At the time of depressing the contents forming key 2 of a keyboard 1, the line head form designating picture of the index of the contents is displayed on a display 3. The line head form designated by an operator is stored in a form accumulating memory 7 by a form input processing part 6. A heading extracting part 8 extracts the character string starting in the line head form coinciding with the designated line head form to calculate the page number in which the extracted character string is present by a page number calculating part 9. The extracted character string and the corresponding page number are written in a contents file 5 and the contents of the file 5 are displayed on the screen of the display 3 through an editing control part 11. In such a way, the contents can be automatically formed from the document.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、ワードプロセッサ等において文書の目次を作
成する目次作成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to a table of contents creation device for creating a table of contents of a document in a word processor or the like.

(ロ)従来の技術 特開昭62−117059号公報に開示されているよう
に、ワードプロセッサにおける従来の目次作成は、文書
の入力の際に、目次の見出しにしたい文書中の文字列に
オペレータが制御フードを付加して行き、文書入力後、
制御コードが付加された文字列を、この文字列が存在す
る頁の情報と共に抽出することにより行われていた。
(b) Conventional technology As disclosed in Japanese Patent Laid-Open No. 62-117059, when creating a conventional table of contents using a word processor, when inputting a document, the operator selects a character string in the document that is to be used as a heading for the table of contents. After adding the control hood and inputting the document,
This was done by extracting a character string with a control code added along with information about the page where this character string exists.

(ハ)発明が解決しようとする問題点 従来の目次作成は、オペレータが目次の見出しにしたい
文字列を文書中から眼で探し、キーボード等の入力手段
を用いてその文字列に制御フードを付加しなければなら
なかったので、その作業が煩わしいものであった。
(c) Problems to be solved by the invention In conventional table of contents creation, an operator visually searches a document for a character string that he or she wants to use as a heading for a table of contents, and then adds a control hood to that character string using an input means such as a keyboard. The work was troublesome because it had to be done.

又、文書作成の専用機では、制御コードを独自に規定し
て使用することは容易であるが、パーソナルコンビコー
タ等の汎用機では、独自に制御コードを規定すると、汎
用性がなくなり好ましくない。
Further, in a specialized machine for document creation, it is easy to define and use a control code independently, but in a general-purpose machine such as a personal combination coater, defining a control code independently is not preferable because it loses its versatility.

(ニ)問題点を解決するための手段 本発明は、目次の見出しとすべき行頭形態を指定する指
定手段と、文書中の行頭形態が前記指定きれた行頭形態
と合致するか否かを判定し、合致する行頭形態で始まる
文字列を抽出する抽出手段と、該抽出文字列が存在する
頁番号を算出する算出手段とを有し、前記抽出文字列及
び対応する前記頁番号を目次記憶手段に記憶して前記文
書の目次を作成するようにしたものである。
(d) Means for Solving the Problems The present invention provides a specifying means for specifying a heading format to be used as a heading in a table of contents, and a determination unit for determining whether or not the heading format in a document matches the specified heading format. and a table of contents storage means for storing the extracted character string and the corresponding page number. The table of contents of the document is created by storing the information in the document.

(ホ)作用 本発明では、前記指定手段により目次の見出しとして抽
出すべき文字列の行頭Y/!!を自由に指定でき、且つ
、前記抽出手段により、オペレータが制御フードを付加
することなく、目次の見出しを文書から自動的に抽出で
きる。
(e) Effect In the present invention, the beginning of the character string to be extracted as a heading of the table of contents by the specifying means Y/! ! can be specified freely, and the table of contents heading can be automatically extracted from the document by the extraction means without the need for an operator to add a control hood.

(へ)実施例 第1図は本発明の実施例の構成を示すブロック図であり
、(1)は目次作成キー(2)を備えたキーボード、(
3)は表示手段としてのデイスプレィ、(4)は文書を
記憶する文書ファイル、(5)は目次を記憶する目次フ
ァイル、(6)はキーボード(1)により指定きれた目
次の見出しとしての行頭形態を、形態蓄積メモリ(7)
に蓄積する形態入力処理部、(8)は形態蓄積メモリ(
7)に蓄積された行頭形態で始まる文字列を見出しとし
て抽出する見出し抽出部、(9)は抽出した見出しが存
在する頁番号を算出する算出部、(10)はキーボード
(1)により指定された除外頁数を記憶する頁数記憶部
、(11)は編集制御部である。
(v) Embodiment FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, in which (1) is a keyboard equipped with a table of contents creation key (2);
3) is a display as a display means, (4) is a document file that stores documents, (5) is a table of contents file that stores a table of contents, and (6) is a heading format for a table of contents specified by the keyboard (1). , form storage memory (7)
(8) is a form storage memory (
7) is a heading extracting section that extracts the character string starting with the head of line format stored as a heading; (9) is a calculating section that calculates the page number on which the extracted heading exists; (10) is a section that is specified by the keyboard (1). A page number storage unit stores the number of excluded pages, and (11) is an editing control unit.

第2図は、本実施例の処理内容を示すフローチャートで
あり、以下、このフローチャートを参照しながら説明す
る。
FIG. 2 is a flowchart showing the processing contents of this embodiment, and the following description will be made with reference to this flowchart.

先ず、キーボード(1)の目次作成キー(2)を押下す
ると、デイスプレィ(3)には、第3図に示すように、
目次の見出しの行頭形態指定画面が表示され、オペレー
タは、「第X章J+’第X部」と   □いった行頭形
態をキーボード(1)から入力することにより、抽出す
べき見出しの行頭形態を自由に指定することができる。
First, when you press the table of contents creation key (2) on the keyboard (1), the display (3) will show the following as shown in Figure 3.
A screen for specifying the heading format of the table of contents heading is displayed, and the operator can input the heading format of the heading to be extracted by inputting the heading format such as "Chapter X, J + 'Part X" from the keyboard (1). It can be specified freely.

指定された行頭形態は、形態入力処理部(6)により形
態蓄積メモリ(7)に順次蓄積される。例えば、第3U
fAの如き指定を行えば、形態蓄積メモリ(7)の内容
は第4図のようになる。
The specified line head format is sequentially stored in the format storage memory (7) by the format input processing section (6). For example, 3rd U
If a designation such as fA is made, the contents of the form storage memory (7) will become as shown in FIG.

ここでは、文字列を可変とするため、数字は「X」、英
字は「Y」、カタカナはrz」で代表することとし、行
頭形態としてr X 、を指定すれば、行頭が数字1文
字で始まる文字列を見出しとして指定したことを意味す
る。
Here, in order to make the character string variable, numbers are represented by "X", alphabetic characters are represented by "Y", and katakana are represented by "rz".If you specify r This means that the starting character string is specified as a heading.

このようにして、行頭形態の指定が終了したら、目次を
作成しようとする文書を指定し、続いて、除外頁数を指
定する。除外頁数とは、頁数を付与すべきでない頁が文
書の先頭頁から同頁あるかを示す頁数であり、例えば、
指定文書が第5図に示すように、表紙の頁を持つ場合、
この表紙の頁を除外するために、頁数r1」を入力すれ
ば良く、指定された頁数は頁数記憶部(10)に記憶さ
れる。
After specifying the heading format in this manner, the document for which the table of contents is to be created is specified, and then the number of excluded pages is specified. The number of excluded pages is the number of pages that indicates whether there are any pages from the first page of the document that should not be assigned a page number. For example,
If the specified document has a cover page as shown in Figure 5,
In order to exclude this cover page, it is sufficient to input the page number r1, and the specified page number is stored in the page number storage section (10).

除外頁数の指定後、実行キーを押下すると、見出し抽出
部(8)は、指定された文書の各行について、先ず、行
頭の空白部分を処理対象から削除し、実際の文字列の行
頭形態が、形態蓄積メモリ(7)内の行頭形態と合致す
るか否かを判定し、合致する場合、その形態で始まる1
行分の文字列を見出しとして抽出し、これを目次ファイ
ル(5)に記憶する。次に、見出し文字列が抽出される
と、頁番号算出部(9)が起動きれ、抽出文字列が存在
する頁の頁番号を算出し、抽出文字列に対応させて算出
した頁番号を目次ファイル(5)に書込む。
After specifying the number of pages to be excluded, when you press the execution key, the heading extraction unit (8) first deletes the blank space at the beginning of each line of the specified document from the processing target, and then displays the actual character string form as the beginning of the line. , determines whether it matches the line head form in the form storage memory (7), and if it matches, 1 starts with that form.
A line of character strings is extracted as a heading and stored in the table of contents file (5). Next, when the heading character string is extracted, the page number calculation unit (9) is activated, calculates the page number of the page where the extracted character string exists, and adds the page number calculated in correspondence to the extracted character string to the table of contents. Write to file (5).

又、目次ファイル(5)の内容は編集制御部(11)を
介してデイスプレィ(3)の画面上に表示される。
Further, the contents of the table of contents file (5) are displayed on the screen of the display (3) via the editing control section (11).

ところで、頁番号算出部(9)における処理においては
、先ず、1頁の行数に基づき抽出文字列の文書ファイル
上における頁番号が算出きれ、この頁番号から除外頁数
が減算されて正しい頁番号が算出される。
By the way, in the process in the page number calculation unit (9), first, the page number of the extracted character string on the document file is calculated based on the number of lines on one page, and the number of excluded pages is subtracted from this page number to find the correct page. A number is calculated.

以上の処理が指定文書の全行について順に実行され、文
書の目次が目次ファイル(5)に作成される。例えば、
形態蓄積メモ1バフ)の内容が第4図に示す通りで、指
定文書が第5図の文書の場合、目次ファイル(5)には
第6図に示すような目次が作成きれ、この目次がデイス
プレィ(3)の画面に表示される。
The above processing is sequentially executed for all lines of the specified document, and the table of contents of the document is created in the table of contents file (5). for example,
If the contents of the form storage memo 1 buff) are as shown in Figure 4 and the specified document is the document shown in Figure 5, the table of contents as shown in Figure 6 has been created in the table of contents file (5), and this table of contents is displayed on the display (3) screen.

な文章が誤抽出綽ることがあるが、作成され剃、lで 目次を見れば、その妥当性は明確であるので、編集制御
部(11)の削除機能を用いて削除すれば良く、この他
、不適切なものは他の編集機能を用いて正しい目次にな
るよう修正すれば良い。又、目次ファイル(5)は文書
ファイル(4)と別個に作成しても良いし、文書ファイ
ル中に、各文書の先頭もしくは最終ページとして追加す
るようにしても良い。
Sometimes some sentences are incorrectly extracted, but if you look at the table of contents after creating it, its validity will be clear, so you can delete it using the deletion function of the editing control section (11). If there are any other inappropriate items, you can use other editing functions to correct them so that they are correct. Further, the table of contents file (5) may be created separately from the document file (4), or may be added to the document file as the first or last page of each document.

(ト)発明の効果 本発明に依れば、文書作成中に目次の見出しとしたい文
字列に制御コードを付加しなくても、自動的に見出しを
抽出できるので、オペレータの負−タが自由に指定でき
るので、どのような文書の目次作成にも対象できる。
(G) Effects of the Invention According to the present invention, headings can be automatically extracted without the need to add a control code to the character string that is to be used as a heading in the table of contents during document creation, so the operator is free to use negative input. can be specified, so it can be used to create a table of contents for any document.

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

第1図は本発明の実施例の構成を示すプロ・ンク図、第
2図は本実施例の処理内容を示すフローチャート、第3
図は見出しの行頭形態を指定する指定画面を示す表示例
、第4図は形態蓄積メモリの内容を示す説明図、第5図
は文書ファイルの内容を示す説明図、第6図は目次ファ
イルの内容を示す説明図である。 (1)・・・キーボード、(2)・・・デイスプレィ、
(3)・・・文書ファイノ呟  (4)・・・目次ファ
イル、(7)・・・形態蓄積メモリ、 (8)・・・見
出し抽出部、(9)・・・頁番号算出部、 (10)・
・・頁数記憶部。
FIG. 1 is a flowchart showing the configuration of an embodiment of the present invention, FIG. 2 is a flowchart showing the processing contents of this embodiment, and FIG.
The figure shows a display example showing a specification screen for specifying the header format of a heading, Figure 4 is an explanatory diagram showing the contents of the format storage memory, Figure 5 is an explanatory diagram showing the contents of a document file, and Figure 6 is an explanatory diagram of the contents of a table of contents file. It is an explanatory diagram showing the contents. (1)...keyboard, (2)...display,
(3)...Document Faino Tweet (4)...Table of contents file, (7)...Form storage memory, (8)...Heading extraction unit, (9)...Page number calculation unit, ( 10)・
...Page number storage section.

Claims (1)

【特許請求の範囲】[Claims] (1)目次の見出しとすべき行頭形態を指定する指定手
段と、文書中の行頭形態が前記指定された行頭形態と合
致するか否かを判定し、合致する行頭形態で始まる文字
列を抽出する抽出手段と、該抽出文字列が存在する頁番
号を算出する算出手段とを有し、前記抽出文字列及び対
応する前記頁番号を目次記憶手段に記憶して前記文書の
目次を作成することを特徴とする目次作成装置。
(1) A specification means for specifying the heading format to be used as a table of contents heading, determining whether the heading format in the document matches the specified heading format, and extracting a character string that starts with the matching bullet format. and a calculation means that calculates a page number on which the extracted character string exists, and stores the extracted character string and the corresponding page number in a table of contents storage means to create a table of contents of the document. A table of contents creation device featuring:
JP62259063A 1987-10-14 1987-10-14 Contents forming device Pending JPH01100667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62259063A JPH01100667A (en) 1987-10-14 1987-10-14 Contents forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62259063A JPH01100667A (en) 1987-10-14 1987-10-14 Contents forming device

Publications (1)

Publication Number Publication Date
JPH01100667A true JPH01100667A (en) 1989-04-18

Family

ID=17328809

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62259063A Pending JPH01100667A (en) 1987-10-14 1987-10-14 Contents forming device

Country Status (1)

Country Link
JP (1) JPH01100667A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60254366A (en) * 1984-05-31 1985-12-16 Sony Corp Word processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60254366A (en) * 1984-05-31 1985-12-16 Sony Corp Word processor

Similar Documents

Publication Publication Date Title
JPH0128980B2 (en)
JPS6283787A (en) Output control system for display screen
JPH01100667A (en) Contents forming device
JPS6378228A (en) Information retrieving device
JPH01100666A (en) Contents forming device
JP2845897B2 (en) Document search / display method and apparatus
JP2562497B2 (en) Annotation word processor
JP2995718B2 (en) Document history management device
JP2505735B2 (en) Document processing device
JP2669839B2 (en) Formula input editing device
JP2573609B2 (en) Document creation device
JPH05101038A (en) Word processor equipped with bookmark function
JP2002297574A (en) System and program for kana putting along side chinese characters
JPH0470962A (en) Data processor
JPH04158469A (en) Document preparing device
JP3166995B2 (en) Comment giving method and document processing device
JPS61100834A (en) Word processor
JPS63108430A (en) Document display system
JP3067083B2 (en) Document input device
JPS60256853A (en) Method and device for file retrieval
JPH01191256A (en) Document preparing device
JPH07249034A (en) Character string extraction processor
JPH02151923A (en) Document processor
JPH0261757A (en) Documentat preparing device
JPH02136956A (en) Extracting method for layout information