[go: up one dir, main page]

JPH074956B2 - Character processor - Google Patents

Character processor

Info

Publication number
JPH074956B2
JPH074956B2 JP61131151A JP13115186A JPH074956B2 JP H074956 B2 JPH074956 B2 JP H074956B2 JP 61131151 A JP61131151 A JP 61131151A JP 13115186 A JP13115186 A JP 13115186A JP H074956 B2 JPH074956 B2 JP H074956B2
Authority
JP
Japan
Prior art keywords
characters
register
print
key
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61131151A
Other languages
Japanese (ja)
Other versions
JPS62286780A (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.)
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 JP61131151A priority Critical patent/JPH074956B2/en
Publication of JPS62286780A publication Critical patent/JPS62286780A/en
Publication of JPH074956B2 publication Critical patent/JPH074956B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はワードプロセッサ、電子タイプライタ等の文
字処理装置に関する。
The present invention relates to a character processing device such as a word processor and an electronic typewriter.

[従来の技術] 従来、ワードプロセッサにおいて、文字数、文字ピッチ
の書式設定には次の2通りの方法が知られている。即
ち、第1の方法としては直接1行当たりの文字数、文字
ピッチを指定することによって書式設定を行う方式、第
2の方法としては用紙の種類により固定化された印刷領
域に対して文字ピッチを指定すると、1行当たりの文字
数が自動的に算出されることにより書式設定を行う方式
である。
[Prior Art] Conventionally, in a word processor, the following two methods are known for formatting the number of characters and the character pitch. That is, the first method is a method of directly performing the format setting by directly specifying the number of characters per line and the character pitch, and the second method is the method of setting the character pitch for the print area fixed by the type of paper. When specified, this is a method of performing formatting by automatically calculating the number of characters per line.

[発明が解決しようとする課題] しかしながら、上記第1の書式設定方式にあっては、連
絡書や履歴書の如く記入枠が予め決められている定形用
紙に対して印字を行う場合、予め記入枠の幅を計り、こ
の記入枠に印字すべき文字数に基づいて文字ピッチを人
為的に計算し、これを設定する必要がある為、書式設定
が極めて煩雑で面倒なものとなっていた。
[Problems to be Solved by the Invention] However, in the case of the first format setting method, when printing is performed on a standard form sheet having a predetermined entry frame such as a contact note or a resume, it is necessary to fill in the form beforehand. Since it is necessary to measure the width of the frame and artificially calculate the character pitch based on the number of characters to be printed in this entry frame and set it, the format setting is extremely complicated and troublesome.

また、上記第2の書式設定方式において、文字ピッチの
指定により文字数が自動的に決定されるのは用紙サイズ
に応じて指定可能な全文字ピッチに夫々対応して文字数
を記憶するテーブルが備えられているからである。この
テーブルは用紙サイズに応じて固定化された印刷領域に
基づくものである為、この方式にあっては、上述した定
型用紙に対する書式設定には適用することはできない。
そこで、定型用紙に対する書式設定にも適用可能とする
為には、各種の印刷領域に対応してテーブルを設ける必
要があるが、多種多様の印字領域に対応して夫々テーブ
ルを設けることはテーブル数が極めて多くなって実用的
ではない。
In the second format setting method, the number of characters is automatically determined by specifying the character pitch. A table is provided for storing the number of characters corresponding to all character pitches that can be specified according to the paper size. Because it is. Since this table is based on the print area fixed according to the paper size, this system cannot be applied to the above-described format setting for standard paper.
Therefore, it is necessary to provide tables corresponding to various print areas in order to be applicable to format setting for standard paper, but it is not necessary to provide tables corresponding to various print areas. Is too many to be practical.

この発明の課題は、印刷範囲のサイズを任意に選択でき
ると共に、この選択に基づいた1行字数を自動的に決定
でき、更にはその変更も簡易に行えるようにすることで
ある。
An object of the present invention is to make it possible to arbitrarily select the size of the printing range, to automatically determine the number of characters in one line based on this selection, and to easily change it.

[課題を解決するための手段] 本発明の手段は次の通りである。[Means for Solving the Problems] Means of the present invention are as follows.

文字が印刷される印刷範囲のサイズを任意に選択する選
択手段と、この選択手段で選択された印刷範囲のサイズ
と文字サイズとに基づいて1行字数の最大値を決定する
字数決定手段と、この字数決定手段で決定された1行字
数の最大値を表示画面上に表示させる第1の表示制御手
段と、この表示手段で表示された1行字数の最大値以下
の範囲内において1行字数を任意に変更設定する1行字
数変更設定手段と、この1行字数変更設定手段により変
更設定される毎に、その変更設定された1行字数を上記
表示画面上に表示させる第2の表示制御手段と、確定操
作時に、その時に表示されていた1行字数を確定登録さ
せる確定手段と、を有する。
Selecting means for arbitrarily selecting the size of the printing range in which characters are printed, and 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 selected by this selecting means, First display control means for displaying the maximum value of the number of characters in one line determined by the number of characters determining means on the display screen, and the number of characters in one line within the range less than the maximum value of the number of characters in one line displayed by the display means. And a second display control for displaying the changed number of one-line characters on the display screen every time the number of characters is changed and set by the one-line-character number change setting unit. And a confirming means for confirming and registering the number of characters in one line displayed at the time of confirming operation.

[作用] 本発明の手段の作用は次の通りである。[Operation] The operation of the means of the present invention is as follows.

文字が印刷される印刷範囲のサイズをオペレータが任意
に選択すると、この選択された印刷範囲のサイズと文字
サイズとに基づいて1行字数の最大値が決定され、この
決定された1行字数の最大値が表示画面上に表示され
る。オペレータはこの表示された1行字数の最大字数を
表示画面上で確認し、この1行字数の最大値以下の範囲
内において1行字数を任意に変更設定でき、この変更設
定がなされる毎に、その変更設定された1行字数が上記
表示画面上に表示される。そしてオペレータが確定操作
をすると、その操作時に、その時に表示されていた1行
字数が確定登録される。
When the operator arbitrarily selects the size of the print range in which characters are printed, the maximum value of the number of characters per line is determined based on the size of the selected print range and the character size. The maximum value is displayed on the display screen. The operator confirms the maximum number of characters per line displayed on the display screen, and can arbitrarily change and set the number of characters per line within the range below the maximum value of the number of characters per line, and each time this change setting is made , The number of characters per line set and changed is displayed on the display screen. When the operator performs a finalizing operation, the number of characters per line displayed at that time is finalized and registered at the time of the finalizing operation.

従って、任意に選択された印刷範囲のサイズを文字サイ
ズとに基づいて自動的に決まり表示される1行字数の最
大値以下の範囲内において、オペレータは表示を見なが
らその1行字数の変更設定を繰り返し行なうことがで
き、またこれらの変更設定操作により所望する1行字数
を表示させた後にそれを確認した上で所望する1行字数
を確定することができる。
Therefore, within the range of the maximum value of the number of characters per line that is automatically determined based on the character size and the size of the print range selected arbitrarily, the operator can change the number of characters per line while observing the display. It is possible to repeat the above, and after the desired one-line character number is displayed by these change setting operations, the desired one-line character number can be confirmed after confirming it.

[実施例] 以下、この発明を第1図〜第4図を参照して具体的に説
明する。なお、本実施例は日本語ワードプロセッサに適
用した例を示している。
[Embodiment] Hereinafter, the present invention will be specifically described with reference to FIGS. 1 to 4. The present embodiment shows an example applied to a Japanese word processor.

構 成 第1図はこの日本語ワードプロセッサの基本的なブロッ
ク回路図である。図中11は、このワードプロセッサの入
力部で、この入力部11のキーボード上には通常備えられ
ている各種の文字キー等の他、書式情報の設定に際して
使用される書式設定キーKA、実行キーKB、解除キーKC、
上下左右のカーソルキーKD、KE、KF、KG、シフトキーKH
が設けられている。しかして、入力部11には入力制御部
12からのキーサンプリング信号が与えられており、入力
部11においてキー操作が行なわれると、上記サンプリン
グ信号が操作キーに応じて選択され、キー入力信号とし
て入力制御部12に送られてキーコードに変換されたのち
CPU(中央演算処理回路)13に取り込まれる。
Structure Figure 1 is a basic block circuit diagram of this Japanese word processor. Reference numeral 11 in the figure denotes an input section of the word processor. In addition to various character keys or the like normally provided on the keyboard of the input section 11, a format setting key KA and an execution key KB used for setting format information. , Release key KC,
Up / down / left / right cursor keys KD, KE, KF, KG, shift key KH
Is provided. Then, the input unit 11 has an input control unit.
When the key sampling signal from 12 is given and a key operation is performed in the input unit 11, the sampling signal is selected according to the operation key and sent to the input control unit 12 as a key input signal to be converted into a key code. After being converted
It is taken in by the CPU (central processing unit) 13.

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

書式情報メモリ14、文章メモリ15はRAM(ランダムアク
セスメモリ)によって構成され、CPU13の制御下でデー
タの書き込み、読み出し動作が制御される。そして、書
式情報メモリ14は定型用紙の印字フォーマットに対応し
て複数の印刷領域を設定する場合に、各行アドレス領域
に対応して各印刷領域の先頭位置(左端位置)を示すXY
座標系の座標位置データを記憶するエリアX0、Y0の他、
対応する印刷領域に印字されるべき1行当たりの文字数
を記憶するエリアCと印字ピッチを記憶するエリアPと
を有する構成となっている。また、文章メモリ15は書式
情報メモリ14に設定された座標位置データ等によって特
定される印刷領域内に印字されるべき文章データを各印
刷領域に夫々対応して記憶するものである。
The format information memory 14 and the text memory 15 are composed of a RAM (random access memory), and data write / read operations are controlled under the control of the CPU 13. Then, when setting a plurality of print areas corresponding to the print format of the standard size paper, the format information memory 14 shows XY indicating the start position (left end position) of each print area corresponding to each row address area.
Areas X 0 and Y 0 that store coordinate position data of the coordinate system,
It is configured to have 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. Further, the text memory 15 stores 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.

カウンタ部16は後述する印字ヘッドの移動に伴って印字
ヘッド位置を示すX座標成分を計数するXカウンタとY
座標成分を計数するYカウンタとを有する構成となって
いる。
The counter unit 16 includes an X counter and a Y counter for counting the X coordinate component indicating the print head position with the movement of the print head described later.
It has a configuration including a Y counter that counts coordinate components.

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

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

動 作 先ず、連絡書や履歴書のように印字フォーマットが定め
られている定型用紙をプリンタ22にセットする。そして
書式設定キーKAを操作すると、書式設定モードにセット
され、第2図のフローにしたがった動作が実行開始され
る。先ず、表示部20に“位置?"のガイダンス表示が行な
われ、印刷領域の左端の座標位置データを入力設定すべ
きことが指示される(ステップS1)。ここで、第4図は
定型用紙の印字フォーマットを示し、印刷領域(図中斜
線を付して示す)PA−1、PA−2、PA−3、PA−1の先
頭位置が左端位置となり、図中各印刷領域PA−1〜PA−
4の左端位置は で表わされている。なお、本実施例においては定型用紙
の横方向がX座標軸、縦方向がY座標軸に対応し、そし
て定型用紙の左上端がXY座標「0、0」に対応してい
る。しかして、上述のようなガイダンス表示が行なわれ
ると、定型用紙に記入されている記入枠に対応して印刷
領域PA−1〜PA−4の左端位置の入力設定を行う。この
場合の領域設定はカーソルキーKD〜KGあるいはシフトキ
ーKH+カーソルキーKD〜KG(シフトキーとカーソルキー
の同時押し)を操作することによって行なわれ、操作キ
ーに応じて所定方向に印字ヘッドPHが所定単位量ずつ移
動される(ステップS2)。
Operation First, the standard paper, such as the contact form and resume, whose print format is defined, is set in the printer 22. When the format setting key KA is operated, the mode is set to the format setting mode and the operation according to the flow of FIG. 2 is started. First, the 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 S1). Here, FIG. 4 shows the print format of the standard size paper, and the print area (shown with hatching in the figure) PA-1, PA-2, PA-3, PA-1 is the left end position, Print areas PA-1 to PA- in the figure
The leftmost position of 4 is It is represented by. In the present 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 setting is performed by operating the cursor keys KD to KG or the shift keys KH + cursor keys KD to KG (pressing the shift key and the cursor key at the same time). It is moved by the amount (step S2).

第3図はこの印字ヘッド移動処理の具体的内容を示した
フローチャートである。先ず、このフローに入ると、キ
ーサンプリング処理(ステップS2−1)が行なわれ、次
でキー入力有無が調べられ(ステップS2−2)、キー入
力が無ければステップS2−1に戻り、キー入力が有るま
でステップS2−1、ステップS2−2が繰り返されるキー
入力待ち状態となる。しかして。何んらかのキーが操作
されると、操作キーが実行キーKBであるか(ステップS2
−3)、解除キーKCであるか(ステップS2−4)、印字
ヘッドPHを移動させるカーソルキーKD〜KG等であるかが
調べられる。いま、解除キーKCが操作されるとそのこと
がステップS2−4で検出されて書式設定モードが解除さ
れるが、印字ヘッドを移動させるカーソルキーKD〜KG等
が操作されると、ステップS2−6に進み、操作キーに対
応して所定方向に所定単位量だけ印字ヘッドPHが移動さ
れる。即ち、上下左右のカーソルキーKD〜KGが操作され
たものとすると、印字制御部21が駆動され、印字ヘッド
PHが操作キーに対応する上下左右の方向に1文字の印字
サイズ「24ドット」分移動される。したがって、例えば
XY座標「0、0」の位置にある印字ヘッドPHを第5図の
印刷領域PA−1の先頭位置(左端位置) に移動させる場合、この左端位置 のXY座標が「96、48」であるとすると、右カーソルキー
KGを4回、下カーソルキーKEを2回操作すれば印字ヘッ
ドPHは の位置にセットされる。このようにカーソルキーKD〜KG
の操作で印字ヘッドPHは24ドット単位で移動される為、
上述の如く、カーソルキーKD〜KGのみの操作で印字ヘッ
ドPHを所望の位置、例えば の位置へ正確にセットすることができればよいが、23ド
ット以内のズレを生じた場合にはシフトキーKHとカーソ
ルキーKD〜KGの同時押しによって印字ヘッドPHの移動の
微調整を行う。このような操作によって印字ヘッドPHは
24ドット単位ではなく、1ドット単位で上下左右のカー
ソルキーKD〜KGに対応して上下左右の方向に移動され
る。このような印字ヘッド移動処理(ステップS2−6)
が終ると、次のステップS2−7では印字ヘッドPHの移動
量に応じてXカウンタ、Yカウンタの値が更新される。
即ち、カーソルキーKD〜KGのみの操作ではXレジスタ、
Yレジスタの値から「24」が減算、またはXレジスタ、
Yレジスタの値に「24」が加算される。つまり、上カー
ソルキーKDの操作でYレジスタの値から「24」が減算さ
れ、下カーソルキーKEの操作でYレジスタの値に「24」
が加算される。また、左カーソルキーKFの操作でXレジ
スタの値から「24」が減算され、また右カーソルキーKG
の操作でXレジスタの値に「24」が加算される。同様
に、シフトキーKHとカーソルキーKD〜KGの同時押しによ
る印字ヘッドPHの微調整移動に伴ってXレジスタ、Yレ
ジスタに「1」が加算またはXレジスタ、Yレジスタの
値から「1」が減算される。いま、第4図の印刷領域PA
−1における左端位置 に印字ヘッドPHが正確にセットされたものとすると、X
レジスタの値は「96」、Yレジスタの値は「48」とな
る。このようなカウンタの更新処理が終ると、ステップ
S2−1へ戻る。しかして印字ヘッドPHを設定すべき印刷
領域の左端位置へ正確にセットしたことを確認したら、
次に実行キーKBを操作する。すると、ステップS2−3で
そのことが検出され、第3図のフローから抜けて第2図
のステップS3に進む。
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 then the presence or absence of a key input is checked (step S2-2). If there is no key input, the process returns to step S2-1 and the key input is performed. Until step S2-1 and step S2-2 are repeated, a key input waiting state is entered. Then. When any key is operated, is the operation key the execution key KB (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, this is detected in step S2-4 and the format setting mode is released, but when the cursor keys KD to KG for moving the print head are operated, step S2- Proceeding to step 6, the print head PH is moved by a predetermined unit amount in a predetermined direction corresponding to the operation key. 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
The PH is moved in the up / down / left / right directions corresponding to the operation keys by the print size of one character “24 dots”. So for example
Set the print head PH at the position of XY coordinates "0, 0" to the start position (left end position) of the print area PA-1 in FIG. If you want to move to If the XY coordinate of is 96,48, the right cursor key
If you operate KG four times and the down cursor key KE twice, the print head PH will Is set to the position. Like this, the cursor keys KD to KG
Since the print head PH is moved in units of 24 dots by the operation of
As described above, the print head PH can be moved to a desired position, for example, by operating only the cursor keys KD to KG. It is only necessary to accurately set the position to, 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. The print head PH is
The cursor is moved up and down, left and right in 1 dot units instead of in 24 dot units, corresponding to the up, down, left, and right cursor keys KD to KG. Such print head movement processing (step S2-6)
After that, in the next step S2-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, if you operate only the cursor keys KD to KG, the X register,
"24" is subtracted from the value in the Y register, or the X register,
"24" is added to the value of the Y register. That is, "24" is subtracted from the value in the Y register by operating the up cursor key KD, and "24" is added to the value in the Y register by operating the down cursor key KE.
Is added. Also, by operating the left cursor key KF, "24" is subtracted from the value in the X register, and the right cursor key KG
By the operation of, "24" is added to the value of the X register. Similarly, "1" is added to or subtracted from the X register and Y register values by "1" as the print head PH is finely adjusted and moved by simultaneously pressing the shift key KH and the cursor keys KD to KG. To be done. Now, the print area PA in Fig. 4
Left edge position at -1 Assuming that the print head PH is set correctly on the
The register value is "96" and the Y register value is "48". When such counter update processing is completed, step
Return to S2-1. Then, after confirming that the print head PH is correctly set at the left end position of the print area to be set,
Next, operate the execution key KB. 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.

しかして、第2図のステップS3ではXカウンタにセット
されたX座標データがワークRAM17のLXレジスタに転送
され、またYカウンタにセットされたY座標データがLY
レジスタに転送される。
Then, 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 LY.
Transferred to register.

上述のようにして左端座標位置データの設定操作が終る
と、ステップS4では“右端?"のガイダンス表示が行なわ
れ、今度は印刷領域の右端の座標位置データを入力すべ
きことが指示される。これにしたがってカーソルキーK
F、KG等が操作されると上述のステップS2と同様の印字
ヘッド移動処理(ステップS5)が行なわれる。この場
合、印字ヘッドPHをXY両方向に移動させる必要はなく、
左端位置からX方向へ右移動させるだけでよい。このよ
うにして印字ヘッドPHを例えば第4図の印刷領域PA−1
の右端位置 へ移動させたのち実行キーKBが操作されると、ステップ
S6に進み、Xカウンタにセットされた右端位置に対応す
るX座標データがRXレジスタに取り込まれる。
When the setting operation of the left end coordinate position data is completed as described above, the guidance "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. According to this, the cursor key K
When F, KG, etc. are operated, a print head moving process (step S5) similar to step S2 described above is performed. In this case, it is not necessary to move the print head PH in both XY directions,
It is only necessary to move it from the left end position to the right in the X direction. In this way, the print head PH is moved to, for example, the print area PA-1 in FIG.
Right edge position When the execution key KB is operated after moving to
Proceeding to S6, the X coordinate data corresponding to the right end position set in the X counter is fetched in the RX register.

そして、次のステップS7では設定すべき印刷領域の左端
位置から右端位置までに印字することができる最大文字
数が算出される。この文字数算出プログラムは次式にし
たがって行なわれる。
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:整数値を得る関数 RX:RXレジスタのX座標値 LX:LXレジスタのX座標値 このようにして得られた最大文字数はワークRAM17のA
レジスタおよびaレジスタにセットされる。そして、こ
のaレジスタの値が表示部20にデジタル表示される(ス
テップS8)。2の場合、最大文字数は文字間隔を「0」
ドットとしたときに印刷領域に印字することができる1
行当たりの最大文字数で、この表示内容を目視確認し、
設定すべき文字数が最大文字数であれば直ちに実行キー
KBを操作するが、最大文字数未満であれば下カーソルキ
ーKBを操作する。いま、CPU13はステップS9でキーサン
プリング処理次でステップS10でキー入力有無を調べ、
その結果、キー入力が無ければステップS9に戻って同様
の処理を繰り返すキー入力待ち状態となっている。ここ
で、下カーソルキーKEが操作されると、そのことがステ
ップS11で検出され、ステップS12に進み、aレジスタの
値が予め決められている最小文字数「3」を越えている
かが調べられる。いま、aレジスタには最大文字数がセ
ットされており、この値が4以上であれば、下カーソル
キーKHの操作に伴ってaレジスタの値が−1されると共
にその値が表示され(ステップS13、S14)そして、ステ
ップS9に戻る。このように下カーソルキーKEが操作され
る毎にaレジスタの値が−1されるので、aレジスタの
値はその操作回数分減算されるが、aレジスタの値が
「3」となると、下カーソルKEの操作は無効となり、a
レジスタの値は「3」のままとなる。しかして、表示部
20には印刷領域に印字可能な最大文字数から最小文字数
「3」までの範囲内で文字数が下カーソルキーKEが操作
される毎に順次選択候補として表示される為、所望の文
字数が表示されるまで下カーソルキーKEを操作し続け
る。ここで、設定すべき所望の文字数を越えてそれより
も小さな値を間違って表示させてしまったような場合に
は、上カーソルキーKDを操作する。すると、ステップS1
5でそのことが検出され、ステップS16に進み、aレジス
タの値がAレジスタ内の最大文字数と等しいかの判断が
行なわれる。この場合、最大文字数末端であればaレジ
スタの値が+1されると共にその値が表示され(ステッ
プS17、S18)、そしてステップS9に戻る。また、aレジ
スタの値が最大文字数と等しければ、上カーソルキーKD
の操作は無効とされ、aレジスタの値は最大文字数のま
まとなる。このように上カーソルキーKDが操作される毎
にaレジスタの値にその操作回数分の値が加算される。
INT [RX-LX / 24] INT: Function that obtains an integer value RX: X coordinate value of the RX register LX: X coordinate value of the LX register The maximum number of characters obtained in this way is A of work RAM17.
Register and a register are set. Then, the value of the a register is digitally displayed on the display unit 20 (step S8). When 2, the maximum number of characters is "0"
Can be printed in the print area when it is made into dots 1
Visually check this display with the maximum number of characters per line,
If the number of characters to be set is the maximum number of characters, execute key immediately
Operate the KB, but if it is less than the maximum number of characters, operate the down cursor key KB. Now, the CPU 13 checks the presence or absence of a key input in step S10 next in step S9 for key sampling processing.
As a result, if there is no key input, the process returns to step S9 and repeats the same processing, 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 value of the a register is decremented by 1 with the operation of the down cursor key KH and the value is displayed (step S13). , S14) and returns to step S9. Since the value of the a register is decremented by -1 each time the down cursor key KE is operated in this way, the value of the a register is subtracted by the number of times of operation, but when the value of the a register becomes "3", The operation of cursor KE becomes invalid and a
The register value remains "3". Then, the display
In 20, the desired number of characters is displayed because 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 displayed as selection candidates each time the down cursor key KE is operated. Continue to operate the down cursor key KE until. 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 step S1
This is detected in step 5, and the flow advances to step S16 to determine whether the value of the a register is equal to the maximum number of characters in the A register. In this case, at the end of the maximum number of characters, the value of register a is incremented by 1 and the value is displayed (steps S17 and S18), and the process returns to step S9. If the value in the a register is equal to the maximum number of characters, the up cursor key KD
Is invalidated, and the value of the a register 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.

しかして、表示部20に設定すべき所望の文字数が表示さ
れたら次に実行キーを操作する。すると、ステップS19
でそのことが検出され、ステップS20に進み、文字ピッ
チが算出される。この文字ピッチ算出プログラムは次式
にしたがって行なわれる。
Then, when the desired number of characters to be set is displayed on the display unit 20, the execute key is operated next. Then, step S19
This is detected in step S20, and the character pitch is calculated in step S20. This character pitch calculation program is performed according to the following equation.

INT[RX−LX/a] INT:整数値を得る関数 RX:RXレジスタの右端X座標値 LX:LXレジスタの左端X座標値 a:aレジスタ内の文字数 このようにして求められた印字ピッチはBレジスタに転
送される。そして、次のステップS21に進み、LXレジス
タ内の左端X座標位置データ、LYレジスタ内の左端Y座
標位置データ、aレジスタ内の選択文字数、Bレジスタ
内の文字ピッチが夫々読み出されて書式情報メモリ14に
設定される。この場合の書式設定は領域カウンタ18の値
でアドレス指定される書式情報メモリ14の行アドレス領
域のエリアX0、Y0、C、Pに対して行なわれる。そし
て、次のステップS22では領域カウンタ18の値が更新さ
れたのち、ステップS1に戻り、次の印刷領域に対して同
様の書式設定が可能となる。
INT [RX-LX / a] INT: Function that obtains an integer value RX: The rightmost X coordinate value of the RX register LX: The leftmost X coordinate value of the LX register a: The number of characters in the register The print pitch obtained in this way is It is transferred to the B 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, respectively, and format information is read. It is set in the memory 14. Formatting in this case is performed on the areas X 0 , Y 0 , C and P of the row address area of the format information memory 14 addressed by the value of the area counter 18. Then, in the next step S22, the value of the area counter 18 is updated, and then the process returns to step S1 to enable the same format setting for the next print area.

このようにして第4図の印刷領域PA−1、PA−2……に
対する書式設定を順次行うと、書式情報メモリ14の最初
の行アドレスに対応するエリアには印刷領域PA−1の左
端位置 のX座標、Y座標および文字数、文字ピッチが設定さ
れ、また、次の行アドレスに対応するエリアには印刷領
域PA−2の左端位置 のX座標、Y座標および文字数、文字ピッチが設定され
る。以下、同様に各印刷領域PA−3、PA−4に対応する
書式情報が書式情報メモリ14に順次設定される。
In this way, when the format settings are sequentially performed on the print areas PA-1, PA-2, ... In FIG. 4, the left end position of the print area PA-1 is set in the area corresponding to the first row address of the format information memory 14. X coordinate, Y coordinate, number of characters, and character pitch are set, and the left edge position of the print area PA-2 is set in the area corresponding to the next line address. 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.

しかして、上述のようにして書式情報が設定された印刷
領域内に印字すべき文章データを入力すると、文章デー
タはその印刷領域に対応して文章メモリ15に書き込まれ
る。そして、文章メモリ15内の文章データを定型用紙に
印字する場合には印字キー(図示せず)を操作する。す
ると、印字ヘッドPHは第4図の最初の印刷領域PA−1の
左端位置 に移動されて、文章メモリ15から読み出された文章デー
タが印刷領域PA−1へその設定書式に基づいて印字され
る。そして、最初の印刷領域PA−1に対する印字が終る
と、次の印刷領域PA−2の左端位置 に印字ヘッドPHが移動され、この印刷領域PA−2に対し
てその設定書式に基づいた印字が行なわれる。以下、印
刷領域PA−3、PA−4に対しても同様である。
Then, when the text data to be printed is input in the print area in which the format information is set as described above, the text data is written in the text memory 15 corresponding to the print area. 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 is located at the left end position of the first print area PA-1 in FIG. Then, the text data read from the text memory 15 is printed in the print area PA-1 based on the set format. Then, when printing on the first print area PA-1 ends, the left end position of the next print area PA-2 The print head PH is moved to, and printing based on the set format is performed on the print area PA-2. The same applies to the print areas PA-3 and PA-4.

なお上記実施例は書式情報として1行当たりの文字数、
文字ピッチを設定するようにしたが、指定印刷領域内の
行数、行ピッチまたは行間ピッチ、桁間ピッチを設定し
てもよい。
In the above embodiment, the format information includes the number of characters per line,
Although the character pitch is set, the number of lines in the designated print area, the line pitch or the line spacing, or the column spacing may be set.

また、上記実施例は指定印刷領域内に印字可能な最大文
字数から予め決められている最小文字数「3」の範囲内
で選択される文字数をカーソルキーの操作で順次表示さ
せたが、この範囲内の全ての文字数を選択候補として同
時に表示させ、テンキーで選択されるようにしてもよ
い。また、上記範囲内の文字数を直接表示せずに、その
範囲を指示表示するようにしてもよい。
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.

また、上記実施例では印刷領域の設定に際してその巾方
向の設定のみを行い縦(行)方向の設定は行なわない
が、例えば、印刷領域のスタート位置(左上端)とエン
ド位置(右下端)の座標位置を設定すれば横(巾)方向
および縦方向の設定が可能である。
Further, 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 end position (lower right end) of the print area are set. If the coordinate position is set, the horizontal (width) direction and the vertical direction can be set.

更に、この発明はワードプロセッサに限らず、電子タイ
プライタ等にも適用可能であることは勿論である。
Furthermore, the present invention is not limited to word processors, and can be applied to electronic typewriters and the like.

[発明の効果] 本発明によれば、任意に選択された印刷範囲のサイズと
文字サイズとに基づいて自動的に決まり表示される1行
字数の最大値以下の範囲内において、オペレータは表示
を見ながらその1行字数の変更設定を繰り返し行なうこ
とができ、またこれらの変更設定操作により所望する1
行字数を表示させた後にそれを確認した上で所望する1
行字数を確認することができる。
[Effects of the Invention] According to the present invention, the operator automatically determines the display within the range of the maximum value of the number of characters per line that is automatically determined and displayed based on the size of the printing range and the character size that are arbitrarily selected. It is possible to repeatedly change and set the number of characters per line while observing, and to change the desired setting by these change setting operations.
Display the number of lines and confirm it, then select 1
You can check the number of lines.

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

第1図はブロック回路構成図、第2図は書式設定動作を
説明するフローチャート、第3図は第2図で示した移動
処理の具体的内容を示すフローチャート、第4図は定型
用紙の印字フォーマットを示した図である。 11……入力部、13……CPU、14……書式情報メモリ、17
……ワークRAM。
FIG. 1 is a block circuit configuration diagram, FIG. 2 is a flow chart for explaining a formatting operation, FIG. 3 is a flow chart showing the specific contents of the moving process shown in FIG. 2, and FIG. 4 is a print format for standard size paper. It is the figure which showed. 11 …… Input section, 13 …… CPU, 14 …… Format information memory, 17
...... Work RAM.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭60−149477(JP,A) 特開 昭57−59792(JP,A) 特開 昭58−138655(JP,A) 特開 昭58−192187(JP,A) 特開 昭59−69837(JP,A) 特開 昭59−135539(JP,A) 特開 昭61−132360(JP,A) 特開 昭62−128327(JP,A) ─────────────────────────────────────────────────── --- Continuation of the front page (56) Reference JP-A-60-149477 (JP, A) JP-A-57-59792 (JP, A) JP-A-58-138655 (JP, A) JP-A-58- 192187 (JP, A) JP 59-69837 (JP, A) JP 59-135539 (JP, A) JP 61-132360 (JP, A) JP 62-128327 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文字が印刷される印刷範囲のサイズを任意
に選択する選択手段と、 この選択手段で選択された印刷範囲のサイズと文字サイ
ズとに基づいて1行字数の最大値を決定する字数決定手
段と、 この字数決定手段で決定された1行字数の最大値を表示
画面上に表示させる第1の表示制御手段と、 この表示手段で表示された1行字数の最大値以下の範囲
内において1行字数を任意に変更設定する1行字数変更
設定手段と、 この1行字数変更設定手段により変更設定される毎に、
その変更設定された1行字数を上記表面画面上に表示さ
せる第2の表示制御手段と、 確定操作時に、その時に表示されていた1行字数を確定
登録させる確定手段と、 を具備したことを特徴とする文字処理装置。
1. A selecting means for arbitrarily selecting a size of a printing range in which characters are printed, and a maximum value of the number of characters in one line is determined based on the size of the printing range and the character size selected by the selecting means. Character number determination means, first display control means for displaying the maximum value of the number of characters in one line determined by the character number determination means on the display screen, and a range equal to or less than the maximum value of the number of characters in one line displayed by this display means. 1-line character number change setting means for arbitrarily changing and setting the 1-line character number, and each time it is changed and set by the 1-line character number change setting means,
A second display control means for displaying the changed and set one-line character number on the front screen, and a confirming means for confirming and registering the one-line character number displayed at the time of the confirming operation. Characterized character processing device.
JP61131151A 1986-06-06 1986-06-06 Character processor Expired - Lifetime JPH074956B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Child Applications (3)

Application Number Title Priority Date Filing Date
JP5132355A Division JP2555556B2 (en) 1993-05-12 1993-05-12 Character processor
JP5132357A Division JP2555558B2 (en) 1993-05-12 1993-05-12 Character processor
JP5132356A Division JP2555557B2 (en) 1993-05-12 1993-05-12 Character processor

Publications (2)

Publication Number Publication Date
JPS62286780A JPS62286780A (en) 1987-12-12
JPH074956B2 true JPH074956B2 (en) 1995-01-25

Family

ID=15051191

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH074956B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01115666A (en) * 1987-10-30 1989-05-08 Toppan Moore Co Ltd Output processor for outputting predetermined format data
JP2746592B2 (en) * 1988-01-30 1998-05-06 キヤノン株式会社 Document processing apparatus and method
JPH01224867A (en) * 1988-03-04 1989-09-07 Casio Comput Co Ltd Data output device
JPH0815800B2 (en) * 1988-06-10 1996-02-21 沖電気工業株式会社 Address printing device

Family Cites Families (5)

* 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
JPS6026398A (en) * 1983-07-22 1985-02-09 日本電気株式会社 Voice input unit
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
JPS62286780A (en) 1987-12-12

Similar Documents

Publication Publication Date Title
JPH0677192B2 (en) Character data display method
JPH058449B2 (en)
US4897804A (en) Data processing device with screen seperated into line format area and data display area
JPH074956B2 (en) Character processor
US5287445A (en) Layout displaying apparatus for a word processor
JP2555557B2 (en) Character processor
JP2555556B2 (en) Character processor
JP2555558B2 (en) Character processor
JPH0735116B2 (en) Data output device
JPH0359466B2 (en)
JPS59136281A (en) Printer
JPS6321173A (en) Information processor
JP3077777B2 (en) Document processing device
JP2539395B2 (en) Information processing device
JPH0790650B2 (en) Document creation device
JPH07102726B2 (en) Printer
JP3036064B2 (en) Document output device
JP3056850B2 (en) Document creation device with graph creation function
JPH0747321B2 (en) Text output device
JPH0796648A (en) How to set the text format
JPH051947B2 (en)
JPH0463785B2 (en)
JPH06318196A (en) Data output method
JPH06316131A (en) Composition data output device
JPH05165809A (en) Document processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term