[go: up one dir, main page]

JPS61158391A - Ruled line processing device - Google Patents

Ruled line processing device

Info

Publication number
JPS61158391A
JPS61158391A JP59279908A JP27990884A JPS61158391A JP S61158391 A JPS61158391 A JP S61158391A JP 59279908 A JP59279908 A JP 59279908A JP 27990884 A JP27990884 A JP 27990884A JP S61158391 A JPS61158391 A JP S61158391A
Authority
JP
Japan
Prior art keywords
memory
block
ruled line
tab
mark
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
JP59279908A
Other languages
Japanese (ja)
Inventor
和宣 杉谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP59279908A priority Critical patent/JPS61158391A/en
Priority to US06/816,041 priority patent/US4843570A/en
Priority to DE8585309533T priority patent/DE3586097D1/en
Priority to EP85309533A priority patent/EP0190511B1/en
Publication of JPS61158391A publication Critical patent/JPS61158391A/en
Pending legal-status Critical Current

Links

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

【発明の詳細な説明】 c分  野] 本発明は、罫線付き文書を処理する罫線処理装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION Field c] The present invention relates to a ruled line processing device that processes a ruled document.

[従来技術] 従来罫線を引く事の出来る罫線処理装置に於いては直接
罫線パタンを入力する方式の他に罫線パタンを代表する
マークを1種のファンクシランとして文字間に入力し後
に罫線パタンを発生させマークを罫線パタンに変換する
方式があった。かかる方式の装置に於いては。
[Prior art] In conventional ruled line processing devices that can draw ruled lines, in addition to directly inputting the ruled line pattern, marks representing the ruled line pattern are input between characters as a type of funk silan, and then the ruled line pattern is input. There was a method of generating marks and converting them into ruled line patterns. In devices of this type.

(1)  1種類のマークしか持たずそのマークが(2
) 罫線パタンのいずれかに変換される。
(1) If you have only one type of mark and that mark is (2
) is converted to one of the ruled line patterns.

1つのマークで複数個の同一の罫線パタンを表現する。To express a plurality of identical ruled line patterns with one mark.

という方式があったが(1)の方式だとマークは1種類
で済むが罫線パタンの側数だけ文書中に人力しなければ
ならないし、(2)の方式だと同じ罫線パタンか連続し
ている様な場合1つのマークで済むが、罫線パタンの種
類だけマークの種類も必要になってくるという欠点があ
った。
There was a method called ``(1)'', but only one type of mark was required, but you had to manually enter the same number of marks in the document for each side of the ruled line pattern, and ``method (2)'' required markings with the same ruled line pattern or consecutive marks. In some cases, one mark is sufficient, but there is a drawback that different types of marks are required for each type of ruled line pattern.

[目  的] 本発明の目的は上述した欠点を補い、1つのマークだけ
で文字との相対位置関係を考慮した適切な複数種・複数
個の罫線パタンを、発生させる事を可能にした罫線処理
装置を提供する事にある。
[Objective] The object of the present invention is to compensate for the above-mentioned drawbacks, and to provide ruled line processing that makes it possible to generate multiple types and multiple ruled line patterns that take into account the relative positional relationship with characters using only one mark. The purpose is to provide equipment.

[概  要] 以下、未発IJJの一実施例を図面を参照して、説明す
る。
[Summary] Hereinafter, an example of undeveloped IJJ will be described with reference to the drawings.

まず本発明の概念を第1図に示す、第1メモリに対しマ
ーク入力手段にてマークを入力する。さらにマークと文
字との相対位置関係を考慮しつつ罫線パタン変換手段を
用いて第1メモリの内容を罫線で囲み第2メモリに格納
するものである。
First, the concept of the present invention is shown in FIG. 1, in which a mark is input into a first memory using a mark input means. Furthermore, the contents of the first memory are surrounded by ruled lines and stored in the second memory using a ruled line pattern conversion means while taking into account the relative positional relationship between the mark and the character.

以ド、本発明の一実施例を図面を参照して、説明する。Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

まず本発明の概念を第1図に示す、メモリには文字がシ
リアルな状態で格納されており、この中に上下分割マー
クと左右分割マークを入力し、ブロック形成p段を用い
てメモリの文字列をブロック形式文書に組み立て変換す
るものである。さらに述べると、第5図(a)に示した
通りまず文字列を1列にシリアルに入力し、後にブロッ
クに分割したい所に第5図(b)に示した通り・と0を
文字間に挿入する。・は文字列を上下ブロックに仕切る
意味を持ち@はさらにそのブロックの中で左右に文字列
を分割する意味を持つ、又縦ブロックの仕切り桁位置を
指示する為にタブを4箇所にセットしておき罫線ブロッ
クキーを押下すると第5図(C)に示した通り罫線ブロ
ー2りを作成する訳である。以下争で仕切られた文字列
を大ブロックと定義し、0マークで仕切られた文字列を
小ブロックと定義する。即ち、印刷する際拳マークによ
って上下にまずブロックを分割し、さらに0マークによ
ってその大ブロツク内で左右に分割する訳である。
First, the concept of the present invention is shown in Fig. 1. Characters are stored in a memory in a serial state, and vertical division marks and left and right division marks are input into the memory, and characters are stored in the memory using p stages of block formation. It assembles and converts columns into block format documents. To explain further, first input a character string serially in one column as shown in Figure 5(a), and then add 0 between the characters as shown in Figure 5(b) at the place where you want to divide it into blocks. insert.・ has the meaning of dividing the character string into upper and lower blocks, @ has the meaning of further dividing the character string to the left and right within the block, and tabs are set in 4 places to indicate the position of the dividing digit of the vertical block. When the ruled line block key is pressed, a ruled line block 2 is created as shown in FIG. 5(C). The character strings separated by 0 marks are defined as large blocks, and the character strings separated by 0 marks are defined as small blocks. That is, when printing, a block is first divided vertically by the fist mark, and then divided horizontally within the large block by the zero mark.

・は3箇所にセットされているが1番目の・マークはブ
ロックの始まりを意味し且つ上端の横罫線を意味する。
* is set in three places, and the first * mark means the beginning of the block and also means the horizontal ruled line at the top end.

2番目のΦマークは上下2段にブロックを仕切る際の横
罫線の意味も持つ、さらに最後の拳マークは、ブロック
の終了を意味し下端の罫線を引く意味を持つ、又、各・
マークはセットされた最も外側のタブ桁位置に対応した
縦罫線を意味する。
The second Φ mark also has the meaning of a horizontal ruled line when dividing the block into two upper and lower levels, and the final fist mark signifies the end of the block and has the meaning of drawing a ruled line at the bottom.
The mark means a vertical ruled line corresponding to the set outermost tab column position.

■マークは拳マークで上下に分割された各大ブロックの
中でさらに左右にブロックを分割させる意味を持つ、し
かも罫線ブロックを作成する際に仕切となる桁位置は最
も外側のタブ桁を除いた残りのタブ桁位置に対応して順
に縦罫線が設定される様になっている。
■The mark has the meaning of further dividing blocks left and right within each large block divided vertically by the fist mark, and the digit positions that serve as partitions when creating ruled line blocks exclude the outermost tab digit. Vertical ruled lines are set in order corresponding to the remaining tab digit positions.

第5図(b)に於いて、「き」とrA4の間に■マーク
が2つ連続しているが、これは2番目のブロックが省略
されて3番目のブロックに吸収合併される事を意味する
。つまり第5図(C)示した通り、3番目のタブ桁に縦
罫線が入らず、すぐ左の2番目のタブ桁の縦罫線に重な
ったかの様に小ブロツク文字列rABCDEJが印刷さ
れる訳である。
In Figure 5(b), there are two consecutive ■ marks between "ki" and rA4, which means that the second block has been omitted and merged with the third block. means. In other words, as shown in Figure 5 (C), there is no vertical ruled line in the third tab column, and the small block character string rABCDEJ is printed as if it overlapped with the vertical ruled line in the second tab column immediately to the left. be.

横罫線の印刷位置は先頭は別として2番目、3番目の行
位置は・マークで仕切られた大ブロックに含まれる各小
ブロックの中で最も長い行の成り行きにまかせ、さらに
次の行位置に印刷される様になっている。従って第5図
(d)に示した通り2番目のタブ桁位置を左へ1桁ずら
してセットすると1番目の大ブロックは2行から3行に
拡大し、2#i目の横罫線位置は自動的に下へずれる。
The printing position of the horizontal ruled line is set aside from the first line, and the second and third line positions are left to the longest line of each small block included in the large block separated by the mark, and then to the next line position. It looks like it will be printed. Therefore, as shown in Figure 5(d), if the second tab digit position is shifted one digit to the left and set, the first large block will expand from 2 lines to 3 lines, and the 2#i-th horizontal ruled line position will be It will automatically shift downward.

他方、2番目の大ブロックは2行で収まる為最後の横罫
線はそのすぐ次の行にせり上って繰る事になる。
On the other hand, the second large block will fit in two lines, so the last horizontal ruled line will go up to the next line.

以下図面を参照して本発明の実施例を詳細に説明する。Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は本発明による一実施例の文字処理装置の構成例
を示す図である。CPu (中央処理装置)はROM(
リードオンリメモリ)に含まれたプログラムメモリの内
容を実行処理する事によりパスラインを介して接続され
る各装置を制御する。ROMはプログラムメモリで、添
付図面に示す如き手順のプログラムを記憶している。
FIG. 2 is a diagram showing an example of the configuration of a character processing device according to an embodiment of the present invention. CPU (Central Processing Unit) has ROM (
Each device connected via the path line is controlled by executing the contents of the program memory included in the read-only memory (read-only memory). The ROM is a program memory and stores a program of procedures as shown in the attached drawings.

BLはパスラインで、各装置を結合させる。BL is a pass line that connects each device.

このパスラインには例えば、キーボードが接続され、こ
のキーボードから入力された文字情報はパスラインを介
してRAM (ランダムアクセスメモリ)の一部にある
文書メモリBSMに供給記憶される。KBはキーボード
で、第3図に示す如き文字キーCRK、ブロック識別キ
ーおよび制御キー等を有する。RAMはメモリで1例え
ば、記憶された文字情報を表示器LCD (リキッドク
リスタルディスプレイ)に表示するものである0表示器
LCDにはLCDコントローラLCONTで制御されて
いるキャラクタジェネレータCGの中から文字コードに
相当するフォントをパスラインBLを介してCPUの指
示により行なわれる。
For example, a keyboard is connected to this pass line, and character information input from this keyboard is supplied to and stored in a document memory BSM in a part of RAM (random access memory) via the pass line. KB is a keyboard having character keys CRK, block identification keys, control keys, etc. as shown in FIG. RAM is a memory that displays stored character information on a display device LCD (liquid crystal display). The corresponding font is selected by the CPU via the pass line BL.

メモリRAMには前述の文書メモリBSMの他にブロッ
クを形成する為のブロックメモリBRM、タブ位置の情
報を格納するタブメモリTBM、ブロックを分割した際
に各分割ブロックの縦π線位置を示す縦罫線テーブルT
XT、後述する小ブロックの先頭桁と終了桁を示す小ブ
ロツク範囲テーブルSHT、横罫線の行動を格納する横
罫線行NbLNO1後述する大ブロックの数を格納する
大ブロック数DS、小ブロック数を格納する小ブロツク
数SS、その他プログラムを実行処理する際に必要なR
ZF、MJF等のフラグやプリンターのキャリッジ位置
、やメモリカーソル位置を示すCRGM、CRLM等の
一時記憶用の領域がある。プリンタは前述のブロックメ
モリの内容をCPUの指示により印刷する為の装置であ
る。
In addition to the document memory BSM described above, the memory RAM includes a block memory BRM for forming blocks, a tab memory TBM for storing tab position information, and vertical ruled lines that indicate the vertical pi line position of each divided block when the block is divided. table T
XT, a small block range table SHT that shows the start and end digits of small blocks (described later), a horizontal ruled line row NbLNO1 that stores the behavior of horizontal ruled lines, a large block number DS that stores the number of large blocks (described later), stores the number of small blocks. The number of small blocks SS to be executed, and other R required when executing the program
There are temporary storage areas such as CRGM and CRLM that indicate flags such as ZF and MJF, printer carriage position, and memory cursor position. The printer is a device for printing the contents of the aforementioned block memory according to instructions from the CPU.

第3図は第2図のキーボードKBの拡大詳細図である。FIG. 3 is an enlarged detailed view of the keyboard KB of FIG. 2.

この白文字キーCRKは通常の文字を入力する為のキー
であり、ここで入力されたキーに対応した文字コードが
前述の文書メモリに格納されかつLCDに表示される。
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 and displayed on the LCD.

このキーの中には後述するブロック分割(識別)用のマ
ーク・、Oを入力させる為のキーBDK l、BDK2
も含まれている。カーソル左移動キーCRLK、カーソ
ル右移動キーCRRKは表示上の文字位置を示すカーソ
ルを左右に移動させる為のキーである。
Among these keys are keys BDK l and BDK2 for inputting marks for block division (identification), which will be described later.
is also included. The cursor left movement key CRLK and the cursor right movement key CRRK are keys for moving the cursor that indicates the character position on the display left and right.

キャリッジ左移動CRGLK、キャリー、ジ右移動キー
CRGRKの各キーはプリンタのキャリッジを左右に移
動させる為のキーである。タブセットキーTABKはキ
ャリッジ位置に相当する桁にタブをセットさせる為のキ
ーであり、タブリセットキーTABRKは逆にタブをリ
セットさせる為のキーである。罫線ブロックキーKBE
Kはシリアル文字列から罫線ブロックを作成させる為の
キーである。
The carriage left movement key CRGLK, carry, and right movement key CRGRK are keys for moving the printer's carriage left and right. The tab set key TABK is a key for setting a tab at a digit corresponding to the carriage position, and the tab reset key TABRK is a key for resetting a tab. Ruled line block key KBE
K is a key for creating a ruled line block from a serial character string.

第4図は第2図におけるRAM内の文書メモリBSM、
ブロックメモリBRM、タブメモリTBM、縦罫線テー
ブル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 tab memory TBM, a vertical ruled line table TXT, and a small block range table SHT.

文書メモリBSMは文字情報が格納されるシリアルなメ
モリで先頭からアドレス順に構成されており、順にBS
M (1)、BSM (2)、、、、 一般にBSM(
i)と表現する。ブロックメモリBRMはマトリックス
構造になっており、先頭行の1桁目から順にアドレスが
付され、BRM(1,1)、BRM (1,2)、、、
、一般にBRM(x 、 y)と表現する。タブメモリ
TBMはセットされたタブ桁位置を格納する為のメモリ
でありアドレス順に先頭からTBM(1)、TBM(2
)、、、一般にTBM(j)と表現、する、縦罫線テー
ブルTKTは後述する各大ブロツク毎にタブの位置を示
すテーブルでありマトリックス構造になっており先頭行
の1行目から順にアドレスが付され、TKT (1,1
)、TXT (1、?)000.一般にTKT (p 
、q)と表現する。小ブロツク範囲テーブルSHTは各
小ブロックの文字情報をブロックメモリのどの範囲に転
送するかを示した各々開始桁と縛了桁をペアで持たせた
メモリであり先頭からSHT (1,1)、5HT(l
、2)、SHT (2,1)、、、、一般にSHT(m
、1)、SHT (m、2)と表現する。
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 (
Expressed as i). The block memory BRM has a matrix structure, and addresses are assigned in order from the first digit of the first row, BRM (1, 1), BRM (1, 2), etc.
, generally expressed as BRM(x, y). The tab memory TBM is a memory for storing the set tab digit position, and it is stored in address order from the beginning as TBM(1) and TBM(2).
), generally expressed as TBM(j), the vertical ruled line table TKT is a table that indicates the tab position for each large block, which will be described later, and has a matrix structure, with addresses sequentially starting from the first row. TKT (1,1
), TXT (1,?)000. Generally TKT (p
, q). The small block range table SHT is a memory having a pair of start digit and end digit indicating to which range of the block memory the character information of each small block is to be transferred.From the beginning, SHT (1, 1), 5HT(l
, 2), SHT (2, 1), , generally SHT(m
, 1), expressed as SHT (m, 2).

Pはプリンタで、RAMに記憶されている情報を印刷さ
せるためのものである。
P is a printer for printing information stored in the RAM.

以上の構成の下で、本発明実施例の動作を第6図〜第1
O図のフローチャート及び第11図、第12(i!Jの
メモリ内容例を参照して説明する。
Under 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 flowchart in Figure O and examples of memory contents in Figures 11 and 12 (i!J).

本装置は、電源を投入するとまず第6図ステップslに
進む、ステップslではRAM内の文書メモリBSM、
ブロックメモリBRM、 タブメモリTBM、縦罫線テ
ーブルTKTをクリヤ、キャリッジをホームポジション
にセットし、カーソルを文書メモリBSMの先頭アドレ
スにセットして、キャリッジ位置メモリCRGMとカー
ソル位置メモリ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 block memory BRM, tab memory TBM, and vertical ruled line table TKT, set the carriage to the home position, set the cursor to the start address of the document memory BSM, and set the carriage position memory CRGM and cursor position memory CRLM to their initial states. .

その後、ステップ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に
進み入力されたキーの判別を行ないステップ34〜ステ
ツプS9のいずれかに進む。
If any key has been input, the process proceeds to step S3, where the input key is determined, and the process proceeds to any one of steps 34 to S9.

ステー2プS4は文字キーCRKが操作された時の処理
を行なう0文字キーCRKが操作されるとカーソル位置
メモリCRLM、に対応した文書メモリBSMに文字コ
ードを格納する。しかる後。
Step 2 S4 performs processing when the character key CRK is operated. When the 0 character key CRK is operated, a character code is stored in the document memory BSM corresponding to the cursor position memory CRLM. After that.

カーソルは1つ歩進し、同時にカーソル位置メモリCR
LMの内容もlアドレス分進む。
The cursor advances one step, and at the same time the cursor position memory CR
The contents of LM also advance by l addresses.

ステップS5ではキャリッジ右移動キーCRGRK、又
はキャリッジ左移動キーCRGRKが操作された時の処
理を行なう、即ち、ギヤリッジ左移動キーが操作された
なら。
In step S5, a process is performed when the carriage right movement key CRGRK or the carriage left movement key CRGRK is operated, that is, when the gear carriage left movement key is operated.

プリンタのキャリッジを1桁左に移動し、且つキャリッ
ジ位置メモリCRGMの内容を1つ減じる処理を行ない
、逆にキャリッジ右移動キーが操作された時は、プリン
タのキャリッジを1折本へ移動し且つキャリッジ位置メ
モリCRGMの内容を1つ加算する処理を行なう。
The printer's carriage is moved to the left by one digit, and the contents of the carriage position memory CRGM are decremented by one. Conversely, when the carriage right movement key is operated, the printer's carriage is moved to the one-fold book and A process of adding one to the contents of the carriage position memory CRGM is performed.

ステップs6ではカーソル左移動キー CRRK、又はカーソル左移動キーCRLKが操作され
た時の処理を行なう、即ち、カーソル左移動キーが操作
されたならカーソル位置メモリCRLMの内容を1アド
レス分減じる処理を行ない、逆にカーソル左移動キーが
操作された時はカーソル位置メモリCRLMの内容を1
アドレス分加える処理を行なう。
In step s6, a process is performed when the cursor left movement key CRRK or the cursor left movement key CRLK is operated, that is, when the cursor left movement key is operated, the content of the cursor position memory CRLM is decreased by one address. , conversely, when the cursor left movement key is operated, the contents of the cursor position memory CRLM are set to 1.
Performs processing to add addresses.

ステップs7ではタブセット処理を行なう。In step s7, tab set processing is performed.

即ち、キャリフジ位置メモリCRGMの内容を第4図の
タブメモリTBMの内空き領域にセットする。その結果
で桁位置の若い方からソートを行なう、キャリッジを移
動させた時のキャリッジ位置は常に上述した通すキャリ
ッジ位置メモリCRGMに記憶されているので実際のキ
ャリッジの桁位置にタブがセットされる事になる。
That is, the contents of the carriage position memory CRGM are set in the empty area of the tab memory TBM shown in FIG. 4. As a result, sorting is performed from the smallest digit position. Since the carriage position when the carriage is moved is always stored in the above-mentioned passing carriage position memory CRGM, the tab can be set at the actual carriage digit position. become.

ステップS8ではタブリセット処理を行なう。In step S8, tab reset processing is performed.

即ち、キャリッジ位置メモリCRGMの内容を見て第4
図のタブメモリTBM内に存在するタブ桁位置のうち同
じキャリッジ位置が在れば、その内容をクリヤし、その
結果タブメモリ内の下位のアドレス内容を1アドレス分
上位に詰める。従って、タブメモリの内容は常にキャリ
ッジの桁位置の若い数値順に入る事になる。
That is, by looking at the contents of the carriage position memory CRGM, the fourth
If the same carriage position exists among the tab digit positions existing in the tab memory TBM shown in the figure, its contents are cleared, and as a result, the lower address contents in the tab memory are moved up by one address. Therefore, the contents of the tab memory are always entered in numerical order with the lowest carriage digit position.

ステップS9では第4図に示した文書メモリBSMの内
容をタブメモリTBMの内容を参照しつつ罫線ブロック
を組み立てその結果をブロックメモリBRMに格納させ
る処理を行なう。
In step S9, a ruled line block is assembled by referring to the contents of the document memory BSM shown in FIG. 4 and the contents of the tab memory TBM, and the result is stored in the block memory BRM.

ステップsloはプリント処理を行なう。Step slo performs print processing.

ステー、プs9の内容を詳細に説明したのが第7図であ
る。以下第7図を参照して説明する。まずステップs9
.lで文書メモリ中の・マークの数から大ブロックの個
数を求めRAM領域の大ブロツク数DSにセットする。
FIG. 7 shows a detailed explanation of the contents of step s9. This will be explained below with reference to FIG. First step s9
.. The number of large blocks is determined from the number of marks in the document memory at step 1, and is set to the number of large blocks DS in the RAM area.

次にステップS9.2に進み各大ブロックにおける縦罫
線の桁位置を求め縦罫線テーブルTKTを作成する。こ
の過程をさらに第8図を参照して詳細に説明する。
Next, proceeding to step S9.2, the digit positions of the vertical ruled lines in each large block are determined and a vertical ruled line table TKT is created. This process will be further explained in detail with reference to FIG.

まずステップs9.2.1ではポインタやフラグ類の初
期化を行なう、 RZFは・マークや@マークの連続状
態を調べるフラグであり最初0にセットしておく、又p
 、q 、i* j −は各々縦罫線テーブルTKT、
文書メモリBSM、タブメモリTBMのアドレスを示す
ポインターであり、1にセットしておく0次にステップ
s9.2.2に進み文書メモ+> s S Hの内容を
読込みポインターを1つ進める6その結果ステップs9
.2.3に進んで読込んだ文字内容によって3つに分岐
する。
First, in step s9.2.1, pointers and flags are initialized.
, q , i* j − are vertical ruled line tables TKT,
This is a pointer that indicates the address of document memory BSM and tab memory TBM, and is set to 1.0 Next, proceed to step s9.2.2, read the contents of document memo +> s S H, and advance the pointer by one 6. Result step s9
.. Proceed to step 2.3 and branch into three depending on the character content read.

通常の文字の場合はステップs9.2.4に進みここで
は連続フラグRZFを0クリヤするだけであり引き続き
ステップs9.2.2に戻り次の文書メモリBSHの内
容を読込む訳である。一方ステップs9.2.3でO文
字だった時はステップs9.2.5に進みフラッグRZ
Fの判別を行なう、 RZFが0かlかでさらに分岐す
る。0だった場合通常の文字の次に在るか又は文書の先
頭に在る場合である。この時、タブ桁は有効であるから
ステップs9.2.6に進みタブメモリTBMの内容を
縦罫線テーブルTKTに転送する。第11図を例にとれ
ば「あいうえおかき」の次のOマークの場合これに相当
するタブメモリの桁は6であり、第11図(3)に示し
た通り第1大ブロツクに6が転送される訳である。転送
が処理した後タブメモリTBMのポインターjと縦罫線
テーブルTXTの横方向のポインターqをそれぞれ1つ
進める。さらに連続フラグRZFに1をセットして再び
ステップs9.2.2へ戻る。
In the case of normal characters, the process advances to step s9.2.4, where the continuous flag RZF is simply cleared to 0, and the process then returns to step s9.2.2 to read the contents of the next document memory BSH. On the other hand, if it is an O character in step s9.2.3, proceed to step s9.2.5 and flag RZ.
Determine F. Further branches occur depending on whether RZF is 0 or 1. If it is 0, it is after a normal character or at the beginning of the document. At this time, since the tab digit is valid, the process proceeds to step s9.2.6 and transfers the contents of the tab memory TBM to the vertical ruled line table TKT. Taking Figure 11 as an example, in the case of the O mark next to "Aiueokaki", the corresponding digit in the tab memory is 6, and as shown in Figure 11 (3), 6 is transferred to the first large block. This is the reason. After the transfer is processed, the pointer j of the tab memory TBM and the horizontal pointer q of the vertical ruled line table TXT are each advanced by one. Further, the continuous flag RZF is set to 1 and the process returns to step s9.2.2.

ステップs9.2.5で連続フラグRZFが1の時直前
が拳マーク、又はOマークだった事を意味しステップs
9.2.7へ進む、上記のマークが連続している時は縦
罫線を省略する為タブメモリTBMのポインターjだけ
を1つ進める。第11図(1)で「あいうえおかき」の
次にOマークが2つ連続しているがこの2つ目の■マー
クにセットする縦罫線を省略するので第it図(3)に
示した通り第1大ブロツクには9は入らない事になる。
When the continuous flag RZF is 1 in step s9.2.5, it means that the previous mark was a fist mark or an O mark, and step s
Proceed to 9.2.7. When the above marks are continuous, advance only the pointer j in the tab memory TBM by one to omit the vertical ruled line. In Figure 11 (1), there are two consecutive O marks next to "Aiueokaki", but the vertical ruled line set to this second ■ mark is omitted, so it is as shown in Figure 11 (3). 9 will not be included in the first big block.

しかる後にステップs9.2.2へ戻る。Thereafter, the process returns to step s9.2.2.

ステップs9.2.3で文書メモリBSMの文字が・マ
ークと判別された時はステップs 9 、2 、 aへ
進a、 tず連続フラグRZF I:1セツトし、タブ
メモリTBMの内容を縦罫線テーブルTKTに転送し、
縦罫線テーブルTKTの横方向のポインターを1つ進め
る0次にステップs9.2.9に進みタブメモリTBM
のポインター1を判別する。jが1の時タブ桁の先頭。
When the character in the document memory BSM is determined to be a mark in step s9.2.3, the process proceeds to steps s9, 2, a, sets the continuous flag RZF I:1 for a, t, and divides the contents of the tab memory TBM into vertical ruled lines. Transfer to table TKT,
Advance the horizontal pointer of the vertical ruled line table TKT by one 0 Next, proceed to step s9.2.9 Tab memory TBM
Determine pointer 1 of . When j is 1, it is the beginning of the tab column.

即ち大ブロックの最初を意味するのでそのままステップ
s9.2.2へ戻る。他方jが1以外の時最後のタブ桁
、即ち大ブロックの終了を意味するのでステップs9.
2.10に進み縦罫線テーブルTKTの縦方向のポイン
ターpと大ブロツク数DSとを比較し全ての大ブロック
に関し縦罫線テーブルが完成したか否か判別する。比較
した結果pとDSが一致した時この処理を終了して第7
図59.3に戻る。まだ終了してない時はステップs9
.2.llに進み縦罫線テーブルTXTの縦方向のポイ
ンターpt1つ進めて次の大ブロックへの転送の準備を
する。さらにタブメモリTBMのポインターj、縦罫線
テーブルTKTの横方向ポインターqを1セツトしてタ
ブメモリTBMの先頭の内容を新たな大ブロックに相当
する縦罫線テーブルTKTの先頭行にセットする。
That is, it means the beginning of the large block, so the process returns to step s9.2.2. On the other hand, if j is other than 1, it means the last tab digit, that is, the end of the large block, so step s9.
Proceeding to 2.10, the vertical pointer p of the vertical ruled line table TKT is compared with the large block number DS to determine whether the vertical ruled line table has been completed for all large blocks. When p and DS match as a result of comparison, this process ends and the seventh
Return to Figure 59.3. If it is not finished yet, step s9
.. 2. ll, the vertical pointer pt of the vertical ruled line table TXT is advanced by one to prepare for transfer to the next large block. Further, the pointer j of the tab memory TBM and the horizontal pointer q of the vertical ruled line table TKT are set to 1, and the content at the beginning of the tab memory TBM is set to the first row of the vertical ruled line table TKT corresponding to the new large block.

さらに縦罫線テーブルTXTの横方向ポインターqを1
進め、再びステップs9.2.2に戻る。
Furthermore, set the horizontal pointer q of the vertical ruled line table TXT to 1.
Proceed and return to step s9.2.2 again.

このステップs9.2.8からステップ59.2.11
迄の過程の意味する所は、つまり・マークは1つで2つ
のブロックの最後タブ桁と次のブロックの先頭タブ桁の
2箇所に縦罫線をセットする機能を持つ為2回縦罫線テ
ーブルTKTにタブ桁位置をセットする事にある0以上
で第11図(3)の例で示した通り縦罫線テーブルTK
Tが完成する。
This step s9.2.8 to step 59.2.11
The meaning of the above process is that one mark has the function of setting vertical ruled lines in two places, the last tab column of two blocks and the first tab column of the next block, so the vertical ruled line table TKT is created twice. Set the tab digit position to 0 or more, as shown in the example in Figure 11 (3), the vertical ruled line table TK
T is completed.

第7図に戻ってステップ59.3では縦罫線テーブルT
KTの横方向ポインターpと文書メモリBSMのポイン
ターiを1にセットする。
Returning to FIG. 7, in step 59.3, the vertical ruled line table T
The horizontal pointer p of KT and the pointer i of document memory BSM are set to 1.

次にステップ89.4に進み1つの大ブロツク内での小
ブロックの414数を求めRAM領域の小ブロツク数S
Sにセットする。さらにステップ59.5に進み縦罫線
テーブルTXTから各小ブロックの収まる桁範囲を求め
る。第11図(3)の例に従うと、第1大ブロツクでは
縦罫線位置はl、6.12の3箇所であり、従って小ブ
ロックは2つ存在する雲になり、各々2〜5,7〜11
桁の範囲に収まるバになる。これをテーブル化したのが
第11図(4)で示した例である。
Next, proceed to step 89.4 to calculate the 414 number of small blocks within one large block and obtain the number S of small blocks in the RAM area.
Set to S. Further, the process proceeds to step 59.5, and the digit range within which each small block fits is determined from the vertical ruled line table TXT. According to the example in FIG. 11 (3), in the first large block, the vertical ruled line positions are 1, 6.12, and therefore there are two small blocks, forming a cloud, 2 to 5, 7 to 12, respectively. 11
It becomes a bar that fits within the digit range. The example shown in FIG. 11 (4) is a table of this.

ステップ89.6では横罫線情報をブロックメモリに1
行分セットし、且つブロック行NoLNOに次の行の値
をセットする処理を行なう、この処理の詳細を第9図を
参照して説明する。
In step 89.6, the horizontal ruled line information is stored in the block memory.
The details of this process of setting the number of rows and setting the value of the next row in the block row NoLNO will be explained with reference to FIG.

第9図ステップs9.6.1に於いては、ブロックメモ
リBRMの内容を調べ空白の行を探し出しその行動をブ
ロック行NoLNOにセットする0次にステップs9.
6.2に進みブロック行NoLNOに相当する行に横罫
線マーク「−」をタブメモリTBMの桁のうち先頭から
最後の指金てにセットする。しかる後ステップs9.6
.3に進み縦罫線テーブルTKTの横方向のポインター
qに1セツトする。さらにステップs9.6.4に進み
縦罫線テーブルTKTの内容を読込みその値がタブメモ
リTBMの各桁と比較し先頭か最後か中間の桁かで分岐
する。先頭桁の場合はステップs9.8.5に進む。
In step s9.6.1 of FIG. 9, the contents of the block memory BRM are checked, a blank row is found, and its action is set in the block row NoLNO. Next, step s9.
Proceed to step 6.2, and set horizontal ruled line marks "-" in the row corresponding to block row NoLNO from the first to the last finger of the digits in the tab memory TBM. Then step s9.6
.. Proceed to step 3 and set 1 to the horizontal pointer q of the vertical ruled line table TKT. The program then proceeds to step s9.6.4, reads the contents of the vertical ruled line table TKT, compares its value with each digit of the tab memory TBM, and branches depending on whether it is the first, last, or middle digit. If it is the first digit, proceed to step s9.8.5.

れるマトリックス位置にセットする訳であるが、て判別
する。即ち、pが1の時はそれより上に罫TKTの横方
向ポインターqを1つ進める。さらにステップs9.6
.4に戻り再び次のタブ桁位置を読込む。
It is set to the matrix position that will be used, but it is determined by That is, when p is 1, the horizontal pointer q of the ruled line TKT is advanced by one position above it. Further step s9.6
.. Return to step 4 and read the next tab column position again.

プルTXTの1つ前のブロックの内容によって規定され
る。111ち前の大ブロックにあるタブ桁が現在読込ん
でいる大ブロックに存在しない時。
It is defined by the contents of the block immediately before the pull TXT. 111 When the tab digit in the previous large block does not exist in the currently read large block.

「二」をセットし、前の大ブロックにも現在の在読込ん
でいる大ブロックにタブ桁が存在するステップs9.6
.8では「1」又は「」」をブロックメモリBRMにセ
ットする。いずれの罫線パタンをセットするかは縦罫線
テーブルTXTの縦方向ポインターpが1か1以外かで
判別する。この処理を終えるとステップs9.6.9に
進みブロックメモリの行を変える為にブロック行t’b
LNOを1つ進める0以上で第12図(a)の1行目及
び第12図(d)の4行目の例に示した通り横罫線がブ
ロックメモリBRKにセットされる事になる。かかる処
理が終えたなら第7図のステップ89.7に進む。
Step s9.6 where "2" is set and the tab digit exists in the previous large block as well as in the currently read large block.
.. 8, "1" or "" is set in the block memory BRM. Which ruled line pattern to set is determined by whether the vertical pointer p of the vertical ruled line table TXT is 1 or other than 1. When this process is completed, the process proceeds to step s9.6.9 and the block row t'b is changed to change the row of the block memory.
When LNO is incremented by one, the horizontal ruled line is set in the block memory BRK as shown in the example of the first line of FIG. 12(a) and the fourth line of FIG. 12(d). Once such processing is completed, the process proceeds to step 89.7 in FIG.

ステップ89.7では文書メモリ内の小ブロックに含ま
れる文字列を縦罫線情報と同時にブロックメモリBRK
に転送する処理を行なう、第1O図を参照しつつ詳細に
説明する。
In step 89.7, the character strings included in the small blocks in the document memory are 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. 1O.

まずステップs9.7.1に於いて、文字フラグMJF
I:Oクリヤする。このフラグは1つでも通常の文字が
来ると1にセットされる。これはφマークがブロー、り
の始めと終りを同時に意味する為にその区別を知るのに
必要なフラグである。
First, in step s9.7.1, the character flag MJF
I: O Clear. This flag is set to 1 when at least one normal character is encountered. This is a necessary flag to know the difference because the φ mark simultaneously means the beginning and end of a blow.

さらにブロックメモリBRMの横方向のポインターXに
ブロック行flklLNoの値をセットし、同じく縦方
向ポインターyに小ブロツク範囲テーブル内の開始桁を
セットする0次にステップs9.7.2に進み文書メモ
リを読込んでその内容によって分岐する0通常の文字の
場合はステップs9.7.3に進み、まず文字フラグM
JFを1にセットし、文書メモリBSMの内容をブロッ
クメモリBRMに転送する。さらに文書メモリBSMの
ポインターiを1つ進める0次にステップs9.7.4
に進みブロックメモリBRMの横方向ポインターyと小
ブロツク範囲テーブルSHTの内終了桁とを比較する。
Furthermore, set the value of the block row flklLNo in the horizontal pointer is read and branches depending on its content.0 If it is a normal character, proceed to step s9.7.3, and first set the character flag M
Set JF to 1 and transfer the contents of document memory BSM to block memory BRM. Furthermore, the pointer i of the document memory BSM is advanced by one step s9.7.4
Then, the horizontal pointer y of the block memory BRM is compared with the end digit of the small block range table SHT.

これは小ブロックの1行分の転送が完了したか否か調べ
る事を意味する。一致した場合は1行分の転送が完了し
た訳で第12図(b)の例で説明すると2行目の[あい
うえ」迄が転送された時である。その場合ステップs9
.7.5に進み転送した行に縦罫線を必要なだけ全てセ
ットする。しかる後にブロックメモリBRMの縦方向ポ
インターXを1つ進め横方向のポインターyは元の桁位
置SIT(m、l)に設定し直す、かかる処理が終了す
ると再びステップs9.7.2に戻る。
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(b), this means that up to the second line "Aiue" has been transferred. In that case step s9
.. Proceed to step 7.5 and set all vertical ruled lines as necessary on the transferred lines. Thereafter, the vertical pointer X of the block memory BRM is advanced by one, and the horizontal pointer y is reset to the original digit position SIT (m, l). When this process is completed, the process returns to step s9.7.2.

他方、ステップs9.7.4で1行未完成と判別された
時はステップs9.7.6に進みブロックメモリBRM
の横方向ポインターyを1つだけ進めてステップs9.
7.2に戻る。この繰り返しで第12図(b)に示した
通り「あいうえ」「おかき」迄が転送される訳である。
On the other hand, if it is determined in step s9.7.4 that one row is incomplete, the process advances to step s9.7.6 and the block memory BRM
Advance the horizontal pointer y by one step and proceed to step s9.
Return to 7.2. By repeating this process, as shown in FIG. 12(b), "Aiue" and "Okaki" are transferred.

一方ステップs9.7.2で文書メモリBSMの内容が
・マーク、又は■マークの場合はステップs9.7.7
に進みさらに文字フラグMJFの値によって分岐する0
文字フラグMJFが0の時、大ブロック又は小ブロック
の先頭を意味するので文書メモリBSMのポインターl
を1つ進めて再びステップs9.7.2に戻り次の文字
を読みに行く0文字フラグMJFが1の時は既に前に文
字を転送している訳でΦマーク、■マークは大ブロック
又は小ブロックの終了を意味しこの処理を完了し、第8
図ステップS9.8に進む。
On the other hand, if the content of the document memory BSM is a * mark or ■ mark in step s9.7.2, step s9.7.7
0 and branches depending on the value of the character flag MJF.
When the character flag MJF is 0, it means the beginning of a large block or small block, so the document memory BSM pointer l
advances by one and returns to step s9.7.2 again to read the next character. When the 0 character flag MJF is 1, the previous character has already been transferred, so the Φ mark and the ■ mark are large blocks or This means the end of the small block and completes this process.
Proceed to figure step S9.8.

次にステップ39.8では小ブロツク範囲テーブルSH
Tのポインターmを1つ進める。さらにステップs9.
9ではSS−1を実行しその結果1つの大ブロツク内の
小ブロック全てがブロックメモリBRMに転送終了した
か否か判別しまだ完了していない時はステップ59.7
に戻る。完了した時は第12図(C)に示した通り第1
1図(1)(1)rあいうytおか3@@ABCDE」
の1つの大ブロックが転送された訳でステップs9.1
0に進む。
Next, in step 39.8, the small block range table SH
Advance the pointer m of T by one. Furthermore, step s9.
In step 9, SS-1 is executed, and as a result, it is determined whether or not all the small blocks in one large block have been transferred to the block memory BRM. If the transfer has not been completed yet, step 59.7 is executed.
Return to When completed, the first
1 figure (1) (1) raiyuytoka3@@ABCDE”
One large block has been transferred, so step s9.1
Go to 0.

ステップs9.10では縦罫線テーブルTXTのポイン
ターpe1つ進め次の大ブロックの転送の準備をする。
In step s9.10, the pointer pe of the vertical ruled line table TXT is advanced by one to prepare for transfer of the next large block.

ステップs9.11では大ブロツク数DS−1を実行し
、全ての大ブロックに含まれる文字情報の転送が終了し
たか否かの判別する。その結果Oでない場合ステップ5
9.4に戻り次の大ブロックから転送を行なう、減算し
た結果が0の時は全大ブロックの文字情報の転送が終了
した訳でステップs9.12に進む。
In step s9.11, the large block number DS-1 is executed to determine whether or not the transfer of character information included in all large blocks has been completed. If the result is not O, step 5
Returning to step 9.4, the transfer is performed from the next large block. If the result of the subtraction is 0, this means that the transfer of the character information of the entire large block has been completed, and the process proceeds to step s9.12.

ステップs9.12ではブロックの最後行の罫線をブロ
ックメモリに転送する処理を行なう。
In step s9.12, processing is performed to transfer the ruled line of the last row of the block to the block memory.

この処理はステップS9.6で行なったのと同様に最初
に罫線パタン「−」を1行に渡ってセットし次に縦罫線
テーブルTXTの内容に応じて罫線パタン「L」、「L
」、「」」をセットする処理を行なう訳である。かかる
処理が終了するとブロックメモリBRMは全て完成した
事になり第12図(e)の例に示した通りになる。
In this process, in the same way as in step S9.6, the ruled line pattern "-" is first set across one line, and then the ruled line patterns "L" and "L" are set according to the contents of the vertical ruled line table TXT.
”, “””. When this process is completed, the block memory BRM is completely completed and becomes as shown in the example of FIG. 12(e).

上述の如くしてブロックを形成した後、プリントキーP
Kが操作されると、キーが識別されslOによりブロッ
クメモリの内容がプリンタで印刷される。
After forming the block as described above, print key P
When K is operated, the key is identified and slO causes the contents of the block memory to be printed on the printer.

なおプリンタで印刷する説明をしたが、表示器上で、ブ
ロックメモリの内容を表示する様にしてもよい。
Note that although we have described printing using a printer, the contents of the block memory may also be displayed on a display.

[効  果] 上述した様に本発明によると、1つのマークだけで文字
との相対位置関係を考慮した適切な複数種・複数個の罫
線パタンを、発生させる事が可能になった。
[Effects] As described above, according to the present invention, it is possible to generate a plurality of types and a plurality of appropriate ruled line patterns taking into consideration the relative positional relationship with characters using only one mark.

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

第1図は、本発明の概念を示す図。 第2図は1本発明の一実施例の構成を示すブロック図。 第3図は、キーボードのキートップ概略図。 第4図は、メモリ構造の説明図。 第5図は、シリアル文字列と罫線ブロック例を示す図。 第6図〜第10図は処理の過程を示すフローチャート、
     ゛ 第11図〜第12図は実際の処理過程を示した各種メモ
リの説明図。 ROM・・・メモリ BSM・・書文書メモリ BRM・・・ブロックメモリ KBK・・・罫線ブロックキー
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. Figures 6 to 10 are flowcharts showing the process;
゛Figures 11 and 12 are explanatory diagrams of various memories showing actual processing steps. ROM... Memory BSM... Document memory BRM... Block memory KBK... Ruled line block key

Claims (1)

【特許請求の範囲】[Claims] 文字を格納する第1メモリと、該第1メモリにマークを
入力するマーク入力手段と、該マークを前記文字との相
対位置によって複数種・複数個の罫線パタンに変換し第
2メモリに格納する罫線パタン変換手段を備えた事を特
徴とした罫線処理装置。
a first memory for storing characters; a mark input means for inputting a mark into the first memory; and converting the mark into a plurality of types and a plurality of ruled line patterns depending on the relative position with the character and storing it in a second memory. A ruled line processing device characterized by comprising ruled line pattern conversion means.
JP59279908A 1984-12-29 1984-12-29 Ruled line processing device Pending JPS61158391A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP59279908A JPS61158391A (en) 1984-12-29 1984-12-29 Ruled line processing device
US06/816,041 US4843570A (en) 1984-12-29 1985-12-26 Block processing apparatus
DE8585309533T DE3586097D1 (en) 1984-12-29 1985-12-30 BLOCK PROCESSING PLANT.
EP85309533A EP0190511B1 (en) 1984-12-29 1985-12-30 Block processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59279908A JPS61158391A (en) 1984-12-29 1984-12-29 Ruled line processing device

Publications (1)

Publication Number Publication Date
JPS61158391A true JPS61158391A (en) 1986-07-18

Family

ID=17617590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59279908A Pending JPS61158391A (en) 1984-12-29 1984-12-29 Ruled line processing device

Country Status (1)

Country Link
JP (1) JPS61158391A (en)

Similar Documents

Publication Publication Date Title
JPS61158391A (en) Ruled line processing device
US4843570A (en) Block processing apparatus
JPS61158392A (en) block processing equipment
JPS61158390A (en) Ruled line processing device
JPS61158386A (en) Ruled line block creation device
JPS61158388A (en) Rule processor
JPS61158389A (en) Ruled line processing device
JPS61158393A (en) Character processor
JPS61160171A (en) Block making device
JPS6144317B2 (en)
JPS61158387A (en) Block processor
JPS61158385A (en) Block making device
JPS583075A (en) Character correcting method in recognizing device for mixture of pattern and character
JPH11184949A (en) Form processing device and storage medium
JPS61158379A (en) Rule block processor
JPS60176137A (en) Sentence generating device
JPS61158382A (en) Rule block processor
JP3275629B2 (en) Layout correction device
JPS61158380A (en) Ruled line block processing device
JPS61158381A (en) Rule block processor
JP3275628B2 (en) Layout correction device
JPS637948B2 (en)
JPH03269665A (en) Original character drawing/character font control system
JPH06161727A (en) Hierarchical display method for flowchart
JPS61158378A (en) Ruled line block processing device