JPH0268655A - document processing device - Google Patents
document processing deviceInfo
- Publication number
- JPH0268655A JPH0268655A JP63220469A JP22046988A JPH0268655A JP H0268655 A JPH0268655 A JP H0268655A JP 63220469 A JP63220469 A JP 63220469A JP 22046988 A JP22046988 A JP 22046988A JP H0268655 A JPH0268655 A JP H0268655A
- Authority
- JP
- Japan
- Prior art keywords
- information
- code
- display
- frame
- character
- 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
Landscapes
- 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 of Industrial Application] The present invention relates to a document processing device, and more particularly to a document processing device for creating and editing documents.
[従来の技術]
この種の代表的な装置として電子タイプライタが挙げら
れる。[Prior Art] An electronic typewriter is a typical device of this type.
電子タイプライタにおける文書情報としては、文字情報
や右寄せセンタリング、インデント、デシマルタブ等の
コマンド情報をキャラクタコードで記憶するテキスト情
報、罫線の開始及び終了位置等を記憶するフレーム情報
(所謂、表等を構成する枠)、テキストを出力するため
や、タイプライタモード時のライトマージン、ソフトマ
ージン、タブ、デシマルタブ等の各ポジションやページ
レングス、ホットゾーン領域等の出力フォーマットを記
憶するフォーマット情報、そして印字紙面上での打ち出
し開始位置と文書を記憶するストップポジション情報等
の大きく分けて4つの情報がある。しかし、これら4情
報とも記憶形態が異なっている。Document information on electronic typewriters includes text information that stores character information and command information such as right alignment, centering, indent, and decimal tab in character codes, and frame information that stores the start and end positions of ruled lines (so-called, configuring tables, etc.). frame), format information that stores the output format for text output, each position such as light margin, soft margin, tab, decimal tab, page length, hot zone area, etc. in typewriter mode, and the print paper surface. There are roughly four types of information, including the start position of printing and the stop position information for storing the document. However, these four pieces of information have different storage formats.
特に、テキスト情報とフレーム情報とが1枚の印刷用紙
に混在させた状態で印刷出力するためには、テキスト情
報内にフレーム情報を印刷時のみ混入させるため、マー
ジコマンド情報を含ませていた。In particular, in order to print out a mixture of text information and frame information on one sheet of printing paper, merge command information is included in order to mix the frame information into the text information only when printing.
すなわち、テキスト情報を印刷実行しているときにおい
て、マージコマンドが出現したことを検出したときには
そのテキスト印刷処理を中断し、対応するフレーム情報
の印刷を実行するという手順を踏んでいる。That is, when printing text information and detecting the appearance of a merge command, the text printing process is interrupted and the corresponding frame information is printed.
或いは、フレーム情報をキャラクタコードに変換しテキ
スト情報内に挿入してフレーム印字を実現している装置
もある。Alternatively, there is also an apparatus that converts frame information into a character code and inserts it into text information to realize frame printing.
[発明が解決しようとする課題]
しかしながら、従来の装置においては、テキスト文書と
フレームという異なる形態で情報をもつ2つの記憶情報
を印字することはできても、同時に表示することができ
ないという欠点がある。また、フレーム情報をキャラク
タコードに変換し、テキスト文書情報に混在させる場合
においても、テキスト文書修正に伴いフレームの形が変
化することは避けられない。仮にテキスト文書修正でフ
レームを変形させないとするとテキスト文書情報内のコ
ードを入れ変える為に編集に多大な時間を要することが
予想される。[Problems to be Solved by the Invention] However, in the conventional apparatus, although it is possible to print two pieces of stored information that have information in different formats, a text document and a frame, there is a drawback that they cannot be displayed simultaneously. be. Further, even when frame information is converted into a character code and mixed with text document information, it is inevitable that the shape of the frame changes as the text document is modified. If the frame is not transformed when modifying a text document, it is expected that editing will take a lot of time to change the code within the text document information.
本発明は上記従来技術に鑑みなされたものであり、テキ
スト情報とフレーム情報とを混在させて表示することを
可能にすると共に、互いの表示が影響を及ぼすことなく
、効率的に文書作成及び編集を行うことを可能ならしめ
た文書処理装置を提供しようとするものである。The present invention has been made in view of the above-mentioned conventional technology, and enables text information and frame information to be displayed in a mixed manner, and allows for efficient document creation and editing without mutual display affecting each other. The present invention aims to provide a document processing device that can perform the following operations.
[課題を解決するための手段]
この課題を解決するために本発明は以下に示す構成を備
える。[Means for Solving the Problem] In order to solve this problem, the present invention includes the configuration shown below.
すなわち、
文書を構成する文字記号をコード情報として記憶する第
1の記憶手段と、文書中に展開されるフレームを構成す
る罫線情報を記憶する第2の記憶手段と、前記第1、第
2の記憶手段で記憶された情報中のコード情報及び罫線
情報に対応するパターン情報を発生する第1のパターン
発生手段と、前記第1、第2の記憶手段で記憶された情
報中の同位置にあるコード情報及び罫線情報の重畳パタ
ーンを発生する第2のパターン発生手段と、前記第1、
第2の記憶手段で記憶されたコード情報及び罫線情報に
基づくパターンを前記第1、第2のパターン発生手段で
発生し、表示する表示手段とを備える。That is, a first storage means for storing character symbols constituting a document as code information, a second storage means for storing ruled line information constituting a frame developed in the document, and the first and second storage means a first pattern generating means for generating pattern information corresponding to code information and ruled line information in the information stored in the storage means; and a pattern generating means located at the same position in the information stored in the first and second storage means. a second pattern generating means for generating a superimposed pattern of code information and ruled line information;
A display means is provided for generating and displaying a pattern based on the code information and ruled line information stored in the second storage means using the first and second pattern generation means.
[作用]
かかる本発明の構成において、テキスト情報とフレーム
情報とを表示するとき、これら情報中の同位置にあるコ
ード情報及び罫線情報に対しては、それらの重畳パター
ンを発生し、表示するものである。[Operation] In the configuration of the present invention, when displaying text information and frame information, a superimposed pattern is generated and displayed for code information and ruled line information located at the same position in these information. It is.
[実施例]
以下、添付図面に従って本発明に係る実施例を詳細に説
明する。尚、実施例では英語文書を作成編集する文書処
理装置を例にして説明する。[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the embodiment, a document processing apparatus for creating and editing English documents will be described as an example.
〈装置構成の説明(第1図)〉
第1図は本実施例の文書処理装置を概略構成の一例を示
すブロック図である。<Description of Device Configuration (FIG. 1)> FIG. 1 is a block diagram showing an example of a schematic configuration of the document processing device of this embodiment.
図中、1は本装置の中枢部をなし、以下に示す各構成要
素を制御する中央処理装置(CPUという)である、2
はCPUIの文書編集に係るプログラムや後述する第5
図〜第7図のフローチャートに係るプログラムを記憶し
ている読出し専用メモリ(ROMという)であって、そ
の一部は文字コードに対応する文字パターンを記憶し、
そのパターンを発生するキャラクタジェネレータ(CG
という)となっている。このCGにはフレーム(枠)を
構成する罫線コードに対応するパターンも記憶している
ものとする。尚、以下の説明では通常の文字コードは勿
論、フレームを構成する罫線コードを合せて文字コード
という。3はCPU1のワークエリア、そして文書情報
を記憶するのに使用される書込み可能なメモリ(RAM
という)である。4はビデオRAM (VRAMという
)であって、表示すべき文書情報をここに展開すること
により、その文書を表示することを可能にするものであ
って、実施例では横80文字、縦25文字分の容量を備
えるものである。5は文書作成或いは編集に係る文字や
種々のコマンド等を入力するキーボードである。6aは
通常の表示装置として良く用いられる陰極線管(CRT
という)であり、VRAM4と同様に80X25文字(
= 2000文字)を表示可能なものである。また、6
bはCRTコントローラ(CRTCという)であって、
VRAM4に展開された文書情報をROM2内に格納さ
れたCG或いは後述するCGRAMでパターン化し、そ
のパターン化した情報をCRTeaに表示させる制御を
行うものである。そして、7はテキスト情報及びフレー
ム情報を混在させた状態で印刷する印刷部である。尚、
各構成要素はバス8(アドレスバス、データバス、コン
トロールバスな含む)でもって電気的に接続されている
。In the figure, 1 is a central processing unit (referred to as CPU) which forms the central part of this device and controls each component shown below; 2
is a program related to document editing of CPUI and the fifth section described below.
A read-only memory (referred to as ROM) that stores programs related to the flowcharts in FIGS. 7 to 7, a part of which stores character patterns corresponding to character codes,
A character generator (CG) that generates the pattern
). It is assumed that this CG also stores a pattern corresponding to a ruled line code that constitutes a frame. In the following description, not only the normal character code but also the ruled line code that constitutes the frame will be referred to as the character code. 3 is the work area of the CPU 1, and a writable memory (RAM) used to store document information.
). Reference numeral 4 denotes a video RAM (referred to as VRAM), which makes it possible to display document information by expanding the document information to be displayed. It has a capacity of A keyboard 5 is used to input characters and various commands related to document creation or editing. 6a is a cathode ray tube (CRT) often used as a normal display device.
), and like VRAM4, it is 80x25 characters (
= 2000 characters). Also, 6
b is a CRT controller (referred to as CRTC),
The document information developed in the VRAM 4 is patterned using a CG stored in the ROM 2 or a CGRAM to be described later, and the patterned information is controlled to be displayed on the CRTea. A printing unit 7 prints text information and frame information in a mixed state. still,
Each component is electrically connected by a bus 8 (including address bus, data bus, control bus, etc.).
<RAMの説明(第2図)〉
第2図に実施例のRAM3の具体的なデータ格納状態を
示す。<Description of RAM (FIG. 2)> FIG. 2 shows a specific data storage state of the RAM 3 of the embodiment.
図中、9は文書情報内のディレクトリ部であり、文書情
報個数分とられている。10は1つのディレクトリにと
られた内部の情報を示し、該当する文書情報がテキスト
、フレーム、フォーマットまたはストップポジションの
どの情報であるかを示すインデクス(i d)と、タイ
トル名そして該タイトル情報の格納先先頭アドレスを示
すポインタとから構成されている。11は本実施例を示
すテキスト情報のディレクトリであり、idとしてテキ
ストのidが、タイトルとしては“TEXT”が、そし
て開始アドレスを示すポインタとしては後述する15で
示すテキスト情報の先頭アドレス“DlooH(Hは1
6進数を現す。以下同様)”が格納されている。12は
本実施例を示すフレーム情報のディレクトリであり、i
dとしてフレームのidが、タイトルとしては’FRA
ME”が、そして、その開始アドレスを示すポインタと
しては後述する20で示すフレーム情報の先頭アドレス
“D200H”が格納されている。In the figure, 9 is a directory section in the document information, which is equal to the number of pieces of document information. 10 indicates internal information stored in one directory, including an index (id) indicating whether the corresponding document information is text, frame, format, or stop position information, a title name, and the title information. It consists of a pointer indicating the storage destination start address. Reference numeral 11 is a text information directory showing this embodiment, where the id is the text ID, the title is "TEXT", and the pointer indicating the start address is the start address of the text information "DlooH( H is 1
Represents a hexadecimal number. 12 is a directory of frame information indicating this embodiment, and i
d is the frame id, and the title is 'FRA
ME", and the start address "D200H" of frame information shown at 20, which will be described later, is stored as a pointer indicating the start address.
また、13はCRTeaに表示したり、PRT7に印字
するために用いられる文書情報部である。この文書情報
部13は、以下に示す情報群より構成されている。Further, 13 is a document information section used for displaying on the CRTea or printing on the PRT7. This document information section 13 is composed of the following information group.
14はディレクトリ10に対応する文書情報である。1
5はディレクトリ11に対応するテキスト情報であり、
アドレス“DlooH”番地より格納されていて、16
で示すレフトマージン位置、ライトマージン位置等の該
テキストの出力フォーマットを決めるフォーマット情報
を含んでいる。17はフレーム情報をマージすることを
示す開始コード(DCH)であり、18はそのマージ終
了を示すコード(DDH)である。開始コード(DCH
)と終了コード(DDH)との間にはマージするフレー
ム情報のタイトル名″FREAME”が格納されている
。19は文書情報の終了を示すコード(FFH)である
。また、20はディレクトリ12に対応するフレーム情
報であり、D200H番地より格納されていて、n個の
ライン情報を含んでいる。21は最初のライン情報であ
り、22の2番目のライン情報に示すように、“1 (
ストローク) 、“11(ダブルストローク)”、
(アンダーライン)”、 (ダブルアンダーライ
ン)”等のフレームの種類を示すコードを格納するid
情報と該フレーム情報をマージしたテキスト情報のレフ
トマージン位置情報からのオフセット値である横の開始
位置情報と、テキスト文書内でのフレーム情報をマージ
したライン位置からのオフセット値である縦の開始位置
情報と、縦罫線であれば縦の終了位置情報。14 is document information corresponding to the directory 10. 1
5 is text information corresponding to directory 11;
It is stored from the address “DlooH” and is 16
Contains format information that determines the output format of the text, such as the left margin position and right margin position indicated by . 17 is a start code (DCH) indicating that frame information is to be merged, and 18 is a code (DDH) indicating the end of the merge. Start code (DCH
) and the end code (DDH) is stored the title name "FREAME" of the frame information to be merged. 19 is a code (FFH) indicating the end of document information. Further, 20 is frame information corresponding to the directory 12, which is stored from address D200H and includes n pieces of line information. 21 is the first line information, and as shown in the second line information 22, “1 (
stroke), “11 (double stroke)”,
(underline)", (double underline)", etc. ID that stores the code indicating the frame type
Horizontal start position information, which is an offset value from the left margin position information of the text information that has been merged with the frame information, and vertical start position information, which is an offset value from the line position where the frame information has been merged in the text document. information and, if it is a vertical ruled line, the vertical end position information.
横罫線であれば、横の終了位置情報を格納している。2
3はn番地のライン情報を示し、24はフレーム情報の
終了を示すコード(FFI()である。If it is a horizontal ruled line, horizontal end position information is stored. 2
3 indicates line information at address n, and 24 is a code (FFI()) indicating the end of frame information.
また、25は先に説明したテキスト情報15とフレーム
情報20の混在表示における1ライン分に対する表示バ
ッファエリア(これは複数個あっても良いし、1個でも
構わない)であって、実施例の場合には1つの表示文字
に3つのデータ群(図示の27〜29で示すCGコード
Oその1、アトリビュート、CGコードOその2)を対
応させている。Reference numeral 25 is a display buffer area for one line in the mixed display of the text information 15 and frame information 20 described above (there may be more than one, or there may be one); In this case, one display character is associated with three data groups (CG code O part 1, attributes, and CG code O part 2, indicated by 27 to 29 in the figure).
“CGコードi (i=1〜n)その1”にはテキスト
情報15内の文字コードが格納されることを示し、その
表示形態は続くアトリビュート(8ビツト構成)の内容
で決定される。"CG code i (i=1 to n) part 1" indicates that a character code in the text information 15 is stored, and its display format is determined by the content of the following attribute (8-bit configuration).
例えば、アトリビュートデータのビットOをオン(“1
”)にすると、直前の文字コードはボールド文字として
表示することを示し、ビットlをオンにすることは、C
Gコードiその1に格納された文字とCGコードiその
2に格納された文字とを重ねて表示することを示す。以
下、ビット2はサブスクリプト文字、ビット3はスーパ
ーサブスクリプト文字、ビット4はアンダーライン、ビ
ット6はブリンク、そして、ビット7は反転表示を示す
。For example, turn on bit O of the attribute data (“1
”) indicates that the previous character code will be displayed as a bold character, and turning on bit l means that the previous character code will be displayed as a bold character.
This indicates that the characters stored in G code i part 1 and the characters stored in CG code i part 2 are displayed in an overlapping manner. Hereinafter, bit 2 indicates a subscript character, bit 3 indicates a super subscript character, bit 4 indicates an underline, bit 6 indicates a blink, and bit 7 indicates a reverse display.
尚、アトリビュート内のビット1がオンのときには、C
Gコードiその1とCGコードiその2に格納された文
字コードを合成することになるので、その合成パターン
には対応するコードを割り当て、30で示すCGRAM
へ格納する。Note that when bit 1 in the attribute is on, C
Since the character codes stored in G code i part 1 and CG code i part 2 are to be synthesized, a corresponding code is assigned to the composite pattern, and the CGRAM indicated by 30 is
Store it in
く文書表示の説明(第3図、第4図)〉上述した本実施
例のRAMの使用フォーマットに基づいて、フレーム(
表を形成する枠)とテキストとを混在させて表示する原
理を以下に説明する。Explanation of document display (Figures 3 and 4)> Based on the RAM usage format of this embodiment described above, frame (
The principle of displaying a mixture of frames (forming a table) and text will be explained below.
第3図(a)は実施例におけるVRAM4の内部構成を
示している。FIG. 3(a) shows the internal configuration of the VRAM 4 in the embodiment.
VRAM4は先に説明した如く、CRTe aの表示文
字数80X25 (=2000)の表示文字データを格
納できる容量を持っており、図示の様に1個の表示文字
データに対してCGコードiとアトリビュートi (
i=o〜1999)が割り当てられている。As explained earlier, the VRAM 4 has a capacity to store display character data of 80 x 25 (=2000) display characters of CRTe a, and as shown in the figure, the CG code i and attribute i are stored for one display character data. (
i=o~1999) is assigned.
ここで、CGコードiに格納されるデータはROM2内
のCGに対する文字コード或いは、RAM3内のCGR
AM30に対する文字コードのいずれかであって、その
所在は対応するアトリビュートiのビットlのオン、オ
フで決定される。Here, the data stored in CG code i is the character code for CG in ROM2 or CGR in RAM3.
It is one of the character codes for AM30, and its location is determined by whether bit l of the corresponding attribute i is on or off.
すなわち、このビットlがオフのときにはROM2内の
CGを、そのビットがオン(合成して作成された文字パ
ターンである)のときには、RAM5内のCGRAM3
0にその文字コードに対応するパターンが格納されてい
ることを示している。That is, when this bit l is off, the CG in ROM2 is stored, and when that bit is on (the character pattern is created by combining), the CG in RAM5 is stored.
0 indicates that the pattern corresponding to that character code is stored.
尚、アトリビュートのビット1〜3以外のビット情報の
意味はRAM3の説明におけるものと同じであって、第
3図(a)に示すVRAM4状態のときの表示例を第3
図(b)に示す。ここで、CGコードO内に格納された
“41H”は文字“A″ “42H”は文字″B”
“7AH”は文字“Z を示すアスキーコードであ
る。そして、各々のCGコードに対するアトリビュート
(通常文字表示、ボールド文字表示、アンダーライン)
でもって図示の様な結果が得られることになる。Note that the meaning of the bit information other than bits 1 to 3 of the attributes is the same as that in the explanation of RAM3, and the display example in the VRAM4 state shown in FIG. 3(a) is shown in FIG.
Shown in Figure (b). Here, “41H” stored in CG code O is the character “A” and “42H” is the character “B”
"7AH" is an ASCII code indicating the character "Z".Attributes for each CG code (normal character display, bold character display, underline)
As a result, the results shown in the figure can be obtained.
さて、この様な構造をしている本実施例のRAM3及び
VRAM4でもってフレームとテキスト情報を混在させ
て表示するときには、先ずテキスト情報15内の1ライ
ン分のテキスト(文字記号コード)をRAM3内の表示
バッファエリア25の“CGコードiその1”に展開す
る。そして、注泪行に対応するフレーム情報があると判
断した場合には、そのフレームデータに対応する文字コ
ード、すなわち、罫線を示す文字コードを”CGコード
iその2°に展開する。但し、対応するテキスト情報が
スペース等である場合には、その罫線をCGiコードそ
の1に展開する。また、罫線コードを展開する箇所のア
トリビュートのビット1をオン(合成表示の設定)にす
る。アトリビュート内のビット1がオンの状態である場
合は、CGコードiそのl及びその2に格納された文字
コードに対応する文字パターンをROM2内のCGより
発生させ、その論理和パターンをCGRAM30に格納
する。そして、対応するコードを割り当てて、VRAM
4に展開する。尚、アトリビュート内のビット1がオフ
であるときには、CGコードiその1内の文字コードを
そのままVRAM4の対応するアドレスに書込む。これ
によって、第4図に示す様な表示がなされる。以下、オ
ペレータはテキストを編集するとき、例えば1文字挿入
等の処理をするときには、対応するテキスト情報15内
の処理し、上述した処理を実行することにより、フレー
ムには全く影響させずにその編集を行うことが可能とな
る。また、フレームを編集するときにも同様であって、
その編集内容をフレーム情報25に対して行った後に、
上述した処理を実行することにより、テキストには全く
影響せずに表示を行うことが可能となる。Now, when displaying frames and text information in a mixed manner using the RAM 3 and VRAM 4 of this embodiment having such a structure, first, one line of text (character symbol code) in the text information 15 is stored in the RAM 3. The data is expanded to "CG code i part 1" in the display buffer area 25. Then, if it is determined that there is frame information corresponding to the line of note, the character code corresponding to that frame data, that is, the character code indicating the ruled line, is expanded to "CG code i that 2 degrees. However, if the corresponding If the text information to be displayed is a space, etc., expand the ruled line to CGi code part 1.Also, turn on bit 1 of the attribute where the ruled line code is expanded (synthetic display setting). If bit 1 is on, character patterns corresponding to the character codes stored in CG codes i, 1 and 2 are generated from the CG in the ROM 2, and the logical sum pattern is stored in the CGRAM 30. , and assign the corresponding code to the VRAM
Expand to 4. Note that when bit 1 in the attribute is off, the character code in CG code i part 1 is written as is to the corresponding address in the VRAM 4. As a result, a display as shown in FIG. 4 is created. Hereinafter, when the operator edits text, for example, inserts a single character, the operator processes the corresponding text information 15 and performs the above-mentioned process, thereby editing the text without affecting the frame at all. It becomes possible to do this. The same applies when editing frames.
After performing the editing contents on frame information 25,
By executing the above-described processing, it becomes possible to perform display without affecting the text at all.
尚、第4図の表示例において、40は表示しているテキ
スト情報のタイトル名や、メツセージ情報を表示するメ
ツセージライン。41は、第2図の示した該テキストの
出力フォーマット情報16を表示するフォーマットライ
ン。42はリターンコードを示す表示文字。43は第2
図(a)に示したフレーム情報17をマージする開始コ
ード(DCH)に対する表示文字で、44はその終了コ
ード(DDH)に対する表示文字である。45はタブを
示す表示文字。46は第2図(a)に示すマージされた
フレーム情報20を表示コードに展開し表示したもので
ある。In the display example of FIG. 4, 40 is a message line that displays the title name of the displayed text information and message information. 41 is a format line for displaying output format information 16 of the text shown in FIG. 2; 42 is a display character indicating a return code. 43 is the second
This is a display character for the start code (DCH) for merging the frame information 17 shown in FIG. 2A, and 44 is a display character for the end code (DDH). 45 is a display character indicating a tab. 46 is the merged frame information 20 shown in FIG. 2(a) expanded into a display code and displayed.
く処理手順の説明(第5図〜第7図)〉以下、上述した
本実施例の構成及び原理に基づく1ライン表示に係るC
PU1の処理内容を第5図のフローチャートに従って説
明する。Explanation of processing procedure (Figures 5 to 7)> Hereinafter, C related to one-line display based on the configuration and principle of this embodiment described above.
The processing contents of PU1 will be explained according to the flowchart of FIG.
先ず、ステップS1において、テキスト情報15から1
ライン分の情報を摘出する。第4図でフレーム情報をマ
ージしていることを示すラインを例にする、テキスト情
報15内のマージ開始コード(DCH)17からマージ
ン終了コード(DDH)18までとなる。尚、マージ終
了コード(DDH)は改行機能も有する。次いで、ステ
ップS2に進み、摘出した情報を表示バッファエリア2
5(のCGコードiその1)に展開する。そして、ステ
ップS3に進んで、表示テキストがフレーム情報をマー
ジしているかどうか、かつ該当するフレーム情報が存在
するかどうかをディレクトリ9内をスキャンすることに
より行う判定処理を行う。フレームマージがあり該フレ
ームが存在した場合はステップS4に進む。また、フレ
ームマージがないか、或いはあっても該フレーム情報が
存在しない場合はステップS6に進む。First, in step S1, text information 15 to 1
Extract information for a line. Taking as an example the line indicating that frame information is being merged in FIG. 4, it is from the merge start code (DCH) 17 to the margin end code (DDH) 18 in the text information 15. Note that the merge end code (DDH) also has a line feed function. Next, the process proceeds to step S2, where the extracted information is displayed in the display buffer area 2.
5 (CG code i part 1). Then, the process proceeds to step S3, and a determination process is performed by scanning the directory 9 to determine whether the display text is merged with frame information and whether or not the corresponding frame information exists. If there is a frame merge and the frame exists, the process advances to step S4. Further, if there is no frame merging, or if there is, but the frame information does not exist, the process advances to step S6.
実施例の場合、テキスト情報15には“FRAME”と
いうタイトル名のフレーム情報をマージし、かつフレー
ム情報はRAM3の領域20に存在している。従ってス
テップS4に処理は進む。In the case of the embodiment, frame information with the title "FRAME" is merged with the text information 15, and the frame information exists in the area 20 of the RAM 3. Therefore, the process proceeds to step S4.
ステップS4では、フレーム情報2oのライン情報を展
開し、該当表示ラインに表示すべきフレームラインが存
在するかどうかの判定処理を行う。表示すべきフレーム
ラインが存在する場合は、ステップS5に進み、表示す
べきフレームラインが存在しない場合は、ステップS6
に進む。In step S4, the line information of the frame information 2o is developed, and a process is performed to determine whether or not there is a frame line to be displayed on the corresponding display line. If there is a frame line to be displayed, the process proceeds to step S5; if there is no frame line to be displayed, the process proceeds to step S6.
Proceed to.
ここでフレームの表示として横線としては“(アンダー
ライン)または“ (ダブルアンダーライン) 縦線
としては“1“ (ストローク)、“II” (ダブル
ストローク)等の表示コードをそれぞれ用いる。特に、
前述したROM2内に記憶されているCGコードには特
殊表示コードが準備されている。マージコマンド表示ラ
インにおいては、表示すべき横線のフレームが存在して
いる。ステップS5ではすでに表示バッファエリア25
に格納されている情報を、フレーム情報な加える加工処
理(CGコードiその2に展開)を行い、ステップS6
に進む。ステップS6では、表示バッファ25に格納さ
れている情報を第3図(a)に示すVRAMへ展開する
処理を行い終了する。Here, display codes such as "(underline)" or "(double underline)" are used for the horizontal line and "1" (stroke), "II" (double stroke), etc. are used for the vertical line to display the frame. especially,
A special display code is prepared in the CG code stored in the ROM 2 mentioned above. In the merge command display line, there is a frame of horizontal lines to be displayed. In step S5, the display buffer area 25
Processing processing (expanding to CG code i part 2) is performed to add frame information to the information stored in , and step S6
Proceed to. In step S6, the information stored in the display buffer 25 is expanded into the VRAM shown in FIG. 3(a), and the process ends.
ステップS5の表示バッファエリア25へのフレーム情
報展開処理の詳細を第6図に示し、以下に説明する。Details of the frame information development process in the display buffer area 25 in step S5 are shown in FIG. 6 and will be described below.
先ず、表示バッファエリア25の先頭キャラクタを示す
カラム単位の表示情報26より修正処理を開始する。ス
テップS7では該当するカラムの表示位置にフレームラ
インが存在するかどうかの判定を行う。フレームライン
が存在すればステップS8に進み、フレームラインが存
在しなければステップS13に進む。First, the correction process is started from the column-based display information 26 indicating the first character of the display buffer area 25. In step S7, it is determined whether a frame line exists at the display position of the corresponding column. If a frame line exists, the process advances to step S8; if no frame line exists, the process advances to step S13.
さて、ステップS8ではフレーム情報を表示バッファエ
リア25に展開するときに、そのフレーム情報の表示コ
ードを選択する。例えば、第4図の43の表示すべき表
示コードはアンダーラインの右半分のみを表示する特殊
CGである ”を示すコードを選択する。そして、次
のステップS9では、該当カラムの表示コードがスペー
ス(空)であるかどうかの判定を行う。スペースであれ
ばステップSIOに進んで、各カラムのCGコードその
1にステップS8で選択された表示コードを格納する。Now, in step S8, when developing the frame information in the display buffer area 25, a display code of the frame information is selected. For example, the display code 43 in FIG. (empty). If it is a space, the process advances to step SIO, and the display code selected in step S8 is stored in CG code No. 1 of each column.
また、スペースすべずでない、すなわち、文字コードが
既に格納されているときには、ステップSllに進んで
、アトリビュートのビット1をオン(合成表示)にし、
先に選択して得られたコードをCGコードその2に格納
する。Also, if there is no space, that is, if the character code is already stored, proceed to step Sll, turn on bit 1 of the attribute (composite display),
The code obtained by selecting first is stored in CG code No. 2.
こうして、1つのカラムにおけるフレーム情報の表示バ
ッファエリア25への展開がなされると、ステップS1
3で、注目しているカラムがその行の最終位置であるか
否か、すなわち、1行分のフレーム情報の表示バッファ
エリア25に対する展開処理が終了したか否かを判断す
る。未終了であると判断した場合には、次の注目カラム
位置を更新し、以下、ステップS7以降の処理を繰り返
す。In this way, when the frame information in one column is expanded to the display buffer area 25, step S1
In step 3, it is determined whether the column of interest is at the final position of the row, that is, whether or not the development process for one row of frame information in the display buffer area 25 has been completed. If it is determined that the processing has not been completed, the next column of interest is updated, and the processing from step S7 onwards is repeated.
次に第5図のフローチャート中のステップS6の処理で
ある表示バッファエリア25に展開された情報のVRA
M4への展開処理を第7図を用いて説明する。Next, the VRA of the information developed in the display buffer area 25, which is the process of step S6 in the flowchart of FIG.
Expansion processing to M4 will be explained using FIG. 7.
先ず、ステップS15で、展開光の表示バッファエリア
25の先頭位置と展開光のVRAM4の先頭位置を決定
する。First, in step S15, the leading position of the display buffer area 25 for the developed light and the leading position of the VRAM 4 for the developed light are determined.
次に、表示バッファエリア25の注目カラムのアトリビ
ュートを調べ、そのビット1〜3のいずれかがオンにな
っているか否かを判断する。これらのビットが全てオフ
である場合には、表示文字は表示バッファエリア25中
のCGコードその1に格納された文字コードによっての
み決定するものであるから、その文字コードをVRAM
4の対応するCGコードに格納し、アトリビュート内の
各ビット状態もVRAMJ内の対応するアトリビュート
にコピーする。Next, the attribute of the column of interest in the display buffer area 25 is checked, and it is determined whether any of bits 1 to 3 are turned on. If all of these bits are off, the displayed character is determined only by the character code stored in CG code No. 1 in the display buffer area 25, so the character code is stored in the VRAM.
4 in the corresponding CG code, and each bit state in the attribute is also copied to the corresponding attribute in VRAMJ.
一方、表示バッファエリア25内の注目カラムのアトリ
ビュートのビット1〜3の少なくとも1つがオンである
ときには、処理はステップS17に進み、そのCGコー
ドその1とその2に格納された文字コードに対応する文
字パターンをROM2内のCGより発生し、それらの合
成パターンを生成する。次のステップS18では、その
生成された合成文字パターンをCGRAM30に格納し
、対応する文字コードをVRAM4のCGコードに格納
する。そして、次のステップS19で、VRAM4の対
応するアトリビュートのビットlをオンし、表示バッフ
ァエリア25内のアトリビュートのビ”/ト0,4,6
.7をVRAM4(7)アトリビュートにコピーする。On the other hand, if at least one of bits 1 to 3 of the attribute of the column of interest in the display buffer area 25 is on, the process proceeds to step S17, and the character codes corresponding to the CG codes 1 and 2 are set. A character pattern is generated from the CG in the ROM 2, and a composite pattern of them is generated. In the next step S18, the generated composite character pattern is stored in the CGRAM 30, and the corresponding character code is stored in the CG code of the VRAM4. Then, in the next step S19, bit l of the corresponding attribute in the VRAM 4 is turned on, and bits 0, 4, 6 of the attribute in the display buffer area 25 are turned on.
.. Copy 7 to the VRAM4 (7) attribute.
こうして、1つの注目カラムに対するVRAM4への文
字コード及びアトリビュートへのビット設定が終了する
と、次のステップS21でそれらの処理が1表示ライン
に対して行われたか否かを判断する。未完であると判断
したときには、ステップS22に進み、表示バッファエ
リア25及びVRAM4それぞれの注目カラムを更新し
、以下、ステップS21で終了と判断されるまで、ステ
ップS16以降の処理を繰り返す。In this way, when the character code in the VRAM 4 and the bit setting in the attribute for one column of interest are completed, it is determined in the next step S21 whether or not these processes have been performed for one display line. If it is determined that the process is incomplete, the process proceeds to step S22, where the columns of interest in the display buffer area 25 and VRAM 4 are updated, and the processes from step S16 onward are repeated until it is determined that the process is completed in step S21.
、以上、説明した処理は例えば操作者がテキスト情報の
編集をする毎に行なうことになる。その結果、例えば、
操作者がテキストを編集したとしても、従来の様に、フ
レームが変形してしまったりすることが全くなくなる。The processing described above is performed, for example, every time the operator edits text information. As a result, for example,
Even if the operator edits the text, the frame will no longer be distorted as in the past.
逆に、フレームを編集するときにも、同様の原理でもっ
て、テキストに影響することがなくなる。従って、テキ
ストとフレームが混在させた状態における各編集処理は
大幅に向上させることが可能となる。Conversely, when editing a frame, the same principle will be used to avoid affecting the text. Therefore, each editing process in a state where text and frames are mixed can be significantly improved.
く他の実施例の説明(第8図、第9図)〉上述した実施
例においては、重ね文字用のCGRAM30の領域をR
AM3上に充分に確保する必要があるが、その十分な確
保ができない場合、第6図のステップS8からステップ
S12までの部分を、第8図のフローチャートで置き変
える事もできる。Description of other embodiments (Figs. 8 and 9) In the above embodiment, the area of the CGRAM 30 for overlapping characters is
Although it is necessary to secure a sufficient amount on the AM3, if the sufficient amount cannot be secured, the steps from step S8 to step S12 in FIG. 6 can be replaced with the flowchart in FIG. 8.
以下、このフローチャートを用いて説明する。The process will be explained below using this flowchart.
先ず、ステップS23で、フレーム情報を表示バッファ
エリア25に展開するとき、注目カラムのフレームの表
示コードの種類を決定する。そして、ステップS24で
は、フレーム表示コードが“1 (ストローク)や“
−(アンダーライン)等の縦線と横線の交わりのないも
のであるか、 1”や“上“等の縦線と横線の加わりの
あるものであるかの判定を行う。縦線と横線の交わりが
あればステップS26に進み、交わりがなければステッ
プS25に進む。ステップS25では、表示バッファ2
5内の該当するカラム位置情報のアトリビュートのビッ
ト7の反転表示を示すビットをONにし、処理を終了す
る。ステップS26では、前記アトリビュートのビット
6のブリンクとビット7の反転表示の両方のビットをO
Nに処理をする。First, in step S23, when developing frame information in the display buffer area 25, the type of display code of the frame in the column of interest is determined. Then, in step S24, the frame display code is "1 (stroke)" or "
Determine whether the vertical line and horizontal line do not intersect, such as - (underline), or if there is a combination of vertical and horizontal lines, such as ``1'' or ``above''. If there is an intersection, the process proceeds to step S26, and if there is no intersection, the process proceeds to step S25.In step S25, the display buffer 2
The bit 7 of the attribute of the corresponding column position information in 5, which indicates the inverted display, is turned ON, and the process ends. In step S26, both the blink bit 6 and the inverted display bit 7 of the attribute are turned off.
Process N.
第9図にこの実施例による表示例を示す。この実施例に
よれば印字結果と1対1の表示結果は得られないが、C
GRAM30は実質不要になり、有限なRAM領域やそ
の処理速度を考えた場合、極めて有効となる。FIG. 9 shows an example of display according to this embodiment. According to this embodiment, although it is not possible to obtain a one-to-one display result with the printed result,
The GRAM 30 is virtually unnecessary, which is extremely effective considering the limited RAM area and its processing speed.
[発明の効果]
以上説明したように本発明によれば、テキスト情報とフ
レーム情報という2つの形態の違う情報を同一画面上に
同時に印字イメージで表示し、しかも、これら異形態の
情報が編集中に影響を及ぼし合うことがなくなるいので
、文書編集の操作性は格段に向上する。[Effects of the Invention] As explained above, according to the present invention, two different forms of information, text information and frame information, are simultaneously displayed as printed images on the same screen, and moreover, these different forms of information are displayed during editing. The operability of document editing is greatly improved because the documents do not influence each other.
第1図は本実施例を示す電子タイプライタシステムのブ
ロック図、
第2図は第1図に示したRAM内とられた文書情報や表
示情報などの領域を示す図、
第3図(a)は実施例のVRAM内のデータフォーマッ
トを示す図、
第3図(b)は同図(a)の内容に基づく表示例を示す
図、
第4図はテキストにフレームをマージしたときの表示例
を示す図、
第5図〜第7図は本実施例における処理手順を示すフロ
ーチャート、
第8図は他の実施例における処理の手順を示すフローチ
ャート、
第9図は他の実施例におけるフレームの表示例を示す豆
である。
図中、1・・・CPU、2・・・ROM、3・・・RA
M。
4・・・VRAM、5・・・キーボード、6a・・・C
RT7・・・プリンタ、
8・・・バスである。
第3図
第3図
(b)
第4図
第5図
第6図
笠Fig. 1 is a block diagram of an electronic typewriter system showing this embodiment, Fig. 2 is a diagram showing areas such as document information and display information stored in the RAM shown in Fig. 1, and Fig. 3 (a). 3(b) is a diagram showing a display example based on the contents of FIG. 3(a), and FIG. 4 is a display example when frames are merged with text. 5 to 7 are flowcharts showing the processing procedure in this embodiment. FIG. 8 is a flowchart showing the processing procedure in another embodiment. FIG. 9 is a frame display example in another embodiment. It is a bean that shows. In the figure, 1...CPU, 2...ROM, 3...RA
M. 4...VRAM, 5...Keyboard, 6a...C
RT7...Printer, 8...Bus. Figure 3 Figure 3 (b) Figure 4 Figure 5 Figure 6 Shade
Claims (1)
する第1の記憶手段と、 文書中に展開されるフレームを構成する罫線情報を記憶
する第2の記憶手段と、 前記第1、第2の記憶手段で記憶された情報中のコード
情報及び罫線情報に対応するパターン情報を発生する第
1のパターン発生手段と、 前記第1、第2の記憶手段で記憶された情報中の同位置
にあるコード情報及び罫線情報の重畳パターンを発生す
る第2のパターン発生手段と、前記第1、第2の記憶手
段で記憶されたコード情報及び罫線情報に基づくパター
ンを前記第1、第2のパターン発生手段で発生し、表示
する表示手段とを備えることを特徴とする文書処理装置
。(1) a first storage means for storing character symbols constituting a document as code information; a second storage means for storing ruled line information constituting a frame developed in the document; and the first and second storage means a first pattern generating means for generating pattern information corresponding to the code information and ruled line information in the information stored in the storage means; a second pattern generating means for generating a superimposed pattern of certain code information and ruled line information, and a pattern based on the code information and ruled line information stored in the first and second storage means as the first and second patterns; 1. A document processing device comprising: a display means for generating and displaying the generated information in the generating means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63220469A JPH0268655A (en) | 1988-09-05 | 1988-09-05 | document processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63220469A JPH0268655A (en) | 1988-09-05 | 1988-09-05 | document processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0268655A true JPH0268655A (en) | 1990-03-08 |
Family
ID=16751600
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63220469A Pending JPH0268655A (en) | 1988-09-05 | 1988-09-05 | document processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0268655A (en) |
-
1988
- 1988-09-05 JP JP63220469A patent/JPH0268655A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0268655A (en) | document processing device | |
| JPH03213367A (en) | Multicolor printer | |
| JP2608276B2 (en) | Document display device | |
| JP2635311B2 (en) | Document processing device | |
| JP2815158B2 (en) | Character processor | |
| JPH0346020A (en) | Document processing system | |
| JPH0751374B2 (en) | Document processor | |
| JPH103371A (en) | Page layout comparator and page layout display device | |
| JPS59123046A (en) | Display system of document processor | |
| JPH04205346A (en) | Printer device | |
| JP2573174B2 (en) | Document creation device | |
| JPH04127265A (en) | Document processor | |
| JPS62203261A (en) | document processing device | |
| JPH03263257A (en) | Document processor | |
| JPH07152737A (en) | Document creation device | |
| JPH0264852A (en) | document processing device | |
| JPS59127167A (en) | Ruled line processing system for sentence processor | |
| JPH08202333A (en) | Character processor | |
| JPH0764980A (en) | Next page creation control method for document creation apparatus and apparatus | |
| JPS6359658A (en) | Document processor | |
| JPH0580013B2 (en) | ||
| JPH03263170A (en) | Document processing system | |
| JPH05324624A (en) | Character processing device with document data registration function | |
| JPS62229462A (en) | Document processor | |
| JPH0869458A (en) | Character display device |