JPS6027583A - Controlling system for micro-spacing - Google Patents

Controlling system for micro-spacing

Info

Publication number
JPS6027583A
JPS6027583A JP58135244A JP13524483A JPS6027583A JP S6027583 A JPS6027583 A JP S6027583A JP 58135244 A JP58135244 A JP 58135244A JP 13524483 A JP13524483 A JP 13524483A JP S6027583 A JPS6027583 A JP S6027583A
Authority
JP
Japan
Prior art keywords
line
width
character
adder
detecting circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP58135244A
Other languages
Japanese (ja)
Inventor
Keiichi Uno
宇野 恵一
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 JP58135244A priority Critical patent/JPS6027583A/en
Publication of JPS6027583A publication Critical patent/JPS6027583A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/18Character-spacing or back-spacing mechanisms; Carriage return or release devices therefor
    • B41J19/60Auxiliary feed or adjustment devices

Abstract

PURPOSE:To make proper character spacing and print with high quality, by a method wherein a total width of a group of characters contained in a predetermined line is calculated from the widths of inputted characters, then the maximum line length is detected therefrom, and is made to be a printing width for one line. CONSTITUTION:When character code data W are inputted through a keyboard or the like, the width of the character is determined by a character width table 1, and is added in an adder 3. When an input of a word end indicating character (a space, a hyphen or the like) is supplied to a detecting circuit 2 for the word end indicating character, the content (W1) of the adder 3 is added in an adder 6. At this moment, the adder 3 is reset. When it is discriminated by a line end detecting circuit 5 that transfer to the next line should be conducted, a maximum line length detecting circuit 8 receives the content (W) of the adder 6, and stores it. At this moment, the adder 6 is reset. These operations are performed until the last line in a page is detected by a last line detecting circuit 7. When the last line is detected, the detecting circuit 8 detects the maximum line length (MAX) from the line lengths thus stored, and sets the maximum line length as the printing width for one line.

Description

【発明の詳細な説明】 (技術分野) 本発明は英文ワードプロセッシング装置等における印字
方式に関し、特に高品位印字を得るためのマイクロスペ
ーシングの管理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a printing method in an English word processing device and the like, and particularly to a microspacing management method for obtaining high quality printing.

(従来技術) (JT 、キーボードを備え、外部メモリなどに蓄えら
れた文章情報の修正9作成などを行うワードプロセッシ
ング装置、例えば英文ワードプロセッシング装置におい
ては、文章9文1語の入力はCRTを見ながらキーボー
ドにより行われ、全体の文章が完成したのちにプリンタ
により印字される。このようなワードプロセッシング装
置において、ディジーホイールを有するプリンタで高品
位印字を行うために各行の右端を揃えて印字する、右揃
え印字が一般的に行われている。また、使用する印字本
イールによっては、文字毎の幅を微調整して配置する、
いわゆるプロポーショナルスペーシングを行うことによ
り高品位印字が可能なものもある。
(Prior art) (JT) In a word processing device that is equipped with a keyboard and that edits and creates text information stored in an external memory, for example an English word processing device, the input of nine sentences and one word is performed using a CRT. This is done using the keyboard while the entire sentence is completed, and then printed by the printer.In such word processing devices, in order to achieve high quality printing using a printer with a daisy wheel, the right edge of each line is printed aligned. Right-aligned printing is generally performed.Also, depending on the print book used, the width of each character may be finely adjusted and placed.
Some printers are capable of high-quality printing by performing so-called proportional spacing.

ここで、右揃え印字においては、入力がCRTを用いて
行われるので、−行の幅を何文字分にするのかを予め定
めておき、人力された一語がその一行の幅を越えるとき
には自動的に次の行へその語を移動させるという方式が
採られる。
In right-aligned printing, since input is performed using a CRT, it is necessary to predetermine how many characters the width of the - line should be, and when a manually entered word exceeds the width of that line, it is automatically input. A method is adopted in which the word is automatically moved to the next line.

一般的には、CRT上の文字は固定幅であるので、入力
時点において一行の幅を「何文字分」としか定義できな
い場合が多い。このように−行の幅を文字数で規定する
ことにより、完成した文章をプロポーショナルスペーシ
ングを行いつつ、印字する場合において、難しいのは印
字幅の設定である。
Generally, characters on a CRT have a fixed width, so in many cases, the width of one line can only be defined as "how many characters" at the time of input. In this way, when a completed sentence is printed with proportional spacing by specifying the line width by the number of characters, it is difficult to set the print width.

すなわち、プロポーショナルスペーシング用の印字ホイ
ールを用い、各文字毎の間隔を微調整しつつ、かつ、右
揃えして印字するためには、語と、語の間のスペーシン
グ量を調整するいわゆるマイクロスペーシングが必要で
あるが1語間のスペース量を決定するためには、プリン
タによる一行の印字幅が決定されなければならない。と
ころが、文章作成時に決められている一行の印字幅は文
字数でしかない。これでは、プロポーショナルスペーシ
ング用の印字ホイールが文字によって。
In other words, in order to fine-tune the spacing between each character using a proportional spacing print wheel and to print right-aligned characters, a so-called micro-spacing wheel is used to adjust the spacing between words. Spacing is necessary, but in order to determine the amount of space between each word, the print width of one line by the printer must be determined. However, the print width of one line, which is determined when creating a text, is only the number of characters. In this, the print wheel for proportional spacing is by letter.

−文字当りの幅が異るので、−行の印字幅を決定するの
にどの文字の幅を基準にするかによって、その印字幅が
異ってくる。仮に、平均的な文字幅を採用するものとす
れば、幅広の文字であるrmJなどが多用された行にお
いてはスペースが全く取れないことも起り得る。また、
最大の文字幅をもって印字幅を決定すれば、一般の行に
おいてはスペースが多すぎて全体として「白すぎる」印
字となってしまう。
- Since the width per character differs, the printing width varies depending on which character width is used as a reference to determine the printing width of the - line. If an average character width is adopted, there may be no space available at all in a line in which wide characters such as rmJ are frequently used. Also,
If the printing width is determined based on the maximum character width, there will be too much space in a typical line, resulting in printing that is "too white" as a whole.

(目 的) 本発明の目的は、かかる欠点を除去するためになされた
もので、−行分の印字幅を適切な値に、設定して高品位
印字を行い得るマイクロスペーシングの管理方式を提供
することにある。
(Objective) The object of the present invention was to eliminate such drawbacks, and to provide a microspacing management method that can set the printing width for a line to an appropriate value and perform high-quality printing. It is about providing.

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

第1図は本発明を実現するための回路構成の一例を示す
。閃において、キーボード等から入力された文字コード
データWは文字幅テーブル1および切れ目文字検出回路
2に供給される。文字幅テーブル1は、例えば文字コー
ドをアドレスとしてその文字コードに対応する文字幅を
内容とするROMまたはRAMである。文字幅テーブル
1では、文字コードデークWが供給されると、その文字
コードに対応する文字幅を検索する。検索された文字幅
データは、加算器3に供給される。加算器3では、入力
される文字幅が順次に加算される。
FIG. 1 shows an example of a circuit configuration for realizing the present invention. In the flash, character code data W input from a keyboard or the like is supplied to a character width table 1 and a break character detection circuit 2. The character width table 1 is, for example, a ROM or RAM that uses a character code as an address and stores the character width corresponding to the character code. In the character width table 1, when a character code data W is supplied, the character width corresponding to the character code is searched. The retrieved character width data is supplied to the adder 3. The adder 3 sequentially adds the input character widths.

切れ目文字検出回路2は、供給された文字コードデータ
Wが予め定められた切れ目文字コード(スペースコード
)であるか舌かを検出する。すなわち、−語を構成する
文字群の入力が終了したか否かを検出する。切れ目文字
コードが検出されると、この検出回路2から検出信号2
Sがゲート4および行末検出回路5に供給される。ここ
で、ゲート4には加算器3から文字幅の加算結果(Wl
)が信号として供給されており、信号2Sの入来により
このゲート4が開き、加算結果(wl)が加算器6に供
給される。この加算器6では、供給される加算器3の加
算結果(wl)、すなわち語長が順次に加算される。ま
た、かかる加算動作の度毎にリセット信号Rが加算器3
に出力される。加算器3では、リセット信号Rによりそ
の内容がクリアされ、再び文字幅の加算を開始する。
The break character detection circuit 2 detects whether the supplied character code data W is a predetermined break character code (space code) or a tongue. That is, it is detected whether the input of the character group constituting the - word has been completed. When a break character code is detected, a detection signal 2 is sent from this detection circuit 2.
S is supplied to the gate 4 and the end of line detection circuit 5. Here, the gate 4 receives the character width addition result (Wl) from the adder 3.
) is supplied as a signal, and the gate 4 is opened by the input of the signal 2S, and the addition result (wl) is supplied to the adder 6. This adder 6 sequentially adds the supplied addition results (wl) of the adder 3, that is, word lengths. Also, each time such an addition operation is performed, a reset signal R is sent to the adder 3.
is output to. In the adder 3, its contents are cleared by the reset signal R, and addition of character widths is started again.

行末検出回路5では、44号2Sの入力数を計数するこ
とにより、入力された語数が1行を構成する行数に達し
たか否かを判別する。すなわち1行末を検出する。行末
を検出すると、検出信号5sを加算器6および最終行検
出回路7に出力する。また、信号2Sの入来数の計数を
零から開始する。
The end-of-line detection circuit 5 determines whether the number of input words has reached the number of lines constituting one line by counting the number of inputs to No. 44 2S. In other words, the end of one line is detected. When the end of a row is detected, a detection signal 5s is output to the adder 6 and the final row detection circuit 7. Further, counting of the number of incoming signals 2S is started from zero.

加算器6sは、信号5Sが入来すると、それまでの加算
結果(W) 、すなわち1行の幅を最大行幅検出回路8
へ供給し、再び零から、加算器結果(wl)の加算・を
開始する。最大行幅検出回路8では、供給される行幅を
順次に比較して最大行幅(WAX)を選択する。
When the adder 6s receives the signal 5S, the adder 6s converts the summation result (W) up to that point, that is, the width of one row, into the maximum row width detection circuit 8.
and starts adding the adder result (wl) again from zero. The maximum line width detection circuit 8 sequentially compares the supplied line widths and selects the maximum line width (WAX).

最終行検出回路7では、信号5Sの入力回数を計数して
、入力された行が一頁分の最終行になったか否かを検出
する。この検出出カフSは最大行幅検出IjjJ路8に
供給される。最大行幅検出回路8では、イ1)号7Sが
供給されると、それまでに選択した最大行幅(MAX)
を不図示の印字制御部へ出力する。
The final line detection circuit 7 counts the number of inputs of the signal 5S and detects whether the input line is the last line of one page. This detection output cuff S is supplied to the maximum line width detection IjjJ path 8. In the maximum line width detection circuit 8, when No. 1) 7S is supplied, the maximum line width (MAX) selected so far is
is output to a print control section (not shown).

第2図は第1図の回路により実行される1行の印字幅算
出の動作手順を示す。第2因に従って、動作を説明する
FIG. 2 shows the operational procedure for calculating the print width of one line, which is executed by the circuit shown in FIG. The operation will be explained according to the second factor.

キーボード等から文字コードデータWが入力されると、
文字幅テーブルlにおいて入力された文字の有する幅が
決定される(ステップ■)。すなわち、入力文字がデコ
ードされ、それに対応する長さが文字幅テーブルから逐
次的に捜し出される。一般に、英文文字の数は96文字
で、@大でも258種であるので、かかる検索作業は容
易に行われる。なお、文字幅の決定は、本例の方法に限
るものではなく、他の、公知の方法であっても良い。
When character code data W is input from a keyboard etc.,
The width of the input character is determined in the character width table 1 (step ■). That is, an input character is decoded and its corresponding length is sequentially retrieved from the character width table. Generally, the number of English characters is 96, and there are 258 types at @large, so such a search task is easily performed. Note that the method for determining the character width is not limited to the method of this example, and may be any other known method.

次に、このように検索された文字幅は、加算器3におい
て加算さ−れる(ステップ■)。加算器3の内容(罰)
は零に初期設定されている。次に、切れ日文字検出回路
2では、入力された文字が切れ日文字であるか否かが判
別される(ステップ■)、ここに、切れ日文字とは、語
と語の間のスペース文字やハイフンなどであり1語の切
れ目を識別させる文字である。この切れ日文字が入力さ
れるまでは、加算器3にお°いて入力文字の文字幅が加
算される。切れ日文字入力があると、加算器′3の内容
(Wl)が加算器6において加算される。ここで、この
時点における加算器3の内容(Wl)は。
Next, the character widths searched in this way are added up in the adder 3 (step 2). Contents of adder 3 (punishment)
is initially set to zero. Next, the expiration date character detection circuit 2 determines whether the input character is an expiration date character (step ■). Here, an expiration date character is a space character between words. or hyphen, and are characters that identify breaks in one word. Until this expiration date character is input, the adder 3 adds the character width of the input character. When an expiration date character is input, the contents (Wl) of adder '3 are added in adder 6. Here, the contents (Wl) of the adder 3 at this point are as follows.

gの始まりから、その−語の終りまでの(切れ日文字を
含む)その語を構成する文字の文字幅の合計である。加
算器6では、その内容(W)は零に初期設定されており
、算出された合計値(Wl)が、加算器6において加算
される(ステップ■)。また、芝の時点において、加算
器3の内容(wl)は零にリセットされ(ステップ■)
1再び入力の文字幅がこの加算器3において加算される
This is the total width of the characters that make up the word from the beginning of g to the end of the - word (including the end date character). In the adder 6, the content (W) is initially set to zero, and the calculated total value (Wl) is added in the adder 6 (step ■). Also, at the time of grass, the contents of adder 3 (wl) are reset to zero (step ■).
1 The input character widths are added again in this adder 3.

次に、行末検出回路5においては、入力文字数が予め定
めた1行の幅を超えたか否かの判別がなされ、入力文字
または語を次の行へ移すが否かを決定する(ステップ■
)。次の行に移るべきと判別された場合には、検出回路
8においては、加り器6の肉声(W)を受け取り、記憶
する(ステップ■)。この時点において、加算56はリ
セットされる(ステップ■)。上述の動作は、検出回路
7において一頁の最終行が検出されるまで行われ(ステ
ップ■)、最大行幅検出回路8には各行の行幅が記憶さ
れる。最終行が検出されると、検出10回路8では記憶
された行幅から最大の行幅(WAX)が検出される(ス
テップ@)。
Next, the end-of-line detection circuit 5 determines whether the number of input characters exceeds the predetermined width of one line, and determines whether to move the input characters or words to the next line (step
). If it is determined that the next line should be moved, the detection circuit 8 receives the real voice (W) of the adder 6 and stores it (step 2). At this point, the adder 56 is reset (step ■). The above-mentioned operation is performed until the last line of one page is detected in the detection circuit 7 (step 2), and the maximum line width detection circuit 8 stores the line width of each line. When the last row is detected, the detection circuit 8 detects the maximum row width (WAX) from the stored row widths (step @).

このようにして得られた最大行幅の値(MAX)がプリ
ント時の物理幅として用いられる。
The maximum line width value (MAX) obtained in this way is used as the physical width during printing.

なお、第2図において破線で示すステップOは、CRT
への表示、メモリ操作などのワードプロセッシング処理
のために必要なステップを示す。
Note that step O indicated by a broken line in FIG.
The steps required for word processing operations such as display, memory manipulation, etc.

(効 果) 以上説明したように、本発明によれば、印字すべき行の
うち、最大行幅の行を検出し、この最大行幅を1行の印
字幅として設定するようにしたので、従来のようにすべ
ての文字を最大幅の文字と仮定して1行の印字幅を決定
するよりは、はるかに適正な印字を行うことができ、ま
た、平均文字幅から1行の印字幅を算出する場合のよう
に文字スペースが零になってしまうという欠点をも解決
することができ、以て高品位な印字を行うことが可能と
なる。
(Effects) As explained above, according to the present invention, among the lines to be printed, the line with the maximum line width is detected, and this maximum line width is set as the print width of one line. It is possible to perform much more appropriate printing than determining the printing width of one line by assuming all characters are the maximum width characters as in the past. It is also possible to solve the disadvantage that the character space becomes zero as in the case of calculation, thereby making it possible to perform high-quality printing.

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

第1図は本発明の一実施例を示す回路構成図、第2図は
その動作を示すフローチャートである。 l・・・文字幅テーブル、 2・・・切れ日文字検出回路、 3.6・・・加算器、 4・・・ゲート、 5・・・行末検出回路、 7・・・最終行検出回路、 8・・・最大行幅検出回路。 特許出願人 キャノン株式会社
FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart showing its operation. l...Character width table, 2...End date character detection circuit, 3.6...Adder, 4...Gate, 5...End of line detection circuit, 7...Last line detection circuit, 8... Maximum line width detection circuit. Patent applicant Canon Co., Ltd.

Claims (1)

【特許請求の範囲】 入力文字の文字幅を設定する文字幅設定手段と、予め定
められた1行に含まれる文字群の幅の総計を算出する行
幅算出手段と、算出された行幅から最大の行幅を検出し
、当該行幅を1行の印字幅として設定する印字幅設定手
段とを具備したことを特徴とするマイクロスペーシング
(1) ’t? 理方式。 (以下、余白)
[Scope of Claims] Character width setting means for setting the character width of input characters; line width calculation means for calculating the total width of a group of characters included in one predetermined line; and from the calculated line width. Microspacing (1) characterized by comprising a print width setting means for detecting the maximum line width and setting the line width as the print width of one line. Scientific method. (Hereafter, margin)
JP58135244A 1983-07-26 1983-07-26 Controlling system for micro-spacing Pending JPS6027583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58135244A JPS6027583A (en) 1983-07-26 1983-07-26 Controlling system for micro-spacing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58135244A JPS6027583A (en) 1983-07-26 1983-07-26 Controlling system for micro-spacing

Publications (1)

Publication Number Publication Date
JPS6027583A true JPS6027583A (en) 1985-02-12

Family

ID=15147175

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58135244A Pending JPS6027583A (en) 1983-07-26 1983-07-26 Controlling system for micro-spacing

Country Status (1)

Country Link
JP (1) JPS6027583A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05185663A (en) * 1992-01-07 1993-07-27 Brother Ind Ltd Tape printing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05185663A (en) * 1992-01-07 1993-07-27 Brother Ind Ltd Tape printing apparatus

Similar Documents

Publication Publication Date Title
JPS6038752B2 (en) How to change text stream
JPS61148085A (en) Electronic apparatus
JPS58121439A (en) Document insertion system of editing processor
JPS6027583A (en) Controlling system for micro-spacing
JPH06149806A (en) Document shaping output device and method therefor
US5745911A (en) System for performing spell check functions on a printing device without operator intervention
EP0249794B1 (en) Automatic stop code insertion feature for a word processing apparatus
US4402058A (en) Keyboard mismatch correction
JP2763227B2 (en) Format determination method
JPS61202877A (en) Output device
JPH08252900A (en) Composing processor
JPH0666066B2 (en) Document processor with furigana addition function
JPH05165824A (en) Information processor
JPS62297171A (en) Information output device
JPH02277170A (en) Electronic dictionary
JPS6083869A (en) Printing apparatus
JPS62262099A (en) Pronunciation dictionary updating apparatus
JPH103469A (en) Japanese hyphenation processing method and document processor
JPS59105129A (en) Character processor
JP2789596B2 (en) Document processing device
JPS62297169A (en) Information output device
JPS6349438A (en) Printing processing system
JPS63725A (en) Character processor
JPH04318660A (en) Document format setting method
JPH0721182A (en) Character processor and its method