JPS61158379A - Rule block processor - Google Patents
Rule block processorInfo
- Publication number
- JPS61158379A JPS61158379A JP59275176A JP27517684A JPS61158379A JP S61158379 A JPS61158379 A JP S61158379A JP 59275176 A JP59275176 A JP 59275176A JP 27517684 A JP27517684 A JP 27517684A JP S61158379 A JPS61158379 A JP S61158379A
- Authority
- JP
- Japan
- Prior art keywords
- block
- memory
- ruled line
- line
- key
- 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
Links
- 230000015654 memory Effects 0.000 claims description 73
- 238000000034 method Methods 0.000 description 37
- 238000010586 diagram Methods 0.000 description 8
- 239000011159 matrix material Substances 0.000 description 4
- 101100443291 Mus musculus Dnajc27 gene Proteins 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
(分 野)
本発明は罫線付きの文書を扱う罫線ブロック処理装置に
関する。DETAILED DESCRIPTION OF THE INVENTION (Field) The present invention relates to a ruled line block processing device that handles documents with ruled lines.
(従来技術)
従来1ライン表示器を用いて罫線付きの文書を作成し、
印刷させる事の出来る罫線処理装置があった。(Prior art) Conventionally, a lined document is created using a one-line display,
There was a ruled line processing device that could print.
しかしながらブロック分と例えば、平文とをlライン表
示器を用いてブロック形式文とブロック形式でない平文
を作成印刷出来る装置があったがブロック形式文におい
てはブロック構造を意識した形態の文書にしておかなけ
ればならなかったため、ブロック形式文と平文とを簡単
に分離出来ないという欠点があったし、平文からその一
部だけを抜き出してfltlにブロック形式の文書にす
る事が難しかった。However, there was a device that could create and print block format sentences and non-block format plain text using an l-line display for blocks and, for example, plain text, but for block format sentences, the document must be created with the block structure in mind. This had the disadvantage that it was not possible to easily separate the block format text from the plain text, and it was difficult to extract only a portion of the plain text and convert it into a block format document in fltl.
(目 的)
本発明は上述した欠点を補い、1列のシリアルな文字列
からなる文書に対し平文とブロック形式部分を1つのマ
ークを用いる事によって分離し各々平文とブロック形式
文に作成し印刷させる事を可能とした罫線ブロック処理
装置を提供する事にある。(Purpose) The present invention compensates for the above-mentioned drawbacks, and uses one mark to separate the plain text and block format portions of a document consisting of one serial character string, create plain text and block format text, and print them. It is an object of the present invention to provide a ruled line block processing device that can perform the following operations.
(本発明の概念)
本発明の概念を第1図に示す0例えばlラインメモリに
は文字がシリアルな状態で格納されており、区切マーク
入力手段によって1ラインメモリ中に区切マークを入力
し、この区切マークによつて区切られたlラインメモリ
から、平文とブロック文書に判別する判別手段によりブ
ロックと判別された部分を罫線ブロック作成手段により
罫線ブロック形態にして平文とともに格納するものであ
る。(Concept of the present invention) The concept of the present invention is shown in FIG. 1. Characters are stored in serial form in a 0, for example, line memory, and a delimiter is inputted into the 1-line memory by a delimiter input means. From the l-line memory divided by the delimiter mark, a portion determined as a block by a discriminating means for discriminating between a plain text and a block document is converted into a ruled line block form by a ruled line block creating means and stored together with the plain text.
(説 明)
以下に本発明の実施例による動作の一例を示す。第5図
(a)に示した通りまず文字列を1列にシリアルに入力
し、さらに第5図(b)に示した通りブロックの縦区切
の桁を[1、4、9] と設定し1文字の区切を示すマ
ーク・を文字列中に設定する。かような文字列を作成し
た段階で罫線ブロックキーを押下すると第5図(C)に
示した通り罫線ブロックを作成する訳である。最初の・
マークまでの「あいうえお」は平文であり、次の文字か
ら・マークが2つ連続する所まで即ち「φABC*ab
c*アイウΦ12釦1がブロック形式文書となる。以下
「たちつてと」は再び平文となる訳である。Φマークは
ブロック間を罫線で仕切る意味も持つ、この場合縦罫線
(実施例)
以下に本発明の実施例による動作の一例を示す、第5図
(a)に示した通りまず文字列を1列にシリアルに入力
し、さらに第5図(b)に示した通りブロックの縦区切
の桁を[1、4、9] とキーボードより文字列の先頭
に設定し、文字の区切を示すマーク争を文字列中に挿入
設定する。(Explanation) An example of the operation according to the embodiment of the present invention will be shown below. As shown in Figure 5(a), first input the character string serially in one column, and then set the vertical separator digits of the block as [1, 4, 9] as shown in Figure 5(b). Set a mark to indicate a character break in a character string. If the ruled line block key is pressed after creating such a character string, a ruled line block will be created as shown in FIG. 5(C). the first·
"Aiueo" up to the mark is plain text, and from the next character to the place where two marks are consecutive, that is, "φABC*ab
c*IU Φ12 Button 1 becomes a block format document. Hereafter, ``tachitsuteto'' will be translated as plain text again. The Φ mark also has the meaning of dividing blocks with ruled lines, in this case vertical ruled lines (embodiment) An example of the operation according to the embodiment of the present invention will be shown below. As shown in FIG. Enter the characters serially in the column, and then set the vertical separator digits of the block as [1, 4, 9] at the beginning of the character string from the keyboard as shown in Figure 5 (b), and then set the mark indicating the character separation. Set to insert into the string.
かような文字列を作成した段階で罫線ブロックキーを押
下すると第5図(C)に示した通り罫線ブロックを作成
する訳である。最初の・マークまでの「あいうえお」は
平文であり、次の文字からφマークが2つ連続する所ま
で即ち「・ABC・abcφアイウ・12・Φ」がブロ
ック形式文書となる。以下「たちつてと」は再び平文と
なる訳である。Φマークはブロック間を罫線で仕切る意
味も持つ、この場合縦罫線が引かれる桁は文頭の数字[
1,4,9]で規定され、横罫線位置は各ブロックの行
の長さに応じて自動的に決定される。If the ruled line block key is pressed after creating such a character string, a ruled line block will be created as shown in FIG. 5(C). "Aiueo" up to the first mark is plain text, and from the next character to the place where two consecutive φ marks occur, that is, "・ABC・abcφaiu・12・Φ" becomes a block format document. Hereafter, ``tachitsuteto'' will be translated as plain text again. The Φ mark also has the meaning of separating blocks with ruled lines. In this case, the digit where the vertical ruled line is drawn is the number at the beginning of the sentence [
1, 4, 9], and the horizontal ruled line position is automatically determined according to the length of the row of each block.
罫線ブロックキーを押下する前に罫線省略キーを押下し
ておくと第5図(d)に示した通りブロックの形態は出
来るが罫線は全てスペースに置換えられたブロック形式
文書になる。又、罫線ブロックキーを押下する前に罫線
詰めキーを押下しておくと第5図(e)に示した通り外
枠の罫線と縦罫線を残してブロックの内側の横罫線が省
略され1行詰まったブロック形式文書になる。If the omit ruled line key is pressed before pressing the ruled line block key, a block format is created as shown in FIG. 5(d), but the document becomes a block format document in which all ruled lines are replaced with spaces. Also, if you press the fill line key before pressing the ruled line block key, the horizontal ruled lines inside the block are omitted, leaving the outer ruled lines and vertical ruled lines, as shown in Figure 5(e), and the horizontal ruled lines inside the block are omitted, resulting in one line. This results in a packed block format document.
以下図面を参照して本発明の詳細な説明する。The present invention will be described in detail below with reference to the drawings.
第2図は本発明文字処理装置の構成例を示す図である。FIG. 2 is a diagram showing an example of the configuration of the character processing device of the present invention.
CPU(中央処理装置)はROM (リードオンリメモ
リ)に含まれたプログラム例えば第6図〜第10図に示
す手順のプログラムの内容を実行処理する事によりパス
ラインを介して接続される各装置を制御する。このパス
ラインBLにはキーボードKBが接続され、このキーボ
ードKBから入力された文字情報はパスラインBLを介
してメモリRAM (ランダムアクセスメモリ)の一部
にある文書メモリBSMに供給記憶される。記憶された
文字情報を表示器LCD (リキッドクリスタルディス
プレイ)に表示するにはLCDコントローラDCONT
で制御されているキャラクタジェネレータCGの中から
文字コードに相当するフォントをパスラインを介してC
PUの指示により行なわれる。The CPU (Central Processing Unit) controls each device connected via the path line by executing the program contained in the ROM (Read Only Memory), for example, the procedure shown in Figures 6 to 10. Control. A keyboard KB is connected to this pass line BL, and character information input from this keyboard KB is supplied and stored via the pass line BL to a document memory BSM in a part of a memory RAM (random access memory). To display the stored character information on the LCD (liquid crystal display) display, use the LCD controller DCONT.
The font corresponding to the character code is selected from the character generator CG controlled by C through the path line.
This is done according to instructions from the PU.
メモリRAMには前述の文書メモリBSMの他にブロッ
クを形成する為のプロ・ツクメモリBRM、ブロックを
分割した際に各分割ブロックの縦罫線位置を示す縦罫線
テーブルTXT、後述する小ブロックの先頭桁と終了桁
を示す小ブロツク範囲テーブルSHT、横罫線の行NO
を格納する横罫線行NoLNO1小ブロック数を格納す
る小ブロツク数SS、その他プログラムを実行処理する
際に必要な罫線フラグKF、罫縁結めフラグKTF、W
線スタートフラグKSFやメモリカーソル位置を示すC
RLM等の一時記憶用の領域がある。プリンタDは前述
のブロックメモリBRMの内容をCPUの指示により印
刷する為の装置である。In addition to the document memory BSM described above, the memory RAM includes a program memory BRM for forming blocks, a vertical ruled line table TXT that indicates the vertical ruled line position of each divided block when the block is divided, and the first digit of a small block to be described later. Small block range table SHT showing the end digit, horizontal ruled line row NO.
Horizontal ruled line row NoLNO1 storing the number of small blocks SS, ruled line flag KF, and border binding flags KTF and W necessary for executing the program.
C indicating line start flag KSF and memory cursor position
There is an area for temporary storage such as RLM. Printer D is a device for printing the contents of the aforementioned block memory BRM according to instructions from the CPU.
第3図は第2図のキーボードKBの拡大詳細図である。FIG. 3 is an enlarged detailed view of the keyboard KB of FIG. 2.
この白文字キーCRKは通常の文字を入力する為のキー
であり、ここで入力されたキーに対応した文字コードが
前述の文書メモリBSMに格納されかつ表示器LCDに
表示される。このキーの中には後述するブロック分割用
のマーク・を入力するDKも含まれている。カーソル左
移動キー、右移動キーの各キーは表示上の文字位置を示
すカーソルを左右に移動させる為のキーである。罫線ブ
ロックキーKBKはシリアル文字列から罫線ブロックを
作成させる為のキーである。This white character key CRK is a key for inputting ordinary characters, and the character code corresponding to the key input here is stored in the document memory BSM and displayed on the display device LCD. This key also includes a DK for inputting marks for block division, which will be described later. The cursor left movement key and right movement key are keys for moving the cursor, which indicates the character position on the display, left and right. The ruled line block key KBK is a key for creating a ruled line block from a serial character string.
罫線詰めキーKCKはブロックの内側の横罫線を省略し
て詰めるキーであり、罫線省略キーKAKはブロック形
式にした際会ての罫線を省略してスペースに置換する為
のキーである。印刷キーPKはブロックメモリBRMの
内容を印刷させる為のキーである。The rule filling key KCK is a key for omitting horizontal ruled lines inside a block, and the ruled line omission key KAK is a key for omitting adjacent ruled lines and replacing them with spaces when the block is formatted. The print key PK is a key for printing the contents of the block memory BRM.
第4図は第2図におけるRAM内の文書メモリBSM、
ブロックメモリBRM、縦罫線テーブルTXT、小ブロ
ツク範囲テーブルSHTの詳細説明図である。FIG. 4 shows the document memory BSM in the RAM in FIG.
FIG. 4 is a detailed explanatory diagram of a block memory BRM, a vertical ruled line table TXT, and a small block range table SHT.
文書メモリBSMは文字情報が格納されるシリアルなメ
モリで先頭からアドレス順に構成されており、順にBS
M (1)、BSM (2)−−−一般にBSM (+
)と表現する。ブロックメモリBRMは9×9のマトリ
ックス構造になっており、先頭行の1桁目から順にアド
レスが付され。The document memory BSM is a serial memory in which character information is stored, and is configured in address order from the beginning.
M (1), BSM (2) --- Generally BSM (+
). The block memory BRM has a 9x9 matrix structure, and addresses are sequentially assigned starting from the first digit of the first row.
BRM (1,1)、BRM (1,2)−−−一般に
BRM (x 、y)と表現する。縦罫線テーブルTK
Tは文書内で設定された縦罫線桁位置を記憶する為のテ
ーブルであり先頭行から順にアドレスが付され、TXT
(1)、TXT (1)−−−一般にTXT (P)
と表現する。小ブロツク範囲テーブル5l(Tは各小ブ
ロックの文字情報をブロックメモリのどの範囲に転送す
るかを示した各々開始桁と終了桁をペアで持たせたメモ
リであり先頭からSHT (1,1)、SHT (1,
2)、5HT(2、1)−−−一般にSHT (m、1
)、SHT(m、2)と表現する。BRM (1, 1), BRM (1, 2) --- Generally expressed as BRM (x, y). Vertical ruled table TK
T is a table for storing vertical ruled line digit positions set in a document, and addresses are assigned in order from the first line, TXT
(1), TXT (1)---Generally TXT (P)
Expressed as. Small block range table 5l (T is a memory that has a pair of start and end digits indicating to which range of the block memory the character information of each small block is transferred, starting from the beginning SHT (1, 1) , SHT (1,
2), 5HT (2, 1) --- Generally SHT (m, 1
), SHT(m, 2).
以上の構成のドで、本発明実施例の動作を第6図〜第1
0図の70−′チャート及び第11図、第12図のメモ
リ内容例を参照して説明する。With the above configuration, the operation of the embodiment of the present invention is illustrated in FIGS. 6 to 1.
This will be explained with reference to the chart 70-' in FIG. 0 and examples of memory contents in FIGS. 11 and 12.
本装置は、電源を投入するとまず第6図ステップslに
進む、ステップslではRAM内の文書メモリBSM、
ブロックメモリBRMをスペースクリヤし、縦罫線テー
ブルTKT、罫線フラグKF、罫線詰めフラグKTF、
罫線スタートフラグKSFを0クリヤし、カーソルを文
書メモリBSMの先頭にセットしてカーソル位置メモリ
CRLMを初期状態にセットする。When this device is powered on, it first proceeds to step sl in FIG. 6. In step sl, the document memory BSM in the RAM,
Clear the space in block memory BRM, vertical ruled line table TKT, ruled line flag KF, ruled line filling flag KTF,
The ruled line start flag KSF is cleared to 0, the cursor is set at the beginning of the document memory BSM, and the cursor position memory CRLM is set to the initial state.
その後、ステップS2に進み第3図に示したキーボード
からのキー人力待ちの状態を保つ。Thereafter, the process advances to step S2, and the state of waiting for manual input of keys from the keyboard as shown in FIG. 3 is maintained.
そこで何らかのキーが入力されたならステップS3に進
み入力されたキーの判別を行ないステップ54〜ステツ
プS9のいずれかに進む。If any key is input, the process proceeds to step S3, where the input key is determined, and the process proceeds to any one of steps 54 to S9.
ステップS4は文字キーが操作された時の処理を行なう
0文字キーが操作されるとカーソル位置メモリCRLM
に対応した文書メモリBSMに文字コードを格納する。Step S4 performs processing when a character key is operated.When the 0 character key is operated, the cursor position memory CRLM
The character code is stored in the document memory BSM corresponding to the character code.
しかる後、カーソルは1つ歩進し同時にカーソル位置メ
モリCRLMの内容もlアドレス分進む。Thereafter, the cursor advances by one and at the same time the contents of the cursor position memory CRLM also advance by l addresses.
ステップS5ではカーソル右移動、又はカーソル左移動
キーが操作された時の処理を行なう、即ち、カーソル左
移動キーが操作されたならカーソル位置メモリCRLM
の内容を1アドレス分減じる処理を行ない、逆にカーソ
ル右移動キーが操作された時はカーソル位置メモリCR
LMの内容を1アドレス分加える処理を行なう。In step S5, processing is performed when the cursor right movement key or the cursor left movement key is operated, that is, if the cursor left movement key is operated, the cursor position memory CRLM is
When the cursor right movement key is operated, the contents of the cursor position memory CR are decremented by one address.
Processing is performed to add the contents of LM for one address.
ステップS6では罫線詰めキーが操作された時の処理を
行なう、罫線詰めキーが操作されるとRAMにおける*
ta詰めフラグKTFが0だった時にはlに、lだった
時は0にセットする処理を行なう。In step S6, a process is performed when the line filling key is operated.When the line filling key is operated, *
When the ta packing flag KTF is 0, it is set to l, and when it is l, it is set to 0.
ステップS7では罫線省略キーが操作された時の処理を
行なう0M罫線省略キー操作されるとRAMにおける罫
線フラグKFが0だった時にはlに、lだった時は0に
セットする処理を行なう。In step S7, processing is carried out when the ruled line omission key is operated.When the 0M ruled line omission key is operated, processing is carried out in which the ruled line flag KF in the RAM is set to 1 if it is 0, and to 0 if it is 1.
ステップs8では第4図に示した文書メモリBSMの内
容から罫線ブロックを組み立てその結果をブロックメモ
リBRMに格納させる処理を行なう、ステップS9では
ブロックメモリ、BRMの内容をプリントキーPKによ
りプリンタPでプリントする。In step s8, a ruled line block is assembled from the contents of the document memory BSM shown in FIG. do.
ステップS8の内容を詳細に説明したのが第7図である
。以下第7図を参照して説明する。まずステップ58.
1で文書メモリBSMにおけるポインターiを1にセッ
トする。FIG. 7 shows a detailed explanation of the contents of step S8. This will be explained below with reference to FIG. First step 58.
1 sets the pointer i in the document memory BSM to 1.
次にステップS8,2に進み文書メモリBSMの先頭に
あるブロックを区切る桁位置情報から各ブロックにおけ
る縦罫線の桁位置を求め縦罫線テーブルTKTを作成す
る0桁位置情報は[のマークから]のマークに挟まれた
数字で表現される。第11図(1)の例に従えば1,4
.9が桁位置情報である。その結果第11図(2)に示
した通り縦罫線テーブルTXTが作成される。Next, the process proceeds to step S8, 2, and the digit position of the vertical ruled line in each block is determined from the digit position information that separates the blocks at the beginning of the document memory BSM, and the vertical ruled line table TKT is created. Represented by numbers between marks. According to the example in Figure 11 (1), 1,4
.. 9 is digit position information. As a result, a vertical ruled line table TXT is created as shown in FIG. 11(2).
次にステップs8.3に進み横方向に並ぶ小ブロックの
数を求めRAMの小ブロツク数SSにセットする。第1
1図の例でいくと縦罫線桁位置は1,4.9の3筒所で
あるからその間に入る小ブロックの数は2つになる訳で
ある。Next, the process proceeds to step s8.3, and the number of small blocks arranged in the horizontal direction is determined and set to the small block number SS in the RAM. 1st
In the example of Figure 1, there are three vertical ruled line digit positions, 1, 4.9, so the number of small blocks that can fit between them is two.
さらにステップS8.4に進み縦罫線テーブルTXTか
ら各小ブロックの収まる桁範囲を求める。第11図(2
)の例に従うと、縦罫線桁位置は1,4.9の3箇所で
あるから、従って2つの小ブロックは各々2〜3.5〜
8桁の範囲に収まる事になる。これをテーブル化したの
が第1図(3)で示した例である。さらにこの小ブロツ
ク範囲テーブルSHTのポインターmを1にセットし、
他方文書メモリBSMのポインターiを桁位置情報の終
りを示す]の次にセットする。Further, the process proceeds to step S8.4, and the digit range within which each small block fits is determined from the vertical ruled line table TXT. Figure 11 (2
), there are three vertical ruled line digit positions, 1 and 4.9, so the two small blocks are 2 to 3.5, respectively.
This will fit within 8 digits. The example shown in FIG. 1 (3) is a table of this. Furthermore, pointer m of this small block range table SHT is set to 1,
On the other hand, the pointer i of the document memory BSM is set next to [indicating the end of the digit position information].
ステップ58.5では文書メモリBSMのうちポインタ
ー!で示される文字から最初の区切マーク・までの文字
をブロックメモリBRMにセットする。In step 58.5, pointer! out of the document memory BSM! The characters from the character indicated by to the first delimiter mark are set in the block memory BRM.
その詳細を第8図のフローチャートを用いて説明する。The details will be explained using the flowchart of FIG.
まずステップs8.5.1ではブロックメモリBRMの
ポインターx、yを各々1にセットする0次s8.5.
2では文書メモリBSMのイ容を判別して分岐する0分
岐する前にポインターill加算する0文字判別の結果
区切マーク・の時はこのルーチンを抜ける。他方通常の
文字の時はステップs8.5.3に分岐し文書メモリB
SMの内容をブロックメモリBRMに転送する。さらに
横方向のポインターyを1加算する。First, in step s8.5.1, pointers x and y of block memory BRM are each set to 1 in 0th order s8.5.
In step 2, the content of the document memory BSM is determined and the process branches to 0. Before branching, the pointer ill is added. If the result of the 0 character determination is a delimiter mark, this routine is exited. On the other hand, if it is a normal character, the process branches to step s8.5.3 and the document memory B
Transfer the contents of SM to block memory BRM. Furthermore, 1 is added to the horizontal pointer y.
次にステップs8.5.4に進みyの値を判別して分岐
する。yが9より小又は等しい時再びステップs8.5
.2に戻る。yが9より大きい時ステップs8.5.5
に進み改行の処理をすべくyを1セツトし、行方向のポ
インターXに1加算する。本処理を終了した時文書メモ
リBSMのポインターiは区切マークΦの次に位置する
事になる。又第12図(1)に示した通り「あいうえお
」だけがブロックメモリBRMに転送される。Next, the process advances to step s8.5.4 to determine the value of y and branches. When y is less than or equal to 9, step s8.5 again
.. Return to 2. When y is greater than 9 step s8.5.5
Proceed to , set y to 1 in order to process a line feed, and add 1 to the pointer X in the line direction. When this process is completed, the pointer i in the document memory BSM will be positioned next to the delimiter mark Φ. Also, as shown in FIG. 12 (1), only "AIUEO" is transferred to the block memory BRM.
第7図に戻ってステップ58.6では横罫線情報をブロ
ックメモリに1行分セットし、且つブロック行NoLN
Oに次の行の値をセットする処理を行なう。この処理の
詳細を第9図を参照して説明する。Returning to FIG. 7, in step 58.6, horizontal ruled line information for one line is set in the block memory, and block row NoLN is set.
Processing is performed to set O to the value of the next row. The details of this process will be explained with reference to FIG.
第9図ステップs8.6.1においては、ブロックメモ
リBRMの内容を調べ空白の行を探し出しその行NOを
ブロック行NoLNOにセットする。In step s8.6.1 of FIG. 9, the contents of the block memory BRM are checked to find a blank line and its line number is set in the block line NoLNO.
次にステップs8.6.2に進みRAM内の罫線スター
トフラグKSFと罫線詰めフラグKTFの内容を判別し
て、罫線スタートフラグKSFが1即ち中間の罫線であ
り、且つ罫線詰めフラグKTFが1の時に限り罫線を詰
める為以上で本ルーチンを終了する。他方それ以外の条
件の時はステップs8.6.3に進み横罫線マーク「−
」を縦罫線テーブルTKTを参照して縦罫線の先頭桁か
ら最終桁まで全てにセットする。しかる後、縦罫線テー
ブルTXTのポインターpに1セツトする。Next, the process advances to step s8.6.2, and the contents of the ruled line start flag KSF and ruled line filling flag KTF in the RAM are determined, and it is determined that the ruled line start flag KSF is 1, that is, an intermediate ruled line, and that the ruled line filling flag KTF is 1. This is the end of this routine in order to close the ruled lines from time to time. On the other hand, if the other conditions are met, proceed to step s8.6.3 and mark the horizontal ruled line mark "-".
” to all vertical ruled lines from the first digit to the last digit by referring to the vertical ruled line table TKT. Thereafter, one is set in the pointer p of the vertical ruled line table TXT.
さらにステップs8.6.4に進み縦罫線テーブルTK
Tの内容をポインターpに従って読込み、その値が先頭
か最後か中間の桁かで分岐する。先頭桁の場合はステッ
プs8.6.5に進む。Further, the process advances to step s8.6.4 and the vertical ruled line table TK
The contents of T are read according to the pointer p, and the process branches depending on whether the value is the first, last, or middle digit. If it is the first digit, proceed to step s8.6.5.
(p・)で規定されるブロックメモリBRMのマトリッ
クス位置にCGより読み出しセットする訳であるが、R
AMにおける罫線フラグKFが1の時は全ての罫線を省
略するのでスペースを入れる。It is read from CG and set in the matrix position of block memory BRM defined by (p.), but R
When the ruled line flag KF in AM is 1, all ruled lines are omitted, so a space is inserted.
よって判別する。即ち、罫線スタートフラグKSFがO
の時はそれより上に罫線は無いのでポインターpを1つ
進める。さらにステップs8.6.4に戻り再び次の縦
罫線桁位置を読込む。Therefore, determine. That is, the ruled line start flag KSF is O.
When , there is no ruled line above it, so the pointer p is advanced by one. Further, the process returns to step s8.6.4 and the next vertical line digit position is read again.
BRMにセットする。いずれのパタンをセットするかは
ステップs8.6.5における判別と同じ条件である。Set it to BRM. Which pattern to set is determined under the same conditions as in step s8.6.5.
しかる後にステップs8.6.8に進む。Thereafter, proceed to step s8.6.8.
又はスペースをCGより読み出しブロックメモリBRM
にステップs8.6.5と同様にセットする。この処理
を終えるとステップs8.6.9に進みブロックメモリ
の行を変える為にブロック行NoLNOを1つ進め、罫
線スタートフラグKSFを1にセットし先頭の横罫線は
転送し終えた事を記憶させる6以上で第12図(2)の
2行目及び第12図(5)の5行目の例に示した通り横
罫線がブロックメモリBRKにセットされる事になる。Or read space from CG block memory BRM
is set similarly to step s8.6.5. When this process is completed, the process advances to step s8.6.9, advances the block row NoLNO by one to change the line in the block memory, sets the ruled line start flag KSF to 1, and remembers that the first horizontal ruled line has been transferred. 6 or more, horizontal ruled lines are set in the block memory BRK as shown in the example of the second line of FIG. 12(2) and the fifth line of FIG. 12(5).
かかる処理が終えたなら第7図のステップ58.7に進
む。Once such processing is completed, the process proceeds to step 58.7 in FIG.
ステップ58.7では文書メモリ内の小ブロックに含ま
れる文字列を縦罫線情報と同時にブロックメモリBRK
に転送する処理を行なう、第10図を参照しつつ詳細に
説明する。In step 58.7, the character string included in the small block in the document memory is stored in the block memory BRK at the same time as the vertical ruled line information.
This will be described in detail with reference to FIG. 10.
まずステップs8.7.1において、ブロックメモリB
RMの横方向のポインターXにブロック行NoLNOの
値をセットし、同じく縦方向ポインターyに小ブロツク
範囲テーブル内の開始桁をセットする0次にステップs
8.7.2に進み文書メモリを読込んでその内容によっ
て分岐する。First, in step s8.7.1, block memory B
Set the value of block row NoLNO in the horizontal pointer X of RM, and also set the start digit in the small block range table in the vertical pointer y.
Step 8.7.2 reads the document memory and branches depending on its contents.
通常の文字の場合はステップs8.7.3に進み、文書
メモリBSMの内容をブロックメモリBRMに転送する
。さらに文書メモリBSMのポインターiを1つ進める
。In the case of normal characters, the process proceeds to step s8.7.3, where the contents of the document memory BSM are transferred to the block memory BRM. Furthermore, the pointer i of the document memory BSM is advanced by one.
次にステップs8.7.4に進みブロックメモリBRM
の横方向ポインターyと小ブロツク範囲テーブルSIT
の内終了桁とを比較する。これは小ブロックの1行分の
転送が完了したか否か調べる事を意味する。一致した場
合は1行分の転送が完了した訳で第12図(3)の例で
説明すると3行目のrABJ迄が転送された時である。Next, proceed to step s8.7.4 and block memory BRM.
horizontal pointer y and small block range table SIT
Compare with the ending digit. This means checking whether the transfer of one row of the small block has been completed. If they match, the transfer of one line has been completed, and to explain this using the example of FIG. 12 (3), this means that up to the third line rABJ has been transferred.
その場合ステップs8.7.5に進み転送した行に縦罫
線を必要なだけ全てセットする。しかる後にブロックメ
モリBRMの縦方向ポインターXを1つ進め横方向のポ
インターyは元の桁位置S HT(m、l)に設定し直
す、かかる処理が終了すると再びステップs8.7.2
に戻る・
他方、ステップs8.7.4で1行未完成と判別された
時はステップs8.7.6に進みブロックメモリBRM
の横方向ポインターyを1つだけ進めてステップs8.
7.2に戻る。この繰り返しで第12図(3)に示した
通りrABJ rCJ迄が転送される訳である。In that case, the process proceeds to step s8.7.5 and sets all the necessary vertical ruled lines on the transferred lines. After that, the vertical pointer
Return to ・ On the other hand, when it is determined in step s8.7.4 that one row is incomplete, the process advances to step s8.7.6 and the block memory BRM is
Advance the horizontal pointer y by one step and proceed to step s8.
Return to 7.2. By repeating this process, data from rABJ to rCJ are transferred as shown in FIG. 12 (3).
一方ステップs8.7.2で文書メモリBSMの内容が
・マークの場合は1つの小ブロックの転送が完了した訳
で本ルーチンを抜ける。On the other hand, if the content of the document memory BSM is a mark in step s8.7.2, the transfer of one small block is completed and the routine exits.
第7図に戻って次にステップ58.8では小ブロツク範
囲テーブルSHTのポインターmを1つ進める。さらに
ステップS8,9では5S−1を実行しその結果横方向
に並んだ小ブロックの全てがブロックメモリBRMに転
送終了したか否か判別しまだ完了していない時はステッ
プ58.7に戻る。完了した時は第12図(4)に示し
た通り横並びの小ブロックrABCJ rabCJが
転送された訳でステップs8.10に進む。Returning to FIG. 7, in step 58.8, the pointer m of the small block range table SHT is advanced by one. Further, in steps S8 and S9, 5S-1 is executed, and as a result, it is determined whether or not all of the small blocks arranged in the horizontal direction have been transferred to the block memory BRM. If the transfer has not been completed yet, the process returns to step 58.7. When the process is completed, the horizontal small blocks rABCJ rabCJ have been transferred as shown in FIG. 12 (4), and the process proceeds to step s8.10.
ステップs8.10では文書メモリBSMのポインター
iを1つ進めて次の文書メモリBSMの内容を読込み、
その内容が・マークか否かで分岐する。即ち、φマーク
の時はステップ88.8で最後に読み取られた・マーク
と2つ連続している訳でその場合ステップs8.11に
進む、・マークでない時は再びステップ58.6に進む
。In step s8.10, the pointer i of the document memory BSM is advanced by one and the contents of the next document memory BSM are read.
The process branches depending on whether the content is a mark or not. That is, if it is a φ mark, it is two consecutive marks from the last read mark in step 88.8, so the process goes to step s8.11; if it is not a *mark, the process goes to step 58.6 again.
ステップs8.11では全ブロックの文字情報の転送が
終了した訳でブロックの最後行の罫線をブロックメモリ
に転送する処理を行なう、この処理はステップ58.6
で行なったのと同様に最初に罫線パタンr−Jを1行に
渡ってCGより読み出しセットし次に縦罫線テーブルT
KTの内容に応して罫線パタンrLJ、r↓」、「」」
をCGより読み出しセットする処理を行なう訳である。At step s8.11, the transfer of character information for all blocks is completed, so a process is performed to transfer the ruled line of the last line of the block to the block memory. This process is performed at step 58.6.
First, read and set the ruled line pattern r-J over one line from CG, and then set the vertical ruled line pattern r-J in the same way as in the vertical ruled line table T.
Depending on the content of KT, the ruled line pattern rLJ, r↓", """
This means that the process of reading and setting the CG from the CG is performed.
かかる処理が終了するとブロックメモリBRMは全て完
成した事になり第12図(6)の例に示した1〜8行ま
での転送が完了した事になる。When this process is completed, the entire block memory BRM is completed, and the transfer of lines 1 to 8 shown in the example of FIG. 12 (6) is completed.
さらにステップs8.12に進み区切マーク・が2つ連
続した次の文字を平文としてブロックメモリBRMに転
送する。その結果第12図(6)に示したとおりブロッ
クメモリへの転送が完成した事になる。Further, the process proceeds to step s8.12, and the next character with two consecutive delimiter marks is transferred to the block memory BRM as plain text. As a result, the transfer to the block memory is completed as shown in FIG. 12 (6).
なお上述した実施例ではブロックメモリを9X9のマト
リックスにしたが他の構成のマトリックスにしても良い
し、表示器のLCDを他の表示装置例えばCRTにして
も本発明の主旨を損なうものではない。In the above-described embodiment, the block memory is a 9x9 matrix, but it may be a matrix of other configuration, or the LCD of the display may be replaced by another display device, such as a CRT, without detracting from the spirit of the present invention.
(効 果)
上述した様に本発明によると、1列のシリアルな文字列
からなる文書をブロック形態に変換するに当り、交角の
上下、左右両方向の分割を行なうのに、1種類のマーク
だけで済ませる事が可能になった。(Effects) As described above, according to the present invention, when converting a document consisting of one serial character string into a block format, only one type of mark is required to divide the intersection in both the vertical and horizontal directions. It became possible to do it.
第1図は1本発明の概念を示す図。
第2図は1本発明の一実施例の構成を示すブロック図。
第3図は、キーボードのキートップ概略図。
第4図は、メモリ構造の説明図。
第5図は、シリアル文字列と罫線ブロック例を示す図。
第6図〜第1θ図は処理の過程を示すフローチャート。
第11図〜第12図は実際の処理過程を示した各種メモ
リの説明図。
BSM−m−文章メモリ
BRM−m−ブロックメモリFIG. 1 is a diagram showing the concept of the present invention. FIG. 2 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 3 is a schematic diagram of the key tops of the keyboard. FIG. 4 is an explanatory diagram of the memory structure. FIG. 5 is a diagram showing an example of serial character strings and ruled line blocks. FIG. 6 to FIG. 1θ are flowcharts showing the process of processing. FIGS. 11 and 12 are explanatory diagrams of various memories showing actual processing steps. BSM-m-text memory BRM-m-block memory
Claims (1)
手段とを有するメモリ手段と、 前記文字情報の区切りマークを入力する入力手段と、 前記区切りマークにより前記文字情報をブロック分か否
かを識別する手段とを有する罫線ブロック処理装置。[Scope of Claims] Memory means having a first memory means for storing character information and a second memory means; input means for inputting a delimiter mark for the character information; and input means for inputting a delimiter mark for the character information; A ruled line block processing device comprising means for identifying whether or not a line is a block.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59275176A JPS61158379A (en) | 1984-12-29 | 1984-12-29 | Rule block processor |
GB8531766A GB2170335B (en) | 1984-12-29 | 1985-12-24 | Information processing apparatus |
FR858519294A FR2575565B1 (en) | 1984-12-29 | 1985-12-27 | DEVICE FOR PROCESSING TABLES |
DE3546140A DE3546140C2 (en) | 1984-12-29 | 1985-12-27 | Information processing device |
US07/332,366 US4980841A (en) | 1984-12-29 | 1989-03-31 | Block processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59275176A JPS61158379A (en) | 1984-12-29 | 1984-12-29 | Rule block processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61158379A true JPS61158379A (en) | 1986-07-18 |
Family
ID=17551725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59275176A Pending JPS61158379A (en) | 1984-12-29 | 1984-12-29 | Rule block processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61158379A (en) |
-
1984
- 1984-12-29 JP JP59275176A patent/JPS61158379A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6017564A (en) | Electronic dictionary | |
JPS61158379A (en) | Rule block processor | |
JPS61158392A (en) | Block processor | |
JPS61158380A (en) | Rule block processor | |
EP0190511A1 (en) | Block processing apparatus | |
JPS61158382A (en) | Rule block processor | |
JPH0438005B2 (en) | ||
JPS61158378A (en) | Rule block processor | |
JPS61158390A (en) | Rule processor | |
JPS61158381A (en) | Rule block processor | |
JPS61158377A (en) | Rule block processor | |
JPS61158393A (en) | Character processor | |
JPS5983187A (en) | Kanji learning machine | |
JPS60176137A (en) | Sentence generating device | |
JPS61158389A (en) | Rule processor | |
JPS61158387A (en) | Block processor | |
JPS61158385A (en) | Block generator | |
JP2787822B2 (en) | Document processing device | |
JPS61160171A (en) | Block formation device | |
JPS61158388A (en) | Rule processor | |
JPS60103389A (en) | Character processor | |
JPS61158386A (en) | Rule block generator | |
JPH01142975A (en) | Document preparing device | |
JPH0545486Y2 (en) | ||
JPS60128562A (en) | Japanese input device |