JP2773145B2 - Document shaping method and document processing device - Google Patents

Document shaping method and document processing device

Info

Publication number
JP2773145B2
JP2773145B2 JP63201140A JP20114088A JP2773145B2 JP 2773145 B2 JP2773145 B2 JP 2773145B2 JP 63201140 A JP63201140 A JP 63201140A JP 20114088 A JP20114088 A JP 20114088A JP 2773145 B2 JP2773145 B2 JP 2773145B2
Authority
JP
Japan
Prior art keywords
character
line
characters
document
amount
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 - Fee Related
Application number
JP63201140A
Other languages
Japanese (ja)
Other versions
JPH0250759A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63201140A priority Critical patent/JP2773145B2/en
Publication of JPH0250759A publication Critical patent/JPH0250759A/en
Application granted granted Critical
Publication of JP2773145B2 publication Critical patent/JP2773145B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ワードプロセッサ等の文書処理システムに
おける文書整形方法および文書処理装置に関し、特に各
行の行末位置が正しく揃い、かつ行内の各文字が適切な
間隔で配置された高品位の文書を得ることが可能な文書
整形方法および文書処理装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document shaping method and a document processing apparatus in a document processing system such as a word processor, and more particularly, to a method in which the end of each line is correctly aligned and each character in the line is appropriate. TECHNICAL FIELD The present invention relates to a document shaping method and a document processing apparatus capable of obtaining high-quality documents arranged at an appropriate interval.

〔従来技術〕(Prior art)

従来の文書処理システムでは、文書中に文字幅の異な
る複数種類の文字が混在するという条件のもとで行末位
置を揃える場合、例えば特開昭61−118866号公報に記載
されているように、無条件に禁則処理を行い、これによ
り各行に対する文字の配分を確定した後、行長の修正を
行っている。
In a conventional document processing system, when aligning the line end positions under the condition that a plurality of types of characters having different character widths are mixed in a document, for example, as described in JP-A-61-118866, Unconstrained processing is performed unconditionally, thereby determining the distribution of characters for each line, and then correcting the line length.

すなわち、まず各文字個有の幅と各文字の間に置くべ
き文字間隔の自然長とに従って、各行に文字を配置して
いく。次に禁則処理を行い、行頭や行末に禁則対象文字
があれば、これを前後の行に移動する。最後に行長の修
正に移り、各行の行長が予め指定された長さに一致する
ように、行内の各文字間隔を伸縮させて調整を行う。
That is, first, characters are arranged in each line according to the width of each character and the natural length of the character interval to be placed between the characters. Next, prohibition processing is performed, and if there is a prohibition target character at the beginning or end of a line, it is moved to the previous or next line. Finally, the process proceeds to the correction of the line length, and adjustment is performed by expanding and contracting the character spacing in the line so that the line length of each line matches the length specified in advance.

この行長修正の際には、隣り合う文字の種別の組み合
わせに応じて文字間隔の伸長許容率および収縮許容率を
定めておき、これに比例した量の伸び(または縮み)を
割当てることにより、文字配置のバランスが失われない
ようにしていた。
At the time of this line length correction, the expansion allowable ratio and the contraction allowable ratio of the character interval are determined in accordance with the combination of the types of the adjacent characters, and the expansion (or contraction) of an amount proportional to these is assigned. The balance of character arrangement was not lost.

しかし、この方法では、文字間隔がその最適値から外
れることによって生じる文書品位の低下と、禁則対象文
字が例外的位置に配置されることによって生じる文書品
位の低下とを、総合的に判断して文字の配置を定めるこ
とについては配慮されていなかった。
However, according to this method, the deterioration of the document quality caused by the character spacing deviating from the optimum value and the deterioration of the document quality caused by the placement of the prohibited character in an exceptional position are comprehensively determined. No consideration was given to the placement of the characters.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上記従来技術では、まず無条件に禁則処理を行い、こ
れにより各行に対する文字の配分を確定した後で行長の
修正を行っている。しかし、伸縮許容量や禁則対象文字
の種類などの状況によっては、禁則処理を行わない方が
良い結果が得られる場合がある。
In the above-mentioned prior art, the prohibition processing is first performed unconditionally, and thereby the distribution of characters to each line is determined, and then the line length is corrected. However, depending on circumstances such as the allowable amount of expansion and contraction and the type of prohibited characters, it may be possible to obtain better results without performing prohibition processing.

例えば、行長が短く、行内に配置できる文字数が少い
場合、行末位置を揃えるのに必要な修正量が大きくなる
と、各文字間が伸びすぎ(または詰まりすぎ)て、読み
易さが大きく損われる。
For example, if the line length is short and the number of characters that can be arranged in a line is small, and if the amount of correction required to align the end of the line is large, the space between characters is too long (or too tight) and the readability is greatly impaired. Will be

これに対して、禁則対象文字の種類によっては、例外
的な位置に配置されても、あまり読み易さを損わないも
のがある。
On the other hand, depending on the type of prohibited character, even if it is arranged in an exceptional position, the readability is not significantly impaired.

例えば、拗促音類(「ゃ」、「っ」など)は一般に行
頭禁則文字として扱われるが、これらが行頭に配置され
ることによって読み易さが損われる程度は、同じ行頭禁
則文字である句読点等に比べてかなり少い。
For example, repetitive sounds ("ゃ", "tsu", etc.) are generally treated as non-starter characters, but to the extent that their readability is impaired by placing them at the beginning of a line, the same punctuation marks are used. Considerably less than etc.

従って、禁則処理を行うには行長の修正量を増やさな
ければならない場合、むしろ禁則処理を行わない方が良
いことがある。しかし、上記従来技術では禁則処理と行
長の修正量との間のトレードオフについて配慮されてお
らず、無条件に禁則処理を行っている。
Therefore, when it is necessary to increase the correction amount of the line length to perform the prohibition processing, it may be better not to perform the prohibition processing. However, in the above-described related art, no consideration is given to the trade-off between the prohibition processing and the correction amount of the line length, and the prohibition processing is performed unconditionally.

このため、条件によっては、禁則処理を行わなかった
場合に比べ、かえって低品位の出力しか得られないこと
があるという問題があった。
For this reason, depending on the condition, there is a problem that, in comparison with a case where the prohibition processing is not performed, only a low-quality output may be obtained.

本発明の目的は、このような問題点を改善し、文字間
隔がその最適値から外れることによって生じる文書品位
の低下と、禁則対象文字が例外的位置に配置されること
によって生じる文書品位の低下とを総合的に判断し、最
終的に最も高品位の出力が得られるように、各行に対す
る文字の配分と行内での各文字の配置を決定することが
可能な文書整形方法および文書処理装置を提供すること
にある。
SUMMARY OF THE INVENTION An object of the present invention is to solve such problems and reduce the document quality caused by the character spacing deviating from the optimum value, and the document quality caused by placing prohibited characters in exceptional positions. And a document processing method and apparatus that can determine the distribution of characters for each line and the arrangement of each character within a line so that the highest quality output is finally obtained. To provide.

〔課題を解決するための手段〕[Means for solving the problem]

上記目的を達成するため、本発明の文書整形方法は、
文書処理で表示すべき文字の配置を整形する文書整形方
法であって、表示する際の1行あたりの行長を定め、予
め隣り合う文字から文字間隔の最適値および前記最適値
から伸縮が許容される伸縮許容量を定め、前記最適値で
文字を配置すると、前記行長から文字がはみ出す場合
は、前記最適値を前記伸縮許容量を越えない範囲で伸縮
して、(1)前記行長からはみ出す文字を当該行の行末
に、(2)前記はみ出す文字を次行の先頭に、かつ前記
はみ出す文字の直前の文字を当該行の行末に、前記
(1)または前記(2)のいずれかとなるように、配置
することにより文字の配置を整形することを特徴として
いる。
In order to achieve the above object, the document shaping method of the present invention comprises:
A document shaping method for shaping the arrangement of characters to be displayed in document processing, wherein a line length per line at the time of display is determined, and an optimum value of a character interval from adjacent characters and expansion and contraction from an optimum value are allowed in advance. When the character is arranged with the optimum value, and the character extends beyond the line length, the optimum value is expanded and contracted within a range not exceeding the allowable expansion and contraction amount. (2) The character that protrudes from the end of the line, (2) the character that protrudes to the beginning of the next line, and the character that immediately precedes the character that protrudes to the end of the line, and either (1) or (2) above. Thus, the character arrangement is shaped by arranging the characters.

また、本発明の文書処理装置は、表示する際の1行当
たりの行長を定める行長決定手段と、予め隣り合う文字
から文字間隔の最適値および前記最適値から伸縮が許容
される伸縮許容量を定める文字間隔決定手段と、前記文
字間隔決定手段にて定められた最適値を伸縮することに
より生じる文書の品位の低下を示す伸縮損失量を伸縮量
に対応して定める伸縮損失量決定手段と、禁則対象文字
を例外的な位置に配置することにより生じる禁則損失量
を禁則対象文字の種類および禁則対象文字の配置位置に
対応して定める禁則損失量決定手段と、前記文字間隔決
定手段で定められた最適値で文字を配置すると、前記行
長決定手段で定められた行長から文字がはみ出す場合
は、前記最適値を前記伸縮許容量を越えない範囲で伸縮
して、(1)前記行長からはみ出す文字を当該行の行末
に配置し、(2)前記はみ出す文字の直前の文字を当該
行の行末に、かつ前記はみ出す文字を次行の先頭に配置
し、前記(1)および前記(2)と配置した場合の伸縮
損失量および禁則損失量の和である合計損失量を求める
損失量算出手段と、前記損失量算出手段で求められた合
計算出量の小さい方で前記文字を配置する文字配置手段
とを有することを特徴としている。
The document processing apparatus according to the present invention further includes a line length determining unit that determines a line length per line when displaying, and an optimal value of a character interval between adjacent characters in advance and a contraction / expansion permitting expansion / contraction based on the optimal value. Character spacing determining means for determining the capacity, and expansion / contraction loss determining means for determining an expansion / contraction loss corresponding to the amount of expansion / contraction indicating a decrease in document quality caused by expanding / contracting the optimum value determined by the character spacing determining means. A forbidden loss amount determining means for determining a forbidden loss amount caused by arranging the forbidden character at an exceptional position in accordance with a type of the forbidden character and an arrangement position of the forbidden character; and the character spacing determining means. When the characters are arranged with the determined optimum value, if the characters protrude from the line length determined by the line length determining means, the optimum value is expanded and contracted within a range not exceeding the allowable expansion and contraction amount. Line length (2) The character immediately before the protruding character is arranged at the end of the line and the protruding character is arranged at the beginning of the next line. ) And a loss amount calculating means for calculating a total loss amount which is a sum of the expansion loss amount and the forbidden loss amount when the arrangement is performed, and a character for arranging the character with a smaller total amount calculated by the loss amount calculating means. And arranging means.

〔作用〕[Action]

本発明においては、文書の作成に際して文字列が入力
されると、まず隣り合う文字の種別の組み合わせに従っ
て、その間に置くべき文字間隔の最適値、伸長許容量お
よび収縮許容量を求める。また入力された各文字は、最
初その固有の幅と最適な文字間隔に従って行頭から順に
並べられる。
In the present invention, when a character string is input when creating a document, first, an optimum value of a character interval to be placed between the adjacent character types, an allowable expansion amount, and an allowable contraction amount are determined in accordance with a combination of types of adjacent characters. Each input character is first arranged in order from the beginning of the line according to its unique width and optimum character spacing.

さらに、文字の並びが行末に達し、そのままでは予め
定められた行長の範囲内に次の1文字が入らない状態に
なると、 (1)その文字を次行にまわし、残りの文字列を定めら
れた行長にまで引き伸ばした場合 (2)その文字を行末に押し込み、文字列全体を定めら
れた行長にまで圧縮した場合 のそれぞれについて、合計損失(伸縮損失と禁則損失の
和)の値を計算する。
Further, when the character sequence reaches the end of the line and the next character does not fall within the predetermined line length as it is, (1) the character is transferred to the next line and the remaining character string is determined. When the character is pushed to the end of the line and the entire character string is compressed to the specified line length, the value of the total loss (sum of expansion loss and forbidden loss) for each case where the character string is compressed to the specified line length Is calculated.

そして、この合計損失が小さい方を選択することによ
り、その行に割当てられるべき文字列を決定する。
Then, the character string to be assigned to the line is determined by selecting the one with the smaller total loss.

次に、文字列の長さが定められた行長に一致するよう
に、各文字間隔を伸長(または収縮)させる。この場
合、各文字間隔に対して伸び(または縮み)を割り当て
る際には、それぞれの文字間隔の持つ伸長許容量(また
は収縮許容量)に比例した量を割り当てることにより、
文字配置のバランスが失われないようにする。
Next, each character interval is expanded (or contracted) so that the length of the character string matches the determined line length. In this case, when assigning expansion (or contraction) to each character interval, by assigning an amount proportional to the extension allowable amount (or contraction allowable amount) of each character interval,
Make sure that the balance of character arrangement is not lost.

このように、各行に配置すべき文字列と、行内の各文
字の間の文字間隔とを決定することにより、常に行末位
置が正しく揃い、かつ各文字間に適切な幅の間隔が配置
された高品位の出力を得ることができる。
In this way, by determining the character string to be arranged in each line and the character spacing between the characters in the line, the end of the line is always correctly aligned, and the space having the appropriate width is arranged between the characters. High quality output can be obtained.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面により説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第2図は、本発明の一実施例における文書処理システ
ムの構成図である。
FIG. 2 is a configuration diagram of a document processing system according to an embodiment of the present invention.

本実施例の文書処理システムは、中央処理装置(CP
U)201、主記憶装置(MEM)202、フレームメモリ(FM)
203、CRTコントローラ(CRTC)204、ディスプレイ装置
(CRT)205、ビットマッププロセッサ(BMP)206、シス
テムバス207、キーボード208、マウス209、キーボード
インタフェース(KB I/F)210、フロッピーディスク装
置211、ハードディスク装置212、フロッピーディスクイ
ンタフェース(FD I/F)213、ハードディスクインタフ
ェース(HD I/F)214、レーザービームプリンタ(LB
P)215、プリンタインタフェース(PR I/F)216、およ
び通信インタフェース(COMM I/F)217を備える。
The document processing system according to the present embodiment includes a central processing unit (CP)
U) 201, main memory (MEM) 202, frame memory (FM)
203, CRT controller (CRTC) 204, display device (CRT) 205, bitmap processor (BMP) 206, system bus 207, keyboard 208, mouse 209, keyboard interface (KB I / F) 210, floppy disk device 211, hard disk Device 212, floppy disk interface (FD I / F) 213, hard disk interface (HD I / F) 214, laser beam printer (LB
P) 215, a printer interface (PR I / F) 216, and a communication interface (COMM I / F) 217.

このCPU201は、マイクロプロセッサおよび周辺回路等
から構成され、MEM202は、プログラムおよびデータを格
納する。またFM203は、表示画面全体に対応するビット
マップデータを保持し、この内容がCRTC204により表示
信号に変換されてCRT105上に表示される。またBMP206
は、FM203の内容に対して図形描画、塗り潰し、ブロッ
ク転送等を行う機能を有し、高速な表示の更新を可能と
する。またシステムバス207は、これらの装置を接続す
る。
The CPU 201 includes a microprocessor, peripheral circuits, and the like, and the MEM 202 stores programs and data. The FM 203 holds bit map data corresponding to the entire display screen, and the content is converted into a display signal by the CRTC 204 and displayed on the CRT 105. Also BMP206
Has a function of performing graphic drawing, filling, block transfer, and the like on the contents of the FM 203, and enables high-speed display updating. A system bus 207 connects these devices.

またキーボード208は文字データ入力用であり、マウ
ス209は位置指定用のデバイスであって、これらはKB I
/F210を介してシステムバス207に接続される。またフロ
ッピーディスク装置211およびハードディスク装置212
は、プログラムや文書ファイルを保持するための補助記
憶装置であり、それぞれFD I/F213およびHD I/F214を
介してシステムバス207に接続される。またLBP215は、
文書印刷用の高解像度の出力装置であり、PR I/F216を
介してシステムバス207に接続される。またCOMM I/F21
7は、システムを外部のネットワークや通信回線と接続
する。
The keyboard 208 is for inputting character data, and the mouse 209 is a device for specifying a position.
It is connected to the system bus 207 via / F210. Also, the floppy disk device 211 and the hard disk device 212
Is an auxiliary storage device for holding programs and document files, and is connected to the system bus 207 via the FD I / F 213 and the HD I / F 214, respectively. LBP215 also
This is a high-resolution output device for printing a document, and is connected to a system bus 207 via a PR I / F 216. Also COMM I / F21
7 connects the system to external networks and communication lines.

なお、ハードウェア構成については、他の構成も考え
られ、一部を変更して実施することが可能である。
It should be noted that other configurations are also conceivable for the hardware configuration, and it is possible to partially change and implement the configuration.

第3図は、本発明の一実施例における文書処理プログ
ラムの機能構成図である。
FIG. 3 is a functional configuration diagram of a document processing program according to one embodiment of the present invention.

本実施例では、ユーザの操作に従い、第3図に示す文
書処理プログラム301によって、文書の編集、整形、印
刷等を行う。
In this embodiment, the document processing program 301 shown in FIG. 3 performs editing, shaping, printing, etc. of the document according to the operation of the user.

この文書処理プログラム301は、ユーザインタフェー
ス制御部302、ファイル入出力制御部303、編集制御部30
4、整形制御部305、印刷制御部306、および文書データ
管理部307から構成される。
The document processing program 301 includes a user interface control unit 302, a file input / output control unit 303, an edit control unit 30
4. It comprises a shaping control unit 305, a print control unit 306, and a document data management unit 307.

またユーザインタフェース制御部302は、ディスプレ
イ画面上に文書データ、操作メニュー等を表示し、また
ユーザから入力される操作指示を解析実行する。またフ
ァイル入出力制御部303は、文書ファイルとの間で文書
データの入出力を行う。また編集制御部304は、文字列
の挿入/削除/置換/検索等の編集操作を行う。また整
形制御部305は、文字の書体やサイズの変更、行末位置
の揃え等の整形処理を行う。また印刷制御部306は、整
形された文書データを出力装置に転送し、印刷を行う。
また文書データ管理部307は、文字列データ、書式情報
等から構成された文書データをメモリ上に保持し、これ
を管理する。
The user interface control unit 302 displays document data, an operation menu, and the like on a display screen, and analyzes and executes an operation instruction input by a user. The file input / output control unit 303 performs input / output of document data with respect to a document file. The edit control unit 304 performs editing operations such as insertion / deletion / replacement / search of a character string. In addition, the shaping control unit 305 performs shaping processing such as changing the font and size of characters and aligning the end of a line. The print control unit 306 transfers the formatted document data to the output device and performs printing.
Further, the document data management unit 307 holds document data composed of character string data, format information, and the like on a memory, and manages the document data.

またオペレーティングシステム308は、文書処理プロ
グラム301を含む各種業務プログラムの実行の制御、文
書処理システムを構成する各種ハードウェア装置の管理
等を行う。なお、文書処理プログラム301から文書ファ
イルや各種ハードウェア装置等にアクセスする場合に
は、オペレーティングシステム308を介して処理が行わ
れる。
The operating system 308 controls execution of various business programs including the document processing program 301, and manages various hardware devices included in the document processing system. When the document processing program 301 accesses a document file or various hardware devices, the processing is performed via the operating system 308.

第1図は、本発明の一実施例における整形処理全体の
概略を示すフローチャートである。
FIG. 1 is a flowchart showing an outline of the whole shaping process in one embodiment of the present invention.

本実施例では、ユーザ(または既存の文書ファイル
等)からの入力文字列を読み込み、これを各行の長さが
予め定められた行長に一致するように、調整しつつ配置
する処理については、第1図のように示される。
In the present embodiment, a process of reading an input character string from a user (or an existing document file or the like) and arranging it while adjusting the length of each line so that the length of each line matches a predetermined line length is described below. It is shown as in FIG.

すなわち、まず入力文字の有無を判定し(101)、入
力文字があれば、それを読み込む(102)。
That is, first, the presence or absence of an input character is determined (101), and if there is an input character, it is read (102).

次に、読み込まれた文字の文字コード、書体およびサ
イズから、その文字幅を求める(103)。
Next, the character width is determined from the character code, font and size of the read character (103).

さらに、その文字とその直前の文字との間に置く文字
間隔の属性(最適値、伸長許容量、収縮許容量)を求め
る(104)。この場合、これらの属性は、隣り合う文字
の種別の組み合わせ(漢字と仮名、仮名と英字等)に対
応して決める。
Further, the attribute (optimal value, allowable expansion amount, allowable contraction amount) of the character space to be placed between the character and the character immediately before it is obtained (104). In this case, these attributes are determined according to the combination of the types of adjacent characters (Kanji and Kana, Kana and English, etc.).

次に、その文字を最適な文字間隔で行末に配置するこ
とができるか否かを判定する(105)。
Next, it is determined whether or not the character can be arranged at the end of the line at an optimum character interval (105).

その結果、充分な空きがあれば、その文字がそのまま
最適な文字間隔で行末に配置し(106)、ステップ101に
戻る。
As a result, if there is sufficient space, the character is directly arranged at the end of the line at the optimum character interval (106), and the process returns to step 101.

また、空きが足りない場合(空きが0の場合を含む)
には、その文字を次行にまわすべきか、それとも行末に
押し込むべきかを決定する必要がある。そこで、その文
字を次行にまわし、残りの文字列を指定された行長まで
引き延ばした場合(以下「追い出し」と呼ぶ)に生じる
合計損失Pxと、その文字を行末に押し込み、文字列全体
を指定された行長まぜ押し縮めた場合(以下「追い込
み」と呼ぶ)に生じる合計損失Prとを求める(107,10
8)。
When there is not enough space (including when the space is 0)
To do so, you need to decide whether to move the character to the next line or to push it to the end of the line. Therefore, the character is transferred to the next line, and the total loss P x that occurs when the remaining character string is extended to a specified line length (hereinafter, referred to as “exclusion”), the character is pushed to the end of the line, and the entire character string is pushed. If you have contracted pressed mixed with the specified line length (hereinafter referred to as the "thrust") is determined and the total loss P r occurring (107,10
8).

なお、合計損失とは、各文字間隔をその最適値から伸
縮させることによって生じる文書品位の低下を示す値で
ある伸縮損失と、禁則対象文字を例外的な位置に配置す
ることによって生じる文書品位の低下を示す値である禁
則損失との和である。
Note that the total loss is the expansion loss, which is a value indicating a decrease in the document quality caused by expanding or contracting each character interval from its optimum value, and the document loss caused by arranging the prohibited characters in exceptional positions. It is the sum of the prohibition loss, which is a value indicating a decrease.

次に、合計損失Pxと合計損失Prとを比較し(109)、
値の小さい方、つまり総合的に見て文書品位の低下がよ
り少い方の文字配分を選択する。
Next, compared with the total loss P r and the total loss P x (109),
The character distribution with the smaller value, that is, the one with less decrease in document quality as a whole is selected.

その比較の結果、合計損失Pxの方が小さければ、その
文字を次行の行頭に移し(110)、また合計損失Prの方
が小さければ、そのまま行末に残す。
Result of the comparison, the smaller the better of total losses P x, transferred to the character at the beginning of the next line (110), also the smaller the better of total losses P r, as it leaves the end of the line.

次に、行長が予め指定された長さに一致するように、
行内の各文字間隔を伸長(または収縮)させて調整を行
う(111)。この場合、必要となる伸び(または縮み)
を各文字間隔に割り当てる際には、それぞれの文字間隔
が持つ伸長許容量(または収縮許容量)に比例した量を
割り当てることにより、行全体の文字配置のバランスが
損われないようにする。
Next, so that the line length matches the length specified in advance,
The adjustment is performed by extending (or contracting) each character interval in the line (111). In this case, the required elongation (or shrinkage)
Is assigned to each character interval, by assigning an amount proportional to the allowable extension amount (or the allowable contraction amount) of each character interval, so that the character arrangement balance of the entire line is not impaired.

こうして行長修正を終了した後、次行の処理に移り
(112)、ステップ101に戻る。さらに入力文字がある限
りこれらの処理を繰返し、入力が終了した時点で全体の
処理を終了する。
After finishing the line length correction in this way, the process moves to the next line (112), and returns to step 101. These processes are repeated as long as there are input characters, and the entire process ends when the input is completed.

次に、本実施例における整形処理の中、各行に対する
文字の配分を決定する処理について詳細に説明する。
Next, in the shaping process according to the present embodiment, the process of determining the distribution of characters to each line will be described in detail.

第4図は、本発明の一実施例における文字間隔テーブ
ル例図、第5図は本発明の一実施例における禁則文字テ
ーブル例図、第6図は本発明の一実施例における文字列
配分の過程を示す説明図である。
FIG. 4 is a diagram showing an example of a character spacing table according to an embodiment of the present invention, FIG. 5 is a diagram showing an example of a prohibited character table according to an embodiment of the present invention, and FIG. It is explanatory drawing which shows a process.

本実施例では、文字の配分を決定する際、隣り合う文
字の種別の組み合わせと、その間に置く文字間隔の属性
(最適値、伸長許容量、収縮許容量)との対応を示す文
字間隔テーブルを用いる。この文字間隔テーブルは第4
図に示され、これにより、例えば漢字の次にかなが続い
ている場合、文字間隔の最適値は10であるが、伸長許容
量は20、収縮許容量は5であることがわかる。すなわ
ち、この組み合わせにおける最適な文字間隔は10である
が、行長の修正のために伸縮が必要な場合には、最小で
5、最大で30までの範囲で文字間隔を伸縮できることを
示している。
In the present embodiment, when determining the distribution of characters, a character space table indicating the correspondence between the combination of types of adjacent characters and the attribute of the character space (optimum value, allowable expansion amount, allowable contraction amount) to be placed therebetween is set. Used. This character spacing table is
It is shown in the figure that, for example, when a kanji character is followed by a kana character, the optimal value of the character spacing is 10, but the allowable expansion amount is 20 and the allowable contraction amount is 5. In other words, the optimum character spacing in this combination is 10, but if expansion and contraction is required to correct the line length, the character spacing can be expanded and contracted in a range of a minimum of 5 and a maximum of 30. .

また、文字の配分を決定する際、各禁則対象文字と、
その文字が行頭または行末に配置された場合に生じる文
書品位の低下(禁則損失)との対応を示す禁則文字テー
ブルを用いる。この禁則文字テーブルは第5図に示さ
れ、このテーブルから、例えば行頭禁則文字であ
る「。」が行頭に配置された場合には1000ポイントの禁
則損失を生じるが、同じく行頭禁則文字である「ゃ」の
場合、その禁則損失は300ポイントに過ぎないこと等が
わかる。
Also, when determining the distribution of characters,
A forbidden character table is used which indicates a correspondence with a decrease in document quality (forbidden loss) caused when the character is placed at the beginning or end of the line. This forbidden character table is shown in FIG. 5. From this table, if a forbidden character "." Is placed at the beginning of a line, a forbidden loss of 1000 points occurs, but the forbidden character is also a "forbidden character". In the case of "ゃ", it is understood that the prohibition loss is only 300 points.

なお、これらのテーブルの内容を始めとする文書整形
用パラメータ類の値は、文書の書式に応じてそれぞれ適
切なものが選択されて使用される。また、ユーザが対話
的にこれらの値を指定することも可能である。
The values of the document shaping parameters including the contents of these tables are appropriately selected and used in accordance with the format of the document. It is also possible for the user to specify these values interactively.

また、これらのテーブルを参照しながら各行に文字列
を配分する過程は第6図に示される。
FIG. 6 shows a process of allocating a character string to each line while referring to these tables.

まず(a)では、文字C[1],C[2],…を、それ
ぞれの固有の文字幅と最適な文字間隔で行頭から順に並
べた状態を示している。この場合、予め指定された行長
をLとすると、文字C[n]はそのままでは行内に配置
することができない。
First, (a) shows a state in which characters C [1], C [2],... Are arranged in order from the beginning of the line with their unique character widths and optimum character spacing. In this case, if the line length specified in advance is L, the character C [n] cannot be arranged in the line as it is.

従って(b)のように、文字C[n]を次行の行頭に
まわし、残りの文字列を引き延ばして配置するか、ある
いは(c)のように、文字C[n]を行末に押し込み、
全体を押し縮めて配置するかの何れかを選択する必要が
ある。
Therefore, as in (b), the character C [n] is turned to the beginning of the next line, and the remaining character strings are extended and arranged, or as in (c), the character C [n] is pushed into the end of the line.
It is necessary to select either to shrink the whole and to arrange it.

さて、文字C[1]から文字C[i]までの文字列の
自然長(各文字をそれぞれ最適な文字間隔で並べたとき
の長さ)をLn(i)とすると、(b)のように文字C
[n]を次行にまわす場合に必要となる伸長量Yxは、次
式で表わされる。なお、以下の各式ではCw[i]は先頭
からi番目の文字C[i]の文字幅を表わす。また先頭
からi番目の文字間隔、すなわちC[i]とC[i+
1]との間の文字間隔の最適値をSo[i]、伸長許容量
をSx[i]、収縮許容量をSr[i]で表わす。
Now, assuming that the natural length of a character string from character C [1] to character C [i] (length when each character is arranged at an optimum character interval) is L n (i), Letter C
Elongation amount Y x required when turning [n] to the next line is expressed by the following equation. In the following equations, Cw [i] represents the character width of the ith character C [i] from the beginning. Also, the i-th character interval from the head, that is, C [i] and C [i +
1] is represented by S o [i], the allowable extension is represented by S x [i], and the allowable contraction is represented by S r [i].

同様に、(c)のように文字C[n]を行末に押し込
む場合に必要となる収縮量Yrは、次式で表わされる。
Similarly, shrinkage amount Y r required when pressing the letter C [n] at the end as in (c) is represented by the following equation.

さらに、伸縮損失について、「伸縮損失は、行内に含
まれる各文字間隔の持つ伸長許容量(また収縮許容量)
の総和に対する行長修正に必要な伸縮量(または収縮
量)の割合に比例する」と定義すると、追い出しを行う
場合に生じる伸縮損失PSxの値は、伸長許容量の総和に
対する必要伸長量の比から次式で与えられる。
In addition, regarding the expansion loss, "The expansion loss is the allowable expansion amount (and the allowable contraction amount) of each character interval included in the line.
Stretch amount necessary line length modification to the sum of (or shrinkage amount) Defining a percentage proportional ", the value of the expansion loss PS x occurring when performing the flush, the necessary amount of extension relative elongation capacity of the total The ratio is given by the following equation.

なお、Kは比例定数である。 Note that K is a proportional constant.

同様に、追い込みを行う場合に生じる伸縮損失PSr
値は、収縮許容量の合計に対する必要収縮量の比として
次式で与えられる。
Similarly, the value of the expansion loss PS r occurring when performing thrust given by the following equation as a ratio of the desired amount of shrinkage to total shrinkage allowance.

次に、禁則損失について述べる。 Next, prohibition loss will be described.

本実施例では、文字Cが行頭および行末に配置された
場合に生じる禁則損失の値は、第5図に示した禁則文字
テーブルを参照することにより求められる。それらの値
をPh(C)およびPt(C)で表わすと、追い出しを行う
場合の禁則損失PKxは、文字C[n−1]が行末に配置
されることによって生じる禁則損失と、文字C[n]が
行頭に配置されることによって生じる禁則損失との和で
あり、次式で表わされる。
In this embodiment, the value of the forbidden loss that occurs when the character C is placed at the beginning and end of the line is obtained by referring to the forbidden character table shown in FIG. When those values are represented by Ph (C) and Pt (C), the prohibition loss PKx in performing the eviction is the prohibition loss caused by the character C [n-1] being arranged at the end of the line and the prohibition loss PK x [N] is the sum with the prohibition loss caused by being placed at the beginning of the line, and is expressed by the following equation.

PKx=Pt(C[n−1])+Ph(C[n]) 同様に、追い込みを行う場合の禁則損失PKrは、文字
C[n]が行末に配置されることによって生じる禁則損
失と、文字C[n+1」が行頭に配置されることによっ
て生じる禁則損失との和であり、次式で表わされる。
PK x = Pt (C [n -1]) + Ph (C [n]) Similarly, prohibition loss PK r for performing thrust includes a prohibition losses caused by the letter C [n] is placed at the end of the line , Character C [n + 1] at the head of the line, and is represented by the following equation.

PKr=Pt(C[n])+Ph(C[n+1]) こうして伸縮損失および禁則損失の値が得られると、
合計損失はそれらの和として求められる。
PK r = Pt (C [n]) + Ph (C [n + 1]) When the values of the stretching loss and the forbidden loss are obtained,
The total loss is calculated as their sum.

すなわち、(b)のように追い出しを行う場合の合計
損失Pxは次式で表わされる。
That is, the total loss P x in the case to be flushed as (b) is expressed by the following equation.

Px=PSx+PKx また、(c)のように追い込みを行う場合の合計損失
Prは次式で表わされる。
P x = PS x + PK x Also, the total loss when performing a run-in as in (c)
Pr is represented by the following equation.

Pr=PSr+PKr 従って、これらのうち、値の小さい方を選択すること
により、文字の配分を決定すればよい。すなわち、Px
方がPrより小さければ、追い出しの方がより文書品位の
低下が少いと判断し、追い出しを行う。またPxの方がPr
より大きければ、追い込みの方がより文書品位の低下が
少いと判断し、追い込みを行う。
P r = PS r + PK r Accordingly, the character distribution may be determined by selecting the smaller one of these values. That is, smaller than the P r towards P x, determines that the reduction it is more document quality eviction is small, be flushed. P x is Pr
If the size is larger, it is determined that the run-in has less decrease in the document quality, and the run-in is performed.

次に、各行に対する文字の配分を決定した後、各行の
行長を予め定められた長さに揃える方法について詳細に
説明する。
Next, a method of determining the distribution of characters to each line and then adjusting the line length of each line to a predetermined length will be described in detail.

第7図は、本発明の一実施例における文字間隔補正量
算出処理の詳細を示すフローチャートである。
FIG. 7 is a flowchart showing details of the character space correction amount calculation processing in one embodiment of the present invention.

本実施例では、追い出しを行う場合、行長を予め指定
された長さまで引き延ばすためには、行全体としての伸
長量が必要伸長量Yxとなるように、各文字間隔に伸びを
割り当てなければならない。また追い込みを行う場合に
は、行全体としての収縮量が必要収縮量Yrとなるよう
に、各文字間隔に縮みを割り当てなければならない。
In this embodiment, when to be flushed, in order to prolong to a length that is pre-specified line length, as in the expansion amount of the whole line is required expansion amount Y x, unless assigned elongation to each character spacing No. When performing thrust also as the amount of shrinkage of the entire line is required contraction amount Y r, you must allocate contracts in each character spacing.

この場合、行内の文字配置のバランスが損われないよ
うに、各文字間隔に対して、それぞれが持つ伸長許容量
(または収縮許容量)に比例した量の伸び(または縮
み)を割り当てる。
In this case, an extension (or contraction) of an amount proportional to the extension allowable amount (or contraction allowable amount) of each character interval is assigned to each character interval so that the balance of the character arrangement in the line is not lost.

従って、行全体としての必要伸縮量をY、行内に含ま
れる文字間隔の総数をN、各文字間隔の持つ伸縮許容量
をSv[i](i=1,2,…,N)、その総和をTSとすると、
各文字間隔に割り当てるべき補正量F[i]は次式で表
わされる。
Therefore, the necessary expansion and contraction amount for the entire line is Y, the total number of character intervals included in the line is N, and the allowable expansion and contraction amount of each character interval is S v [i] (i = 1, 2,..., N). If the sum is TS,
The correction amount F [i] to be assigned to each character interval is represented by the following equation.

F[i]=Y・(Sv[i]/TS) なお、文書処理システムが持つ字間調整の精度は必ず
しも充分に高くはないので、誤差が累積するのを避ける
ためには、行頭からの補正量の部分和と、行頭からの伸
縮許容量の部分和との比が、常に必要伸縮量と伸縮許容
量の総和との比に最も近くなるように補正量を割り当て
る必要がある。
F [i] = Y · ( Sv [i] / TS) Note that the accuracy of character spacing adjustment provided by the document processing system is not always sufficiently high. It is necessary to allocate the correction amount such that the ratio between the partial sum of the correction amount of the above and the partial sum of the allowable amount of expansion and contraction from the beginning of the line is always closest to the ratio between the required expansion amount and the total sum of the allowable expansion amount.

本実施例では、各文字間隔に割り当てる補正量を計算
する場合の手続きは第7図のように示される。
In the present embodiment, the procedure for calculating the correction amount assigned to each character interval is shown in FIG.

すなわち、まずカウンタiをリセットし(701)、伸
縮許容量の部分和SS、補正量の部分和FSを0に初期化す
る(702)。
That is, first, the counter i is reset (701), and the partial sum SS of the allowable amount of expansion and contraction and the partial sum FS of the correction amount are initialized to 0 (702).

次に、カウンタiをインクリメントする(703)。 Next, the counter i is incremented (703).

さらに、i番目の文字間隔が持つ伸縮許容量はS
v[i]であるため、これを伸縮許容量の部分和SSに加
算する。また、この文字間隔に割り当てる補正量F
[i]は、この文字間隔までに割り当てられているべき
補正量の和から、既に割り当て済みの補正量の和を引い
た値にすればよいので、次式で与えられる。
Further, the allowable expansion / contraction amount of the i-th character interval is S
v Since it is [i], it is added to the partial sum SS of the allowable amount of expansion and contraction. The correction amount F assigned to this character interval
[I] can be obtained by subtracting the sum of the already-assigned correction amounts from the sum of the correction amounts to be assigned up to the character interval, and is given by the following equation.

F[i]=Y・(SS/TS)−FS こうして、伸縮許容量の部分和SSにSv[i]を加算
し、i番目の文字間隔に割り当てる補正量F[i]を求
める(704)。
F [i] = Y · ( SS / TS) -FS Thus, by adding the S v [i] to the partial sum SS telescopic allowance allocated to i-th character spacing correction amount F Request [i] (704 ).

次に、求めた補正量を部分和FSに加えた後(705)、
カウンタiを文字間隔の総数Nと比較する(706)。
Next, after adding the obtained correction amount to the partial sum FS (705),
The counter i is compared with the total number N of character intervals (706).

その結果、iがN未満であれば、次の文字間隔につい
ての処理に進み、ステップ703に戻る。またiがNであ
れば、処理を終了する。
As a result, if i is less than N, the process proceeds to the next character interval, and returns to step 703. If i is N, the process ends.

ここで、行長を伸長させる場合(追い出しの場合)に
は、各文字間隔の最適値So[i]に対応する補正量F
[i]を加えて修正された文字間隔を求め、これらの修
正された文字間隔を用いて行内の各文字を配置する。逆
に行長を収縮させる場合(追い込みの場合)には、各文
字間隔の最適値So[i]から対応する補正量F[i]を
引いて修正された文字間隔を求め、これらを用いて行内
の各文字を配置する。
Here, when extending the line length (in the case of eviction), the correction amount F corresponding to the optimum value S o [i] of each character interval is set.
The corrected character spacing is obtained by adding [i], and each character in the line is arranged using the corrected character spacing. Conversely, when the line length is contracted (in the case of run-in), a corrected character spacing is obtained by subtracting the corresponding correction amount F [i] from the optimum value S o [i] of each character spacing, and using these. To place each character in the line.

なお、本実施例では、伸縮損失の値は伸縮許容量の総
和に対する必要伸縮量の比に単純に比例するものとした
が、例えばこの比の2乗に比例することにするなど、こ
れらの値の関係によって決まる何らかの関数としてこれ
を定義することも可能である。
In the present embodiment, the value of the expansion / contraction loss is simply proportional to the ratio of the required amount of expansion / contraction to the sum of the allowable amount of expansion / contraction. However, for example, it is assumed that these values are proportional to the square of this ratio. It is also possible to define this as some function determined by the relationship

また、本実施例では、そのままでは行末に入らない1
文字についてのみ、これを次行にまわすか、行末に押し
込むかの判断を行っているが、行末にかかる数文字の文
字列について評価を行い、最適な行分割位置を求めるよ
うに拡張することも可能である。
Further, in this embodiment, 1 which does not enter the end of the line as it is
For characters only, it is determined whether to pass it to the next line or push it to the end of the line, but it is also possible to evaluate the character string of several characters at the end of the line and extend it to find the optimal line break position It is possible.

また、本実施例では、入力文字列を順に並べていく場
合についてのみ述べたが、例えば挿入や削除等の編集操
作の後で文書を再整形する場合にも適用することができ
る。
In this embodiment, only the case where input character strings are arranged in order has been described. However, the present invention can also be applied to a case where a document is reformatted after an editing operation such as insertion or deletion.

〔発明の効果〕〔The invention's effect〕

本発明によれば、各行の行末位置を揃えるために整形
を行う際、文字間隔がその最適値から外れることによっ
て生じる文書品位の低下と、禁則対象文字が例外的な位
置に配置されることによって生じる文書品位の低下とを
総合的に判断するため、最適な文字配置を決定すること
ができる。
According to the present invention, when performing shaping in order to align the line end positions of each line, a decrease in the document quality caused by the character spacing deviating from the optimum value, and the prohibited characters are arranged at exceptional positions. Since it is judged comprehensively that the resulting document quality will deteriorate, it is possible to determine the optimal character arrangement.

また、行長の修正に際しては、全体としての文字配置
のバランスが損われないように、適切な文字間隔の調整
を行うことができる。
In addition, when correcting the line length, it is possible to appropriately adjust the character spacing so that the balance of the character arrangement as a whole is not impaired.

従って、禁則文字の種類や行長修正のための余裕等の
条件の違いに拘らず、常に読み易い高品位の出力を得る
ことが可能になる。
Therefore, it is possible to always obtain easy-to-read high-quality output regardless of differences in conditions such as the type of prohibited characters and a margin for correcting line length.

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

第1図は本発明の一実施例における整形処理全体の概略
を示すフローチャート、第2図は本発明の一実施例にお
ける文書処理システムの構成図、第3図は本発明の一実
施例における文書処理プログラムの機能構成図、第4図
は本発明の一実施例における文字間隔テーブル例図、第
5図は本発明の一実施例における禁則文字テーブル例
図、第6図は本発明の一実施例における文字列配分の過
程を示す説明図、第7図は本発明の一実施例における補
正量算出処理の詳細を示すフローチャートである。 201:中央処理装置(CPU),202:主記憶装置(MEM),203:
フレームメモリ(FM),204:CRTコントローラ(CRTC),2
05:ディスプレイ装置(CRT),206:ビットマッププロセ
ッサ(BMP),207:システムバス,208:キーボード,209:マ
ウス,210:キーボードインタフェース(KB I/F),211:
フロッピーディスク装置,212:ハードディスク装置,213:
フロッピーディスクインタフェース(FD I/F),214:ハ
ードディスクインタフェース(HD I/F),215:レーザー
ビームプリンタ(LBP),216:プリンタインタフェース
(PR I/F),217:通信インタフェース(COMM I/F),30
1:文書処理プログラム,302:ユーザインタフェース制御
部,303:ファイル入出力制御部,304:編集制御部,305:整
形制御部,306:印刷制御部,307:文書データ管理部,308:
オペレーティングシステム,C[1]〜C[n]:文字,
L:予め指定された行長,Yx:必要伸長量,Yr:必要収縮量。
FIG. 1 is a flowchart showing an outline of the whole shaping process in one embodiment of the present invention, FIG. 2 is a block diagram of a document processing system in one embodiment of the present invention, and FIG. 3 is a document in one embodiment of the present invention. FIG. 4 is a diagram showing an example of a character spacing table according to an embodiment of the present invention, FIG. 5 is a diagram showing an example of a prohibited character table according to an embodiment of the present invention, and FIG. 6 is an embodiment of the present invention. FIG. 7 is an explanatory diagram showing a character string distribution process in the example, and FIG. 7 is a flowchart showing details of a correction amount calculation process in one embodiment of the present invention. 201: Central processing unit (CPU), 202: Main memory (MEM), 203:
Frame memory (FM), 204: CRT controller (CRTC), 2
05: Display device (CRT), 206: Bitmap processor (BMP), 207: System bus, 208: Keyboard, 209: Mouse, 210: Keyboard interface (KB I / F), 211:
Floppy disk drive, 212: Hard disk drive, 213:
Floppy disk interface (FD I / F), 214: Hard disk interface (HD I / F), 215: Laser beam printer (LBP), 216: Printer interface (PR I / F), 217: Communication interface (COMM I / F) ), 30
1: Document processing program, 302: User interface control unit, 303: File input / output control unit, 304: Edit control unit, 305: Shaping control unit, 306: Print control unit, 307: Document data management unit, 308:
Operating system, C [1] to C [n]: character,
L: line length specified in advance, Y x : required elongation, Y r : required shrinkage.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】出力すべき文字の配置を整形する文書整形
方法であって、 出力する際の1行当りの行長と文字間隔の間隔量を予め
定め、 上記間隔量で文字を配置すると上記行長からはみ出す場
合は、禁則対象文字を例外的な位置に配置することによ
り生じる文書の品位の低下を示す禁則損失量を当該行に
ついて算出し、 (1)上記行長からはみ出す文字を当該行の行末に、 (2)上記はみ出す文字を次行の先頭に、かつ上記はみ
出す文字の直前の文字を当該行の末尾に、 上記(1)および上記(2)のいずれかとなるように、
上記算出した禁則損失量に応じて選択し配置すること
で、文字配置を整形することを特徴とした文書整形方
法。
1. A document shaping method for shaping the arrangement of characters to be output, wherein a line length per line and an amount of space between characters at the time of output are determined in advance. In the case of protruding from the line length, calculate the prohibition loss amount indicating the degradation of the document quality caused by arranging the prohibition target character in an exceptional position for the relevant line. At the end of the line, (2) the protruding character is at the beginning of the next line, and the character immediately before the protruding character is at the end of the line, so that it is either (1) or (2).
A document shaping method characterized by shaping the character arrangement by selecting and arranging according to the calculated prohibition loss amount.
【請求項2】出力すべき文字の配置を整形する文書整形
方法であって、 出力する際の1行当りの行長と文字間隔の間隔量を予め
定め、 上記間隔量で文字を配置すると上記行長からはみ出す場
合は、文字間隔を伸縮することにより生じる文書の品位
の低下を示す伸縮損失量を当該行について算出し、 (1)上記行長からはみ出す文字を当該行の行末に、 (2)上記はみ出す文字を次行の先頭に、かつ上記はみ
出す文字の直前の文字を当該行の末尾に、 上記(1)および上記(2)のいずれかとなるように、
上記算出した伸縮損失量に応じて選択し配置すること
で、文字配置を整形することを特徴とした文書整形方
法。
2. A document shaping method for shaping the arrangement of characters to be output, wherein a line length per line and an amount of space between characters at the time of output are determined in advance. In the case of protruding from the line length, the amount of expansion / contraction loss indicating the deterioration of the quality of the document caused by expanding / contracting the character interval is calculated for the line. (1) Characters protruding from the line length are added to the end of the line, (2) ) The protruding character is placed at the beginning of the next line, and the character immediately preceding the protruding character is placed at the end of the line, so that it is either (1) or (2) above.
A document shaping method characterized by shaping the character arrangement by selecting and arranging according to the calculated expansion loss amount.
【請求項3】請求項2に記載の文書整形方法において、 上記間隔量で文字を配置すると上記行長からはみ出す場
合は、禁則対象文字を例外的な位置に配置することによ
り生じる文書の品位の低下を示す禁則損失量を当該行に
ついて算出し、 上記(1)および上記(2)のいずれかとなるように、
上記算出した伸縮損失量と上記算出した禁則損失量に応
じて選択し配置することで、文字配置を整形することを
特徴とした文字整形方法。
3. The document shaping method according to claim 2, wherein when the characters are arranged at the above-mentioned interval amount and the characters protrude from the line length, the quality of the document caused by arranging the prohibited characters at an exceptional position is improved. The prohibition loss amount indicating the decrease is calculated for the row, and is set to be one of the above (1) and (2).
A character shaping method characterized by shaping a character arrangement by selecting and arranging according to the calculated expansion loss amount and the calculated prohibition loss amount.
【請求項4】出力すべき文字の配置を整形する文書処理
装置であって、 予め定められた文字間隔の間隔量で文字を配置する配置
手段と、 予め定められた出力する際の1行当りの行長からはみ出
す場合は、禁則対象文字を例外的な位置に配置すること
により生じる文書の品位の低下を示す禁則損失量を当該
行について算出する禁則損失量算出手段と、 (1)上記行長からはみ出す文字を当該行の行末に、 (2)上記はみ出す文字を次行の先頭に、かつ上記はみ
出す文字の直前の文字を当該行の末尾に、 上記(1)および上記(2)のいずれかとなるように、
上記算出した禁則損失量に応じて選択し配置すること
で、文字配置を整形する配置手段とを備えたことを特徴
とした文書処理装置。
4. A document processing apparatus for shaping the arrangement of characters to be output, comprising: an arrangement means for arranging characters at a predetermined amount of character spacing; A prohibition loss amount calculating means for calculating, for the line, a prohibition loss amount indicating a decrease in the quality of the document caused by placing the prohibition target character at an exceptional position, Any character that extends beyond the length is at the end of the line, (2) The character that extends is at the beginning of the next line, and the character immediately before the character that extends is at the end of the line, either (1) or (2) above. So that
A document processing apparatus comprising: a layout unit that shapes and arranges a character by selecting and arranging according to the calculated prohibition loss amount.
【請求項5】出力すべき文字の配置を整形する文書処理
装置であって、 予め定められた文字間隔の間隔量で文字を配置する配置
手段と、 予め定められた出力する際の1行当りの行長からはみ出
す場合は、文字間隔を伸縮することにより生じる文書の
品位の低下を示す伸縮損失量を当該行について算出する
伸縮損失量算出手段と、 (1)上記行長からはみ出す文字を当該行の行末に、 (2)上記はみ出す文字を次行の先頭に、かつ上記はみ
出す文字の直前の文字を当該行末尾に、 上記(1)および上記(2)のいずれかとなるように、
上記算出した伸縮損失量に応じて選択し配置すること
で、文字配置を整形する配置手段とを備えたことを特徴
とした文書処理装置。
5. A document processing apparatus for shaping the arrangement of characters to be output, comprising: an arrangement means for arranging characters at an interval of a predetermined character interval; When the character extends beyond the line length, the expansion / contraction loss amount calculating means for calculating the expansion / contraction loss amount indicating the deterioration of the quality of the document caused by expanding / contracting the character spacing for the line. At the end of the line, (2) the protruding character is at the beginning of the next line, and the character immediately before the protruding character is at the end of the line, so as to be one of (1) and (2) above.
A document processing apparatus, comprising: a layout unit that shapes and arranges characters by selecting and arranging the characters in accordance with the calculated expansion / contraction loss amount.
JP63201140A 1988-08-12 1988-08-12 Document shaping method and document processing device Expired - Fee Related JP2773145B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63201140A JP2773145B2 (en) 1988-08-12 1988-08-12 Document shaping method and document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63201140A JP2773145B2 (en) 1988-08-12 1988-08-12 Document shaping method and document processing device

Publications (2)

Publication Number Publication Date
JPH0250759A JPH0250759A (en) 1990-02-20
JP2773145B2 true JP2773145B2 (en) 1998-07-09

Family

ID=16436066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63201140A Expired - Fee Related JP2773145B2 (en) 1988-08-12 1988-08-12 Document shaping method and document processing device

Country Status (1)

Country Link
JP (1) JP2773145B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3823598B2 (en) * 1999-04-22 2006-09-20 凸版印刷株式会社 Display system and storage medium storing display program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63116268A (en) * 1986-11-05 1988-05-20 Sharp Corp Word processor

Also Published As

Publication number Publication date
JPH0250759A (en) 1990-02-20

Similar Documents

Publication Publication Date Title
US4608664A (en) Automatically balancing and vertically justifying a plurality of text/graphics-columns
EP0117406B1 (en) Automatically balancing and vertically justifying text and/or graphics
KR970008546B1 (en) Character or graphic processing method
JP3083314B2 (en) Document processing method and apparatus
JPH04128970A (en) Document processing system
JP2773145B2 (en) Document shaping method and document processing device
JP2001159967A (en) Method for adjusting window size by picture resolution
JP2816181B2 (en) Document processing device
JPH08314655A (en) Document output device
JPS6017487A (en) Automatic line pitch setting method for document generator
US7417761B2 (en) Information processing apparatus and information processing method for processing document data having a plurality of objects different in attribution
JPH0969098A (en) Document preparation device
JP3437293B2 (en) Character output method and character processing device
JPH02217897A (en) Picture element density conversion system
JP3084817B2 (en) Character output device
JP3046429B2 (en) Document processing apparatus and document processing method
JPH03174588A (en) Document processor
JP3470926B2 (en) Document processing apparatus and document processing method
JPH06250632A (en) Character editing device
JPS62168275A (en) Processing system for picture editing
JPH05298317A (en) Doucment forming device
JPH0926781A (en) Plotting processing device
JPH08293033A (en) Information processor
JPH09179542A (en) Output method and device for character image data
JPH01129351A (en) Document processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees