JPS62146670A - Electronic typewriter - Google Patents

Electronic typewriter

Info

Publication number
JPS62146670A
JPS62146670A JP60287254A JP28725485A JPS62146670A JP S62146670 A JPS62146670 A JP S62146670A JP 60287254 A JP60287254 A JP 60287254A JP 28725485 A JP28725485 A JP 28725485A JP S62146670 A JPS62146670 A JP S62146670A
Authority
JP
Japan
Prior art keywords
printing
pitch
printing pitch
right margin
margin
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
JP60287254A
Other languages
Japanese (ja)
Inventor
Yoshikuni Tatara
賀邦 多々良
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP60287254A priority Critical patent/JPS62146670A/en
Publication of JPS62146670A publication Critical patent/JPS62146670A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To realize full space justify printing, by a method wherein the resetting processing of a right margin is automatically controlled so as to be performed at the position nearest to a present set position by the operation of the right margin position stored in a right margin memory means and the printing pitch stored in a printing pitch memory means. CONSTITUTION:When a printing pitch is altered, a new printing pitch is set and a present carriage position acquired as a temporary right margin SRM and divided by the new printing pitch to calculate the surplus quantity B thereof and said quantity B is compared with the half value of the new printing pitch. If the comparing result C is positive, the position of the new right margin becomes inside the present carriage position and, therefore, the surplus quantity B is subtracted from the temporary right margin SRM to set the position of an original right margin RM. When the comparing result is negative, the difference between the new pitch and the surplus quantity B is added to the temporary right margin SRM to set the position of RM. By this operational processing, a position integer times the altered printing pitch and nearest to the presently set right margin is calculated.

Description

【発明の詳細な説明】 艮先分国 この発明は、欧文の文書の印刷で使用するのに好適な、
印字ピッチの変更時に、マージンセットが自動的に行え
るようにした電子タイプライタに係り、特に、ジャスチ
イファイ(右揃え)印字時に印字ピッチを変更するとき
、現在セットされているライトマージンに最も近い位置
に、ライトマージンがセットされるように制御すること
によって、完全なフルスペース・ジャスティファイ印字
による見やすい文字配列の印字パターンが得られるよう
にした電子タイプライタに関する。
[Detailed Description of the Invention] This invention is suitable for printing European language documents.
This relates to electronic typewriters that can automatically set the margin when changing the print pitch. In particular, when changing the print pitch during Justify (right alignment) printing, set the margin closest to the currently set light margin. The present invention relates to an electronic typewriter in which a print pattern with an easy-to-read character arrangement is obtained by complete full-space justified printing by controlling a write margin to be set at a certain position.

従来技術 電子タイプライタでは、印字位置機能が設けられており
、見やすい文学配列や、印字範囲を制御するために、レ
フトマージンやライトマージン等をセットする手段が設
けられている。
Prior art electronic typewriters are provided with a printing position function, and are provided with means for setting a left margin, a right margin, etc. in order to control the easy-to-read literary arrangement and printing range.

第3図は、従来の電子タイプライタの要部構成について
、その−例を□示す機能ブロック図である。
FIG. 3 is a functional block diagram showing an example of the main structure of a conventional electronic typewriter.

図面において、9はキーボードからなる操作部、10は
キーボード制御部、11はシステム制御部、12はバッ
ファメモリ、13はバッファメモリ制御部、14はプリ
ンタ、15はプリンタ制御部、16は表示装置、17は
表示制御部、18はデータバス、19は制御線を示す。
In the drawings, reference numeral 9 denotes an operation unit consisting of a keyboard, 10 a keyboard control unit, 11 a system control unit, 12 a buffer memory, 13 a buffer memory control unit, 14 a printer, 15 a printer control unit, 16 a display device, 17 is a display control section, 18 is a data bus, and 19 is a control line.

電子タイプライタは、この第3図に示すような構成であ
る。
The electronic typewriter has a configuration as shown in FIG.

操作部9はキーボードがらなり、キー操作によって、必
要な文字データや、印字のための制御信号等を入力する
The operation section 9 consists of a keyboard, through which necessary character data, control signals for printing, etc. are input by key operations.

キーボード制御部10は、操作部9がら入力されたデー
タを判断し、文字コードのデータであれば、バッファメ
モリ12へ送出し、制御信号のデータであれば、それに
対応する各制御部13,15.17へ送出する。
The keyboard control unit 10 determines the data input from the operation unit 9, and if it is character code data, it is sent to the buffer memory 12, and if it is control signal data, it is sent to the corresponding control units 13, 15. .17.

バッファメモリ12は、1印字行分から数印字行分のデ
ータを格納するメモリ容量を有しており。
The buffer memory 12 has a memory capacity to store data for one print line to several print lines.

バッファメモリ制御部13によって制御される。It is controlled by the buffer memory control section 13.

プリンタ14は、プリンタ制御部15により制御され、
バッファメモリ12に格納された文字コードによって1
文書を印刷する。
The printer 14 is controlled by a printer control unit 15,
1 depending on the character code stored in the buffer memory 12.
Print the document.

表示装置116は、LCD (液晶表示装置)やlライ
ンディスプレイ等で、1行あるいは数行程度の表示容量
を有しており、表示制御部17にょって制御され、バッ
ファメモリ12に格納された文字コードによって1文字
等を可視的パターンで表示する。
The display device 116 is an LCD (liquid crystal display), an L-line display, or the like, and has a display capacity of one line or several lines. A character code is used to display a single character in a visible pattern.

システム制御部11は、CPUや、プログラムROM、
プログラムRAM、システム用RAM等から構成されて
おり、電子タイプライタの全体のシステムを制御する。
The system control unit 11 includes a CPU, a program ROM,
It is composed of a program RAM, a system RAM, etc., and controls the entire system of the electronic typewriter.

このような電子タイプライタで印字するとき、−頁の文
書の印字中に、その印字ピッチを変更したい、という場
合がしばしば発生する。
When printing with such an electronic typewriter, it often happens that it is desired to change the printing pitch while printing a -page document.

ところが、印字ピッチを変更すると、ライトマージンの
位置が変化するので、特にジャスティファイ印字の場合
には、その右端の文字の配列が不揃いとなり、見苦しい
文書になってしまう、という不都合があった6 且−一血 そこで、この発明の電子タイプライタでは、従来の電子
タイプライタにおいて印字ピッチ変更時に生じるこのよ
うな不都合を解決し、印字ピッチの変更によるライトマ
ージン再設定の処理が、現在セットされているライトマ
ージン位置に最も近い位置となるように、自動的に設定
されるように制御することにより、フルスペース・ジャ
スティファイ印字を実現して、見やすい文字配列の印字
パターンが得られるようにすることを目的とする。
However, when the printing pitch is changed, the position of the right margin changes, which causes the inconvenience that, especially in the case of just printing, the arrangement of the characters at the right end becomes irregular, resulting in an unsightly document6. - Therefore, in the electronic typewriter of the present invention, such inconveniences that occur when changing the printing pitch in conventional electronic typewriters are solved, and a process for resetting the light margin by changing the printing pitch is currently set. By controlling the position to be automatically set to the position closest to the right margin position, full space just printing can be achieved and a print pattern with an easy-to-read character arrangement can be obtained. purpose.

皇−一處 そのために、この発明の電子タイプライタでは、現在セ
ットされている′ライトマージンの位置を記憶するライ
トマージン記憶手段と、変更された印字ピッチを記憶す
る印字ピッチ記憶手段と、ライトマージン記憶手段に記
憶されているライトマージン位置と印字ピッチ記憶手段
に記憶されている印字ピッチとの演算により、商と余り
量とを算出し、この余り量を印字ピッチ記憶手段に記憶
されている印字ピッチの半分の値と比較し、変更された
印字ピッチの整数倍で、かつ現在セットされているライ
1−マージンに最も近い位置を算出する演算手段とを設
けるようにしている。
To this end, the electronic typewriter of the present invention includes a light margin storage means for storing the currently set position of the right margin, a print pitch storage means for storing the changed print pitch, and a light margin storage means for storing the currently set position of the write margin. By calculating the light margin position stored in the storage means and the printing pitch stored in the printing pitch storage means, a quotient and a remainder amount are calculated, and this remainder amount is used as the printing pitch stored in the printing pitch storage means. Calculating means is provided for comparing the printing pitch with a half value of the pitch and calculating a position that is an integer multiple of the changed printing pitch and is closest to the currently set lie 1-margin.

次に、この発明の電子タイプライタについて、図面を参
照しながら、その実施例を詳細に説明する。
Next, embodiments of the electronic typewriter of the present invention will be described in detail with reference to the drawings.

第1図は、この発明の電子タイプライタの要部となるプ
リンタ部について、その一実施例を示す機能ブロック図
である0図面において、lはシステムコントローラ、2
は入力バッファメモリ、3はプリンタコントローラ、4
は活字選択制御部、5はハンマー制御部、6はキャリッ
ジ制御部、7はリボンフィード制御部、8はラインフィ
ード制御部、Mlはセレクションモータ、M2はキャリ
ッジモータ、M3はリボンモータ、M4はラインフィー
ドモータ、HMはハンマーマグネットを示す。
FIG. 1 is a functional block diagram showing one embodiment of a printer unit, which is a main part of an electronic typewriter of the present invention.
is input buffer memory, 3 is printer controller, 4 is
is a type selection control section, 5 is a hammer control section, 6 is a carriage control section, 7 is a ribbon feed control section, 8 is a line feed control section, Ml is a selection motor, M2 is a carriage motor, M3 is a ribbon motor, M4 is a line Feed motor, HM indicates hammer magnet.

この第1図の電子タイプライタは、基本的には、従来の
電子タイプライタと同様である。
The electronic typewriter of FIG. 1 is basically the same as a conventional electronic typewriter.

入力バッファメモリ2へは、システムコントローラ1か
ら、8ビツトとか16ビツト等のパラレルデータDAT
Aとして入力される。
Parallel data DAT, such as 8 bits or 16 bits, is input from the system controller 1 to the input buffer memory 2.
Inputted as A.

入力データDATAは、ストローブ信号5TROBHの
タイミングで入力される。なお、入力データDATAは
、プリンタコントローラ3から制御信号READYが発
生されている状態のときだけ、システムコントローラl
からの入力が可能である。
Input data DATA is input at the timing of strobe signal 5TROBH. Note that the input data DATA is sent to the system controller l only when the control signal READY is generated from the printer controller 3.
It is possible to input from

この人力バッファメモリ2は、一般に、■印字ライン分
から数ライン分のデータを蓄えることが可能な程度のメ
モリ容量を有している。
This manual buffer memory 2 generally has a memory capacity that is capable of storing data from the print line to several lines.

また、印字動作を制御するための制御信号は。Also, the control signals for controlling the printing operation.

プリンタコントローラ3に格納される6例えば。6 stored in the printer controller 3, for example.

現在セットされているライトマージンや、印字ピッチ等
の情報も、ここに格納されている。
Information such as the currently set write margin and printing pitch is also stored here.

この発明の電子タイプライタでは、ジャスティファイ印
字時に、その印字ピッチを変更しても、現在セットされ
ているライトマージンに最も近い位置に、ライトマージ
ンが再セットされるように制御することによって、完全
なフルスペース・ジャスティファイ印字を実現している
In the electronic typewriter of this invention, even if the printing pitch is changed during Justify printing, the light margin is controlled so that it is reset to the position closest to the currently set light margin. Achieves full space and just printing.

第2図は、この電子タイプライタにおいて、印字ピッチ
の変更時におけるライトマージン再セットの処理の流れ
を示すフローチャートである1図面において、SRMは
仮ライトマージン、RMは新たにセットする本来のライ
トマージンを示す。
Fig. 2 is a flowchart showing the process flow of resetting the light margin when changing the printing pitch in this electronic typewriter. shows.

印字ピッチが変更されると、この第2図のフローがスタ
ートする。
When the printing pitch is changed, the flow shown in FIG. 2 starts.

まず、新たな印字ピッチをセットする。First, set a new printing pitch.

次に、現在のキャリッジ位置を仮ライトマージンSRM
として取込む。
Next, set the current carriage position to the temporary write margin SRM.
Import as.

そして、仮ライトマージンSRMを新しい印字ピッチで
割算し、その余り量Bを算出する。
Then, the temporary write margin SRM is divided by the new printing pitch, and the remainder amount B is calculated.

もし、この余り量Bが、tg O##であれば、仮ライ
トマージンSRMを、そのまま本来のライトマージンR
Mとする。この場合には、実質的に、ライトマージンR
Mは変更されない。
If this surplus amount B is tg O##, the temporary write margin SRM is changed to the original write margin R.
Let it be M. In this case, the light margin R is substantially
M is not changed.

これに対して、余り量Bが、#J O#でないときは。On the other hand, when the remaining amount B is not #J O#.

新しい印字ピッチの半分の値と、余り量Bとを比較し、
比較結果Cを得る。
Compare the half value of the new printing pitch and the remaining amount B,
Comparison result C is obtained.

もし、この比較結果Cが正であれば、新しい印字ピッチ
によって設定されるべきライトマージンの位置は、現在
のキャリッジ位置、すなわち現セットのライトマージン
よりも内側になるので、仮ライトマージンSRMから余
り量Bを引いて、本来のライトマージンRMの位置とす
る。
If this comparison result C is positive, the position of the light margin to be set according to the new print pitch will be inside the current carriage position, that is, the current set of light margins, so there will be a surplus from the temporary light margin SRM. The amount B is subtracted to obtain the original write margin RM position.

反対に、この比較結果Cが負のときは、余り量Bは、新
しい印字ピッチによって台足されるべきライトマージン
の位置は、現在のキャリッジ位置よりも外側になるので
、新しいピッチと余り量Bとの差を、仮ライトマージン
SRMに加えて1本来のライトマージンRMの位置とす
る。
On the other hand, when this comparison result C is negative, the remaining amount B is determined by the new pitch and the remaining amount B, since the position of the light margin to be added by the new printing pitch is outside the current carriage position. In addition to the temporary write margin SRM, the difference between the two positions is taken as the position of the original write margin RM.

このような演算処理によって、変更された印字ピッチの
整数倍で、かつ現在セットされているライトマージンに
最も近い位置が算出される。
Through such arithmetic processing, a position that is an integral multiple of the changed printing pitch and is closest to the currently set light margin is calculated.

したがって、この演算結果によって、新たなライ1−マ
ージンRMの位置を決定すれば、ジャスティファイ印字
でも、常に、文章の右端がきれいに揃った文書を作成す
ることができる。
Therefore, by determining the position of a new lie 1-margin RM based on the result of this calculation, it is possible to always create a document in which the right edge of the text is neatly aligned even with just printing.

なお、以上の実施例では、ソ1フト的に処理する場合に
ついて説明したが、ハード的に処理することも可能であ
り、この場合には、公知の論理回路等を用いることによ
って、このような処理を行う手段を、容易に構成するこ
とができる。
In the above embodiments, the case where the processing is performed in a software manner is explained, but it is also possible to perform the processing in a hardware manner.In this case, by using a known logic circuit, etc. The means for performing the processing can be easily configured.

以上に詳細に説明したとおり、この発明の電子タイプラ
イタでは、現在セットされているライトマージンの位置
を記憶するライトマージン記憶手段と、変更された印字
ピッチを記憶する印字ピッチ記憶手段と、ライトマージ
ン記憶手段に記憶されているライトマージン位置と印字
ピッチ記憶手段に記憶されている印字ピッチとの演算に
より、商と余り量とを算出し、この余り量を印字ピッチ
記憶手段に記憶されている印字ピッチの半分の値と比較
し、変更された印字ピッチの整数倍で、かつ現在セット
されているライトマージンに最も近い位置を算出する演
算手段とを設けるようにしている。
As described above in detail, the electronic typewriter of the present invention includes a light margin storage means for storing the currently set position of the write margin, a print pitch storage means for storing the changed print pitch, and a light margin storage means for storing the currently set position of the write margin. By calculating the light margin position stored in the storage means and the printing pitch stored in the printing pitch storage means, a quotient and a remainder amount are calculated, and this remainder amount is used as the printing pitch stored in the printing pitch storage means. Calculating means is provided for comparing the printing pitch with a half value of the pitch and calculating a position that is an integral multiple of the changed printing pitch and is closest to the currently set light margin.

効   果 したがって、この発明の電子タイプライタによれば、ジ
ャスティファイ印字時に、その印字ピッチを変更しても
、現在セットされているライトマージンに最も近い位置
に、ライトマージンがセットされるように自動的に制御
することができるので、完全なフルスペース・ジャステ
ィファイ印字による見やすい文字配列の印字パターンを
得ることが可能になる、という優れた効果が奏せられる
Effects Therefore, according to the electronic typewriter of the present invention, even if the printing pitch is changed during Justify printing, the light margin is automatically set at the position closest to the currently set light margin. As a result, it is possible to obtain a print pattern with an easy-to-read character arrangement through complete full-space justified printing, which is an excellent effect.

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

第1図は、この発明の電子タイプライタの要部となるプ
リンタ部につ″いて、その一実施例を示す機能ブロック
図。 第2図は、この電子タイプライタにおいて、印字ピッチ
の変更時におけるライトマージン再セットの処理の流れ
を示すフローチャート、第3図は、従来の電子タイプラ
イタの要部構成について、その−例を示す機能ブロック
図。 図面において、lはシステムコントローラ、2は入力バ
ツファメモリ、3はプリンタコントローラ、4は活字選
択制御部、5はハンマー制御部、6はキャリッジ制御部
、7はリボンフィード制御部、8はラインフィード制御
部、Mlはセレクションモータ、M2はキャリッジモー
タ、M3はリボンモータ、M4はラインフィードモータ
、HMはハンマーマグネットを示す。
FIG. 1 is a functional block diagram showing one embodiment of the printer section, which is the main part of the electronic typewriter of the present invention. FIG. FIG. 3 is a flowchart showing the process flow for resetting the light margin, and FIG. 3 is a functional block diagram showing an example of the main structure of a conventional electronic typewriter. In the drawing, l is a system controller, 2 is an input buffer memory, 3 is a printer controller, 4 is a type selection control unit, 5 is a hammer control unit, 6 is a carriage control unit, 7 is a ribbon feed control unit, 8 is a line feed control unit, Ml is a selection motor, M2 is a carriage motor, and M3 is a Ribbon motor, M4 is line feed motor, HM is hammer magnet.

Claims (1)

【特許請求の範囲】[Claims] 現在セットされているライトマージンの位置を記憶する
ライトマージン記憶手段と、変更された印字ピッチを記
憶する印字ピッチ記憶手段と、前記ライトマージン記憶
手段に記憶されているライトマージン位置と前記印字ピ
ッチ記憶手段に記憶されている印字ピッチとの演算によ
り、商と余り量とを算出し、該余り量を前記印字ピッチ
記憶手段に記憶されている印字ピッチの半分の値と比較
し、変更された印字ピッチの整数倍で、かつ現在セット
されているライトマージンに最も近い位置を算出する演
算手段とを備えたことを特徴とする電子タイプライタ。
A light margin storage means for storing the currently set light margin position, a printing pitch storage means for storing the changed printing pitch, and a light margin position and the printing pitch storage stored in the light margin storage means. The quotient and the remainder are calculated by calculation with the printing pitch stored in the printing pitch means, and the remaining amount is compared with the half value of the printing pitch stored in the printing pitch storage means, and the changed printing is calculated. 1. An electronic typewriter, comprising: calculation means for calculating a position that is an integral multiple of the pitch and is closest to the currently set write margin.
JP60287254A 1985-12-20 1985-12-20 Electronic typewriter Pending JPS62146670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60287254A JPS62146670A (en) 1985-12-20 1985-12-20 Electronic typewriter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60287254A JPS62146670A (en) 1985-12-20 1985-12-20 Electronic typewriter

Publications (1)

Publication Number Publication Date
JPS62146670A true JPS62146670A (en) 1987-06-30

Family

ID=17715017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60287254A Pending JPS62146670A (en) 1985-12-20 1985-12-20 Electronic typewriter

Country Status (1)

Country Link
JP (1) JPS62146670A (en)

Similar Documents

Publication Publication Date Title
JPS62146670A (en) Electronic typewriter
JPH01229673A (en) English and european writing printing control system
JPS61197271A (en) Output device
JPS59188458A (en) Typewriter with text memory
US4828414A (en) Output device for automatically changing end of line hot zone
JPS62255175A (en) Standardized format printer
KR950007750B1 (en) Right margin deciding method in typewriter
JPH08118731A (en) Printer and printing method
JPS62146662A (en) Electronic typewriter
JPS6321422Y2 (en)
JPH049637Y2 (en)
CA1308201C (en) Method and apparatus for processing keystrokes
JPH0535734A (en) Information processor
JP2672963B2 (en) Document processing apparatus and document processing method
KR950002698B1 (en) Column tap control method
JPS62146669A (en) Electronic typewriter
JPH0573562A (en) Document editor
JPH0113128B2 (en)
JPH0711750B2 (en) Document output method
JPS61139472A (en) Printer
JPS6189078A (en) Document output unit
JPH04120141U (en) printer device
JPH04127360A (en) Document processor
JPS59168532A (en) Documentation device
JPH05334300A (en) Information processor