JPH0445875B2 - - Google Patents

Info

Publication number
JPH0445875B2
JPH0445875B2 JP56188366A JP18836681A JPH0445875B2 JP H0445875 B2 JPH0445875 B2 JP H0445875B2 JP 56188366 A JP56188366 A JP 56188366A JP 18836681 A JP18836681 A JP 18836681A JP H0445875 B2 JPH0445875 B2 JP H0445875B2
Authority
JP
Japan
Prior art keywords
graph
data
range
numerical
string
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
JP56188366A
Other languages
Japanese (ja)
Other versions
JPS5892026A (en
Inventor
Juichi Sakauchi
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 JP56188366A priority Critical patent/JPS5892026A/en
Publication of JPS5892026A publication Critical patent/JPS5892026A/en
Publication of JPH0445875B2 publication Critical patent/JPH0445875B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles

Description

【発明の詳細な説明】 本発明は、文章情報中の数字列データをグラフ
の形態で表示する文字処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character processing device that displays numerical string data in text information in the form of a graph.

従来から用いられている文字処理装置のうちに
は、数値データが装置に入力されると、これをグ
ラフ化して示すように構成されたものがある。か
かる文字処理装置にあつては、グラフ化すべきデ
ータを予め定めおかれた形式で入力しなければな
らず、またその入力の順序が固定されていた。そ
こで、このような問題点を除去し、文章情報中に
表示される数字列に対して任意の時期に、任意の
範囲を指定してグラフ化することが考えられる
が、その場合には、データの形式が自由であるた
め、データをグラフ表示するには数多くの情報を
パラメータとして入力させる必要があり、操作が
複雑になる。
BACKGROUND OF THE INVENTION Some conventional character processing devices are configured to display numerical data as a graph when it is input to the device. In such character processing devices, data to be graphed must be input in a predetermined format, and the input order is fixed. Therefore, it is possible to remove such problems and create a graph by specifying an arbitrary range at an arbitrary time for the number string displayed in text information, but in that case, the data Since the format is free, it is necessary to input a large amount of information as parameters in order to display the data in a graph, making the operation complicated.

本発明の目的は、上述の点に鑑みて、任意の時
期に入力した数字データの任意の範囲を指定して
グラフ化の対象として、かつ、パラメータとして
多くの情報の入力を必要とせずに、グラフを作成
可能な文字処理装置を提供することにある。
In view of the above-mentioned points, an object of the present invention is to specify an arbitrary range of numerical data input at an arbitrary time and graph it, without requiring input of much information as parameters. The object of the present invention is to provide a character processing device that can create graphs.

以下に図面に基づいて本発明を詳細に説明す
る。
The present invention will be explained in detail below based on the drawings.

第1図は本発明による文字処理装置の一実施例
を示すもので、ここでCPUはマイクロプロセツ
サであり、演算や論理判断を行い、バスAB、
CBおよびDBを制御する。ABはアドレスバスで
あり、制御対象を指示する信号を転送するCBは
コントロールバスであり、各種制御対象に制御信
号を供給する。また、DBは各種データの送り出
しおよび取り込みに用いるデータバスである、
ROMは制御手順等を記憶する制御メモリ、
RAMは各種データの一時記憶や、マイクロプロ
セツサCPUの演算、論理判断におけるワークメ
モリとしてのランダムアクセスメモリである。
FIG. 1 shows an embodiment of a character processing device according to the present invention, in which the CPU is a microprocessor, performs calculations and logical judgments, and processes buses AB,
Control CB and DB. AB is an address bus, and CB, which transfers signals indicating control targets, is a control bus that supplies control signals to various control targets. In addition, DB is a data bus used to send and import various data.
ROM is a control memory that stores control procedures, etc.
RAM is a random access memory that temporarily stores various data and serves as work memory for microprocessor CPU calculations and logical decisions.

KBは文章入力用のキーボードで、キーボード
KBから打鍵されたキー情報は、マイクロプロセ
ツサCPUにより読み取ることができる。ここで、
キーボードKBは第2図に示すように、文字入力
用キー群CHとフアンクシヨン入力用キー群FU
とから成る。文字入力用キー群CHは、例えば
JIS鍵盤から成るものであり、英数文字や仮名文
字等を入力することができる。また、フアンクシ
ヨン入力用キー群FUは範囲先頭キーRS、範囲末
尾キーRE、カーソルキーCK、グラフキーGKお
よびインバートキーINVで構成する。
KB is a keyboard for text input.
The key information pressed from the KB can be read by the microprocessor CPU. here,
As shown in Figure 2, the keyboard KB has a character input key group CH and a function input key group FU.
It consists of For example, the character input key group CH is
It consists of a JIS keyboard and can input alphanumeric characters, kana characters, etc. Further, the function input key group FU is composed of a range start key RS, a range end key RE, a cursor key CK, a graph key GK, and an invert key INV.

CRはカーソルレジスタであり、後述する表示
装置の表示面上に表示すべきカーソルの位置を書
き込む。カーソルレジスタCRは、2W(W=
word)から成り、第1Wには行数、第2Wには桁
数を表わすデータを記憶する。また、それぞれの
値はC(1,1),C(1,2)で表現するものと
する。なお、以下で行数とは上段より何行目であ
るかを示す数字をいい、桁数とは左端から何桁目
であるかを示す数字をいう。
CR is a cursor register, which writes the position of a cursor to be displayed on the display surface of a display device, which will be described later. The cursor register CR is 2W (W=
The first W stores data representing the number of lines, and the second W stores data representing the number of digits. Moreover, each value shall be expressed as C(1,1) and C(1,2). Note that in the following, the number of lines refers to a number indicating the number of lines from the top, and the number of digits refers to a number indicating the number of digits from the left end.

BUFはバツフアであり、キーボードKBから入
力されたデータを格納する。16×8Wの容量を有
し、8行16桁のデータをキヤラクタコードの形で
格納することができる。バツフアBUF内の内容
はB(L,C)で表現するものとし、ここでLは
1から8までの整数で行を表わし、Cは1から16
までの整数で列(または桁)を表わすものとす
る。第3図A,BおよびCはそれぞれバツフア
BUFに入力したデータの1例を示す。
BUF is a buffer and stores data input from the keyboard KB. It has a capacity of 16 x 8W and can store 8 rows and 16 digits of data in the form of character codes. The contents of buffer BUF shall be expressed as B(L,C), where L is an integer from 1 to 8 and represents a row, and C is an integer from 1 to 16.
A column (or digit) shall be represented by an integer up to . Figure 3 A, B and C are buffers, respectively.
An example of data input to BUF is shown below.

CGはキヤラクタジエネレータであり、本例に
使用するキヤラクタコードに対応するパターンを
すべて格納しており、例えば第4図Bで示すよう
にα、β、γ、……等に対応するパターンをも格
納している。
CG is a character generator that stores all patterns corresponding to the character code used in this example. For example, as shown in Figure 4B, patterns corresponding to α, β, γ, etc. It also stores.

CRTは表示装置であり、カーソルレジスタCR
内のデータに従つてカーソルを表示し、バツフア
BUF内のデータに従つて文字または記号を表示
する。CRTCはCRTコントローラであり、カー
ソルレジスタCRに格納されているカーソルデー
タに基づいて、表示装置CRTの表示面上にカー
ソルを表示する。また、CRTコントローラ
CRTCは、バツフアBUFに格納されたキヤラク
タコードデータを、キヤラクタジエネレータCG
を参照してパターンデータに変換し、表示装置
CRTに文字あるいは記号のパターンを表示する。
更に、表示装置CRTでは、例えば8行16桁の形
態でバツフアBUF内のデータに対応して表示が
なされる。
CRT is a display device and cursor register CR
Display the cursor according to the data in the
Display characters or symbols according to the data in the BUF. CRTC is a CRT controller that displays a cursor on the display surface of the display device CRT based on cursor data stored in the cursor register CR. Also, CRT controller
CRTC transfers the character code data stored in buffer BUF to character generator CG
Convert to pattern data with reference to display device
Display a pattern of characters or symbols on a CRT.
Further, on the display device CRT, a display is made, for example, in a format of 8 rows and 16 digits corresponding to the data in the buffer BUF.

DBUはデータバツフアであり、後述する範囲
レジスタRRによつて指定された範囲のデータを
そのままバツフアBUFから取り込む。その容量
はバツフアBUFと同じ16×8Wである。RCは行
列レジスタであり、2Wから成り、データバツフ
アDBUに取り込まれたデータにおいて、列に沿
つた方向(以下、列方向と称す)及び行に沿つた
方向(以下、行方向と称す)に並ぶそれぞれのデ
ータ数を格納し、その内容をそれぞれRC(1,
1)およびRC(1,2)で表わす。
The DBU is a data buffer, and data in a range specified by a range register RR, which will be described later, is taken in as is from the buffer BUF. Its capacity is 16 x 8W, the same as Batsuhua BUF. RC is a matrix register, which consists of 2W, and in the data taken into the data buffer DBU, each line is arranged in the direction along the column (hereinafter referred to as the column direction) and along the direction along the row (hereinafter referred to as the row direction). The number of data is stored, and the contents are converted to RC (1,
1) and RC(1,2).

RRは範囲レジスタであり、CRT上に表示した
文字列に対し、前述した範囲先頭キーRSおよび
範囲末尾キーREによつて指定された領域を格納
するレジスタである。かかるレジスタRRは2×
2Wの容量を有し、その内容はR(L,C)で表現
される。ここで、L,Cは共に1から2までの変
数であり、R(1,C)は範囲先頭キーによつて
指定されたCRT上の位置を格納するロケーシヨ
ンであり、R(1,1)には行数、R(1,2)に
は桁数を格納する。また、R(2,C)は範囲末
尾キーによつて指定されたCRT上の位置を格納
するロケーシヨンであり、R(2,1)には行数、
R(2,2)には桁数を格納する。
RR is a range register that stores an area specified by the range start key RS and range end key RE described above for the character string displayed on the CRT. Such register RR is 2×
It has a capacity of 2W, and its contents are expressed as R(L,C). Here, L and C are both variables from 1 to 2, R(1, C) is a location that stores the position on the CRT specified by the first key of the range, and R(1, 1) The number of rows is stored in , and the number of digits is stored in R(1,2). Furthermore, R(2,C) is a location that stores the position on the CRT specified by the range end key, and R(2,1) is the number of rows,
The number of digits is stored in R(2,2).

GTはグラフテーブルメモリであり、データバ
ツフアDBUに格納されているデータに対し、積
算レジスタARの内容をもとに同時点のデータを
列並びに格納し、グラフ化するために必要なデー
タに変換し、その結果を格納するためのメモリで
あつて、容量は8×9Wである。
GT is a graph table memory, which stores the data stored in the data buffer DBU in columns based on the contents of the integration register AR, and converts it into the data necessary for graphing. It is a memory for storing the results and has a capacity of 8×9W.

GFはグラフオントメモリであり、グラフパタ
ーンのコード列が格納され、必要とするグラフの
長さに対応するグラフパターンのコード列を容易
に求めることができる。
GF is a graph ontomemory in which code strings of graph patterns are stored, and the code string of graph patterns corresponding to the required graph length can be easily obtained.

グラフフオントメモリGFにおけるグラフパタ
ーンは、例えば第4図Aに示すように、8×10W
の容量を有し、グラフオントメモリGFの内容は、
G(L,C)で表現されるものとする。ここで、
Lは1から8までの整数であり、Cは1から10ま
での整数をとり得る。行ナンバはグラフの長さに
対応している。
The graph pattern in the graph font memory GF is, for example, 8×10W as shown in FIG. 4A.
The contents of the graph ontomemory GF have a capacity of
It is assumed that it is expressed as G(L,C). here,
L is an integer from 1 to 8, and C can be an integer from 1 to 10. The row numbers correspond to the length of the graph.

そこで、例えばグラフの長さ3の時のグラフパ
ターンコード列を求めるには、グラフフオントメ
モリGTの第3行目を参照し、4、α、β、β、
γというコード列を見い出す。ここで4とは、コ
ード列の長さを意味し、実際のコード列はα、
β、β、γの4つである。また、α、β、γは、
第4図Bに示すようにそれぞれのパターンに対応
するコードである。
Therefore, for example, to obtain the graph pattern code string when the graph length is 3, refer to the third row of the graph font memory GT, 4, α, β, β,
Find the code string γ. Here, 4 means the length of the code string, and the actual code string is α,
There are four: β, β, and γ. Also, α, β, and γ are
As shown in FIG. 4B, there are codes corresponding to each pattern.

次に、このように構成した文字処理装置におけ
る処理手順とその動作について説明する。
Next, the processing procedure and operation of the character processing device configured as described above will be explained.

なお、本実施例では、電源投入時に自動的にレ
ジスタやバツフア等のメモリがクリアされ、カー
ソルCMが表示装置CRTの表示面上におけるホー
ムポジシヨンBOに移動して画面がクリアされ、
キーボード処理が動作可能なように構成されてい
るものとする。そこで、操作者は電源投入後、こ
のような待機状態でカーソルキーCKを用いて、
カーソルCMを適当な位置に移動させた後、文字
キーCHを押して文字、数字、その他の記号等を
入力させ、文章あるいは数字データ等を作成して
CRT上に表示させる。
In this embodiment, when the power is turned on, memories such as registers and buffers are automatically cleared, the cursor CM is moved to the home position BO on the display surface of the display device CRT, and the screen is cleared.
It is assumed that the configuration is such that keyboard processing is operable. Therefore, after turning on the power, the operator uses the cursor key CK in such a standby state to
After moving the cursor CM to an appropriate position, press the character key CH to input letters, numbers, and other symbols to create sentences or numerical data.
Display on CRT.

いま、第3図Aに示すように数字列が入力され
たとして、ここでこれらの数字列の値に対応した
長さのグラフをCRT上に画かせたいとする。そ
れには、第3図Bに示すように数字列の範囲指定
を行い、まずカーソルCMを位置B1に移動させ
て範囲先頭キーRSを押し、次にカーソルCMを
位置B2にまで移動させて範囲末尾キーREを押
し、以て、グラフ化する対象数字列の範囲を指定
することができる。すなわち、グラフ化しようと
する数字列の配列において、左端最上段の数字と
右端最下段の数字とで範囲指定を行うものであ
る。
Now, let us assume that a string of numbers has been input as shown in FIG. 3A, and that we want to draw a graph on the CRT whose length corresponds to the value of these strings of numbers. To do this, specify the range of the number string as shown in Figure 3B, first move the cursor CM to position B1 and press the range start key RS, then move the cursor CM to position B2 and press the range end key RS. By pressing the RE key, you can specify the range of the target number string to be graphed. That is, in the array of number strings to be graphed, a range is specified by the number at the top of the left end and the number at the bottom of the right end.

続いて、グラフを表示する場所を指定する必要
があり、カーソルCMを位置B3にまで移動させ
てグラフキーGKを押すことにより、第3図Cに
示すようなCRT画面を得ることができる。ここ
で、グラフの長さは、例えば全ての数字列のうち
の最小の値を単位長さとして表示するものとする
が、他の表示方式によることもできる。
Next, it is necessary to specify the location where the graph is to be displayed, and by moving the cursor CM to position B3 and pressing the graph key GK, a CRT screen as shown in FIG. 3C can be obtained. Here, the length of the graph is assumed to be displayed using, for example, the minimum value of all the numerical strings as a unit length, but other display methods may also be used.

また、別の入力例として、第5図Aに示すよう
な数字列に対して、第5図Bに示すような範囲指
定を行つた場合には、第5図Cに示すような
CRT画面が得られる。
As another input example, if you specify a range as shown in Figure 5B for a number string as shown in Figure 5A, then the range as shown in Figure 5C is
A CRT screen is obtained.

以下で、数字列の入力と範囲指定を行う際の数
値の取り込みについて更に説明を加える。まず、
数字列を入力させるにあたつては、1つのまとま
つた数値を連続した数字列で表示し、数値間には
数字以外の文字(スペースを含む)を介在させ
る。次に範囲指定で、範囲先頭キーと範囲末尾キ
ーとで囲まれた矩形領域にある入力された数字コ
ード列をそのままデータバツフアDBUに取り込
ませる。
Below, we will further explain how to import numbers when inputting a number string and specifying a range. first,
When inputting a number string, one group of numbers is displayed as a continuous number string, and characters other than numbers (including spaces) are inserted between the numbers. Next, by specifying a range, the input numeric code string in the rectangular area surrounded by the range start key and the range end key is imported as is into the data buffer DBU.

ここで、行列形式の数値データ群においては、
行方向及び列方向のデータの並びのいずれか一方
に項目、他方に時点と呼ばれる属性が与えられる
ものとし、かかる数値データ群をグラフ化すると
きには、グラフパターンを数値データの大きさに
応じて増減させる方向(例えば、第6図では、横
軸方向)と直交する軸方向(第6図では、縦軸方
向)に沿つて各時点の位置をとり、時点が同時点
となる各項目のデータに対するグラフパターン
を、その時点の位置に出力するものとする。この
とき、入力された数字列群の列方向及び行方向の
データの並びに対して、それぞれが、同時点の各
項目のデータであるのか、あるいは各時点の同項
目のデータであるのかを、次の手順により決定す
ることとする。
Here, for a group of numerical data in matrix format,
An attribute called an item is given to one of the data arrays in the row direction or column direction, and an attribute called a time point is given to the other. When graphing such a group of numerical data, the graph pattern can be increased or decreased depending on the size of the numerical data. The position of each time point is taken along the axis direction (vertical axis direction in FIG. 6) that is orthogonal to the direction (for example, the horizontal axis direction in FIG. 6) that Assume that the graph pattern is output at the current position. At this time, for the data arranged in the column and row directions of the input number string group, whether each item is data at the same time or the same item at each time is determined as follows. The decision shall be made in accordance with the following procedure.

(1) データバツフアDBUに取り込まれた数字並
びの行方向、列方向のうち数値データの個数が
多い方向のデータを同項目のデータとする。
(1) The data in the row or column direction of the numerical arrangement imported into the data buffer DBU is treated as data for the same item.

(2) 行方向、列方向の数が同じ場合には、行方向
を同項目と見なす。
(2) If the numbers in the row and column directions are the same, the rows are considered to be the same item.

(3) 項目、時点の関係を(1)、(2)で定めた場合の逆
にしたい場合はインバートキーINVを押下す
る。
(3) If you want to reverse the relationship between items and time points as defined in (1) and (2), press the invert key INV.

すなわち、第6図の場合では、列の並びの方が
行の並びよりは数字の並びが多いので、多い方向
である縦方向を同項目のデータとみなすことにな
る。
That is, in the case of FIG. 6, since there are more numbers in the column arrangement than in the row arrangement, the vertical direction, which is the direction in which there are more numbers, is regarded as data for the same item.

また、上述したような手順を定めておくことに
より、例えば第7図Aのように入力されたデータ
に対し範囲指定を行つた後、グラフキーGKを押
したとすると、第7図Bに示すような出力結果が
得られる。また、例えば範囲指定を行つた後、イ
ンバートキーINVを押してからグラフキーGKを
押したとすると、第7図Cに示すように右から各
列の数字列がグラフでは上から順次に行として同
時点に示される。
In addition, by setting the procedure as described above, for example, if you press the graph key GK after specifying the range for the input data as shown in Figure 7A, the result will be as shown in Figure 7B. The output results are as follows. For example, after specifying a range, if you press the invert key INV and then the graph key GK, the number strings in each column from the right will be displayed as rows starting from the top at the same point in the graph, as shown in Figure 7C. is shown.

以下にこのように構成した文字処理装置におけ
る動作と手順を第12図A〜Eに示すフローチヤ
ートを参照して更に詳細に説明する。
The operations and procedures in the character processing apparatus configured as described above will be explained in more detail below with reference to the flowcharts shown in FIGS. 12A to 12E.

まず、イニシヤライズ処理は第12図Aに示す
ように次のような手順で行う。
First, the initialization process is performed in the following steps as shown in FIG. 12A.

(0‐1) ……カーソルCMをホームポジシヨン、す
なわち表示装置CRTの左上方に移動させ、カ
ーソルレジスタCRの内容を零にクリアする。
(0-1) ...Moves the cursor CM to the home position, that is, to the upper left of the display device CRT, and clears the contents of the cursor register CR to zero.

(0‐2) ……バツフアBUFのすべての領域にスペー
スコードを入れて表示装置CRTの画面をクリ
アする。
(0-2) ...Insert a space code in all areas of the buffer BUF and clear the screen of the display device CRT.

(0‐3) ……範囲レジスタRRの内容を零にクリア
する。
(0-3) ... Clear the contents of range register RR to zero.

以上述べてきたように、電源の投入によつてメ
インルーチンが起動され、前述したようなイニシ
ヤライズ処理が行われた時、キーボードKBから
入力されたデータに対し各種処理への振り分けが
行われる。以下では、範囲先頭キーRSからの入
力があつた時に起動される範囲先頭処理ルーチン
と、範囲末尾キーREによつて起動される範囲末
尾処理ルーチンと、インバートキーINVによつ
て起動されるインバートルーチンと、グラフキー
GKによつて起動されるグラフルーチンについて
更に詳細に説明する事とし、他の処理は従来の技
術により実現されるので省略する。
As described above, when the main routine is activated when the power is turned on and the initialization process described above is performed, the data input from the keyboard KB is distributed to various processes. Below, we will explain the range start processing routine that is activated when an input is received from the range start key RS, the range end processing routine that is activated by the range end key RE, and the invert routine that is activated by the invert key INV. and graph key
The graph routine started by GK will be explained in more detail, and other processing will be omitted since it is realized by conventional technology.

範囲先頭処理はグラフ化対象数字列の先頭位置
を規定するための処理である。操作者はグラフ化
対象数字列の第1行目で、かつグラフ化対象数字
列の最も左の列(桁)にカーソルCMを移動した
後、範囲先頭キーRSを入力する。このとき、第
12図Bに示すような以下の処理を実行する。
Range start processing is processing for defining the start position of the number string to be graphed. The operator moves the cursor CM to the first row of the number string to be graphed and to the leftmost column (digit) of the number string to be graphed, and then inputs the range head key RS. At this time, the following processing as shown in FIG. 12B is executed.

(1‐1) ……範囲レジスタRRの各ロケーシヨンR
(1,1)およびR(1,2)に範囲先頭位置の
アドレスを示す行数および桁数を格納する。
(1-1) ...Each location R of range register RR
The number of lines and number of digits indicating the address of the start position of the range are stored in (1, 1) and R (1, 2).

R(1、C)← =C(1、C)、ここで(C=1、2) 範囲末尾処理は操作者の範囲末尾指定に対し
て、範囲末尾位置を範囲レジスタRRに書き込む
処理であり、まずカーソルCMを、例えば第3図
Bに示すように位置B1からB2に移動した後、
範囲末尾キーREを入力し、この時これと共に、
指定された範囲の数字情報列をデータバツフア
DBUに書き込む処理も行われる(第9図A参
照)。
R (1, C) ← = C (1, C), where (C = 1, 2) Range end processing is a process that writes the range end position to the range register RR in response to the operator's range end specification. , first move the cursor CM from position B1 to B2 as shown in FIG. 3B, and then
Enter the range end key RE, and at this time with this,
Data buffer of numerical information string in specified range
Processing to write to the DBU is also performed (see FIG. 9A).

以下にその処理手順を第12図Cを参照して説
明する。
The processing procedure will be explained below with reference to FIG. 12C.

(2‐1) ……データバツフアDBU、グラフテーブル
メモリGTの内容を全てクリアする。
(2-1) ... Clear all contents of data buffer DBU and graph table memory GT.

(2‐2) ……範囲レジスタRRの各ロケーシヨンR
(2,1)およびR(2,2)に範囲末尾アドレ
スを示す行数および桁数を格納する。
(2-2) ...Each location R of range register RR
The number of lines and number of digits indicating the end address of the range are stored in (2,1) and R(2,2).

R(2、C)← =C(1、C)、ここで(C=1、2) 第8図はこのようにして範囲先頭処理および範
囲末尾処理を行つた結果、第3図Bに示したよう
な範囲指定のアドレスが範囲レジスタRRに格納
された状態を示すもので、R(1,1)およびR
(1,2)には位置B1における行数および桁数、
またR(2,1)およびR(2,2)には位置B2
における行数および桁数が示されている。
R (2, C) ← = C (1, C), where (C = 1, 2) Figure 8 shows the result of performing range start processing and range end processing in this way, as shown in Figure 3 B. This shows that a range specified address like the one above is stored in the range register RR, and R(1,1) and R
(1,2) has the number of lines and digits at position B1,
Also, R(2,1) and R(2,2) have position B2.
The number of lines and columns in is shown.

(2‐3) ……範囲レジスタRRで示された上記のバ
ツフア内数字列群をデータバツフアDBUに移
す。
(2-3) ...Move the above group of numbers in the buffer indicated by the range register RR to the data buffer DBU.

ここで記入にあたつては、例えばJIS CODEを
用いることとし、本例では3桁以上の数字処理は
行わないこととする。また、数値として0を除く
正の数を扱うものとする。本ステツプにおける具
体的処理としては、バツフアアドレスR(1,1)
とR(1,2),R(1,1)とR(2,2),R
(2,1)とR(1,2)およびR(2,1)とR
(2,2)で囲まれるそれぞれの数字列群(第3
図Bにおいて矩形で囲まれた領域)をそのままデ
ータバツフアDBUの左上に移す。
For entry here, use JIS CODE, for example, and in this example, numbers of three or more digits will not be processed. Also, assume that positive numbers excluding 0 are handled as numerical values. The specific processing in this step is as follows: buffer address R(1,1)
and R(1,2), R(1,1) and R(2,2), R
(2,1) and R(1,2) and R(2,1) and R
Each number string group surrounded by (2, 2) (third
The area surrounded by a rectangle in Figure B) is moved as it is to the upper left of the data buffer DBU.

(2‐4) ……データバツフアDBUに書き込まれたデ
ータの列方向および行方向における数字列デー
タの個数を行列レジスタRCのロケーシヨンRC
(1,1)およびRC(1,2)に書き込む。第
9図Bは第9図Aからの情報をこのようにして
書き込んだ例を示すものである。
(2-4) ...The number of numeric string data in the column and row directions of the data written to the data buffer DBU is calculated using the location RC of the matrix register RC.
Write to (1,1) and RC(1,2). FIG. 9B shows an example in which the information from FIG. 9A is written in this manner.

(2‐5) ……行列レジスタRCを参照して値の大き
い方の方向、すなわちRC(1,1)>RC(1,
2)であれば、データバツフアDBUの列に沿
つた複数個の数字列データを左から右に、グラ
フテーブルメモリGTの欄JCD1およびJCD2
に、順に、第10図に示すように書き込み、ま
たRC(1,1)≦RC(1,2)であれば、デー
タバツフアDBUの行に沿つた複数個の数字列
データを上から下に、順次グラフテーブルメモ
リGTの欄JCD1およびJCD2に書き込む。
(2-5) ...Refer to the matrix register RC and select the direction of the larger value, that is, RC(1,1)>RC(1,
2), the multiple number string data along the columns of the data buffer DBU are stored in columns JCD1 and JCD2 of the graph table memory GT from left to right.
10, and if RC(1,1)≦RC(1,2), write multiple number string data along the rows of the data buffer DBU from top to bottom, Sequentially write to columns JCD1 and JCD2 of graph table memory GT.

(2‐6) ……ステツプ(2−5)でグラフテーブル
メモリGTの欄JCD1およびJCD2に記入した
数字列群をバイナリ値に変換し、その変換値を
グラフテーブルメモリGTの欄BINARY1およ
びBINARY2に記入する。
(2-6) ...Convert the number strings entered in columns JCD1 and JCD2 of graph table memory GT in step (2-5) into binary values, and write the converted values to columns BINARY1 and BINARY2 of graph table memory GT. Fill out.

(2‐7) ……ステツプ(2−6)で記入されたグラ
フテーブルメモリGTの欄BINARY1および
BINARY2の数字のうち最小値を第10図に
示すように第8行第5列のロケーシヨンに記入
する。
(2-7) ...Columns BINARY1 and Graph Table Memory GT entered in step (2-6)
Write the minimum value of the BINARY2 numbers in the location of the 8th row and 5th column as shown in FIG.

(2‐8) ……ステツプ(2−6)で記入されたグラ
フテーブルメモリGTの欄BINARY1および
BINARY2の数字を、ステツプ(2−7)で
記入した第8行第5列の値で除して、必要があ
れば小数点以下を四捨五入し、グラフ表示の単
位長さに変換し、その値をグラフテーブルメモ
リGTの欄BINARY3およびBINARY4に記
入する。
(2-8) ...Columns BINARY1 and Graph Table Memory GT entered in step (2-6)
Divide the number in BINARY2 by the value in the 8th row and 5th column entered in step (2-7), round off the decimal places if necessary, convert it to the unit length for graph display, and convert the value to Fill in columns BINARY3 and BINARY4 of graph table memory GT.

(2‐9) ……ステツプ(2−8)によつて得られた
欄BINARY3とBINARY4との値の各行ごと
の和をとり欄BINARY TOTALに記入する。
(2-9) ...The sum of the values in columns BINARY3 and BINARY4 obtained in step (2-8) for each row is calculated and entered in the column BINARY TOTAL.

次にインバートキー入力処理を第12図Dを参
照して詳述する。
Next, the invert key input process will be described in detail with reference to FIG. 12D.

(3‐1) ……グラフテーブルメモリGTの内容を全
てクリアする。
(3-1) ... Clear all contents of graph table memory GT.

(3‐2) ……行列レジスタを参照し、値の小さい方
の方向、すなわちRC(1,1)≦RC(1,2)
ならばデータバツフアDBUの列に沿つた複数
個の数字列データを左から右に、またRC(1,
1)>RC(1,2)ならばデータバツフアDBU
の行に沿つた複数個の数字列データを上から下
に順番に、グラフテーブルメモリGTの欄
JCD′,JCD2へ順に書き込む。
(3-2) ...Refer to the matrix register and move in the direction of the smaller value, that is, RC (1, 1) ≦ RC (1, 2)
Then, from left to right, multiple number string data along the column of data buffer DBU, and RC (1,
1) If > RC (1, 2), data buffer DBU
The multiple number string data along the rows are stored in the graph table memory GT column in order from top to bottom.
Write to JCD' and JCD2 in order.

(3‐3) ……範囲末尾処理(2−6)〜(2−9)
で述べたと同様の手順により処理を行うもの
で、その説明を省略する。
(3-3) ...Range end processing (2-6) to (2-9)
The process is performed using the same procedure as described above, and the explanation thereof will be omitted.

次にグラフキー入力処理を第12図Eを参照し
て詳述する。
Next, the graph key input process will be described in detail with reference to FIG. 12E.

(4‐1) ……グラフテーブルメモリGTの欄
BINARY TOTALの値からグラフフオントメ
モリGFの行ナンバに一致する行のコード列を
バツフアBUFに順に書き込む。例えば、グラ
フテーブルメモリGTの欄BINARY TOTAL
の値が3であれば、第4図Aに示すようにグラ
フフオントテーブルGFの第3行目からグラフ
パターンコード列がα、β、β、γであるの
で、このコード列をバツフアBUFに書き込む。
バツフアBUFへの書き込み位置は、カーソル
レジスタCRの値によつて示されており、グラ
フテーブルメモリGTの第1行目に対応するパ
ターンコード列は該カーソルレジスタCRによ
つて示される位置を先頭に、順次に横方向(同
一行右方向)に書き込む。グラフテーブルメモ
リGTの第2行目に対応するパターンコード列
はカーソルレジスタCRによつて示されるバツ
フア内の位置の次の行に書き込む。以下順に書
き込みを実行していく。
(4-1) ...Graph table memory GT column
From the value of BINARY TOTAL, write the code strings of the rows that match the row numbers of the graph font memory GF to the buffer BUF in order. For example, the column BINARY TOTAL in graph table memory GT
If the value of is 3, the graph pattern code strings from the third row of the graph font table GF are α, β, β, γ as shown in Figure 4A, so write this code string to the buffer BUF. .
The writing position to the buffer BUF is indicated by the value of the cursor register CR, and the pattern code string corresponding to the first row of the graph table memory GT starts at the position indicated by the cursor register CR. , sequentially write horizontally (rightward on the same line). The pattern code string corresponding to the second row of the graph table memory GT is written to the row next to the position in the buffer indicated by the cursor register CR. Writing is performed in the following order.

(4‐2) ……グラフテーブルメモリGTの欄
BINARY3の値からグラフフオントメモリGF
の行ナンバと一致する行のコード列を、次のよ
うにして変換する。例えば、α、βおよびγに
ついては、第4図Bに示されるようにそれぞれ
α′、β′およびδのフオントに変換される。な
お、バツフアBUFへの書き込み位置は、ステ
ツプ(4−1)で述べたのと同様とし、オーバ
ライトモードで書き込んでいくものとする。こ
のようにして、第3図Bに示すようなCRT画
面を得ることができる。
(4-2) ...Graph table memory GT column
Graph font memory GF from BINARY3 value
Convert the code string of the line that matches the line number of , as follows. For example, α, β, and γ are converted into α', β', and δ fonts, respectively, as shown in FIG. 4B. It is assumed that the writing position to the buffer BUF is the same as that described in step (4-1), and writing is performed in the overwrite mode. In this way, a CRT screen as shown in FIG. 3B can be obtained.

なお、第11図はカーソルレジスタCRにおい
て、例えば第3図Cに示すカーソルの位置B3を
示したものである。
Note that FIG. 11 shows, for example, the cursor position B3 shown in FIG. 3C in the cursor register CR.

また、本実施例においては、範囲先頭キーと範
囲末尾キーとの2つのキーにより範囲を規定した
が、これらのキーを1つのキーにまとめ、例えば
キー操作をRAMに記憶させ、奇数回目の打鍵は
範囲先頭を指定し、偶数回目の打鍵は範囲末尾を
指定するようにしてもよい。また、RAMにより
キー操作情報を読み出し、奇数回目の打鍵でラン
プを点灯させ、偶数回目の打鍵に対し、ランプを
消灯させるように構成してもよい。
In addition, in this embodiment, the range is defined by two keys, the range start key and the range end key, but these keys can be combined into one key, for example, key operations can be stored in RAM, and the odd-numbered keystrokes can be may specify the beginning of the range, and even-numbered keystrokes may specify the end of the range. Alternatively, the key operation information may be read out from the RAM, and the lamp may be turned on for odd-numbered keystrokes and turned off for even-numbered keystrokes.

更にまた、本実施例では、CRT上にグラフの
みを表示させることについて述べたが、この他同
時に目盛あるいは枠組を表示することもできる。
Furthermore, in this embodiment, only a graph is displayed on the CRT, but it is also possible to display scales or a frame at the same time.

なお、本実施例においては、入力についての手
順についてのみ述べたが、本発明文字処理装置に
各種周辺装置、例えばプリンタ、デイスク等を設
けるようにしてもよい。
In this embodiment, only the input procedure has been described, but the character processing apparatus of the present invention may be provided with various peripheral devices such as a printer, a disk, etc.

また、本実施例においては、データの項目数は
2であつたが、3以上であつても同様な処理によ
りグラフ表示を行うことができるのは勿論であ
り、グラフ表示方式としても、本例では横方向の
棒グラフのみの出力で表示したが、これに代えて
縦方向のグラフ表示や折れ線グラフ表示とするこ
ともできるのはいうまでもない。
In addition, although the number of data items is two in this example, it goes without saying that even if there are three or more items, a graph can be displayed using the same process, and this example also applies as a graph display method. In the above, only a horizontal bar graph is output, but it goes without saying that a vertical graph or a line graph can be displayed instead.

以上説明してきたように、本発明によれば、行
列形式の数値データに対して、行と列の内から任
意の一方を同時点のデータの集合、他方を同項目
のデータの集合として選択し、グラフパターンを
数値の大きさに応じて増減させる方向と直交する
軸方向に時点をとり、同時点となる各項目のグラ
フパターンを当該時点の位置に出力するグラフを
作成することができるようになつた。
As explained above, according to the present invention, for numerical data in matrix format, any one of the rows and columns is selected as a set of data at the same time, and the other is selected as a set of data of the same item. , it is now possible to create a graph that takes time points in the axis direction perpendicular to the direction in which the graph pattern is increased or decreased according to the size of the numerical value, and outputs the graph pattern of each item at the same time point at the position of that time point. Summer.

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

第1図は本発明文字処理装置における回路の構
成の1例を示すブロツク図、第2図はそのキーボ
ードの配置例を示す配置図、第3図A,Bおよび
Cはそのバツフアに入力したデータの例として、
数字のみの場合、数字とカーソルとの場合および
数字とその数字を変換したグラフで表示する場合
とについて示す説明図、第4図Aはそのグラフフ
オントメモリの内容の1例をテーブル表にして示
す説明図、第4図Bはグラフフオントメモリに用
いられるコードのパターンを示す線図、第5図
A,BおよびCはバツフアに入力したデータの他
の1例を第3図A,BおよびCによる各場合につ
いて示す説明図、第6図はデータバツフアに取り
込まれるデータのグラフ変換に関し、その列方向
と行方向とについての説明図、第7図A,Bおよ
びCはバツフアに入力させたデータに範囲指定を
行つた状態、これに続いてグラフキーを操作した
状態およびインバートキーを操作した状態におけ
る表示を示す説明図、第8図は範囲レジスタの内
容を表示した1例を示す説明図、第9図Aおよび
Bはデータバツフアにおける表示の1例および行
列レジスタにおける表示の1例をそれぞれ示す説
明図、第10図はグラフテーブルメモリに記入さ
れる内容の1例を示す説明図、第11図はカーソ
ルレジスタに格納されるデータの1例を示す説明
図、第12図は本発明における処理手順を示すフ
ローチヤートである。 CPU……マイクロプロセツサ、AB,CB,DB
……バス、ROM……制御メモリ、RAM……ラ
ンダムアクセスメモリ、KB……キーボード、
CH,FU……キー群、RS,RE,CK,GK,
INV……キー、CR……カーソルレジスタ、BUF
……バツフア、CG……キヤラクタジエネレータ、
CRT……表示装置、CRTC……CRTコントロー
ラ、DBU……データバツフア、RC……行列レジ
スタ、RR……範囲レジスタ、GT……グラフテ
ーブルメモリ、GF……グラフフオントメモリ、
CM……カーソル、B1,B2,B3……位置、R
(1,C),R(2,C)、RC(1,C),B(L,
C),G(L,C)……ロケーシヨン、J1D1、
J1D2、BINARY1〜4、BINARY
TOTAL……欄。
FIG. 1 is a block diagram showing an example of the circuit configuration in the character processing device of the present invention, FIG. 2 is a layout diagram showing an example of the keyboard layout, and FIG. 3 A, B, and C are data input to the buffer. As an example,
An explanatory diagram showing cases in which only numbers are displayed, cases in which numbers and a cursor are displayed, and cases in which numbers and converted graphs are displayed. Figure 4A shows an example of the contents of the graph font memory as a table. 4B is a diagram showing the code pattern used in the graph font memory, and 5A, B, and C are diagrams showing another example of data input to the buffer. Figure 6 is an explanatory diagram showing the graph conversion of data input into the data buffer in the column direction and row direction. Figure 7 A, B and C are diagrams showing the graph conversion of data input into the data buffer. An explanatory diagram showing the display when a range is specified, a graph key is subsequently operated, and an invert key is operated. Figure 8 is an explanatory diagram showing an example of displaying the contents of the range register. 9A and B are explanatory diagrams showing one example of the display in the data buffer and one example of the display in the matrix register, respectively. FIG. 10 is an explanatory diagram showing one example of the contents written in the graph table memory. FIG. 12 is an explanatory diagram showing an example of data stored in the cursor register, and is a flowchart showing the processing procedure in the present invention. CPU……Microprocessor, AB, CB, DB
...Bus, ROM...Control memory, RAM...Random access memory, KB...Keyboard,
CH, FU...Key group, RS, RE, CK, GK,
INV……key, CR……cursor register, BUF
...Batsuhua, CG...Character Generator,
CRT...display device, CRTC...CRT controller, DBU...data buffer, RC...matrix register, RR...range register, GT...graph table memory, GF...graph font memory,
CM...Cursor, B1, B2, B3...Position, R
(1, C), R (2, C), RC (1, C), B (L,
C), G (L, C)...Location, J1D1,
J1D2, BINARY1-4, BINARY
TOTAL... column.

Claims (1)

【特許請求の範囲】 1 文字・数字列を入力する入力手段と、 該入力手段より入力された文字・数字列を記憶
する記憶手段と、 該記憶手段により記憶された文字・数字列を表
示させる表示制御手段と、 該表示制御手段により表示された行列形式の数
字列群の表す数値群のグラフの作成を指示する指
示手段と、 前記数値群の各数値の大きさに対応するグラフ
パターンを生成する生成手段と、 前記行列形式の数値群の行及び列の任意の一方
を同時点のデータの集合とし、他方を同項目のデ
ータの集合として選択する選択手段と、 前記指示手段の指示により、前記選択手段の選
択に基づき、前記生成手段により生成されたグラ
フパターンを用いて、当該グラフパターンが数値
の大きさに応じて増減する方向と直交する軸方向
に前記時点をとり、前記時点が同時点となる各項
目のデータに対するグラフパターンを当該時点の
位置に出力するグラフを作成するグラフ作成手段
とを有することを特徴とする文字処理装置。 2 前記選択手段による選択動作が省略されたと
きには、前記行及び列のうち、数値データの個数
が少ない方の方向に並んでいるデータの集合を、
同時点のデータの集合としてグラフを作成するよ
うに、前記グラフ作成手段を制御する制御手段を
有することを特徴とする特許請求の範囲第1項記
載の文字処理装置。 3 前記制御手段は、前記行及び列で数値データ
の個数が同数のときは、列方向に並んでいるデー
タの集合を同時点のデータの集合とする制御を行
うことを特徴とする特許請求の範囲第2項記載の
文字処理装置。
[Scope of Claims] 1. An input means for inputting a string of characters and numbers, a storage means for storing the string of characters and numbers input from the input means, and a display of the string of characters and numbers stored by the storage means. a display control means; an instruction means for instructing the creation of a graph of a group of numerical values represented by a group of numerical strings in a matrix format displayed by the display control means; and generating a graph pattern corresponding to the size of each numerical value in the group of numerical values. a generating means for selecting one of the rows and columns of the group of numerical values in the matrix format as a set of data at the same time and the other as a set of data for the same item; and according to instructions from the indicating means, Based on the selection by the selection means, using the graph pattern generated by the generation means, the time point is taken in the axis direction perpendicular to the direction in which the graph pattern increases or decreases depending on the size of the numerical value, and the time point is set at the same time. 1. A character processing device comprising: graph creation means for creating a graph that outputs a graph pattern for data of each item serving as a point at a position at the relevant time point. 2. When the selection operation by the selection means is omitted, the set of data arranged in the direction of the row and column with the smaller number of numerical data,
2. The character processing device according to claim 1, further comprising control means for controlling said graph creation means so as to create a graph as a collection of data at the same time. 3. The control means is characterized in that, when the number of numerical data is the same in the row and column, the control means performs control such that a set of data arranged in the column direction becomes a set of data at the same time. Character processing device according to scope 2.
JP56188366A 1981-11-26 1981-11-26 Character processor Granted JPS5892026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56188366A JPS5892026A (en) 1981-11-26 1981-11-26 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56188366A JPS5892026A (en) 1981-11-26 1981-11-26 Character processor

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP4051508A Division JPH0734233B2 (en) 1992-03-10 1992-03-10 How to create a graph

Publications (2)

Publication Number Publication Date
JPS5892026A JPS5892026A (en) 1983-06-01
JPH0445875B2 true JPH0445875B2 (en) 1992-07-28

Family

ID=16222355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56188366A Granted JPS5892026A (en) 1981-11-26 1981-11-26 Character processor

Country Status (1)

Country Link
JP (1) JPS5892026A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0766386B2 (en) * 1983-12-29 1995-07-19 株式会社ピーエフユー Simple language processing system
JPS6375985A (en) * 1986-09-19 1988-04-06 Hitachi Ltd Graph forming device
JPH0734233B2 (en) * 1992-03-10 1995-04-12 キヤノン株式会社 How to create a graph

Also Published As

Publication number Publication date
JPS5892026A (en) 1983-06-01

Similar Documents

Publication Publication Date Title
US4947370A (en) Word processor for simultaneously displaying and scrolling documents and the corresponding titles
JPH11219355A (en) Document coloring edition device
JPH0445875B2 (en)
JPS6359188B2 (en)
JPH05143575A (en) Input character display method by means of enlarged character
JPH0522933B2 (en)
JPH0734233B2 (en) How to create a graph
JPS6236252B2 (en)
JP3083665B2 (en) Sentence information processing equipment
US5526019A (en) Character processing apparatus
JPH0585929B2 (en)
JP2572039B2 (en) Character processor
JP2600654B2 (en) Document processing device
JPH0419585B2 (en)
JPS5965339A (en) Document editing device
JPS6132676B2 (en)
JPH0410105B2 (en)
JP2698348B2 (en) Character processor
JP2564779B2 (en) Character output device
JPH0467210B2 (en)
JPH02160287A (en) Cursor display circuit
JPH0480421B2 (en)
JPH0225547B2 (en)
JPH0532781B2 (en)
JPS5818732A (en) Character processing device