JP3900647B2 - Document processing device - Google Patents

Document processing device Download PDF

Info

Publication number
JP3900647B2
JP3900647B2 JP01014298A JP1014298A JP3900647B2 JP 3900647 B2 JP3900647 B2 JP 3900647B2 JP 01014298 A JP01014298 A JP 01014298A JP 1014298 A JP1014298 A JP 1014298A JP 3900647 B2 JP3900647 B2 JP 3900647B2
Authority
JP
Japan
Prior art keywords
frame
character
line
data
tape
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
JP01014298A
Other languages
Japanese (ja)
Other versions
JPH11212746A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP01014298A priority Critical patent/JP3900647B2/en
Publication of JPH11212746A publication Critical patent/JPH11212746A/en
Application granted granted Critical
Publication of JP3900647B2 publication Critical patent/JP3900647B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、キーボード等の入力装置から入力した複数行に渡る文字等について任意の範囲で指定して枠を付与することが可能な文書処理装置に関し、特に、枠の開始位置が行頭に存在せず、また、枠の終了位置が行末に存在しない場合においても煩雑な操作を行うことなく、枠指定範囲に対応して文字等に枠を付与することが可能な文書処理装置に関するものである。
【0002】
【従来の技術】
従来より、キーボード等から入力された文字等を囲むように枠を形成して印字を行うことが可能な各種の印字装置等が提案されている。例えば、特開平5−88825号公報には、キーボード部から入力された文字等について、矩形状の罫線枠を設定する対角関係の始点と終点とを、ディスプレイに表示された始点に対応する文字と終点に対応する文字とで指示し、これらの2つの対角点で規定される罫線枠を形成することにより、複数行の印字文字を囲む矩形状の罫線枠を印字することが可能な印字装置が提案されている。
【0003】
かかる印字装置によれば、1行分の表示能力しか有しないディスプレイを使用した場合においても、複数行の文字を行方向へ順次表示する表示制御の制約を受けることなく、複数行の文字列を囲む罫線枠を印字することが可能となるものである。
【0004】
【発明が解決しようとする課題】
前記印字装置では複数行の文字列に対して罫線枠を印字形成するについて、罫線開始コードが指示された時点で罫線開始文字の罫線開始位置座標が取得されるとともに、改行コードが指示された時点で改行コード直前の文字のドットパターン領域の右下位置座標が取得され、また、罫線終了コードが指示された時点で罫線終了コード直前の文字のドットパターン領域の右下位置座標が取得され、更に、複数の右下位置座標の内x座標の最大座標とy座標の最小座標とから罫線終了位置座標が決定される。そして、前記のように取得された罫線開始位置座標から罫線開始基点座標が求められるとともに、罫線終了位置座標から罫線終了基点座標が求められ、これらの各罫線開始基点座標と罫線終了基点座標を相互に対角位置として罫線枠が文字列に印字形成される。
【0005】
しかしながら、前記印字装置においては、複数行の文字列の内最長の文字列を勘案しつつ、常に、罫線開始行の行頭と罫線終了行末とに基づいて罫線枠が形成されるものであり、複数の各行について任意の範囲で罫線枠を印字形成できるものではない。従って、例えば、行の途中から罫線の形成を開始したり、行の途中で罫線を終了するような罫線枠を形成することはできないものである。
【0006】
これより、前記印字装置では、行の途中から罫線の形成を開始したり、行の途中で罫線を終了するような罫線枠を形成しようとしても、常に、罫線開始行の行頭から罫線終了行の行末の範囲で罫線枠を形成することとなり、これでは、バリエーションに富んだ文書の作成を行うことはできない。
【0007】
本発明は前記従来の問題点を解消するためになされたものであり、枠の開始位置が行頭に存在せず、また、枠の終了位置が行末に存在しない場合においても煩雑な操作を行うことなく、枠指定範囲に対応して文字等に枠を付与することが可能であり、もってバリエーションに富んだ文書を作成することが可能な文書処理装置を提供することを目的とする。
【0008】
【課題を解決するための手段】
前記目的を達成するため本発明に係る文書処理装置は、文字等を入力する文字入力手段と、前記文字入力手段により入力された複数行の文字列に対して任意の範囲で枠を付与することを指示する枠指示手段と、前記枠指示手段を介して指示された範囲内における各行にて枠開始位置が行の行頭文字に対応するか、又は、枠終了位置が行の行末文字に対応するかを判断する判断手段と、前記判断手段により枠開始位置又は枠終了位置が前記各行の行頭文字又は行末文字に対応しないと判断された場合、前記枠開始位置に対応する文字が存在する行については枠開始位置に対応する文字を枠開始文字とし且つその行の行末に存在する文字を枠終了文字として枠を形成し、前記枠終了位置に対応する文字が存在する行についてはその行の行頭に存在する文字を枠開始文字とし且つ枠終了位置に対応する文字に対応する文字を枠終了文字として枠を形成する枠形成手段とを備えたことを特徴とする。
【0009】
また、前記枠形成手段は、枠開始位置及び枠終了位置に対応する文字が存在しない行については、その行の行頭に存在する文字を枠開始文字とし且つ行の行末に存在する文字を枠終了文字として枠を形成することを特徴とする。
【0010】
前記本発明の文書処理装置では、判断手段により枠開始位置又は枠終了位置が各行の行頭文字又は行末文字に対応しないと判断された場合、枠形成手段は、枠開始位置に対応する文字が存在する行については枠開始位置に対応する文字を枠開始文字とし且つその行の行末に存在する文字を枠終了文字として枠を形成し、また、枠終了位置に対応する文字が存在する行についてはその行の行頭に存在する文字を枠開始文字とし且つ枠終了位置に対応する文字に対応する文字を枠終了文字として枠を形成する。これにより、文字入力手段を介して入力された複数行の文字列に対して、枠指示手段により任意の範囲で枠を付与することを指示された場合においても、その指示範囲に的確に対応して文字等に枠を付与することが可能となる。これにより、複数行の文字列にフレキシブルに枠を付与してバリエーションに富んだ文書を作成することが可能となるものである。
【0011】
また、判断手段により枠開始位置又は枠終了位置が各行の行頭文字又は行末文字に対応しないと判断された場合に、前記枠指示手段を介して指示された範囲内における各行において枠開始位置及び枠終了位置に対応する文字が存在しない行については、枠形成手段によりその行の行頭に存在する文字を枠開始文字とし且つ行の行末に存在する文字を枠終了文字として枠が形成される。従って、枠開始位置及び枠終了位置に対応する文字が存在しない中間に存在する行については、その行頭と行末とに基づき枠が形成されることとなり、かかる中間的な行については部分的に強調して文書のバリエーションを増やすことが可能となる。
【0012】
ここに、前記枠形成手段は、前記判断手段を介して枠開始位置が枠指示手段により指示された範囲内にある1つの行の行頭文字に対応し、且つ、枠終了位置が他の行の行末文字に対応すると判断された場合、前記範囲内における最長行を検索するとともに、その最長行、前記1つの行及び他の行を包含するように枠を形成することが望ましい。
【0013】
前記構成によれば、枠指示手段を介して枠付与が指示された全ての行を囲むように枠を形成することが可能となる。
【0014】
【発明の実施の形態】
以下、本発明に係る文書処理装置を具体化した実施形態に基づき、図面を参照しつつ詳細に説明する。本実施形態は、アルファベット文字や記号などの多数のキャラクタを印刷テープに印刷可能なテープ印刷装置に本発明を適用した場合のものである。
【0015】
先ず、本実施形態に係るテープ印刷装置の概略構成について図1に基づき説明する。図1に示すように、テープ印刷装置1の本体フレーム2の前部にはキーボード3が配設され、キーボード3の後方で本体フレーム2内には印刷機構PMが配設され、またキーボード3の直ぐ後側には、入力した文字や記号を印刷イメージで表示可能な液晶ディスプレイ22が設けられている。このディスプレイ22には、縦方向に32ドット、横方向に121ドットで構成される表示画面を有している。ここで、符号4は、印刷機構PMに装着するテープカセットCSを着脱するときに、カバーフレーム6を開放する為のリリースボタンである。
【0016】
キーボード3には、アルファベットや数字や記号を入力する為の文字キー、文字修飾の種類や印刷文字サイズなどを含む各種書式情報の設定・変更を行う範囲を指定する範囲指定キー、書式設定の際に各種の書式情報の設定、変更を行うための罫線キー、フォントキー、サイズキー、幅キー、スタイルキー、リターンキー、カーソルを上下左右方向に移動させる為のカーソルキー、各種の設定処理を終了する確定キー、印刷を指令する印刷キー、各種処理等のキャンセルを行うキャンセルキー、電源をON・OFFする為の電源キーなどが設けられている。
【0017】
ここに、罫線キーは文字列等の周囲を囲むように枠を指定するためのキー、フォントキーは複数の各種文字フォント(ゴシック系書体、明朝体系書体等)から所望の文字フォントを選択するためのキー、サイズキーは複数の各種文字サイズ(6ポイント、10ポイント、13ポイント、19ポイント、26ポイント、38ポイント、44ポイント等)から所望の文字サイズを選択するためのキー、幅キーは複数の各種文字幅(半角、全角、倍角等)から所望の文字幅を選択するためのキー、スタイルキーは複数の各種文字スタイル(アンダーライン、影付文字、ボールド、イタリック、アウトライン(白抜き文字)等)から所望の文字スタイルを選択するためのキーである。
【0018】
次に、印刷機構PMについて、図2に基いて簡単に説明すると、印刷機構PMに着脱自在に矩形状のテープカセットCSが装着されており、このテープカセットCSには、ラミネートフィルムテープ7が巻装されたテープスプール8と、印字リボン9が巻装されたリボン供給スプール10と、この印字リボン9を巻取る巻取りスプール11と、ラミネートフィルムテープ7と同一幅を有する両面テープ12が剥離紙を外側にして巻装された供給スプール13と、これらラミネートフィルムテープ7と両面テープ12とを接合させる接合ローラ14とが回転自在に設けられている。
【0019】
前記ラミネートフィルムテープ7と印字リボン9とが重なる位置には、サーマルヘッド15が立設され、これらラミネートフィルムテープ7と印字リボン9とをサーマルヘッド15に押圧するプラテンローラ16と、ラミネートフィルムテープ7と両面テープ12とを接合ローラ14に押圧して印刷テープ19を作成する送りローラ17とは、本体フレーム2に回動自在に枢着された支持体18に回転可能に枢支されている。このサーマルヘッド15には、128個の発熱素子からなる発熱素子群が上下方向に列設されている。
【0020】
従って、テープ送りモータ45(図3参照)の所定回転方向への駆動により、接合ローラ14と巻取りスプール11とが所定回転方向に夫々同期して駆動されながら、サーマルヘッド15の発熱素子群に通電されたとき、ラミネートフィルムテープ7上には複数のドット列により文字やバーコードが印字され、しかもラミネートフィルムテープ7は両面テープ12を接合した状態で印刷テープ19としてテープ送り方向Aにテープ送りされ、図1、図2に示すように、本体フレーム2の外部に繰出される。尚、印刷機構PMの詳細については、例えば、特開平2−106555号公報に記載された機構と同一であるで、ここではその詳細な説明を省略する。
【0021】
次に、この印刷テープ19を自動的に切断する切断装置30について、図2に基いて簡単に説明すると、前記テープカセットCSの左側に対応する本体フレーム2の直ぐ内側には、板状の補助フレーム31が立設され、この補助フレーム31に固定刃32が上向きに固着されている。補助フレーム31に固着された左右方向向きの枢支軸33には、前後方向に延びる操作レバー34の前端近傍部が回動可能に枢支され、その操作レバー34の枢支軸33より前側に対応する部位において、可動刃35が前記固定刃32と対向して取付けられている。また、操作レバー34の後端部は、切断用モータ46(図3参照)に連結された揺動駆動機構(図示略)により上下揺動可能に構成され、常には、可動刃35が固定刃32から離間した状態で保持されている。
【0022】
そして、サーマルヘッド15により印刷された印刷テープ19は、テープカセットCSから固定刃32と可動刃35との間を通って本体フレーム2外に延びているので、切断信号により駆動された切断用モータ46により、揺動駆動機構を介して操作レバー34の後端部が上下揺動され、可動刃35が固定刃32に接近して、これら両刃32・35で印刷テープ19が切断される。
【0023】
ところで、前記テープカセットCSから繰出される印刷テープ19として、テープ幅を6mm、9mm、12mm、18mm、24mmとする5種類が準備されており、これらテープカセットCSの底壁部には、これら5種類のテープ幅の何れかを検知する為に、4つの突出爪の有無を組合せた突出片20が設けられている。そして、このテープカセットCSの下側を支持する本体フレーム2には、この突出片20の突出爪の組合せからテープ幅を検知するカセットセンサ42(図3参照)が取付けられている。即ち、このカセットセンサ42は、突出片20を構成する突出爪の組合せにより、例えば、テープ幅が24mmのときには「0100」のカセット信号を出力し、またテープ幅が12mmのときには「1100」のカセット信号を出力するとともに、テープカセットCSが装着されていないときには、「0000」のカセット信号を出力する。
【0024】
次に、テープ印刷装置1の制御系について図3に基づき説明する。図3はテープ印刷装置1の制御系を示すブロック図である。
【0025】
図3において、制御装置Cの入出力インターフェース50には、キーボード3と、カセットセンサ42と、液晶ディスプレイ(LCD)22に表示データを出力する為のビデオRAM24を有するディスプレイコントローラ(LCDC)23と、警告用ブザー43の為の駆動回路44と、サーマルヘッド15を駆動する為の駆動回路47と、テープ送りモータ45を駆動する為の駆動回路48と、切断用モータ46を駆動する為の駆動回路49とが夫々接続されている。
【0026】
制御装置Cは、CPU52と、このCPU52にデータバスなどのバス51を介して接続された入出力インターフェース50、表示用CG(キャラクタジェネレータ)ROM53、印刷用CG(キャラクタジェネレータ)ROM54、ROM55及びRAM60とから構成されている。
【0027】
表示用CGROM(フォント記憶手段に相当する)53には、アルファベット文字や記号などの多数のキャラクタの各々に関して、表示用ドットパターンデータが、各フォント(ゴシック系書体、明朝系書体など)毎に6種類(7、10、16、21、32、32BIG ドット)の表示文字サイズ分、コードデータに対応させて格納されている。ここで、32BIG ドットの表示文字サイズは、アルファベットの大文字のようにベースラインの下側に食み出さない文字列のときに、32ドット文字サイズより大きく表示できる表示文字サイズである。
【0028】
印刷用CGROM54には、アルファベット文字や記号などの多数のキャラクタの各々に関して、印刷用ドットパターンデータが、各フォント毎に7種類(6ポイント:16ドット、10ポイント:24ドット、13ポイント:32ドット、19ポイント:48ドット、26ポイント:64ドット、38ポイント:96ドット、44ポイント:96BIG ドット)の印刷文字サイズ分、コードデータに対応させて格納されている。ここで、96BIG ドットの印刷文字サイズは、アルファベットの大文字のようにベースラインの下側に食み出さない文字列のときに、96ドット文字サイズより大きく印刷できる文字サイズである。
【0029】
ROM55には、後述する枠形成処理プログラム、キーボード3から入力された文字や数字や記号などのキャラクタのコードデータに対応させてディスプレイコントローラ23を制御する表示駆動制御プログラム、文字や記号にアンダーライン、影付き文字、ボールド、イタリック、アウトライン(白抜き文字)、影文字などの各種の文字修飾を施す文字修飾制御プログラム、印刷データイメージバッファ67のデータを順次読出してサーマルヘッド15やテープ送りモータ45を駆動する印刷駆動制御プログラム、テープ印刷制御の制御プログラムなどが格納されている。
【0030】
このROM55には、印刷文字サイズとそのサイズで印刷するときの表示文字サイズとを対応させた文字サイズ変換テーブル(図示せず)が格納されている。また、ROM55には、図示しないが、7種類の印刷文字サイズと各印刷文字サイズに関する一連の文字や記号のドットパターンデータが格納されている印刷用CGROM54の先頭アドレス(インデックスアドレス)とを対応させた印刷文字サーチテーブルと、このインデックスアドレスと各文字や記号の印刷用CGROM54における格納先頭アドレスとを対応させた印刷文字インデックステーブルとが格納されている。
【0031】
更に、ROM55には、図示しないが、6種類の表示文字サイズと各表示文字サイズに関する一連の文字や記号のドットパターンデータが格納されている表示用CGROM53の先頭アドレス(インデックスアドレス)とを対応させた表示文字サーチテーブルと、このインデックスアドレスと各文字や記号の表示用CGROM53における格納先頭アドレスとを対応させた表示文字インデックステーブルとが格納されている。
【0032】
RAM60には、テキストメモリ61、印刷パラメータメモリ62、ポインタメモリ63、表示文字サイズメモリ64、配置位置情報メモリ65、表示データイメージバッファ66、印刷データイメージバッファ67、フラグメモリ68、その他CPU52の演算結果を一時的に格納するワークメモリ等が設けられている。
【0033】
ここに、テキストメモリ61にはキーボード3から入力された文書データや書式情報データが格納される。例えば、キーボード3の数字キーにより数字データ「1、2、3、4、5、6、8」がこの順序で入力されるとともに、数字「3」及び「4」の後に改行データが挿入されて3行のテキストデータ(第1行は数字「1」〜「3」、第2行は数字「4」と「5」、第3行は数字「6」〜「8」からなる)が作成され、また、数字「2」〜「7」について枠指定が行われている場合には、図4に示すように、テキストメモリ61の先頭位置にはテキスト全体の書式情報(フォント、サイズ等)、数字データ「2」の前位置に枠開始データ、数字データ「3」の後位置に改行データ、数字データ「5」の後位置に改行データ、数字データ「7」の後位置に枠終了データが、それぞれ格納されることとなる。
【0034】
印刷パラメータメモリ62には、文字等を印刷テープ19に印刷する上で必要な各種のデータが格納される。ポインタメモリ63には、各種のポインタ値、例えば、テキストポインタ(TP)値、キャラクタポインタ(CP)値、ラインポインタ(LP)値、枠ポインタ(FP)値、カーソルポインタ値等が格納される。文字サイズメモリ64には文字サイズのデータが格納される。配置位置情報メモリ65には、文字、記号や枠のイメージデータを表示データイメージバッファ66、印刷データイメージバッファ67上に配置する際に必要な配置情報が格納される。表示データイメージバッファ66には、入力された複数の文字や記号の表示用ドットパターンデータが合成して格納され、また、印刷データイメージバッファ67には、印刷に供する複数の文字や記号の印刷用ドットパターンデータが合成して印刷用ドットイメージデータとして格納される。フラグメモリ68には、複数行に渡る文字列に対して1つの枠が形成される場合にONされる複数行枠フラグ等の各種のフラグが設けられる。
【0035】
次に、テープ印刷装置1の制御装置Cで行われる枠形成処理について図5〜図14に基づき説明する。ここに、図5はメインプログラムのフローチャート、図6は編集画面表示処理プログラムのフローチャート、図7は範囲設定処理プログラムのフローチャート、図8は書式設定処理プログラムのフローチャート、図9は印刷処理プログラムのフローチャート、図10は配置情報作成処理プログラムのフローチャート、図11は文字情報作成処理プログラムのフローチャート、図12は枠情報作成処理プログラムのフローチャート、図13は枠分割処理プログラムのフローチャート、図14は枠配置処理プログラムのフローチャートである。
【0036】
先ず、図5のメインプログラムのフローチャートにおいて、ステップ(以下、Sと略記する)1でテープ印刷装置1の初期化処理(RAM60等の初期化処理)が行い、S2にて液晶ディスプレイ22に文書編集画面を表示する編集画面表示処理(後述する)を行う。
【0037】
S3では、キーボード3上のキーからキー入力があるかどうか判断し、キー入力があるまで待機する。キー入力があった場合(S3:YES)には、S4においてそのキー入力が範囲設定キーからのキー入力であるかどうか判断する。範囲設定キーからのキー入力である場合(S4:YES)には、S5にて範囲設定処理(後述する)を行うとともに、S6にて書式設定処理が行った後S2に戻る。一方、範囲指定キーからのキー入力でない場合(S4:NO)には、S7で印刷キーからのキー入力であるかどうか判断する。印刷キーからのキー入力である場合(S7:YES)には、印刷テープ19に文字、枠等の印刷を行った(S8)後S2に戻る。これに対して、印刷キーからのキー入力でない場合(S7:NO)には、S9において操作されたキーに対応する処理を行った後S2に戻る。
【0038】
ここで、前記S2において行われる編集画面表示処理について図6のフローチャートに基づき説明する。図6において、先ず、S10にて、液晶ディスプレイ22に表示される文字、枠について表示データイメージバッファ66上における配置情報を作成する。尚、配置情報作成処理については後述する。続くS11では、文字、枠の配置情報の全ての座標データ、長さデータを表示用に変換し、また、S12では、かかる座標データ、長さデータに基づき文字、枠のイメージデータを作成するとともに、表示データイメージバッファ66に格納する。この後、S13において、表示データイメージバッファ66の内容を液晶ディスプレイ22上に表示する。
【0039】
また、前記S5における範囲設定処理について図7のフローチャートに基づき説明する。図7において、先ず、S14で、カーソルポインタ値により指示されるテキストメモリ61におけるカーソル位置に、範囲の先頭位置と範囲の最終位置とを設定する。この後、前記編集画面表示処理(S2、S10〜S13参照)を行う(S15)。S16では、範囲の先頭位置と最終位置に該当する範囲を液晶ディスプレイ22上で反転表示する。S17ではキーボード3からのキー入力を待って、キー入力があった場合(S17:YES)には、カーソルキーの左右キーからのキー入力かどうかを判断する(S18)。左右キーからのキー入力である場合(S18:YES)には、左右キーにより範囲変更された範囲の先頭位置と最終位置を保存した後S20に移行する。一方、左右キーからのキー入力でない場合(S18:NO)には、直ちにS20に移行する。S20では、リターンキーからのキー入力であるかどうか判断され、リターンキーからのキー入力である場合(S20:YES)には処理を終了して前記S6に移行し、また、リターンキーからのキー入力でない場合(S20:NO)にはS15に戻る。
【0040】
更に、前記S6において行われる書式設定処理について図8のフローチャートに基づき説明する。図8において、先ず、S21にてテキストメモリ61に格納されているテキストデータをワークメモリに退避し、S22では、前記と同様の編集画面表示処理を行う。続く、S23においては、書式設定を行う範囲の先頭位置と最終位置に該当する範囲を液晶ディスプレイ22上で反転表示する。S24ではキーボード3からのキー入力を待って、キー入力があった場合(S24:YES)には、そのキー入力が罫線キーからのキー入力であるかどうか判断する(S25)。罫線キーからのキー入力である場合(S25:YES)には、前記範囲内の罫線の変更を行う(S26)。サイズキーからのキー入力である場合(S25:NO、S27:YES)には、前記範囲内の文字サイズの変更を行う(S28)。フォントキーからのキー入力である場合(S25:NO、S27:NO、S29:YES)には、前記範囲内の文字フォントの変更を行う(S30)。キャンセルキーからのキー入力である場合(S25:NO、S27:NO、S29:NO、S31:YES)には、前記S21でワークメモリに退避したテキストメモリ61のテキストデータを復帰した(S32)後処理を終了して前記S2に戻る。また、キャンセルキーからのキー入力でない場合(S31:NO)には、リターンキーからのキー入力であるかどうか判断し(S33)、リターンキーからのキー入力であれば(S33:YES)処理を終了する一方、リターンキーからのキー入力でない場合(S33:NO)にはS22に戻る。
【0041】
また、前記S8にて行われる印刷処理について図9のフローチャートに基づき説明する。印刷処理が開始されると、先ず、S34にて印刷機構PMにより印刷される文字、枠について印刷データイメージバッファ67上における配置情報を作成する。尚、配置情報作成処理は、前記S10で行われる処理と同様の処理であり、これについては後述する。続くS35では、文字、枠の配置情報の全ての座標データ、長さデータを印刷用に変換するとともに、かかる座標データ、長さデータに基づき文字、枠のイメージデータを作成し、印刷データイメージバッファ67に格納する。そして、S36において、印刷データイメージバッファ67の内容を印刷機構PMを介してテープに印刷する。
【0042】
次に、前記S10、S34において行われる配置情報作成処理について図10〜図14に基づき説明する。配置情報作成処理が開始されると、先ず、文字情報作成処理(S37)を行う。ここで、かかる文字情報作成処理について図11に基づき説明する。
【0043】
図11において、先ず、S42では、ポインタメモリ63におけるテキストポインタTPをテキストメモリ61のテキストの先頭位置に設定し、キャラクタポインタCPを配置位置情報メモリ65における文字配置情報エリア(図15参照)の先頭位置に設定し、ラインポインタLPを配置位置情報メモリ65における行配置情報エリア(図16参照)の先頭位置に設定し、また、枠ポインタFPを配置位置情報メモリ65における罫線配置情報エリア(図17参照)の先頭位置に設定する。
【0044】
続く、S43では、テキスト情報が終了したかどうか判断し、終了していれば(S43:YES)、処理を終了する一方、終了していなければ(S43:NO)、S44に移行する。S44では、テキストポインタTPにより指示されたデータが枠開始データであるかどうかに基づき、枠開始指定されているかどうか判断される。枠開始指定されている場合(S44:YES)には、枠開始データの次に存在する文字を枠開始文字として設定した(S45)後S54へ移行する。テキストポインタTPにより指示されたデータが枠開始データでない場合(S44:NO)には、テキストポインタTPにより指示されたデータが枠終了データかどうかに基づき、枠終了指定されているかどうか判断される(S46)。
【0045】
枠終了指定されている場合(S46:YES)には、枠終了データの前に存在する文字を枠終了文字として設定した(S47)後、枠ポインタFPを次の枠情報に設定する(S48)。この後、S54へ移行する。また、S46において、枠終了指定されていない場合(S46:NO)には、テキストポインタTPにより指示されたデータが改行データであるかどうかに基づき、改行指定されているかどうかを判断する(S49)。改行指定されている場合(S49:YES)には、配置位置情報メモリ65における行配置情報エリアにて、1行目の文字列について配置情報を格納するためのエリアを確保して登録する(S50)。このとき、テキストメモリ61の書式情報に行書式情報が設定されている場合には、図16に示すように、1行目の文字列について行書式情報を登録する。この後、ラインポインタLPを次の行情報に設定し(S51)、S54に移行する。
【0046】
S49において、改行指定されていない場合(S49:NO)には、配置位置情報メモリ65の文字配置情報エリアに文字コードを登録する(S52)。このとき、テキストメモリ61の書式情報に格納されている文字書式情報がコピーされ、図15に示すように、文字コードに対応して書式情報として格納される。S53では、キャラクタポインタCPを文字配置情報エリアにおける次の文字情報に設定し、更に、テキストポインタTPを次のテキスト位置に設定した(S54)後S43に戻る。
【0047】
前記した文字情報作成処理により、テキストメモリ61に格納された各文字について、図15に示す文字配置情報エリアにおける文字コードと書式情報が作成され、また、テキストを構成する各行について、行配置情報エリアにて各行の配置情報を格納するためのエリアが確保されるとともに、各行につき行書式情報が登録される(図16参照)。更に、枠については、枠開始文字と枠終了文字(図17参照)とが設定される。
【0048】
ここで、図10のフローチャートに戻って説明を続けると、前記S37において文字情報作成処理(S42〜S54)が行われた後、続くS38にて枠情報作成処理が行われる。かかる枠情報作成処理について、図12、図13に基づき説明する。図12において、先ず、枠ポインタFPを配置位置情報メモリ65における罫線配置情報エリアの先頭位置に設定する(S55)。次に、テキストメモリ61を参照して枠情報が終了したかどうか判断する(S56)。枠情報が終了した場合(S56:YES)には処理を終了する一方、枠情報が終了していない場合(S56:NO)には、枠が1行枠であるかどうかを判断する(S57)。かかる判断は、枠開示データと枠終了データとが同一行に存在するかどうかにより行われる。
【0049】
枠が1行枠である場合(S57:YES)には処理を終了するが、一方、枠が1行枠でない場合(S57:NO)には、枠開始位置が行頭に存在するかどうかを判断する(S58)。枠開始位置が行頭に存在する場合(S58:YES)には、枠終了位置が行末に存在するかどうかを判断する(S59)。枠終了位置が行末に存在する場合(S59:YES)には、フラグメモリ68に設けられた複数行枠フラグをONにセットした(S60)後処理を終了する。ここに、複数行枠とは、テキストの複数行に渡って形成される1つの枠を意味する。
【0050】
前記S58にて枠開始位置が行頭に存在しない場合(S58:NO)、及び、枠終了位置が行末に存在しない場合(S59:NO)には、枠分割処理を行った(S61)後処理を終了する。この場合は、枠が行の途中から開始されるとともに、枠が行の途中で終了する場合に該当する。ここで、S61にて行われる枠分割処理について、図13に基づき説明する。図13において、先ず、ラインポインタLPを行配置情報エリアの1行目に設定する(S62)。そして、ラインポインタLP値が枠終了行のLP値よりも大きいかどうかを判断する(S63)。かかる判断は、枠終了データが1行目以降の行に存在するかどうかを判断することにより行われる。S63における判断がYESの場合には処理を終了する一方、その判断がNOの場合には、ラインポインタLP値が枠開始行のLP値と等しいかどうかを判断する(S64)。かかる判断は、ラインポインタLPにより指示されている行に枠開始データがあるかどうかを判断することにより行われる。S64における判断がYESの場合、枠開始文字をそのままに設定した状態で、枠終了文字をその行の行末に設定する(S65)。この後、S69に移行する。
【0051】
また、S64における判断がNOの場合には、ラインポインタLP値が枠最終行のLP値と等しいかどうかを判断する(S66)。かかる判断は、ラインポインタLPにより指示されている行に枠終了データがあるかどうかを判断することにより行われる。S66における判断がYESの場合、枠開始文字を行頭に設定するとともに、枠終了文字をそのまま設定した状態で、罫線配置情報エリアに枠の追加登録を行う(S67)。この後、S69に移行する。
【0052】
一方、S66における判断がNOの場合には、枠開始文字を行頭に設定するとともに、枠終了文字を行末に設定した状態で、罫線配置情報エリアに枠を追加登録する(S68)。この後、S69においてラインポインタLPの更新を行った後S63に戻る。
【0053】
ここで、再度図10のフローチャートに戻って説明を続けると、前記S38にて枠情報作成処理(S55〜S69)が行われた後、続くS39において文字サイズ計算処理を行い、更に、S40にて文字配置計算処理を行う。かかる文字サイズ計算処理及び文字配置計算処理は、図15に示す文字配置情報エリアにて、テキストメモリ61の書式情報をコピーしてなる書式情報に存在する文字サイズを取得するとともに、その取得された文字サイズに基づきドッパターンデータを表示データイメージバッファ66、印刷データイメージバッファ67上に配置するに際して、ドットパターンデータを配置すべきエリアの左下位置の座標データを計算することにより行われる。この時点で、テキストメモリ61に格納された各文字について、図15に示すように、ドットパターンデータ配置エリアの左下位置の座標データが取得されるものである。また、前記のように各文字について文字配置情報が取得されることに基づき、テキストを構成する各行について、図16に示すように、行配置情報が計算される。この行配置情報も文字配置情報と同様、各行の配置エリアの左下位置の座標データで取得される。
【0054】
ここに、図15に示す文字配置情報エリアにおける各文字の座標データ、及び、図16に示す行配置情報エリアにおける各行の座標データは、図4に示すテキストメモリのテキスト内容に合致している。即ち、テキストメモリ61には、数字「1」、枠開始データ、数字「2」、数字「3」、改行データ、数字「4」、数字「5」、改行データ、数字「6」、数字「7」、枠終了データ、数字「8」がそれぞれこの順序で格納されていることから、数字「1」〜「8」についてはそれぞれについてドットパターンデータの配置エリアの左下位置の座標データが登録されており、また、各行の配置情報については2つの改行データの存在に基づき3行のテキストが存在することに基づき各行(1行目〜3行目)に対してその配置エリアの左下位置の座標データが登録されている。
【0055】
また、前記S40の後、これに続くS41においては枠配置計算処理を行う。ここで、枠配置計算処理について図14に基づき説明する。図14において、先ず、枠ポインタFPを罫線配置情報エリアの先頭位置に設定した(S70)後、枠情報が終了したかどうか判断する(S71)。枠情報が終了した場合(S70:YES)には処理を終了する一方、枠情報が終了していない場合(S70:NO)には、複数行枠フラグがONにセットされているかどうかを判断する(S72)。複数行枠フラグがONにセットされていない場合(S72:NO)には、枠開始文字の左下位置を枠の左下の位置(LLX、LLY)とし(S73)、また、枠終了文字の右上位置を枠の右上位置(RUX、RUY)として(S74)、S78に移行する。
【0056】
これに対して、S72において複数行枠フラグがONにセットされている場合(S72:YES)には、最終行における行頭文字の左下の位置を枠の左下の位置(LLX、LLY)とし(S75)、次いで、先頭行の行上端のY位置を枠の右上のY位置(RUX、RUY)とし(S76)、更に、最も長い行における行末文字の右側のX位置を枠の右上のX位置(RUX)とする(S77)。この後S78に移行する。
【0057】
S78では、前記各S73〜S77にて取得された座標データを枠配置情報として罫線配置情報エリアに登録する。S79では、枠ポインタFPを更新し、S71に戻る。
【0058】
ここで、テキストメモリ61には、前記の場合と同様、図4に示すテキスト内容が格納されているものとして、罫線配置情報の内容につき図17に基づき説明する。テキストメモリ61のテキスト内容に基づけば枠開始データ及び枠終了データの双方が行の途中に存在していることから、枠情報作成処理におけS58及びS59における判断がいずれもNOとなり、また、枠分割処理におけるS65、S68及びS67の処理を介して1行目〜3行目のそれぞれについて3つの枠が形成される。そして、枠配置処理におけるS73、74を介して、図17に示すように、1行目の数字「2」の左下位置の座標データ(LLX1、LLY1)、及び、数字「3」の右上位置の座標データ(RUX1、RUY1)により規定される第1枠が数字「2」、「3」の周囲に形成される。また、同様に、2行目の数字「4」の左下位置の座標データ(LLX2、LLY2)、及び、数字「5」の右上位置の座標データ(RUX2、RUY2)により規定される第2枠が数字「4」、「5」の周囲に形成される。更に、同様に、3行目の数字「6」の左下位置の座標データ(LLX3、LLY3)、及び、数字「7」の右上位置の座標データ(RUX3、RUY3)により規定される第3枠が数字「6」、「7」の周囲に形成される。
【0059】
前記したテキストメモリ61のテキストデータ、文字配置情報エリアの文字配置データ、行配置情報エリアの行配置データ、罫線配置情報エリアの罫線配置データに基づいて、印刷機構PMを介して印刷テープ上に文字の印刷を行うと、図18に示すように、1行目の数字列「1」〜「3」の内数字「2」、「3」に枠が形成され、2行目の数字列「4」、「5」の全体に枠が形成され、また、3行目の数字列「6」〜「8」の内数字「6」と「7」に枠が形成された印刷結果が得られるものである。
【0060】
以上詳細に説明した通り本実施形態に係るテープ印刷装置1では、テキストメモリ61に格納されたテキストを構成する各文字、行、枠について、配置情報作成処理(S10、S34、S37〜S41)を行うことにより、文字配置情報、行配置情報、及び、枠配置情報を作成し、また、文字に対して枠を形成するについて、枠開始位置又は枠終了位置が各行の行頭文字又は行末文字に対応しないと判断された場合(S58:NO、S59:NO)、枠開始位置に対応する文字が存在する行については枠開始位置に対応する文字を枠開始文字とし且つその行の行末に存在する文字を枠終了文字として枠を形成し(S65)、また、枠終了位置に対応する文字が存在する行についてはその行の行頭に存在する文字を枠開始文字とし且つ枠終了位置に対応する文字に対応する文字を枠終了文字として枠を形成し(S67)、更に、枠開始位置又は枠終了位置が各行の行頭文字又は行末文字に対応しないと判断された場合(S64:NO、S66:NO)に、枠開始位置及び枠終了位置に対応する文字が存在しない行については、その行の行頭に存在する文字を枠開始文字とし且つ行の行末に存在する文字を枠終了文字として枠を形成する(S68)。
【0061】
これに基づき、キーボード3を介して入力された複数行の文字列に対して、任意の範囲で枠を付与することを指示された場合においても、その指示範囲に的確に対応して文字等に枠を付与することができる。また、複数行の文字列にフレキシブルに枠を付与してバリエーションに富んだ文書を作成することができるものである。
【0062】
また、枠開始位置が指示された範囲内にある1つの行の行頭文字に対応し、且つ、枠終了位置が他の行の行末文字に対応すると判断された場合(S58:YES、S59:YES)、複数行枠フラグをONにセットし、前記範囲内における最長行を検索するとともに、その最長行、前記1つの行及び他の行を包含するように枠を形成する(S75〜S77)ように構成したので、かかる場合には枠付与が指示された全ての行を囲むように枠を形成することが可能となる。
【0063】
尚、本発明は前記実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で種々の改良、変形が可能であることは勿論である。例えば、前記実施形態では、複数行の文字列に対して枠を任意に形成する場合を例にとって説明したが、例えば、文字列に対して任意に網掛等の修飾を施す場合についても適用できることは明らかである。
【0064】
【発明の効果】
以上説明した通り本発明は、枠の開始位置が行頭に存在せず、また、枠の終了位置が行末に存在しない場合においても煩雑な操作を行うことなく、枠指定範囲に対応して文字等に枠を付与することが可能であり、もってバリエーションに富んだ文書を作成することが可能な文書処理装置を提供することができる。
【図面の簡単な説明】
【図1】 テープ印刷装置の斜視図である。
【図2】 テープカセットを装着した印刷機構の概略平面図である。
【図3】 テープ印刷装置の制御系のブロック図である。
【図4】 テキストメモリの内容を模式的に示す説明図である。
【図5】 メインプログラムのフローチャートである。
【図6】 編集画面表示処理プログラムのフローチャートである。
【図7】 範囲設定処理プログラムのフローチャートである。
【図8】 書式設定処理プログラムのフローチャートである。
【図9】 印刷処理プログラムのフローチャートである。
【図10】 配置情報作成処理プログラムのフローチャートである。
【図11】 文字情報作成処理プログラムのフローチャートである。
【図12】 枠情報作成処理プログラムのフローチャートである。
【図13】 枠分割処理プログラムのフローチャートである。
【図14】 枠配置処理プログラムのフローチャートである。
【図15】 文字配置情報エリアを模式的に示す説明図である。
【図16】 行配置情報エリアを模式的に示す説明図である。
【図17】 罫線配置情報エリアを模式的に示す説明図である。
【図18】 印刷結果を示す説明図である。
【符号の説明】
1 テープ印刷装置
3 キーボード
22 液晶ディスプレイ
52 CPU
55 ROM
60 RAM
61 テキストメモリ
62 印刷パラメータメモリ
63 ポインタメモリ
64 表示文字サイズメモリ
65 配置位置情報メモリ65
66 表示データイメージバッファ
67 印刷データイメージバッファ
68 フラグメモリ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a document processing apparatus capable of assigning a frame by designating an arbitrary range of characters and the like input from an input device such as a keyboard, and in particular, the start position of the frame should be at the beginning of the line. In addition, the present invention relates to a document processing apparatus that can add a frame to a character or the like corresponding to a frame designation range without performing a complicated operation even when the end position of the frame does not exist at the end of the line.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, various printing apparatuses that can form a frame so as to surround characters and the like input from a keyboard or the like and perform printing have been proposed. For example, in Japanese Patent Laid-Open No. 5-88825, for a character or the like input from a keyboard unit, a diagonal start point and an end point for setting a rectangular ruled line frame are displayed as characters corresponding to the start point displayed on the display. And a character corresponding to the end point, and by forming a ruled line frame defined by these two diagonal points, it is possible to print a rectangular ruled line frame that encloses multiple lines of print characters A device has been proposed.
[0003]
According to such a printing apparatus, even when a display having a display capability for only one line is used, a character string of a plurality of lines can be displayed without being restricted by display control for sequentially displaying a plurality of lines of characters in the line direction. The enclosing ruled line frame can be printed.
[0004]
[Problems to be solved by the invention]
In the printing apparatus, when a ruled line frame is printed on a character string of a plurality of lines, when the ruled line start code is instructed, the ruled line start character coordinates of the ruled line start character are acquired and the line feed code is specified. The lower right position coordinate of the dot pattern area of the character immediately before the line feed code is acquired, and when the ruled line end code is specified, the lower right position coordinate of the dot pattern area of the character immediately before the ruled line end code is acquired. The ruled line end position coordinate is determined from the maximum coordinate of the x coordinate and the minimum coordinate of the y coordinate among the plurality of lower right position coordinates. Then, the ruled line start base coordinates are obtained from the ruled line start position coordinates obtained as described above, and the ruled line end base coordinates are obtained from the ruled line end position coordinates, and the ruled line start base coordinates and the ruled line end base coordinates are mutually obtained. As a diagonal position, a ruled line frame is printed on the character string.
[0005]
However, in the printing apparatus, the ruled line frame is always formed based on the beginning of the ruled line start line and the end of the ruled line end while taking into account the longest character string among the multiple lines of character strings. It is not possible to print and form a ruled line frame in an arbitrary range for each line. Therefore, for example, it is impossible to form a ruled line frame that starts forming a ruled line in the middle of a line or ends a ruled line in the middle of a line.
[0006]
Thus, in the printing apparatus, even if an attempt is made to form a ruled line frame that starts forming a ruled line in the middle of a line or ends a ruled line in the middle of a line, the printing device always starts from the beginning of the ruled line start line. A ruled line frame is formed in the range at the end of the line, and this makes it impossible to create a document rich in variations.
[0007]
The present invention has been made to solve the above-mentioned conventional problems, and performs complicated operations even when the start position of the frame does not exist at the beginning of the line and the end position of the frame does not exist at the end of the line. An object of the present invention is to provide a document processing apparatus that can add a frame to characters or the like in accordance with a frame designation range and can create a document rich in variations.
[0008]
[Means for Solving the Problems]
In order to achieve the above object, a document processing apparatus according to the present invention provides a character input unit for inputting characters and the like, and a frame within an arbitrary range for a plurality of lines of character strings input by the character input unit. The frame start means corresponds to the first character of the line or the frame end position corresponds to the end character of the line in each line within the range instructed via the frame instruction means. A determination means for determining whether the frame start position or the frame end position does not correspond to the first character or the last character of each line, and the line where the character corresponding to the frame start position exists Forms a frame with the character corresponding to the frame start position as the frame start character and the character existing at the end of the line as the frame end character, and for the line where the character corresponding to the frame end position exists, the beginning of the line Present Characterized in that the that characters and a frame forming means for forming a frame of the character corresponding to the character corresponding to and frame end position and a frame start character as a frame terminator.
[0009]
In addition, for the line where the character corresponding to the frame start position and the frame end position does not exist, the frame forming means sets the character existing at the beginning of the line as the frame start character and the character existing at the end of the line as the frame end. A frame is formed as a character.
[0010]
In the document processing apparatus of the present invention, when the determination unit determines that the frame start position or the frame end position does not correspond to the first character or the last character of each line, the frame forming unit includes a character corresponding to the frame start position. For a line that forms a frame with the character corresponding to the frame start position as the frame start character and the character existing at the end of the line as the frame end character, and for the line where the character corresponding to the frame end position exists A frame is formed with the character existing at the beginning of the line as the frame start character and the character corresponding to the character corresponding to the frame end position as the frame end character. As a result, even when a frame instruction unit instructs the character string of a plurality of lines input via the character input unit to be given a frame within an arbitrary range, the instruction range can be accurately handled. Thus, it is possible to add a frame to characters and the like. As a result, it is possible to create a document rich in variations by flexibly adding a frame to a plurality of character strings.
[0011]
In addition, when it is determined by the determining means that the frame start position or the frame end position does not correspond to the first character or the last character of each line, In each line within the range instructed through the frame instruction means For a line that does not have a character corresponding to the frame start position and the frame end position, the frame forming means sets the character existing at the beginning of the line as the frame start character and the character existing at the line end as the frame end character. It is formed. Therefore, a frame is formed based on the beginning and end of a line that exists in the middle where characters corresponding to the frame start position and the frame end position do not exist, and such intermediate lines are partially emphasized. Thus, it is possible to increase the number of document variations.
[0012]
Here, the frame forming means corresponds to the first letter of one line whose frame start position is within the range instructed by the frame instruction means via the determination means, and the frame end position is other line. When it is determined that it corresponds to the end-of-line character, it is desirable to search for the longest line in the range and to form a frame so as to include the longest line, the one line, and the other lines.
[0013]
According to the above-described configuration, it is possible to form a frame so as to surround all the rows for which frame assignment is instructed via the frame instruction unit.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
DETAILED DESCRIPTION Hereinafter, a document processing apparatus according to an embodiment of the present invention will be described in detail with reference to the drawings. In the present embodiment, the present invention is applied to a tape printing apparatus capable of printing a large number of characters such as alphabet letters and symbols on a printing tape.
[0015]
First, a schematic configuration of the tape printer according to the present embodiment will be described with reference to FIG. As shown in FIG. 1, a keyboard 3 is disposed in the front portion of the main body frame 2 of the tape printer 1, and a printing mechanism PM is disposed in the main body frame 2 behind the keyboard 3. Immediately behind, a liquid crystal display 22 capable of displaying the input characters and symbols as a print image is provided. The display 22 has a display screen composed of 32 dots in the vertical direction and 121 dots in the horizontal direction. Here, reference numeral 4 denotes a release button for opening the cover frame 6 when the tape cassette CS attached to the printing mechanism PM is attached or detached.
[0016]
The keyboard 3 has character keys for inputting alphabets, numbers and symbols, range specification keys for specifying a range for setting / changing various format information including the type of character modification and print character size, and the like at the time of formatting. Ruled line key for setting and changing various format information, font key, size key, width key, style key, return key, cursor key for moving the cursor up, down, left and right, various setting processing There are provided a confirmation key for performing printing, a print key for instructing printing, a cancel key for canceling various processes, a power key for turning on / off the power, and the like.
[0017]
Here, the ruled line key is a key for designating a frame so as to surround the character string and the like, and the font key is used to select a desired character font from a plurality of various character fonts (Gothic typeface, Mincho typeface, etc.). Key and size key for selecting a desired character size from a plurality of various character sizes (6 points, 10 points, 13 points, 19 points, 26 points, 38 points, 44 points, etc.) Keys and style keys for selecting a desired character width from multiple character widths (half-width, full-width, double-width, etc.) are multiple character styles (underline, shaded characters, bold, italic, outline (outlined characters) ) Etc.) to select a desired character style.
[0018]
Next, the printing mechanism PM will be briefly described with reference to FIG. 2. A rectangular tape cassette CS is detachably attached to the printing mechanism PM, and a laminate film tape 7 is wound around the tape cassette CS. The tape spool 8 mounted, the ribbon supply spool 10 on which the print ribbon 9 is wound, the take-up spool 11 for winding the print ribbon 9, and the double-sided tape 12 having the same width as the laminate film tape 7 are the release paper. A supply spool 13 wound on the outside and a joining roller 14 for joining the laminate film tape 7 and the double-sided tape 12 are rotatably provided.
[0019]
A thermal head 15 is erected at a position where the laminate film tape 7 and the print ribbon 9 overlap each other, a platen roller 16 that presses the laminate film tape 7 and the print ribbon 9 against the thermal head 15, and the laminate film tape 7. The feed roller 17 that presses the double-sided tape 12 against the joining roller 14 to create the printing tape 19 is pivotally supported by a support 18 that is pivotally attached to the main body frame 2. The thermal head 15 has a group of heating elements made up of 128 heating elements arranged in the vertical direction.
[0020]
Accordingly, the joining roller 14 and the take-up spool 11 are driven in synchronization with each other in the predetermined rotation direction by driving the tape feed motor 45 (see FIG. 3) in the predetermined rotation direction, while the heating element group of the thermal head 15 is driven. When energized, characters and barcodes are printed on the laminated film tape 7 by a plurality of dot rows, and the laminated film tape 7 is fed in the tape feeding direction A as the printing tape 19 with the double-sided tape 12 joined. Then, as shown in FIG. 1 and FIG. The details of the printing mechanism PM are the same as, for example, the mechanism described in Japanese Patent Laid-Open No. 2-106555, and a detailed description thereof is omitted here.
[0021]
Next, the cutting device 30 for automatically cutting the printing tape 19 will be briefly described with reference to FIG. 2. A plate-like auxiliary is provided immediately inside the main body frame 2 corresponding to the left side of the tape cassette CS. A frame 31 is erected, and a fixed blade 32 is fixed to the auxiliary frame 31 upward. A pivotal support shaft 33 that is fixed to the auxiliary frame 31 and that faces in the left-right direction is pivotally supported in the vicinity of the front end of the operation lever 34 extending in the front-rear direction. The movable blade 35 is attached to face the fixed blade 32 at the corresponding portion. Further, the rear end portion of the operation lever 34 is configured to be vertically swingable by a swing drive mechanism (not shown) connected to a cutting motor 46 (see FIG. 3), and the movable blade 35 is always a fixed blade. It is held in a state separated from 32.
[0022]
Since the printing tape 19 printed by the thermal head 15 extends from the tape cassette CS between the fixed blade 32 and the movable blade 35 to the outside of the main body frame 2, the cutting motor driven by the cutting signal. 46, the rear end portion of the operation lever 34 is vertically swung through the swing drive mechanism, the movable blade 35 approaches the fixed blade 32, and the printing tape 19 is cut by the both blades 32 and 35.
[0023]
By the way, five types of tape widths of 6 mm, 9 mm, 12 mm, 18 mm, and 24 mm are prepared as the printing tape 19 fed out from the tape cassette CS. In order to detect any of the types of tape widths, a protruding piece 20 is provided that combines the presence or absence of four protruding claws. A cassette sensor 42 (see FIG. 3) for detecting the tape width from the combination of the protruding claws of the protruding piece 20 is attached to the main body frame 2 that supports the lower side of the tape cassette CS. That is, this cassette sensor 42 outputs a cassette signal of “0100” when the tape width is 24 mm, for example, by combining the protruding claws constituting the protruding piece 20, and “1100” cassette when the tape width is 12 mm. In addition to outputting a signal, a cassette signal of “0000” is output when the tape cassette CS is not loaded.
[0024]
Next, the control system of the tape printer 1 will be described with reference to FIG. FIG. 3 is a block diagram showing a control system of the tape printer 1.
[0025]
3, the input / output interface 50 of the control device C includes a keyboard 3, a cassette sensor 42, a display controller (LCDC) 23 having a video RAM 24 for outputting display data to a liquid crystal display (LCD) 22, Drive circuit 44 for the warning buzzer 43, drive circuit 47 for driving the thermal head 15, drive circuit 48 for driving the tape feed motor 45, and drive circuit for driving the cutting motor 46 49 are connected to each other.
[0026]
The control device C includes a CPU 52, an input / output interface 50 connected to the CPU 52 via a bus 51 such as a data bus, a display CG (character generator) ROM 53, a printing CG (character generator) ROM 54, a ROM 55, and a RAM 60. It is composed of
[0027]
In the display CGROM (corresponding to the font storage means) 53, display dot pattern data for each of a large number of characters such as alphabet characters and symbols is provided for each font (Gothic typeface, Mincho typeface, etc.). Six types (7, 10, 16, 21, 32, 32 BIG dots) of display character sizes are stored in association with code data. Here, the display character size of 32 BIG dots is a display character size that can be displayed larger than the 32-dot character size for character strings that do not protrude below the baseline, such as uppercase letters of the alphabet.
[0028]
In the printing CGROM 54, for each of a large number of characters such as alphabet letters and symbols, there are seven types of printing dot pattern data for each font (6 points: 16 dots, 10 points: 24 dots, 13 points: 32 dots). , 19 points: 48 dots, 26 points: 64 dots, 38 points: 96 dots, 44 points: 96 BIG dots) are stored in correspondence with the code data. Here, the print character size of 96 BIG dots is a character size that can be printed larger than the 96 dot character size for a character string that does not protrude below the baseline, such as uppercase letters of the alphabet.
[0029]
The ROM 55 has a frame formation processing program to be described later, a display drive control program for controlling the display controller 23 in correspondence with character code data such as characters, numbers and symbols inputted from the keyboard 3, underlined characters and symbols, Character modification control program for performing various character modifications such as shaded characters, bold, italic, outline (outlined characters), shadow characters, etc., and data in the print data image buffer 67 are sequentially read out, and the thermal head 15 and the tape feed motor 45 are controlled. A printing drive control program to be driven, a control program for tape printing control, and the like are stored.
[0030]
The ROM 55 stores a character size conversion table (not shown) that associates the print character size with the display character size when printing at that size. Although not shown, the ROM 55 associates seven types of print character sizes with the start address (index address) of the print CGROM 54 in which dot pattern data of a series of characters and symbols relating to each print character size is stored. A print character search table and a print character index table in which this index address is associated with the storage start address of each character or symbol in the printing CGROM 54 are stored.
[0031]
Further, although not shown in the drawing, the ROM 55 associates six types of display character sizes with the head address (index address) of the display CGROM 53 in which dot pattern data of a series of characters and symbols relating to each display character size is stored. A display character search table and a display character index table in which this index address is associated with the storage start address in the display CGROM 53 for each character or symbol are stored.
[0032]
The RAM 60 includes a text memory 61, a print parameter memory 62, a pointer memory 63, a display character size memory 64, an arrangement position information memory 65, a display data image buffer 66, a print data image buffer 67, a flag memory 68, and other calculation results of the CPU 52. A work memory or the like is temporarily stored.
[0033]
Here, the text memory 61 stores document data and format information data input from the keyboard 3. For example, numeric data “1, 2, 3, 4, 5, 6, 8” is input in this order by the numeric keys of the keyboard 3, and line feed data is inserted after the numbers “3” and “4”. Three lines of text data (the first line consists of numbers “1” to “3”, the second line consists of numbers “4” and “5”, and the third line consists of numbers “6” to “8”) are created. When the frame designation is performed for the numbers “2” to “7”, as shown in FIG. 4, the format information (font, size, etc.) of the entire text is displayed at the head position of the text memory 61, as shown in FIG. The frame start data precedes the numeric data “2”, the line feed data follows the numeric data “3”, the line feed data follows the numeric data “5”, and the frame end data follows the numeric data “7”. , Respectively.
[0034]
The print parameter memory 62 stores various data necessary for printing characters and the like on the print tape 19. The pointer memory 63 stores various pointer values such as a text pointer (TP) value, a character pointer (CP) value, a line pointer (LP) value, a frame pointer (FP) value, and a cursor pointer value. The character size memory 64 stores character size data. The arrangement position information memory 65 stores arrangement information necessary for arranging character, symbol, and frame image data on the display data image buffer 66 and the print data image buffer 67. The display data image buffer 66 stores the inputted dot pattern data for displaying a plurality of characters and symbols, and the print data image buffer 67 is used for printing a plurality of characters and symbols for printing. The dot pattern data is synthesized and stored as dot image data for printing. The flag memory 68 is provided with various flags such as a multi-line frame flag that is turned on when a single frame is formed for a character string extending over a plurality of lines.
[0035]
Next, the frame forming process performed by the control device C of the tape printer 1 will be described with reference to FIGS. 5 is a flowchart of the main program, FIG. 6 is a flowchart of the editing screen display processing program, FIG. 7 is a flowchart of the range setting processing program, FIG. 8 is a flowchart of the format setting processing program, and FIG. 9 is a flowchart of the printing processing program. 10 is a flowchart of an arrangement information creation processing program, FIG. 11 is a flowchart of a character information creation processing program, FIG. 12 is a flowchart of a frame information creation processing program, FIG. 13 is a flowchart of a frame division processing program, and FIG. It is a flowchart of a program.
[0036]
First, in the flowchart of the main program in FIG. 5, initialization processing (initialization processing of the RAM 60, etc.) of the tape printer 1 is performed in step (hereinafter abbreviated as S) 1, and document editing is performed on the liquid crystal display 22 in S2. An edit screen display process (described later) for displaying the screen is performed.
[0037]
In S3, it is determined whether there is a key input from the keys on the keyboard 3, and the process waits until there is a key input. If there is a key input (S3: YES), it is determined in S4 whether the key input is a key input from a range setting key. If it is a key input from the range setting key (S4: YES), a range setting process (described later) is performed in S5, and after the format setting process is performed in S6, the process returns to S2. On the other hand, if the key input is not from the range specification key (S4: NO), it is determined in S7 whether the key input is from the print key. If the key input is from the print key (S7: YES), characters, frames, etc. are printed on the print tape 19 (S8), and the process returns to S2. On the other hand, if the key input is not from the print key (S7: NO), the process corresponding to the key operated in S9 is performed and then the process returns to S2.
[0038]
Here, the edit screen display process performed in S2 will be described with reference to the flowchart of FIG. In FIG. 6, first, in S10, arrangement information on the display data image buffer 66 is created for characters and frames displayed on the liquid crystal display 22. The arrangement information creation process will be described later. In subsequent S11, all the coordinate data and length data of the character and frame arrangement information are converted for display. In S12, character and frame image data are created based on the coordinate data and length data. And stored in the display data image buffer 66. Thereafter, the contents of the display data image buffer 66 are displayed on the liquid crystal display 22 in S13.
[0039]
The range setting process in S5 will be described with reference to the flowchart of FIG. In FIG. 7, first, in S14, the start position and the end position of the range are set at the cursor position in the text memory 61 indicated by the cursor pointer value. Thereafter, the editing screen display process (see S2, S10 to S13) is performed (S15). In S16, the range corresponding to the first position and the last position of the range is displayed in reverse on the liquid crystal display 22. In S17, the key input from the keyboard 3 is waited, and if there is a key input (S17: YES), it is determined whether or not the key input is from the left and right keys of the cursor key (S18). In the case of key input from the left and right keys (S18: YES), after the start position and the final position of the range changed by the left and right keys are stored, the process proceeds to S20. On the other hand, if the key input is not from the left and right keys (S18: NO), the process immediately proceeds to S20. In S20, it is determined whether or not the key input is from the return key. If the key input is from the return key (S20: YES), the process ends and the process proceeds to S6. If it is not an input (S20: NO), the process returns to S15.
[0040]
Further, the format setting process performed in S6 will be described with reference to the flowchart of FIG. In FIG. 8, first, the text data stored in the text memory 61 is saved in the work memory in S21, and the same edit screen display process as described above is performed in S22. In S23, the range corresponding to the start position and the end position of the range to be formatted is displayed in reverse on the liquid crystal display 22. In S24, the key input from the keyboard 3 is waited, and if there is a key input (S24: YES), it is determined whether the key input is a key input from a ruled line key (S25). If the key input is from the ruled line key (S25: YES), the ruled line within the range is changed (S26). When the key input is from the size key (S25: NO, S27: YES), the character size within the range is changed (S28). When the key input is from the font key (S25: NO, S27: NO, S29: YES), the character font within the above range is changed (S30). When the key input is from the cancel key (S25: NO, S27: NO, S29: NO, S31: YES), the text data in the text memory 61 saved in the work memory in S21 is restored (S32). The process ends and the process returns to S2. If the key input is not from the cancel key (S31: NO), it is determined whether the key input is from the return key (S33). If the key input is from the return key (S33: YES), processing is performed. On the other hand, if the key input is not from the return key (S33: NO), the process returns to S22.
[0041]
The printing process performed in S8 will be described with reference to the flowchart of FIG. When the printing process is started, first, arrangement information on the print data image buffer 67 is created for characters and frames to be printed by the printing mechanism PM in S34. The arrangement information creation process is the same as the process performed in S10, which will be described later. In subsequent S35, all the coordinate data and length data of the character and frame arrangement information are converted for printing, and character and frame image data are created based on the coordinate data and length data, and the print data image buffer is created. 67. In step S36, the contents of the print data image buffer 67 are printed on the tape via the printing mechanism PM.
[0042]
Next, the arrangement information creation process performed in S10 and S34 will be described with reference to FIGS. When the arrangement information creation process is started, first, the character information creation process (S37) is performed. Here, the character information creation process will be described with reference to FIG.
[0043]
11, first, in S42, the text pointer TP in the pointer memory 63 is set to the head position of the text in the text memory 61, and the character pointer CP is set to the head of the character arrangement information area (see FIG. 15) in the arrangement position information memory 65. The line pointer LP is set to the head position of the row arrangement information area (see FIG. 16) in the arrangement position information memory 65, and the frame pointer FP is set to the ruled line arrangement information area (FIG. 17) in the arrangement position information memory 65. Set to the top position.
[0044]
In S43, it is determined whether or not the text information has been completed. If the text information has been completed (S43: YES), the process is terminated. If the text information has not been completed (S43: NO), the process proceeds to S44. In S44, it is determined whether or not the frame start is designated based on whether or not the data indicated by the text pointer TP is the frame start data. If the frame start is designated (S44: YES), the character existing next to the frame start data is set as the frame start character (S45), and the process proceeds to S54. If the data indicated by the text pointer TP is not the frame start data (S44: NO), it is determined whether the frame end is designated based on whether the data indicated by the text pointer TP is the frame end data ( S46).
[0045]
If the frame end is designated (S46: YES), the character existing before the frame end data is set as the frame end character (S47), and then the frame pointer FP is set as the next frame information (S48). . Thereafter, the process proceeds to S54. If the frame end is not designated in S46 (S46: NO), it is determined whether or not a line feed is designated based on whether or not the data indicated by the text pointer TP is line feed data (S49). . When a line feed is designated (S49: YES), an area for storing the arrangement information for the character string of the first line is secured and registered in the line arrangement information area in the arrangement position information memory 65 (S50). ). At this time, when the line format information is set in the format information of the text memory 61, the line format information is registered for the first character string as shown in FIG. Thereafter, the line pointer LP is set to the next line information (S51), and the process proceeds to S54.
[0046]
In S49, when a line feed is not designated (S49: NO), a character code is registered in the character arrangement information area of the arrangement position information memory 65 (S52). At this time, the character format information stored in the format information of the text memory 61 is copied and stored as format information corresponding to the character code, as shown in FIG. In S53, the character pointer CP is set to the next character information in the character arrangement information area, and the text pointer TP is set to the next text position (S54), and the process returns to S43.
[0047]
The character information and the format information in the character arrangement information area shown in FIG. 15 are created for each character stored in the text memory 61 by the character information creation process described above, and the line arrangement information area for each line constituting the text. The area for storing the arrangement information of each row is secured in step 1 and the row format information is registered for each row (see FIG. 16). Further, for the frame, a frame start character and a frame end character (see FIG. 17) are set.
[0048]
Here, returning to the flowchart of FIG. 10, the description will be continued. After the character information creation processing (S42 to S54) is performed in S37, the frame information creation processing is performed in the subsequent S38. Such frame information creation processing will be described with reference to FIGS. In FIG. 12, first, the frame pointer FP is set to the head position of the ruled line arrangement information area in the arrangement position information memory 65 (S55). Next, it is determined whether the frame information has been completed with reference to the text memory 61 (S56). If the frame information is completed (S56: YES), the process is terminated. If the frame information is not completed (S56: NO), it is determined whether the frame is a one-line frame (S57). . Such a determination is made based on whether the frame disclosure data and the frame end data exist in the same line.
[0049]
If the frame is a one-line frame (S57: YES), the process ends. On the other hand, if the frame is not a one-line frame (S57: NO), it is determined whether the frame start position exists at the beginning of the line. (S58). If the frame start position exists at the beginning of the line (S58: YES), it is determined whether the frame end position exists at the end of the line (S59). If the frame end position exists at the end of the line (S59: YES), the multi-line frame flag provided in the flag memory 68 is set to ON (S60), and the post-processing is ended. Here, the multi-line frame means a single frame formed over a plurality of lines of text.
[0050]
When the frame start position does not exist at the beginning of the line in S58 (S58: NO) and when the frame end position does not exist at the end of the line (S59: NO), the frame division processing is performed (S61). finish. This case corresponds to a case where the frame starts in the middle of the line and ends in the middle of the line. Here, the frame division processing performed in S61 will be described with reference to FIG. In FIG. 13, first, the line pointer LP is set to the first line in the line arrangement information area (S62). Then, it is determined whether or not the line pointer LP value is larger than the LP value of the frame end line (S63). Such a determination is made by determining whether the frame end data exists in the first and subsequent lines. If the determination in S63 is YES, the process ends. If the determination is NO, it is determined whether or not the line pointer LP value is equal to the LP value of the frame start line (S64). Such a determination is made by determining whether there is frame start data in the line indicated by the line pointer LP. If the determination in S64 is YES, the frame end character is set to the end of the line with the frame start character set as it is (S65). Thereafter, the process proceeds to S69.
[0051]
If the determination in S64 is NO, it is determined whether or not the line pointer LP value is equal to the LP value of the frame last row (S66). Such a determination is made by determining whether there is frame end data in the line indicated by the line pointer LP. If the determination in S66 is YES, the frame start character is set at the beginning of the line, and the frame end character is set as it is, and the frame is additionally registered in the ruled line arrangement information area (S67). Thereafter, the process proceeds to S69.
[0052]
On the other hand, if the determination in S66 is NO, the frame start character is set at the beginning of the line and the frame end character is set at the end of the line, and a frame is additionally registered in the ruled line arrangement information area (S68). Thereafter, the line pointer LP is updated in S69, and then the process returns to S63.
[0053]
Here, returning to the flowchart of FIG. 10 again, the description will be continued. After the frame information creation processing (S55 to S69) is performed in S38, the character size calculation processing is performed in the subsequent S39, and further in S40. Performs character placement calculation processing. The character size calculation process and the character arrangement calculation process acquire the character size existing in the format information obtained by copying the format information in the text memory 61 in the character arrangement information area shown in FIG. When the dot pattern data is arranged on the display data image buffer 66 and the print data image buffer 67 on the basis of the character size, the coordinate data of the lower left position of the area where the dot pattern data is to be arranged is calculated. At this time, for each character stored in the text memory 61, as shown in FIG. 15, coordinate data of the lower left position of the dot pattern data arrangement area is acquired. Further, based on the fact that the character arrangement information is acquired for each character as described above, the line arrangement information is calculated for each line constituting the text as shown in FIG. This line arrangement information is also acquired from the coordinate data of the lower left position of the arrangement area of each line, like the character arrangement information.
[0054]
Here, the coordinate data of each character in the character arrangement information area shown in FIG. 15 and the coordinate data of each line in the line arrangement information area shown in FIG. 16 match the text contents of the text memory shown in FIG. That is, the text memory 61 stores the number “1”, the frame start data, the number “2”, the number “3”, the line feed data, the number “4”, the number “5”, the line feed data, the number “6”, the number “ 7 ”, the frame end data, and the number“ 8 ”are stored in this order. For the numbers“ 1 ”to“ 8 ”, the coordinate data of the lower left position of the dot pattern data placement area is registered for each of the numbers“ 1 ”to“ 8 ”. Also, for the arrangement information of each line, the coordinates of the lower left position of the arrangement area with respect to each line (first line to third line) based on the presence of three lines of text based on the presence of two line feed data Data is registered.
[0055]
In addition, after S40, frame arrangement calculation processing is performed in S41 following this. Here, the frame arrangement calculation processing will be described with reference to FIG. In FIG. 14, first, after setting the frame pointer FP to the head position of the ruled line arrangement information area (S70), it is determined whether or not the frame information has ended (S71). If the frame information has ended (S70: YES), the process ends. If the frame information has not ended (S70: NO), it is determined whether the multi-line frame flag is set to ON. (S72). If the multi-line frame flag is not set to ON (S72: NO), the lower left position of the frame start character is set to the lower left position of the frame (LLX, LLY) (S73), and the upper right position of the frame end character Is set to the upper right position (RUX, RUY) of the frame (S74), and the process proceeds to S78.
[0056]
On the other hand, when the multi-line frame flag is set to ON in S72 (S72: YES), the lower left position of the bullet in the last line is set to the lower left position (LLX, LLY) of the frame (S75). Next, the Y position at the upper end of the first line is set as the Y position (RUX, RUY) at the upper right of the frame (S76), and the X position at the right of the end-of-line character in the longest line is set as the X position at the upper right of the frame ( RUX) (S77). Thereafter, the process proceeds to S78.
[0057]
In S78, the coordinate data acquired in S73 to S77 is registered in the ruled line arrangement information area as frame arrangement information. In S79, the frame pointer FP is updated, and the process returns to S71.
[0058]
Here, the text memory 61 stores the text contents shown in FIG. 4 as described above, and the contents of the ruled line arrangement information will be described with reference to FIG. Since both the frame start data and the frame end data exist in the middle of the line based on the text contents of the text memory 61, the determinations in S58 and S59 are both NO in the frame information creation process. Three frames are formed for each of the first to third rows through the processing of S65, S68, and S67 in the division processing. Then, through S73 and 74 in the frame placement process, as shown in FIG. 17, the coordinate data (LLX1, LLY1) of the lower left position of the number “2” in the first row and the upper right position of the number “3” are displayed. A first frame defined by the coordinate data (RUX1, RUY1) is formed around the numbers “2” and “3”. Similarly, the second frame defined by the coordinate data (LLX2, LLY2) of the lower left position of the number “4” in the second row and the coordinate data (RUX2, RUY2) of the upper right position of the number “5” is provided. It is formed around the numbers “4” and “5”. Similarly, the third frame defined by the coordinate data (LLX3, LLY3) of the lower left position of the number “6” in the third row and the coordinate data (RUX3, RUY3) of the upper right position of the number “7” is provided. It is formed around the numbers “6” and “7”.
[0059]
Based on the text data in the text memory 61, the character arrangement data in the character arrangement information area, the line arrangement data in the line arrangement information area, and the ruled line arrangement data in the ruled line arrangement information area, characters are printed on the printing tape via the printing mechanism PM. As shown in FIG. 18, a frame is formed in the numbers “2” and “3” in the number strings “1” to “3” in the first row, and the number string “4” in the second row is printed. ”And“ 5 ”, and a print result is obtained in which a frame is formed on the numbers“ 6 ”and“ 7 ”in the number strings“ 6 ”to“ 8 ”in the third row. It is.
[0060]
As described in detail above, in the tape printer 1 according to the present embodiment, the arrangement information creation processing (S10, S34, S37 to S41) is performed for each character, line, and frame constituting the text stored in the text memory 61. By creating character arrangement information, line arrangement information, and frame arrangement information, and for forming a frame for characters, the frame start position or frame end position corresponds to the beginning or end character of each line If it is determined that the character does not (S58: NO, S59: NO), for the line where the character corresponding to the frame start position exists, the character corresponding to the frame start position is set as the frame start character and the character existing at the end of the line Is formed with the frame end character as the frame end character (S65), and for the line in which the character corresponding to the frame end position exists, the character existing at the beginning of the line is set as the frame start character and the frame end position is set. A frame is formed with the character corresponding to the character corresponding to the character as the frame end character (S67), and it is further determined that the frame start position or frame end position does not correspond to the head character or the end character of each line (S64: NO) , S66: NO), for a line in which there is no character corresponding to the frame start position and the frame end position, the character existing at the beginning of the line is the frame start character and the character existing at the end of the line is the frame end character. A frame is formed (S68).
[0061]
Based on this, even when it is instructed to add a frame in an arbitrary range to a character string of a plurality of lines input via the keyboard 3, it is made to correspond to the indicated range accurately with characters and the like. A frame can be added. In addition, it is possible to create a document rich in variations by giving a frame to a plurality of character strings flexibly.
[0062]
Further, when it is determined that the frame start position corresponds to the first character of one line within the specified range, and the frame end position corresponds to the end character of the other line (S58: YES, S59: YES). ) Set a multi-line frame flag to ON, search for the longest line in the range, and form a frame so as to include the longest line, the one line, and another line (S75 to S77) In this case, it is possible to form a frame so as to surround all the rows instructed to give a frame.
[0063]
Note that the present invention is not limited to the above-described embodiment, and various improvements and modifications can be made without departing from the scope of the present invention. For example, in the above-described embodiment, the case where a frame is arbitrarily formed for a character string of a plurality of lines has been described as an example. However, for example, the present invention can be applied to a case where a character string is arbitrarily modified such as shading. it is obvious.
[0064]
【The invention's effect】
As described above, the present invention does not perform complicated operations even when the start position of the frame does not exist at the beginning of the line and the end position of the frame does not exist at the end of the line. It is possible to provide a document processing apparatus capable of adding a frame to a document and creating a document rich in variations.
[Brief description of the drawings]
FIG. 1 is a perspective view of a tape printer.
FIG. 2 is a schematic plan view of a printing mechanism equipped with a tape cassette.
FIG. 3 is a block diagram of a control system of the tape printer.
FIG. 4 is an explanatory diagram schematically showing the contents of a text memory.
FIG. 5 is a flowchart of a main program.
FIG. 6 is a flowchart of an edit screen display processing program.
FIG. 7 is a flowchart of a range setting processing program.
FIG. 8 is a flowchart of a format setting processing program.
FIG. 9 is a flowchart of a print processing program.
FIG. 10 is a flowchart of an arrangement information creation processing program.
FIG. 11 is a flowchart of a character information creation processing program.
FIG. 12 is a flowchart of a frame information creation processing program.
FIG. 13 is a flowchart of a frame division processing program.
FIG. 14 is a flowchart of a frame arrangement processing program.
FIG. 15 is an explanatory diagram schematically showing a character arrangement information area.
FIG. 16 is an explanatory diagram schematically showing a row arrangement information area.
FIG. 17 is an explanatory diagram schematically showing a ruled line arrangement information area.
FIG. 18 is an explanatory diagram showing a printing result.
[Explanation of symbols]
1 Tape printer
3 Keyboard
22 Liquid crystal display
52 CPU
55 ROM
60 RAM
61 Text memory
62 Print parameter memory
63 Pointer memory
64 Display character size memory
65 Arrangement position information memory 65
66 Display data image buffer
67 Print data image buffer
68 Flag memory

Claims (3)

文字等を入力する文字入力手段と、
前記文字入力手段により入力された複数行の文字列に対して任意の範囲で枠を付与することを指示する枠指示手段と、
前記枠指示手段を介して指示された範囲内における各行にて枠開始位置が行の行頭文字に対応するか、又は、枠終了位置が行の行末文字に対応するかを判断する判断手段と、
前記判断手段により枠開始位置又は枠終了位置が前記各行の行頭文字又は行末文字に対応しないと判断された場合、前記枠開始位置に対応する文字が存在する行については枠開始位置に対応する文字を枠開始文字とし且つその行の行末に存在する文字を枠終了文字として枠を形成し、前記枠終了位置に対応する文字が存在する行についてはその行の行頭に存在する文字を枠開始文字とし且つ枠終了位置に対応する文字に対応する文字を枠終了文字として枠を形成する枠形成手段とを備えたことを特徴とする文書処理装置。
A character input means for inputting characters and the like;
A frame instructing unit for instructing to give a frame in an arbitrary range to a plurality of lines of character strings input by the character input unit;
Determination means for determining whether the frame start position corresponds to the first character of the line in each line within the range instructed via the frame instruction means, or whether the frame end position corresponds to the end character of the line;
When it is determined by the determining means that the frame start position or the frame end position does not correspond to the first character or the last character of each line, the character corresponding to the frame start position for a line where the character corresponding to the frame start position exists Is used as a frame start character and a character existing at the end of the line is used as a frame end character to form a frame. For a line where a character corresponding to the frame end position exists, the character existing at the beginning of the line is used as the frame start character. And a frame forming means for forming a frame with the character corresponding to the character corresponding to the frame end position as the frame end character.
前記枠形成手段は、前記範囲内における各行において枠開始位置及び枠終了位置に対応する文字が存在しない行については、その行の行頭に存在する文字を枠開始文字とし且つ行の行末に存在する文字を枠終了文字として枠を形成することを特徴とする請求項1記載の文書処理装置。The frame forming means , for each line within the range, for a line that does not have a character corresponding to the frame start position and the frame end position, uses the character existing at the beginning of the line as the frame start character and exists at the end of the line. The document processing apparatus according to claim 1, wherein the frame is formed with the character as a frame end character. 前記枠形成手段は、前記判断手段を介して枠開始位置が枠指示手段により指示された範囲内にある1つの行の行頭文字に対応し、且つ、枠終了位置が他の行の行末文字に対応すると判断された場合、前記範囲内における最長行を検索するとともに、その最長行、前記1つの行及び他の行を包含するように枠を形成することを特徴とする請求項1又は請求項2記載の文書処理装置。  The frame forming means corresponds to the first character of one line whose frame start position is within the range instructed by the frame instruction means via the determining means, and the frame end position is set to the end character of the other line. 2. When it is determined that it corresponds, the longest line in the range is searched, and a frame is formed so as to include the longest line, the one line, and another line. 2. The document processing apparatus according to 2.
JP01014298A 1998-01-22 1998-01-22 Document processing device Expired - Fee Related JP3900647B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01014298A JP3900647B2 (en) 1998-01-22 1998-01-22 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01014298A JP3900647B2 (en) 1998-01-22 1998-01-22 Document processing device

Publications (2)

Publication Number Publication Date
JPH11212746A JPH11212746A (en) 1999-08-06
JP3900647B2 true JP3900647B2 (en) 2007-04-04

Family

ID=11742046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01014298A Expired - Fee Related JP3900647B2 (en) 1998-01-22 1998-01-22 Document processing device

Country Status (1)

Country Link
JP (1) JP3900647B2 (en)

Also Published As

Publication number Publication date
JPH11212746A (en) 1999-08-06

Similar Documents

Publication Publication Date Title
JP2556238B2 (en) Tape printer
JPH07164712A (en) Tape printer
JPH05185663A (en) Tape printing apparatus
JPH05305749A (en) Tape printer
JPH05305748A (en) Printer
JPH10157255A (en) Image-forming apparatus
JP3377277B2 (en) Document processing device
JP3900647B2 (en) Document processing device
JP3280073B2 (en) Document processing device
JP2621726B2 (en) Tape printer
EP0656594B1 (en) Word processor
JPH07214860A (en) Document processing equipment
JPH07276715A (en) Tape printer capable of printing a plurality of blocks in optional number of lines
JP3826536B2 (en) Document processing device
JPH0624084A (en) Tape printer
JP3242255B2 (en) Document processing device
JP3213154B2 (en) Tape printer
JP3366729B2 (en) Document processing apparatus and document processing method
JPH07285244A (en) Printing device
JP2776229B2 (en) Document processing device
JP2914473B2 (en) Document processing device
JP3123577B2 (en) Tape printer
JPH07266628A (en) Tape printer
JP2874544B2 (en) Tape printer
JPH07219950A (en) Document processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040329

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060523

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060721

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061225

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees