JPS6367671A - document processing device - Google Patents

document processing device

Info

Publication number
JPS6367671A
JPS6367671A JP61212442A JP21244286A JPS6367671A JP S6367671 A JPS6367671 A JP S6367671A JP 61212442 A JP61212442 A JP 61212442A JP 21244286 A JP21244286 A JP 21244286A JP S6367671 A JPS6367671 A JP S6367671A
Authority
JP
Japan
Prior art keywords
processing
document
range
calculation
determining
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
JP61212442A
Other languages
Japanese (ja)
Other versions
JP2670441B2 (en
Inventor
Tatsuo Ito
達夫 伊藤
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 JP61212442A priority Critical patent/JP2670441B2/en
Publication of JPS6367671A publication Critical patent/JPS6367671A/en
Application granted granted Critical
Publication of JP2670441B2 publication Critical patent/JP2670441B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Abstract] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [a業上の利用分野] 本発明は文書処理装置、特に文書記憶手段上の数値情報
、文字情報に対し、論理、計算等の処理を実行する文書
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application in Business A] The present invention relates to a document processing device, and particularly to a document processing device that performs logical, calculation, etc. processing on numerical information and character information on a document storage means.

[従来の技術] 従来、この種の論理、計算機能を備えた文書処理装置に
おいては、罫線等により囲まれた表中の数値データに対
し、範囲キーを押下するなどして計算処理における対象
範囲の指定を行ない、カーソルの示した位置に計算結果
の出力を行なっていた。
[Prior Art] Conventionally, in document processing devices equipped with this type of logic and calculation functions, the target range for calculation processing is determined by pressing a range key on numerical data in a table surrounded by ruled lines, etc. was specified, and the calculation result was output at the position indicated by the cursor.

[発明が解決しようとしている問題点]従って、オペレ
ータがこの種の計算処理を行なうには、計算処理の実行
を指示する以前に、処理対象の範囲指定と、カーソルキ
ーのB動による計算結果の出力位置指定という煩雑な操
作を行なう必要性の生じる欠点があった。
[Problem to be Solved by the Invention] Therefore, in order for an operator to perform this type of calculation processing, the operator must specify the range to be processed and display the calculation result by moving the cursor key B before instructing execution of the calculation processing. There is a drawback that it is necessary to perform a complicated operation of specifying the output position.

[問題点を解決するための手段] 本発明゛は、表中の数値データに対し、計算処理の実行
を指示する時点のカーソル位置における、右・下に延び
る罫線等の接続関係から処理対象となる範囲の決定を行
ない、行単位およびブロックの欄(カーソル行の次のブ
ロックによって決定される)単位ごとに、論理、計算処
理を進めていくものであり、処理範囲内の最後の前の行
および処理範囲内の最も右のブロックを計算結果の出力
領域とすることにより、上記の問題点における範囲指定
なしで計算処理の実行が可能となり、欠点となっていた
煩雑な操作を取り除くものである。
[Means for Solving the Problems] The present invention is designed to identify numerical data in a table as a processing target based on the connection relationship of ruled lines extending to the right and bottom at the cursor position at the time of instructing execution of calculation processing. It determines the range that will be processed, and proceeds with logic and calculation processing row by row and block column (determined by the block next to the cursor row). By setting the rightmost block within the processing range as the output area for the calculation results, calculation processing can be executed without specifying the range in the above problem, and the complicated operations that were the drawback are eliminated. .

[実施例コ 以下、図面を参照して本発明の詳細な説明する。 第1
図は、本発明文書処理装置の全体構成を示す。   こ
こで11は、キーボードであり、コマンド開始キー、計
算処理の実行を指示するコマンド、およびその他文字処
理に必要な処理を指示するキーを有する。
[Embodiment] The present invention will be described in detail below with reference to the drawings. 1st
The figure shows the overall configuration of the document processing device of the present invention. Here, 11 is a keyboard, which has a command start key, a command for instructing execution of calculation processing, and keys for instructing other processing necessary for character processing.

12は、例えばマイクロプロセッサ形態のCPUてあり
、ROM13に記憶された処理手順にしたがって文字処
理に必要な制御を行な)ている。 ROM13は、 第
3図〜第5図に示されるCPUI 2によって行なわれ
る、本発明の処理手順を記憶しているメモリである。
Reference numeral 12 denotes a CPU in the form of a microprocessor, for example, which performs control necessary for character processing according to processing procedures stored in a ROM 13. The ROM 13 is a memory that stores the processing procedures of the present invention performed by the CPU 2 shown in FIGS. 3 to 5.

RAM14は、書ぎ込み可能なメモリであり、文書メモ
リ14a1 カーソルレジスタ14b、先頭表示レジス
タ14C1パラメータレジスタ14C,範囲レジスタ1
4d、一単位レジスタ14e1計算結果レジスタ14f
および文字処理に必要なその他のメモリ領域14gを含
む。 文書メモリ14aは、文字コードによる文字情報
および格納される文字情報に関する情報が格納される。
The RAM 14 is a writable memory, including a document memory 14a1, a cursor register 14b, a leading display register 14C, a parameter register 14C, and a range register 1.
4d, one unit register 14e1 calculation result register 14f
and other memory areas 14g necessary for character processing. The document memory 14a stores character information based on character codes and information regarding the stored character information.

 カーソルレジスタ14bはカーソル位置を記憶する。The cursor register 14b stores the cursor position.

 表示先頭レジスタ14cは、文書メモリの表示される
行の第1桁の文字位置を記憶する。
The display head register 14c stores the character position of the first digit of the displayed line of the document memory.

15は表示器であり、たとえば20桁X3行の文書情報
とカーソルが表示される。
Reference numeral 15 denotes a display device, on which, for example, document information of 20 columns x 3 lines and a cursor are displayed.

16は、各部の制御に必要なアドレス信号、データ信号
、およびコントロール信号の転送を行なうパスラインで
ある。
Reference numeral 16 denotes a path line for transferring address signals, data signals, and control signals necessary for controlling each section.

上述の構成の実施例の作動を以下説明する。The operation of the embodiment configured as described above will be explained below.

本装置は、電源を投入するとまず第3図ステップS1へ
進み、イニシャライズする。 ステップS2では、CP
Uはキーボードからのキー人力待ちの状態を保つ。そこ
で何等かのキーが入力されれば、ステップS3へ進み、
CPUは人力されたキーの判別を行なう。 人力キー判
別の結果、人力されたキーがコマンド開始キーの場合に
はステップS4へ、その他文字IAMの必要なキーの場
合にはステップS6は進む。 ステップS4においては
人力されたコマンドの判別を行ない、計算コマンドの場
合にはステップS5へ進み計算処理を、その他文字処理
に必要なコマンドの場合に、はステップS6へ進み、文
字処理を行なう。 ステップS5の計算!A埋において
は、まずステップ85.1でコマンド人力時に与えられ
るパラメータのセットをパラメータレジスタに行なう。
When this device is powered on, it first proceeds to step S1 in FIG. 3 and initializes. In step S2, CP
U remains in the state of waiting for key input from the keyboard. If any key is input there, the process advances to step S3.
The CPU determines the manually entered key. As a result of the manual key determination, if the manually pressed key is a command start key, the process proceeds to step S4, and if it is another key that requires the characters IAM, the process proceeds to step S6. In step S4, it is determined whether the command has been entered manually. If it is a calculation command, the process proceeds to step S5 and calculation processing is performed. If the command is another command necessary for character processing, the process proceeds to step S6 to perform character processing. Calculation in step S5! In step A, first, in step 85.1, the parameters given during the manual command are set in the parameter register.

 与えられるパラメータとしては、計算結果に対する切
り上げ・切り下げ・四捨五入などの指示、またはカンマ
設定の桁数指示などがあげられる。与えられたパラメー
タが正しくない場合、ステップ35゜2においてエラー
と判別され、ステップ35.9のエラー処理へ進む。パ
ラメータがレジスタにセットされると、ステップ35.
3で処理対象範囲のセットが行なわれる。 ここでは、
カーソルを中心に右方向と下方向に延びている罫線等の
接続関係をチェックすることで、計算処理の対象範囲と
計算結果の出力領域が求められる。例えば、表中の数値
データに対し縦横合計を求める場合、第2図(a)にお
いてはカーソルを中心に右・下に延びる罫線の接続関係
から、点線で示した(A)が計算処理の対象範囲となり
、行および列のlXt、後の行および列、即ちが点線(
B)が計算結果の出力領域となる。 なお、点線(C)
で示した各部分が1つの欄となり、これらの欄の幅を基
準に以下計算処理が実行されていく。 同様に第2図(
b)においては、点線<A)が対象範囲となり点線(B
)が出力領域となる。 また第2図(C)においては、
右に延びる罫線の接続関係がないため、計算処理の実行
は行なわれず表示器でエラー表示される。 罫線等の接
続関係が正しくない場合には、エラーとしてステップ3
5.4から、ステップ35.9へ進む。処理対象範囲が
正しくもとまったものに対しては、ステップ85.5に
おいて計算処理での処理の判別を行なう。 横合計・縦
合計・縦横合計といった、表中の合計を求める計算処理
に対しては、ステップ55.6で合計処理を行ない、結
果レジスタに入れる。 平均など合計以外を求めるもの
に対しては、ステップ55.7へ進み、その他計算処理
を行ない、結果レジスタに入れる。 計算処理の結果、
エラーとなるものに対してはステップ35.8からステ
ップS5.9へ進みエラー処理を行なう。 計算処理が
正しく行なわれた場合、エラー処理を行なった場合、い
ずれの場合もステップ35.10において結果レジスタ
の内容は範囲レジスタの内容に基づいて、表示器へ表示
される。 ステップS5゜6においては、まずステップ
S5.6.1で1車位分のデータが文書メモリから一単
位レジスタにセットされる。 このとき領域内に計算不
能な文字データ(例えば、計算の場合、文字A、あ、く
、;、−等)は穆されない。  1単位分のデータとは
、たとえば横合計を求める場合、表中の対象範囲におけ
る同一行で横に並ぶ欄内の数値データであり、第6図の
Aに対応する。
The given parameters include instructions for rounding up, rounding down, rounding off, etc. for the calculation result, and instructions for the number of digits for comma settings. If the given parameters are incorrect, an error is determined in step 35.2, and the process proceeds to step 35.9 for error processing. Once the parameters are set in the registers, step 35.
In step 3, the range to be processed is set. here,
By checking the connections of ruled lines extending rightward and downward with the cursor as the center, the range of calculation processing and the output area of the calculation results can be determined. For example, when calculating the vertical and horizontal totals for numerical data in a table, in Figure 2 (a), the dotted line (A) is the target of calculation processing based on the connection of the ruled lines that extend to the right and bottom with the cursor in the center. The range is 1
B) is the output area of the calculation results. In addition, dotted line (C)
Each part shown in is one column, and the following calculation process is executed based on the width of these columns. Similarly, Figure 2 (
In b), the dotted line <A) is the target range and the dotted line (B
) becomes the output area. In addition, in Figure 2 (C),
Since there is no connection relationship between the ruled lines extending to the right, no calculation processing is performed and an error message is displayed on the display. If the connection relationships such as ruled lines are incorrect, proceed to step 3 as an error.
From 5.4, proceed to step 35.9. If the processing target range has been determined correctly, processing in calculation processing is determined in step 85.5. For calculation processing to obtain totals in a table, such as horizontal total, vertical total, and vertical and horizontal total, the total processing is performed in step 55.6, and the results are stored in the result register. For calculations other than the sum, such as an average, the process proceeds to step 55.7, where other calculation processing is performed and the results are stored in the result register. As a result of calculation processing,
If an error occurs, the process proceeds from step 35.8 to step S5.9 to perform error processing. In either case, in step 35.10, the contents of the result register are displayed on the display based on the contents of the range register, whether the calculation process is carried out correctly or if error handling is carried out. In step S5.6, data for one car is first set in one unit register from the document memory in step S5.6.1. At this time, character data that cannot be calculated within the area (for example, in the case of calculation, characters A, A, KU, ;, -, etc.) are not cleared. For example, when calculating the horizontal total, one unit of data is the numerical data in the columns arranged horizontally in the same row in the target range in the table, and corresponds to A in FIG.

また、縦合計の場合、先頭の欄の幅で対象範囲中の縦に
並んだ数値データであり、第6図のBに対応する。 デ
ータセット中、表中の数値データに不正文字列が含まれ
ていたり、数字の並びが正しくないなど、エラーが生じ
た場合処理を中止し、ステップS5.6.2により、ス
テップS5゜6.9でエラーフラクがセットされる。 
正しくデータがセットされたものに対しては、ステップ
S5.6.3においてセットされたデータをもとに加算
処理が実行される。 加算処理中オーバフローなどのエ
ラーが発生した場合、ステップS5.6.4でエラーと
してステップS5.6.9へ進む。 正しく加算処理が
終了した場合、ステップS5.6.5で四捨五入・カン
マのセットなど、計算結果に対する加工処理が行なわれ
る。この加工処理は、ステップ35.1でセットされた
パラメータの値にもとづき行なわわる。 加工された計
算結果は、記憶された後ステップ556゜6で計算結果
の出力領域に出力される。  この出力領域は、ステッ
プ35.3において罫線の接続関係から求められたもの
であり、横合計の場合処理範囲内の最も右のブロック、
縦合計の場合IA埋範囲内の前の行がそれにあたる。な
お、ステップS5.6.7において、すべての単位に対
して加算処理か終了しノたかどうかのチェックを行ない
、終了の場合にはそのまま合計処理を終了する。
In addition, in the case of a vertical total, the numerical data is vertically arranged in the target range with the width of the first column, and corresponds to B in FIG. If an error occurs during data setting, such as when numerical data in a table contains an invalid character string or the sequence of numbers is incorrect, the process is stopped and steps S5.6.2 and S5.6. At 9, the error flag is set.
For those whose data has been set correctly, addition processing is performed based on the data set in step S5.6.3. If an error such as an overflow occurs during the addition process, an error is determined in step S5.6.4 and the process proceeds to step S5.6.9. If the addition process is completed correctly, processing is performed on the calculation result, such as rounding off and setting commas, in step S5.6.5. This processing is performed based on the parameter values set in step 35.1. The processed calculation results are stored and then output to the calculation result output area in step 556.6. This output area is obtained from the connection relationship of the ruled lines in step 35.3, and in the case of horizontal summation, the rightmost block within the processing range,
In the case of vertical total, it is the previous row within the IA filling range. In step S5.6.7, a check is made to see if the addition process has been completed for all units, and if it has been completed, the summation process is immediately ended.

終了していない場合には、次の単位ので一夕に関してス
テップS5.6.1から同様の処理を続行する。
If not, the same process continues from step S5.6.1 for the next unit.

[他の実施例] 本発明における処理対象を判別する手段は、計算処理だ
けでなくソート・クラス・セレクトといったデ゛−タ処
理にも応用できる。 例えば、ソー1−の場合、同一ブ
ロック内のデータに対してカーソル行のデータを基準と
し、カーソル行以降のデータを対象とすることで、何等
範囲指定の必要なく処理を実行でき、第7図(a)(b
)において、カーソル位置から基準データ(A)(B)
が、処理対象範囲として点線(A’ )(B”)がそれ
ぞれ求められる。セレクト、クラスについても同様のこ
とがいえる。
[Other Embodiments] The means for determining a processing target in the present invention can be applied not only to calculation processing but also to data processing such as sorting, class selection, and so on. For example, in the case of Sow 1-, the data in the same block is based on the data in the cursor row, and by targeting the data after the cursor row, processing can be executed without the need to specify any range, as shown in Figure 7. (a) (b)
), reference data (A) (B) from the cursor position
However, the dotted lines (A') and (B'') are obtained as processing target ranges.The same can be said of select and class.

上述の例では、罫線の右および下方向で説明をしたが、
罫線の別の方向でも良い。
In the above example, we explained the direction to the right and bottom of the ruled line, but
A different direction of the ruled line is also fine.

[効果] 以上示した処理の流れにより、論理、計算処理の実行は
何ら範囲指定することなく、実行指示を行なえば済むこ
とになる。 上述したように本発明によると、論理、計
算処理の実行を指示する際オペレータは、表中の延びる
任意の罫線上にカーソルを合せるだけという簡単な操作
で、表中の求めたい論理、計算結果を得ることが可能と
なった
[Effect] According to the processing flow shown above, the execution of logic and calculation processing can be performed by issuing an execution instruction without specifying any range. As described above, according to the present invention, when instructing the execution of logic or calculation processing, the operator can simply place the cursor on any ruled line extending in the table, and the desired logic or calculation result in the table can be obtained. It became possible to obtain

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

第1図は、本発明の一実施例のブロック図第2図は、本
発明の一実施例の作動を説明する図 第3図〜第5図は、処理制御手順を示すフローチャート 第6図は1、第2図における説明を補足する図第7図は
、他の実施例における具体例を示す図14・・・RAM 12・・・CPU 躬5回
FIG. 1 is a block diagram of an embodiment of the present invention. FIG. 2 is a diagram explaining the operation of an embodiment of the present invention. FIGS. 3 to 5 are a flowchart showing processing control procedures. FIG. 1. A diagram supplementing the explanation in FIG. 2. FIG. 7 is a diagram showing a specific example in another embodiment.

Claims (1)

【特許請求の範囲】 1)文書情報を格納する為の文書記憶手段と、前記文書
記憶手段上の前記文書情報に対し、処理を指示する、処
理指示手段と、 前記処理指示手段によりカーソルを基準に2方向に延び
る罫線の状態から、処理の対象となる範囲の判別を行な
う処理範囲を判別する判別手段と、 該判別手段により得られた対象範囲内の文書情報に対し
処理の実行を行なう実行手段とを有する文書処理装置。 2)前記処理指示手段によりカーソルを基準に水平垂直
に延びる罫線の状態から処理結果の出力位置の判別を行
なう処理範囲を判別する判別手段と、前記判別された文
書記憶手段上の処理結果出力位置に加工された処理結果
を格納する処理結果格納手段と、 その結果を表示するための表示手段とを、備えたことを
特徴とする特許請求の範囲第1項の文書処理装置。
[Scope of Claims] 1) a document storage means for storing document information; a processing instruction means for instructing processing of the document information on the document storage means; and a cursor referenced by the processing instruction means. a determining means for determining a processing range for determining a range to be processed from the state of ruled lines extending in two directions; and an execution unit for performing processing on document information within the target range obtained by the determining means. A document processing device having means. 2) Discrimination means for determining a processing range for determining the output position of the processing result from the state of ruled lines extending horizontally and vertically with the cursor as a reference by the processing instruction means, and the determined output position of the processing result on the document storage means. The document processing device according to claim 1, further comprising processing result storage means for storing processed processing results, and display means for displaying the results.
JP61212442A 1986-09-09 1986-09-09 Document processing device Expired - Fee Related JP2670441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61212442A JP2670441B2 (en) 1986-09-09 1986-09-09 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61212442A JP2670441B2 (en) 1986-09-09 1986-09-09 Document processing device

Publications (2)

Publication Number Publication Date
JPS6367671A true JPS6367671A (en) 1988-03-26
JP2670441B2 JP2670441B2 (en) 1997-10-29

Family

ID=16622678

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61212442A Expired - Fee Related JP2670441B2 (en) 1986-09-09 1986-09-09 Document processing device

Country Status (1)

Country Link
JP (1) JP2670441B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03231356A (en) * 1990-02-07 1991-10-15 Sanyo Electric Co Ltd Document processor
JPH03231357A (en) * 1990-02-07 1991-10-15 Sanyo Electric Co Ltd Document preparation device
JPH03231358A (en) * 1990-02-07 1991-10-15 Sanyo Electric Co Ltd Document generating device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58192144A (en) * 1982-05-05 1983-11-09 Sanyo Electric Co Ltd Word processor
JPS61202272A (en) * 1985-03-06 1986-09-08 Canon Inc Character processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58192144A (en) * 1982-05-05 1983-11-09 Sanyo Electric Co Ltd Word processor
JPS61202272A (en) * 1985-03-06 1986-09-08 Canon Inc Character processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03231356A (en) * 1990-02-07 1991-10-15 Sanyo Electric Co Ltd Document processor
JPH03231357A (en) * 1990-02-07 1991-10-15 Sanyo Electric Co Ltd Document preparation device
JPH03231358A (en) * 1990-02-07 1991-10-15 Sanyo Electric Co Ltd Document generating device

Also Published As

Publication number Publication date
JP2670441B2 (en) 1997-10-29

Similar Documents

Publication Publication Date Title
JPH087654B2 (en) Method to specify to user the field to input data
JPS631615B2 (en)
US7188338B2 (en) Apparatus and method for debugging software
JPH0429106B2 (en)
JP2670441B2 (en) Document processing device
JPS5856024A (en) Column segment centering system
JPS62180390A (en) document processing device
JP2560344Y2 (en) Small electronic calculator
JP2554906B2 (en) Right-justified edit input control method
JP2984272B2 (en) Character processing method and apparatus
JPH0251719A (en) Input device
JPS60168263A (en) Document processing device
JPS61110260A (en) Character processor
JPH03161869A (en) Graphic processor
JPS62229362A (en) character processing device
JP2638195B2 (en) Input method by dynamic control
JPS6148741B2 (en)
JPS6068375A (en) Screen control system for display unit
JP3000315B2 (en) Tablet input slip and slip input method
JPH0670737B2 (en) Character processor
JPH081546B2 (en) Display control method
JPH02257260A (en) Document editing processor
JPS59201157A (en) Graphic input device
JPH0227416A (en) Data setting device
JPS61131025A (en) Pattern inputting system of graphic display device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees