JPH08137871A - Document preparation device - Google Patents

Document preparation device

Info

Publication number
JPH08137871A
JPH08137871A JP6304326A JP30432694A JPH08137871A JP H08137871 A JPH08137871 A JP H08137871A JP 6304326 A JP6304326 A JP 6304326A JP 30432694 A JP30432694 A JP 30432694A JP H08137871 A JPH08137871 A JP H08137871A
Authority
JP
Japan
Prior art keywords
character
line
characters
spacing
processing
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
JP6304326A
Other languages
Japanese (ja)
Inventor
Hiroshi Satomi
宏 里見
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 JP6304326A priority Critical patent/JPH08137871A/en
Publication of JPH08137871A publication Critical patent/JPH08137871A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: To locally change the arrangement position of a character by setting modification information for varying character intervals in part of character data arranged in an area and varying the character intervals of the character data with the modification information. CONSTITUTION: A CPU 6 uses a RAM 8 as a work area and controls respective parts of the device according to a control program stored in a ROM 7. Then the modification information for varying the character intervals of the character data arranged in the area is set and when the character data are arranged, it is decided whether or not the modification information is set. To arrange the character data with the set modification information, the CPU 6 varies the character intervals of the character data, arranges the characters in a line, and displays them on a display device 1. Consequently, a document editor can insert a blank character into between characters and adjust the arrangement positions of characters locally by varying the size of the blank character.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、文字と文字の間隔を自
由に変更し、表示し得るようにした文書作成装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document creating apparatus capable of freely changing and displaying characters.

【0002】[0002]

【従来の技術】従来のこの種の文書作成装置における文
字配置決定方法は、次のようになっている。即ち、ま
ず、行頭の文字配置位置を決定する。次に文字を順次配
置する。この時、文字の配置位置は、直前の文字の配置
位置に直前の文字の文字幅を加算した位置に確定され
る。文字フォントによっては、フォント自体に文字と文
字の間隔を付加している場合もあるが、このような場合
には、直前の文字の配置位置に直前の文字の文字幅と現
在の文字のフォントに設定されている字間を加算した位
置に確定される。
2. Description of the Related Art A conventional character arrangement determining method in a document creating apparatus of this type is as follows. That is, first, the character arrangement position at the beginning of the line is determined. Next, the characters are sequentially arranged. At this time, the character arrangement position is determined to be a position obtained by adding the character width of the immediately preceding character to the immediately preceding character arrangement position. Depending on the character font, the character spacing may be added to the font itself.In such a case, the character width of the previous character and the font of the current character are added to the position of the previous character. It is fixed at the position where the set space is added.

【0003】また、文書作成装置によっては、各文字と
文字の間に一定の字間を定義できるものもあるが、その
場合も、直前の文字の配置位置に直前の文字の文字幅と
一定の字間を加算した位置に確定される。
Further, depending on the document creating apparatus, there may be one in which a constant character space can be defined between each character. In that case, the character width of the immediately preceding character is also constant at the position of arrangement of the immediately preceding character. It is fixed at the position where the character spacing is added.

【0004】また、一部の文書作成装置では、行末で追
い出しや追い込みがあった場合には、行末を揃えるため
に行内最後の文字の後ろと行末の座標の差分を、各文字
の間に均等に割り振ることによって、行内の均等割り付
け処理を行っているものもある。
Further, in some document creation apparatuses, when there is a squeeze or run-in at the end of a line, the difference between the coordinates after the last character in the line and the coordinates at the end of the line is made uniform between the characters in order to align the end of the line. In some cases, the process is evenly distributed within the rows.

【0005】更に、字間を設定できる文書編集装置とし
て、文章中の一部の文字列を指定して、その文字列の文
字間隔を狭めるような指定を行うことができる機能を持
った文書作成装置は存在した。
Further, as a document editing device capable of setting the character spacing, document creation having a function of designating a part of a character string in a sentence and narrowing the character interval of the character string The device was present.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
た従来装置にあっては、文字配置位置は文書作成装置が
自動調整を行うことによって完全に固定してしまうた
め、文章入力者が意図した位置に文字を配置しようとし
ても、文章入力者の意図通りには配置できないという問
題点があった。特に、文字間隔を狭める方向には、文字
配置を自由に変更することができたが、文字間隔を広げ
る方向には自由に設定することはできなかった。
However, in the above-mentioned conventional apparatus, the character arrangement position is completely fixed by the automatic adjustment of the document creating apparatus, and therefore the character arrangement position is set at the position intended by the person who entered the text. There was a problem in that even if characters were to be arranged, they could not be arranged as intended by the person who entered the text. In particular, the character arrangement could be freely changed in the direction of narrowing the character spacing, but could not be freely set in the direction of widening the character spacing.

【0007】そのため、図17の(A)、(B)に示す
ように文書データ中の一部の領域だけ、字間を開けて文
字を配置しようとしたり、図18の(A)、(B)に示
すように文書の見出しのみに幅を一定に保ったレポート
を書こうとした時には、文章編集者が以下のような編集
作業を行っていた。 (1)各文字と文字の間に空白文字を挿入することによ
って、文字間隔を大きくする(図19の(A)から
(B)にする方法)。 (2)文字間隔が開き過ぎる場合には、各文字と文字の
間に挿入する空白文字のフォントを変更して、小さな空
白文字を挿入したことにして文字間隔を調整する(図1
9の(A)から(C)にする方法)。 (3)文字を配置したい場所にタブ位置を設定し、各文
字と文字の間にタブを挿入することによって、文字間隔
を一定に保つ(図19の(A)から(D)にする方
法)。
Therefore, as shown in FIGS. 17A and 17B, it is attempted to arrange the characters with a space between the characters only in a part of the area of the document data, or in FIGS. 18A and 18B. ), When trying to write a report that kept the width constant only in the headline of the document, the text editor was doing the following editing work. (1) The space between characters is increased by inserting a blank character between each character (method of changing from (A) to (B) of FIG. 19). (2) If the character spacing is too wide, change the font of the space character inserted between each character and adjust the character spacing by assuming that a small space character is inserted (Fig. 1).
9 (A) to (C)). (3) A tab position is set at a position where a character is desired to be placed, and a tab is inserted between each character to keep the character spacing constant (method from (A) to (D) in FIG. 19). .

【0008】しかし、上記図19の(A)から(B)、
(A)から(C)及び(A)から(D)の各対処による
文字間隔の調整を行った場合には、以下のような問題点
があった。 (イ)図20は、文字と文字の間に空白文字を挿入して
文字間隔を調整する場合の問題点を表す図である。文書
作成装置で使えるフォントの種類には限度があるため
に、空白文字で任意の幅を作ることができず、微調整が
できない。即ち、図20の(A)は、空白のサイズが少
し足りない場合を示し、図20の(B)は、配置したい
文字位置を示し、図20の(C)は、1ポイント大きく
すると長すぎる場合を示している。 (ロ)図21も、文字と文字の間に空白文字を挿入して
文字間隔を調整する場合の問題点を表す図である。文字
間隔が広い時には、多数の空白文字を挿入しなければな
らず、編集作業が面倒である。 (ハ)図23は、文字と文字の間に空白文字を挿入して
文字間隔を調整する場合の編集作業に関する問題点を表
す図である。図22の(A)の文章の先頭行に編集作業
を行う文字列が増えた場合、図22の(B)に示すよう
に字間の調整に使われた空白文字が改行されて行頭にき
てしまったために、段落字下げされたように見えてしま
う。この場合には、その空白文字は、図22の(C)に
示すように編集者が削除して文字配置位置を調整しなけ
ればならない。 (ニ)図23は、タブ位置を決定することによって、文
字間隔を調整する場合の編集作業に関する問題点を表す
図である。図23の(A)の文章の先頭行に編集作業を
行う文字列が増えた場合、図23の(B)に示すように
字間の調整に使われた増減のあった文字数分だけ移動し
てやらないと、文字配置位置は狂ってしまう。
However, as shown in FIGS. 19 (A) to 19 (B),
When the character spacing is adjusted by the measures (A) to (C) and (A) to (D), there are the following problems. (A) FIG. 20 is a diagram showing a problem in a case where a blank character is inserted between characters to adjust the character spacing. Since there are limits to the types of fonts that can be used in the document creation device, it is not possible to create an arbitrary width with blank characters, and fine adjustment is not possible. That is, (A) of FIG. 20 shows the case where the size of the blank is a little insufficient, (B) of FIG. 20 shows the character position to be arranged, and (C) of FIG. 20 is too long when it is increased by 1 point. The case is shown. (B) FIG. 21 is also a diagram showing a problem in the case where a blank character is inserted between characters to adjust the character spacing. When the character spacing is wide, a lot of blank characters have to be inserted, which makes editing work troublesome. (C) FIG. 23 is a diagram showing a problem relating to the editing work in the case where a blank character is inserted between characters to adjust the character spacing. When the number of character strings to be edited is increased in the first line of the sentence in FIG. 22A, the blank character used for adjusting the space is inserted at the beginning of the line as shown in FIG. 22B. It looks like it was indented because it has been deleted. In this case, the blank character must be deleted by the editor to adjust the character arrangement position, as shown in FIG. (D) FIG. 23 is a diagram showing a problem relating to the editing work when the character spacing is adjusted by determining the tab position. When the number of character strings to be edited increases in the first line of the sentence of FIG. 23A, as shown in FIG. 23B, move by the number of the increased / decreased characters used for adjusting the space. Otherwise, the character placement position will be wrong.

【0009】本発明は上述した従来の技術の有するこの
ような問題点に鑑みてなされたものであり、その目的と
するところは、一般の文字に対する修飾情報と同様に簡
単な手順で設定する修飾情報として文字間隔を設定する
ことによって、局所的に文字の配置位置を変更すること
ができる文書作成装置を提供しようとするものである。
The present invention has been made in view of the above-mentioned problems of the above-described conventional technique, and its object is to set the modification information by a simple procedure like modification information for general characters. An object of the present invention is to provide a document creation apparatus capable of locally changing the layout position of characters by setting the character spacing as information.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に本発明の文書作成装置は、領域内に配置された文字デ
ータの一部に文字間隔を変更する修飾情報を設定する修
飾情報設定手段と、前記文字データを配置する時に前記
文字間隔を変更する修飾情報が設定されているか否かを
判定する判定手段と、前記文字間隔を変更する修飾情報
が設定されている文字データを配置するために前記文字
間隔を変更する文字間隔変更手段と、前記文字データを
行内に配置する文字データ配置手段と、該文字データ配
置手段によって配置された文字データを表示する表示手
段とを具備したことを特徴とするものである。
In order to achieve the above object, the document creating apparatus of the present invention is a modification information setting means for setting modification information for changing a character interval in a part of character data arranged in an area. And a deciding means for deciding whether or not the modification information for changing the character spacing when arranging the character data, and for arranging the character data for which the modification information for changing the character spacing is set. And a character data arranging unit for arranging the character data in a line, and a display unit for displaying the character data arranged by the character data arranging unit. It is what

【0011】[0011]

【作用】領域内に配置された文字データの一部に文字間
隔を変更する修飾情報を修飾情報設定手段が設定し、前
記文字データを配置する時に前記文字間隔を変更する修
飾情報が設定されているか否かを判定手段が判定し、前
記文字間隔を変更する修飾情報が設定されている文字デ
ータを配置するために文字間隔変更手段が前記文字間隔
を変更し、文字データ配置手段が前記文字データを行内
に配置し、該文字データ配置手段によって配置された文
字データを表示手段が表示する。
The modification information setting means sets modification information for changing the character interval in a part of the character data arranged in the area, and the modification information for changing the character interval is set when the character data is arranged. Whether or not there is a determination means, the character spacing changing means changes the character spacing in order to arrange the character data for which the modification information for changing the character spacing is set, and the character data arranging means changes the character data. Is arranged in a line, and the display means displays the character data arranged by the character data arrangement means.

【0012】[0012]

【実施例】以下、本発明の実施例を図面に基づき説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0013】(第1実施例)まず、本発明の第1実施例
を図1乃至図15に基づき説明する。図1は、本発明の
第1実施例に係る文書作成装置の構成を示すブロック図
であり、同図中、1は表示装置(CRT)で、編集中の
文書、各種のメッセージメニュー等を画面に表示する。
2はビデオRAM(VRAM)で、表示装置1の画面に
表示されるイメージデータを展開記憶する。3はビット
ムーブユニット(BMU)で、メモリ間或はメモリと各
デバイス間のデータ転送をコントロールする。4はキー
ボードで、文書編集等を行うための各種のキーを備えて
いる。5はポインティングデバイス(PD)で、表示装
置1の画面上のアイコン等を指し示すため等に用いられ
る。
(First Embodiment) First, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing the configuration of a document creating apparatus according to the first embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a display device (CRT) for displaying a document being edited, various message menus, and the like. To display.
A video RAM (VRAM) 2 expands and stores image data displayed on the screen of the display device 1. A bit move unit (BMU) 3 controls data transfer between memories or between a memory and each device. A keyboard 4 has various keys for editing a document. Reference numeral 5 denotes a pointing device (PD), which is used for pointing an icon or the like on the screen of the display device 1.

【0014】6はCPU(中央演算処理装置)で、制御
プログラムに基づいて本装置の各部を制御する。7はR
OM(読み出し専用メモリ)で、CPU6が実行する各
種のプログラム(文書編集に係るプログラムやエラー処
理プログラムをはじめ、後述する本発明の文書作成装置
による文書処理を実現するためのプログラム等)が記憶
されている。8はRAM(読み書き可能メモリ)で、上
述した各種のプログラムをCPU6が実行する時に、ワ
ークエリア、エラー処理時の一時退避エリアとして用い
られる。9はハードディスク(HD)を駆動するハード
ディスクドライブ(HDD)、10はフロッピーディス
ク(FD)を駆動するフロッピーディスクドライブ(F
DD)である。前記ハードディスク及びフロッピーディ
スクは、後述するアプリケーションプログラムやデー
タ、ライブラリー等の保存用に用いられる。11はネッ
トワークインターフェース(Net−I/F)で、他の
文書処理装置との間でネットワークを経由してデータ転
送を行うために、該ネットワーク上のデータ制御及び診
断等を行う。12は上述した各ユニット間を接続するI
/O(入出力)バスで、アドレスバス、データバス及び
制御バスからなる。
Reference numeral 6 denotes a CPU (central processing unit), which controls each part of the apparatus based on a control program. 7 is R
The OM (read-only memory) stores various programs executed by the CPU 6 (including a program related to document editing and an error processing program, and a program for realizing document processing by the document creation apparatus of the present invention described later). ing. Reference numeral 8 denotes a RAM (readable / writable memory), which is used as a work area and a temporary save area during error processing when the CPU 6 executes the various programs described above. Reference numeral 9 is a hard disk drive (HDD) that drives a hard disk (HD), and 10 is a floppy disk drive (F) that drives a floppy disk (FD).
DD). The hard disk and the floppy disk are used for storing application programs, data, libraries, etc. described later. A network interface (Net-I / F) 11 performs data control and diagnosis on the network in order to transfer data to and from another document processing apparatus via the network. 12 is an I connecting between the above-mentioned units.
/ O (input / output) bus, which is composed of an address bus, a data bus, and a control bus.

【0015】尚、ROM7に記憶されているプログラム
は、本装置に直接接続されているハードディスクやフロ
ッピーディスク等の記憶媒体に記憶されていてもよい。
また、前記プログラムは、ハードディスクやフロッピー
ディスク等の記憶媒体やネットワークを介してシステム
や装置に供給することができる。
The program stored in the ROM 7 may be stored in a storage medium such as a hard disk or a floppy disk directly connected to the apparatus.
The program can be supplied to the system or device via a storage medium such as a hard disk or a floppy disk or a network.

【0016】<文字の入力編集処理>本実施例の文書作
成装置における文字の入力編集処理は、従来のワードプ
ロセッサ等で実現されている方法と同様で、ある領域内
に従来の組版技術、例えば、改行や自然改行による行送
り等により、文字を配置することによって実現する。
<Character Input / Editing Processing> The character input / editing processing in the document creating apparatus of the present embodiment is similar to the method realized by a conventional word processor or the like, and a conventional typesetting technique such as, for example, It is realized by arranging characters by line feed by line feed or natural line feed.

【0017】<字間変更修飾指定処理>図1の表示装置
1の画面に表示されている文字列に対して、図1のキー
ボード4からのキー入力、または、図1のポインティン
グデバイス5を使用することによって、修飾を行うべき
文字列を範囲指定し、その文字列に対して字間変更処理
を実行する。その具体的状態を図4に示す。図4の
(A)は、範囲指定前の状態を、図4の(B)は、範囲
指定状態を、図4の(C)は、文字間隔変更後(字間変
更処理後)の状態をそれぞれ示す。変更されるべき字間
は、図5に示す字間変更パネルから入力される。変更さ
れた情報は、文章データの中に埋め込まれて、図1のR
AM8上に保存される。その時の文章データのフォーマ
ットについては、ここでは触れない。
<Character Change Modification Designation Processing> For the character string displayed on the screen of the display device 1 of FIG. 1, key input from the keyboard 4 of FIG. 1 or the pointing device 5 of FIG. 1 is used. By doing so, the range of the character string to be modified is specified, and the character spacing changing process is executed on the character string. The specific state is shown in FIG. 4A shows the state before the range is designated, FIG. 4B shows the state with the range designated, and FIG. 4C shows the state after the character spacing has been changed (after the character spacing change processing). Shown respectively. The character spacing to be changed is input from the character spacing changing panel shown in FIG. The changed information is embedded in the text data, and
Stored on AM8. The format of the text data at that time will not be discussed here.

【0018】<文字配置に必要な行の情報>図2は、本
実施例の文書作成装置において文字を配置するために必
要な行に関する情報を示す図である。図2の2aは行に
設定される種々の情報を示す行状態フラグ(line_
flag)である。行内に配置される文字は、図2の2
bで示される行開始座標(kumisitan)から図
2の2cで示される行末座標(kumisyuuta
n)までの間に置かれることになる。図2の2cで示さ
れる行内文字数(word_count)は、行内に配
置された文字の文字数を保存する領域である。図2の2
dで示される行内文字数(word_count)は、
行内に配置された文字の文字数を保存する領域である。
図2の2eで示される文字列の長さ(length)
は、行内に文字を配置している過程での、配置された文
字列の長さの和を格納する作業領域である。図2の2f
で示される行のベースラインは、配置する行全体の基本
座標(baseline)を示す領域である。
<Line Information Required for Character Arrangement> FIG. 2 is a diagram showing information about lines necessary for arranging characters in the document creating apparatus of this embodiment. 2a in FIG. 2 is a line status flag (line_) indicating various information set in the line.
flag). The characters placed in the line are 2 in FIG.
From the line start coordinate (kumisitan) shown by b to the line end coordinate (kumisyuuta) shown by 2c in FIG.
It will be placed before n). The number of characters in a line (word_count) indicated by 2c in FIG. 2 is an area for storing the number of characters arranged in a line. 2 of FIG.
The number of characters in the line indicated by d (word_count) is
This area stores the number of characters placed in a line.
Length of the character string indicated by 2e in FIG. 2 (length)
Is a work area for storing the sum of the lengths of the arranged character strings in the process of arranging characters in a line. 2f in FIG.
The baseline of the row indicated by is an area indicating the basic coordinates of the entire row to be arranged.

【0019】<文字配置に必要な文字の情報>図3は、
本実施例の文書作成装置において文字を配置するために
必要な文字に関する情報を示す図である。各々の文字
が、以下の情報を保持している。
<Information of Characters Required for Character Arrangement> FIG.
It is a figure which shows the information regarding the character required in order to arrange | position a character in the document creation apparatus of a present Example. Each character holds the following information.

【0020】図3の3aで示される文字サイズ(wor
d_size)は、各文字データの大きさを格納する。
図3の3bで示される字間(gap)は、行内に文字を
配置する時に、配置処理中の文字とその直前の文字との
間隔を格納する。図3の3cで示される文字コード(c
ode)は、配置する文字のコードである。図3の3d
で示される文字オフセット(offset)は、配置処
理中の文字の文章データ中での位置を表している。図3
の3eで示される文字配置位置(position)
は、行内での文字の配置及び表示位置を表している。図
3の3fで示される文字状態フラグ(word_fla
g)は、各文字に設定されている修飾情報の状態を示す
ものである。
The character size (work) shown by 3a in FIG.
d_size) stores the size of each character data.
The character gap (gap) indicated by 3b in FIG. 3 stores the distance between the character being arranged and the character immediately before it when the character is arranged in the line. The character code (c
ode) is the code of the character to be placed. 3d in FIG.
The character offset (offset) indicated by represents the position in the text data of the character being placed. FIG.
Character position indicated by 3e (position)
Indicates the arrangement and display position of characters in a line. The character status flag (word_fla) indicated by 3f in FIG.
g) shows the state of the decoration information set for each character.

【0021】<行内組版処理>次に、行内組版処理の概
要について、図6を用いて説明する。図6は、行内組版
処理の制御手順を示すフローチャートである。
<In-line typesetting process> An outline of the in-line typesetting process will be described with reference to FIG. FIG. 6 is a flowchart showing the control procedure of in-line typesetting processing.

【0022】まず、ステップS601で行の初期化処理
を行う。ここでは、「baseline」の設定を行
う。その具体的な状態を図12に示す。
First, in step S601, row initialization processing is performed. Here, "baseline" is set. The specific state is shown in FIG.

【0023】次にステップS602で行内文字配置処理
を行って、1行内に配置できる文字を決定する。この処
理の詳細は、図7を用いて後述する。
Next, in step S602, in-line character arrangement processing is performed to determine the characters that can be arranged in one line. Details of this processing will be described later with reference to FIG. 7.

【0024】次にステップS603で行末禁則処理を行
う。この処理では、行から溢れている文字の削除処理や
禁則処理を行う。本発明においては、この処理は重要で
ないので、その詳細については、ここでは触れない。
Next, in step S603, line end prohibition processing is performed. In this process, the process of deleting characters overflowing the line and the prohibition process are performed. In the present invention, this process is not important, so its details will not be discussed here.

【0025】次にステップS604で行内の文字の均等
割り付け処理を行う。この処理の詳細は、図9を用いて
後述する。
Next, in step S604, the characters in the line are equally distributed. Details of this processing will be described later with reference to FIG.

【0026】次にステップS605で文字の配置位置の
決定処理を行った後、本処理動作を終了する。この文字
配置位置決定処理の詳細は、図10を用いて後述する。
Next, in step S605, the processing for determining the character layout position is performed, and then this processing operation is terminated. Details of this character arrangement position determination processing will be described later with reference to FIG.

【0027】以上が行内組版処理の概要である。The above is the outline of the in-line typesetting process.

【0028】次に本実施例の文書作成装置による行内文
字配置処理について、図7を用いて説明する。
Next, the in-line character arrangement processing by the document creating apparatus of this embodiment will be described with reference to FIG.

【0029】まず、ステップS701で行に文字を配置
する前の初期化処理を行う。初期化するべき情報は、図
2に示す行情報である。ここで、「kumisita
n」、「kumisyuutan」を設定する。その値
に関しては、設定される行の状況によるので、ここでは
触れない。また、「word_count」及び「le
ngth」を「0」で初期化する。更に、先頭文字の
「offset」を設定する。これらの処理は図1のC
PU6で実行され、その結果は、図1のRAM8上に保
存される。この時の具体的な状態を図12に示す。
First, in step S701, initialization processing before placing characters on a line is performed. The information to be initialized is the line information shown in FIG. Here, "kumisita
n "and" kumisyutan "are set. Its value depends on the condition of the line to be set, and is not described here. In addition, "word_count" and "le
ngth "is initialized to" 0 ". Further, the first character "offset" is set. These processes are shown in C of FIG.
It is executed by the PU 6, and the result is stored in the RAM 8 of FIG. A concrete state at this time is shown in FIG.

【0030】次にステップS702で、これから配置す
るべき文字の文字情報を格納する領域を確保する。この
領域は、図3に示す情報を格納する領域のことであり、
図1のRAM8上に確保される。
Next, in step S702, an area for storing the character information of the character to be arranged is secured. This area is an area for storing the information shown in FIG.
It is secured on the RAM 8 of FIG.

【0031】次にステップS703で、前記ステップS
702において確保された領域に文字情報を設定する。
この処理の詳細は、図8を用いて後述する。設定された
情報は、図1のRAM8上に確保される。この時の状態
を具体的に表した図が図13である。
Next, in step S703, the step S
Character information is set in the area secured in 702.
Details of this processing will be described later with reference to FIG. The set information is secured in the RAM 8 of FIG. FIG. 13 is a diagram specifically showing the state at this time.

【0032】次にステップS704で、行内に配置され
る文字列の長さ(length)を設定する。「len
gth」は、その文字を配置する前までに配置されてい
た文字列の長さに、現在配置した文字のサイズ(wor
d_size)と字間(gap)を加算した長さであ
る。この処理は、図1のCPU6で実行され、その結果
は、図1のRAM8上に保存される。この時の状態を具
体的に表した図が図13である。
Next, in step S704, the length (length) of the character string arranged in the line is set. "Len
"gth" is the length of the character string that was placed before the character was placed, and the size of the currently placed character (wor
This is the length obtained by adding d_size) and the character gap (gap). This processing is executed by the CPU 6 of FIG. 1, and the result is stored in the RAM 8 of FIG. FIG. 13 is a diagram specifically showing the state at this time.

【0033】次にステップS705で、行内文字数(w
ord_count)を「1」加算する。
Next, in step S705, the number of characters in the line (w
ord_count) is incremented by "1".

【0034】次にステップS706で、現在配置処理中
の文字の次の文字を行内に配置できる状態にあるか否か
を判定する。この判定は、下記(1)式が成立するか否
か、または、処理中の文字コードが改行コードであるか
否かである。
Next, in step S706, it is determined whether or not a character next to the character currently being arranged can be arranged in a line. This determination is based on whether the following formula (1) is satisfied or whether the character code being processed is a line feed code.

【0035】 length<kumisyuutan−kumisitan…(1) この判定は、図1のRAM8上の情報を用いて図1のC
PU6で実行される。
Length <kumisyuutan-kumisitan ... (1) This determination is made by using the information on the RAM 8 of FIG.
It is executed by PU6.

【0036】上記(1)式が成立せず且つ処理中の文字
コードが改行コードであれば、行内に文字が配置できな
くなったものとみなして、本処理動作を終了する。ま
た、上記(1)式が成立し且つ処理中の文字コードが改
行コードでなければ、まだ行内に文字が配置できるもの
とみなしてステップS707の処理を行う。このステッ
プS707では、「offset」を「1」加算した
後、前記ステップS702へ戻る。この処理は、図1の
CPU6で実行され、加算された値は、図1のRAM8
上に再度保存される。
If the above expression (1) is not satisfied and the character code being processed is a line feed code, it is considered that the character cannot be arranged in the line, and this processing operation is ended. If the above expression (1) is satisfied and the character code being processed is not a line feed code, it is considered that a character can still be arranged in a line, and the process of step S707 is performed. In step S707, "1" is added to "offset", and then the process returns to step S702. This processing is executed by the CPU 6 of FIG. 1, and the added value is stored in the RAM 8 of FIG.
Saved again.

【0037】以上の処理により、行内に配置される文字
を確定することができる。
By the above processing, the character arranged in the line can be determined.

【0038】次に、文字情報の設定処理について図8を
用いて説明する。図8は、文字情報の設定処理の制御手
順を示すフローチャートである。
Next, the character information setting process will be described with reference to FIG. FIG. 8 is a flowchart showing the control procedure of the character information setting process.

【0039】図8のステップS801〜ステップS80
3は、従来の文書作成装置における文字の配置処理で使
われる手順と同じである。
Steps S801 to S80 of FIG.
The procedure 3 is the same as the procedure used in the character layout process in the conventional document creating apparatus.

【0040】まず、ステップS801で、これから処理
を行う文字の「offset」を設定する。この処理で
設定された値は、図1のRAM8上に再度保存される。
First, in step S801, the character "offset" to be processed is set. The value set by this processing is saved again in the RAM 8 of FIG.

【0041】次に、ステップS802で、文章データか
ら「offset」の位置にある文字を取得し、その文
字コード(code)を設定する。この処理で設定され
た値は、図1のRAM8上に再度保存される。
Next, in step S802, the character at the position "offset" is acquired from the text data, and the character code (code) is set. The value set by this processing is saved again in the RAM 8 of FIG.

【0042】次に、ステップS803で、前記ステップ
S802において設定された「code」を基に、その
文字を表示するのに必要な文字サイズ(word_si
ze)及び前の文字との距離(gap)を取得する。こ
の処理は、図1のCPU6で実行され、設定された値
は、図1のRAM8上に再度保存される。
Next, in step S803, based on the "code" set in step S802, the character size (word_si) required to display the character is displayed.
ze) and the distance (gap) from the previous character. This processing is executed by the CPU 6 of FIG. 1, and the set value is saved again in the RAM 8 of FIG.

【0043】次に、ステップS804で、処理中の文字
に字間変更コマンド(字間変更する旨の修飾情報)が設
定されているか否かを判定する。そして、字間変更コマ
ンドが設定されていないと判定された場合には、本処理
動作を終了する。また、字間変更コマンドが設定されて
いると判定された場合には、ステップS805で、現在
処理中の文字が先頭の文字であるか否かを判定する。行
の先頭文字であった場合には、字間は設定しない方が文
字の配置処理としては標準的である。そのため、現在処
理中の文字が先頭文字であった場合には、本処理動作を
終了する。
Next, in step S804, it is determined whether a character spacing change command (modification information for changing the spacing) has been set for the character being processed. Then, if it is determined that the character spacing change command has not been set, this processing operation ends. If it is determined that the character spacing change command is set, it is determined in step S805 whether the character currently being processed is the first character. If it is the first character of the line, it is standard for character arrangement processing that the character spacing is not set. Therefore, if the character currently being processed is the first character, this processing operation ends.

【0044】一方、前記ステップS805において現在
処理中の文字が先頭の文字でないと判定された場合に
は、ステップS806で直前の文字も字間変更中か否か
を判定する。そして、直前の文字が字間変更中でない
(字間変更の設定がない)と判定された場合には、何も
せずに本処理動作を終了する。これは、字間変更の設定
が有効なのは、範囲指定された文字列内にある間隔だけ
であるため、字間変更のかかっている最初の文字は字間
変更されないためである。また、前記ステップS805
において、直前の文字が字間変更中であると判定された
場合には、ステップS807で「gap」を変更すべき
字間で置き換え、更に「gap」の置き換えを行ったこ
とを示すために「word_flag」に「1」をセッ
トした後、本処理動作を終了する。
On the other hand, if it is determined in step S805 that the character currently being processed is not the leading character, then it is determined in step S806 whether the immediately preceding character is also being changed in character spacing. Then, when it is determined that the immediately preceding character is not undergoing character space change (no character space change setting is made), this processing operation is terminated without doing anything. This is because the setting for changing the character spacing is effective only for the intervals within the character string whose range is specified, and therefore the character spacing is not changed for the first character. Also, in step S805
If it is determined that the immediately preceding character is undergoing a character change, the "gap" is replaced with the character to be changed in step S807, and "gap" is replaced with " After setting "1" to "word_flag", this processing operation is ended.

【0045】以上の処理により、文字情報を設定するこ
とができる。
By the above processing, character information can be set.

【0046】次に行内文字の均等割り付け処理につい
て、図9を用いて説明する。この処理を具体的に示す図
が、図14である。図14の(A)は割り付ける前の状
態を、図14の(B)は割り付け後の状態をそれぞれ示
す。図9は、行内文字の均等割り付け処理の制御手順を
示すフローチャートである。
Next, the process of evenly allocating characters within a line will be described with reference to FIG. FIG. 14 is a diagram specifically showing this processing. 14A shows the state before allocation, and FIG. 14B shows the state after allocation. FIG. 9 is a flowchart showing a control procedure of the even allocation process of characters within a line.

【0047】まず、ステップS901で、行内文字の均
等割り付け処理を行うべき領域の長さ(distanc
e)を算出する。この長さ(distance)は、行
頭位置(kumisitan)と行末位置(kumis
yuutan)、行内に配置された文字列の長さ(le
ngth)から、下記(2)式により求められる。
First, in step S901, the length (distance) of the area where the in-line characters are to be equally allocated.
e) is calculated. This length (distance) is the line head position (kumisitan) and line end position (kumis).
yuutan), the length of the string placed in the line (le
ngth), it is calculated by the following equation (2).

【0048】 distance=(kumisyuutan−kumisitan)− length…(2) 次にステップS902で、行内で均等割り付け処理でき
る文字数(equality_count)を求める。
この処理の詳細は、図10を用いて後述する。
Distance = (kumisyuutan-kumisitan) -length ... (2) Next, in step S902, the number of characters (equality_count) that can be equally distributed in a line is calculated.
Details of this processing will be described later with reference to FIG.

【0049】次にステップS903で、均等割り付け処
理を行うか否か、即ち、equality_count
=0か否かを判定する。そして、equality_c
ount=0であれば、均等割り付け処理する文字がな
いので、本処理動作を終了する。
Next, in step S903, it is determined whether or not the equal allocation process is performed, that is, the quality_count.
= 0 is determined. And the quality_c
If out = 0, there is no character to be equally distributed, and this processing operation ends.

【0050】また、equality_count=0
でなければ均等割り付け処理を行う。そのため、ステッ
プS904で、均等割り付けできる文字に割り付ける長
さ(word_pitch)を求める。「word_p
itch」は、上記(2)式で求めた「distanc
e」を均等割り付けする文字数(equality_c
ount)で割った値である。
Further, the quality_count = 0
If not, the even allocation process is performed. Therefore, in step S904, the length (word_pitch) assigned to the characters that can be evenly assigned is obtained. "Word_p
"itch" is the "distance" obtained by the above equation (2).
Number of characters to evenly allocate "e" (equality_c
It is the value divided by

【0051】次にステップS905で、行の先頭の文字
を取得する。また、処理中の文字を数える「coun
t」を「0」で初期化する。
Next, in step S905, the first character of the line is acquired. In addition, "count
Initialize "t" with "0".

【0052】次にステップS906で、その文字の字間
を変更できるか否かを判定する。字間変更されている文
字については、前記図8のステップS807において
「ward_flag」に「1」が設定されていた。こ
こでは、そのフラグが立っているか否かによって判定を
行う。ward_flag=1であれば字間の変更はで
きない。また、ward_flag=0であれば字間の
変更はできる。
Next, in step S906, it is determined whether or not the space between the characters can be changed. For the character whose character spacing has been changed, "1" is set in "ward_flag" in step S807 of FIG. Here, it is determined whether or not the flag is set. If the word_flag = 1, the character spacing cannot be changed. If the word_flag = 0, the space between characters can be changed.

【0053】字間が変更できる文字に関しては、ステッ
プS907で、「gap」に「word_pitch」
を加算した後、ステップS908の処理を行う。また、
字間が変更できない文字に関しては、ステップS907
をスキップしてステップS908の処理を行う。
For characters whose character spacing can be changed, in step S907, "word_pitch" is added to "gap".
After adding, the process of step S908 is performed. Also,
For characters whose character spacing cannot be changed, step S907
Is skipped and the process of step S908 is performed.

【0054】ステップS908では、行内に次の文字が
あるか否かを判定する。この判定は、下記(3)式が成
立するか否かである。
In step S908, it is determined whether there is a next character in the line. This determination is whether or not the following expression (3) is established.

【0055】 count<ward_count…(3) 上記(3)式が成立しない場合には、行内に文字はない
とみなして、本処理動作を終了する。また、上記(3)
式が成立する場合には、ステップS909で次の文字を
取得して、「count」を「1」進めた後、前記ステ
ップS906へ戻る。
Count <ward_count ... (3) When the above expression (3) is not satisfied, it is considered that there is no character in the line, and this processing operation is ended. In addition, (3) above
If the expression is satisfied, the next character is acquired in step S909, "count" is advanced by "1", and then the process returns to step S906.

【0056】以上の処理により、行内文字の均等割り付
けが行える。
By the above processing, the characters in the line can be evenly allocated.

【0057】次に行内均等割り付け処理できる文字数の
取得処理について、図10を用いて説明する。図10
は、行内均等割り付けできる文字数の取得処理の制御手
順を示すフローチャートである。
Next, the process of acquiring the number of characters that can be equally distributed within a line will be described with reference to FIG. Figure 10
6 is a flowchart showing a control procedure of an acquisition process of the number of characters that can be evenly allocated within a line.

【0058】まず、ステップS1001で、この処理で
使う作業変数count(処理中の文字数)及びequ
ality_count(均等割り付けできる文字数)
をそれぞれ初期化する。
First, in step S1001, the work variable count (the number of characters being processed) and the equal used in this process are designated.
alyty_count (number of characters that can be evenly allocated)
Are initialized respectively.

【0059】次にステップS1002で、行内の先頭の
文字情報を取得する。
Next, in step S1002, the character information at the beginning of the line is acquired.

【0060】次にステップS1003で、現在処理中の
文字が均等割り付けできる文字か否を判定する。この判
定は、現在処理中の文字が行頭の文字か否かと、文字情
報の「word_flag」が「1」であるか否かであ
る。行頭の文字は、通常字間を設定しないので均等割り
付けできる文字とはみなさない。また、字間変更指定が
なされている文字には、「word_flag」に
「1」が設定されている。この文字も均等割り付けでき
ないとみなす。
Next, in step S1003, it is determined whether the character currently being processed is a character that can be equally distributed. This determination is based on whether or not the character currently being processed is the character at the beginning of a line and whether or not the “word_flag” of the character information is “1”. Characters at the beginning of a line are not considered as characters that can be evenly allocated because normal character spacing is not set. In addition, "1" is set in "word_flag" for the character for which the inter-character space change is designated. It is considered that this character cannot be evenly distributed.

【0061】均等割り付けできる文字の場合にはステッ
プS1004で、「equality_count」を
「1」増やした後、ステップS1005の処理を行う。
また、均等割り付けできない文字の場合には、前記ステ
ップS1004をスキップしてステップS1005の処
理を行う。
If the characters can be evenly allocated, in step S1004, "equity_count" is incremented by "1", and then the process of step S1005 is performed.
If the characters cannot be evenly allocated, step S1004 is skipped and the process of step S1005 is performed.

【0062】ステップS1005では、まだ行内に文字
があるか否か、即ち、count<word_coun
tか否かを判定する。そして、count<word_
countが成立しない時には、行内の文字を全て判定
し終ったものとみなして、本処理動作を終了する。ま
た、まだ行内に文字がある場合には、count<wo
rd_countが成立しているので、その時はステッ
プS1006で、次の文字を取得し、「count」を
「1」進めた後、前記ステップS1003へ戻る。
In step S1005, it is determined whether or not there are still characters in the line, that is, count <word_count.
It is determined whether or not t. And count <word_
When the count is not satisfied, it is considered that all the characters in the line have been determined, and this processing operation is ended. Also, if there are still characters in the line, count <wo
Since rd_count is established, at that time, in step S1006, the next character is acquired, "count" is advanced by "1", and then the process returns to step S1003.

【0063】以上の処理によって、行内で均等割り付け
できる文字数を取得することができる。
By the above processing, the number of characters that can be evenly distributed within a line can be acquired.

【0064】次に行内の文字配置位置決定処理につい
て、図11を用いて説明する。
Next, the character arrangement position determination process within a line will be described with reference to FIG.

【0065】文字の配置位置は、直前の文字の配置位置
に直前の文字の文字幅を加算した位置に確定される(フ
ォントによっては、フォント自体に文字と文字の間隔を
付加している場合もあるが、このような場合には、直前
の文字の配置位置に直前の文字の文字幅と現在の文字の
フォントに設定されている字間を加算した位置に確定さ
れる)。この処理を具体的に示した図が図15である。
The character arrangement position is determined to be a position obtained by adding the character width of the immediately preceding character to the immediately preceding character arrangement position (depending on the font, the character itself may have a space between the characters). However, in such a case, the character position of the immediately preceding character is added to the character position of the immediately preceding character and the character gap set in the font of the current character is added to determine the position). FIG. 15 is a diagram specifically showing this processing.

【0066】文字の表示は、ここで求められた配置位置
に基づいて表示される。文字の表示位置を表す作業変数
として、「work」を使用する。
The characters are displayed based on the layout position obtained here. “Work” is used as a work variable indicating the display position of the character.

【0067】図11は、行内の文字配置位置決定処理の
制御手順を示すフローチャートである。
FIG. 11 is a flow chart showing the control procedure of the character arrangement position determination processing within a line.

【0068】まず、ステップS1101で、作業変数を
初期化する。最初の文字の表示位置は、「kumisi
tan」であるので、work=kumisitanで
ある。また、処理中の文字数を数えるための作業変数
(count)を「0」で初期化する。
First, in step S1101, work variables are initialized. The display position of the first character is "kumisi
tan ”, so work = kumisitan. Also, a work variable (count) for counting the number of characters being processed is initialized to "0".

【0069】次にステップS1102で、行内の先頭の
文字を取得する。
Next, in step S1102, the first character in the line is acquired.

【0070】次にステップS1103で、現在処理中の
文字の表示位置は「work」に格納されているので、
この値を文字情報の「position」にセットす
る。また、次の表示位置を求めるために、「work」
に「word_size」を加算する。
Next, in step S1103, since the display position of the character currently being processed is stored in "work",
This value is set to the "position" of the character information. Also, in order to obtain the next display position, "work"
Is added to "word_size".

【0071】次にステップS1104で、行内に次の文
字があるか否かを判定する。そして、次の文字がなけれ
ば本処理動作を終了する。また、次の文字があればステ
ップS1105で、次の文字の文字情報を取得する。
Next, in step S1104, it is determined whether or not there is the next character in the line. If there is no next character, this processing operation ends. If there is a next character, the character information of the next character is acquired in step S1105.

【0072】次にステップS1106で、前記ステップ
S1105において取得した文字の表示位置を求めるた
めに、「work」に「gap」を加算し、「coun
t」を「1」進めた後、前記ステップS1103へ戻
る。
Next, in step S1106, "gap" is added to "work" to obtain the display position of the character acquired in step S1105, and "count" is added.
After advancing "t" by "1", the process returns to step S1103.

【0073】以上の処理によって、文字の表示位置を決
定することができる。
With the above processing, the display position of the character can be determined.

【0074】上述した各種の処理を行うことによって、
文字間隔の変更処理は全て終了し、文章入力者の意図す
る文字間隔を設定した文字配置を行うことができる。
By performing the various processes described above,
The process of changing the character spacing is completed, and the character arrangement in which the character spacing intended by the person who entered the text is set can be performed.

【0075】(第2実施例)上記第1実施例では、行末
の均等配置処理で字間変更の設定されている文字の字間
は固定したままで、残りの文字の均等配置処理を行っ
た。この場合、1行を越える文字に字間変更を設定した
場合等に行末が揃わなくなることがある。行末を揃えて
表示したい場合には、上記第1実施例のような設定で
は、かえって文章の美しさを損なってしまう。
(Second Embodiment) In the first embodiment, the character spacing of the characters for which the character spacing is set to be changed by the equal spacing processing at the end of the line is fixed, and the equal spacing processing of the remaining characters is performed. . In this case, the line ends may not be aligned when a character spacing change is set for characters exceeding one line. When it is desired to display the line ends at the same position, the setting as in the first embodiment rather impairs the beauty of the sentence.

【0076】そこで、第2実施例では、行末揃えを優先
する場合と、設定字間を優先する場合を、行の状態フラ
グによって置き換えることによって、行末を揃えて表示
したい場合に、文章の美しさを損なうことがないように
したものである。
In view of this, in the second embodiment, when it is desired to display the line endings in alignment by replacing the case where the line endings are prioritized and the case where the set character spacing is prioritized with the line status flag, the text is beautiful. It is designed so as not to damage the.

【0077】以下、本発明の第2実施例について、図1
6を用いて説明する。
The second embodiment of the present invention will be described below with reference to FIG.
This will be described using 6.

【0078】<文字の入力編集処理>本実施例における
文字の入力編集処理は、上記第1実施例と同一であるか
ら、その説明を省略する。
<Character Input / Editing Process> Since the character input / editing process in this embodiment is the same as that in the first embodiment, its explanation is omitted.

【0079】<字間変更修飾指定処理>本実施例におけ
る字間変更修飾指定処理は、上記第1実施例と同一であ
るから、その説明を省略する。
<Character Change Modification Designation Processing> Since the character change modification designation processing in this embodiment is the same as that in the first embodiment, its explanation is omitted.

【0080】<文字配置に必要な行の情報>本実施例に
おける文字配置に必要な行の情報において、上記第1実
施例と異なる点は、図2の2aで示す行に設定される種
々の情報を示す行状態フラグ(line_flag)で
ある。本実施例においては、line_flag=1の
時には、行末揃えを優先し、また、line_flag
=0の時には、字間設定による字間を優先する。その他
の行情報は、上記第1実施例と同一であるから、その説
明を省略する。
<Line Information Necessary for Character Arrangement> Regarding the line information necessary for character arrangement in this embodiment, the point different from the first embodiment is that various lines set in the line 2a in FIG. 2 are set. A line status flag (line_flag) indicating information. In the present embodiment, when line_flag = 1, the line end justification is given priority, and line_flag
When = 0, the character spacing set by the character spacing is prioritized. The other line information is the same as that in the first embodiment, so its explanation is omitted.

【0081】<文字配置に必要な文字の情報>本実施例
における文字配置に必要な文字の情報は、上記第1実施
例と同一であるから、その説明を省略する。
<Information of Characters Required for Character Arrangement> Since information of characters necessary for character arrangement in this embodiment is the same as that in the first embodiment, its explanation is omitted.

【0082】<行内文字配置処理>本実施例における行
内組版処理の概要、行内文字配置処理及び文字情報の設
定処理は、上記第1実施例における行内組版処理の概要
(図6)、行内文字配置処理(図7)及び文字情報の設
定処理(図8)と同一であるから、その説明を省略す
る。
<In-line Character Arrangement Processing> The outline of the in-line typesetting processing, the in-line character arrangement processing, and the character information setting processing in this embodiment are the outline of the in-line typesetting processing in the first embodiment (FIG. 6), the in-line character arrangement processing. Since it is the same as the process (FIG. 7) and the character information setting process (FIG. 8), the description thereof will be omitted.

【0083】次に本実施例における1行内での均等割り
付け処理について、図9及び図16を用いて説明する。
Next, the even allocation process within one line in this embodiment will be described with reference to FIGS. 9 and 16.

【0084】図9において、本実施例と第1実施例とで
異なる点は、ステップS902及びステップS906の
2箇所だけである。
In FIG. 9, the difference between the present embodiment and the first embodiment is only two points, step S902 and step S906.

【0085】本実施例では、ステップS902で均等割
り付けできる文字数を取得する。
In this embodiment, the number of characters that can be evenly allocated is acquired in step S902.

【0086】本実施例における1行内での均等割り付け
できる文字数の取得処理について、図16を用いて説明
する。図16は、本実施例の文書作成装置における均等
割り付けできる文字数の取得処理の制御手順を示すフロ
ーチャートである。
The process of acquiring the number of characters that can be evenly distributed within one line in this embodiment will be described with reference to FIG. FIG. 16 is a flow chart showing the control procedure of the process for obtaining the number of characters that can be evenly allocated in the document creating apparatus of this embodiment.

【0087】まず、ステップS1601で、この処理で
使う作業変数count(処理中の文字数)及びequ
ality_count(均等割り付けできる文字数)
をそれぞれ初期化する。
First, in step S1601, the work variable count (the number of characters being processed) and the equal used in this process are designated.
alyty_count (number of characters that can be evenly allocated)
Are initialized respectively.

【0088】次にステップS1602で、行内の先頭の
文字情報を取得する。
Next, in step S1602, the character information at the beginning of the line is acquired.

【0089】次にステップS1603で、現在処理中の
文字が行頭の文字か否かを判定する。行頭の文字でない
場合には、ステップS1604の処理に移り、また、行
頭の文字の場合には、ステップS1607の処理に移
る。
Next, in step S1603, it is determined whether the character currently being processed is the first character on the line. If it is not the character at the beginning of the line, the process proceeds to step S1604, and if it is the character at the beginning of the line, the process proceeds to step S1607.

【0090】ステップS1604では、line_fl
ag=1であるか否かを判定する。そして、line_
flag=0の場合には、ステップS1605の処理に
移り、また、line_flag=1の場合には、字間
変更中の文字でも行末均等配置の影響を受けさせるため
にステップS1606の処理に移る。
In step S1604, line_fl
It is determined whether or not ag = 1. And line_
If flag = 0, the process proceeds to step S1605, and if line_flag = 1, the process proceeds to step S1606 in order to make even the character whose inter-character space change is affected by the even line-end arrangement.

【0091】ステップS1605では、word_fl
ag=1であるか否かを判定する。「word_fla
g」は、字間変更の設定がなされている文字のみ「1」
がセットされている。この判定を行う場合が、本実施例
の特徴である。
In step S1605, word_fl
It is determined whether or not ag = 1. "Word_fla
"g" is "1" only for characters that have been set to change the character spacing
Is set. The case of making this determination is a feature of this embodiment.

【0092】ステップS1606では、均等割り付けで
きる文字数(equality_count)を「1」
増やし、「word_flag」に2のビットを立てた
後、ステップS1607の処理に移る。
In step S1606, the number of characters (equality_count) that can be evenly allocated is "1".
After increasing and setting the bit of 2 to "word_flag", the process proceeds to step S1607.

【0093】ステップS1607では、行内にまだ文字
があるか否か、即ち、count<word_coun
tか否かを判定する。count<word_coun
tが成立しない場合には、行内の文字を全て判定し終っ
たものとみなして、本処理動作を終了する。行内にまだ
文字がある場合には、count<word_coun
tが成立しているので、その時はステップS1608で
次の文字情報を取得した後、前記ステップS1603へ
戻る。
In step S1607, it is determined whether or not there are still characters in the line, that is, count <word_count.
It is determined whether or not t. count <word_count
If t is not satisfied, it is considered that all the characters in the line have been determined, and this processing operation is ended. If there are still characters in the line, count <word_count
Since t is satisfied, at that time, the next character information is acquired in step S1608, and then the process returns to step S1603.

【0094】以上の処理によって、行内で均等割り付け
できる文字数を取得することができる。
By the above processing, the number of characters that can be evenly distributed within a line can be acquired.

【0095】再び図9の説明に戻る。Returning to the explanation of FIG.

【0096】ステップS906で現在処理中の文字が均
等割り付けできる文字であるか否かを判定するが、この
判定を図16のステップS1606の処理に合わせる。
つまり、「word_flag&2」のビットが立って
いるか否かで判定する。そして、「word_flag
&2」=2であれば図9のステップS907の処理に移
り、均等割り付けを行うための字間を設定する。また、
「word_flag&2」=0であれば図9のステッ
プS908の処理に移る。
In step S906, it is determined whether or not the character currently being processed is a character that can be equally distributed. This determination is matched with the processing in step S1606 in FIG.
In other words, it is determined whether the "word_flag &2" bit is set. And, "word_flag
& 2 ”= 2, the process moves to step S907 in FIG. 9 to set the character spacing for even allocation. Also,
If "word_flag &2" = 0, the process proceeds to step S908 in FIG.

【0097】以上の処理によって、字間変更を行いなが
ら、行末揃えを行うように文字配置の調整を行うことが
できる。
By the above processing, the character arrangement can be adjusted so that the line endings are aligned while changing the character spacing.

【0098】[0098]

【発明の効果】以上詳述したように、本発明の文書作成
装置によれば、文書編集者は、文字と文字との間に空白
文字を入れたり、その空白文字のサイズを変更したり、
また、前後の文章の編集によって文字配置が崩れた場合
には、再度その領域の調整をするというような労力を払
うことなく、局所的に文字の配置位置を自由に調整する
ことができ、これにより、文書編集者の意図通りに文字
を配置することができるるという効果を奏する。
As described above in detail, according to the document creating apparatus of the present invention, the document editor can insert a blank character between characters and change the size of the blank character.
In addition, when the character arrangement is destroyed by editing the surrounding text, you can freely adjust the character arrangement position locally without the effort of adjusting the area again. Thus, it is possible to arrange the characters as intended by the document editor.

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

【図1】本発明の第1実施例に係る文書作成装置の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a document creation device according to a first exemplary embodiment of the present invention.

【図2】図1の文書作成装置における文字の配置に必要
な行の情報を示す図である。
FIG. 2 is a diagram showing line information necessary for character arrangement in the document creating apparatus of FIG.

【図3】図1の文書作成装置における文字の配置に必要
な文字の情報を示す図である。
FIG. 3 is a diagram showing character information necessary for character arrangement in the document creating apparatus of FIG.

【図4】図1の文書作成装置における字間変更コマンド
の入力処理状態を示す図である。
FIG. 4 is a diagram showing an input processing state of a character spacing changing command in the document creating apparatus of FIG. 1;

【図5】図1の文書作成装置における字間入力パネルを
示す図である。
5 is a diagram showing a character space input panel in the document creating apparatus of FIG.

【図6】図1の文書作成装置における行内組版処理の制
御手順を示すフローチャートである。
6 is a flowchart showing a control procedure of in-line typesetting processing in the document creating apparatus of FIG.

【図7】図1の文書作成装置における行内文字配置処理
の制御手順を示すフローチャートである。
7 is a flowchart showing a control procedure of in-line character arrangement processing in the document creating apparatus of FIG.

【図8】図1の文書作成装置における文字情報の設定処
理の制御手順を示すフローチャートである。
8 is a flowchart showing a control procedure of a character information setting process in the document creating apparatus of FIG.

【図9】図1の文書作成装置における行内均等割り付け
処理の制御手順を示すフローチャートである。
9 is a flowchart showing a control procedure of an in-line equal allocation process in the document creating apparatus of FIG.

【図10】図1の文書作成装置における均等割り付けで
きる文字数の取得処理の制御手順を示すフローチャート
である。
10 is a flowchart showing a control procedure of an acquisition process of the number of characters that can be evenly allocated in the document creating apparatus of FIG.

【図11】図1の文書作成装置における行内の文字配置
位置決定処理の制御手順を示すフローチャートである。
11 is a flowchart showing a control procedure of character arrangement position determination processing within a line in the document creation apparatus of FIG.

【図12】図1の文書作成装置における行情報の初期化
状態を具体的に示す図である。
12 is a diagram concretely showing an initialization state of line information in the document creating apparatus of FIG.

【図13】図1の文書作成装置における文字の配置と文
字情報を具体的に示す図である。
13 is a diagram specifically showing the arrangement of characters and the character information in the document creating apparatus of FIG.

【図14】図1の文書作成装置における行の均等配置処
理を具体的に示す図である。
FIG. 14 is a diagram specifically showing the uniform line arrangement processing in the document creating apparatus of FIG. 1;

【図15】図1の文書作成装置における文字の配置位置
決定処理を具体的に示す図である。
FIG. 15 is a diagram specifically showing a character layout position determination process in the document creation apparatus of FIG. 1;

【図16】本発明の第2実施例に係る文書作成装置にお
ける均等割り付けできる文字数の取得処理の制御手順を
示すフローチャートである。
FIG. 16 is a flowchart showing a control procedure of an acquisition process of the number of characters that can be evenly allocated in the document creating apparatus according to the second embodiment of the present invention.

【図17】従来の文書作成装置による文字間隔の設定処
理を示す図である。
FIG. 17 is a diagram showing a character spacing setting process performed by a conventional document creation device.

【図18】従来の文書作成装置による文字間隔の設定処
理を示す図である。
FIG. 18 is a diagram showing a character spacing setting process performed by a conventional document creation device.

【図19】従来の文書作成装置による文字間隔の設定処
理の問題点を説明するための図である。
FIG. 19 is a diagram for explaining a problem of a character spacing setting process performed by a conventional document creating apparatus.

【図20】従来の文書作成装置による文字間隔の設定処
理の問題点を説明するための図である。
FIG. 20 is a diagram illustrating a problem of a character spacing setting process performed by a conventional document creation device.

【図21】従来の文書作成装置による文字間隔の設定処
理の問題点を説明するための図である。
FIG. 21 is a diagram for explaining a problem of a character spacing setting process performed by a conventional document creation device.

【図22】従来の文書作成装置による文字間隔の設定処
理の問題点を説明するための図である。
FIG. 22 is a diagram illustrating a problem of a character spacing setting process performed by a conventional document creation device.

【図23】従来の文書作成装置による文字間隔の設定処
理の問題点を説明するための図である。
FIG. 23 is a diagram for explaining a problem of a character spacing setting process performed by a conventional document creation device.

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

1 表示装置(表示手段) 6 CPU(飾情報設定手段、判定手段、文字間隔変
更手段、文字データ配置手段)
1 Display Device (Display Means) 6 CPU (Decorative Information Setting Means, Judging Means, Character Interval Changing Means, Character Data Arranging Means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 領域内に配置された文字データの一部に
文字間隔を変更する修飾情報を設定する修飾情報設定手
段と、前記文字データを配置する時に前記文字間隔を変
更する修飾情報が設定されているか否かを判定する判定
手段と、前記文字間隔を変更する修飾情報が設定されて
いる文字データを配置するために前記文字間隔を変更す
る文字間隔変更手段と、前記文字データを行内に配置す
る文字データ配置手段と、該文字データ配置手段によっ
て配置された文字データを表示する表示手段とを具備し
たことを特徴とする文書作成装置。
1. A decoration information setting unit for setting decoration information for changing a character interval in a part of character data arranged in an area, and a modification information for changing the character interval when the character data is arranged. Determining means for determining whether or not the character spacing is changed, character spacing changing means for changing the character spacing for arranging character data for which modification information for changing the character spacing is set, and the character data in a line. A document creating apparatus comprising: character data arranging means for arranging; and displaying means for displaying character data arranged by the character data arranging means.
JP6304326A 1994-11-14 1994-11-14 Document preparation device Pending JPH08137871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6304326A JPH08137871A (en) 1994-11-14 1994-11-14 Document preparation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6304326A JPH08137871A (en) 1994-11-14 1994-11-14 Document preparation device

Publications (1)

Publication Number Publication Date
JPH08137871A true JPH08137871A (en) 1996-05-31

Family

ID=17931672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6304326A Pending JPH08137871A (en) 1994-11-14 1994-11-14 Document preparation device

Country Status (1)

Country Link
JP (1) JPH08137871A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6928611B2 (en) 2000-09-25 2005-08-09 Adobe Systems Incorporated Setting text composition spacing amount
US7039862B2 (en) 2002-05-10 2006-05-02 Adobe Systems Incorporated Text spacing adjustment
US7071941B2 (en) 2000-02-12 2006-07-04 Adobe Systems Incorporated Method for calculating CJK emboxes in fonts
US7123261B2 (en) 2002-12-26 2006-10-17 Adobe Systems Incorporated Coordinating grid tracking and mojikumi spacing of Japanese text
US7167274B2 (en) 2001-09-28 2007-01-23 Adobe Systems Incorporated Line leading from an arbitrary point
US7168037B2 (en) 2000-09-25 2007-01-23 Adobe Systems Incorporated Text composition spacing amount setting device with icon indicators
US7296227B2 (en) 2001-02-12 2007-11-13 Adobe Systems Incorporated Determining line leading in accordance with traditional Japanese practices
US7305617B2 (en) 2000-02-12 2007-12-04 Adobe Systems Incorporated Method for aligning text to baseline grids and to CJK character grids
US7320104B2 (en) 2000-02-12 2008-01-15 Adobe Systems Incorporated Text grid creation tools
US7594171B2 (en) 2004-10-01 2009-09-22 Adobe Systems Incorporated Rule-based text layout

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7071941B2 (en) 2000-02-12 2006-07-04 Adobe Systems Incorporated Method for calculating CJK emboxes in fonts
US7305617B2 (en) 2000-02-12 2007-12-04 Adobe Systems Incorporated Method for aligning text to baseline grids and to CJK character grids
US7320104B2 (en) 2000-02-12 2008-01-15 Adobe Systems Incorporated Text grid creation tools
US6928611B2 (en) 2000-09-25 2005-08-09 Adobe Systems Incorporated Setting text composition spacing amount
US7168037B2 (en) 2000-09-25 2007-01-23 Adobe Systems Incorporated Text composition spacing amount setting device with icon indicators
US7296227B2 (en) 2001-02-12 2007-11-13 Adobe Systems Incorporated Determining line leading in accordance with traditional Japanese practices
US7167274B2 (en) 2001-09-28 2007-01-23 Adobe Systems Incorporated Line leading from an arbitrary point
US7039862B2 (en) 2002-05-10 2006-05-02 Adobe Systems Incorporated Text spacing adjustment
US7123261B2 (en) 2002-12-26 2006-10-17 Adobe Systems Incorporated Coordinating grid tracking and mojikumi spacing of Japanese text
US7594171B2 (en) 2004-10-01 2009-09-22 Adobe Systems Incorporated Rule-based text layout
US7783969B1 (en) 2004-10-01 2010-08-24 Adobe Systems Incorporated Rule-based text layout

Similar Documents

Publication Publication Date Title
EP0225191B1 (en) Document processing system
JPH08137871A (en) Document preparation device
JPH1013780A (en) Script edit device
JPS61148085A (en) Electronic apparatus
JP3658027B2 (en) Graphic editing apparatus and graphic editing method
JPH08287269A (en) Device and method for information display
US6804644B1 (en) Text processing system including a speech recognition device and text change means for changing a text-block data
EP0052711A1 (en) Method of processing text by insertion of a block of text in a text processing system
JPH01166250A (en) Document processing system
JPH09190427A (en) Method and device for preparing document
JPH03185559A (en) Document shaping device
JPH07325798A (en) Document preparing device
JPH1083390A (en) Processor and method for document processing, and storage medium
JP2773145B2 (en) Document shaping method and document processing device
JP2023173027A (en) Information processing device, information processing method, and program
JPH0721159A (en) Processor and method for character processing
JPH10134051A (en) Character processor, character processing method and storage medium
JP3082967B2 (en) Document processing method and apparatus
JP3123874B2 (en) Even allocation range specification method
JPH09101956A (en) Device and method for processing document
JPH08137461A (en) Document editing device and method
JPH08305703A (en) Document editing device and its method
JPH0381865A (en) Document forming device
JPS63316156A (en) Equational allocation system for character string
JPH0567082A (en) Method and device for document processing