JPS5887641A - Character processor - Google Patents

Character processor

Info

Publication number
JPS5887641A
JPS5887641A JP56185165A JP18516581A JPS5887641A JP S5887641 A JPS5887641 A JP S5887641A JP 56185165 A JP56185165 A JP 56185165A JP 18516581 A JP18516581 A JP 18516581A JP S5887641 A JPS5887641 A JP S5887641A
Authority
JP
Japan
Prior art keywords
cursor
input
sentence
register
calculations
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP56185165A
Other languages
Japanese (ja)
Other versions
JPH0474751B2 (en
Inventor
Tadashi Kimura
正 木村
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 JP56185165A priority Critical patent/JPS5887641A/en
Publication of JPS5887641A publication Critical patent/JPS5887641A/en
Publication of JPH0474751B2 publication Critical patent/JPH0474751B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Calculators And Similar Devices (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To make the operation of a character processor easy, by providing a means instructing a part of numerals in the sentence, and simplify calculations without provision of storage areas for the execution of calculations in a sentence. CONSTITUTION:An address bus AB transferring a signal instructing a control variable, a control bus CB applying a control signal and a data bus DB transferring various data are connected to a CPU comprising a microprocessor. To each bus, a control memory ROM, an RAM, a printer, a cursor register CR, a buffer register BUF and a character generator CG are connected. Further, a keyboard KB used for the input of a sentence, edition and calculating equations is connected, a part of numerals in the sentence is instructed with the moving position of the cursor inputted to the register CR, allowing to simply execute calculations without provision of a storage area executing the calculation in the sentence.

Description

【発明の詳細な説明】 本発明は、文章作成を行う文字処理装置に関し、特に文
章中の数値を使って計算を行い得るよう化したものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character processing device for creating sentences, and in particular is capable of performing calculations using numerical values in sentences.

従来、文字処理装置番ζおいて、入力された文章中の数
値を使って計算を行ない、その結果を文章中に求めるこ
とができるようにしたものがある。
Conventionally, some character processing devices ζ are capable of performing calculations using numerical values in an input sentence and finding the results in the sentence.

その場合、計算を行なうには、特別のキー操作によって
計算式を予め入力しておき、その計算式を実行させると
とkよって、計算を行なうことができるようkなってい
る。従って、計算手順を変えるには、文章とは別なエリ
アに記憶された計算式を変更する必要があった。このよ
うな方式は複雑な計算を繰り返し行なうのkは便利であ
るが、簡単な計算を簡単な操作で行うためには、却って
手間がかか抄不便であった。
In this case, in order to perform a calculation, a calculation formula is input in advance by a special key operation, and the calculation formula is executed. Therefore, in order to change the calculation procedure, it was necessary to change the calculation formula stored in an area separate from the text. Although such a method is convenient for repeatedly performing complex calculations, it is rather time-consuming and inconvenient for performing simple calculations with simple operations.

そこで1本発明の目的は、上述した欠点を除去し鵞文章
中の計算を実行するためにのみ用−る記憶領域を設ける
ことなく文章中の数値の計算を行ない得るようにすべく
、文章中の数値のうちの一部を指示する手段によ)、そ
れらの数値に一時的に仮の名称を付け、仮すの名称と演
算子とによる計算式の入力に基づ−て任意所望の計算を
行なうことができるようkした文字処理装置を提供する
ことにある。
Therefore, one object of the present invention is to eliminate the above-mentioned drawbacks and to make it possible to calculate numerical values in sentences without providing a storage area used only for executing calculations in sentences. (by specifying some of the numerical values), temporarily give temporary names to those numerical values, and perform any desired calculation based on the input of a calculation formula using the temporary names and operators. An object of the present invention is to provide a character processing device capable of performing the following operations.

以下、図面を参照して本発明の詳細な説明する。Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は本発明のl実施例を示し、ここで0PLJけV
イクロプロセツサで、演算や論理判断を行なう。ABは
制御対象を指示する信号を転送するアドレスバス、CB
は各種制御対象に制御信号を供給スルコントロールバス
、DBは各種データを機器間で転送するデータバスであ
〕、これらのバス五B 、OB 、DBを介して接続さ
れている機器をマイクロプロセッサ(3PUによ〕制御
する。ROMは例えばリードオンリメモリの形態の制御
メモリで、マイクロプロセッサCPUの制御手順が格納
されている。RAMはランダムアクセスメモリで各種7
’−タの一時記憶に用すられ、その中には3つのカーソ
ルセーブメモリC8R/、 O8Rコt 08RJ、計
算式メモリKBtlFおよび文字数メモリKLK Mを
内蔵している。KBは・キーボード、CRはカーソルレ
ジスタ、BUFはバッファレジスタ、CGはキャラクタ
ジェネレータ、QRTOはディスプレイOR?を制御t
スルuTコントローラ、PR’!’はバッファレジスタ
BvlFの内容を印字出力するプリンタである。
FIG. 1 shows an embodiment of the invention, where 0 PLJ
A microprocessor performs calculations and logical judgments. AB is an address bus that transfers signals indicating the control target, and CB
is a control bus that supplies control signals to various control objects, and DB is a data bus that transfers various data between devices. 3PU]. ROM is a control memory in the form of a read-only memory, for example, and stores control procedures for the microprocessor CPU. RAM is a random access memory that stores various types of 7PUs.
It is used for temporary storage of data, and contains three cursor save memories C8R/, O8R/08RJ, calculation formula memory KBtIF, and character count memory KLKM. KB is the keyboard, CR is the cursor register, BUF is the buffer register, CG is the character generator, and QRTO is the display OR? control t
Suru uT controller, PR'! ' is a printer that prints out the contents of buffer register BvIF.

カーソルセーブメモリO8R/は文章中の数値配列の一
部を指示するときの最初(左端)のカーソル位置を、カ
ーソルレジスタそりC8R2は同じく最後(右端)のカ
ーソル位置をそれぞれ記憶する。
The cursor save memory O8R/ stores the first (leftmost) cursor position when specifying a part of the numerical array in a sentence, and the cursor register C8R2 similarly stores the last (rightmost) cursor position.

マタ、カーソルセーブメモリC3Rjは計算実行キーX
Kが入力されて計算結果を出力しようとするカーソル位
置を記憶する。計算式メモ’J KBTJFは、第2図
に例示するように、キーボードKBから入力された計算
式ム十B等を記憶し、例えばIOワードの容量を有する
ものとする。文字数メモリKLIC)iは、計算するた
めに数値につけた仮の名称と演算子の総文字数(第一図
の例では3)を格納する。
Mata, cursor save memory C3Rj is calculation execution key
The cursor position where K is input and the calculation result is to be output is stored. Calculation formula memo 'J KBTJF, as illustrated in FIG. 2, stores calculation formulas input from the keyboard KB, etc., and has a capacity of, for example, an IO word. The character count memory KLIC)i stores the total number of characters (3 in the example shown in FIG. 1) of temporary names and operators given to numerical values for calculation.

キーボードKBは文章の入力、編集および計算式の入力
等薯ζ使用され、第3図に示すように、文字キームにカ
ーソルキーOK1範囲指示キーUK。
The keyboard KB is used for text input, editing, calculation formula input, etc. As shown in FIG.

計算実行キーKK等の7アンク7ヨンキーを有している
。カーソルレジスタORはディスプレイOR’l’上の
位置、すなわち行および桁によって決定される位置を記
憶するものであり、ここ与とはディスプレイOR1上の
位置を示すθ〜3デまでの順次の番号が記憶され、カー
ソルOA(第3図参照)の移動トともにマイクロプロセ
ッサCPU lこ匍制御されて変化する。また、カーソ
ルCムはカーソルレジスタOR内の順次番号に基いてO
RテコントローラCRTCニヨりディスプレイOR1上
の対応する行および桁に表示される。ノ(ツファレジス
タBUFは例えば侵ワードの容Iを持ち、文章および数
値等のデータコードが格納され、第一図に示すよう番ご
縦j行、横j桁4.から成9、その内容はこの位置関係
と同じ5行を桁のディスプレイOR’l’上にキャラク
タジェネレータCGを介して表示される。このように、
マイクロプロセッサCPUは、/(ツファレジスタBU
Fに格納したデータコート°に基づいて所望の文字パタ
ーンを読み出し、その文字〕(ターンを出力手段として
のディスプレイOR1上番こ表示しあるいはプリンタP
RTによυ印字出力する。
It has seven keys such as a calculation execution key KK. The cursor register OR stores the position on the display OR'l', that is, the position determined by row and digit, where y is a sequential number from θ to 3 de indicating the position on the display OR1. The values are stored and changed under the control of the microprocessor CPU as the cursor OA (see FIG. 3) moves. Also, the cursor C is set to O based on the sequential number in the cursor register OR.
The RTE controller CRTC data is displayed in the corresponding row and column on the display OR1. (For example, the buffer register BUF has the content I of an intrusion word, and data codes such as sentences and numerical values are stored. As shown in Figure 1, it consists of J rows vertically and J digits horizontally 4. The same five lines as the positional relationship are displayed on the digit display OR'l' via the character generator CG.In this way,
The microprocessor CPU is /(Zuffa register BU
The desired character pattern is read out based on the data code stored in F, and the character] (turn is displayed on the display OR1 as an output means or the printer P
Print out υ using RT.

次に上述した構成から成る本発明の実施例の動作を説明
する。電源投入後の文章や数値の入力は公知の技術によ
って実施されるので、ここでは詳しい説明は省略する。
Next, the operation of the embodiment of the present invention having the above-described configuration will be explained. Inputting text and numerical values after power is turned on is performed using known techniques, so detailed explanation will be omitted here.

今、本装置の初期状態として、バッファレジスタBtl
?内番こは、第5図(こ示スような文字パターンに対応
したデータコート°力大格納されているものとする。計
算は以下の手順で行なわれる。
Now, as the initial state of this device, the buffer register Btl
? It is assumed that the inner number is stored as a data code corresponding to a character pattern as shown in FIG. 5.The calculation is performed in the following procedure.

りカーソルレジスタによりカーソルCムを移動して計算
したい数値上に合わせ、範囲指示キーHKを入力する。
Move the cursor C using the cursor register to position it on the numerical value to be calculated, and input the range indication key HK.

m)  t)で指示された位置から更に右方向へカーソ
ルロムを移動場せ、次の数値1番こカーソル0ムを合わ
せて2回目の範囲指示キーHKを入力する。
m) Move the cursor ROM further to the right from the position indicated in t), align the cursor ROM with the next numerical value 1, and input the range indication key HK for the second time.

菖)次に、り、I)で指示された範囲内の数値を左から
ムI B l ”” ’として計算式を入力する。
(Iris) Next, input the calculation formula by entering the numerical values within the range specified in I) from the left as I B l ""'.

ff)次に、結果を表示したい位置番こカーソルを移動
し、計算実行キーEKを入力する。
ff) Next, move the cursor to the position where you want to display the result and input the calculation execution key EK.

上述の手順により1回目のカーソル位置と2回目のカー
ソル位置によって指示された範囲の数値が手順W)で入
力された計算式によって引用されて計算が行なわれ、手
順■)で指示されたカーソル位置にその結果が表示され
る。
Through the above procedure, the numerical values in the range indicated by the first and second cursor positions are quoted by the calculation formula input in step W) and calculation is performed, and the cursor position indicated in step ■) is calculated. The results will be displayed.

次に、第を図、第6図および第7図に基づいて計算が実
行される動作を更に具体的に説明する。
Next, the operation of performing the calculation will be explained in more detail based on FIGS. 1, 6 and 7.

第7図示のフローチャートの各ステップでは次のような
処理を行う。
In each step of the flowchart shown in FIG. 7, the following processing is performed.

処理l:キーの入力待ち。Process 1: Waiting for key input.

処理/、/ 、カーソルキーOKが入力されたか!1、
コ;範囲指示キーHKが入力されたか〒/、J : /
回目のカーソルキーOKの指定カ↑/、1:計算実行キ
ーEKが入力されたか!処理コニカーツルOAをカーソ
ルレジスタORに対応する位置に移動する。
Process /, /, cursor key OK was input! 1,
K; Has the range indication key HK been input? 〒/, J: /
Specified cursor key OK ↑/, 1: Has the calculation execution key EK been input? Move the processing cursor OA to the position corresponding to the cursor register OR.

処理3:カーソルOAの位置をカーソルセーブメモリO
8R/に記憶する。
Process 3: Save the cursor OA position to the cursor save memory O
Store in 8R/.

処理l:キーソルOAの位置をカーソルセーブメモリC
8Rコに記憶する。
Process 1: Save the position of the key OA to the cursor save memory C
Store in 8R.

処理j二計算式を入力する。Process j2 Input the calculation formula.

処理6:カーソルOAの位置をカーソルセーブメモリ0
8RJ i記憶する。
Process 6: Save cursor OA position to cursor save memory 0
8RJ i memorize.

処理7:編集処理等を実行する。Processing 7: Execute editing processing, etc.

処理lではキーの入力を待っている。カーソルキー01
が入力されると、処理−にょシカ−ツルレジスタORの
内容が変更され、カーソル(3AがカーソルレジスタO
Rに対応する位置に移動し、その位置がディスプレイO
R1上に表示される。
In process l, key input is waited. Cursor key 01
is input, the contents of the processing-nyoshika-tsuru register OR are changed, and the cursor (3A is the cursor register O) is changed.
Move to the position corresponding to R, and that position will be displayed on the display O.
Displayed on R1.

範囲指示キーUKを入力すると、処理3により1回目の
カーソルレジスタORの内容がカー”)kセーブメモリ
O8R/に記憶される。さらにカーソルロムを移動し、
4回目の範囲指示キーHKを入力すると処理参にょシカ
−ツルレジスタORの内容がカーソルセーブメモリ08
R21こ格納される。
When the range indication key UK is input, the contents of the first cursor register OR are stored in the cursor save memory O8R/ by process 3.The cursor ROM is further moved,
When the range instruction key HK is input for the fourth time, the contents of the processing register OR are saved to the cursor save memory 08.
R21 is stored.

第jl!!Hc示す例では、カーソルセーブメモリO8
R/の内容は10.カーソルセーブメモリ08Rコの内
容は/Jである。さらに処lijでは、計算式のλカを
行なう。この例化おいてlコ;ム1.ya=Bと仮の名
称をつけると、計算式メモり KBLIFにはム+Bが
格納され、このとき、その数を示す文字数メモリ’KI
Nの内容はJとなる。
No.jl! ! Hc In the example shown, cursor save memory O8
The contents of R/ are 10. The contents of cursor save memory 08R are /J. Further, in the process lij, the calculation formula λ is calculated. In this example, 1. If you assign a temporary name to ya=B, M+B is stored in the calculation formula memory KBLIF, and at this time, the character count memory 'KI' indicating that number is stored.
The content of N becomes J.

次にカーソルOAを、結果を出力した一位置に移動し、
計算実行キーKKを入力すると、処理tが行なわれ、カ
ーソルセーブメモリCBRJには移動したカーノル位置
が格納されるとともに、計算式メモ!J KBUF内に
記憶された計算式に従って計算が行なわれる。この例に
おいて、ム十B=lI4となシ、カーソルセーブメモリ
(SRjで示された位置に計算結果ダ6が出力される。
Next, move the cursor OA to the position where the result was output,
When the calculation execution key KK is input, processing t is performed, and the moved cursor position is stored in the cursor save memory CBRJ, and the calculation formula memo! Calculations are performed according to formulas stored in JKBUF. In this example, the calculation result 6 is output to the location indicated by SRj in the cursor save memory (SRj).

この時カーソルセーブメモリ08RJの値はコ9である
。なお、その他のキーが入力された場合は処H17Eよ
って編集処理等が行なわれる。
At this time, the value of the cursor save memory 08RJ is 9. Note that if any other key is input, editing processing or the like is performed by processing H17E.

上述した例においては、計算対象となる数値は横方向の
1行に入っているものとしたが、縦方向としても良い。
In the above example, the numerical values to be calculated are included in one row in the horizontal direction, but they may be arranged in the vertical direction.

また、マトリックス状に配置された数値が文章中に存在
するときは、対角線を指示し、入力された計算式に従っ
て、横方向の計算を同大により複数行同時に行なえるよ
うにしても良い。なお、上述の実施例では、文章中の引
用する数値の仮の名称として左から順にム〜2を使用し
ているが、/〜りの番号や適宜の符号等キーボード上の
中−より入力できるものであれば各種キー人力を用いる
ことができる。
Further, when numerical values arranged in a matrix are present in the text, diagonal lines may be specified so that calculations in the horizontal direction can be performed simultaneously on multiple lines using the same size according to the input calculation formula. In the above example, M~2 is used from the left as a temporary name for the quoted numerical value in the text, but you can also input the /~ri number or appropriate symbol from the middle - on the keyboard. Various key human resources can be used.

このよう1こ本発明によれば、予め特別なキー操作を行
って計算式を入力させておく必要がなく、必要に応じて
、式を入力して計算を行なうことができ、また、文章中
の数値を引用する際には、仮の名称を使用することによ
り、簡単に計算を行なうことができるので、文字処理装
置の使い勝手が向上する。
As described above, according to the present invention, there is no need to input a calculation formula by performing a special key operation in advance, and calculations can be performed by inputting a formula as necessary. When quoting numerical values, calculations can be easily performed by using temporary names, which improves the usability of the character processing device.

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

第1図は本発明文字処理装置のl実施例を示すブロック
図、 第2図はその計算式メモリの内容を示す線図、第31図
は同じくそのキーボードの配置例を示す配置図、 第q図は同じくそのバッファレジスタとQRT トの位
置関係を示す線図、 第3図は本発明文字処理装置における初期のOR?表示
例を示す線図、 嬉6図は同じく計算した結果を表示するCRT iii
面を示す線図、 第7図は本発明文字処理装置における動作手順の一例を
示すフローチャート図である。 CPU・・・マイクロプロセッサ、 ムB−・アドレスバス、  OB−・コントロールバス
、DB・・・データバス、ROM・−制御メ毫り、RA
M・・・ランダムアクセスメモリ、OSR/、QSRJ
、QSRJ・−カーソルセーブメモリ、KBUF・−計
算式メモリ、K、LKli−文字数メモリ、KB−キー
ボード、   CR−カーソルレジスタ、BUF ・・
・バッファレジスタ、 OG・キャラクタジェネレータ、 0RTO・・CRTコントローラ、 0RT−・ディスプレイ、PH7−プリンタ、OA・・
カーソル。 特許出願人 キャノン株式会社 第1図 第2図 第3図 第4図 EU/−
Fig. 1 is a block diagram showing an embodiment of the character processing device of the present invention, Fig. 2 is a line diagram showing the contents of the calculation formula memory, Fig. 31 is a layout diagram showing an example of the keyboard arrangement, and Fig. q. The figure also shows a diagram showing the positional relationship between the buffer register and the QRT register, and Figure 3 shows the initial OR? in the character processing device of the present invention. A line diagram showing a display example, Figure 6 is a CRT iii displaying the same calculated results.
FIG. 7 is a flowchart showing an example of the operating procedure in the character processing device of the present invention. CPU: microprocessor, MB: address bus, OB: control bus, DB: data bus, ROM: control message, RA
M...Random access memory, OSR/, QSRJ
, QSRJ - Cursor save memory, KBUF - Calculation formula memory, K, LKli - Character number memory, KB - Keyboard, CR - Cursor register, BUF...
・Buffer register, OG・Character generator, 0RTO・・CRT controller, 0RT−・Display, PH7−Printer, OA・・
cursor. Patent applicant: Canon Corporation Figure 1 Figure 2 Figure 3 Figure 4 EU/-

Claims (1)

【特許請求の範囲】[Claims] 文字、数字が出力される出力手段と、誼出力手段番こ出
力された数字列を記憶する記憶手段と、蚊記憶手段に記
憶された前記数字列の少くともひとつの数値を前記出力
手段の位置で指示して選択する選択手段と、線選択手段
によって選択された数値に仮の名称を付加する付加手段
と、前記仮の名称と演算子を組み合せた計算式を入力す
る入力手段と、咳入力手段により入力した計算式を実行
する実行手段とを有し、前記選択手段で指示した前記出
力手段の位置に前記入力手段で入力した前記計算式の結
集を出力するようにしたととを特徴とする文字処理装置
output means for outputting letters and numbers; storage means for storing the outputted number string; a selection means for making a selection by instructing with the line selection means; an addition means for adding a temporary name to the numerical value selected by the line selection means; an input means for inputting a calculation formula that combines the temporary name and an operator; and execution means for executing the calculation formulas input by the means, and outputting a collection of the calculation formulas input by the input means at a position of the output means specified by the selection means. character processing device.
JP56185165A 1981-11-20 1981-11-20 Character processor Granted JPS5887641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56185165A JPS5887641A (en) 1981-11-20 1981-11-20 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56185165A JPS5887641A (en) 1981-11-20 1981-11-20 Character processor

Publications (2)

Publication Number Publication Date
JPS5887641A true JPS5887641A (en) 1983-05-25
JPH0474751B2 JPH0474751B2 (en) 1992-11-27

Family

ID=16165961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56185165A Granted JPS5887641A (en) 1981-11-20 1981-11-20 Character processor

Country Status (1)

Country Link
JP (1) JPS5887641A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56155441A (en) * 1980-04-30 1981-12-01 Fujitsu Ltd Numerical operating device for display image plane

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56155441A (en) * 1980-04-30 1981-12-01 Fujitsu Ltd Numerical operating device for display image plane

Also Published As

Publication number Publication date
JPH0474751B2 (en) 1992-11-27

Similar Documents

Publication Publication Date Title
JPS5887641A (en) Character processor
JPS6359188B2 (en)
US5675827A (en) Information processing system, a processor, and an information processing method for the performing of an arithmetic operation of numeric information
JPS58132851A (en) Character processor
JPH0545988B2 (en)
JPH05257592A (en) Data input control method
JPH0445875B2 (en)
JPH023212B2 (en)
JPS5851330A (en) Character processor
JPH0410105B2 (en)
JPS61202272A (en) Character processor
JPH025175A (en) Character processor
JPH0517587B2 (en)
JPH0545987B2 (en)
JP2944666B2 (en) Character processor
JPH0532781B2 (en)
JPH031273A (en) Character processor having operation self-study function
JP3101310B2 (en) Character processing apparatus and method
JP3236039B2 (en) Character processing apparatus and method
JP2506088B2 (en) Data processing device
JPS5868141A (en) Character processor
JPH0236018B2 (en)
JPS5876930A (en) Character input method
JPH0467210B2 (en)
JPS6083122A (en) Character processor