JPH0356189B2 - - Google Patents
Info
- Publication number
- JPH0356189B2 JPH0356189B2 JP58078434A JP7843483A JPH0356189B2 JP H0356189 B2 JPH0356189 B2 JP H0356189B2 JP 58078434 A JP58078434 A JP 58078434A JP 7843483 A JP7843483 A JP 7843483A JP H0356189 B2 JPH0356189 B2 JP H0356189B2
- Authority
- JP
- Japan
- Prior art keywords
- dot
- character
- line
- dot position
- pattern
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Dot-Matrix Printers And Others (AREA)
- Record Information Processing For Printing (AREA)
- Character Spaces And Line Spaces In Printers (AREA)
Description
(イ) 産業上の利用分野
本発明は印字制御装置に関する。
(ロ) 従来技術
現在の英文ワードプロセツサでは文字間隔を均
等になすプロポーシヨナル印字を基本として、行
末処理、右揃え処理、右1/2揃え処理、センタリ
ング処理、右づめ処理等の各制御を行ない印字出
力する。
第1図は現在の英文ワードプロセツサの基本的
構成を示し、1はキーボード等の入力手段、2は
CRTデイスプレイ、3はプリンタ、4は記憶部、
5は制御部である。斯る装置では入力手段1から
入力されたデータをCRT2画面上に表示出力し、
斯る表示画面を見ながら修正等を行ない記憶部4
内に格納する。また斯る記憶部4内に格納された
データはプリンタ3より印字出力される。斯る動
作は入力手段1から入力される信号に基づいて制
御部5がコントロールするものであり、かつ上記
した行末処理等も斯る制御部5がコントロールす
る。
次に行末処理等の各処理を説明する。
(i) 行末処理
今、CRT画面6上の第1行に第2図Aに
“ABC〓〓〓XYZ”というような文字列が表示
されているものとする。尚図中“”、“”は一
行の書式を規定する左右マージンである。
上記文字列をプリンタ3により印字出力する際
に所定の文字間隔でプロポーシヨナル印字を行な
うと第2図Bに示す如く印字用紙7中の印字領域
8内に上記文字列が収まらないことがある。この
ようなとき上記文字間隔を変更させて上記文字列
を印字領域8内に収まるように処理することが行
末処理である。
(ii) 右揃え処理
斯る処理は第2図Aで表示された文字列を印字
用紙7に所定の文字間隔でプロポーシヨナル印字
する際に、第3図に示す如く印字領域8の右端
(以下、右マージン位置と称す)と文字列の最終
文字との間に余白SPが生じるときに各行の行末
を右マージン位置に揃えるものである。具体的に
は上記余白SPを斯る行の各スペース“〓”に適
当に振り分けることにより行なう。
(iii) 右1/2揃え処理
斯る処理は上記右揃え処理と略同じであり、そ
の行の最終文字を右マージン位置より1/2SPに揃
える処理である。
(iv) センタリング処理
斯る処理は例えば第4図Aに示す如く、CRT
画面6上において表示される文字列“ABC”を
印字する際に第4図Bに示す如く印字領域8中の
中央に位置するようになす処理である。尚第4図
A中において“□C”はセンタリングマークであ
り、斯るマークに挾まれた文字列が上記センタリ
ング処理される。
(v) 右づめ処理
斯る処理は例えば第5図Aに示す如くCRT画
面6上において表示される文字列“ABC”を印
字する際に第5図Bに示す如く印字領域8の右端
に位置するようになす処理である。尚第5図A中
において“□R”は右づめマークであり、斯るマー
ク以降に位置する文字列が上記右づめ処理の対象
となる。
現在の英文ワードプロセツサではプリンタとし
て活字式のものが用いられている。従つて上記各
処理を実施する制御装置は活字式印字装置に出力
することを前提に構成されていた。
然るに現在漢字等の複雑な文字及びグラフイツ
クデータを印字可能であるという鑑点から印字装
置としてはドツト式のものが広く用いられつつあ
る。
(ハ) 発明の目的
本発明は上記の諸点に鑑みてなされたものであ
つて、ドツト式印字装置を用いた際にも上記各機
能を達成可能な印字制御装置を提供せんとするも
のであり、各文字に対してはプロポーシヨナル印
字を行なうと共に、複数行にわたつて連続する縦
ケイ線にあつては各行毎を処理単位とすると印字
ズレを生じる点を解決することを目的とする。
(ニ) 発明の構成
本発明は、縦ケイ線を含む文書を格納するテキ
ストメモリ、当該テキストメモリ中の情報を読み
出し保持する行バツフア、当該行バツフアに読み
出された一行中の縦ケイ線の先頭からの文字位置
を検索しその位置を記憶する位置管理記憶手段、
文字・記号などの種類によりドツトマトリツクス
のサイズが異なるドツトパターンの横方向もしく
は縦方向のドツト幅が格納されたパターン及び幅
記憶手段、印字すべき一行分のドツトパターンを
格納するイメージバツフア、当該イメージバツフ
アへの書き込み開始位置を作成するスタートドツ
ト位置作成手段、当該スタートドツト位置作成手
段で作成される上記イメージバツフアへの各ドツ
トパターンの書き込み開始位置を格納するスター
トドツト位置記憶手段、基本的なスタートドツト
位置が格納されている基本ドツト位置記憶部、上
記行バツフアから読み出された文書が縦ケイ線で
あるか否かを判定する縦ケイ線判定手段、上記ス
タートドツト位置記憶手段に格納された開始位置
に基づき上記パターン及び幅記憶手段から読み出
したドツトパターンを上記イメージバツフアに作
成するパターンイメージ作成手段、直前のパター
ンのスタートドツト位置及び斯るパターンの幅を
格納するカレントドツト位置記憶手段、上記基本
ドツト位置記憶部もしくはカレントドツト位置記
憶手段の出力を選択的に出力するスタート位置選
択部、を備え、上記縦ケイ線判定手段が縦ケイ線
と判定したとき、上記スタート位置選択部は上記
位置管理手段の当該縦ケイ線の位置に基づく基本
ドツト位置記憶部の出力を選択し、その基本ドツ
ト位置に基づいて上記スタートドツト位置作成手
段を起動すると共に、上記縦ケイ線判定手段が文
字・記号と判定したとき、上記スタート位置選択
部はカレントドツト位置記憶手段の出力を選択
し、上記スタートドツト位置作成手段を起動する
ことを特徴とする。
(ホ) 実施例
まず、実施例を説明する前にドツト式印字装置
を用いる際のプロポーシヨナル印字方法及びこれ
を基本とする上記(i)〜(v)の処理を簡単に説明す
る。
(a) プロポーシヨナル印字方法
現在ドツト式印字装置を用いて出力するための
印字制御装置では、例えば各文字を24×24ドツト
もしくは32×32ドツトで表わしたフオントパター
ンを有し、斯るフオントパターンを印字装置に出
力することにより各文字を印字出力せしめてい
る。然るにこのように各文字を共通のマトリツク
スサイズとすると、第6図に示す如く実際の文字
と文字との間隔l1,l2が異なるためプロポー
シヨナル印字とならない。これは文字幅W1,W
2,W3が異なる文字を同サイズのドツトマトリ
ツクスとしたためである。尚第6図中m,nはド
ツトマトリツクスサイズである。
本発明者はこの点に鑑みて、プロポーシヨナル
印字を行なうためのフオントパターンとしては実
質的な文字幅に応じて幅方向のマトリツクスサイ
ズを規定することとした。具体的には第7図に示
す如く文字幅W1の文字“I”は左右に夫々L
1,L2という空白のドツト領域を付加したもの
をフオントパターンとする。従つて文字“I”の
フオントパターンのドツトマトリツクスサイズは
m×(L1+W1+L2)となる。同様に文字
“A”はm×(L1+W2+L2)、文字“M”は
m×(L1+W3+L2)のドツトマトリツクス
サイズのフオントパターンとなる。尚上記L1,
L2は固定である。
次にこの様に構成されたフオントパターンを実
際の印字形態とするための概略的な処理について
第8図を用いて説明する。尚、具体的には例えば
第9図に示す如くCRT画面6上で表示される文
字列“ABC”を印字形態とする場合について説
明する。また上記各文字“A”,“B”,“C”のフ
オントパターンの幅は夫々“18”、“19”、“17”と
する。
第8図中、10はイメージバツフアであり、該
バツフアには一行分の印字イメージがドツトパタ
ーンとして格納される。つまり上記文字列
“ABC”は行の先頭に位置し、かつ夫々の幅が
“18”、“19”、“17”であるので、文字“A”のフ
オントパターンはイメージバツフア10の第0ド
ツト列〜第17ドツト列に、文字“B”のフオント
パターンは第18ドツト列〜第36ドツト列に、文字
“C”のフオントパターンは第37ドツト列〜第54
ドツト列に夫々書込まれることになる。
上記イメージバツフア10へのフオントパター
ンの書込みは、まず上記各文字のフオントパター
ン及びその幅が格納されたフオントテーブル11
より上記各文字“A”、“B”、“C”の幅を順次読
み出し、斯る幅値に基づいて各文字のイメージバ
ツフア10への書込み開始位置を求め、斯る位置
をスタートドツトテーブル12の対応する領域に
一旦書込み、次いで斯るドツトテーブル12の内
容に基づきフオントテーブル11より読出したフ
オントパターンをイメージバツフア10に格納す
ることにより行える。
以上の如く、プロポーシヨナル印字は単に各文
字のフオントパターン幅を適切に設定することに
より行えるが、例えば縦ケイ線の如く複数行にわ
たつて連続するものでは単にフオントパターン幅
からその書込み開始位置(以下スタートドツト位
置と称す)を決定すると印字時ズレを生じること
がある。従つてこれを防ぐ方法としては縦ケイ線
等のスタートドツト位置を斯るケイ線の位置する
一行中の先頭からの文字位置(以下カラム位置と
称す)により規定すればよい。尚複数行にわたつ
て連続するものとしては縦ケイ線の他に一行を処
理単位に分割する書式マークがある。
(b) 右揃え処理
第10図Aに示す如く、プロポーシヨナル印字
ではその行の最終文字が右マージンからmドツト
分印字領域内に位置するものとすると、上記mド
ツトを斯る行の文字と文字との間に存在するスペ
ースに振り分ける。斯る振り分け方は上記スペー
ス数をnとするとm/nより商A及び余りBを求
め、その商Aを上記各スペースに振り分けると共
に行の先頭のスペースから順にB個のスペースに
対して各1ドツトずつ更に振り分けるようにす
る。
具体的には例えば第10図Bに示す如くn=
2、m=3のような行があるとm/nの商A=
1、余りB=1となるので、先頭のスペース21
には2ドツトが、第2のスペース22には1ドツ
トが振り分けられることとなる。従つてスペース
の幅がプロポーシヨナル印字時に例えば“18”で
あるとすれば斯る右揃え処理により第1、第2ス
ペース21,22の幅は夫々“20”、“19”とな
る。またこのとき各スペースの幅が変化すること
により各文字のスタートドツト位置も当然変化す
るが、これは上記スペース幅の変化量に従つてス
タートドツトテーブル12の内容を変更させれば
よい。
(c) 右1/2揃え処理
斯る処理は上記右揃え処理と基本的に同一の処
理となるので説明を省略する。
(d) 右づめ処理
斯る処理は例えば第11図に示す如く単にプロ
ポーシヨナル印字した際に、右づめを要求された
文字列“ABC”の右端文字と右マージン位置と
の間にmドツトの差があるとき上記各文字のスタ
ートドツト位置をmドツト分右にずらすことによ
り行なえる。斯るスタートドツト位置の変更はス
タートドツトテーブル12内の上記各文字のスタ
ートドツト位置情報に+mするだけである。
(e) センタリング処理
斯る処理は、例えば第12図に示す如くセンタ
リング処理されるべき文字列“ABC”を有する
一行が単に各文字の予め定められたフオントパタ
ーン幅に従つて印字されるときの上記文字列の先
頭文字“A”のスタートドツト位置A、斯る行の
スタートドツト位置X、上記文字列の最終文字
“C”の最終ドツト位置B、右マージン位置Yに
従つて(X+Y−A−B)/2を求め、斯る演算
結果分だけ上記文字列“ABC”の各文字のスタ
ートドツト位置を変更するものである。この演算
において小数点以下の端数が発生したときは切り
捨て処理を行なう。尚斯る位置変更はスタートド
ツトテーブル12の内容を変更するだけである。
(f) 行末処理
斯る処理は例えば第13図に示す如く予め定め
られたフオントパターン幅に従つて各文字を印字
した際に文字が右マージン位置を越えて印字され
る際に、各文字のフオントパターン幅を1ドツト
づつ減少させるものである。具体的にはスタート
ドツトテーブル12の各スタートドツト位置情報
をそのカラム位置nに応じて変更、つまり(n−
1)ずつ上記各情報を減少せしめるものである。
尚、上記各処理は一行単位で説明したが、例え
ば第14図に示す如く縦ケイ線、インデントマー
ク等の書式マークによりブロツク単位で上記各処
理を行なうこともできる。以下の実施例では、ブ
ロツク単位で処理する装置について説明する。
第15図は本実施例装置の全体的構成を示し、
100は例えばマイクロコンピユータで構成され
る制御部であり、該制御部は処理プログラムに従
つて制御信号C1〜C8を出力して以下で説明す
る各手段の制御を司る。
201はテキスト管理手段であり、該手段は文
書等を構成する文字・記号等がJIS、ASCII等の
コードとして格納されたテキストメモリ202、
該メモリ中の一行分のコードを読み出し保持する
行バツフア203、斯る行バツフア203に読み
出された一行中の書式マークのカラム位置を検索
し、その位置を書式マークカラム位置記憶部10
1に記憶させる書式マークカラム位置管理部20
4からなる。
300は行管理手段であり、該手段は以下の各
部より構成される。
「読出カラム位置管理部301」……上記行バ
ツフア203中の読出し位置を示すカラムカウン
タを有し、該カウンタの内容はカラム位置信号
CPとして出力される。また斯るカウンタは制御
部100からのリセツト信号R1によりリセツト
され、またカウントアツプ信号UPIにより1だけ
その内容を増加する。
「読出部302」……上記読出カラム位置管理
部301からのカラム位置信号CPに基づいて行
バツフア203よりコードCCを読み出し出力す
る。
「センタリングマーク判定部303」……上記
読出部302より読出されたコードCCがセンタ
リングマークであるか否かを判定し、センタリン
グマークであるときセンタリング情報記憶部30
4内を検索する。斯る記憶部304は第16図に
示す如く、第1、第2記憶領域305,306を
有し、第1記憶領域305にはセンタリングマー
クの有無情報がセツトされ、また第2記憶領域3
06には斯るセンタリングマークの位置するカラ
ム情報がセツトされる。ここに、上記検索により
第1記憶領域305にセンタリングマーク有の情
報がセツトされていた際にはセンタリング処理手
段400により既述したセンタリング処理を実行
し、その後第2記憶領域306内に現在のカラム
位置信号CPをセツトする。また第1記憶領域3
05にセンタリングマーク有の情報がセツトされ
ていない際には、斯る領域305内にセンタリン
グマーク有の情報をセツトすると共に現在の上記
カラムカウンタの内容を第2記憶領域306にセ
ツトする。
「右づめマーク判定部307」……上記センタ
リングマーク判定部303を介して入力されるコ
ードCCが右づめマークであるか否かを判定し、
右づめマークである際には第17図に具体的構成
を示す処理情報記憶部308の右づめ開始位置領
域309にカラム位置信号CPをセツトすると共
に右づめ処理領域301には右づめ処理の有の情
報がセツトされる。
尚、上記処理情報記憶部308には右揃え処
理、右1/2揃え処理もしくは左揃え処理(右揃え、
左揃えを行わない処理)の何れの処理を行なうか
の情報がセツトされる揃え処理領域311があ
る。また斯る領域311への情報のセツトは入力
手段(図示せず)からの入力に基づいて制御部1
00が行なう。
「文字判定部312」……上記右づめ判定部3
07を介して送られてくるコードCCが文字コー
ド(書式マーク、センタリングマーク、右づめマ
ーク及びスペースを除くコード)であるか否かを
判定し、斯る判定において文字コードと判定され
るとエンド文字カラム位置記憶部313にカラム
位置信号CPをセツトする。また、第18図に示
す如くスタート文字カラム位置記憶部314内の
スタート文字情報領域315を検索し、斯る領域
315の内容が“0”のときにはスタート文字位
置領域316内にカラム位置信号CPをセツトし
かつスタート文字情報領域315に“1”をセツ
トする。更に、コードCCが文字コードである際
には判定結果CCSとして“1”を出力する。
「スタートドツト位置作成手段500」……文
字判定部312を介して送られてくるコードCC、
結果CCS及びカラム位置信号CPに基づいて既述
したスタートドツトテーブルを作成するもので、
具体的な構成及び動作については後述する。
「スペース判定部317」……スタートドツト
位置作成手段500を介して送られてくるコード
CCがスペースコードであるか否かを判定し、ス
ペースコードであるときにはスペースカラム記憶
部318にカラム位置信号CPに基づいてその位
置情報をセツトする。具体的にはスペースカラム
記憶部318は第19図に示す如く各カラム位置
に対して各1ビツト毎の対応領域を有し例えば第
3、第6カラム位置のコードがスペースコードで
あるときには第3、第6カラム位置に対応する領
域には“1”がセツトされ、その他の領域には
“0”がセツトされることとなる。
「書式マーク判定部319」……スペース判定
部317を介して送られてくるコードCCが書式
マークか否かを判定し、その判定結果を制御部1
00に信号MDとして出力する。尚、書式マーク
としては一行を規定する左右マージン(第14図
中“”,“”)(以下行規定マークと称す)と一
行内をブロツク単位に分割するインデントマーク
及び縦ケイ線等(以下ブロツク規定マークと称
す)とがあり、斯る違いも上記判定結果として出
力される。
102は基本ドツト位置記憶部であり、該記憶
部には既述した如く縦ケイ線等の印字時の位置ズ
レを防止するためにカラム位置に従つて斯るカラ
ム位置にある文字・記号等の基本的なスタートド
ツト位置が格納されている。本実施例では文字・
記号等の平均的なフオントパターン幅を“18”と
して第20図に示す如く格納されている。
103はスタートドツト位置記憶部であり、既
述したスタートドツトテーブルを構成する。
104はフオント管理部であり、該管理部はフ
オントパターン幅が格納された幅記憶部105と
フオントパターンが格納されたパターン記憶部1
06とから構成される。
600は右づめ処理手段、700は右揃え処理
手段、800は右1/2処理手段、900は行末補
正手段であり、該各処理手段は既述した右づめ処
理、右揃え処理、右1/2揃え処理、行末補正処理
を行なう。100はパターンイメージ作成手段で
あり、該手段は既述したイメージバツフアを作成
する。1100はゾーンチエツク手段であり、該
ゾーンチエツク手段は右揃え処理、右1/2揃え処
理を行なう際に第10図Aにおける余白ドツトm
がある一定値を越えるか否かを判定するものであ
る。即ち上記mが大きすぎると各文字間スペース
に振り分けられるドツト数が大きくなり文字間ス
ペースが広くなり、美観的に好ましくなくなるこ
とを防ぐためものである。
第21図は上記制御部100の処理プログラム
を示すフローチヤートであり、斯るフローチヤー
トに基づいて具体的にその動作を説明する。
まず、S1ステツプでは第1の初期設定を行な
う。具体的には読出カラム位置管理部301内の
カウンタ値をリセツト信号R1に基づいて“0”
にリセツトすると共に書式マークカラム位置記憶
部101、スタートドツト位置記憶部102、ス
ペースカラム記憶部318等を図示しない制御部
100からのリセツト信号によりクリアする。
S2ステツプでは以下で処理される一行分のコ
ードがテキストメモリ202より行バツフア20
3に読出される。具体的には制御信号C1をテキ
スト管理手段201に与えることにより斯る動作
が実行される。また斯る手段201ではS3ステ
ツプにおいて、行バツフア203中の書式マーク
位置を書式マークカラム位置管理部204より検
索し、その位置情報を書式マークカラム位置記憶
部101にセツトする。
S4ステツプでは第2の初期設定を行なう。具
体的にはセンタリング情報記憶部304、処理情
報記憶部308、エンド文字カラム位置記憶部3
13、スタート文字記憶部314等を制御部10
0からの図示しないリセツト信号に基づいてクリ
アする。
S5ステツプでは、読出カラム位置管理部30
1内のカラムカウンタの内容をプラス1する。具
体には、制御部100からのカウントアツプ信号
UP1に基づいて実行される。斯るカラムカウン
タの内容はカラム位置信号CPとして出力され、
斯る信号CPに基づきS6ステツプにおいて斯る
信号CPに対応したカラム位置にある行バツフア
203中の1コードを読出部202が読出しコー
ドCCとして出力する。
S7ステツプでは上記コードCCがセンタリン
グマークであるか否かをセンタリングマーク判定
部303において判定し、センタリングマークだ
とS8ステツプに処理は進み、そうでないときに
はS12ステツプに処理は進む。
S8ステツプでは、センタリング情報記憶部3
04内の第1記憶領域305を検索し、S9ステ
ツプにおいてその内容を判定する。即ち、第1記
憶領域305内にセンタリングマーク“有”情報
がセツトされているとS10ステツプに進みセン
タリング処理手段400によりセンタリング処理
を実行する。またセンタリング情報がセツトされ
ていないときにはS11ステツプに進みセンタリ
ング情報をセツトする。具体的には第1記憶領域
305にセンタリング“有”情報をセツトし、第
2記憶領域306にカラム位置信号CPをセツト
する。上記S10,11ステツプの処理が終了す
ると処理はS12ステツプに進む。尚上記S8〜
S12ステツプの処理はセンタリング判定部30
3において実行される。
S12ステツプではコードCCが右づめマーク
か否かが判定され、右づめマークであるときには
S13ステツプに、そうでないときにはS14ス
テツプに処理は進む。
S13ステツプでは、右づめ情報を処理情報記
憶部308にセツトする。具体的には斯る記憶部
308内の右づめ開始位置領域309にカラム位
置信号CPをセツトし、右づめ処理領域310に
右づめ処理“有”の情報をセツトする。尚S1
2,13ステツプの処理は右づめ判定部307で
実行される。
S14ステツプではコードCCが文字コードで
あるか否かを判定し、文字コードであるときには
処理はS15,16ステツプを実行しS17ステ
ツプに進み、またそうでないときはS17ステツ
プに直接進む。尚斯るステツプにおいて文字コー
ドとは書式マータ、センタリングマーク、右づめ
マーク、スペース等を除く、アルフアベツト、数
字等を表わすコードである。
S15ステツプではスタート文字カラム位置情
報をスタート文字カラム位置記憶部314にセツ
トする。具体的には斯る記憶部314のスタート
文字情報領域315の内容が“0”のときには斯
る領域315に“1”をセツトし、カラム位置信
号CPをスタート文字位置領域316にセツトし、
また上記領域316の内容が“1”のときには斯
る記憶部314には何の処理も施さずS16ステ
ツプに進む。斯るS16ステツプではエンド文字
カラム位置をエンド文字カラム位置記憶部313
にセツトする。具体的には上記記憶部313にカ
ラム位置信号CPをセツトする。尚S14〜S1
6ステツプの処理は文字判定部312において実
行される。
S17ステツプではスタートドツト位置作成手
段500よりコードCC及びカラム位置信号CPに
基づいて既述したスタートドツトテーブル12を
作成する。
S18ステツプではコードCCがスペースコー
ドであるか否かが判定され、スペースコードであ
ると判定されるとS19ステツプにおいて、スタ
ートカラム記憶部318内のカラム位置信号CP
に相当する領域に“1”をセツトする。尚S1
8,19ステツプの処理はスペース判定部317
で実行される。
S20ステツプではコードCCが書式マークで
あるか否か及び書式マークであるときには行規定
マークであるかブロツク規定マークであるかを書
式マーク判定部319で判定し、その結果を信号
MDとして制御部100に出力する。具体的には
上記信号MDは2ビツトのデイジタル信号として
出力され、斯る2ビツトの信号は夫々下表のよう
な意味を持つ。
(a) Industrial Application Field The present invention relates to a printing control device. (b) Prior art Current English word processors are based on proportional printing with equal character spacing, and perform various controls such as line end processing, right alignment processing, right 1/2 alignment processing, centering processing, right alignment processing, etc. Print out. Figure 1 shows the basic configuration of current English word processors, where 1 is an input means such as a keyboard, and 2 is an input means such as a keyboard.
CRT display, 3 is a printer, 4 is a storage unit,
5 is a control section. In such a device, the data inputted from the input means 1 is displayed and output on the CRT 2 screen,
While looking at the display screen, make corrections, etc., and store it in the storage section 4.
Store inside. Further, the data stored in the storage section 4 is printed out by the printer 3. This operation is controlled by the control section 5 based on the signal input from the input means 1, and the above-mentioned line end processing and the like are also controlled by the control section 5. Next, each process such as line end process will be explained. (i) End-of-line processing Assume that a character string such as "ABC〓〓〓XYZ" as shown in FIG. 2A is displayed on the first line of the CRT screen 6. In the figure, "" and "" are left and right margins that define the format of one line. When the character string is printed out by the printer 3, if proportional printing is performed at predetermined character intervals, the character string may not fit within the printing area 8 on the printing paper 7, as shown in FIG. 2B. In such a case, end-of-line processing involves changing the character spacing so that the character string fits within the print area 8. (ii) Right alignment process This process is performed when proportionally printing the character string displayed in FIG. This aligns the end of each line with the right margin position when a margin SP occurs between the right margin position (referred to as the right margin position) and the last character of the character string. Specifically, this is done by appropriately distributing the above-mentioned margin SP to each space "〓" in the line. (iii) Right 1/2 alignment process This process is substantially the same as the right alignment process described above, and is a process of aligning the last character of the line to 1/2 SP from the right margin position. (iv) Centering process Such a process is performed, for example, as shown in Figure 4A.
This is a process for printing the character string "ABC" displayed on the screen 6 so that it is located at the center of the printing area 8 as shown in FIG. 4B. In FIG. 4A, "□C" is a centering mark, and the character string sandwiched between these marks is subjected to the above-mentioned centering process. (v) Right-justification processing Such processing is performed, for example, when printing the character string "ABC" displayed on the CRT screen 6 as shown in FIG. This is the process of doing so. In FIG. 5A, "□R" is a right-justification mark, and character strings located after such a mark are subject to the right-justification process. Current English word processors use type printers. Therefore, the control device that executes each of the above-mentioned processes has been constructed on the premise that the output is to be output to a type printing device. However, dot type printing devices are now being widely used as printing devices because they are capable of printing complex characters such as Chinese characters and graphic data. (c) Purpose of the Invention The present invention has been made in view of the above points, and it is an object of the present invention to provide a printing control device that can achieve each of the above functions even when using a dot type printing device. The purpose of this invention is to perform proportional printing for each character, and to solve the problem of print misalignment occurring when each line is treated as a unit of processing in the case of continuous vertical lines spanning a plurality of lines. (D) Structure of the Invention The present invention provides a text memory that stores a document including vertical lines, a line buffer that reads and retains information in the text memory, and a system that stores the vertical lines in a line read into the line buffer. position management storage means for searching character positions from the beginning and storing the positions;
A pattern and width storage means that stores the dot width in the horizontal or vertical direction of a dot matrix whose dot matrix size varies depending on the type of character/symbol, etc., an image buffer that stores the dot pattern for one line to be printed, Start dot position creation means for creating a start position for writing into the image buffer; start dot position storage means for storing the start position for writing each dot pattern into the image buffer created by the start dot position creation means; a basic dot position storage unit storing basic start dot positions; a vertical check line determining means for determining whether the document read from the line buffer is a vertical check line; and the start dot position storage unit. pattern image creation means for creating a dot pattern read from the pattern and width storage means in the image buffer based on the start position stored in the pattern image buffer; and a current dot for storing the start dot position of the immediately preceding pattern and the width of the pattern. position storage means, a start position selection section for selectively outputting the output of the basic dot position storage section or the current dot position storage means; The selection section selects the output of the basic dot position storage section based on the position of the vertical check line of the position management means, activates the start dot position creation means based on the basic dot position, and performs the vertical check line judgment. When the means determines that the dot is a character or symbol, the start position selection section selects the output of the current dot position storage means and activates the start dot position creation means. (E) Embodiment First, before explaining the embodiment, a proportional printing method when using a dot printing device and the above-mentioned processes (i) to (v) based on this method will be briefly explained. (a) Proportional printing method Currently, printing control devices for outputting using dot-type printing devices have a font pattern in which each character is represented by, for example, 24 x 24 dots or 32 x 32 dots. Each character is printed out by outputting it to a printing device. However, if each character is made to have a common matrix size in this way, the actual spacing l1, l2 between characters will be different as shown in FIG. 6, so that proportional printing will not be possible. This is the character width W1, W
This is because characters with different W3 values are made into dot matrices of the same size. Note that m and n in FIG. 6 are dot matrix sizes. In view of this point, the present inventor decided to define the matrix size in the width direction as a font pattern for proportional printing according to the substantial character width. Specifically, as shown in FIG.
The font pattern includes blank dot areas labeled 1 and L2. Therefore, the dot matrix size of the font pattern of the letter "I" is m×(L1+W1+L2). Similarly, the letter "A" has a font pattern of m×(L1+W2+L2), and the letter "M" has a dot matrix size of m×(L1+W3+L2). Furthermore, the above L1,
L2 is fixed. Next, a schematic process for converting the font pattern configured in this way into an actual printing form will be explained using FIG. 8. Specifically, a case will be described in which the character string "ABC" displayed on the CRT screen 6 is to be printed as shown in FIG. 9, for example. The widths of the font patterns of the characters "A", "B", and "C" are "18", "19", and "17", respectively. In FIG. 8, numeral 10 is an image buffer, in which a print image for one line is stored as a dot pattern. In other words, the character string "ABC" is located at the beginning of the line, and the widths are "18", "19", and "17", so the font pattern of the character "A" is the 0th one of the image buffer 10. The font pattern for the letter “B” is from the 18th dot row to the 36th dot row, and the font pattern for the letter “C” is from the 37th dot row to the 54th dot row.
They will be written in respective dot rows. To write a font pattern to the image buffer 10, first, the font table 11 stores the font pattern of each character and its width.
The width of each of the characters "A", "B", and "C" is read out sequentially, the writing start position of each character to the image buffer 10 is determined based on the width value, and the position is set in the start dot table. This can be done by first writing in the corresponding area of dot table 12, and then storing the font pattern read from font table 11 based on the contents of dot table 12 in image buffer 10. As described above, proportional printing can be done by simply setting the font pattern width of each character appropriately, but for characters that are continuous over multiple lines, such as vertical lines, for example, the writing start position (hereinafter referred to as When determining the start dot position (referred to as the start dot position), a deviation may occur during printing. Therefore, as a method to prevent this, the start dot position of a vertical dot or the like may be defined by the character position (hereinafter referred to as column position) from the beginning of the line in which the dot is located. In addition to vertical lines, there are format marks that divide one line into processing units as continuous marks that span multiple lines. (b) Right alignment processing As shown in Figure 10A, in proportional printing, if the last character of a line is located within the print area by m dots from the right margin, the above m dots are aligned with the characters of that line. Allocate to the space that exists between. This distribution method is to calculate the quotient A and the remainder B from m/n, where the number of spaces above is n, distribute the quotient A to each of the above spaces, and distribute 1 each to B spaces in order from the first space of the line. Sort out the dots one by one. Specifically, for example, as shown in FIG. 10B, n=
2. If there is a line such as m=3, the quotient of m/n A=
1, the remainder B=1, so the leading space is 21
Two dots will be distributed to the space 22, and one dot will be distributed to the second space 22. Therefore, if the width of the space is, for example, "18" during proportional printing, the widths of the first and second spaces 21 and 22 become "20" and "19", respectively, by such right alignment processing. At this time, as the width of each space changes, the start dot position of each character also changes, but this can be done by changing the contents of the start dot table 12 in accordance with the amount of change in the space width. (c) Right 1/2 alignment process This process is basically the same as the right alignment process described above, so a description thereof will be omitted. (d) Right-justification processing This processing is performed by simply proportional printing as shown in Fig. 11, for example, when there is a difference of m dots between the rightmost character of the character string "ABC" for which right-justification is requested and the right margin position. This can be done by shifting the start dot position of each character to the right by m dots. To change the start dot position, simply add +m to the start dot position information of each character in the start dot table 12. (e) Centering process Such a process is performed when a line containing the character string "ABC" to be centered is simply printed according to the predetermined font pattern width of each character, as shown in FIG. 12, for example. According to the start dot position A of the first character "A" of the above character string, the start dot position X of this line, the final dot position B of the last character "C" of the above character string, and the right margin position Y, (X+Y-A -B)/2 is calculated, and the start dot position of each character of the character string "ABC" is changed by the calculated result. When a fraction below the decimal point occurs in this calculation, rounding is performed. Note that such a position change only changes the contents of the start dot table 12. (f) End-of-line processing Such processing is performed, for example, as shown in Figure 13, when each character is printed in accordance with a predetermined font pattern width and the character is printed beyond the right margin position. The width of the font pattern is decreased one dot at a time. Specifically, each start dot position information in the start dot table 12 is changed according to its column position n, that is, (n-
1) each of the above information is decreased by 1). Although each of the above processes has been explained on a line-by-line basis, it is also possible to perform the above-mentioned processes on a block-by-block basis using format marks such as vertical lines and indent marks, as shown in FIG. 14, for example. In the following embodiments, an apparatus that processes blocks will be described. FIG. 15 shows the overall configuration of the device of this embodiment,
Reference numeral 100 denotes a control section composed of, for example, a microcomputer, and the control section outputs control signals C1 to C8 in accordance with a processing program to control each means described below. Reference numeral 201 denotes a text management means, which includes a text memory 202 in which characters, symbols, etc. constituting a document etc. are stored as codes such as JIS, ASCII, etc.;
A row buffer 203 reads and holds one line of code in the memory, searches for the column position of a format mark in one line read into the row buffer 203, and stores the position in the format mark column position storage unit 10.
Format mark column position management unit 20 to be stored in 1
Consists of 4. 300 is a row management means, and this means is composed of the following parts. "Reading column position management unit 301"... has a column counter indicating the read position in the row buffer 203, and the contents of the counter are a column position signal.
Output as CP. Further, such a counter is reset by a reset signal R1 from the control section 100, and its contents are incremented by 1 by a count-up signal UPI. “Reading unit 302” reads out the code CC from the row buffer 203 based on the column position signal CP from the read column position management unit 301 and outputs it. "Centering mark determination unit 303"... determines whether the code CC read out from the reading unit 302 is a centering mark, and if it is a centering mark, the centering information storage unit 30
Search within 4. As shown in FIG. 16, the storage section 304 has first and second storage areas 305 and 306, in which centering mark presence/absence information is set in the first storage area 305, and in the second storage area 3.
Column information in which the centering mark is located is set in 06. Here, when information with a centering mark is set in the first storage area 305 by the above search, the centering processing means 400 executes the centering process described above, and then the current column is stored in the second storage area 306. Set position signal CP. Also, the first storage area 3
When the centering mark presence information is not set in 05, the centering mark presence information is set in the area 305 and the current contents of the column counter are set in the second storage area 306. "Right-aligned mark determination unit 307"...Determines whether the code CC input via the centering mark determination unit 303 is a right-aligned mark,
When the mark is a right-justification mark, a column position signal CP is set in the right-justification start position area 309 of the processing information storage unit 308, the specific configuration of which is shown in FIG. information is set. Note that the processing information storage unit 308 stores right alignment processing, right 1/2 alignment processing, or left alignment processing (right alignment,
There is an alignment processing area 311 in which information on which processing to perform (processing that does not perform left alignment) is set. Further, information is set in the area 311 by the control unit 1 based on input from an input means (not shown).
00 will do it. "Character determination section 312"...The above-mentioned right-justification determination section 3
It is determined whether the code CC sent through 07 is a character code (a code excluding formatting marks, centering marks, right-justification marks, and spaces), and if it is determined to be a character code in such a determination, the end is A column position signal CP is set in the character column position storage section 313. Further, as shown in FIG. 18, the start character information area 315 in the start character column position storage section 314 is searched, and when the content of the area 315 is "0", the column position signal CP is stored in the start character position area 316. "1" is set in the start character information area 315. Further, when the code CC is a character code, "1" is output as the determination result CCS. "Start dot position creation means 500"...Code CC sent via the character determination section 312,
The above-mentioned start dot table is created based on the result CCS and column position signal CP.
The specific configuration and operation will be described later. "Space determination unit 317"...Code sent via the start dot position creation means 500
It is determined whether CC is a space code or not, and when it is a space code, its position information is set in the space column storage section 318 based on the column position signal CP. Specifically, the space column storage unit 318 has a corresponding area for each bit for each column position as shown in FIG. , "1" is set in the area corresponding to the sixth column position, and "0" is set in the other areas. "Format mark determination unit 319"...Determines whether the code CC sent via the space determination unit 317 is a format mark, and transmits the determination result to the control unit 1.
00 as signal MD. Formatting marks include left and right margins (", "" in Figure 14) that define one line (hereinafter referred to as line definition marks), indent marks that divide one line into blocks, vertical lines, etc. (hereinafter referred to as blocks). (referred to as a regulation mark), and such differences are also output as the above determination results. Reference numeral 102 denotes a basic dot position storage section, and as described above, this storage section stores characters, symbols, etc. located at column positions according to column positions in order to prevent misalignment when printing vertical lines, etc. The basic start dot position is stored. In this example, characters
The average font pattern width of symbols, etc. is set to "18" and is stored as shown in FIG. Reference numeral 103 is a start dot position storage section, which constitutes the start dot table described above. Reference numeral 104 denotes a font management section, which includes a width storage section 105 in which a font pattern width is stored and a pattern storage section 1 in which a font pattern is stored.
06. 600 is a right-justification processing means, 700 is a right-alignment processing means, 800 is a right 1/2 processing means, and 900 is a line end correction means, and each of the processing means performs the above-mentioned right-justification processing, right alignment processing, right 1/2 processing means. 2Perform alignment processing and line end correction processing. Reference numeral 100 denotes a pattern image creation means, which creates the image buffer described above. Reference numeral 1100 denotes a zone check means, which checks the margin dot m in FIG. 10A when performing right alignment processing and right 1/2 alignment processing.
This is to determine whether or not the value exceeds a certain value. That is, this is to prevent the above-mentioned m from being too large, the number of dots distributed to each character space becomes large, and the character space becomes wide, which becomes aesthetically undesirable. FIG. 21 is a flowchart showing the processing program of the control section 100, and its operation will be specifically explained based on this flowchart. First, in step S1, first initial settings are performed. Specifically, the counter value in the read column position management section 301 is set to "0" based on the reset signal R1.
At the same time, the format mark column position storage section 101, start dot position storage section 102, space column storage section 318, etc. are cleared by a reset signal from the control section 100 (not shown). In step S2, one line of code to be processed below is transferred from the text memory 202 to the line buffer 20.
3. Specifically, such an operation is executed by applying a control signal C1 to the text management means 201. Further, in step S3, the means 201 searches the format mark column position management unit 204 for the format mark position in the row buffer 203, and sets the position information in the format mark column position storage unit 101. In step S4, second initial settings are performed. Specifically, centering information storage section 304, processing information storage section 308, end character column position storage section 3
13. The start character storage unit 314 etc. are controlled by the control unit 10.
It is cleared based on a reset signal (not shown) from 0. In step S5, the read column position management section 30
Add 1 to the contents of the column counter in 1. Specifically, the count-up signal from the control unit 100
Executed based on UP1. The contents of such a column counter are output as a column position signal CP,
Based on the signal CP, in step S6, the reading section 202 outputs one code in the row buffer 203 located at the column position corresponding to the signal CP as a read code CC. In step S7, the centering mark determining section 303 determines whether or not the code CC is a centering mark. If it is a centering mark, the process proceeds to step S8; otherwise, the process proceeds to step S12. In step S8, the centering information storage section 3
The first storage area 305 in 04 is searched and its contents are determined in step S9. That is, if the centering mark "presence" information is set in the first storage area 305, the process advances to step S10, where the centering processing means 400 executes centering processing. If the centering information has not been set, the process advances to step S11 and the centering information is set. Specifically, centering "presence" information is set in the first storage area 305, and a column position signal CP is set in the second storage area 306. When the processing of steps S10 and S11 is completed, the processing proceeds to step S12. In addition, the above S8~
The processing in step S12 is performed by the centering determination unit 30.
3. In step S12, it is determined whether or not the code CC is a right-justified mark. If it is a right-justified mark, the process proceeds to step S13, and if not, the process proceeds to step S14. In step S13, right-justification information is set in the processing information storage section 308. Specifically, a column position signal CP is set in the right-justification start position area 309 in the storage unit 308, and information indicating that right-justification processing is "present" is set in the right-justification processing area 310. Furthermore, S1
The processing of steps 2 and 13 is executed by the right-justification determination unit 307. In step S14, it is determined whether or not the code CC is a character code. If it is a character code, the process executes steps S15 and 16 and proceeds to step S17; otherwise, the process proceeds directly to step S17. In this step, the character code is a code representing alphanumeric characters, numbers, etc., excluding format marks, centering marks, right-justification marks, spaces, etc. In step S15, start character column position information is set in the start character column position storage section 314. Specifically, when the content of the start character information area 315 of the storage section 314 is "0", "1" is set in the area 315, the column position signal CP is set in the start character position area 316,
Further, when the content of the area 316 is "1", no processing is performed on the storage section 314 and the process advances to step S16. In step S16, the end character column position is stored in the end character column position storage section 313.
Set to . Specifically, the column position signal CP is set in the storage section 313. Note that S14 to S1
The six-step process is executed in the character determination section 312. In step S17, the start dot position creation means 500 creates the start dot table 12 described above based on the code CC and column position signal CP. In step S18, it is determined whether or not the code CC is a space code. If it is determined that it is a space code, in step S19, the column position signal CP in the start column storage section 318 is
Set "1" in the area corresponding to . Furthermore, S1
The processing of steps 8 and 19 is performed by the space determination unit 317.
is executed. In step S20, the format mark determination unit 319 determines whether the code CC is a format mark, and if it is a format mark, whether it is a line regulation mark or a block regulation mark, and outputs the result as a signal.
It is output to the control unit 100 as MD. Specifically, the signal MD is output as a 2-bit digital signal, and each of these 2-bit signals has a meaning as shown in the table below.
【表】
S21,22ステツプでは上記書式マーク判定
部319からの信号MDによりコードCCが書式
マークでありかつ左マージンでないかを判定し、
書式マークではないとき及び左マージンであると
きにはS5ステツプに戻り、また書式マークであ
りかつ左マージンではないときには処理はS23
ステツプに進む。
S23ステツプではスタート文字カラム位置記
憶部314のスタート文字情報領域315を検索
し現在処理しようとしているブロツクに文字があ
るか否かを判定する。即ち上記領域315に
“1”がセツトされている場合当然斯るブロツク
中に文字があるものとしてS24ステツプに処理
は進み、また“0”がセツトされている場合には
文字がないものとみなし処理はS32ステツプに
進む。
S24ステツプでは既述した行末処理を行な
う。具体的には制御部100からの制御信号C6
に基づいて行末処理手段900において実行され
る。斯る処理が終了するとS25ステツプに処理
は進む。
S25〜S31ステツプでは右づめ処理、右揃
え処理、右1/2揃え処理のうちいずれを行なうか
が判定され、各処理が実行されることとなる。
具体的にはS25ステツプにおいて処理情報記
憶部308を読出し、右づめ処理領域310に右
づめ処理“有”の情報が格納されていると判定さ
れるとS29ステツプにおいて制御信号C3に基
づき右づめ処理手段600が右づめ処理を実行す
る。またS26ステツプでは制御信号C8に基づ
いてゾーンチエツク手段1100で既述したゾー
ンチエツクを行ない、そのチエツク結果XCに基
づいて右揃え及び右1/2揃えが可能か否かを判定
する。ここに不可能と判定されると処理はS32
ステツプに進み、また可能と判定されるとS2
7,28ステツプにおいて処理情報記憶部308
の揃え処理領域311を検索し、この検索結果に
基づいてS30ステツプの右揃え処理を行なう
か、S31ステツプの右1/2揃え処理を行なうか
もしくは何もしないかを判定し夫々S30,3
1,32ステツプの何れかに処理を進める。尚、
S29〜31ステツプが終了すると処理はS32
ステツプに進む。またS30,31ステツプの各
処理は制御信号C4もしくはC5に基づいて夫々
右揃え処理手段700もしくは右1/2揃え処理手
段800において実行される。
S32ステツプでは現在処理したブロツクの最
後がブロツク規定マークであるか否かが判定され
ブロツク規定マークであるときには処理はS4ス
テツプに戻り、またブロツク規定マークでないと
き即ち、右マージンである時には処理はS33ス
テツプに進む。尚上記判定は書式マーク判定部3
19から出力される判定結果信号MDに基づいて
なされる。
S33ステツプでは既述した一行分のパターン
イメージを作成する。具体的には制御信号C7に
基づいてパターンイメージ作成手段1000でな
される。斯る処理が終了すると処理はS1ステツ
プに戻る。
斯る第21図のフローチヤートによる処理動作
はS5〜S22ステツプからなるループにおいて
ブロツク単位で必要とあらばセンタリング処理を
施しながらスタートドツトテーブル12を作成す
ると共にブロツクの終了を検知(S21,22ス
テツプで判定)するとS23〜S31ステツプを
実行してブロツク単位で右づめ、右揃え、右1/2
揃え等の処理を行ない各文字のスタートドツト位
置の修正を行なう。従つて一行中に複数のブロツ
クが存在する際にはS4〜S32ステツプからな
るループを実行し、ブロツク単位で各処理を行な
うこととなる。更に一行中の各ブロツクの処理が
終了するとS33ステツプでパターンイメージを
作成し、その後再びS1ステツプに戻り、次の行
を処理する。
次にセンタリング処理手段400、スタートド
ツト位置作成手段500等の各手段の構成及び動
作について説明する。
第22図は、センタリング処理手段400の構
成を示し、401は例えばマイクロコンピユータ
からなるセンタリング処理制御部であり、制御信
号C10〜C14により以下の各部の制御を司
る。尚、以下の説明で[ ]中の数値は第23図
の模式図の場合の数値を示す。
「ブロツク位置検索部402」……現在読み出
されているカラム位置CPの最も近い前後の書式
マークのカラム位置を検索する。具体的には制御
信号C10の入力によりカラム位置信号CPに基
づいて書式マークカラム位置記憶部101を検索
し上記カラム位置CPA[10]、CPB[18]を検索し
出力する。
「ブロツクドツト検索部403」……上記ブロ
ツク位置検索部402から送られてくる上記カラ
ム位置CPA,CPBに基づいて基本ドツト位置記
憶部103を検索し、カラム位置CPA+1[11]、
CPB[18]に夫々対応したスタートドツト位置
[198]、[324]を読み出し、ブロツクドツト位置
記憶部404のスタート領域405及びエンド領
域406に格納する。即ち第23図に示す如く現
在のカラム位置信号CPが右方のセンタリングマ
ーク“□C”の位置するカラムを指示しているとす
ると上記スタート領域405及びエンド領域40
6には夫々左方に位置するインデントマーク
“◇”の次のカラムに位置するスペース“〓”の
スタートドツト位置[198]及び右方に位置する
インデントマーク“◇”のスタートドツト位置
[324]が格納される。
「処理ドツト位置検索部407」……センタリ
ング処理が施されるべき文字列の先頭の文字のス
タートドツト位置を検索する。具体的には制御信
号C11に基づいてセンタリング情報記憶部30
4の第2記憶領域306内のデータつまり例えば
第23図では左方に位置するセンタリングマーク
“□C”のカラム位置[12]を読み出し、斯るカラ
ム位置データに基づいてスタートドツトマークが
位置記憶部103{(上記センタリングマークが
位置するカラム位置)+1}のカラム位置[13]
即ち第23図では文字“a”のスタートドツト位
置情報[234]を読み出し文字スタートドツト記
憶部408に格納する。
「第1演算部409」……センタリング処理後
の各文字のスタートドツト位置と予め定められた
フオントパターン幅により得られるスタートドツ
ト位置との差を計算する。即ちスタートドツト位
置の修正ドツト数を計算する。具体的には制御信
号C12に基づいて以下の演算を行ないその演算
結果d1を出力する。
d1={Y−X−(B−A)}×1/2+X−A
=1/2(X−Y−A−B)=[8]
尚、X……ブロツクドツト位置記憶部402の
スタート領域405に格納された値
[198]
Y……ブロツクドツト位置記憶部404の
エンド領域406に格納された値
[324]
A……文字スタートドツト記憶部408に
格納された値[234]
B……後述する文字最終ドツト位置記憶部
内に格納された値であり、具体的に
は例えば第23図においては文字
“b”の(スタートドツト位置
[252]+フオントパターン幅[20]
の[272]である。
「第2演算部410」……センタリング処理前
のブロツクスタート位置[198]とセンタリング
処理が施される文字列の先頭文字のスタートドツ
ト位置[234]とのドツト差を計算する。具体的
には制御信号C12に基づいて以下の演算を行な
いその演算結果d2を出力する。
d2=X−A=[−36]
「判定部411」……制御信号C13に基づき
上記第1、第2演算部409,410からの出力
d1,d2を比較し、その結果Zをセンタリング処理
制御部401に出力する。上記比較はまずd1<0
であるか否かを判定し、負であるときには更に|
d1|>|d2|か否かを判定し、その結果d1<0、
でかつ|d1|>|d2|のときには結果Zとして
“1”を出力し、それ以外の時は“0”を出力す
る。
「スタートドツト位置変更部412」……セン
タリング処理が施される文字列の各文字のスター
トドツト位置を変更するものであり、具体的には
制御信号C14に基づきセンタリング情報記憶部
304内の第2記憶領域306の内容CCP[12]、
エンド文字カラム位置記憶部313の内容ECP
[15]及び第1演算部409の結果d1[8]を読み
出し、スタートドツト位置記憶部103内の
CCP+1[13]乃至ECP[15]の夫々のカラム位
置の情報にd1を加算する。
次に上記センタリング処理手段400の動作を
第23図の模式図について第24図のフローチヤ
ートに基づいて説明する。
まず、S101ステツプでは行末補正を行な
う。具体的にはセンタリング処理制御部401か
らの制御信号C15に基づいて行末補正手段90
0により実行される。
S102,103ステツプでは既述した如く制
御信号C10及びC11に基づいてブロツクドツ
ト位置記憶部404のスタート、エンド領域40
5,406に[198][324]をセツトし、文字ス
タートドツト記憶部408に所定の値[234]を
セツトする。
S104ステツプでは制御信号C12に基づい
て第1、第2演算部409,410において既述
した演算が行なわれ演算結果d1,d2はそれぞれ
[8][−36]となる。また斯る両演算部409,
410における演算結果d1,d2はS105ステツ
プで制御信号C13により判定部411において
既述した判定が行われ、その結果Z[0]は制御
部401に出力される。
S106ステツプでは上記結果信号Zが“1”
であるか否かを判定し、“1”のときには処理は
S108ステツプに進み、“1”でないときには
処理はS107ステツプに進む。
S107ステツプでは、スタートドツト位置の
変更を行なう。斯る処理は既述した如く制御信号
C14に基づいてスタートドツト位置変更部41
2において実行される。
S108ステツプでは、スタート文字位置記憶
部314をリセツトする。具体的には制御部40
1よりリセツト信号R2を上記記憶部314に与
え、斯る記憶部314内をクリアする。
上記処理はS101〜S104ステツプにおい
てセンタリング処理により修正されるスタートド
ツト位置の修正値d1が求められ、S105,10
6ステツプにおいて斯る修正値d1に基づいてスタ
ートドツト位置の修正が行なわれた際にセンタリ
ング処理が施される文字列の先頭が斯る文字列の
あるブロツクのスタートを規定する書式マークを
越えないか否かを判定し、越えないときにはS1
07ステツプを実行しS108ステツプに進む。
斯るS108ステツプは後述するが、斯るブロツ
クにおいて右揃え処理等の要求がなされたときに
斯るセンタリング処理が施された文字列に対して
は他の処理がなされないようにするためのもであ
る。
第25図は行末補正手段900を示し、901
は例えばマイクロコンピユータからなる行末補正
制御部であり、該制御部901は制御信号C6も
しくはC15が入力されると、処理プログラムに
従つて制御信号C21乃至C25を出力すること
により以下の各部の制御を司る。尚、以下の説明
で[ ]内の数値は第29図“a”模式図の場合
の数値を示す。
「ブロツクエンドカラム位置検索部902」…
…現在処理されているカラム処理以降に存在しか
つ斯るカラム位置に最も近い書式マークのカラム
位置を検索し出力する。具体的には制御信号C2
1の入力により、カラム位置信号CPを読み取る
と共に斯る信号CPに基づいて書式マークカラム
位置記憶部101を検索し、上記書式マークカラ
ム位置ECP[23]を読み出し出力する。
「基本ドツト位置読出部903」……上記ブロ
ツクエンドカラム位置検索部902から送られて
くるカラム位置ECPに基づいて斯るカラム位置
に対応した基本的なスタートドツト位置BSDP
[315]を基本ドツト位置記憶部102より求め出
力する。尚、斯る処理は制御信号C22が入力さ
れたときなされる。
「減算部904」……制御信号C23が入力さ
れることにより、上記基本ドツト位置読出部90
3より出力されるスタートドツト位置BSDP
[315]及び後述する文字最終ドツト位置記憶部の
内容CEDP[316]を読み出し、“CEDP−BSDP”
を求めその結果SZ[1]を出力する。
「判定部905」……制御信号C24に基づい
て上記結果SZが“SZ≧0”か“SZ<0”かを判
定し、“SZ≦0”ならば“1”を、また“SZ>
0”ならば“0”を夫々判定結果Z1として制御
部901に出力する。
「ドツト削除手段950」……スタートドツト
記憶部103内の各カラム位置nに対応する位置
情報を(n−1)ずつ減少せしめるものであり、
制御信号C25に基づいて上記処理を行なう。
第26図は斯るドツト削除手段950の具体的
構成を示し、951は例えばマイクロコンピユー
タからなるドツト削除制御部であり、制御信号C
25が入力されることにより処理プログラムに従
つて制御信号C30〜C35を出力し以下の各部
の制御を司る。
「処理スタート位置検索部952」……現在の
カラム位置CPより前に位置する書式マーク、セ
ンタリングマーク、右づめマークのうち最も上記
カラム位置CPに近いマークのカラム位置[17]
を検索し出力する。具体的には制御信号C31が
入力されるとカラム位置信号CPを読取り、斯る
信号CPに基づいて書式マークカラム位置記憶部
101、センタリング位置記憶部304及び処理
情報記憶部308を検索することにより上記条件
に合うカラム位置[17]を求め処理範囲記憶部9
53のスタート領域954に上記カラム位置をセ
ツトする。また斯る記憶部953のエンド領域9
55にはカラム位置信号CP[23]がセツトされ
る。
「カラムカウンタ956」……制御信号C32
に基づいて処理範囲記憶部953のスタート領域
954の内容を読み込み保持すると共にカウント
アツプ信号UP2に基づいてその保持内容CDを+
1する。
「被減算カウンタ957」……リセツト信号R
2によりクリアされると共にカウントアツプ信号
UP3によりその内容SDが+1される。
「第1判定部958」……制御信号C33に基
づいてカラムカウンタ956の内容CD及びエン
ド領域955の内容ECを読出し“CD=EC”を
判定し、“CD=EC”のときには判定結果Z2とし
て“1”を、また“CD≠EC”のときには“0”
を制御部951に出力する。
「ドツト減算部959」……制御信号C34に
基づいてカラムカウンタ956の内容CDに対応
したスタートドツト位置記憶部103内のカラム
位置に格納された情報をSDだけ減算し再びカラ
ム位置にセツトする。
「第2判定部960」……制御信号C34に基
づいてエンド文字カラム位置記憶部313の内容
ECC[22]とカラムカウンタ956の内容CDとを
比較し一致したとき文字最終ドツト減算部961
に一致信号Qを出力する。
「文字最終ドツト減算部961」……上記信号
Qが入力されることにより、後出する文字最終ド
ツト位置記憶部507の内容を読出し、上記SD
を減算し、再びその減算結果を上記記憶部にセツ
トする。尚上記文字最終ドツト位置記憶部はブロ
ツク中の最後方に位置する文字の最終ドツト位置
[312]が格納されている。
第27図は第26図のドツト削除手段950の
動作を示すフローチヤートである。
まずS201ステツプでは、制御信号C31に
基づいて処理スタート位置検索部952により処
理スタート位置[17]が処理範囲記憶部953の
スタート領域954にセツトされると共にエンド
領域955にカラム位置信号CP[23]がセツトさ
れる。
S202ステツプでは、制御信号C32に基づ
いてスタート領域954の内容がカラムカウンタ
956にセツトされ、次いでS203ステツプに
おいて上記カウンタ956の内容がカウントアツ
プ信号UP2によりプラス1され[18]とし、18
カラム目より処理を行う。
S204ステツプではリセツト信号R2により
被減算カウンタ957がクリアされると共にS2
05,206ステツプにおいて被減算カウンタ9
57及びカラムカウンタ956の内容がプラス1
されそれぞれ[1][19]となる。
S207ステツプでは第1の判定が行なわれ
る。具体的には制御信号C33に基づいて第1判
定部958で既述した処理が実行され、その結果
Z2はS208ステツプにおいて“0”か否かが
制御部951内で比較される。
斯る比較において“Z2=0”であると処理は
S209ステツプに進み、“Z2=1”であると処
理は終了する。今の場合CD=[19]、EC=[23]
でCD≠ECであり、Z2=0であるので処理を続け
る。
S209ステツプでは制御信号C34に基づい
てドツト減算部959で既述した減算処理が実行
される。今の場合第29図bの如く新しいスター
トドツト位置が計算される。
S210ステツプでは第2の判定が行なわれ
る。具体的には制御信号C34に基づいて第2判
定部960で記述した処理が実行される。斯る処
理において第2判定部960より一致信号Qが出
力されると処理はS211ステツプよりS212
ステツプに進み、信号Qが出力されないときには
処理はS205ステツプに戻る。
S212ステツプでは、文字最終ドツト記憶部
の内容を減算処理する。斯る処理は既述した如く
文字最終ドツト減算部961において実行され
る。斯る処理が終了すると処理はS205ステツ
プに戻る。
即ち、S201〜S204ステツプでドツト削
除が行なわれるべきカラム位置範囲を決定すると
共にカラムカウンタ956及び被減算カウンタ9
57を初期化する。次いでS205〜S212ス
テツプからなるループにおいて上記範囲内のスタ
ートドツト位置を順次変更し、斯る変更処理が終
了するとS208ステツプにおいてルーブを抜け
る。
第28図は第25図の行末補正手段900の動
作を示すフローチヤートであり、第29図aを例
にとり説明する。
まずS301ステツプでは、制御信号C21を
出力することによりブロツクエンドカラム位置検
索部902で既述した条件に適合するカラム位置
ECP[23]を検索する。
次いでS302ステツプにおいて、上記カラム
位置ECPに対応した基本ドツト位置BSDP[315]
を検索する。斯る検索は制御信号C22に基づい
て基本ドツト位置読出部903で実行される。
S303ステツプでは制御信号C23により減
算部904において既述した演算CEDP−BSDP
を行なう。
S304ステツプでは制御信号C24により判
定部905においてなされた判定結果Z1に基づ
き制御部901において次に実行されるべきステ
ツプを選択する。即ち“Z1=0”のときはS3
05ステツプに処理は進み、“Z1=1”のときは
処理は終了する。今の場合Z1=0でS305ス
テツプへ移行する。
S305ステツプでは既述した如く第27図の
フローチヤートに基づいてドツト削減処理が実行
される。
第30図はスタートドツト位置作成手段500
の具体的構成を示し、501は例えばマイクロコ
ンピユータよりなるスタートドツト位置作成制御
部であり、該制御部は処理プログラムに従つて制
御信号C41〜C46を出力し以下の各部の制御
を司る。
「コード判定部502」……上記制御部501
より送られてきたコードCCが書式マークである
か否かを判定し、書式マークであると判定される
と、判定結果信号Z3として“1”を出力し、ま
たそうでないときには“0”を出力する。
「基本ドツト位置読出部503」……制御信号
C41が入力されるとカラム位置信号CPに基づ
いて基本的なスタートドツト位置BSDPを基本ド
ツト位置記憶部102より検索し出力する。
「幅読出部504」……制御部501よりコー
ドCCが送られてくると斯るコードCCに対応した
文字(書式マークを除き、センタリングマーク等
を含む)のフオントパターン幅FBをフオント管
理部104の幅記憶部105より読出し出力す
る。
「基本ドツト幅記憶部505」……斯る記憶部
内には書式マークのフオントパターン幅BBが格
納されている。
「ドツト幅選択部506」……例えばマルチプ
レクサからなり、制御信号C42が入力されると
信号Z3に基づいて幅読出部504からの出力FB
もしくは基本ドツト幅記憶部505内の内容BB
を選択的に出力する。即ち“Z3=1”(書式マー
ク)のときには基本幅BBを出力し、“Z3=0”
(文字)のときには文字幅FBを出力する。
「文字最終ドツト位置記憶部507」……現在
処理されているカラム位置CPより前のカラム位
置に位置しかつカラム位置CPに最も近いカラム
位置に格納されている文字の最終ドツト位置が格
納されている。具体的には(上記文字のスタート
ドツト位置+上記文字のフオントパターン幅−
1)の値が格納されている。
「カレントドツト位置記憶部508」……現在
処理されているカラム位置CPに対応するスター
トドツト位置記憶部103内の領域に格納される
可能性がある数値が格納されている。具体的には
(現在のカラム位置CPより一つ前に位置するパタ
ーンのスタートドツト位置+斯るパターンのフオ
ントパターン幅)の値が格納されている。尚上記
パターンとは書式マーク、センタリングマーク、
右づめマーク、スペース、文字及び記号等を全て
含む。
上記文字最終ドツト位置記憶部507及びカレ
ントドツト位置記憶部508に夫々格納されるべ
き値を第31図に基づいて更に具体的に説明す
る。
今第31図においてカラム位置信号CPは第11
カラムを指示しているものとすると、文字最終ド
ツト位置記憶部507には第8カラムに位置する
文字“m”のスタートドツト位置[125]に斯る
文字“m”のフオントパターン幅[24]を加えか
つその加算結果から1だけ減算された値[148]
が格納され、またカレントドツト位置記憶部50
8には第10カラムに位置するスペース“〓”のス
タートドツト位置[167]に斯るスペース“〓”
のフオントパターン幅[18]が加えられた値
[185]が格納されている。
「スタート位置選択部509」……制御信号C
43が入力されると信号Z3に基づいて基本ドツ
ト位置読出部503からの出力BSDPかもしくは
カレントドツト位置記憶部508内の内容
CURRのいずれかを選択的に出力する。具体的
には“Z3=1”のときBSDPを出力し、“Z3=
0”のときCURRを出力する。これは上記コー
ドCCが書式マークのとき既述した如く位置ズレ
を防止するためのものである。
「第1加算部510」……制御信号C44が入
力されるとフオント幅FBとカレントドツト位置
CURRとを加算し文字最終ドツト位置記憶部5
07内に格納する。
「第2加算部511」……制御信号C45が入
力されるとドツト幅選択部506の出力値とスタ
ート位置選択部509の出力値とを加算しカレン
トドツト位置記憶部508にその加算結果を格納
する。
「スタートドツト位置書込部512」……制御
信号C46が入力されるとカラム位置信号CPに
基づき斯る信号CPに対応したスタートドツト位
置記憶部103内の領域にスタート位置選択部5
09からの出力値をセツトする。
第32図は上記スタートドツト位置作成手段5
00の動作を示すフローチヤートであり、以下に
斯るフローチヤートに基づき上記手段500の動
作を第31図の模式図に従い説明する。
今、カラム位置CPが11でここに文字“N”が
入つているとすると(図示しない)、まずS40
1ステツプではコード判定を行なう。具体的には
制御部501よりコード判定部502にコード
CCが与えられることにより実行され、斯る判定
部502において既述した如くコードCCが書式
マークを表わすコードであるか否かが判定され
る。
S402ステツプでは上記S401ステツプで
得られた判定結果Z3に基づいて次に処理される
べきステツプが選択される。即ち、“Z3=0”
(文字コード)のときは処理はS403ステツプ
に、また“Z3=1”(書式マーク)のときは処理
はS404ステツプに夫々進む。今の場合、文字
コードであるのでステツプS403に移行する。
S403ステツプでは制御部501から幅読出
部504に文字“N”のコードCCを与えること
により斯る幅読出部504においてコードCCに
対応するフオントパターン幅FB[22]を読出す。
若し、11カラム目が“◇”であるとすると、S
404ステツプに移行しS404ステツプでは制
御信号C41に基づき基本ドツト位置読出部50
3において基本ドツト位置記憶部102内のカラ
ム位置CPに相当する基本的なスタートドツト位
置BSDP[180]を読み出す。
S403もしくはS404ステツプの処理が終
了するとS405ステツプが実行される。
S405ステツプでは制御信号C43に基づい
て、スタート位置選択部509でBSDP(◇の場
合[180])もしくはCURR(Nの場合[167+18
=185])が選択出力される。
S406ステツプでは制御信号C46をスター
トドツト位置書込部512に与えることにより斯
る書込部512において既述した如きスタート位
置選択部509からの出力をセツトする処理が実
行される。
S407ステツプでは制御信号C42をドツト
幅選択部506に与えることにより斯る選択部5
06において既述した処理が実行され文字“N”
の幅[22]が出力される。
次いで処理はS408ステツプに進み、斯るS
408ステツプでは第2の加算が行なわれる。具
体的には制御部501より制御信号C45を第2
加算部511に出力することにより斯る加算部5
11で既述した加算処理即ちスタートドツト位置
[185]とフオント幅[22]との加算処理を行ない
その結果[207]をカレントドツト位置記憶部5
08にセツトする。
S409ステツプでは文字判定部312から送
られてくる信号CCSに基づいて次に処理されるべ
きステツプを選択する。つまり“CCS=1”(文
字コード)のときには処理はS410ステツプに
進み、“CCS≠1”(書式マーク、センタリングマ
ーク、右づめマーク及びスペース)のときには処
理は終了する。
S410ステツプでは第1の加算が行われる。
具体的には制御部501より制御信号C44を第
1加算部510に出力することにより斯る加算部
510で既述した加算処理、即ちカレントドツト
位置[185]とフオント幅[22]との加算処理を
行ないその結果[207]を文字最終ドツト位置記
憶部507にセツトする。
従つてS401,402ステツプにおいてコー
ドCCが書式マークコードであるか否かが判定さ
れ斯る判定結果に基づいてS403もしくはS4
04ステツプが実行される。次いでS405,4
06ステツプにおいてスタートドツト位置記憶部
103内のカラム位置CPに相当する領域にCCS
もしくはBSDPがセツトされる。つまり“Z3=
1”のときにはBSDPが、“Z3≠1”のときには
CCSが夫々セツトされる。
その後S407,408ステツプにおいて次に
処理されるカラム位置のフオントのスタートドツ
ト位置となる可能性がある値がカレントドツト位
置記憶部508にセツトされ、またS409,4
10ステツプでは現在処理されているカラム位置
CPに文字がある場合にはその文字の最終ドツト
位置が格納されてる。
第33図は右づめ処理手段600の具体的な構
成を示し、601は例えばマイクロコンピユータ
で構成される右づめ処理制御部であり、処理プロ
グラムに基づいて制御信号C51〜C53を出力
することにより以下で説明する各部の制御を司
る。尚、以下の説明で[ ]内の数値は第35図
の模式図による。
「ブロツクドツト検索部602」……制御信号
C51が入力されるとカラム位置信号CPに対応
するスタートドツト位置記憶部103の領域に格
納された内容を読出し出力する。即ち斯る右づめ
処理が実行される際のカラム位置信号CPは第2
1図フローチヤートからも明らかな如く処理ブロ
ツク中の右端に位置する書式マーク位置[11]カ
ラム目)を指示しているので、上記出力値[180]
は斯る書式マークのスタートドツト位置となる。
「減算部603」……制御信号C52に基づい
てブロツクエンドドツト検索部602からの出力
値[180]から文字最終ドツト位置記憶部507
の内容[165]([9]カラム目のスタートドツト
位置+Mのフオント幅)を減算し、その結果S
[15](=[180]−[165])を減算結果記憶部605
にセツトする。即ち斯る結果Sは第11図中のm
に相当する。
「スタートドツト位置変更部604」……制御
信号C53が入力されると処理情報記憶部308
より右づめ開始位置領域309に格納された内容
つまり右づめマークが位置するカラム位置RMC
[7]及びエンド文字カラム位置記憶部313の
内容ECC[9]を読出し、(RMC+1)[8]から
ECC[9]までの各カラム位置に相当するスター
トドツト位置記憶部103内の各領域のデータに
対して上記S[15]を加算する。
第34図は上記右づめ処理手段600の動作を
示すフローチヤートである。
まずS501ステツプでは右端の書式マークの
スタートドツト位置[180]を検索する。具体的
には制御信号C51を出力することによりブロツ
クエンドドツト検索部602で行なわれる。
S502では第11図に示したmに相当する値
S[15]を求める。具体的には既述した如く制御
信号C52に基づいて減算部603で求められ
る。
S503ステツプではスタートドツト位置の変
更が行われる。具体的には既述した如く制御信号
C52を出力することによりスタートドツト位置
変更部604で実行される。
従つて上記S501〜503ステツプを順次実
行することにより右づめ処理は終了する。
(ヘ) 効果
本発明によれば、各文字に対しプロポーシヨナ
ル印字を行なうに際し、処理単位が行毎でない縦
ケイ線についても印字ズレを防止することがで
き、品質の高い印字が得られる。
また本発明は実施例に限定されるものではな
く、本発明の技術術思を逸脱しない程度の変更は
可能である。
更に本実施例では英文の処理について述べた
が、日本語特にカタカナ、平がなの如く文字幅が
異なる(拗音等)字種を含むものに応用すること
もできる。[Table] In steps S21 and 22, it is determined whether the code CC is a format mark and not a left margin based on the signal MD from the format mark determination unit 319, and
If it is not a format mark or the left margin, the process returns to step S5, and if it is a format mark and is not the left margin, the process returns to step S23.
Proceed to step. In step S23, the start character information area 315 of the start character column position storage section 314 is searched to determine whether or not there is a character in the block currently being processed. That is, if "1" is set in the area 315, it is assumed that there is a character in the block, and the process proceeds to step S24, and if "0" is set, it is assumed that there is no character. The process advances to step S32. In step S24, the line end processing described above is performed. Specifically, the control signal C6 from the control unit 100
The end-of-line processing means 900 executes this based on the following. When this process is completed, the process advances to step S25. In steps S25 to S31, it is determined which of the right-justifying process, the right-justifying process, and the right 1/2-aligning process is to be performed, and each process is executed. Specifically, in step S25, the processing information storage unit 308 is read out, and if it is determined that the right-justifying process "exist" information is stored in the right-justifying processing area 310, the right-justifying process is performed based on the control signal C3 in step S29. Means 600 performs right-justification processing. In step S26, the zone check means 1100 performs the zone check described above based on the control signal C8, and based on the check result XC, it is determined whether right alignment and right 1/2 alignment are possible. If it is determined that this is not possible, the process proceeds to S32.
Proceed to step, and if it is determined that it is possible again, proceed to step S2.
In steps 7 and 28, the processing information storage unit 308
Based on this search result, it is determined whether to perform the right alignment process in step S30, the right 1/2 alignment process in step S31, or do nothing.
The process proceeds to either step 1 or 32. still,
When steps S29 to S31 are completed, the process proceeds to S32.
Proceed to step. Further, each process of steps S30 and S31 is executed in the right alignment processing means 700 or the right 1/2 alignment processing means 800, respectively, based on the control signal C4 or C5. In step S32, it is determined whether or not the end of the currently processed block is a block regulation mark. If it is a block regulation mark, the process returns to step S4, and if it is not a block regulation mark, that is, if it is at the right margin, the process returns to S33. Proceed to step. The above judgment is made by the format mark judgment unit 3.
This is done based on the determination result signal MD output from 19. In step S33, the pattern image for one line described above is created. Specifically, this is done by the pattern image creation means 1000 based on the control signal C7. When this process is completed, the process returns to step S1. The processing operation according to the flowchart of FIG. 21 is performed in a loop consisting of steps S5 to S22, in which the start dot table 12 is created while performing centering processing if necessary for each block, and the end of the block is detected (steps S21 and S22). ) Then execute steps S23 to S31 to right-justify, right-align, right 1/2 in block units.
Processing such as alignment is performed to correct the start dot position of each character. Therefore, when a plurality of blocks exist in one line, a loop consisting of steps S4 to S32 is executed, and each process is performed on a block-by-block basis. Furthermore, when the processing of each block in one line is completed, a pattern image is created in step S33, and then the process returns to step S1 again to process the next line. Next, the configuration and operation of each means such as the centering processing means 400 and the start dot position creation means 500 will be explained. FIG. 22 shows the configuration of the centering processing means 400, and 401 is a centering processing control section composed of, for example, a microcomputer, which controls the following sections using control signals C10 to C14. In the following explanation, the numerical values in [ ] indicate the numerical values in the case of the schematic diagram of FIG. 23. "Block position search unit 402"... Searches for the column position of the format mark closest to the currently read column position CP. Specifically, by inputting the control signal C10, the format mark column position storage unit 101 is searched based on the column position signal CP, and the column positions CPA[10] and CPB[18] are searched and output. "Block dot search unit 403"... Searches the basic dot position storage unit 103 based on the column positions CPA and CPB sent from the block position search unit 402, and searches the column position CPA+1[11],
The start dot positions [198] and [324] corresponding to CPB [18] are read out and stored in the start area 405 and end area 406 of the block dot position storage section 404. That is, as shown in FIG. 23, if the current column position signal CP indicates the column where the right centering mark "□C" is located, the start area 405 and the end area 40
6 shows the start dot position of the space “〓” located in the column next to the indent mark “◇” located to the left [198] and the start dot position of the indent mark “◇” located to the right [324] is stored. "Processing dot position search unit 407": Searches for the start dot position of the first character of a character string to be subjected to centering processing. Specifically, the centering information storage unit 30
The data in the second storage area 306 of No. 4, for example, the column position [12] of the centering mark "□C" located on the left in FIG. Column position of section 103 {(column position where the above centering mark is located) +1} [13]
That is, in FIG. 23, the start dot position information [234] of the character "a" is read out and stored in the character start dot storage section 408. "First calculation unit 409"...Calculates the difference between the start dot position of each character after centering processing and the start dot position obtained from a predetermined font pattern width. That is, the number of corrected dots at the start dot position is calculated. Specifically, the following calculation is performed based on the control signal C12, and the calculation result d1 is output. d 1 = {Y-X-(B-A)} x 1/2 + X-A = 1/2 (X-Y-A-B) = [8] Note that X...Start area of block dot position storage section 402 405 [198] Y... Value stored in the end area 406 of the block dot position storage section 404 [324] A... Value stored in the character start dot storage section 408 [234] B... Described later This is the value stored in the character final dot position storage unit, and specifically, for example, in FIG.
[272]. "Second calculation unit 410"...Calculates the dot difference between the block start position [198] before the centering process and the start dot position [234] of the first character of the character string to be subjected to the centering process. Specifically, the following calculation is performed based on the control signal C12, and the calculation result d2 is output. d 2 =X-A=[-36] "Determination unit 411"...Output from the first and second calculation units 409 and 410 based on the control signal C13
d 1 and d 2 are compared, and the result Z is output to the centering processing control unit 401. First of all, the above comparison is d 1 <0
Determine whether or not, and if it is negative, further |
Determine whether d 1 |>|d 2 |, and as a result, d 1 <0,
When |d 1 | > |d 2 |, "1" is output as the result Z, and "0" is output otherwise. "Start dot position change unit 412"...This is for changing the start dot position of each character of the character string to be subjected to centering processing, and specifically, it changes the start dot position of each character in the character string to be subjected to centering processing. Contents of storage area 306 CCP[12],
Contents of end character column position storage section 313 ECP
[15] and the result d 1 [8] of the first arithmetic unit 409 are read out and stored in the start dot position storage unit 103.
Add d 1 to the column position information of each of CCP+1[13] to ECP[15]. Next, the operation of the centering processing means 400 will be explained with reference to the schematic diagram of FIG. 23 and the flowchart of FIG. 24. First, in step S101, line end correction is performed. Specifically, the end-of-line correction means 90 based on the control signal C15 from the centering processing control section 401
Executed by 0. In steps S102 and S103, the start and end areas 40 of the block dot position storage section 404 are set based on the control signals C10 and C11 as described above.
5,406 are set to [198][324], and a predetermined value [234] is set to the character start dot storage section 408. In step S104, the above-mentioned calculations are performed in the first and second calculation sections 409 and 410 based on the control signal C12, and the calculation results d 1 and d 2 become [8] and [-36], respectively. In addition, both such arithmetic units 409,
The calculation results d 1 and d 2 in step 410 are subjected to the above-described judgment in the judgment section 411 using the control signal C13 in step S105, and the result Z[0] is output to the control section 401. At step S106, the result signal Z becomes “1”.
If it is "1", the process proceeds to step S108, and if it is not "1", the process proceeds to step S107. In step S107, the start dot position is changed. Such processing is carried out by the start dot position changing section 41 based on the control signal C14 as described above.
2. In step S108, the start character position storage section 314 is reset. Specifically, the control unit 40
1, a reset signal R2 is applied to the storage section 314 to clear the inside of the storage section 314. In the above process, in steps S101 to S104, a correction value d1 of the start dot position corrected by the centering process is obtained, and in steps S105 and S10
When the start dot position is corrected based on the correction value d1 in step 6, the beginning of the string to be centered exceeds the format mark that defines the start of the block containing the string. It is determined whether or not the limit is exceeded, and if the
Step 07 is executed and the process advances to step S108.
This step S108 will be described later, but it is also used to prevent other processing from being performed on the character string that has been subjected to such centering processing when a request for right alignment processing, etc. is made in such a block. It is. FIG. 25 shows the line end correction means 900, 901
is an end-of-line correction control unit composed of, for example, a microcomputer. When the control unit 901 receives the control signal C6 or C15, it outputs the control signals C21 to C25 according to the processing program to control the following units. govern In the following explanation, the numerical values in parentheses indicate the numerical values in the case of the schematic diagram "a" in FIG. 29. “Block end column position search unit 902”…
...Search and output the column position of the format mark that exists after the currently processed column and is closest to the column position. Specifically, the control signal C2
1, the column position signal CP is read, the format mark column position storage section 101 is searched based on the signal CP, and the format mark column position ECP[23] is read out and output. "Basic dot position reading unit 903"... Based on the column position ECP sent from the block end column position search unit 902, reads the basic start dot position BSDP corresponding to the column position.
[315] is determined from the basic dot position storage unit 102 and output. Incidentally, such processing is performed when the control signal C22 is input. "Subtraction unit 904"... By inputting the control signal C23, the basic dot position reading unit 90
Start dot position BSDP output from 3
Read [315] and the content CEDP [316] of the character last dot position storage section, which will be described later, and write “CEDP-BSDP”.
and outputs the result SZ[1]. “Determination unit 905”... determines whether the above result SZ is “SZ≧0” or “SZ<0” based on the control signal C24, and if “SZ≦0”, it is “1”, and “SZ>
0”, “0” is outputted to the control unit 901 as the determination result Z1. “Dot deletion means 950”...The position information corresponding to each column position n in the start dot storage unit 103 is outputted as (n-1). It will gradually decrease,
The above processing is performed based on the control signal C25. FIG. 26 shows a specific configuration of such a dot deletion means 950, and 951 is a dot deletion control section composed of, for example, a microcomputer, and a control signal C
25, it outputs control signals C30 to C35 according to the processing program and controls the following sections. "Processing start position search unit 952"... Column position of the mark closest to the above column position CP among formatting marks, centering marks, and right-justification marks located before the current column position CP [17]
Search and output. Specifically, when the control signal C31 is input, the column position signal CP is read, and the format mark column position storage section 101, the centering position storage section 304, and the processing information storage section 308 are searched based on the signal CP. Find the column position [17] that meets the above conditions and process range storage unit 9
The column position is set in the start area 954 of 53. Also, the end area 9 of the storage section 953
A column position signal CP[23] is set in 55. "Column counter 956"...control signal C32
Based on this, the contents of the start area 954 of the processing range storage section 953 are read and held, and the held contents CD are ++ based on the count-up signal UP2.
Do 1. "Subtracted counter 957"...Reset signal R
Cleared by 2 and count up signal
The content SD is increased by 1 due to UP3. "First determination unit 958"...Reads the content CD of the column counter 956 and the content EC of the end area 955 based on the control signal C33, determines "CD=EC", and when "CD=EC", the determination result Z2 is determined. “1” or “0” when “CD≠EC”
is output to the control section 951. ``Dot subtraction unit 959''...Based on the control signal C34, subtracts the information stored in the column position in the start dot position storage unit 103 corresponding to the content CD of the column counter 956 by SD and sets it in the column position again. "Second determination section 960"... Contents of end character column position storage section 313 based on control signal C34
Compare ECC [22] and content CD of column counter 956, and when they match, character final dot subtraction unit 961
A match signal Q is output to "Character last dot subtraction unit 961"...When the above signal Q is input, it reads out the contents of the character last dot position storage unit 507 to be output later, and
is subtracted, and the subtraction result is set in the storage section again. The character final dot position storage section stores the final dot position [312] of the last character in the block. FIG. 27 is a flowchart showing the operation of the dot deletion means 950 of FIG. 26. First, in step S201, the processing start position search unit 952 sets the processing start position [17] in the start area 954 of the processing range storage unit 953 based on the control signal C31, and also sets the column position signal CP[23] in the end area 955. is set. In step S202, the contents of the start area 954 are set in the column counter 956 based on the control signal C32, and then in step S203, the contents of the counter 956 are incremented by 1 by the count-up signal UP2, making it 18.
Processing starts from the column. In step S204, the subtracted counter 957 is cleared by the reset signal R2, and
At step 05,206, subtracted counter 9
57 and the contents of column counter 956 are plus 1
and become [1] and [19] respectively. A first determination is made in step S207. Specifically, the process described above is executed in the first determination unit 958 based on the control signal C33, and the result is
Z2 is compared in the control unit 951 to see if it is "0" in step S208. In this comparison, if "Z2=0", the process proceeds to step S209, and if "Z2=1", the process ends. In this case CD = [19], EC = [23]
Since CD≠EC and Z2=0, processing continues. In step S209, the above-described subtraction process is executed in the dot subtraction section 959 based on the control signal C34. In this case, a new start dot position is calculated as shown in FIG. 29b. A second determination is made in step S210. Specifically, the process described by the second determination unit 960 is executed based on the control signal C34. In this process, when the second determination unit 960 outputs the coincidence signal Q, the process proceeds from step S211 to step S212.
The process advances to step S205, and when the signal Q is not output, the process returns to step S205. In step S212, the contents of the character last dot storage section are subtracted. Such processing is executed in the character final dot subtraction section 961 as described above. When this process is completed, the process returns to step S205. That is, in steps S201 to S204, the column position range in which dots should be deleted is determined, and the column counter 956 and the subtracted counter 9 are
57 is initialized. Next, in a loop consisting of steps S205 to S212, the start dot position within the above range is sequentially changed, and when the changing process is completed, the loop is exited in step S208. FIG. 28 is a flowchart showing the operation of the end-of-line correction means 900 of FIG. 25, and will be explained using FIG. 29a as an example. First, in step S301, by outputting the control signal C21, the block end column position search unit 902 searches for a column position that meets the conditions described above.
Search for ECP [23]. Next, in step S302, the basic dot position BSDP [315] corresponding to the column position ECP is determined.
Search for. Such a search is executed by the basic dot position reading section 903 based on the control signal C22. In step S303, the subtraction unit 904 performs the above-mentioned calculation CEDP-BSDP using the control signal C23.
Do this. In step S304, the control section 901 selects the next step to be executed based on the determination result Z1 made by the determination section 905 using the control signal C24. That is, when “Z1=0”, S3
The process proceeds to step 05, and ends when "Z1=1". In this case, Z1=0 and the process moves to step S305. In step S305, the dot reduction process is executed based on the flowchart of FIG. 27, as described above. FIG. 30 shows a start dot position creating means 500.
501 is a start dot position creation control section made up of, for example, a microcomputer, and this control section outputs control signals C41 to C46 in accordance with a processing program and controls the following sections. "Code determination section 502"...the above control section 501
Determines whether the code CC sent from is a format mark or not, and if it is determined to be a format mark, outputs "1" as the determination result signal Z3, and if not, outputs "0". do. "Basic dot position reading section 503"...When the control signal C41 is input, it retrieves the basic start dot position BSDP from the basic dot position storage section 102 based on the column position signal CP and outputs it. "Width reading unit 504"...When the code CC is sent from the control unit 501, the font pattern width FB of the character (excluding format marks, including centering marks, etc.) corresponding to the code CC is read by the font management unit 104. The width storage unit 105 reads and outputs the width. "Basic dot width storage section 505"...In this storage section, the font pattern width BB of the format mark is stored. "Dot width selection section 506"...consists of a multiplexer, for example, and when the control signal C42 is input, the dot width selection section 506 outputs the output FB from the width reading section 504 based on the signal Z3.
Or the content BB in the basic dot width storage section 505
Selectively output. In other words, when “Z3=1” (format mark), the basic width BB is output, and “Z3=0”
When it is (character), the character width FB is output. "Character final dot position storage unit 507"...Stores the final dot position of the character located in the column position before the currently processed column position CP and stored in the column position closest to the column position CP. There is. Specifically, (start dot position of the above character + font pattern width of the above character -
The value of 1) is stored. "Current dot position storage unit 508"...Stores a numerical value that may be stored in the area within the start dot position storage unit 103 corresponding to the column position CP currently being processed. Specifically, the value of (start dot position of the pattern located one position before the current column position CP + font pattern width of such pattern) is stored. The above patterns include format marks, centering marks,
Includes all right-justification marks, spaces, characters, symbols, etc. The values to be stored in the character final dot position storage section 507 and the current dot position storage section 508 will be explained in more detail with reference to FIG. 31. Now in Fig. 31, the column position signal CP is the 11th
Assuming that the column is specified, the character final dot position storage unit 507 stores the font pattern width [24] of the character “m” corresponding to the start dot position [125] of the character “m” located in the eighth column. The value obtained by adding and subtracting 1 from the addition result [148]
is stored, and the current dot position storage unit 50
8 is the space “〓” located at the start dot position [167] of the space “〓” located in the 10th column.
The value [185] added to the font pattern width [18] is stored. "Start position selection section 509"...Control signal C
43 is input, the output BSDP from the basic dot position reading unit 503 or the contents in the current dot position storage unit 508 is output based on the signal Z3.
Selectively output one of CURR. Specifically, when “Z3=1”, BSDP is output and “Z3=1”
0", it outputs CURR. This is to prevent positional deviation as described above when the code CC is a format mark. "First addition section 510"...The control signal C44 is input. and font width FB and current dot position
CURR and the character final dot position storage unit 5
Stored in 07. “Second addition unit 511”...When the control signal C45 is input, it adds the output value of the dot width selection unit 506 and the output value of the start position selection unit 509, and stores the addition result in the current dot position storage unit 508. do. "Start dot position writing unit 512"...When the control signal C46 is input, the start position selection unit 5 writes the start dot position in the area in the start dot position storage unit 103 corresponding to the column position signal CP based on the column position signal CP.
Set the output value from 09. FIG. 32 shows the start dot position creation means 5.
This is a flowchart showing the operation of the unit 500, and the operation of the means 500 will be explained below based on the flowchart with reference to the schematic diagram of FIG. Now, assuming that the column position CP is 11 and the character "N" is entered here (not shown), first S40
In one step, code judgment is performed. Specifically, the control unit 501 sends a code to the code determination unit 502.
The code CC is executed when the code CC is given, and the determination unit 502 determines whether the code CC is a code representing a format mark, as described above. In step S402, the next step to be processed is selected based on the determination result Z3 obtained in step S401. That is, “Z3=0”
(character code), the process advances to step S403, and when "Z3=1" (format mark), the process advances to step S404. In this case, since it is a character code, the process moves to step S403. In step S403, the control section 501 supplies the code CC of the character "N" to the width reading section 504, and the width reading section 504 reads out the font pattern width FB[22] corresponding to the code CC. If the 11th column is “◇”, S
The process moves to step 404, and in step S404, the basic dot position reading section 50 is activated based on the control signal C41.
3, the basic start dot position BSDP [180] corresponding to the column position CP in the basic dot position storage section 102 is read out. When the processing in step S403 or S404 is completed, step S405 is executed. In step S405, the start position selection unit 509 selects BSDP ([180] for ◇) or CURR ([167+18] for N) based on the control signal C43.
=185]) is selectively output. In step S406, by applying the control signal C46 to the start dot position writing section 512, the writing section 512 executes processing for setting the output from the start position selection section 509 as described above. In step S407, the control signal C42 is applied to the dot width selection section 506, so that the selection section 5
The process described above is executed in 06 and the character “N” is
The width [22] is output. Processing then proceeds to step S408, where the
A second addition is performed in step 408. Specifically, the control unit 501 sends the control signal C45 to the second
By outputting to the adding unit 511, the adding unit 5
11, that is, the addition process of the start dot position [185] and the font width [22], and the result [207] is stored in the current dot position storage unit 5.
Set to 08. In step S409, the next step to be processed is selected based on the signal CCS sent from the character determining section 312. That is, when "CCS=1" (character code), the process proceeds to step S410, and when "CCS≠1" (format mark, centering mark, right-justification mark, and space), the process ends. A first addition is performed in step S410.
Specifically, by outputting the control signal C44 from the control unit 501 to the first addition unit 510, the addition process described above in the addition unit 510 is performed, that is, the addition of the current dot position [185] and the font width [22]. The process is performed and the result [207] is set in the character final dot position storage section 507. Therefore, in steps S401 and 402, it is determined whether the code CC is a format mark code or not, and based on the determination result, the process is performed in step S403 or S4.
04 step is executed. Then S405,4
In step 06, the CCS is stored in the area corresponding to the column position CP in the start dot position storage unit 103.
Or BSDP is set. In other words, “Z3=
1”, BSDP, and when “Z3≠1”, BSDP
CCS is set respectively. Thereafter, in steps S407 and 408, a value that may become the start dot position of the font at the column position to be processed next is set in the current dot position storage unit 508, and in steps S409 and 4
In step 10, the column position currently being processed
If there is a character in CP, the final dot position of that character is stored. FIG. 33 shows a specific configuration of the right-justification processing means 600, and 601 is a right-justification processing control section composed of, for example, a microcomputer, which outputs control signals C51 to C53 based on a processing program to perform the following operations. Controls the various parts explained in . In the following explanation, the numerical values in parentheses are based on the schematic diagram in FIG. 35. "Block dot search unit 602"...When the control signal C51 is input, it reads and outputs the contents stored in the area of the start dot position storage unit 103 corresponding to the column position signal CP. In other words, the column position signal CP when such right-justification processing is executed is the second column position signal CP.
As is clear from the flowchart in Figure 1, the format mark position (column 11) located at the right end of the processing block is specified, so the above output value is [180].
is the starting dot position of such a formatting mark. "Subtraction unit 603"... Based on the control signal C52, the character final dot position storage unit 507 is calculated from the output value [180] from the block end dot search unit 602.
The content [165] ([9] column start dot position + M font width) is subtracted, and the result is S
[15] (= [180] - [165]) subtraction result storage unit 605
Set to . That is, the result S is m in FIG.
corresponds to "Start dot position changing unit 604"...When the control signal C53 is input, the processing information storage unit 308
The contents stored in the right-justification start position area 309, that is, the column position RMC where the right-justification mark is located.
[7] and the contents ECC[9] of the end character column position storage unit 313 are read, and from (RMC+1) [8]
The above S[15] is added to the data in each area in the start dot position storage unit 103 corresponding to each column position up to ECC[9]. FIG. 34 is a flowchart showing the operation of the right-justifying processing means 600. First, in step S501, the start dot position [180] of the rightmost format mark is searched. Specifically, this is performed by block end dot search section 602 by outputting control signal C51. In S502, a value S[15] corresponding to m shown in FIG. 11 is determined. Specifically, as described above, it is determined by the subtraction unit 603 based on the control signal C52. In step S503, the start dot position is changed. Specifically, as described above, this is executed by the start dot position changing section 604 by outputting the control signal C52. Therefore, by sequentially executing steps S501 to S503, the right-justifying process is completed. (f) Effects According to the present invention, when performing proportional printing for each character, it is possible to prevent printing deviation even for vertical lines whose processing unit is not line by line, and high quality printing can be obtained. Further, the present invention is not limited to the embodiments, and modifications can be made without departing from the technical idea of the present invention. Further, in this embodiment, the processing of English text has been described, but the present invention can also be applied to Japanese text, especially those containing character types with different character widths (such as sulky sounds), such as katakana and hiragana.
第1図はワードプロセツサの基本的構成を示す
ブロツク図、第2図乃至第5図はセンタリング等
の各種処理形態を示す模式図、第6図は従来の印
字イメージを示す模式図、第7図は本発明のフオ
ントパターンの構成を示す模式図、第8図乃至第
14図は本発明の基本的な処理体系を示す模式
図、第15図乃至第18図、第22図、第25
図、第26図、第30図、第33図は本発明の実
施例を示すブロツク図、第21図、第24図、第
27図、第28図、第32図、第34図は本実施
例の動作を説明するためのフローチヤート、第1
9図、第20図、第23図、第29図、第31
図、第35図は本実施例の動作を説明するための
模式図である。
103……スタートドツト位置記憶部、105
……幅記憶部、106……パターン記憶部、20
2……テキストメモリ、400……センタリング
処理手段、500……スタートドツト位置作成手
段、600……右づめ処理手段、700……右揃
え処理手段、800……右1/2揃え処理手段、9
00……行末補正手段、1000……パターンイ
メージ作成手段、1100……ゾーンチエツク手
段。
Fig. 1 is a block diagram showing the basic configuration of a word processor, Figs. 2 to 5 are schematic diagrams showing various processing forms such as centering, Fig. 6 is a schematic diagram showing a conventional printing image, and Fig. 7 is a schematic diagram showing a conventional printing image. The figure is a schematic diagram showing the configuration of the font pattern of the present invention, FIGS. 8 to 14 are schematic diagrams showing the basic processing system of the present invention, and FIGS.
26, 30, and 33 are block diagrams showing embodiments of the present invention, and FIGS. 21, 24, 27, 28, 32, and 34 show the present embodiment Flowchart for explaining the operation of the example, 1st
Figure 9, Figure 20, Figure 23, Figure 29, Figure 31
35 are schematic diagrams for explaining the operation of this embodiment. 103...Start dot position storage section, 105
... Width storage section, 106 ... Pattern storage section, 20
2...Text memory, 400...Centering processing means, 500...Start dot position creation means, 600...Right alignment processing means, 700...Right alignment processing means, 800...Right 1/2 alignment processing means, 9
00...Line end correction means, 1000...Pattern image creation means, 1100...Zone check means.
Claims (1)
リ、 当該テキストメモリ中の情報を読み出し保持す
る行バツフア、 当該行バツフアに読み出された一行中の縦ケイ
線の先頭からの文字位置を検索しその位置を記憶
する位置管理記憶手段、 文字・記号などの種類によりドツトマトリツク
スのサイズが異なるドツトパターンの横方向もし
くは縦方向のドツト幅が格納されたパターン及び
幅記憶手段、 印字すべき一行分のドツトパターンを格納する
イメージバツフア、 当該イメージバツフアへの書き込み開始位置を
作成するスタートドツト位置作成手段、 当該スタートドツト位置作成手段で作成される
上記イメージバツフアへの各ドツトパターンの書
き込み開始位置を格納するスタートドツト位置記
憶手段、 基本的なスタートドツト位置が格納されている
基本ドツト位置記憶部、 上記行バツフアから読み出された文書が縦ケイ
線であるか否かを判定する縦ケイ線判定手段、 上記スタートドツト位置記憶手段に格納された
開始位置に基づき上記パターン及び幅記憶手段か
ら読み出したドツトパターンを上記イメージバツ
フアに作成するパターンイメージ作成手段、 直前のパターンのスタートドツト位置及び斯る
パターンの幅を格納するカレントドツト位置記憶
手段、 上記基本ドツト位置記憶部もしくはカレントド
ツト位置記憶手段の出力を選択的に出力するスタ
ート位置選択部、 を備え、 上記縦ケイ線判定手段が縦ケイ線と判定したと
き、上記スタート位置選択部は上記位置管理手段
の当該縦ケイ線の位置に基づく基本ドツト位置記
憶部の出力を選択し、その基本ドツト位置に基づ
いて上記スタートドツト位置作成手段を起動する
と共に、 上記縦ケイ線判定手段が文字・記号と判定した
とき、上記スタート位置選択部はカレントドツト
位置記憶手段の出力を選択し、上記スタートドツ
ト位置作成手段を起動することを特徴とする印字
制御装置。[Scope of Claims] 1. A text memory that stores a document including vertical lines, a line buffer that reads and holds information in the text memory, and a line buffer that reads out and holds information in the text memory; a position management storage means for searching character positions and storing the positions; a pattern and width storage means storing the horizontal or vertical dot widths of dot patterns whose dot matrix sizes vary depending on the type of character/symbol, etc.; An image buffer that stores one line of dot patterns to be printed, a start dot position creation device that creates a start position for writing to the image buffer, and a start dot position creation device that stores each dot pattern for the image buffer created by the start dot location creation device. A start dot position storage means for storing a writing start position of a dot pattern, a basic dot position storage section for storing a basic start dot position, and whether or not the document read from the line buffer is a vertical key line. vertical line determination means for determining the dot pattern; pattern image creation means for creating a dot pattern read from the pattern and width storage means in the image buffer based on the start position stored in the start dot position storage means; current dot position storage means for storing the start dot position of the pattern and the width of the pattern; a start position selection section for selectively outputting the output of the basic dot position storage section or the current dot position storage means; When the line determining means determines that it is a vertical dot line, the start position selection section selects the output of the basic dot position storage section based on the position of the vertical dot line of the position management means, and selects the output of the basic dot position storage section based on the basic dot position. In addition to activating the start dot position creation means, when the vertical check line determination means determines that it is a character/symbol, the start position selection section selects the output of the current dot position storage means and activates the start dot position creation means. A printing control device characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58078434A JPS59202868A (en) | 1983-05-04 | 1983-05-04 | Printing control apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58078434A JPS59202868A (en) | 1983-05-04 | 1983-05-04 | Printing control apparatus |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4155099A Division JP2562765B2 (en) | 1992-06-15 | 1992-06-15 | Printing control method for word processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59202868A JPS59202868A (en) | 1984-11-16 |
| JPH0356189B2 true JPH0356189B2 (en) | 1991-08-27 |
Family
ID=13661932
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58078434A Granted JPS59202868A (en) | 1983-05-04 | 1983-05-04 | Printing control apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59202868A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2562765B2 (en) * | 1992-06-15 | 1996-12-11 | 三洋電機株式会社 | Printing control method for word processor |
| JPH06124078A (en) * | 1992-10-13 | 1994-05-06 | Max Co Ltd | Kerning processing method for european language document process |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS54124639A (en) * | 1978-03-20 | 1979-09-27 | Sharp Corp | Character processing system |
| JPS5511890A (en) * | 1978-10-19 | 1980-01-28 | Oki Electric Ind Co Ltd | Printing method |
| JPS55123739A (en) * | 1979-03-15 | 1980-09-24 | Fujitsu Ltd | Memory content prefetch control system |
| JPS5616283A (en) * | 1979-07-17 | 1981-02-17 | Hitachi Ltd | Character pitch processing system |
| JPS5619184A (en) * | 1979-07-24 | 1981-02-23 | Fujitsu Ltd | Print system |
| JPS5642884A (en) * | 1979-09-14 | 1981-04-21 | Canon Inc | Printer |
| JPS5764875A (en) * | 1980-10-08 | 1982-04-20 | Fujitsu Ltd | Print format control system of printer |
| JPS59196280A (en) * | 1983-04-22 | 1984-11-07 | Fujitsu Ltd | Printing control system |
-
1983
- 1983-05-04 JP JP58078434A patent/JPS59202868A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59202868A (en) | 1984-11-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3294883B2 (en) | Color separation method in ink jet color graphic printing | |
| JPH0464314B2 (en) | ||
| JPH06217119A (en) | Color separation method in color graphic printing | |
| JPS63766A (en) | document processing device | |
| JPH0356189B2 (en) | ||
| JPH028593B2 (en) | ||
| JPH023714B2 (en) | ||
| JPH021676B2 (en) | ||
| JP2816181B2 (en) | Document processing device | |
| JP2562765B2 (en) | Printing control method for word processor | |
| US5185854A (en) | Document processing apparatus having a ruled line print control function | |
| US5215388A (en) | Control of spell checking device | |
| JPH0522933B2 (en) | ||
| US5162993A (en) | Word processing apparatus | |
| JPS59202871A (en) | Printing controller | |
| JPS59201870A (en) | Printer | |
| JP2542121B2 (en) | Character processing method | |
| JP3226735B2 (en) | Document processing apparatus and method | |
| JP2555557B2 (en) | Character processor | |
| JP2555556B2 (en) | Character processor | |
| JPH07102726B2 (en) | Printer | |
| JPH077391B2 (en) | Document processor | |
| JPH0773168A (en) | Document editing device | |
| JPH02165372A (en) | character processing device | |
| JPH0424761A (en) | Document processor with frame editing function |