JPH0664286A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0664286A
JPH0664286A JP4226056A JP22605692A JPH0664286A JP H0664286 A JPH0664286 A JP H0664286A JP 4226056 A JP4226056 A JP 4226056A JP 22605692 A JP22605692 A JP 22605692A JP H0664286 A JPH0664286 A JP H0664286A
Authority
JP
Japan
Prior art keywords
recording paper
printing
document data
area
print
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.)
Pending
Application number
JP4226056A
Other languages
Japanese (ja)
Inventor
Toshiaki Maehane
利昭 前羽
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP4226056A priority Critical patent/JPH0664286A/en
Publication of JPH0664286A publication Critical patent/JPH0664286A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

(57)【要約】 【構成】 記録紙に対する文書データの印刷可能領域を
検出する記録紙センサ13と、印刷可能領域内に所定マ
ージンを設けた状態で文書データを印刷すべく、プリン
タ6を制御する印刷制御部8と、所定マージンを除く印
刷可能領域を文書データの入力可能領域と対応させるべ
く、LCD5を制御する表示制御部7とを備えている。 【効果】 これにより、非定形の記録紙を使用した場合
や記録紙を所望の給紙位置からずらして装填した場合で
も、所定マージンを設けた状態で確実な文書データの印
刷を招来することができる。
(57) [Summary] [Structure] The recording paper sensor 13 for detecting the printable area of the document data on the recording paper, and the printer 6 for printing the document data with a predetermined margin provided in the printable area. And a display control unit 7 for controlling the LCD 5 so that the printable area excluding a predetermined margin corresponds to the inputtable area of the document data. As a result, even when a non-standard size recording paper is used or the recording paper is loaded while being displaced from a desired paper feeding position, reliable printing of document data can be brought with a predetermined margin. it can.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば日本語ワードプ
ロセッサ等に供され、入力手段から入力される文字、図
形等の文書データを表示手段に表示すると共に、上記の
文書データを印刷手段にて記録紙に印刷する文書処理装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is applied to, for example, a Japanese word processor to display document data such as characters and figures input from an input means on a display means and to print the document data by a printing means. The present invention relates to a document processing device that prints on recording paper.

【0002】[0002]

【従来の技術】従来、一般に、日本語ワードプロセッサ
は、文字、図形等の文書データをキーボードから入力
し、この文書データをLCD(Liquid Crystal Displa
y)等の表示画面上に表示することで、日本語文書の作
成を行うようになっている。また、このような日本語ワ
ードプロセッサには、特開平2−269078号公報に
開示された装置のように、その構成部材として備えたプ
リンタにより、文書データを記録紙に印刷するものがあ
る。
2. Description of the Related Art Conventionally, a Japanese word processor generally inputs document data such as characters and figures from a keyboard and outputs the document data to an LCD (Liquid Crystal Displa).
The Japanese document is created by displaying it on the display screen such as y). Some of such Japanese word processors, like the device disclosed in Japanese Patent Laid-Open No. 2-269078, print document data on recording paper by a printer provided as a constituent member thereof.

【0003】上記のプリンタは、図12に示すように、
インクリボンカセット20と記録ヘッド21とを搭載し
たキャリッジ22の進退移動により、記録紙に対する横
方向への印字を可能にすると共に、プラテンローラ23
の回動に伴う記録紙の搬送により、記録紙に対する縦方
向への印字を可能にしている。また、上記プリンタは、
キャリッジ22上のプラテンローラ23との対向部位に
設けられた記録紙センサ24により記録紙の縦および横
方向を走査することで、記録紙の縦横寸法を測定するよ
うになっている。
The printer described above, as shown in FIG.
By moving the carriage 22 carrying the ink ribbon cassette 20 and the recording head 21 back and forth, it is possible to print on the recording paper in the lateral direction and the platen roller 23
By conveying the recording paper in accordance with the rotation of, the printing can be performed in the vertical direction on the recording paper. In addition, the printer is
The longitudinal and lateral dimensions of the recording paper are measured by scanning the recording paper in the vertical and horizontal directions by a recording paper sensor 24 provided at a portion of the carriage 22 facing the platen roller 23.

【0004】これにより、上記のプリンタは、文書デー
タの印刷可能範囲を検出すると共に、この印刷可能範囲
に対応した文書データの入力可能範囲を矩形領域として
表示画面上に表示することで、実際の記録紙サイズに適
応した文書データの入力および印刷を可能にしている。
As a result, the above printer detects the printable range of the document data and displays the inputtable range of the document data corresponding to the printable range as a rectangular area on the display screen, thus Document data can be input and printed according to the size of the recording paper.

【0005】[0005]

【発明が解決しようとする課題】ところが、上記従来の
ように記録紙センサにより記録紙の縦横寸法を測定し、
文書データの印刷可能範囲を検出するプリンタでは、装
填される記録紙が定形であることを前提として、記録紙
上における各行は同一の印刷可能幅を有するものとして
扱い、また、書式上の記録紙左端座標がプリンタ上のあ
る一点に固定されており、左マージンを正確にとるため
には、記録紙をその点に正確に合わせて装填する必要が
ある。
However, the vertical and horizontal dimensions of the recording paper are measured by the recording paper sensor as in the prior art,
In a printer that detects the printable range of document data, each line on the recording paper is treated as having the same printable width, and the left end of the recording paper on the format The coordinates are fixed at a certain point on the printer, and in order to take the left margin accurately, it is necessary to load the recording paper at the exact point.

【0006】このため、記録紙の形状が矩形以外の場合
や記録紙にパンチ穴があけられている場合等、非定形の
記録紙を使用した場合、あるいは記録紙を所望の給紙位
置からずらして装填した場合には、印刷結果が記録紙か
らはみ出す等の所望する印刷結果とは異なる印刷が行わ
れたり、あるいは記録紙上での左マージンを設定通りに
設けることができない。
Therefore, when the recording paper has a non-rectangular shape, a recording paper is punched, or a non-standard recording paper is used, or the recording paper is displaced from a desired feeding position. In this case, the printing result is different from the desired printing result, such as the printing result protruding from the recording paper, or the left margin on the recording paper cannot be provided as set.

【0007】また、上記のような印刷結果のはみ出しを
避けるため、記録紙上で左右のマージンを大きく取った
場合には、記録紙両端いっぱいまでの印刷ができず、不
経済な文書データの印刷を招来してしまうという問題を
有している。
Further, in order to prevent the above-mentioned print result from protruding, if a large margin is left and right on the recording paper, it is not possible to print up to the both ends of the recording paper, which causes uneconomical printing of document data. It has a problem of being invited.

【0008】[0008]

【課題を解決するための手段】本発明の請求項1記載の
文書処理装置は、上記の課題を解決するために、入力手
段から入力される文字、図形等の文書データを表示手段
に表示すると共に、上記の文書データを印刷手段にて記
録紙に印刷する文書処理装置において、以下の手段を講
じている。
In order to solve the above-mentioned problems, the document processing apparatus according to the first aspect of the present invention displays the document data such as characters and figures input from the input means on the display means. At the same time, the following means are taken in the document processing apparatus for printing the above document data on the recording paper by the printing means.

【0009】即ち、記録紙に対する文書データの印刷可
能領域を検出する印刷領域検出手段と、印刷領域検出手
段により検出された記録紙の印刷可能領域内に、所定マ
ージンを設けた状態で文書データを印刷すべく、印刷手
段を制御する印刷制御手段とを備えている。
That is, the print area detecting means for detecting the printable area of the document data on the recording paper, and the document data are stored in the printable area of the recording paper detected by the print area detecting means with a predetermined margin. A printing control unit that controls the printing unit to print is provided.

【0010】また、請求項2記載の文書処理装置は、上
記の課題を解決するために、請求項1記載の文書処理装
置において、以下の手段を講じている。
In order to solve the above-mentioned problems, the document processing apparatus according to the second aspect of the invention has the following means in the document processing apparatus according to the first aspect.

【0011】即ち、所定マージンを除く記録紙の印刷可
能領域を、文書データの入力可能領域と対応させるべ
く、表示手段を制御する表示制御手段を備えている。
That is, display control means for controlling the display means is provided so that the printable area of the recording paper excluding the predetermined margin corresponds to the inputtable area of the document data.

【0012】[0012]

【作用】上記請求項1記載の構成によれば、印刷領域検
出手段により記録紙に対する文書データの印刷可能領域
を検出し、その後、印刷制御手段により印刷手段を制御
することで、所定マージンを設けた状態で上記の印刷可
能領域内に文書データを印刷する。このため、非定形の
記録紙を使用した場合や記録紙を所望の給紙位置からず
らして装填した場合でも、所定マージンを設けた状態で
確実な文書データの印刷を招来することができる。
According to the structure described in claim 1, a predetermined margin is provided by detecting the printable area of the document data on the recording paper by the print area detecting means and then controlling the print means by the print control means. In this state, the document data is printed in the printable area. Therefore, even when a non-standard-sized recording paper is used or the recording paper is loaded while being displaced from a desired paper feeding position, reliable document data printing can be brought with a predetermined margin.

【0013】また、請求項2記載の構成によれば、表示
制御手段により表示手段を制御することで、上記請求項
1記載の印刷可能領域から所定マージンを除いた領域
を、文書データの入力可能領域と対応させて表示手段に
表示させる。このため、表示手段を用いての文書データ
の入力および編集を、記録紙の印刷可能領域に対応させ
て行わせることができる。
According to the second aspect of the invention, by controlling the display means by the display control means, the area excluding the predetermined margin from the printable area of the first aspect can be input with the document data. It is displayed on the display means in association with the area. Therefore, it is possible to input and edit the document data using the display means in association with the printable area of the recording paper.

【0014】[0014]

【実施例】本発明の一実施例について図1ないし図11
に基づいて説明すれば、以下の通りである。尚、本実施
例では、印刷手段として熱転写型のプリンタを備えた文
書処理装置について例示するものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention is shown in FIGS.
The explanation is based on the following. It should be noted that the present embodiment exemplifies a document processing apparatus equipped with a thermal transfer type printer as a printing means.

【0015】本実施例に係る文書処理装置は、図1に示
すように、装置を構成する各構成部材の作動制御を行う
CPU(Central Processing Unit)1を備えている。こ
のCPU1には、各種のプログラムおよびデータを格納
したROM(Read Only Memory)2と、ワークエリアと
して使用されるRAM(Random Access Memory)3と、
ユーザーのキー操作により文書データ等の情報入力を行
う入力手段としてのキーボード4とがそれぞれ接続され
ている。
As shown in FIG. 1, the document processing apparatus according to the present embodiment includes a CPU (Central Processing Unit) 1 for controlling the operation of each constituent member of the apparatus. The CPU 1 includes a ROM (Read Only Memory) 2 storing various programs and data, a RAM (Random Access Memory) 3 used as a work area,
A keyboard 4 as an input means for inputting information such as document data by a user's key operation is connected.

【0016】上記ROM2は、図2に示すように、プロ
グラム、フォントデータ、および辞書の各記憶エリア2
a〜2cを備えており、RAM3は、図3に示すよう
に、書式情報、文書データ、印刷データ、およびその他
ワークの各記録エリア3a〜3dを備えている。
As shown in FIG. 2, the ROM 2 has storage areas 2 for programs, font data, and dictionaries.
As shown in FIG. 3, the RAM 3 is provided with recording areas 3a to 3d for format information, document data, print data, and other works.

【0017】また、上記CPU1には、文字、図形等の
文書データの表示を行う表示手段であるLCD(Liquid
Crystal Display) 5と、文書データの印刷を行う印刷
手段であるプリンタ6とが、それぞれ表示制御部(表示
制御手段)7、および印刷制御部(印刷制御手段)8を
介して接続されている。LCD5は、表示制御部7によ
り、表示画面上での改行幅や文字間隔等の書式が設定制
御されるようになっている。
Further, the CPU 1 has an LCD (Liquid) which is display means for displaying document data such as characters and figures.
A Crystal Display) 5 and a printer 6, which is a printing unit for printing document data, are connected via a display control unit (display control unit) 7 and a print control unit (print control unit) 8, respectively. The LCD 5 is controlled by the display control unit 7 to set formats such as line feed width and character spacing on the display screen.

【0018】プリンタ6は、印刷制御部8により、記録
ヘッド9、XおよびYの各モータ10・11、ヘッドア
ップダウンモータ12、および記録紙センサ(印刷領域
検出手段)13の各構成部材が作動制御されるようにな
っている。上記の記録ヘッド9は、熱転写用のサーマル
ヘッドから構成されている。また、記録紙センサ13
は、反射式のフォトセンサ等から構成されて、後述する
プラテン18の表面(通常黒色等で低反射率)と、記録
紙(通常白色等で高反射率)との反射率の違いからプラ
テン18上での記録紙の有無を検出するようになってい
る。
In the printer 6, the print controller 8 operates the components of the recording head 9, the X and Y motors 10 and 11, the head up / down motor 12, and the recording paper sensor (printing area detecting means) 13. It is controlled. The recording head 9 is composed of a thermal head for thermal transfer. In addition, the recording paper sensor 13
Is a reflection type photo sensor or the like, and the platen 18 has a reflectance difference between the surface of the platen 18 (usually black or the like and low reflectance) and recording paper (usually white or the like or high reflectance) which will be described later. The presence or absence of the recording paper above is detected.

【0019】ところで、上記のプリンタ6は、前述の各
種構成部材に加えて、図4に示すように、熱転写インク
リボン14aを収納したインクリボンカセット14と、
このインクリボンカセット14を係合突部15aにより
着脱可能に搭載したキャリッジ15とを備えている。
By the way, the printer 6 has an ink ribbon cassette 14 containing a thermal transfer ink ribbon 14a, as shown in FIG.
The ink ribbon cassette 14 is provided with a carriage 15 which is detachably mounted by an engaging projection 15a.

【0020】上記のキャリッジ15は、インクリボンカ
セット14を搭載した上面の前端部位に、前述の記録ヘ
ッド9と記録紙センサ13とを配置している。これによ
り、インクリボンカセット14は、キャリッジ15への
装着状態において、インクリボン14aがキャリッジ1
5上の左右の各スプール15b・15bに巻装されると
共に、上記インクリボン14aの一部が記録ヘッド9の
前方に露出されて配されるようになっている。尚、上記
の記録ヘッド9と記録紙センサ13とは、キャリッジ1
5上にて、記録紙の横方向で所定値C、オフセットして
固定されているものである。
The carriage 15 has the recording head 9 and the recording paper sensor 13 arranged at the front end portion of the upper surface on which the ink ribbon cassette 14 is mounted. As a result, when the ink ribbon cassette 14 is mounted on the carriage 15, the ink ribbon 14a is moved to the carriage 1
The ink ribbon 14a is wound around the left and right spools 15b and 15b on the upper side of the recording medium 5, and a part of the ink ribbon 14a is exposed and arranged in front of the recording head 9. The recording head 9 and the recording paper sensor 13 are the same as those of the carriage 1.
5 is fixed by being offset by a predetermined value C in the horizontal direction of the recording paper.

【0021】また、上記キャリッジ15は、記録ヘッド
9が配置された前側下端に摺動部15cが形成されてお
り、この摺動部15cにはガイド軸16が挿通して設け
られている。一方、キャリッジ15の後側には、前記X
モータ10の図示しない駆動ギヤとの歯合状態にてラッ
ク部材17が設けられている。これにより、上記のキャ
リッジ15は、記録紙に対する横方向への印字を可能に
すべく、Xモータ10の駆動に伴いガイド軸16に沿っ
て摺動するようになっている。
Further, the carriage 15 has a sliding portion 15c formed at the lower end on the front side on which the recording head 9 is arranged, and a guide shaft 16 is inserted through the sliding portion 15c. On the other hand, on the rear side of the carriage 15, the X
The rack member 17 is provided in a meshed state with a drive gear (not shown) of the motor 10. As a result, the carriage 15 slides along the guide shaft 16 as the X motor 10 is driven so that printing can be performed in the lateral direction on the recording paper.

【0022】また、上記キャリッジ15の前方には、ガ
イド軸16の軸心方向に対して平行にプラテン18と紙
送りローラ19とが配設されている。プラテン18は、
記録ヘッド9との対向部位に延設されており、記録ヘッ
ド9の駆動に伴い、インクリボン14aとの間で記録紙
を挟み込むようになっている。
A platen 18 and a paper feed roller 19 are disposed in front of the carriage 15 in parallel with the axial direction of the guide shaft 16. The platen 18 is
The recording paper is sandwiched between the recording head 9 and the ink ribbon 14a when the recording head 9 is driven.

【0023】紙送りローラ19は、前記Yモータ11の
駆動に伴う回転が可能に設けられている。これにより、
上記の紙送りローラ19は、記録紙に対する縦方向への
印字を可能にすべく、記録紙をインクリボンカセット1
4とプラテン18との間で搬送するようになっている。
The paper feed roller 19 is provided so as to be rotatable with the driving of the Y motor 11. This allows
The paper feed roller 19 described above prints the recording paper in the ink ribbon cassette 1 so as to enable printing in the vertical direction on the recording paper.
4 and the platen 18 are conveyed.

【0024】上記の構成において、本文書処理装置の動
作について以下に説明する。
The operation of the document processing apparatus having the above-mentioned structure will be described below.

【0025】図5に、印刷処理前の書式設定および文書
入力の流れを示す。S1、S2では、キーボード4から
の入力を読み取り、定形記録紙が選択されればS6へ、
それ以外の場合は、S3に移行する。S3では、記録紙
の装填を促し、S4では、改行幅、文字間隔を設定す
る。S5では、キャリッジ15をプラテン18に沿って
走査させ、各行の記録紙部分の座標を測定する。
FIG. 5 shows a flow of format setting and document input before print processing. In S1 and S2, the input from the keyboard 4 is read, and if the standard recording paper is selected, the process proceeds to S6.
Otherwise, the process proceeds to S3. In S3, loading of recording paper is prompted, and in S4, the line feed width and character spacing are set. In S5, the carriage 15 is scanned along the platen 18 and the coordinates of the recording paper portion of each line are measured.

【0026】また、上記S5における詳細な処理ステッ
プとしては、図6のフローチャート、および図9の説明
図に示すように、S51、S52、S53で、キャリッ
ジ15を1ステップずつ移動しながら記録紙センサ13
からの記録紙検出信号が変化する点に記録ヘッド9と記
録紙センサ13とのオフセット分(所定値C)を足した
座標を記憶する。ここで、キャリッジ移動の「1ステッ
プ」は、印刷1ドット分の移動量である。そして、S5
4にて1行分の走査が終了すると、前記のS4で設定し
た改行幅Wで改行復帰し(S55)、S56で記録紙の
下端が検出されるまで、上記の処理を繰り返す。その
後、1枚分の測定が終了するとS57で記録紙を最初に
装填した位置まで巻き戻す。尚、上記図9では、記録紙
センサ13により走査される記録紙を、円形状の非定形
記録紙として図示するものである。
As detailed processing steps in S5, as shown in the flowchart of FIG. 6 and the explanatory view of FIG. 9, in S51, S52, and S53, the recording paper sensor is moved while moving the carriage 15 step by step. Thirteen
Coordinates obtained by adding the offset amount (predetermined value C) between the recording head 9 and the recording paper sensor 13 to the point where the recording paper detection signal from (4) changes. Here, the "one step" of the carriage movement is the movement amount for one printing dot. And S5
When the scanning for one line is completed in 4, the line feed is returned with the line feed width W set in S4 (S55), and the above process is repeated until the lower end of the recording paper is detected in S56. After that, when the measurement for one sheet is completed, the recording paper is rewound to the position where the recording paper is initially loaded in S57. In FIG. 9, the recording paper scanned by the recording paper sensor 13 is illustrated as a circular non-standard recording paper.

【0027】次に、S6では、定形記録紙の場合、改行
幅と文字間隔を所定の省略値として算出した行および桁
数の入力可能領域Eを、LCD5の画面上に表示する。
(図10を参照) 一方、非定形記録紙の場合では、設定された改行幅、文
字間隔、および測定された記録紙部分の座標から入力可
能領域Eを算出して、行ごとに書式を設定し、その書式
に従って上記の入力可能領域Eを、LCD5の画面上に
表示する。(図11を参照) 尚、上記図10および図11に示す入力可能領域Eは、
表示制御部7の制御により、記録紙センサ13より検出
された印刷可能領域から所定マージンを除いた領域が設
定され、LCD5の画面上では、入力不可能領域がドッ
ト表示されることで領域表示されるようになっている。
Next, in S6, in the case of the standard recording paper, the inputtable area E of the number of lines and the number of digits calculated with the line feed width and the character spacing as the predetermined default values is displayed on the screen of the LCD 5.
(See FIG. 10.) On the other hand, in the case of non-standard size recording paper, the inputtable area E is calculated from the set line feed width, character spacing, and measured coordinates of the recording paper part, and the format is set for each line. Then, according to the format, the inputtable area E is displayed on the screen of the LCD 5. (Refer to FIG. 11) The inputtable area E shown in FIG. 10 and FIG.
Under the control of the display controller 7, the printable area detected by the recording paper sensor 13 is set to an area excluding a predetermined margin, and the input impossible area is displayed as a dot on the screen of the LCD 5. It has become so.

【0028】次に、S7では、公知の手順により文字入
力、編集作業を行う。非定形記録紙の場合では、一度に
記録紙一枚分しか印刷可能領域を測定できないので編集
作業は、1ページ分のみとなる。編集作業中、ページ全
体を枠で表し、その内部にドットあるいは矩形により文
書のレイアウト表示を行ってもよい。その後、S8にて
編集中に文書書式を変更する場合は、文書のデータを残
したまま書式を変更し(S9)、S11にて定形記録紙
ならばS6へ、非定形記録紙ならばS3へ戻る。そし
て、編集中に印刷モードが選択されたときは(S1
0)、S12に移行する。
Next, in S7, character input and editing work are performed by a known procedure. In the case of non-standard size recording paper, the printable area of only one recording paper can be measured at a time, so the editing work is only for one page. During editing, the entire page may be represented by a frame, and the layout of the document may be displayed by dots or rectangles inside the frame. After that, when the document format is changed during editing in S8, the format is changed while the document data is left (S9), and in S11, if the recording paper is a fixed recording paper, go to S6, and if it is a non-standard recording paper, go to S3. Return. When the print mode is selected during editing (S1
0), and shifts to S12.

【0029】上記S12にて定形記録紙の場合は、S1
3で記録紙のセットを促して印刷処理Aに移行する。一
方、非定形記録紙の場合は、そのままで印刷処理Bに移
行する。
In the case of the standard recording paper in S12, S1
In step 3, the recording paper is set and the process shifts to the printing process A. On the other hand, in the case of the non-standard size recording paper, the process shifts to the printing process B as it is.

【0030】次に、上記のように定形記録紙に対する印
刷処理である印刷処理Aを、図7のフローチャートに基
づいて以下に説明する。
Next, the print processing A, which is the print processing on the standard recording paper as described above, will be described below with reference to the flowchart of FIG.

【0031】先ず、S14、S15を繰り返し、記録紙
が検出されるまでキャリッジ15を右方向へ1ステップ
ずつ移動する。S16では、初めて記録紙を検出した位
置から記録ヘッド9と記録紙センサ13とのオフセット
分(所定値C)、キャリッジ15を右へ移動し、記録紙
左端座標として記憶しておく。
First, S14 and S15 are repeated, and the carriage 15 is moved rightward step by step until the recording paper is detected. In S16, the carriage 15 is moved to the right by the offset (predetermined value C) between the recording head 9 and the recording paper sensor 13 from the position where the recording paper is detected for the first time, and is stored as the left end coordinate of the recording paper.

【0032】S17〜S24では、1行分の印刷動作を
行う。S17では、記録紙のない部分から記録紙部分、
あるいはその逆の部分を通過してからのキャリッジ移動
量をカウントしておく。S18、S19は、記録ヘッド
9と記録紙センサ13とのオフセットを吸収するための
処理であり、S17でカウントした値をオフセットと比
較する。S22では、1ステップ分の印刷データを印字
する。S23では、1ステップ分の印刷データを印刷せ
ずに破棄する。ここで、「印刷データ」は、記録ヘッド
9に送られるドット単位のデータである。
In S17 to S24, the printing operation for one line is performed. In S17, from the portion without the recording paper to the recording paper portion,
Alternatively, the carriage movement amount after passing the opposite portion is counted. S18 and S19 are processes for absorbing the offset between the recording head 9 and the recording paper sensor 13, and the value counted in S17 is compared with the offset. In S22, print data for one step is printed. In S23, the print data for one step is discarded without being printed. Here, the “print data” is dot-unit data sent to the recording head 9.

【0033】S17→S18→S20→S22→S24
の順に移行する場合は、記録紙の中程の部分に印刷する
場合の処理を行う。S17→S18→S21→S23→
S24の順に移行する場合は、記録紙の穴の右側部分に
印刷する場合の処理を、S17→S19→S20→S2
2→S24の順に移行する場合は、記録紙の右端および
記録紙中の穴の左側部分に印刷する場合の処理を行う。
また、S17→S19→S21→S23→S24の順に
移行する場合は、記録紙のない部分での処理を行う。
S17 → S18 → S20 → S22 → S24
In the case of shifting in the order of, the process for printing in the middle part of the recording paper is performed. S17 → S18 → S21 → S23 →
When shifting to the order of S24, the process for printing on the right side of the hole of the recording paper is performed in S17 → S19 → S20 → S2.
When the sequence proceeds from 2 to S24, the process for printing on the right edge of the recording paper and the left side portion of the hole in the recording paper is performed.
Further, in the case of shifting in the order of S17 → S19 → S21 → S23 → S24, the process is performed on the part without the recording paper.

【0034】S25では、1行分の印刷データがなくな
ったときの改行処理を行い、S26では、1ページ分の
印刷が終わったかどうかを調べ、終わったときはS28
へ移行し改ページを行い、そうでないときは、S27へ
移行し、キャリッジ15を前記のS16で記憶した記録
紙左端へ移動させ、その後、S17へ移行する。
In S25, a line feed process is performed when the print data for one line is exhausted, and in S26, it is checked whether or not the print data for one page is completed.
The process proceeds to step S27 to perform page break. If not, the process proceeds to step S27 to move the carriage 15 to the left end of the recording paper stored in step S16, and then to step S17.

【0035】S29では、文書の終わりかどうかを調
べ、終わりなら処理終了、そうでないならS14へ移行
し次のページを印刷する。
In step S29, it is checked whether the document is at the end. If it is the end, the process is terminated. If not, the process proceeds to step S14 to print the next page.

【0036】次に、上記のように非定形記録紙に対する
印刷処理である印刷処理Bを、図8のフローチャートに
基づいて以下に説明する。
Next, the print processing B, which is the print processing on the non-standard-size recording paper as described above, will be described below with reference to the flowchart of FIG.

【0037】印刷処理Bの場合は、印刷可能領域測定時
に記録紙の左端位置が分かっているので、印刷処理Aの
S14、S15、S16、S27に対応する部分がな
い。また、非定形記録紙では、1ページ分だけの印刷し
かできないので1ページの印刷が終了した時点で処理を
終了する。このため、印刷処理AのS28、S29に対
応する部分がない。従って、印刷処理Bの処理ステップ
であるS30〜S39では、印刷処理AのS17〜S2
6と全く同じ処理を行う。
In the case of the print process B, since the left edge position of the recording paper is known when measuring the printable area, there is no part corresponding to S14, S15, S16 and S27 of the print process A. Further, since the non-standard size recording paper can print only one page, the processing is ended when the printing of one page is completed. Therefore, there is no portion corresponding to S28 and S29 of the print process A. Therefore, in S30 to S39 which are the process steps of the print process B, S17 to S2 of the print process A are performed.
The same process as 6 is performed.

【0038】以上のように、本実施例の文書処理装置
は、記録紙に対する文書データの印刷可能領域を検出す
る記録紙センサ13と、印刷可能領域内に所定マージン
を設けた状態で文書データを印刷すべく、プリンタ6を
制御する印刷制御部8と、所定マージンを除く印刷可能
領域を文書データの入力可能領域と対応させるべく、L
CD5を制御する表示制御部7とを備えている。
As described above, the document processing apparatus of this embodiment stores the document data with the recording paper sensor 13 for detecting the printable area of the document data on the recording paper and the predetermined margin in the printable area. In order to print, the print control unit 8 that controls the printer 6 and the printable area other than the predetermined margin are set to L in order to correspond to the inputtable area of the document data.
The display controller 7 for controlling the CD 5 is provided.

【0039】このため、印刷中に常に記録紙の有無を検
出しているので穴の空いた定形記録紙を装填した場合
や、記録紙装填位置に誤差がある場合にも、プラテン1
8への誤印刷を防ぐことができる。これによって、記録
紙両端いっぱいまでの印刷が可能となる。また、文書編
集に先立って記録紙の幅を1行ごとに測定し、各行ごと
に文書データの入力可能領域を表示させているため、矩
形外の記録紙や斜めに装填された記録紙に対しても記録
紙からはみ出すことなく印刷を行うことができる。定形
記録紙に対しても1ページごとに記録紙の左端の座標を
求め、それを基準に印刷を行うので、常に正確な印刷位
置が得られる。
For this reason, since the presence or absence of the recording paper is always detected during printing, the platen 1 can be used even when the fixed recording paper with holes is loaded or when the recording paper loading position has an error.
8 can be prevented from being erroneously printed. As a result, it is possible to print on both ends of the recording paper. In addition, the width of the recording paper is measured line by line prior to editing the document, and the area where the document data can be input is displayed for each line. However, printing can be performed without protruding from the recording paper. Also for the standard size recording paper, the coordinates of the left edge of the recording paper are obtained for each page and printing is performed based on the coordinates, so that an accurate printing position can always be obtained.

【0040】[0040]

【発明の効果】以上のように、本発明の請求項1記載の
文書処理装置は、記録紙に対する文書データの印刷可能
領域を検出する印刷領域検出手段と、印刷領域検出手段
により検出された記録紙の印刷可能領域内に、所定マー
ジンを設けた状態で文書データを印刷すべく、印刷手段
を制御する印刷制御手段とを備えている構成である。
As described above, in the document processing apparatus according to the first aspect of the present invention, the print area detecting means for detecting the printable area of the document data on the recording paper, and the recording detected by the print area detecting means. The print control unit controls the printing unit so that the document data is printed in the printable area of the paper with a predetermined margin.

【0041】これにより、非定形の記録紙を使用した場
合や記録紙を所望の給紙位置からずらして装填した場合
でも、所定マージンを設けた状態で確実な文書データの
印刷を招来することができ、ひいては、印刷結果の正確
化と給紙の簡便化とを可能にした便利な文書処理装置を
提供することができる。
As a result, even if a non-standard size recording paper is used or the recording paper is loaded while being displaced from a desired paper feed position, reliable document data printing can be brought about with a predetermined margin. Therefore, it is possible to provide a convenient document processing device that enables accurate printing results and easy paper feeding.

【0042】さらには、上記のような印刷結果の正確化
に伴う記録紙以外への誤印刷の防止により、印刷手段を
構成する記録ヘッドやプラテン等の構成部材を誤動作に
伴う劣化から保護することができるという効果を奏す
る。
Further, by preventing erroneous printing on a recording sheet other than the recording paper due to the above-described accuracy of the printing result, it is possible to protect the constituent members such as the recording head and the platen constituting the printing means from the deterioration due to the malfunction. There is an effect that can be.

【0043】また、請求項2記載の文書処理装置は、上
記請求項1記載の文書処理装置において、所定マージン
を除く記録紙の印刷可能領域を、文書データの入力可能
領域と対応させるべく、表示手段を制御する表示制御手
段を備えている構成である。
According to a second aspect of the present invention, in the document processing apparatus according to the first aspect, the printable area of the recording paper excluding a predetermined margin is displayed so as to correspond to the inputtable area of the document data. This is a configuration including display control means for controlling the means.

【0044】これにより、表示手段を用いての文書デー
タの入力および編集を、記録紙の印刷可能領域に対応さ
せて行わせることができるため、記録紙への印刷結果を
考慮した上での文書作成が可能になるという効果を奏す
る。
Thus, since the input and editing of the document data using the display means can be performed in correspondence with the printable area of the recording paper, the document in consideration of the print result on the recording paper can be obtained. The effect is that it can be created.

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

【図1】本発明の一実施例における文書処理装置を構成
する各種の構成部材を示すブロック図である。
FIG. 1 is a block diagram showing various constituent members of a document processing apparatus according to an embodiment of the present invention.

【図2】上記の構成部材をなすROMの記録エリアを示
す説明図である。
FIG. 2 is an explanatory diagram showing a recording area of a ROM that constitutes the above-described constituent members.

【図3】上記の構成部材をなすRAMの記録エリアを示
す説明図である。
FIG. 3 is an explanatory diagram showing a recording area of a RAM forming the above-mentioned constituent member.

【図4】上記の構成部材をなすプリンタを示す斜視図で
ある。
FIG. 4 is a perspective view showing a printer that constitutes the above-mentioned constituent members.

【図5】上記文書処理装置における印刷処理前の書式設
定および文書入力の流れを示すフローチャートである。
FIG. 5 is a flowchart showing a flow of format setting and document input before print processing in the document processing apparatus.

【図6】上記図5中のS5における詳細な処理ステップ
を示すフローチャートである。
FIG. 6 is a flowchart showing detailed processing steps in S5 in FIG. 5 described above.

【図7】上記文書処理装置における定形記録紙に対する
印刷処理の流れを示すフローチャートである。
FIG. 7 is a flowchart showing a flow of a printing process on a fixed size recording paper in the document processing apparatus.

【図8】上記文書処理装置における非定形記録紙に対す
る印刷処理の流れを示すフローチャートである。
FIG. 8 is a flowchart showing a flow of a printing process on a non-standard size recording paper in the document processing apparatus.

【図9】上記の構成部材をなす記録紙センサにより印刷
可能領域が検出される状態を示す説明図である。
FIG. 9 is an explanatory diagram showing a state in which a printable area is detected by a recording paper sensor that is the above-mentioned constituent member.

【図10】上記の構成部材をなすLCDの画面上に定形
記録紙の入力可能領域が表示された状態を示す説明図で
ある。
FIG. 10 is an explanatory diagram showing a state in which an inputtable area of a fixed-size recording paper is displayed on the screen of the LCD that is the above-mentioned constituent member.

【図11】上記の構成部材をなすLCDの画面上に非定
形記録紙の入力可能領域が表示された状態を示す説明図
である。
FIG. 11 is an explanatory diagram showing a state in which an inputtable area of non-standard-sized recording paper is displayed on the screen of the LCD that is the above-mentioned constituent member.

【図12】従来例におけるプリンタを示す斜視図であ
る。
FIG. 12 is a perspective view showing a printer in a conventional example.

【符号の説明】[Explanation of symbols]

4 キーボード(入力手段) 5 LCD(表示手段) 6 プリンタ(印刷手段) 7 表示制御部(表示制御手段) 8 印刷制御部(印刷制御手段) 13 記録紙センサ(印刷領域検出手段) 4 keyboard (input means) 5 LCD (display means) 6 printer (printing means) 7 display control section (display control means) 8 print control section (print control means) 13 recording paper sensor (print area detection means)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】入力手段から入力される文字、図形等の文
書データを表示手段に表示すると共に、上記の文書デー
タを印刷手段にて記録紙に印刷する文書処理装置におい
て、 記録紙に対する文書データの印刷可能領域を検出する印
刷領域検出手段と、 印刷領域検出手段により検出された記録紙の印刷可能領
域内に、所定マージンを設けた状態で文書データを印刷
すべく、印刷手段を制御する印刷制御手段とを備えてい
ることを特徴とする文書処理装置。
1. A document processing apparatus for displaying document data such as characters and figures input from an input unit on a display unit and printing the document data on a recording paper by a printing unit. Printing area detecting means for detecting the printable area, and printing for controlling the printing means so that the document data is printed with a predetermined margin in the printable area of the recording paper detected by the printing area detecting means. A document processing apparatus comprising: a control unit.
【請求項2】所定マージンを除く記録紙の印刷可能領域
を、文書データの入力可能領域と対応させるべく、表示
手段を制御する表示制御手段を備えていることを特徴と
する請求項1記載の文書処理装置。
2. The display control means for controlling the display means so as to correspond the printable area of the recording paper excluding a predetermined margin to the inputtable area of the document data. Document processing device.
JP4226056A 1992-08-25 1992-08-25 Document processor Pending JPH0664286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4226056A JPH0664286A (en) 1992-08-25 1992-08-25 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4226056A JPH0664286A (en) 1992-08-25 1992-08-25 Document processor

Publications (1)

Publication Number Publication Date
JPH0664286A true JPH0664286A (en) 1994-03-08

Family

ID=16839110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4226056A Pending JPH0664286A (en) 1992-08-25 1992-08-25 Document processor

Country Status (1)

Country Link
JP (1) JPH0664286A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004018218A1 (en) * 2002-08-21 2004-03-04 Seiko Epson Corporation Printer, program, and printing method
JP2009031921A (en) * 2007-07-25 2009-02-12 Kyocera Mita Corp Image forming apparatus, and program for print setting
KR20240110906A (en) 2021-11-30 2024-07-16 가부시키가이샤 다무라 세이사쿠쇼 Solder alloys, solder joints, solder pastes and semiconductor packages

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004018218A1 (en) * 2002-08-21 2004-03-04 Seiko Epson Corporation Printer, program, and printing method
CN1323848C (en) * 2002-08-21 2007-07-04 精工爱普生株式会社 Printing device and printing method
US7537331B2 (en) 2002-08-21 2009-05-26 Seiko Epson Corporation Printing apparatus, program, and printing method
US7775654B2 (en) 2002-08-21 2010-08-17 Seiko Epson Corporation Printing apparatus, program, and printing method
JP2009031921A (en) * 2007-07-25 2009-02-12 Kyocera Mita Corp Image forming apparatus, and program for print setting
KR20240110906A (en) 2021-11-30 2024-07-16 가부시키가이샤 다무라 세이사쿠쇼 Solder alloys, solder joints, solder pastes and semiconductor packages

Similar Documents

Publication Publication Date Title
EP0534794B1 (en) Tape printing device
JP2979536B2 (en) Barcode printing device
JP3094658B2 (en) Tape printer
JP2629516B2 (en) Tape printer
US5435659A (en) Scale printing apparatus
EP0652527B1 (en) Tape printing apparatus
US5613045A (en) Document editing device and method
JPH0664286A (en) Document processor
JP3149174B2 (en) Printer
JP2560951B2 (en) Tape printer
JPH06286239A (en) Method for processing of label printing in label printer
JPH09109425A (en) Printing device and recording paper used in this printing device
JPH08230266A (en) Printer
JP3139514B2 (en) Tape printer
JPH02269078A (en) Document processor
US5647676A (en) Document processing device having ruling function
JP2560958B2 (en) Tape printer
JPS60176790A (en) Paper position indicator
JP2690759B2 (en) Recording device
JP2604355B2 (en) Document processing device
JP2582429B2 (en) Recording device
JPH0781174A (en) Tape printer
JPS6225072A (en) document creation device
JPH06143765A (en) Recording device
JPH01171970A (en) printer