JPH0670737B2 - Character processor - Google Patents
Character processorInfo
- Publication number
- JPH0670737B2 JPH0670737B2 JP58216061A JP21606183A JPH0670737B2 JP H0670737 B2 JPH0670737 B2 JP H0670737B2 JP 58216061 A JP58216061 A JP 58216061A JP 21606183 A JP21606183 A JP 21606183A JP H0670737 B2 JPH0670737 B2 JP H0670737B2
- Authority
- JP
- Japan
- Prior art keywords
- line spacing
- line
- value
- display
- designated
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】 [技術分野] 本発明は、文書の作成および編集を行うことができる文
字処理装置に関し、特に、表示すべき文書の行間を行毎
に任意の値に設定できる文字処理装置に関するものであ
る。Description: TECHNICAL FIELD The present invention relates to a character processing apparatus capable of creating and editing a document, and more particularly, character processing capable of setting a line spacing of a document to be displayed to an arbitrary value for each line. It relates to the device.
[従来技術] 従来、この種の文字処理装置では、行間値の指定は全文
書を対象としたものが多く、行毎に指定できる装置は少
ない。また、各行毎に行間値を指定でき、行間が1度指
定されると、その行以降は指定が変更されるまで指定行
が継続する文字処理装置では、ある行の直前に新たに行
間値を指定すると、その行の行間の指定値が以降の行間
値として解釈されてしまう。そのため、操作者が誤って
重ね表示または重ね印字である旨の行間値を設定した場
合などには、何行にもわたって重ね表示または重ね印字
が実行されるという不都合が問題となっていた。[Prior Art] Conventionally, in this type of character processing device, line spacing values are often specified for all documents, and few devices can be specified for each line. In addition, a line spacing value can be specified for each line, and once the line spacing is specified, the specified line continues until the specified line is changed in the character processing device. If specified, the specified value between the lines will be interpreted as the following line value. Therefore, when the operator erroneously sets a line spacing value indicating that overlapping display or overlapping printing is performed, there is a problem that overlapping display or overlapping printing is executed over many lines.
[目 的] そこで、本発明の目的は、上述の欠点を除去し、任意の
行の行間ピッチを指定すると、その行間ピッチがその行
に有効に働き、他の行の行間ピッチとして影響を与えな
いようにした文字処理装置を提供することにある。[Objective] Therefore, the object of the present invention is to eliminate the above-mentioned drawbacks and to specify the inter-row pitch of an arbitrary row, so that the inter-row pitch effectively acts on that row and affects as the inter-row pitch of other rows. The object is to provide a character processing device that does not include such a character.
[実施例] 以下、図面を参照して本発明文字処理装置を詳細に説明
する。[Embodiment] Hereinafter, a character processing device of the present invention will be described in detail with reference to the drawings.
第1図は本発明文字処理装置の構成の一例を示す全体構
成図である。FIG. 1 is an overall configuration diagram showing an example of the configuration of the character processing device of the present invention.
第1図において、1は少なくとも表示すべき文書の行間
を指示する行間値を入力する入力手段であり、2は入力
手段1により行間値が変更されたときに、その行間値に
変更する行間値変更手段であり、3は入力手段1からの
入力内容、すなわち行間値および文字列を記憶する第1
の記憶手段である。4は行間値変更手段2の変更内容に
応じて前記第1の記憶手段3内の記憶内容を表示形式の
パターンに書換えて記憶する第2の記憶手段であり、5
は第2の記憶手段4の記憶内容を出力表示する表示手段
である。In FIG. 1, 1 is input means for inputting a line spacing value indicating at least line spacing of a document to be displayed, and 2 is a line spacing value to be changed to the line spacing value when the input means 1 changes the line spacing value. A changing means, 3 is a first for storing the input content from the input means 1, that is, the line spacing value and the character string.
Is a storage means. Reference numeral 4 denotes a second storage means for rewriting and storing the storage content in the first storage means 3 into a pattern in a display format in accordance with the content of change of the line spacing value changing means 2.
Is a display means for outputting and displaying the stored contents of the second storage means 4.
すなわち、本発明文字処理装置は、入力手段1から入力
指示される行間値を第1の記憶手段3に格納したのち、
その行間値に対応した表示パターンを第2の記憶手段4
内に形成し、その格納内容を表示手段5上に表示するよ
うにしたものである。That is, the character processing device of the present invention stores the line spacing value input from the input means 1 in the first storage means 3,
The display pattern corresponding to the line spacing value is stored in the second storage means 4
It is formed inside and the stored contents are displayed on the display means 5.
第2図は、本発明文字処理装置の構成の一例を示す。FIG. 2 shows an example of the configuration of the character processing device of the present invention.
ここで、CPUは、マイクロプロセッサであり、文字処理
のための演算,論理判断等を行い、アドレスバスAB,コ
ントロールバスCBおよびデータバスDBを介して、それら
のバスに接続された各構成要素を制御する。このマイク
ロプロセッサCPUは、後に詳述するように内部カウンタ
N,PおよびLを有する。アドレスバスABはマイクロプロ
セッサCPUの制御の対象とする構成要素を指示するアド
レス信号を転送する。コントロールバスCBはマイクロプ
ロセッサCPUの制御の対象とする各構成要素のコントロ
ール信号を転送して印加する。データバスDBは各構成機
器相互間のデータの転送を行う。CPUは、後述するROMに
格納された制御の手順を実行することにより、判断手
段、行間隔変更手段および出力制御手段として機能す
る。Here, the CPU is a microprocessor, which performs arithmetic operations for character processing, logical decisions, etc., and controls each component connected to these buses via an address bus AB, a control bus CB, and a data bus DB. Control. This microprocessor CPU has an internal counter as described in detail below.
With N, P and L. The address bus AB transfers an address signal indicating a component to be controlled by the microprocessor CPU. The control bus CB transfers and applies the control signals of the respective components to be controlled by the microprocessor CPU. The data bus DB transfers data between the constituent devices. The CPU functions as a determining unit, a line spacing changing unit, and an output controlling unit by executing a control procedure stored in a ROM described later.
ROMは、読出し専用メモリであり、第8図および第9図
により後述するマイクロプロセッサCPUによる制御の手
順等を記憶させておく。また、RAMは1ワード16ビット
の構成の書込み可能のランダムアクセスメモリであっ
て、各構成要素からの各種データの一時記憶に用いる。The ROM is a read-only memory and stores the procedure of control by the microprocessor CPU, which will be described later with reference to FIGS. 8 and 9. The RAM is a writable random access memory having a structure of 1 word and 16 bits, and is used for temporary storage of various data from each constituent element.
DBUFは、記憶手段としてのバッファメモリであり、後述
する入力手段としてのキーボードKBから入力する後述の
行間値および文書情報等を格納する。The DBUF is a buffer memory as a storage unit, and stores a line spacing value and document information described later input from a keyboard KB as an input unit described later.
VRAMは表示用バッファメモリであり、上述のバッファメ
モリDBUFに対応した文字のパターンを格納する。この表
示用バッファメモリVRAMは、第6図に示すように縦方向
50ビット,横方向80ビットで構成し、1文字を8ビット
×8ビットで構成するので、1行に10文字として5行に
わたって文字パターンを格納できる。The VRAM is a display buffer memory and stores a character pattern corresponding to the above-mentioned buffer memory DBUF. This display buffer memory VRAM has a vertical direction as shown in FIG.
Since it is composed of 50 bits and 80 bits in the horizontal direction, and one character is composed of 8 bits × 8 bits, a character pattern can be stored over 5 lines with 10 characters per line.
キーボードKBは第1の行間指示手段および第2の行間指
示手段として、アルファベットキー、平仮名キー、片仮
名キー等の文字記号入力キー、および漢字部始め/終り
指定キー等の本文字処理装置に対する各種機能を指示す
るための各種のファンクションキーを備えている。The keyboard KB serves as a first line spacing instruction means and a second line spacing instruction means, and various functions for the character processing device such as a character symbol input key such as an alphabet key, a hiragana key, a katakana key, and a kanji part start / end designation key. It is equipped with various function keys for instructing.
CRはカーソルレジスタであり、マイクロプロセッサCPU
により、カーソルレジスタCRの内容を読書き出来る。後
述する表示器制御部CRTCは、前述のCPU,VRAMと共に第1
の行間指示手段と第2の行間指示手段であるキーボード
KBにより指示された行間隔に基づき、表示手段としての
表示器CRTに文字列の出力を行う出力制御手段を構成す
るもので、このレジスタCRに蓄えられたアドレスに対応
する表示器CRT上の位置にカーソルを表示する。表示器
制御部CRTCはカーソルレジスタCRおよび表示用バッファ
メモリVRAMに蓄えられた内容を表示器CRTに表示する役
割を担う。CR is a cursor register, microprocessor CPU
Can read and write the contents of the cursor register CR. The display control unit CRTC, which will be described later, is the first together with the CPU and VRAM described above.
Keyboard which is a line spacing instruction means and a second line spacing instruction means
It constitutes the output control means that outputs the character string to the display CRT as the display means based on the line spacing designated by KB, and the position on the display CRT corresponding to the address stored in this register CR. Display the cursor on. The display controller CRTC plays a role of displaying the contents stored in the cursor register CR and the display buffer memory VRAM on the display CRT.
また、表示器CRTは、表示手段としての陰極線管等を用
いた表示器であり、その表示器CRTにおけるドット構成
の表示パターンおよびカーソルの表示を表示器制御部CR
TCで制御する。CGはキャラクタジェレネータであり、表
示器CRTに表示する文字,記号,およびカーソル等のキ
ャラクタ信号を発生させるものである。Further, the display CRT is a display using a cathode ray tube or the like as a display means, and displays the dot configuration display pattern and the cursor display on the display CRT.
Controlled by TC. CG is a character grenator, which generates character signals such as characters, symbols, and cursors displayed on the display CRT.
かかる各構成要素からなる本発明文字処理装置において
は、キーボードKBからの各種の入力に応じて作動するも
のであって、キーボードKBからの入力が供給されると、
まず、インタラプト信号がマイクロプロセッサCPUに送
られ、そのマイクロプロセッサCPUが読出し専用メモリR
OM内に記憶してある各種の制御信号を読出し、それらの
制御信号に従って各種の制御が行われる。In the character processing device of the present invention composed of each of the above components, the character processing device operates according to various inputs from the keyboard KB, and when the inputs from the keyboard KB are supplied,
First, an interrupt signal is sent to the microprocessor CPU, and the microprocessor CPU
Various control signals stored in the OM are read out, and various controls are performed in accordance with those control signals.
次に、第3図は、第2図に示すバッファメモリDBUFの構
成例を示し、このバッファメモリDBUFは5行×10列の記
憶領域を有し、各行の先頭列(1列目)は、作成表示す
る文書の行間値のみを格納可能とし、行間値として「0
〜9」またはスペース のうちのいずれかを格納している。行間が「0」のとき
には、次の行の内容が前の行に重なって表示器CRT上に
表示されることを示し、行間値が「1」のときには、次
の行と前の行との表示間隔が1行分あることを示す。さ
らに、行間値が「2」の場合には、前の表示行と次の表
示行との間に1行分の空白が存在することになる、以
下、行間値が「3〜9」の場合も同様に、前の表示行と
次の表示行との間に2〜8行分の空白が存在することに
なる。なお、行間値がスペース のときは、直前の行と同じ行間値となることを示す。Next, FIG. 3 shows a configuration example of the buffer memory DBUF shown in FIG. 2. This buffer memory DBUF has a storage area of 5 rows × 10 columns, and the top column (first column) of each row is Only the line spacing value of the document to be created and displayed can be stored.
~ 9 "or space Stores one of these. When the line spacing is "0", it indicates that the content of the next line is displayed on the display CRT overlapping the previous line. When the line spacing value is "1", the line between the next line and the previous line is displayed. Indicates that the display interval is one line. Further, when the line spacing value is "2", there is one blank space between the previous display line and the next display line. In the following, when the line spacing value is "3 to 9" Similarly, there is a blank for 2 to 8 lines between the previous display line and the next display line. Note that the line spacing is a space When, indicates that the line spacing is the same as the line immediately before.
第4図は、第2図に示すバッファメモリDBUFの各記憶領
域の初期状態の一例を示し、さらに、第5図は第4図の
初期状態から第2行目の行間値として「0」を入力した
ときのバッファメモリDBUFの各記憶領域の状態図の一例
を示す。なお、図中のCUはカーソルを示す。FIG. 4 shows an example of the initial state of each storage area of the buffer memory DBUF shown in FIG. 2, and FIG. 5 shows “0” as the line spacing value of the second line from the initial state of FIG. An example of a state diagram of each storage area of the buffer memory DBUF when input is shown. CU in the figure indicates a cursor.
第6図は、第2図に示す表示用バッファメモリVRAMの構
成例を示し、表示器CRTの表示画面への表示は表示用バ
ッファメモリVRAMの記憶領域に対応する位置関係のまま
の状態で表示される。この表示用バッファメモリVRAMに
は、バッファメモリDBUFの格納内容に対応する文字パタ
ーンがキャラクタジェネレータCGから得られて格納され
る。この時、表示用バッファメモリVRAMへの文字パター
ンの格納は、バッファメモリDBUFに格納される行間値に
従って実行される。特に、行間値が「0」のときには、
表示用バッファメモリVRAMへの文字パターンの格納は、
すでに存在する文字パターンと合せて再格納されるの
で、表示器CRT上の重ね表示が正しく実行されることに
なる。FIG. 6 shows an example of the structure of the display buffer memory VRAM shown in FIG. 2, and the display on the display screen of the display CRT is displayed in the state of the positional relationship corresponding to the storage area of the display buffer memory VRAM. To be done. In this display buffer memory VRAM, a character pattern corresponding to the storage content of the buffer memory DBUF is obtained from the character generator CG and stored. At this time, the storage of the character pattern in the display buffer memory VRAM is executed according to the line spacing value stored in the buffer memory DBUF. Especially when the line spacing is "0",
Character patterns are stored in the display buffer memory VRAM.
Since it is stored again together with the character pattern that already exists, the overlay display on the display CRT will be executed correctly.
第7図は、第5図に示すように第2行目の行間値として
「0」に変更されたとき、すなわち重ね表示とする場合
の表示用バッファメモリVRAMの各記憶領域の一例を示
す。この図において、第2行目は行間値が「0」に設定
してあるので、第5図に示す第3行目の文字列が第2行
目に重ね合された記憶状態となり、更に、第5図に示す
第4行目以降の文字列は、行間値「1」として第3行目
以降に格納されることを示す。FIG. 7 shows an example of each storage area of the display buffer memory VRAM when the line spacing value of the second line is changed to “0” as shown in FIG. 5, that is, in the case of overlapping display. In this figure, since the line spacing value is set to "0" in the second line, the character string in the third line shown in FIG. It is shown that the character strings on the fourth and subsequent lines shown in FIG. 5 are stored on the third and subsequent lines as the interline value "1".
次に、第8図および第9図のフローチャートを参照し
て、第4図に示すバッファメモリDBUFの各記憶領域の初
期状態から第5図に示すように行間値の変更がキーボー
ドKBの指示により行われた場合に、表示用バッファメモ
リVRAMの格納内容が第7図の如くなることを詳細に説明
する。Next, referring to the flow charts of FIGS. 8 and 9, from the initial state of each storage area of the buffer memory DBUF shown in FIG. 4 to change the line spacing value as shown in FIG. It will be explained in detail that the contents stored in the display buffer memory VRAM, when executed, are as shown in FIG.
第8図において、まずステップ81では、電源投入時の初
期設定が行われ、入力および編集等が可能となる。な
お、本実施例においては、入力および編集等の処理は公
知技術で実現されるので、その詳細な説明は省略する。In FIG. 8, first, at step 81, initial setting at the time of turning on the power is performed, and input and editing are possible. It should be noted that in the present embodiment, processing such as inputting and editing is realized by a known technique, so a detailed description thereof will be omitted.
ここで、初期設定状態としては、第4図に示すようにバ
ッファメモリDBUFの各記憶領域には行間値および文字列
がそれぞれ格納されているものとする。さらに、本実施
例では、行間値がスペース の時は直前の行と同じ行間値とする。従って、第4図に
示されるように第1の行間指示手段としてのキーボード
KBにより第1行目の始めに「1」を、それ以下の行には をそれぞれ入力すると、全ての表示行が行間値「1」と
同様の行間指定となるので、バッファメモリDBUFの記憶
領域に対応する位置関係のままの状態でその格納内容が
表示器CRT上に表示されることになる。Here, as the initial setting state, it is assumed that the line spacing value and the character string are stored in each storage area of the buffer memory DBUF as shown in FIG. Further, in this embodiment, the line spacing value is a space. When, the line spacing is the same as the line immediately before. Therefore, as shown in FIG. 4, the keyboard as the first line spacing instruction means.
According to KB, "1" is added at the beginning of the first line, and lines below it If you enter each, all the displayed lines will have the same line spacing as the line spacing value of "1", so the stored contents will be displayed on the display CRT in the same positional relationship as the storage area of the buffer memory DBUF. Will be done.
次に、ステップ82では、キーボードKBからのキー入力が
行われ、次いでステップ83に進み、そのキー入力が行間
変更を指示する旨のキー入力であるか否かを判定する。
例えば第4図あるいは第5図に示すように、カーソルCU
が各行の先頭位置にあり、かつ、第2の行間指示手段と
してのキーボードKBから入力されたキーが「0〜9」ま
たはスペース に変更されたときのみ、行間変更処理と判定されてステ
ップ84およびステップ86に進み、後述の各処理が実行さ
れる。それ以外のキー入力のときには、ステップ85に移
行して、そのキー入力に応じた入力編集等の各種の処理
が実行される。Next, at step 82, a key input is made from the keyboard KB, and then the processing proceeds to step 83, at which it is determined whether or not the key input is an instruction to change the line spacing.
For example, as shown in FIG. 4 or 5, cursor CU
Is at the beginning of each line, and the key input from the keyboard KB as the second line spacing instruction means is "0-9" or space. Only when the line spacing is changed to, it is determined that the line spacing is changed and the process proceeds to step 84 and step 86 to execute each process described later. For other key inputs, the process proceeds to step 85, and various processes such as input editing according to the key input are executed.
ステップ84では、カーソルCUに対応する所定行の行間値
が変更され、第5図に示すように例えば2行目の行間値
が「0」に変更される。次に、ステップ86では、第5図
に示すように行間値の変更された状態のバッファメモリ
DBUFの内容を表示用バッファメモリVRAMに文字パターン
として格納すること、すなわち画面の書換えが行われ
る。その結果、第7図に示すように、第5図に示す第2
行目と第3行目との文字列が重ね合された状態で表示用
バッファメモリVRAMの第2行目に格納されるので、表示
器CRT上では重ね合せ表示され、以降の文字列の行間値
としては標準値「1」が採用されるので、その標準値に
基づいて表示器CRT上に表示される。In step 84, the line spacing value of the predetermined line corresponding to the cursor CU is changed, and the line spacing value of the second line is changed to "0" as shown in FIG. Next, at step 86, as shown in FIG. 5, the buffer memory with the line spacing changed
The contents of DBUF are stored in the display buffer memory VRAM as a character pattern, that is, the screen is rewritten. As a result, as shown in FIG. 7, as shown in FIG.
The character strings of the 3rd line and the 3rd line are stored in the 2nd line of the display buffer memory VRAM in a state where they are overlapped. Since the standard value “1” is adopted as the value, it is displayed on the display CRT based on the standard value.
次に、表示用バッファメモリVRAMに第7図に示すような
文字パターンが格納される手順を第9図のフローチャー
トを参照して更に詳しく説明する。Next, the procedure for storing the character pattern as shown in FIG. 7 in the display buffer memory VRAM will be described in more detail with reference to the flowchart of FIG.
まず、ステップ91では、表示用バッファメモリVRAMの記
憶内容を全て消去する。次いでステップ92に進み、マイ
クロプロセッサCPUの内容カウンタN,PおよびLをそれぞ
れ初期設定する。カウンタNは、処理中のバッファメモ
リDBUF上の行番号を示し、その初期値は“1"とする。カ
ウンタPは、表示用バッファメモリVRAMにキャラクタジ
ェネレータCGで得られら文字パターンを格納するための
格納位置を示し、表示用バッファメモリVRAM上の行番号
1〜50の範囲の値を保持でき、その初期値は“1"とす
る。さらに、カウンタLは、表示用バッファメモリVRAM
上での行間値を保持しており、次の行の文字パターンを
格納する際に使用され、初期値としては標準値として
“8"とする。First, in step 91, the stored contents of the display buffer memory VRAM are all erased. Next, in step 92, the content counters N, P and L of the microprocessor CPU are initialized. The counter N indicates the line number on the buffer memory DBUF that is being processed, and its initial value is "1". The counter P indicates a storage position for storing a character pattern obtained by the character generator CG in the display buffer memory VRAM, and can hold a value in the range of line numbers 1 to 50 on the display buffer memory VRAM. The initial value is "1". Further, the counter L is a display buffer memory VRAM.
It holds the line spacing value above and is used when storing the character pattern of the next line. The initial value is set to "8" as the standard value.
以上のようにステップ92において、各カウンタN,Pおよ
びLの初期設定が行われると、次に、ステップ93に進
む。When the counters N, P and L are initialized in step 92 as described above, the process proceeds to step 93.
ステップ93では、、カウンタNで示されるバッファメモ
リDBUFの行番号の文字列に対応する文字パターンを、カ
ウンタPで示される表示バッファメモリVRAMの行番号の
位置に格納する。その文字パターンは、キャラクタジェ
ネレータCGから文字コードに対応する8ビット×8ビッ
トの形態で得られる。In step 93, the character pattern corresponding to the character string of the line number of the buffer memory DBUF indicated by the counter N is stored in the position of the line number of the display buffer memory VRAM indicated by the counter P. The character pattern is obtained from the character generator CG in the form of 8 bits × 8 bits corresponding to the character code.
次に、ステップ94に進み、各行の先頭列(1列目)の文
字、すなわち、第2の行間指示手段により指示された行
間値がいずれの値であるか判断する判断手段である前述
のCPUがROMに格納された制御の手順を実行することによ
り判断し、その判断した行間指定値により次のように異
なる処理が行われる。Next, proceeding to step 94, the above-mentioned CPU which is a judgment means for judging which value is the character in the first column (first column) of each line, that is, the line spacing value designated by the second line spacing designating means. Executes the control procedure stored in the ROM, and different processing is performed as follows depending on the determined line spacing specification value.
すなわち、行間値として「0」が指定されると、ステッ
プ95に進みカウンタLは標準値として“8"が設定され、
次行の表示開始位置を示すカウンタPの値は変更されず
にステップ98に進む。That is, when "0" is designated as the line spacing value, the routine proceeds to step 95, where the counter L is set to "8" as the standard value,
The value of the counter P indicating the display start position of the next line is not changed and the process proceeds to step 98.
また、行間指定値がスペース のときにはステップ97に進み、次行の表示開始位置を示
すカウンタPの値が、以前に設定されているカウンタL
の値を加算した値(P+L)に変更され、ステップ98に
進む。In addition, the line spacing specification value is a space If so, the process proceeds to step 97, where the value of the counter P indicating the display start position of the next line is the counter L set previously.
The value is changed to a value (P + L) obtained by adding the value of, and the process proceeds to step 98.
さらに、その他の行間値、例えば「2〜8」が指定され
たときには、ステップ96に進み指定された行間値の8倍
の値がカウンタLの値として設定され、さらにステップ
97に進み、次行の表示開始位置を示すカウンタPの値
が、ステップ96で得られたカウンタLの値を加算した値
(P+L)に変更されて、ステップ98に進む。Further, when another line spacing value, for example, "2 to 8" is designated, the routine proceeds to step 96, where a value eight times the designated line spacing value is set as the value of the counter L.
The routine proceeds to 97, where the value of the counter P indicating the display start position of the next line is changed to the value (P + L) obtained by adding the value of the counter L obtained at step 96, and the routine proceeds to step 98.
以上の処理により、次行に表示する際の表示器CRT上の
表示開始位置が設定されることになる。By the above processing, the display start position on the display CRT for displaying on the next line is set.
ステップ98では、次に表示されるバッファメモリDBUFの
行位置を指示するためにカウンタNに1を加え、カウン
タNの値が変更される。次に、ステップ99に進み、本実
施例でのバッファメモリDBUFの最大行数は5行とするの
で、カウンタNの値が“5"より大きいか否か、すなわ
ち、バッファメモリDBUFの全ての行の格納内容が表示器
CRT上に表示されたか否かを判定する。ステップ99にお
いて、カウンタNの値が“5"より小さいときにはステッ
プ93に戻り上述の諸動作を繰り返し、他方、カウンタN
の値が“5"より大きくなったときには、これらの諸動作
を終了する。したがって、前述のCPUは、ROMに格納され
た制御の手順に含まれるステップ94,ステップ95,ステッ
プ96を実行することにより行間隔変更手段を構成する。
また、前述のCPUは、ROMに格納された制御の手順に含ま
れるステップ93〜99を実行することにより、前述のCRTC
と共に出力制御手段を構成する。In step 98, 1 is added to the counter N to indicate the row position of the buffer memory DBUF to be displayed next, and the value of the counter N is changed. Next, in step 99, since the maximum number of rows of the buffer memory DBUF in this embodiment is 5, it is determined whether the value of the counter N is larger than "5", that is, all rows of the buffer memory DBUF. Is stored in the display
Determine whether it was displayed on the CRT. In step 99, when the value of the counter N is smaller than "5", the process returns to step 93 to repeat the above-mentioned operations, while the counter N
When the value of becomes larger than "5", these operations are ended. Therefore, the CPU described above constitutes the line spacing changing means by executing step 94, step 95, and step 96 included in the control procedure stored in the ROM.
The above-mentioned CPU executes the above-mentioned CRTC by executing steps 93 to 99 included in the control procedure stored in the ROM.
Together with this, it constitutes output control means.
以上の動作により、第7図に示すように表示用バッファ
メモリVRAMの第2行目には、第5図に示す第2行目の内
容「A、C、E、G」と第3行目の内容「A、C、E、
G」とが重ね合された「A、A、C、C、E、E、G、
G」という状態でその文字パターンが格納される。さら
に第7図の第3行目以降には、カウンタLが“8"となっ
ているので、標準行間値で第5図に示す第4行目以降の
内容が格納されることになる。従って、第7図に示す表
示用バッファメモリVRAMの格納内容がそのままの状態で
表示器CRT上に表示される。With the above operation, as shown in FIG. 7, the second line of the display buffer memory VRAM has the contents “A, C, E, G” and the third line shown in FIG. Content of "A, C, E,
“A, A, C, C, E, E, G,
The character pattern is stored in the state of "G". Further, since the counter L is "8" in the third and subsequent rows of FIG. 7, the contents of the fourth and subsequent rows shown in FIG. 5 are stored as standard inter-row values. Therefore, the contents stored in the display buffer memory VRAM shown in FIG. 7 are displayed as they are on the display CRT.
以上説明したように本実施例においては、行間指定値と
して「0〜9」およびスペース としたが、特にその範囲を限定する必要のないこと勿論
である。例えば、バッファメモリDBUFの各行の第1列目
および第2列目を用いて2文字を行間指定値として利用
できるようにすれば、より広範囲の行間指定が可能とな
る。As described above, in the present embodiment, "0-9" and the space are specified as the line spacing specification value. However, it is needless to say that the range is not particularly limited. For example, if two characters can be used as the line spacing specification value by using the first and second columns of each line of the buffer memory DBUF, a wider range of line spacing can be specified.
また、本実施例においては、その行間値は次行との間隔
として取扱ったが、前行との間隔として取扱うようにし
てもよい。さらに、本実施例においては、行間値が
「0」の次の行の行間指定がスペース のときには、標準値として固定した値を使用するように
構成したが、それに代えて、それまでに使用された行間
値「0」またはスペース 以外の値を使用するように構成してもよい。In addition, in the present embodiment, the line spacing value is treated as the interval with the next line, but it may be treated as the interval with the preceding line. Further, in the present embodiment, the line spacing specification of the next line whose line spacing value is "0" is a space. , Was configured to use a fixed value as the standard value, but instead of that, the line spacing value "0" or space used up to that point was used. It may be configured to use a value other than.
[効 果] 以上説明したとおり本発明では、文字列を記憶する記憶
手段と、前記文字列を表示する表示手段と、前記文字列
を前記表示手段に出力する場合に、前記文字列の全体の
行間隔を指示する第1の行間指示手段と、前記文字列の
任意の行を指定し、その指定した行以降の行間隔を指示
する第2の行間指示手段と、前記第2の行間指示手段で
指示された行間隔の値を判断する判断手段と、前記判断
手段の判断結果、前記第2の行間指示手段で指示された
行間隔の値が、指示された行が前または後の行と重なる
ことを指示する値である場合、当該指示された行の行間
を前記第2の行間指示手段で指示された行間隔に変更す
ると共に、当該指示された行以降の行間隔は前記第1の
行間指示手段で指示された行間隔とする行間隔変更手段
と、前記第1の行間指示手段と前記第2の行間指示手段
により指示された行間隔に基づき、前記表示手段に前記
文字列の出力を行う出力制御手段とを具備した構成とし
てあるので、出力すべき文字列のうち任意の行以降の行
間隔を変更する場合、その行間隔により指示された行
が、前または後の行と重なるような値である場合には、
その指定された行に関してのみの行間隔の値として有効
とし、それ以降の行間隔を元の行間隔の値とすることが
できる。[Effect] As described above, according to the present invention, the storage means for storing a character string, the display means for displaying the character string, and the entire character string when the character string is output to the display means. First line spacing instructing means for instructing a line spacing, second line spacing instructing means for designating an arbitrary line of the character string and instructing a line spacing after the designated line, and second line spacing instructing means And a determination means for determining the value of the line spacing designated by the above, and the result of the determination by the determination means is that the value of the line spacing designated by the second line spacing designating means indicates that the designated line is the preceding or succeeding line. When it is a value that indicates overlapping, the line spacing of the designated line is changed to the line spacing designated by the second line spacing designating means, and the line spacing after the designated line is set to the first spacing. Line spacing changing means for setting the line spacing designated by the line spacing designating means, and Characters to be output are provided because the display means includes an output control means for outputting the character string based on the line spacing designated by the first line spacing designating means and the second line spacing designating means. When changing the line spacing after any row in a column, if the row indicated by the row spacing has a value that overlaps the previous or next row,
The line spacing can be valid only for the specified line, and the line spacing after that can be used as the original line spacing.
従って本発明によれば、例えば、文字の重ね出力等の際
にその指定1行についてのみ有効な値として働かせるこ
とができるので、操作者の誤操作により何行にもわたっ
て重ね出力がなされることを防止することができること
が可能となる。Therefore, according to the present invention, for example, in the case of overlapping output of characters, it is possible to make it work as an effective value only for the designated one line, so that the overlapping output is performed over many lines due to an erroneous operation by the operator. It becomes possible to prevent.
第1図は本発明文字処理装置の構成の一例を示す全体構
成図、 第2図は本発明文字処理装置の実施例を示すブロック
図、 第3図は第2図に示すバッファメモリの構成の一例を示
す説明図、 第4図は第2図に示すバッファメモリの初期状態の一例
を示す説明図、 第5図は第4図に示すバッファメモリの行間変更後にお
ける格納状態の一例を示す説明図、 第6図は第2図に示す表示用バッファメモリの構成の一
例を示す説明図、 第7図は後述する第8図および第9図のフローチャート
に基づく動作結果による表示用バッファメモリの格納状
態の一例を示す説明図、 第8図は第2図に示す本発明装置の動作例を示すメイン
・フローチャート、 第9図は第2図に示す本発明装置のさらに詳細な動作例
を示すサブフローチャートである。 1……入力手段、 2……行間値変更手段、 3,4……記憶手段、 5……表示手段、 CPU……マイクロプロセッサ、 KB……キーボード、 ROM……読出し専用メモリ、 CR……カーソルレジスタ、 RAM……ランダムアクセスメモリ、 VRAM……表示用バッファメモリ、 DBUF……バッファメモリ、 CRTC……表示器制御部、 CRT……表示器、 CG……キャラクタジェネレータ。FIG. 1 is an overall configuration diagram showing an example of the configuration of the character processing device of the present invention, FIG. 2 is a block diagram showing an embodiment of the character processing device of the present invention, and FIG. 3 is a configuration of the buffer memory shown in FIG. FIG. 4 is an explanatory view showing an example, FIG. 4 is an explanatory view showing an example of an initial state of the buffer memory shown in FIG. 2, and FIG. 5 is an explanation showing an example of a storage state of the buffer memory shown in FIG. FIG. 6 is an explanatory view showing an example of the configuration of the display buffer memory shown in FIG. 2, and FIG. 7 is a storage of the display buffer memory according to the operation result based on the flowcharts of FIGS. 8 and 9 described later. FIG. 8 is an explanatory diagram showing an example of a state, FIG. 8 is a main flow chart showing an operation example of the device of the present invention shown in FIG. 2, and FIG. 9 is a sub flowchart showing a more detailed operation example of the device of the present invention shown in FIG. It is a flowchart. 1 ... input means, 2 ... line value changing means, 3,4 ... storage means, 5 ... display means, CPU ... microprocessor, KB ... keyboard, ROM ... read-only memory, CR ... cursor Register, RAM ... Random access memory, VRAM ... Display buffer memory, DBUF ... Buffer memory, CRTC ... Display control unit, CRT ... Display, CG ... Character generator.
Claims (1)
列の全体の行間隔を指示する第1の行間指示手段と、 前記文字列の任意の行を指定し、その指定した行以降の
行間隔を指示する第2の行間指示手段と、 前記第2の行間指示手段で指示された行間隔の値を判断
する判断手段と、 前記判断手段の判断結果、前記第2の行間指示手段で指
示された行間隔の値が、指示された行が前または後の行
と重なることを指示する値である場合、当該指示された
行の行間を前記第2の行間指示手段で指示された行間隔
に変更すると共に、当該指示された行以降の行間隔は前
記第1の行間指示手段で指示された行間隔とする行間隔
変更手段と、 前記第1の行間指示手段と前記第2の行間指示手段によ
り指示された行間隔に基づき、前記表示手段に前記文字
列の出力を行う出力制御手段と を具備したことを特徴とする文字処理装置。1. A storage unit for storing a character string, a display unit for displaying the character string, and a first unit for instructing the entire line spacing of the character string when the character string is output to the display unit. Line spacing instructing means, a second line spacing instructing means for designating an arbitrary line of the character string and instructing a line spacing after the designated line, and a line spacing instructed by the second line spacing instructing means. And a judgment means for judging a value, and a value of the line spacing designated by the second line spacing designating means as a result of the determination means is a value indicating that the designated row overlaps with the preceding or succeeding row. In some cases, the line spacing of the designated line is changed to the line spacing designated by the second line spacing designating means, and the line spacing after the designated line is designated by the first line spacing designating means. A line spacing changing unit for setting a line spacing, the first line spacing instructing unit, and Based on the line spacing indicated by the second rows instructing means, character processing apparatus characterized by comprising an output control means for outputting the character string on the display means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58216061A JPH0670737B2 (en) | 1983-11-18 | 1983-11-18 | Character processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58216061A JPH0670737B2 (en) | 1983-11-18 | 1983-11-18 | Character processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60108886A JPS60108886A (en) | 1985-06-14 |
| JPH0670737B2 true JPH0670737B2 (en) | 1994-09-07 |
Family
ID=16682660
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58216061A Expired - Lifetime JPH0670737B2 (en) | 1983-11-18 | 1983-11-18 | Character processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0670737B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57190994A (en) * | 1981-05-20 | 1982-11-24 | Ricoh Kk | Crt display device |
-
1983
- 1983-11-18 JP JP58216061A patent/JPH0670737B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60108886A (en) | 1985-06-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| USRE34835E (en) | Method and apparatus for editing document in colors | |
| JPH0670737B2 (en) | Character processor | |
| JPH0522933B2 (en) | ||
| JP2699974B2 (en) | Pattern registration method | |
| JP2698348B2 (en) | Character processor | |
| JP2556488B2 (en) | Character processor | |
| JPH0467210B2 (en) | ||
| JP2612402B2 (en) | Display control method | |
| JPS62229317A (en) | Character processor | |
| JPH0311396A (en) | Character display system | |
| JPS63106078A (en) | Display method for character string echo of graphic processor | |
| JPS6265080A (en) | Graph display method | |
| JPH0581947B2 (en) | ||
| JPH0778792B2 (en) | Document creation device | |
| JPS6348593A (en) | character processing device | |
| JPH0679213B2 (en) | Character processor | |
| JPH0844333A (en) | Graphic input device | |
| JPS61238090A (en) | Document processor | |
| JPH0545987B2 (en) | ||
| JPS62229316A (en) | Character processor | |
| JPH03141461A (en) | Document processing method and device | |
| JPH0737111A (en) | Document processing method | |
| JPH081554B2 (en) | Character processor | |
| JPH09313666A (en) | Game data processor | |
| JPH05143053A (en) | Word processor provided with enlarging and smoothing function |