JP3226735B2 - Document processing apparatus and method - Google Patents

Document processing apparatus and method

Info

Publication number
JP3226735B2
JP3226735B2 JP27735994A JP27735994A JP3226735B2 JP 3226735 B2 JP3226735 B2 JP 3226735B2 JP 27735994 A JP27735994 A JP 27735994A JP 27735994 A JP27735994 A JP 27735994A JP 3226735 B2 JP3226735 B2 JP 3226735B2
Authority
JP
Japan
Prior art keywords
line
document
row
control mark
document 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.)
Expired - Fee Related
Application number
JP27735994A
Other languages
Japanese (ja)
Other versions
JPH08132704A (en
Inventor
広 丸岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP27735994A priority Critical patent/JP3226735B2/en
Publication of JPH08132704A publication Critical patent/JPH08132704A/en
Application granted granted Critical
Publication of JP3226735B2 publication Critical patent/JP3226735B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文書処理装置及び方法に
関し、例えば行方向の文字位置制御が可能な文書処理装
置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus and method, and more particularly, to a document processing apparatus and method capable of controlling a character position in a line direction.

【0002】[0002]

【従来の技術】従来の文書処理装置においては、テキス
ト内の所定の文字列について、例えば均等割り付けやロ
ゴピッチ制御等、所定の制御マークを付加することによ
り、桁方向に文字位置を制御する機能を有している。
2. Description of the Related Art A conventional document processing apparatus has a function of controlling a character position in a digit direction by adding a predetermined control mark to a predetermined character string in a text, for example, by uniformly assigning or controlling a logo pitch. Have.

【0003】一方、罫線やインデント等で囲まれた閉領
域内において行方向に文字列を配置し、該文字列に対し
て行方向における文字位置の制御(均等割り付けやロゴ
ピッチ制御等)を行う場合には、行ピッチ変更,行挿
入,削除,挿入や移動等、複数の編集機能を操作するこ
とにより、行方向における文字位置を調整していた。又
は、テキスト枠を作成し、該テキスト枠内を縦組書式と
することにより、行方向における文字位置の制御を行っ
ていた。
On the other hand, when a character string is arranged in a line direction in a closed area surrounded by ruled lines, indents, and the like, and the character position in the line direction is controlled (e.g., uniform allocation and logo pitch control) for the character string. In Japanese Patent Application Laid-Open No. H11-229, the character position in the line direction is adjusted by operating a plurality of editing functions such as line pitch change, line insertion, deletion, insertion and movement. Alternatively, the text position is controlled in the line direction by creating a text frame and setting the inside of the text frame in a vertical composition format.

【0004】また、文書上の任意の範囲についてその行
ピッチを変更するには、文書上の一部の行範囲を指定し
て当該行の行ピッチ値を指定し、指定した値で範囲指定
された各行の行ピッチを変更する方式や、ある行におい
て行ピッチを指定すると、その後方の全ての行につい
て、行ピッチが変更される方式等がある。
In order to change the line pitch of an arbitrary range in a document, a part of the line range in the document is specified, the line pitch value of the line is specified, and the range is specified by the specified value. In addition, there are a method of changing the row pitch of each row, a method of specifying a row pitch in a certain row, and a method of changing the row pitch of all the rows behind it.

【0005】[0005]

【発明が解決しようとする課題】しかしながら上記従来
の文書処理装置においては、行方向の均等割り付け処理
等を行う場合には、行ピッチ変更、行挿入、削除、挿入
や移動等の複数の編集機能を操作することにより行方向
における文字列の位置を調整していたため、処理そのも
のが非常に繁雑であり、処理対象となる領域全体が表示
画面に収まりきれない場合には、表示画面を切り替えた
り、レイアウト表示機能により文書全体のレイアウトを
確かめながら調整しなくてはならなかった。
However, in the above-mentioned conventional document processing apparatus, when performing a uniform assignment process in the line direction, a plurality of editing functions such as line pitch change, line insertion, deletion, insertion, and movement are performed. Was operated, the position of the character string in the line direction was adjusted, so the processing itself was very complicated, and if the entire area to be processed could not fit on the display screen, the display screen was switched, I had to make adjustments while checking the layout of the entire document with the layout display function.

【0006】更に、行ピッチ変更や行挿入を行うために
余分な行を作成しなくてはならず、文書容量が増大して
しまうという欠点があった。
Further, there is a drawback that extra lines must be created to change the line pitch or insert lines, thereby increasing the document capacity.

【0007】更に、テキスト枠を作成する場合には、通
常の操作とは異なる枠作成操作等を行わねばならず、操
作手順が複雑となる。従って、操作者が操作方法を習得
することが容易でない等の問題があった。
Further, when a text frame is created, a frame creation operation different from a normal operation must be performed, and the operation procedure becomes complicated. Therefore, there is a problem that it is not easy for the operator to learn the operation method.

【0008】また、文書上の任意の範囲についてその行
ピッチを変更する場合には、所定範囲における各行が複
数の行ピッチ指定からなり、該所定範囲全体をある範囲
までに拡充したい場合や、ある頁の先頭行からその頁の
途中の行までの範囲をその頁いっぱいに広げたい場合等
には、上述した従来例で示した方法では広げる範囲の行
のレイアウトを意識しながら、必要箇所の行ピッチの変
更を指定していかねばならず、表示画面の切替えや、レ
イアウト表示等を駆使して煩雑な編集作業を行わねばな
らなかった。従って、編集作業に費やす時間が大きくな
ってしまうという欠点があった。
Further, when changing the line pitch for an arbitrary range on a document, each line in a predetermined range may include a plurality of line pitch designations, and there is a case where it is desired to expand the entire predetermined range to a certain range. If it is desired to extend the range from the top line of a page to the middle line of the page to the full page, etc. A change in pitch had to be specified, and complicated editing work had to be performed by switching display screens and making full use of layout display. Therefore, there is a disadvantage that the time spent for editing work is increased.

【0009】本発明は上述した課題を解決するためにな
されたものであり、文書データにおいて、所定の制御マ
ークにより行方向における文字位置が変更される場合
に、該制御マークの桁数と該制御マークが位置する領域
の桁数が所定の桁数条件を満たしていれば、最適な印刷
イメージへの自動展開を行う文書処理装置及び方法を提
供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem. When the character position in the line direction is changed by a predetermined control mark in document data, the number of digits of the control mark and the control It is an object of the present invention to provide a document processing apparatus and method for automatically developing an image into an optimal print image if the number of digits of an area where a mark is located satisfies a predetermined number of digits condition.

【0010】また、表示画面上の複数行を指定された展
開範囲へ展開する場合に、該複数行の各行ピッチが、そ
の相対的な割合を保つように自動設定される文書処理装
置及び方法を提供することを目的とする。
Further, when a plurality of lines on a display screen are expanded to a specified expansion range, a document processing apparatus and method are provided in which each line pitch of the plurality of lines is automatically set so as to maintain a relative ratio thereof. The purpose is to provide.

【0011】[0011]

【課題を解決するための手段】上述した目的を達成する
ために、本発明は以下の構成を備える。
In order to achieve the above-mentioned object, the present invention has the following arrangement.

【0012】即ち、複数の領域からなる文書データを印
刷する文書処理装置であって、前記複数の領域の各領域
ごとに、所定の制御マークを検知する検知手段と、前記
検知手段により所定の制御マークが検知された場合に、
該制御マークの桁数と該制御マークが位置する領域の桁
数が所定の桁数条件を満たすか否かを判断する判断手段
と、前記判断手段により前記所定の桁数条件を満たすと
判断された場合に、前記制御マークによって指定される
文書データについて行方向の文字位置を制御して印刷イ
メージに展開する展開手段と、前記展開手段により展開
された文書データを印刷する印刷手段と、を有すること
を特徴とする。
That is, a document processing apparatus for printing document data comprising a plurality of areas, a detecting means for detecting a predetermined control mark for each of the plurality of areas, and a predetermined control mark by the detecting means. If a mark is detected,
Judging means for judging whether the number of digits of the control mark and the number of digits of the area where the control mark is located satisfies a predetermined digit number condition, and the judgment means judges that the predetermined digit number condition is satisfied. In the case where the document data is designated by the control mark, the document data includes a developing means for controlling a character position in a line direction and developing the print data into a print image, and a printing means for printing the document data developed by the developing means. It is characterized by the following.

【0013】例えば、前記展開手段は、前記制御マーク
で行方向に囲まれた文書データについて行方向の文字位
置を制御して印刷イメージに展開することを特徴とす
る。
For example, the developing means develops a print image by controlling the character position in the line direction of the document data surrounded by the control mark in the line direction.

【0014】例えば、前記所定の条件は、前記制御マー
クの桁数が前記領域の桁数に等しいこと、であることを
特徴とする。
[0014] For example, the predetermined condition is that the number of digits of the control mark is equal to the number of digits of the area.

【0015】例えば、前記領域は、罫線又はインデント
により囲まれた領域であることを特徴とする。
For example, the area is an area surrounded by ruled lines or indents.

【0016】例えば、前記制御マークは、桁方向におけ
る文字位置を制御するためのマークであることを特徴と
する。
For example, the control mark is a mark for controlling a character position in a digit direction.

【0017】また、表示された文書データを処理する文
書処理装置であって、前記文書データにおいて複数行か
らなる所定領域の開始行および終了行を指示する行指示
手段と、前記行指示手段で指示された開始行と終了行で
挟まれた複数行の展開先となる展開範囲を指示する展開
範囲指示手段と、前記複数行の各行に設定されている行
ピッチの割合に基づいて、該複数行を前記展開範囲に配
置する際の各行の行ピッチを、前記割合を保ちながら更
新する行ピッチ更新手段と、前記複数行を、前記行ピッ
チ更新手段で更新された行ピッチで展開する展開手段
と、を有することを特徴とする。
A document processing apparatus for processing the displayed document data, comprising: line instruction means for designating a start line and an end line of a predetermined area consisting of a plurality of lines in the document data; Expansion range instructing means for instructing a development range as a development destination of a plurality of lines sandwiched between the set start line and end line, and the plurality of lines based on a ratio of a line pitch set for each of the plurality of lines. A row pitch updating means for updating the row pitch of each row when arranging the rows in the development range while maintaining the ratio, and a developing means for developing the plurality of rows at the row pitch updated by the row pitch updating means. , Is characterized by having.

【0018】例えば、前記行ピッチ更新手段は、前記複
数行の各行に設定されている行ピッチの総和および前記
展開範囲の行方向の長さに基づいて、前記割合を保ちな
がら各行の行ピッチを更新することを特徴とする。
For example, the row pitch updating means updates the row pitch of each row while maintaining the ratio based on the total row pitch set for each of the plurality of rows and the length of the development range in the row direction. It is characterized by updating.

【0019】例えば、前記開始行の位置と前記展開範囲
の開始位置とが等しいことを特徴とする。
For example, the present invention is characterized in that the position of the start line is equal to the start position of the development range.

【0020】[0020]

【0021】[0021]

【0022】[0022]

【0023】[0023]

【0024】[0024]

【0025】[0025]

【作用】以上の構成により、所定の制御マークの桁数と
該制御マークが位置する領域の桁数が所定の桁数条件を
満たすと判断された場合に、前記制御マークによって指
定される文書データについて行方向の文字位置を制御し
て展開し、印刷することができる。
According to the above arrangement, when it is determined that the number of digits of the predetermined control mark and the number of digits of the area where the control mark is located satisfy the predetermined number of digits condition, the document data designated by the control mark is determined. Can be developed by controlling the character position in the line direction and printed.

【0026】また、指示された開始行と終了行で挟まれ
た複数行を、各行における行ピッチの相対的な割合を保
ちながら、指示された展開範囲に展開することができ
る。
Further, a plurality of rows sandwiched between the designated start row and end row can be developed in the designated development range while maintaining the relative ratio of the row pitch in each row.

【0027】[0027]

【実施例】以下、図面を参照して本発明に係る一実施例
について詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment according to the present invention will be described below in detail with reference to the drawings.

【0028】<第1実施例>図1は、本実施例における
文書処理装置のブロック構成例を示す図である。図1に
おいて、1は中央演算処理部(CPU)である。2は読
み出し専用メモリ(ROM)であり、キャラクタジェネ
レータ(CG)や辞書、及び後述する図2,図3,図1
0に示す手順の処理プログラム等を記憶している。3は
読み書き可能なメモリ(RAM)であり、本実施例にお
いて文書メモリとなる他、CPU1の作業領域となる。
また、本実施例における文字処理装置を起動すると、後
述するインデックス(図6)を1個確保し、内容を
「0」で初期化しておく。4は外部に増設された読み出
し専用メモリ(外部ROM)である。5はキーボード制
御部(KBC)であり、6はキーボード(KB)であ
る。7は表示制御部(CRTC)であり、8は表示部
(CRT)である。9は周辺装置制御部(PKC)であ
り、10、11は外部記憶装置(FD10及びHD1
1)であり、FD10又はHD11に、後述する図2,
図3,図10に示す手順の処理プログラムを記憶してお
いてもよい。12は印刷部(PRT)、13はポインテ
ィングデバイス(PD)である。14は上述した各部間
においてデータの送受信を行うためのシステムバスであ
る。
<First Embodiment> FIG. 1 is a diagram showing an example of a block configuration of a document processing apparatus according to this embodiment. In FIG. 1, reference numeral 1 denotes a central processing unit (CPU). Reference numeral 2 denotes a read-only memory (ROM), which includes a character generator (CG), a dictionary, and FIGS.
For example, a processing program of the procedure shown in FIG. Reference numeral 3 denotes a readable / writable memory (RAM), which serves as a document memory and a work area for the CPU 1 in this embodiment.
When the character processing apparatus according to the present embodiment is started, one index (FIG. 6), which will be described later, is secured and the content is initialized to “0”. Reference numeral 4 denotes a read-only memory (external ROM) additionally provided outside. Reference numeral 5 denotes a keyboard control unit (KBC), and reference numeral 6 denotes a keyboard (KB). Reference numeral 7 denotes a display control unit (CRTC), and reference numeral 8 denotes a display unit (CRT). Reference numeral 9 denotes a peripheral device control unit (PKC), and reference numerals 10 and 11 denote external storage devices (FD10 and HD1).
1), and the FD 10 or the HD 11
The processing program of the procedure shown in FIGS. 3 and 10 may be stored. Reference numeral 12 denotes a printing unit (PRT), and reference numeral 13 denotes a pointing device (PD). Reference numeral 14 denotes a system bus for transmitting and receiving data between the above-described units.

【0029】本実施例装置における処理プログラムは、
ROM2,FD10,HD11或いはRAM3上に存在
し、CPU1がシステムバス14を通じて逐次処理プロ
グラムをROM2,FD10,HD11或いはRAM3
から読み出しつつ、目的の処理を行う。
The processing program in the apparatus of this embodiment is as follows:
The CPU 1 stores the sequential processing program through the system bus 14 in the ROM 2, the FD 10, the HD 11, or the RAM 3,
While performing the desired processing.

【0030】図2に、本実施例における印刷処理のフロ
ーチャートを示し、以下説明する。まず、通常の文書編
集作業中に、ステップS1において印刷開始が指示され
たか否かの判定を行う。本実施例においては、作成した
文書の印刷を開始するには、キーボード6から「印刷」
キーを入力する。ここで、「印刷」キー以外のキーが入
力された場合には、処理はステップS2に進んで、印刷
以外の指定された処理を行う。
FIG. 2 shows a flowchart of the printing process in this embodiment, which will be described below. First, during a normal document editing operation, it is determined whether or not a print start is instructed in step S1. In this embodiment, in order to start printing of the created document, "print"
Enter the key. Here, when a key other than the “print” key is input, the process proceeds to step S2, where the designated process other than the printing is performed.

【0031】ステップS1において印刷開始が指示され
た場合にはステップS3に進み、印刷範囲の算出を行
う。ステップS3においては、選択された文書の印刷対
象部分及び印刷部12の印刷可能範囲とにより、一度に
印刷可能な縦横の印刷ドット範囲、及び記録用紙上にお
ける印刷ドット縦位置を算出する。そして、算出された
印刷ドット範囲及び印刷ドット縦位置のそれぞれをRA
M3に記憶する。
If the start of printing is instructed in step S1, the flow advances to step S3 to calculate the printing range. In step S3, a vertical and horizontal print dot range that can be printed at once, and a print dot vertical position on recording paper are calculated based on the print target portion of the selected document and the printable range of the printing unit 12. Then, each of the calculated print dot range and print dot vertical position is
Store it in M3.

【0032】処理は次にステップS4に進み、ステップ
S3で求めた印刷範囲が、選択された文書の印刷対象部
分を超えているか否かを判別する。越えている場合には
印刷処理を終了し、越えていない場合にはステップS5
に進んで、ステップS3で算出した分の大きさの印刷バ
ッファをRAM3に確保する。
The process then proceeds to step S4, where it is determined whether the print range obtained in step S3 exceeds the print target portion of the selected document. If it has exceeded, the printing process ends, and if it has not exceeded, step S5
Then, a print buffer of the size calculated in step S3 is secured in the RAM 3.

【0033】続いてステップS6において、ステップS
3で求めた印刷範囲の文書内容を印刷イメージに展開
し、ステップS5で確保した印刷バッファに格納する。
そしてステップS7に進み、展開した印刷範囲分の印刷
イメージを印刷部12に出力し、次の印刷範囲を算出す
るためにステップS3に戻る。尚、ステップS5におけ
る印刷バッファ確保は、再確保する必要がなければ既に
確保されている印刷バッファが使用可能である。
Subsequently, in step S6, step S
The document content of the print range obtained in step 3 is developed into a print image and stored in the print buffer secured in step S5.
Then, the process proceeds to step S7, in which the print image for the developed print range is output to the printing unit 12, and the process returns to step S3 to calculate the next print range. The print buffer secured in step S5 can use the already secured print buffer if it is not necessary to secure it again.

【0034】以下、上述したステップS6における印刷
範囲展開処理について、図3〜図4を参照して更に詳細
に説明する。
Hereinafter, the print range developing process in step S6 will be described in more detail with reference to FIGS.

【0035】図3は、図2におけるステップS6の詳細
な処理を示すフローチャートである。
FIG. 3 is a flowchart showing a detailed process of step S6 in FIG.

【0036】図3において、まずステップS10で、文
書上において上述した図2に示すステップS3で求めた
印刷範囲に対応する範囲の開始行を算出する。即ち、ス
テップS3で求めた記録用紙上における印刷ドット縦位
置以降に展開する行のうち、先頭に位置する行を算出す
る。そして、算出した行を展開行及び次展開行としてR
AM3に格納する(展開開始行算出処理)。尚、各行は
例えば行番号等により、識別すれば良い。
In FIG. 3, first, in step S10, a start line of a range corresponding to the print range obtained in step S3 shown in FIG. That is, among the lines developed after the printing dot vertical position on the recording paper obtained in step S3, the line located at the head is calculated. Then, the calculated row is used as an expanded row and a next expanded row as R
Store it in AM3 (expansion start row calculation processing). Each line may be identified by, for example, a line number.

【0037】次にステップS11に進み、RAM3に格
納された次行展開行の印刷領域及びその上部修飾領域
が、一部でもステップS3で求めた印刷範囲内に入るか
否かを判定する(展開行更新終了判定処理)。入らない
場合にはステップS6の印刷範囲展開処理を終了する
が、一部でも入る場合には展開行が存在しているためス
テップS12に進み、次展開行を、展開行の1行後の行
に更新する。
Next, the process proceeds to step S11, in which it is determined whether or not the print area of the next expanded line stored in the RAM 3 and the upper decoration area at least partially fall within the print range obtained in step S3. Row update end determination processing). If not, the print range developing process of step S6 is terminated. If any part of the print line is included, the process proceeds to step S12 since there is a developed line, and the next developed line is replaced by the line one line after the developed line. Update to

【0038】そして処理はステップS13に進み、図4
に示す様な「組テーブル」を作成する(行内展開位置配
置処理)。本実施例においては、組テーブルに基づいて
行内における各文字毎(1〜N文字目)の展開位置を制
御する。図4に、組テーブルの構成例を示す。図4に示
すように、組テーブルは展開行における各文字毎に、文
字コード71,行内桁方向印刷ドット位置72,行内行
方向印刷ドット位置73(行内文字上端位置からの印刷
ドットオフセット値)を有しており、RAM3に格納さ
れている。尚、組テーブルにおけるの終端(N+1)は
全て0の項目であり、また、行内行方向印刷ドット位置
73は、印刷する文字のベースラインを行内で文字毎に
変更可能とするために設けられている。
Then, the process proceeds to step S13, and FIG.
A "group table" as shown in (1) is created (in-line development position arrangement processing). In this embodiment, the development position of each character (1st to Nth characters) in a line is controlled based on the set table. FIG. 4 shows a configuration example of the set table. As shown in FIG. 4, the set table stores a character code 71, an in-line digit direction print dot position 72, and an in-line line direction print dot position 73 (print dot offset value from the in-line character upper end position) for each character in the expanded line. And stored in the RAM 3. Note that the end (N + 1) of the set table is all zero items, and the in-line line direction print dot position 73 is provided so that the base line of the character to be printed can be changed for each character in the line. I have.

【0039】尚、本実施例では、「処理範囲テーブル」
に基づいて後述する制御マークによる処理を行う。処理
範囲テーブルは制御マークの処理対象範囲を示すテーブ
ルであり、その詳細については後述する。ステップS1
3において組テーブルを作成する際に、対象文字が既に
処理範囲テーブルに登録されているか否かを判定し、登
録されている、即ち、対象となる文字が制御マーク処理
範囲内であれば、該文字は組テーブルへの登録を行わな
い。次に処理はステップS14に進み、ステップS13
で作成した組テーブルにおける文字コード71を先頭文
字(1文字目)から最終文字(N文字目)へ順次調べ、
図5のP1に示す均等割付制御マーク等、文字位置を制
御する制御マークを検知する(制御マーク検知処理)。
以下、文字位置を制御する制御マークを、単に「制御マ
ーク」と称する。本実施例では、制御マークとして桁方
向に均等割り付けを制御する均等割り付け制御マークを
例として以下説明を行う。
In this embodiment, the "processing range table"
Is performed based on the control mark described later. The processing range table is a table indicating the processing target range of the control mark, and details thereof will be described later. Step S1
When creating the set table in 3, it is determined whether or not the target character is already registered in the processing range table, and if it is registered, that is, if the target character is within the control mark processing range, Characters are not registered in the tuple table. Next, the process proceeds to Step S14, and Step S13
The character code 71 in the set table created in step 1 is sequentially examined from the first character (first character) to the last character (Nth character).
A control mark for controlling the character position, such as a uniform allocation control mark shown at P1 in FIG. 5, is detected (control mark detection processing).
Hereinafter, the control mark for controlling the character position is simply referred to as “control mark”. In the present embodiment, a description will be given below by taking as an example an equal allocation control mark that controls equal allocation in the digit direction as a control mark.

【0040】ステップS14において制御マークが検知
されなければステップS19に進むが、検知されると、
該制御マークの組テーブルで示される桁方向及び行方向
におけるドット位置を「制御マーク先頭位置」としてR
AM3に記憶し、ステップS15に進む。
If the control mark is not detected in step S14, the process proceeds to step S19.
The dot position in the column direction and the row direction indicated in the control mark set table is defined as the “control mark head position” and R
AM3, and the process proceeds to step S15.

【0041】ステップS15においては、まずステップ
S14で得た制御マーク先頭位置(印刷ドット位置)が
示す文書上における行桁位置を求め、該位置を含む閉領
域(例えば図5においてP1が含まれる罫線で囲まれた
縦長の閉領域R)の桁数を算出する。この桁数とステッ
プS14で検知した制御マークの桁数とを比較し、等し
くなければステップS16に進んで公知の桁方向展開処
理を行い、再びステップS13に戻って次の制御マーク
を検知する。尚、桁方向展開処理内では、処理された制
御マークが組テーブルより取り除かれて文字位置が調整
される。
In step S15, first, the line / column position in the document indicated by the control mark head position (print dot position) obtained in step S14 is determined, and a closed area including the position (for example, a ruled line including P1 in FIG. 5). The number of digits of the vertically long closed region R) surrounded by is calculated. The number of digits is compared with the number of digits of the control mark detected in step S14. If they are not equal, the process proceeds to step S16 to perform a known digit direction development process, and returns to step S13 again to detect the next control mark. In the digit direction development process, the processed control mark is removed from the set table and the character position is adjusted.

【0042】一方、ステップS15において閉領域桁数
と制御マーク桁数とが等しい場合にはステップS17へ
進み、閉領域内の先頭行から最終行までの全ての行につ
いて、ステップS15と同様に閉領域桁数と制御マーク
桁数とが等しいか否かの判定を行う。すべて等しければ
ステップS18に進むが、等しくなければステップS1
6に進んで公知の桁方向展開処理を行い、再びステップ
S13へ戻り、次の制御マークを検知する。
On the other hand, if the number of digits of the closed area is equal to the number of digits of the control mark in step S15, the process proceeds to step S17, and all rows from the first row to the last row in the closed area are closed in the same manner as in step S15. It is determined whether or not the number of digits of the area is equal to the number of digits of the control mark. If they are all equal, the process proceeds to step S18, but if they are not equal, step S1
Then, the process proceeds to step S6, where the known digit direction developing process is performed, and the process returns to step S13 to detect the next control mark.

【0043】ステップS18では、図6に示す様な「イ
ンデックス」および「処理範囲テーブル」をRAM3上
に必要なら追加する(行方向展開前処理)。尚、追加す
る際にインデックスの内容が「0」のものがあればイン
デックスの追加は行わず、これを使用する。本実施例に
おいては制御マーク対毎に「処理範囲テーブル」を有
し、「インデックス」とは、この処理範囲テーブルのア
ドレスを記憶するインデックス領域である。尚、この
「インデックス」は、未使用であれば、その内容を
「0」とする。
In step S18, an "index" and a "processing range table" as shown in FIG. 6 are added to the RAM 3 if necessary (row direction expansion preprocessing). If there is an index whose content is "0" at the time of addition, the index is not added and used. In this embodiment, a "processing range table" is provided for each control mark pair, and the "index" is an index area for storing the address of the processing range table. If the “index” is not used, its content is set to “0”.

【0044】ここで、「処理範囲テーブル」の内容につ
いて説明する。処理範囲テーブルとは、制御マーク対に
よって行方向の文字位置が制御される範囲の情報を示す
テーブルであり、各制御マーク対毎に図6に示す様に、
制御を行う先頭の位置(先頭行61,先頭行文字上端印
刷ドット位置62)と最終の位置(最終行63,最終行
文字下端印刷ドット位置64)、印刷対象となる行数
(対象行数66)、処理対象となる桁位置(対象桁6
5)、制御マーク対の範囲(制御マーク先頭行67,制
御マーク最終行68)の各情報を有している。
Here, the contents of the "processing range table" will be described. The processing range table is a table indicating information of a range in which the character position in the line direction is controlled by the control mark pair. As shown in FIG.
The start position (first line 61, first line character upper-end print dot position 62) and last position (last line 63, last line character lower-end print dot position 64) to be controlled, the number of lines to be printed (the number of target lines 66) ), The digit position to be processed (target digit 6
5), and each information of the range of the control mark pair (the first line 67 of the control mark and the last line 68 of the control mark).

【0045】以下、ステップS18における処理範囲テ
ーブルの追加処理について、詳細に説明する。
Hereinafter, the process of adding the processing range table in step S18 will be described in detail.

【0046】まず、対象となる制御マーク対が既に処理
範囲テーブルに登録されているか否かを、対象となる制
御マーク対の位置(対象桁65,対象行数66,対象制
御マーク先頭行67,対象制御マーク最終行68)と、
対応するインデックス値が「0」であるか否かにより判
定する。既に登録されていれば、組テーブル内の対応す
る制御マークを削除し、ステップS18を終了してステ
ップS14に戻る。
First, whether or not the target control mark pair is already registered in the processing range table is determined by determining the position of the target control mark pair (target digit 65, target line number 66, target control mark head line 67, Target control mark last line 68),
The determination is made based on whether the corresponding index value is “0”. If it has already been registered, the corresponding control mark in the set table is deleted, and step S18 ends and the process returns to step S14.

【0047】一方、未登録であると判定されると、処理
範囲テーブルへの登録を行う。図5を例として説明する
と、まず均等割り付け制御マークP1より、閉領域R内
の文末方向に、対になる均等割り付け制御マークP4を
サーチする。もし、対になる均等割り付け制御マークが
存在しなければ、組テーブル内の対応する制御マークを
削除し、ステップS18を終了してステップS14に戻
る。
On the other hand, if it is determined that the information has not been registered, it is registered in the processing range table. Referring to FIG. 5 as an example, first, a search is made for a pair of equally-allocated control marks P4 in the closed region R toward the end of the sentence from the equally-allocated control marks P1. If there is no paired equally-allocated control mark, the corresponding control mark in the set table is deleted, and step S18 ends and returns to step S14.

【0048】そして、均等マーク制御の印字開始先頭行
位置となる制御マークP1の行位置を対応する処理範囲
テーブルにおける先頭行61に、そしてP1の行の文字
上端印刷ドット位置を先頭行文字上端印刷ドット位置6
2に格納する。更に、均等マーク制御の印字開始最終行
位置となる制御マークP4の行位置を最終行63に記憶
し、P4の行の文字下端印刷ドット位置を最終行文字下
端印刷ドット位置64に格納する。また、制御マークP
1の桁位置を対象桁65に格納する。そして更に、制御
マークP1からP4の間の、均等割り付け対象行数(何
らかの文字コードを含んでいる行数)を算出し、対象行
数66に格納する。即ち、P2〜P3までの文字
「住」,「所」,「録」が配置された3行が、対象行数
66に該当する。また、対象とした制御マーク対の先頭
制御マークP1の行位置と、最終制御マークP4の行位
置とをそれぞれ制御マーク先頭行67及び制御マーク最
終行68に記憶する。
Then, the line position of the control mark P1, which is the print start top line position of the uniform mark control, is set to the top line 61 in the corresponding processing range table, and the top dot printing dot position of the P1 line is set to the top line top character printing. Dot position 6
2 is stored. Further, the line position of the control mark P4, which is the printing start last line position of the uniform mark control, is stored in the last line 63, and the character bottom print dot position of the line P4 is stored in the last line character bottom print dot position 64. The control mark P
The digit position of 1 is stored in the target digit 65. Further, the number of lines to be equally allocated (the number of lines including some character code) between the control marks P1 to P4 is calculated and stored in the number of target lines 66. That is, three lines in which the characters “house”, “place”, and “record” from P2 to P3 are arranged correspond to the target line number 66. Also, the row position of the head control mark P1 and the row position of the last control mark P4 of the target control mark pair are stored in the control mark head line 67 and the control mark last line 68, respectively.

【0049】以上説明したようにして、対象制御マーク
対の処理範囲テーブルへの登録が終了すると、再びステ
ップS14に戻り、次の制御マークを検知する。このよ
うにして、ステップS3で決定された印刷範囲内の全て
の制御マークの検知が終了すると処理はステップS19
に進む。
As described above, when the registration of the target control mark pair in the processing range table is completed, the process returns to step S14 to detect the next control mark. When the detection of all the control marks in the print range determined in step S3 is completed in this way, the process proceeds to step S19.
Proceed to.

【0050】ステップS19においては、ステップS1
8で作成されたインデックスおよび処理範囲テーブルの
内容に従って、行方向に展開対象があれば展開する(行
方向展開処理)。即ち、インデックス値が「0」でない
全ての項目において、まず先頭行文字上端印刷ドット位
置62と最終行文字下端印刷ドット位置64の範囲と、
対象行数66とにより均等割り付けされる各行の「上端
印刷ドット位置」を求める。尚、ここで対象行数66が
「0」である場合には、ステップS19における行方向
展開処理を行わない。そして、展開行が示す文字印刷ド
ット範囲(該展開行の行内文字上端位置から、次展開行
の「行内文字上端位置―1」位置の範囲。)が、均等割
り付けされる各行の「上端印刷ドット位置」を含むか否
かを判定する。但し、展開行の行ピッチ=0であれば、
「上端印刷ドット位置」は含まないと判定する。そし
て、展開行が「上端印刷ドット位置」を含むと判定され
ると、文書上における均等割り付けされる文字が明確と
なり、その内容と桁位置、及びRAM3に記憶されてい
る均等割り付けされる「上端印刷ドット位置」とから、
該展開行の組テーブルの変更すべき各要素を算出して、
更新する。
In step S19, step S1
According to the index created in step 8 and the contents of the processing range table, if there is an expansion target in the row direction, the data is expanded (row direction expansion processing). That is, for all items whose index values are not “0”, first, the range of the top dot printing dot position 62 of the first line character and the bottom dot printing dot position 64 of the last line character,
The “upper-end printing dot position” of each line evenly allocated based on the target line number 66 is obtained. If the number of target rows 66 is “0”, the row direction expansion processing in step S19 is not performed. Then, the character print dot range indicated by the expanded line (the range from the upper end position of the character in the line of the expanded line to the position of “the upper end position of the character in the line—1” position of the next expanded line) Is determined. However, if the row pitch of the developed row is 0,
It is determined that the “top print dot position” is not included. Then, when it is determined that the expanded line includes the “top print dot position”, the characters to be equally allocated on the document are clarified, and the contents and the digit positions, and the “top edge of the equally allocated” stored in the RAM 3 are determined. From "Print dot position"
Calculate each element to be changed in the set table of the expanded row,
Update.

【0051】尚、ステップS19において処理範囲テー
ブルの対象行数66に記憶されている行数分の処理をす
べて終了すると、対象行数66を「0」にセットする。
更に、展開行が制御マーク最終行68に一致した場合に
は、該当するインデックスの内容を「0」にセットし、
対応する処理範囲テーブル及びインデックスを解放する
処理を行う。
When all the processes for the number of rows stored in the number of target rows 66 in the processing range table are completed in step S19, the number of target rows 66 is set to "0".
Further, when the expanded line matches the control mark last line 68, the content of the corresponding index is set to “0”,
Release the corresponding processing range table and index.

【0052】そして処理はステップS20に進み、図4
に示す組テーブルの内容、及びその他の書式情報等によ
り、ROM2内のCGを介してフォントパターンを獲得
し、図2に示すステップS5で確保した印刷バッファ内
の該当するドット位置に展開する(印刷イメージ展開処
理)。そして、展開行を次展開行に更新する。
Then, the process proceeds to step S20, and FIG.
A font pattern is obtained via the CG in the ROM 2 based on the contents of the set table shown in FIG. 2 and other format information, etc., and is developed at a corresponding dot position in the print buffer secured in step S5 shown in FIG. Image expansion processing). Then, the expansion line is updated to the next expansion line.

【0053】尚、ステップS20において組テーブル内
に制御マークが存在した場合は、例えば空白を展開する
ことにより対応する。
If there is a control mark in the set table in step S20, this is dealt with, for example, by expanding a blank.

【0054】ステップS20の印刷イメージ展開処理が
終了すると処理はステップS11に戻り、全ての印刷範
囲の行が展開されるまで、上述した処理を繰り返す。
When the print image developing process of step S20 is completed, the process returns to step S11, and the above-described process is repeated until the lines of the entire print range are developed.

【0055】以上説明した様にして図3に示す印刷範囲
展開処理を終了すると、図5に示す文書内容が、印刷バ
ッファ内において図7で示す印刷イメージに展開されて
記憶される。
When the print range developing process shown in FIG. 3 is completed as described above, the contents of the document shown in FIG. 5 are developed into the print image shown in FIG. 7 in the print buffer and stored.

【0056】以上説明したように本実施例によれば、例
えば桁方向の均等割り付け処理にも有効な均等割り付け
制御マーク等を利用して、行方向における文字位置の制
御を行う場合に最適な印刷ドット位置が自動設定される
ため、操作者が表示画面を切り替えたり、レイアウト表
示により全体を確認しながら細かな調整を行う必要がな
くなる。また、表示時の行単位にとらわれること無く、
行方向に文字位置を制御した印刷が可能となるため、行
ピッチや行挿入等により余分な行の作成を行う必要がな
い。また、該文字位置を行方向に制御するに際してその
ためのテキスト枠等を作成する必要もないため、操作者
が特別な操作方法を習得する必要がなく、操作性に大変
優れた文字処理装置及び方法を提供することができる。
As described above, according to the present embodiment, optimal printing is performed when the character position in the line direction is controlled by using, for example, a uniform allocation control mark that is also effective in the uniform allocation process in the digit direction. Since the dot positions are automatically set, it is not necessary for the operator to switch the display screen or make fine adjustments while checking the entire layout display. Also, without being caught by the line at the time of display,
Since printing can be performed with the character position controlled in the line direction, it is not necessary to create an extra line by line pitch, line insertion, or the like. In addition, since there is no need to create a text frame or the like for controlling the character position in the line direction, there is no need for the operator to learn a special operation method, and the character processing apparatus and method are very excellent in operability. Can be provided.

【0057】<その他の適用例>上述した第1実施例に
おいては、行方向における文字位置の制御を行う閉領域
として、罫線により区切られた閉領域を例として説明を
行ったが、本発明はこの限りでなく、例えばインデント
制御文字により閉領域の境界を判別してもよい。即ち、
閉領域の境界を判断可能な情報であれば、本発明の主旨
を満たす。
<Other Application Examples> In the above-described first embodiment, a closed region separated by ruled lines has been described as an example of a closed region for controlling the character position in the line direction. However, the boundary of the closed area may be determined by using, for example, indent control characters. That is,
Information that can determine the boundary of the closed region satisfies the gist of the present invention.

【0058】更に、上述した図2におけるステップS1
では、キーボード6から各種機能を選択するとしたが、
例えばポインティングデバイス13により、文書上の特
定の位置を指定することにより、機能を選択するように
してもよい。
Further, step S1 in FIG.
Then, various functions are selected from the keyboard 6,
For example, a function may be selected by designating a specific position on a document using the pointing device 13.

【0059】また、制御マークの桁数については、1つ
の制御マークの桁数について説明したが、例えば制御マ
ークが対象領域の行内に連続して設定されている場合に
も適用可能であることはいうまでもない。
Although the number of digits of a control mark has been described with respect to the number of digits of one control mark, the present invention can be applied to, for example, a case where control marks are continuously set in a row of a target area. Needless to say.

【0060】また更に、第1実施例においては制御マー
クが均等割り付けマークである例について説明を行った
が、例えばロゴマークの様に、制御マークで囲まれた範
囲内を処理する制御マークであれば、同様に本発明を適
用できることはいうまでもない。尚、例えば、行方向に
文字位置制御を行うための制御マークを、既存の桁方向
に文字位置制御を行うための制御マーク(均等割り付け
制御マーク等)と区別して新たに定義してもかまわな
い。
Further, in the first embodiment, an example has been described in which the control mark is an evenly allocated mark. However, for example, a control mark for processing an area surrounded by the control mark, such as a logo mark, may be used. Needless to say, the present invention can be similarly applied. Note that, for example, a control mark for performing character position control in the line direction may be newly defined so as to be distinguished from a control mark for performing character position control in the existing digit direction (equally allocated control mark or the like). .

【0061】<第2実施例>以下、本発明に係る第2実
施例について詳細に説明する。上述した第1実施例にお
いては、制御マークによる行方向ピッチの制御処理につ
いて説明を行ったが、第2実施例においては、文書上で
指定された任意の範囲に含まれる行全体における行ピッ
チ制御について説明する。第2実施例における文書処理
装置の構成は、上述した第1実施例に示す図1と同様で
あるため、説明を省略する。
<Second Embodiment> Hereinafter, a second embodiment according to the present invention will be described in detail. In the first embodiment described above, the control processing of the line direction pitch by the control mark has been described. However, in the second embodiment, the line pitch control for the entire line included in an arbitrary range specified on the document is described. Will be described. The configuration of the document processing apparatus in the second embodiment is the same as that in FIG. 1 shown in the above-described first embodiment, and a description thereof will be omitted.

【0062】第2実施例では、複数の行ピッチ指定を含
んだ所定範囲内全体の行ピッチ変更処理を特徴とし、以
下、第2実施例の特徴を為す行ピッチ変更処理を、「比
例行変更」処理と称する。
The second embodiment is characterized by a line pitch changing process of the entire predetermined range including a plurality of line pitch designations. Hereinafter, the line pitch changing process which is a feature of the second embodiment will be referred to as a "proportional line changing process". Process.

【0063】尚、第2実施例においては、CRT8には
文書の印刷イメージが表示される。まず、第2実施例に
おける文書の印刷イメージの表示方法について以下に説
明する。
In the second embodiment, a print image of a document is displayed on the CRT 8. First, a method of displaying a print image of a document in the second embodiment will be described below.

【0064】図8に、第2実施例における文書メモリ
(RAM3)に格納される情報のうち、文書の印刷イメ
ージ表示の際に必要な情報の例を示す。図8に示すよう
に、RAM3は例えば各頁を構成する各行の印刷ドット
位置を示す頁情報51を有し、また、所定頁の各行単位
に行書式情報52及び行内文字データ53を有する。
FIG. 8 shows an example of information necessary for displaying a print image of a document among information stored in the document memory (RAM 3) in the second embodiment. As shown in FIG. 8, the RAM 3 has, for example, page information 51 indicating a print dot position of each line constituting each page, and has line format information 52 and in-line character data 53 for each line of a predetermined page.

【0065】ここで、行書式情報52の詳細を図9に示
す。図9に示されるように、行書式情報52は該行書式
情報の属性を示すフラグ31,例えば0.1mm単位に
よる行ピッチ指定値32,行ピッチ指定値32を印刷部
12において印刷する際に印刷ピッチ値に変換した印刷
行ピッチ値33,該行に関する各種修飾情報を示す行修
飾情報領域64を有している。
Here, the details of the row format information 52 are shown in FIG. As shown in FIG. 9, the line format information 52 includes a flag 31 indicating the attribute of the line format information, for example, a line pitch designation value 32 in units of 0.1 mm, and a line pitch designation value 32 when the printing unit 12 prints. It has a print line pitch value 33 converted to a print pitch value and a line modification information area 64 indicating various modification information relating to the line.

【0066】例えば文書初期化や文書呼び出し、行削
除、行挿入、行ピッチ変更、行移動等、行位置に変更が
加わる編集操作を行う度毎に、変更される先頭行から文
末行までの行書式情報52内の行ピッチ指定値32ある
いは印刷行ピッチ指定値33を変更していく。この過程
で頁情報51やその他の文書書式情報等を参照すること
により、当該行が頁の境を越える行であると判定された
場合には、該当する頁情報51において当該行の行位置
(行番号)を更新する。従って、編集処理が終了した時
点でRAM3には頁単位及び行単位の印刷時の位置情報
が記憶されている。CRT8において表示を行う際に
は、これら頁情報51及び行書式情報52,行内文字デ
ータ53を参照する。
Each time an editing operation that changes the line position is performed, such as initializing a document, calling a document, deleting a line, inserting a line, changing a line pitch, and moving a line, a line from the first line to the last line of the sentence is changed. The designated line pitch value 32 or the designated printed line pitch value 33 in the format information 52 is changed. In this process, by referring to the page information 51 and other document format information, if it is determined that the line is a line that crosses a page boundary, the line position of the line in the corresponding page information 51 ( Line number). Therefore, when the editing process is completed, the position information at the time of printing is stored in the RAM 3 in page units and line units. When displaying on the CRT 8, the page information 51, the line format information 52, and the in-line character data 53 are referred to.

【0067】図10に、第2実施例における比例行変更
処理のフローチャートを示し、以下説明する。
FIG. 10 shows a flowchart of the proportional row changing process in the second embodiment, which will be described below.

【0068】まず、通常の文書編集作業中に、ステップ
S21において比例行変更機能が指示されたか否かの判
定を行う。即ち、キーボード6から「比例行変更」キー
が入力されたか否かを判定する。ここで、「比例行変
更」キー以外のキーが入力された場合には、処理はステ
ップS22に進んで、比例行変更以外の初期起動又は他
機能等の、指定された処理を行い、ステップS6で該当
する表示を行う。尚、初期起動とは、第2実施例におけ
る文書処理装置の立ち上げ時にROM2に記憶されてい
る初期プログラムが「初期起動」キーの押下を仮想的に
CPU1に送出されることによる。
First, during a normal document editing operation, it is determined in step S21 whether or not the proportional line change function has been instructed. That is, it is determined whether the “proportional line change” key has been input from the keyboard 6. Here, if a key other than the “proportional line change” key is input, the process proceeds to step S22, where a designated process such as initial startup or other functions other than the proportional line change is performed, and step S6 is performed. Perform the corresponding display with. Note that the initial startup is based on the fact that the initial program stored in the ROM 2 is virtually sent to the CPU 1 when the "initial startup" key is pressed when the document processing apparatus according to the second embodiment is started.

【0069】一方、ステップS21において比例行変更
機能が選択された場合にはステップS23に進み、変更
したい行の範囲を指定する元範囲指定処理を行う。比例
行変更対象の文書を図11とすると、処理の始点の行と
してP1にカーソルを合わせてキーボード6から「実
行」キーを押下し、次に文末方向で処理の終点の行とし
てP2にカーソルを合わせ、同様に「実行」キーを押下
する。このようにして比例行変更範囲が設定され、処理
の始点行位置(P1)及び終点行位置(P2)はRAM
3に格納される。
On the other hand, if the proportional row change function is selected in step S21, the flow advances to step S23 to perform an original range designating process for designating the range of the row to be changed. Assuming that the document for which the proportional line is to be changed is shown in FIG. 11, the cursor is moved to P1 as the starting line of the process, the "execute" key is pressed from the keyboard 6, and the cursor is moved to P2 as the ending line of the process in the sentence end direction. And press the "Execute" key in the same way. In this way, the proportional line change range is set, and the start line position (P1) and the end line position (P2) of the process are stored in the RAM.
3 is stored.

【0070】次に処理はステップS24に進み、ステッ
プS23で指定した終点行P2を文書中のどの行位置ま
で変更するかを指定する(変更先指定処理)。変更先の
行として例えば図11に示すP3にカーソルを合わせ、
「実行」キーを押下することにより、変更先行位置(P
3)がRAM3に格納される。
Next, the process proceeds to step S24, and specifies to which line position in the document the end point line P2 specified in step S23 is to be changed (change destination specifying process). Move the cursor to P3 shown in FIG.
By pressing the “execute” key, the change preceding position (P
3) is stored in the RAM 3.

【0071】そしてステップS25において、指定され
た変更範囲に不都合がないかを調べ(範囲確認処理)、
不都合があった場合には、エラーとして行ピッチ変更処
理を行わない。
In step S25, it is checked whether or not the designated change range is inconvenient (range confirmation processing).
If there is an inconvenience, the line pitch changing process is not performed as an error.

【0072】ここで、ステップS25における範囲確認
処理について、詳細に説明する。
Here, the range confirmation processing in step S25 will be described in detail.

【0073】説明を簡便にするために、ステップS23
において範囲指定された始点行位置をa,終点行位置を
bとし、ステップS24において指定された変更先行位
置をcとする。第2実施例における比例行変更処理にお
いては、まず指定された各行位置が適切であるか否かを
判定する。例えば、a>cである場合には、範囲行の始
点と終点を反対にして更に行ピッチを変更させる処理と
なるため、本実施例においてはこれをエラーとし、再度
変更先行位置を指定させるために、処理をステップS2
4に戻す。尚、b=cである場合には、行ピッチの変更
は不用であるとみなされるが、正常であるとして行ピッ
チ変更を行わずに終了する。また、aからbの範囲内に
改頁行等、行ピッチ変更不可能な行が存在する場合にも
エラーとし、ステップS24に戻る。
In order to simplify the explanation, step S23
Let a be the start line position and b be the end line position specified in the range, and c be the change preceding position specified in step S24. In the proportional line change process in the second embodiment, it is first determined whether or not each specified line position is appropriate. For example, when a> c, the start and end points of the range line are reversed to further change the line pitch. In this embodiment, this is regarded as an error, and the change preceding position is designated again. In step S2,
Return to 4. If b = c, the change of the line pitch is considered to be unnecessary, but it is determined that the change is normal, and the process ends without changing the line pitch. Also, if there is a line whose line pitch cannot be changed, such as a page break line, within the range from a to b, an error is determined, and the process returns to step S24.

【0074】ステップS25において変更範囲に不都合
がないと判断されると、ステップS26において行ピッ
チ変更処理を行う。即ち、ステップS23で指定した範
囲の行のうちで、始点行位置を固定として終点行位置を
ステップS24で指定した変更先行位置に変更する。こ
のとき、ステップS23で指定した範囲内の行にもこの
行ピッチ変更結果を反映させることにより、図11に示
す文書が図12に示す様に相対的な行ピッチを保つ様
に、変換される。
If it is determined in step S25 that there is no inconvenience in the change range, a line pitch changing process is performed in step S26. That is, among the lines in the range specified in step S23, the start line position is fixed, and the end line position is changed to the change preceding position specified in step S24. At this time, the document shown in FIG. 11 is converted so as to maintain the relative line pitch as shown in FIG. 12 by reflecting the line pitch change result on the lines within the range designated in step S23. .

【0075】上述したステップS25の例に基づいて説
明すると、aからbの範囲にエラーがなければ、行書式
情報を参照することにより、aから(b―1)までの範
囲(第1の行群)内の各行の印刷行ピッチ値63を加算
し、その総計をDとする。同様に、aから(c―1)ま
での範囲(第2の行群)内の各行の印刷行ピッチ値63
を加算し、その総計をEとする。従って、変更前の第1
の行群の範囲と、変更後の第2の行群の範囲との比例係
数E/Dを得ることができる。この比例係数E/Dを第
1の行群内の各行の行ピッチ指定値62に乗算すること
により行ピッチ指定値62を更新し、更に、更新された
行ピッチ指定値62を印刷行ピッチ値63に変換して、
印刷行ピッチ値63を更新する。
To explain based on the example of step S25 described above, if there is no error in the range from a to b, the range from a to (b-1) (the first line) is referred to by referring to the line format information. The print line pitch value 63 of each line in the group) is added, and the total is set to D. Similarly, the print line pitch value 63 of each line in the range from a to (c-1) (second line group)
Are added, and the total is set to E. Therefore, the first
And the proportional coefficient E / D between the range of the second row group after the change and the range of the second row group can be obtained. The line pitch designation value 62 is updated by multiplying the proportional coefficient E / D by the line pitch designation value 62 of each line in the first line group, and the updated line pitch designation value 62 is further updated with the print line pitch value. Convert to 63,
The print line pitch value 63 is updated.

【0076】以上説明したようにして行書式情報の更新
が終了するとステップS27に進み、文書情報の印刷イ
メージをCRT8に表示する。行方向を印刷イメージで
表示するためには、図9に示す行書式情報52内の印刷
行ピッチ値63をCRT8での表示解像度に応じて変換
し、画面上における表示位置を算出することにより、各
行を表示する。
When the updating of the line format information is completed as described above, the flow advances to step S27 to display a print image of the document information on the CRT 8. In order to display the line direction as a print image, the print line pitch value 63 in the line format information 52 shown in FIG. 9 is converted according to the display resolution on the CRT 8, and the display position on the screen is calculated. Display each line.

【0077】以上説明したように第2実施例によれば、
表示画面上の任意の第1の範囲がその複数の行ピッチ比
を保ったまま第2の範囲になるように行ピッチが自動設
定されるため、行ピッチ変更のために画面切替えやレイ
アウト表示等を駆使して編集作業を行う必要がなくな
り、編集作業に要する時間が軽減される。
As described above, according to the second embodiment,
Since the line pitch is automatically set so that an arbitrary first range on the display screen becomes the second range while maintaining the plurality of line pitch ratios, screen switching or layout display for changing the line pitch is performed. It is not necessary to perform editing work by making full use of, and the time required for editing work is reduced.

【0078】<その他の適用例>上述した第2実施例に
おいては、行方向のみを印刷イメージで表示する例につ
いて説明を行ったが、本発明はこの例に限定されるもの
ではなく、もちろん桁方向についても印刷イメージによ
って表示する場合にも適用でき、また、印刷イメージが
編集可能である装置についても適用できる。また、変更
元範囲の指定は、始点行を指定した後、文末方向に終点
行を指定したが、もちろん文頭方向に終点行を指定する
ようにしてもかまわないし、変更先行の指定は変更元範
囲を指定後、文頭方向と文末方向とのどちら側を変更す
るかを指定できるようにしても良い。
<Other Application Examples> In the above-described second embodiment, an example has been described in which only the line direction is displayed as a print image. However, the present invention is not limited to this example. The present invention can also be applied to the case where the direction is displayed by a print image, and can also be applied to a device capable of editing the print image. In addition, in the specification of the change source range, the start line is specified, and then the end line is specified in the end direction of the sentence. However, the end line may be specified in the start direction of the sentence. After specifying, it may be possible to specify which side of the sentence head or the end of the sentence is to be changed.

【0079】また、表示されている文書において変更元
範囲指定及び変更先指定はカーソルにより行う例につい
て説明を行ったが、例えばポインティングデバイス13
により、文書上の特定の位置を指定することにより行っ
ても良い。
Also, an example has been described in which the change source range and the change destination are specified using the cursor in the displayed document.
May be performed by designating a specific position on the document.

【0080】また更に、第2実施例においては第1の行
群と第2の行群との差分の配分方法は比例配分方式を用
いたが、例えばロゴピッチ指定やミリ指定された行等の
特定の行に対しては配分を行わない様にしても良い。
Further, in the second embodiment, the proportional distribution method is used for the method of distributing the difference between the first row group and the second row group. The allocation may not be performed for the row of.

【0081】尚、本発明は複数の機器から構成されるシ
ステムに適用しても1つの機器から成る装置に適用して
も良い。また、本発明は、システム或いは装置にプログ
ラムを供給することによって達成される場合にも適用で
きることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【発明の効果】以上説明したように本発明によれば、文
書データにおいて、所定の制御マークにより行方向にお
ける文字位置が変更される場合に、該制御マークの桁数
と該制御マークが位置する領域の桁数が所定の桁数条件
を満たしていれば、最適な印刷イメージへの自動展開を
行うことができる。
As described above, according to the present invention, when the character position in the line direction is changed by a predetermined control mark in the document data, the number of digits of the control mark and the position of the control mark are located. If the number of digits of the area satisfies a predetermined number of digits condition, automatic development into an optimal print image can be performed.

【0082】また、表示画面上の複数行を指定された展
開範囲へ展開する場合に、該複数行の各行ピッチが、そ
の相対的な割合を保つように自動設定される。
When a plurality of lines on the display screen are expanded to a specified expansion range, each line pitch of the plurality of lines is automatically set so as to maintain a relative ratio.

【0083】従って、行方向における文字位置の制御が
簡単な操作で行える文書処理装置及び方法を提供するこ
とができる。
Accordingly, it is possible to provide a document processing apparatus and method capable of controlling the character position in the line direction by a simple operation.

【0084】[0084]

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

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

【図2】本実施例における印刷処理を示すフローチャー
トである。
FIG. 2 is a flowchart illustrating a printing process according to the embodiment.

【図3】本実施例における印刷範囲展開処理を示すフロ
ーチャートである。
FIG. 3 is a flowchart illustrating a print range developing process according to the embodiment.

【図4】本実施例における組テーブルの一例を示す図で
ある。
FIG. 4 is a diagram illustrating an example of a set table according to the embodiment;

【図5】本実施例における均等割り付け処理前の文書内
容例を示す図である。
FIG. 5 is a diagram illustrating an example of a document content before an even allocation process according to the embodiment.

【図6】本実施例におけるインデックスと処理範囲テー
ブルの一例を示す図である。
FIG. 6 is a diagram illustrating an example of an index and a processing range table according to the present embodiment.

【図7】本実施例における均等割り付け処理後の印刷例
を示す図である。
FIG. 7 is a diagram illustrating a print example after an equal layout process according to the embodiment.

【図8】本発明に係る第2実施例における文書メモリに
格納される情報例を示す図である。
FIG. 8 is a diagram showing an example of information stored in a document memory in a second embodiment according to the present invention.

【図9】第2実施例における行書式情報を示す図であ
る。
FIG. 9 is a diagram showing line format information in the second embodiment.

【図10】第2実施例における行ピッチ変更処理を示す
フローチャートである。
FIG. 10 is a flowchart illustrating a row pitch changing process in the second embodiment.

【図11】第2実施例における行ピッチ変更前の文書を
示す図である。
FIG. 11 is a diagram illustrating a document before a line pitch is changed in the second embodiment.

【図12】第2実施例における行ピッチ変更後の文書を
示す図である。
FIG. 12 is a diagram illustrating a document after a line pitch is changed in the second embodiment.

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

1 CPU 2 ROM 3 RAM 4 外部ROM 5 キーボード制御部 6 キーボード 7 CRT制御部 8 CRT 9 周辺装置制御部 10 FD 11 HD 12 印刷部 13 ポインティングデバイス 14 システムバス 1 CPU 2 ROM 3 RAM 4 External ROM 5 Keyboard control unit 6 Keyboard 7 CRT control unit 8 CRT 9 Peripheral device control unit 10 FD 11 HD 12 Printing unit 13 Pointing device 14 System bus

Claims (16)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の領域からなる文書データを印刷す
る文書処理装置であって、 前記複数の領域の各領域ごとに、所定の制御マークを検
知する検知手段と、 前記検知手段により所定の制御マークが検知された場合
に、該制御マークの桁数と該制御マークが位置する領域
の桁数が所定の桁数条件を満たすか否かを判断する判断
手段と、 前記判断手段により前記所定の桁数条件を満たすと判断
された場合に、前記制御マークによって指定される文書
データについて行方向の文字位置を制御して印刷イメー
ジに展開する展開手段と、 前記展開手段により展開された文書データを印刷する印
刷手段と、 を有することを特徴とする文書処理装置。
1. A document processing apparatus for printing document data comprising a plurality of areas, a detecting means for detecting a predetermined control mark for each of the plurality of areas, and a predetermined control by the detecting means. When a mark is detected, determining means for determining whether or not the number of digits of the control mark and the number of digits of an area where the control mark is located satisfies a predetermined number of digits condition. When it is determined that the digit number condition is satisfied, the document data specified by the control mark is controlled by controlling the character position in the line direction to expand the print data into a print image. A document processing apparatus, comprising: a printing unit for printing.
【請求項2】 前記展開手段は、前記制御マークで行方
向に囲まれた文書データについて行方向の文字位置を制
御して印刷イメージに展開することを特徴とする請求項
1記載の文書処理装置。
2. The document processing apparatus according to claim 1, wherein the developing unit expands a document image surrounded by the control mark in a line direction by controlling a character position in the line direction. .
【請求項3】 前記所定の桁数条件は、前記制御マーク
の桁数と該制御マークが位置する領域の桁数とが同一で
あること、であることを特徴とする請求項1記載の文書
処理装置。
3. The document according to claim 1, wherein the predetermined number of digits condition is that the number of digits of the control mark is the same as the number of digits of an area where the control mark is located. Processing equipment.
【請求項4】 前記領域は、罫線又はインデントにより
囲まれた領域であることを特徴とする請求項1記載の文
書処理装置。
4. The document processing apparatus according to claim 1, wherein the area is an area surrounded by ruled lines or indents.
【請求項5】 前記制御マークは、桁方向における文字
位置を制御するためのマークであることを特徴とする請
求項1記載の文書処理装置。
5. The document processing apparatus according to claim 1, wherein the control mark is a mark for controlling a character position in a digit direction.
【請求項6】 表示された文書データを処理する文書処
理装置であって、 前記文書データにおいて複数行からなる所定領域の開始
行および終了行を指示する行指示手段と、 前記行指示手段で指示された開始行と終了行で挟まれた
複数行の展開先となる展開範囲を指示する展開範囲指示
手段と、 前記複数行の各行に設定されている行ピッチの割合に基
づいて、該複数行を前記展開範囲に配置する際の各行の
行ピッチを、前記割合を保ちながら更新する行ピッチ更
新手段と、 前記複数行を、前記行ピッチ更新手段で更新された行ピ
ッチで展開する展開手段と、 を有することを特徴とする文書処理装置。
6. A document processing apparatus for processing displayed document data, comprising: a line instructing unit for instructing a start line and an end line of a predetermined area including a plurality of lines in the document data; Expansion range instructing means for instructing a development range to be a development destination of a plurality of lines sandwiched between a set start line and an end line, and the plurality of lines based on a ratio of a line pitch set for each of the plurality of lines. Row pitch updating means for updating the row pitch of each row when arranging in the expansion range while maintaining the ratio, and expansion means for expanding the plurality of rows with the row pitch updated by the row pitch updating means. A document processing device comprising:
【請求項7】 前記行ピッチ更新手段は、前記複数行の
各行に設定されている行ピッチの総和および前記展開範
囲の行方向の長さに基づいて、前記割合を保ちながら各
行の行ピッチを更新することを特徴とする請求項6記載
の文書処理装置。
7. The row pitch updating means, based on a total sum of row pitches set for each of the plurality of rows and a length of the development range in the row direction, updates a row pitch of each row while maintaining the ratio. 7. The document processing apparatus according to claim 6, wherein the document processing apparatus updates the document.
【請求項8】 前記開始行の位置と前記展開範囲の開始
位置とが等しいことを特徴とする請求項6記載の文書処
理装置。
8. The document processing apparatus according to claim 6, wherein the position of the start line is equal to the start position of the development range.
【請求項9】 複数の領域からなる文書データを印刷す
る文書処理方法であって、 前記複数の領域の各領域ごとに、所定の制御マークを検
知する検知工程と、 前記検知工程により所定の制御マークが検知された場合
に、該制御マークの桁数と該制御マークが位置する領域
の桁数が所定の桁数条件を満たすか否かを判断する判断
工程と、 前記判断工程により前記所定の桁数条件を満たすと判断
された場合に、前記制御マークによって指定される文書
データについて行方向の文字位置を制御して印刷イメー
ジに展開する展開工程と、 前記展開工程により展開された文書データを印刷する印
刷工程と、 を有することを特徴とする文書処理装置。
9. A document processing method for printing document data including a plurality of areas, comprising: a detection step of detecting a predetermined control mark for each of the plurality of areas; and a predetermined control by the detection step. When a mark is detected, a determining step of determining whether or not the number of digits of the control mark and the number of digits of an area where the control mark is located satisfies a predetermined number of digits condition. When it is determined that the digit number condition is satisfied, a developing step of controlling the character position in the line direction of the document data specified by the control mark and developing the print data into a print image; and A document processing apparatus, comprising: a printing step of printing.
【請求項10】 前記展開工程においては、前記制御マ
ークで行方向に囲まれた文書データについて行方向の文
字位置を制御して印刷イメージに展開することを特徴と
する請求項9記載の文書処理方法。
10. The document processing according to claim 9, wherein, in the expanding step, the character position in the line direction is controlled for the document data surrounded by the control mark in the line direction, and the document data is expanded into a print image. Method.
【請求項11】 前記所定の桁数条件は、前記制御マー
クの桁数と該制御マークが位置する領域の桁数とが同一
であること、であることを特徴とする請求項9記載の文
書処理方法。
11. The document according to claim 9, wherein the predetermined digit number condition is that the digit number of the control mark is the same as the digit number of an area where the control mark is located. Processing method.
【請求項12】 前記領域は、罫線又はインデントによ
り囲まれた領域であることを特徴とする請求項9記載の
文書処理方法。
12. The document processing method according to claim 9, wherein the area is an area surrounded by ruled lines or indents.
【請求項13】 前記制御マークは、桁方向における文
字位置を制御するためのマークであることを特徴とする
請求項9記載の文書処理方法。
13. The document processing method according to claim 9, wherein said control mark is a mark for controlling a character position in a digit direction.
【請求項14】 表示された文書データを処理する文書
処理方法であって、 前記文書データにおいて複数行からなる所定領域の開始
行および終了行を指示する行指示工程と、 前記行指示工程で指示された開始行と終了行で挟まれた
複数行の展開先となる展開範囲を指示する展開範囲指示
工程と、 前記複数行の各行に設定されている行ピッチの割合に基
づいて、該複数行を前記展開範囲に配置する際の各行の
行ピッチを、前記割合を保ちながら更新する行ピッチ更
新工程と、 前記複数行を、前記行ピッチ更新手段で更新された行ピ
ッチで展開する展開工程と、 を有することを特徴とする文書処理方法。
14. A document processing method for processing displayed document data, comprising: a line designating step for designating a start line and an end line of a predetermined area composed of a plurality of lines in the document data; A developing range instructing a developing range to be a developing destination of a plurality of lines sandwiched between the set starting line and the ending line; and, based on a ratio of a line pitch set to each of the plurality of lines, the plurality of lines. A row pitch update step of updating the row pitch of each row when arranging the rows in the development range while maintaining the ratio, and a development step of developing the plurality of rows with the row pitch updated by the row pitch update means. A document processing method comprising:
【請求項15】 前記行ピッチ更新工程においては、前
記複数行の各行に設定されている行ピッチの総和および
前記展開範囲の行方向の長さに基づいて、前記割合を保
ちながら各行の行ピッチを更新することを特徴とする請
求項14記載の文書処理方法。
15. In the row pitch updating step, based on a sum of row pitches set for each of the plurality of rows and a length of the development range in the row direction, the row pitch of each row is maintained while maintaining the ratio. 15. The document processing method according to claim 14, wherein is updated.
【請求項16】 前記開始行の位置と前記展開範囲の開
始位置とが等しいことを特徴とする請求項14記載の文
書処理方法。
16. The document processing method according to claim 14, wherein a position of the start line is equal to a start position of the expansion range.
JP27735994A 1994-11-11 1994-11-11 Document processing apparatus and method Expired - Fee Related JP3226735B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27735994A JP3226735B2 (en) 1994-11-11 1994-11-11 Document processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27735994A JP3226735B2 (en) 1994-11-11 1994-11-11 Document processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH08132704A JPH08132704A (en) 1996-05-28
JP3226735B2 true JP3226735B2 (en) 2001-11-05

Family

ID=17582431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27735994A Expired - Fee Related JP3226735B2 (en) 1994-11-11 1994-11-11 Document processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3226735B2 (en)

Also Published As

Publication number Publication date
JPH08132704A (en) 1996-05-28

Similar Documents

Publication Publication Date Title
JPH0464314B2 (en)
JP3226735B2 (en) Document processing apparatus and method
JPH0616280B2 (en) Document processor
JP2547719B2 (en) Document processing device
JPH0746352B2 (en) Font conversion method
JPH0623951B2 (en) Document creation device
JPH0522933B2 (en)
JP3171557B2 (en) Document creation device
JPS63108430A (en) Document display system
JPH08161308A (en) Document processor
JPH06130930A (en) Method and device for generating bit image data
JP2721339B2 (en) Document processing device
JP3143503B2 (en) Image processing method and apparatus
JP2907425B2 (en) Character processor
JP2728916B2 (en) Character processing apparatus and method
JPH028593B2 (en)
JPH023714B2 (en)
JPH07230453A (en) Processor and method for document processing
JPH08281899A (en) Automatic composing apparatus
JPH0679311B2 (en) Ruled line processing method
JPH04282746A (en) Document preparing device
JPH04250081A (en) Character processing method
JPH01229650A (en) Control method in alphabetic printing
JPH021676B2 (en)
JPH0227698B2 (en)

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010806

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070831

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080831

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100831

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110831

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120831

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120831

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130831

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees