JP2764790B2 - Page printing device - Google Patents

Page printing device

Info

Publication number
JP2764790B2
JP2764790B2 JP6087192A JP8719294A JP2764790B2 JP 2764790 B2 JP2764790 B2 JP 2764790B2 JP 6087192 A JP6087192 A JP 6087192A JP 8719294 A JP8719294 A JP 8719294A JP 2764790 B2 JP2764790 B2 JP 2764790B2
Authority
JP
Japan
Prior art keywords
printing
print
page number
page
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 - Fee Related
Application number
JP6087192A
Other languages
Japanese (ja)
Other versions
JPH07164716A (en
Inventor
潤一 羽斗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP6087192A priority Critical patent/JP2764790B2/en
Publication of JPH07164716A publication Critical patent/JPH07164716A/en
Application granted granted Critical
Publication of JP2764790B2 publication Critical patent/JP2764790B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】この発明は、頁データに頁番号を
付加して印刷する頁印刷装置に関する。 【0002】 【従来の技術】従来、自動ページ印刷機能を備えたワー
ドプロセッサにおいては、用紙の上下に予め固定的に設
定されている複数のページ番号の印字位置(用紙の左
上、上中央、右上、左下、下中央、右下の6種類の印刷
位置)からその1つを任意に選択できるようにしたもの
が知られている。また、用紙に対して印刷を行なう際、
“横書”(文字配列が文字の向きに対して横方向の書
式)かあるいは“縦書”(文字配列が文字の向きに対し
て縦方向の書式)かを任意に選択できるようにしたもの
も知られている。 【0003】 【発明が解決しようとする課題】例えば上記の如きワー
ドプロセッサにおいて、ページ番号の印字位置を“左
上”に指定し、この状態に於いて“横書印刷”あるいは
“縦書印刷”の設定を行なって文書データを用紙上に印
字させた場合、図5(A)、(B)に示すごとく印字が
行なわれる。即ち、文書データを“横書印刷”で印字す
る場合、文書の向きに対してページ番号の印字位置は
“左上”であり、所望通りの印字が行なわれている。し
かしながら、文書データを“縦書印刷”で印字する場
合、頁番号の印字位置は文書に対して“右上”となって
しまい、所望する位置にページ番号が印字されない。本
発明の課題は、頁データに頁番号を付加して印刷する
際、頁データの印刷向きに対する頁番号の印刷位置とし
て所望する印刷位置を設定できるようにすると共に、上
記頁データを印刷用紙に対して縦向き印刷するのかある
いは横向き印刷するのかの選択状態に応じて、上記印刷
用紙に対する頁番号印刷位置を調整して印刷するように
することである。 【0004】 【課題を解決するための手段】この発明の手段は次の通
りである。頁データを記憶する頁データ記憶手段と、上
記頁データに対する頁番号を記憶する頁番号記憶手段
と、上記頁番号の印刷位置として上記頁データの印刷向
きに対する下側左(または上側左)、下側中(または上
側中)あるいは下側右(または上側右)の相対印刷位置
の何れか1つの相対印刷位置を任意に設定する印刷位置
設定手段と、上記頁データの印刷用紙長手方向に対する
縦向き印刷あるいは横向き印刷の何れかを任意に選択す
る印刷向き選択手段と、上記頁データを上記印刷用紙上
に印刷する際、上記印刷向き選択手段で選択された印刷
向きが縦向き印刷かあるいは横向き印刷かを判別する判
別手段と、上記判別手段により縦向き印刷であると判別
された際は、上記印刷位置設定手段で設定された相対印
刷位置に基づいて上記印刷用紙長手方向の下端側左(ま
たは上端側左)、下端側中(または上端側中)あるいは
下端側右(または上端側右)の印刷位置の内の何れか1
つの印刷位置を頁番号印刷位置として決定し、上記判別
手段により横向き印刷であると判別された際は、上記印
刷位置設定手段で設定された相対印刷位置に基づいて上
記印刷用紙長手方向の右端側下(または左端側下)、右
端側中(または左端側中)あるいは右端側上(または左
端側上)の印刷位置の内の何れか1つの印刷位置を頁番
号印刷位置として決定する決定手段と、上記印刷向き選
択手段で選択された印刷向きが縦向き印刷である場合に
は、上記頁データを上記印刷用紙長手方向に対して縦向
きに印刷すると共に、上記頁番号記憶手段に記憶された
頁番号を上記決定手段で決定された上記印刷用紙長手方
向の下端側左(または上端側左)、下端側中(または上
端側中)あるいは下端側右(または上端側右)の内の何
れか1つの頁番号印刷位置に縦向き印刷する第1の印刷
手段と、上記印刷向き選択手段で選択された印刷向きが
横向き印刷である場合には、上記頁データを上記印刷用
紙長手方向に対して横向きに印刷すると共に、上記頁番
号記憶手段に記憶された頁番号を上記決定手段で決定さ
れた上記印刷用紙長手方向の右端側下(または左端側
下)、右端側中(または左端側中)あるいは右端側上
(または左端側上)の内の何れか1つの頁番号印刷位置
に横向き印刷する第2の印刷手段と、を有する。 【0005】 【作用】この発明の手段の作用は次の通りである。頁番
号の印刷位置として頁データの印刷向きに対する下側左
(または上側左)、下側中(または上側中)あるいは下
側右(または上側右)の相対印刷位置の何れかの1つの
相対印刷位置を任意に設定しておくとと共に、上記頁デ
ータの印刷用紙長手方向に対する縦向き印刷あるいは横
向き印刷の何れかを任意に選択しておく。上記頁データ
を上記印刷用紙上に印刷する際、上記選択の印刷向きが
縦向き印刷かあるいは横向き印刷かが判別され、縦向き
印刷であると判別された際は、上記設定の相対印刷位置
に基づいて上記印刷用紙長手方向の下端側左(または上
端側左)、下端側中(または上端側中)あるいは下端側
右(または上端側右)の印刷位置の内の何れかの1つの
印刷位置が頁番号印刷位置として決定され、一方横向き
印刷であると判別された際は、上記設定の相対印刷位置
に基づいて上記印刷用紙長手方向の右端側下(または左
端側下)、右端側中(または左端側中)あるいは右端側
上(または左端側上)の印刷位置の内の何れか1つの印
刷位置が頁番号印刷位置として決定される。その結果、
選択された印刷向きが縦向き印刷である場合には、上記
頁データが上記印刷用紙長手方向に対して縦向きに印刷
されると共に、頁番号記憶手段に記憶された頁番号が上
記決定された印刷用紙長手方向の下端側左(または上端
側左)、下端側中(または上端側中)あるいは下端側右
(または上端側右)の内の何れか1つの頁番号印刷位置
に縦向き印刷される。一方、選択された印刷向きが横向
き印刷である場合には、上記頁データが印刷用紙長手方
向に対して横向きに印刷されると共に、頁番号記憶手段
に記憶された頁番号が上記決定された印刷用紙長手方向
の右端側下(または左端側下)、右端側中(または左端
側中)あるいは右端側上(または左端側上)の内の何れ
か1つの頁番号印刷位置に横向き印刷される。 【0006】 【実施例】以下、この発明を図1〜図4に示す一実施例
に基づいて具体的に説明する。なお、本実施例は自動ペ
ージ番号印刷機能を備えたワードプロセッサに適用した
例を示している。 【0007】構 成 図1はこのワードプロセッサの基本的な構成を示すブロ
ック回路図である。図中11はCPU(中央演算処理回
路)で、文書作成処理、印刷書式設定処理、文書データ
およびページ番号の印字処理等を制御する。即ち、入力
部12のキーボード上に備えられている文字キー等を操
作して文書データを入力すると、入力された文書データ
は大型液晶表示画面を備えた表示部13にキャラクタ表
示されると共に、文書メモリ14にコード形式で格納さ
れる。なお、文書メモリ14はランダムアクセスメモリ
によって構成され、複数ページ分の文書データを記憶可
能なもので、CPU11の制御下でデータの書き込み、
読み出し動作が制御される。 【0008】また、入力部12から書式データが入力さ
れると、CPU11は書式メモリ15に入力された書式
データを設定する。書式メモリ15は1ページ分の行数
を計数する行カウンタl、1行分の桁数を計数する桁カ
ウンタCを有する他、印刷書式として次のデータを記憶
する。即ち、書式メモリ15は1ページ内に最大何行印
字するかを示す頁行数ML、1行に最大何文字印字する
かを示す行桁数MCを記憶すると共に、各行に対する文
書印字開始桁、印刷される文書に対するページ番号の印
字位置を示すフラグ、印字すべき現在のページ番号(連
番)、縦印刷(1行分の印字処理で1行分の文書データ
を印字する)か横印刷(1行分の印字処理で1ページ分
の文書データの同一桁をまとめて印字する)かを示す縦
印刷/横印刷フラグ、縦書印字か横書印字かを示す縦書
/横書フラグを記憶する。 【0009】また、CPU11は入力部12からの印字
指令に応答して文書メモリ14内の文書データを書式メ
モリ15内の設定書式に応じて印字させる為に、文書メ
モリ14から読み出した文書データを1行ずつ印字制御
部16に送ると共に書式メモリ15内の設定書式に応じ
て印字動作の制御を行う。 【0010】印字制御部16はCPU11から取り込ん
だ文書データをキャラクタジェネレータ17を用いて印
字用のキャラクタパターンに変換し、また、書式メモリ
15内の設定書式に基づきキャラクタパターンをパター
ン回転部18を用いて所定角度(90°)回転させ、プ
リンタ19にセットされている記録紙に印字させる。な
お、パターン回転部18は縦印刷で縦書印字あるいは横
印刷で横書印字が設定されている場合にキャラクタパタ
ーンを90°回転させるものであり、また、プリンタ1
9はサーマルのシリアルプリンタによって構成され、印
字ヘッド(図示せず)と記録紙とを相対的に移動させな
がら文書データを印字する。 【0011】動 作 先ず、複数ページ分の文書データを入力すると共に、そ
の印刷書式の設定を行う。そして、入力部12の印字キ
ー(図示せず)を操作すると、それに伴って出力される
印字指令に応答して図2に示すフローチャートにしたが
った印字動作が設定書式に応じて実行される。ここで、
印字動作を以下、図3(A)〜(D)に示す設定書式別
に説明するものとする。 【0012】<図3(A)の場合>これは印刷書式とし
て“縦印刷”及び“横書”の設定が行なわれ、ページ番
号の印字位置が文書に対して上(左上……図中、上中
央……図中、右上……図中)として指定した場合で
ある。このような印刷書式が設定されている場合、図2
の印字動作が開始されると、先ず、スタートページ番号
(ページ番号初期値)を書式メモリ15に設定したの
ち、書式メモリ15内に設定されているフラグを判別
し、それに応じた印字処理を実行する。いま、書式メモ
リ15内に縦印刷フラグ、横書印刷フラグ、ページ番号
の印字位置として〜のいずれかを示す位置フラグが
設定されているので、ステップS2、S6、S7の判断
に続いてステップS8〜S11の処理が実行される。即
ち、ページ番号の印字位置として左上のが指定されて
いれば1桁目に、また上中央のが指定されていれば行
桁数MC/2桁目に、更に右上のが指定されていれ
ば、行桁数MC桁目に書式メモリ15内のページ番号を
横書きに印字する(ステップS8)。そして、ページ番
号と文書との間に1行分のスペースを形成する為に、2
行分の改行を行う(ステップS9)。このようにしてペ
ージ番号を予め指定されている位置に印字したら、次に
1ページ分の文書データを横書印字する為に、ステップ
S10で行カウンタlに初期値「1」をセットしたの
ち、文書メモリ14から1行分の文書データを読み出し
て印字制御部16に送り、1行分ずつ文書データを横書
に印字させながら行カウンタlの値を更新させてゆき、
このカウンタlの値が頁行数MLと等しくなるまで文書
メモリ14から読み出した文書データを1行ずつ横書に
印字する(ステップS11)。 【0013】これによって1ページ分の文書データの印
字が終ると、ステップS4に進み、文書メモリ14内の
文書全てを印字したかを調べるが、印字すべき他のペー
ジが有れば、ステップS5で書式メモリ15内のページ
番号に「1」を加算してページ番号を更新し、その後ス
テップS2に戻る。この結果、次のページに対しても同
様の印字処理(ステップS8〜S11)が実行される。
このようにして文書メモリ14内の文書データを1ペー
ジずつページ番号をその指定位置に付加して横書を印字
してゆき、そして、全ページ分の文書を印字し終ると、
ステップS4でそのことが検出され、これによって印字
動作は終了する。 【0014】<図3(B)の場合>これは印刷書式とし
て縦印刷及び横書の設定が行なわれ、ページ番号の印字
位置が文書に対して下(左下……図中、下中央……図
中、右下……図中)と指定した場合を示している。
このような印刷書式が書式メモリ15内で設定されてい
る場合、上述と同様に、印字動作を開始するとスタート
ページ番号の設定処理(ステップS1)を実行したの
ち、ステップS2、S6からステップS7に進むが、こ
の場合、ページ番号の印字位置として〜が指定され
ているので、これに応じてステップS12〜S15を実
行する。先ず、ステップS12で行カウンタlの値に
「1」をセットしたのち、1ページ分の文書データを横
書きに印字する(ステップS13)。その後、1行分の
スペースを確保する為に2行分の改行を行ってから(ス
テップS14)、ページ番号を指定位置〜に横書印
字する(ステップS15)。ここで、ページ番号の印字
位置として左下のが指定されていれば1行目、下中央
のであれば行桁数MC/2桁目、右下のであれば行
桁数MC桁目にページ番号を横書印字する。 【0015】このようにして1ページ分の印字が終る
と、ステップS4に進み、全ページ分の印字が終るまで
ページ番号を更新しながら各ページに対する印字処理を
行なう。 【0016】<図3(C)の場合>これは印刷書式とし
て“縦印刷”及び“縦書”の設定が行なわれ、ページ番
号の印字位置が文書に対して上(左上、上中央、右上の
いずれか)として指定した場合である。この場合、ペー
ジ番号の印字位置〜は文書の印字向きに従って用紙
の左側(左下、左中央、左上)の位置に自動的に変更さ
れる。このような印刷書式が設定されている状態におい
て印字動作が開始されると、先ず、スタートページ番号
の設定(ステップS1)を行ったのち、ステップS2、
S6、S16を介してステップS17に進み、文書印字
開始桁を右へ2桁分づらす処理が実行される。即ち、ペ
ージ番号の印字位置として〜が指定されている場合
(ステップS16)、ページ番号は用紙に対して左に印
字され、しかも、ページ番号と文書との間に1桁分のス
ペースを形成する為に書式メモリ15内に予め設定され
ている文書印字開始桁に「2」を加算する。そして、ス
テップS18で行カウンタlに初期値「1」をセットし
たのち、ページ番号の印字位置として、が指定され
ている場合には(ステップS19)、最初の1行目の文
書データを90°回転して文書印字開始桁から1行分縦
書きに印字するが(ステップS21)、ページ番号の印
字位置としてが指定されている場合にはステップS2
0に進み、ページ番号を90°回転して縦書に印字した
後、1行目の文書データを文書印字開始桁から縦書に印
字する(ステップS21)。 【0017】このようにして最初の1行目の文書データ
を印字すると、ステップS25〜S27に進み、行カウ
ンタlに「1」を加算し、そして1行分の文書データを
文書印字開始桁より縦書に印字する動作を行カウンタl
の値が頁行数ML/2となるまで繰り返す。そして、頁
行数ML/2までの印字が終ると次の行の印字を行う
が、ページ番号の印字位置としてが指定されている場
合には(ステップS28)、ページ番号を90°回転し
て縦書印字を行ってから次の1行分の文書データを縦書
に印字する(ステップS29、S30)。 【0018】その後、ステップS34〜S36に進み、
行カウンタlに「1」を加算し、そして、1行分の文書
データを文書印字開始桁より縦書に印字する動作を行カ
ウンタlの値が頁行数MLとなるまで繰り返す。そし
て、頁行数MLまでの印字が終ると、最後の行の印字を
行うが、ページ番号の印字位置としてが指定されてい
る場合には(ステップS37)、ページ番号を90°回
転して縦書印字を行ってから最後の行の文書データを縦
書に印字する(ステップS38、S39)。 【0019】これによって1ページ分の印字が終ると、
ステップS4に進み、全ページ分の印字が終るまでペー
ジ番号を更新しながら各ページに対して上述の動作を繰
り返す。 【0020】<図3(D)の場合>これは印刷書式とし
て“縦印刷”及び“縦書”の設定が行なわれ、ページ番
号の印字位置が文書に対して下(左下、下中央、右下の
いずれか)として指定した場合である。この場合、ペー
ジ番号の印字位置〜は文書の印字向きに従って用紙
の右側(右下、右中央、右上)の位置に自動的に変更さ
れる。この場合、印字動作が開始されると、ステップS
1でスタートページ番号の設定を行ったのち、行カウン
タlに「1」をセットし(ステップS18)、1行目の
文書データを縦書に印字する(ステップS21)。そし
て、ページ番号の印字位置としてが指定されている場
合には(ステップS22)、文書印字終了桁(文書印字
開始桁に行桁数MCを加えた値)を右へ2桁分一時的に
づらし(ステップS23)、その位置にページ番号を9
0°回転して縦書に印字する(ステップS24)。そし
て、行カウンタlの値が頁行数ML/2となるまで文書
データを1行ずつ印字してゆき(ステップS25〜S2
7)、そして、次の1行分の文書データを印字した際
(ステップS30)、ページ番号の印字位置としてが
指定されていれば(ステップS31)、文書印字終了桁
を右へ2桁分一時的にづらし(ステップS32)、その
位置にページ番号を90°回転して縦書に印字する(ス
テップS33)。その後、行カウンタlの値が頁行数M
Lとなるまで文書データを1行ずつ印字してゆき(ステ
ップS34〜S36)、そして最終行の文書を印字した
際(ステップS39)、ページ番号の印字位置として
が指定されている場合には、文書印字終了桁を右へ2桁
分一時的にづらし(ステップS41)、その位置にペー
ジ番号を90°回転して縦書に印字する(ステップS4
2)。 【0021】これによって1ページ分の印字が終ると、
ステップS4に進み、全ページ分の印字が終るまで同様
の動作を繰り返す。以上のように“縦印刷”で“横書”
あるいは“縦書”の印刷書式が設定されると、予め設定
したページ番号の印字位置はその文書の向き(横書か縦
書か)に対する印字位置として自動的に決定される。図
4(A)、(B)はページ番号の印字位置として“左
上”(ページ番号は「12」とする)を指定した場合の
印刷例を示している。 【0022】一方、印刷書式として“横印刷”の設定が
なされている場合も同様である。この場合には図2にお
いて、スタートページ番号を設定し(ステップS1)、
次で、1ページ分の印字処理(ステップS3)を実行す
る。なお、この印字処理は上述したステップS6〜S4
2と同様であるから、その説明を以下省略する。しかし
て、1ページ分の印字が終ると、全ページ分の印字が終
るまでステップS5でページ番号を更新しながら1ペー
ジずつ印字処理を実行する。図4(C)、(D)は“横
印刷”で“横書”あるいは“縦書”の印刷書式が設定さ
れており、ページ番号の印字位置として“左上”(ペー
ジ番号は「10」とする)を指定した場合の印刷例を示
したものである。 【0023】以上説明した如く、本実施例のワードプロ
セッサにおいては、オペレータはページ番号の印字位置
を〜のうちのいずれかの番号で予め指定しておけ
ば、その後どのような印刷書式が設定されたとしても文
書上の所望する位置にページ番号が常に印字されること
になる。しかもページ番号の印字向きは文書上における
文字の印字向きと常に一致するよう印刷されるのでペー
ジ番号の読取りが容易となる。なお、上記実施例におい
てはページ番号の印字位置として6種類の中から選択す
るようにしたが、その数は任意である。また、この発明
は袋とじ印刷にも適用可能である。 【0024】 【発明の効果】本発明によれば、頁データに頁番号を付
加して印刷する際、頁データの印刷向きに対する頁番号
の印刷位置としてその頁データの印刷向きに対する左、
中、右の相対印刷位置の内の何れか1つの相対印刷位置
を任意に設定した場合には、上記頁データを印刷用紙に
対して縦向き印刷するのかあるいは横向き印刷するかの
選択状態に応じて、上記印刷用紙に対する頁番号印刷位
置を上記設定の相対印刷位置に基づいて自動的に決定し
て印刷するようにしたので、オペレータが頁番号印刷位
置として所望する1つの位置(頁データの印刷向きに対
する左、中、右の相対印刷位置の内の何れか1つの相対
印刷位置)を設定しておきさえすれば、上記印刷用紙に
対する頁データの印刷向きがいかなる場合であったとし
ても(即ち、縦向き印刷なのかあるいは横向き印刷なの
かによらず)、オペレータがイメージした通りの印刷位
置に上記頁番号を確実に印刷することができる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a page printing apparatus for printing by adding a page number to page data. 2. Description of the Related Art Conventionally, in a word processor having an automatic page printing function, printing positions of a plurality of page numbers fixed in advance at the top and bottom of a sheet (upper left, upper center, upper right, It is known that one of six print positions (lower left, lower center, lower right) can be arbitrarily selected. Also, when printing on paper,
Arbitrary selection of "horizontal writing" (character array is a horizontal format for the character direction) or "vertical writing" (character array is a vertical format for the character direction) Is also known. For example, in the above-described word processor, the print position of the page number is designated as "upper left", and in this state, "horizontal print" or "vertical print" is set. Is performed to print the document data on paper, printing is performed as shown in FIGS. 5A and 5B. That is, when the document data is printed by “horizontal printing”, the printing position of the page number is “upper left” with respect to the direction of the document, and printing is performed as desired. However, when the document data is printed by "vertical printing", the printing position of the page number is "upper right" with respect to the document, and the page number is not printed at a desired position. It is an object of the present invention to set a desired printing position as a printing position of a page number with respect to a printing direction of the page data when printing by adding a page number to the page data and to print the page data on a printing paper. On the other hand, the page number printing position on the printing paper is adjusted and printed according to the selection state of the portrait printing or the landscape printing. [0004] The means of the present invention are as follows. Page data storage means for storing page data, page number storage means for storing a page number corresponding to the page data, and lower left (or upper left), lower left or lower with respect to the printing direction of the page data as the printing position of the page number A print position setting means for arbitrarily setting any one of a relative print position of a side middle (or an upper middle) or a lower right (or an upper right); and a portrait orientation of the page data with respect to a longitudinal direction of the printing paper. A printing direction selecting means for arbitrarily selecting either printing or landscape printing, and a printing direction selected by the printing direction selecting means when printing the page data on the printing paper. Determination means for determining whether or not the printing is vertical, and when the determination means determines that the printing is portrait orientation, the printing paper is set based on the relative printing position set by the printing position setting means. Side direction of the lower end side left (or top side left), either in the lower end side of the printing position (or in the upper end) or the lower side right (or top side right) 1
One printing position is determined as a page number printing position, and when it is determined that the printing is landscape printing by the determining unit, the right end side in the longitudinal direction of the printing paper based on the relative printing position set by the printing position setting unit. Determining means for determining any one of the printing positions at the bottom (or at the left end side), at the right end side (or at the left end side) or at the right end side (or at the left end side) as the page number printing position; If the printing direction selected by the printing direction selecting means is portrait printing, the page data is printed vertically with respect to the longitudinal direction of the printing paper, and stored in the page number storage means. One of the lower left (or upper left), lower middle (or upper middle) or lower right (or upper right) of the printing paper determined in the longitudinal direction by the determining means. One page number First printing means for printing vertically at the printing position, and when the printing direction selected by the printing direction selecting means is landscape printing, the page data is printed horizontally with respect to the longitudinal direction of the printing paper. At the same time, the page number stored in the page number storing means is determined by the determining means in the lower right end (or lower left end), right inner side (or left inner side) or right upper end in the longitudinal direction of the printing paper. And (2) a second printing unit that performs landscape printing at any one of the page number printing positions (or on the left end side). The operation of the means of the present invention is as follows. The relative printing position of one of the lower left (or upper left), lower middle (or upper middle) or lower right (or upper right) relative printing position to the printing direction of the page data as the printing position of the page number. The position is arbitrarily set, and either the portrait printing or the landscape printing of the page data in the longitudinal direction of the printing paper is arbitrarily selected. When printing the page data on the printing paper, it is determined whether the selected printing direction is portrait printing or landscape printing, and when it is determined that the printing is portrait, the relative printing position of the setting is determined. One of the printing positions of the lower left side (or upper left side), the lower middle side (or upper middle side), or the lower right side (or upper right side) of the printing paper based on the longitudinal direction of the printing paper. Is determined as the page number printing position, and when it is determined that the printing is the landscape printing, on the other hand, based on the set relative printing position, the lower right side (or the lower left side) and the lower right side (or the lower left side) of the printing paper in the longitudinal direction of the printing paper. Alternatively, any one of the print positions on the left end side (middle) or on the right end side (or on the left end side) is determined as the page number print position. as a result,
If the selected printing direction is portrait printing, the page data is printed vertically with respect to the longitudinal direction of the printing paper, and the page number stored in the page number storage means is determined. It is printed vertically at any one of the page number printing positions on the lower left (or upper left), lower middle (or upper middle), or lower right (or upper right) of the printing paper longitudinal direction. You. On the other hand, if the selected printing direction is landscape printing, the page data is printed horizontally with respect to the longitudinal direction of the printing paper, and the page number stored in the page number storage means is determined by the determined printing. The sheet is printed horizontally at any one of the page number printing positions in the lower right end (or lower left end), the lower right end (or lower left end), or the upper right end (or upper left end) in the longitudinal direction of the sheet. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically described below with reference to one embodiment shown in FIGS. This embodiment shows an example in which the present invention is applied to a word processor having an automatic page number printing function. Configuration FIG. 1 is a block circuit diagram showing a basic configuration of the word processor. In the figure, reference numeral 11 denotes a CPU (Central Processing Unit) which controls document creation processing, print format setting processing, printing processing of document data and page numbers, and the like. That is, when text data is input by operating character keys or the like provided on the keyboard of the input unit 12, the input text data is displayed as characters on the display unit 13 having a large liquid crystal display screen, and the text data is displayed. It is stored in the memory 14 in a code format. The document memory 14 is constituted by a random access memory and can store a plurality of pages of document data.
The read operation is controlled. When format data is input from the input unit 12, the CPU 11 sets the input format data in the format memory 15. The format memory 15 has a line counter 1 for counting the number of lines for one page, a digit counter C for counting the number of digits for one line, and stores the following data as a print format. That is, the format memory 15 stores the number of page lines ML indicating the maximum number of lines to be printed in one page, and the number of line digits MC indicating the maximum number of characters to be printed in one line. A flag indicating the printing position of the page number for the document to be printed, the current page number (sequential number) to be printed, portrait printing (printing one line of document data in one line printing process) or landscape printing ( A vertical print / horizontal print flag that indicates whether the same digit of one page of document data is printed collectively in one line print processing, and a vertical write / horizontal flag that indicates whether vertical print or horizontal print I do. The CPU 11 responds to a print command from the input unit 12 to print the document data in the document memory 14 in accordance with the set format in the format memory 15 in order to print the document data read from the document memory 14. The data is sent line by line to the print control unit 16 and the printing operation is controlled according to the set format in the format memory 15. A print control unit 16 converts the document data fetched from the CPU 11 into a character pattern for printing using a character generator 17, and converts the character pattern based on a setting format in a format memory 15 using a pattern rotation unit 18. To rotate the print paper by a predetermined angle (90 °) to print on the recording paper set in the printer 19. The pattern rotation unit 18 rotates the character pattern by 90 ° when vertical writing is set in vertical printing or horizontal writing is set in horizontal printing.
Reference numeral 9 denotes a thermal serial printer which prints document data while relatively moving a print head (not shown) and recording paper. [0011] Operation First, inputs the document data for a plurality of pages, the setting of the print format. When a print key (not shown) of the input unit 12 is operated, a print operation according to the flowchart shown in FIG. 2 is executed in response to a print command output in accordance with the set format. here,
The printing operation will be described below for each setting format shown in FIGS. <Case of FIG. 3A> In this case, “vertical printing” and “horizontal writing” are set as the print format, and the print position of the page number is positioned above the document (upper left ... Upper center: in the figure, upper right: in the figure). When such a print format is set, FIG.
Is started, a start page number (initial page number) is first set in the format memory 15, then a flag set in the format memory 15 is determined, and a printing process corresponding to the flag is executed. I do. Since the vertical print flag, the horizontal writing print flag, and the position flag indicating any of the print positions of the page numbers in the format memory 15 are set in the format memory 15, step S8 follows the determination in steps S2, S6, and S7. To S11 are executed. That is, if the upper left is specified as the print position of the page number, the first digit is specified. If the upper center is specified, the line number is MC / 2, and if the upper right is specified, the upper right is specified. Then, the page number in the format memory 15 is printed horizontally on the MC digit of the line digit (step S8). Then, to form a space for one line between the page number and the document,
A line feed for the line is performed (step S9). After the page number is printed at the position designated in advance in this way, the initial value "1" is set in the line counter 1 in step S10 in order to horizontally print one page of document data. One line of document data is read from the document memory 14 and sent to the print control unit 16 to update the value of the line counter l while printing the document data one line at a time in horizontal writing.
Until the value of the counter 1 becomes equal to the number of page lines ML, the document data read out from the document memory 14 is printed in horizontal writing line by line (step S11). When printing of one page of document data is completed, the flow advances to step S4 to check whether all documents in the document memory 14 have been printed. If there is another page to be printed, step S5 is performed. Then, "1" is added to the page number in the format memory 15 to update the page number, and thereafter, the process returns to step S2. As a result, the same printing process (steps S8 to S11) is executed for the next page.
In this way, the document data in the document memory 14 is added with the page number one by one at the designated position to print the horizontal writing, and when the printing of the document for all pages is completed,
This is detected in step S4, thereby ending the printing operation. <Case of FIG. 3B> In this case, vertical printing and horizontal writing are set as the printing format, and the print position of the page number is positioned below the document (lower left,..., Lower center, in the figure). (Lower right in the figure ... in the figure) is shown.
When such a print format is set in the format memory 15, as described above, when a printing operation is started, a start page number setting process (step S1) is executed, and then steps S2, S6 and step S7 are performed. In this case, since ~ is designated as the print position of the page number, steps S12 to S15 are executed accordingly. First, in step S12, "1" is set to the value of the line counter l, and then one page of document data is printed horizontally (step S13). After that, a line feed for two lines is performed to secure a space for one line (step S14), and then the page number is horizontally written at the designated position to (step S15). Here, if the lower left is designated as the print position of the page number, the page number is set to the first line, if it is the lower center, the line digit number MC / 2 digit, if it is the lower right, the page number is set to the line digit MC digit. Print horizontally. When printing for one page is completed in this way, the process proceeds to step S4, and printing processing for each page is performed while updating the page number until printing for all pages is completed. <Case of FIG. 3C> In this case, “vertical printing” and “vertical writing” are set as the printing format, and the printing position of the page number is set to the upper side (upper left, upper center, upper right) of the document. ) Is specified. In this case, the printing position of the page number is automatically changed to the left (lower left, center left, upper left) position of the paper according to the printing direction of the document. When a printing operation is started in a state where such a printing format is set, first, a start page number is set (step S1), and then a step S2,
The process proceeds to step S17 via S6 and S16, and processing for dividing the document print start digit by two digits to the right is executed. That is, when ~ is designated as the print position of the page number (step S16), the page number is printed on the left side of the sheet, and one digit space is formed between the page number and the document. For this purpose, "2" is added to the document print start digit set in the format memory 15 in advance. Then, after setting the initial value "1" in the line counter 1 in step S18, if is specified as the print position of the page number (step S19), the document data of the first line is set to 90 °. The document is rotated and printed one line vertically from the document print start digit (step S21). If the print position of the page number is designated, step S2 is performed.
In step S21, the page number is rotated 90 ° and printed in vertical writing, and then the document data in the first line is printed in vertical writing from the document print start digit (step S21). When the first line of document data is printed in this way, the process proceeds to steps S25 to S27, where "1" is added to the line counter l, and the document data for one line is shifted from the document print starting digit to the first digit. Line counter l
Is repeated until the value of becomes the number of page lines ML / 2. Then, when printing up to the page line number ML / 2 is completed, printing of the next line is performed. If the printing position of the page number is designated (step S28), the page number is rotated by 90 °. After vertical writing is performed, the next one line of document data is printed in vertical writing (steps S29 and S30). Thereafter, the process proceeds to steps S34 to S36,
The operation of adding "1" to the line counter 1 and printing the document data for one line vertically from the document print start column is repeated until the value of the line counter 1 reaches the page line number ML. Then, when printing up to the page line number ML is completed, printing of the last line is performed. If the printing position of the page number is specified (step S37), the page number is rotated 90 ° and the vertical position is set. After performing the printing, the document data of the last line is printed in vertical writing (steps S38 and S39). When printing of one page is completed,
Proceeding to step S4, the above operation is repeated for each page while updating the page number until printing for all pages is completed. <Case of FIG. 3D> In this case, “vertical printing” and “vertical writing” are set as the printing format, and the printing position of the page number is positioned below the document (lower left, lower center, right). Below). In this case, the printing position of the page number is automatically changed to the right (lower right, center right, upper right) position of the paper according to the printing direction of the document. In this case, when the printing operation is started, step S
After setting the start page number at 1, the line counter 1 is set to "1" (step S18), and the document data of the first line is printed vertically (step S21). If the print position of the page number is designated (step S22), the document print end digit (the value obtained by adding the document print start digit and the line digit number MC) is temporarily shifted rightward by two digits. (Step S23) The page number is set to 9 at that position.
The document is rotated 0 ° and printed in vertical writing (step S24). Then, the document data is printed line by line until the value of the line counter 1 reaches the page line number ML / 2 (steps S25 to S2).
7) When the next one line of document data is printed (step S30), if the print position of the page number is specified (step S31), the document print end digit is temporarily shifted right by two digits. Then, the page number is rotated by 90 ° at that position and printed in vertical writing (step S33). Thereafter, the value of the row counter 1 is changed to the page row number M.
The document data is printed line by line until L is reached (steps S34 to S36). When the last line of the document is printed (step S39), if the print position of the page number is specified, The document print end digit is temporarily shifted rightward by two digits (step S41), and the page number is rotated by 90 ° at that position and printed in vertical writing (step S4).
2). When printing of one page is completed,
Proceeding to step S4, the same operation is repeated until printing for all pages is completed. As described above, "horizontal writing" in "vertical printing"
Alternatively, when the print format of “vertical writing” is set, the printing position of the page number set in advance is automatically determined as the printing position with respect to the direction of the document (horizontal writing and vertical writing). FIGS. 4A and 4B show a print example when "upper left" (the page number is "12") is designated as the page number print position. On the other hand, the same applies to the case where "horizontal printing" is set as the print format. In this case, a start page number is set in FIG. 2 (step S1),
Next, the printing process for one page (step S3) is executed. This printing process is performed in steps S6 to S4 described above.
Since it is the same as 2, the description is omitted below. When the printing for one page is completed, the printing process is executed for each page while updating the page number in step S5 until the printing for all pages is completed. In FIGS. 4C and 4D, the print format of “horizontal writing” or “vertical writing” is set in “horizontal printing”, and “top left” (the page number is “10”) is set as the page number printing position. 9) shows a print example in the case where "Yes" is specified. As described above, in the word processor of this embodiment, if the operator specifies the printing position of the page number in advance by using any of the following numbers, any printing format is set thereafter. However, the page number is always printed at a desired position on the document. Moreover, since the printing direction of the page numbers is always printed so as to match the printing direction of the characters on the document, the reading of the page numbers becomes easy. In the above embodiment, the printing position of the page number is selected from six types, but the number is arbitrary. Further, the present invention is also applicable to bag binding printing. According to the present invention, when a page number is added to a page data for printing, the printing position of the page number with respect to the printing direction of the page data is set to the left position with respect to the printing direction of the page data.
When any one of the middle and right relative printing positions is set arbitrarily, the above-described page data depends on whether the page data is printed vertically or horizontally on the printing paper. Since the page number printing position on the printing paper is automatically determined based on the relative printing position set above and printing is performed, the operator can set one desired page number printing position (page data printing position). As long as the relative printing position of any one of the left, middle, and right relative printing positions with respect to the orientation is set, the printing direction of the page data on the printing paper may be any case (ie, Irrespective of whether the printing is portrait printing or landscape printing), the page number can be reliably printed at the printing position as imagined by the operator.

【図面の簡単な説明】 【図1】実施例のワードプロセッサのブロック構成図で
ある。 【図2】実施例の印字動作を示すフローチャートであ
る。 【図3】印刷書式に応じて頁番号が印字される位置を説
明するための図である。 【図4】印刷書式に応じて頁番号が印字される位置を説
明するための図である。 【図5】従来例を説明する図である。 【符号の説明】 11 CPU 12 入力部 14 文書メモリ 15 書式メモリ 16 印字制御部 18 パターン回転部 19 プリンタ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a word processor according to an embodiment. FIG. 2 is a flowchart illustrating a printing operation of the embodiment. FIG. 3 is a diagram for explaining a position where a page number is printed according to a print format. FIG. 4 is a diagram for explaining a position where a page number is printed according to a print format. FIG. 5 is a diagram illustrating a conventional example. [Description of Signs] 11 CPU 12 Input unit 14 Document memory 15 Format memory 16 Print control unit 18 Pattern rotation unit 19 Printer

フロントページの続き (56)参考文献 特開 昭61−184629(JP,A) 特開 昭61−72328(JP,A) 特開 昭63−207676(JP,A) 特開 昭60−5385(JP,A) 特開 昭61−89078(JP,A) 特開 昭63−42885(JP,A) Newton別冊ワードプロセッサの すべて、(昭和57年5月20日発行) 教 育社 P.190−191 (58)調査した分野(Int.Cl.6,DB名) B41J 29/40 G06F 3/12Continuation of the front page (56) References JP-A-61-184629 (JP, A) JP-A-61-72328 (JP, A) JP-A-63-207676 (JP, A) JP-A-60-5385 (JP) , A) JP-A-61-89078 (JP, A) JP-A-63-42885 (JP, A) All of Newton's separate word processors (issued on May 20, 1982). 190-191 (58) Field surveyed (Int. Cl. 6 , DB name) B41J 29/40 G06F 3/12

Claims (1)

(57)【特許請求の範囲】 1.頁データを記憶する頁データ記憶手段と、 上記頁データに対する頁番号を記憶する頁番号記憶手段
と、 上記頁番号の印刷位置として上記頁データの印刷向きに
対する下側左(または上側左)の相対印刷位置、下側中
(または上側中)の相対印刷位置、あるいは下側右(ま
たは上側右)の相対印刷位置の何れかの相対印刷位置を
任意に設定する印刷位置設定手段と、 上記頁データの印刷用紙長手方向に対する縦向き印刷あ
るいは横向き印刷の何れかを任意に選択する印刷向き選
択手段と、 上記頁データを上記印刷用紙上に印刷する際、上記印刷
向き選択手段で選択された印刷向きが縦向き印刷かある
いは横向き印刷かを判別する判別手段と、 上記判別手段により縦向き印刷であると判別された際
は、上記印刷位置設定手段で設定された相対印刷位置に
基づいて上記印刷用紙長手方向の下端側左(または上端
側左)の印刷位置、下端側中(または上端側中)の印刷
位置、あるいは下端側右(または上端側右)の印刷位置
の内の何れかの印刷位置を頁番号印刷位置として決定
し、上記判別手段により横向き印刷であると判別された
際は、上記印刷位置設定手段で設定された相対印刷位置
に基づいて上記印刷用紙長手方向の右端側下(または左
端側下)の印刷位置、右端側中(または左端側中)の印
刷位置、あるいは右端側上(または左端側上)の印刷位
置の内の何れかの印刷位置を頁番号印刷位置として決定
する決定手段と、 上記印刷向き選択手段で選択された印刷向きが縦向き印
刷である場合には、上記頁データを上記印刷用紙長手方
向に対して縦向きに印刷すると共に、上記頁番号記憶手
段に記憶された頁番号を上記決定手段で決定された上記
印刷用紙長手方向の下端側左(または上端側左)、下端
側中(または上端側中)あるいは下端側右(または上端
側右)の内の何れか1つの頁番号印刷位置に縦向き印刷
する第1の印刷手段と、 上記印刷向き選択手段で選択された印刷向きが横向き印
刷である場合には、上記頁データを上記印刷用紙長手方
向に対して横向きに印刷すると共に、上記頁番号記憶手
段に記憶された頁番号を上記決定手段で決定された上記
印刷用紙長手方 向の右端側下(または左端側下)、右端
側中(または左端側中)あるいは右端側上(または左端
側上)の内の何れか1つの頁番号印刷位置に横向き印刷
する第2の印刷手段と、 を具備したことを特徴とする頁印刷装置。
(57) [Claims] Page data storage means for storing page data, and page number storage means for storing a page number for the page data
And the print position of the page number as the print direction of the page data
Lower left (or upper left) relative print position, lower middle
Relative print position (or upper middle) or lower right (or
Or upper right) relative print position
A print position setting means for arbitrarily setting the print data;
Print orientation selection to select any of
Selecting means for printing the page data on the printing paper;
Whether the printing direction selected by the direction selection means is portrait printing
Or when the printing is determined to be portrait orientation by the determining means.
Is the relative print position set by the print position setting means.
Based on the lower left side (or upper
Side left) printing position, bottom bottom (or top center) printing
Position or print position at the bottom right (or top right)
Any one of the print positions is determined as the page number print position
Then, it is determined that the printing is landscape printing by the determination unit.
The relative print position set by the print position setting means.
Based on the lower right end of the printing paper in the longitudinal direction (or left
The print position at the bottom edge and the mark at the right edge (or at the left edge)
Printing position, or printing position on the right end (or on the left end)
One of the print positions is determined as the page number print position
Determining means for performing the printing and the printing direction selected by the printing direction selecting means
If printing, print the page data on the printing paper
Print vertically, and store the page number
The page number stored in the column is determined by the determination means.
Bottom left (or top left), longitudinal bottom of print paper
Side middle (or top middle) or bottom right (or top
Vertical printing on any one of the page number printing positions
A first printing unit that performs printing, and a printing direction selected by the printing direction selection unit is a landscape mark.
If printing, print the page data on the printing paper
Print in the horizontal direction with respect to the
The page number stored in the column is determined by the determination means.
Printing paper longitudinal direction right end side of a direction (or left-side lower), the right end
Side middle (or left end middle) or right end upper (or left end)
Print sideways on any one of the page numbers
And a second printing means .
JP6087192A 1994-04-04 1994-04-04 Page printing device Expired - Fee Related JP2764790B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6087192A JP2764790B2 (en) 1994-04-04 1994-04-04 Page printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6087192A JP2764790B2 (en) 1994-04-04 1994-04-04 Page printing device

Publications (2)

Publication Number Publication Date
JPH07164716A JPH07164716A (en) 1995-06-27
JP2764790B2 true JP2764790B2 (en) 1998-06-11

Family

ID=13908131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6087192A Expired - Fee Related JP2764790B2 (en) 1994-04-04 1994-04-04 Page printing device

Country Status (1)

Country Link
JP (1) JP2764790B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6172328A (en) * 1984-09-17 1986-04-14 Casio Comput Co Ltd Index print system
JPS61184629A (en) * 1985-02-13 1986-08-18 Toshiba Corp Document forming device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Newton別冊ワードプロセッサのすべて、(昭和57年5月20日発行) 教育社 P.190−191

Also Published As

Publication number Publication date
JPH07164716A (en) 1995-06-27

Similar Documents

Publication Publication Date Title
JP2796628B2 (en) Printing device
JP2764790B2 (en) Page printing device
JP2764789B2 (en) Page printing device
JPH0790658B2 (en) Document data printing device
JPS62121065A (en) Character enlarging printer
JP2610405B2 (en) Document creation device
JPH0373374A (en) Image forming device
JPH08194590A (en) Display data processor
JP2848740B2 (en) Diagonal ruled line processing device
JP2840422B2 (en) Printing control device
JP2700001B2 (en) Character data output device
JP2799162B2 (en) Document creation device
JP2779157B2 (en) Document information processing device
JPH0756623B2 (en) Document processor
JP2940140B2 (en) Document data processing device
JP2755589B2 (en) Document creation device
JP2969019B2 (en) Slip printer for card data entry
JPH0574474B2 (en)
JPH059196Y2 (en)
JPS63259716A (en) Chinese style printing device
JP3026992B2 (en) Display control method and device
JP3168744B2 (en) Printing device
JPH0573562A (en) Document editor
JPH0535734A (en) Information processor
JPH0326576A (en) Printing method for form sheet by page printer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees