JP2777067B2 - Document processing device - Google Patents

Document processing device

Info

Publication number
JP2777067B2
JP2777067B2 JP6272759A JP27275994A JP2777067B2 JP 2777067 B2 JP2777067 B2 JP 2777067B2 JP 6272759 A JP6272759 A JP 6272759A JP 27275994 A JP27275994 A JP 27275994A JP 2777067 B2 JP2777067 B2 JP 2777067B2
Authority
JP
Japan
Prior art keywords
information
document
attribute information
attribute
character string
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.)
Expired - Lifetime
Application number
JP6272759A
Other languages
Japanese (ja)
Other versions
JPH07168813A (en
Inventor
和弘 中村
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 JP6272759A priority Critical patent/JP2777067B2/en
Publication of JPH07168813A publication Critical patent/JPH07168813A/en
Application granted granted Critical
Publication of JP2777067B2 publication Critical patent/JP2777067B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、ある文書の特定位置に
他の文書を差し込む機能を備えた文書処理装置に関する
ものである。 【0002】 【従来の技術】従来、この種の文書処理装置における差
し込み機能(すなわち、マージ機能,マージプリント機
能など)は、予め作成された文書情報中の指定された特
定位置へ他の文書情報を単に差し込み、印字を行うのみ
であった。 【0003】 【発明が解決しようとする課題】しかしながら、従来の
文書処理装置において、マージされる文書(オリジナル
ドキュメント)中の文字モード(特に、差込み位置(マ
ージポジション)に関してなされたモードの設定)は、
マージ(差し込み)すべき文書(マージドキュメント)
に対し、マージ実行後、何の実効性(拘束力)を有する
ものではない。例えば、オリジナルドキュメントのある
マージポジションにボールドモードが設定されていると
き、マージドキュメントをそのマージポジションに差し
込んだ場合、差し込んだマージドキュメントに対しボー
ルドモードは有効性を持たず、モード設定はなされない
ことになる。 【0004】従って、マージすべきドキュメントに対し
全て同一モードを設定する場合には、各々のマージドキ
ュメントに対し同一モードを個別的に設定する必要が生
じる。 【0005】また、従来から知られている文書処理装置
中には、マージドキュメントの文字モードを個別に設定
することができない機種も存在する。 【0006】その結果、文書処理装置の操作性を欠くの
みならず、操作ミスを招来する可能性も高くなるという
欠点がみなれる。また、マージの実行によって、オペレ
ータの意に反した文書が作成され、はなはだ不便であっ
た。 【0007】よって本発明の目的は、上述の点に鑑み、
差し込み位置の属性と差し込むべき文字列の属性との複
数の属性から差し込み後の属性に選択幅を持たせること
ができる文書処理装置を提供することにある。 【0008】 【0009】 【課題を解決するための手段】上記の目的を達成するた
めに、本発明に係る文書処理装置は、文書情報中の差し
込み位置を指示する差し込み指示情報とその差し込み指
示情報に設定される第1属性情報とを記憶する第1記憶
手段と、差し込むべき文字列情報とその文字列情報に設
定される第2属性情報とを記憶する第2記憶手段と、印
刷モードが指定されている場合には、前記差し込み指示
情報が指示する位置に、前記第1属性情報と前記第2属
性情報とに基づく属性情報が設定された差し込むべき文
字列情報を差し込んだ文書情報を印刷手段に印刷させ、
印刷モードが指定されていない場合には、前記差し込み
指示情報が指示する位置に、前記第1属性情報と前記第
2属性情報とに基づく属性情報が設定された差し込むべ
き文字列情報を差し込んだ文書情報を第3記憶手段に記
憶させる制御手段とを有するものである。 【0010】 【実施例】以下、添付図面に従って、本発明に係る一実
施例を詳細に説明する。 【0011】図1は、本発明による文書処理装置の全体
構成図である。本実施例では、第1文字列中の特定位置
に第2文字列を差し込む差し込み手段、と、第1文字列
あるいは第2文字列に関して予め設定されたモードに従
って、第2文字列のマージ態様を選択指示する制御手段
Bとを具備する。 【0012】図2は、本発明の一実施例を示すブロック
図である。 【0013】本図中、1は本実施例の主制御を掌るセン
トラルプロセッシングユニット(以下、CPUと称す)
であり、システムバスSBを介して、互いに接続された
後述する各構成要素を制御する。 【0014】2は、CPU1の処理手順を記憶する制御
メモリとして用いられるリードオンリメモリ(ROM)
である。 【0015】3はランダムアクセスメモリ(RAM)で
あり、プログラムおよび各種データの一時記憶用ワーク
メモリとして使用される。 【0016】4は、文章等のデータを表示し、カーソル
による文字処理位置指定を行うCRTである。 【0017】5は、作成・編集した文章等を記憶し、保
存を行う外部メモリ(以下FDと称す)である。 【0018】6は、キーボード(以下KBと称す)であ
り、CPU1に指示を与える各種キーが配置されてい
る。 【0019】7は、CRT4に表示すべき表示データを
保持するVRAMである。 【0020】8は、CRT4の表示制御を行うCRTコ
ントローラ(以下CRTCと称す)である。 【0021】9は、FD5の制御装置(以下FDCと称
す)である。 【0022】10はKB6の制御を行うキーボードコン
トローラ(以下、KBCと称す)である。 【0023】11はプリンタ(以下PRTと称す)であ
る。 【0024】図3は、RAM3のメモリ構成図である。
本図中、12はテキストバッファポインタ(TB_P)
であり、テキストバッファTBの位置を指定するポイン
タである。オリジナルドキュメントバッファポインタ1
3(OB_P)およびマージドキュメントバッファポイ
ンタ14(MB_P)も同様に、オリジナルドキュメン
トバッファ19(OB)およびマージドキュメントバッ
ファ20(MB)の位置をそれぞれ示すポインタであ
る。また、ワークポインタとして、オリジナルドキュメ
ントバッファワークポインタ15(OP)、マージドキ
ュメントバッファワークポインタ16(MP)を備えて
いる。17はマージドキュメントキャラクタカウンタC
NTであり、MB内のキャラクタ数を保持する領域であ
る。 【0025】図3に示した各バッファ領域18,19,
20の詳細は、図4に示してある。図4において、TB
_P_IはテキストバッファTBの先頭位置を保持する
領域、またTB_P_MAXは反対にテキストバッファ
TBの終端位置を保持する領域である。このバッファT
Bは、キャラクタバッファTB_cとアトリビュートバ
ッファTB_aとから成り、両者ともTB_Pで示され
るポインタで位置づけされる。また、オリジナルドキュ
メントバッファOBおよびマージドキュメントバッファ
MBに関しても同様である。 【0026】以上の構成より成る本実施例の動作を、以
下に説明する。 【0027】本実施例においては、CPU1の制御のも
とに、KB6より順次文書情報を入力する。この入力さ
れた文書情報は、一時RAM3に格納されると共に、C
RT4に表示される。そして編集された後、FD5に記
録されたり、PRT11により印字がなされる。ここ
で、KB6からは各々のコマンドが入力され、本実施例
における文字列のモード設定,マージポジション等も文
書情報中に設定される。更に、差し込み機能もKB6か
ら命令される。 【0028】次に、フローチャートを参照して、本実施
例の制御手順をより詳細に説明する。 【0029】図5および図6は本実施例における文書作
成時の編集処理について示すフローチャートである。 【0030】図5では、まずステップS1にてキーコー
ドの取り込み処理を行う。ステップS2では、得られた
キーが一般キーか否かを判定し、一般キーの場合はステ
ップS3に進み、一般処理を行う。また、一般キー以外
の場合には、ステップS4にて該当する特殊処理を行
い、処理を終了する。 【0031】上述した特殊処理の内容は図6に示してあ
る。ここでは、まずステップS5にてモード設定キーか
否かが判定され、モード設定キーの場合には、ステップ
S7にてモード設定処理が行われ、処理が終了する。 【0032】また、ステップS5において否定判定がな
された場合には、ステップS6にてマージポジション設
定キーか否かが判定される。マージポジション設定キー
の場合には、ステップS8にてマージポジション設定処
理が行われ、処理が終了する。それ以外の場合には、ス
テップS9にて他の処理を行い、処理が終了する。 【0033】ステップS7のモード設定処理において
は、該当モードの設定フラグをOFFする場合はON
に、ONする場合はOFFにする。これにより、文字入
力時にフラグがONの場合には、図4におけるTBのア
トリビュート領域TB_aのカレントポジションに対
し、ビット単位の該当モード情報をセットする。これを
図10について述べると、ボールドモードONの時に入
力されたキャラクタの各アトリビュート領域にボールド
モードフラグがビット単位でセットされることになる。 【0034】また、図5に示すステップS3の一般処理
においては、TBのキャラクタ領域TB_cのカレント
ポジションTB_c[TB_P]に入力されたキャラク
タコードをセットすると同時に、モードフラグに応じて
前述の如く同ポジションのアトリビュート領域TB_a
[TB_P]に該当アトリビュート情報をセットする。 【0035】ステップS8のマージポジション設定処理
においては、TBのキャラクタ領域TB_cのカレント
ポジションTB_c[TB_P]にマージポジションコ
ード(バー付きM)をセットする。これによりセットさ
れたコードは、図10に示すOB_P_M位置の“バー
付きM”に該当する。 【0036】図7は、マージファンクション処理の全体
を示すフローチャートである。 【0037】ステップS10においては、マージ処理の
初期処理として、オリジナルドキュメントをOBに、ま
たマージドキュメントをMBにセットし、マージドキュ
メントのキャラクタカウントを行ってマージすべきキャ
ラクタ数をCNTとしてRAM3の所定位置にセットす
る。 【0038】ステップS11においては、オリジナルド
キュメントバッファポインタOB_Pを先頭位置OB_
P_Iにセットする。次いで、ステップS12では、O
B_Pが指すOB_cの内容がドキュメント終了コード
“EOF”であるか否かがチェックされる。その結果、
“EOF”でない場合は、ステップS13において同内容
が“バー付きM”すなわちマージポジションコードであ
るか否かが判定される。 【0039】マージポジションコードであるならば、マ
ージ処理を該当位置に施す必要があるので、ステップS
14にてマージ処理を行い、再びステップS12へ戻
る。逆にマージポジションコードでない場合には、ステ
ップS15においてポインタOB_Pをインクリメント
し、再びステップS12へ戻る。 【0040】ステップS12において“EOF”と判定さ
れた場合には、ステップS16において印字モードであ
るか否かが判定される。その結果、印字モードであると
判定された場合には、ステップS18にて印字処理が行
われる。また、印字モードでない場合には、ステップS
17にてOBの内容をFD5に保存する等の処理が行わ
れる。 【0041】図8および9は、図7に示したステップS
14(マージ処理)の内容を詳細に示すフローチャート
である。 【0042】まず、図8に示すステップS19にてマー
ジドキュメントバッファポインタMB_Pを先頭位置M
B_P_Iにセットし、ステップS20では、オリジナ
ルドキュメントのマージポジション以降の内容を後部へ
移動させる処理を行う。 【0043】図9は、このステップS20の詳細を示す
フローチャートである。本図に示すステップS25で
は、ワークポインタとしてOPを現在のポインタOB_
Pにセットする。ステップS26では、このOPが指す
OBの内容が“EOF”であるか否かを判定する。その結
果、“EOF”でない場合には、ステップS27において
OPをインクリメントし、再びステップS26に戻る。
ここではオリジナルドキュメントの最後尾を検出し、そ
の位置をOPにて得る。 【0044】ステップS26において“EOF”が検出さ
れた場合にはステップS28に制御を移し、“EOF”を
所定のカウント数(CNT−1)だけ後部へ移動した場
合にはオリジナルバッファOBからはみ出すおそれがあ
るか否かを判定する。すなわち、OB_P_MAX−
{OP+(CNT−1)}が負の場合には、バッファが
あふれるので、ステップS29にて移動すべき最後尾の
バッファポインタOPをOB_P_MAX−(CNT−
1)にセットし、同時にOB_c[OB_P_MAX]
に“EOF”をセットする。 【0045】ステップS28において否定判定がなされ
た場合(正の場合)、ならびにステップS29が実行さ
れた場合には、ステップS30にて、OPがマージポジ
ションOB_P(OB_P_M)であるか否かが判定さ
れる。その結果OB_Pでない場合には、移動処理が未
だ終了していないことになるので、ステップS31に
て、OPが指すOBの内容を、OP+(CNT−1)の
指すOBへ移動させる。 【0046】ステップS32ではOPをデクリメント
し、ステップS30にて再び判定を行う。 【0047】また、ステップS30においてOP=OB
_Pであると判定されたときには、マージのためのオリ
ジナルドキュメントのキャラクタ移動は終了したともの
と判断して、ステップS20の処理を終了する。 【0048】再び図8に戻り、ステップS21以降を説
明する、ステップS21では、MB_c[MP_P]が
“EOF”であるか否か(マージドキュメントのすべてが
オリジナルドキュメントへマージされたか否か)が判定
される。その結果、“EOF”でない場合には、ステップ
S22 にてOB_PがOB_P_MAXであるか否かを
判定する。 【0049】ステップS22において否定判定がなされ
た場合は、ステップS23にてマージを実行する。すな
わち、MB_c[MB_P]の内容をOB_c[OB_
P]へ移動し、キャラクタのマージを行う。次に、MP
_aが“0”ならばオリジナルドキュメントマージポジ
ションにはモード指定がなされていないことになるの
で、マージドキュメントのモードを有効とし、MB_a
[MB_P]をOB_a[OB_P]へ移動(複写)
し、マージドキュメント現ポジションのモードを、オリ
ジナルドキュメント現ポジションのアトリビュート領域
へセツトする。また、MP_aが“0”以外のとき(す
なわち、アトリビュートビットフラグがセットされてい
るとき)には、オリジナルドキュメントマージポジショ
ンにモード指定がなされていることになるので、MP_
aをOB_a[OB_P]へ移動(複写)し、マージポ
ジションの指定モードを、オリジナルドキュメント現ポ
ジションのアトリビュート領域へセットする。 【0050】その後、ステップS24において、OB_
PおよびMB_Pが共にインクリメントされ、再びステ
ップS21へ戻る。 【0051】以上述べたループによりマージが実現さ
れ、ステップS21あるいはステップS22において肯
定判定が得られると、処理は終了する。 【0052】なお、上述した本実施例においては、オリ
ジナルドキュメント中のマージポジションにモード指定
がなされていない場合のみ、マージドキュメントになさ
れたモードを有効としたが、マージポジションのモード
(すなわち、アトリビュート領域の内容)と、マージド
キュメントにおける各ポジションのモード(すなわち、
アトリビュート領域の内容)との論理和を求めることに
より、両者のアトリビュートを有効とすることも可能で
ある。 【0053】以上説明したとおり本発明の一実施例によ
れば、マージポジションにおけるモード(すなわち、ア
トリビュート情報)設定の有無により、マージ実行後の
ドキュメントに対しマージポジションの当該モードを有
効とするか、あるいは、マージドキュメントのモードを
有効とするかを選択することができる。例えば、マージ
ポジションにモードを設定した場合には、マージ実行
後、当該ポジションにマージしたドキュメントの全体に
そのモードが設定される。 【0054】このように、オリジナルドキュメント作成
時においてマージポジションのモード設定を行うだけ
で、各々異なるモードを有するマージドキュメントのモ
ードを容易に統一することができる。かくして、各々の
マージドキュメントに対して個別的にモードを設定する
必要がなくなり、オペレータの手間を省くことができる
と同時に、操作ミスも最小限に押えることが可能とな
る。 【0055】また、各々のマージドキュメントに対しそ
れぞれ異なったモードを設定したい場合には、当該マー
ジポジションにモードの設定を行わないことにより、各
々のマージドキュメントのモードがマージ実行後も生か
されることになる。その結果、マージの目的に応じてき
め細かな文書情報を得ることが可能となる。 【0056】 【発明の効果】以上説明した通り本発明によれば、文書
情報中の差し込み位置を指示する差し込み指示情報とそ
の差し込み指示情報に設定される第1属性情報とを記憶
させ、前記差し込むべき文字列情報とその文字列情報に
設定される第2属性情報とを記憶させ、前記差し込み指
示情報が指示する位置に、前記第1属性情報と前記第2
属性情報とに基づく属性情報が設定された差し込むべき
文字列情報を差し込んだ文書情報を記憶させることとし
ているので、差し込み位置の属性と差し込むべき文字列
の属性との複数の属性から差し込み後の属性に選択幅を
持たせることができるようになる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus having a function of inserting another document at a specific position of a certain document. 2. Description of the Related Art Conventionally, an insertion function (that is, a merge function, a merge print function, etc.) in a document processing apparatus of this type is provided with a function of transferring other document information to a specified position in document information created in advance. Was simply inserted and printing was performed. [0003] However, in the conventional document processing apparatus, the character mode (particularly, the mode setting for the insertion position (merge position)) in the document to be merged (original document) is ,
Document to be merged (merged document)
In contrast, after execution of the merge, it does not have any effectiveness (binding power). For example, if bold mode is set for a certain merge position of the original document and the merged document is inserted into that merge position, bold mode has no effect on the inserted merged document and no mode setting is made become. Therefore, when the same mode is set for all documents to be merged, it is necessary to individually set the same mode for each merged document. [0005] Some document processing apparatuses known in the art do not allow individual setting of the character mode of a merged document. As a result, not only the operability of the document processing apparatus is lost, but also the possibility of causing an operation error increases. In addition, the execution of the merge creates a document contrary to the operator's intention, which is extremely inconvenient. Accordingly, an object of the present invention is to provide
An object of the present invention is to provide a document processing apparatus capable of giving a selection range to an attribute after insertion from a plurality of attributes of an insertion position attribute and an attribute of a character string to be inserted. [0010] In order to achieve the above object, a document processing apparatus according to the present invention provides a document processing apparatus which includes insertion instruction information indicating an insertion position in document information and the insertion instruction information. A first storage unit for storing first attribute information set in the storage unit; a second storage unit for storing character string information to be inserted and second attribute information set in the character string information; If the character string information to be inserted with attribute information based on the first attribute information and the second attribute information is inserted at a position indicated by the insertion instruction information, the document information is printed. To print,
If the print mode is not specified, the document in which the character string information to be inserted, in which the attribute information based on the first attribute information and the second attribute information is set, is inserted at the position indicated by the insertion instruction information Control means for storing information in the third storage means. An embodiment according to the present invention will be described below in detail with reference to the accompanying drawings. FIG. 1 is an overall configuration diagram of a document processing apparatus according to the present invention. In this embodiment, the insertion means for inserting the second character string at a specific position in the first character string, and the merge mode of the second character string according to a mode preset for the first character string or the second character string are described. Control means B for selecting and instructing. FIG. 2 is a block diagram showing one embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a central processing unit (hereinafter, referred to as a CPU) which performs a main control of the embodiment.
And controls each component described later connected to each other via the system bus SB. Reference numeral 2 denotes a read only memory (ROM) used as a control memory for storing the processing procedure of the CPU 1.
It is. Reference numeral 3 denotes a random access memory (RAM), which is used as a work memory for temporarily storing programs and various data. Reference numeral 4 denotes a CRT for displaying data such as text and specifying a character processing position using a cursor. Reference numeral 5 denotes an external memory (hereinafter referred to as an FD) for storing and storing texts and the like created and edited. Reference numeral 6 denotes a keyboard (hereinafter, referred to as KB) on which various keys for giving instructions to the CPU 1 are arranged. Reference numeral 7 denotes a VRAM for holding display data to be displayed on the CRT 4. Reference numeral 8 denotes a CRT controller (hereinafter referred to as CRTC) for controlling display of the CRT 4. Reference numeral 9 denotes a control device of the FD 5 (hereinafter referred to as FDC). Reference numeral 10 denotes a keyboard controller (hereinafter, referred to as KBC) for controlling the KB6. Reference numeral 11 denotes a printer (hereinafter referred to as PRT). FIG. 3 is a memory configuration diagram of the RAM 3.
In the figure, reference numeral 12 denotes a text buffer pointer (TB_P).
Is a pointer for specifying the position of the text buffer TB. Original document buffer pointer 1
3 (OB_P) and the merged document buffer pointer 14 (MB_P) are pointers indicating the positions of the original document buffer 19 (OB) and the merged document buffer 20 (MB), respectively. The work pointer includes an original document buffer work pointer 15 (OP) and a merged document buffer work pointer 16 (MP). 17 is a merge document character counter C
NT is an area for holding the number of characters in the MB . Each of the buffer areas 18, 19,
Details of 20 are shown in FIG. In FIG. 4, TB
_P_I is an area for holding the head position of the text buffer TB, and TB_P_MAX is an area for holding the end position of the text buffer TB. This buffer T
B includes a character buffer TB_c and an attribute buffer TB_a, both of which are positioned by a pointer indicated by TB_P. The same applies to the original document buffer OB and the merged document buffer MB. The operation of this embodiment having the above configuration will be described below. In this embodiment, under the control of the CPU 1, document information is sequentially input from the KB6. The input document information is stored in the temporary RAM 3 and stored in the C
Displayed on RT4. After being edited, it is recorded on the FD 5 or printed by the PRT 11. Here, each command is input from the KB 6, and the character string mode setting, merge position, and the like in the present embodiment are also set in the document information. In addition, the plug-in function is also commanded from KB6. Next, the control procedure of this embodiment will be described in more detail with reference to a flowchart. FIGS. 5 and 6 are flowcharts showing the editing process when creating a document in this embodiment. In FIG. 5, first, in step S1, a key code fetch process is performed. In step S2, it is determined whether or not the obtained key is a general key. If it is not a general key, the corresponding special process is performed in step S4, and the process is terminated. FIG. 6 shows the contents of the special processing described above. Here, first, it is determined whether or not the mode setting key is set in step S5. If the mode setting key is set, the mode setting process is performed in step S7, and the process ends. If a negative determination is made in step S5, it is determined in step S6 whether the key is a merge position setting key. In the case of a merge position setting key, a merge position setting process is performed in step S8, and the process ends. Otherwise, another process is performed in step S9, and the process ends. In the mode setting process of step S7, when the setting flag of the corresponding mode is turned off, it is turned on.
If it is turned on, it is turned off. As a result, when the flag is ON at the time of character input, the corresponding mode information in bit units is set to the current position of the TB attribute area TB_a in FIG. Referring to FIG. 10, a bold mode flag is set in a bit unit in each attribute area of the character input when the bold mode is ON. In the general processing of step S3 shown in FIG. 5, the input character code is set in the current position TB_c [TB_P] of the character area TB_c of the TB, and at the same time, the same position is set according to the mode flag as described above. Attribute area TB_a
The corresponding attribute information is set in [TB_P]. In the merge position setting process in step S8, a merge position code (M with a bar) is set in the current position TB_c [TB_P] of the character area TB_c of TB. The code thus set corresponds to “M with bar” at the OB_P_M position shown in FIG. FIG. 7 is a flowchart showing the entire merge function process. In step S10, as an initial process of the merge process, the original document is set to OB, the merge document is set to MB, the character count of the merge document is performed, and the number of characters to be merged is set to CNT at a predetermined position in the RAM 3. Set to. In step S11, the original document buffer pointer OB_P is set to the head position OB_
Set to P_I. Next, in step S12, O
It is checked whether or not the content of OB_c indicated by B_P is the document end code “E OF ”. as a result,
If not "E OF ", it is determined in step S13 whether the content is "M with bar", that is, a merge position code. If it is a merge position code, it is necessary to perform a merge process at the corresponding position.
A merge process is performed at 14, and the process returns to step S12. Conversely, if it is not a merge position code, the pointer OB_P is incremented in step S15, and the process returns to step S12. If "E OF " is determined in step S12, it is determined in step S16 whether or not the print mode is set. As a result, when it is determined that the printing mode is set, the printing process is performed in step S18. If the printing mode is not set, step S
At 17, processing such as storing the contents of the OB in the FD 5 is performed. FIGS. 8 and 9 show the steps S shown in FIG.
14 is a flowchart showing the details of 14 (merge processing). First, in step S19 shown in FIG. 8, the merge document buffer pointer MB_P is set to the start position M
B_P_I is set, and in step S20, a process of moving the contents after the merge position of the original document to the rear is performed. FIG. 9 is a flowchart showing details of step S20. In step S25 shown in this figure, OP is set to the current pointer OB_ as the work pointer.
Set to P. In step S26, it is determined whether or not the content of the OB pointed to by the OP is "E OF ". If the result is not "E OF ", OP is incremented in step S27, and the process returns to step S26.
Here, the end of the original document is detected, and the position is obtained by OP. If "E OF " is detected in step S26, control is transferred to step S28, and if "E OF " is moved to the rear by a predetermined count number (CNT-1), the original buffer OB is output. It is determined whether or not there is a risk of protruding. That is, OB_P_MAX-
If {OP + (CNT-1)} is negative, the buffer overflows, so that the last buffer pointer OP to be moved in step S29 is set to OB_P_MAX- (CNT-
Set to 1) and at the same time OB_c [OB_P_MAX]
Is set to "E OF ". If a negative determination is made in step S28 (positive) and if step S29 is executed, it is determined in step S30 whether or not the OP is at the merge position OB_P (OB_P_M). You. If the result is not OB_P, the moving process has not been completed yet, and the content of the OB indicated by the OP is moved to the OB indicated by OP + (CNT-1) in step S31. In step S32, OP is decremented, and the determination is made again in step S30. In step S30, OP = OB
If it is determined to be _P, it is determined that the character movement of the original document for merging has been completed, and the processing in step S20 ends. Returning to FIG. 8 again, the steps after step S21 will be described. In step S21, it is determined whether or not MB_c [MP_P] is “E OF ” (whether or not all the merged documents have been merged into the original document). Is determined. If it is not "E OF ", it is determined in step S22 whether OB_P is OB_P_MAX. If a negative determination is made in step S22, merging is performed in step S23. That is, the contents of MB_c [MB_P] are changed to OB_c [OB_
P] to merge the characters. Next, MP
If _a is “0”, it means that no mode has been specified for the original document merge position, so the merge document mode is validated and MB_a
Move (MB_P) to OB_a [OB_P] (copy)
Then, the mode of the current position of the merged document is set to the attribute area of the current position of the original document. When MP_a is other than “0” (that is, when the attribute bit flag is set), it means that the mode has been specified for the original document merge position.
a is moved (copied) to OB_a [OB_P], and the merge position designation mode is set in the attribute area of the current position of the original document. Thereafter, in step S24, OB_
P and MB_P are both incremented, and the process returns to step S21 again. The merging is realized by the above-described loop, and if a positive determination is obtained in step S21 or step S22, the process ends. In the above-described embodiment, the mode set for the merged document is valid only when the mode is not specified for the merge position in the original document. ) And the mode for each position in the merged document (ie,
By calculating the logical sum with the contents of the attribute area), both attributes can be made valid. As described above, according to the embodiment of the present invention, whether or not the mode of the merge position is valid for the document after the execution of the merge is determined depending on whether or not the mode (ie, the attribute information) is set at the merge position. Alternatively, it is possible to select whether to enable the mode of the merged document. For example, when a mode is set for a merge position, after the merge is executed, the mode is set for the entire document merged into the position. As described above, it is possible to easily unify the modes of the merged document having different modes simply by setting the mode of the merge position when creating the original document. Thus, it is not necessary to individually set the mode for each merged document, so that it is possible to save the operator's labor and to minimize operation errors. If it is desired to set a different mode for each merged document, the mode is not set for the merge position, so that the mode of each merged document is maintained even after execution of the merge. Become. As a result, detailed document information can be obtained according to the purpose of merging. As described above, according to the present invention, insertion instruction information indicating an insertion position in document information and first attribute information set in the insertion instruction information are stored, and the insertion is performed. Character string information to be stored and second attribute information set in the character string information, and the first attribute information and the second attribute information are stored in a position indicated by the insertion instruction information.
Since the document information in which the character string information to be inserted in which the attribute information is set based on the attribute information is to be stored, the attribute after insertion is obtained from a plurality of attributes of the insertion position attribute and the attribute of the character string to be inserted. Can have a selection range.

【図面の簡単な説明】 【図1】本発明による文書処理装置の全体構成を示す図
である。 【図2】本発明の一実施例を示すブロック図である。 【図3】本実施例に用いるメモリの構成を示す図であ
る。 【図4】本実施例に用いるメモリの構成を示す図であ
る。 【図5】本実施例の動作手順を示すフローチャートであ
る。 【図6】本実施例の動作手順を示すフローチャートであ
る。 【図7】本実施例の動作手順を示すフローチャートであ
る。 【図8】本実施例の動作手順を示すフローチャートであ
る。 【図9】本実施例の動作手順を示すフローチャートであ
る。 【図10】本実施例による具体的な動作例を示す図であ
る。 【符号の説明】 1 CPU 2 ROM 3 RAM 4 CRT 5 外部メモリ 6 キーボード 7 VRAM 11 プリンタ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing an overall configuration of a document processing apparatus according to the present invention. FIG. 2 is a block diagram showing one embodiment of the present invention. FIG. 3 is a diagram illustrating a configuration of a memory used in the embodiment. FIG. 4 is a diagram showing a configuration of a memory used in the embodiment. FIG. 5 is a flowchart showing an operation procedure of the embodiment. FIG. 6 is a flowchart illustrating an operation procedure of the embodiment. FIG. 7 is a flowchart showing an operation procedure of the embodiment. FIG. 8 is a flowchart illustrating an operation procedure of the present embodiment. FIG. 9 is a flowchart illustrating an operation procedure of the embodiment. FIG. 10 is a diagram showing a specific operation example according to the present embodiment. [Description of Signs] 1 CPU 2 ROM 3 RAM 4 CRT 5 External memory 6 Keyboard 7 VRAM 11 Printer

Claims (1)

(57)【特許請求の範囲】 1.文書情報中の差し込み位置を指示する差し込み指示
情報とその差し込み指示情報に設定される第1属性情報
とを記憶する第1記憶手段と、 差し込むべき文字列情報とその文字列情報に設定される
第2属性情報とを記憶する第2記憶手段と、印刷モードが指定されている場合には、 前記差し込み指
示情報が指示する位置に、前記第1属性情報と前記第2
属性情報とに基づく属性情報が設定された差し込むべき
文字列情報を差し込んだ文書情報を印刷手段に印刷さ
せ、印刷モードが指定されていない場合には、前記差し
込み指示情報が指示する位置に、前記第1属性情報と前
記第2属性情報とに基づく属性情報が設定された差し込
むべき文字列情報を差し込んだ文書情報を第3記憶手段
に記憶させる制御手段とを有することを特徴とする文書
処理装置。 2.前記制御手段は、前記第1属性情報が設定されてい
ない場合に、前記第2属性情報の属性情報が設定された
差し込むべき文字列情報を差し込んだ文書情報を印刷さ
せるか、または、記憶させることを特徴とする特許請求
の範囲第1項記載の文書処理装置。 3.前記制御手段は、前記第1属性情報と前記第2属性
情報との論理和をとった属性情報が設定された差し込む
べき文字列情報を差し込んだ文書情報を印刷させるか、
または、記憶させることを特徴とする特許請求の範囲第
1項記載の文書処理装置。 4.前記第3記憶手段は、外部メモリであることを特徴
とする特許請求の範囲第1項記載の文書処理装置。
(57) [Claims] First storage means for storing insertion instruction information indicating an insertion position in the document information, and first attribute information set in the insertion instruction information; character string information to be inserted and a second character information set in the character string information A second storage unit for storing the second attribute information; and, when a print mode is designated , the first attribute information and the second attribute information are stored in a position indicated by the insertion instruction information.
The document information in which the character string information to be inserted into which the attribute information is set based on the attribute information is printed on the printing unit.
If the print mode is not specified,
The first attribute information and the previous
Insertion in which attribute information based on the second attribute information is set
A third storage unit for storing document information into which necessary character string information is inserted;
And a control means for causing the document processing device to store the document. 2. When the first attribute information is not set, the control unit prints the document information in which the character string information to which the attribute information of the second attribute information is set is inserted.
2. The document processing apparatus according to claim 1, wherein the document processing apparatus stores or stores the document. 3. The control means may be configured to print the document information in which the character string information to be inserted in which the attribute information obtained by calculating the logical sum of the first attribute information and the second attribute information is set ,
Or, the document processing device as set forth in claim 1, wherein claims, characterized in that for storage. 4. The third storage means is an external memory
2. The document processing apparatus according to claim 1, wherein:
JP6272759A 1994-11-07 1994-11-07 Document processing device Expired - Lifetime JP2777067B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6272759A JP2777067B2 (en) 1994-11-07 1994-11-07 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6272759A JP2777067B2 (en) 1994-11-07 1994-11-07 Document processing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP61100287A Division JPH07109582B2 (en) 1986-04-30 1986-04-30 Document processor

Publications (2)

Publication Number Publication Date
JPH07168813A JPH07168813A (en) 1995-07-04
JP2777067B2 true JP2777067B2 (en) 1998-07-16

Family

ID=17518358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6272759A Expired - Lifetime JP2777067B2 (en) 1994-11-07 1994-11-07 Document processing device

Country Status (1)

Country Link
JP (1) JP2777067B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0612514B2 (en) * 1981-10-19 1994-02-16 キヤノン株式会社 Document processing method and apparatus
JPS58106628A (en) * 1981-12-18 1983-06-25 Sanyo Electric Co Ltd Shift mode control system
JPS5969831A (en) * 1982-10-15 1984-04-20 Toshiba Corp Device for documentation
JPH0812663B2 (en) * 1984-09-25 1996-02-07 キヤノン株式会社 Image processing system and method thereof
JPS61121165A (en) * 1984-11-19 1986-06-09 Canon Inc Picture processing system
JPH07109582B2 (en) * 1986-04-30 1995-11-22 キヤノン株式会社 Document processor

Also Published As

Publication number Publication date
JPH07168813A (en) 1995-07-04

Similar Documents

Publication Publication Date Title
JP2777067B2 (en) Document processing device
JPH07109582B2 (en) Document processor
JPH0377126A (en) Method and device for processing data
JP3711795B2 (en) Printer driver, electronic computer, print information setting method, and recording medium
JPS6057382A (en) Character processor
JPH0793319A (en) Document processor
JP2713219B2 (en) Graphic display device
JPH03266172A (en) Word processor
JPH05101061A (en) Document preparing device
JP3580228B2 (en) Printing unit selection output device
JPH03121876A (en) Data recording apparatus
JPH08221401A (en) System and method for managing document file
JPH08161308A (en) Document processor
JPH077391B2 (en) Document processor
JPH0435975A (en) Image forming device
JPH04242474A (en) Document preparing device
JPS6320621A (en) Editing printer
JPS63298664A (en) Data editing device
JPH04361362A (en) Document preparing device
JPH05274313A (en) Document preparing device
JPH023861A (en) Information processor
JPH01314174A (en) Document printing system
JP2000137704A (en) Device and method for editing document
JPH04338576A (en) Printer device
JPH09245024A (en) Document preparation device and suffix document management method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term