JPH0454527A - Hierarchy record arrangement device - Google Patents

Hierarchy record arrangement device

Info

Publication number
JPH0454527A
JPH0454527A JP2163350A JP16335090A JPH0454527A JP H0454527 A JPH0454527 A JP H0454527A JP 2163350 A JP2163350 A JP 2163350A JP 16335090 A JP16335090 A JP 16335090A JP H0454527 A JPH0454527 A JP H0454527A
Authority
JP
Japan
Prior art keywords
keyword
record
register
value
file
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.)
Pending
Application number
JP2163350A
Other languages
Japanese (ja)
Inventor
Satoru Hori
悟 堀
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2163350A priority Critical patent/JPH0454527A/en
Publication of JPH0454527A publication Critical patent/JPH0454527A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To omit the need to design again a production program of a menu list despite the change of the form of a tree structure by adding the information to each record constructing a hierarchy menu, etc., to show a specific area of the tree structure where the relevant record is built in. CONSTITUTION:A key word is added to each record stored in a record storage means 1 which stores a hierarchy menu, etc., to show a specific area of a tree structure where the relevant record is built in. An output position deciding means 2 extracts the key word of each record stored in the means 1 and also decides an output position of the hierarchical direction from the number of digits of the extracted word. Furthermore the means 2 decides an output position of the direction orthogonal to the hierarchical direction from the word contents. An output means 3 reads the corresponding record out of the means 1 and outputs the record into an output area that is specified by the output position of the hierarchical direction decided by the means 2 and the output position of the direction orthogonal to the hierarchical direction. Thus each record is set at the corresponding area of a changed tree structure.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、オフィスコンピュータ等において、木構造
の階層メニュ等を木構造の表現形式で配置出力する階層
レコード配置装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a hierarchical record arrangement device for arranging and outputting a tree-structured hierarchical menu or the like in a tree-structured representation format in an office computer or the like.

[発明の概要] この発明は、階層レコード配置装置において、桁数で階
層レベルを定義すると共にワード内容で木構造の上下関
係および左右関係を定義するキーワードによって区別さ
れたレコードを#1数記憶させておくことにより、レコ
ードの追加、削除等によって木構造の形が変化したとし
ても、変更された木構造に基づいて複数レコードを配置
できるようにしたものである。
[Summary of the Invention] The present invention is a hierarchical record arrangement device that stores #1 records distinguished by keywords that define hierarchical levels by the number of digits and define vertical and horizontal relationships in a tree structure by word content. By doing so, even if the shape of the tree structure changes due to the addition or deletion of records, multiple records can be arranged based on the changed tree structure.

[従来の技術] 一般に、パーソナルコンピュータやオフィスコンピュー
タ等においては、木構造の階層メニュが予めシステム設
計されている。
[Prior Art] Generally, in personal computers, office computers, etc., a tree-structured hierarchical menu is system-designed in advance.

ところで、この階層メニュの全体を例えば木構造の表現
形式でリスト出力したものとすると、そのリスト内容に
よって階層の上下関係等を一目で確認でき、所望するメ
ニュ項目を選択する際にそのリスト内容を視読しながら
選択作業を行えば、その作業を効率良く行うことが可能
となる。
By the way, if the entire hierarchical menu is output as a list in the form of a tree structure, for example, you can check the hierarchical relationship etc. at a glance based on the contents of the list, and when selecting the desired menu item, you can use the contents of the list. If you perform the selection work while reading visually, you can perform the selection work efficiently.

このような場合、従来においては、階層メニュを構成す
る各メニュ内容を表示出力させ、そのメニュ画面を1画
面ずつハードコピーし、その印刷内容を切り貼り等の手
法で木構造に配置すると共にそれらを結線することで第
20図に示す様なメニュリストを得るようにしていた。
In such cases, the conventional method is to display and output the contents of each menu that makes up the hierarchical menu, hard copy each menu screen one by one, arrange the printed contents in a tree structure by cutting and pasting, etc. By connecting the lines, a menu list as shown in Figure 20 was obtained.

[発明が解決しようとする課題J しかしながら、上述の様にしてメニュリストを作成する
ことは手間と時間を要し、極めて面倒なものとなってい
た。
[Problem to be Solved by the Invention J] However, creating a menu list as described above requires time and effort, and is extremely troublesome.

そこで、階層メニュをその木構造の表現形式で自動的に
リスト出力する為にメニュリストの作成プログラムを予
め設計しておけば良いが、 wieメニュの一部が削除
されたり、追加されると、それに応じて木構造自体もそ
の形が変化する為、メニュ内容を変更する毎にメニュリ
ストの作成プログラムを設計し直さなければならないと
いう問題を生ずる。
Therefore, it is best to design a menu list creation program in advance to automatically output a list of hierarchical menus in a tree-structured representation format, but if a part of the wie menu is deleted or added, Since the shape of the tree structure itself changes accordingly, a problem arises in that the menu list creation program must be redesigned each time the menu contents are changed.

この原因はメニュリストの作成プログラム内に階層メニ
ュの木構造が固定的に組み込まれていることにあると考
えられる。
The reason for this is thought to be that the tree structure of hierarchical menus is fixedly built into the menu list creation program.

してみれば1階層メニュ等を構成する各レコード毎に木
構造のどの箇所に組み込まれるべきレコードかを示す情
報を付加しておき、この情報に基づいて各レコードを木
構造の対応箇所に配置できれば、メニュリストの作成プ
ログラム自体に木構造を固定的に組み入れておく必要は
なく、その結果、レコードの削除や追加等によって木構
造の形が変化したとしてもメニュリストの作成プログラ
ムを設計し直す必要がなくなり、極めて汎用性に富んだ
ものとなることは明らかである。
If you do this, you can add information indicating where in the tree structure the record should be incorporated to each record that makes up a one-level menu, etc., and place each record in the corresponding place in the tree structure based on this information. If possible, there is no need to permanently incorporate a tree structure into the menu list creation program itself, and as a result, even if the shape of the tree structure changes due to record deletion or addition, the menu list creation program can be redesigned. It is clear that there is no need for this, making it extremely versatile.

この発明の課題は11層メニュ等を構成する各レコード
毎に木構造のどの箇所に組み込まれるべきレコードかを
示す情報を付加しておき、この情報に基づいて各レコー
ドを木構造の対応箇所に配置できるようにすることであ
る。
The problem of this invention is to add information indicating where in the tree structure the record should be incorporated to each record that makes up the 11-layer menu, etc., and to move each record to the corresponding place in the tree structure based on this information. The purpose is to make it possible to place them.

[課−を解決するための手段] この発明の手段は次の通りである。[Means to solve the problem] The means of this invention are as follows.

レコード記憶子81(第1図の機能ブロック図を参照、
以下同じ)は、桁数で階層レベルを定義すると共にワー
ド内容で木構造の上下関係(階層方向の連結関係)およ
び左右関係(階層方向と直交する方向の連結関係)を定
義するキーワードによって区別されたレコードを複数記
憶するファイルディスク等である。
Record memory 81 (see the functional block diagram in FIG. 1,
(same below) are distinguished by keywords that define the hierarchical level by the number of digits, and the vertical relationship (connection relationship in the hierarchy direction) and horizontal relationship (connection relationship in the direction orthogonal to the hierarchy direction) of the tree structure in the word content. This is a file disk that stores multiple records.

出力位置決定手段2はレコード記憶手段1内に記憶され
ている各レコードのキーワードを抽出すると共に、抽出
したキーワードの桁数で階層方向の出力位置(例えばx
Y座標系のY方向位置)を決定する他にそのワード内容
で階層方向と直交する方向の出力位置(例えばX方向位
置)を決定する。
The output position determination means 2 extracts the keyword of each record stored in the record storage means 1, and determines the output position in the hierarchical direction (for example, x
In addition to determining the Y-direction position of the Y-coordinate system, the output position (for example, the X-direction position) in the direction orthogonal to the hierarchical direction is determined based on the word content.

出力手段3は出力位置決定手段2によって決定された階
層方向の出力位置とそれと直交する方向の出力位置とに
よって特定される出力エリア内に対応するレコード(例
えばメニュ名等)をレコード記憶手段lから読み出して
配置出力する。
The output means 3 outputs a record (for example, a menu name, etc.) corresponding to the output area specified by the output position in the hierarchy direction determined by the output position determination means 2 and the output position in the direction perpendicular thereto from the record storage means 1. Read and layout output.

[作 用] この発明の手段の作用は次の通りである。[Work] The operation of the means of this invention is as follows.

いま、レコード記憶手段!内に記憶されている各レコー
ドのキーワードは、その桁数で階層レベルを定義すると
共にそのワード内容で木構造の上下関係および左右関係
を定義する0例えば、キーワードを数値列データとする
と、キーワード「1」は1段目の階層レベル、rllJ
、「12」は2段目の階層レベルを定義し、また、キー
ワードrl IJ、「12」のレコードはその上位桁(
十の桁)によってキーワードrlJのレコードと上下関
係にあることを定義し、またキーワード「11」、r1
2Jの下位桁(−の桁)の値によってキーワードrl 
IJと「12」のレコードは左右関係にあることを定義
する。
Now, record storage means! The keyword of each record stored in the ``keyword'' defines the hierarchical level by its number of digits, and defines the vertical and horizontal relationships of the tree structure by the word content.For example, if the keyword is numeric string data, the keyword `` 1" is the first hierarchy level, rllJ
, "12" defines the second hierarchical level, and the record with the keyword rl IJ, "12" is the upper digit (
The keyword "11", r1 is defined as having a vertical relationship with the record of keyword rlJ.
The keyword rl is determined by the value of the lower digit (- digit) of 2J.
It is defined that IJ and the record "12" are in a left-right relationship.

このように階層メニュ等を記憶するレコード記憶手段l
内の各レコードには木構造のどの箇所に組み込まれるべ
きレコードかを示すキーワードが付加されている。
Record storage means for storing hierarchical menus, etc. in this way
A keyword is added to each record in the tree structure to indicate where in the tree structure the record should be included.

しかして、例えば階層メニュ等のリスト出力指令に応答
して出力位置決定手段2は、レコード記憶手段l内に記
憶されている各レコードのキーワードを抽出すると共に
、抽出したキーワードの桁数で階層方向の出力位置を決
定する他にそのワード内容で階層方向と直交する方向の
出力位置を決定する。つまり、出力位置決定手段2はキ
ーワードを解析することによって平面座標系における座
標位置を対応するレコードの出力位置として決定する。
For example, in response to a list output command such as a hierarchical menu, the output position determining means 2 extracts the keyword of each record stored in the record storage means 1, and also extracts the keyword of each record stored in the record storage means 1, and also outputs the keyword in the hierarchical direction according to the number of digits of the extracted keyword. In addition to determining the output position of the word, the output position in the direction perpendicular to the hierarchical direction is determined based on the content of the word. That is, the output position determining means 2 determines the coordinate position in the plane coordinate system as the output position of the corresponding record by analyzing the keyword.

すると、出力手段3は出力位置決定手段2によって決定
された階層方向の出力位置とそれと直交する方向の出力
位置とによって特定される出力エリア内に対応するレコ
ードをレコード記憶手段lから読み出して配置出力する
Then, the output means 3 reads out the record corresponding to the output area specified by the output position in the hierarchical direction determined by the output position determining means 2 and the output position in the direction perpendicular thereto from the record storage means 1, and outputs it by arranging it. do.

したがって、階層メニュ等を構成する各レコードには木
構造のどの箇所に組み込まれるべきレコードかを示す情
報が付加されているので、レコードの追加、削除等によ
って木構造の形が変化したとしても各レコードを変更さ
れた木構造の対応箇所に配置することができる。
Therefore, each record that makes up a hierarchical menu etc. has information attached to it that indicates where in the tree structure the record should be incorporated, so even if the shape of the tree structure changes due to the addition or deletion of records, each record Records can be placed at corresponding locations in the modified tree structure.

[実施例] 以下、第2図〜第18図を参照して一実施例を説明する
[Example] An example will be described below with reference to FIGS. 2 to 18.

第2図はオフィスコンピュータ(階層レコード配置装!
りの構成を示したブロック図である。
Figure 2 is an office computer (hierarchical record arrangement system!
FIG.

CPUIIは予め格納されているシステムプログラム等
にしたがってこの階層レコード配!!111t置の全体
動作を制御するもので、その周辺デバイスとしてCPU
IIにはキー人力部12、CRT表示部13、印字部1
4、ファイルA15、ファイルB16が接続されている
The CPU II arranges this hierarchical record according to a pre-stored system program, etc. ! It controls the overall operation of the 111t unit, and its peripheral device is the CPU.
II has a key manual section 12, a CRT display section 13, and a printing section 1.
4. File A15 and file B16 are connected.

ファイルA15はN層メニュを構成する各レコードを記
憶するもので、本実施例においてファイルA15には第
3図に示す様に8種類のレコードが記憶されている。こ
こで、各レコードは次の如く定義されている。
The file A15 stores each record constituting the N layer menu, and in this embodiment, eight types of records are stored in the file A15 as shown in FIG. 3. Here, each record is defined as follows.

即ち、第4図はレコード構造を説明する為の図で、各レ
コードの先頭には夫々キーワードが付加されている。こ
こで、キーワードは数値列データでその桁数で階層レベ
ルを定義すると共に、ワード内容で木構造の上下方向(
階層方向)の連結関係および左右方向(階層方向と直交
する方向)の連結関係を定義する。つまり、キーワード
の桁数によって例えば、キーワード「1」は最上位(1
段目)の階層レベル、またキーワードrl IJ、「1
2ノ、「13」は2段目の階層レベル、更にキーワード
rl 114、rl12ノ、「131」、r133Jは
3段目の階層レベルを定義する。またキーワードの内容
によって例えばキーワードrl IJ、「12」、「1
3」のレコードはその上位桁(十の桁)からキーワード
r14のレコードと上下関係にあることを定義し、また
キーワードの下位桁(−の桁)からキーワード「11」
、rl2」、rl3」のレコードは夫々左右関係にある
ことを定義する。なお、下位桁の値の大小関係は階層方
向と直交する方向、つまり、左右方向における連結状態
を定義するもので、その連結関係は左から値の小さい順
となる(以下、同様)、また、キーワードrl 11J
、rl l 2Jのレコードはその上位桁(百の桁と千
の桁)によってキーワード「11Jのレコードと上下関
係にあることを定義し、またその下位桁(−の桁)から
キーワードrl l IJ、rl12」のレコードは左
右関係にあることを定義する。更に、キーワードrl 
31J、r132Jのレコードはその上位桁によってキ
ーワード「13」のレコードと上下関係にあることを定
義し、またその下位桁からキーワードr131ノ、「1
32」のレコードは左右関係にあることを定義する。
That is, FIG. 4 is a diagram for explaining the record structure, and a keyword is added to the beginning of each record. Here, the keyword is numeric string data that defines the hierarchy level by the number of digits, and the word content in the vertical direction of the tree structure (
Define the connection relationship in the hierarchy direction) and the connection relationship in the left-right direction (direction perpendicular to the hierarchy direction). In other words, depending on the number of digits of the keyword, for example, the keyword "1" is the highest rank (1
(column) hierarchy level, and the keyword rl IJ, “1
2 and "13" define the second hierarchical level, and keywords rl114, rl12, "131" and r133J define the third hierarchical level. Also, depending on the content of the keyword, for example, the keyword rl IJ, "12", "1"
It is defined that the record of "3" is in a vertical relationship with the record of keyword r14 from the upper digit (tens digit), and the keyword "11" is defined from the lower digit (- digit) of the keyword.
, rl2'' and rl3'' are defined to have a left-right relationship, respectively. Note that the magnitude relationship of the values of the lower digits defines the connection state in the direction perpendicular to the hierarchy direction, that is, in the left-right direction, and the connection relationship is in descending order from the left (the same applies hereinafter). Keyword rl 11J
, rl l 2J record is defined by its upper digits (hundreds digit and thousands digit) to be in a vertical relationship with the keyword "11J record," and from its lower digits (- digit) the keyword rl l IJ, rl12'' record defines that there is a left-right relationship. Furthermore, the keyword rl
The records of 31J and r132J are defined to have a vertical relationship with the record of keyword "13" by their upper digits, and the keywords r131 and "1" are defined from the lower digits.
32'' defines that there is a left-right relationship.

また各レコードにはキーワードの他に、それに続いてワ
ード区切りコード「:」、メニュ名「;」、後述する枝
情報(mまたはc)、項目名、ワード区切りコード「;
」、枝情報(mまたはC)、項目名・・・・・・が設け
られている。なお、項目情報(枝情報と項目名)は項目
数分存在し、また枝情報は対応する項目名のメニュ種別
を定義するもので、メニュ選択によって対応する処理プ
ログラムを実行させる為の実行メニュであれば枝情報は
「C」、実行メニュを選択する為の選択メニュであれば
枝情報はrmJとなる。つまり、枝情報rmJは下位メ
ニュが存在することを示し。
In addition to the keyword, each record includes a word delimiter code ":", a menu name ";", branch information (m or c), which will be described later, an item name, and a word delimiter code ";".
”, branch information (m or C), item name, etc. are provided. Note that there is as much item information (branch information and item name) as there are items, and the branch information defines the menu type of the corresponding item name, and is an execution menu for executing the corresponding processing program by selecting the menu. If so, the branch information will be "C", and if it is a selection menu for selecting an execution menu, the branch information will be rmJ. In other words, the branch information rmJ indicates that a lower menu exists.

枝情報rcJは下位メニュが存在しないことを示す、こ
のように構成されたレコード内容にしたがって第4Fi
!Jに示す様なメニュ画面がCRT表示部13から表示
出力される。
The branch information rcJ is the 4th Fi according to the record contents configured in this way, which indicates that there is no lower menu.
! A menu screen as shown in J is displayed and output from the CRT display unit 13.

ファイルB16はファイルA15の内容を予め決められ
ている規則にしたがってソートされた後のデータを記憶
するもので、ソート処理部17はファイルA15内の各
レコードをそのキーコードに基づいてソートし、ファイ
ルB16に書き込む、この場合、ソート処理部17はワ
ークメモリ18を用いてソート処理を実行する。なお、
ワークメモリ18は後述する各種パラメータを記憶する
Cレジスタ、Dレジスタを有する構成となっている。
The file B16 stores data after the contents of the file A15 have been sorted according to predetermined rules, and the sort processing unit 17 sorts each record in the file A15 based on its key code, In this case, the sort processing unit 17 uses the work memory 18 to perform sort processing. In addition,
The work memory 18 has a C register and a D register for storing various parameters to be described later.

ここで、第5図はソートされる前のファイルA15の内
容とソートされた後のファイルB16の内容を示し、ソ
ート処理部17は次の規則にしたがってソート処理を実
行する。
Here, FIG. 5 shows the contents of the file A15 before being sorted and the contents of the file B16 after being sorted, and the sorting processing section 17 executes the sorting process according to the following rules.

規則(1) キーワードの桁数同士が等しい場合つまり、キーワード
が同一の階層レベルを定義する場合にはワード内容の値
が小さいものを優先する0例えば、キーワードrl m
l、「12」、「13」ではキーワードr11」、「1
2」、r13J(7)Illにソートされる。
Rule (1) When the number of digits of the keywords is the same, that is, when the keywords define the same hierarchy level, the one with the smaller value of the word content is given priority 0 For example, the keyword rl m
l, "12", "13", keyword r11", "1
2'', r13J(7)Ill.

規則(2〕 キーワードの桁数が異なる場合には、桁数の小さいキー
ワードに着目し、その桁数の範囲内においてその値が同
一であれば、桁数の小さい方のキーワードを優先させる
0例えば、キーワードrl IJ、1112Jではキー
ワードrl IJ ニ着目し、その桁数の範囲内におい
てその値「ll」が他のキーワードrl12Jの対応す
る範囲内の値「11」と同一である為、桁数の小さいキ
ーワード「11」が優先される。
Rule (2) If the number of digits of the keywords is different, focus on the keyword with the smaller number of digits, and if the values are the same within the range of the number of digits, give priority to the keyword with the smaller number of digits0. , keyword rl IJ, 1112J focuses on the keyword rl IJ 2, and the value "ll" within the range of the number of digits is the same as the value "11" within the corresponding range of the other keyword rl12J, so the number of digits is Priority is given to the smaller keyword "11".

規則(3) 更にキーワードの桁数が異なる場合1桁数の小さいキー
ワー ドに着目し、その桁数の範囲内においてその値が
相違するものであれば、値の小さい方のキーワードを優
先させる0例えば、キーワード「13」、rl12Jで
はキーワード「13」に着目し、その桁数の範囲内にお
いてそり値「13」が他のキーワードrl12」の対応
する範囲内の値「11」と相違する為、値の小さいキー
ワード「13」が優先される。
Rule (3) Furthermore, if the number of digits of the keywords differs, focus on the keyword with the smallest number of digits, and if the values differ within the range of the number of digits, give priority to the keyword with the smaller value. For example, for the keyword "13" and rl12J, focus on the keyword "13", and because the warp value "13" is different from the value "11" within the corresponding range of the other keyword "rl12" within the range of the number of digits, Priority is given to the keyword “13” with the smaller value.

座標配置処理部19はファイルB16内のキーワードを
配置テーブルメモリ20に配置するもので、その際、座
標配置処理部19はワークメモリ21を用いて配置処理
を実行する。
The coordinate arrangement processing section 19 arranges the keywords in the file B16 in the arrangement table memory 20. At this time, the coordinate arrangement processing section 19 executes the arrangement processing using the work memory 21.

ここで、第6図は配置テーブルメモリ20の構成を示し
、xY座標に対応して8×4のマトリックス状に構成さ
れたもので、そのY軸方向は階層方向に対応し、X軸方
向は階層方向と直交する方向に対応している。
Here, FIG. 6 shows the configuration of the arrangement table memory 20, which is configured in an 8×4 matrix corresponding to the xY coordinates, the Y axis direction corresponds to the hierarchy direction, and the X axis direction corresponds to the hierarchy direction. It corresponds to the direction perpendicular to the hierarchy direction.

このように構成された配置テーブルメモリ20内にキー
ワードを配置する際、座標配置処理部19はキーワード
の桁数等を解析することによってキーワードを木構造の
イメージ通りに分散配置する基本配置処理を実行したの
ち、配置テーブルメモリ20内に基本配置されたキーワ
ードを一定の規則にしたがってX軸の上位座標方向(第
6図中左方向)に集約して再配置する再配置処理を実行
する。
When arranging keywords in the arrangement table memory 20 configured in this manner, the coordinate arrangement processing unit 19 executes basic arrangement processing to distribute and arrange the keywords according to the image of the tree structure by analyzing the number of digits of the keywords, etc. Thereafter, a relocation process is executed in which the keywords basically arranged in the arrangement table memory 20 are aggregated and rearranged in the upper coordinate direction of the X axis (leftward in FIG. 6) according to a certain rule.

なお、第7図は基本配置された配置テーブルメモリ20
の内容を示し、キーワードは木構造の上下関係および左
右関係に応じて配置される。第8図は再配置された配置
テーブルメモリ20の内容を示し、木構造の上下関係や
左右関係を崩さずに、左側に空き領域がある場合にはそ
の右側に配置されているキーワードは一定の規則にした
がって左側にシフトされる。
Note that FIG. 7 shows the basically arranged arrangement table memory 20.
The keywords are arranged according to the vertical and horizontal relationships of the tree structure. FIG. 8 shows the contents of the rearranged arrangement table memory 20. If there is an empty space on the left side, the keywords placed on the right side are fixed without breaking the vertical or horizontal relationship of the tree structure. Shifted to the left according to the rules.

ここで、再配置処理は次の規則にしたがって実行される
Here, the relocation process is executed according to the following rules.

規則(1) 配置テーブルメモリ20内に基本配置された任意のキー
ワードに着目し、そのキーワードの左隣りにキーワード
が記憶されていないこと、つまり、左隣りが空き領域で
あれば、着目位置の真下にキーワードが記憶されていな
いことを条件に。
Rule (1) Focusing on an arbitrary keyword basically arranged in the arrangement table memory 20, if no keyword is stored to the left of the keyword, that is, if the left neighbor is a free space, then the keyword is placed directly below the position of interest. provided that no keywords are memorized.

当該着目位置のキーワードを左隣りの空き領域にシフト
する。
Shift the keyword at the target position to the adjacent empty area on the left.

規則(2) 配置テーブルメモリ20内に基本配置された任意のキー
ワードに着目し、そのキーワードの左隣りが空き領域で
あっても、その真下にキーワードが存在する場合には、
着目位置を1段下にずらす、この場合、左隣りと真下が
夫々空き領域となるまで着目位置を1段ずつずらしてゆ
き、左隣りと真下が夫々空き領域となったら最初の着目
位置のキーワードを左隣りの空き領域にシフトする。
Rule (2) Focusing on an arbitrary keyword basically arranged in the arrangement table memory 20, even if the left side of the keyword is a free space, if there is a keyword directly below it,
Shift the focus position down one step. In this case, shift the focus point one step at a time until the left and right below areas are empty, respectively. When the left and right below areas are empty, select the keyword for the first focus position. Shift to the adjacent free space on the left.

規則(3) 上述のようにして左シフトした場合、その右側にキーワ
ードがあればその全てを1座標分左シフトする。
Rule (3) When a keyword is shifted to the left as described above, if there is a keyword on the right side, all keywords are shifted to the left by one coordinate.

なお、ワークメモリ21には後述する各種のパラメータ
を記憶するXレジスタ、又レジスタ、Xmaw レジス
タ、l wax レジスタ、皇ルジスタが設けられてい
る。
Note that the work memory 21 is provided with an X register for storing various parameters to be described later, as well as registers, an Xmaw register, an l wax register, and a register.

ブロー2り配置処理部22は配置テーブルメモリ20内
に再配置されたキーワードを読み出すと共に、このキー
ワードに対応するレコードをファイルB16から読み出
してページメモリ23に転送するが、その際、ブロック
配置処理部22は当該キーワードが記憶されている配置
テーブルメモリ20内の座標位置に基づいてそのレコー
ド内容をブロック配置処理部22内の対応座標位置に書
き込む、また、ブロック配置処理部22はレコード内容
をブロック配置する為の配置パターンを作成し、ページ
メモリ23に書き込む。
The blow 2 placement processing unit 22 reads the keyword rearranged in the placement table memory 20, and also reads the record corresponding to this keyword from the file B16 and transfers it to the page memory 23. At this time, the block placement processing unit 22 writes the record content to the corresponding coordinate position in the block placement processing unit 22 based on the coordinate position in the placement table memory 20 where the keyword is stored, and the block placement processing unit 22 writes the record content to the block placement processing unit 22. A layout pattern is created and written into the page memory 23.

第9図はこのブロック配置パターンの基本構成図で、こ
の基本パターンは上位階層と連結する上結線パターンと
、レコード内容が配置されるブロックエリアパターンと
、下位階層と連結する下結線パターンとから構成されて
いる。なお、上結線パターンと下結線パターンとは必要
に応じて作成される。
Figure 9 is a basic configuration diagram of this block arrangement pattern. This basic pattern consists of an upper connection pattern that connects to the upper layer, a block area pattern where record contents are placed, and a lower connection pattern that connects to the lower layer. has been done. Note that the upper connection pattern and the lower connection pattern are created as necessary.

なお、ブロック配置処理部22はワークメモリ21.2
4を用いてブロック配置処理を実行する。ワークメモリ
24には後述する各種パラメータを記憶するにレジスタ
、Xルジスタ、Lレジスタ、Rレジスタを有する構成と
なっている。
Note that the block placement processing unit 22 uses a work memory 21.2.
4 to execute block placement processing. The work memory 24 has a register, an X register, an L register, and an R register for storing various parameters to be described later.

ページメモリ23は印字データを1ペ一ジ分記憶するも
ので、ブロック配置処理部22によって作成された木構
造のメニュリストは、印字部14から印字出力される。
The page memory 23 stores print data for one page, and the tree-structured menu list created by the block arrangement processing section 22 is printed out from the printing section 14.

なお、第1θ図はメニュリストの印刷例を示している。Note that FIG. 1θ shows an example of printing the menu list.

次に、本実施例の動作を第11図〜第18因に基づいて
説明する。
Next, the operation of this embodiment will be explained based on FIGS. 11 to 18.

動作概要 第11図はキー人力部12からのメニュリスト出力指令
に応答して実行開始され、階層レコード配置装置の動作
概要を示したゼネラルフローチャートである。
Outline of Operation FIG. 11 is a general flowchart showing an outline of the operation of the hierarchical record arrangement device, which is started in response to a menu list output command from the key human power section 12.

いま、ファイルA15には予め階層メニュ内容として第
3図で示した様なデータが記憶されているものとする。
Now, it is assumed that data as shown in FIG. 3 is stored in advance in the file A15 as hierarchical menu contents.

先ず、メニュリストの出力指令に応答してソート処理部
17が起動し、ファイルA15内の各レコードを予め決
められた上述の規則(1)、(2)、(3)にしたがっ
てキー順にファイルB16へソートする(ステップA)
First, in response to a menu list output command, the sort processing unit 17 is activated, and the records in the file A15 are sorted into the file B16 in key order according to the above-determined rules (1), (2), and (3). Sort into (Step A)
.

次に、座標配置処理部19が起動し、基本配置処理を実
行し、ファイル816内のキーワードを配置テーブルメ
モリ20へ基本配置する(ステップB)、その後、座標
配置処理部19は再記M熱理を実行し、配置テーブルメ
モリ20内のキーワードを一定の規則にしたがって再配
置する(ステップC)。
Next, the coordinate arrangement processing unit 19 starts up, executes basic arrangement processing, and basically arranges the keywords in the file 816 in the arrangement table memory 20 (step B). The keywords in the arrangement table memory 20 are rearranged according to a certain rule (step C).

このようにして配置テーブルメモリ20内にキーワード
が配置されると、ブロック配置処理部22の内容を参照
し、ページメモリ23内へレコード内容をブロック配置
すると共に配置パターンを作成しながら各ブロックを結
線する処理を実行する(ステップD)。
When the keyword is arranged in the arrangement table memory 20 in this way, the contents of the block arrangement processing section 22 are referred to, and the record contents are arranged in blocks in the page memory 23, and each block is connected while creating an arrangement pattern. (Step D).

その後、ページメモリ23内のデータを印字部14から
印字出力させる(ステップE)。
Thereafter, the data in the page memory 23 is printed out from the printing unit 14 (step E).

以下、上述した各処理(ステップA、B、C1D)を第
12図〜第15図を参照して詳述する。
Hereinafter, each of the above-mentioned processes (steps A, B, C1D) will be explained in detail with reference to FIGS. 12 to 15.

’/−に1コ 第12図はソート処理部17の動作を示したフローチャ
ートである。
'/- 1 column FIG. 12 is a flowchart showing the operation of the sort processing section 17.

先ず、ワークメモリ18内のDレジスタ、Cレジスタに
初期値「1」を設定する(ステップA1、A2)、なお
、Dレジスタはキーワードの桁数、Cレジスタはそのワ
ード内容を指定するレジスタである。
First, the initial value "1" is set in the D register and C register in the work memory 18 (steps A1 and A2).The D register is a register that specifies the number of digits of the keyword, and the C register is a register that specifies the word content. .

このようにDレジスタ、Cレジスタの値を初期設定した
ら、ステップA3に進み、ファイルAlS内のレコード
を全てファイルB16へ転送したか否か、つまりファイ
ルA15内に未転送レコードが残っているか否かをチエ
ツクする。最初はレコード有りが検出されるので、ステ
ップA9に進みDレジスタ内のデータ(Dの内容)と一
致すると共にCレジスタ内の桁数(0桁)を持ったキー
ワードのレコードをファイルA15からサーチする。こ
の場合、Dの内容と0桁は共にrl」、l、たがって、
キーワード「1」のレコードをファイルA15からサー
チする。この結果。
After initializing the values of the D register and C register in this way, proceed to step A3 and check whether all records in the file AlS have been transferred to the file B16, that is, whether there are any untransferred records remaining in the file A15. Check. At first, the presence of a record is detected, so proceed to step A9 and search for a record of the keyword that matches the data in the D register (contents of D) and has the number of digits in the C register (0 digits) from file A15. . In this case, the contents of D and the 0 digit are both rl'',l, so,
A record with keyword "1" is searched from file A15. As a result.

該当レコード有りが検出される(ステップA5)、この
場合、該当レコードはファイルA15内に複数存在しな
い為、ステップA6でそのことが検出されてステップA
8に進み、サーチされたレコードをファイルAからファ
イルBへ転送する。これによってファイルB16の先頭
にはキーワードrlJのレコードが書き込まれる(第5
図参照)。
The presence of the corresponding record is detected (step A5). In this case, since there are no multiple corresponding records in the file A15, this is detected in step A6 and the process proceeds to step A.
Step 8 transfers the searched record from file A to file B. As a result, a record with keyword rlJ is written at the beginning of file B16 (fifth record).
(see figure).

このようにしてlレフ−1分のデータ転送が終ったら、
Dレジスタ、Cレジスタの値を更新する為に、転送レコ
ードのキーワードをDレジスタにセットしくステップA
9)、またCレジスタの値にrlJを加算する(ステッ
プAl0)。
Once the data transfer for 1 ref is completed in this way,
In order to update the values of the D register and C register, set the keyword of the transfer record to the D register.Step A
9), and rlJ is added to the value of the C register (step Al0).

そして、ステップAllに進み、ファイルAlS内に未
転送のレコードが残っているかをチエツクするが、いま
レコード有りが検出される為、上位桁にDの内容を含む
0桁を持ったキーワードのレコードをファイルA15か
らサーチする(ステップA12)、この場合、Dの内容
はrlJ、0桁はr2J、したがってキーワードrl 
IJ、rl2」、「13」のレコードがサーチされる。
Then, proceeding to step All, it is checked whether there are any records that have not been transferred in the file AlS, but since the presence of records is detected, a record with a keyword that has a 0 digit containing the content of D in the upper digits is selected. Search from file A15 (step A12), in this case, the content of D is rlJ, the 0 digit is r2J, so the keyword rl
Records of "IJ, rl2" and "13" are searched.

したがって、ステップA5で該当レコード有り、ステッ
プA6で複数レコード有りが検出される為、ステップA
7に進み、複数の該当レコードのうちキーワードの値が
小さい方のレコード、即ち、キーワードrl IJのレ
コードをファイルA15からファイルB16へ転送する
Therefore, since the presence of a corresponding record is detected in step A5 and the presence of multiple records is detected in step A6, step A
Proceeding to step 7, the record with the smaller keyword value among the plurality of corresponding records, that is, the record with the keyword rl IJ is transferred from the file A15 to the file B16.

そして、Dレジスタ、Cレジスタの値を更新し、その結
果、Dレジスタの値はrll」、Cレジスタの値は「3
」となる(ステップA9、A10)。
Then, the values of the D register and C register are updated, and as a result, the value of the D register is "rll", and the value of the C register is "3".
” (Steps A9 and A10).

したがって、今度は上位桁にrl IJを含む3桁のキ
ーワードを持ったレコードをファイルA15からサーチ
する(ステップA12)、この場合、キーワードrl 
11J、rl12JのレコードがファイルA15内に存
在する為、キーワードの値が小さい方、つまり、キーワ
ードrl 11」のレコードがファイル816へ転送さ
れる(ステップA7)。
Therefore, this time, the file A15 is searched for a record with a 3-digit keyword including rl IJ in the upper digits (step A12). In this case, the keyword rl
11J and rl12J exist in the file A15, the record with the smaller keyword value, that is, the record with the keyword "rl 11" is transferred to the file 816 (step A7).

次に、レジスタDの値はrlllJ、Cレジスタの値は
rAJに更新されるが(ステップA9、Al0)、この
条件下でファイルA15をサーチしても上位桁にrl 
l IJを含む4桁のキーワードはファイルA15内に
存在しない為、ステップA5で該当レコード無しが検出
されてステップA13に進み、Dレジスタの内容rl 
11Jから最下位桁の値を削除する。そして、Cレジス
タの値から「1」を減算する(ステップA14)、この
結果、Cレジスタの値はrll」、Cレジスタの値は「
3」にデクリメントされる。
Next, the value of register D is updated to rlllJ, and the value of register C is updated to rAJ (steps A9, Al0), but even if file A15 is searched under this condition, the upper digits will be rlllJ.
l Since the 4-digit keyword including IJ does not exist in file A15, no corresponding record is detected in step A5, and the process proceeds to step A13, where the contents of the D register rl
Delete the value of the least significant digit from 11J. Then, "1" is subtracted from the value of the C register (step A14). As a result, the value of the C register is "rll", and the value of the C register is "
It is decremented to 3.

その後、ステップAllに進むがファイルAlS内には
未転送レコードが残っているので、ステップA12に進
み、上位桁に「11」を含む3桁のキーワードを持った
レコードをサーチする。
Thereafter, the process proceeds to step All, but since untransferred records remain in the file AlS, the process proceeds to step A12 to search for a record with a three-digit keyword including "11" in the upper digits.

この場合、その条件に該当するレコードとしてファイル
A15にはキーワードrl12Jのレコードが残ってい
るので、これをファイルB16へ転送する(ステップA
8)、この時点でキーワードrlJ、「11」、rl 
11J、「112」の順序でファイルB16内には対応
する各レコードが記憶される(第5図参照)。
In this case, the record with the keyword rl12J remains in file A15 as a record that meets that condition, so this is transferred to file B16 (step A
8), At this point, the keyword rlJ, "11", rl
Corresponding records are stored in the file B16 in the order of "11J" and "112" (see FIG. 5).

以下、同様に、Cレジスタ、Cレジスタの値を更新しく
ステップA9、Al0)、その更新結果に基づいてファ
イルA15をサーチするが(ステップA12)、上位桁
にrl12Jを含む4桁のキーワードを持ったレコード
はファイルAlS内に存在しない為、Cレジスタ、Cレ
ジスタの値をデクリメントしてサーチ条件を変更する(
ステップA13、A14)、この結果、Cレジスタの値
はrll」、Cレジスタの値は「3」となるが、このサ
ーチ条件を満足するレコードは既にファイルB16へ転
送法であり、ファイルAlS内には存在しない為、更に
、Cレジスタ、Cレジスタの値をデクリメントし、Cレ
ジスタの値をrlJ、Cレジスタの値を「2」に変更す
る。
Similarly, the values of the C register and the C register are updated in steps A9 and Al0), and the file A15 is searched based on the update results (step A12), but it has a 4-digit keyword containing rl12J in the upper digits. Since the recorded record does not exist in the file AlS, change the search conditions by decrementing the values of the C register and C register (
Steps A13 and A14), as a result, the value of the C register is "rll" and the value of the C register is "3", but the record that satisfies this search condition has already been transferred to the file B16 and is stored in the file AlS. Since this does not exist, the values of the C register and the C register are further decremented, and the value of the C register is changed to rlJ and the value of the C register is changed to "2".

これによって、今度は上位桁にrlJを含む2桁のキー
ワードを持ったレコードをファイルAlS内からサーチ
するが(ステップA12)、この場合、ファイルAlS
内にはキーワード「12」、「13」のレコードが存在
する為、その値の小さいキーワード「12」のレコード
をファイルB16へ転送する。
As a result, a record with a two-digit keyword including rlJ in the upper digits is searched from within the file AlS (step A12), but in this case, the file AlS
Since there are records with the keywords "12" and "13" in the file, the record with the keyword "12" having the smaller value is transferred to the file B16.

更に、上述と同様にCレジスタ、Cレジスタの値を更新
しながらファイルA15をサーチしてゆくか、キーワー
ド「12」のレコードには下位メニュとなるレコードは
存在しない為、Cレジスタの値がrlJ、Cレジスタの
値が「2ノとなるまでステップA13.A14が繰り返
される。
Furthermore, either the C register and the file A15 are searched while updating the values of the C register as described above, or the value of the C register is changed to , Steps A13 and A14 are repeated until the value of the C register becomes "2".

これによって、ファイルA15内に残っているキーワー
ド「13」のレコードがそのサーチ条件を満足する様に
なる為、この時点で当該レコードがファイルB16へ転
送される。
As a result, the record with the keyword "13" remaining in the file A15 satisfies the search condition, so at this point the record is transferred to the file B16.

その後、Cレジスタ、Cレジスタの値を更新することに
よってキーワード「13」のレコードに対して下位メニ
ュとなる各レコード、つまり、キーワードrl 31J
、r133Jのレコードが順次ファイルB16へ転送さ
れる。
After that, by updating the values of C register and C register, each record that becomes a lower menu for the record of keyword "13", that is, keyword rl 31J
, r133J are sequentially transferred to file B16.

したがって、第5図に示す如くファイルA15内の各レ
コードは上述した規則(1)、(2)、(3)にしたが
って並べ換えられてファイルB16へ転送される為、フ
ァイルB16内の各レコードは木構造の形に即した規則
性を持った配列構造となる。
Therefore, as shown in FIG. 5, each record in file A15 is rearranged according to rules (1), (2), and (3) mentioned above and transferred to file B16, so each record in file B16 is a tree. The result is an array structure with regularity that matches the shape of the structure.

基オj11良! 第13図は座標配置処理部19の基本配置処理を示した
フローチャートである。
Basic oj11 good! FIG. 13 is a flowchart showing the basic arrangement processing of the coordinate arrangement processing section 19.

先ず、ファイル816から先頭キーワードrlJを読み
出す(ステー、プBl)、そして、ワークメモリ21内
のXレジスタに初期値「l」、交レジスタにファイル8
16から読み出したキーワードの桁数rlJをセットす
る(ステップB2)、この場合、皇レジスタは配置テー
ブルメモリ20のY方向の座標位置、つまり、階層方向
の座標位置、Xレジスタは配置テーブルメモリ20のX
方向の座標位置、つまり階層方向と直交する方向の座標
位置がセットされるレジスタである。
First, the first keyword rlJ is read from the file 816 (step, step Bl), and the initial value "l" is stored in the X register in the work memory 21, and the file 8 is stored in the cross register.
The number of digits rlJ of the keyword read from 16 is set (step B2). In this case, the imperial register is the coordinate position in the Y direction of the layout table memory 20, that is, the coordinate position in the hierarchy direction, and the X register is the coordinate position in the layout table memory 20. X
This is a register in which the coordinate position in the direction, that is, the coordinate position in the direction perpendicular to the hierarchy direction, is set.

このようにXレジスタ、皇レジスタの値を初期設定した
ら、ステップB3に進み、Xレジスタ、皇レジスタの値
に対応する配置テーブルメモリ20の座標位置(x、交
)、つまり(1,1)にファイルB16から読み出した
キーワードrlJを配置する(第7図参照)。
After initializing the values of the X register and the Emperor register in this way, proceed to step B3, and set the coordinate position (x, intersection) of the arrangement table memory 20 corresponding to the value of the X register and the Emperor register, that is, (1, 1). The keyword rlJ read from the file B16 is arranged (see FIG. 7).

そして、このキーワードに対応するレコードをファイル
B16から読み出し、そのレコード内の枝情報を識別し
くステップB4)、レコード内に1つでも枝情報m(下
位メニュが存在することを示す情報)が含まれているか
否かをチエツクする(ステップB5)、いま、キーワー
ド「1」のレコードには枝情報rmJが含まれ、そのレ
コードには、下位メニュが存在する為、ファイルB16
から次のキーワードrl IJを読み出しくステップB
6)、そのキーワードの桁数「2」を見レジスタにセッ
トして交レジスタの値を更新し、階層レベルを1段下げ
る(ステップB7)。
Then, the record corresponding to this keyword is read from the file B16 and the branch information in the record is identified (Step B4). (step B5).Currently, the record with keyword "1" includes branch information rmJ, and since there is a lower menu in that record, file B16
Step B: Read the next keyword rl IJ from
6) The number of digits of the keyword "2" is set in the register, the value of the cross register is updated, and the hierarchy level is lowered by one level (step B7).

その後、Xレジスタの値を変更せずにステップB3に戻
る為、今度は配置テーブルメモリ20の座標位W(1,
2)にキーワードrll」が配置される。
After that, in order to return to step B3 without changing the value of the X register, this time the coordinate position W(1,
2), the keyword "rll" is placed.

この場合、キーワードrl IJのレコードにも枝情報
r m Jが含まれているので(ステップB4、B5)
、lレジスタの更新を行う為にファイルB16から次の
レコードrl 11」を読み出してその桁数「3」を又
レジスタにセットする(ステップB6、B7)、これに
よって、キーワードrl 11Jが配置テーブルメモリ
20の座標位置(l、3)に配置される(ステップB3
)。
In this case, the record for the keyword rl IJ also includes branch information r m J (steps B4 and B5).
, In order to update the l register, read the next record "rl 11" from file B16 and set the number of digits "3" in the register again (steps B6 and B7). As a result, the keyword rl 11J is stored in the arrangement table memory. 20 coordinate position (l, 3) (step B3
).

この結果、第7図に示す如く配置テーブルメモリ20の
X座標rlJ上にはキーワード「1」、rl IJ 、
rl 11Jが階層方向に順次配置される。
As a result, as shown in FIG. 7, the keyword "1", rl IJ,
rl 11J are arranged sequentially in the hierarchy direction.

ここで、キーワードrl 11Jのレコード内には枝情
報rmJが1つも含まれていないので、ステップB8に
進み、Xレジスタの値にrlJを加算してX座標値の更
新を行う、これによってXレジスタの値は「2」となる
Here, since the record of the keyword rl 11J does not contain any branch information rmJ, the process advances to step B8, and the X coordinate value is updated by adding rlJ to the value of the X register. The value of is "2".

そして、ファイル816から次のキーワードrl12J
を読み出しくステップB9)、ファイルB16内のキー
ワードを全て配置済か否かを調べるが(ステップBIO
)、まだ配置済ではないので、ステップBllに進み、
ファイルB16から読み出したキーワードの桁数とりレ
ジスタの値とを比較する。ここで、キーワードの桁数は
r3」、lレジスタの値はr3」、したがって両者の一
致が検出される為、ステップB3に進む。
Then, from file 816, the next keyword rl12J
(Step B9), it is checked whether all the keywords in the file B16 have been arranged (Step B9).
), it has not been placed yet, so proceed to step Bll,
The value of the keyword digit count register read from file B16 is compared. Here, the number of digits of the keyword is "r3" and the value of the l register is "r3", so a match between the two is detected, and the process proceeds to step B3.

これによってキーワードrl12Jは配置テーブルメモ
リ20の座標位置(2,3)に配置される。この場合、
キーワードrl12」のレコードには枝情報「m」が含
まれていないので、Xレジスタの値を更新する(ステッ
プB8)。
As a result, the keyword rl12J is placed at the coordinate position (2, 3) of the placement table memory 20. in this case,
Since the record for the keyword "rl12" does not include the branch information "m", the value of the X register is updated (step B8).

そして、ファイルB16から次のキーワード「12」を
読み出すが(ステップB9)、この場合、キーワードの
桁数「2」と交レジスタの値「3」との不一致が検出さ
れる為1文レジスタにキーワード「12」の桁数をセッ
トする(ステップB7)、これにより、キーワード「1
2」は配置テーブルメモリ20の座標位置(3,2)に
配置される(ステップB3)。
Then, the next keyword "12" is read from file B16 (step B9), but in this case, a mismatch between the number of digits of the keyword "2" and the value "3" of the cross register is detected, so the keyword is stored in the 1-sentence register. Set the number of digits for "12" (step B7), thereby setting the number of digits for "12".
2'' is placed at the coordinate position (3, 2) of the placement table memory 20 (step B3).

以下、同様の動作が実行されることにより、ファイルB
16内のキーワードは第7図に示す如く配置テーブルメ
モリ20内に配置される。
Below, by performing the same operation, file B
The keywords in 16 are arranged in the arrangement table memory 20 as shown in FIG.

このようにしてファイルB16内のキーワードを全て配
置テーブルメモリ20内に配置し終ったら、ステップA
IOでそのことが検出されてステップA12に進み、配
置テーブルメモリ20内に基本配置されたキーワードの
配置領域を特定する為に、その領域のX方向の最大座標
値をワークメモリ21内の41 wax レジスタにセ
ットし、またその配置領域のY方向の最大座標値を検出
してワークメモリ21内のRmax レジスタにセット
する。なお、 nmaw レジスタの値は現在のXレジ
スタの値から「1」を減算することによって求められる
After all the keywords in the file B16 have been arranged in the arrangement table memory 20 in this way, step A
This is detected by the IO, and the process proceeds to step A12. In order to specify the placement area of the keyword basically placed in the placement table memory 20, the maximum coordinate value in the X direction of that area is set to 41 wax in the work memory 21. The maximum coordinate value of the arrangement area in the Y direction is detected and set in the Rmax register in the work memory 21. Note that the value of the nmaw register is obtained by subtracting "1" from the current value of the X register.

再配置処理 第14図は座標配置処理部19の再配置処理を示したフ
ローチャートである。
Relocation Processing FIG. 14 is a flowchart showing the relocation processing of the coordinate placement processing section 19.

先ず、Xレジスタ、交レジスタに初期値rlJをセット
する(ステップC1、C2)、そして、このXレジスタ
、交レジスタの値に対応する配置テーブルメモリ20の
座標位置を指定し、その指定エリアに対してデータ読み
出しを行い(ステップC3)、それがキーワードか否か
を調べる(ステップC4)。
First, the initial value rlJ is set in the X register and the cross register (steps C1 and C2), and then the coordinate position of the arrangement table memory 20 corresponding to the value of the X register and the cross register is specified, and the The data is read out (step C3), and it is checked whether it is a keyword (step C4).

いま、キーワードrlJが読み出される為、その座標位
置の左隣りにキーワードが記憶されているかをチエツク
する(7テツプC5、C6)、即ち、Xレジスタの値か
ら「1ノを減算した値とlレジスタの値によって指定さ
れる配置テーブルメモリ20の座標位置(x−1、文)
からデータを読み出しくステップC5)、それがキーワ
ードか否かを調べる(ステップC6)、最初はキーワー
ド有りとみなし、Xレジスタとl wax レジスタと
を比較する(ステップC7)、この場合、両者の不一致
が検出される為、ステップC8に進み、Xレジスタの値
にrlJを加算してX座標値の更新を行ったのち、ステ
ップC2に戻る。即ち、着目位置の左隣りもキーワード
が有れば、その下にキーワードが有るか否かに拘らず当
該位置のX座標上に配置されている全てのキーワード「
1」、「11」、rl 11Jをその位置に残したまま
X座標を更新する。
Now, since the keyword rlJ is read out, it is checked whether the keyword is stored to the left of the coordinate position (7 steps C5 and C6). The coordinate position of the arrangement table memory 20 specified by the value of (x-1, sentence)
Step C5) to read data from , check whether it is a keyword (step C6), assume that the keyword exists at first, and compare the X register and l wax register (step C7), in this case, there is a mismatch between the two is detected, the process proceeds to step C8, where rlJ is added to the value of the X register to update the X coordinate value, and then the process returns to step C2. In other words, if there is a keyword to the left of the position of interest, all the keywords located on the X coordinate of the position are
1", "11", rl Update the X coordinate while leaving 11J at that position.

これによって1着目位置がX方向に1座標分移行し、今
度は配置テーブルメモリ20の座標位置(2,1)が指
定されてデータ読み出しが行われる(ステップC3)、
この場合、当該、位置にはキーワードが記憶されていな
いので、ステップ018に進み、文レジスタの値にrl
Jを加算してその更新を行ったのちステップC3に戻る
。すると、配置テーブルメモリ20の座標位置(2,2
)が指定されるが、この位置にもキーワードが記憶され
ていない為、再び交レジスタの値を更新する(ステップ
C1B)。
As a result, the first position of interest is shifted by one coordinate in the X direction, and this time the coordinate position (2, 1) of the arrangement table memory 20 is specified and data reading is performed (step C3).
In this case, since no keyword is stored at the relevant position, the process proceeds to step 018 and the value of the sentence register is set to rl.
After adding J and updating it, the process returns to step C3. Then, the coordinate position (2, 2
) is specified, but since no keyword is stored in this position, the value of the cross register is updated again (step C1B).

この場合、配置テーブルメモリ20の座標位置(2,3
)にはキーワード「12」が記憶されているので、その
左隣りにもキーワードが記憶されているかを調べるが(
ステップC5、C6)、その位置(2,2)は空き領域
となっているので、今度はステップC9に進み、着目位
置の下にもキーワードが記憶されているか否かを調べる
(ステップC9、Cl0)。
In this case, the coordinate position (2, 3
) has the keyword "12" stored in it, so we check whether the keyword is also stored to the left of it (
Steps C5, C6), since the position (2, 2) is an empty area, the process now proceeds to step C9, and it is checked whether a keyword is also stored under the position of interest (steps C9, Cl0 ).

この場合、着目位置(3,2)の下、つまり座標位fi
(3,3)にはキーワードが記憶されていないので、ス
テップCI9に進み、着目位置のX座標上におけるキー
ワードを左隣りのX座標(X−1)上にシフトする。そ
して、X座41(X+l)よりも下位座標に存在するキ
ーワードを全てX座標の上位方向に1座標分シフトする
(ステー2プC20)、即ち、着目位置の右側に存在す
るキーワードの全てを1!W分左シフトする。
In this case, below the position of interest (3, 2), that is, the coordinate position fi
Since no keyword is stored at (3, 3), the process proceeds to step CI9 and shifts the keyword on the X coordinate of the position of interest to the adjacent X coordinate (X-1) on the left. Then, all the keywords existing at the lower coordinates than the X coordinate 41 (X+l) are shifted by one coordinate in the upper direction of the X coordinate (Step 2 C20), that is, all the keywords existing on the right side of the position of interest are shifted by 1 ! Shift left by W.

この時点で配置テーブルメモリ20の内容は第8図に示
す様に再配置され、配置領域は左側に圧縮されたものと
なる。即ち、基本配置された配置テーブルメモリ20内
のキーワードは、木構造の上下関係や左右関係を崩すこ
となく、その配置内容をX座標の上位方向に詰めた形で
再配置される為、配置領域の全体は左側に圧縮されたも
のとなる。
At this point, the contents of the arrangement table memory 20 are rearranged as shown in FIG. 8, and the arrangement area is compressed to the left. In other words, the basically arranged keywords in the arrangement table memory 20 are rearranged in such a way that the arrangement contents are packed in the upper direction of the X coordinate without destroying the vertical or horizontal relationship of the tree structure. The whole of is compressed to the left.

このような再配置によって配置領域が圧縮される為、次
のステップC21ではx tax レジスタの値からr
lJを減算する。そして、ステップC2に戻り、交レジ
スタに初期値rlJをセットする。したがって、今度は
配置テーブルメモリ20の座標位!!(3、l)が指定
されるが、その位置にはキーワードが存在しない為、X
レジスタの値を更新して1着目位置を下にずらす(ステ
ップCl8)、この場合、配置テーブルメモリ2oの着
目位置(3,2)には前回の再配置処理によってキーワ
ード「13」が記憶されているので、その左隣りに空き
領域があるかをチエツクするが(ステップC5、C6)
、左隣りには前回の再配置によってキーワード「12」
が記憶されている為、Xレジスタの値を更新する(ステ
ップC8)。
Since the arrangement area is compressed by such rearrangement, in the next step C21, r is calculated from the value of the x tax register.
Subtract lJ. Then, the process returns to step C2, and the initial value rlJ is set in the cross register. Therefore, this time the coordinate position of the arrangement table memory 20! ! (3, l) is specified, but since there is no keyword at that position,
The value of the register is updated and the first position of interest is shifted downward (step Cl8). In this case, the keyword "13" is stored in the position of interest (3, 2) of the arrangement table memory 2o due to the previous relocation process. Therefore, it is checked whether there is a free space to the left of it (steps C5 and C6).
, the keyword "12" is on the left side due to the previous rearrangement.
is stored, the value of the X register is updated (step C8).

以下、同様の動作をXレジスタの値がX□8の値に達す
るまで繰り返されるが、上述の例ではそれ以降に再配置
条件の成立箇所は存在しない為、Xレジスタの値が配置
領域の最大X座標値「4」に達したとき再配置処理は終
了する。
Below, the same operation is repeated until the value of the X register reaches the value of The relocation process ends when the X coordinate value "4" is reached.

なお、第16図、第17図は再配置処理において、上述
した例では存在しない他の動作を説明する為の図である
Note that FIGS. 16 and 17 are diagrams for explaining other operations that do not exist in the above example in the relocation process.

即ち、第16図、第17図は着目位置の左隣りには、キ
ーワードが無く(ステップC6でNo)、その下にはキ
ーワードが有る場合(ステップC10でYES)の具体
例で、キーワード「12」の座標位置が着目位置を示し
ている。この場合、着目位置を下にずらす為に、又レジ
スタの値にrlJを加算し、これをワークメモリ21内
のりルジスタにセットする(ステップC11) 、そし
て、この着目位置の左にキーワードが有るかを調べる(
ステップC12、C13)。
That is, FIGS. 16 and 17 are specific examples where there is no keyword to the left of the position of interest (No in step C6), but there is a keyword below it (YES in step C10). ” indicates the position of interest. In this case, in order to shift the position of interest downward, rlJ is added to the value of the register, and this is set in the register in the work memory 21 (step C11). Then, check whether there is a keyword to the left of this position of interest. investigate(
Steps C12, C13).

ここで、着目位置はキーワード「12」の座標位置から
キーワード「121」の座標位置に移されその左にはキ
ーワードrl12」が有る為、ステップC7に戻り、X
レジスタの更新を行って着目位置を変更する。
Here, the position of interest is moved from the coordinate position of the keyword "12" to the coordinate position of the keyword "121", and since the keyword "rl12" is on the left, the process returns to step C7 and
Update the register and change the position of interest.

したがって、第16図に示す場合には再配置処理は行わ
れない。
Therefore, in the case shown in FIG. 16, no relocation processing is performed.

一方、着目位置を下にずらしたときその左にもキーワー
ドがない場合には、即ち、第17図の具体例の場合には
、ステップC13でNOと判断される為、ステップC1
5に進み、更に着目位置を下にずらし、その位置にキー
ワードが有るかを調べる(ステップC17)、この場合
、キーワードrl 21Jの下は空き領域となっている
ので、ステー2プC19に進み、再配置処理を実行する
。この結果、第17図に示すキーワード「12」、rl
 21Jはその左の空領域にシフトされる。
On the other hand, if there is no keyword on the left when the focused position is shifted downward, that is, in the case of the specific example in FIG. 17, the determination in step C13 is NO, so step C1
Proceed to step 5, shift the focused position further down, and check whether there is a keyword at that position (step C17). In this case, there is an empty area under the keyword rl 21J, so proceed to step 2 C19. Execute relocation processing. As a result, the keyword "12" and rl shown in FIG.
21J is shifted to the empty area to its left.

ブロック配置処理 第15図はブロック配置処理部22の動作を示したフロ
ーチャートで、以下、第18図を参照して説明する。な
お、第18図はページメモリ23内にレコード内容が配
置される過程を示した図である。
Block arrangement processing FIG. 15 is a flowchart showing the operation of the block arrangement processing section 22, which will be explained below with reference to FIG. 18. Incidentally, FIG. 18 is a diagram showing a process in which record contents are arranged in the page memory 23.

先ス、ワークメモリ21内のXレジスタ、lレジスタに
初期値rlJをセットする(ステップDI、D2)、そ
して、このXレジスタ・交レジ7りの値によって示され
る配置テーブルメモリ20の座標位置(x、 fL)か
らデータを読み出しくステップD3)、それがキーワー
ドか否かを調べる(ステップD4)。
First, the initial value rlJ is set in the X register and l register in the work memory 21 (steps DI and D2), and the coordinate position ( Step D3) reads data from x, fL) and checks whether it is a keyword (Step D4).

いま、配置テーブルメモリ20の座標位置(1,l)か
らキーワード「1」が読み出されるので、ステップD8
に進むが、このキーワード「l」は最初に読み出された
ものである為、ステップD8でそのことが検出される。
Now, the keyword "1" is read from the coordinate position (1, l) of the arrangement table memory 20, so step D8
However, since this keyword "l" is read out first, it is detected in step D8.

すると、ページメモリ23上の対応座標位置に作成した
ブロックエリアパターンを配置出力する(ステップDI
O)、そして、このキーワードr14に対応するレコー
ド内容をファイルB16から読み出しくステップDll
)、ページメモリ23内のブロックエリアパターン内に
配置出力する(ステップD12)、第18図(1)はキ
ーワードrlJのレコード内容がページメモリ23内に
配置された状態を示している。
Then, the created block area pattern is placed and output at the corresponding coordinate position on the page memory 23 (step DI
O), and step Dll to read the record contents corresponding to this keyword r14 from file B16.
), are arranged and output in the block area pattern in the page memory 23 (step D12). FIG.

しかして、このレコードに対して下位メニュとなるレコ
ードのブロックエリア同士をページメモリ23内におい
て横方向に連結する為に、先ず。
First, in order to horizontally connect the block areas of records that are subordinate menus to this record in the page memory 23.

このキーワード「l」を配置テーブルメモリ20内のに
レジスタにセットしておく(ステラ7’D13)、そし
て、皇レジスタの値にrlJを加算してその値を更新す
ると共に配置テーブルメモリ20内のXルジスタに初期
値「1」をセットしておく(ステー2プ014)、ここ
で、Xルジスタはレコードブロック同士を横方向に連結
する為の横線パターンをどの範囲内に作成配置すべきか
を特定する為に用いられるもので、配置テーブルメモリ
20内のLレジスタは上述の横線パターンが描画される
左座標位置(始点位置)がセットされ、またRレジスタ
はその右座標位置(終点位置)がセットされるレジスタ
で、次のステップD15で各レジスタL、Hの内容が夫
々リセットされる。
This keyword "l" is set in the register in the arrangement table memory 20 (Stella 7'D13), and rlJ is added to the value in the arrangement table memory 20 to update the value. Set the initial value "1" to the X-register (Step 2 014). Here, the X-register specifies within which range a horizontal line pattern to connect record blocks horizontally should be created and placed. The L register in the arrangement table memory 20 is set to the left coordinate position (starting point position) where the horizontal line pattern described above is drawn, and the R register is set to its right coordinate position (end point position). In the next step D15, the contents of each register L and H are reset respectively.

このようにして各レジスタに所定値をセットしたら、X
ルジスタとりレジスタの値によって指定される配置テー
ブルメモリ20の座標位置(x’、見)からデータを読
み出しくステップD16)、それがキーワードか否かを
調べる(ステップD17)、いま、配置テーブルメモリ
20の座標位置(l、2)からキーワードrl IJが
読み出される為、ステップD20に進み、このキーデー
タとにレジスタの値とを比較し、Kレジスタの値がこの
キーワードの上位桁に含まれているか、つまり、両者が
上下関係にあるかを調べる。ここで、にレジスタの値は
rlJ、したがつてキーワードrl IJはキーワード
rlJに対して上下関係にある為、ステップD22に進
む、ここで、最初、Lレジスタはリセットされている為
、xルジスタの値rlJが横線パターンの始点位置座標
としてLレジスタにセットされる(ステップD23)、
そして、ページメモリ23上の座標位置(x、1−1)
、この場合、キーワード「1」のレコード内容がブロッ
ク配置されている位置に下結線パターンを配置出力する
(ステップD24)、その後、ステップD25に進み、
Xレジスタの値に「1」を加算したのち、ステップD1
6に戻る。
After setting the predetermined value in each register in this way,
Step D16) reads data from the coordinate position (x', see) of the layout table memory 20 specified by the value of the register register, and checks whether it is a keyword (step D17). Since the keyword rl IJ is read from the coordinate position (l, 2), the process advances to step D20, where this key data is compared with the value of the register, and it is determined whether the value of the K register is included in the upper digits of this keyword. In other words, check whether the two are in a hierarchical relationship. Here, the value of the register is rlJ, so the keyword rlIJ is in a vertical relationship with the keyword rlJ, so the process proceeds to step D22.Here, since the L register is initially reset, the The value rlJ is set in the L register as the starting point position coordinates of the horizontal line pattern (step D23).
Then, the coordinate position (x, 1-1) on the page memory 23
In this case, the lower connection pattern is placed and output at the position where the record content of the keyword "1" is placed in the block (step D24), and then the process proceeds to step D25.
After adding "1" to the value of the X register, step D1
Return to 6.

これによって今度は配置テーブルメモリ20の座標位置
(2,2)からキーワード「12」が読み出されるが(
ステップD16.017)、このキーワード「12」も
上位桁にrlJを含む為。
As a result, the keyword "12" is now read from the coordinate position (2, 2) of the arrangement table memory 20 (
Step D16.017), because this keyword "12" also includes rlJ in the upper digits.

ステップD22に進む、この場合、Lレジスタには「1
」が記憶されている為、Xルジスタの値「2」をRレジ
スタに横線パターンの終点位置座標としてセットする(
ステップD26)、そして、ステップD25でX レジ
スタの更新を行ったのちステップD16に戻る。ここで
、配置テーブルメモリ20の座標位置(2,3)から読
み出されたキーワード「13」も上位桁にrlJを含む
為、Rレジスタが更新されてその値は「3」となる(ス
テップD26)、更に、Xルジスタが更新されるが、配
置テーブルメモリ20の座標位置(4,2)にはキーワ
ードが記憶されていないので、ステップD18に進み、
Xルジスタの値がX may レジスタの値(最大X座
標値)に達したかを調べ、それ未満であれば更にXルジ
スタの更新を行うが(ステップD25)、達した場合に
は、ステップD19に進み、横線パターンを作成してペ
ージメモリ23内に配置出力する。この場合、座標立上
においてLレジスタの値を始点、Rレジスタの値を終点
とする2点間を結線する横線パターンを作成してページ
メモリ23内に配置する。第18図(2)はこの場合に
おけるページメモリ23の内容を示している。
Proceed to step D22. In this case, the L register contains "1".
" is stored, so set the value "2" of the X register to the R register as the end point position coordinates of the horizontal line pattern (
Step D26), and after updating the X register in step D25, the process returns to step D16. Here, since the keyword "13" read from the coordinate position (2, 3) of the arrangement table memory 20 also includes rlJ in the upper digits, the R register is updated and its value becomes "3" (step D26). ), the X register is further updated, but since no keyword is stored in the coordinate position (4, 2) of the arrangement table memory 20, the process proceeds to step D18.
It is checked whether the value of the X register has reached the value of the X may register (maximum X coordinate value), and if it is less than that, the X register is further updated (step D25). Then, a horizontal line pattern is created and arranged and output in the page memory 23. In this case, a horizontal line pattern connecting two points on the coordinate system, with the value of the L register as the starting point and the value of the R register as the ending point, is created and placed in the page memory 23. FIG. 18(2) shows the contents of the page memory 23 in this case.

その後、ステップD2に戻り、配置テーブルメモリ20
の座標位置(x、41)からデータを読み出してそれが
キーワードか否かを調べるが(ステップD3)、いま文
レジスタの値はr2J、Xレジスタの値はrl」、した
がって、配置テーブルメモリ20からキーワードrl 
IJが読み出される。この場合、ステップD9でページ
メモリ23上の座標対応位置に上鮎線パターンを配置出
力したのちブ′c1−/クエリアバターンを配置しくス
テップDIO)、このブロックエリア内にキーワードr
l IJのレコード内容を配置する(ステップD12)
、第18図(3)はこの場合におけるページメモリ23
の内容を示している。
After that, the process returns to step D2, and the arrangement table memory 20
The data is read from the coordinate position (x, 41) and checked to see if it is a keyword (step D3), but now the value of the sentence register is r2J, and the value of the X register is rl. Therefore, from the arrangement table memory 20 keyword rl
IJ is read. In this case, after placing and outputting the upper sweet line pattern at the coordinate corresponding position on the page memory 23 in step D9, the block 'c1-/query avatar is placed (step DIO), and the keyword r is placed in this block area.
l Arrange the record contents of IJ (step D12)
, FIG. 18(3) shows the page memory 23 in this case.
It shows the contents.

そして、上述と同様に各種レジスタ値のセット処理を行
う(ステップD13、D14、D15)、この場合、に
レジスタにはキーワードrllJ、Jルジスタにはr3
J、x’レジスタには「1」がセットされる。この結果
、配置テーブルメモリ20からキーワードrl 11J
が読み出され(ステップD16.017)、その上位桁
にはにレジスタの値F11ノが含まれているので(ステ
ップD20.D21)、先ず、Xルジスタの値rlJを
Lレジスタにセットしたのち。
Then, in the same way as described above, various register values are set (steps D13, D14, D15). In this case, the keyword rllJ is in the register, r3 is in the J
"1" is set in the J and x' registers. As a result, the keyword rl 11J is extracted from the arrangement table memory 20.
is read out (step D16.017), and since its upper digits include the value F11 of the register (steps D20 and D21), first, the value rlJ of the X register is set in the L register.

ページメモリ23上の座標対地位WC2、l)に下結線
パターンを配置する(ステップD23、D24)、そし
て、Xルジスタを更新することによって次に配置テーブ
ルメモリ20からキーワードrl12Jが読み出される
が、このキーワードにも上位桁にrlIJが含まれてい
るので、ステップD26でRレジスタにXルジスタの値
「2」をセットしたのち、xルジスタの更新を行う、す
ると、配置テーブルメモリ20からキーワードrl 3
1Jが読み出されるが、これは上位桁に「11」を含ま
ず、キーワードrl IJと上下関係に無い為、ステッ
プ021でそのことが検出されてステップ018に進み
、以下、Xルジスタの値がX may値に達するまでX
ルジスタの値を更新しながら上述の動作を繰り返す。
The lower connection pattern is arranged at the coordinate position WC2, l) on the page memory 23 (steps D23, D24), and the keyword rl12J is then read out from the arrangement table memory 20 by updating the X register. Since the keyword also includes rlIJ in the upper digits, the value of the
1J is read out, but since this does not include "11" in the upper digits and is not in a vertical relationship with the keyword rl IJ, this is detected in step 021 and the process proceeds to step 018, whereupon the value of the X register is X until may value is reached
The above operation is repeated while updating the value of the register.

この結果、Xルジスタの値が「5」となると、ステップ
D19に進み、見座標「3」上において、Lレジヌタ内
の始点位置「1」からRレジスタ内の終点位置「2」ま
での範囲内に横線パターンがページメモリ23内に配置
される。第18図(4)はこの場合におけるページメモ
リ23の内容を示している。
As a result, when the value of the X register becomes "5", the process proceeds to step D19, and on the viewing coordinate "3", within the range from the starting point position "1" in the L register to the ending point position "2" in the R register. A horizontal line pattern is arranged in the page memory 23. FIG. 18(4) shows the contents of the page memory 23 in this case.

その後、配置テーブルメモリ20からキーワードrl 
l IJが読み出され(ステップD2)、上結線パター
ン、ブロックエリアパターンと共に、そのレコード内容
がページメモリ23に配置される(ステップD9〜01
2、第18図(5)参照)、なお、この場合、キーワー
ドrl 11Jのレコードは最下位メニュである為、以
下、キーワードrl 11Jをにレジスタにセットして
文レジスタの値を「4」更新してみても、そのキーワー
ドrl 11Jを上位桁に含む他のキーワードはサーチ
されず、Lレジスタ、Rレジスタの値はリセットされた
ままとなっている。したがって、この状態において、X
ルジスタの値がX max レジスタ値に達し、ステッ
プDI9に進んでも横線パターンの作成配置は行われな
い。
After that, the keyword rl is stored in the layout table memory 20.
l IJ is read out (step D2), and its record contents are placed in the page memory 23 along with the upper connection pattern and block area pattern (steps D9 to D01).
2, see Figure 18 (5)). In this case, the record with keyword rl 11J is the lowest menu, so below, set keyword rl 11J in the register and update the value of the statement register to "4". However, other keywords containing the keyword rl 11J in the upper digits are not searched, and the values of the L and R registers remain reset. Therefore, in this state,
Even if the register value reaches the X max register value and the process proceeds to step DI9, no horizontal line pattern is created or arranged.

そして、ステップD2に戻るが、この場合、配置テーブ
ルメモリ20の座標位置(l、4)にはキーワードが記
憶されていないので、ステップD4に進み、文レジスタ
の値とl wax レジスタの値とを比較する。ここで
、交レジスタの値はraJ、したがって、又口。値と一
致する為、今度はXレジスタの値とxaax レジスタ
の値とを比較する(ステップD6)、いま、Xレジスタ
の値はrlJであるから、ステップD7に進み、Xレジ
スタの値に「1」を加算してその値を「2」に更新する
と同時に見レジスタの値を初期値「1」に戻したのち、
ステップD2へ戻る。
Then, the process returns to step D2, but in this case, since no keyword is stored at the coordinate position (l, 4) of the arrangement table memory 20, the process proceeds to step D4, and the value of the statement register and the value of the l wax register are stored. compare. Here, the value of the cross register is raJ, so it is also ra. Since the values match, the value of the X register and the value of the xaax register are compared (step D6).Since the value of the X register is rlJ, the process advances to step D7 and the value of the ” is added and the value is updated to “2”, and at the same time, the value of the register is returned to the initial value “1”, and then
Return to step D2.

これによって配置テーブルメモリ20の座標位置(2、
l)が指定されるが、その位置にはキーワードが記憶さ
れていないので、立レジスタがl max値でないこと
を条件に、ステップD5に進み文レジスタの値に「l」
を加算してステップD2に戻る。
As a result, the coordinate position (2,
l) is specified, but no keyword is stored in that position, so on condition that the standing register is not l max value, proceed to step D5 and set the value of the sentence register to 'l'.
is added and the process returns to step D2.

すると、配置テーブルメモリ20からキーワード「12
」が読み出されるので、上結線パターン、ブロックエリ
アパターンと共にそのキーワードのレコード内容をペー
ジメモリ23に配置する(ステップD9〜D12、第1
8図(6)参照)。
Then, the keyword “12” is retrieved from the arrangement table memory 20.
” is read out, the record contents of that keyword along with the upper connection pattern and block area pattern are arranged in the page memory 23 (steps D9 to D12, the first
(See Figure 8 (6)).

そして、このキーワード「12」をにレジスタにセット
しくステップDI3)、Jルジスタの値を「4」に更新
するが(ステップDI4)、上述の場合と同様にこのキ
ーワード「12」のレコードには下位メニュが存在しな
い為、Xルジスタの値がX max値に達してもLレジ
スタ、Rレジスタの値はリセットされたままとなってい
るので横線パターンの配置は行われない。
Then, this keyword "12" is set in the register (step DI3), and the value of the J register is updated to "4" (step DI4), but as in the case above, the record with this keyword "12" is Since there is no menu, even if the value of the X register reaches the X max value, the values of the L register and R register remain reset, so no horizontal line pattern is placed.

次に、配置テーブルメモリ20からキーワードrl12
Jが読み出される為、そのレコード内容等がブロック配
置される(ステップD9〜D12、第18図(7)参照
)、なお、このレコードにも下位メニュが存在しない為
、交レジスタの値が1aax値に達した際に(ステップ
D4)、Xレジスタの値が更新されて「3」となると共
に、見レジスタの値が初期値に戻される(ステップD7
)。
Next, the keyword rl12 is extracted from the arrangement table memory 20.
Since J is read out, the contents of the record etc. are arranged in blocks (steps D9 to D12, see Figure 18 (7)). Furthermore, since this record also does not have a lower menu, the value of the cross register is the 1aax value. When the value is reached (step D4), the value of the X register is updated to "3", and the value of the X register is returned to the initial value (step D7).
).

以下、上述の動作が繰り返される結果、キーワード「1
3」、rl 31J、r132」のレコード内容が順次
ブロック配置され、これによってページメモリ23内に
は階層メニュのリスト内容が木構造通りに配置される。
Hereafter, as a result of repeating the above operation, the keyword "1"
3", rl 31J, r132" are sequentially arranged in blocks, and thereby the list contents of the hierarchical menu are arranged in the page memory 23 in a tree structure.

このようにしてページメモリ23内にリスト内容が配置
されると、印字部14が起動し、ページメモリ23の内
容が印字されて第1θ図に示す様に、階層メニュの全体
を木構造の表現形式で印刷したメニュリストが得られる
When the contents of the list are arranged in the page memory 23 in this way, the printing unit 14 is activated, and the contents of the page memory 23 are printed out and the entire hierarchical menu is expressed in a tree structure as shown in Fig. 1θ. You can get a menu list printed in this format.

この結果、階層メニュの上下関係等を一目で確認でき、
メニュ選択時にそのリスト内容を視読しながらその選択
作業を行えば、その作業を効率良く行うことが可能とな
る。
As a result, you can check the hierarchy of hierarchical menus at a glance.
If the user visually reads the contents of the list when selecting a menu, the user can perform the selection process more efficiently.

なお、上記実施例は座標配置処理部19によって配置テ
ーブルメモリ20の内容を再配置したのちに、その内容
にしたがってメニュリストを出力するようにしたが、基
本配置された配置テーブルメモリ20の内容に基づいて
メニュリストを出力するようにしてもよい、この場合、
第7図に示す配置テーブルメモリ20の内容にしたがっ
てメニュリストが出力される為、その出力内容は第19
図に示す如く、基本配置通りの木構造で表現される。
In the above embodiment, after the contents of the arrangement table memory 20 are rearranged by the coordinate arrangement processing section 19, the menu list is output according to the contents. You may also want to output a menu list based on, in this case,
Since the menu list is output according to the contents of the arrangement table memory 20 shown in FIG.
As shown in the figure, it is expressed as a tree structure according to the basic arrangement.

また、最上位メニュが木構造の上部中央位置に来るよう
にそれをセンタリングするようにしてもよい。
Alternatively, the top-level menu may be centered at the top of the tree structure.

また、上記実施例は階層メニュをリスト出力するように
したが、その他の木構造をなす階層データをメニュ出力
するようにしてもよい。
Further, in the above embodiment, a hierarchical menu is output as a list, but other hierarchical data having a tree structure may be output as a menu.

[発明の効果] この発明は、階層メニュ等を構成する各レコードには木
構造のどの箇所に組み込まれるべきレコードかを示す情
報が付加されているので、レコードの追加、削除等によ
って木構造の形が変化したとしても各レコードを変更さ
れた木構造の対応箇所に配置することができる。したが
って、メニュリストの作成プログラム自体に木構造を固
定的に組み入れておく必要はなく、その結果、レコード
の削除や追加等によって木構造の形が変化したとしても
メニュリストの作成プログラムを設計し直す必要がなく
なり、極めて汎用性に富んだものとなる。
[Effects of the Invention] In the present invention, since each record constituting a hierarchical menu etc. is attached with information indicating where in the tree structure the record should be incorporated, the tree structure can be changed by adding or deleting records. Even if the shape changes, each record can be placed at a corresponding location in the changed tree structure. Therefore, there is no need to permanently incorporate a tree structure into the menu list creation program itself, and as a result, even if the shape of the tree structure changes due to deletion or addition of records, the menu list creation program can be redesigned. This eliminates the need for it, making it extremely versatile.

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

第1図はこの発明の機能ブロック図、第2図〜M418
図は実施例を示し、第2図は階層レコード配WI装置の
構成を示すブロック図、第3図はファイルA15の具体
例を示す図、第4図はファイルA15内のレコード構造
を示す図、第5図はファイルA15の内容をファイルB
16にソートした状態を示す図、第6図は配置テーブル
メモリ20の構成図、第7図は基本配置された配置テー
ブルメモリ20の内容を示す図、第8図は再配置された
配置テーブルメモリ20の内容を示す図、第9図はブロ
ック配置の基本パターンを示す図、第10図はメニュリ
ストの出力例を示す図、第11図は全体動作の概要を示
すゼネラルフローチャート、第12図はソート処理部1
7の動作を示すフローチャート、第13図は座標配置処
理部19の動作のうち基本配置処理を示すフローチャー
ト、第14図は再配置処理を示すフローチャート、第1
5図はブロック配置処理部22の動作を示すフローチャ
ート、第16図および第17図は再配置処理を補足的に
説明する為の配置テーブルメモリ20の具体例を示す図
、第18図はブロック配置処理の実行によって変遷する
ページメモリ23の内容を示す図、第19図は他のメこ
ユリストの出力例を示す図、第20図は従来例を説明す
る為の図である。 11・・・・・・CPU、14・・・・・・印字部、1
5・・・・・・ファイルA、16・・・・・・ファイル
B、17・・・・・・ソート処理部、19・・・・・・
座標配置処理部、20・・・・・・配置テーブルメモリ
、22・・・・・・ブロック配置処理部。 特許出願人  カシオ計算機株式会社 第 図 第 図 第 図 −X 助ビiテーフ゛几 第 図 一−X 第 図 第10 図 □X 第 図 第 図 第 図 第 図 第 図 第 図 第20 図 第18 図
Figure 1 is a functional block diagram of this invention, Figure 2 - M418
The figure shows an embodiment, FIG. 2 is a block diagram showing the configuration of the hierarchical record distribution WI device, FIG. 3 is a diagram showing a specific example of file A15, FIG. 4 is a diagram showing the record structure in file A15, Figure 5 shows the contents of file A15 in file B.
6 is a configuration diagram of the arrangement table memory 20, FIG. 7 is a diagram showing the contents of the arrangement table memory 20 basically arranged, and FIG. 8 is the rearranged arrangement table memory. 20, FIG. 9 is a diagram showing the basic pattern of block arrangement, FIG. 10 is a diagram showing an example of menu list output, FIG. 11 is a general flowchart showing an overview of the overall operation, and FIG. Sort processing unit 1
13 is a flowchart showing the basic arrangement processing among the operations of the coordinate arrangement processing section 19, and FIG. 14 is a flowchart showing the relocation processing.
FIG. 5 is a flowchart showing the operation of the block placement processing unit 22, FIGS. 16 and 17 are diagrams showing a specific example of the placement table memory 20 for supplementary explanation of the relocation process, and FIG. 18 is a flowchart showing the operation of the block placement processing unit 22. FIG. 19 is a diagram showing the contents of the page memory 23 that change depending on the execution of processing, FIG. 19 is a diagram showing another example of output of a mail list, and FIG. 20 is a diagram for explaining a conventional example. 11...CPU, 14...Printing section, 1
5...File A, 16...File B, 17...Sort processing section, 19...
Coordinate placement processing unit, 20... placement table memory, 22... block placement processing unit. Patent Applicant: Casio Computer Co., Ltd.

Claims (1)

【特許請求の範囲】 桁数で階層レベルを定義すると共にワード内容で木構造
の上下関係および左右関係を定義するキーワードによっ
て区別されたレコードを複数記憶するレコード記憶手段
と、 このレコード記憶手段内に記憶されている各レコードの
キーワードを抽出すると共に、抽出したキーワードの桁
数で階層方向の出力位置を決定する他にそのワード内容
で階層方向と直交する方向の出力位置を決定する出力位
置決定手段と、この出力位置決定手段によって決定され
た階層方向の出力位置とそれと直交する方向の出力位置
とによって特定される出力エリア内に対応するレコード
を前記レコード記憶手段から読み出して配置出力する出
力手段と、 を具備したことを特徴とする階層レコード配置装置。
[Scope of Claims] Record storage means for storing a plurality of records differentiated by keywords that define hierarchical levels by the number of digits and define vertical and horizontal relationships of a tree structure by word contents; Output position determining means that extracts the keyword of each stored record, determines the output position in the hierarchy direction based on the number of digits of the extracted keyword, and also determines the output position in the direction perpendicular to the hierarchy direction based on the content of the word. and output means for reading from the record storage means and placing and outputting records corresponding to the output area specified by the output position in the hierarchy direction determined by the output position determination means and the output position in the direction perpendicular thereto. A hierarchical record arrangement device characterized by comprising the following.
JP2163350A 1990-06-21 1990-06-21 Hierarchy record arrangement device Pending JPH0454527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2163350A JPH0454527A (en) 1990-06-21 1990-06-21 Hierarchy record arrangement device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2163350A JPH0454527A (en) 1990-06-21 1990-06-21 Hierarchy record arrangement device

Publications (1)

Publication Number Publication Date
JPH0454527A true JPH0454527A (en) 1992-02-21

Family

ID=15772218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2163350A Pending JPH0454527A (en) 1990-06-21 1990-06-21 Hierarchy record arrangement device

Country Status (1)

Country Link
JP (1) JPH0454527A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02135549A (en) * 1988-11-16 1990-05-24 Hitachi Ltd File table display method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02135549A (en) * 1988-11-16 1990-05-24 Hitachi Ltd File table display method

Similar Documents

Publication Publication Date Title
US5668966A (en) System and method for direct manipulation of search predicates using a graphical user interface
US5301313A (en) Manipulating data in a relational data base having operational manipulations defined in an input table and displayed results in an output table with a line displayed designating direction of data flow
US8667419B2 (en) Method and apparatus for displaying a menu for accessing hierarchical content data including caching multiple menu states
US20010003455A1 (en) Method, system and graphic user interface for entering and editing filter conditions for filtering a database
WO2005029247A2 (en) Computer systems and methods for platform independent presentation design
JP2001092825A (en) Device and method for processing information
US6985906B2 (en) Method and system for multidimensional database management
US5386571A (en) Computer system and method for storing and displaying of a semantically structured entity relationship diagram
JP2969153B2 (en) Record search method
JP2002024243A (en) Scientific information browse system and host computer and browsing computer used for the same
JP2959069B2 (en) Slip input processor
JP3552339B2 (en) Database system
US5881380A (en) Device and method for data management based on values
CN104903852B (en) Project data creating device
JP3126774B2 (en) Drawing editing device and drawing editing method
JPH0454527A (en) Hierarchy record arrangement device
JP2789618B2 (en) Tree structure drawing system
JPH0462618A (en) Hierarchical record arranging device
JPH08137967A (en) Processing method for table data
JPH03147181A (en) Object reference processing system
JP2636472B2 (en) Hierarchical data placement device
JP2992412B2 (en) Parameter setting method in CAD / CAM device
JP2845897B2 (en) Document search / display method and apparatus
US20070100895A1 (en) Data maintenance apparatus, data maintenance method, and data maintenance system
JP3456481B2 (en) Information processing device