JPH0212367A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0212367A
JPH0212367A JP63160586A JP16058688A JPH0212367A JP H0212367 A JPH0212367 A JP H0212367A JP 63160586 A JP63160586 A JP 63160586A JP 16058688 A JP16058688 A JP 16058688A JP H0212367 A JPH0212367 A JP H0212367A
Authority
JP
Japan
Prior art keywords
hyphenation
line
document
operator
character
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
JP63160586A
Other languages
Japanese (ja)
Inventor
Kiyoshi Katano
清 片野
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 JP63160586A priority Critical patent/JPH0212367A/en
Publication of JPH0212367A publication Critical patent/JPH0212367A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize the automatic line feed and hyphenation by securing the coincidence between the positions of the line feed and the hyphenation pointed by an operator and the character strings and storing them as a registered document. CONSTITUTION:A 1st memory means 101 stores the input documents and a pointing means 102 points the positions of the line feed and hyphenation in the documents. The pointing actions of the means 102 are stored in a 2nd memory means 103. Then the positions of the line feed and the phyphenation read out of the means 103 are set at the documents read out of the means 101. These positions and documents are stored in a 3rd memory means 104. Thus, the automatic line feed and hyphenation are attained and therefore the working load of an operator can be reduced.

Description

【発明の詳細な説明】 [a業上の利用分野] 本発明は文書処理装置に関する。[Detailed description of the invention] [A field of use in business] The present invention relates to a document processing device.

[従来の技術] 従来、登録文書を印字する際、行末の適当な位置に行区
切り文字がない場合に、印字を中断してオペレータの指
示により改行およびハイフネイションをしながら記録用
紙の一部目に印字し、そのハイフネイション位置を記憶
し、二部目以降の印字には、このご己憶した位置の情報
に基いたハイフネイションの印字を行っていた。
[Prior Art] Conventionally, when printing a registered document, if there is no line delimiter at an appropriate position at the end of a line, printing is interrupted and a part of the recording sheet is printed while performing line breaks and hyphenation according to the operator's instructions. , the hyphenation position was memorized, and the second and subsequent copies were printed with hyphenation based on this memorized position information.

[発明が解決しようとする課題] しかしながら1.従来の文書処理装置においては、改行
およびハイフネイションの位置は一時的に記憶されるも
のであり、文書を再度印字する場合には、オペレータは
もう一度改行およびハイフネイションの印字を行うため
の操作をしなければならないという欠点があった。
[Problems to be solved by the invention] However, 1. In conventional document processing devices, the positions of line breaks and hyphenation are temporarily stored, and when printing a document again, the operator must perform operations to print line breaks and hyphenation again. There was a drawback that it had to be done.

本発明の目的は上述の欠点を除去し、改行およびハイフ
ネイションを自動的に行うことのできる文書処理装置を
提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document processing device that can eliminate the above-mentioned drawbacks and automatically perform line breaks and hyphenation.

[課題を解決するための手段] このような目的を達成するために、本発明は、入力され
た文書を記憶する第1記憶手段と、文書中の改行および
ハイフネイションの位置を指示する指示手段と、指示手
段による指示を記憶する第2記憶手段と、第2記憶手段
から読み出した改行およびハイフネイションの位置と第
1記憶手段から読み出した文書とを合わせて記憶する第
3記憶手段とを具える。
[Means for Solving the Problems] In order to achieve such an object, the present invention provides a first storage means for storing an input document, and an instruction means for indicating the positions of line breaks and hyphenation in the document. and a second storage means for storing instructions from the instruction means, and a third storage means for storing together the positions of line breaks and hyphenation read from the second storage means and the document read from the first storage means. I can do it.

[作 用] 本発明によれば、オペレータにより指示された改行およ
びハイフネイションの位置と文書文字列とを合わせ、登
録文書として記憶することにより、改行およびハイフネ
イシ3ンを自動的に行いながら繰り返して印字できるよ
うにしたものである。
[Operation] According to the present invention, line breaks and hyphenation positions instructed by an operator are matched with document character strings, and the result is stored as a registered document, thereby repeatedly performing line breaks and hyphenation automatically. It is made to be printable.

[実施例コ 以下、図面を参照して本発明の詳細な説明する。[Example code] Hereinafter, the present invention will be described in detail with reference to the drawings.

本発明に係る文書処理装置は、第1図に示すように、入
力された文書を記憶する第1記憶手段101 と、前記
文書中の改行およびハイフネイションの位置を指示する
指示手段102と、該指示手段102による指示を記憶
する第2記憶手段103と、該第2記憶手段103から
読み出した前記改行およびハイフネイションの位置と前
記第1記憶手段101から読み出した前記文書とを合わ
せて記憶する第3記憶手段104 とを具えたことを特
徴とする。
As shown in FIG. 1, the document processing apparatus according to the present invention includes a first storage means 101 for storing an input document, an instruction means 102 for instructing the positions of line breaks and hyphenation in the document, and a second storage means 103 for storing the instructions given by the instruction means 102; and a second storage means 103 for storing the line feed and hyphenation positions read from the second storage means 103 and the document read from the first storage means 101. 3 storage means 104.

箆2図は本発明の実施例の構成を示す。ここで、6はC
Pt1 (中央処理装置)であり、ROIll(リード
オンリメモリ)8に記憶した制御プログラムに従フてシ
ステムバス12を介して、システム全体を制御している
。7はキーボードである。9はRAM (ランダムアク
セスメモリ)であり、登録文書文字列9A、文、書文字
列を検索するためにアドレスaを格納するポインタ9B
、文字列から読取った文字コードCを格納する変数96
,1行の長さしが格納されている9D、1行の長さの許
容範囲εを格納している9E、印字する文字列の長さl
を計算するための変数9F、オペレータに指示された情
報を格納するバッファ9Gおよび印字装置11に送る文
字列を格納する印字バッファ9日を備えている。10は
CRT (陰極線管)などの形態の表示装置である。
Figure 2 shows the configuration of an embodiment of the present invention. Here, 6 is C
Pt1 (central processing unit) controls the entire system via a system bus 12 according to a control program stored in an ROIll (read only memory) 8. 7 is a keyboard. 9 is a RAM (random access memory), which includes a registered document character string 9A, a pointer 9B that stores an address a for searching a sentence, a document character string;
, a variable 96 that stores the character code C read from the character string.
, 9D stores the length of one line, 9E stores the permissible range ε of the length of one line, and the length l of the character string to be printed.
, a buffer 9G for storing information instructed by the operator, and a print buffer 9 for storing character strings to be sent to the printing device 11. 10 is a display device in the form of a CRT (cathode ray tube) or the like.

第3図はバッファ9Gの内容を示す。9Glにはオペレ
ータがハイフネイションを指示したアドレスh、、 F
12+・・・が格納されている。
FIG. 3 shows the contents of buffer 9G. 9Gl is the address h,,F where the operator instructed hyphenation.
12+... are stored.

9G2には改行のみを指示したアドレスrlr +”2
゜・・・が格納されている。
9G2 has the address rlr +”2 with only a new line specified.
゜... is stored.

以下、フローチャートに従フて、本実施例の処理につい
て説明する。第4図は一部目の印字における一行の印字
処理の手順を示す。まず、ステップ5100において、
文字列の長さ℃を初期化する。
The processing of this embodiment will be explained below according to the flowchart. FIG. 4 shows the procedure for printing one line in the first printing. First, in step 5100,
Initialize string length ℃.

次いで、ステップ5101においてjZ<Lかどうかを
判定し、u<Lでなければステップ5105へ進む。
Next, in step 5101, it is determined whether jZ<L, and if u<L, the process proceeds to step 5105.

u<Lの場合はステップ5102においてアドレスaの
文字Cを読み取りステップ5103においてCが改行を
指示する文字かどうか判定する。
If u<L, the character C at address a is read in step 5102, and it is determined in step 5103 whether C is a character that instructs a line feed.

ステップ5103における判定が改行を指示する文字な
らばステップ5109へ進む。そうでなければ、ステッ
プ5104へ進みLに文字Cの幅を加え、ポインタを次
の文字のアドレスに交信し、ステップ5101へ戻りこ
れを繰り返す。
If the determination in step 5103 is that the character indicates a line feed, the process advances to step 5109. Otherwise, proceed to step 5104, add the width of the character C to L, communicate the pointer to the address of the next character, and return to step 5101 to repeat.

ステップ5105においてu<L+εかどうか判定する
。u<L+εでなければステップ5iloへ進む。
In step 5105, it is determined whether u<L+ε. If u<L+ε, proceed to step 5ilo.

ステップ5105における判定がλくL十〇ならば、ス
テップ5106においてアドレスaの文字Cを読み取る
。次にステップ5107において文字Cが改行を指示す
る文字かどうかを判定し、そうならばステップ5109
へそうでなければステップ5108へ進む。
If the determination in step 5105 is λ and L10, the character C at address a is read in step 5106. Next, in step 5107, it is determined whether the character C is a character that indicates a line break, and if so, step 5109
If not, proceed to step 5108.

ステップ5108においてλに文字Cの幅を加え、ポイ
ンタを次の文字へ進め、ステップ5105に戻リ、ステ
ップ5105ないし5108を繰り返す。
In step 5108, the width of the character C is added to λ, the pointer is advanced to the next character, the process returns to step 5105, and steps 5105 to 5108 are repeated.

ステップ5109において印字文字列を印字バッファに
セットし、印字装置llに出力して処理を終了する。
In step 5109, the print character string is set in the print buffer and output to the printing device 11, and the process ends.

ステップ5110において、ハイフネイションが必要に
なった行末を表示装置lOに表示する。そして、ステッ
プ5illにおいてオペレータの指示をキーボード7よ
り入力する。
In step 5110, the end of the line that requires hyphenation is displayed on the display device IO. Then, in step 5ill, the operator's instructions are input from the keyboard 7.

ステップ5112においてオペレータの指示を判定する
。オペレータがハイフネイションを指示したときは、ス
テップ5113において、指示されたアドレスをバッフ
ァ9Gに格納し、ステップ5114において、印字バッ
ファに文字列をセットし、行末にハイフンを付加する。
In step 5112, the operator's instructions are determined. When the operator instructs hyphenation, in step 5113 the instructed address is stored in the buffer 9G, and in step 5114 the character string is set in the print buffer and a hyphen is added to the end of the line.

ステップ5112において、改行のみの指示であれば、
ステップ5115においてアドレスをバッファに格納し
、印字バッファに文字列をセットし処理を終了する。
In step 5112, if only a line break is specified,
In step 5115, the address is stored in the buffer, the character string is set in the print buffer, and the process ends.

このようにしてなされた、オペレータの指示した改行お
よびハイフネイションのアドレスを格納したバッファ9
Gの内容と登録文書文字列9への内容とを合わせて最終
的な登録文書として記憶する。
Buffer 9 that stores the address of the line break and hyphenation specified by the operator in this way
The contents of G and the contents of registered document character string 9 are combined and stored as a final registered document.

第5図は上述の登録文書を1行印字するときの二部目以
降の処理を示す。
FIG. 5 shows the processing for the second and subsequent copies when printing one line of the above-mentioned registered document.

まず、ステップ5200において1を初期化する。First, in step 5200, 1 is initialized.

ステップ5201でJ2<Lを判定し、42<Lでなけ
ればステップ5207へ進む。J2<Lならばステップ
5202においてアドレスaの文字Cを読み出す。
In step 5201, it is determined that J2<L, and if 42<L, the process advances to step 5207. If J2<L, the character C at address a is read out in step 5202.

ステップ5203において、Cが改行を指示する文字で
あると判定されたならばステップ5213へ進む。ステ
ップ5204においてaがオペレータが改行を指示した
アドレスであると判定されたならばステップ5213へ
進む。
If it is determined in step 5203 that C is a character indicating a line feed, the process advances to step 5213. If it is determined in step 5204 that a is the address for which the operator has instructed a line break, the process advances to step 5213.

ステップ5205において、aがオペレータがハイフネ
イションを指示したアドレスであると判定されたならば
ステップ5212へ進む。このようなアドレスではない
ときは、ステップ5208において1にCの文字幅を加
え、ポインタを更新し、ステップ5201へ戻りステッ
プ5201ないし5206を繰り返す。
If it is determined in step 5205 that a is the address for which the operator has instructed hyphenation, the process advances to step 5212. If the address is not such, the character width of C is added to 1 in step 5208, the pointer is updated, and the process returns to step 5201 to repeat steps 5201 to 5206.

ステップ5207においてアドレスaの文字Cを読み出
す。次いでステップ5208においてCが改行を指示す
る文字であると判定されたならば、ステップ5213へ
進む。次にステップ5209においてaがオペレータに
改行を指示されたアドレスであると判定されたならば、
ステップ5213へ進み、そうでなければステップ52
10に進む。
In step 5207, character C at address a is read. Next, if it is determined in step 5208 that C is a character indicating a line feed, the process advances to step 5213. Next, if it is determined in step 5209 that a is the address for which the operator has instructed a line break,
Proceed to step 5213, otherwise step 52
Proceed to step 10.

ステップ5210においてaがオペレータによりハイフ
ネイションを指示されたアドレスならばステップ521
2へ進む。ステップ5211においてポインタを更新し
、ステップ5207へ戻りこれを繰り返す。
If a is an address for which hyphenation is instructed by the operator in step 5210, step 521
Proceed to 2. The pointer is updated in step 5211, and the process returns to step 5207 to repeat this process.

ステップ5212において印字バッファ9!1に文字列
をセットし、行末にハイフンを付加する。ステップ52
13では印字バッファに文字列をセットする。
In step 5212, a character string is set in the print buffer 9!1, and a hyphen is added to the end of the line. Step 52
In step 13, a character string is set in the print buffer.

ステップ5212,5213共に印字装置11に出力し
、処理を終る。登録文書を編集した場合には改行および
ハイフネイションのアドレスを格納したバッファ9Gの
内容は無効となり、−度印字することによりバッファ9
Gの内容が更新される。
Both steps 5212 and 5213 are output to the printing device 11, and the process ends. If you edit the registered document, the contents of buffer 9G that stores line feed and hyphenation addresses will become invalid, and by printing - degrees, the contents of buffer 9G will become invalid.
The contents of G are updated.

[発明の効果] 以上説明したように、本発明においてはオペレータが指
示した改行および、ハイフネイションの位置の情報を記
憶しておくようにしたので、文書を複数部印字する際、
オペレータによる改行およびハイフネイションの作業を
軽減し、かつ、操作の簡便化を図ることができる効果が
ある。
[Effects of the Invention] As explained above, in the present invention, information on line breaks and hyphenation positions instructed by the operator is stored, so when printing multiple copies of a document,
This has the effect of reducing line break and hyphenation work by the operator and simplifying operations.

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

第1図は本発明に係る文書処理装匝の基本構成図、 第2図は本発明の実施例の構成を示す図、第3図は第2
図に示したバッファ9Gの内容を示す図、 第4図は一部目の印字の処理手順を示すフローチャート
、 第5ばは二部目以降の印字の処理のフローチャ−トであ
る。 6・・・CPU (中央処理袋W)、 7・・・キーボード、 8・・・ROM (リードオンリメモリ)、9・・・R
Ah4 (ランダムアクセスメモリ)9A・・・登録文
書文字列、 9ト・・ポインタ、 9C・・・文字コード、 9D・・・1行の長さ、 9E・・・許容範囲、 9G・・・バッファ、 9(!・・・印字バッファ、 10・・・表示装置、 11・・・印字装置、 12・・・システムバス。 キ希明f)x党イダ1」を示す図 第2図 ネ鉋朗1;係ゐ文奢3理兼工0苓杏構収図第1図 第2図0バ、7フア 9GをtX′″¥′図第3 図
FIG. 1 is a basic configuration diagram of a document processing container according to the present invention, FIG. 2 is a diagram showing the configuration of an embodiment of the present invention, and FIG.
FIG. 4 is a flow chart showing the processing procedure for printing the first copy, and FIG. 5 is a flow chart showing the processing procedure for printing the second and subsequent copies. 6...CPU (central processing bag W), 7...keyboard, 8...ROM (read only memory), 9...R
Ah4 (Random access memory) 9A...Registered document character string, 9T...Pointer, 9C...Character code, 9D...Length of one line, 9E...Tolerance range, 9G...Buffer , 9 (!...Print buffer, 10...Display device, 11...Print device, 12...System bus. 1;Relationship Bunju 3Science and engineering 0Ring An construction drawing Fig. 1 Fig. 2 0 bar, 7 fa 9G to

Claims (1)

【特許請求の範囲】 1)入力された文書を記憶する第1記憶手段と、 前記文書中の改行およびハイフネイションの位置を指示
する指示手段と、 該指示手段による指示を記憶する第2記憶手段と、 該第2記憶手段から読み出した前記改行およびハイフネ
イションの位置と前記第1記憶手段から読み出した前記
文書とを合わせて記憶する第3記憶手段と を具えたことを特徴とする文書処理装置。
[Scope of Claims] 1) A first storage means for storing an inputted document; An instruction means for indicating the position of line breaks and hyphenation in the document; and a second storage means for storing instructions by the instruction means. and a third storage means for storing together the position of the line break and hyphenation read from the second storage means and the document read from the first storage means. .
JP63160586A 1988-06-30 1988-06-30 Document processor Pending JPH0212367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63160586A JPH0212367A (en) 1988-06-30 1988-06-30 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63160586A JPH0212367A (en) 1988-06-30 1988-06-30 Document processor

Publications (1)

Publication Number Publication Date
JPH0212367A true JPH0212367A (en) 1990-01-17

Family

ID=15718159

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63160586A Pending JPH0212367A (en) 1988-06-30 1988-06-30 Document processor

Country Status (1)

Country Link
JP (1) JPH0212367A (en)

Similar Documents

Publication Publication Date Title
US4441829A (en) Method for performing a multiple page get operation in a text processing system
JP2959473B2 (en) Document processing device
JPH0212367A (en) Document processor
JP3246142B2 (en) Printing control device
JPH0572270B2 (en)
JPH038063A (en) Document processor
JPH03266172A (en) Word processor
JPS62270364A (en) Document processing apparatus
JPH07125390A (en) Image recognition processor
JPH01270167A (en) Document editing system with memorandum
JP2789596B2 (en) Document processing device
JPH04111116A (en) Character processor
JPS62250768A (en) Printing device
JPH04162175A (en) Document revision support system
JPH05342207A (en) Format specifying method for word processor
JPH04361362A (en) Document preparing device
JPH03250362A (en) Document proofreading device
JPH02297123A (en) Document generator
JPH01215574A (en) Word processor
JPH0196724A (en) Picture output device
JPH0464166A (en) Character processor
JPH0542724A (en) Character generation device
JPH02297240A (en) Input device
JPH05135020A (en) Document processor
JPH02233269A (en) Printer