JPS6315154B2 - - Google Patents

Info

Publication number
JPS6315154B2
JPS6315154B2 JP10234282A JP10234282A JPS6315154B2 JP S6315154 B2 JPS6315154 B2 JP S6315154B2 JP 10234282 A JP10234282 A JP 10234282A JP 10234282 A JP10234282 A JP 10234282A JP S6315154 B2 JPS6315154 B2 JP S6315154B2
Authority
JP
Japan
Prior art keywords
overstrike
text
line
characters
escapement
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
Application number
JP10234282A
Other languages
Japanese (ja)
Other versions
JPS58220778A (en
Inventor
Jenii Baanzu Jonii
Edowaado Chukuran Rudorufu
Jeemuzu Haarei Patoritsuku
Rii Rainman Harii
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.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
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 International Business Machines Corp filed Critical International Business Machines Corp
Priority to JP10234282A priority Critical patent/JPS58220778A/en
Publication of JPS58220778A publication Critical patent/JPS58220778A/en
Publication of JPS6315154B2 publication Critical patent/JPS6315154B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 本発明は行揃えされるべきテキスト行のオーバ
ーストライクに関するものであり、更に詳しくい
えばテキスト行におけるワード間スペースを拡張
して行揃えしそしてこの行揃えされたテキストを
オーバーストライクするため正しい数のオーバー
ストライク記号を与える方法に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to overstriking lines of text that are to be justified, and more particularly to extending the interword spaces in lines of text to align them and making the aligned text It concerns how to give the correct number of overstrike symbols to overstrike.

従来技術の説明 1つのドキユメントにおけるテキストの一部分
を残りの部分から明示的に区別するために従来使
われていた1つの方法はスラツシユ・マークのよ
うな特定のオーバーストライク文字でもつてその
区別されるべきテキストをすべてオーバーストラ
イク(重ね打ち)することである。例えば、委員
会の投票により無効となつた規定及び委員会の投
票後もそのまま残つている規定を有するドキユメ
ントの形をした法案を考えてみよう。無効になつ
た規定は最早その提案された法案の一部分とはな
らないけれども投票人にとつてはその無効になつ
た規定を含むその法案審議の過程で考慮されたす
べての規定を見ることが出来る方が望ましい場合
がある。従つて、その無効になつた規定はそのド
キユメントの中に含まれるが例えばスラツシユに
よつてオーバーストライクされる。その従来方法
では、オーバーストライクされたテキストの行に
沿つてオーバーストライク文字を一様にわずかに
間隔を印刷させることがドキユメントの外観から
みて最も望ましいと考えられていた。従つて、そ
れはそのオーバーストライクされたテキストのワ
ード間スペースにオーバーストライク記号が生じ
ないものよりも望ましいと考えられている。
Description of the Prior Art One method previously used to explicitly distinguish a portion of text from the rest of a document is to use certain overstrike characters, such as slash marks, to explicitly distinguish a portion of text from the rest of the document. This means overstriking all the text. For example, consider a bill in the form of a document that has provisions that are invalidated by a committee vote and provisions that remain in place after the committee vote. Even though the invalidated provision is no longer part of the proposed bill, voters can see all provisions considered during the bill's consideration, including the invalidated provision. may be desirable. Therefore, the invalidated provision is included in the document but is overstrike, for example by slashing. In the prior art, it was considered most desirable for the appearance of the document to have the overstrike characters printed uniformly and slightly spaced along the lines of overstrike text. Therefore, it is considered preferable to one in which the overstrike symbol does not occur in the interword spaces of the overstripped text.

上記のドキユメントでは、その印刷されたテキ
ストの右マージンの行揃えを行うことも望ましか
つた。特に100パーセントの右マージン行揃えが
行われる時、そのドキユメントの右マージンは左
マージンのように一様になりそしてそのドキユメ
ントはその印刷された形が非常に望ましい外観を
持つことになる。代表的な右マージン行揃え技法
は最後のテキスト文字又は記号と選択された右マ
ージンとの間の白スペースの残余を計算し、その
残余をその行の文字間スペースの間に比較的平均
して分配してその行の最後の文字又は記号が右マ
ージンに接するようにするものである。しかし、
上記の方法のオーバーストライクされたテキスト
がこの行揃え処理を受ける場合特有の問題を生ず
ることがわかる。その分配されたスペース残余を
ワード間スペースに分配すると、本発明の助けが
なければ、オーバーストライクされるべきテキス
トの終りにオーバーストライク文字が達する前に
それらオーバーストライク文字がなくなつてしま
うという結果を生ずるであろう。この問題はオー
バーストライクの意図された意味に誤りを生じさ
せることになる。
In the above document, it was also desirable to align the right margin of the printed text. Especially when a 100 percent right margin alignment is performed, the document's right margin will be as uniform as its left margin, and the document will have a very desirable appearance in its printed form. A typical right margin alignment technique calculates the residual white space between the last text character or symbol and the selected right margin, and averages that residual relative to the intercharacter spacing for that line. It is distributed so that the last character or symbol on the line touches the right margin. but,
It can be seen that the above method presents particular problems when overstripped text is subjected to this alignment process. Distributing that distributed space remainder to interword spaces would, without the aid of the present invention, result in overstrike characters being exhausted before they reach the end of the text to be overstrike. will occur. This problem would mislead the intended meaning of overstrike.

従つて、オーバーストライクされたテキストが
行揃えされる時オーバーストライク文字の一様な
分配を自動的に得ることが非常に望ましい。
Therefore, it is highly desirable to automatically obtain a uniform distribution of overstrike characters when overstrike text is justified.

発明の概略 従つて、行揃え中にワード間スペースに分配さ
れた残余の量が追加のオーバーストライク文字の
数を決定するために使用されるというオーバース
トライクされたテキストの行揃えのためのシステ
ム及び技法が与えられる。これはオーバーストラ
イクされるべきテキストを形成するよう編集中の
テキスト・ストリームに制御を与えることによつ
て達成される。印刷する前に、その編集されたデ
ータ・ストリームにおけるこれら制御はワード間
スペースの拡張によつてまずその印刷行を行揃え
させ、続いてその行揃え処理中に決定された適正
な数のオーバーストライク文字でもつてオーバー
ストライクさせることである。
SUMMARY OF THE INVENTION Accordingly, a system and a Techniques are given. This is accomplished by giving control to the text stream being edited to form the text that is to be overstripped. Before printing, these controls in the edited data stream first justify the printed lines by expanding the interword spaces, followed by an appropriate number of overstrike determined during the justification process. Even the letters are overstrike.

好ましい実施例の説明 第1図に示された第1の即ち最上部のブロツク
はテキスト貯蔵バツフアに貯蔵された行揃えされ
てなく且つオーバーストライクされたテキスト行
を示すものである。文字ABC DEFG HIJKLは
1行のテキストにおける長さの異なるワードを表
わす。その行の始めに、オペレータはBOSとし
て表わされる非印字、非エスケープのコントロー
ル・コードを打鍵した。このコードはこの位置か
ら打鍵された文字及びスペースをオーバーストラ
イクし始めるようシステムに命令するオーバース
トライク開始というコントロール・コードであ
る。この行の終りにはEOSというオーバースト
ライク終了のコントロール・コードがあり、それ
はオーバーストライク動作を終るようシステムに
命令するものである。この位置にはこの行におけ
る文字のエントリを終らせるキヤリア・リター
ン・コードも示される。右マージン位置の表示は
最上部ブロツクの右に示される。3文字幅の白ス
ペース・ブロツクがキヤリア・リターン・コード
前にその行で打鍵された最終テキスト文字と右マ
ージン位置との間に残ることに注意されたい。行
揃えルーチンではこの白スペースの残余をその行
に存在するワード間スペースの中に分配すること
が望ましい。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The first or top block shown in FIG. 1 represents unaligned and overstrike lines of text stored in a text storage buffer. The letters ABC DEFG HIJKL represent words of different lengths in a line of text. At the beginning of that line, the operator typed a non-printable, non-escaping control code represented as BOS. This code is a control code called Start Overstrike that instructs the system to begin overstriking characters and spaces typed from this position. At the end of this line is an overstrike termination control code called EOS, which instructs the system to terminate the overstrike operation. Also shown at this location is the carrier return code that terminates the entry of characters on this line. An indication of the right margin position is shown to the right of the top block. Note that a three character wide block of white space is left between the last text character typed on the line and the right margin position before the carrier return code. It is desirable for the line alignment routine to distribute this remaining white space among the interword spaces present on the line.

第1図の最上部ブロツクの例では3つのワード
間スペースが示される。従つて、3文字幅の白ス
ペースから成る残余は等しく分配され第1図の中
央部分に示されるようにそれらワード間スペース
に加えられる。しかし、オーバーストライク文字
(スラツシユ・マーク)の数はこの行揃え処理に
よつては変更されないことに注意されたい。従つ
て、原稿でオーバーストライクされたテキストの
一部分が行揃え後にはオーバーストライクされな
いことになる。この位置で動作が終つた場合、そ
の結果として生ずるドキユメントはオーバースト
ライクという意図された意味からみれば不正確と
なる。第1図の最下部を参照すると、オーバース
トライク文字の数は調整されオーバーストライク
されたテキストのずつと望ましい外観が生ずるよ
うにオーバーストライク文字をそれらほぼ等しい
間隔で分配された白スペースに重ねることに注意
されたい。
In the example top block of FIG. 1, three interword spaces are shown. Therefore, the remainder consisting of three characters wide white space is equally distributed and added to the interword spaces as shown in the center portion of FIG. Note, however, that the number of overstrike characters (slash marks) is not changed by this alignment process. Therefore, a portion of the text that was overstripped in the manuscript will not be overstripped after alignment. If the operation were to end in this position, the resulting document would be incorrect in the intended sense of overstrike. Referring to the bottom of Figure 1, the number of overstrike characters is adjusted so that the overstrike characters overlap their approximately equally spaced white spaces to produce the desired appearance of overstrike text. Please be careful.

第2図を参照すると、行揃え後のテキストのブ
ロツク・オーバーストライクを処理するためのシ
ステムのブロツク図が示される。マイクロプロセ
ツサ1はプリンタ・エスケープメントに依存した
行揃えルーチン2とブロツク・オーバーストライ
ク解決ルーチン11でもつてプログラムされる。
一時に1テキスト行が1文字ずつテキスト貯蔵バ
ツフア9から線8及び行揃え及びオーバーストラ
イク解決のためのマイクロプロセツサ1、線3を
介して行バツフア7に転送される。テキスト貯蔵
バツフア9及び行バツフア7の両方ともランダ
ム・アクセス・メモリ6の一部分である。
Referring to FIG. 2, a block diagram of a system for handling block overstrike of justified text is shown. The microprocessor 1 is also programmed with a printer escapement dependent alignment routine 2 and a block overstrike resolution routine 11.
One text line at a time is transferred one character at a time from text storage buffer 9 to line buffer 7 via line 8 and microprocessor 1 for alignment and overstrike resolution, line 3. Both text storage buffer 9 and row buffer 7 are part of random access memory 6.

プリンタのための利用されるべき最小エスケー
プメント単位とシステム最小エスケープメント単
位及びスペース・エスケープメントのような他の
行揃えパラメータがプリンタ単位コントロール・
ブロツク10から線4及び14を介してマイクロ
プロセツサ1に入力される。なお、ブロツク10
もランダム・アクセス・メモリ6の一部分であ
る。スペース・カウント、商、剰余及び累算され
たプリンタの残余等がマイクロプロセツサ1から
線5及び13を介してプリンタ単位コントロー
ル・ブロツク10に転送される。
The minimum escapement unit to be used for the printer and other alignment parameters such as the system minimum escapement unit and space escapement are determined by printer-specific controls.
From block 10 there is an input to microprocessor 1 via lines 4 and 14. In addition, block 10
is also part of the random access memory 6. Space counts, quotients, remainders, accumulated printer residuals, etc. are transferred from the microprocessor 1 via lines 5 and 13 to the printer unit control block 10.

マイクロプロセツサのメモリにおけるプリン
タ・エスケープメント依存の行揃えルーチン2
は、テキスト貯蔵バツフア9から読取られたテキ
ストにおけるオーバーストライク・シーケンスの
始め又は終りが処理され行バツフア7に転送され
る時、マイクロプロセツサ・メモリのブロツク・
オーバーストライク解決ルーチン11とインター
フエースする。オーバーストライク解決のプログ
ラムはオーバーストライク開始シーケンスがその
テキスト行の処理中に遭遇する時プリンタ単位コ
ントロール・ブロツク内のパラメータをリセツト
する。行揃えパラメータはランダム・アクセス・
メモリ6のプリンタ単位コントロール・ブロツク
10から取り出され、そしてこれらパラメータは
オーバーストライク終了コードがテキスト行の終
りに検出される時オーバーストライク・シーケン
スを解決するために使用される。行バツフア7に
おけるデータ・コードは行揃えされたテキストを
本発明の改良された方法でオーバーストライクす
るデータを含むように調整される。
Printer escapement-dependent line alignment routine in microprocessor memory 2
When the beginning or end of an overstrike sequence in text read from text storage buffer 9 is processed and transferred to line buffer 7, a block of microprocessor memory is
Interfaces with overstrike resolution routine 11. The overstrike resolution program resets parameters in the per-printer control block when an overstrike initiation sequence is encountered while processing that line of text. The alignment parameter is random access
These parameters are retrieved from the per-printer control block 10 in memory 6 and used to resolve the overstrike sequence when an overstrike end code is detected at the end of a line of text. The data code in line buffer 7 is adjusted to contain data that overstrikes aligned text in the improved manner of the present invention.

第3図乃至第8図の流れ図は第2図のプリン
タ・エスケープメント依存の行揃えルーチン2及
びブロツク・オーバーストライク解決ルーチン1
1からの命令に従つてマイクロプロセツサ1によ
り遂行され且つ制御される判断及び動作を表わ
す。これら2つのルーチンの命令の貯蔵は命令を
持つた読取専用貯蔵装置の形で、従つて恒久的に
配線された形で、具体化される。しかし、これら
命令の貯蔵は、電源がシステムに接続された時に
いつも命令がロードされなければならないような
マイクロプロセツサ1と関連したランダム・アク
セス・メモリの形で実施されてもよい。もう1つ
の実施例として、プロセツサ1及びルーチン2,
11はこのようなプロセツサも命令も利用されな
い組合せロジツクによつて完全に置換可能であ
る。後述の流れ図はコンピユータ・プログラミン
グの分野の当業者が本発明の原理に従つて行揃え
及びブロツク・オーバーストライク技法をプログ
ラムすることを可能にするものである。又、これ
らの流れ図はロジツク設計の分野の当業者が本発
明の概念に従つてハードウエア・ロジツクを特定
するのを可能にするものである。
The flowcharts in Figures 3 through 8 are the printer escapement-dependent line alignment routine 2 and block overstrike resolution routine 1 in Figure 2.
1 represents the decisions and actions performed and controlled by the microprocessor 1 according to instructions from the microprocessor 1. The storage of instructions for these two routines is implemented in the form of a read-only storage with instructions, thus permanently hardwired. However, the storage of these instructions may also be implemented in a random access memory associated with the microprocessor 1, such that the instructions must be loaded whenever power is connected to the system. In another embodiment, processor 1 and routine 2,
11 can be completely replaced by combinational logic that utilizes neither such processors nor instructions. The flowcharts described below will enable those skilled in the art of computer programming to program alignment and block overstrike techniques in accordance with the principles of the present invention. These flowcharts also enable those skilled in the art of logic design to specify hardware logic in accordance with the concepts of the present invention.

第3図を参照すると、行揃え開始コマンド又は
信号によつて、テキスト貯蔵バツフア9に貯蔵さ
れていたテキスト行がバツフア7に転送され、各
文字は第3図の20で示されるようにその行にお
けるワード間スペースの数を計算するために走査
される。スペースが存在しない場合、行揃えは命
じられず、動作は第6図に示されるように行揃え
ルーチンの終りへジヤンプする。その行にスペー
スが存在する場合、21においてテキストの走査
が継続し、そのテキスト行の最終文字とそれに続
くマージンとの間の幅のシステム・エスケープメ
ント単位を決定する。白スペースの残余がない場
合、22におけるテストの結果は否定的となり、
動作は再び第6図の行揃えルーチンの終りへジヤ
ンプする。残余が存在する場合、23においてそ
の残余は20で計数されたスペース数により除算
され、商の整数部分であるスペース拡張係数及び
剰余を決定する。商の整数部分及び剰余は特願昭
56−75059の特許出願で詳細に示されているよう
にシステム・エスケープメント単位のものであ
る。24ではテキスト貯蔵バツフア9におけるテ
キスト行の開始アドレス及び終了アドレスがサー
チされる。
Referring to FIG. 3, the line alignment start command or signal causes the line of text stored in text storage buffer 9 to be transferred to buffer 7, where each character is stored in its line as indicated at 20 in FIG. is scanned to calculate the number of interword spaces in . If there is no space, no alignment is commanded and the operation jumps to the end of the alignment routine as shown in FIG. If a space exists on the line, scanning of the text continues at 21 to determine the system escapement unit of width between the last character of the line of text and the following margin. If there is no white space left, the result of the test in 22 will be negative;
Operation jumps again to the end of the alignment routine of FIG. If a remainder exists, the remainder is divided by the number of spaces counted by 23 at 23 to determine the space expansion factor and the remainder, which is the integer part of the quotient. The integer part of the quotient and the remainder are
56-75059 is a system escapement unit as detailed in patent application No. 56-75059. At 24, the start and end addresses of the text line in the text storage buffer 9 are searched.

動作は第4図の25へ進む。テキスト貯蔵バツ
フア9の行開始アドレスがアドレスされそして2
5におけるテストはテキスト貯蔵バツフア9でア
ドレスされるテキストがその行の行揃え領域内に
あるかどうかを決定することである。例えば、そ
の行の始めにタブがある場合、このタブに続くテ
キストに続く第1ワード間スペースまで行揃えは
始まり得ない。25におけるテストの結果が肯定
的である場合、ワード間スペース又はスペース・
シーケンスが現在アドレスされつつあるかどうか
を決定するためのテストが26で行われる。その
テストが肯定的結果である場合、27において分
配係数がスペース・エスケープメント値に加えら
れる。その分配係数は第3図の23で決定された
商の整数部分である。スペース分配係数が加えら
れるテキスト貯蔵バツフア9のワード間スペース
は予め選択された数の最小のシステム・エスケー
プメント単位として定義された最小スペース・サ
イズを割当てられたものである。27における動
作の結果、前に得られた商の整数部分がこの最小
スペース・サイズに加えられた。28において第
3図の23で決定された商の整数部分はブロツ
ク・オーバーストライク・エスケープメント調整
値にも加えられる。そのブロツク・オーバースト
ライク・エスケープメント調整値はオーバースト
ライクされたテキストにおけるワード間スペース
の間に分配される白スペース残余部分のエスケー
プメントである。
The operation proceeds to step 25 in FIG. The line start address of text storage buffer 9 is addressed and 2
The test at 5 is to determine whether the text addressed in text storage buffer 9 is within the alignment area of that line. For example, if there is a tab at the beginning of the line, alignment cannot begin until the first interword space following the text following the tab. If the result of the test in 25 is positive, the inter-word spaces or
A test is performed at 26 to determine whether the sequence is currently being addressed. If the test is positive, the partition coefficient is added to the space escapement value at 27. The distribution coefficient is the integer part of the quotient determined at 23 in FIG. The interword spaces of the text storage buffer 9 to which the space distribution factors are added are allocated a minimum space size defined as a preselected number of minimum system escapement units. As a result of the operation at 27, the integer part of the previously obtained quotient was added to this minimum space size. At 28, the integer portion of the quotient determined at 23 of FIG. 3 is also added to the block overstrike escapement adjustment value. The block overstrike escapement adjustment value is the escapement of the remaining white space distributed between the interword spaces in overstrike text.

25又は26のいずれかのテストの否定的結果
は第5図を介して第6図のテスト42へ動作を進
めさせ、オーバーストライク開始コードが検出さ
れないか又はオーバーストライク終了コードが先
に検出された結果オーバーストライク・モードが
不活動状態であるかどうかを決定する。オーバー
ストライク・モードが不活動状態である場合、4
1におけるテストが行われ、テキスト貯蔵バツフ
ア9における貯蔵ロケーシヨンが第3図の24で
決定された行終了のアドレスであるかどうかを決
定する。それが肯定結果である場合、行揃えルー
チンは終了するか、それが否定結果である場合に
は動作は24におけるテストに戻る。オーバース
トライク・モードが活動状態にある場合、43に
おける動作は後述の第7図乃至第9図に示される
ブロツク・オーバーストライク解決ルーチンに進
む。ブロツク・オーバーストライク解決ルーチン
の終了の時、動作は前述のように41におけるテ
ストに進む。
A negative result of either test 25 or 26 causes operation to proceed through FIG. 5 to test 42 of FIG. 6, where either the overstrike start code is not detected or the overstrike end code is detected first. Determine whether the result overstrike mode is inactive. 4 if overstrike mode is inactive
A test at 1 is performed to determine whether the storage location in text storage buffer 9 is the end-of-line address determined at 24 in FIG. If it is a positive result, the alignment routine ends, or if it is a negative result, operation returns to the test at 24. If overstrike mode is active, the operation at 43 proceeds to the block overstrike resolution routine shown in FIGS. 7-9, described below. Upon completion of the block overstrike resolution routine, operation proceeds to the test at 41 as previously described.

41における否定的テスト結果が生ずる時には
いつもテキスト貯蔵バツフア・アドレス・ポイン
タが1だけ増数されそして動作は第4図の25に
おけるテストに戻り、テキスト貯蔵バツフアにお
ける次のコードがその行の行揃え領域内にあるか
どうか及び白スペースの分配係数が加えられるワ
ード間スペース・コード又はスペース・シーケン
スであるかどうかを決定する。
Whenever a negative test result at 41 occurs, the text storage buffer address pointer is incremented by 1 and operation returns to the test at 25 of FIG. Determine whether the white space distribution coefficient is within the interword space code or space sequence to which it is added.

第4図の29において、第3図の23で得られ
た残余部分の分配がテキスト行の左端から始まり
右へ進行するのか或いはテキスト行の右端から始
まり左へ進行するのかを決定するためのテストが
行われる。その分配が左から右である場合、その
残余が失くなつたかどうかを決めるためのテスト
が30で行われる。それが肯定結果である場合、
動作は前述のように第5図の34へ進む。それが
否定結果である場合、31において単一のシステ
ム・エスケープメント単位が第4図の27で拡張
されたスペースに加えられ、残余の計数が1だけ
減数される。然る後、45において1システム・
エスケープメント単位がブロツク・オーバースト
ライク調整値に加えられる。
At 29 of FIG. 4, a test is performed to determine whether the distribution of the residual portion obtained at 23 of FIG. will be held. If the distribution is left to right, a test is performed at 30 to determine whether the remainder has been lost. If it is a positive result,
Operation proceeds to 34 in FIG. 5 as described above. If it is a negative result, a single system escapement unit is added at 31 to the space expanded at 27 of FIG. 4 and the remaining count is decremented by one. After that, in 1945, one system
Escapement units are added to the block overstrike adjustment.

第4図の29におけるテストが右から左への残
余の部配を示す場合、その行におけるスペースの
数がその分配の残りより小さい又は等しいかどう
かを決めるためのテストが32で行われる。それ
が肯定結果である場合、33において1システ
ム・エスケープメント単位が第4図の27で拡張
されたスペースに加えられ、然る後44において
1システム・エスケープメント単位がブロツク・
オーバーストライク・エスケープメント調整値に
加えられる。それが否定結果である場合、動作は
第5図へ直接に進み、34においてスペース・カ
ウントが減数される。
If the test at 29 of FIG. 4 indicates a right-to-left remainder distribution, a test is made at 32 to determine whether the number of spaces in that row is less than or equal to the remainder of that distribution. If it is a positive result, at 33 one system escapement unit is added to the space expanded at 27 of FIG. 4, then at 44 one system escapement unit is added to the block.
Added to overstrike escapement adjustment. If it is a negative result, operation proceeds directly to FIG. 5 and the space count is decremented at 34.

動作は35へ進み、その行のプリンタ行揃えが
始まる。第4図の31及び33で調節され第4図
の27で決定されたスペース・シーケンスはプリ
ンタ最小エスケープメント単位の整数倍に等しい
エスケープメントに丸められる。このプリンタ最
小エスケープメント単位のパラメータは第2図の
ランダム・アクセス・メモリ6のプリンタ単位コ
ントロール・ブロツク10に貯蔵される。然る
後、テキスト貯蔵バツフア9において現在アドレ
スされつつあるスペースがその行における最終ス
ペースであるかどうかを決めるために現在のスペ
ース・カウントをゼロと比較することによつて3
6でのテストが行われる。それが否定結果である
場合、動作は第6図の42及び41におけるテス
トに進み、41におけるテストの結果が否定的で
ある場合にはその行における次の文字を走査す
る。36でテストされるスペースがその行におけ
る最終スペースである場合、動作は37における
テストへ進み、左から右又は右から左へのどちら
のテキスト走査が生じつつあるかを再び決定す
る。走査が左から右である場合、39において3
5の丸め動作の前と後のエスケープメントの差が
その行における左端のワード間スペースに加えら
れる。走査が右から左である場合、38において
35の丸め動作で得られた差がその行における右
端のワード間スペースに加えられる。いずれの場
合でも、累算されたエスケープメント残余カウン
タは40においてクリアされ、動作はオーバース
トライク・モードが不活動状態であるかどうかを
決めるために42におけるテストに進む。それが
肯定結果である場合、その行が終了したかどうか
を決めるためのテストが41で行われる。それが
否定結果である場合、動作は41におけるテスト
に戻る前に、後述の第7図乃至第9図のブロツ
ク・オーバーストライク解決ルーチンに進む。行
開始アドレスから行終了アドレスまでのテキスト
貯蔵バツフア9における各貯蔵位置が前述のよう
に処理されてしまうまで動作は第6図の41にお
けるテストの否定結果から第4図の25における
テストへループし続ける。行終了に到達する時、
第6図の41におけるテストの肯定結果は行揃え
処理を終了させる。
Operation proceeds to 35 and printer line alignment for that line begins. The space sequence adjusted at 31 and 33 in FIG. 4 and determined at 27 in FIG. 4 is rounded to an escapement equal to an integer multiple of the printer minimum escapement unit. The parameters of this printer minimum escapement unit are stored in the printer unit control block 10 of the random access memory 6 in FIG. 3 by comparing the current space count with zero to determine whether the space currently being addressed in the text storage buffer 9 is the last space in the line.
6 will be tested. If it is a negative result, operation proceeds to the tests at 42 and 41 of FIG. 6, and if the result of the test at 41 is negative, the next character in the line is scanned. If the space tested at 36 is the last space in the line, operation proceeds to the test at 37 to again determine whether left-to-right or right-to-left text scanning is occurring. If the scan is left to right, 3 at 39
The difference between the escapements before and after the rounding operation of 5 is added to the leftmost interword space in the line. If the scan is right to left, the difference resulting from the 35 rounding operations is added at 38 to the rightmost interword space in that row. In either case, the accumulated escapement residual counter is cleared at 40 and operation proceeds to a test at 42 to determine if overstrike mode is inactive. If it is a positive result, a test is made at 41 to determine whether the row is finished. If it is a negative result, operation proceeds to the block overstrike resolution routine of FIGS. 7-9, described below, before returning to the test at 41. Operation loops from the negative result of the test at 41 of FIG. 6 to the test at 25 of FIG. 4 until each storage location in the text storage buffer 9 from the line start address to the line end address has been processed as described above. continue. When the end of the line is reached,
A positive result of the test at 41 in FIG. 6 terminates the alignment process.

第7図及び第8図を参照すると、ブロツク・オ
ーバーストライク解決ルーチンが示される。動作
は50におけるテストで始まり、テキスト貯蔵バ
ツフア9において現在アドレスされつつあるコー
ドがオーバーストライク開始コントロール・コー
ドであるかどうかを決める。もしそうならば51
においてエスケープメント調整値がゼロにリセツ
トされる。そうでないならば52におけるテスト
が行われ、テキスト貯蔵バツフア9において現在
アドレスされつつあるコードがオーバーストライ
ク終了コントロール・コードであるかどうかを決
める。もしそうでないならば動作はこのルーチン
の終了へと進み第6図の41におけるテストへ続
く。もしそうならば53においてそのオーバース
トライクされているテキストの幅がその行揃え処
理を補償するよう調整される。エスケープメント
はエスケープメント調整値をそのテキストの最初
の幅に加えることによつて調整される。次に、5
4において、行バツフア7におけるテキストの残
りがそのバツフアの終端へシフトされ、オーバー
ストライク文字がテキスト・ストリームに加えら
れるようそのバツフアにおける貯蔵スペースを開
く。
Referring to FIGS. 7 and 8, a block overstrike resolution routine is shown. Operation begins with a test at 50 to determine whether the code currently being addressed in text storage buffer 9 is an overstrike initiation control code. If so, 51
The escapement adjustment value is reset to zero. If not, a test at 52 is performed to determine whether the code currently being addressed in text storage buffer 9 is an overstrike termination control code. If not, operation proceeds to the end of this routine and continues to the test at 41 in FIG. If so, the width of the overstripped text is adjusted at 53 to compensate for the alignment. Escapements are adjusted by adding the escapement adjustment value to the initial width of the text. Next, 5
At 4, the remainder of the text in line buffer 7 is shifted to the end of the buffer to open storage space in the buffer for overstrike characters to be added to the text stream.

このオーバーストライク文字の数は第8図の5
5に示された動作における次のステツプまで計算
されない。従つて、第8図の55において挿入さ
れるべく計算されるオーバーストライク文字のた
めの空間を作るために行バツフア7の終端まで残
りのテキストすべてを移動することが必要であ
る。56では、バツクスペース・シーケンス及び
オーバーストライク文字がオーバーストライク・
コントロールにより境界づけられたその行バツフ
アのテキストの最終文字の直後の位置に挿入され
る。バツクスペース・シーケンスは53で計算さ
れたエスケープメントに等しい。次に、追加数の
挿入されたオーバーストライク・コードにより実
行されるエスケープメントの量が前に決められた
白スペースの残余に等しいかどうかを決めるため
のテストが57で行われる。それが肯定結果であ
ればエスケープメントの残りは存在せず、動作は
後述のように59へ進む。挿入されたオーバース
トライク文字により加えられたエスケープメント
の量とバツクスペース・シーケンスのエスケープ
メントとの差が存在する場合、57におけるテス
トの結果は肯定となり、そしてこのエスケープメ
ントの残りはこのテキストが印刷される時その動
作を継続する前にプリンタが適当な右又は左のマ
ージンへエスケープするのに必要なコントロー
ル・コードとしてテキスト・ストリームに加えら
れる。これに続いて、行バツフア7の終端までシ
フトされた残りのテキストは加えられたオーバー
ストライク文字の端部又は58で加えられたプリ
ンタ・エスケープメントの残りと隣接するようそ
のバツフア内でシフト・バツクされる。これに続
いて、動作は第6図の41におけるテストに戻
る。
The number of overstrike characters is 5 in Figure 8.
It is not calculated until the next step in the operation shown in 5. It is therefore necessary to move all remaining text to the end of line buffer 7 to make room for the overstrike character calculated to be inserted at 55 in FIG. 56, backspace sequences and overstrike characters are
It is inserted immediately after the last character of the text in the line buffer bounded by the control. The backspace sequence is equal to the escapement computed at 53. A test is then performed at 57 to determine whether the amount of escapement performed by the additional number of inserted overstrike codes is equal to the previously determined white space remainder. If it is a positive result, there is no escapement remaining and operation proceeds to 59 as described below. If there is a difference between the amount of escapement added by the inserted overstrike character and the escapement of the backspace sequence, the result of the test at 57 is positive, and the remainder of this escapement will cause this text to be printed. is added to the text stream as a control code necessary for the printer to escape to the appropriate right or left margin before continuing its operation. Following this, the remaining text shifted to the end of line buffer 7 is shifted back within that buffer so that it is adjacent to the end of the added overstrike character or the remainder of the printer escapement added at 58. be done. Following this, operation returns to the test at 41 in FIG.

第9図に関連して、ブロツク・オーバーストラ
イク解決ルーチンの動作がその図示のロジツク構
成を参照して述べられる。各コードがテキスト貯
蔵バツフア9から読取られ、マイクロプロセツサ
1により処理されそして行バツフア7にロードさ
れる時、文字65により表わされたこのコードは
比較器67においてオーバーストライク終了コー
ド66と比較される。処理されつつある文字65
がオーバーストライク終了コード66と一致する
時、比較器67はオーバーストライク・エスケー
プメント調整値70を加算器72へゲートするよ
うANDゲート68を条件づける信号を出力する。
同時に、比較器67からの出力はオーバーストラ
イク・シーケンス幅71とオーバーストライク・
エスケープメント調整値とが加えられるように
ANDゲート69がその幅71を加算器72へゲ
ートするのを可能にする。73においてこの和は
オーバーストライク文字幅78によつて除算され
そして74において除算器73により得られた商
の整数部分はそのテキスト行に加えられるべきオ
ーバーストライク文字の数Yに等しい。オーバー
ストライク文字の入力は第9図の75で示され
る。除算器73による除算中に得られた剰余は貯
蔵装置76に転送される。77においてその剰余
はすべてのオーバーストライクが実行されてしま
つた時最も近いマージンまでプリンタを動かすの
に必要な順方向エスケープメント変換される。こ
の順方向エスケープメントの加算によつて、プリ
ンタは完全に行揃えされたテキストに合つたマー
ジンで各行を終了させる。
In conjunction with FIG. 9, the operation of the block overstrike resolution routine will be described with reference to its illustrated logic structure. As each code is read from text storage buffer 9, processed by microprocessor 1 and loaded into line buffer 7, this code, represented by character 65, is compared in comparator 67 with overstrike termination code 66. Ru. Characters being processed 65
When matches the overstrike end code 66, comparator 67 outputs a signal that conditions AND gate 68 to gate overstrike escapement adjustment value 70 to adder 72.
At the same time, the output from comparator 67 is equal to the overstrike sequence width 71 and the overstrike sequence width 71.
Escapement adjustment value is now added.
AND gate 69 allows gated width 71 to adder 72. At 73 this sum is divided by the overstrike character width 78 and at 74 the integer part of the quotient obtained by divider 73 is equal to the number Y of overstrike characters to be added to the text line. Input of overstrike characters is shown at 75 in FIG. The remainder obtained during the division by divider 73 is transferred to storage 76 . At 77, the remainder is subjected to the forward escapement transformation necessary to move the printer to the nearest margin when all overstrike has been performed. This addition of forward escapements causes the printer to end each line with a margin that fits perfectly aligned text.

従つて、行揃え中ワード間スペースに分配され
た残余の量がこれら拡張されたワード間スペース
をオーバーストライクする追加のオーバーストラ
イク文字の数を決定するために使用されるという
オーバーストライクされたテキストの行揃え技法
が与えられる。これはオーバーストライクされる
べきテキストを生ずるよう編集中にそのテキス
ト・ストリーム内にオーバーストライク開始及び
オーバーストライク終了のコントロール・コード
を置くことによつて達せられる。印刷前に、その
編集されたデータ・ストリームにおけるコントロ
ール・コードが検出され、まずワー間スペースの
拡張によつてその印刷行を行揃えさせ、続いてそ
の行揃え処理中に決定された適正な数の追加のオ
ーバーストライク文字でもつてオーバーストライ
クさせる。或る意味では、これらオーバーストラ
イク文字はそれらオーバーストライク文字相互間
の間隔の文字間調整によつてそれら自身も行揃え
される。
Therefore, the amount of residual distributed to interword spaces during alignment is used to determine the number of additional overstrike characters that overstrike these expanded interword spaces. Alignment techniques are given. This is accomplished by placing overstrike start and overstrike end control codes within the text stream during editing to yield the text to be overstripped. Before printing, a control code in the edited data stream is detected and the printed line is first justified by expanding the interwork space, followed by the appropriate number determined during the justification process. Overstrike even the additional overstrike characters. In a sense, these overstrike characters are themselves justified by the intercharacter adjustment of the spacing between the overstrike characters.

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

第1図は貯蔵されたままでのテキスト行、本発
明なしで処理されたテキスト行及び本発明により
処理されたテキスト行を示す図、第2図は行揃え
後のテキストのブロツク・オーバーストライクを
処理するためのシステムのブロツク図、第3図乃
至第8図は本発明に従つてテキスト行の行揃え及
びブロツク・オーバーストライクのステツプを示
す流れ図、第9図は本発明に従つてテキスト行を
行揃えしそしてそのテキスト行をオーバーストラ
イクするための構成を示すブロツク図である。
FIG. 1 shows a line of text as stored, a line of text processed without the invention, and a line of text processed with the invention; FIG. 2 shows a block overstrike of the text after alignment. 3 through 8 are flowcharts illustrating the steps for aligning and overstriking text lines in accordance with the present invention; and FIG. 9 is a flow diagram illustrating the steps for aligning text lines in accordance with the present invention FIG. 2 is a block diagram illustrating an arrangement for aligning and overstriking the text lines.

Claims (1)

【特許請求の範囲】 1 テキスト貯蔵バツフアに貯蔵されたテキスト
行を右マージンで行揃えするように動作し得るシ
ステムにおいて、 行揃えされてないテキスト行の行末の白スペー
ス残余をワード間スペースに分配することによつ
て該テキスト行を行揃えし、 該テキスト行におけるオーバーストライク開始
コントロール・コード及びオーバーストライク終
了コントロール・コードを検出し、 該オーバーストライク開始コントロール・コー
ド及びオーバーストライク終了コントロール・コ
ードにより境界づけられたワード間のワード及び
スペースに重ね打ちされるべき複数のオーバース
トライク文字を与え、 前記オーバーストライク開始コントロール・コ
ードとオーバーストライク終了コントロール・コ
ードとの間のワード間スペースに分配された白ス
ペース残余を前記オーバーストライク文字のエス
ケープメント幅で除算し、 前記除算における商の整数部分の値に等しい数
のオーバーストライク文字を前記重ね打ちされる
べき複数のオーバーストライク文字の数に加える ことを特徴とするオーバーストライク・テキスト
生成方法。
Claims: 1. In a system operable to justify lines of text stored in a text storage buffer with a right margin, distributing white space residues at the end of lines of unaligned text to interword spaces. aligning the text line by detecting an overstrike start control code and an overstrike end control code in the text line, and bordering the overstrike start control code and overstrike end control code by providing a plurality of overstrike characters to be overstriked in the interword words and spaces marked, and white spaces distributed in the interword spaces between said overstrike start control code and said overstrike end control code; dividing the remainder by the escapement width of the overstrike characters, and adding a number of overstrike characters equal to the value of the integer part of the quotient in the division to the number of overstrike characters to be overstriked. How to generate overstrike text.
JP10234282A 1982-06-16 1982-06-16 Device for preparing over-strike text Granted JPS58220778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10234282A JPS58220778A (en) 1982-06-16 1982-06-16 Device for preparing over-strike text

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10234282A JPS58220778A (en) 1982-06-16 1982-06-16 Device for preparing over-strike text

Publications (2)

Publication Number Publication Date
JPS58220778A JPS58220778A (en) 1983-12-22
JPS6315154B2 true JPS6315154B2 (en) 1988-04-04

Family

ID=14324820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10234282A Granted JPS58220778A (en) 1982-06-16 1982-06-16 Device for preparing over-strike text

Country Status (1)

Country Link
JP (1) JPS58220778A (en)

Also Published As

Publication number Publication date
JPS58220778A (en) 1983-12-22

Similar Documents

Publication Publication Date Title
EP0098959B1 (en) Method for producing right margin justified text data in a text processing system
EP0117405B1 (en) Automatically balancing and vertically justifying text and/or graphics
EP0117406B1 (en) Automatically balancing and vertically justifying text and/or graphics
US4298945A (en) Character generating method and apparatus
US4199815A (en) Typesetter character generating apparatus
US4783760A (en) Word processing text justification method
EP0042045B1 (en) Automatic line justification process' in a text processing system comprising a plurality of printers
US4357680A (en) Selective formatting of blocks of text codes in a memory of a word processing system
US3546681A (en) Programmed method for manipulating electronic fonts in electronic photocomposition systems
US4212553A (en) Tabulation control system having two electronic tab racks
EP0026303B1 (en) Line adjustment apparatus in a text processing system
US4397572A (en) Justification of overstruck text
JPS6315154B2 (en)
US4850726A (en) Word processor provided with an automatic tabset means
US4749989A (en) Word processing composite character processing method
JP2816181B2 (en) Document processing device
US4963042A (en) Horizontal line position adjusting in frame processing device
KR100223496B1 (en) Character generating apparatus and method
EP0205081A2 (en) Word processing composite character processing method
AU607258B2 (en) Automatic function control for an electronic typewriter
JP2562765B2 (en) Printing control method for word processor
JPH09319743A (en) Character composing method
JPS581473B2 (en) memory tuning system
JPH0131633B2 (en)
JPH0356189B2 (en)