JPH02214680A - electronic typewriter - Google Patents

electronic typewriter

Info

Publication number
JPH02214680A
JPH02214680A JP3495589A JP3495589A JPH02214680A JP H02214680 A JPH02214680 A JP H02214680A JP 3495589 A JP3495589 A JP 3495589A JP 3495589 A JP3495589 A JP 3495589A JP H02214680 A JPH02214680 A JP H02214680A
Authority
JP
Japan
Prior art keywords
printing
space
final
input
code
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
JP3495589A
Other languages
Japanese (ja)
Inventor
Akihiko Sukigara
明彦 鋤柄
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3495589A priority Critical patent/JPH02214680A/en
Publication of JPH02214680A publication Critical patent/JPH02214680A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To simultaneously execute the printing by justification over a plurality of lines by determining a space for printing by justification at the final words from a printing zone set in format from the final characters of input lines. CONSTITUTION:Width and space distance of a character input by input means 1 are sequentially integrated, and output to final space distance calculating means 5. Character memory means 3 sequentially stores character code, space code, return code input from the means 1 at a line unit. Final space detector 4 provides justification printing candidates from printing information stored in the means 3. For example, it detects the final space code input immediately before a word and outputs its printing space distance to the means 5. The means 5 calculates justification space distance corresponding to the final space code stored in the means 2 by referring to the integrated amount output from character width accumulating means 2, printing space distance, format, etc., corresponding to the the final space code, and outputs to printing means 6.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、入力された印字情報を書式フォーマットに
基づいて印字する電子タイプライタに関するものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic typewriter that prints input print information based on a format.

〔従来の技術〕[Conventional technology]

従来、この種の電子タイプライタにおいては、キーボー
ド等の入力部から入力された印字情報を編集し、行単位
に印字を行えるように構成されている。
Conventionally, this type of electronic typewriter is configured so that print information input from an input unit such as a keyboard can be edited and printed line by line.

ところで、注文書、依頼書等には、物品名とその金額、
単価等を記した書類を作成する場合があり、その際、物
品の名称は、レフトマージンに対して左詰め印字し、単
価等を右寄せ印字するような事態が起こる。
By the way, the order form, request form, etc. should include the name of the item, its price,
There are cases where a document with unit prices, etc. written thereon is created, and in this case, the name of the article is printed left-aligned against the left margin, and the unit price, etc. is printed right-aligned.

そこで、このような文書、書類を作成する場合は、印字
の際に物品名印字のための左詰め指定と、単価等印字の
ための右詰め指定をしていた。
Therefore, when creating such documents, left alignment is specified for printing product names and right alignment is specified for printing unit prices, etc. when printing.

(発明が解決しようとする課N) このため、上記印字項目が数行にわたる場合には上記印
字指定操作を各行毎に行わなければならず、非常に煩雑
な操作をオペレー タに強制し、印字効率を低下させて
しまう重大な問題点があった。
(Problem N to be solved by the invention) For this reason, when the above-mentioned printing item spans several lines, the above-mentioned printing specification operation must be performed for each line, forcing the operator to perform a very complicated operation, and printing There were serious problems that reduced efficiency.

この発明は、上記の問題点を解決するためになされたも
ので、入力行の最終文字から書式設定された印字域から
最終単語を右寄せ印字するスペースを決定することによ
り、複数行にわたる右寄せ印字を一括して実行できる電
子タイプライタを得ることを目的とする。
This invention was made to solve the above problem, and by determining the space for right-aligned printing of the final word from the print area formatted from the last character of the input line, right-aligned printing over multiple lines can be performed. The purpose is to obtain an electronic typewriter that can be executed all at once.

(課題を解決するための手段) この発明に係る電子タイプライタは、入力された印字情
報に対する相対印字幅量を順次積算する積算手段と、バ
ッフ1メモリに記憶された最終スペースコードを検出す
る検出手段と、この積算手段により積算された印字幅総
量と書式フォーマットとを参照しながら検出手段により
検出された最終スペースコードに対する右寄せスペース
量を演算する演算手段と、この演算手段により演算され
た右寄せスペース量および印字情報に基づいて印字手段
による一括行印字を制御する制御手段とを設けたもので
ある。
(Means for Solving the Problems) An electronic typewriter according to the present invention includes an integrating means for sequentially integrating the relative print width amount with respect to input print information, and a detector for detecting the final space code stored in the buffer 1 memory. means, a calculation means for calculating the amount of right-justification space for the final space code detected by the detection means while referring to the total print width and format accumulated by the integration means; and a right-justification space calculated by the calculation means. A control means is provided for controlling batch line printing by the printing means based on the quantity and print information.

(作用) この発明においては、印字情報が入力されると、積算手
段が入力された印字情報に対する相対印字幅量を順次積
算し、演算手段が積算手段により積算された印字幅総量
と書式フォーマットとを参照しながら検出手段により検
出された最終スペースコードに対する右寄せスペース量
を演算し、演算された右寄せスペース量および印字情報
に基づいて制御手段が印字手段による一括行印字を制御
し、文末印字候補外を通常印字し、印字情報中の文末印
字候補を右寄せ印字させる。
(Operation) In this invention, when printing information is input, the integrating means sequentially adds up the relative printing width amount with respect to the input printing information, and the calculating means calculates the total printing width and format format accumulated by the integrating means. The control means calculates the amount of right-aligned space for the final space code detected by the detection means while referring to is printed normally, and the end-of-sentence printing candidates in the printing information are printed right-aligned.

(実施例) 第1図はこの発明の一実施例を示す電子タイプライタの
基本構成ブロック図であり、1は入力手段で、文字コー
ド、スペースコード、リターンコードおよび書式フォー
マット等を入力する。2は文字幅累積手段で、入力手段
1より入力された文字の文字幅、スペース量を順次積算
し、その積算値を演算手段となる最終スペース量計算手
段5に出力する。3はバッファメモリとなる文字記憶手
段で、入力手段1から入力された文字コード、スペース
コード、リターンコードを行単位に順次記憶する。4は
最終スペース検出手段で、文字記憶手段3に記憶された
印字情報(文字コード、スペースコード等)から右寄せ
印字候補となる、例えば単語の直前に入力されている最
終スペースコードを検出し、その印字スペース量を最終
スペース量計算手段5に出力する。最終スペース量計算
手段5は、上記文字幅累積手段2から出力された積算値
、最終スペースコードに対応する印字スペース量、書式
フォーマット(ライトマージン、レフトマージン)等を
参照して、文字記憶手段3に記憶された最終スペースコ
ードに対応する右寄せスペース量を演算し、印字手段6
に出力する。
(Embodiment) FIG. 1 is a basic configuration block diagram of an electronic typewriter showing an embodiment of the present invention. Reference numeral 1 denotes input means for inputting character codes, space codes, return codes, format formats, and the like. Reference numeral 2 denotes a character width accumulating means, which sequentially accumulates the character width and space amount of the characters inputted from the input means 1, and outputs the accumulated value to the final space amount calculation means 5, which serves as an arithmetic means. Reference numeral 3 denotes a character storage means serving as a buffer memory, which sequentially stores character codes, space codes, and return codes inputted from the input means 1 line by line. 4 is a final space detection means that detects the final space code input immediately before a word, which is a right-justified printing candidate, for example, from the printing information (character code, space code, etc.) stored in the character storage means 3, and detects the final space code input immediately before a word. The print space amount is output to the final space amount calculation means 5. The final space amount calculation means 5 refers to the integrated value outputted from the character width accumulation means 2, the amount of printing space corresponding to the final space code, the format (right margin, left margin), etc. The amount of right-aligned space corresponding to the final space code stored in is calculated, and the printing means 6
Output to.

なお、印字情報が文字記憶手段3に記憶されると、文字
幅累積手段2が入力された印字情報に対する相対印字幅
量を順次積算し、最終スペース量計算手段5が文字幅累
積手段2により積算された印字幅総量と書式フォーマッ
トとを参照しながら最終スペース検出手段4により検出
された最終スペースコードに対する右寄せスペース量を
後述するように演算し、演算された右寄せスペース量お
よび印字情報に基づいて後述する制御手段が印字手段6
による一括行印字を制御し、行中の文末印字候補外を通
常印字し、文末印字候補のみを右寄せ印字させる。
Note that when the print information is stored in the character storage means 3, the character width accumulation means 2 sequentially accumulates the relative print width amount for the inputted print information, and the final space amount calculation means 5 accumulates the relative print width amount using the character width accumulation means 2. The amount of right alignment space for the final space code detected by the final space detection means 4 is calculated as described below while referring to the total print width and format format, and the amount of right alignment space is calculated as described below based on the calculated amount of right alignment space and printing information. The control means for printing is the printing means 6.
Controls batch line printing by printing, normal printing is performed outside of the end-of-sentence printing candidates in the line, and only right-justified printing of the end-of-sentence printing candidates is performed.

第2図は、第1図に示した電子タイプライタの制御構成
を説明する詳細ブロック図であり、11はCPUで、R
OM12に記憶された制御プログラム(第4図に示すフ
ローチャートの各手順を含む)に基づいてCPUバス1
4に接続された各デバイスを総括的に制御する。なお、
CPU11は、第1図に示した最終スペース量計算手段
5゜最終スペース検出手段4および制御手段を兼ねてい
る。
FIG. 2 is a detailed block diagram illustrating the control configuration of the electronic typewriter shown in FIG.
CPU bus 1 based on the control program (including each procedure of the flowchart shown in FIG. 4) stored in OM12.
4. Overall control of each device connected to 4. In addition,
The CPU 11 also serves as the final space amount calculation means 5, final space detection means 4, and control means shown in FIG.

ROM12には、上記制御プログラムに加えて制御デー
タ、表示フォントデータ等が記憶されている。13はR
AMで、バッファエリア13a。
The ROM 12 stores control data, display font data, etc. in addition to the above control program. 13 is R
AM, buffer area 13a.

レフトマージンエリア13b、ライトマージンエリア1
3c、カウンタエリア13d等から構成され、バッフ1
エリア13aにはキーボード18から入力されたテキス
トデータ(文字コード)が記憶され、レフトマージンエ
リア13bには、キーボード18から指示されたレフト
マージン位置が記憶され、ライトマージンエリア13c
には、キーボード1日から指示されたライトマージン位
置が記憶され、カウンタエリア13dには、CPυ11
がカウントする各文字コードに対応する文字の文字幅を
順次加算記憶される。15は制御回路で、プリンタ16
1表示器17.キーボード18とのデータ、信号を授受
する。なお、表示器17は、例えばLCD等で構成され
、所定のドツトマトリクスで文字、記号等を表示する。
Left margin area 13b, right margin area 1
3c, counter area 13d, etc., and buffer 1
The area 13a stores text data (character code) input from the keyboard 18, the left margin area 13b stores the left margin position specified from the keyboard 18, and the right margin area 13c stores the left margin position specified from the keyboard 18.
The light margin position specified from the keyboard 1st is stored in , and the counter area 13d stores CPυ11.
The character width of the character corresponding to each character code counted by is sequentially added and stored. 15 is a control circuit, and printer 16
1 display 17. It exchanges data and signals with the keyboard 18. Note that the display device 17 is composed of, for example, an LCD or the like, and displays characters, symbols, etc. in a predetermined dot matrix.

19は電源で、CPUバス14に接続される各デバイス
に所定の電源を供給する。
A power supply 19 supplies a predetermined power to each device connected to the CPU bus 14.

次に第3図および第4図を参照しながらこの発明による
一括右寄せ自動印字処理について説明する。
Next, with reference to FIGS. 3 and 4, the batch right-aligned automatic printing process according to the present invention will be described.

第3図は、第2図に示したプリンタ16による印字出力
例を説明する図であり、(a)は通常印字出力を示し、
(b)は−括右寄せ印字出力を示す。
FIG. 3 is a diagram illustrating an example of print output by the printer 16 shown in FIG. 2, in which (a) shows normal print output;
(b) shows right-aligned printout in minus brackets.

第4図はこの発明による一括右寄せ自動印字処理手順の
一例を説明するフローチャートである。
FIG. 4 is a flowchart illustrating an example of the batch right-justification automatic printing processing procedure according to the present invention.

なお、(1)〜(13)は各ステップを示す。Note that (1) to (13) indicate each step.

先ず、CPυ11はプリンタ16.キーボード1B、R
AM13等を初期化(イニシャル)しく1)、キーボー
ド18からのキー入力を待機する(2)。
First, CPυ11 is the printer 16. Keyboard 1B, R
The AM 13 etc. are initialized (1) and waits for key input from the keyboard 18 (2).

キー入力がなされたら、キーボード18から入力された
キーが文字キーに対応するキーコードかどうかを判断し
く3)  NOならばステップ(6)以降に進み、YE
Sならばバッファエリア13aに文字コードを格納しく
4)、文字幅をカウンタエリア13dに足し込み(5)
、ステップ(2)に戻る。
When a key is input, it is determined whether the key input from the keyboard 18 is a key code corresponding to a character key.3) If NO, proceed to step (6) and onwards, and select YES.
If it is S, store the character code in the buffer area 13a (4) and add the character width to the counter area 13d (5)
, return to step (2).

一方、ステップ(3)において、NOの場合は入力され
たキーがスペースキーかどうかを判断しく6)、Noな
らばステップ(9)以降に進み、YESならばバッファ
エリア13aにスペースコードを格納しく7)  スペ
ース量をカウンタエリア13dに足し込み(8)、ステ
ップ(2)に戻る。
On the other hand, in step (3), if NO, it is determined whether the input key is a space key 6), if No, the process proceeds to step (9) onwards, and if YES, the space code is stored in the buffer area 13a. 7) Add the space amount to the counter area 13d (8) and return to step (2).

一方、ステップ(6)の判断で、NOの場合は、入力さ
れたキーがリターンキーかどうかを判断しく9)  N
oならばステップ(2) に戻り、YESならばバッフ
ァエリア13aから最終スペースコード(第3図(a)
に示した記号「$」の前のスペースが対応する)を検出
する(10)。
On the other hand, if the determination in step (6) is NO, it is determined whether the input key is a return key9) N
If o, return to step (2); if YES, from buffer area 13a to final space code (Fig. 3(a)
The space in front of the symbol "$" shown in (corresponds to) is detected (10).

次いで、検出したスペースコードをスペース量に置換す
る(11)。次いで、ライトマージンエリア13cに記
憶されるライトマージン値からレフトマージンエリア1
3bに記憶されるレフトマージン値を差し引き、さらに
カウンタエリア13dのカウント総量を指し引いた値、
すなわち最終文字(第3図(a)に示す「0」)からラ
イトマージンまでの量とステップ(11)で置換したス
ペース量とを足し込み(12)、最終スペースコードに
対する右寄せスペース量を演算する。
Next, the detected space code is replaced with a space amount (11). Next, the left margin area 1 is calculated from the right margin value stored in the right margin area 13c.
The value obtained by subtracting the left margin value stored in 3b and further subtracting the total count amount in counter area 13d,
That is, the amount from the final character ("0" shown in FIG. 3(a)) to the right margin and the amount of space replaced in step (11) are added (12) to calculate the amount of right-justified space for the final space code. .

次いで、バッファエリアi3aに記憶された1行分の印
字情報を、第3図(b)に示すように一括印字しく13
)、ステップ(2)に戻る。
Next, the print information for one line stored in the buffer area i3a is printed all at once as shown in FIG. 3(b).
), return to step (2).

(発明の効果) 以上説明したように、この発明は入力された印字情報に
対する相対印字幅量を順次積算する積算手段と、バッフ
1メモリに記憶された最終スペースコードを検出する検
出手段と、この積算手段により積算された印字幅総量と
書式フォーマットとを参照しながら検出手段により検出
された最終スペースコードに対する右寄せスペース量を
演算する演算手段と、この演算手段により演算された右
寄せスペース量および印字情報に基づいて印字手段によ
る一括行印字を制御する制御手段とを設けたので、同一
行の印字情報のうち、最終印字情報、例えば単語、記号
等のみのスペースを検出しながら自動的に拡大できるの
で、1行印字処理中に通常印字と右寄せ印字とを一括し
て行うことができる。
(Effects of the Invention) As explained above, the present invention includes an integrating means for sequentially integrating the relative print width amount for inputted print information, a detecting means for detecting the final space code stored in the buffer 1 memory, and a detecting means for detecting the final space code stored in the buffer 1 memory. Calculating means for calculating the amount of right-aligned space for the final space code detected by the detecting means while referring to the total print width and format accumulated by the accumulating means, and the amount of right-aligned space and print information calculated by the calculating means. Since the control means for controlling the batch line printing by the printing means based on the above is provided, it is possible to automatically enlarge while detecting the space for only the final printed information, such as words, symbols, etc., among the printed information on the same line. , normal printing and right-justified printing can be performed simultaneously during one-line printing processing.

従って、従来のような煩雑な印字指定から解放され、1
行中の通常印字と右寄せ印字とを自動的に連続して行え
るようになり、印字処理効率を大幅に向上できる優れた
効果を有する。
Therefore, you are freed from complicated printing specifications as in the past, and
Normal printing and right-justified printing in a line can be automatically and consecutively performed, which has the excellent effect of greatly improving printing processing efficiency.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例を示す電子タイプライタの
基本構成ブロック図、第2図は、第1図に示した電子タ
イプライタの制御構成を説明する詳細ブロック図、第3
図は、第2図に示したプリンタによる印字出力例を説明
する図、第4図はこの発明による一括右寄せ自動印字処
理手順の一例を説明するフローチャートである。 図中、1は入力手段、2は文字幅累積手段、3は文字記
憶手段、4は最終スペース検出手段、5は最終スペース
量計算手段、6は印字手段である。
FIG. 1 is a basic configuration block diagram of an electronic typewriter showing an embodiment of the present invention, FIG. 2 is a detailed block diagram illustrating the control configuration of the electronic typewriter shown in FIG. 1, and FIG.
This figure is a diagram illustrating an example of print output by the printer shown in FIG. 2, and FIG. 4 is a flowchart illustrating an example of a batch right-justification automatic print processing procedure according to the present invention. In the figure, 1 is an input means, 2 is a character width accumulation means, 3 is a character storage means, 4 is a final space detection means, 5 is a final space amount calculation means, and 6 is a printing means.

Claims (1)

【特許請求の範囲】[Claims] 書式フォーマットに基づいて入力された印字情報を行単
位に記憶するバッファメモリと、このバッファメモリに
記憶された印字情報に基づいて印字を行う印字手段とを
有する電子タイプライタにおいて、入力された印字情報
に対する相対印字幅量を順次積算する積算手段と、前記
バッファメモリに記憶された最終スペースコードを検出
する検出手段と、前記積算手段により積算された印字幅
総量と前記書式フォーマットとを参照しながら前記検出
手段により検出された最終スペースコードに対する右寄
せスペース量を演算する演算手段と、この演算手段によ
り演算された右寄せスペース量および前記印字情報に基
づいて印字手段による一括行印字を制御する制御手段と
を具備したことを特徴とする電子タイプライタ。
In an electronic typewriter that has a buffer memory that stores print information input line by line based on a format, and a printing means that prints based on the print information stored in this buffer memory, the input print information an accumulating means for sequentially accumulating the relative print width amount for the above, a detecting means for detecting the final space code stored in the buffer memory, and a detecting means for detecting the final space code stored in the buffer memory; a calculation means for calculating a right-justification space amount for the final space code detected by the detection means; and a control means for controlling batch line printing by the printing means based on the right-justification space amount calculated by the calculation means and the printing information. An electronic typewriter characterized by:
JP3495589A 1989-02-16 1989-02-16 electronic typewriter Pending JPH02214680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3495589A JPH02214680A (en) 1989-02-16 1989-02-16 electronic typewriter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3495589A JPH02214680A (en) 1989-02-16 1989-02-16 electronic typewriter

Publications (1)

Publication Number Publication Date
JPH02214680A true JPH02214680A (en) 1990-08-27

Family

ID=12428582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3495589A Pending JPH02214680A (en) 1989-02-16 1989-02-16 electronic typewriter

Country Status (1)

Country Link
JP (1) JPH02214680A (en)

Similar Documents

Publication Publication Date Title
KR900000920B1 (en) Electronic cash resister
JPH1044522A (en) Label printer
JPH02214680A (en) electronic typewriter
JPH1067145A (en) Label printer
JP7504139B2 (en) Slip processing device, slip processing method and program
JPH0710467Y2 (en) Electronic cash register
JPH01229673A (en) English and european writing printing control system
JP2861887B2 (en) Label printer
JP2956599B2 (en) Label printer
JP3379435B2 (en) Label printer
JPH0330893B2 (en)
JP2995103B2 (en) POS system
JP3008855B2 (en) Label printer
JP2554384B2 (en) Receipt issuing device
JP2000168160A (en) Label printer
JPH0812105B2 (en) Electronic scales
JP2673050B2 (en) Label printer
JP2664222B2 (en) Print data processing method in printer
KR0163733B1 (en) Cash register and method for multilingual printing
JPH11328536A (en) Product processing equipment
JPS6321173A (en) Information processor
KR910001858B1 (en) Register
JPH05229175A (en) Label printer
JPS63121970A (en) Document processor
JPH02258377A (en) Print processing device