JPH0522255B2 - - Google Patents

Info

Publication number
JPH0522255B2
JPH0522255B2 JP58060907A JP6090783A JPH0522255B2 JP H0522255 B2 JPH0522255 B2 JP H0522255B2 JP 58060907 A JP58060907 A JP 58060907A JP 6090783 A JP6090783 A JP 6090783A JP H0522255 B2 JPH0522255 B2 JP H0522255B2
Authority
JP
Japan
Prior art keywords
code
line
character
pattern
characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP58060907A
Other languages
Japanese (ja)
Other versions
JPS59186038A (en
Inventor
Hiroshi Kogyo
Kyoshi Masuda
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58060907A priority Critical patent/JPS59186038A/en
Publication of JPS59186038A publication Critical patent/JPS59186038A/en
Publication of JPH0522255B2 publication Critical patent/JPH0522255B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、行末の印字揃えを行なう印刷制御方
法に係り、日本語入力編集装置での印刷におい
て、特に、禁則処理によつて行末が不揃いになる
ということにたいし、行末調整用の情報により、
文字、記号などの符号の形状、大きさに合致した
文字などの符号間隔の調整、文字などの符号パタ
ーンの削除により行末を揃え、品質の高い印刷物
を得ることができるようにした、行末の印字揃え
を行なう印刷制御方法に関するものである。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a print control method for aligning characters at the end of a line, and particularly for printing with a Japanese input/editing device, when the end of a line is unevenly aligned due to prohibition processing. With the information for adjusting the end of the line,
End-of-line printing that aligns the end of a line by adjusting the spacing of characters, etc., to match the shape and size of characters, symbols, etc., and deleting code patterns such as characters, making it possible to obtain high-quality printed matter. The present invention relates to a print control method for performing alignment.

〔従来技術〕[Prior art]

従来の印刷において、前記行末の不揃いは、一
般に、禁則処理を行なえば避けることができなか
つた。
In conventional printing, the unevenness of the end of lines cannot generally be avoided by performing prohibition processing.

すなわち、行頭禁則文字(たとえば句読点)
は、1字、行末よりはみ出し、禁則領域と称する
領域に印刷し、また、行末禁則文字(たとえば、
始め括弧「)は、行末、1字あけて次行の先頭に
配置していた。
i.e. non-starting characters (e.g. punctuation marks)
is a single character that extends beyond the end of a line and is printed in an area called a prohibited area, and also prints a character that is prohibited at the end of a line (for example,
The opening parenthesis () was placed at the end of a line, one character apart, and at the beginning of the next line.

このように、行末の不揃いは、印字が1文字の
大きさ、文字間隔を固定的に扱うために生じてい
たものである。
In this way, the irregularities at the end of lines occur because the size of one character and the spacing between characters are fixed in printing.

これに対処するために、簡単な方法として、禁
則処理を行なわないで文書を作成する日本語入力
編集装置もある。
To deal with this problem, there is a Japanese input/editing device that creates a document without performing Kinsoku processing as a simple method.

また、単に指定された範囲の文字を、文字間隔
を等しく印刷する機能は、両端揃えや均等分割と
いう機能名で一部の日本語入力編集装置にはあ
る。
Additionally, some Japanese input/editing devices have a function that simply prints characters in a specified range with equal character spacing, under the name of just-justify or even-split.

しかしながら、これらの方法では、文字間隔を
拡げても、狭めることはできないし、また文字パ
ターンを削つて調整するなどということは全く不
可能なものである。
However, with these methods, even if the character spacing is widened, it is not possible to narrow it, and it is completely impossible to adjust the character pattern by trimming it.

さらに、文字間隔を拡げる際にも、文字の大き
さ、形状に無関係に、一律に行なうのみであると
いう欠点を有するものであつた。
Furthermore, when widening the character spacing, it is only done uniformly, regardless of the size and shape of the characters.

なお、1印刷行中の行長揃えに関する従来技術
は、前記以外に、たとえば特開昭58−203079号公
報にも記載されている。
In addition to the above-mentioned prior art related to alignment of line lengths in one printed line, for example, it is also described in Japanese Patent Application Laid-Open No. 58-203079.

〔発明の目的〕[Purpose of the invention]

本発明は、日本語入力編集装置の編集において
作成された文書の印刷において、禁則処理によつ
て生じた行末の不揃いを、行末を揃える際に一律
に調整するのではなく、文字の大きさ、形状を参
照し、その文字の大きさ、形状に合つた調整を行
ない、見易く、品質の高い印刷物を提供すること
ができる、本発明に独自の手法による行末の印字
揃えを行なう印刷制御方法の提供を、その目的と
するものである。
In the printing of a document created by editing using a Japanese input/editing device, the present invention solves the problem of uneven line endings caused by prohibition processing, rather than uniformly adjusting the endings of the lines. To provide a print control method for aligning end-of-line print using a method unique to the present invention, which can provide easy-to-read, high-quality printed matter by referring to the shape and making adjustments to match the size and shape of the characters. Its purpose is to

〔発明の概要〕[Summary of the invention]

本発明に係る行末の印字揃えを行なう印刷制御
方法は、符号入力手段と、符号の編集、校正手段
と、符号の入力、編集状態を表示する手段と、作
成された文書の格納、記憶手段と、符号パターン
を記憶、発生させる手段と、作成された文書を印
刷する手段とを備えた日本語入力編集装置におい
て、印刷用の符号データを印刷用パターンデータ
に展開する際に、符号の大きさ、形状よりの符号
間隔の拡大、縮小の可否、符号パターンの削除
等、予め定められた符号に関する行末調整用の情
報を参照して、符号毎に異なる大きさで符号パタ
ーンの間隔を不均一にして(拡げたり狭めたりし
て)印刷用パターンを作成し、これにより禁則処
理によつて1行の符号数に差異があつても行末を
揃えて印刷するものであつて、しかも印刷すべき
行の1行分の符号データと、次行先頭符号とを受
け取つて符号パターン作成部において1行分の符
号数を数え、当該1行分の符号数が文書管理情報
の1行分の符号数より1符号足りない場合には、
次行先頭符号を禁則情報を参照して判定し、当該
次行先頭符号が行末禁則符号の場合にのみ、各符
号の調整情報を参照して、符号パターンアドレス
を介した符号パターンデータからの符号の符号間
隔を拡げる、符号間隔の調整を行ない、行末を揃
えて印刷パターンデータを作成し、また、1符号
多い場合には、無条件に、各符号の調整情報を参
照して、符号パターンアドレスを介した符号パタ
ーンデータからの符号間隔を狭め、必要ならば印
刷パターンを削り、これにより符号パターンデー
タの内、印刷の結果文字として認識される部分を
均等に配置するとともに、行末を揃えて印刷パタ
ーンデータを作成し、その印刷パターンデータに
よつて印刷装置により印刷することを特徴とする
ものである。
A print control method for aligning end-of-line printing according to the present invention includes a code input means, a code editing and proofreading means, a code input and editing state displaying means, and a storage and storage means for a created document. , in a Japanese input/editing device equipped with means for storing and generating code patterns and means for printing the created document, when developing code data for printing into pattern data for printing, the size of the code is , the possibility of expanding or reducing the code spacing based on the shape, deleting code patterns, etc. Refers to information for line end adjustment related to predetermined codes, and makes the spacing between code patterns uneven with different sizes for each code. A printing pattern is created by widening or narrowing the pattern, and even if there is a difference in the number of codes in one line due to the Kinsoku processing, the line ends are aligned and printed. The code data for one line and the first code of the next line are received, the code pattern creation unit counts the number of codes for one line, and the number of codes for one line is determined from the number of codes for one line of document management information. If one symbol is missing,
The next line leading code is determined by referring to the prohibition information, and only when the next line leading code is a line end prohibition code, the code from the code pattern data via the code pattern address is determined by referring to the adjustment information of each code. Create print pattern data by widening the code spacing, adjusting the code spacing, and aligning the end of the line.If there is one more code, unconditionally refer to the adjustment information for each code and set the code pattern address. Narrow the code spacing from the code pattern data via , and delete the print pattern if necessary.This allows the parts of the code pattern data that are recognized as characters as a result of printing to be evenly spaced, and the ends of the lines are aligned and printed. This method is characterized in that pattern data is created and printing is performed by a printing device using the print pattern data.

〔発明の実施例〕[Embodiments of the invention]

本発明に係る行末の印字揃えを行なう印刷制御
方法の一実施例を、各図を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a print control method for aligning end-of-line print according to the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例に係る行末の印字
揃えを行なう印刷制御方法の実施に供せられる日
本語入力編集装置のブロツク図、第2図のイ,ロ
は、禁則文字の例示図、第3図は、行末不揃えの
印刷例示図、第4図のイ,ロは、24×24ドツトの
文字パターン例示図、第5図のイ,ロは、本発明
の一実施例に係るものにおける印刷用文字制御デ
ータテーブルと区・点コードの例示図、第6図
は、同じく印刷パターンデータ作成に係る制御ブ
ロツク図、第7図は、その印刷パターン展開例示
図、第8図は、その行末調整のためのパラメータ
テーブル例示図、第9図は、その印刷パターン展
開の概略流れ図、第10図のイ〜ハは、その文字
間隔を拡げるときの処理に係る流れ図、第11図
のイ〜ニは、その文字間隔を狭めたり、文字パタ
ーンを削るときの処理に係る流れ図である。
FIG. 1 is a block diagram of a Japanese input/editing device used to implement a print control method for aligning characters at the end of a line according to an embodiment of the present invention, and A and B in FIG. 2 are examples of prohibited characters. Figure 3 shows an example of printing with uneven line ends; Figures 4A and 4B show examples of 24 x 24 dot character patterns; Figures 5A and 5B show an example of printing of the present invention. FIG. 6 is a diagram illustrating a printing character control data table and ku/dot codes in such a system, FIG. 6 is a control block diagram similarly related to the creation of print pattern data, FIG. 7 is a diagram illustrating development of the print pattern, and FIG. , FIG. 9 is a schematic flowchart of the printing pattern development, FIG. A to D are flowcharts related to processing when narrowing the character spacing or deleting the character pattern.

まず、第1図で、1は中央処理装置、2はラン
ダムアクセスメモリで、日本語入力、編集、印刷
等のプログラム、本実施例に係る行末調整用をは
じめ各種のデータ等を保持するようにしたもので
あり、3はかな漢字変換用辞書、4は、作成され
た文書の格納、記憶手段に係る、記憶装置で、入
力された文書の記憶、プログラムやデータ、辞書
を記憶しているものである。5は、符号パターン
を記憶、発生させる手段に係る、表示や印刷用の
文字発生回路、6は、符号入力手段に係るキーボ
ード、7は、符号の入力、編集状態を表示する手
段に係る表示装置、8は、作成された文書を印刷
する手段に係る印刷装置である。
First, in FIG. 1, 1 is a central processing unit, and 2 is a random access memory, which holds programs for Japanese input, editing, printing, etc., as well as various data such as line end adjustment according to this embodiment. 3 is a dictionary for ephemeral kanji conversion, and 4 is a storage device related to the storage and storage means of created documents, which stores input documents, programs, data, and dictionaries. be. Reference numeral 5 refers to a character generation circuit for display and printing, which is a means for storing and generating code patterns; 6 is a keyboard, which is a code input means; and 7 is a display device, which is a means for displaying code input and editing status. , 8 is a printing device for printing the created document.

しかして、上記の中央処理装置1と、ランダス
アクセスメモリ2とは、符号の編集、校正手段に
係るものである。
The above-mentioned central processing unit 1 and random access memory 2 are related to code editing and proofreading means.

また、第2図に示す禁則文字の例において、イ
は行頭禁則文字の例示で、この行頭禁則文字と
は、行頭への配置が不可の文字であり、行頭で入
力しても、前行へ繰り上り、前行の行末の後部分
の禁則領域(ただし、1文字分)へ配置されるも
のである。
In addition, in the example of prohibited characters shown in Figure 2, A is an example of a character that cannot be placed at the beginning of a line, and a character that cannot be placed at the beginning of a line is a character that cannot be placed at the beginning of a line. It is carried over and placed in the prohibited area (one character) after the end of the previous line.

他方、同図ロは行末禁則文字の例示で、この行
末禁則文字とは、行末への配置が不可の文字であ
り、行末で入力しても、次行の先頭へ配置される
文字のことである。
On the other hand, Figure B is an example of a character that cannot be placed at the end of a line. A character that cannot be placed at the end of a line is a character that cannot be placed at the end of a line, and even if input at the end of a line, it will be placed at the beginning of the next line. be.

しかして、説明にあたり、上記を含み、本来の
文字、および記号などの符号を、文字と称するこ
ととする。
Therefore, in the description, original characters and codes such as symbols, including the above, will be referred to as characters.

そして、第3図は、禁則処理を行なつた文章で
の行末揃えを行なわない状態を示すものである。
FIG. 3 shows a state in which line end alignment is not performed in a sentence that has been subjected to the prohibition process.

なお、文字には、24×24ドツトの全角文字、こ
の半分の幅の半角文字、倍幅の文字等があるが、
以下の説明では、すべて全角文字を例に説明して
も、本発明に係るものの一般性を損なわないの
で、以下、全角文字の例で説明することとする。
In addition, the characters include full-width characters of 24 x 24 dots, half-width characters of half this width, double-width characters, etc.
In the following description, even if full-width characters are used as an example, the generality of the present invention will not be lost, so the description will be made using full-width characters as an example.

第4図のイ,ロは、本実施例で用いた24×24ド
ツトの文字パターン例を示すものである。
A and B in FIG. 4 show an example of a 24×24 dot character pattern used in this embodiment.

すなわち、文字のパターンの大きさ、形状から
分類すれば、次のように分類される。
That is, if they are classified based on the size and shape of the character pattern, they are classified as follows.

(a) 第4図イのイ−1の漢字のように、ほぼ24ド
ツト幅の文字。
(a) A character approximately 24 dots wide, like the kanji character A-1 in Figure 4 A.

(b) 第4図のイのイ−2,イ−3のひらがな、カ
タカナのように、ほぼ20ドツト幅の文字。
(b) Characters approximately 20 dots wide, like Hiragana and Katakana in A-2 and A-3 in Figure 4.

(c) 第4図ロのロ−1,ロ−2,ロ−3の小文字
のよ、ツや数字の2のように、ほぼ15ドツト幅
の文字。
(c) Characters approximately 15 dots wide, such as the lowercase letters in rows 1, 2, and 3 in Figure 4, such as the tsu and the number 2.

(d) 第4図ロのロ−4,ロ−5の括弧や読点のよ
うに、10ドツト幅以下で、しかも片側に寄つて
いる文字。
(d) Characters that are less than 10 dots wide and are closer to one side, such as the brackets and commas in rows 4 and 5 in Figure 4 (b).

これらの分類から、行末調整のため、文字間隔
を拡げる必要があれば、前記分類aの文字で、文
字間隔を狭めるなら、分類c,dの文字で行なつ
た方が、より望ましいことがわかるものである。
From these classifications, it can be seen that if it is necessary to widen the character spacing to adjust the end of a line, it is better to do so with the characters of category a, and if the character spacing needs to be narrowed, it is better to do so with the characters of categories c and d. It is something.

次に、第5図のイは、行末調整情報を含む、本
実施例に係る印刷用の文字制御データテーブルを
示すものである。
Next, A in FIG. 5 shows a character control data table for printing according to this embodiment, which includes line end adjustment information.

文字コードは、文字の内部表現形式で、本実施
例では、図示ロのJISの区・点コードを用いてい
る。そして、禁則情報は、該コードの文字が行頭
禁則、行末禁則文字等であることを示している。
The character code is an internal representation format of a character, and in this embodiment, the JIS ku/point code shown in (b) is used. The prohibition information indicates that the character of the code is prohibited at the beginning of a line, a character prohibited at the end of a line, or the like.

調整情報については、同図ロをあわせ詳しく説
明すると、次のとおりである。
A detailed explanation of the adjustment information is as follows, including the figure (b).

調整不可の文字は、文字間隔を拡げたり、狭め
たりすることのできない文字である。
Non-adjustable characters are characters whose character spacing cannot be increased or decreased.

たとえば、複数文字で1パターンを表現する、
たとえば会社独自のマークのようなロゴ等の特殊
な文字である。
For example, expressing one pattern with multiple characters,
For example, it is a special character such as a logo such as a company's own mark.

分類1は、さきに述べた分類aの漢字のよう
に、ほぼ24ドツト幅を使用している文字で、文字
間隔を拡げることはできても、狭めるときは、文
字間隔零までで、24ドツト幅の文字パターンは削
れない文字である。
Class 1 is a character that uses a width of approximately 24 dots, such as the kanji of class a mentioned earlier, and even if the character spacing can be increased, when narrowing it, the character spacing is up to zero, and the width is 24 dots. The width character pattern is a character that cannot be removed.

分類2は、さきに述べた分類bの、ひらがなや
カタカナの文字で、文字間隔を拡げることも、狭
めることもでき、かつ文字パターン自身も左端、
右端の各々1ドツトを削れる文字である。
Class 2 is the hiragana and katakana characters of class b mentioned earlier, in which the character spacing can be widened or narrowed, and the character pattern itself is located at the left edge,
These are characters that allow you to remove one dot from each on the right edge.

分類3は、さきに述べた分類cの小文字“ツ”
や“よ”、数字2のような文字で、文字間隔は拡
げないで、狭めるときは、文字間隔だけでなく、
文字の左右各々2ドツトまでなら削つてもよい文
字である。
Category 3 is the lowercase letter “tsu” of category c mentioned earlier.
When narrowing the spacing of characters like ``,'', or the number 2, instead of widening them, you should not only narrow the spacing between the letters, but also the spacing between the letters.
It is a character that may be deleted up to 2 dots on each side of the character.

分類4は、さきに述べた分類dの、括弧のよう
な文字で、文字間隔を拡げることは禁止し、狭め
るときは文字間隔だけでなく、文字の左側を4,
6,8,12ドツト等の単位で削つてよい文字であ
る。
Class 4 is the bracket-like character of Class d mentioned earlier, and it is prohibited to widen the character spacing, and when narrowing it, not only the character spacing but also the left side of the character is
It is a character that can be cut in units of 6, 8, 12 dots, etc.

分類5は、さきに述べた分類dの読点のような
文字で、前記の分類4と同様の扱いであるが、文
字の右側を削つてよい文字である。
Class 5 is a character like the comma of Class d mentioned earlier, and is handled in the same way as Class 4, but the right side of the character can be cut off.

しかして、第5図のイの文字パターンアドレス
は、該文字の24×24ドツトパターンの格納してあ
る先頭アドレスを示しているものである。
Therefore, the character pattern address A in FIG. 5 indicates the first address where the 24×24 dot pattern of the character is stored.

第6図は、印刷用パターンデータ作成に係る制
御ブロツク図を示すものである。
FIG. 6 shows a control block diagram relating to the creation of printing pattern data.

本実施例では、1行単位の印刷について説明す
る。また、本実施例では、マイクロコンピユータ
で、その制御の機能を実現しているため、以下、
そのプログラムの制御処理の流れとして説明す
る。
In this embodiment, printing in units of one line will be explained. In addition, in this example, the control function is realized by a microcomputer, so the following will be explained below.
The flow of control processing of the program will be explained.

61は、印刷すべき1行分の文字データ、62
は次行先頭文字、63−1,63−2,63−3
は、第5図で述べた禁則情報、調整情報、文字パ
ターンアドレスであり、なお調整情報63−2に
関連するものを、後述する第8図でさらに詳しく
説明する。
61 is character data for one line to be printed, 62
is the first character of the next line, 63-1, 63-2, 63-3
are the prohibition information, adjustment information, and character pattern address described in FIG. 5, and those related to the adjustment information 63-2 will be explained in more detail in FIG. 8, which will be described later.

64は、文書管理データに係る文書管理情報
で、これには印刷すべき当該文書の情報がある。
すなわち、用紙のサイズ、縦、横の用紙方向、印
字の縦書き、横書き、左右上下の余白値や、1行
の文字数、1ページの行数、文字間隔や、行間隔
等、ユーザが当該文書の作成に当つて指定した項
目である。
Reference numeral 64 denotes document management information related to document management data, which includes information about the document to be printed.
In other words, the user can change the paper size, vertical and horizontal paper directions, vertical or horizontal printing, left, right, top and bottom margins, number of characters per line, number of lines per page, character spacing, line spacing, etc. These are the items specified when creating the .

65は文字パターンデータ、66は、文字パタ
ーン作成プログラム60が、前記の諸情報、デー
タ61〜65を参照して作成した結果の1行分の
印刷パターンデータであり、67は印刷装置、6
8は、印刷された出力例を示しているものであ
る。
65 is character pattern data, 66 is one line of print pattern data created by the character pattern creation program 60 with reference to the above-mentioned information and data 61 to 65, 67 is a printing device, 6
8 shows an example of printed output.

しかして、図の一重線矢印は、データの流れ、
二重線矢印は、参照される情報に係るものであ
る。
Therefore, the single line arrow in the diagram indicates the flow of data,
Double-lined arrows relate to referenced information.

本実施例では、文字パターン作成プログラム6
0〜1行分の印刷パターンデータ66までは、日
本語入力編集装置本体内の制御部の中央処理装置
で行ない、次の印刷は、たとえばワイアドツトプ
リンタ、インクジエツトプリンタ、熱転写プリン
タ等のドツトイメージデータでデータの出力が行
なえる装置に係る印刷装置67で行なうものであ
る。
In this embodiment, the character pattern creation program 6
The printing pattern data 66 for 0 to 1 line is performed by the central processing unit of the control unit in the main body of the Japanese input/editing device, and the next printing is performed using dot image data of a wire dot printer, inkjet printer, thermal transfer printer, etc. This is performed by the printing device 67, which is a device capable of outputting data.

また、この印刷装置67の接続については、特
に本発明に係る内容とは係わりがなく、一般に用
いられている接続方法である。さらに、入力編集
等の機能についても、本発明に係るものの内容と
係わりがないので、その記述を省略する。
Furthermore, the connection of the printing device 67 is not particularly related to the content of the present invention, and is a commonly used connection method. Furthermore, since functions such as input editing are not related to the content of the present invention, their description will be omitted.

まず、印刷するに当つて、印刷すべき行の1行
分の文字データ61と次行先頭文字62とを、印
刷プログラムに係る文字パターン作成プログラム
60へ送る。
First, when printing, character data 61 for one line to be printed and the first character 62 of the next line are sent to a character pattern creation program 60 related to the printing program.

文字パターン作成プログラム60では、1行分
の文字数を数えることによつて、行末の調整の要
否を判定する。
The character pattern creation program 60 determines whether or not adjustment at the end of a line is necessary by counting the number of characters in one line.

すなわち、1行分の文字数が、文書管理情報
(以下管理情報と略す。)64の1行分の文字数よ
り1文字多いときと、1文字少ないときに調整処
理が必要となる。ただし、1文字多いときは、無
条件に、1文字少ないときは、次行先頭文字62
が行末禁則文字のときのみである。
That is, adjustment processing is required when the number of characters for one line is one more than the number of characters for one line of document management information (hereinafter referred to as management information) 64, and when it is one less than the number of characters for one line of document management information (hereinafter abbreviated as management information). However, if there is one more character, it is unconditional, and if there is one character less, the first character of the next line is 62.
Only when is a non-end-of-line character.

この判定は、次行先頭文字62の禁則情報63
−1を参照することにより判断できる。
This judgment is based on the prohibition information 63 of the first character 62 of the next line.
This can be determined by referring to -1.

なお、上述の1文字少ないときについては、次
行先頭文字62の判定のみでは決められない場合
もあるが、本発明に係る制御手法内では、そのよ
うな例外の状態については、特に必要がないので
その説明を省略する。
Note that the above-mentioned case where one character is missing may not be determined only by determining the first character 62 of the next line, but within the control method according to the present invention, there is no particular need for such an exceptional state. Therefore, its explanation will be omitted.

ここで、本発明の一実施例に係るものにおける
調整処理を説明する前に、その調整処理を行わな
い、従来一般の技術による1行分の印刷パターン
データの作成方法について、第6図をも参照して
説明することにする。
Before explaining the adjustment process according to an embodiment of the present invention, FIG. I will refer to it and explain it.

すなわち、調整処理を行なわないときの1行分
の印刷パターンデータ66の作成方法について、
以下、簡単に説明する。
That is, regarding the method of creating one line of print pattern data 66 when no adjustment processing is performed,
A brief explanation will be given below.

まず、管理情報64を参照して、文字間隔を求
める。
First, the character spacing is determined by referring to the management information 64.

もし、文字間隔が1/12文字なら、2ドツト(24
ドツト/12)を文字パターンの間に挿入していく
ことにより、文字パターンと2ドツトの文字間隔
との組合せで、1行の文字数分を処理することに
より、1行分の印刷パターンデータ66が作成さ
れる。
If the character spacing is 1/12 characters, then 2 dots (24
By inserting dots/12) between character patterns, one line of print pattern data 66 can be created by processing the number of characters in one line using a combination of character patterns and two-dot character spacing. Created.

このときのパターン例を示すものが第7図であ
る。
FIG. 7 shows an example of the pattern at this time.

しかして、前後するが、文字パターンの格納さ
れているデータの格納構造は、CG(キヤラクタジ
エネレータ)用のROM(リードオンメモリ)と
同様であり、1行分の印刷パターンデータ66作
成時のパターン格納方法は、一般のメモリ間のデ
ータ転送と同様なので、ここでは、その詳述を省
略する(縦書き、横書きの相違により、文字パタ
ーンデータを90°回転等の処理が必要な場合もあ
る。)。
However, the storage structure of the data in which character patterns are stored is similar to that of ROM (read-on memory) for CG (character generator), and when creating the print pattern data 66 for one line. The pattern storage method is the same as that for general data transfer between memories, so we will omit the details here. be.).

また、改行動作等の行間隔の制御についても本
発明に係るものと、特に係わりがないので省略す
ることにする。
Furthermore, control of line spacing such as line feed behavior is not particularly related to the present invention, and will therefore be omitted.

以上に述べたごとく、従来一般には、単に1行
分の文字をパターンに展開して印刷していたた
め、行末が1文字分はみ出たり、足りない状態で
印刷していた。
As described above, in the past, in general, one line of characters was simply developed into a pattern and printed, so the end of the line was printed with one character overflowing or missing.

そのため、1文字多くなる場合に備えて、1行
分の文字数に対して1字分の余裕を有して、印刷
範囲を決めていたものである。逆にいえば1文字
分印刷できる領域を狭めて決めていたことにな
る。
Therefore, in preparation for the case where one more character is added, the printing range was determined by allowing one character for each line of characters. In other words, the area in which one character can be printed is narrowed down.

また、以上の欠点を補うため、文字間隔を一律
に調整して行末を揃えるという方法もある。
Another method to compensate for the above drawbacks is to uniformly adjust the character spacing to align the end of the line.

すなわち、不揃いとなるドツト数を文字間隔で
割り(もちろん、ドツト単位であるので量子化す
る必要はある。)、一律に拡げたり、狭めたりする
方法である。
That is, the number of irregular dots is divided by the character spacing (of course, since it is in units of dots, it is necessary to quantize it) and uniformly widen or narrow the dots.

しかしながら、この方法では、文字の形状、大
きさによつては、文字間隔が狭まり過ぎて、見に
くかつたり(分類1の文字)、拡がり過ぎて、文
字の並びが、まばらに見える(分類3,4,5の
文字)というような問題点があつたものである。
However, with this method, depending on the shape and size of the characters, the spacing between the characters may be too narrow and difficult to read (class 1 characters), or the characters may be too spread out, making the arrangement of characters appear sparse (class 3, 4 and 5).

本実施例に係るものにおいては、これらの状態
の問題点を、次に述べる調整処理によつて解決し
たものであり、一律に調整するのではなく、行末
が揃い、かつ印刷した結果が見易い様に、文字の
大きさ、形状によつて、文字間隔を調整すること
により、これを達成するようにしたものである。
In the case of this embodiment, the problems of these conditions are solved by the adjustment process described below, and instead of uniform adjustment, the line endings are aligned and the printed result is easy to see. This is achieved by adjusting the character spacing depending on the size and shape of the characters.

以下、本発明の一実施例に係る調整処理につい
て、さきの第6図をあわせ、詳細に説明する。
The adjustment process according to an embodiment of the present invention will be described in detail below with reference to FIG. 6.

まず、調整情報63−2で、さきの分類0〜5
に分類された各々の文字は、第8図に示すテーブ
ルにより、具体的な調整のためのパラメータで制
御の内容を定義される。
First, in the adjustment information 63-2, the previous classifications 0 to 5
For each character classified into , the content of control is defined by parameters for specific adjustment according to the table shown in FIG.

さきの第5図に示した各々の分類0〜5に従つ
て、図示のイ項は、文字間隔を拡げるときの優先
度(0は不可)、ロ項は、文字間隔を狭めるとき
の優先度(0は不可)で、その数値の大きい程優
先度は高いものである。
According to each classification 0 to 5 shown in Figure 5 above, the item A in the diagram is the priority when widening the character spacing (0 is not allowed), and the item B is the priority when narrowing the character spacing. (0 is not allowed), and the larger the number, the higher the priority.

また、ハ項は、文字パターンを削るときの削れ
る文字パターンの左側の最大ドツト数が設定さ
れ、ニ項は、文字パターンを削るときの削れる文
字パターンの右側の最大ドツト数が設定されてい
る。分類0は調整不可の文字である。
Furthermore, the C term is set to the maximum number of dots on the left side of the character pattern that can be removed when the character pattern is removed, and the D term is set to the maximum number of dots on the right side of the character pattern that can be removed when the character pattern is removed. Class 0 is a non-adjustable character.

以下の説明に先立ち、その印刷パターン展開の
概略流れ図を示すと、第9図のとおりである。
Prior to the following explanation, a schematic flowchart of the printing pattern development is shown in FIG. 9.

すなわち、既述したように、印刷するに当つ
て、印刷すべき行の1行分の文字データ61と、
次行先頭文字62とを受取り、印刷プログラムに
係る文字パターン作成プログラム60へ送るよう
にする。
That is, as mentioned above, when printing, character data 61 for one line to be printed,
The first character 62 of the next line is received and sent to a character pattern creation program 60 related to the printing program.

次に、この文字パターン作成プログラム60で
は、1行分の文字数をチエツクすることによつ
て、行末の調整の要否を判定するものである。
Next, this character pattern creation program 60 checks the number of characters in one line to determine whether or not adjustment at the end of the line is necessary.

すなわち、当該1行分の文字数が文書管理情報
64の1行分の文字数より、1文字少ない、多
い、あるいは、その他によつて、図示のように、
文字間隔を拡げて印刷パターンデータ66を作成
する、文字間隔を狭め、必要なら文字パターンを
削つて印刷パターンデータ66を作成する、ある
いは文字間隔そのままで印刷パターンデータ66
を作成する等の調整を行なつて、印刷装置67へ
当該印刷パターンデータを出力するようにするも
のである。
That is, depending on whether the number of characters for one line is one character less than or more than the number of characters for one line of the document management information 64, or due to other reasons, as shown in the figure,
Create print pattern data 66 by increasing the character spacing, create print pattern data 66 by narrowing the character spacing and delete the character pattern if necessary, or create print pattern data 66 with the character spacing as is.
The print pattern data is outputted to the printing device 67 by making adjustments such as creating the print pattern data.

まず、1文字少ない場合について説明する。 First, the case where there is one less character will be explained.

すなわち、1文字少ない場合には、次行先頭文
字62が行末禁則文字であるかどうかを、禁則情
報63−1を参照して判断し、禁則文字の場合に
のみ、文字間隔の調整を行なうものである。
That is, if there is one less character, it is determined whether the first character 62 of the next line is a prohibited character at the end of the line by referring to the prohibition information 63-1, and the character spacing is adjusted only if it is a prohibited character. It is.

この場合は、行末に達しないドツト数を各文字
の文字間隔を拡げることにより、1行分の印字パ
ターンデータ66を作成するものである。
In this case, printing pattern data 66 for one line is created by increasing the character spacing between each character by the number of dots that do not reach the end of the line.

すなわち、各文字の調整情報63−2を参照し
て、文字パターンアドレス63−2を介した文字
パターンデータ65からの文字の文字間隔を拡げ
る、文字間隔の調整を行ない、行末を揃えて、1
行分の印刷パターンデータ66を作成するもので
ある。
That is, with reference to the adjustment information 63-2 for each character, the character spacing of the characters from the character pattern data 65 via the character pattern address 63-2 is increased, the character spacing is adjusted, and the end of the line is aligned.
This is to create print pattern data 66 for a line.

この処理に係る流れ図が、第10図のイ〜ハで
ある。
A flow chart related to this process is shown in FIG. 10.

図において、NNは、該当行の文字数、N(I)
は、I回目に調整すべきドツト数、BN(I)は、
分類Iの文字数、A(I)は、I回目の調整文字
数、ただし、A(7),A(8)は、BN(0)を除
く文字での一律調整、のそれぞれを示すものであ
る。
In the figure, NN is the number of characters in the corresponding line, N(I)
is the number of dots to be adjusted for the Ith time, and BN(I) is
The number of characters in classification I, A(I), is the number of characters adjusted for the Ith time. However, A(7) and A(8) indicate uniform adjustment for characters other than BN(0).

また、BBN(I)は、分類Iの当該行のJ番目
の文字までの数、ADOTL(J)は、当該行J番
目の文字の左側調整ドツト数、ADOTR(J)は、
当該行J番目の文字の右側調整ドツト数、
BNALLは、J番目までの文字数からBBN(0)
を除いた数、MOJi(J)は、J番目の文字の分
類NO(0〜5)、のそれぞれを示すものである。
In addition, BBN (I) is the number up to the Jth character in the relevant row of classification I, ADOTL (J) is the number of left adjustment dots of the Jth character in the relevant row, and ADOTR (J) is
Number of adjustment dots on the right side of the Jth character in the relevant line,
BNALL is BBN (0) from the number of characters up to J.
The number excluding MOJi (J) indicates each of the classification NOs (0 to 5) of the J-th character.

さらに、PSTOR(JJ)は、JJ番目の文字を格
納すべき開始ドツトアドレスを示すものである。
Furthermore, PSTOR(JJ) indicates the starting dot address at which the JJ-th character is to be stored.

しかして、第10図イのWより、同図ロのWに
いたり、同図ロのXより、同図ハのXへと流れる
ものである(後述の第11図に係るものも同態様
である。)。
Therefore, it flows from W in Figure 10A to W in Figure 10B, and from X in Figure 10B to X in Figure 1C (the same goes for Figure 11, which will be described later). be.).

以上において、いま、該当行が規定の文字数40
文字、すなわちNN=40、また文字間隔2/12文
字、すなわち4ドツトで、N(1)=24+4=28ド
ツトの場合を、一例として、具体的に、次に説明
する。
In the above, the relevant line now has the specified number of characters 40
A case in which the characters, ie, NN=40, and the character spacing is 2/12 characters, ie, 4 dots, and N(1)=24+4=28 dots will be specifically described below as an example.

分り易いように、第10図イ〜ロにおける流れ
の各場所に、(1)〜(35)の番号を付し、この
番号を対照させて説明する。{(1)}は、その対
照番号を示すものである。(後述の第11図に係
るものも、同態様の説明である。)。
For ease of understanding, numbers (1) to (35) are assigned to each location of the flow in FIG. {(1)} indicates its comparison number. (The same aspect is also explained in FIG. 11, which will be described later.)

本例では、28ドツト分、行末より不足している
が{(1)}、これを該当行の文字パターンデータ
65の分布に従い、割りふつていくわけである。
In this example, there is a shortage of 28 dots from the end of the line {(1)}, but this is divided according to the distribution of the character pattern data 65 of the line.

まず、拡げる場合であるから、該当行の文字39
字(1字は、次行先頭文字が行末禁則文字なので
次行へ繰り下がつている。)を、第8図のイ項を
参照しながら、分類1〜3ごとに数える{(2)}。
First, since we are expanding it, the character 39 in the corresponding line
Count the characters (character 1 is carried down to the next line because the first character of the next line is a prohibited character at the end of the line) for each category 1 to 3, referring to item A in Figure 8. {(2)} .

いま、BN(1)の分類1が10文字、BN(2)
の分類2が20文字、BN(3)の分類3が5文字、
これに従い、その他4文字であつたとする。
Currently, classification 1 of BN(1) is 10 characters, BN(2)
20 characters for category 2, 5 characters for category 3 of BN(3),
According to this, let us assume that there are four other characters.

本実施例では、1回目の調整は、分類1の文字
の右側文字間隔{(4)〜(5)、I=1}、2回
目は分類1の文字の左側の文字間隔{(6)〜
(8)、I=1}、3回目は分類2の文字の右側文
字間隔{(4)〜(5)、I=2}、4回目は分類
2の文字の左側文字間隔{(6)〜(8)、I=
2}、5回目は分類3の文字の右側文字間隔
{(4)〜(5)、I=3}、6回目は分類3の文字
の左側文字間隔{(6)〜(8)、I=3}を調整
し、これで調整できなければ、これ以後は、単純
に全文字(分類0を除いて)で均等に調整してい
る{(12)}ものである。
In this example, the first adjustment is the character spacing on the right side of the characters in classification 1 {(4) to (5), I=1}, and the second adjustment is the character spacing on the left side of the characters in classification 1 {(6) to
(8), I = 1}, the third time is the right character spacing of the characters of classification 2 {(4) ~ (5), I = 2}, the fourth time is the left character spacing of the characters of classification 2 {(6) ~ (8), I=
2}, the fifth time is the right character spacing of the characters in classification 3 {(4) to (5), I=3}, and the sixth time is the left character spacing of the characters in classification 3 {(6) to (8), I= 3}, and if the adjustment is not possible, from now on, all characters (except for classification 0) are simply adjusted evenly {(12)}.

上記の方法で、28ドツトを計算していくと、ま
ず1回目に分類1の文字の右側文字間隔で10ドツ
ト{(19)〜(20),K=1},2回目に分類1の
文字の左側文字間隔で10ドツト{(21)〜(22),
K=1},3回目に分類2の文字の右側文字間隔
で8ドツト{(19)〜(20),K=2}で調整でき
る。
When calculating 28 dots using the above method, the first time we calculate 10 dots at the character spacing on the right side of the character of classification 1 {(19) to (20), K=1}, and the second time we calculate the character of classification 1. 10 dots at left character spacing {(21) to (22),
K=1}, and the third time, the right character spacing of the Class 2 characters can be adjusted by 8 dots {(19) to (20), K=2}.

すなわち、分類1の文字の左右の文字間隔で20
ドツト、分類2の文字の先頭から8文字分の右側
文字間隔8ドツトである。
In other words, the character spacing on the left and right of Class 1 characters is 20.
Dot, the character interval on the right side is 8 dots for 8 characters from the beginning of the class 2 characters.

なお、本来なら、該当行の先頭文字の左側文字
間隔、最終文字の右側文字間隔は、拡大の対象と
はならないが、本例の説明では、簡単に説明する
ために省略したものである。
Note that originally, the left side character spacing of the first character and the right side character spacing of the last character in the line are not subject to expansion, but they are omitted in the explanation of this example for the sake of brevity.

以上の計算結果に合せて、1行分の印刷パター
ンデータ66を作成する際に、該当文字が分類1
なら、左右に各々1ドツト文字間隔を拡げてや
り、分類2なら、最初から8文字について右側に
1ドツト文字間隔を拡げてやれば、目的の印刷パ
ターンデータが作成できる{(28)〜(35)}。
Based on the above calculation results, when creating one line of print pattern data 66, if the corresponding character is classified as
If so, increase the character spacing by 1 dot on the left and right sides, and if it is classification 2, increase the character spacing by 1 dot on the right side for the first 8 characters, then you can create the desired print pattern data {(28) to (35) )}.

なお、文字間隔を拡げる方法としては、たとえ
ば前述の方法では6回目で調整できない場合は、
当該行の全文字に調整未達成のドツトを均等に割
りふつたが、優先度をウエイトと見なして、分類
1は左右3度まで、分類2は左右2度まで、分類
3は左右1度まで調整し、その後全文字で調整す
る等、また、調整の手順としても、一度に当該文
字の左右の文字間隔を拡げて行く等の、諸方法
も、前述以外の方法として挙げることができるも
のである。
In addition, as a method to increase the character spacing, for example, if the above method cannot be adjusted on the 6th time,
The dots that have not been adjusted are equally distributed among all the characters in the line, but considering priority as weight, classification 1 can be applied up to 3 degrees left and right, category 2 is up to 2 degrees left and right, and category 3 is up to 1 degree left and right. In addition to the methods mentioned above, there are various methods other than those mentioned above, such as adjusting the character and then adjusting it for all characters, and increasing the character spacing on the left and right of the character at once as an adjustment procedure. be.

次に、第9図に示した、1文字多い場合につい
て説明する。
Next, the case where there is one more character as shown in FIG. 9 will be explained.

この場合は、さきの場合と同態様で、第6図に
示すところに従い、文字間隔を狭め、必要なら文
字パターンを削つて、1行分の印刷パターンデー
タを作成するようにするものである。
In this case, in the same manner as in the previous case, one line of print pattern data is created by narrowing the character spacing and deleting the character pattern if necessary, as shown in FIG.

すなわち、この場合も、前述の文字間隔を拡げ
る処理の逆を行なえばよいわけであるが、文字間
隔を狭めること以外に、文字パターンを削るとい
う処理も加わるため、その処理は複雑になるもの
である。
In other words, in this case as well, the process of widening the character spacing described above can be reversed, but in addition to narrowing the character spacing, there is also the process of removing the character pattern, which makes the process complicated. be.

この処理に係る流れ図が、第11図のイ〜ニで
ある。
A flowchart related to this process is shown in FIG. 11.

図において、各記号名称の内容は、さきに説明
した第10図に係るものと同じであるが、ただ
し、1回目と2回目の調整に関しては、A(I)
は、分類5の文字に対しての、B(I)は、分類
4の文字に対する調整対象の文字数を表わすもの
である。
In the figure, the contents of each symbol name are the same as those related to Figure 10 explained earlier, but regarding the first and second adjustments, A(I)
represents the number of characters to be adjusted for characters of classification 5, and B(I) represents the number of characters to be adjusted for characters of classification 4.

また、さきの第10図の場合と相異するもの
の、流れを分り易くするため、BN(0),(1),
(2),(3),(4),(5)のそれぞれを、分類0

5,4,3,2,1の文字数と定義しているもの
である。
Also, although it is different from the case in Figure 10 above, in order to make the flow easier to understand, we have added BN(0), (1),
Each of (2), (3), (4), and (5) is classified as 0.

It is defined as the number of characters 5, 4, 3, 2, 1.

そして、NM(I)は、I回目の文字パターン
削除すべきドツト数、C(I),D(I)は、I回
目に文字パターン削除される文字数を、それぞれ
示すものであるが、ただし、C(1)は分類5,
D(1)は分類4の削除の対象となる文字数を表
わすものである。
NM(I) indicates the number of dots to be deleted in the I-th character pattern, and C(I) and D(I) indicate the number of characters to be deleted in the I-th character pattern. C(1) is classification 5,
D(1) represents the number of characters to be deleted in category 4.

また、ADOTL(J),ADOTR(J)は、当該
行J番目の文字の左、右側調整ドツト数、すなわ
ち、文字間隔を削るドツト数であるが、ただし、
分類4(K=2)なら、BDOTL(J),BDOTR
(J)に格納、同様に文字パターンを削るドツト
数はCDOTL(J),CDOTR(J),DDOTL(J),
DDOTR(J)に格納する。
In addition, ADOTL (J) and ADOTR (J) are the number of adjustment dots on the left and right sides of the Jth character in the line, that is, the number of dots to reduce the character spacing.
For classification 4 (K=2), BDOTL(J), BDOTR
Stored in (J), the number of dots to cut the character pattern in the same way is CDOTL (J), CDOTR (J), DDOTL (J),
Store in DDOTR (J).

しかして、図示のK=2の場合の流れFは、K
=1と同様であるが、ただし、A(1)→B(1),
C(1)→B(1),CC→DD,ADOTL(J)→
BDOTR(J),CDOTL(J)→DDOTR(J)と
なるものである。
Therefore, the flow F in the case of K=2 shown in the figure is K
= 1, except that A(1)→B(1),
C(1)→B(1), CC→DD, ADOTL(J)→
BDOTR (J), CDOTL (J) → DDOTR (J).

本実施例では、まず、単純に拡げる場合の逆
に、優先度の高い文字から1回目{(4)〜
(5),I=2}に、分類4の文字の左側文字間
隔、分類5の文字の右側文字間隔を1ドツト狭め
{(4)〜(5),I=1}、2回目も1回目と同じ
処理をし{(7)〜(8),I=1}、3回目は、
分類3の文字の右側文字間隔を1ドツト{(4)
〜(5),I=2}、4回目は、分類3の文字の左
側文字間隔を1ドツト{(7)〜(8),I=2}、
と続けて狭め、8回目に分類1の文字の左側文字
間隔を1ドツト狭めるように行ない{(15)〜
(16),I=5}、これで調整できなければ、次に
文字パターンを削るものである。
In this embodiment, first, contrary to the case of simply expanding, characters with high priority are expanded the first time {(4) ~
(5), I=2}, narrow the left character spacing of the characters of classification 4 and the right character spacing of the characters of classification 5 by 1 dot {(4) to (5), I=1}, the second time is also the same as the first time. Perform the same process as {(7) to (8), I=1}, and the third time is
Set the right character spacing of Class 3 characters to 1 dot {(4)
~ (5), I = 2}, the fourth time, the left character spacing of the characters of classification 3 is 1 dot {(7) ~ (8), I = 2},
Continue to narrow it down, and on the 8th time, narrow the left side character spacing of Class 1 characters by 1 dot {(15) ~
(16), I=5}, if this cannot be adjusted, the next step is to delete the character pattern.

すなわち、文字パターンを削る処理の1回目
は、分類4の文字パターンの左側4ドツト{(22)
〜(23)}、分類5の文字パターンの右側4ドツト
{(25)〜(26)}、2回目は、分類3の文字パター
ンの左側1ドツト{(30)〜(31),I=2}、3
回目は、分類3の文字パターンの右側1ドツト
{(33)〜(34),I=2}、と続け、5回目は、分
類2の文字パターンの右側1ドツト{(33)〜
(34),I=3}を削つて調整する方法で行なつた
ものである。
In other words, the first time of the process of cutting the character pattern, the left 4 dots of the character pattern of classification 4 {(22)
~ (23)}, 4 dots on the right side of the character pattern of classification 5 {(25) ~ (26)}, the second time, 1 dot on the left side of the character pattern of classification 3 {(30) ~ (31), I = 2 }, 3
The second time, 1 dot on the right side of the character pattern of classification 3 {(33) to (34), I=2}, and the fifth time, 1 dot on the right side of the character pattern of classification 2 {(33) to
(34), I=3}.

また、以上の方法に優先度をウエイトと見なし
て、たとえば文字間隔を狭めるときは、分類4,
5については、左または右の文字間隔を4度ま
で、以下、分類3なら、左右の文字間隔を各々3
度まで、分類2なら、2度まで、分類1なら、1
度まで、それぞれ調整し、なお調整が必要であれ
ば、同様の方法で文字パターンを削る方法等、そ
の調整方法については、各種の方法を挙げること
ができるものであり、また文字パターンを、さき
に削ることも挙げられる。
In addition, when considering the priority as a weight in the above method and narrowing the character spacing, for example, classification 4,
For 5, set the character spacing on the left or right up to 4 degrees, and below for classification 3, set the character spacing on the left and right to 3 degrees each.
up to 2 degrees, if class 2, up to 2 degrees, if class 1, 1 degree
There are various ways to adjust the character pattern, such as adjusting the character pattern to the desired degree, and if further adjustment is necessary, cutting the character pattern using the same method. It can also be shaved off.

以上に述べた方法は、一般的に文字間隔が2〜
4ドツト位であることを考えれば、文字パターン
を削ることなく、文字間隔を狭めるだけで容易に
達成することができる。
In the method described above, the character spacing is generally 2~
Considering that it is about 4 dots, this can be easily achieved by simply narrowing the character spacing without cutting the character pattern.

しかしながら、文字間隔が狭かつたり、漢字の
ように分類1の文字が多いと、単純に文字間隔で
は調整できずに文字パターンを削ることになる。
However, if the character spacing is narrow or there are many characters in classification 1, such as kanji, the character pattern cannot be adjusted simply by character spacing, and the character pattern must be deleted.

なお、上記の説明では述べなかつたが、特殊な
文字の組合せによつては調整できない場合もあ
る。
Although not mentioned in the above explanation, adjustment may not be possible depending on the combination of special characters.

すなわち、41文字中40文字が、分類0,1で、
1文字のみが分類5で、文字間隔が0ドツトであ
る場合のように、24ドツトを文字間隔を狭めた
り、文字パターンを削つたりしても吸収できない
ものである。
In other words, 40 out of 41 characters are classified as 0 or 1,
As in the case where only one character is classified as Class 5 and the character spacing is 0 dots, 24 dots cannot be absorbed even if the character spacing is narrowed or the character pattern is deleted.

この場合は、調整できる文字だけで調整し、行
末の若干の不揃いを無視して印刷するようにす
る。もちろん、印刷せず、異常にすることもでき
るが、本実施例においては、前記の状態は一般文
書には生じないと見なして、不揃いを承知で印刷
することにしているものである。
In this case, adjust only the characters that can be adjusted and print while ignoring slight irregularities at the end of the line. Of course, it is also possible to not print and make the document abnormal, but in this embodiment, it is assumed that the above-mentioned condition does not occur in general documents, and the document is printed even though it is aware of the irregularities.

以上述べたところにより、本実施例によれば、
日本語入力編集装置により作成される文書の印刷
において、まず第1点として、行末が禁則処理に
もかかわらず、きれいに揃つた形で印刷すること
ができ、また第2点としては、従来、行頭禁則文
字に備えて一文字分余裕を取る必要のあつた印刷
範囲に、その余裕を取る必要がなくなつたもので
ある。
As described above, according to this embodiment,
When printing a document created using a Japanese input/editing device, the first point is that even though the end of the line is prohibited, it can be printed neatly. There is no longer a need to leave a margin for one character in the print range in case of prohibited characters.

〔発明の効果〕〔Effect of the invention〕

本発明によるときは、日本語入力編集装置にお
いて作成される文書の印刷において、禁則処理に
よつて生じた行末の不揃いを、文字の大きさ、形
状に合つた調整を行ない、見易く、品質の高い印
刷物を提供することができる、本発明に独自の手
法による行末の印字揃えを行なう印刷制御方法を
得ることができるものであつて、すぐれた効果を
奏する発明ということができる。
According to the present invention, when printing a document created using a Japanese input/editing device, uneven line endings caused by prohibition processing are adjusted to suit the size and shape of characters, resulting in easy-to-read and high-quality printing. It is possible to obtain a printing control method for aligning end-of-line characters using a technique unique to the present invention, which can provide printed matter, and can be said to be an invention that has excellent effects.

ここで、符号文字配列の例を第12図に示す。 Here, an example of the code character arrangement is shown in FIG.

第12図イは、8文字+行末禁則処理による空
きの例、第12図ロは、文字間隔を一律(均等)
に拡大して行末を揃えた従来における符号文字配
列の例、第12図ハは、本発明〔すなわち、予め
定められた符号に関する行末調整用の情報を参照
して、符号毎に異なる大きさで符号パターンの間
隔を不均一にして割り付けた場合(拡げた場合)〕
における符号文字配列の例を示す。
Figure 12 A is an example of 8 characters + blank space due to line end prohibition processing, Figure 12 B is an example of character spacing being uniform (equal)
FIG. 12C shows an example of a conventional code character arrangement in which the end of the line is aligned by enlarging the code to the size of the code according to the present invention. When the code patterns are allocated with uneven spacing (expanded)]
An example of a coded character array is shown below.

そして、文字間隔を単に一律(均等)に拡大し
て行末を揃えた場合と、予め定められた符号に関
する行末調整用の情報を参照して、符号毎に異な
る大きさで符号パターンの間隔を不均一にして割
り付けた場合、換言すると、符号パターンの形状
まで判断し、符号パターンデータの内、印刷の結
果文字として認識される部分を均等に配置した場
合〔第12図ハ〕とを比較すると、第12図ロに
例示した文字間寸法a,bと第12図ハに例示し
た文字間寸法a′,b′とは、 a<a′, b<b′ の関係にある。
Then, by simply increasing the character spacing uniformly (equally) and aligning the line ends, and by referring to the line end adjustment information for predetermined codes, the spacing between the code patterns can be adjusted to a different size for each code. When compared with the case where the characters are allocated uniformly, in other words, where the shape of the code pattern is determined and the portions of the code pattern data that are recognized as characters as a result of printing are evenly arranged [Fig. 12C], The character spacing dimensions a and b illustrated in FIG. 12B and the character spacing dimensions a' and b' illustrated in FIG. 12C have the relationship of a<a', b<b'.

すなわち、第12図ロに示す符号文字配列によ
れば、文字の形状、大きさによつては文字間隔が
狭まり過ぎて見にくかつたり、拡がり過ぎて文字
の並びがまばらに見えることになる。
That is, according to the code character arrangement shown in FIG. 12B, depending on the shape and size of the characters, the spacing between the characters may be too narrow and difficult to see, or the characters may be too spread out and the arrangement of characters may appear sparse.

これに対し、第12図ハに示す符号文字配列に
よれば、印刷の結果文字として認識される部分を
均等に配置したことにより、禁則処理によつて生
じた行末の不揃いを、文字の大きさ、形状の相違
に拘らず見易く、品質の高い印刷物を提供するこ
とができる。
On the other hand, according to the coded character arrangement shown in Figure 12C, by evenly arranging the parts recognized as characters as a result of printing, irregularities at the end of the line caused by the prohibition processing can be corrected by adjusting the character size. , it is possible to provide printed matter that is easy to see and has high quality regardless of the difference in shape.

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

第1図は、本発明の一実施例に係る行末の印字
揃えを行なう印刷制御方法の実施に供せられる日
本語入力編集装置のブロツク図、第2図のイ,ロ
は、禁則文字の例示図、第3図は、行末不揃えの
印刷例示図、第4図のイ,ロは、24×24ドツトの
文字パターン例示図、第5図のイ,ロは、本発明
の一実施例に係るものにおける印刷用文字制御デ
ータテーブルと区・点コードの例示図、第6図
は、同じく印刷パターンデータ作成に係る制御ブ
ロツク図、第7図は、その印刷パターン展開例示
図、第8図は、その行末調整のためのパラメータ
テーブル例示図、第9図は、その印刷パターン展
開の概略流れ図、第10図のイ〜ハは、その文字
間隔を拡げるときの処理に係る流れ図、第11図
のイ〜ニは、その文字間隔を狭めたり、文字パタ
ーンを削るときの処理に係る流れ図、第12図の
イ〜ハは、符号文字配列の例を示す図である。 1……中央処理装置、2……ランダムアクセス
メモリ、3……かな漢字変換用辞書、4……記憶
装置、5……文字発生回路、6……キーボード、
7……表示装置、8……印刷装置、60……文字
パターン作成プログラム、61……1行分の文字
データ、62……次行先頭文字、63−1……禁
則情報、63−2……調整情報、63−3……文
字パターンアドレス、64……文書管理情報、6
5……文字パターンデータ、66……1行分の印
刷パターンデータ、67……印刷装置、68……
印刷された出力例。
FIG. 1 is a block diagram of a Japanese input/editing device used to implement a print control method for aligning characters at the end of a line according to an embodiment of the present invention, and A and B in FIG. 2 are examples of prohibited characters. Figure 3 shows an example of printing with uneven line ends; Figures 4A and 4B show examples of 24 x 24 dot character patterns; Figures 5A and 5B show an example of printing of the present invention. FIG. 6 is a diagram illustrating a printing character control data table and ku/dot codes in such a system, FIG. 6 is a control block diagram similarly related to the creation of print pattern data, FIG. 7 is a diagram illustrating development of the print pattern, and FIG. , FIG. 9 is a schematic flowchart of the printing pattern development, FIG. A to D are flowcharts related to processing for narrowing the character spacing or deleting the character pattern, and A to C in FIG. 12 are diagrams showing an example of coded character arrangement. 1...Central processing unit, 2...Random access memory, 3...Kana-Kanji conversion dictionary, 4...Storage device, 5...Character generation circuit, 6...Keyboard,
7...Display device, 8...Printing device, 60...Character pattern creation program, 61...Character data for one line, 62...Start character of next line, 63-1...Prohibition information, 63-2... ...Adjustment information, 63-3...Character pattern address, 64...Document management information, 6
5...Character pattern data, 66...Print pattern data for one line, 67...Printing device, 68...
Example printed output.

Claims (1)

【特許請求の範囲】 1 符号入力手段と、符号の編集、校正手段と、
符号の入力、編集状態を表示する手段と、作成さ
れた文書の格納、記憶手段と、符号パターンを記
憶、発生させる手段と、作成された文書を印刷す
る手段とを備えた日本語入力編集装置において、 印刷用の符号データを印刷用パターンデータに
展開する際に、符号の大きさ、形状よりの符号間
隔の拡大、縮小の可否、符号パターンの削除等、
予め定められた符号に関する行末調整用の情報を
参照して、符号毎に異なる大きさで符号パターン
の間隔を不均一にして(拡げたり狭めたりして)
印刷用パターンを作成し、これにより禁則処理に
よつて1行の符号数に差異があつても行末を揃え
て印刷するものであつて、しかも印刷すべき行の
1行分の符号データと、次行先頭符号とを受け取
つて符号パターン作成部において1行分の符号数
を数え、当該1行分の符号数が文書管理情報の1
行分の符号数より1符号足りない場合には、次行
先頭符号を禁則情報を参照して判定し、当該次行
先頭符号が行末禁則符号の場合にのみ、各符号の
調整情報を参照して、符号パターンアドレスを介
した符号パターンデータからの符号の符号間隔を
拡げる、符号間隔の調整を行ない、行末を揃えて
印刷パターンデータを作成し、また、1符号多い
場合には、無条件に、各符号の調整情報を参照し
て、符号パターンアドレスを介した符号パターン
データからの符号間隔を狭め、必要ならば印刷パ
ターンを削り、これにより符号パターンデータの
内、印刷の結果文字として認識される部分を均等
に配置するとともに、行末を揃えて印刷パターン
データを作成し、その印刷パターンデータによつ
て印刷装置により印刷することを特徴とする行末
の印字揃えを行なう印刷制御方法。
[Claims] 1. Code input means, code editing and proofreading means,
A Japanese input/editing device comprising a means for inputting codes and displaying an editing state, a means for storing and storing a created document, a means for storing and generating a code pattern, and a means for printing a created document. When developing code data for printing into pattern data for printing, it is necessary to check the size and shape of the code, whether or not the code interval can be expanded or reduced, deletion of the code pattern, etc.
By referring to the line end adjustment information for predetermined codes, the spacing between the code patterns is made uneven (widening or narrowing) to a different size for each code.
A printing pattern is created, and even if there is a difference in the number of codes in one line due to the prohibition process, the printing pattern is printed with the end of the line aligned, and code data for one line of the line to be printed, The number of codes for one line is counted in the code pattern creation section after receiving the next line's first code, and the number of codes for the one line is one of the document management information.
If there is one code less than the number of codes for a line, the next line's first code is determined by referring to the prohibition information, and only when the next line's first code is a line-end prohibition code, the adjustment information of each code is referred to. Then, expand the code interval of the code from the code pattern data via the code pattern address, adjust the code interval, align the end of the line, and create print pattern data. Also, if there is one more code, unconditionally , by referring to the adjustment information of each code, narrow the code interval from the code pattern data via the code pattern address, and if necessary, delete the print pattern. 1. A printing control method for aligning print at the end of a line, characterized in that printing pattern data is created by evenly arranging portions of the lines and aligning the end of the line, and printing is performed by a printing device according to the print pattern data.
JP58060907A 1983-04-08 1983-04-08 Method of print controlling that trues up print of line end Granted JPS59186038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58060907A JPS59186038A (en) 1983-04-08 1983-04-08 Method of print controlling that trues up print of line end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58060907A JPS59186038A (en) 1983-04-08 1983-04-08 Method of print controlling that trues up print of line end

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP6017237A Division JP2721641B2 (en) 1994-02-14 1994-02-14 A print control method for aligning the end of lines
JP6017236A Division JP2721640B2 (en) 1994-02-14 1994-02-14 A print control method for aligning the end of lines

Publications (2)

Publication Number Publication Date
JPS59186038A JPS59186038A (en) 1984-10-22
JPH0522255B2 true JPH0522255B2 (en) 1993-03-29

Family

ID=13155899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58060907A Granted JPS59186038A (en) 1983-04-08 1983-04-08 Method of print controlling that trues up print of line end

Country Status (1)

Country Link
JP (1) JPS59186038A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5576428A (en) * 1978-12-05 1980-06-09 Tokyo Electric Co Ltd Printing method and its device for serial printer
JPS5660944A (en) * 1979-10-23 1981-05-26 Sanyo Electric Co Ltd Print system
JPS5760385A (en) * 1980-09-29 1982-04-12 Canon Kk Character processor
JPS58138655A (en) * 1982-02-12 1983-08-17 Toshiba Corp Controlling system for printing document

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5576428A (en) * 1978-12-05 1980-06-09 Tokyo Electric Co Ltd Printing method and its device for serial printer
JPS5660944A (en) * 1979-10-23 1981-05-26 Sanyo Electric Co Ltd Print system
JPS5760385A (en) * 1980-09-29 1982-04-12 Canon Kk Character processor
JPS58138655A (en) * 1982-02-12 1983-08-17 Toshiba Corp Controlling system for printing document

Also Published As

Publication number Publication date
JPS59186038A (en) 1984-10-22

Similar Documents

Publication Publication Date Title
US6223191B1 (en) Method and apparatus for automatically formatting multiple lines of text in a word processor
JP2721640B2 (en) A print control method for aligning the end of lines
JPH0522255B2 (en)
JPH06149806A (en) Document shaping output device and method therefor
JP7200530B2 (en) Information processing device and information processing program
JP2721641B2 (en) A print control method for aligning the end of lines
JP2763227B2 (en) Format determination method
JPH07314839A (en) Printing device
JPS63221457A (en) Document shaping device
JP2000311167A (en) Device and method for document processing and storage medium used for same
Dhika et al. The Rating System of Playstore Base on Reviwers Using Text Mining
Beljanski et al. Authors’ Instructions for the Preparation of Camera-Ready Extended Abstract with Word
Neil et al. Desktop Publishing
FISCHER LBAS’15 Proceedings Template (v1. 0)
JP2021131702A (en) Information processing device, information processing method and program
CN116450061A (en) Text content self-adaption method and system for editing label printer
Leacock et al. Instructions for NAACL HLT 2010 Proceedings
Moore et al. CypherText: An extensible composing and typesetting language
Biemesderfer et al. The AASTEX Macros for Manuscript Preparation
Vogel Instructions for AMTA-08 Proceedings
Tutorial Text Formatting with LATEX
Devedžić et al. Authors’ Instructions for the Preparation of Camera-Ready Contributions with MS Word
JPH0462548B2 (en)
Devedzic et al. Authors’ Instructions for the Preparation of Camera-Ready Contributions with LATEX
JPH10217417A (en) Device for adjusting interval between characters