JPH1074198A - Document processing apparatus, document processing method, and storage medium - Google Patents

Document processing apparatus, document processing method, and storage medium

Info

Publication number
JPH1074198A
JPH1074198A JP8246939A JP24693996A JPH1074198A JP H1074198 A JPH1074198 A JP H1074198A JP 8246939 A JP8246939 A JP 8246939A JP 24693996 A JP24693996 A JP 24693996A JP H1074198 A JPH1074198 A JP H1074198A
Authority
JP
Japan
Prior art keywords
paste
paragraph
paragraph information
character string
document
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
JP8246939A
Other languages
Japanese (ja)
Inventor
Shinji Yamashita
真司 山下
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 JP8246939A priority Critical patent/JPH1074198A/en
Publication of JPH1074198A publication Critical patent/JPH1074198A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】 【課題】 1つの段落を形成している領域をペーストす
る際に、ユーザの意図に反することなく、簡単な操作で
ペースト処理を行うことができる文書処理装置を提供す
る。 【解決手段】 文書処理装置によるペースト機能処理実
行手段は、獲得されたペーストバッファ中の段落情報に
対する判定結果および獲得されたペースト位置に掛かる
段落情報に対する判定結果に基づきペーストバッファと
して獲得された文字列と獲得されたペースト位置の前後
とのそれぞれに掛けるべき段落情報を決定するペースト
段落情報決定処理部6を有し、ペースト段落情報決定処
理部6により決定された段落情報はペースト処理部7に
与えられ、ペースト処理部7は決定された段落情報に従
い獲得された指定領域の文字列を貼り付けるペースト処
理を行う。
(57) [Summary] [PROBLEMS] To provide a document processing device capable of performing a paste process by a simple operation without violating a user's intention when pasting an area forming one paragraph. SOLUTION: A paste function processing executing means of a document processing apparatus is provided with a character string acquired as a paste buffer based on a determination result for paragraph information in an acquired paste buffer and a determination result for paragraph information on an acquired paste position. And a paste paragraph information determination processing unit 6 for determining paragraph information to be applied to each of before and after the acquired paste position. The paragraph information determined by the paste paragraph information determination processing unit 6 is given to the paste processing unit 7. Then, the paste processing unit 7 performs a paste process of pasting the character string of the designated area obtained according to the determined paragraph information.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、文書中の所望のペ
ースト位置に所望の文字列を貼り付けるペースト処理機
能を有する文書処理装置、その方法および文書中の所望
のペースト位置に所望の文字列を貼り付けるペースト処
理機能を構築するためのプログラムが格納されている記
憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus having a paste processing function for pasting a desired character string at a desired paste position in a document, a method thereof, and a desired character string at a desired paste position in the document. The present invention relates to a storage medium storing a program for constructing a paste processing function for pasting.

【0002】[0002]

【従来の技術】一般に、文書処理装置においては、文書
中の所望のペースト位置に所望の文字列を移動しまたは
複写して貼り付ける機能すなわちペースト処理機能が設
けられている。
2. Description of the Related Art Generally, a document processing apparatus is provided with a function of moving or copying a desired character string to a desired paste position in a document, that is, a paste processing function.

【0003】このペースト処理機能では、まず、ユーザ
により指定された文書中の領域を獲得し、該指定領域中
の文字列およびそれに掛かる段落情報をペーストバッフ
ァとして獲得し、獲得されたペーストバッファ中の段落
情報を判定する。この段落情報とは、指定された文書中
の領域に形成されている段落を示す段落形成情報と、形
成されている段落中の文字サイズ、フォントの種類など
を示す文字修飾情報とを含む情報をいい、この段落情報
に対する判定では、段落情報に含まれている段落形成情
報の有無、文字修飾情報の識別などを行う。
In this paste processing function, first, an area in a document specified by a user is obtained, a character string in the specified area and paragraph information relating to the character string are obtained as a paste buffer, and the obtained paste buffer in the paste buffer is obtained. Determine paragraph information. The paragraph information includes paragraph formation information indicating a paragraph formed in an area in a designated document, and information including character modification information indicating a character size, a font type, and the like in the formed paragraph. In other words, in the determination of the paragraph information, the presence / absence of paragraph formation information included in the paragraph information, identification of character modification information, and the like are performed.

【0004】文書中の領域指定が行われると、次にユー
ザによりペースト位置が指定され、ユーザにより指定さ
れた文書中のペースト位置が獲得され、該獲得されたペ
ースト位置に掛かる段落情報が判定される。次いで、獲
得されたペーストバッファ中の段落情報に対する判定結
果と獲得されたペースト位置に掛かる段落情報に対する
判定結果とに応じていずれか一方の段落情報を基準に獲
得された指定領域の文字列が獲得されたペースト位置に
貼り付けられる。
When an area in a document is designated, a paste position is designated by the user, a paste position in the document designated by the user is obtained, and paragraph information on the acquired paste position is determined. You. Next, the character string of the designated area acquired based on one of the paragraph information is obtained according to the determination result for the paragraph information in the obtained paste buffer and the determination result for the paragraph information related to the obtained paste position. Is pasted at the specified paste position.

【0005】具体的には、ペースト対象となる指定領域
において段落形成情報が含まれていないときすななわち
その指定領域が段落全体を形成していないときには、獲
得されたペースト位置に掛かる段落情報を基準に獲得さ
れた指定領域の文字列がペースト位置に貼り付けられ
る。
More specifically, when the specified area to be pasted does not include the paragraph forming information, that is, when the specified area does not form the entire paragraph, the paragraph information related to the acquired paste position The character string of the specified area acquired based on the is pasted at the paste position.

【0006】また、獲得されたペーストバッファ中に段
落形成情報があるとき例えばペースト対象として指定さ
れた領域が少なくとも1つの段落を形成しているときに
は、この指定された領域の文字列の段落情報を基準に獲
得された指定領域の文字列が貼り付けられるとともに、
貼り付けられた文字列に続く位置から段落終了位置まで
の文字列が貼り付けられた文字列の文字修飾情報に従い
変換される。
When paragraph formation information is present in the acquired paste buffer, for example, when the area specified as the paste target forms at least one paragraph, the paragraph information of the character string in the specified area is deleted. The character string of the specified area acquired as the standard is pasted,
The character string from the position following the pasted character string to the paragraph end position is converted according to the character modification information of the pasted character string.

【0007】次に、1つの段落を形成している指定文字
列を貼り付けるペースト処理の一例について図10を参
照しながら説明する。図10は従来のペースト処理によ
って処理された後の文書例およびその処理前の文書例を
示す図である。
Next, an example of a paste process for pasting a designated character string forming one paragraph will be described with reference to FIG. FIG. 10 is a diagram showing an example of a document after being processed by the conventional paste processing and an example of a document before the processing.

【0008】図10(b)を参照するに、まず、ユーザ
によりコピー対象(ペースト対象)となる文書中の領域
が指定され、この指定に伴い指定された文書中の領域が
獲得されるとともに該指定領域中の文字列およびそれに
掛かる段落情報がペーストバッファとして獲得される。
本例では、ペースト対象領域として、文字列「小見出し
段落」からなる1つの段落の開始位置からその終了位置
までの領域(図中の白黒反転部分)が指定されている。
Referring to FIG. 10B, first, an area in a document to be copied (pasted) is designated by the user, and the designated area in the document is acquired in accordance with the designation, and the area is acquired. The character string in the specified area and the paragraph information on it are obtained as a paste buffer.
In this example, a region from the start position of one paragraph consisting of the character string “subheadline paragraph” to its end position (black and white inverted portion in the figure) is specified as the paste target region.

【0009】ペースト対象となる領域の指定が行われる
と、獲得されたペーストバッファ中の段落情報が判定さ
れる。本例では、文字列「小見出し段落」が1つの段落
を形成していると判定するとともに、この文字列に掛か
る文字修飾情報が12ポイントの文字サイズ、ゴシック
体のフォントを示していることを識別する。
When the area to be pasted is specified, the paragraph information in the acquired paste buffer is determined. In this example, it is determined that the character string “subheading paragraph” forms one paragraph, and that the character modification information applied to this character string indicates a character size of 12 points and a Gothic font. I do.

【0010】次いで、ユーザにより指定された文書中の
ペースト位置が獲得される。本例では、図10(c)に
示すように、文書中のP1位置がペースト位置として指
定され、このペースト位置P1が獲得されると、このペ
ースト位置に掛かる段落情報が判定される。本例では、
図10(a)に示すように、ペースト対象として指定さ
れた領域が1つの段落を形成しているから、この指定さ
れた領域の文字列「小見出し段落」の段落情報を基準に
獲得された文字列「小見出し段落」が貼り付けられると
ともに、貼り付けられた文字列に続く1つの段落形成領
域の末尾までの文字列「本文段落…段落」が貼り付けら
れた文字列の文字修飾情報に従い変換され、その結果、
破線で囲まれた領域の文字列が生成される。
Next, the paste position in the document specified by the user is obtained. In this example, as shown in FIG. 10C, the P1 position in the document is designated as the paste position, and when the paste position P1 is obtained, the paragraph information on the paste position is determined. In this example,
As shown in FIG. 10A, since the area specified as the paste target forms one paragraph, the character acquired based on the paragraph information of the character string "subheading paragraph" in the specified area is used. The column "subheading paragraph" is pasted, and the character string "body paragraph ... paragraph" up to the end of one paragraph forming area following the pasted character string is converted according to the character modification information of the pasted character string. ,as a result,
A character string in an area surrounded by a broken line is generated.

【0011】[0011]

【発明が解決しようとする課題】しかし、上述したよう
に、従来の文書処理装置では、ペースト対象として指定
された領域が1つの段落を形成しているとき、この指定
領域の文字列の段落情報を基準に指定領域の文字列が貼
り付けられるとともに、貼り付けられた文字列に続く位
置から段落終了位置までの文字列が貼り付けられた文字
列の文字修飾情報に従い変換されるから、ペースト対象
として指定した領域の文字修飾情報を保持しながら該領
域の文字列をペーストしかつペースト後の指定領域の文
字列に続く文字列を現在の文字修飾情報に保持すること
はできず、ユーザの意図に反した文書編集結果が得られ
る可能性がある。よって、1つの段落を形成している領
域をペーストする際にペースト後の指定領域の文字列に
続く文字列を現在の文字修飾情報に保持するためには、
ペースト対象として指定された領域の段落を切断する操
作を行った後にペーストを行う必要がある。
However, as described above, in the conventional document processing apparatus, when the area specified as the paste target forms one paragraph, the paragraph information of the character string of the specified area is obtained. The character string in the specified area is pasted based on the character string, and the character string from the position following the pasted character string to the paragraph end position is converted according to the character modification information of the pasted character string. It is not possible to paste the character string of the specified area while retaining the character modification information of the specified area, and retain the character string following the character string of the specified area after pasting in the current character modification information. There is a possibility that a document editing result contrary to the above may be obtained. Therefore, in order to retain the character string following the character string of the specified area after pasting in the current character modification information when pasting the area forming one paragraph,
It is necessary to paste after performing the operation of cutting the paragraph in the area specified as the paste target.

【0012】このように、1つの段落を形成している領
域をペーストする際に、必要に応じてユーザに余分な操
作が要求され、非常に手間が掛かる。
As described above, when pasting the area forming one paragraph, an extra operation is required by the user as necessary, which is very time-consuming.

【0013】本発明の目的は、1つの段落を形成してい
る領域をペーストする際に、ユーザの意図に反すること
なく、簡単な操作でペースト処理を行うことができる文
書処理装置および文書処理方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document processing apparatus and a document processing method capable of performing a paste process by a simple operation without violating a user's intention when pasting an area forming one paragraph. Is to provide.

【0014】本発明の他の目的は、1つの段落を形成し
ている領域をペーストする際に、ユーザの意図に反する
ことなく、簡単な操作でペースト処理を行うことが可能
なペースト処理機能を文書処理装置内に構築することが
できるプログラムを格納している記憶媒体を提供するこ
とにある。
Another object of the present invention is to provide a paste processing function capable of performing a paste operation by a simple operation without violating a user's intention when pasting an area forming one paragraph. It is an object of the present invention to provide a storage medium storing a program that can be constructed in a document processing device.

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明は、
文書中の所望のペースト位置に所望の文字列を貼り付け
るペースト処理機能を有する文書処理装置において、前
記文書中の指定された領域を獲得する指定領域獲得手段
と、該獲得された指定領域中の文字列およびそれに掛か
る段落情報をペーストバッファとして獲得するペースト
バッファ獲得手段と、該獲得されたペーストバッファ中
の段落情報に対する判定を行うペーストバッファ段落情
報判定手段と、ユーザにより指定された文書中のペース
ト位置を獲得するペースト位置獲得手段と、該獲得され
たペースト位置に掛かる段落情報に対する判定を行うペ
ースト位置段落情報判定手段と、前記獲得されたペース
トバッファ中の段落情報に対する判定結果および前記獲
得されたペースト位置に掛かる段落情報に対する判定結
果に基づき前記ペーストバッファとして獲得された文字
列と前記獲得されたペースト位置の前後とのそれぞれに
掛けるべき段落情報を決定するペースト段落情報決定手
段と、該決定された段落情報に従い前記獲得された指定
領域の文字列を貼り付けるためのペースト処理を行うペ
ースト処理手段とを備えることを特徴とする。
According to the first aspect of the present invention,
In a document processing apparatus having a paste processing function of pasting a desired character string to a desired paste position in a document, a designated area acquiring means for acquiring a designated area in the document, and a designated area in the acquired designated area Paste buffer acquiring means for acquiring a character string and paragraph information on the character string as a paste buffer, paste buffer paragraph information determining means for determining the acquired paragraph information in the paste buffer, and paste in a document specified by the user. A paste position obtaining means for obtaining a position, a paste position paragraph information determining means for performing a determination on paragraph information relating to the obtained paste position, a determination result for the obtained paragraph information in the paste buffer, and the obtained Based on the judgment result for the paragraph information on the paste position, Paste paragraph information determining means for determining paragraph information to be applied to each of a character string obtained as a strike buffer and before and after the obtained paste position, and a character in the obtained designated area according to the determined paragraph information A paste processing unit for performing a paste process for pasting the rows.

【0016】請求項2記載の発明は、請求項1記載の文
書処理装置において、前記段落情報は、前記文書中の段
落を示す段落形成情報と、前記文書中の文字列の文字サ
イズ、フォントの種類などを示す文字修飾情報とを含む
情報からなることを特徴とする。
According to a second aspect of the present invention, in the document processing apparatus according to the first aspect, the paragraph information includes paragraph formation information indicating a paragraph in the document, a character size of a character string in the document, and a font. It is characterized by comprising information including character modification information indicating a type and the like.

【0017】請求項3記載の発明は、請求項2記載の文
書処理装置において、前記ペーストバッファ段落情報判
定手段および前記ペースト位置段落情報判定手段は、前
記段落情報に含まれている段落形成情報の有無、文字修
飾情報の識別などを行うことを特徴とする。
According to a third aspect of the present invention, in the document processing apparatus according to the second aspect, the paste buffer paragraph information determining means and the paste position paragraph information determining means determine whether the paragraph formation information contained in the paragraph information is correct. It is characterized by the presence / absence and identification of character modification information.

【0018】請求項4記載の発明は、文書中の所望のペ
ースト位置に所望の文字列を貼り付けるペースト処理機
能を実行可能な文書処理方法において、前記文書中の指
定された領域を獲得する指定領域獲得工程と、該獲得さ
れた指定領域中の文字列およびそれに掛かる段落情報を
ペーストバッファとして獲得するペーストバッファ獲得
工程と、該獲得されたペーストバッファ中の段落情報に
対する判定を行うペーストバッファ段落情報判定工程
と、ユーザにより指定された文書中のペースト位置を獲
得するペースト位置獲得工程と、該獲得されたペースト
位置に掛かる段落情報に対する判定を行うペースト位置
段落情報判定工程と、前記獲得されたペーストバッファ
中の段落情報に対する判定結果および前記獲得されたペ
ースト位置に掛かる段落情報に対する判定結果に基づき
前記ペーストバッファとして獲得された文字列と前記獲
得されたペースト位置の前後とのそれぞれに掛けるべき
段落情報を決定するペースト段落情報決定工程と、該決
定された段落情報に従い前記獲得された指定領域の文字
列を貼り付けるためのペースト処理を行うペースト処理
工程とを備えることを特徴とする。
According to a fourth aspect of the present invention, in a document processing method capable of executing a paste processing function of pasting a desired character string at a desired paste position in a document, a designation for acquiring a designated area in the document is provided. An area obtaining step, a paste buffer obtaining step of obtaining a character string in the obtained specified area and paragraph information related to the obtained character string as a paste buffer, and paste buffer paragraph information for making a determination on the obtained paragraph information in the paste buffer A determining step; a paste position obtaining step of obtaining a paste position in a document specified by a user; a paste position paragraph information determining step of determining paragraph information relating to the obtained paste position; and the obtained paste It depends on the judgment result for the paragraph information in the buffer and the obtained paste position A paste paragraph information determining step of determining paragraph information to be applied to each of the character string obtained as the paste buffer and the obtained paste position before and after based on the determination result for the drop information; and And a paste processing step of performing a paste processing for pasting the character string of the acquired designated area.

【0019】請求項5記載の発明は、文書中の所望のペ
ースト位置に所望の文字列を貼り付けるペースト処理機
能を文書処理装置内に構築するためのプログラムが格納
されている記憶媒体において、前記プログラムは、前記
文書中の指定された領域を獲得する指定領域獲得モジュ
ールと、該獲得された指定領域中の文字列およびそれに
掛かる段落情報をペーストバッファとして獲得するペー
ストバッファ獲得モジュールと、該獲得されたペースト
バッファ中の段落情報に対する判定を行うペーストバッ
ファ段落情報判定モジュールと、ユーザにより指定され
た文書中のペースト位置を獲得するペースト位置獲得モ
ジュールと、該獲得されたペースト位置に掛かる段落情
報に対する判定を行うペースト位置段落情報判定モジュ
ールと、前記獲得されたペーストバッファ中の段落情報
に対する判定結果および前記獲得されたペースト位置に
掛かる段落情報に対する判定結果に基づき前記ペースト
バッファとして獲得された文字列と前記獲得されたペー
スト位置の前後とのそれぞれに掛けるべき段落情報を決
定するペースト段落情報決定モジュールと、該決定され
た段落情報に従い前記獲得された指定領域の文字列を貼
り付けるためのペースト処理を行うペースト処理モジュ
ールとを備えることを特徴とする。
According to a fifth aspect of the present invention, there is provided a storage medium storing a program for constructing a paste processing function for pasting a desired character string at a desired paste position in a document in a document processing apparatus. A program for acquiring a designated area in the document, a designated area acquiring module for acquiring a character string in the acquired designated area and paragraph information related to the acquired character string as a paste buffer; A paste buffer paragraph information determining module for determining the paragraph information in the paste buffer, a paste position obtaining module for obtaining a paste position in a document specified by the user, and a determination for the paragraph information related to the obtained paste position And a paste position paragraph information determining module for performing Multiplying each of the character string obtained as the paste buffer and the front and rear of the obtained paste position based on the determination result for the paragraph information in the obtained paste buffer and the determination result for the paragraph information on the obtained paste position It is characterized by comprising a paste paragraph information determining module for determining paragraph information to be determined, and a paste processing module for performing a paste process for pasting the character string of the acquired designated area according to the determined paragraph information.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施の形態につい
て図を参照しながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0021】図1は本発明の文書処理装置の実施の一形
態の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the document processing apparatus of the present invention.

【0022】文書処理装置は、図1に示すように、RO
M17に格納されている制御プログラムおよびデータに
基づき演算、処理を実行するCPU16を備える。RO
M17に格納されている制御プログラムには、システム
全体を制御するための制御プログラム、文書作成、編集
などを行う文書処理機能に係るプログラムなどが含ま
れ、文書処理機能に係るプログラムによって構築される
文書処理機能は、文書中の所望のペースト位置に所望の
文字列を移動しまたは複写して貼り付けるペースト処理
機能を有する。なお、このペースト処理機能の詳細につ
いては後述する。CPU16による演算、処理の結果は
一時的にRAM18に格納され、RAM18はCPU1
6のワークエリアとして用いられるとともに、エラー処
理時のデータの退避エリアとして用いられる。
The document processing apparatus, as shown in FIG.
A CPU 16 is provided for executing calculations and processes based on control programs and data stored in M17. RO
The control programs stored in the M17 include a control program for controlling the entire system, a program related to a document processing function for creating and editing a document, and the like, and a document constructed by the program related to the document processing function. The processing function has a paste processing function of moving or copying and pasting a desired character string to a desired paste position in a document. The details of the paste processing function will be described later. The results of the calculation and processing by the CPU 16 are temporarily stored in the RAM 18, and the RAM 18
6 and a save area for data during error processing.

【0023】CPU16による演算、処理結果は、HD
D(ハードディスク)19またはFDD(フロッピィデ
ィスク)20に書き込まれる。HDD(ハードディス
ク)19およびFDD(フロッピィディスク)20に
は、CPU16による演算、処理結果が書き込まれると
ともに、CPU16に供給するアプリケーションプログ
ラムまたはデータが格納されている。
The calculation and processing results by the CPU 16 are HD
D (hard disk) 19 or FDD (floppy disk) 20 is written. The HDD (hard disk) 19 and the FDD (floppy disk) 20 store calculation and processing results by the CPU 16 and store application programs or data to be supplied to the CPU 16.

【0024】CPU16による演算、処理結果は、該演
算処理を実行するためのメッセージ、メニューなどとと
もに、CRT(ディスプレイ)11に表示される。CR
T11に表示されるデータはVRAM(ビデオラム)1
2を介して供給され、VRAM12はCRT11に表示
するイメージデータを展開、保持する。
The calculation and processing results by the CPU 16 are displayed on a CRT (display) 11 together with messages and menus for executing the calculation processing. CR
The data displayed at T11 is VRAM (video ram) 1
The VRAM 12 develops and holds image data to be displayed on the CRT 11.

【0025】CPU16による演算、処理結果は、Ne
t−I/F(ネットワークインタフェイス)21を介し
て他の情報処理装置と共有のプリンタに印刷出力され
る。Net−I/F21は、CPU16による演算、処
理結果のプリンタへの出力とともに、他の情報装置との
間でのデータの送受信を行う。
The calculation and processing results by the CPU 16 are Ne
The information is printed out to a printer shared with another information processing apparatus via a t-I / F (network interface) 21. The Net-I / F 21 transmits / receives data to / from another information device together with calculation by the CPU 16 and output of a processing result to a printer.

【0026】CPU16には、キーボード14またはP
D(ポインティングデバイス)15を介してユーザから
の指示、データなどが与えられる。キーボード14は、
テンキー、モード設定するための機能キーなどを有す
る。PD15はCRT11の画面上のカーソルを移動さ
せるためのマウスからなる。
The CPU 16 has a keyboard 14 or a P
Instructions, data, and the like from a user are given via a D (pointing device) 15. The keyboard 14
It has numeric keys, function keys for mode setting, and the like. The PD 15 includes a mouse for moving a cursor on the screen of the CRT 11.

【0027】上述の各ブロック間におけるデータ転送
は、アドレスバス、データバスおよび制御バスを含むI
/Oバス22を介して行われ、このデータ転送はBMU
(ビットムーブユニット)13によって制御される。
Data transfer between the above-described blocks is performed by an I / O including an address bus, a data bus, and a control bus.
This data transfer is performed via the BMU / O bus 22.
(Bit move unit) 13.

【0028】次に、文書処理機能に含まれるペースト処
理機能を実行する手段の構成について図2および図3を
参照しながら説明する。図2は図1の文書処理装置のペ
ースト処理機能実行手段の構成を示すブロック図、図3
は図1の文書処理装置のROMにおけるペースト処理機
能実行手段を構築するためのプログラムのメモリマップ
を示す図である。
Next, the structure of the means for executing the paste processing function included in the document processing function will be described with reference to FIGS. FIG. 2 is a block diagram showing the configuration of the paste processing function executing means of the document processing apparatus of FIG. 1, and FIG.
FIG. 3 is a diagram showing a memory map of a program for constructing a paste processing function execution unit in a ROM of the document processing apparatus of FIG. 1.

【0029】文書処理機能に含まれるペースト処理機能
を実行する手段すなわちペースト処理機能実行手段は、
図2に示すように、文書中の指定された領域を獲得する
指定領域獲得処理部1と、文書データ保持部8に保持さ
れている文書データを参照して獲得された指定領域中の
文字列およびそれに掛かる段落情報をペーストバッファ
として獲得、保持するペーストバッファ獲得処理部2
と、獲得されたペーストバッファ中の段落情報に対する
判定処理を行うペーストバッファ段落情報判定処理部3
と、ユーザにより指定された文書中のペースト位置を獲
得、保持するペースト位置獲得処理部4と、文書データ
保持部8に保持されている文書データを参照して獲得さ
れたペースト位置に掛かる段落情報に対する判定処理を
行うペースト位置段落情報判定処理部5とを有する。段
落情報は、文書中の領域に形成されている段落を示す段
落形成情報と、文書中の領域中の文字列の文字サイズ、
フォントの種類などを示す文字修飾情報とを含む情報か
らなり、ペーストバッファ段落情報判定処理部3および
ペースト位置段落情報判定処理部5による判定処理で
は、段落情報に含まれている段落形成情報の有無、文字
修飾情報の識別などを行う。
The means for executing the paste processing function included in the document processing function, that is, the paste processing function executing means,
As shown in FIG. 2, a designated area acquisition processing unit 1 for acquiring a designated area in a document, and a character string in the designated area acquired with reference to the document data held in the document data holding unit 8 And a buffer information acquiring section 2 for acquiring and retaining paragraph information related to the paste buffer as a paste buffer
And a paste buffer paragraph information determination processing unit 3 that performs determination processing on the paragraph information in the acquired paste buffer.
And a paste position acquisition processing unit 4 for acquiring and retaining a paste position in a document specified by the user, and paragraph information relating to the paste position acquired with reference to the document data retained in the document data retaining unit 8 And a paste position paragraph information determination processing unit 5 for performing a determination process on. The paragraph information includes paragraph formation information indicating a paragraph formed in an area in the document, a character size of a character string in the area in the document,
In the determination process performed by the paste buffer paragraph information determination processing unit 3 and the paste position paragraph information determination processing unit 5, the presence / absence of paragraph formation information included in the paragraph information is included. And character modification information.

【0030】ペーストバッファ段落情報判定処理部3に
よる判定結果およびペースト位置段落情報判定処理部5
による判定結果は、ペースト段落情報決定処理部6に与
えられる。ペースト段落情報決定処理部6は、ペースト
バッファ段落情報判定処理部3による判定結果およびペ
ースト位置段落情報判定処理部5による判定結果に基づ
きペーストバッファとして獲得された文字列と獲得され
たペースト位置の前後とのそれぞれに掛けるべき段落情
報を決定する処理を行う。
The determination result by the paste buffer paragraph information determination processing unit 3 and the paste position paragraph information determination processing unit 5
Is given to the paste paragraph information determination processing unit 6. The paste paragraph information determination processing unit 6 determines the character string acquired as the paste buffer and the position before and after the acquired paste position based on the determination result by the paste buffer paragraph information determination processing unit 3 and the determination result by the paste position paragraph information determination processing unit 5. Is performed to determine paragraph information to be applied to each of the above.

【0031】ペースト段落情報決定処理部6により決定
された段落情報はペースト処理部7に与えられ、ペース
ト処理部7は決定された段落情報に従い獲得された指定
領域の文字列を貼り付けるペースト処理を行う。
The paragraph information determined by the paste paragraph information determination processing unit 6 is given to a paste processing unit 7, and the paste processing unit 7 performs a paste process for pasting a character string of a designated area obtained according to the determined paragraph information. Do.

【0032】ペースト処理機能実行手段は、ROM17
に格納されているプログラムを読み出してCPU16に
よって実行することにより構築される。このペースト処
理機能実行手段を構築するためのプログラムは、図3に
示すように、ペースト処理機能実行手段の各部に対応付
けられている複数のモジュールから構成されている。具
体的には、指定領域獲得処理部1は指定領域獲得処理モ
ジュール1a、ペーストバッファ獲得処理部2はペース
トバッファ獲得処理モジュール2a、ペーストバッファ
段落情報判定処理部3はペーストバッファ段落情報判定
処理モジュール3a、ペースト位置獲得処理部4はペー
スト位置獲得処理モジュール4a、ペースト位置段落情
報判定処理部5はペースト位置段落情報判定処理モジュ
ール5a、ペースト段落情報決定処理部6はペースト段
落情報決定処理モジュール6a、ペースト処理部7はペ
ースト処理モジュール7aによりによりそれぞれ構築さ
れ、文書データ保持部8はRAM18によって構成され
る。
The paste processing function executing means includes a ROM 17
Is read out and executed by the CPU 16. As shown in FIG. 3, the program for constructing the paste processing function executing means is composed of a plurality of modules associated with each section of the paste processing function executing means. Specifically, the designated area acquisition processing unit 1 is a designated area acquisition processing module 1a, the paste buffer acquisition processing unit 2 is a paste buffer acquisition processing module 2a, and the paste buffer paragraph information determination processing unit 3 is a paste buffer paragraph information determination processing module 3a. The paste position acquisition processing unit 4 includes a paste position acquisition processing module 4a, the paste position paragraph information determination processing unit 5 includes a paste position paragraph information determination processing module 5a, and the paste paragraph information determination processing unit 6 includes a paste paragraph information determination processing module 6a. The processing units 7 are respectively constructed by the paste processing modules 7a, and the document data holding unit 8 is configured by the RAM 18.

【0033】なお、本実施の形態では、ペースト処理機
能実行手段を構築するためのプログラムをROM17に
格納しているが、このプログラムをFD、CD−RO
M、HDDなどの記憶媒体に格納して供給するようにす
ることも可能である。また、このプログラムの供給をN
et−I/Fを介して他の情報処理装置から行うように
することもできる。
In this embodiment, a program for constructing the paste processing function executing means is stored in the ROM 17, but this program is stored in the FD, CD-RO
It is also possible to supply the information by storing it in a storage medium such as M or HDD. In addition, supply of this program
It can also be performed from another information processing device via the et-I / F.

【0034】次に、このペースト処理機能の詳細な処理
内容について図4を参照しながら説明する。図4は図2
のペースト処理機能実行手段によるペースト処理機能の
処理手順を示すフローチャートである。
Next, the detailed processing contents of the paste processing function will be described with reference to FIG. FIG. 4 shows FIG.
7 is a flowchart showing a processing procedure of a paste processing function by a paste processing function execution unit.

【0035】図4を参照するに、まず、ステップS1に
おいて、ユーザがキーボード14またはPD15によっ
て指定したペースト対象となる文書データ中の領域を獲
得し、続くステップS2で、文書データ保持部8に保持
されている文書データを参照して獲得された指定領域中
の文字列およびそれに掛かる段落情報をペーストバッフ
ァとして獲得、保持する。
Referring to FIG. 4, first, in step S1, an area in the document data to be pasted specified by the user using the keyboard 14 or PD 15 is obtained, and in the subsequent step S2, the area is held in the document data holding unit 8. The character string in the designated area obtained by referring to the input document data and the paragraph information related to the character string are obtained and held as a paste buffer.

【0036】次いで、ステップS3およびステップS4
を順次実行し、ユーザにより指定された文書中のペース
ト位置を獲得、保持するとともに、文書データ保持部8
に保持されている文書データを参照して獲得されたペー
スト位置に掛かる段落情報を獲得、保持する。
Next, step S3 and step S4
Are sequentially executed to obtain and hold the paste position in the document specified by the user,
The paragraph information relating to the paste position obtained by referring to the document data stored in is acquired and stored.

【0037】次いで、ステップS5に進み、獲得された
ペーストバッファ中の文字列に段落の切れ目が存在する
か否かを判定する。獲得されたペーストバッファ中の文
字列に段落の切れ目が存在しないときには、ステップS
6に進み、ペースト位置に掛かる段落情報を獲得された
ペーストバッファの文字列に対する段落情報として引き
継ぎ、続くステップS7で、獲得されたペーストバッフ
ァの文字列をペースト位置へ貼り付ける処理を実行す
る。このペースト処理では、引き継がれた段落情報に従
い獲得されたペーストバッファの文字列をペースト位置
へ貼り付ける。
Then, the process proceeds to a step S5, wherein it is determined whether or not a paragraph break exists in the obtained character string in the paste buffer. If there is no paragraph break in the obtained character string in the paste buffer, step S
The process proceeds to step S6, where the paragraph information relating to the paste position is taken over as the paragraph information for the acquired character string in the paste buffer, and in the following step S7, the processing for pasting the acquired character string in the paste buffer to the paste position is executed. In this paste processing, the character string in the paste buffer obtained according to the inherited paragraph information is pasted to the paste position.

【0038】これに対し、ステップS5において獲得さ
れたペーストバッファ中の文字列に段落の切れ目が存在
すると判定されると、ステップS8に進み、ペーストバ
ッファ中の文字列の先頭が段落開始位置でかつその最後
が段落終了位置であるか否かの判定を行う。ペーストバ
ッファ中の文字列の先頭が段落開始位置でかつそ列の先
頭が段落開始位置でかつその最後が段落終了位置でない
ときには、ステップS9に進み、ペースト位置が段落の
切れ目位置であるか否かを判定し、ペースト位置が段落
の切れ目位置でないときには、ステップS10に進む。
On the other hand, if it is determined that there is a paragraph break in the character string in the paste buffer obtained in step S5, the process proceeds to step S8, where the beginning of the character string in the paste buffer is the paragraph start position and It is determined whether the end is the paragraph end position. If the beginning of the character string in the paste buffer is the paragraph start position, the beginning of the column is the paragraph start position, and the end is not the paragraph end position, the flow advances to step S9 to determine whether the paste position is the break position of the paragraph. Is determined, and when the paste position is not the break position of the paragraph, the process proceeds to step S10.

【0039】ステップS10では、ペースト位置に掛か
る段落情報を獲得されたペーストバッファの文字列に対
する段落情報として引き継ぎ、続くステップS11で
は、ペーストバッファの最後部に位置する文字列に掛か
る段落情報をペースト位置以降の文字列に対する段落情
報として引き継ぐ。次いで、ステップS7に進み、ステ
ップS10およびステップS11でそれぞれ引き継がれ
た段落情報に従い獲得されたペーストバッファの文字列
をペースト位置へ貼り付ける処理を実行する。
In step S10, the paragraph information relating to the paste position is taken over as the paragraph information for the acquired character string in the paste buffer. In the following step S11, the paragraph information relating to the character string located at the end of the paste buffer is replaced with the paste position. Inherit as paragraph information for subsequent character strings. Next, the process proceeds to step S7, and a process of pasting the character string in the paste buffer obtained at the paste position according to the paragraph information inherited in step S10 and step S11, respectively, is executed.

【0040】これに対し、ステップS9においてペース
ト位置が段落の切れ目位置であると判定されると、ステ
ップS7に進み、獲得されたペーストバッファの文字列
をペースト位置へ貼り付ける処理を実行する。このペー
スト処理は、獲得されたペーストバッファの文字列の段
落情報を保持しながら実行される。
On the other hand, if it is determined in step S9 that the paste position is the break position of the paragraph, the flow advances to step S7 to execute processing for pasting the obtained character string in the paste buffer to the paste position. This paste processing is executed while retaining the paragraph information of the obtained character string in the paste buffer.

【0041】ステップS8においてペーストバッファ中
の文字列の先頭が段落開始位置でかつその最後が段落終
了位置であると判定されるときには、ステップS12に
進み、ペースト位置が段落の切れ目位置であるか否かを
判定し、ペースト位置が段落の切れ目位置でないときに
は、ステップS13に進む。
If it is determined in step S8 that the beginning of the character string in the paste buffer is the paragraph start position and that the end is the paragraph end position, the flow advances to step S12 to determine whether the paste position is the break position of the paragraph. If the paste position is not the break position of the paragraph, the process proceeds to step S13.

【0042】ステップS13では、ペースト位置で段落
を切断し、続くステップS14では、切断位置以降の段
落の文字列に掛かる段落情報が切断位置前の文字列に掛
かる段落情報と同じとなるように段落情報の継承を行
う。次いで、ステップS7に進み、ステップS14で継
承された段落情報に従い獲得されたペーストバッファの
文字列をペースト位置へ貼り付ける処理を実行する。
In step S13, the paragraph is cut at the paste position. In step S14, the paragraph information on the character string of the paragraph after the cutting position is the same as the paragraph information on the character string before the cutting position. Inherit information. Next, the process proceeds to step S7, in which a process of pasting the character string in the paste buffer acquired at the paste position according to the paragraph information inherited in step S14 is executed.

【0043】これに対し、ステップS12においてペー
スト位置が段落の切れ目位置であると判定されると、ス
テップS7に進み、獲得されたペーストバッファの文字
列をペースト位置へ貼り付ける処理を実行する。このペ
ースト処理は、獲得されたペーストバッファの文字列の
段落情報を保持しながら実行される。
On the other hand, if it is determined in step S12 that the paste position is the break position of the paragraph, the flow advances to step S7 to execute processing for pasting the acquired character string in the paste buffer to the paste position. This paste processing is executed while retaining the paragraph information of the obtained character string in the paste buffer.

【0044】次に、上述のペースト処理機能による処理
の具体例を図5ないし図9を参照しながら説明する。図
5はペースト処理の対象となる文書例とその文書に指定
されたペースト位置を示す図、図6は段落の切れ目がな
いペーストバッファのペースト処理の一例を示す図、図
7は段落の切れ目がある領域を指定した一例を示す図、
図8はペースト処理結果の一例を示す図、図9は1つの
段落全体をペースト対象としたペースト処理結果の一例
を示す図である。
Next, a specific example of the processing by the above-mentioned paste processing function will be described with reference to FIGS. FIG. 5 is a diagram showing an example of a document to be pasted and a paste position designated in the document. FIG. 6 is a diagram showing an example of paste processing of a paste buffer having no breaks in paragraphs. A diagram showing an example of specifying a certain area,
FIG. 8 is a diagram illustrating an example of a paste processing result, and FIG. 9 is a diagram illustrating an example of a paste process result for an entire paragraph as a paste target.

【0045】ペースト処理により編集される文書はCR
T11に表示される。例えば、この表示された文書は、
図5(a)に示すように、「大見出し段落」、「小見出
し段落」、「本文段落」の各段落から構成され、各段落
の文字列には対応する段落情報が掛けられている。本実
施の形態では、「大見出し段落」に対してはゴシック
体、20ポイントの文字修飾情報が、「小見出し段落」
に対してはゴシック体、13ポイントの文字修飾情報
が、「本文段落」に対しては明朝体、10ポイントの文
字修飾情報がそれぞれ掛けられているものとする。
The document edited by the paste process is CR
Displayed at T11. For example, this displayed document:
As shown in FIG. 5 (a), each paragraph is composed of a "large heading paragraph", a "subheading paragraph", and a "body paragraph", and the character string of each paragraph is multiplied by the corresponding paragraph information. In the present embodiment, the “large headline paragraph” is a Gothic font and the character modification information of 20 points is the “small headline paragraph”.
It is assumed that Gothic font and 13-point character modification information are multiplied by, and Mincho font and 10-point character modification information are multiplied by "body paragraph".

【0046】この文書においてペースト対象となる領域
を指定する場合、図5(b)に示すように、ユーザによ
るキーボード14またはPD15の操作により、ペース
ト対象となる文書データ中の領域(白黒反転部分)が選
択され、この選択された領域がペーストバッファとして
獲得される(ステップS1)。本例では、段落の開始位
置から終了位置までの領域をなす「小見出し段落」が選
択されている。
When an area to be pasted is specified in this document, as shown in FIG. 5B, an area in the document data to be pasted (a black-and-white inverted portion) is operated by the user by operating the keyboard 14 or PD 15. Is selected, and the selected area is obtained as a paste buffer (step S1). In this example, the “subheadline paragraph” that forms an area from the start position to the end position of the paragraph is selected.

【0047】ペースト対象となる領域が指定されると、
図5(c)に示すように、ペースト位置がユーザによる
キーボード14またはPD15の操作により指定され、
指定されたペースト位置が獲得される(ステップS
3)。本例では、「本文段落」中のP1位置またはP2
位置がペースト位置として指定されている。
When an area to be pasted is specified,
As shown in FIG. 5C, the paste position is specified by the user operating the keyboard 14 or the PD 15,
The specified paste position is obtained (step S
3). In this example, the P1 position or P2 in the “text paragraph”
The position is specified as the paste position.

【0048】上述の文書においてペースト対象となる領
域として段落の切れ目が存在しない領域(例えば図6
(a)に示す「小見出し段落」の「出し」部分)をペー
スト位置P1にコピー(ペースト)するときには、獲得
されたペーストバッファ中の文字列に段落の切れ目が存
在しないから、ペースト位置P1に掛かる段落情報が獲
得されたペーストバッファの文字列「出し」に対する段
落情報として引き継がれ、引き継がれた段落情報に従い
獲得されたペーストバッファの文字列「出し」がペース
ト位置P1へ貼り付けられる(ステップS5,6,
7)。このペースト処理では、図6(b)に示すよう
に、ペーストバッファの文字列「出し」に対する文字修
飾情報を「本文段落」に掛かる文字修飾情報と同じ明朝
体、10ポイントの文字修飾情報として文字列「出し」
(図中の破線で囲われた部分)をペースト位置P1へ貼
り付ける。
In the above-mentioned document, an area where there is no paragraph break as an area to be pasted (for example, FIG.
When copying (pasting) the “starting part” of the “subheadline paragraph” shown in (a)) to the paste position P1, the character string in the obtained paste buffer has no break in the paragraph, and therefore, the paste position P1 is applied. The paragraph information is inherited as the paragraph information for the acquired character string "out" of the paste buffer, and the character string "out" of the paste buffer acquired according to the inherited paragraph information is pasted to the paste position P1 (step S5). 6,
7). In this paste processing, as shown in FIG. 6B, the character modification information for the character string “out” in the paste buffer is the same as the character modification information for the “body paragraph” in the Mincho style, 10-point character modification information. String "out"
(A portion surrounded by a broken line in the drawing) is pasted to the paste position P1.

【0049】上述の文書においてペースト対象となる領
域として段落の切れ目が存在する領域(例えば図7
(a)に示す「大見出し段落」の「段落」部分から「小
見出し段落」の「小見出し」部分までの領域)をペース
ト位置P1にコピー(ペースト)するときには、獲得さ
れたペーストバッファ中の文字列に段落の切れ目が存在
するとともに、ペーストバッファ中の文字列の先頭が段
落開始位置でかつその最後が段落終了位置でないと判定
され(ステップS5および8)、またペースト位置P1
が段落の切れ目位置でないと判定される(ステップS
9)。よって、ペースト位置P1に掛かる段落情報が獲
得されたペーストバッファの文字列に対する段落情報と
して引き継がれるとともに、ペーストバッファの最後部
に位置する文字列に掛かる段落情報がペースト位置以降
の文字列に対する段落情報として引き継がれ(ステップ
S10および11)、それぞれ引き継がれた段落情報に
従い獲得されたペーストバッファの文字列がペースト位
置P1へ貼り付けられる(ステップS7)。このペース
ト処理では、図8に示すように、ペーストバッファの文
字列「段落」に対する文字修飾情報を「本文段落」に掛
かる文字修飾情報と同じ明朝体、10ポイントの文字修
飾情報として文字列「段落」をペースト位置P1へ貼り
付けるとともに、続く文字列「小見出し」に対する文字
修飾情報を保持しながら「小見出し」を貼り付ける。ま
た、「小見出し」に続く文字列「本文段落…段落」には
「小見出し」に掛かる文字修飾情報と同じゴシック体、
13ポイントの文字修飾情報が掛けられ、この「小見出
し」に続く文字列「本文段落…段落」はゴシック体、1
3ポイントの文字修飾情報に従い変換される。このペー
スト処理によって変更された部分は図中の破線で囲まれ
た部分である。
In the above-described document, a region where a break in a paragraph exists as a region to be pasted (for example, FIG. 7)
When copying (pasting) the area from the “paragraph” part of the “large headline paragraph” to the “subheadline” part of the “subheadline paragraph” shown in (a) to the paste position P1, the character string in the obtained paste buffer is copied. Is determined, it is determined that the beginning of the character string in the paste buffer is the paragraph start position and the end is not the paragraph end position (steps S5 and S8), and the paste position P1
Is not at the break position of the paragraph (step S
9). Therefore, the paragraph information relating to the paste position P1 is inherited as the paragraph information for the acquired character string in the paste buffer, and the paragraph information relating to the character string located at the end of the paste buffer is the paragraph information corresponding to the character string after the paste position. (Steps S10 and S11), and the character string of the paste buffer obtained according to the respectively inherited paragraph information is pasted to the paste position P1 (step S7). In this paste processing, as shown in FIG. 8, the character modification information for the character string “paragraph” in the paste buffer is the same as the character modification information for the “body paragraph”, the 10-point character modification The "paragraph" is pasted at the paste position P1, and the "subheading" is pasted while retaining the character modification information for the subsequent character string "subheading". Also, the character string “body paragraph… paragraph” following “subheading” is the same Gothic font as the character modification information for “subheading”,
The character modification information of 13 points is multiplied.
It is converted according to the three-point character modification information. The part changed by the paste processing is a part surrounded by a broken line in the figure.

【0050】上述の文書においてペースト対象となる領
域として段落の切れ目が存在する領域(例えば図7
(b)に示す「小見出し段落」の領域)をペースト位置
P1にコピー(ペースト)するときには、獲得されたペ
ーストバッファ中の文字列に段落の切れ目が存在すると
ともに、ペーストバッファ中の文字列の先頭が段落開始
位置でかつその最後が段落終了位置であると判定され
(ステップS5および8)、またペースト位置P1が段
落の切れ目位置でないと判定される(ステップS9)。
よって、ペースト位置P1で段落が切断され(ステップ
S13)、切断位置以降の段落の文字列に掛かる段落情
報が切断位置前の文字列に掛かる段落情報と同じとなる
ように段落情報の継承が行われる(ステップS14)こ
とにより、継承された段落情報に従い獲得されたペース
トバッファの文字列「小見出し段落」をペースト位置へ
貼り付ける処理を実行する。このペースト処理により、
図9に示すように、文字列「小見出し段落」の段落情報
を保持しながら文字列「小見出し段落」を文字列「本文
段落」中に挿入した結果が得られる。
In the above-mentioned document, an area where a break in a paragraph exists as an area to be pasted (for example, FIG. 7)
When copying (pasting) the “subheadline paragraph” area shown in (b) to the paste position P1, the character string in the obtained paste buffer has a break in the paragraph and the beginning of the character string in the paste buffer. Is determined to be the paragraph start position and the end thereof is the paragraph end position (steps S5 and S8), and it is determined that the paste position P1 is not the break position of the paragraph (step S9).
Therefore, the paragraph is cut at the paste position P1 (step S13), and the inheritance of the paragraph information is performed so that the paragraph information on the character string of the paragraph after the cut position is the same as the paragraph information on the character string before the cut position. As a result, the character string “subheadline paragraph” of the paste buffer acquired according to the inherited paragraph information is pasted to the paste position (step S14). By this paste processing,
As shown in FIG. 9, the result of inserting the character string "subheading paragraph" into the character string "body paragraph" while retaining the paragraph information of the character string "subheading paragraph" is obtained.

【0051】このように、獲得されたペーストバッファ
中の段落情報に対する判定結果および獲得されたペース
ト位置に掛かる段落情報に対する判定結果に基づきペー
ストバッファとして獲得された文字列と獲得されたペー
スト位置の前後とのそれぞれに掛けるべき段落情報を決
定し、決定された段落情報に従い獲得された指定領域の
文字列を貼り付けるから、1つの段落を形成している領
域をペーストする際に、ユーザの意図に反することな
く、簡単な操作でペースト処理を行うことができる。
As described above, the character string obtained as the paste buffer and the position before and after the obtained paste position are determined based on the determination result for the obtained paragraph information in the paste buffer and the determination result for the paragraph information related to the obtained paste position. Is determined, and the character string of the designated area obtained according to the determined paragraph information is pasted. Therefore, when pasting the area forming one paragraph, The paste processing can be performed by a simple operation without conflict.

【0052】[0052]

【発明の効果】以上に説明したように、請求項1記載の
文書処理装置によれば、文書中の指定された領域を獲得
する指定領域獲得手段と、該獲得された指定領域中の文
字列およびそれに掛かる段落情報をペーストバッファと
して獲得するペーストバッファ獲得手段と、該獲得され
たペーストバッファ中の段落情報に対する判定を行うペ
ーストバッファ段落情報判定手段と、ユーザにより指定
された文書中のペースト位置を獲得するペースト位置獲
得手段と、該獲得されたペースト位置に掛かる段落情報
に対する判定を行うペースト位置段落情報判定手段と、
獲得されたペーストバッファ中の段落情報に対する判定
結果および獲得されたペースト位置に掛かる段落情報に
対する判定結果に基づきペーストバッファとして獲得さ
れた文字列と獲得されたペースト位置の前後とのそれぞ
れに掛けるべき段落情報を決定するペースト段落情報決
定手段と、該決定された段落情報に従い獲得された指定
領域の文字列を貼り付けるためのペースト処理を行うペ
ースト処理手段とが設けられているから、1つの段落を
形成している領域をペーストする際に、ユーザの意図に
反することなく、簡単な操作でペースト処理を行うこと
ができる。
As described above, according to the document processing apparatus of the first aspect, designated area acquiring means for acquiring a designated area in a document, and a character string in the acquired designated area And a paste buffer acquiring means for acquiring paragraph information related to the paste buffer as a paste buffer; a paste buffer paragraph information determining means for determining the acquired paragraph information in the paste buffer; and a paste position in the document specified by the user. Paste position acquisition means to acquire, and paste position paragraph information determination means to determine the paragraph information over the acquired paste position,
A paragraph to be applied to each of the character string acquired as the paste buffer and the before and after the acquired paste position based on the determination result for the paragraph information in the acquired paste buffer and the determination result for the paragraph information related to the acquired paste position Since there are provided paste paragraph information determining means for determining information, and paste processing means for performing paste processing for pasting a character string of a designated area obtained in accordance with the determined paragraph information, one paragraph is defined. When the formed region is pasted, the paste process can be performed by a simple operation without violating the intention of the user.

【0053】請求項2記載の文書処理装置によれば、段
落情報を、文書中の段落を示す段落形成情報と、文書中
の文字列の文字サイズ、フォントの種類などを示す文字
修飾情報とを含む情報とすることができる。
According to the document processing apparatus of the second aspect, the paragraph information is composed of the paragraph formation information indicating the paragraph in the document, and the character modification information indicating the character size and font type of the character string in the document. Information.

【0054】請求項3記載の文書処理装置によれば、ペ
ーストバッファ段落情報判定手段およびペースト位置段
落情報判定手段が、段落情報に含まれている段落形成情
報の有無、文字修飾情報の識別などを行うようにするこ
とができる。
According to the third aspect of the present invention, the paste buffer paragraph information determining means and the paste position paragraph information determining means determine whether there is paragraph forming information included in the paragraph information, identify character modification information, and the like. Can be done.

【0055】請求項4記載の文書処理方法によれば、文
書中の指定された領域を獲得する指定領域獲得工程と、
該獲得された指定領域中の文字列およびそれに掛かる段
落情報をペーストバッファとして獲得するペーストバッ
ファ獲得工程と、該獲得されたペーストバッファ中の段
落情報に対する判定を行うペーストバッファ段落情報判
定工程と、ユーザにより指定された文書中のペースト位
置を獲得するペースト位置獲得工程と、該獲得されたペ
ースト位置に掛かる段落情報に対する判定を行うペース
ト位置段落情報判定工程と、獲得されたペーストバッフ
ァ中の段落情報に対する判定結果および獲得されたペー
スト位置に掛かる段落情報に対する判定結果に基づきペ
ーストバッファとして獲得された文字列と獲得されたペ
ースト位置の前後とのそれぞれに掛けるべき段落情報を
決定するペースト段落情報決定工程と、該決定された段
落情報に従い獲得された指定領域の文字列を貼り付ける
ためのペースト処理を行うペースト処理工程とを備える
から、1つの段落を形成している領域をペーストする際
に、ユーザの意図に反することなく、簡単な操作でペー
スト処理を行うことができる。
According to the document processing method of the fourth aspect, a designated area acquiring step of acquiring a designated area in the document;
A paste buffer acquiring step of acquiring a character string in the acquired designated area and paragraph information related to the acquired character string as a paste buffer; a paste buffer paragraph information determining step of making a decision on the acquired paragraph information in the paste buffer; A paste position obtaining step of obtaining a paste position in the document specified by the above, a paste position paragraph information determining step of making a determination on paragraph information relating to the obtained paste position, and a paste position obtaining step of obtaining the paragraph information in the obtained paste buffer. A paste paragraph information determining step of determining paragraph information to be applied to each of a character string acquired as a paste buffer and before and after the acquired paste position based on the determination result and the determination result for the paragraph information concerning the acquired paste position; , Obtained according to the determined paragraph information And a paste processing step of performing a paste process for pasting a character string of a designated area, which is performed by the user, when the area forming one paragraph is pasted, a simple operation can be performed without violating the user's intention. Can be used for paste processing.

【0056】請求項5記載の記憶媒体によれば、プログ
ラムを、文書中の指定された領域を獲得する指定領域獲
得モジュールと、該獲得された指定領域中の文字列およ
びそれに掛かる段落情報をペーストバッファとして獲得
するペーストバッファ獲得モジュールと、該獲得された
ペーストバッファ中の段落情報に対する判定を行うペー
ストバッファ段落情報判定モジュールと、ユーザにより
指定された文書中のペースト位置を獲得するペースト位
置獲得モジュールと、該獲得されたペースト位置に掛か
る段落情報に対する判定を行うペースト位置段落情報判
定モジュールと、獲得されたペーストバッファ中の段落
情報に対する判定結果および獲得されたペースト位置に
掛かる段落情報に対する判定結果に基づきペーストバッ
ファとして獲得された文字列と獲得されたペースト位置
の前後とのそれぞれに掛けるべき段落情報を決定するペ
ースト段落情報決定モジュールと、該決定された段落情
報に従い獲得された指定領域の文字列を貼り付けるため
のペースト処理を行うペースト処理モジュールとから構
成しているから、1つの段落を形成している領域をペー
ストする際に、ユーザの意図に反することなく、簡単な
操作でペースト処理を行うことが可能なペースト処理機
能を文書処理装置内に構築することができる。
According to the storage medium of the present invention, a program is copied to a designated area acquisition module for acquiring a designated area in a document, and a character string in the acquired designated area and paragraph information related to the character string are pasted. A paste buffer acquiring module for acquiring as a buffer, a paste buffer paragraph information determining module for performing determination on paragraph information in the acquired paste buffer, and a paste position acquiring module for acquiring a paste position in a document specified by a user. A paste position paragraph information determining module for determining the paragraph information related to the obtained paste position, and a determination result for the obtained paragraph information in the paste buffer and a determination result for the paragraph information related to the obtained paste position. Acquired as a paste buffer Paragraph information determining module for determining paragraph information to be applied to each of the obtained character string and before and after the obtained paste position, and a paste for pasting the character string of the designated area obtained according to the determined paragraph information Since it is composed of a paste processing module that performs processing, it is possible to perform paste processing by a simple operation without violating the user's intention when pasting an area forming one paragraph. Processing functions can be built into the document processing device.

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

【図1】本発明の文書処理装置の実施の一形態の構成を
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an embodiment of a document processing apparatus according to the present invention.

【図2】図1の文書処理装置のペースト処理機能実行手
段の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a paste processing function execution unit of the document processing apparatus of FIG. 1;

【図3】図1の文書処理装置のROMにおけるペースト
処理機能実行手段を構築するためのプログラムのメモリ
マップを示す図である。
FIG. 3 is a diagram showing a memory map of a program for constructing a paste processing function execution unit in a ROM of the document processing apparatus of FIG. 1;

【図4】図2のペースト処理機能実行手段によるペース
ト処理機能の処理手順を示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure of a paste processing function by a paste processing function execution unit of FIG. 2;

【図5】ペースト処理の対象となる文書例とその文書に
指定されたペースト位置を示す図である。
FIG. 5 is a diagram illustrating an example of a document to be subjected to paste processing and a paste position specified in the document;

【図6】段落の切れ目がないペーストバッファのペース
ト処理の一例を示す図である。
FIG. 6 is a diagram illustrating an example of paste processing of a paste buffer having no breaks in paragraphs;

【図7】段落の切れ目がある領域を指定した一例を示す
図である。
FIG. 7 is a diagram illustrating an example in which an area having a break in a paragraph is designated;

【図8】ペースト処理結果の一例を示す図である。FIG. 8 is a diagram showing an example of a paste processing result.

【図9】1つの段落全体をペースト対象としたペースト
処理結果の一例を示す図である。
FIG. 9 is a diagram illustrating an example of a paste processing result for an entire paragraph as a paste target;

【図10】従来のペースト処理によって処理された後の
文書例およびその処理前の文書例を示す図である。
FIG. 10 is a diagram illustrating an example of a document processed by a conventional paste process and an example of a document before the process.

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

1 指定領域獲得処理部 2 ペーストバッファ獲得処理部 3 ペーストバッファ段落情報判定処理部 4 ペースト位置獲得処理部 5 ペースト位置段落情報判定処理部 6 ペースト段落情報決定処理部 7 ペースト処理部 8 文書データ保持部 11 CRT 12 VRAM 13 BMU 14 キーボード 15 PD 16 CPU 17 ROM 18 RAM 19 HDD 20 FD 1a 指定領域獲得処理モジュール 2a ペーストバッファ獲得処理モジュール 3a ペーストバッファ段落情報判定処理モジュール 4a ペースト位置獲得処理モジュール 5a ペースト位置段落情報判定処理モジュール 6a ペースト段落情報決定処理モジュール 7a ペースト処理モジュール REFERENCE SIGNS LIST 1 designated area acquisition processing section 2 paste buffer acquisition processing section 3 paste buffer paragraph information determination processing section 4 paste position acquisition processing section 5 paste position paragraph information determination processing section 6 paste paragraph information determination processing section 7 paste processing section 8 document data holding section Reference Signs List 11 CRT 12 VRAM 13 BMU 14 Keyboard 15 PD 16 CPU 17 ROM 18 RAM 19 HDD 20 FD 1a Designated area acquisition processing module 2a Paste buffer acquisition processing module 3a Paste buffer paragraph information determination processing module 4a Paste position acquisition processing module 5a Paste position paragraph Information determination processing module 6a Paste paragraph information determination processing module 7a Paste processing module

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 文書中の所望のペースト位置に所望の文
字列を貼り付けるペースト処理機能を有する文書処理装
置において、前記文書中の指定された領域を獲得する指
定領域獲得手段と、該獲得された指定領域中の文字列お
よびそれに掛かる段落情報をペーストバッファとして獲
得するペーストバッファ獲得手段と、該獲得されたペー
ストバッファ中の段落情報に対する判定を行うペースト
バッファ段落情報判定手段と、ユーザにより指定された
文書中のペースト位置を獲得するペースト位置獲得手段
と、該獲得されたペースト位置に掛かる段落情報に対す
る判定を行うペースト位置段落情報判定手段と、前記獲
得されたペーストバッファ中の段落情報に対する判定結
果および前記獲得されたペースト位置に掛かる段落情報
に対する判定結果に基づき前記ペーストバッファとして
獲得された文字列と前記獲得されたペースト位置の前後
とのそれぞれに掛けるべき段落情報を決定するペースト
段落情報決定手段と、該決定された段落情報に従い前記
獲得された指定領域の文字列を貼り付けるためのペース
ト処理を行うペースト処理手段とを備えることを特徴と
する文書処理装置。
1. A document processing apparatus having a paste processing function of pasting a desired character string to a desired paste position in a document, a designated area acquiring means for acquiring a designated area in the document, and a designated area acquiring means for acquiring a designated area in the document. A paste buffer acquiring means for acquiring a character string in the designated area and paragraph information related to the character string as a paste buffer; a paste buffer paragraph information determining means for determining the acquired paragraph information in the paste buffer; Position obtaining means for obtaining a paste position in the obtained document, paste position paragraph information determining means for performing a determination on paragraph information related to the obtained paste position, and a determination result for the obtained paragraph information in the paste buffer And the judgment result for the paragraph information related to the obtained paste position Paste paragraph information determining means for determining paragraph information to be applied to each of the character string obtained as the paste buffer and before and after the obtained paste position, and the obtained designated area according to the determined paragraph information And a paste processing unit for performing a paste process for pasting the character string.
【請求項2】 前記段落情報は、前記文書中の段落を示
す段落形成情報と、前記文書中の文字列の文字サイズ、
フォントの種類などを示す文字修飾情報とを含む情報か
らなることを特徴とする請求項1記載の文書処理装置。
2. The paragraph information includes paragraph formation information indicating a paragraph in the document, a character size of a character string in the document,
2. The document processing apparatus according to claim 1, further comprising information including character modification information indicating a font type and the like.
【請求項3】 前記ペーストバッファ段落情報判定手段
および前記ペースト位置段落情報判定手段は、前記段落
情報に含まれている段落形成情報の有無、文字修飾情報
の識別などを行うことを特徴とする請求項2記載の文書
処理装置。
3. The paste buffer paragraph information determining means and the paste position paragraph information determining means perform presence / absence of paragraph forming information included in the paragraph information, identify character modification information, and the like. Item 3. The document processing device according to Item 2.
【請求項4】 文書中の所望のペースト位置に所望の文
字列を貼り付けるペースト処理機能を実行可能な文書処
理方法において、前記文書中の指定された領域を獲得す
る指定領域獲得工程と、該獲得された指定領域中の文字
列およびそれに掛かる段落情報をペーストバッファとし
て獲得するペーストバッファ獲得工程と、該獲得された
ペーストバッファ中の段落情報に対する判定を行うペー
ストバッファ段落情報判定工程と、ユーザにより指定さ
れた文書中のペースト位置を獲得するペースト位置獲得
工程と、該獲得されたペースト位置に掛かる段落情報に
対する判定を行うペースト位置段落情報判定工程と、前
記獲得されたペーストバッファ中の段落情報に対する判
定結果および前記獲得されたペースト位置に掛かる段落
情報に対する判定結果に基づき前記ペーストバッファと
して獲得された文字列と前記獲得されたペースト位置の
前後とのそれぞれに掛けるべき段落情報を決定するペー
スト段落情報決定工程と、該決定された段落情報に従い
前記獲得された指定領域の文字列を貼り付けるためのペ
ースト処理を行うペースト処理工程とを備えることを特
徴とする文書処理方法。
4. A designated area acquiring step for acquiring a designated area in a document in a document processing method capable of executing a paste processing function of pasting a desired character string to a desired paste position in a document. A paste buffer acquiring step of acquiring a character string in the acquired designated area and paragraph information related to the acquired character string as a paste buffer; a paste buffer paragraph information determining step of making a decision on the acquired paragraph information in the paste buffer; A paste position acquiring step of acquiring a paste position in a designated document; a paste position paragraph information determining step of making a decision on paragraph information relating to the acquired paste position; Judgment result for the judgment result and the paragraph information related to the obtained paste position Determining paragraph information to be applied to each of the character string obtained as the paste buffer and the obtained paste position before and after the obtained paste position, based on the determined paragraph information. A paste processing step of performing a paste process for pasting a character string in a specified area.
【請求項5】 文書中の所望のペースト位置に所望の文
字列を貼り付けるペースト処理機能を文書処理装置内に
構築するためのプログラムが格納されている記憶媒体に
おいて、前記プログラムは、前記文書中の指定された領
域を獲得する指定領域獲得モジュールと、該獲得された
指定領域中の文字列およびそれに掛かる段落情報をペー
ストバッファとして獲得するペーストバッファ獲得モジ
ュールと、該獲得されたペーストバッファ中の段落情報
に対する判定を行うペーストバッファ段落情報判定モジ
ュールと、ユーザにより指定された文書中のペースト位
置を獲得するペースト位置獲得モジュールと、該獲得さ
れたペースト位置に掛かる段落情報に対する判定を行う
ペースト位置段落情報判定モジュールと、前記獲得され
たペーストバッファ中の段落情報に対する判定結果およ
び前記獲得されたペースト位置に掛かる段落情報に対す
る判定結果に基づき前記ペーストバッファとして獲得さ
れた文字列と前記獲得されたペースト位置の前後とのそ
れぞれに掛けるべき段落情報を決定するペースト段落情
報決定モジュールと、該決定された段落情報に従い前記
獲得された指定領域の文字列を貼り付けるためのペース
ト処理を行うペースト処理モジュールとを備えることを
特徴とする記憶媒体。
5. A storage medium in which a program for constructing a paste processing function for pasting a desired character string at a desired paste position in a document in a document processing apparatus is stored, wherein the program is a program for storing a paste character in the document. Designated area acquisition module for acquiring a designated area, a paste buffer acquisition module for acquiring a character string in the acquired designated area and paragraph information related thereto as a paste buffer, and a paragraph in the acquired paste buffer A paste buffer paragraph information determining module for determining information, a paste position obtaining module for obtaining a paste position in a document specified by a user, and a paste position paragraph information for determining paragraph information related to the obtained paste position. A determination module and the obtained paste buffer The paragraph information to be applied to each of the character string acquired as the paste buffer and before and after the acquired paste position based on the determination result for the paragraph information in and the determination result for the paragraph information concerning the acquired paste position. A storage medium, comprising: a paste paragraph information determination module to be determined; and a paste processing module that performs a paste process for pasting a character string of the acquired designated area according to the determined paragraph information.
JP8246939A 1996-08-30 1996-08-30 Document processing apparatus, document processing method, and storage medium Pending JPH1074198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8246939A JPH1074198A (en) 1996-08-30 1996-08-30 Document processing apparatus, document processing method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8246939A JPH1074198A (en) 1996-08-30 1996-08-30 Document processing apparatus, document processing method, and storage medium

Publications (1)

Publication Number Publication Date
JPH1074198A true JPH1074198A (en) 1998-03-17

Family

ID=17155999

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8246939A Pending JPH1074198A (en) 1996-08-30 1996-08-30 Document processing apparatus, document processing method, and storage medium

Country Status (1)

Country Link
JP (1) JPH1074198A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015219558A (en) * 2014-05-14 2015-12-07 ブラザー工業株式会社 Printing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015219558A (en) * 2014-05-14 2015-12-07 ブラザー工業株式会社 Printing device

Similar Documents

Publication Publication Date Title
AU719368B2 (en) Font sharing system and method, and recording medium storing program for executing font sharing method
JP3892626B2 (en) Document processing apparatus and storage medium
US4924411A (en) Document processing apparatus having shading process function
JPH1074198A (en) Document processing apparatus, document processing method, and storage medium
US7272784B2 (en) Form processing method, form processing program, and form processing apparatus
JPH08166946A (en) Document processing method and apparatus
JP3764987B2 (en) Document processing device
JPH08335249A (en) Document reader
JPH05314108A (en) Document editing device
JPH08137880A (en) Document processing device
JP2001101327A (en) Information processing method and apparatus, and printing system
JPH1091380A (en) Information processing device
JP2000076472A (en) Program storage medium
JP4515108B2 (en) Plotter
JP3466869B2 (en) Font data management method and apparatus, and recording medium
JP3154790B2 (en) Optical character reader
JPH08137976A (en) Document processing device
JPH0916573A (en) Document processing apparatus and method
JPH1074200A (en) Document processing apparatus, document processing method, and storage medium
JP2001243216A (en) Document information editing method and information processing apparatus
JPH07325798A (en) Document creation device
JPS6186836A (en) Conversation system for information processor
JPH09101956A (en) Document processing apparatus and method
JPH08123811A (en) Document editing apparatus and document editing method
JPH05274307A (en) Document creating apparatus and method