JPH0352091B2 - - Google Patents

Info

Publication number
JPH0352091B2
JPH0352091B2 JP58096391A JP9639183A JPH0352091B2 JP H0352091 B2 JPH0352091 B2 JP H0352091B2 JP 58096391 A JP58096391 A JP 58096391A JP 9639183 A JP9639183 A JP 9639183A JP H0352091 B2 JPH0352091 B2 JP H0352091B2
Authority
JP
Japan
Prior art keywords
characters
data
monitor
code
printed
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
JP58096391A
Other languages
Japanese (ja)
Other versions
JPS59221738A (en
Inventor
Kazumi Kishimoto
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.)
Pentel Co Ltd
Original Assignee
Pentel Co 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 Pentel Co Ltd filed Critical Pentel Co Ltd
Priority to JP58096391A priority Critical patent/JPS59221738A/en
Publication of JPS59221738A publication Critical patent/JPS59221738A/en
Publication of JPH0352091B2 publication Critical patent/JPH0352091B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はモニター印字方式に関し、詳しくは、
校正作業に使用するモニターの印字に際し、全角
文字のみを印字するモニタープリンタで、全角よ
り小さな字幅の文字についても全角で印字するモ
ニター印字方式の改良に関する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to a monitor printing method, and in detail,
This invention relates to an improvement in a monitor printing method that prints only full-width characters when printing on a monitor used for proofreading work, even when characters with a character width smaller than full-width are printed in full-width characters.

(従来の技術) 電子計算機を使用した製版システムでは、校正
作業に供するモニター(ゲラ刷り)はモニタープ
リンタで作成される。この場合モニタープリンタ
はコストを抑えることが望まれているため機能が
豊富でなく印字すべき文字のサイズが2分角や4
分角である場合でもこれを全角で印字するように
したものが多い。
(Prior Art) In a plate-making system using an electronic computer, a monitor (galley print) used for proofreading is created using a monitor printer. In this case, monitor printers are desired to keep costs down, so they do not have a wide range of functions, and the size of characters to be printed is limited to 2 arc minutes or 4 arc minutes.
Even if it is an arc minute, it is often printed in full-width characters.

(発明が解決しようとする課題) このようなモニタープリンタでは、右寄せ、セ
ンタリング、スペース等分など所定の文字配列が
指示された行に2分角や4分角の文字が多く含ま
れている場合は、モニタープリンタの当該行にお
ける印字部分の幅が実際の印刷物のそれより大き
くなり、その結果残りのスペースが少なくなつて
当該行において右寄せ、センタリング、スペース
等分等の処理がなされているか否か判別しにくい
という欠点があつた。
(Problem to be Solved by the Invention) In such a monitor printer, if a line in which a predetermined character arrangement such as right alignment, centering, or equal spacing is specified contains many half-width or quarter-width characters. The width of the printed part on the line of the monitor printer is larger than that of the actual printed matter, and as a result, the remaining space is less, and the line has been processed by right alignment, centering, equal space division, etc. The drawback was that it was difficult to distinguish.

(発明が解決しようとする手段) 本発明は、如上の問題点に鑑みなされた物であ
つて、全角しか印字できないプリンタを使用する
モニター印字方式であつて、モニター印字する文
章のセンタリング、右寄せ、スペース等分等の文
字配列のため前記モニターする文章の印刷字詰数
に基づいて算出した挿入スペースがモニター所定
の印刷字詰数の値より小さいとき、前記スペース
に代え、前記モニター所定の印刷字詰数より大き
な字詰数に基づいて算出したスペースを前記セン
タリング、右寄せ、スペース等分等の文字配列の
ために挿入するモニター印字方式を提案するもの
である。
(Means to be Solved by the Invention) The present invention has been devised in view of the above-mentioned problems, and is a monitor printing method using a printer capable of printing only full-width characters. When the insertion space calculated based on the number of printed characters of the text to be monitored is smaller than the value of the number of printed characters specified by the monitor due to the character arrangement such as equal space division, the printed characters specified by the monitor will be inserted instead of the space. This paper proposes a monitor printing method in which a space calculated based on the number of characters larger than the number of characters is inserted for character arrangement such as centering, right alignment, equal space division, etc.

(作用) 上述の欠点を除去し、機能が豊富でないモニタ
ープリンタを使用するにも拘らず右寄せ、センタ
リング、スペース等分等の処理が行なわれている
か否かの確認が容易なモニターを作成することが
できるモニター方式である。すなわち本発明は、
全角のみしか印字できないモニタープリンタで、
全角より小さいサイズの文字についても、全角で
印字するモニター印字方式において、右寄せ、セ
ンタリング、スペース等分等の本来の文字配列の
ため印刷字詰数に基づいて算出した挿入スペース
が本来印刷すべき文書の値より小さいとき、前記
スペースに代え、前記印刷字詰数より大きな字詰
数に基づいて算出したスペースを前記文字配列の
ために挿入することができるものである。
(Function) To eliminate the above-mentioned drawbacks and create a monitor that makes it easy to check whether right alignment, centering, space division, etc. are being performed even though a monitor printer that is not rich in functions is used. This is a monitoring method that allows you to That is, the present invention
With a monitor printer that can only print full-width characters,
Even for characters smaller than full-width, in the monitor printing method that prints in full-width, the insertion space calculated based on the number of printed characters is the original character arrangement such as right alignment, centering, and equal spacing, so the insertion space calculated based on the number of characters to be printed is the document that should originally be printed. When the value is smaller than the value of , a space calculated based on a number of characters larger than the number of characters to be printed can be inserted for the character arrangement instead of the space.

(実施例) 以下図示実施例に基づいて本発明を詳細に説明
する。
(Example) The present invention will be described in detail below based on the illustrated example.

第1図は本発明を実施するためのブロツク構成
の一例を示す。図において参照符号1は紙テープ
読取装置であり、校正に供する記事の内容を記録
(パンチ)した紙テープがこの装置で読取られる。
参照符号2はキーボードであり、処理開始その他
の必要な命令およびデータを入力するのに使用さ
れる。参照符号3はマイクロプロセツサであり、
プログラムメモリ4に格納されたプログラムに従
つて後述の各データ処理を実行する。参照符号5
はデータバツフアであり、紙テープ読取装置1で
読み取つたデータの格納およびデータ処理の過程
で必要とされる諸データの格納に使用される。参
照符号6はプリンタであり、内部に印字制御回路
を有し、前記マイクロプロセツサ3から供給され
るデータに従つてフオントメモリ7からフオント
データを読み出してモニターを作成する。フオン
トメモリ7には印字に必要な全角のフオントが格
納されており、通常漢字入力機や校正機のCRT
デイスプレイのフオントメモリが共用される。参
照符号8はサイズテーブルであり、各文字のサイ
ズ(全角、半角)を示すテーブルが格納されてい
る。
FIG. 1 shows an example of a block configuration for implementing the present invention. In the figure, reference numeral 1 is a paper tape reading device, and a paper tape on which the contents of an article to be proofread are recorded (punched) is read by this device.
Reference numeral 2 designates a keyboard, which is used to enter processing start and other necessary commands and data. Reference number 3 is a microprocessor;
Each data process described later is executed according to the program stored in the program memory 4. Reference number 5
is a data buffer, which is used to store data read by the paper tape reader 1 and various data required in the process of data processing. Reference numeral 6 denotes a printer, which has an internal print control circuit and reads out font data from the font memory 7 in accordance with data supplied from the microprocessor 3 to create a monitor. The font memory 7 stores full-width fonts necessary for printing, and is usually used on a CRT of a kanji input machine or proofreading machine.
Display font memory is shared. Reference numeral 8 is a size table, and a table indicating the size (full-width, half-width) of each character is stored.

第2図は紙テープのデータフオーマツト例を示
す。図において11は始めコードであり、ここか
らデータが記録されていることを示す。
FIG. 2 shows an example of a data format for paper tape. In the figure, 11 is a start code, indicating that data is recorded from here.

参照符号12はレーベル部であり、記事内容を
示す略号、行数、字詰数、字体、縦書き、横書き
の別、その他製版に必要な種々の情報が記録され
ている。13は区分コードであり、レーベル部1
2と次の記事データ部14の区切りを示す。記事
データ部14には記事内容を示す文字コードが所
謂棒打ち、すなわち必要な箇所に改行や字体指示
コード等のフアンクシヨンコードと共に連続的に
記録されている。なお、本実施例では文字のサイ
ズは文字コードそのもので区別されるものとす
る。例えば出願人では同じ数字「1」でも全角な
ら「2331」というコードが付され、左付半角なら
「7822」というコードが付されている。そして、
これに対応してフオントメモリ7にはコード2331
に対応する番地に第3図Aのような全角「1」を
示すフオントが、またコード7822に対応する番地
に第3図Bにような左付の半角を示す「1」のフ
オントが格納されており、また、サイズテーブル
8の文字コード2331に対応する番地には全角を示
す「1」の数値が、コード7822に対応する番地に
は2分角を示す1/2」の数値が格納されている。
なお、第3図A,Bの2点鎖線はフオントの周
縁、すなわち例えば、縦、横24ドツトで構成され
るフオントの周縁を表わすものであつてフオント
そのものではない。また、第3図Bのフオント中
のコの字の記号はこの「1」の文字が実際の印刷
面上では左付半角の「1」になることを理解し易
くするためのものであり、モニターにはこのフオ
ント全体(1とコ)が1つの文字(勿論全角)と
して印字される。
Reference numeral 12 is a label section, in which abbreviations indicating article content, number of lines, number of characters, font, vertical writing, horizontal writing, and various other information necessary for plate making are recorded. 13 is the classification code, label part 1
2 and the next article data section 14. In the article data section 14, character codes indicative of the article content are continuously recorded in necessary locations along with function codes such as line breaks and font designation codes. In this embodiment, it is assumed that the size of a character is distinguished by the character code itself. For example, for the applicant, the same number "1" is coded "2331" if it is a full-width character, and "7822" if it is a left-width character. and,
Correspondingly, the code 2331 is stored in font memory 7.
The address corresponding to the code 7822 stores the font that indicates a full-width "1" as shown in Figure 3A, and the address corresponding to the code 7822 stores the font "1" that indicates a left-sided half-width character as shown in Figure 3B. In addition, the address corresponding to character code 2331 in size table 8 stores the number "1" indicating full-width, and the address corresponding to code 7822 stores the number "1/2" indicating half-width. ing.
The two-dot chain lines in FIGS. 3A and 3B represent the periphery of the font, that is, the periphery of the font consisting of, for example, 24 vertical and horizontal dots, and are not the font itself. Also, the U-shaped symbol in the font in Figure 3B is to make it easier to understand that the character "1" will be a left-hand half-width "1" on the actual printed surface. The entire font (1 and C) is printed as one character (full-width, of course) on the monitor.

各種文字配列を行なうための前記記事データ部
14の記録例を第4図に、またこれに対応する印
刷紙面上の配置を第5図に示す。第4図Aは右寄
せ(第5図21)をする場合の例を示し、1行分
のデータ1lの先頭に可変スペースコードVSが
置かれ末尾に改行コードCRが置かれる。この可
変スペースコードVSは「字詰数から印刷(印字)
文字数を差引いた残りのスペースをこのコード
VSの付されている部分に等分して挿入する」こ
とを指示するフアンクシヨンコードである。同様
に、第4図Bはセンタリング(第5図22)をす
る場合の例を示し、同図Cはスペース等配分(第
5図23)の例を示す。なお第4図においてCC
は文字コード列、第5図において24は用紙輪
郭、PWは字詰幅を示し、また各文字列21,2
2,23は単に直線で示す。
FIG. 4 shows an example of recording in the article data section 14 for arranging various characters, and FIG. 5 shows the corresponding arrangement on the printed paper. FIG. 4A shows an example of right alignment (FIG. 5, 21), in which a variable space code VS is placed at the beginning of one line of data 1l, and a line feed code CR is placed at the end. This variable space code VS is "printing from the number of characters"
Subtract the number of characters and use this code to get the remaining space
This is a function code that instructs to insert it into equal parts in the part marked with VS. Similarly, FIG. 4B shows an example of centering (FIG. 5, 22), and FIG. 4C shows an example of equal space distribution (FIG. 5, 23). In Figure 4, CC
is a character code string, 24 in Fig. 5 is the paper outline, PW is the indentation width, and each character string 21, 2
2 and 23 are simply shown as straight lines.

次にこのような形で記録された記事データを読
み取つてモニターを作成する手順を説明する。ま
ず、紙テープ読取装置1にデータが記録されてい
る紙テープを装架し、キーボード2から「紙テー
プ読取り」命令を入力する。この命令に応動して
マイクロプロセツサ3は紙テープからデータを読
取り、これをデータバツフア5に格納する。次い
でキーボード2から「モニタ印字」命令を入力す
ると、マイクロプロセツサ3はプログラムメモリ
4に格納されたプログラムに従い、記事データを
処理し、プリンタ6へ供給する。プリンタ6はこ
れらデータに基づき第6図のようなモニターを作
成する。
Next, we will explain the procedure for reading article data recorded in this manner and creating a monitor. First, a paper tape on which data is recorded is mounted on the paper tape reading device 1, and a "paper tape reading" command is inputted from the keyboard 2. In response to this command, the microprocessor 3 reads data from the paper tape and stores it in the data buffer 5. Next, when a "monitor print" command is input from the keyboard 2, the microprocessor 3 processes the article data according to the program stored in the program memory 4, and supplies it to the printer 6. The printer 6 creates a monitor as shown in FIG. 6 based on these data.

この処理にあたつては、いくつかのレジスタお
よびカウンタを使用する。ここではこれらレジス
タ、カウンタとしてマイクロプロセツサ3内の汎
用レジスタをしようすることとする。なおマイク
ロプロセツサは機種によつてレジスタの数が異な
るから、この数が不足する場合はデータバツフア
5内にレジスタに相当する格納領域を設定すれば
良い。
This process uses several registers and counters. Here, general-purpose registers within the microprocessor 3 are used as these registers and counters. Note that the number of registers of microprocessors differs depending on the model, so if this number is insufficient, a storage area corresponding to the registers may be set in the data buffer 5.

レジスタ、カウンタとしては次のものを使用す
る。「行先頭アドレスレジスタ」………本実施例
では文章データが棒打ちにされているので、当該
処理をする行の先頭のデータがどこに格納されて
いるかを認識する必要があり、データバツフア5
の該当アドレス(「以下、単に「アドレス」とい
うときはデータバツフア5のアドレスを指すもの
とする。)が、このレジスタに格納される。「チエ
ツクアドレスレジスタ」………コードの判断は1
行分のデータ1lの先頭のデータから順に1コー
ドづつ行なうので、このレジスタに当該判断すべ
きコードが格納されているデータバツフア5のア
ドレスが格納される。「印刷字詰数レジスタ」…
……実際の印刷物における字詰数(ここでは全角
で数える)がこのレジスタに格納される。限界ス
ペース数レジスタ………VSコード部分のスペー
ス数の最小値αがこのレジスタに格納される。
「モニタ所定字詰数レジスタ」………可変スペー
スコードVSの部分に挿入されるスペースが少な
くスペース割付をし直すときの新たなモニターの
字詰数をここに格納する。モニタ所定字詰数とし
ては通常はモニタプリンタの最大字詰数を設定し
ておけば良いが、この最大字詰数に対して印刷字
詰数が少ないと、処理の結果右寄せをされた行が
通常の印字部分から右へ離れすぎるということも
起るので、このモニタ所定字詰数は適宜設定す
る。VSコードアドレスレジスタ………VSコード
のあるアドレスが格納される。モニタ印字用デー
タレジスタ………印字部6へ供給するデータを格
納される(データバフツア5内)。「文字数カウン
タ」………1行の文字数を積算するのに使用され
る。「サイズカウンタ」………1行の各文字のサ
イズを積算するのに用いられる。サイズの表現方
法は任意であるが、ここでは全角の文字サイズを
「1」とし2分角、3分角、4分角をそれぞれ1/
2、1/3、1/4と表現することとする。「VSコード
数カウンタ」………1行のデータ中に含まれる可
変スペースコードVSを積算するのに使用される。
The following registers and counters are used. "Line start address register"...In this embodiment, the text data is formatted as a bar, so it is necessary to recognize where the data at the start of the line to be processed is stored.
The corresponding address (hereinafter, simply "address" refers to the address of the data buffer 5) is stored in this register. “Check address register”……code determination is 1
Since the processing is performed one code at a time starting from the first data of the row data 1l, this register stores the address of the data buffer 5 in which the code to be determined is stored. “Print character count register”…
...The number of characters in the actual printed matter (here, counted in full-width characters) is stored in this register. Limit space number register: The minimum value α of the number of spaces in the VS code portion is stored in this register.
"Monitor predetermined character filling register"...The new monitor character filling number is stored here when there is less space to be inserted into the variable space code VS section and the space is reallocated. Normally, it is sufficient to set the maximum number of characters on the monitor and printer as the specified number of characters on the monitor, but if the number of printed characters is less than this maximum number of characters, lines that are right-justified as a result of processing may be Since it may happen that the printed area is too far to the right from the normal printed area, this monitor predetermined number of characters is set appropriately. VS code address register……The address with the VS code is stored. Monitor printing data register: Stores data to be supplied to the printing section 6 (in the data buffer 5). “Number of characters counter”: Used to add up the number of characters in one line. “Size counter”: Used to add up the size of each character in one line. The size can be expressed in any way you like, but in this example, the full-width font size is 1, and 2 arc minutes, 3 arc minutes, and 4 arc minutes are each expressed as 1/1.
It will be expressed as 2, 1/3, and 1/4. “VS code number counter”……Used to add up variable space codes VS included in one line of data.

而してマイクロプロセツサ3は前記データバツ
フア5への格納につづき上記各レジスタ、カウン
タへの初期設定を行なう。即ち、まず行先頭アド
レスレジスタおよびチエツクアドレスレジスタに
は記事データ14の先頭のデータのアドレスが設
定される。また印刷字詰数レジスタにはレーベル
部12の中で指定されている印刷字詰数が設定さ
れる。印刷字詰数を変更したいときはキーボード
から新たな字詰数を入力し、これをレジスタに格
納する。「モニタ所定字詰数レジスタ」にはモニ
タプリンタの最大字詰数を予じめ設定しておき、
必要なときキーボード2から新たな所定字詰数を
設定することとすれば良い。文字数カウンタ、サ
イズカウンタおよびVSコード数カウンタにはそ
れぞれ0を設定する。
After storing the data in the data buffer 5, the microprocessor 3 performs initial settings for each of the registers and counters. That is, first, the address of the first data of the article data 14 is set in the line start address register and check address register. Further, the number of printed characters specified in the label section 12 is set in the printed character number register. When you want to change the number of characters to be printed, enter the new number of characters from the keyboard and store it in the register. The maximum number of characters for the monitor printer is set in advance in the "Monitor predetermined character number register".
When necessary, a new predetermined number of characters may be set from the keyboard 2. The character number counter, size counter, and VS code number counter are each set to 0.

次いでマイクロプロセツサ3は第7図のような
手順で1行分づつデータを処理する。この処理は
棒打ちの記事データから1行分を取り出す処理、
その過程における可変スペースコードVSの数の
積算、およびアドレス記憶処理並びに該VSコー
ドの部分に挿入するスペース数の算出処理に大別
される。
Next, the microprocessor 3 processes the data line by line in the procedure shown in FIG. This process is the process of extracting one line from the stick-beating article data,
This process is broadly divided into the integration of the number of variable space codes VS, address storage processing, and calculation processing of the number of spaces to be inserted into the VS code portion.

まず棒打ちの記事データから1行分を取り出す
処理はステツプ31から35のルーチンで行なわれ
る。即ち棒打ちの記事データの1行は記事データ
の先頭から始まり、順に各文字コードの当該文字
サイズを積算し、この積算値が前記印刷字詰レジ
スタに設定値に達するアドレス、若しくはそれ以
前の改行コードが付されているアドレスで終る
(最初の1行を空白にするために改行コードが付
されている場合も含む)。従つて初期設定でチエ
ツクアドレスレジスタに記事データの先頭のアド
レスを設定してこのステツプ31に入れば、当該先
頭のデータのチエツクが行なわれ、これが文字コ
ードであればステツプ32で文字数カウンタに1が
加算され、次いでステツプ33でサイズテーブル8
から当該文字コードの文字サイズが読み出され、
これが文字サイズカウンタに加算される。次いで
ステツプ34に移りサイズカウンタの積算値が印刷
字詰カウンタの設定値に達したか否か、即ち1行
分のデータの末尾に達したか否かがチエツクされ
る。勿論ここでは最初のデータのチエツクであり
これが文字コードであるからその結果はノーであ
り、ステツプ35でチエツクアドレスレジスタに1
が加算され、これが上記1行分のデータが抽出さ
れるまで繰り返される。ただしこのルーチンの途
中で改行コードがあつた場合はステツプ31からス
テツプ36、37、38へと進んでこのルーチンから抜
け、この場合1行のデータの途中ゆえ印刷文字数
は0でなく、ステツプ39へ進む。また、改行コー
ドCRでも可変スペースコードVSでもない場合は
ステツプ37からステツプ35へ進む。更にまた記事
データの先頭に改行コードCRがある場合はこの
ルーチンに入らず最初からステツプ38へ進み、こ
こで印字文字数が0であるためステツプ40へ進
む。
First, the process of extracting one line from the article data on the stick is performed in the routine of steps 31 to 35. In other words, one line of the article data of the stick is started from the beginning of the article data, the corresponding character size of each character code is accumulated in order, and the address where this accumulated value reaches the set value in the printing character register, or the line break before that. The address ends with a code (including cases where a line feed code is added to make the first line blank). Therefore, if the start address of the article data is set in the check address register in the initial settings and step 31 is entered, the start data will be checked, and if this is a character code, 1 will be added to the character counter in step 32. size table 8 in step 33.
The character size of the character code is read from
This is added to the character size counter. Next, the process moves to step 34, where it is checked whether the integrated value of the size counter has reached the set value of the printing character filling counter, that is, whether the end of one line of data has been reached. Of course, here we are checking the first data, which is a character code, so the result is no, and in step 35, 1 is written to the check address register.
is added, and this is repeated until the data for one row is extracted. However, if a new line code is encountered in the middle of this routine, the routine will proceed from step 31 to steps 36, 37, and 38 and exit from this routine. In this case, the number of printed characters will not be 0 because it is in the middle of one line of data, and the process will proceed to step 39. move on. Further, if the line feed code is neither CR nor variable space code VS, proceed from step 37 to step 35. Furthermore, if there is a line feed code CR at the beginning of the article data, this routine is not entered and the process proceeds to step 38 from the beginning, and since the number of characters to be printed is 0, the process proceeds to step 40.

1行のデータ中の可変スペースコードVSの積
算及びアドレス記憶は上記1行分のデータを取り
出すルーチンの中で行なわれる。即ち、記事デー
タ中にVSコードがあつた場合は、ステツプ31か
ら36、41へ進み、ここでVSコードカウンタに1
が加算されると共にそのアドレスがVSアドレス
レジスタへ記憶された後ステツプ35へ進み、1行
分のデータの取り出しルーチンが継続される。
Integration of the variable space code VS in one line of data and address storage are performed in the routine for extracting one line of data. That is, if there is a VS code in the article data, proceed from steps 31 to 36 and 41, where the VS code counter is set to 1.
is added and the address is stored in the VS address register, and then the process advances to step 35, where the routine for retrieving one row of data is continued.

而して1行分のデータの抽出が終了したとき、
即ちステツプ34の結果がイエス、またはステツプ
38の結果がノーのときは前述のとおりステツプ39
に進むが、ここで1行の中に可変スペースコード
VSがなかつたときは当該記事データにスペース
を挿入する必要がないからステツプ40へ進む。
When one row of data has been extracted,
That is, the result of step 34 is YES or
If the result of step 38 is no, proceed to step 39 as described above.
Proceed to , but here the variable space code in one line
If there is no VS, there is no need to insert a space into the article data, so proceed to step 40.

一方、1行分のデータ中に可変スペースコード
VSがある場合はこのステツプ39からステツプ42
〜44へ進み、ここで前述のVSコード部分への挿
入スペース数の算出処理が行なわれる。即ち、ま
ずステツプ42で可変スペースコードVSが付され
た部分へ挿入されるべきスペース数が本来の印刷
字詰数に基づいて計算される。この場合、この印
刷字詰数は前記印刷字詰数レジスタから、印字文
字数およびVSコード数はそれぞれのカウンタか
ら求められる。そして例えば、印刷字詰数40で1
行分の印字文字数が30であつたとすればその差は
10、VSコードが1であつたとすれば、当該VSコ
ードが付されている部分へ挿入されるスペース数
は10となり、これが限界スペースレジスタに格納
されている所定値a、例えば5より大きいか若し
くは等しければ、ここからステツプ44へ進む。こ
の場合はモニター上で当該右寄せ等の文字配列が
視認し易い状態にある。
On the other hand, variable space code in one line of data
If you have VS, proceed from step 39 to step 42.
The process advances to ~44, where the calculation process of the number of spaces to be inserted into the VS code portion described above is performed. That is, first, in step 42, the number of spaces to be inserted into the portion to which the variable space code VS is attached is calculated based on the original number of printed characters. In this case, the number of printed characters is obtained from the printed character number register, and the number of printed characters and the number of VS codes are obtained from the respective counters. For example, if the number of printed characters is 40, it is 1.
If the number of characters printed per line is 30, the difference is
10. If the VS code is 1, the number of spaces inserted into the part to which the VS code is attached will be 10, and this will be greater than a predetermined value a stored in the limit space register, for example 5, or If they are equal, proceed to step 44 from here. In this case, the character arrangement, such as right alignment, is easily visible on the monitor.

一方、同じ条件で1行分の文字数が39であつた
ときは、このステツプ42でVSコードの部分に挿
入されるスペースが所定値aより小さい1とな
る。この場合はそのまま印字するとモニター上に
おいてスペースが少なくなり文字配列が視認し難
い状態である。そこでステツプ43へ進み、ここで
印刷字詰数に代えてモニタ所定字詰数レジスタの
設定値、例えば80を用いて改めてスペースの計算
がなされる。例えば同じ状態であれば所定字詰数
と印字文字数の差は41、これをVSコード数1で
割ればVSコード部分に割付けられるスペース数
は41と算出されステツプ44へ進む。
On the other hand, if the number of characters for one line is 39 under the same conditions, the space inserted into the VS code portion in step 42 will be 1, which is smaller than the predetermined value a. In this case, if the characters are printed as is, there will be less space on the monitor, making it difficult to visually recognize the character arrangement. The process then proceeds to step 43, where the space is calculated again using the setting value of the monitor predetermined character filling register, for example 80, in place of the printing character filling number. For example, if the conditions are the same, the difference between the predetermined number of characters and the number of printed characters is 41, and if this is divided by the number of VS codes, which is 1, the number of spaces allocated to the VS code portion is calculated to be 41, and the process proceeds to step 44.

そしてステツプ42からこのステツプ44へ移つて
きた場合は印刷字詰数に基づいて算出したスペー
ス数を、またステツプ43からこのステツプ44へ移
つてきた場合はモニタ所定字詰数に基づいて算出
したスペースが当該1行分のデータ中の可変スペ
ースコードVSの位置に挿入される。この場合、
1行分のデータの先頭アドレスは行先頭アドレス
レジスタから、1行の末尾のデータは1行分のデ
ータ抽出終了時のチエツクアドレスレジスタか
ら、VSコードのアドレスはVSコードアドレスレ
ジスタから求められる。このようにしてスペース
が挿入された1行分のデータはモニタ印字用デー
タレジスタへ格納される。
When moving from step 42 to this step 44, the number of spaces calculated based on the number of characters to be printed, and when moving from step 43 to this step 44, the number of spaces calculated based on the number of characters specified for the monitor. is inserted at the position of the variable space code VS in the data for one row. in this case,
The start address of one line of data is obtained from the line start address register, the end data of one line is obtained from the check address register at the end of data extraction for one line, and the address of the VS code is obtained from the VS code address register. One line of data with spaces inserted in this way is stored in the monitor print data register.

ステツプ40ではプリンタ6へのデータ供給が行
なわれる。この場合、ステツプ38および39でイエ
スとされた場合はデータバツフアの行先頭アドレ
スからチエツクアドレスまでのデータが、また、
ステツプ44から移行された場合は1行分データレ
ジスタのデータがそれぞれプリンタ6へ供給さ
れ、プリンタ6はこのデータに基づいて1行分の
印字動作をする。そしてマイクロプロセツサ3は
最後のステツプ45でチエツクアドレスカウンタに
1を加算する。加算後のアドレスは次の1行分の
データの先頭データが格納されているアドレスで
あり、このアドレスは行先頭アドレスレジスタに
格納され、次の1行分のデータの処理が行なわれ
る。
At step 40, data is supplied to the printer 6. In this case, if steps 38 and 39 are answered YES, the data from the first address of the data buffer row to the check address is
When proceeding from step 44, the data in the data register for one line is supplied to the printer 6, and the printer 6 performs a printing operation for one line based on this data. The microprocessor 3 then adds 1 to the check address counter in the final step 45. The address after the addition is the address where the first data of the next row of data is stored, and this address is stored in the row start address register, and the next row of data is processed.

このようにして前述の第6図に示すようなモニ
ターが作成される。なお同図においても印字され
た文字は単に実線のみで示す。また同図において
51はモニターの用紙の周縁、MWはモニターの
印字幅、PWは印刷字詰数に対応するモニターの
印字幅、52〜54は本発明方式によりそれぞれ
右寄せ、センタリング、スペース当分配の文字配
列がなされた行である。
In this way, a monitor as shown in FIG. 6 described above is created. In addition, in the figure, printed characters are simply shown by solid lines. In the same figure, 51 is the peripheral edge of the paper on the monitor, MW is the print width of the monitor, PW is the print width of the monitor corresponding to the number of printed characters, and 52 to 54 are the right alignment, centering, and space distribution according to the method of the present invention. This is a line with character arrangement.

(発明の効果) 以上説明したように本発明モニター印字方式に
よれば文字配列の視認が容易なモニターをプリン
ターの機能を複雑化することなく作成することが
でき、より能率的な構成作業を為すことができ
る。
(Effects of the Invention) As explained above, according to the monitor printing method of the present invention, a monitor on which the character arrangement can be easily recognized can be created without complicating the functions of the printer, and configuration work can be performed more efficiently. be able to.

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

第1図は本発明を実施するためのブロツク構成
例を示すブロツク図、第2図は記事データの記録
例を示す線図、第3図AおよびBはフオントの一
例を示す線図、第4図A〜C各種文字配列例を示
す線図、第5図は印刷フオーマツトの一例を示す
線図、第6図はモニターのフオーマツトの一例を
示す線図、第7図は1行分の記事データの処理手
順を示すフローチヤートである。 21,22,23……所定の文字配列、PW…
…印刷字詰幅、MW……モニター字詰幅。
FIG. 1 is a block diagram showing an example of a block configuration for implementing the present invention, FIG. 2 is a diagram showing an example of recording article data, FIGS. 3A and B are diagrams showing an example of a font, and FIG. Figures A to C are line diagrams showing various character arrangement examples, Figure 5 is a line diagram showing an example of a print format, Figure 6 is a line diagram showing an example of a monitor format, and Figure 7 is a line of article data. This is a flowchart showing the processing procedure. 21, 22, 23...predetermined character arrangement, PW...
...Print character width, MW...Monitor character width.

Claims (1)

【特許請求の範囲】[Claims] 1 全角しか印字できないプリンタを使用するモ
ニター印字方式であつて、モニター印字する文章
のセンタリング、右寄せ、スペース等分等の文字
配列のため前記モニターする文章の印刷字詰数に
基づいて算出した挿入スペースがモニター所定の
印刷字詰数の値より小さいとき、前記スペースに
代え、前記モニター所定の印刷字詰数より大きな
字詰数に基づいて算出したスペースを前記センタ
リング、右寄せ、スペース等分等の文字配列のた
めに挿入することを特徴とするモニター印字方
式。
1. A monitor printing method that uses a printer that can print only full-width characters, and for character arrangement such as centering, right alignment, and equal spacing of the monitor-printed text, insert space calculated based on the number of printed characters in the monitor-printed text. is smaller than the monitor's predetermined number of printed characters, instead of the space, a space calculated based on a number of characters larger than the monitor's predetermined number of printed characters is used for the centering, right alignment, space equalization, etc. characters. A monitor printing method characterized by insertion for arrays.
JP58096391A 1983-05-31 1983-05-31 Monitor printing system Granted JPS59221738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58096391A JPS59221738A (en) 1983-05-31 1983-05-31 Monitor printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58096391A JPS59221738A (en) 1983-05-31 1983-05-31 Monitor printing system

Publications (2)

Publication Number Publication Date
JPS59221738A JPS59221738A (en) 1984-12-13
JPH0352091B2 true JPH0352091B2 (en) 1991-08-08

Family

ID=14163657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58096391A Granted JPS59221738A (en) 1983-05-31 1983-05-31 Monitor printing system

Country Status (1)

Country Link
JP (1) JPS59221738A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57156257A (en) * 1981-03-20 1982-09-27 Fujitsu Ltd Galley proof system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57156257A (en) * 1981-03-20 1982-09-27 Fujitsu Ltd Galley proof system

Also Published As

Publication number Publication date
JPS59221738A (en) 1984-12-13

Similar Documents

Publication Publication Date Title
JP2756292B2 (en) Document output device
US5878198A (en) Information processing apparatus and method and memory medium storing information processing program
CA1103363A (en) Font and column format control system
US4907193A (en) Word processor using character group discrimination codes for variable pitch and logotype character control printing
US4573812A (en) Intercharacter space processing apparatus for printers
JPH0352091B2 (en)
EP0119396B1 (en) Apparatus for and methods of presenting or displaying data represented as electric signals
US5047956A (en) Information processing device having a function of designating a printing-start position
US5290109A (en) Electronic typewriter for printing of documents having a fixed format
KR100516599B1 (en) Character Information Processing Device
US5671339A (en) Output apparatus
US5002408A (en) Apparatus and method for printing character and ruled line
JPS6365511B2 (en)
US4782339A (en) Method and apparatus for displaying text on a single-line display of a text station
JPS59221739A (en) Monitor printing system
JP4780509B2 (en) Time recorder, terminal device and time card printing system
US5162993A (en) Word processing apparatus
JP2659930B2 (en) Print image display
JP3439274B2 (en) Tape printer
JP2670447B2 (en) Output device and method
JPH012163A (en) document processing device
JPH06320801A (en) Printer
KR910009064B1 (en) Method for compensating character size of printer
JP2554225B2 (en) Text output device
van Arkel Advantages and disadvantages of computer aided editing