JPH0461778B2 - - Google Patents

Info

Publication number
JPH0461778B2
JPH0461778B2 JP58064999A JP6499983A JPH0461778B2 JP H0461778 B2 JPH0461778 B2 JP H0461778B2 JP 58064999 A JP58064999 A JP 58064999A JP 6499983 A JP6499983 A JP 6499983A JP H0461778 B2 JPH0461778 B2 JP H0461778B2
Authority
JP
Japan
Prior art keywords
period
key
keyboard
decimal point
keys
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
JP58064999A
Other languages
Japanese (ja)
Other versions
JPS59188461A (en
Inventor
Hideo Ueno
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP58064999A priority Critical patent/JPS59188461A/en
Publication of JPS59188461A publication Critical patent/JPS59188461A/en
Publication of JPH0461778B2 publication Critical patent/JPH0461778B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J5/00Devices or arrangements for controlling character selection
    • B41J5/30Character or syllable selection controlled by recorded information
    • B41J5/44Character or syllable selection controlled by recorded information characterised by storage of recorded information
    • B41J5/46Character or syllable selection controlled by recorded information characterised by storage of recorded information on internal storages

Landscapes

  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はキーボード上の各キーの操作により選
択された一連の文字、数字、計算用の記号等を印
字すると共に、一連の印字動作に引続き数字キー
により入力された数値データを計算用の記号(以
下演算記号と称す)キーにより指定された演算式
で演算処理してなる演算結果を印字することが可
能な演算機能付電子タイプライタに関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention prints a series of characters, numbers, calculation symbols, etc. selected by operating each key on a keyboard, and also prints a series of characters, numbers, symbols for calculation, etc. The present invention relates to an electronic typewriter with an arithmetic function capable of processing numerical data inputted using numerical keys using an arithmetic expression specified using a calculation symbol (hereinafter referred to as an operation symbol) key and printing the result of the operation.

〔従来技術〕[Prior art]

この種の演算機能付電子タイプライタには、本
件出願人が先に出願した実願昭56−145947号に記
載のものがある。しかし、前記記載の電子タイプ
ライタは、ピリオドにて終了する文章を入力後、
キヤリツジリターンにより改行を行なつてから演
算式を入力した演算処理においては、演算式にお
ける最初の数値データはその頭に小数点が付いて
いるとみなしていた。つまり、キヤリツジリター
ンによる改行の直前に入力されたピリオドを小数
点とみなし、これが次行の最初の数値データに続
くものとして演算処理が行なわれていた。例え
ば、英文“This is a pen.”と入力後、キヤリ
ツジリターンを行なつてから演算式“2+3”を
入力して演算処理を実行させると結果は3.2とな
つていた。周知の通り演算式“2+3”の正しい
演算結果は5であるが、これは演算処理の際演算
式“2+3”における最初の数値データ“2”が
改行の直前に入力されたピリオドが小数点とみな
されたために0.2と認識されて生じた誤りである。
This type of electronic typewriter with arithmetic functions is described in Utility Model Application No. 145947/1983, which was previously filed by the applicant of the present invention. However, the electronic typewriter described above, after inputting a sentence ending with a period,
In arithmetic processing in which an arithmetic expression is entered after a line break is performed by a carriage return, the first numeric data in the arithmetic expression is assumed to have a decimal point at the beginning. In other words, the period input just before a line feed due to a carriage return is treated as a decimal point, and calculations are performed on the assumption that it follows the first numeric data on the next line. For example, after inputting the English text "This is a pen." and performing a carriage return, inputting the arithmetic expression "2+3" and executing the arithmetic processing resulted in a result of 3.2. As is well known, the correct result of the arithmetic expression "2+3" is 5, but this is because during arithmetic processing, the first numerical data "2" in the arithmetic expression "2+3" is treated as the period entered just before the line break, which is considered a decimal point. This is an error that occurred because it was recognized as 0.2.

上述したように従来の演算機能付の電子タイプ
ライタは、キヤリツジリターンによる改行の直前
に入力された文の終了を示すピリオドが、次行の
最初に入力した演算式の数値データの小数点とし
て演算処理されてしまうため、正確な演算結果を
得られない場合があつた。
As mentioned above, in conventional electronic typewriters with arithmetic functions, the period indicating the end of a sentence entered immediately before a carriage return line feed is calculated as the decimal point of the numerical data of the arithmetic expression entered at the beginning of the next line. There were cases where accurate calculation results could not be obtained because of the processing.

〔発明の目的〕[Purpose of the invention]

本発明の目的は上記従来の難点を除去し、キヤ
リツジリターンによる改行の直前に文の終了を示
すためにキー入力されたピリオドと次行に入力さ
れた演算式とは互いに関与しないものと認識して
演算処理を行なう演算機能付電子タイプライタを
提供しようとするにある。
The purpose of the present invention is to eliminate the above-mentioned conventional difficulties, and to recognize that the period entered by the key to indicate the end of a sentence immediately before a line break due to a carriage return and the arithmetic expression entered on the next line are not related to each other. An object of the present invention is to provide an electronic typewriter with an arithmetic function that performs arithmetic processing.

〔実施例の構成〕[Configuration of Example]

以下、第1図及び第2図を参照して本発明の一
実施例の構成を説明する。
Hereinafter, the configuration of an embodiment of the present invention will be described with reference to FIGS. 1 and 2.

第1図及び第2図において、文字キー、数字キ
ー、演算記号キー、小数点を兼ねたピリオドキー
等の記号キー及び機能キーが配列されたキーボー
ド1とキーボード1からキー入力されたデータを
記憶する表示バツフア2及び小数点フラグ3等の
ワーキング用として働くRAM(書き込み読み出
し可能なメモリ)4と、キーボード1からキー入
力されたデータを表示する液晶表示装置(以下
LCDと称す)5をコントロールするLCDコント
ローラ6と、キーボード1からキー入力されたデ
ータに従つて印字ヘツド7が装着されたキヤリツ
ジ8の移行及び用紙9送りをして印字を行なう印
字装置10の駆動を制御する印字装置駆動部11
と、各処理を実行するプログラムが記憶されてい
るROM(読み出し専用メモリ)12とが中央処
理装置(以下CPUと称す)13に接続されてい
る。
In FIGS. 1 and 2, a keyboard 1 is arranged with character keys, numeric keys, arithmetic symbol keys, symbol keys such as a period key that also serves as a decimal point, and function keys, and data input from the keyboard 1 is stored. A RAM (readable and writable memory) 4 that serves as a working device such as a display buffer 2 and a decimal point flag 3, and a liquid crystal display device (hereinafter referred to as
An LCD controller 6 controls an LCD (referred to as an LCD) 5, and drives a printing device 10 which performs printing by moving a carriage 8 equipped with a print head 7 and feeding paper 9 according to data entered from a keyboard 1. Printing device drive unit 11 that controls
and a ROM (read-only memory) 12 in which programs for executing various processes are stored are connected to a central processing unit (hereinafter referred to as CPU) 13.

〔実施例の動作〕[Operation of the embodiment]

上記構成において、次にその動作を第1図乃至
第3図を参照して説明する。
The operation of the above configuration will now be described with reference to FIGS. 1 to 3.

第3図において、まずステツプ21でキーボード
1からのキー入力をスキヤンする。ここで、キー
入力がない場合はスキヤンを続行し、何らかのキ
ー入力があつた場合は次のステツプ22へ進む。こ
こで、前記キー入力のデータをLCD5用の表示
バツフア2へ入力して一時記憶させる。次にステ
ツプ23へ進み、前記キー入力のデータがピリオド
であるか否かの判断を行なう。ここで、キー入力
のデータがピリオドであつた場合は次のステツプ
24へ進み、小数点フラグ3をたてた後再びステツ
プ21へ行く。一方、ステツプ23でキー入力のデー
タがピリオドではなかつた場合はステツプ25へ進
み、そのキー入力のデータがキヤリツジリターン
であるか否かの判断を行なう。ここで、キー入力
のデータがキヤリツジリターンではない場合はス
テツプ26へ進みそのキー入力のデータに応じた処
理を行ない、一方、キー入力のデータがキヤリツ
ジリターンであつた場合は次のステツプ27へ進
む。ここで、キヤリツジリターンの直前のキー入
力のデータがピリオドであるか否かの判断を行な
い、ピリオドでない場合は、再びステツプ21へ行
き、ピリオドである場合は次のステツプ28へ進
む。ここで、ピリオドの直前のキー入力のデータ
が数字或いは演算記号であるか否かの判断を行な
い、数字或いは演算記号である場合は再びステツ
プ21へ行き、数字或いは演算記号でない場合は次
のステツプ29へ進む。ここで、小数点フラグ3を
クリアし次のステツプ30へ進み、キヤリツジリタ
ーンを実行した後、再びステツプ21へ進む。
In FIG. 3, first, in step 21, key input from the keyboard 1 is scanned. Here, if there is no key input, scanning continues; if any key input is received, the process advances to the next step 22. Here, the key input data is input to the display buffer 2 for the LCD 5 and temporarily stored. Next, the process proceeds to step 23, where it is determined whether the key input data is a period. Here, if the key input data is a period, proceed to the next step.
Proceed to step 24, set decimal point flag 3, and then go to step 21 again. On the other hand, if the key input data is not a period in step 23, the process proceeds to step 25, where it is determined whether the key input data is a carriage return. Here, if the key input data is not a carriage return, proceed to step 26 and perform processing according to the key input data.On the other hand, if the key input data is a carriage return, proceed to the next step 27. Proceed to. Here, it is determined whether or not the key input data immediately before the carriage return is a period. If it is not a period, the process goes to step 21 again, and if it is a period, the process goes to the next step 28. Here, it is determined whether the key input data immediately before the period is a number or arithmetic symbol. If it is a number or arithmetic symbol, go to step 21 again; if it is not a number or arithmetic symbol, go to the next step. Proceed to 29. Here, the decimal point flag 3 is cleared and the process proceeds to the next step 30, and after performing a carriage return, the process proceeds to step 21 again.

また、演算処理の過程は、演算式の最初の数値
データ頭部に小数点を付加して演算を行なうか否
かをRAM4内の小数点フラグ3の状態により判
断すること以外は本杆出願人が先に出願した実願
昭56−145947号に記載のものと実質的に同様であ
り、実願昭56−145947号における実施例の制御回
路11、演算回路14及びレジスタ14aを夫々
本実施例のCPU13,ROM12及びRAM4に
対応させれば容易に理解される。
In addition, the process of arithmetic processing is carried out by the present applicant in advance, except for determining whether or not to add a decimal point to the first numerical data head of the arithmetic expression and perform the calculation based on the state of the decimal point flag 3 in RAM4. The control circuit 11, the arithmetic circuit 14, and the register 14a of the embodiment in Utility Model Application No. 56-145947 are replaced by the CPU 13 of this embodiment, respectively. , ROM12 and RAM4, it can be easily understood.

〔発明の効果〕〔Effect of the invention〕

以上に詳述した通り、本発明に係る演算機能付
電子タイプライタは、キヤリツジリターンによる
改行の直前に文の終了を示すためにキー入力され
たピリオドを小数点と誤認識することを防止で
き、正確な演算処理の実行が可能となる。
As described in detail above, the electronic typewriter with arithmetic functions according to the present invention can prevent a period keyed in to indicate the end of a sentence immediately before a carriage return to a new line from being mistakenly recognized as a decimal point. Accurate calculation processing becomes possible.

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

第1図は本発明の一実施例を示すブロツク図、
第2図はその概略斜視図、第3図はそのフローチ
ヤートである。 図中、1はキーボード、2は表示バツフア、3
は小数点フラグ、4はRAM、10は印字装置、
12はROM、13は中央処理装置である。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a schematic perspective view thereof, and FIG. 3 is a flowchart thereof. In the figure, 1 is the keyboard, 2 is the display buffer, and 3 is the keyboard.
is the decimal point flag, 4 is the RAM, 10 is the printing device,
12 is a ROM, and 13 is a central processing unit.

Claims (1)

【特許請求の範囲】 1 文字キー、数字キー、小数点を兼ねたピリオ
ド及び加減乗除等の計算用の記号キー及びキヤリ
ツジリターン等の機能キーが配列されたキーボー
ドと、キーボードからの入力に対応した印字、用
紙送り及びキヤリツジ送りを行なう印字装置とを
有する電子タイプライタにおいて、 キーボードから入力した計算式を演算し、その
計算式とともに演算結果を併せて印字する制御手
段を設け、その制御手段は、前記計算式を演算す
る際、キヤリツジリターンキーの直前に入力した
ピリオドキーについてはそのピリオドキーの直前
のキー入力が数字キーであつた場合に限つてその
ピリオドキーの命令を小数点とみなして演算処理
するようにしたことを特徴とする演算機能付電子
タイプライタ。
[Scope of Claims] 1. A keyboard that is arranged with character keys, numeric keys, a period that also serves as a decimal point, symbol keys for calculations such as addition, subtraction, multiplication, and division, and function keys such as carriage return, and a keyboard that corresponds to input from the keyboard. In an electronic typewriter having a printing device for printing, paper feeding, and carriage feeding, there is provided a control means for calculating a calculation formula inputted from a keyboard and printing the calculation result together with the calculation formula, and the control means is configured as described above. When calculating a calculation formula, if a period key is input immediately before the carriage return key, only if the key input immediately before the period key was a numeric key, the period key command is treated as a decimal point and the calculation is processed. An electronic typewriter with arithmetic functions.
JP58064999A 1983-04-12 1983-04-12 Electronic typewriter with arithmetic function Granted JPS59188461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58064999A JPS59188461A (en) 1983-04-12 1983-04-12 Electronic typewriter with arithmetic function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58064999A JPS59188461A (en) 1983-04-12 1983-04-12 Electronic typewriter with arithmetic function

Publications (2)

Publication Number Publication Date
JPS59188461A JPS59188461A (en) 1984-10-25
JPH0461778B2 true JPH0461778B2 (en) 1992-10-02

Family

ID=13274267

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58064999A Granted JPS59188461A (en) 1983-04-12 1983-04-12 Electronic typewriter with arithmetic function

Country Status (1)

Country Link
JP (1) JPS59188461A (en)

Also Published As

Publication number Publication date
JPS59188461A (en) 1984-10-25

Similar Documents

Publication Publication Date Title
JPS6213807Y2 (en)
JPH0461778B2 (en)
US4840499A (en) Display control device for a typewriter which displays both input characters and format information
JPH0522932B2 (en)
JPH10138570A (en) Character information processing device
CA1301349C (en) Bounded word replace function for an electronic typewriter
JPS62255175A (en) Standard format printing device
JPS62286780A (en) character processing device
KR950013126B1 (en) How to handle shorthand data for computers
JPH02158380A (en) Printing apparatus
JPS5816880A (en) Printer
JP2573183B2 (en) Kana-Kanji conversion device
JPH0586355B2 (en)
JPS60254221A (en) Electronics
JPS62282938A (en) electronic typewriter
JPH06238980A (en) Printer
JPH03134768A (en) Printing device with spell check function
JPS63146157A (en) Document processor
JPS62146662A (en) electronic typewriter
JPH0139140B2 (en)
JPH03237559A (en) Document processor
JPH09230979A (en) Electronics
JPS60109867A (en) Typewriter with calculation function
JPS62199480A (en) Electronic typewriter
JPS62255178A (en) document creation device