JPH0816574A - Document processing device - Google Patents
Document processing deviceInfo
- Publication number
- JPH0816574A JPH0816574A JP6143048A JP14304894A JPH0816574A JP H0816574 A JPH0816574 A JP H0816574A JP 6143048 A JP6143048 A JP 6143048A JP 14304894 A JP14304894 A JP 14304894A JP H0816574 A JPH0816574 A JP H0816574A
- Authority
- JP
- Japan
- Prior art keywords
- character
- input
- decoration information
- document
- decoration
- 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.)
- Granted
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【目的】入力する文字の前後の装飾情報が異なる場合で
は、新しい文字の入力に装飾情報を付加する。
【構成】本発明のシステムは、制御部2に文字入力や印
刷などの動作指示を与えるためのキーボード1と、プロ
グラムメモリ3に格納されているプログラムによって動
作し、キーボード1からの文字入力、表示制御、印刷制
御等を行う制御部(CPU)2と、制御部2に与えるプ
ログラムを格納しているプログラムメモリ3と、プログ
ラムを動作する際に、変数等を格納、読み出しするため
のDATA記憶メモリ4と、作成中の文書等を表示する表示
部5と、サーマルヘッドプリンター等を用いた、文書を
印刷する印刷部6と、作成した文書データ等を記憶する
外部記憶部7とから構成される。
(57) [Summary] [Purpose] When the decoration information before and after the input character is different, the decoration information is added to the input of a new character. A system according to the present invention operates by a keyboard 1 for giving operation instructions such as character input and printing to a control unit 2 and a program stored in a program memory 3 to input and display characters from the keyboard 1. A control unit (CPU) 2 that performs control, print control, and the like, a program memory 3 that stores a program to be given to the control unit 2, and a DATA storage memory that stores and reads variables and the like when operating the program. 4, a display unit 5 for displaying a document or the like being created, a printing unit 6 for printing the document using a thermal head printer or the like, and an external storage unit 7 for storing the created document data or the like. .
Description
【0001】[0001]
【産業上の利用分野】本発明は、日本語ワードプロセッ
サなどの文書を作成、編集する文書処理装置に関するも
のである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing device for creating and editing documents such as a Japanese word processor.
【0002】[0002]
【従来の技術】従来技術としては、特開昭63−672
15号公報に記載されたものがある。従来技術では、新
たに入力する文字の前後の装飾情報が一致した場合にの
み該文字に同一の装飾情報を付加するものである。2. Description of the Related Art As a conventional technique, Japanese Patent Laid-Open No. 63-672 is known.
There is one described in Japanese Patent Laid-Open No. 15. In the conventional technique, the same decoration information is added to a character to be newly input only when the decoration information before and after the character matches.
【0003】[0003]
【発明が解決しようとする課題】上記のように、作成さ
れた文書に新たな文字を入力する場合、従来技術では入
力する文字の前後の装飾情報が一致する場合に該文字に
同一の装飾情報を付加することしかできなかった。つま
り、入力する文字の前後の装飾情報が異なる場合では、
新しい文字の入力に装飾情報を付加することは不可能で
あり、文字入力とは独立した装飾情報の入力操作を行わ
なければならなかった。As described above, when a new character is input to a created document, in the prior art, when the decoration information before and after the input character is the same, the same decoration information is added to the character. Could only be added. In other words, if the decoration information before and after the input character is different,
Since it is impossible to add decoration information to the input of a new character, the input operation of the decoration information has to be performed independently of the character input.
【0004】[0004]
【課題を解決するための手段】本発明は、上記課題の解
決を目的としてなされたもので、請求項1記載の発明で
は、文書中の文字と該文字に付加された各種の装飾情報
とを記憶する文書処理装置において、作成された文書に
新たな文字を入力する入力手段と、装飾情報を付加する
場合に、文書中の参照すべき文字の位置を設定する設定
手段と、前記入力手段にて新たに入力される文字の入力
位置の前後に位置する文字の装飾情報が一致するか否か
を判断する判断手段と、前記判断手段にて前後に位置す
る文字の装飾情報が一致すると判断された場合は、前記
入力手段にて入力された新たな文字に前後に位置する文
字と同一の装飾情報を付加する一方、前記判断手段にて
前後に位置する文字の装飾情報が一致しないと判断され
た場合は、前記入力手段にて入力された新たな文字に前
記設定手段にて設定された位置の文字の装飾情報を参照
して装飾情報を付加する装飾情報付加手段とを具備する
ことを特徴とするものである。SUMMARY OF THE INVENTION The present invention has been made for the purpose of solving the above problems. In the invention of claim 1, a character in a document and various decorative information added to the character are displayed. In a document processing apparatus for storing, input means for inputting new characters to a created document, setting means for setting the position of a character to be referred to in the document when adding decoration information, and the input means Determination means for determining whether or not the decoration information of the characters located before and after the input position of the newly input character coincides with the decoration information of the characters located before and after the determination means. If the new character input by the input means is added with the same decoration information as the character positioned before and after, the judgment means determines that the decoration information of the character positioned before and after does not match. If you It is characterized in that it comprises a decorative information adding means for referring to the decoration information of the character of the position set by the setting means to the new characters entered to add decoration information by means.
【0005】また、請求項2記載の発明では、文書中の
文字と該文字に付加された各種の装飾情報とを記憶する
文書処理装置において、作成された文書に新たな文字を
入力する入力手段と、前記入力手段にて新たに入力され
る文字の入力位置の前又は後に位置するコードが特定コ
ードであるか否かを判断する判断手段と、前記判断手段
にて入力位置の前又は後に位置するコードが特定コード
であると判断された場合は、前記入力手段にて入力され
た新たな文字に入力位置の後ろ又は前に位置する文字と
同一の装飾情報を付加する装飾情報付加手段とを具備す
ることを特徴とするものであり、更に、請求項3記載の
発明では、前記特定コードとは、改行、改頁、句点、読
点、カッコ、スペースの文字列の区切りを表すコードで
あることを特徴とするものである。According to the second aspect of the invention, in the document processing apparatus for storing the character in the document and the various decoration information added to the character, the input means for inputting a new character into the created document. And a judgment means for judging whether or not the code positioned before or after the input position of the character newly input by the input means is a specific code, and the position before or after the input position by the judgment means. If it is determined that the code to be applied is a specific code, a decoration information adding unit that adds the same decoration information as the character positioned after or before the input position to the new character input by the input unit is used. Further, in the invention according to claim 3, the specific code is a code indicating a delimiter of a character string of a line feed, a page break, a punctuation mark, a punctuation mark, a parenthesis, and a space. Featuring Is shall.
【0006】また、請求項4記載の発明では、前記請求
項1及び2記載の発明において、前記入力手段にて入力
される文字に装飾情報を付加するか否かを予め設定でき
ることを特徴とするものである。Further, the invention according to claim 4 is characterized in that, in the invention according to claims 1 and 2, whether or not the decoration information is added to the character input by the input means can be set in advance. It is a thing.
【0007】[0007]
【作用】本発明において、請求項1記載の発明では、判
断手段にて前後に位置する文字の装飾情報が一致すると
判断された場合は、入力手段にて入力された新たな文字
に前後に位置する文字と同一の装飾情報を付加する一
方、判断手段にて前後に位置する文字の装飾情報が一致
しないと判断された場合は、入力手段にて入力された新
たな文字に設定手段にて設定された位置の文字の装飾情
報を参照して装飾情報を付加するものである。In the present invention, according to the first aspect of the invention, when the determining means determines that the decoration information of the character positioned before and after the character is identical, the character is positioned before and after the new character input by the input means. While the same decoration information as the character to be added is added, but the judgment means determines that the decoration information of the characters located before and after does not match, the setting means sets the new character input by the input means. The decoration information is added by referring to the decoration information of the character at the specified position.
【0008】また、請求項2記載の発明では、判断手段
にて入力位置の前又は後に位置するコードが特定コード
であると判断された場合は、入力手段にて入力された新
たな文字に入力位置の後ろ又は前に位置する文字と同一
の装飾情報を付加するものであり、更に、請求項3記載
の発明では、前記特定コードとは、改行、改頁、句点、
読点、カッコ、スペースの文字列の区切りを表すコード
である。Further, in the invention according to claim 2, when the judging means judges that the code located before or after the input position is the specific code, the new character is inputted by the input means. The same decoration information as that of the character positioned after or before the position is added, and in the invention according to claim 3, the specific code is a line feed, a page break, a point,
It is a code that represents the delimiter of a string of punctuation marks, parentheses, and spaces.
【0009】また、請求項4記載の発明では、前記請求
項1及び2記載の発明において、前記入力手段にて入力
される文字に装飾情報を付加するか否かを予め設定でき
るものである。Further, in the invention described in claim 4, in the invention described in claims 1 and 2, whether or not the decoration information is added to the character input by the input means can be set in advance.
【0010】[0010]
【実施例】図1は本発明のシステムブロック図である。
図2は文字バッファーの記憶例を示す図である。図3は
ワークエリアを示す図である。図4は装飾モードフラグ
設定の処理のフローチャート図である。図5は装飾情報
自動付加フラグ設定の処理のフローチャート図である。
図6は本発明の処理を説明するための入力例を示す図で
ある。図7は特定コードテーブルを示す図である。図8
は本発明の処理を説明するための入力例を示す図であ
る。図9は本発明の処理のフローチャート図である。図
10は本発明の文字列入力位置の状態判別の処理のフロ
ーチャート図である。図11は本発明の文字列中の処理
のフローチャート図である。図12は本発明の文字列直
後の処理のフローチャート図である。図13は本発明の
文字列直前の処理のフローチャート図である。1 is a system block diagram of the present invention.
FIG. 2 is a diagram showing a storage example of the character buffer. FIG. 3 is a diagram showing a work area. FIG. 4 is a flowchart of the processing for setting the decoration mode flag. FIG. 5 is a flowchart of the processing for setting the decoration information automatic addition flag.
FIG. 6 is a diagram showing an input example for explaining the process of the present invention. FIG. 7 is a diagram showing a specific code table. FIG.
FIG. 6 is a diagram showing an input example for explaining the processing of the present invention. FIG. 9 is a flowchart of the process of the present invention. FIG. 10 is a flow chart of the process for determining the state of the character string input position according to the present invention. FIG. 11 is a flowchart of the processing in the character string of the present invention. FIG. 12 is a flowchart of the processing immediately after the character string of the present invention. FIG. 13 is a flowchart of the process immediately before the character string of the present invention.
【0011】図1において、本発明のシステムは、制御
部2に文字入力や印刷などの動作指示を与えるためのキ
ーボード1と、プログラムメモリ3に格納されているプ
ログラムによって動作し、キーボード1からの文字入
力、表示制御、印刷制御等を行う制御部(CPU)2
と、ROMやRAMを用いた、制御部2に与えるプログ
ラムを格納しているプログラムメモリ3と、RAMを用
いた、プログラムを動作する際に、変数等を格納、読み
出しするためのDATA記憶メモリ4と、CRTやLCDを
用いた、作成中の文書等を表示する表示部5と、サーマ
ルヘッドプリンター等を用いた、文書を印刷する印刷部
6と、フロッピーディスク等を用いた、作成した文書デ
ータ等を記憶する外部記憶部7とから構成される。In FIG. 1, the system of the present invention operates by a keyboard 1 for giving an operation instruction such as character input and printing to the control unit 2 and a program stored in a program memory 3, Control unit (CPU) 2 that performs character input, display control, print control, etc.
And a program memory 3 that uses a ROM or a RAM to store a program to be given to the control unit 2, and a DATA storage memory 4 that uses a RAM to store and read variables when operating the program. And a display unit 5 for displaying a document being created using a CRT or LCD, a printing unit 6 for printing a document using a thermal head printer, etc., and created document data using a floppy disk or the like. And the like, and an external storage unit 7 for storing such information.
【0012】本発明で述べる装飾情報とは、文字サイズ
・下線・網掛け・斜体・書体等が挙げられる。これらの
装飾情報は外部記憶部7などの文字バッファー内に、付
加する文字コードと共に装飾コードとして記憶される。
図2に文字バッファーを示すが、文字コードは2バイト
で表され、その前に1バイトの装飾情報バイトを設け
て、その各ビットの状態により対応する文字の装飾情報
を記憶する。The decoration information described in the present invention includes character size, underline, halftone, italic, typeface and the like. The decoration information is stored as a decoration code in the character buffer such as the external storage unit 7 together with the character code to be added.
The character buffer is shown in FIG. 2, and the character code is represented by 2 bytes, and a decoration information byte of 1 byte is provided in front of the character code and the decoration information of the corresponding character is stored according to the state of each bit.
【0013】本発明では、上記の文字バッファーに記憶
された文書に新たな文字を入力した場合に、自動的に装
飾情報を付加しようとするものであるが、本発明では、
DATA記憶メモリ4内のワークエリアに装飾モードフラグ
を設け、文書中の参照すべき文字の位置を設定できるよ
うになっている。また、ワークエリアに装飾情報自動付
加フラグを設け、入力される文字に自動的に装飾情報を
付加するか否かを設定できるようになっている。ワーク
エリアの記憶例を図3に示す。In the present invention, decoration information is automatically added when a new character is input to the document stored in the character buffer. However, in the present invention,
A decoration mode flag is provided in the work area in the DATA storage memory 4 so that the position of the character to be referred to in the document can be set. Further, a decoration information automatic addition flag is provided in the work area so that whether or not the decoration information is automatically added to the input character can be set. A storage example of the work area is shown in FIG.
【0014】次に、上記装飾モードフラグの設定処理に
ついて、図4のフローチャート図を用いて説明する。本
実施例では、装飾モードとして、前後に位置する文字と
同一の装飾情報を付加する全方向一致と、前に位置する
文字と同一の装飾情報を付加する前方向一致と、後ろに
位置する文字と同一の装飾情報を付加する後方向一致と
の3つのモードが設定できるようになっている。まず、
操作者が所望の装飾モードを入力すると(ステップS4
1)、入力された装飾モードがなんであるかが判定され
(ステップS42)、全方向一致であれば装飾モードフ
ラグを全方向一致に設定し(ステップS43)、前方向
一致であれば装飾モードフラグを前方向一致に設定し
(ステップS44)、後方向一致であれば装飾モードフ
フラグを後方向一致に設定する(ステップS45)。Next, the setting process of the decoration mode flag will be described with reference to the flowchart of FIG. In the present embodiment, as the decoration mode, an omnidirectional match that adds the same decoration information as a character positioned before and after, a forward match that adds the same decoration information as a character positioned before, and a character positioned after It is possible to set three modes of backward matching in which the same decoration information is added. First,
When the operator inputs a desired decoration mode (step S4)
1) It is determined what the input decoration mode is (step S42). If it is omnidirectional, the decoration mode flag is set to omnidirectional match (step S43). If it is forward matching, the decoration mode flag is set. Is set to match in the forward direction (step S44), and if it matches in the backward direction, the decoration mode flag is set to match in the backward direction (step S45).
【0015】また、上記装飾情報自動付加フラグの設定
処理について、図5のフローチャート図を用いて説明す
る。操作者は装飾情報を自動付加するかしないかの入力
を行う、つまり装飾情報自動付加モードの入力を行うと
(ステップS51)、入力された装飾情報自動付加モー
ドが判定され(ステップS52)、自動付加がONされ
たならば装飾情報自動付加フラグを自動付加に設定し
(ステップS53)、自動付加がONされなければ装飾
情報自動付加フラグを自動付加しないように設定する
(ステップS54)。実際の処理では、文字が入力され
装飾情報を付加する処理を実行する前に、装飾情報自動
付加フラグを参照して、装飾情報を自動付加するか否か
の選択を行えるようにするものである。The setting process of the decoration information automatic addition flag will be described with reference to the flowchart of FIG. When the operator inputs whether or not the decoration information is automatically added, that is, when the decoration information automatic addition mode is input (step S51), the input decoration information automatic addition mode is determined (step S52), and If the addition is turned on, the decoration information automatic addition flag is set to automatic addition (step S53). If the addition is not turned on, the decoration information automatic addition flag is set not to be automatically added (step S54). In the actual process, before the process of adding characters and adding decoration information is performed, it is possible to refer to the decoration information automatic addition flag to select whether or not to automatically add decoration information. .
【0016】以下、具体例を挙げて本発明について説明
する。図6の(a)のように、例えば、文字列“あいう
お”(装飾情報「4倍角」)の入力位置Aに新たに文字
“え”を入力すると、前後に位置する文字“う”と
“お”は同一の装飾情報「4倍角」が付加されているた
め、新たに入力した文字“え”にも自動的に装飾情報
「4倍角」が付加される。これは従来も同様である。The present invention will be described below with reference to specific examples. As shown in FIG. 6A, for example, when a new character "e" is input at the input position A of the character string "Aoi" (decoration information "quadruple-width"), the characters "u" located before and after are input. Since the same decoration information "quadruple-width" is added to "O", the decoration information "quadruple-width" is automatically added to the newly input character "e". This is also the case in the past.
【0017】本発明では、図6の(b)の例のように、
入力位置の前後で装飾情報が異なる場合についても自動
的に装飾情報を付加しようとするものである。図6の
(b)の例では、文字列“1234”(装飾情報「4倍
角/ゴシック体」)と文字列“あいうえ”(装飾情報
「網掛け/ゴシック体」)との文字列の間に文字“*”
を入力する処理である。このように入力位置の前後で装
飾情報が異なる場合は、上述した図3の装飾モードフラ
グの設定内容に応じて装飾情報の自動付加処理を行う。
装飾モードフラグが前方向一致に設定されている場合
は、文字“*”に入力位置の前に位置する文字“4”と
同一の装飾情報「4倍角/ゴシック体」を付加する。
装飾モードフラグが後方向一致に設定されている場合
は、文字“*”に入力位置の後に位置する文字“あ”と
同一の装飾情報「網掛け/ゴシック体」を付加する。ま
た、装飾モードフラグが全方向一致に設定されている
場合は、文字“*”に入力位置の前後に位置する文字
“4”と“あ”との部分的に同一の装飾情報「ゴシック
体」を付加する。この場合に部分的にも同一の装飾情報
がない場合は入力された文字に装飾情報を付加しない。
図6の(a)の例で述べた装飾情報の同一とは完全に入
力位置の前後の装飾情報が同一の場合である。In the present invention, as in the example of FIG.
Even when the decoration information is different before and after the input position, the decoration information is automatically added. In the example of FIG. 6B, between the character string “1234” (decoration information “quadruple angle / Gothic type”) and the character string “aiue” (decoration information “shaded / Gothic type”) Character "*"
Is a process of inputting. When the decoration information is different before and after the input position as described above, the decoration information is automatically added according to the setting content of the decoration mode flag in FIG. 3 described above.
When the decoration mode flag is set to match in the forward direction, the same decoration information “quadruple angle / Gothic type” as the character “4” located before the input position is added to the character “*”.
When the decoration mode flag is set to match in the backward direction, the same decoration information "shaded / Gothic" as the character "a" located after the input position is added to the character "*". When the decoration mode flag is set to be omnidirectional, the decoration information “Gothic”, which is the character “*” and the characters “4” and “a” located before and after the input position, is partially the same. Is added. In this case, if the same decoration information does not exist even partially, the decoration information is not added to the input character.
The same decoration information described in the example of FIG. 6A is a case where the decoration information before and after the input position is completely the same.
【0018】また、本発明では、文字列の区切りを判断
して、自動的に装飾情報を付加する。本発明では、図7
に示すように、文字列の区切りを表すコードとして特定
コードをプログラムメモリ3内の特定コードテーブルに
記憶している。ここで、特定コードとは、改行コード、
改頁コード、句点コード、読点コード、丸カッココー
ド、大カッココード等である。Further, in the present invention, the delimiter of the character string is determined and the decoration information is automatically added. In the present invention, FIG.
As shown in FIG. 5, a specific code is stored in the specific code table in the program memory 3 as a code representing the delimiter of the character string. Here, the specific code is a line feed code,
The page break code, the punctuation mark code, the reading mark code, the parentheses code, the brackets code and the like.
【0019】以下、図8の具体例にて説明する。ここで
は、文字列“あいうえお(装飾情報「倍角」)、かきく
けこ(装飾情報「アンダーライン」)”に新たに文字
“☆”を入力する例を示す。入力位置Bに文字“☆”
を入力すると、後に位置するコードが図7の特定コード
テーブルに記憶された読点コードであるので、文字
“☆”は、前に位置する文字“お”と同一の装飾情報
「倍角」を付加する。また、入力位置Cに文字“☆”
を入力すると、前に位置するコードが図7の特定コード
テーブルに記憶された読点コードであるので、文字
“☆”は、後に位置する文字“か”と同一の装飾情報
「アンダーライン」を付加する。A specific example of FIG. 8 will be described below. Here, an example is shown in which a new character "☆" is input to the character strings "Aiueo (decoration information" double-width ") and oysters" (decoration information "underline").
When the character is input, the code located after is the reading code stored in the specific code table of FIG. 7, so that the character “☆” is added with the decoration information “double angle” which is the same as the character located in front. . In addition, the character "☆" is displayed at the input position C.
If you enter, the preceding code is the reading code stored in the specific code table in FIG. 7, so the character “☆” is added with the decoration information “underline” that is the same as the following character “ka”. To do.
【0020】以下、図9〜13のフローチャート図をも
とに本発明の処理について詳細に説明する。図9におい
て、まず、カーソルの移動により入力位置を決定する
(ステップS1)。次に、これから入力する文字に装飾
情報の自動付加処理を行うか否かを図3の装飾情報自動
付加フラグから判断し、装飾情報を自動付加しない(N
O)ように設定されていれば、ステップS10に進み、
入力された文字のみを記憶する(ステップS10)。一
方、装飾情報を自動付加する(YES)ように設定され
ていれば、決定された入力位置に対応する場所の装飾情
報コードの格納位置を計算する(ステップS3)。カー
ソルの移動により指定された入力位置に文字を入力する
と(ステップS4)、ステップS3で計算した格納位置
から入力位置前後の装飾情報を読み出す(ステップS
5)。次に、文字の入力位置がどのような位置であるか
を判断する(ステップS6)。文字列中であればステッ
プS7に進み、文字列直後であればステップS8に進
み、文字列直前であればステップS9に進む。そして、
入力された文字コードと装飾情報コードとを記憶する
(ステップS10)。The process of the present invention will be described in detail below with reference to the flow charts of FIGS. In FIG. 9, first, the input position is determined by moving the cursor (step S1). Next, it is judged from the decoration information automatic addition flag of FIG. 3 whether or not the decoration information is automatically added to the character to be inputted, and the decoration information is not automatically added (N
If it is set as O), the process proceeds to step S10,
Only the input characters are stored (step S10). On the other hand, if the decoration information is set to be automatically added (YES), the storage position of the decoration information code of the place corresponding to the determined input position is calculated (step S3). When a character is input to the input position designated by moving the cursor (step S4), the decoration information before and after the input position is read from the storage position calculated in step S3 (step S4).
5). Next, it is determined what position the character input position is (step S6). If it is in the character string, the process proceeds to step S7. If it is immediately after the character string, the process proceeds to step S8. If it is immediately before the character string, the process proceeds to step S9. And
The input character code and decoration information code are stored (step S10).
【0021】上記ステップS6の処理を図10のフロー
チャート図により詳細に説明する。ステップS61にお
いて、前の文字に装飾情報が付加されているか否かを判
断し、ステップS62及び63において、後の文字に装
飾情報が付加されている否か判断して、前後の文字に装
飾情報が付加されている場合はステップS64に進み、
文字列中のフラグをセットする。また、前の文字のみに
装飾情報が付加されている場合はステップS65に進
み、文字列直後のフラグをセットする。また、後の文字
のみに装飾情報が付加されている場合はステップS66
に進み、文字列直前のフラグをセットする。また、前後
の文字に装飾情報が付加されていない場合はステップS
67に進み、装飾なしフラグをセットする。The process of step S6 will be described in detail with reference to the flowchart of FIG. In step S61, it is determined whether or not the decoration information is added to the preceding character, and in steps S62 and 63, it is determined whether or not the decoration information is added to the subsequent character, and the decoration information is added to the preceding and succeeding characters. If is added, the process proceeds to step S64.
Set the flags in the string. If the decoration information is added only to the previous character, the process proceeds to step S65, and the flag immediately after the character string is set. If the decoration information is added only to the subsequent character, step S66.
Go to and set the flag just before the string. If the decoration information is not added to the characters before and after, step S
Proceeding to 67, the no decoration flag is set.
【0022】次に、上記ステップS7の処理を図11の
フローチャート図により詳細に説明する。まず、前後の
装飾情報が全て一致するか否かを判断し(ステップS7
1)、一致すれば(YES)、その装飾情報を付加する
(ステップS72)。一方、一致しない場合は(N
O)、全方向/前方向/後方向一致の設定状態を図3の
装飾モードフラグから判断する(ステップS73)。前
方向一致が設定されていれば、1文字前の装飾情報を付
加する(ステップS74)。また、後方向一致が設定さ
れていれば、1文字後の装飾情報を付加する(ステップ
S75)。また、全方向一致が設定されていれば、前後
の装飾情報に一致するものがあるか否かを判断し(ステ
ップS76)、あれば一致する装飾情報を付加する(ス
テップS77)。なければ装飾情報を付加しない。Next, the process of step S7 will be described in detail with reference to the flowchart of FIG. First, it is determined whether or not the decoration information before and after is the same (step S7).
1) If they match (YES), the decoration information is added (step S72). On the other hand, if they do not match (N
O), the setting state of omnidirectional / forward / backward matching is determined from the decoration mode flag in FIG. 3 (step S73). If the forward matching is set, the decoration information of one character before is added (step S74). If backward matching is set, decoration information after one character is added (step S75). If omnidirectional matching is set, it is determined whether or not there is matching decorative information before and after (step S76), and if there is matching decorative information, the matching decorative information is added (step S77). If not, the decoration information is not added.
【0023】更に、上記ステップS8の処理を図12の
フローチャート図により詳細に説明する。1文字後ろが
特定コードか否かを判断し(ステップS81)、特定コ
ードであれば(YES)、1文字前の装飾情報を付加す
る。一方特定コードでなければ(NO)、装飾情報を付
加しない(ステップS82)。また、上記ステップS9
の処理を図13のフローチャート図により詳細に説明す
る。1文字前が特定コードか否かを判断し(ステップS
91)、特定コードであれば(YES)、1文字後の装
飾情報を付加する。一方特定コードでなければ(N
O)、装飾情報を付加しない(ステップS92)。Further, the processing of step S8 will be described in detail with reference to the flowchart of FIG. It is determined whether or not one character behind is the specific code (step S81), and if it is the specific code (YES), the decoration information one character before is added. On the other hand, if it is not the specific code (NO), the decoration information is not added (step S82). In addition, the above step S9
The process will be described in detail with reference to the flowchart of FIG. It is determined whether or not the preceding character is a specific code (step S
91), if it is a specific code (YES), the decoration information after one character is added. On the other hand, if it is not a specific code (N
O), decoration information is not added (step S92).
【0024】[0024]
【発明の効果】本発明において、請求項1記載の発明に
よれば、判断手段にて前後に位置する文字の装飾情報が
一致すると判断された場合は、入力手段にて入力された
新たな文字に前後に位置する文字と同一の装飾情報を付
加する一方、判断手段にて前後に位置する文字の装飾情
報が一致しないと判断された場合は、入力手段にて入力
された新たな文字に設定手段にて設定された位置の文字
の装飾情報を参照して装飾情報を付加するので、前後に
位置する文字の装飾情報が異なる場合でも、文字入力と
は独立した装飾情報の入力操作無く、設定手段にて設定
された位置の文字の装飾情報を参照して装飾情報を付加
することが可能となるだけでなく、参照すべき文字の位
置を操作状況に合わせて設定することができ、操作性が
向上し、使いがってのよい装置を提供できる。According to the present invention, when the judging means judges that the decoration information of the characters located before and after the character coincides with each other, the new character inputted by the inputting means is inputted. While the same decoration information as the characters located before and after is added to, when the judgment information determines that the decoration information of the characters located before and after does not match, it is set to the new character input by the input means. Since the decoration information is added by referring to the decoration information of the character at the position set by the means, even if the decoration information of the characters located before and after the character is different, the setting can be performed without inputting the decoration information independent of the character input. It is possible not only to add the decoration information by referring to the decoration information of the character at the position set by the means, but also to set the position of the character to be referred to in accordance with the operation situation, thus improving the operability. Improved and easy to use It is possible to provide a good system.
【0025】また、請求項2記載の発明によれば、判断
手段にて入力位置の前又は後に位置するコードが特定コ
ードであると判断された場合は、入力手段にて入力され
た新たな文字に入力位置の後又は前に位置する文字と同
一の装飾情報を付加するので、前後に位置する文字の装
飾情報が異なる場合でも、文字入力とは独立した装飾情
報の入力操作無く、装飾情報を付加することができ、操
作性が向上し、使いがってのよい装置を提供できる。更
に、請求項3記載の発明では、前記特定コードとは、改
行、改頁、句点、読点、カッコ、スペースの文字列の区
切りを表すコードとするので、文字列の区切りが簡単に
判断できるようになる。According to the second aspect of the invention, when the judging means judges that the code located before or after the input position is the specific code, the new character input by the input means is entered. Since the same decoration information as the character located after or in front of the input position is added to, even if the decoration information of the character located before and after is different, the decoration information can be displayed without inputting the decoration information independent of character input. A device that can be added, has improved operability, and is easy to use can be provided. Further, in the invention according to claim 3, since the specific code is a code indicating a character string delimiter of a line feed, a page break, a punctuation mark, a punctuation mark, a parenthesis, and a space, the character string delimiter can be easily determined. become.
【0026】また、請求項4記載の発明では、入力手段
にて入力される文字に装飾情報を付加するか否かを予め
設定できるので、操作状況に合わせて設定することがで
き、操作性が向上し、使いがってのよい装置を提供でき
る。Further, according to the invention of claim 4, whether or not the decoration information is added to the character input by the input means can be set in advance, so that it can be set according to the operation situation, and the operability is improved. An improved and user-friendly device can be provided.
【図1】本発明のシステムブロック図である。FIG. 1 is a system block diagram of the present invention.
【図2】文字バッファーの記憶例を示す図である。FIG. 2 is a diagram showing a storage example of a character buffer.
【図3】ワークエリアを示す図である。FIG. 3 is a diagram showing a work area.
【図4】装飾モードフラグ設定の処理のフローチャート
図である。FIG. 4 is a flowchart of a decoration mode flag setting process.
【図5】装飾情報自動付加フラグ設定の処理のフローチ
ャート図である。FIG. 5 is a flowchart of a process of setting a decoration information automatic addition flag.
【図6】本発明の処理を説明するための入力例を示す図
である。FIG. 6 is a diagram showing an input example for explaining a process of the present invention.
【図7】特定コードテーブルを示す図である。FIG. 7 is a diagram showing a specific code table.
【図8】本発明の処理を説明するための入力例を示す図
である。FIG. 8 is a diagram showing an input example for explaining the process of the present invention.
【図9】本発明の処理のフローチャート図である。FIG. 9 is a flowchart of the processing of the present invention.
【図10】本発明の文字列入力位置の状態判別の処理の
フローチャート図である。FIG. 10 is a flowchart of a process for determining a state of a character string input position according to the present invention.
【図11】本発明の文字列中の処理のフローチャート図
である。FIG. 11 is a flow chart of processing in a character string of the present invention.
【図12】本発明の文字列直後の処理のフローチャート
図である。FIG. 12 is a flowchart of processing immediately after a character string of the present invention.
【図13】本発明の文字列直前の処理のフローチャート
図である。FIG. 13 is a flowchart of the process immediately before the character string of the present invention.
1 キーボード 2 制御部 3 プログラムメモリ 4 DATA記憶メモリ 5 表示部 6 印刷部 7 外部記憶部 1 keyboard 2 control unit 3 program memory 4 DATA storage memory 5 display unit 6 printing unit 7 external storage unit
Claims (4)
の装飾情報とを記憶する文書処理装置において、 作成された文書に新たな文字を入力する入力手段と、 装飾情報を付加する場合に、文書中の参照すべき文字の
位置を設定する設定手段と、 前記入力手段にて新たに入力される文字の入力位置の前
後に位置する文字の装飾情報が一致するか否かを判断す
る判断手段と、 前記判断手段にて前後に位置する文字の装飾情報が一致
すると判断された場合は、前記入力手段にて入力された
新たな文字に前後に位置する文字と同一の装飾情報を付
加する一方、前記判断手段にて前後に位置する文字の装
飾情報が一致しないと判断された場合は、前記入力手段
にて入力された新たな文字に前記設定手段にて設定され
た位置の文字の装飾情報を参照して装飾情報を付加する
装飾情報付加手段とを具備することを特徴とする文書処
理装置。1. A document processing apparatus for storing characters in a document and various kinds of decoration information added to the characters, and inputting means for inputting new characters to the created document and adding decoration information. Further, it is determined whether or not the setting means for setting the position of the character to be referred to in the document and the decoration information of the character positioned before and after the input position of the character newly input by the input means match. When the determining means and the determining means determine that the decoration information of the characters located before and after the same match, the new character input by the input means adds the same decoration information as the characters located before and after the new character. On the other hand, when the determining means determines that the decoration information of the characters positioned before and after does not match, the new character input by the input means is replaced by the character at the position set by the setting means. Refer to the decoration information Document processing apparatus characterized by comprising a decorative information adding means for adding decoration information.
の装飾情報とを記憶する文書処理装置において、 作成された文書に新たな文字を入力する入力手段と、 前記入力手段にて新たに入力される文字の入力位置の前
又は後に位置するコードが特定コードであるか否かを判
断する判断手段と、 前記判断手段にて入力位置の前又は後に位置するコード
が特定コードであると判断された場合は、前記入力手段
にて入力された新たな文字に入力位置の後ろ又は前に位
置する文字と同一の装飾情報を付加する装飾情報付加手
段とを具備することを特徴とする文書処理装置。2. A document processing apparatus for storing a character in a document and various decoration information added to the character, an input unit for inputting a new character into a created document, and a new input unit for inputting the new character. Determination means for determining whether or not the code positioned before or after the input position of the character input to is a specific code, and the code positioned before or after the input position by the determination means is a specific code When judged, the document comprises decoration information adding means for adding to the new character input by the input means the same decoration information as the character positioned behind or in front of the input position. Processing equipment.
点、読点、カッコ、スペースの文字列の区切りを表すコ
ードであることを特徴とする請求項2記載の文書処理装
置。3. The document processing apparatus according to claim 2, wherein the specific code is a code indicating a delimiter of a character string of a line feed, a page break, a punctuation mark, a punctuation mark, a parenthesis, and a space.
情報を付加するか否かを予め設定できることを特徴とす
る請求項1又は請求項2記載の文書処理装置。4. The document processing apparatus according to claim 1, wherein whether or not the decoration information is added to the character input by the input means can be set in advance.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14304894A JP3402759B2 (en) | 1994-06-24 | 1994-06-24 | Document processing apparatus and document processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14304894A JP3402759B2 (en) | 1994-06-24 | 1994-06-24 | Document processing apparatus and document processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0816574A true JPH0816574A (en) | 1996-01-19 |
| JP3402759B2 JP3402759B2 (en) | 2003-05-06 |
Family
ID=15329700
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14304894A Expired - Lifetime JP3402759B2 (en) | 1994-06-24 | 1994-06-24 | Document processing apparatus and document processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3402759B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007220042A (en) * | 2006-02-20 | 2007-08-30 | Canon Inc | Information processing apparatus, control method therefor, and program |
-
1994
- 1994-06-24 JP JP14304894A patent/JP3402759B2/en not_active Expired - Lifetime
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007220042A (en) * | 2006-02-20 | 2007-08-30 | Canon Inc | Information processing apparatus, control method therefor, and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3402759B2 (en) | 2003-05-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0464314B2 (en) | ||
| EP0313399B1 (en) | Text processing apparatus | |
| JPS59135540A (en) | Printer control system for sentence processor | |
| JP3402759B2 (en) | Document processing apparatus and document processing method | |
| JP2584973B2 (en) | Recognition result output method in character recognition device | |
| JPH0616280B2 (en) | Document processor | |
| EP0284355A2 (en) | Document processing apparatus | |
| JPS5843034A (en) | Sentence edit processor | |
| JPS59201870A (en) | Printer | |
| JPH01229673A (en) | English and european writing printing control system | |
| JPH0749851A (en) | Document shaping device | |
| JPH0666066B2 (en) | Document processor with furigana addition function | |
| JPS62229464A (en) | Document processor | |
| JP2745546B2 (en) | Printer device | |
| JP2595399B2 (en) | Document processing method | |
| JPH0537315Y2 (en) | ||
| JPS63128419A (en) | Document preparing/editing device | |
| JPS605470B2 (en) | typesetting system | |
| JPH07282050A (en) | Document editing method and apparatus | |
| JPH0512271A (en) | Underline input device | |
| JPH0883269A (en) | Character string data output device | |
| JPH0573548A (en) | Document shaping device | |
| JPH08241304A (en) | Document processing device | |
| JPH08278963A (en) | Character data editing device | |
| JPS63293629A (en) | Data processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080229 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090228 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100228 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100228 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110228 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120229 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120229 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130228 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130228 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140228 Year of fee payment: 11 |
|
| EXPY | Cancellation because of completion of term |