JPH1069481A - Document processor and medium where document processing program is recorded - Google Patents

Document processor and medium where document processing program is recorded

Info

Publication number
JPH1069481A
JPH1069481A JP8228017A JP22801796A JPH1069481A JP H1069481 A JPH1069481 A JP H1069481A JP 8228017 A JP8228017 A JP 8228017A JP 22801796 A JP22801796 A JP 22801796A JP H1069481 A JPH1069481 A JP H1069481A
Authority
JP
Japan
Prior art keywords
line
line feed
document
feed code
format
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
JP8228017A
Other languages
Japanese (ja)
Inventor
Sachiko Iida
幸子 飯田
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP8228017A priority Critical patent/JPH1069481A/en
Publication of JPH1069481A publication Critical patent/JPH1069481A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make an automatic line feed part not shift in line feed position when the format is changed by inserting a line feed code at a position where a line is fed according to previously set format information in response to a specific indication or a change in format. SOLUTION: A central processing unit(CPU) 101 executes a program and a work, etc., is provided in a RAM 107. A 'process line' is a work for storing a line position of a document which is being processed and when an operator specifies a process range, the values of the range specification start line and range specification end line are stored in a 'start line' and an 'end line' respectively. Then it is judged whether there is a line feed code in the 'process line' and when not, the line feed code is inserted into the line end (found from the number of one-line characters of format information effective to the line) of the process line. Then when there is a space in front of the line feed code, spaces from a character data end position to the line feed code are deleted.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、文書の入力/編集
の処理を行うワードプロセッサ等の文書処理装置および
文書処理プログラムを記録した媒体に関するものであ
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a document processing apparatus such as a word processor for inputting / editing a document and a medium recording a document processing program.

【0002】[0002]

【従来の技術および発明が解決しようとする課題】従
来、文書作成編集時において、書式を変更した場合、自
動改行部分(改行コードが存在しない部分)は改行位置
が変化する。これは、通常の文書においては問題ない
が、文書の内容やその時の状況によってはレイアウトを
崩したくない場合がある。
2. Description of the Related Art Conventionally, when a format is changed at the time of creating and editing a document, an automatic line feed portion (a portion where a line feed code does not exist) changes its line feed position. This is not a problem in a normal document, but there are cases where the user does not want to break the layout depending on the contents of the document and the situation at that time.

【0003】図4は改行を使用せずスペースで表の空白
部分を埋めた場合の画面表示例である。プロック編集
(罫線枠内で編集を行う機能)を行った後、枠内にはス
ペースが挿入されるが、1行字数と罫線の位置の関係で
罫線の後ろに改行が挿入されない場合がある。また、ワ
ープロ初心者も不慣れなため、このような表を作成する
場合がある。
FIG. 4 shows an example of a screen display when a blank portion of a table is filled with a space without using a line feed. After block editing (function of editing in the ruled line frame), a space is inserted in the frame, but a line feed may not be inserted after the ruled line due to the relationship between the number of characters per line and the position of the ruled line. Also, beginners of word processors are not accustomed to creating such tables.

【0004】例えば、図4のように作成された住所録
に、新たに電話番号の項目を追加して図8のような住所
録を作成しようとする場合、まず、追加文書が入力可能
なように書式を変更して、一行字数を大きくする必要が
ある。
For example, when an address book as shown in FIG. 8 is to be created by newly adding a telephone number item to the address book created as shown in FIG. 4, first, an additional document can be input. It is necessary to change the format to increase the number of characters per line.

【0005】しかし、このような場合、一行字数を大き
くしようとすると、図5のようにレイアウトが崩れてし
まう。そこで、書式変更の前に、図6や図7のように、
自動改行部分に改行コードを入力するという作業が必要
となる。
However, in such a case, if the number of one-line characters is to be increased, the layout is broken as shown in FIG. Therefore, before the format change, as shown in FIGS. 6 and 7,
It is necessary to enter a line feed code in the automatic line feed part.

【0006】また、同様に、図9のような1行17文字
で作成された文書を用いて、図11のような段組文書を
作成したい場合、まず、図9の表示状態から書式を変更
し、追加文書の入力を行なわなければいけないが、図9
の表示状態のままで書式を変更すれば(1行字数を追加
すれば)、レイアウトが崩れてしまう。そこで、図10
のように、自動改行部分に改行コードを入力し、その後
で書式を変更をする必要がある。
Similarly, when it is desired to create a multi-column document as shown in FIG. 11 using a document having 17 characters per line as shown in FIG. 9, first, the format is changed from the display state of FIG. However, it is necessary to input an additional document.
If the format is changed (adding the number of characters per line) while the display state of is displayed, the layout is broken. Therefore, FIG.
It is necessary to enter a line feed code in the automatic line feed part and then change the format.

【0007】上記のように、従来では、書式を変更した
場合、自動改行部分は改行位置が変化し、レイアウトが
崩れてしまうので、それを防ぐために、自動改行部分の
各行に改行コードを入力するという煩わしい操作が必要
であった。
[0007] As described above, conventionally, when the format is changed, the line feed position of the automatic line feed portion changes and the layout is collapsed. To prevent this, a line feed code is input to each line of the automatic line feed portion. Such a troublesome operation was required.

【0008】[0008]

【課題を解決するための手段】本発明は、上記課題の解
決を目的としてなされたものであって、請求項1記載の
発明は、入力された文書を設定された書式情報に基づい
て出力する文書処理装置において、特定指示または書式
の変更に応答して、予め設定された書式情報に基づいて
改行された位置に改行コードを挿入することを特徴とす
る文書処理装置である。
SUMMARY OF THE INVENTION The present invention has been made for the purpose of solving the above problems, and the invention according to claim 1 outputs an input document based on set format information. In the document processing apparatus, a line feed code is inserted at a position where a line feed is performed based on preset format information in response to a specific instruction or a change in format.

【0009】また、請求項2記載の発明は、入力された
文書を設定された書式情報に基づいて出力する文書処理
装置において、特定指示または書式の変更に応答して、
予め設定された書式情報に基づいて改行された位置に改
行コードを挿入するとともに、最終文字データから挿入
された改行コードまでのスペースデータを削除すること
を特徴とする文書処理装置である。
According to a second aspect of the present invention, there is provided a document processing apparatus for outputting an input document based on set format information.
A document processing apparatus that inserts a line feed code at a line feed position based on preset format information, and deletes space data from the last character data to the inserted line feed code.

【0010】また、請求項3記載の発明は、入力された
文書を設定された書式情報に基づいて出力させる文書処
理プログラムを記録した媒体において、特定指示または
書式の変更に応答して、予め設定された書式情報に基づ
いて改行された位置に改行コードを挿入させることを特
徴とする文書処理プログラムを記録した媒体である。
According to a third aspect of the present invention, there is provided a medium in which a document processing program for outputting an input document based on set format information is recorded in response to a specific instruction or a change in format. A document processing program for causing a line feed code to be inserted at a position where a line feed is performed based on the generated format information.

【0011】[0011]

【発明の実施の形態】以下、図をもとに本発明について
説明する。なお、これによって本発明が限定されるもの
ではない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. Note that the present invention is not limited by this.

【0012】図1は本発明を採用した装置のブロック図
である。本発明を採用した装置は、プログラムの実行を
行う中央処理装置(CPU)101と、文字などを入力
するキーボードやペン、マウスなどの入力装置102
と、CRTや液晶などの表示装置103と、外部記憶装
置104と、プリンタなどの印刷装置105と、文書作
成・編集のためのプログラム及び固定データを格納する
ROM106と、各種データを格納するRAM107と
から構成される。
FIG. 1 is a block diagram of an apparatus employing the present invention. An apparatus adopting the present invention includes a central processing unit (CPU) 101 for executing a program and an input device 102 such as a keyboard, a pen, and a mouse for inputting characters and the like.
A display device 103 such as a CRT or a liquid crystal; an external storage device 104; a printing device 105 such as a printer; a ROM 106 for storing a document creation / editing program and fixed data; and a RAM 107 for storing various data. Consists of

【0013】次に、本発明で使用するワーク類の説明を
行う。これらワーク類はRAM107に設けられる。
[文章バッファ]は入力装置102より入力された文字
データや書式情報、タブ情報を記憶するパッファエリア
であり、[開始行]は文書データの処理開始行位置を記
憶するワークであり、[終了行]は文書データの処理終
了行位置を記憶するワークであり、[処理行]は文書の
処理中の行位置を記憶するワークである。
Next, works used in the present invention will be described. These works are provided in the RAM 107.
[Sentence buffer] is a buffer area for storing character data, format information, and tab information input from the input device 102, [Start line] is a work for storing the processing start line position of the document data, and [End line]. ] Is a work for storing the line position at which the processing of the document data ends, and [processing line] is a work for storing the line position during the processing of the document.

【0014】次に、図2は本発明を実行した場合の表示
結果と文書バッファとの関係を示した図である。(a)
は1行目と5行目で書式の1行字数を変更しており、2
行目にだけ強制改行され、他の行は自動改行されている
文書である。この文書に本発明の処理を行ったものが
(b)、(c)である。1行目は行末(「お」の後)に
改行コードが挿入される。2行目はもともと改行コード
が存在するため新たに改行コードは挿入しない。3乃至
4行目は文字の後ろにスペースがあり、(b)はスペー
スの後に改行を挿入した場合であり、(c)は改行挿入
後文字データ終了位置から改行コードの間のスペースを
削除(「す」と「改行コード」の間及び「つ」と「改行
コード」の間のスペースを削除)した場合である。5乃
至6行目は、行末(「ぬ」の後、「ふ」の後)に改行コ
ードが挿入される。
FIG. 2 is a diagram showing a relationship between a display result and a document buffer when the present invention is executed. (A)
Changes the number of characters per line in the first and fifth lines.
Only the first line is a line break, and the other lines are automatically line-breaked documents. (B) and (c) are obtained by subjecting this document to the processing of the present invention. In the first line, a line feed code is inserted at the end of the line (after “O”). Since the line feed code originally exists in the second line, no new line feed code is inserted. The third and fourth lines have a space after the character, (b) shows the case where a line feed is inserted after the space, and (c) deletes the space between the line feed code and the end of the character data after the line feed ( This is the case where the spaces between “su” and “line feed code” and between “tsu” and “line feed code” have been deleted). In the fifth and sixth lines, a line feed code is inserted at the end of the line (after “nu”, after “fu”).

【0015】次に、図3は本発明の動作の流れを表すフ
ローチャート図である。まず、固定値として[開始行]
に1が[終了行]に文末行が記憶される(S501)。
次に、範囲指定されたかという判断が行われる(S50
2)。オペレータが処理範囲の指定を行った場合、[開
始行]に範囲指定開始行、[終了行]に範囲指定終了行
の値が記憶される(S503)。処理範囲の指定が無い
場合はS503の処理は行われない。
FIG. 3 is a flowchart showing the flow of the operation of the present invention. First, [Start row]
Is stored in the [end line] (S501).
Next, it is determined whether or not the range has been designated (S50).
2). When the operator specifies the processing range, the value of the range specification start line is stored in [Start Line], and the value of the range specification end line is stored in [End Line] (S503). If the processing range is not specified, the processing of S503 is not performed.

【0016】そして、[処理行]に[開始行]の値が記
憶され(S504)、本発明の処理が行われる。まず、
[処理行]に改行コードがあるかの判断がされ(S50
5)、無い場合は[処理行]の行末(該当行に有効な書
式情報の1行字数より求める)に改行コードが挿入され
る(S506)。改行コードがある場合は、本発明の処
理は行われない。次に、改行コードの前にスペースが存
在するかという判断がされ(S507)、存在する場合
は文字データ終了位置から改行コードまでのスペースを
削除する処理が行われる(S508)。存在しない場合
はS508の処理は行われない。これで1行目について
の一連の作業は完了する。
Then, the value of [starting line] is stored in [processing line] (S504), and the processing of the present invention is performed. First,
It is determined whether there is a line feed code in [processing line] (S50).
5) If not, a line feed code is inserted at the end of the line of [processing line] (determined from the number of characters per line of valid format information for the line) (S506). If there is a line feed code, the processing of the present invention is not performed. Next, it is determined whether a space exists before the line feed code (S507). If there is, a process of deleting the space from the character data end position to the line feed code is performed (S508). If not, the process of S508 is not performed. This completes a series of operations for the first row.

【0017】次に、[処理行]と[終了行]が一致する
かという判断が行われ、一致しない場合は、[処理行]
がインクリメントされ(S510)、次行についてS5
05からの同様の処理が行われる。[処理行]と[終了
行]が一致する場合は処理が終了する。
Next, it is determined whether or not the [processing row] and the [ending row] match. If they do not match, the [processing row]
Is incremented (S510), and S5 is executed for the next line.
The same processing from 05 is performed. If [processing line] and [end line] match, the process ends.

【0018】この本発明の一連の処理は、特定機能とし
てオペレータのキー操作により行われても良いし、書式
変更時に同時に行われても良い。
The series of processing according to the present invention may be performed by a key operation of an operator as a specific function, or may be performed simultaneously when a format is changed.

【0019】[0019]

【発明の効果】本発明によれば、請求項1記載の発明で
は、入力された文書を設定された書式情報に基づいて出
力する文書処理装置において、特定指示または書式の変
更に応答して、予め設定された書式情報に基づいて改行
された位置に改行コードを挿入することにより、自動改
行(書式情報に基づく改行)を強制改行(改行コードに
よる改行)に変換するので、以後の書式変更に伴うレイ
アウトの乱れを防ぎ、オペレータが改行を挿入するとい
う手作業がなくなり、操作性が向上する。
According to the present invention, a document processing apparatus for outputting an input document based on set format information in response to a specific instruction or a change in format is provided. By inserting a line feed code at a line feed position based on the preset format information, automatic line feed (line feed based on format information) is converted to forced line feed (line feed with line feed code). The accompanying layout disorder is prevented, and the manual operation of inserting a line feed by the operator is eliminated, thereby improving operability.

【0020】また、請求項2記載の発明では、入力され
た文書を設定された書式情報に基づいて出力する文書処
理装置において、特定指示または書式の変更に応答し
て、予め設定された書式情報に基づいて改行された位置
に改行コードを挿入するとともに、最終文字データから
挿入された改行コードまでのスペースデータを削除する
ことにより、自動改行(書式情報に基づく改行)を強制
改行(改行コードによる改行)に変換するので、以後の
書式変更に伴うレイアウトの乱れを防ぎ、オペレータが
改行を挿入するという手作業がなくなり、操作性が向上
し、また、文字データと改行の間にある不要なスペース
を自動的に削除することができるため、更に操作性が向
上し、デーク容量削減などにより文書バッファを有効に
使用することができる。
According to a second aspect of the present invention, in a document processing apparatus for outputting an input document based on set format information, a format information set in advance is set in response to a specific instruction or a change in format. A line feed code is inserted at the position where the line feed is performed based on the line feed code, and the space data from the last character data to the inserted line feed code is deleted. (Line feed) to prevent layout disturbances due to subsequent format changes, eliminate the need for the operator to insert line feeds, improve operability, and save unnecessary space between character data and line feeds. Can be automatically deleted, further improving the operability and effectively using the document buffer by reducing the amount of data. .

【0021】また、請求項3記載の発明では、入力され
た文書を設定された書式情報に基づいて出力させる文書
処理プログラムを記録した媒体において、特定指示また
は書式の変更に応答して、予め設定された書式情報に基
づいて改行された位置に改行コードを挿入させる文書処
理プログラムを媒体に記録したので、この処理により、
自動改行(書式情報に基づく改行)を強制改行(改行コ
ードによる改行)に変換するので、以後の書式変更に伴
うレイアウトの乱れを防ぎ、オペレータが改行を挿入す
るという手作業がなくなり、操作性が向上する。
According to a third aspect of the present invention, a medium in which a document processing program for outputting an input document based on the set format information is recorded, in response to a specific instruction or a change in the format, is set in advance. Since a document processing program that inserts a line feed code at a line feed position based on the formatted information is recorded on the medium,
Automatic line breaks (line breaks based on format information) are converted to forced line breaks (line breaks based on line break codes). improves.

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

【図1】本発明を採用した装置のブロック図である。FIG. 1 is a block diagram of an apparatus employing the present invention.

【図2】本発明を実行した場合の表示結果と文書バッフ
ァとの関係を示した図である。
FIG. 2 is a diagram showing a relationship between a display result and a document buffer when the present invention is executed.

【図3】本発明の動作の流れを表すフローチャート図で
ある。
FIG. 3 is a flowchart showing the flow of the operation of the present invention.

【図4】従来技術及び本発明を説明するための表示画面
例を示す図である。
FIG. 4 is a diagram showing an example of a display screen for explaining a conventional technique and the present invention.

【図5】従来技術及び本発明を説明するための表示画面
例を示す図である。
FIG. 5 is a diagram showing an example of a display screen for explaining a conventional technique and the present invention.

【図6】従来技術及び本発明を説明するための表示画面
例を示す図である。
FIG. 6 is a diagram showing an example of a display screen for explaining a conventional technique and the present invention.

【図7】従来技術及び本発明を説明するための表示画面
例を示す図である。
FIG. 7 is a diagram showing an example of a display screen for explaining the related art and the present invention.

【図8】従来技術及び本発明を説明するための表示画面
例を示す図である。
FIG. 8 is a diagram showing an example of a display screen for explaining a conventional technique and the present invention.

【図9】従来技術及び本発明を説明するための表示画面
例を示す図である。
FIG. 9 is a diagram showing an example of a display screen for explaining the related art and the present invention.

【図10】従来技術及び本発明を説明するための表示画
面例を示す図である。
FIG. 10 is a diagram showing an example of a display screen for explaining the related art and the present invention.

【図11】従来技術及び本発明を説明するための表示画
面例を示す図である。
FIG. 11 is a diagram showing an example of a display screen for explaining the related art and the present invention.

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

101 CPU 102 入力装置 103 表示装置 104 外部記憶装置 105 印刷装置 106 ROM 107 RAM 101 CPU 102 Input device 103 Display device 104 External storage device 105 Printing device 106 ROM 107 RAM

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力された文書を設定された書式情報に
基づいて出力する文書処理装置において、 特定指示または書式の変更に応答して、予め設定された
書式情報に基づいて改行された位置に改行コードを挿入
することを特徴とする文書処理装置。
1. A document processing apparatus for outputting an input document based on set format information, wherein the document processing device responds to a specific instruction or a change in format to a position where a line feed is performed based on preset format information. A document processing device for inserting a line feed code.
【請求項2】 入力された文書を設定された書式情報に
基づいて出力する文書処理装置において、 特定指示または書式の変更に応答して、予め設定された
書式情報に基づいて改行された位置に改行コードを挿入
するとともに、最終文字データから挿入された改行コー
ドまでのスペースデータを削除することを特徴とする文
書処理装置。
2. A document processing apparatus for outputting an input document based on set format information, wherein the document processing device responds to a specific instruction or a change of a format at a position where a line feed is performed based on preset format information. A document processing apparatus which inserts a line feed code and deletes space data from the last character data to the inserted line feed code.
【請求項3】 入力された文書を設定された書式情報に
基づいて出力させる文書処理プログラムを記録した媒体
において、 特定指示または書式の変更に応答して、予め設定された
書式情報に基づいて改行された位置に改行コードを挿入
させることを特徴とする文書処理プログラムを記録した
媒体。
3. A medium in which a document processing program for outputting an input document based on set format information is recorded. In response to a specific instruction or a change in format, a line feed is performed based on preset format information. A medium recording a document processing program for causing a line feed code to be inserted at a specified position.
JP8228017A 1996-08-29 1996-08-29 Document processor and medium where document processing program is recorded Pending JPH1069481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8228017A JPH1069481A (en) 1996-08-29 1996-08-29 Document processor and medium where document processing program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8228017A JPH1069481A (en) 1996-08-29 1996-08-29 Document processor and medium where document processing program is recorded

Publications (1)

Publication Number Publication Date
JPH1069481A true JPH1069481A (en) 1998-03-10

Family

ID=16869893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8228017A Pending JPH1069481A (en) 1996-08-29 1996-08-29 Document processor and medium where document processing program is recorded

Country Status (1)

Country Link
JP (1) JPH1069481A (en)

Similar Documents

Publication Publication Date Title
JP4112200B2 (en) Character set free space setting device, character set free space setting program, and recording medium recording the same
JP3795784B2 (en) Character set free space setting device with icon display, character set free space setting program, and recording medium recording the same
JPH1069481A (en) Document processor and medium where document processing program is recorded
JPS62229463A (en) Document processor
JPH0733105B2 (en) Ruled line printing method
JPS62256123A (en) Document processor
JPH0546349A (en) Information processor
JPH0816563A (en) Information processor and information processing method
JPS6020233A (en) Western/japanese mixed sentence processor
JPH03266172A (en) Word processor
JPS62229464A (en) Document processor
JP3550715B2 (en) Document processing device
JPH01159758A (en) English editing system
JPH04160465A (en) Japanese language processor
JPS63174161A (en) Document processor
JPH0683830A (en) Print format setting device for document input device
JPH0581249A (en) Word processor
JPH07114536A (en) Document format setting method
KR19980043697A (en) Image display method for displaying the actual size of the image to be printed on the screen
JPH0744522A (en) Document processor with in-paragraph indent function
JPH0816574A (en) Document processor
JPH04123177A (en) Device and method for processing document
JPH0571111B2 (en)
JPH05165820A (en) Information processor
JPS63725A (en) Character processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040309