JPH07144458A - Character processing apparatus - Google Patents

Character processing apparatus

Info

Publication number
JPH07144458A
JPH07144458A JP5132357A JP13235793A JPH07144458A JP H07144458 A JPH07144458 A JP H07144458A JP 5132357 A JP5132357 A JP 5132357A JP 13235793 A JP13235793 A JP 13235793A JP H07144458 A JPH07144458 A JP H07144458A
Authority
JP
Japan
Prior art keywords
characters
line
print
register
range
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.)
Granted
Application number
JP5132357A
Other languages
Japanese (ja)
Other versions
JP2555558B2 (en
Inventor
Jiyunichi Uto
潤一 羽斗
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP5132357A priority Critical patent/JP2555558B2/en
Publication of JPH07144458A publication Critical patent/JPH07144458A/en
Application granted granted Critical
Publication of JP2555558B2 publication Critical patent/JP2555558B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To simply set from data adapted to a printing range at the time of the setting of form data by providing a form one line number-of-character setting means reducing the number of characters of one line of a form within a printing range at every indication due to a reduction indicating means and increasing the same at every indication due to an increase indication means. CONSTITUTION:When printing areas are set to printing paper, at first, a printing range is arbitrary set to printing paper and the max. value of the number of characters of one line is determined on the basis of the size of the specified printing range and a character size accompanied by the specification of the printing range by a number-of-character determining means (CPU 13). Subsequently, by operating a reduction indication means indication the reduction of the number of characters of one line and an increase indication means indicating an increase in the number of a key input part 11, the number of characters of one line within the printing range is set. The number of characters of one line of a form set within the range of the max. value of the number of characters of one line determined by the number-of-character determining means is registered in and set to a form data memory 14 corresponding to the printing range specified by a printing range specifying means.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ワードプロセッサ、電
子タイプライタ等の文字処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing device such as a word processor and an electronic typewriter.

【0002】[0002]

【従来の技術】従来、ワードプロセッサにおいて、文字
数、文字ピッチの書式設定には次の方法が知られてい
る。即ち、直接1行当たりの文字数、文字ピッチを指定
することによって書式設定を行う方式である。
2. Description of the Related Art Conventionally, the following methods are known for formatting the number of characters and the character pitch in a word processor. In other words, this is a method of performing format setting by directly specifying the number of characters per line and the character pitch.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記書
式設定方式にあっては、連絡書や履歴書の如く記入枠が
予め決められている定形用紙に対して印字を行う場合、
予め記入枠の幅を計り、この記入枠に印字すべき文字数
に基づいて文字ピッチを人為的に計算し、これを設定す
る必要がある為、書式設定が極めて煩雑で面倒なものと
なっていた。本発明の課題は、印刷用紙上で指定した印
刷範囲に対して書式情報を設定する際、その印刷範囲に
適応する書式情報を、簡易な操作で設定できるようにす
ることである。
However, in the case of the above format setting method, when printing is performed on a standard form sheet having a predetermined entry frame such as a contact or resume,
Since it is necessary to measure the width of the entry frame in advance and artificially calculate the character pitch based on the number of characters to be printed in this entry frame, and to set this, the format setting was extremely complicated and troublesome. . An object of the present invention is to make it possible, when setting format information for a print range specified on a printing paper, to set the format information adapted to the print range by a simple operation.

【0004】[0004]

【課題を解決するための手段】本発明の手段は次の通り
である。書式情報を記憶する書式記憶手段(実施例の書
式情報メモリ14に相当する)と、印字用紙に対する印
刷範囲を任意に指定する印刷範囲指定手段(実施例のC
PU13における処理ステップS2〜S6の処理に相当
する)と、この印刷範囲指定手段で指定された印刷範囲
のサイズと文字サイズとに基づいて1行字数の最大値を
決定する字数決定手段(実施例のCPU13における処
理ステップS7の処理に相当する)と、1行字数の減少
を指示する減少指示手段(実施例の下カーソルキーKE
に相当する)と、1行字数の増加を指示する増加指示手
段(実施例の上カーソルキーKDに相当する)と、上記
印刷範囲における書式1行字数を、上記減少指示手段に
よる指示毎に減少させ、上記増加指示手段による指示毎
に増加させる書式1行字数設定手段(実施例のCPU1
3における処理ステップS11〜S18の処理に相当す
る)と、この書式1行字数設定手段により上記字数決定
手段で決定された1行字数の最大値の範囲内において設
定された書式1行字数を、上記印刷範囲指定手段により
指定された印刷範囲に対応づけて上記書式記憶手段に登
録設定させる登録設定手段(実施例のCPU13におけ
る処理ステップS21の処理に相当する)と、を有す
る。
The means of the present invention are as follows. Format storage means for storing format information (corresponding to the format information memory 14 of the embodiment), and print range designating means for arbitrarily designating the print range on the printing paper (C of the embodiment).
(Corresponding to the processing steps S2 to S6 in the PU 13) and the character number determining means for determining the maximum value of the number of characters per line based on the size of the printing range and the character size designated by the printing range designating means (embodiment). (Corresponding to the processing of the processing step S7 in the CPU 13) and a reduction instruction means for instructing the reduction of the number of characters in one line (lower cursor key KE in the embodiment).
, And an increase instruction means for instructing an increase in the number of characters per line (corresponding to the up cursor key KD of the embodiment), and the number of characters per line in the print range is decreased for each instruction by the decrease instruction means. Then, the format 1 line character number setting means (the CPU 1 of the embodiment) for increasing each time by the instruction by the increase instruction means
(Corresponding to the processing steps S11 to S18 in step 3) and the number of characters in one line of the format set within the range of the maximum value of the number of characters in one line determined by the number-of-characters determination unit by the format one-line character number setting means, Registration setting means (corresponding to the processing of processing step S21 in the CPU 13 of the embodiment) for registering and setting in the format storage means in association with the printing range designated by the printing range designating means.

【0005】[0005]

【作 用】本発明の手段の作用は次の通りである。先ず
オペレータは印刷範囲指定手段により印刷用紙に対する
印刷範囲を任意に指定する。すると字数決定手段は、こ
の印刷範囲指定手段で指定された印刷範囲のサイズと文
字サイズとに基づいて1行字数の最大値を決定する。こ
の後オペレータは上記印刷範囲における1行字数を、1
行字数の減少を指示する減少指示手段あるいは1行字数
の増加を指示する増加指示手段を操作することにより設
定するが、これは書式1行字数設定手段が、上記書式1
行字数を上記減少指示手段による指示毎に減少させ、上
記増加指示手段による指示毎に増加させることにより行
う。その結果、登録設定手段は、この書式1行字数設定
手段により上記字数決定手段で決定された1行字数の最
大値の範囲内において設定された書式1行字数を、上記
印刷範囲指定手段により指定された印刷範囲に対応づけ
て上記書式記憶手段に登録設定させる。従って、印刷用
紙上で指定した印刷範囲に対して1行字数の書式情報を
設定する際、その印刷範囲に適応する1行字数の最大値
の範囲内において、1行字数の減少を指示する減少指示
手段を繰返し操作したり、あるいは1行字数の増加を指
示する増加指示手段を繰返し操作するのみの簡易な操作
で設定できる。
[Operation] The operation of the means of the present invention is as follows. First, the operator arbitrarily designates the print range on the printing paper by the print range designation means. Then, the character number determining means determines the maximum value of the number of characters in one line based on the size of the printing range and the character size designated by the printing range designating means. After this, the operator sets the number of characters per line in the above print range to 1
It is set by operating the decrease instruction means for instructing the reduction of the number of line characters or the increase instruction means for instructing the increase of the number of one line characters.
The number of line characters is reduced for each instruction by the decrease instruction means, and is increased for each instruction by the increase instruction means. As a result, the registration setting means specifies, by the printing range specifying means, the number of characters in one line of the format set within the range of the maximum value of the number of characters in one line decided by the number of characters for one line decided by the means for setting the number of characters in one line. The format storage means is registered and set in association with the selected print range. Therefore, when setting the format information of the number of characters per line for the specified print range on the printing paper, the decrease that indicates the decrease in the number of characters per line within the range of the maximum value of the number of characters per line applicable to the print range. This can be set by a simple operation of repeatedly operating the indicating means or simply operating the increasing instruction means for instructing an increase in the number of characters in one line.

【0006】[0006]

【実施例】以下、この発明を図1〜図4を参照して具体
的に説明する。なお、本実施例は日本語ワードプロセッ
サに適用した例を示している。図1はこの日本語ワード
プロセッサの基本的なブロック回路図である。図中11
は、このワードプロセッサの入力部で、この入力部11
のキーボード上には通常備えられている各種の文字キー
等の他、書式情報の設定に際して使用される書式設定キ
ーKA、実行キーKB、解除キーKC、上下左右のカー
ソルキーKD、KE、KF、KG、シフトキーKHが設
けられている。しかして、入力部11には入力制御部1
2からのキーサンプリング信号が与えられており、入力
部11においてキー操作が行なわれると、上記サンプリ
ング信号が操作キーに応じて選択され、キー入力信号と
して入力制御部12に送られてキーコードに変換された
のちCPU(中央演算処理回路)13に取り込まれる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically described below with reference to FIGS. The present embodiment shows an example applied to a Japanese word processor. FIG. 1 is a basic block circuit diagram of this Japanese word processor. 11 in the figure
Is the input of this word processor,
In addition to the various character keys that are normally provided on the keyboard, a format setting key KA, an execution key KB, a release key KC, and up / down / left / right cursor keys KD, KE, KF, which are used when setting format information, A KG and a shift key KH are provided. Therefore, the input control unit 1 is included in the input unit 11.
When the key sampling signal from 2 is given and a key operation is performed in the input section 11, the sampling signal is selected according to the operation key and sent to the input control section 12 as a key input signal to be converted into a key code. After being converted, it is taken into the CPU (central processing unit) 13.

【0007】CPU13は予め記憶されているマイクロ
プログラムにしたがって各種の動作、即ち、入力処理、
かな漢字変換処理、書式設定処理等を制御するもので、
CPU13には書式情報メモリ14、文章メモリ15、
カウンタ部16、ワークRAM17、領域カウンタ18
が双方向に接続されている。
The CPU 13 performs various operations according to a microprogram stored in advance, that is, input processing,
It controls kana-kanji conversion processing, formatting processing, etc.
The CPU 13 has a format information memory 14, a text memory 15,
Counter section 16, work RAM 17, area counter 18
Are connected in both directions.

【0008】書式情報メモリ14、文章メモリ15はR
AM(ランダムアクセスメモリ)によって構成され、C
PU13の制御下でデータの書き込み、読み出し動作が
制御される。そして、書式情報メモリ14は定型用紙の
印字フォーマットに対応して複数の印刷領域を設定する
場合に、各行アドレス領域に対応して各印刷領域の先頭
位置(左端位置)を示すXY座標系の座標位置データを
記憶するエリアX0、Y0の他、対応する印刷領域に印字
されるべき1行当たりの文字数を記憶するエリアCと印
字ピッチを記憶するエリアPとを有する構成となってい
る。また、文章メモリ15は書式情報メモリ14に設定
された座標位置データ等によって特定される印刷領域内
に印字されるべき文章データを各印刷領域に夫々対応し
て記憶するものである。
The format information memory 14 and the text memory 15 are R
Comprised of AM (random access memory), C
Under the control of the PU 13, data writing and reading operations are controlled. Then, the format information memory 14 sets the coordinates of the XY coordinate system indicating the start position (left end position) of each print area corresponding to each row address area when setting a plurality of print areas corresponding to the print format of the standard size paper. In addition to the areas X 0 and Y 0 for storing the position data, an area C for storing the number of characters per line to be printed in the corresponding printing area and an area P for storing the printing pitch are provided. The text memory 15 stores the text data to be printed in the print area specified by the coordinate position data set in the format information memory 14 in correspondence with each print area.

【0009】カウンタ部16は後述する印字ヘッドの移
動に伴って印字ヘッド位置を示すX座標成分を計数する
XカウンタとY座標成分を計数するYカウンタとを有す
る構成となっている。ワークRAM17には指定印刷領
域の左端位置のX座標データを取り込むLXレジスタ、
Y座標データを取り込むLYレジスタおよび指定印刷領
域の右端位置に対応するX座標データを取り込むRXレ
ジスタが設けられている。またワークRAM17にはL
XレジスタとRXレジスタの内容に基づいて算出された
指定印刷領域内に印字可能な1行当たりの最大文字数を
記憶するAレジスタ、予め決められている1行当たりの
最小文字数「3」からAレジスタ内の最大文字数の範囲
内で選択された文字数を記憶するaレジスタ、またLX
レジスタ、RXレジスタおよびaレジスタの内容に基づ
いて算出された指定印刷領域内の印字ピッチを記憶する
Bレジスタが設けられている。そして、LXレジスタ、
LYレジスタおよびaレジスタ、Bレジスタの内容はC
PU13の制御下で書式情報メモリ14の指定行アドレ
ス領域に設定される。この場合、領域カウンタ18は書
式情報メモリ14の行アドレスを指定するカウンタで、
この計数値データはCPU13の制御下で書式情報メモ
リ14に書込みアドレスとして送られる。
The counter section 16 has an X counter that counts the X coordinate component indicating the print head position and a Y counter that counts the Y coordinate component as the print head moves, which will be described later. The work RAM 17 has an LX register for taking in the X coordinate data of the left end position of the designated print area,
An LY register for fetching Y coordinate data and an RX register for fetching X coordinate data corresponding to the right end position of the designated print area are provided. Also, the work RAM 17 has L
A register that stores the maximum number of printable characters per line in the specified print area calculated based on the contents of the X register and RX register, and the A register from a predetermined minimum number of characters per line of "3" A register that stores the number of characters selected within the maximum number of characters in
A B register is provided for storing the print pitch in the designated print area calculated based on the contents of the register, the RX register, and the a register. And the LX register,
The contents of the LY register, a register, and B register are C
It is set in the designated row address area of the format information memory 14 under the control of the PU 13. In this case, the area counter 18 is a counter that specifies the row address of the format information memory 14,
This count value data is sent as a write address to the format information memory 14 under the control of the CPU 13.

【0010】一方、CPU13には表示制御部19を介
して表示部20が接続され、CPU13から出力される
文章データ等が表示制御部19で表示駆動信号に変換さ
れたのち表示部20に送られて表示される。また、CP
U13には印字制御部21を介してプリンタ22が接続
され、CPU13から出力される文章データ等がプリン
タ22にセットされた記録紙に印字される。なお、プリ
ンタ22は24本のサーマル印字素子からなる印字ヘッ
ドPHを有するサーマルプリンタによって構成され、2
4×24ドットの文字サイズで1行当たり最大50桁印
字可能なものである。
On the other hand, a display unit 20 is connected to the CPU 13 via a display control unit 19, and the text data and the like output from the CPU 13 is converted into a display drive signal by the display control unit 19 and then sent to the display unit 20. Is displayed. Also, CP
A printer 22 is connected to the U13 via a print control unit 21, and the text data output from the CPU 13 is printed on a recording sheet set in the printer 22. The printer 22 is a thermal printer having a print head PH composed of 24 thermal printing elements,
It is possible to print a maximum of 50 digits per line with a character size of 4 × 24 dots.

【0011】先ず、連絡書や履歴書のように印字フォー
マットが定められている定型用紙をプリンタ22にセッ
トする。そして書式設定キーKAを操作すると、書式設
定モードにセットされ、図2のフローにしたがった動作
が実行開始される。先ず、表示部20に“位置?”のガ
イダンス表示が行なわれ、印刷領域の左端の座標位置デ
ータを入力設定すべきことが指示される(ステップS
1)。ここで、図4は定型用紙の印字フォーマットを示
し、印刷領域(図中斜線を付して示す)PA−1、PA
−2、PA−3、PA−4の先頭位置が左端位置とな
り、図中各印刷領域PA−1〜PA−4の左端位置は
First, a standard form sheet having a predetermined print format such as a contact form or a resume is set in the printer 22. When the format setting key KA is operated, the format setting mode is set, and the operation according to the flow of FIG. 2 is started. First, a guidance of "position?" Is displayed on the display unit 20, and it is instructed that the coordinate position data of the left end of the print area should be input and set (step S).
1). Here, FIG. 4 shows the print format of the standard size paper, and the print areas (shown by hatching in the drawing) PA-1, PA
-2, PA-3, and PA-4 are the leftmost positions, and the leftmost positions of the print areas PA-1 to PA-4 in the figure are

【外1】 で表わされている。なお、本実施例においては定型用紙
の横方向がX座標軸、縦方向がY座標軸に対応し、そし
て定型用紙の左上端がXY座標「0、0」に対応してい
る。しかして、上述のようなガイダンス表示が行なわれ
ると、定型用紙に記入されている記入枠に対応して印刷
領域PA−1〜PA−4の左端位置の入力設定を行う。
この場合の領域設定はカーソルキーKD〜KGあるいは
シフトキーKH+カーソルキーKD〜KG(シフトキー
とカーソルキーの同時押し)を操作することによって行
なわれ、操作キーに応じて所定方向に印字ヘッドPHが
所定単位量ずつ移動される(ステップS2)。
[Outer 1] It is represented by. In this embodiment, the horizontal direction of the standard paper corresponds to the X coordinate axis, the vertical direction corresponds to the Y coordinate axis, and the upper left end of the standard paper corresponds to the XY coordinates “0, 0”. Then, when the guidance display as described above is performed, the input setting of the left end position of the print areas PA-1 to PA-4 is performed corresponding to the entry frame entered on the standard form sheet.
In this case, the area is set by operating the cursor keys KD to KG or the shift keys KH + cursor keys KD to KG (simultaneously pressing the shift key and the cursor key), and the print head PH is moved in a predetermined direction in a predetermined unit according to the operation key. It is moved by the amount (step S2).

【0012】図3はこの印字ヘッド移動処理の具体的内
容を示したフローチャートである。先ず、このフローに
入ると、キーサンプリング処理(ステップS2−1)が
行なわれ、次でキー入力有無が調べられ(ステップS2
−2)、キー入力が無ければステップS2−1に戻り、
キー入力が有るまでステップS2−1、ステップS2−
2が繰り返されるキー入力待ち状態となる。しかして。
何んらかのキーが操作されると、操作キーが実行キーK
Bであるか(ステップS2−3)、解除キーKCである
か(ステップS2−4)、印字ヘッドPHを移動させる
カーソルキーKD〜KG等であるかが調べられる。い
ま、解除キーKCが操作されるとそのことがステップS
2−4で検出されて書式設定モードが解除されるが、印
字ヘッドを移動させるカーソルキーKD〜KG等が操作
されると、ステップS2−6に進み、操作キーに対応し
て所定方向に所定単位量だけ印字ヘッドPHが移動され
る。即ち、上下左右のカーソルキーKD〜KGが操作さ
れたものとすると、印字制御部21が駆動され、印字ヘ
ッドPHが操作キーに対応する上下左右の方向に1文字
の印字サイズ「24ドット」分移動される。したがっ
て、例えばXY座標「0、0」の位置にある印字ヘッド
PHを第5図の印刷領域PA−1の先頭位置(左端位
置)
FIG. 3 is a flow chart showing the specific contents of the print head moving process. First, when entering this flow, a key sampling process (step S2-1) is performed, and next, it is checked whether or not there is a key input (step S2).
-2), if there is no key input, return to step S2-1,
Until there is a key input, step S2-1, step S2-
The key input waiting state in which 2 is repeated is entered. Then.
When any key is operated, the operation key becomes the execution key K
Whether it is B (step S2-3), the release key KC (step S2-4), or the cursor keys KD to KG for moving the print head PH is checked. Now, when the release key KC is operated, that is the step S
Although the format setting mode is canceled in 2-4, when the cursor keys KD to KG for moving the print head are operated, the process proceeds to step S2-6, and the predetermined direction is set in accordance with the operation key. The print head PH is moved by a unit amount. That is, assuming that the up, down, left, and right cursor keys KD to KG are operated, the print control unit 21 is driven, and the print head PH corresponds to the operation keys in the up, down, left, and right directions by the print size "24 dots" of one character. Be moved. Therefore, for example, the print head PH located at the position of XY coordinates "0, 0" is set to the head position (left end position) of the print area PA-1 in FIG.

【外2】 に移動させる場合、この左端位置[Outside 2] If you want to move to

【外2】のXY座標が「96、48」であるとすると、
右カーソルキーKGを4回、下カーソルキーKEを2回
操作すれば印字ヘッドPHは
If the XY coordinates of [Outer 2] are "96, 48",
By operating the right cursor key KG four times and the down cursor key KE twice, the print head PH will

【外2】の位置にセットされる。このようにカーソルキ
ーKD〜KGの操作で印字ヘッドPHは24ドット単位
で移動される為、上述の如く、カーソルキーKD〜KG
のみの操作で印字ヘッドPHを所望の位置、例えば
It is set to the [outside 2] position. As described above, since the print head PH is moved in units of 24 dots by operating the cursor keys KD to KG, as described above, the cursor keys KD to KG are used.
Operation of the print head PH to a desired position, for example,

【外2】の位置へ正確にセットすることができればよい
が、23ドット以内のズレを生じた場合にはシフトキー
KHとカーソルキーKD〜KGの同時押しによって印字
ヘッドPHの移動の微調整を行う。このような操作によ
って印字ヘッドPHは24ドット単位ではなく、1ドッ
ト単位で上下左右のカーソルキーKD〜KGに対応して
上下左右の方向に移動される。このような印字ヘッド移
動処理(ステップS2−6)が終ると、次のステップS
2−7では印字ヘッドPHの移動量に応じてXカウン
タ、Yカウンタの値が更新される。即ち、カーソルキー
KD〜KGのみの操作ではXレジスタ、Yレジスタの値
から「24」が減算、またはXレジスタ、Yレジスタの
値に「24」が加算される。つまり、上カーソルキーK
Dの操作でYレジスタの値から「24」が減算され、下
カーソルキーKEの操作でYレジスタの値に「24」が
加算される。また、左カーソルキーKFの操作でXレジ
スタの値から「24」が減算され、また右カーソルキー
KGの操作でXレジスタの値に「24」が加算される。
同様に、シフトキーKHとカーソルキーKD〜KGの同
時押しによる印字ヘッドPHの微調整移動に伴ってXレ
ジスタ、Yレジスタに「1」が加算またはXレジスタ、
Yレジスタの値から「1」が減算される。いま、図4の
印刷領域PA−1における左端位置
It is only necessary to be able to accurately set the position to [Outer 2], but if a deviation of 23 dots or less occurs, the shift key KH and the cursor keys KD to KG are simultaneously pressed to finely adjust the movement of the print head PH. . By such an operation, the print head PH is moved in the up, down, left, and right directions corresponding to the up, down, left, and right cursor keys KD to KG in units of one dot, not in units of 24 dots. When the print head moving process (step S2-6) is completed, the next step S
In 2-7, the values of the X counter and the Y counter are updated according to the movement amount of the print head PH. That is, when only the cursor keys KD to KG are operated, "24" is subtracted from the values of the X register and the Y register, or "24" is added to the values of the X register and the Y register. That is, the up cursor key K
By operating D, "24" is subtracted from the value of the Y register, and by operating the down cursor key KE, "24" is added to the value of the Y register. Further, the operation of the left cursor key KF subtracts "24" from the value of the X register, and the operation of the right cursor key KG adds "24" to the value of the X register.
Similarly, with the fine adjustment movement of the print head PH by simultaneously pressing the shift key KH and the cursor keys KD to KG, "1" is added to the X register or the Y register or the X register,
"1" is subtracted from the value in the Y register. Now, the left end position in the print area PA-1 in FIG.

【外2】に印字ヘッドPHが正確にセットされたものと
すると、Xレジスタの値は「96」、Yレジスタの値は
「48」となる。このようなカウンタの更新処理が終る
と、ステップS2−1へ戻る。しかして印字ヘッドPH
を設定すべき印刷領域の左端位置へ正確にセットしたこ
とを確認したら、次に実行キーKBを操作する。する
と、ステップS2−3でそのことが検出され、図3のフ
ローから抜けて図2のステップS3に進む。
Assuming that the print head PH is correctly set to [External 2], the value of the X register is "96" and the value of the Y register is "48". When the counter updating process is completed, the process returns to step S2-1. Print head PH
When it is confirmed that the print area has been correctly set to the left end position of the print area to be set, then the execution key KB is operated. Then, this is detected in step S2-3, and the flow exits from the flow of FIG. 3 and proceeds to step S3 of FIG.

【0013】しかして、図2のステップS3ではXカウ
ンタにセットされたX座標データがワークRAM17の
LXレジスタに転送され、またYカウンタにセットされ
たY座標データがLYレジスタに転送される。
In step S3 of FIG. 2, the X coordinate data set in the X counter is transferred to the LX register of the work RAM 17, and the Y coordinate data set in the Y counter is transferred to the LY register.

【0014】上述のようにして左端座標位置データの設
定操作が終ると、ステップS4では“右端?”のガイダ
ンス表示が行なわれ、今度は印刷領域の右端の座標位置
データを入力すべきことが指示される。これにしたがっ
てカーソルキーKF、KG等が操作されると上述のステ
ップS2と同様の印字ヘッド移動処理(ステップS5)
が行なわれる。この場合、印字ヘッドPHをXY両方向
に移動させる必要はなく、左端位置からX方向へ右移動
させるだけでよい。このようにして印字ヘッドPHを例
えば図4の印刷領域PA−1の右端位置
When the setting operation of the left end coordinate position data is completed as described above, a guidance display of "right end?" Is displayed in step S4, and this time it is instructed that the right end coordinate position data of the print area should be input. To be done. When the cursor keys KF, KG, etc. are operated in accordance with this, the print head moving process similar to the above-mentioned step S2 (step S5)
Is performed. In this case, it is not necessary to move the print head PH in both X and Y directions, but it is sufficient to move the print head PH rightward in the X direction from the left end position. In this way, the print head PH is moved to, for example, the right end position of the print area PA-1 in FIG.

【外3】 へ移動させたのち実行キーKBが操作されると、ステッ
プS6に進み、Xカウンタにセットされた右端位置に対
応するX座標データがRXレジスタに取り込まれる。
[Outside 3] When the execution key KB is operated after moving to, the process proceeds to step S6, and the X coordinate data corresponding to the right end position set in the X counter is loaded into the RX register.

【0015】そして、次のステップS7では設定すべき
印刷領域の左端位置から右端位置までに印字することが
できる最大文字数が算出される。この文字数算出プログ
ラムは次式にしたがって行なわれる。 INT[RX−LX/24] INT:整数値を得る関数 RX:RXレジスタのX座標値 LX:LXレジスタのX座標値
Then, in the next step S7, the maximum number of characters that can be printed from the left end position to the right end position of the print area to be set is calculated. This character number calculation program is performed according to the following equation. INT [RX-LX / 24] INT: Function for obtaining integer value RX: X coordinate value of RX register LX: X coordinate value of LX register

【0016】このようにして得られた最大文字数はワー
クRAM17のAレジスタおよびaレジスタにセットさ
れる。そして、このaレジスタの値が表示部20にデジ
タル表示される(ステップS8)。2の場合、最大文字
数は文字間隔を「0」ドットとしたときに印刷領域に印
字することができる1行当たりの最大文字数で、この表
示内容を目視確認し、設定すべき文字数が最大文字数で
あれば直ちに実行キーKBを操作するが、最大文字数未
満であれば下カーソルキーKEを操作する。いま、CP
U13はステップS9でキーサンプリング処理次でステ
ップS10でキー入力有無を調べ、その結果、キー入力
が無ければステップS9に戻って同様の処理を繰り返す
キー入力待ち状態となっている。ここで、下カーソルキ
ーKEが操作されると、そのことがステップS11で検
出され、ステップS12に進み、aレジスタの値が予め
決められている最小文字数「3」を越えているかが調べ
られる。いま、aレジスタには最大文字数がセットされ
ており、この値が4以上であれば、下カーソルキーKE
の操作に伴ってaレジスタの値が−1されると共にその
値が表示され(ステップS13、S14)そして、ステ
ップS9に戻る。このように下カーソルキーKEが操作
される毎にaレジスタの値が−1されるので、aレジス
タの値はその操作回数分減算されるが、aレジスタの値
が「3」となると、下カーソルKEの操作は無効とな
り、aレジスタの値は「3」のままとなる。しかして、
表示部20には印刷領域に印字可能な最大文字数から最
小文字数「3」までの範囲内で文字数が下カーソルキー
KEが操作される毎に順次選択候補として表示される
為、所望の文字数が表示されるまで下カーソルキーKE
を操作し続ける。ここで、設定すべき所望の文字数を越
えてそれよりも小さな値を間違って表示させてしまった
ような場合には、上カーソルキーKDを操作する。する
と、ステップS15でそのことが検出され、ステップS
16に進み、aレジスタの値がAレジスタ内の最大文字
数と等しいかの判断が行なわれる。この場合、最大文字
数未満であればaレジスタの値が+1されると共にその
値が表示され(ステップS17、S18)、そしてステ
ップS9に戻る。また、aレジスタの値が最大文字数と
等しければ、上カーソルキーKDの操作は無効とされ、
aレジスタの値は最大文字数のままとなる。このように
上カーソルキーKDが操作される毎にaレジスタの値に
その操作回数分の値が加算される。
The maximum number of characters thus obtained is set in the A register and a register of the work RAM 17. Then, the value of the a register is digitally displayed on the display unit 20 (step S8). In the case of 2, the maximum number of characters is the maximum number of characters per line that can be printed in the print area when the character spacing is set to "0" dots. If there is, the execution key KB is immediately operated, but if it is less than the maximum number of characters, the down cursor key KE is operated. CP now
U13 checks the presence or absence of a key input in step S9 in the key sampling process in step S9, and as a result, if there is no key input, the process returns to step S9 and repeats the same process and is in a key input waiting state. Here, when the down cursor key KE is operated, this is detected in step S11, and the process proceeds to step S12 to check whether the value of the a register exceeds the predetermined minimum number of characters "3". Now, the maximum number of characters is set in the a register, and if this value is 4 or more, the down cursor key KE
The value of the a register is decremented by 1 in accordance with the operation of (1), the value is displayed (steps S13 and S14), and the process returns to step S9. Thus, the value of the a register is decremented by 1 each time the down cursor key KE is operated, so the value of the a register is decremented by the number of times of operation, but when the value of the a register becomes "3", The operation of the cursor KE is invalid, and the value of the a register remains "3". Then,
Since the number of characters within the range from the maximum number of characters that can be printed in the print area to the minimum number of characters "3" is sequentially displayed as a selection candidate on the display unit 20 each time the down cursor key KE is operated, the desired number of characters is displayed. Down cursor key KE
Keep operating. Here, in the case where a value smaller than the desired number of characters to be set is displayed by mistake, the up cursor key KD is operated. Then, in step S15, this is detected, and in step S15
Proceeding to 16, it is judged whether the value of the a register is equal to the maximum number of characters in the A register. In this case, if it is less than the maximum number of characters, the value of the register a is incremented by 1, the value is displayed (steps S17 and S18), and the process returns to step S9. If the value of the a register is equal to the maximum number of characters, the operation of the up cursor key KD is invalid,
The value of register a remains the maximum number of characters. Thus, every time the up cursor key KD is operated, the value of the number of times of operation is added to the value of the a register.

【0017】しかして、表示部20に設定すべき所望の
文字数が表示されたら次に実行キーを操作する。する
と、ステップS19でそのことが検出され、ステップS
20に進み、文字ピッチが算出される。この文字ピッチ
算出プログラムは次式にしたがって行なわれる。 INT[RX−LX/a] INT:整数値を得る関数 RX:RXレジスタの右端X座標値 LX:LXレジスタの左端X座標値 a:aレジスタ内の文字数
When the desired number of characters to be set is displayed on the display unit 20, the execution key is operated next. Then, in step S19, this is detected, and in step S
Proceeding to 20, the character pitch is calculated. This character pitch calculation program is performed according to the following equation. INT [RX-LX / a] INT: Function for obtaining integer value RX: Right end X coordinate value of RX register LX: Left end X coordinate value of LX register a: Number of characters in register a

【0018】このようにして求められた印字ピッチはB
レジスタに転送される。そして、次のステップS21に
進み、LXレジスタ内の左端X座標位置データ、LYレ
ジスタ内の左端Y座標位置データ、aレジスタ内の選択
文字数、Bレジスタ内の文字ピッチが夫々読み出されて
書式情報メモリ14に設定される。この場合の書式設定
は領域カウンタ18の値でアドレス指定される書式情報
メモリ14の行アドレス領域のエリアX0、Y0、C、P
に対して行なわれる。そして、次のステップS22では
領域カウンタ18の値が更新されたのち、ステップS1
に戻り、次の印刷領域に対して同様の書式設定が可能と
なる。
The print pitch thus obtained is B
Transferred to register. Then, the process proceeds to the next step S21, in which the left end X coordinate position data in the LX register, the left end Y coordinate position data in the LY register, the number of selected characters in the a register, and the character pitch in the B register are read out, respectively. It is set in the memory 14. Formatting in this case is performed in the area X 0 , Y 0 , C, P of the row address area of the format information memory 14 addressed by the value of the area counter 18.
Is done to. Then, in the next step S22, after the value of the area counter 18 is updated, step S1
Then, similar formatting can be performed for the next print area.

【0019】このようにして図4の印刷領域PA−1、
PA−2……に対する書式設定を順次行うと、書式情報
メモリ14の最初の行アドレスに対応するエリアには印
刷領域PA−1の左端位置
In this way, the print area PA-1 in FIG.
When format setting is sequentially performed on PA-2 ... In the area corresponding to the first row address of the format information memory 14, the leftmost position of the print area PA-1 is located.

【外2】のX座標、Y座標および文字数、文字ピッチが
設定され、また、次の行アドレスに対応するエリアには
印刷領域PA−2の左端位置
The X coordinate, Y coordinate of [External 2], the number of characters, and the character pitch are set, and the left end position of the print area PA-2 is set in the area corresponding to the next line address.

【外4】 のX座標、Y座標および文字数、文字ピッチが設定され
る。以下、同様に各印刷領域PA−3、PA−4に対応
する書式情報が書式情報メモリ14に順次設定される。
[Outside 4] X coordinate, Y coordinate, number of characters, and character pitch are set. Hereinafter, similarly, the format information corresponding to the print areas PA-3 and PA-4 is sequentially set in the format information memory 14.

【0020】しかして、上述のようにして書式情報が設
定された印刷領域内に印字すべき文章データを入力する
と、文章データはその印刷領域に対応して文章メモリ1
5に書き込まれる。そして、文章メモリ15内の文章デ
ータを定型用紙に印字する場合には印字キー(図示せ
ず)を操作する。すると、印字ヘッドPHは図4の最初
の印刷領域PA−1の左端位置
When text data to be printed is input in the print area in which the format information is set as described above, the text data corresponds to the print area.
Written to 5. Then, when printing the text data in the text memory 15 on the standard size paper, a print key (not shown) is operated. Then, the print head PH moves to the left end position of the first print area PA-1 in FIG.

【外2】に移動されて、文章メモリ15から読み出され
た文章データが印刷領域PA−1へその設定書式に基づ
いて印字される。そして、最初の印刷領域PA−1に対
する印字が終ると、次の印刷領域PA−2の左端位置
The text data read from the text memory 15 after being moved to [External 2] is printed on the print area PA-1 based on the set format. Then, when printing on the first print area PA-1 is completed, the left end position of the next print area PA-2 is printed.

【外4】に印字ヘッドPHが移動され、この印刷領域P
A−2に対してその設定書式に基づいた印字が行なわれ
る。以下、印刷領域PA−3、PA−4に対しても同様
である。
The print head PH is moved to [Outer 4], and this print area P
Printing based on the setting format is performed on A-2. The same applies to the print areas PA-3 and PA-4.

【0021】なお上記実施例は書式情報として1行当た
りの文字数、文字ピッチを設定するようにしたが、指定
印刷領域内の行数、行ピッチまたは行間ピッチ、桁間ピ
ッチを設定してもよい。また、上記実施例は指定印刷領
域内に印字可能な最大文字数から予め決められている最
小文字数「3」の範囲内で選択される文字数をカーソル
キーの操作で順次表示させたが、この範囲内の全ての文
字数を選択候補として同時に表示させ、テンキーで選択
されるようにしてもよい。また、上記範囲内の文字数を
直接表示せずに、その範囲を指示表示するようにしても
よい。
In the above embodiment, the number of characters per line and the character pitch are set as the format information, but the number of lines, the line pitch or the line pitch, and the column pitch in the designated print area may be set. . Further, in the above embodiment, the number of characters selected within the range of the predetermined minimum number of characters “3” from the maximum number of printable characters in the designated print area is sequentially displayed by operating the cursor key. It is also possible to simultaneously display all the numbers of characters as selection candidates and select them with the ten keys. Further, instead of directly displaying the number of characters in the range, the range may be designated and displayed.

【0022】また、上記実施例では印刷領域の設定に際
してその巾方向の設定のみを行い縦(行)方向の設定は
行なわないが、例えば、印刷領域のスタート位置(左上
端)とエンド位置(右下端)の座標位置を設定すれば横
(巾)方向および縦方向の設定が可能である。
In the above embodiment, when setting the print area, only the width direction is set and the vertical (row) direction is not set. However, for example, the start position (upper left end) and the end position (right) of the print area are set. If the coordinate position of the lower end is set, the horizontal (width) direction and the vertical direction can be set.

【0023】[0023]

【発明の効果】本発明によれば、印刷用紙上で指定した
印刷範囲に対して1行字数の書式情報を設定する際、そ
の印刷範囲に適応する1行字数の最大値の範囲内におい
て、1行字数の減少を指示する減少指示手段を繰返し操
作したり、あるいは1行字数の増加を指示する増加指示
手段を繰返し操作するのみの簡易な操作で設定できる。
According to the present invention, when the format information of the number of characters per line is set for the printing range specified on the printing paper, within the range of the maximum value of the number of characters per line which is adapted to the printing range, This can be set by a simple operation by repeatedly operating the decrease instruction means for instructing the reduction of the number of characters in one line, or by repeatedly operating the increase instruction means for instructing the increase of the number of characters in one line.

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

【図1】実施例のワードプロセッサのブロック構成図で
ある。
FIG. 1 is a block diagram of a word processor according to an embodiment.

【図2】実施例の書式設定動作を説明するフローチャー
トである。
FIG. 2 is a flowchart illustrating a format setting operation of the embodiment.

【図3】実施例の移動処理の具体的内容を示すフローチ
ャートである。
FIG. 3 is a flowchart showing the specific content of a moving process of the embodiment.

【図4】実施例の定型用紙の印字フォーマットを示した
図である。
FIG. 4 is a diagram showing a print format of a standard size sheet of the embodiment.

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

11 入力部 13 CPU 14 書式情報メモリ 15 文書メモリ 17 ワークRAM 20 表示部 22 プリンタ 11 Input Section 13 CPU 14 Format Information Memory 15 Document Memory 17 Work RAM 20 Display Section 22 Printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】書式情報を記憶する書式記憶手段と、 印字用紙に対する印刷範囲を任意に指定する印刷範囲指
定手段と、 この印刷範囲指定手段で指定された印刷範囲のサイズと
文字サイズとに基づいて1行字数の最大値を決定する字
数決定手段と、 1行字数の減少を指示する減少指示手段と、 1行字数の増加を指示する増加指示手段と、 上記印刷範囲における書式1行字数を、上記減少指示手
段による指示毎に減少させ、上記増加指示手段による指
示毎に増加させる書式1行字数設定手段と、 この書式1行字数設定手段により上記字数決定手段で決
定された1行字数の最大値の範囲内において設定された
書式1行字数を、上記印刷範囲指定手段により指定され
た印刷範囲に対応づけて上記書式記憶手段に登録設定さ
せる登録設定手段と、を具備したことを特徴とする文字
処理装置。
1. A format storage means for storing format information, a print range designating means for arbitrarily designating a print range on a print sheet, and a print range size and character size designated by the print range designating means. Character number determining means for determining the maximum number of characters per line, decreasing instruction means for instructing decrease of the number of characters per line, increasing instruction means for instructing increase of the number of characters per line, A format 1 line character number setting means for decreasing each instruction by the decrease instruction means and increasing for each instruction by the increase instruction means, and a number of 1 line characters determined by the character number determining means by the format 1 line character number setting means Registration setting means for registering and setting the number of characters in one line of the format set within the range of the maximum value in the format storage means in association with the printing range designated by the printing range designating means. Character processing apparatus characterized by Bei was.
JP5132357A 1993-05-12 1993-05-12 Character processor Expired - Lifetime JP2555558B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5132357A JP2555558B2 (en) 1993-05-12 1993-05-12 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5132357A JP2555558B2 (en) 1993-05-12 1993-05-12 Character processor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP61131151A Division JPH074956B2 (en) 1986-06-06 1986-06-06 Character processor

Publications (2)

Publication Number Publication Date
JPH07144458A true JPH07144458A (en) 1995-06-06
JP2555558B2 JP2555558B2 (en) 1996-11-20

Family

ID=15079478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5132357A Expired - Lifetime JP2555558B2 (en) 1993-05-12 1993-05-12 Character processor

Country Status (1)

Country Link
JP (1) JP2555558B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5924336A (en) * 1982-07-30 1984-02-08 Toshiba Corp Word processor
JPS5969837A (en) * 1982-10-14 1984-04-20 Casio Comput Co Ltd Word processor
JPS59223067A (en) * 1983-06-01 1984-12-14 Canon Inc Operating device
JPS60263987A (en) * 1984-06-13 1985-12-27 株式会社日立製作所 Document display method
JPS6118033A (en) * 1984-07-04 1986-01-25 Ricoh Co Ltd Print processor
JPS6186865A (en) * 1984-10-04 1986-05-02 Toshiba Corp Document producer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5924336A (en) * 1982-07-30 1984-02-08 Toshiba Corp Word processor
JPS5969837A (en) * 1982-10-14 1984-04-20 Casio Comput Co Ltd Word processor
JPS59223067A (en) * 1983-06-01 1984-12-14 Canon Inc Operating device
JPS60263987A (en) * 1984-06-13 1985-12-27 株式会社日立製作所 Document display method
JPS6118033A (en) * 1984-07-04 1986-01-25 Ricoh Co Ltd Print processor
JPS6186865A (en) * 1984-10-04 1986-05-02 Toshiba Corp Document producer

Also Published As

Publication number Publication date
JP2555558B2 (en) 1996-11-20

Similar Documents

Publication Publication Date Title
JP2555558B2 (en) Character processor
JP2555556B2 (en) Character processor
JP2555557B2 (en) Character processor
JPH0616280B2 (en) Document processor
US5539863A (en) Method and apparatus for positioning an image onto a recording medium
JPH074956B2 (en) Character processor
US4998832A (en) Documentation system having page format function
JPS63302083A (en) Printer
JPH0735116B2 (en) Data output device
US5737502A (en) Character processing apparatus having a cursor whose display form changes with pitch
JPS6355097B2 (en)
JP2721339B2 (en) Document processing device
JP2604355B2 (en) Document processing device
JPH07102726B2 (en) Printer
JP3077777B2 (en) Document processing device
JPH0796648A (en) Setting method for sentence format
JPH06318196A (en) Method for outputting data
JPS6411985B2 (en)
JPH06316131A (en) Composition data output device
JPS62152771A (en) Printing position designating system
JPH0463785B2 (en)
JPH10222509A (en) Character processor and recording medium recording character processing program
JPH0679311B2 (en) Ruled line processing method
JPH06168238A (en) Format information display method for document preparing device
JPH0581249A (en) Word processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term