JP3056850B2 - Document creation device with graph creation function - Google Patents

Document creation device with graph creation function

Info

Publication number
JP3056850B2
JP3056850B2 JP3248759A JP24875991A JP3056850B2 JP 3056850 B2 JP3056850 B2 JP 3056850B2 JP 3248759 A JP3248759 A JP 3248759A JP 24875991 A JP24875991 A JP 24875991A JP 3056850 B2 JP3056850 B2 JP 3056850B2
Authority
JP
Japan
Prior art keywords
data
column
blank
digit
graph
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
JP3248759A
Other languages
Japanese (ja)
Other versions
JPH0589114A (en
Inventor
裕之 篠原
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP3248759A priority Critical patent/JP3056850B2/en
Publication of JPH0589114A publication Critical patent/JPH0589114A/en
Application granted granted Critical
Publication of JP3056850B2 publication Critical patent/JP3056850B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、表形式の数値データを
グラフ化し、図形として管理するグラフ作成機能を持つ
文書作成装置に係り、特に表形式の数値データをグラフ
化するデータ列に分割するのに好適なデータ列分割境界
決定方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document creating apparatus having a graph creating function of graphing numerical data in a table format and managing the data as a graphic, and in particular, divides the numerical data in a table format into a data sequence to be graphed. The present invention relates to a data string division boundary determination method suitable for the above.

【0002】[0002]

【従来の技術】近年の文書作成装置(ワードプロセッ
サ)には、表形式の数値データをグラフ化し、図形とし
て管理するグラフ作成機能が搭載されているものが多
い。
2. Description of the Related Art In recent years, many document creation apparatuses (word processors) have a graph creation function of graphing numerical data in a table format and managing the data as graphics.

【0003】この種の文書作成装置でグラフを作成する
には、まず文書中に表形式の数値データを作成しておく
必要がある。この数値データが設定される表形式(表形
式データ)は、図7に示すように、罫線文字で構成され
る縦および横の罫線(文字罫線、作表罫線)からなる罫
線枠によって作成される。このような構造の表形式で
は、数値データをグラフ化するデータ列に分割する際の
分割境界が罫線で示されるため、分割が簡単に行える。
In order to create a graph with this type of document creation device, it is necessary to first create numerical data in a table format in a document. As shown in FIG. 7, the table format (table format data) in which the numerical data is set is created by a ruled line frame composed of vertical and horizontal ruled lines (character ruled lines, table ruled lines) composed of ruled line characters. . In the table format having such a structure, the division boundary when dividing the numerical data into data strings to be graphed is indicated by ruled lines, so that the division can be easily performed.

【0004】[0004]

【発明が解決しようとする課題】上記したように、従来
のグラフ作成機能を持つ文書作成装置では、グラフ化の
対象となり得る数値データが設定される表形式データ
は、数値データをグラフ化するデータ列に分割する際に
分割境界が簡単に識別可能なように、罫線を用いて構成
(作成)される必要があった。しかし、罫線を用いて表
を作成することは煩雑であり、しかも表構成行を余分
(データ行+1行余分)に必要とするという問題があっ
た(図7の例では、5行分のデータ行の他に、横罫線の
ために5+1行、即ち6行分余分に必要)。
As described above, in a conventional document creating apparatus having a graph creating function, the tabular data in which numerical data that can be graphed is set is data for converting the numerical data into a graph. When dividing into columns, it is necessary to configure (create) using ruled lines so that the dividing boundary can be easily identified. However, creating a table using ruled lines is complicated, and there is a problem that an extra number of table constituent rows (data rows + one extra row) is required (in the example of FIG. In addition to the rows, 5 + 1 rows are required for horizontal ruled lines, that is, an extra 6 rows are required).

【0005】本発明は上記事情に鑑みてなされたもので
その目的は、グラフ化の対象となり得る数値データが設
定される表形式データを罫線を用いずに構成しても、デ
ータ分割境界を簡単に識別して、データ列への分割が正
しく行える文書作成装置を提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to simplify a data division boundary even if tabular data in which numerical data which can be graphed is set is configured without using ruled lines. It is another object of the present invention to provide a document creating apparatus that can correctly divide data into data strings.

【0006】[0006]

【課題を解決するための手段】本発明は、同一桁が全て
空白の空白列と行境界とによりデータ欄が区分され、そ
のデータ欄にグラフ化の対象となる得る数値データが設
定された表形式データを格納するための格納手段と、こ
の格納手段に格納されている表形式データ内でグラフ化
の対象とする数値データ範囲を指定するための範囲指定
手段と、この範囲指定手段によって指定された範囲内の
表形式データを対象に、桁単位で空白列を検出する空白
列検出手段とを備え、範囲指定手段によって指定された
範囲に入る表形式データ内の数値データ群を、空白列検
出手段によって検出された空白列で挟まれる、空白列を
含まない領域毎のデータ列に分割するようにしたことを
特徴とするものである。
According to the present invention, there is provided a table in which a data column is divided by a blank column in which all the same digits are all blank and a row boundary, and numerical data to be graphed are set in the data column. Storage means for storing the format data, range specification means for specifying the numerical data range to be graphed in the tabular data stored in the storage means, and Blank column detecting means for detecting blank columns in units of digits for tabular data within the specified range, and for detecting blank column groups of numerical data in tabular data falling within the range specified by the range specifying means. It is characterized in that it is divided into data strings for each area not including the blank string, sandwiched between the blank strings detected by the means.

【0007】[0007]

【作用】上記の構成では、表形式(表形式データ)は、
同一桁が全て空白の空白列と行境界とによりデータ欄が
区分され、そのデータ欄にグラフ化の対象となる得る数
値データが設定される構造となっている。したがって、
範囲指定手段により、上記の構造の表形式内でグラフ化
の対象とする数値データ範囲が指定された場合には、そ
の指定範囲内の表形式を対象として、空白列検出手段に
より、桁単位で空白列を検出することにより、罫線を用
いていない表形式であっても、グラフ化するデータ列に
分割する際の分割境界(縦方向分割境界)を求めること
が可能となり、指定された範囲内の表形式の数値データ
群を、空白列検出手段によって検出された空白列で挟ま
れる、空白列を含まない領域毎のデータ列に分割するこ
とができる。
In the above configuration, the table format (table format data) is
The data column is divided by a blank column in which all the same digits are blank and a row boundary, and numerical data that can be graphed is set in the data column. Therefore,
If the range specifying means specifies a numerical data range to be graphed in the table format having the above structure, the blank string detecting means targets the table format within the specified range in units of digits. By detecting a blank column, it is possible to obtain a division boundary (vertical division boundary) at the time of dividing into a data sequence to be graphed, even in a table format not using ruled lines, and within a specified range. The numerical data group in the table format can be divided into data strings for each area that does not include a blank string, sandwiched between blank strings detected by the blank string detecting means.

【0008】[0008]

【実施例】図1は本発明の一実施例に係るグラフ作成機
能を搭載した文書作成装置の構成を示すブロック図であ
る。図1において、1はCPU、2,3は同CPU1に
よりアクセスされるメモリ(RAM,ROM)である。
FIG. 1 is a block diagram showing the configuration of a document creation apparatus having a graph creation function according to an embodiment of the present invention. In FIG. 1, 1 is a CPU, and 2 and 3 are memories (RAM, ROM) accessed by the CPU 1.

【0009】CPU1は、装置全体の制御を行うもの
で、RAM2、ROM3をアクセスして、入力指示に従
うプログラムの起動で、文書を作成するための周知のか
な漢字変換処理や文書編集処理、更には、この発明に直
接関係するグラフ作成処理を含む各種処理を実行するも
のである。
The CPU 1 controls the entire apparatus. The CPU 1 accesses the RAM 2 and the ROM 3 and starts a kana-kanji conversion process and a document editing process for creating a document by starting a program in accordance with an input instruction. Various processes including a graph creation process directly related to the present invention are executed.

【0010】RAM2には、文書データを記憶するため
の文書バッファ21、および文書バッファ21に記憶さ
れる文書データに付随する各種図形データ(通常の図
形、更にはグラフ図形など)を記憶するための図形バッ
ファ22が設けられる。RAM2には更に、表形式の数
値データをグラフ化するために入力されたグラフ種類、
数値データ範囲、グラフ作成領域等の各種グラフ化デー
タを一時記憶するためのワークバッファ24等が設けら
れる。
The RAM 2 stores a document buffer 21 for storing document data, and various graphic data (normal graphics, graph graphics, etc.) accompanying the document data stored in the document buffer 21. A graphic buffer 22 is provided. The RAM 2 further includes a graph type input for graphing numerical data in a table format,
A work buffer 24 for temporarily storing various graphed data such as a numerical data range and a graph creation area is provided.

【0011】ROM3には、文書作成装置の全ての動作
を規定する制御プログラムを記憶するためのプログラム
エリア31、かな漢字変換において参照される辞書デー
タを記憶するための辞書エリア32、およびフォントデ
―タが格納された文字パターンエリア33等が設けられ
ている。
The ROM 3 has a program area 31 for storing a control program for defining all operations of the document creation apparatus, a dictionary area 32 for storing dictionary data referred to in kana-kanji conversion, and font data. A stored character pattern area 33 and the like are provided.

【0012】プログラムエリア31には、かな漢字変換
プログラムを格納するのに用いられるかな漢字変換プロ
グラムエリア34、およびグラフモードにおいて表形式
の数値データを作成するグラフ表作成処理と、表形式の
数値データをグラフ化するグラフ描画処理とを行うため
のグラフ作成プログラムを格納するのに用いられるグラ
フ作成プログラムエリア35等が設けられている。グラ
フ作成プログラムエリア35に格納されているグラフ作
成プログラムには、表形式内でグラフ化の対象とする数
値データ範囲が指定された場合に、指定範囲内の表形式
の数値データ群を、グラフ化するデータ列に分割するた
めの分割処理プログラム36が含まれている。
The program area 31 includes a kana-kanji conversion program area 34 used to store a kana-kanji conversion program, a graph table creation process for creating tabular numeric data in the graph mode, and a graph format for converting the tabular numeric data into a graph. A graph creation program area 35 and the like used for storing a graph creation program for performing a graph drawing process to be converted are provided. In the graph creation program stored in the graph creation program area 35, when a numerical data range to be graphed in the table format is specified, the numerical data group in the table format within the specified range is converted into a graph. A division processing program 36 for dividing the data into data strings to be divided is included.

【0013】4はキーボード(KB)、5はキーボード
インタフェース(KB−IF)である。6は表示器、7
は表示コントローラ(表示−CNT)、8は表示用RA
Mである。9はフロッピ―ディスク装置(FDD)、1
1はFDDインタフェース(FDD−IF)である。1
3はプリンタ装置(PRT)、14はプリンタインタフ
ェース(PRT−IF)である。
4 is a keyboard (KB) and 5 is a keyboard interface (KB-IF). 6 is a display, 7
Is a display controller (display-CNT), and 8 is a display RA.
M. 9 is a floppy disk drive (FDD), 1
Reference numeral 1 denotes an FDD interface (FDD-IF). 1
Reference numeral 3 denotes a printer device (PRT), and 14 denotes a printer interface (PRT-IF).

【0014】KB(キーボード)4は、利用者のキー操
作を受けて、文書作成・編集や図形作成・編集等に必要
な入力情報をKB−IF(キーボードインタフェース)
5を介してCPU1へ出力するものである。このKB4
には、文字キー、各種機能項目の指定や、文書編集や図
形編集時の位置または領域(範囲)指定等を行うための
上下左右のカーソルキー等に加えて、各種設定の確定を
指示するための[選択/実行]キー、処理の中断や確定
前の入力の取消し等を指示するための[取消し]キー等
を含む各種のファンクションキーが設けられている。
A KB (keyboard) 4 receives a key operation of a user and sends input information necessary for document creation / editing, figure creation / editing, etc. to a KB-IF (keyboard interface).
5 to the CPU 1. This KB4
Are used to designate character keys, various function items, and up / down / left / right cursor keys for designating a position or area (range) when editing a document or a figure, and for instructing to confirm various settings. There are provided various function keys including a [select / execute] key, a [cancel] key for instructing the interruption of processing and cancellation of input before confirmation, and the like.

【0015】表示器6は、CRTや液晶ディスプレイ等
から構成されている。表示−CNT7は、CPU1の制
御の下に、表示用RAM8を用いて表示器6の表示制御
を行うものである。
The display 6 comprises a CRT, a liquid crystal display and the like. The display-CNT 7 controls the display of the display 6 using the display RAM 8 under the control of the CPU 1.

【0016】FDD9は、CPU1の制御の下に、FD
D−IF11を介して、各種処理プログラムや文書(文
書データ)、図形(図形データ)等を保存したり外字
(JIS第1水準文字および第2水準文字以外の文字や
記号・マーク等をいう)等を記録するのに用いられる。
The FDD 9 controls the FD under the control of the CPU 1.
Via the D-IF 11, various processing programs, documents (document data), graphics (graphic data), etc. can be stored and external characters (characters, symbols, marks, etc. other than JIS first-level characters and second-level characters). It is used to record etc.

【0017】PRT13は、PRT−IF14を介し
て、文書バッファ21上に新規に作成された文書、或い
は文書バッファ21上で編集された文書、更にはFDD
9から本体内に読込まれて文書バッファ21に格納され
た文書、および図形バッファ22に格納された図形等の
印字を行うものである。
The PRT 13 transmits a document newly created on the document buffer 21 or a document edited on the document buffer 21 via the PRT-IF 14, and furthermore, an FDD.
9 to print the document read into the main body and stored in the document buffer 21 and the graphic stored in the graphic buffer 22.

【0018】次に、上記構成による文書作成装置のグラ
フ描画処理の過程で実行されるデータ列分割処理につい
て、図2乃至図6を参照して説明する。なお、図2はデ
ータ;列分割処理を説明するためのフローチャート、図
3は罫線を用いない表形式データの一例を示す図、図4
は図3の表形式データに対する数値データ範囲の指定時
の画面例を示す図、図5は図3の表形式データを対象と
するデータ列分割のためのマークづけを示す図、図6は
図3の表形式データを対象とするデータ列分割結果を示
す図である。
Next, a description will be given, with reference to FIGS. 2 to 6, of a data string dividing process executed in the course of the graph drawing process of the document creating apparatus having the above configuration. FIG. 2 is a flowchart for explaining the data; column dividing process. FIG. 3 is a diagram showing an example of tabular data without using ruled lines.
FIG. 5 is a diagram showing an example of a screen when a numerical data range is specified for the tabular data of FIG. 3, FIG. 5 is a diagram showing marking for dividing a data string into the tabular data of FIG. 3, and FIG. FIG. 13 is a diagram illustrating a data string division result for the tabular data of No. 3;

【0019】まずグラフ描画とは、数値(数値データ)
が設定された表形式(表形式データ)から指定範囲の数
値データを拾い、グラフの種類等を設定することによ
り、文書の中にグラフ(グラフ図形)を作成する機能で
ある。したがって、グラフ描画を行うためには、数値が
設定された表形式が作成され、画面表示されている必要
がある。この表は、罫線(作表罫線、罫線文字)を使用
して作成されたものである必要はない。このグラフ描画
の対象となる表形式の数値データは、文書データ中に設
定され、RAM2内の文書バッファ21に通常の文字列
と共に記憶される。
First, graph drawing is a numerical value (numerical data).
Is a function for creating a graph (graph figure) in a document by picking up numerical data in a specified range from a table format (table format data) in which is set, and setting the type of graph and the like. Therefore, in order to draw a graph, it is necessary that a table format in which numerical values are set be created and displayed on a screen. The table does not need to be created using ruled lines (table ruled line, ruled line characters). The tabular numerical data to be graph-drawn is set in the document data and stored in the document buffer 21 in the RAM 2 together with a normal character string.

【0020】ここで、文書データ中に設定されている表
形式データが、図3に示すようになっているものとす
る。図3の例では、表形式データが罫線(作表罫線、罫
線文字)を使用して作成されていないことに注意された
い。即ち、図3の表形式データは、同一桁が全て空白
(ここではスペース)の空白列(スペースコード列)と
行境界とによりデータ欄が区分され、そのデータ欄にグ
ラフ化の対象となる得る数値データが設定される構造と
なっている。ここで、スペースは必ずしもキー入力する
必要がない。これは、市販されている日本語ワードプロ
セッサなどの文書作成装置では、図3の表形式の第1行
を例にとると、第5桁にカーソルを合せて(第5桁を文
字入力位置として)文字(ここでは数値「1」)を入力
すると、第1桁〜第4桁の各桁に自動的にスペースが入
り、次に第12桁にカーソルを合せて文字(ここでは数
値「2」)を入力すると、第6桁〜第11桁の各桁に自
動的にスペースが入ることから明らかである。したがっ
て、図3の構造の表形式は、罫線を用いた図7の構造の
表形式より、簡単に作成できる。
Here, it is assumed that the tabular data set in the document data is as shown in FIG. Note that in the example of FIG. 3, the tabular data is not created using ruled lines (table ruled lines, ruled line characters). That is, in the tabular data in FIG. 3, the data column is divided by a blank column (space code column) in which all the same digits are blank (space in this case) and a row boundary, and the data column can be a graphing target. It has a structure in which numerical data is set. Here, the space does not necessarily need to be keyed. In a commercially available document creation device such as a Japanese word processor, taking the first row of the table format in FIG. 3 as an example, the cursor is positioned at the fifth digit (the fifth digit is used as a character input position). When a character (here, a numerical value "1") is input, a space is automatically inserted in each of the first to fourth digits, and then the cursor is moved to the twelfth digit to enter a character (here, a numerical value "2"). Is input, a space is automatically inserted in each of the sixth to eleventh digits. Therefore, the table format of the structure of FIG. 3 can be created more easily than the table format of the structure of FIG. 7 using ruled lines.

【0021】さて、図3に示すような表形式データを対
象にグラフ化してグラフ図形を作成するには、KB4の
特定キーを操作してグラフ描画モードを設定し、グラフ
種類、グラフ化の対象とする数値データの範囲、グラフ
作成領域等の各種グラフ化データを例えば段階的に指定
入力する必要がある。本実施例では、グラフ化の対象と
する表形式データを含む文書が表示器6に表示されてい
る状態で、グラフ描画モードが設定されると、表示画面
はグラフ種類を選択するためのグラフ種類選択画面に切
替えられる。この状態でグラフ種類が選択されると、表
形式データを含む文書の表示画面に戻され、図4(a)
に示すように、表形式データ中のグラフ化したい数値デ
ータ範囲の始点を指定入力するための案内メッセージ
が、画面下方に表示される。
Now, in order to create a graph figure by converting the tabular data as shown in FIG. 3 into a graph, a specific key of KB4 is operated to set a graph drawing mode, and the type of graph and the object to be graphed are set. It is necessary to specify and input various graphed data such as a range of numerical data, a graph creation area, and the like stepwise, for example. In this embodiment, when the graph drawing mode is set in a state where the document including the tabular data to be graphed is displayed on the display unit 6, the display screen displays the graph type for selecting the graph type. The screen is switched to the selection screen. If the graph type is selected in this state, the display returns to the display screen of the document including the tabular data, and FIG.
As shown in (1), a guidance message for designating and inputting the starting point of the numerical data range to be graphed in the tabular data is displayed at the bottom of the screen.

【0022】ユーザは、数値データ範囲の始点の指定入
力案内メッセージが表示されると、カーソルキーを操作
して、図4(a)に示す表示画面(の表形式)上で、グ
ラフ化したい数値データの範囲の始点をカーソル指定
し、[選択/実行]キーを押す。図4(a)では、表形
式の左上端の行/桁位置(斜線部)が始点としてカーソ
ル指定されている。
When the input guidance message for designating the start point of the numerical data range is displayed, the user operates the cursor keys to display the numerical value to be graphed on the display screen shown in FIG. Specify the start point of the data range with the cursor and press the [Select / Execute] key. In FIG. 4A, the cursor is designated as the starting point at the line / column position (shaded portion) at the upper left corner of the table format.

【0023】CPU1は、数値データ範囲の始点の指定
入力案内メッセージの表示状態で[選択/実行]キーが
押されると、その際にカーソル指定されている始点の情
報をワークバッファ24に格納する。同時にCPU1
は、数値データ範囲の始点の指定入力案内メッセージを
消して、図4(b)に示すように、数値データ範囲の終
点の指定入力をユーザに要求するための案内メッセージ
を表示する。
When the [select / execute] key is pressed while the input guidance message for specifying the start point of the numerical data range is displayed, the CPU 1 stores information on the start point designated by the cursor in the work buffer 24 at that time. At the same time CPU1
Deletes the guidance message for specifying the start point of the numerical data range, and displays a guidance message for requesting the user to specify the end point of the numerical data range, as shown in FIG. 4B.

【0024】ユーザは、数値データ範囲の終点の指定入
力案内メッセージが表示されると、カーソルキーを操作
して、図4(b)に示す表示画面(の表形式)上で、グ
ラフ化したい数値データの範囲の終点をカーソル指定
し、[選択/実行]キーを押す。図4(b)では、表形
式の右下端の行/桁位置(斜線部)が終点としてカーソ
ル指定されている。
When the input guidance message for specifying the end point of the numerical data range is displayed, the user operates the cursor keys to display the numerical value to be graphed on the display screen shown in FIG. Specify the end point of the data range with the cursor and press the [Select / Execute] key. In FIG. 4B, the cursor is designated as the end point at the line / column position (shaded portion) at the lower right end of the table format.

【0025】CPU1は、数値データ範囲の終点の指定
入力案内メッセージの表示状態で[選択/実行]キーが
押されると、その際にカーソル指定されている終点の情
報をワークバッファ24に格納する。そしてCPU1
は、グラフ作成プログラムエリア35に格納されている
グラフ作成プログラム中の分割処理プログラム36に従
う分割処理を、以下に述べるように実行する。
When the [select / execute] key is pressed while the input guidance message for specifying the end point of the numerical data range is displayed, the CPU 1 stores information on the end point designated by the cursor in the work buffer 24 at that time. And CPU1
Executes the division processing according to the division processing program 36 in the graph generation program stored in the graph generation program area 35 as described below.

【0026】まずCPU1は、ワークバッファ24から
表形式の数値データ範囲の始点および終点の情報を得、
対象となる表形式上で分割境界を検出するためにチェッ
クしようとする行/桁(チェック行/桁)位置を始点に
セットする(ステップS1,S2)。
First, the CPU 1 obtains information of the starting point and the ending point of the numerical data range in the table format from the work buffer 24,
A row / column (checked row / column) position to be checked to detect a division boundary on the target table format is set as a start point (steps S1 and S2).

【0027】次にCPU1は、対象となる表形式データ
(ここでは、図3に示す表形式データ)上のチェック点
(の文字コード)がスペース(スペースコード)である
か否かを調べる(ステップS3)。ここでは、改行、改
頁などのコードも、スペースコードと同様に扱う。も
し、スペース(スペースコード)であれば、CPU1は
チェック点の行位置が終点の行位置に一致しているか否
かを調べ(ステップS5)、一致していなければ、チェ
ック点の行位置だけを1つ進めて(ステップS5)、ス
テップS3のスペースチェックに戻る。ここで、行位置
が1つ進められた新たなチェック点がスペースであれ
ば、前記したように再びステップS4に進み、チェック
点の行位置が終点の行位置に一致しているか否かが調べ
られる。
Next, the CPU 1 checks whether or not the check point (character code) on the target tabular data (here, tabular data shown in FIG. 3) is a space (space code) (step S1). S3). Here, codes such as line feeds and page breaks are handled in the same manner as space codes. If it is a space (space code), the CPU 1 checks whether the line position of the check point matches the line position of the end point (step S5). Advance one step (step S5), and return to the space check of step S3. Here, if the new check point at which the line position has been advanced by one is a space, the process again proceeds to step S4 as described above, and it is checked whether the line position of the check point matches the line position of the end point. Can be

【0028】したがって、表形式データ上の指定された
数値データ範囲内で、チェック点と同一桁(チェック
桁)が全てスペースとなっているならば、即ちスペース
列(スペースコード列)となっているならば、チェック
点の行位置が終点の行位置に進められるまで、以上のス
テップS5,S3,S4の処理が繰返されることにな
る。そして、ステップS4において、チェック点の行位
置が終点の行位置に一致していることが判別されると、
CPU1は、チェック桁が縦罫線に代わる縦方向分割境
界を表わすスペース列であるものとして、ワークバッフ
ァ24上で、チェック桁(現在の桁)にマーク(図5で
は、黒塗りの三角形)をつける(ステップS6)。
Therefore, if the same digit (check digit) as the check point is all spaces in the designated numerical data range on the tabular data, that is, it is a space column (space code column). Then, the processing of the above steps S5, S3 and S4 is repeated until the line position of the check point is advanced to the line position of the end point. Then, when it is determined in step S4 that the row position of the check point matches the row position of the end point,
The CPU 1 marks the check digit (current digit) on the work buffer 24 (a black triangle in FIG. 5) assuming that the check digit is a space column representing a vertical division boundary instead of a vertical ruled line. (Step S6).

【0029】CPU1は、ステップS6を実行するとチ
ェック桁が終点の桁に達しているか否かを調べ(ステッ
プS7)、達していなければ、チェック桁を“現在の桁
位置+1”の値に、チェック行を始点に、それぞれ更新
する(ステップS8)。そしてCPU1はステップS3
以降の処理に戻り、新たなチェック桁がスペース列であ
るか否かを調べる。もし、チェック桁のうちの1点でも
スペースでないことが検出されたなら、その時点でステ
ップS3からステップS7に飛び、チェック桁がスペー
ス列であることが検出されたなら、チェック桁にマーク
をつけた後(ステップS6)、ステップS7に進む。
When executing the step S6, the CPU 1 checks whether or not the check digit has reached the end digit (step S7). If not, the CPU 1 checks the check digit to the value of "current digit position + 1". Each is updated starting from the line (step S8). Then, the CPU 1 proceeds to step S3
Returning to the subsequent processing, it is checked whether the new check digit is a space column. If it is detected that even one of the check digits is not a space, the process jumps from step S3 to step S7 at that point, and if it is detected that the check digit is a space column, the check digit is marked. After that (step S6), the process proceeds to step S7.

【0030】やがて、チェック桁が終点の桁に達し、ス
テップS7の判定がYESとなると、CPU1は表形式
データ上の指定された数値データ範囲内でのスペース列
(縦方向分割境界)の検出処理は終了したものと判断
し、先につけておいたマークのうち隣合うマークは1つ
にまとめる(ステップS9)。即ちCPU1は、隣合う
スペース列全体を1つの縦方向分割境界としてまとめ
る。
Eventually, when the check digit reaches the end digit and the determination in step S7 is YES, the CPU 1 detects space columns (vertical division boundaries) within the designated numerical data range on the tabular data. Is determined to have been completed, and the adjacent marks among the previously added marks are combined into one (step S9). That is, the CPU 1 puts the entire adjacent space row as one vertical division boundary.

【0031】このようにして、罫線を用いずに作成され
た図3に示すような表形式データから、指定された数値
データ範囲内で同一桁が全てスペースとなる列を縦罫線
に代わるスペース列として全て抽出して図5に示すよう
にマークをつけ、隣合うスペース列が存在する場合に
は、それらを1つにまとめて縦方向分割境界とすること
により、図3に示すような表形式を、指定された数値デ
ータ範囲内で図6に示すように各データ欄(データ項
目)毎のデータ列に分割することができる。なお、表形
式を行毎に分割するには、行境界が横方向分割境界(仮
想横罫線)であることから、特別の処理を必要としな
い。
From the tabular data as shown in FIG. 3 created without using the ruled line, a column in which all the same digits are spaces in the designated numerical data range is replaced by a space column instead of the vertical ruled line. 5 are marked as shown in FIG. 5, and if there are adjacent space columns, they are combined into one to form a vertical division boundary, thereby forming a table format as shown in FIG. 3. Can be divided into data columns for each data column (data item) within the designated numerical data range as shown in FIG. In order to divide the table format for each row, no special processing is required since the row boundary is a horizontal division boundary (virtual horizontal ruled line).

【0032】以上の説明では、検出されたスペース列に
ついて理解しやすいように、該当桁にマークをつけるよ
うにしていたがこれに限るものではなく、その桁情報を
持つようにしてもよい。この場合、隣合うマークを1つ
にまとめる処理に対応して、連続するスペース列の開始
桁と終了桁の情報だけを残せばよい。また、スペース列
を検出すると、その桁位置を1つの縦方向分割境界の開
始桁並びに終了桁とし、次の桁で続けてスペース列を検
出したならば、その終了桁を新たに検出したスペース列
の桁に更新することにより、連続するスペース列の開始
桁と終了桁の情報を持つようにすることも可能である。
In the above description, a mark is applied to the corresponding digit so that the detected space column can be easily understood. However, the present invention is not limited to this, and the digit information may be provided. In this case, only the information of the starting digit and the ending digit of the continuous space column need be left in correspondence with the process of combining adjacent marks into one. When a space column is detected, the digit position is used as the start column and end column of one vertical division boundary, and if a space column is detected continuously at the next column, the end column is newly detected. It is also possible to have information on the starting digit and the ending digit of the continuous space column by updating to the digit of.

【0033】また、以上の説明では、ユーザ指定の数値
データ範囲の始点および終点の桁がスペース列の桁に一
致している場合を例としているが、これに限るものでは
ない。例えば始点として、対象とするデータ欄の全桁、
および同データ欄の前側に連なる全スペース桁のうちの
任意桁を指定し、終点として、対象とするデータ欄の全
桁、同データ欄の次のスペース桁、および同データ欄の
前側に連なる先頭スペース桁を除く全スペース桁のうち
の任意桁を指定するようにしても構わない。但し、この
ような数値データ範囲の指定を許す場合には、ユーザ指
定の数値データ範囲の始点,終点の丸め処理を行って、
図6のフローチャートで示される処理で用いる始点,終
点に変更する必要がある。この丸め処理は、図6と同様
のアルゴリズムを用いてスペース列を検出することによ
り行える。
In the above description, the case where the digits of the start point and the end point of the numerical data range specified by the user match the digits of the space column is described as an example, but the present invention is not limited to this. For example, as a starting point, all digits of the data column to be processed,
And, specify any digit of all the space digits connected to the front of the data column, and as the end point, all the digits of the target data column, the next space digit of the data column, and the head connected to the front of the data column An arbitrary digit of all the space digits except the space digit may be specified. However, if the specification of such a numerical data range is permitted, the start and end points of the numerical data range specified by the user are rounded,
It is necessary to change the start point and the end point used in the processing shown in the flowchart of FIG. This rounding process can be performed by detecting a space column using the same algorithm as in FIG.

【0034】例えば、ユーザ指定の始点の丸め処理につ
いては次のように行う。まず、始点の桁をチェック桁と
し、そのチェック桁がスペース列(行の範囲は、ユーザ
指定の始点の行位置から終点の行位置まで)であるか否
かを調べる。もしスペース列でなければ、チェック桁を
前の桁に戻し、同様のチェックを行う。この動作を、ス
ペース列を検出するまで続ける。そして、最初に検出し
たスペース列の桁を、丸め後の始点の桁とする。
For example, the rounding process of the starting point specified by the user is performed as follows. First, the starting digit is set as a check digit, and it is checked whether or not the check digit is a space column (the range of the line is from the user-specified starting point line position to the ending point line position). If it is not a space column, the check digit is returned to the previous digit, and the same check is performed. This operation is continued until a space column is detected. Then, the digit of the space column detected first is set as the digit of the starting point after rounding.

【0035】一方、ユーザ指定の終点の丸め処理につい
ては次のように行う。まず、終点の桁をチェック桁と
し、そのチェック桁がスペース列(行の範囲は、ユーザ
指定の始点の行位置から終点の行位置まで)であるか否
かを調べる。もし最初のチェック桁がスペース列でなけ
れば、チェック桁を次の桁に進め、同様のチェックを行
う。この動作を、スペース列を検出するまで続ける。そ
して、最初に検出したスペース列の桁を、丸め後の終点
の桁とする。一方、最初のチェック桁がスペース列であ
れば、チェック桁を前の桁に戻し、この新たなチェック
桁がスペース列でなければ、最初のチェック桁を丸め後
の終点の桁とする。もし、最初のチェック桁の前の桁も
スペース列であれば、最初のチェック桁より後の桁を順
にチェックし、スペース列でない桁から最初にスペース
列となる桁を検出し、その桁を丸め後の終点の桁とす
る。
On the other hand, rounding processing of the end point specified by the user is performed as follows. First, the digit at the end point is set as a check digit, and it is checked whether or not the check digit is a space column (the range of a row is from the row position of the start point specified by the user to the row position of the end point). If the first check digit is not a space column, advance the check digit to the next digit and perform a similar check. This operation is continued until a space column is detected. Then, the digit of the space column detected first is set as the digit of the end point after rounding. On the other hand, if the first check digit is a space column, the check digit is returned to the previous digit, and if this new check digit is not a space column, the first check digit is set as the end point digit after rounding. If the digit before the first check digit is also a space column, the digits after the first check digit are checked in order, the first non-space digit is detected as the space column, and that digit is rounded. The last digit of the end point.

【0036】また同様のアルゴリズムにより、数値デー
タ範囲の始点の指定入力時に、ユーザ指定の始点位置を
含むデータ欄全体を抽出して、例えば反転表示すること
も可能である。同様に、数値データ範囲の終点の指定入
力時に、ユーザ指定の終点位置を含むデータ欄全体を抽
出して、反転表示することも可能である。
Further, when the start point of the numerical data range is designated and input, the entire data field including the start point position specified by the user can be extracted by the same algorithm and, for example, can be highlighted. Similarly, at the time of specifying and inputting the end point of the numerical data range, it is also possible to extract the entire data column including the end point position specified by the user and display it in reverse video.

【0037】[0037]

【発明の効果】以上詳述したように本発明によれば、表
形式(表形式データ)を、同一桁が全て空白の空白列と
行境界とによりデータ欄が区分される構造とし、このよ
うな構造の表形式を対象としてグラフ化したい数値デー
タ範囲が指定された場合に、その指定範囲内の表形式か
ら、桁単位で空白列を検出する構成としたので、罫線を
用いていない表形式であっても、グラフ化するデータ列
に分割する際の分割境界(縦方向分割境界)を求めるこ
とができ、指定された範囲内の表形式の数値データ群
を、検出された空白列で挟まれる、空白列を含まない領
域毎のデータ列に分割することができる。
As described above in detail, according to the present invention, the table format (table format data) is structured such that the data column is divided by a blank column in which all the same digits are blank and a row boundary. When a numeric data range to be graphed for a table format with a simple structure is specified, a blank column is detected for each digit from the table format within the specified range. Even when, the division boundary (vertical division boundary) at the time of dividing into the data string to be graphed can be obtained, and the tabular numerical data group within the specified range is sandwiched by the detected blank columns. Can be divided into data strings for each area that does not include a blank string.

【0038】即ち本発明によれば、グラフ化の対象とな
り得る数値データが設定される表形式データを罫線を用
いずに構成しても、データ分割境界を簡単に識別して、
データ列への分割が正しく行える。
That is, according to the present invention, even if tabular data in which numerical data that can be graphed is set without using ruled lines, data division boundaries can be easily identified,
Division into data strings can be performed correctly.

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

【図1】本発明の一実施例に係るグラフ作成機能を搭載
した文書作成装置の構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a document creation device having a graph creation function according to an embodiment of the present invention.

【図2】同実施例におけるデータ列分割処理を説明する
ためのフローチャート。
FIG. 2 is a flowchart for explaining a data string division process in the embodiment.

【図3】罫線を用いない表形式データの一例を示す図。FIG. 3 is a diagram showing an example of tabular data that does not use ruled lines.

【図4】図3の表形式データに対する数値データ範囲の
指定時の画面例を示す図。
FIG. 4 is a view showing an example of a screen when a numerical data range is specified for the tabular data in FIG. 3;

【図5】図3の表形式データを対象とするデータ列分割
のためのマークづけを示す図。
FIG. 5 is a diagram showing marking for dividing a data string into tabular data shown in FIG. 3;

【図6】図3の表形式データを対象とするデータ列分割
結果を示す図。
FIG. 6 is a view showing a data string division result for the tabular data of FIG. 3;

【図7】罫線を用いた一般的な表形式データの一例を示
す図。
FIG. 7 is a diagram showing an example of general tabular data using ruled lines.

【符号の説明】[Explanation of symbols]

1…CPU、2…RAM、3…ROM、4…キーボード
(KB)、6…表示器、21…文書バッファ、22…図
形バッファ、24…ワークバッファ、30…プログラム
エリア、35…グラフ作成プログラムエリア、36…分
割処理プログラム。
1 CPU, 2 RAM, 3 ROM, 4 keyboard (KB), 6 display, 21 document buffer, 22 graphic buffer, 24 work buffer, 30 program area, 35 graph creation program area , 36... Division processing program.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/21 - 17/27 G06F 3/153 320 G06T 11/20 G06F 19/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int. Cl. 7 , DB name) G06F 17/21-17/27 G06F 3/153 320 G06T 11/20 G06F 19/00

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 表形式の数値データをグラフ化し、図形
として管理するグラフ作成機能を持つ文書作成装置にお
いて、 同一桁が全て空白の空白列と行境界とによりデータ欄が
区分され、そのデータ欄にグラフ化の対象となる得る数
値データが設定された表形式データを格納するための格
納手段と、 この格納手段に格納されている表形式データ内でグラフ
化の対象とする数値データ範囲を指定するための範囲指
定手段と、 この範囲指定手段によって指定された範囲内の前記表形
式データを対象に、桁単位で空白列を検出する空白列検
出手段とを具備し、 前記範囲指定手段によって指定された範囲に入る前記表
形式データ内の数値データ群を、前記空白列検出手段に
よって検出された空白列で挟まれる、空白列を含まない
領域毎のデータ列に分割するようにしたことを特徴とす
る文書作成装置。
1. A document creation apparatus having a graph creation function of graphing numerical data in a table format and managing the data as a graphic, wherein a data column is divided by a blank column in which all the same digits are blank and a row boundary, and the data column is provided. A storage means for storing tabular data in which numerical data to be graphed is set, and a numerical data range to be graphed in the tabular data stored in the storage means. And a blank column detecting unit for detecting a blank column in units of digits for the tabular data within the range specified by the range specifying unit. The numerical data group in the tabular data that falls within the specified range is divided into data strings for each area that does not include a blank string, sandwiched by blank strings detected by the blank string detection unit. Document creating apparatus characterized by the the to.
JP3248759A 1991-09-27 1991-09-27 Document creation device with graph creation function Expired - Lifetime JP3056850B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3248759A JP3056850B2 (en) 1991-09-27 1991-09-27 Document creation device with graph creation function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3248759A JP3056850B2 (en) 1991-09-27 1991-09-27 Document creation device with graph creation function

Publications (2)

Publication Number Publication Date
JPH0589114A JPH0589114A (en) 1993-04-09
JP3056850B2 true JP3056850B2 (en) 2000-06-26

Family

ID=17182958

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3248759A Expired - Lifetime JP3056850B2 (en) 1991-09-27 1991-09-27 Document creation device with graph creation function

Country Status (1)

Country Link
JP (1) JP3056850B2 (en)

Also Published As

Publication number Publication date
JPH0589114A (en) 1993-04-09

Similar Documents

Publication Publication Date Title
EP0051857A1 (en) Method for editing document
US4931987A (en) Word processor for locating beginning position of text element and displaying corresponding formatting data and formatting mark separately
JPS60189568A (en) Information processor
JP3056850B2 (en) Document creation device with graph creation function
JP3474961B2 (en) Document information processing device
KR100238814B1 (en) Data processing apparatus and method
JP3055492B2 (en) Data output device
JPH0776967B2 (en) Character processor
JP2682873B2 (en) Recognition device for tabular documents
JP2821002B2 (en) Character processing device and character processing method
JPH0731671B2 (en) Formula input editing method
JP3102979B2 (en) Document information processing device with ruled line conversion function
JP3404770B2 (en) Document processing device
JPS6411985B2 (en)
JP3061904B2 (en) Document creation device with graph creation function
JPH11212968A (en) Document processor and document processing method
JPH0589115A (en) Document preparing device with graph preparing function
JPH0512267A (en) Automatic paragraphing system
JPH06139243A (en) Word processor with character font correcting function
JPH0831092B2 (en) Document processing device
JPH04148471A (en) Format setting device
JPS63291089A (en) Character processor
JPH03113569A (en) Document editing device
JPS63276165A (en) Character processor
JPH0696066A (en) Document preparing device having area function and area position changing method