JPS6365511B2 - - Google Patents

Info

Publication number
JPS6365511B2
JPS6365511B2 JP55155686A JP15568680A JPS6365511B2 JP S6365511 B2 JPS6365511 B2 JP S6365511B2 JP 55155686 A JP55155686 A JP 55155686A JP 15568680 A JP15568680 A JP 15568680A JP S6365511 B2 JPS6365511 B2 JP S6365511B2
Authority
JP
Japan
Prior art keywords
line
data
printing
printed
character data
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
JP55155686A
Other languages
Japanese (ja)
Other versions
JPS5780082A (en
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 filed Critical
Priority to JP55155686A priority Critical patent/JPS5780082A/en
Publication of JPS5780082A publication Critical patent/JPS5780082A/en
Publication of JPS6365511B2 publication Critical patent/JPS6365511B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は、プログラマブルにに制御される印字
装置に関する。特に、行頭、行末禁則処理を一定
の優先順位にしたがつてプログラマブルに行う印
字装置の禁則処理装置に関するものである。 文字印刷物で、ある特定の例えば、約物(やく
もの)等の記号が行頭や行末にきたり、行末と行
頭にまたがつたりすると、読みやすさをそこな
い、従つて組版体裁上も好ましくない。これらの
約物としては、例えば、行頭にきてはいけない
「、」、「。」、「)」、「〓」等や、行末に来てはい
けな
い「(」、「〓」、「<」、「∧」等のものがあり、こ
れらを「行頭、行末禁則記号」という。この禁則
記号が行頭や行末に来たり、また行末と行頭にま
たがらないようにする処理を行頭あるいは行末の
禁則処理という。 しかし、従来の装置はこのような禁則処理にあ
たつて、前行に押しこむべき記号あるいは文字の
スペースを設けるために、前行の印字文字送りを
均等につめて、つめ印字をしている。 このため、漢字や「?」のような約物も一様に
つめ印字されることになり、印字品位を悪くする
欠点を有する。 また、他の従来の装置は行末禁則処理のため行
末の「(」等の約物を次の行頭にくるように、1
字分だけ追い出し、その行の1文字の不足を印字
間隔を拡げることによつて禁則処理している。こ
の場合その行末の3〜4字の字間を拡げるか、1
行全体に均等に拡げるかの処理をしている。 しかし、この字間隔を拡げる方式は、体裁上間
のびしたものとなつてしまい印字品位を悪くする
欠点を有する。 本発明はこの点を改良するもので、禁則処理を
行うときに、前行の印字活字の種類に応じてつめ
印字の順位をあらかじめ定めておくことにより、
印字品位を損うことがなく、装置も複雑となら
ず、特に小型の印字装置に適する禁則処理装置を
提供することを目的とする。 本発明は、入力された印字文字データの1字毎
に優先順位づけをする手段と、入力された一行の
印字文字データに禁則処理を行うか否かを識別す
る手段と、入力中の印字文字データの少なくとも
一行前の印字文字データを記憶する手段と、上記
識別する手段により禁則処理を行うことが識別さ
れたときには、上記記憶する手段に記憶された印
字文字データについて上記記憶する手段に記憶さ
れた印字文字データについて上記優先順位の先行
するものから順につめ印字を行うとともに当該行
の末尾には次の行の最初の文字をつめ込むように
禁則処理を行いこの禁則処理を行つた印字文字デ
ータを印字するように制御するマイクロプロセツ
サを含む制御手段を備えたことを特徴とする。 本発明の一実施例を図面に基づいて説明する。 第1図は本発明一実施例の要部ブロツク構成図
である。 さん孔テープ1はテープリーダ2にセツトされ
印字文字データが読取られる。このテープリーダ
2の出力はテープデータメモリ3に導かれてい
る。このテープデータメモリ3の出力は、比較回
路5に導かれている。この比較回路5は優先順位
づけするための回路で、メモリ6からの読出デー
タが導かれている。この比較回路5の出力はカウ
ンタ7に導かれるとともに、2行目データメモリ
8に導かれている。この2行目データメモリ8の
出力は1行目データメモリ9に導かれている。こ
の1行目データメモリ9および2行目データメモ
リ8の出力は、制御手段であるマイクロプロセツ
サ10に導かれている。 また、上記テープデータメモリ3の出力は、ア
ドレス変換回路11を介して、印字圧メモリ1
2、送り量メモリ13、活字庫位置メモリ14に
それぞれ導かれている。 この印字圧メモリ12の出力は2行目印字圧メ
モリ16に導かれている。送り量メモリ13の出
力は2行目送り量メモリ17に導かれている。活
字庫位置メモリ14の出力は2行目活字庫位置メ
モリ18に導かれている。この2行目印字圧メモ
リ16の出力は、1行目印字圧メモリ19に導か
れている。2行目送り量メモリ17の出力は1行
目送り量メモリ20に導かれている。この2行目
活字庫位置メモリ18の出力は1行目活字庫位置
メモリ21に導かれている。マイクロプロセツサ
10の出力は、2行目印字圧メモリ16、2行目
送り量メモリ17および2行目活字庫位置メモリ
18にそれぞれ導かれている。また、マイクロプ
ロセツサ10の出力は、1行目送り量メモリ20
に導かれている。 この1行目印字圧メモリ19の出力はハンマ駆
動回路23に導かれている。また、1行目送り量
メモリ20の出力は紙送りモータ回路24に導か
れている。1行目活字庫位置メモリ21の出力は
活字庫位置回路25に導かれている。 ここで、前記メモリ6には、第1表に示すデー
タがあらかじめ書込まれている。
The present invention relates to a programmably controlled printing device. In particular, the present invention relates to an inhibition processing device for a printing device that programmably performs line start and line end inhibition processing according to a fixed priority order. In printed text, if certain symbols, such as punctuation marks, appear at the beginning or end of a line, or extend between the end and beginning of a line, it impairs readability and is therefore undesirable in terms of typographical style. . Examples of these punctuation marks include ",", ".", ")", "〓", etc., which must not appear at the beginning of a line, and "(", "〓", and "<", which must not appear at the end of a line). , ``∧'', etc., and these are called ``line start and line end prohibition symbols''.The process to prevent this prohibition symbol from coming to the beginning or end of a line, or from spanning the end of a line to the beginning of a line is called a line start or line limit prohibition symbol. However, in order to provide space for the symbol or character that should be inserted in the previous line, conventional devices evenly shorten the print character advance of the previous line and print the nails when performing such prohibition processing. For this reason, kanji and punctuation marks such as "?" are printed uniformly, which has the disadvantage of degrading the printing quality.Also, other conventional devices do not handle end-of-line rules. 1 so that punctuation marks such as "(" at the end of the line come to the beginning of the next line.
By removing the number of characters, and increasing the printing interval to compensate for the lack of one character on that line. In this case, either increase the space between the 3 or 4 characters at the end of the line, or
It is processing whether to spread it evenly across the entire line. However, this method of widening the character spacing has the disadvantage that it becomes visually sparse and degrades printing quality. The present invention improves this point by predetermining the order of claw printing according to the type of printed characters in the previous line when performing prohibition processing.
It is an object of the present invention to provide a prohibition processing device that does not impair printing quality, does not make the device complicated, and is especially suitable for small-sized printing devices. The present invention provides means for prioritizing each character of inputted printed character data, means for identifying whether or not to perform prohibition processing on one line of inputted printed character data, and printed characters being inputted. means for storing printed character data of at least one line before the data, and when it is identified by the identifying means that prohibition processing is to be performed, the printed character data stored in the storing means is stored in the storing means; The printed character data is printed in the order of precedence in the above priority order, and Kinsoku processing is performed so that the first character of the next line is packed at the end of the line, and the printing character data that has undergone this Kinsoku processing. The invention is characterized in that it includes a control means including a microprocessor for controlling printing. An embodiment of the present invention will be described based on the drawings. FIG. 1 is a block diagram of essential parts of an embodiment of the present invention. The perforation tape 1 is set on a tape reader 2, and the printed character data is read. The output of this tape reader 2 is led to a tape data memory 3. The output of this tape data memory 3 is led to a comparator circuit 5. This comparison circuit 5 is a circuit for prioritizing data read from the memory 6. The output of this comparison circuit 5 is led to a counter 7 and also to a second row data memory 8. The output of the second row data memory 8 is led to the first row data memory 9. The outputs of the first row data memory 9 and the second row data memory 8 are led to a microprocessor 10 which is a control means. Further, the output of the tape data memory 3 is transmitted to the printing pressure memory 1 via an address conversion circuit 11.
2, a feed amount memory 13, and a type warehouse position memory 14, respectively. The output of this printing pressure memory 12 is led to a second line printing pressure memory 16. The output of the feed amount memory 13 is led to the second line feed amount memory 17. The output of the type storage position memory 14 is led to the second line type storage position memory 18. The output of the second line printing pressure memory 16 is led to the first line printing pressure memory 19. The output of the second line feed amount memory 17 is led to the first line feed amount memory 20. The output of the second line type storage position memory 18 is led to the first line type storage position memory 21. The output of the microprocessor 10 is led to a second line printing pressure memory 16, a second line feed amount memory 17, and a second line type storage position memory 18, respectively. Also, the output of the microprocessor 10 is the first line feed amount memory 20.
guided by. The output of the first row printing pressure memory 19 is led to a hammer drive circuit 23. Further, the output of the first line feed amount memory 20 is led to a paper feed motor circuit 24. The output of the first line type storage position memory 21 is led to a type storage position circuit 25. Here, data shown in Table 1 is written in advance in the memory 6.

【表】 ここで、全角とは、標準活字の全活字幅をい
い、半角とは、標準活字の全活字幅の半分をい
う。 また、上記カウンタ7には第1表で示した(2),
(3),(6),(7)および(9)の数を計数するカウンタがそ
れぞれ設けられている。 また本発明では、禁則処理により前行につめ印
字をする場合に、このつめ印字の優先順位を印字
文字の種類により、つめ印字しても印字品位を損
うおそれの少ない順にあらかじめ定めてある。こ
の優先順位は第2図の優先順位データを記憶する
メモリ6と比較回路5とで検出される。 第2図A,B,Cは、つめ印字の優先順位説明
図である。この例は優先順位を1位から3位とし
た例である。第2図でA,B,Cそれぞれの上行
は横組み、下行は縦組みのときの印字状態をそれ
ぞれ示す。 第2図Aは優先順位が1位に設定されている約
物の例を示す。第2図Aのaは全角送りで半角つ
めることができる約物、同bは全角送りで1/4角
つめることができる約物、同cは全角送りで半角
つめることができる約物、同dは全角送りで1/4
角つめることができる約物をそれぞれ示す。 これらの約物a〜dは活字面に組体裁を見やす
くするために空きスペースが設けられている。例
えば、約物a「、」は印字としての専有スペースは
半角であるが、その後半角は組体裁を見やすくす
るために、空きスペースとなつている。 このため、これらの約物a〜dの空きスペース
に次の文字等をつめ印字しても、印字品位を損う
ことが少ないため、つめ印字の優先順位が1位と
されている。 第2図Bは、優先順位が2位に設定されている
平がな、あるいは片かな文字等の例を示す。これ
らの文字は通常の印字では全角で印字されるが、
文字そのものの印字として専有するスペースは漢
字に比べてやや小さい。従つて、これらの文字が
一定数前行にあれば(例えば5文字以上)禁則処
理のために必要な文字スペースを前行の行末に作
りだすため、これらの文字に均等に割当ててつめ
印字をしても、印字品位を損うことが少ない。こ
のため、つめ印字の優先順位が2位とされてい
る。 第2図Cは、優先順位が3位に設定されている
漢字あるいは約物の例を示す。これらの文字は印
字としての専有するスペースが広いため、つめ印
字を行うと印字品位を損ねる。従つて前行に第2
図Aに示す約物がなく、しかも同Bに示すかな文
字等の数が少ない(例えば、1行中に4個以下)
場合にのみ、1行中のすべての印字活字で均等に
分配して、つめ印字をする。従つて、優先順位を
3位とされている。 このような回路構成で、第3図に示す行頭処理
としての第一印字例を用いて、本発明の特徴ある
動作を説明する。 第3図でAは禁則処理をしていない場合の印字
例、第3図でBは本発明の装置で行頭処理を行つ
た印字例を示す。すなわち、第3図Aに示すよ
うに、行頭に禁則約物「、」がある場合に、行頭
の「、」を前行の行末に押しこんで行頭にこな
いようにする禁則処理である。 ここで、第3図,の印字例に対応する印字
文字データのさん孔例を第4図に示す。この印字
文字データはXYそれぞれ8ビツトのアドレス情
報である。印字行は通常通りさん孔されてい
て、行末に改行符号がさん孔されており、次の印
字行では、行頭にある禁則約物「、」が「、」
「、」と2度さん孔されていて、これにより行頭処
理データαを与えている。この行頭禁則処理デー
タαが与えられている印字行の1行の設定数
(倍数)は、行頭禁則処理データαとしての「、」
「、」を除いた字数とされている。 すなわち、この例の場合、設定数は11であるか
ら、「行頭や行末にまたがつた」までの11字合計
13字がさん孔されてから、改行符号がさん孔され
ている。 いま、さん孔テープ1から第3図Aので示す
行の印字文字データが、テープリーダ2から読出
されている。この出力はこのテープリーダ2から
テープデータメモリ3に保持される。このテープ
データメモリ3は改行コードから改行コードまで
の1行分のデータを収納する。テープデータメモ
リ3が第3図の1行分のデータを収納すると、
各印字文字データが順に比較回路5に与えられ
る。この比較回路5では、各印字文字データ毎に
前述の第1表に示すメモリ6の内容が比較され
る。 この比較結果とカウンタ7で計数された内容お
よび各印字文字データとが、2行目データメモリ
8に記憶される。これと同時に、テープデータメ
モリ3の内容は、アドレス変換回路11で活字庫
内のXY座標値に変換される。このアドレス情報
により、印字圧メモリ12、送り量メモリ13お
よび活字庫位置メモリ14から、各印字文字デー
タ毎の印字圧、紙送り量、活字庫位置(サーボモ
ータ移動量データ)データが、それぞれ2行目印
字圧メモリ16、2行目送り量メモリ17、2行
目活字庫位置メモリ18に記憶される。 1行分の印字文字データ処理が終了すると、次
の行、すなわち第3図に示す行のデータがテ
ープリーダ2で読出される。テープデータメモリ
3が、1行分のデータを格納すると、比較動作が
行われる。 このとき、2行目各メモリ16〜18の内容
は、1行目各メモリ19〜21に移転される。い
ま、比較中の行の印字文字データには、行頭に
禁則約物「、」、「、」が続けてさん孔されているの
で(第4図)、これが比較回路5で第1表の内
容と比較された後に、2行目データメモリ8で記
憶されると、マイクロプロセツサ10がこれを検
出し、行頭処理データを有する行であることを識
別する。 これにより、1行目データメモリ9から所定の
データを読出す。これにより、行には優先順位
1位の約物「、」が1個であり、に追い込む禁
則約物は全角送りで半角つめられる約物「、」で
あることが識別され、次のような送り量演算が行
われる。すなわち、禁則処理に必要なスペースは
半角であり、優先順位1位の約物は全角送りで半
角つめられる「、」であるので 1/2角/1=1/2角 と演算される。 このつめ印字データは、1行目送り量メモリ2
0に送られ、禁則処理用の新しい送り量が再書込
される。次に、1行目データメモリの最後に上記
約物「、」が追加され、この約物「、」の印字圧、
送り量、活字庫位置指令がそれぞれ各1行目メモ
リ23〜25に記憶される。これにより各2行目
メモリ16〜18から、この約物「、」のデータ
が削除される。 比較回路5での比較動作は続けられ、行目の
比較動作が終了する。印字動作は、この禁則処理
された印字データで行われ、第3図B行の印字
が行われる。すなわち、第3図aに示すように約
物「、」が半角つめ印字され、禁則処理に必要な
スペースbが半角形成され、このスペースbに
行の行頭にある禁則約物「、」が行の行末に追
い込まれて印字されている。 以下同様な回路動作が行われ、印字されている
印字行の印字制御データが1行目の各メモリ19
〜21に格納され、この次の行の印字制御データ
は2行目各メモリ16〜18に格納され、この行
すなわち印字動作が行われている行の2行後の行
のデータがテープリーダ2から読出されている。
印字動作は、2行目の各メモリ16〜18にに1
行分のデータがすべて格納されてから開始され
る。 第5図は本発明の装置により印字された行頭処
理としての第二印字例である。第3図に示す第一
印字例と比較して、優先順位が2位の場合であ
る。 禁則処理に必要なスペースはは第一実施例と同
様に半角(1/2角)であり、第5図行に示すよ
うに平がなの数は5個である。したがつて、この
5個の平がなが第5図aに示すように、 1/2角/5=1/10角 だけ、それぞれつめ印字され、同bに示すように
行頭禁則処理に必要なスペース幅が行末に半角分
(5/10=1/2角)形成され、ここに行頭禁則文字 「、」を印字しているところに特徴がある。 他の点については、第一印字例と同様である。 第6図は、本発明の装置により印字された行頭
禁則処理としての第三印字例である。第一印字例
と比較すると、優先順位として第1位のものがな
く、同2位のものが4字以下であり、優先順位が
第3位の場合である。禁則処理に必要なスペース
は第一実施例と同様に半角(1/2角)であり、第 6図に示すように1行中の活字数は11個であ
る。したがつて、この11個の文字が第6図aに示
すように、 1/2角/11=1/22角 だけ、それぞれつめ印字され、同bに示すように
禁則処理に必要なスペース幅が行末に半角分
(11/22角=1/2角)だけ形成され、ここに行頭禁則 文字「、」を印字しているところに特徴がある。 他の点については、第一印字例と同様である。 第7図は、本発明の装置により印字された行末
禁則処理の第四印字例である。第一〜第三印字例
と比較すると行末禁則処理を行つているところに
特徴がある。すなわち、第7図A行に示すよう
に行末禁則約物「<」が行末にある場合で、同
行に示すように、前行につめ込まれる文字が次の
行の行頭に示す全角の印字スペース幅を有する漢
字「禁」である。 この場合の禁則処理は上述の行頭処理と同様に
行われるが、理解を容易にするため、特徴ある部
分のみを説明する。まず、第8図に第7図Bの
、に示す印字文字に対応する印字文字データ
のさん孔例を示す。第8図で、行は通常通りさ
ん孔されていて、行末に禁則文字「<」がさん孔
され、次いで改行符号がさん孔され、次いで次の
行では行頭に再度禁則文字「<」がさん孔され
て、行末処理データγが与えられている。この行
末処理データγが与えられている行の1行の設
定数は行末処理データγを与える「<」を除いた
字数とされている。他の点は第4図に示した行頭
処理のさん孔入力印字データと同様である。 行末禁則処理では、第8図に示すように、行
の行末に禁則約物「<」、改行符号、行の行頭
に同一の禁則約物「<」とさん孔されているた
め、これをマイクロプロセツサ10が検出し、行
頭処理と同様に1行目データメモリ9および2行
目データメモリ8から必要なデータを読出し、優
先順位に従つてつめ印字データを算出する。この
つめ印字データは第7図に示す行の送りデータ
が読出された1行目送り量メモリ20に送出さ
れ、禁則処理用の新しい送り量が再書込される。 次に、1行目データメモリ9の最後に行の行
頭から2番目の印字文字「禁」を追加する。次
に、この「禁」の印字圧を2行目印字圧メモリ1
6から読出し1行目印字圧メモリ19に記憶する
とともに、座標値位置指令を2行目活字庫位置メ
モリ18から読出し1行目活字庫位置メモリ21
に記憶する。これにより、各2行目メモリ16〜
18から「禁」のデータが削除される。 すなわち、第7図Bに示すように、行には優
先順位1位の約物で半角つめられる「、」が2つ
あり、禁則処理に必要なスペースは全角であるの
で、 全角/2=1/2 ずつ、この約物「、」が第7図aに示すようにつ
め印字され同bに示すようにスペースが形成さ
れ、ここに「禁」が追いこまれて印字される。 第9図は本発明の装置により印字された行末禁
則処理の第五印字例である。第7図の第四印字例
と比較すると、優先順位が2位の場合である。 禁則処理に必要なスペースは第四印字例と同様
に全角であり、第9図行に示すように平がなの
数は5個である。従つて、この5個の平がなが第
9図aに示すように、 1角/5=1/5角 だけそれぞれつめ印字され、同bに示すように、
行末処理に必要なスペース幅が行末に全角分 5角/5=全角 が形成され、ここに漢字「禁」を印字していると
ころに特徴がある。 他の点については、第四印字例と同様である。 第10図は、本発明の装置により印字された行
末禁則処理としての第六印字例である。第四印字
例と比較すると、優先順位として第1位のものが
なく、同2位のものが4字以下であり、優先順位
が第3位の場合である。 禁則処理に必要なスペースは第一実施例と同様
に全角であり、第10図行に示すように、1行
中の活字の数は11個である。従つてこの11個の文
字が第10図aに示すように、 1角/11=1/11角 だけそれぞれつめ印字され、同bに示すように禁
則処理に必要ななスペース幅が行末に全角分 11角/11=全角 だけ形成され、ここに漢字「禁」を印字している
ところに特徴がある。他の点については、第四印
字例と同様である。 なお前記例は、入力印字文字データとしてさん
孔テープを用いた例を示したが、フロツピーデイ
スク等を用いてもよい。 以上説明したように本発明によれば、印字活字
の種類に対応してあらかじめ禁則処理のつめ印字
の優先順位を設定しておき、禁則処理情報を含む
印字文字データから禁則処理に必要な情報を検出
し、これらの情報により処理回路で優先順位に従
つてつめ印字情報を演算し、このつめ印字情報に
基づいて、印字活字の印字スペース幅をそれぞれ
設定して禁則処理を行うこととした。 従つて、つめ字をしても読みづらくならない文
字から順につめ印字を行うことができるととも
に、次の行にスペースが生じて、印字品位を損う
ことがない。また、優先順位の順位数を必要に応
じて数多くあるいは少なくすることができ、装置
の規模により禁則処理の精度を調整して設計する
ことができ、印字装置の性能を著しく向上するこ
とができる。コストも低廉とすることができる等
の優れた効果がある。また、本発明は禁則記号自
体についてもその印字スペースをその種類に応じ
てつめることとしたので、つめ印字のスペースを
少なくすることができ、このため従来の禁則処理
に比較して著しく高品位の禁則処理を行うことが
できる。
[Table] Here, full-width refers to the full width of standard typeface, and half-width refers to half of the total width of standard typeface. In addition, the above counter 7 has (2) shown in Table 1,
Counters are provided to count the numbers (3), (6), (7), and (9), respectively. Furthermore, in the present invention, when a tab is printed on the previous line by prohibition processing, the priority order of the tab printing is determined in advance according to the type of printed character in the order in which the printing quality is least likely to be impaired even if the tab is printed. This priority order is detected by the memory 6 that stores the priority order data and the comparator circuit 5 shown in FIG. FIGS. 2A, B, and C are explanatory diagrams of priorities for nail printing. In this example, the priority order is set from 1st to 3rd. In FIG. 2, the upper row of each of A, B, and C shows the printing state in horizontal writing, and the lower row shows the printing state in vertical writing. FIG. 2A shows an example of a punctuation mark whose priority is set to first place. In Figure 2 A, a is a punctuation mark that can be filled with half-width with full-width feed, b is a punctuation mark that can be filled with a quarter-width with full-width feed, and c is a punctuation mark that can be filled with half-width with full-width feed. d is 1/4 with full-width feed
Indicates each punctuation mark that can be squared. For these punctuation marks a to d, empty spaces are provided on the typeface to make the composition easier to see. For example, the punctuation mark a "," occupies a half-width space for printing, but the half-width space is left blank to make the layout easier to read. For this reason, even if the next characters are printed in the empty spaces of these punctuation marks a to d, the print quality is less likely to be degraded, and therefore, the print quality is given the highest priority. FIG. 2B shows an example of hiragana or katakana characters whose priority is set to second place. These characters are printed in full-width in normal printing, but
The space occupied by the characters themselves is slightly smaller than that of kanji. Therefore, if there are a certain number of these characters in the previous line (for example, 5 or more characters), in order to create the character space necessary for the prohibition processing at the end of the previous line, these characters are evenly allocated and printed. However, the print quality is less likely to be compromised. For this reason, nail printing is given second priority. FIG. 2C shows an example of a kanji or punctuation whose priority is set to third place. Since these characters occupy a large space for printing, printing them with nails will degrade the printing quality. Therefore, the second line is in the previous line.
There are no punctuation marks shown in Figure A, and the number of kana characters shown in Figure B is small (for example, 4 or less in one line).
Only in cases where the printed characters are evenly distributed among all printed characters in a line, the printed characters are printed in a tabular manner. Therefore, it is given the third priority. With such a circuit configuration, the characteristic operation of the present invention will be explained using the first printing example as the head of line processing shown in FIG. In FIG. 3, A shows an example of printing when no prohibition processing is performed, and B in FIG. 3 shows an example of printing when head of line processing is performed by the apparatus of the present invention. That is, as shown in FIG. 3A, when there is a prohibited punctuation mark "," at the beginning of a line, this is a prohibition process in which the "," at the beginning of the line is pushed to the end of the previous line so that it does not come to the beginning of the line. Here, FIG. 4 shows an example of perforation of printed character data corresponding to the printing example of FIG. 3. This print character data is address information of 8 bits each for XY. The printed line is punched as usual, and a new line mark is punched at the end of the line, and in the next printed line, the kinkyaku ``,'' at the beginning of the line is changed to ``,''.
It is punched twice as "," and this gives the line head processing data α. The set number (multiple) of one print line to which this line-first processing data α is given is "," as the line-first processing data α.
It is considered to be the number of characters excluding ",". In other words, in this example, the number of settings is 11, so the total number of characters is 11, including those that span the beginning or end of a line.
After 13 characters are punched out, a line feed sign is punched out. At this moment, the printed character data in the line shown by A in FIG. 3 from the perforated tape 1 is being read out from the tape reader 2. This output is held in the tape data memory 3 from this tape reader 2. This tape data memory 3 stores data for one line from line feed code to line feed code. When the tape data memory 3 stores data for one line in FIG.
Each print character data is sequentially applied to the comparator circuit 5. This comparison circuit 5 compares the contents of the memory 6 shown in Table 1 above for each print character data. The comparison result, the contents counted by the counter 7, and each printed character data are stored in the second line data memory 8. At the same time, the contents of the tape data memory 3 are converted by the address conversion circuit 11 into XY coordinate values within the type storage. Based on this address information, the printing pressure, paper feed amount, and type storage position (servo motor movement amount data) data for each printed character data are stored in the printing pressure memory 12, feed amount memory 13, and type storage position memory 14, respectively. It is stored in the line printing pressure memory 16, the second line feed amount memory 17, and the second line type storage position memory 18. When the printing character data processing for one line is completed, the data of the next line, that is, the line shown in FIG. 3, is read out by the tape reader 2. When the tape data memory 3 stores one row of data, a comparison operation is performed. At this time, the contents of the second row memories 16 to 18 are transferred to the first row memories 19 to 21. In the printed character data of the line currently being compared, the prohibited punctuation marks "," and "," are punched in succession at the beginning of the line (Figure 4), so this is the content of Table 1 in comparison circuit 5. When the second line is stored in the data memory 8 after being compared with the second line, the microprocessor 10 detects this and identifies the line as having head-of-line processing data. As a result, predetermined data is read from the first row data memory 9. As a result, it is identified that there is one punctuation mark "," with the highest priority in the line, and the kinkoku punctuation mark to be pushed into the line is the punctuation mark "," which is half-width closed by full-width forwarding, and the following A feed amount calculation is performed. That is, the space required for Kinsoku processing is half-width, and the punctuation mark with the first priority is "," which is shortened by half-width with full-width forwarding, so it is calculated as 1/2-width/1=1/2-width. This pawl print data is stored in the 1st line feed amount memory 2.
0, and a new feed amount for Kinsoku processing is rewritten. Next, the punctuation mark "," is added to the end of the first line data memory, and the printing pressure of this punctuation mark "," is
The feed amount and the type storage position command are stored in the first line memories 23 to 25, respectively. As a result, the data of this punctuation mark "," is deleted from each of the second row memories 16-18. The comparison operation in the comparison circuit 5 continues, and the comparison operation in the row is completed. A printing operation is performed using the print data subjected to the prohibition processing, and printing of line B in FIG. 3 is performed. That is, as shown in Figure 3a, the punctuation mark "," is printed in half-width space, the space b necessary for Kinsoku processing is formed in half-width space, and the Kinkoku punctuation mark "," at the beginning of the line is printed in this space b. is printed at the end of the line. Similar circuit operations are performed thereafter, and the print control data of the print line being printed is stored in each memory 19 of the first line.
The print control data of the next line is stored in each of the second line memories 16 to 18, and the data of this line, that is, the line two lines after the line where the printing operation is being performed, is stored in the tape reader 2. is being read from.
The printing operation is performed once in each memory 16 to 18 on the second line.
It starts after all data for a row has been stored. FIG. 5 is a second example of printing as the head of line process printed by the apparatus of the present invention. This is a case where the priority is ranked second compared to the first printing example shown in FIG. The space required for the Kinsoku processing is a half-width (1/2-width) space as in the first embodiment, and the number of hiragana characters is five, as shown in the row of FIG. Therefore, as shown in Figure 5a, these five hiragana characters are printed with 1/2 corner/5 = 1/10 corner each, and as shown in Figure 5b, they are printed as required for the start-of-line processing. It is distinctive in that a half-width (5/10 = 1/2-width) space is formed at the end of the line, and a character ``,'', which cannot start a line, is printed here. The other points are the same as the first printing example. FIG. 6 is a third example of printing as a first-of-line prohibition process printed by the apparatus of the present invention. Comparing with the first printing example, there is no first priority, the second priority has four characters or less, and the priority is third. The space required for the prohibition processing is a half-width (1/2-width) space as in the first embodiment, and the number of characters in one line is 11 as shown in FIG. Therefore, as shown in Figure 6a, these 11 characters are printed in 1/2 squares/11 = 1/22 squares, and the space width required for Kinsoku processing is as shown in Figure 6b. is formed at the end of the line by a half-width (11/22 square = 1/2 square), and is characterized by the fact that the character ``,'', which cannot start a line, is printed here. The other points are the same as the first printing example. FIG. 7 is a fourth example of printing in which line end prohibition processing is printed by the apparatus of the present invention. Compared to the first to third printing examples, the feature is that line end prohibition processing is performed. In other words, when the end-of-line punctuation mark "<" is at the end of a line, as shown in line A of Figure 7, the characters packed into the previous line occupy the full-width printing space indicated at the beginning of the next line, as shown in the same line. The kanji ``kin'' has a wide range of meaning. The prohibition processing in this case is performed in the same way as the above-mentioned line head processing, but for ease of understanding, only the distinctive parts will be explained. First, FIG. 8 shows an example of punching of printed character data corresponding to the printed characters shown in FIG. 7B. In Figure 8, the lines are punched normally, with the illegal character "<" being punched at the end of the line, then a line feed sign, and then the illegal character "<" again being punched at the beginning of the next line. The end-of-line processing data γ is provided. The set number of lines in one line to which the end-of-line processing data γ is given is the number of characters excluding the "<" that gives the end-of-line processing data γ. The other points are the same as the punch-input print data for line head processing shown in FIG. In the line-end-of-line processing, as shown in Figure 8, the kinsoku punctuation mark "<" is punched at the end of the line, the line feed symbol is punctured, and the same kinsoku punctuation mark "<" is punched at the beginning of the line. The processor 10 detects the data, reads the necessary data from the first line data memory 9 and the second line data memory 8 in the same way as the line head processing, and calculates the tab print data according to the priority order. This pawl printing data is sent to the first line feed amount memory 20 from which the line feed data shown in FIG. 7 has been read, and a new feed amount for prohibition processing is rewritten. Next, the second printed character "KIN" from the beginning of the line is added to the end of the first line data memory 9. Next, set the printing pressure of this “prohibited” to the second line printing pressure memory 1.
6 and stores it in the first line print pressure memory 19, and reads out the coordinate value position command from the second line type storage position memory 18 and stores it in the first line type storage position memory 21.
to be memorized. As a result, each second row memory 16~
"Forbidden" data is deleted from 18 onwards. In other words, as shown in Figure 7B, there are two half-width punctuation marks in the line with the highest priority, and the space required for Kinsoku processing is full-width, so full-width/2=1. /2, this punctuation mark "," is printed as shown in FIG. 7a, and a space is formed as shown in FIG. FIG. 9 is a fifth example of printing using the line end prohibition process printed by the apparatus of the present invention. When compared with the fourth printing example in FIG. 7, this is a case where the priority is ranked second. The space required for the Kinsoku processing is full-width as in the fourth printing example, and the number of hiragana characters is five, as shown in the row of FIG. Therefore, as shown in Figure 9a, these five hiragana characters are printed with 1 corner/5 = 1/5 corner, and as shown in Figure 9b,
The space required for end-of-line processing is a full-width space at the end of the line (5/5 = full-width), and the kanji character "kin" is printed here. The other points are the same as the fourth printing example. FIG. 10 is a sixth example of printing as a line ending prohibition process printed by the apparatus of the present invention. Comparing with the fourth printing example, there is no first priority, the second priority has four characters or less, and the priority is third. The space required for the prohibition processing is full-width as in the first embodiment, and the number of printed characters in one line is 11, as shown in the line of FIG. Therefore, as shown in Figure 10a, each of these 11 characters is printed by 1/11 = 1/11th corner, and as shown in Figure 10b, the space required for Kinsoku processing is printed with full-width characters at the end of the line. It is unique in that it is made up of only full-width characters (11-byte/11 = full-width characters), and the kanji character "kin" is printed here. The other points are the same as the fourth printing example. In the above example, a perforated tape was used as the input printed character data, but a floppy disk or the like may also be used. As explained above, according to the present invention, the priority order of the pawl printing of the prohibition processing is set in advance in accordance with the type of printed characters, and the information necessary for the prohibition processing is extracted from the printed character data including the prohibition processing information. Based on this information, a processing circuit calculates the tab print information according to the priority order, and based on this tab print information, the print space width of each printed character is set to perform prohibition processing. Therefore, the characters can be printed in order of characters that do not become difficult to read even if they are printed, and the quality of the printing will not be degraded due to spaces appearing on the next line. Further, the number of priority rankings can be increased or decreased as necessary, and the accuracy of prohibition processing can be adjusted and designed depending on the scale of the device, and the performance of the printing device can be significantly improved. It has excellent effects such as being able to reduce costs. In addition, in the present invention, the printing space for the Kinsoku symbol itself is reduced according to its type, so the space for printing the tabs can be reduced, which results in significantly higher quality compared to the conventional Kinsoku processing. Kinsoku processing can be performed.

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

第1図は本発明実施例の要部ブロツク構成図。
第2図は上記実施例の優先順位の説明図。第3図
は行頭禁則処理としての第一印字例を示す図。第
4図は第3図に示す例の入力情報例。第5図は行
頭禁則処理としての第二印字例を示す図。第6図
は行頭禁則処理としての第三印字例を示す図。第
7図は行末禁則処理としての第四印字例を示す
図。第8図は第7図に示す例についての入力情報
例。第9図は行末禁則処理としての第五印字例を
示す図。第10図は行末禁則処理としての第六印
字例を示す図。 1……さん孔テープ、2……テープリーダ、3
……テープデータメモリ、5……比較回路、6…
…メモリ、7……カウンタ、8……2行目データ
メモリ、9……1行目データメモリ、10……マ
イクロプロセツサ、16……2行目印字圧メモ
リ、17……2行目送り量メモリ、18……2行
目活字庫位置メモリ、19……1行目印字圧メモ
リ、20……1行目送り量メモリ、21……1行
目活字庫位置メモリ。
FIG. 1 is a block diagram of main parts of an embodiment of the present invention.
FIG. 2 is an explanatory diagram of the priority order of the above embodiment. FIG. 3 is a diagram showing a first printing example as a first-of-line prohibition process. FIG. 4 shows an example of input information for the example shown in FIG. FIG. 5 is a diagram showing a second printing example as the first-of-line prohibition process. FIG. 6 is a diagram showing a third printing example as the first-of-line prohibition process. FIG. 7 is a diagram showing a fourth example of printing as the end-of-line prohibition process. FIG. 8 is an example of input information for the example shown in FIG. FIG. 9 is a diagram showing a fifth printing example as the end-of-line prohibition process. FIG. 10 is a diagram showing a sixth printing example as the end-of-line prohibition process. 1...Perforation tape, 2...Tape reader, 3
...Tape data memory, 5...Comparison circuit, 6...
...Memory, 7...Counter, 8...2nd line data memory, 9...1st line data memory, 10...Microprocessor, 16...2nd line printing pressure memory, 17...2nd line feed 18... 2nd line type storage position memory, 19... 1st line printing pressure memory, 20... 1st line feed amount memory, 21... 1st line type storage position memory.

Claims (1)

【特許請求の範囲】 1 少なくとも漢字、片仮名、平仮名、約物等の
文字データと改行指示データおよび禁則処理デー
タ等を含む印字文字データが記憶された印字文字
データ入力手段を備え、上記印字文字データ入力
手段から印字文字データを読出し印字を行う印字
装置において、 予め記憶されたデータと上記印字文字データと
を比較し、上記印字文字データに示された印字文
字の種類に基づいて少なくとも(イ)その印字文字の
印字スペースをつめられるもの、(ロ)所定個数以上
の同種類の印字文字間でその印字活字の印字スペ
ースをつめられるもの、(ハ)一行分の各々の印字文
字の印字スペースを均等につめるもの、の順位で
印字スペースをつめる印字活字の優先付けを決定
し、印字文字データが行頭または行末禁則記号の
ときはこの行頭または行末禁則記号の種類に応じ
てその印字スペースを決定する第一の手段と、 上記印字文字データ入力手段から入力中の印字
文字データの少なくとも一行前の一行分の印字文
字データを記憶する第二の手段と、 上記印字文字データの禁則処理指示データを検
出しこの禁則処理データに対応して行頭または行
末禁則処理を指示する第三の手段と、 上記第三の手段から行頭禁則処理の指示があつ
たときには上記第二の手段に記憶された一行前の
印字文字データについて上記第一の手段で決定さ
れた上記優先順位にしたがつて上記第一の手段で
決定された行頭禁則記号の印字スペース分だけ印
字スペースをつめて行頭禁則処理し、この行頭禁
則処理データにしたがつて上記第二の手段に記憶
された印字データを修正する第四の手段と、 上記第三の手段から行末禁則処理の指示があつ
たときには上記第二の手段に記憶された一行前の
印字文字データについて上記第一の手段で決定さ
れた上記優先順位および上記第一の手段で決定さ
れた行末禁則記号の印字スペースに基づいて次の
行の最初の文字の印字スペース分だけ印字スペー
スをつめて行末禁則処理し、この行末禁則データ
にしたがつて上記第二の手段に記憶された印字デ
ータを修正する第五の手段と、 上記第四の手段及び上記第五の手段により修正
された印字文字データで印字を行う第六の手段
と、を備えたことを特徴とする印字装置の禁則処
理装置。
[Scope of Claims] 1. A printed character data input means storing printed character data including at least character data such as kanji, katakana, hiragana, and punctuation, line feed instruction data, and prohibition processing data; In a printing device that reads and prints printed character data from an input means, compares the previously stored data with the printed character data, and determines at least (a) the type of printed character indicated in the printed character data. (b) A device that can compress the printing space of printed characters between a predetermined number or more of the same type of printing characters, (c) A device that can make the printing space of each printed character in one line equal. The priority of the printing type that fills up the printing space is determined based on the order in which the printing space is filled, and when the printed character data is a symbol that cannot be started at the beginning of a line or the end of a line, the printing space is determined according to the type of the symbol that cannot be started at the beginning of a line or at the end of a line. a second means for storing printed character data for at least one line preceding the printed character data being inputted from the printed character data input means; and a second means for detecting prohibition processing instruction data for the printed character data. a third means for instructing line-inhibition processing or line-inhibition processing in response to the line-inhibition processing data, and printing of the previous line stored in the second means when the line-inhibition processing is instructed from the third means; For the character data, according to the priority order determined by the first means, the printing space is filled by the printing space of the no-starting symbol determined by the first means, and a no-starting process is performed, and this no-starting process is performed. a fourth means for correcting the print data stored in the second means according to the data; and a line stored in the second means when an instruction for line-end prohibition processing is received from the third means; Based on the priority order determined by the first method for the previous print character data and the print space for the no-end-of-line symbol determined by the first method, print only the print space for the first character of the next line. a fifth means for compressing spaces and processing line endings, and correcting the print data stored in the second means in accordance with the line endings data; correction by the fourth means and the fifth means; A prohibition processing device for a printing device, comprising: sixth means for printing using the printed character data.
JP55155686A 1980-11-05 1980-11-05 Confinement means for typeprinter Granted JPS5780082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55155686A JPS5780082A (en) 1980-11-05 1980-11-05 Confinement means for typeprinter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55155686A JPS5780082A (en) 1980-11-05 1980-11-05 Confinement means for typeprinter

Publications (2)

Publication Number Publication Date
JPS5780082A JPS5780082A (en) 1982-05-19
JPS6365511B2 true JPS6365511B2 (en) 1988-12-15

Family

ID=15611333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55155686A Granted JPS5780082A (en) 1980-11-05 1980-11-05 Confinement means for typeprinter

Country Status (1)

Country Link
JP (1) JPS5780082A (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6186866A (en) * 1984-10-03 1986-05-02 Canon Inc Word processor device
JPH07122873B2 (en) * 1984-11-14 1995-12-25 キヤノン株式会社 Character processing method
JPS6259043A (en) * 1985-09-10 1987-03-14 Nippon Denki Kanji Syst Kk Processor of edit with phonetic 'kana' for 'kanji'
JPH0343859A (en) * 1989-07-12 1991-02-25 Hitachi Ltd Inhibition rule processing system
JP2721640B2 (en) * 1994-02-14 1998-03-04 株式会社日立製作所 A print control method for aligning the end of lines
JP2721641B2 (en) * 1994-02-14 1998-03-04 株式会社日立製作所 A print control method for aligning the end of lines

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53149724A (en) * 1977-02-14 1978-12-27 Alps Electric Co Ltd Character input device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53149724A (en) * 1977-02-14 1978-12-27 Alps Electric Co Ltd Character input device

Also Published As

Publication number Publication date
JPS5780082A (en) 1982-05-19

Similar Documents

Publication Publication Date Title
US2968383A (en) Method and apparatus for type composition
US4416558A (en) Method of controlling a printer in an interactive text processing system to print records from stored files of spatially related data
JPS6365511B2 (en)
EP0026303B1 (en) Line adjustment apparatus in a text processing system
JPS5938629B2 (en) line spacing controller
US4907193A (en) Word processor using character group discrimination codes for variable pitch and logotype character control printing
JPS63172665A (en) Output device
EP0026286A1 (en) Hyphen code converting process for a text processing system
JPS6037944B2 (en) text processing device
JPS5939074B2 (en) tab control device
US5097426A (en) Printer controlling apparatus
US5033880A (en) Printer with character expansion in accordance with line pitch
EP0090802B1 (en) A page modification method in a printer subsystem of the partial page buffer composing type
US5162993A (en) Word processing apparatus
JP3542660B2 (en) Typesetting equipment
JPH0687249A (en) Apparatus for printing address
JPH04205250A (en) Document preparing device
JPH0345414B2 (en)
JPH07156494A (en) Printer
JP3005344B2 (en) Document processing device
JPH02178765A (en) Document preparing device
JPH04246570A (en) Printer
JP2614251B2 (en) Printer print control method
JPH0352091B2 (en)
JPH04250081A (en) Character processing method