JPH04321165A - Document processor - Google Patents

Document processor

Info

Publication number
JPH04321165A
JPH04321165A JP3090263A JP9026391A JPH04321165A JP H04321165 A JPH04321165 A JP H04321165A JP 3090263 A JP3090263 A JP 3090263A JP 9026391 A JP9026391 A JP 9026391A JP H04321165 A JPH04321165 A JP H04321165A
Authority
JP
Japan
Prior art keywords
memory
line
character string
document
character strings
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
JP3090263A
Other languages
Japanese (ja)
Inventor
Atsurou Tsuho
敦郎 津保
Teruyuki Satake
佐竹 輝之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP3090263A priority Critical patent/JPH04321165A/en
Publication of JPH04321165A publication Critical patent/JPH04321165A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically edit the character strings whose positions are customarily decided in the lines. CONSTITUTION:When the document data are printed, a CPU 12 reads the character strings out of a document memory 16 for each line. Then the CPU 12 compares the character strings read out of the memory 16 respectively with all character strings stored in a layout dictionary memory 13. When the coincidence is obtained between the character string read out of the memory 16 and that stored in the dictionary memory 13, the CPU 12 reads the attribute data corresponding to the coincident character strings out of the memory 13. Based on these attribute data, the CPU 12 performs the line editing processing and stores the edited document data in a print buffer 15.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は任意の文字列に対して
、その文字列の配置を指定する行編集情報を設定できる
文書処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus that can set line editing information for specifying the arrangement of an arbitrary character string.

【0002】0002

【従来の技術】日本語ワードプロセッサ等の文書処理装
置では、文書作成の途中で、入力された文字列に対して
編集を行なうことできる。例えば「表題」等の文字列を
行の中央に配置したい場合は、割付け処理において「セ
ンタリング」を指定する。また、「日付」等の文字列を
行の右端に配置したい場合は、割付け処理において「右
よせ」を指定する。
2. Description of the Related Art In document processing devices such as Japanese word processors, input character strings can be edited during document creation. For example, if you want to place a character string such as "title" in the center of a line, specify "centering" in the layout process. Additionally, if you want to place a character string such as "date" on the right end of a line, specify "right alignment" in the layout process.

【0003】0003

【発明が解決しようとする課題】しかしながら、従来の
文書処理装置における編集では、例えば「記」、「以上
」等のように慣用的に行内の位置が決まっている文字列
であっても、ユーザーがその都度「センタリング」、「
右よせ」等の割付け処理を行なって文字列の位置を設定
する必要があった。
[Problems to be Solved by the Invention] However, in editing using conventional document processing devices, even if the character string has a customary position within a line, such as "Ki" or "Original", it is difficult for the user to "Centering", "
It was necessary to perform layout processing such as "Align to the right" to set the position of the character string.

【0004】この発明の課題は、慣用的に行内の位置が
決まっている文字列に対して、自動的に編集できるよう
にすることである。
An object of the present invention is to enable automatic editing of character strings whose positions within a line are conventionally determined.

【0005】[0005]

【課題を解決するための手段】この発明の手段は次の通
りである。レイアウト辞書メモリ1(図1の機能ブロッ
ク図を参照、以下同じ)は、任意の文字列(例えば「記
」「以上」)に対応して任意の行編集情報(例えば「セ
ンタリング」「右寄せ」等の属性データ)を記憶する。 レイアウト辞書メモリ1は、例えばROMで構成して文
字列と行編集情報とを予め記憶するか、RAMで構成し
て文字列と行編集情報とをユーザーが任意に設定できる
ようにする。比較手段2は、例えばCPUおよび制御プ
ログラムで構成されるもので、文書メモリに記憶された
文字列とレイアウト辞書メモリ1に記憶された文字列と
を比較する。行編集手段3は、例えばCPUおよび制御
プログラムで構成されるもので、比較手段2が両文字列
の一致を検出したときレイアウト辞書メモリ1に記憶さ
れた文字列に対応する行編集情報(属性データ)に基づ
いて上記文書メモリに記憶された文字列を行単位に編集
し、例えば印刷バッファ(編集バッファ)に格納する。
[Means for Solving the Problems] The means of the present invention are as follows. The layout dictionary memory 1 (see the functional block diagram in FIG. 1; the same applies hereinafter) stores arbitrary line editing information (for example, "centering", "right alignment", etc.) in response to any character string (for example, "note", "or more"). (attribute data). The layout dictionary memory 1 may be configured, for example, with a ROM to store character strings and line editing information in advance, or configured with a RAM so that the character strings and line editing information can be set arbitrarily by the user. The comparison means 2 is composed of, for example, a CPU and a control program, and compares the character string stored in the document memory with the character string stored in the layout dictionary memory 1. The line editing means 3 is composed of, for example, a CPU and a control program, and when the comparing means 2 detects a match between both character strings, the line editing means 3 stores line editing information (attribute data) corresponding to the character string stored in the layout dictionary memory 1. ), the character string stored in the document memory is edited line by line and stored in, for example, a print buffer (edit buffer).

【0006】[0006]

【作用】この発明の手段の作用は次の通りである。例え
ば文書メモリに記憶された文書データを印刷のために編
集する際に、比較手段2は例えば文書メモリから1行単
位に読み出された文字列と、レイアウト辞書メモリ1か
ら読み出された文字列とが一致するか否かを検出する。 そして、比較手段2が両文字列の一致を検出すると、行
編集手段3は一致した文字列に対応する行編集情報をレ
イアウト辞書メモリ1から読み出し、文書メモリの文字
列を行単位に編集(例えば「センタリング処理」「右寄
せ処理」)し、印刷バッファに格納する。従って、慣用
的に行内の位置が決まっている文字列に対する編集を自
動的に行なうことができる。
[Operation] The operation of the means of the present invention is as follows. For example, when editing document data stored in a document memory for printing, the comparing means 2 compares, for example, a character string read out line by line from the document memory and a character string read out from the layout dictionary memory 1. Detect whether or not they match. When the comparing means 2 detects a match between the two character strings, the line editing means 3 reads line editing information corresponding to the matched character string from the layout dictionary memory 1, and edits the character string in the document memory line by line (e.g. "centering processing" and "right alignment processing") and store it in the print buffer. Therefore, it is possible to automatically edit a character string whose position within a line is conventionally determined.

【0007】[0007]

【実施例】以下、本発明の一実施例を図2に基づいて説
明する。図2は文書処理装置の具体的な回路構成を示す
ブロック図である。
[Embodiment] An embodiment of the present invention will be described below with reference to FIG. FIG. 2 is a block diagram showing a specific circuit configuration of the document processing device.

【0008】キー入力部11は文書データを入力する各
種キーを備えている。そして、キー入力部11でキーが
操作されると、そのキー操作に応じたキー入力信号がC
PU12に入力される。CPU12は、図示しないRO
Mに予め記憶した制御プログラムに基づいて各部を制御
する。CPU12にはキー入力部11の他に、レイアウ
ト辞書メモリ13、書式メモリ14、文書メモリ15、
印刷バッファ16、表示部17、および印字部18が接
続されている。
The key input unit 11 includes various keys for inputting document data. When a key is operated on the key input unit 11, a key input signal corresponding to the key operation is transmitted to C.
It is input to PU12. The CPU 12 is an RO (not shown)
Each part is controlled based on a control program stored in M in advance. In addition to the key input section 11, the CPU 12 includes a layout dictionary memory 13, a format memory 14, a document memory 15,
A print buffer 16, a display section 17, and a printing section 18 are connected.

【0009】レイアウト辞書メモリ13は、例えばRA
Mにより構成されており、「記」,「以上」,…等の任
意の文字列と、これらの文字列に夫々対応する行編集情
報として「センタリング」,「右寄せ」,・・・等の属
性データとが、予め設定モードにおいて入力されて記憶
されている。ここで、レイアウト辞書メモリ13に記憶
される文字列は慣用的に特定の配置位置を持つ文字列で
ある。 「記」は、慣用的に文章の中央位置に記述される文字列
であるから、「センタリング」という属性データが設定
される。また「以上」は、慣用的に文章の右端に記述さ
れる文字列であるから、「右寄せ」という属性データが
設定されている。
[0009] The layout dictionary memory 13 includes, for example, RA
M is composed of arbitrary character strings such as "note", "more than", etc., and attributes such as "centering", "right alignment", etc. as line editing information corresponding to these character strings respectively. The data is input in advance in the setting mode and stored. Here, the character strings stored in the layout dictionary memory 13 are conventionally character strings that have specific layout positions. Since "ki" is a character string that is conventionally written in the center position of a sentence, attribute data "centering" is set. Furthermore, since "more than" is a character string conventionally written at the right end of a sentence, attribute data "right alignment" is set.

【0010】書式メモリ14は、例えばRAMで構成さ
れ、文書の書式を指定する書式データ(1行桁数等)を
記憶する。
The format memory 14 is composed of, for example, a RAM, and stores format data (number of digits per line, etc.) that specifies the format of a document.

【0011】印刷バッファ(編集バッファ)15は、文
書メモリ16の内容を印刷する際に、編集後の文書デー
タが記憶される。
The print buffer (edit buffer) 15 stores edited document data when printing the contents of the document memory 16.

【0012】文書メモリ16は、予め入力された編集前
の文書データが記憶されている。この場合、ユーザーは
上述した「記」,「以上」という文字列について、入力
時に「センタリング」,「右寄せ」という属性データを
その都度設定する必要はなく、単に文字列だけを入力す
ればよい。
[0012] The document memory 16 stores pre-input document data before editing. In this case, the user does not need to set attribute data such as ``centering'' and ``right alignment'' each time the user inputs the character strings ``record'' and ``more than'' mentioned above, but only needs to input the character string.

【0013】次に、上記実施例の動作を説明する。Next, the operation of the above embodiment will be explained.

【0014】文書データを印刷する場合、まず、CPU
12は文書メモリ16から文字列を1行単位に読み出す
。次に、CPU12は文書メモリ16から読み出された
文字列をレイアウト辞書メモリ13に記憶された文字列
の全部と、1つずつ比較していく。ここで、文書メモリ
16から読み出された文字列と、レイアウト辞書メモリ
13に記憶された文字列とが一致した場合、CPU12
は一致した文字列に対応する属性データをレイアウト辞
書メモリ13から読み出す。読み出された属性データに
基づいて、CPU12は行編集処理を行ない、編集後の
文書データを印刷バッファ15に格納する。
[0014] When printing document data, first, the CPU
12 reads a character string line by line from the document memory 16. Next, the CPU 12 compares the character string read from the document memory 16 with all the character strings stored in the layout dictionary memory 13 one by one. Here, if the character string read from the document memory 16 and the character string stored in the layout dictionary memory 13 match, the CPU 12
reads the attribute data corresponding to the matched character string from the layout dictionary memory 13. Based on the read attribute data, the CPU 12 performs line editing processing and stores the edited document data in the print buffer 15.

【0015】例えば、文書データに「記」という文字列
があった場合、レイアウト辞書メモリ13から「センタ
リング」という属性データが読み出される。CPU12
は、属性データ「センタリング」に基づいて「記」とい
う文字列を行の中心に配置する行編集処理を行なう。即
ち、行頭から「記」の文字まで文字列「記」を行の中心
に配置するのに必要な数のスペースを挿入する。そして
、スペースを挿入した文書データを印刷バッファ15に
格納する。
For example, when the document data includes the character string "Ki", attribute data "Centering" is read from the layout dictionary memory 13. CPU12
performs line editing processing to place the character string ``Ki'' in the center of the line based on the attribute data ``centering.'' That is, the number of spaces necessary to place the character string "Ki" in the center of the line is inserted from the beginning of the line to the character "Ki". Then, the document data with spaces inserted is stored in the print buffer 15.

【0016】同様に、文書データに「以上」という文字
列があった場合、レイアウト辞書メモリ13から「右寄
せ」という属性データが読み出される。CPU12は、
属性データ「右寄せ」に基づいて、文字列「以上」を行
末に配置するための行編集処理を実行する。即ち、行頭
から「以上」の文字まで、文字列「以上」を行末に配置
するのに必要な数のスペースを挿入する。そして、スペ
ースを挿入した文書データを印刷バッファ15に格納す
る。
Similarly, when the document data includes the character string "more than", the attribute data "right alignment" is read from the layout dictionary memory 13. The CPU 12 is
Based on the attribute data "right alignment", execute line editing processing to place the character string "greater than or equal to" at the end of the line. That is, the number of spaces required to place the character string "or more" at the end of the line is inserted from the beginning of the line to the character "or more". Then, the document data with spaces inserted is stored in the print buffer 15.

【0017】このようにして、文書データを印刷する際
に、文書メモリ16に記憶されている文字列を、レイア
ウト辞書メモリ13に記憶されている文字列と比較して
、該当する文字列があった場合には、その文字列に設定
された属性データに従って行単位に編集を行なう。
In this manner, when printing document data, the character strings stored in the document memory 16 are compared with the character strings stored in the layout dictionary memory 13 to determine if there is a corresponding character string. If so, edit is performed line by line according to the attribute data set for that character string.

【0018】なお、上記実施例では任意の文字列と属性
データとを予め設定モードで入力して記憶するようにし
たが、これに限らず、文書入力時に、文字列に対して設
定された属性データを自動的に学習し、学習された属性
データを文字列と共に、レイアウト辞書メモリ13に記
憶するようにしてもよい。
[0018] In the above embodiment, an arbitrary character string and attribute data are inputted in advance in the setting mode and stored, but the present invention is not limited to this. The data may be automatically learned and the learned attribute data may be stored in the layout dictionary memory 13 together with the character string.

【0019】また、上記実施例では文書データの印刷の
際に、文書メモリ16の文字列とレイアウト辞書メモリ
13の文字列とを比較したが、これに限らず、文書入力
時に、レイアウト辞書メモリ13の文字列を自動的に参
照し、文字列の配置を編集するようにしてもよい。
Further, in the above embodiment, when printing document data, the character strings in the document memory 16 and the character strings in the layout dictionary memory 13 are compared, but the present invention is not limited to this. It may be possible to automatically refer to the character strings and edit the arrangement of the character strings.

【0020】[0020]

【発明の効果】この発明によれば、文字列に対応して文
字列の行内における配置位置を示す行編集情報を記憶す
るレイアウト辞書メモリを設け、この行編集情報に基づ
いて文字列の配置位置を自動的に設定するようにしたの
で、慣用的に行内の位置が決まっている文字列に対する
編集を自動的に行なうことができる。
According to the present invention, a layout dictionary memory is provided which stores line editing information indicating the arrangement position of the character string in a line corresponding to the character string, and the arrangement position of the character string is determined based on the line editing information. Since it is set automatically, it is possible to automatically edit a character string whose position within a line is conventionally determined.

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

【図1】本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.

【図2】回路構成を示すブロック図である。FIG. 2 is a block diagram showing a circuit configuration.

【符号の説明】[Explanation of symbols]

1…レイアウト辞書メモリ 2…比較手段 3…行編集手段 11…キー入力部 12…CPU 13…レイアウト辞書メモリ 14…書式メモリ 15…印刷バッファ 16…文書メモリ 17…表示部 18…印字部 1...Layout dictionary memory 2...Comparison means 3...Line editing means 11...Key input section 12...CPU 13...Layout dictionary memory 14...Format memory 15...Print buffer 16...Document memory 17...Display section 18...Printing section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】任意の文字列に対応して任意の行編集情報
を記憶するレイアウト辞書メモリと、文書メモリに記憶
された文字列と上記レイアウト辞書メモリに記憶された
文字列とを比較する比較手段と、この比較手段が両文字
列の一致を検出したときレイアウト辞書メモリに記憶さ
れた文字列に対応する行編集情報に基づいて上記文書メ
モリの文字列を行単位に編集する行編集手段とを具備し
たことを特徴とする文書処理装置。
1. A layout dictionary memory that stores arbitrary line editing information corresponding to an arbitrary character string, and a comparison that compares the character string stored in the document memory with the character string stored in the layout dictionary memory. means, and line editing means for editing the character string in the document memory line by line based on line editing information corresponding to the character string stored in the layout dictionary memory when the comparing means detects a match between the two character strings. A document processing device comprising:
JP3090263A 1991-04-22 1991-04-22 Document processor Pending JPH04321165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3090263A JPH04321165A (en) 1991-04-22 1991-04-22 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3090263A JPH04321165A (en) 1991-04-22 1991-04-22 Document processor

Publications (1)

Publication Number Publication Date
JPH04321165A true JPH04321165A (en) 1992-11-11

Family

ID=13993618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3090263A Pending JPH04321165A (en) 1991-04-22 1991-04-22 Document processor

Country Status (1)

Country Link
JP (1) JPH04321165A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0581242A (en) * 1991-09-20 1993-04-02 Casio Comput Co Ltd Layout editor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0581242A (en) * 1991-09-20 1993-04-02 Casio Comput Co Ltd Layout editor

Similar Documents

Publication Publication Date Title
JPS627592B2 (en)
JPH04321165A (en) Document processor
CA1168375A (en) Keystroke mismatch correction
JPS61233832A (en) Proofreading device
JP3037776B2 (en) Term decomposition device
JPS58103023A (en) Field input system for display terminal
JPH027100B2 (en)
JPS6057382A (en) Character processor
JPH0524999Y2 (en)
JP3147947B2 (en) Machine translation equipment
JP3646404B2 (en) Document creation device
JPH08161308A (en) Document processor
JPS62269272A (en) Editing system of image data and japanese character data
JPH067374B2 (en) Information processing apparatus and method
JPH06293160A (en) Terminal printer
JPH0373894B2 (en)
JPH03282688A (en) Mark sheet paper output system
JPH0253145A (en) Automatic test controlling system
JPS62246769A (en) Printing interruption display and control system
JPH0687236B2 (en) Mechanism for selecting homonyms in word processors
JPS6320621A (en) Editing printer
JPH04336313A (en) Auxiliary information display system
JPH0589124A (en) Document preparing device
JPS63104867A (en) Tab setting system
JPS63250735A (en) Image output device