【発明の詳細な説明】[産業上の利用分野]この発明は、ワードプロセッサ等において文章メモリ上
に作成された表内の数値に基づいた表計算が実行可能な
表計算機能付き文章処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a text processing device with a spreadsheet function that can perform spreadsheet calculations based on numerical values in a table created on a text memory in a word processor or the like.
[発明の概要]この発明は文章メモリ内に罫線で囲まれた表を作成可能
なワードプロセッサ等において、文章メモリ内に記憶さ
れている表内の数値(変数)を予め記憶されている所定
の計算式に基づいて計算することにより、縦横集計等の
表計算を文章メモリ内に作成された表に基づいて実行す
ることができるようにしたものである。[Summary of the Invention] This invention is a word processor or the like that can create a table surrounded by ruled lines in a text memory. By calculating based on formulas, it is possible to perform spreadsheet calculations such as vertical and horizontal totals based on the table created in the text memory.
[従来の技術]従来、ワードプロセッサにおいては、任意の大きざの表
を文章内に作成することができる作表機箋を備えたもの
が実用化され、これにより売上管理表や成績表あるいは
、見積表等を容易に作成することができるようになって
いる。[Prior Art] Conventionally, word processors have been put into practical use that are equipped with tabulation pads that can create tables of any size within text, and this allows them to be used to create sales management tables, report cards, and estimates. Tables etc. can be easily created.
[発明が解決しようとする問題点]しかしながら、この種の作表機1@付きワードプロセッ
サにおいて、例えば、売上管理表を作成するような場合
に、商品別売上合計個数や合計金額あるいは総売上個数
や総売上金額を予め小型電子式計算a等で計算しなけれ
ばならず、その結果、作表を効率良く行うことができな
いという欠点があった。[Problems to be Solved by the Invention] However, in this type of word processor with tabulation machine 1@, when creating a sales management table, for example, it is difficult to calculate the total number of sales by product, the total amount, or the total number of sales. The total sales amount had to be calculated in advance using a small electronic calculator a, etc., and as a result, there was a drawback that tabulation could not be performed efficiently.
この発明は上述した事情をマチ景になされたもので、そ
の目的とするところは、文章メモリ上に作成された表内
のaV1配列(二次元数値配列)に基づいた縦計算や横
計算が実行可能な表計算afl付き文章処理装置を提供
することにある。This invention was made in conjunction with the above-mentioned circumstances, and its purpose is to perform vertical and horizontal calculations based on the aV1 array (two-dimensional numerical array) in the table created on the text memory. An object of the present invention is to provide a text processing device with a spreadsheet AFL that is possible.
[問題点を解決するための手段]第1図はこの発明の機渣ブロック図である0図中1は文
章メモリ、2はこの文章メモリ1内に作成された表を構
成する複数の大項目のうち、計算対象となる数値が記憶
されている大項目を指定する指定手段、3はこの指定手
段2で指定された大項目に対応する文章メモリl上の座
標位置データを含む計算式を記憶する記憶手段、4はこ
の記憶手段3に記憶されている計算式内の座標位置デー
タで指定された前記表項目内の数値データを文章メモリ
lから読み出して記憶手段3に記憶されている計算式の
手順に従って計算を行う演算手段、5はこの演算手段4
で算出された計算結果を文章メモリ1内の所定表項目内
に3込む書込手段であ[作 用]この発明の作用について説明すると、文章メモリlには
M線で囲まれた表を作成すると共に、この表内に計算対
象である数値を二次元配列しておく、この状態において
、指定手段2は表内の各大項目のうち計算対象となる数
値が記憶されている大項目を指定するが、この場合、例
えばCRT画面に表示されている表を見ながらカーソル
キーを操作して数値表示位置にカーソルをセットするこ
とによって行なわれる。そして、記憶手段3へ縦計算や
横計算に必要な計算式を入力する。この場合、計算式に
は必要とする各種の演算子の他、指定手段2によって指
定された大項目の座標位置データが含まれる。このよう
にして記憶手段3に所定の計算式を記憶させておくと、
演算手段4は、記憶手段3内の座標位置データで指定さ
れた表項目内の数値データを文章メモリlから読み出し
てこれを変数として所定の縦計算や横計算を実行する。[Means for Solving the Problems] Figure 1 is a block diagram of the mechanism of this invention. In Figure 0, 1 is a text memory, and 2 is a plurality of large items constituting a table created in this text memory 1. Among them, a specifying means for specifying a large item in which numerical values to be calculated are stored, and 3 stores a calculation formula including coordinate position data on the text memory l corresponding to the large item specified by the specifying means 2. A storage means 4 reads numerical data in the table item specified by the coordinate position data in the calculation formula stored in the storage means 3 from the text memory l, and stores the calculation formula stored in the storage means 3. 5 is the calculation means 4 which performs calculation according to the procedure of
[Function] To explain the function of this invention, a table surrounded by M lines is created in the text memory 1. At the same time, the numerical values to be calculated are arranged in a two-dimensional array in this table. In this state, the specifying means 2 specifies the large item in which the numerical value to be calculated is stored among the large items in the table. However, in this case, for example, the user operates the cursor keys while looking at a table displayed on the CRT screen to set the cursor at the numerical value display position. Then, calculation formulas necessary for vertical calculation and horizontal calculation are input into the storage means 3. In this case, the calculation formula includes coordinate position data of the major item specified by the specifying means 2 in addition to various necessary operators. If the predetermined calculation formula is stored in the storage means 3 in this way,
The calculation means 4 reads numerical data in the table item designated by the coordinate position data in the storage means 3 from the text memory 1, and executes predetermined vertical and horizontal calculations using this as a variable.
これによって得られた演算結果データは、文章メモリ1
内の所定項目内に書き込まれる。The calculation result data obtained by this is stored in the text memory 1.
is written in a predetermined item within.
[実施例]以下、この発明の一実施例を第2図〜第8図に示す一実
施例に基づいて具体的に説11する。なお、本実施例は
作表機鋤付き日本語ワードプロセッサに適用した例を示
している。[Embodiment] Hereinafter, an embodiment of the present invention will be explained in detail based on an embodiment shown in FIGS. 2 to 8. Note that this embodiment shows an example in which the present invention is applied to a Japanese word processor equipped with a tabulation machine.
・癒−虞:52図はこのワードプロセッサの基本的なブロック回
路図である0図中11は、このワードプロセッサの入力
部で、このキーボード上には、a字キーKA、文字キー
KB、実行キーKO、ファンクシ1ンキー(四則演算キ
ーを含む)KD、カーソルキーKEが設けられていると
共に、各種の表計算のうち表の横方向(桁方向)に対す
る表計算を指定する横計算キーKF、縦方向(行方向)
に対する表計算を指定する縦計算キーKG、表計算モー
ドを解除する解除キーKHが設けられている。しかして
入力部11から操作キーに対応して出力されるキー人力
信号は、入力制御部12に送られてキーコードに変換さ
れたのちCPU(中央演算処理回路)13に取り込まれ
、その入力処理プログラムを指定する。・Relaxation: Figure 52 is the basic block circuit diagram of this word processor. 11 in the figure is the input section of this word processor. On this keyboard, there are the a-key KA, character key KB, execution key KO. , function key KD (including four arithmetic operation keys), cursor key KE, horizontal calculation key KF for specifying spreadsheet calculation for the horizontal direction (digit direction) of the table among various spreadsheets, and vertical direction (row direction)
A vertical calculation key KG for specifying the spreadsheet calculation for a table, and a release key KH for canceling the spreadsheet mode are provided. The key human input signals outputted from the input unit 11 in response to the operation keys are sent to the input control unit 12 and converted into key codes, and then taken into the CPU (central processing circuit) 13 for input processing. Specify the program.
CPU13は予め記憶されているマイクロプロダラムに
したがって入力処理、文章作成処理、表示処理、印字処
理等を実行すると共に、本実施例にあっては表計算が実
行回部となっている。そして、CPU13には表計算時
における各種の計算モード(縦計算モード、横計算モー
ド)を指定するモードレジスタMが設けられている。ま
た、CPU13にはテキストメモリ(文章メモリ)14
が接続され、入力された文章データがコード化されて書
き込まれる。The CPU 13 executes input processing, text creation processing, display processing, printing processing, etc. according to a pre-stored microprogram, and in this embodiment, spreadsheet processing is the execution section. The CPU 13 is provided with a mode register M for specifying various calculation modes (vertical calculation mode, horizontal calculation mode) during spreadsheet calculation. The CPU 13 also has a text memory (text memory) 14.
is connected, and the input text data is encoded and written.
文章メモリ14はRAM(ランダムアクセスメモリ)に
よって構成され、CPU13の制御下でデータの書き込
み、読み出し動作が制御されると共に、テキストポイン
タ15の値にしたがってその書き込みあるいは読み出し
アドレスが指定される。The text memory 14 is constituted by a RAM (random access memory), and data writing and reading operations are controlled under the control of the CPU 13, and the writing or reading address is specified according to the value of the text pointer 15.
演算バッファ16は表計算実行時に計算手順メモリ20
から読み出された計算手順が一次記憶されるもので、こ
の内容は演算部17に送られてモードレジスタMの内容
に応じた表計算が実行される。この演算部17で算出さ
れた演算結果は、CPU13に取り込まれ、文章メモリ
14に書き込まれる。The calculation buffer 16 stores calculation procedure memory 20 during spreadsheet execution.
The calculation procedure read from is temporarily stored, and this content is sent to the arithmetic unit 17, where a spreadsheet calculation according to the content of the mode register M is executed. The calculation result calculated by the calculation unit 17 is taken into the CPU 13 and written into the text memory 14.
表示部18は例えばCR7表示装置によって構成され、
CPU13から出力された表示用データが表示制御部1
9で表示駆動信号に変換されることにより1画面分のデ
ータを表示する。The display unit 18 is composed of, for example, a CR7 display device,
The display data output from the CPU 13 is sent to the display control unit 1.
The data for one screen is displayed by converting it into a display drive signal at step 9.
計算手順メモリ20は表計算実行用の計算手順を記憶す
るもので、計算手順として定義できるのは、横計算、縦
計算である。また、出力位置メモリ21は1表計算の結
果を表のどの位置に書き込むかの出力位置を記憶するも
ので、この出力位置は文章メモリ14の二次元座標によ
って表わされる。なお、計算手順メモリ20に書さ込ま
れる計算手順や出力位置メモリ21に書き込まれる出力
位置は入力部11から任意に入力設定されたもので、こ
れらの内容は表計算実行時に、CPU13に取り込まれ
、演算バッファ16にセットされる。The calculation procedure memory 20 stores calculation procedures for executing spreadsheet calculations, and the calculation procedures that can be defined are horizontal calculation and vertical calculation. Further, the output position memory 21 stores the output position in which the result of one spreadsheet calculation is to be written in the table, and this output position is represented by the two-dimensional coordinates of the text memory 14. Note that the calculation procedure written in the calculation procedure memory 20 and the output position written in the output position memory 21 are arbitrarily input and set from the input section 11, and these contents are taken into the CPU 13 when the spreadsheet is executed. , are set in the calculation buffer 16.
座標メモリ22は文章メモリ14の各種の座標位置デー
タ(xo 、yo )、(a、b)、(A、B)を記憶
するもので、これらは表計算実行用の式を入力する場合
や表計算実行時に使用され、CPU13に取り込まれる
。The coordinate memory 22 stores various coordinate position data (xo, yo), (a, b), (A, B) of the text memory 14, and these are used when inputting formulas for executing spreadsheets and It is used when performing calculations and is taken into the CPU 13.
肱−庇先ず、通常のキー操作手順にしたがって文章メモリ14
内に罫線で囲まれた表を作成する0例えCf、第3図に
示すような表を文章メモリ14内に作成したものとする
。この場合、表を構成する各大項目は縦方向に3個、横
方向に3個設けられ、その下側3個、右側3個を除く各
大項目には、上に「10」、「40」下に「20」、「
30」の如く二次元配列された数値(計算対象)が書き
込まれている。なお、図中、(l、■)〜(3,3)は
1行1桁口から3行3桁口までの大項目に対応し、また
、文章メモリ14の座標位置は、図中左上端部を基点(
1,1)として定められている。First, press the text memory 14 according to the normal key operation procedure.
For example, assume that a table Cf as shown in FIG. 3 is created in the text memory 14. In this case, each major item that makes up the table is provided 3 vertically and 3 horizontally, and each major item except the 3 below and 3 on the right side has "10" and "40" above. ” under “20”, “
A two-dimensionally arranged numerical value (calculation target) such as "30" is written. In the diagram, (l, ■) to (3, 3) correspond to the large items from the 1st row, 1st digit to the 3rd row, 3rd digit, and the coordinates of the text memory 14 are at the upper left corner of the diagram. The base point is (
1,1).
次に、上述のようにして文章メモリ14内に作成された
表に基いた表計算を実行する場合について説明する。Next, a case will be described in which a spreadsheet calculation based on the table created in the text memory 14 as described above is executed.
第4図は横計算キーKCを操作したときに実行開始され
るフローチャートである0文章メモリ14内に作成した
表を表示部18に表示させた状態において、カーソルキ
ーKEを操作してカーソルを移動し表の基準位置(第3
図中左上端位置)にセットする。そして、実行キーKC
を操作すると、その座標位22(4,2)が座標メモリ
22に基準位置座標(xa 、 yo )として転送
記憶される(ステップS1、S2)。FIG. 4 is a flowchart that starts execution when the horizontal calculation key KC is operated.0 With the table created in the text memory 14 displayed on the display unit 18, the cursor is moved by operating the cursor key KE. Reference position of table (3rd
(top left position in the figure). And execute key KC
When the coordinate position 22 (4, 2) is operated, the coordinate position 22 (4, 2) is transferred and stored in the coordinate memory 22 as the reference position coordinate (xa, yo) (steps S1, S2).
このようにして表の基準座標を入力したら1次に表計算
を行う為の式を入力する。すると、ステップS3ではカ
ーソルキーKE、 1!¥字キーKA。After inputting the reference coordinates of the table in this way, the first step is to input the formula for performing the table calculation. Then, in step S3, press the cursor key KE, 1! ¥ key KA.
ファンクションキーKl)の操作に伴って入力された式
を計算手順メモリ、20に書さ込む大入力処理が実行さ
れる。A large input process is executed in which the input formula is written into the calculation procedure memory 20 in response to the operation of the function key Kl).
第5図はこの大入力処理の具体的内容を説明する為のフ
ローチャートである。先ず、ステップ53−1では大入
力の為に操作されるキーの入力待ち状態となる。いま、
文章メモリ14内の表項目に記入されている数値を変数
とする横計算式A+2XB=A:表項目(l、1)内の数値B:表項目(l、2)内の数値を入力するものとする。FIG. 5 is a flowchart for explaining the specific contents of this large input process. First, in step 53-1, the system waits for a key to be operated for a large input. now,
Horizontal calculation formula A+2XB= where the numerical value entered in the table item in the text memory 14 is used as a variable A: Numerical value in the table item (l, 1) B: Inputting the numerical value in the table item (l, 2) shall be.
先ず、数値変数Aの入力を指定する為に、力−ンルキー
KBを操作して変数Aとなる数値の一部1例えば「10
」の上位桁「1」にカーソルをセットする。いま、数値
「lO」の上位桁r14にカーソルを合わせると、カー
ソル座標位置が更新される(ステップ33−5)、即ち
、いま基準位置にセットされているカーソルを数値「I
O」の上位桁rlJにセットしたものとすると、座標メ
モリ22内の基準位こ座標(xo 、 yo )の値(
4,2)に基づいてカーソル座標(a、b)が更新され
、(6,3)となる、そして、ファンクションキーKD
を操作して演算子「+」を入力すると、ステップ53−
2では、前回入力されたデータは数字であるかの判断が
実行されるが、いま、最初の入力であるから、座標メモ
リ22内のカーソル座e(a、b)が読み出されて計算
手順メモリ20の先頭アドレス領域に書き込まれる(ス
テップS3−4)、そして、次のステップ53−3に進
み、入力されたファンクションコードが計算手順メモリ
20の次アドレス領域に占き込まれる。第7図はこの場
合の計算手順メモリ2゜の記憶状態を示し、上述のよう
に、カーソルを表内の数値「lO」の一部にセットした
のち、ファンクションキーKDを操作して演算子「+」
を入力すると、計算手順メモリ20の先頭アドレス領域
にはa値変数か直接入力されず、その座標位置(6,3
)が数値変数に代って書き込まれ、その後、次アドレス
領域には入力された「+」のファンクションコードが書
き込まれる。First, in order to specify the input of numerical variable A, operate the input key KB to input part 1 of the numerical value that will become variable A, for example "10
” Set the cursor to the upper digit “1”. Now, when the cursor is placed on the upper digit r14 of the numerical value "lO", the cursor coordinate position is updated (step 33-5), that is, the cursor currently set at the reference position is moved to the numerical value "I
If it is set in the upper digit rlJ of "O", the value of the reference position coordinates (xo, yo) in the coordinate memory 22
4, 2), the cursor coordinates (a, b) are updated to (6, 3), and the function key KD
When the operator "+" is input by operating , step 53-
In step 2, it is determined whether the data input last time is a number, but since this is the first input, the cursor position e (a, b) in the coordinate memory 22 is read out and the calculation procedure is started. The function code is written into the first address area of the memory 20 (step S3-4), and the process proceeds to the next step 53-3, where the input function code is written into the next address area of the calculation procedure memory 20. FIG. 7 shows the storage state of the calculation procedure memory 2° in this case. As mentioned above, after setting the cursor on a part of the numerical value "lO" in the table, operate the function key KD to select the operator " +”
When inputting , the a value variable is not directly input to the start address area of the calculation procedure memory 20, but its coordinate position (6, 3
) is written in place of the numerical variable, and then the input "+" function code is written in the next address area.
そして、定数「2」を入力する為に、数字キーKAを操
作すると、ステップ53−6に進み、入力された数字コ
ードが計算手順メモリ20の次アドレス領域に書き込ま
れる(第7図参照)。When the numerical key KA is operated to input the constant "2", the process proceeds to step 53-6, and the input numerical code is written into the next address area of the calculation procedure memory 20 (see FIG. 7).
続いてファンクションキーKDを操作して演算子「×」
を入力する。この場合、ステップ53−2では前回数字
が入力されたと判断されるので、入力されたファンクシ
ョンコードが計算手順メモリ20の次アドレス領域に書
き込まれる(第7図参照)、シたがって、ファンクショ
ンキーKDが操作された場合に、前回入力されたデータ
が数字であれば、上述のようなカーソル座fl(a、b
)の書き込みは行なわれず、入力されたファンクシ1ン
コード「×」がそのまま計算手順メモリ20に書き込ま
れる。゛次に、カーソルキーKEを操作して変数Bとなる数値「
40」の一部1例えば上位桁「4」にカーソルをセット
する。すると、カーソル座標(a、b)は、(10,3
)となる(ステップS3−5)、その後、イコールコー
ド「=」を入力すると、ステップ53−2からステップ
53−4に進み、カーソル座標(10,3)が計算手順
メモリ20に書き込まれたのち、入力されたイコールコ
ード「=」が計算手順メモリ20の次アドレスに書き込
まれる(第7図参照)。Next, operate the function key KD to select the operator “×”
Enter. In this case, since it is determined in step 53-2 that a number was input last time, the input function code is written into the next address area of the calculation procedure memory 20 (see FIG. 7). is operated, and if the last input data is a number, the cursor position fl(a, b
) is not written, and the input funxine code "x" is written into the calculation procedure memory 20 as it is.゛Next, operate the cursor key KE to set the value that will become variable B.
Set the cursor to part 1 of "40", for example, the upper digit "4". Then, the cursor coordinates (a, b) are (10, 3
) (step S3-5), then when the equal code "=" is input, the process proceeds from step 53-2 to step 53-4, where the cursor coordinates (10, 3) are written in the calculation procedure memory 20, and then , the input equal code "=" is written to the next address in the calculation procedure memory 20 (see FIG. 7).
このようにして所望の式を入力し終ったら、実行キーK
Cを操作する。すると、その式入力処理が終了し、第4
図フローチャートの次ステツプS4へ進行する。ここで
は、横計算が行なわれるこ、とによって得られた演算結
果データを表のどの位置(文章メモリ14のどの位置)
に記憶させるかを指定する為にカーソルキーKEを操作
してその指定位置へカーソルを移動させると、このとき
のカーソル座標が出力位置メモリ21へ転送されて記憶
される。また、このときのカーソル座標は、座標メモリ
22に演算結果の出力位置塵?’(A、B)として転送
される(ステップS5)、第8図はこのようにして入力
された座標データが出力位置メモリ21に記憶された状
態を示している。When you have finished entering the desired formula in this way, press the execute key K.
Operate C. Then, the expression input process is completed and the fourth
The process advances to the next step S4 in the flowchart. Here, the calculation result data obtained by performing horizontal calculations will be stored at which position in the table (at which position in the text memory 14).
When the cursor is moved to the specified position by operating the cursor key KE in order to specify whether to store it in the specified position, the cursor coordinates at this time are transferred to the output position memory 21 and stored therein. Also, the cursor coordinates at this time are the output position of the calculation result in the coordinate memory 22? '(A, B) (step S5). FIG. 8 shows a state in which the coordinate data thus input is stored in the output position memory 21.
しかして、次のステップS6では横計算を実行開始する
為に、先ず、計算手順メモリ20の先頭アドレス領域内
のデータが読み出される。ここで、第7図の例では、計
算手順メモリ20から座標データ(6,3)が読み出さ
れる。しかして、ステップS7に進み、計算手順メモリ
20かも読み出したデータに応じた演算処理が実行され
たのち、ステップS6に戻り、計算手順メモリ2oに設
定されている式の演算処理が全て終るまで上述の動作が
訝り返される。Therefore, in the next step S6, in order to start executing the horizontal calculation, data in the first address area of the calculation procedure memory 20 is first read out. Here, in the example of FIG. 7, coordinate data (6, 3) is read from the calculation procedure memory 20. The process then proceeds to step S7, where the calculation procedure memory 20 also performs arithmetic processing according to the read data, and then returns to step S6, where the above-mentioned steps are repeated until all the calculation processes for the formulas set in the calculation procedure memory 2o are completed. The behavior of the item is questionable.
第6図は、第4図で示した演算処理(ステップS7)の
具体的内容を示したフローチャートである。このフロー
に入ると、計算手順メモリ20から読み出したデータに
応じた演算処理に進むが、いま、第7図の例では計算手
順メモリ20から座標データ(6,3)が読み出される
ので、ステップ57−1に進み、この座標データを座標
メモリ22内の座標(a、b)としてセットする。そし
て、カーソルが座標(a、B)位置へ自動的に移動され
る(ステップS7−2)、この場合、X座標aは計算手
順メモリ20から読み出されたX座F(6)、Y座標B
は出力位n ノY座6(3)であるから座標(a、B)
は(6,3)となり、この場合においては、計算手順メ
モリ20かも読み出された座標と同様となる。その後、
カーソル座標(a、B)を含む位置にある表項目内のデ
ータが全て読み出されて演算バッファ16の先頭位置か
ら順次書き込まれる(ステップ37−3)、ここで、該
当表項目から全てのデータを読み出す場合には1次の如
くして行なわれる6例えば、第3図に示すように文章メ
モリ14の表内において、カーソル座標(6,3)を含
む位置にある表項目内の数値変数「10」を取り出す場
合、カーソル座標(6,3)から左方向の罫線コードが
サーチされるまでテキストポインタ15のX座標を「1
」ずつ減算し、そして、π線コードが検索されると、今
度はテキストポインタ15のXI!!6を「1」ずつ加
算してX座標を右方向へ移動させてゆさデータの先頭を
見つける。そして、データの先頭が捜し出されると、そ
の先頭から1桁ずつ右方向へ移動しながらデータを順次
堆り出してゆき1次の罫線コードが来るまで右方向への
移動を続行する。これによって1項目内に記録されてい
る全てのデータをその先頭から順番に取り出すことがで
きる。その結果、上述の式入力処理時において、表項目
内のデータ記憶領域、つまりその先頭から最後の位置ま
でを指定しなくとも、そのデータ内の一部を指定してお
くだけで1表計算処理にその表項目内のデータ全てを取
り出すことができる。このようにして文章メモリ14か
ら取り出された1表項目内の数値変数は、演算バッファ
16に転送される。FIG. 6 is a flowchart showing specific details of the arithmetic processing (step S7) shown in FIG. When entering this flow, the process proceeds to arithmetic processing according to the data read out from the calculation procedure memory 20, but in the example of FIG. 7, the coordinate data (6, 3) is read out from the calculation procedure memory 20, so step 57 -1, and set this coordinate data as coordinates (a, b) in the coordinate memory 22. Then, the cursor is automatically moved to the coordinate (a, B) position (step S7-2). In this case, the X coordinate a is the B
is the output position n and Y position 6 (3), so the coordinates (a, B)
becomes (6, 3), and in this case, the calculation procedure memory 20 also becomes the same as the read coordinates. after that,
All data in the table item at the position including the cursor coordinates (a, B) is read out and written sequentially from the top position of the calculation buffer 16 (step 37-3). Here, all data from the corresponding table item 6. For example, as shown in FIG. 10", the X coordinate of the text pointer 15 is set to "1" until the leftward ruled line code is searched from the cursor coordinates (6, 3).
”, and when the π-ray code is searched, this time the XI! of text pointer 15 is subtracted. ! Add 6 by 1 and move the X coordinate to the right to find the beginning of the yaw data. When the head of the data is found, the data is sequentially extracted from the head, moving to the right one digit at a time, and continues moving to the right until the first ruled line code is reached. This allows all data recorded in one item to be retrieved in order from the beginning. As a result, when processing the formula input described above, you can process one spreadsheet by simply specifying a part of the data, without having to specify the data storage area within the table item, that is, from the beginning to the end position. You can retrieve all the data in that table item. The numerical variables in one table item retrieved from the text memory 14 in this manner are transferred to the calculation buffer 16.
そして、第4図のステップS6に戻り、出力位置メモリ
21から次アドレス領域内のデータが読み出されるが、
第7図の例ではファンクシ1ンコード「+」が読み出さ
れるので、第6図のフローにおいて、次にステップ57
−4に進み、計算手順メモリ20から読み出したファン
クションコードが演算バッファ16に取り込まれる。ま
た、次に計算手順メモリ20かも数字コードが読み出さ
れるが、この場合も、ステー2プ57−4が実行され、
6字コードがそのまま演算バッファ16に取り込まれる
。そして、次に、計算手順メモリ20からファンクショ
ンコード「×」が読み出されて演算バッファ16に取り
込まれる。Then, the process returns to step S6 in FIG. 4, and the data in the next address area is read out from the output position memory 21.
In the example of FIG. 7, the function code "+" is read out, so in the flow of FIG. 6, step 57 is next.
-4, the function code read from the calculation procedure memory 20 is taken into the calculation buffer 16. Next, the numerical code is also read out from the calculation procedure memory 20, but in this case as well, step 2 57-4 is executed.
The 6-character code is taken into the calculation buffer 16 as is. Then, the function code "x" is read out from the calculation procedure memory 20 and taken into the calculation buffer 16.
そして、次のタイミングでは計算手順メモリ20から座
標データ(10,3)が読み出され、ステップS7−1
−57−3の実行に移る。その結果、上述と同様に1文
章メモリ14の該当大項口から全ての数値変数「40」
が読み出されて演算バッファ16に取り込まれる。Then, at the next timing, the coordinate data (10, 3) is read out from the calculation procedure memory 20, and step S7-1
-57-3 is executed. As a result, all the numerical variables "40" from the corresponding large entry in the one-sentence memory 14 are stored as described above.
is read out and taken into the calculation buffer 16.
最後に、計算手順メモリ20から「=」コードが読み出
されると、ステップ57−5に進み、演算バッファ16
の内容に基づいた演算が実行される。即ち、10+2X40−90の計算が行なわれる。そして、この演算結果は。Finally, when the "=" code is read out from the calculation procedure memory 20, the process proceeds to step 57-5, where the calculation buffer 16
An operation is performed based on the contents of . That is, a calculation of 10+2X40-90 is performed. And the result of this calculation is.
座標メモリ22から座標(A、B)を読み出して文章メ
モリ14の対応表項目内に書き込まれる。The coordinates (A, B) are read from the coordinate memory 22 and written into the correspondence table item of the text memory 14.
即ち、座標(A、B)は、いまの場合(13,3)で、
この座標を含む表項目(l、3)内に。That is, the coordinates (A, B) are (13, 3) in this case,
In the table entry (l, 3) that contains this coordinate.
その座標位置から順に演算結果「90」が書き込まれる
。The calculation result "90" is written in order from the coordinate position.
このように「=」コードの検出に伴って計算手順メモリ
20に予め設定した式に応じた横計算が実行され、その
答が文彦メモリ14の指定位tに書き込まれるが、その
後、計算手間メモリ20の次アドレス領域にはコードが
記憶されていないので、次に、第4図ステップS3に戻
り、次の行に対して横計算を行う為の式入力可老状態と
なる。In this way, upon detection of the "=" code, horizontal calculation is executed according to the formula preset in the calculation procedure memory 20, and the answer is written to the designated position t of the Fumihiko memory 14. Since no code is stored in the next address area of 20, the process returns to step S3 in FIG. 4 and enters a formula input state for performing horizontal calculation on the next line.
いま、第3図に示す2行目の横計算を行う場合、その計
算式が、数値変数を除き第1行目のそれと変わりがない
ときには、その演算結果を出力する表の出力位置だけを
指定すると、第2行目の横計算についてもi11行目式
(第7図)が自動的に選択され、その結果(答)が指定
出力位置に書き込まれるようになる。Now, when performing the horizontal calculation on the second line shown in Figure 3, if the calculation formula is the same as that on the first line except for the numerical variables, specify only the output position of the table where the calculation result will be output. Then, the equation on the i11th line (FIG. 7) is automatically selected for the horizontal calculation on the second line, and the result (answer) is written to the designated output position.
即ち、カーソルキーKEを操作して第2行目の横計算で
得られた計算結果を出力する為の表の出力位置へカーソ
ルを移動させる。いま1大項目(2,3)内の座標位置
(13,5)にカーソルをセットすると、それに応じて
第5図ステップ53−5ではカーソル座標(a、b)が
更新されて(13,5)となる、そして、実行キーKC
を操作すると、ステップS4に進み、カーソル座標(1
3,5)が出力位lメモリ21に転送記憶される(第8
図参照)、また、カーソル座標(13,5)は座標メモ
リ22に計算結果の出力位置座標(A、B)として転送
される(ステップS5)、そして、ステップ36.57
に進み、第2行目に対しての横計算が実行される。この
場合、先ず、計算手順メモリ20から座標データ(6,
3)が読み出される(ステップ57−1)、そして、次
のステップ57−2ではカーソル座P:l(a、B)の
位置に移動される。ここで、X座PA&は計算手順メモ
リ20から読み出されたX座F!(6)、Y!FBj*
今回指定サレタ出力す置のY座標(5)であるから大項
目(2,1)の座標位置(6,5)にカーソルが移動さ
れる。これによって、次のステップ57−3でこの座標
を含む項目データ「20」が読み出されて演算バッファ
16に転送される。以下、上述の第1行目の横計算と同
様に、計算手順メモリ20から演算子「+」、定数「2
」、演算子「×」が順次読み出されて演算バシファ16
に転送される。そして次に、計算手順メモリ20から座
標データ(10,3)が読み出されてこの値が(10,
5)に変換され(ステップ57−1、S7−2)、これ
によって指定された大項目(2,2)から項目データ(
30)が読み出されて演算バッファ16に転送される。That is, by operating the cursor key KE, the cursor is moved to the output position of the table for outputting the calculation results obtained in the horizontal calculation on the second line. If the cursor is now set at the coordinate position (13, 5) within the first major item (2, 3), the cursor coordinates (a, b) are updated accordingly at step 53-5 in Figure 5 to become (13, 5). ), and the execution key KC
When you operate , the process advances to step S4 and the cursor coordinates (1
3, 5) are transferred and stored in the output memory 21 (8th
), the cursor coordinates (13, 5) are transferred to the coordinate memory 22 as the output position coordinates (A, B) of the calculation result (step S5), and step 36.57
Then, the horizontal calculation for the second line is executed. In this case, first, coordinate data (6,
3) is read out (step 57-1), and in the next step 57-2, the cursor is moved to the position of P:l(a,B). Here, X-locus PA& is X-locus F! read from the calculation procedure memory 20. (6), Y! FBj*
Since this is the Y coordinate (5) of the specified output position, the cursor is moved to the coordinate position (6,5) of the large item (2,1). As a result, in the next step 57-3, item data "20" including this coordinate is read out and transferred to the calculation buffer 16. Hereinafter, similarly to the horizontal calculation in the first line described above, the operator "+" and the constant "2" are stored in the calculation procedure memory 20.
”, operator “×” are read out sequentially and the operation buffer 16 is read out.
will be forwarded to. Then, the coordinate data (10, 3) is read out from the calculation procedure memory 20 and this value is (10,
5) (steps 57-1, S7-2), and as a result, the item data (
30) is read out and transferred to the calculation buffer 16.
そして、「=」のコード検出に伴って演算バッファ16
にセットされた式に応じた計算処理が実行される(ステ
ップS7−5)、即ち、20+2X30=80の計算が行なわれ、この計算結果が座標(13,5)に
古き込まれる。Then, upon detection of the "=" code, the calculation buffer 16
A calculation process according to the formula set in is executed (step S7-5), that is, a calculation of 20+2X30=80 is performed, and the calculation result is stored in the coordinates (13, 5).
このように、第1行目の横計算式が大項目(1、l)+
2X表項目(1,2)→大項目(1,4)である場合に
おいて、2行目以降も同様の式を用いた横計算を行うも
のとすると、各行に対応してその答を出力させる表項目
内の座標位置を指定するだけで、第1行目で採用した式
をそのまま使用して、即ち、計算手順メモリ20の内容
を変更せずにそのまま使用して第2行目以降の横計算も
同様に行うことができる。したがって、大項目(2,4
)、(3,4)、(5,4)内の座標を指定するだけで
、大項目(2,1)+2X表項目(2,2)−大項目(2
,4)大項目(3,1)+2X表項目(3,2)呻表項目(3
,4)大項目(5,1)+2X表項目(5,2)→大項目(5
,4)の計算が実行される。In this way, the horizontal calculation formula in the first line is large item (1, l) +
In the case of 2X table item (1, 2) → large item (1, 4), if horizontal calculation is to be performed using the same formula from the second row onwards, output the answer corresponding to each row. By simply specifying the coordinate position in the table item, the formula adopted in the first line can be used as is, that is, the content of the calculation procedure memory 20 can be used as is without changing the horizontal position in the second and subsequent lines. Calculations can be performed similarly. Therefore, major items (2, 4
), (3,4), (5,4), large item (2,1) + 2X table item (2,2) - large item (2
, 4) Large item (3, 1) + 2X table item (3, 2) Complaint table item (3
, 4) Major item (5, 1) + 2X table item (5, 2) → Major item (5
, 4) are performed.
このように第1行目で採用した式をそのまま第2行目以
降にも連続的に使用することができるので、同−式の計
算が行方向に連続する横計算においては1式入力操作の
簡略化を図ることができると共に、メモリの節約ともな
り、有効であるまた、上述の例のように、第4行を飛ば
して第5行[1を指定することもでき、指定データの連
続性には依存しない。In this way, the formula adopted in the first line can be used continuously in the second and subsequent lines, so in horizontal calculations where the calculation of the same formula is continuous in the row direction, one formula input operation is required. It is effective because it simplifies the process and saves memory.Also, as in the example above, you can skip the 4th line and specify 1 in the 5th line, which improves the continuity of the specified data. does not depend on
しかして、解除キーKHが操作されると、ステップS3
でそのことが検出されてこの横計算フローから抜け、横
計算モードが解除される。Then, when the release key KH is operated, step S3
This is detected and exits from this horizontal calculation flow, and the horizontal calculation mode is released.
一方、縦計算も横計算と略同様に実行されるので、その
説明を省略するが、縦計算については横計算の場合に比
べて単に指定の方向が上下と左右との違いだけであり、
また、縦計算についても横計算と同様に四則演算子や定
数を任意に入力することにより所望の式に基づいた計算
を実行させることかでさる。On the other hand, vertical calculations are executed in almost the same way as horizontal calculations, so we will omit the explanation, but compared to horizontal calculations, the only difference is that the specified direction is up and down and left and right.
Similarly to horizontal calculations, vertical calculations can be performed by arbitrarily inputting the four arithmetic operators and constants to execute calculations based on desired formulas.
なお、上記実施例は、四則演算について説明したが、関
数計算等であってもよい。In the above embodiment, four arithmetic operations have been described, but functional calculations or the like may also be used.
[発明の効果]この発明は以上詳細に説明したように、文章メモリ内に
罫線で囲まれた表を作成回部なワードプロセッサ等にお
いて、文章メモリ内に記憶されている表内の数値配列を
予め記憶されている所定の計算式に基づいて計算するよ
うにしたから、縦横1計等の表計算を文章メモリ内に作
成された表に基づいて計算することができ、極めて便利
な実用性の高いものとなる。[Effects of the Invention] As described above in detail, the present invention is capable of creating a table surrounded by ruled lines in a text memory.In a word processor or the like, the numerical array in the table stored in the text memory is prepared in advance. Since calculations are made based on predetermined calculation formulas stored in memory, spreadsheet calculations such as vertical and horizontal totals can be calculated based on the table created in the text memory, making it extremely convenient and highly practical. Become something.
第1図はこの発明の機能ブロック図、第2図〜第8図は
この発明の一実施例を示し、第2図はこの発明が適用し
た日本語ワードプロセッサの基本的なブロック回路図、
第3図は第2図で示した文章メモリ14内に作成された
表を示した図、第4図は横計算を行う場合のフローチャ
ート、第5図は第4図で示した大入力処理の具体的内容
を説明する為のフローチャート、第6図は第4図で示し
た演算処理の具体的内容を説明する為のフローチャート
、第7図は計算手順メモリ20の記憶状態図、第8図は
出力位置メモリ21の記憶状態図である。11・・・・・・入力i、13・・・・・・CPU、1
4・・・・・・文なメモリ、16・・・・・・演算バッ
ファ、17・・・・・・演算部、20・・・・・・計算
手順メモリ、21・・・・・・出力位置メモリ。特許出願人 カシオ計′n機株式会社代理人 弁理士
町 1)俊 正 (・・′ −−づ第1図第7図第2図第 4 図壜又テ、7ブへ第6図FIG. 1 is a functional block diagram of this invention, FIGS. 2 to 8 show an embodiment of this invention, and FIG. 2 is a basic block circuit diagram of a Japanese word processor to which this invention is applied.
Fig. 3 is a diagram showing the table created in the text memory 14 shown in Fig. 2, Fig. 4 is a flowchart when performing horizontal calculation, and Fig. 5 is a diagram showing the large input processing shown in Fig. 4. 6 is a flowchart for explaining the specific contents of the calculation process shown in FIG. 4, FIG. 7 is a storage state diagram of the calculation procedure memory 20, and FIG. 3 is a storage state diagram of an output position memory 21. FIG. 11...Input i, 13...CPU, 1
4: Statement memory, 16: Calculation buffer, 17: Calculation section, 20: Calculation procedure memory, 21: Output position memory. Patent Applicant Casio Kei'nki Co., Ltd. Agent Patent Attorney Machi 1) Masa Toshi (...' --zu Fig. 1 Fig. 7 Fig. 2 Fig. 4 Fig. 7, Fig. 6
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61230148AJPS6385960A (en) | 1986-09-30 | 1986-09-30 | Text processing device with spreadsheet function |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61230148AJPS6385960A (en) | 1986-09-30 | 1986-09-30 | Text processing device with spreadsheet function |
| Publication Number | Publication Date |
|---|---|
| JPS6385960Atrue JPS6385960A (en) | 1988-04-16 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61230148APendingJPS6385960A (en) | 1986-09-30 | 1986-09-30 | Text processing device with spreadsheet function |
| Country | Link |
|---|---|
| JP (1) | JPS6385960A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7168035B1 (en) | 2003-06-11 | 2007-01-23 | Microsoft Corporation | Building a view on markup language data through a set of components |
| US7370066B1 (en) | 2003-03-24 | 2008-05-06 | Microsoft Corporation | System and method for offline editing of data files |
| US7430711B2 (en) | 2004-02-17 | 2008-09-30 | Microsoft Corporation | Systems and methods for editing XML documents |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7370066B1 (en) | 2003-03-24 | 2008-05-06 | Microsoft Corporation | System and method for offline editing of data files |
| US7168035B1 (en) | 2003-06-11 | 2007-01-23 | Microsoft Corporation | Building a view on markup language data through a set of components |
| US7430711B2 (en) | 2004-02-17 | 2008-09-30 | Microsoft Corporation | Systems and methods for editing XML documents |
| Publication | Publication Date | Title |
|---|---|---|
| JPS6385960A (en) | Text processing device with spreadsheet function | |
| JPS6385959A (en) | Text processing device with table calculation function | |
| JPS6239452B2 (en) | ||
| JPH01260507A (en) | Process display device | |
| JP3083665B2 (en) | Sentence information processing equipment | |
| JPS6385961A (en) | Text processor with table calculation function | |
| JP3029123B2 (en) | Character processing apparatus and method | |
| JP2595045B2 (en) | Touch panel input device | |
| JP3061068B2 (en) | Character input device | |
| JP2551024B2 (en) | Matrix operation device in graphic display device | |
| JP3082940B2 (en) | Character processing apparatus and method | |
| JPS6338723B2 (en) | ||
| JP2659907B2 (en) | Document processing device | |
| JP2645174B2 (en) | Computer with field display function | |
| JP2672940B2 (en) | Document processing device | |
| JPS6087390A (en) | Character processor | |
| JP3006988B2 (en) | Spreadsheet apparatus and data management method for spreadsheet apparatus | |
| JPS5828268Y2 (en) | Japanese character input device | |
| JPH02302812A (en) | Touch panel control system | |
| JPS5851331A (en) | Character processor | |
| JPH03135655A (en) | Editing system for contents of table block | |
| JPH02160287A (en) | Cursor display circuit | |
| JPS62121662U (en) | ||
| JPH0333923A (en) | Picture input/output device | |
| JPH03176716A (en) | Electronics |