JPH0481966A - Text preparing device - Google Patents
Text preparing deviceInfo
- Publication number
- JPH0481966A JPH0481966A JP2196793A JP19679390A JPH0481966A JP H0481966 A JPH0481966 A JP H0481966A JP 2196793 A JP2196793 A JP 2196793A JP 19679390 A JP19679390 A JP 19679390A JP H0481966 A JPH0481966 A JP H0481966A
- Authority
- JP
- Japan
- Prior art keywords
- parenthesis
- width
- closing
- text
- opening
- 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
- 238000006243 chemical reaction Methods 0.000 claims description 43
- 238000000034 method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はキーボード入力に従ってテキストを作成するテ
キスト作成装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a text creation device that creates text according to keyboard input.
従来のテキスト作成装置はキーボードから全角。 Conventional text creation devices are full-width from the keyboard.
半角の閉じ括弧が入力された場合、入力された全角、半
角の閉じ括弧をそのまま用いてテキストを作成している
。When a half-width closing parenthesis is input, text is created using the input full-width or half-width closing parenthesis as is.
上述したように、従来のテキスト作成装置は全角、半角
の閉じ括弧が入力された場合、入力された全角、半角の
閉じ括弧を用いてテキストを作成していたため、それと
対応する既に入力済みの開き括弧と全角、半角の一致が
とれない場合があるという問題があった。As mentioned above, when a full-width or half-width closing parenthesis is input, conventional text creation devices create text using the input full-width or half-width closing parenthesis. There was a problem in that parentheses and full-width and half-width characters sometimes did not match.
本発明の目的は開き括弧と閉じ括弧との全角。The object of the present invention is to make double-width opening and closing parentheses.
半角を常に一致させることができるテキスト作成装置を
提供することにある。To provide a text creation device that can always match half-width characters.
本発明は上記目的を達成するため、
キーボード入力に従ってテキストを作成するテキスト作
成装置に於いて、
前記キーボードから全角或いは半角の閉し括弧が入力さ
れることにより、作成中のテキストを検索して該閉じ括
弧と組になる開き括弧を探し出す括弧検索手段と、
該括弧検索手段で探し出された開き括弧が全角である場
合は該開き括弧と同一種類の全角の閉し括弧を出力し、
前記括弧検索手段で探し出された開き括弧が半角である
場合は該開き括弧と同一種類の半角の閉じ括弧を出力す
る括弧変換手段と、該括弧変換手段の出力及び前記キー
ボードからの入力に基づいてテキストを編集するテキス
ト編集手段とを設けたものである。In order to achieve the above object, the present invention provides a text creation device that creates text according to keyboard input, in which a full-width or half-width closing parenthesis is input from the keyboard to search the text being created and search for the corresponding text. a parenthesis search means for searching for an opening parenthesis to be paired with a closing parenthesis; if the opening parenthesis found by the parenthesis search means is full-width, outputting a full-width closing parenthesis of the same type as the opening parenthesis;
a parenthesis conversion means for outputting a half-width closing parenthesis of the same type as the opening parenthesis when the opening parenthesis found by the parenthesis search means is a half-width parenthesis; and a parenthesis conversion means for outputting a half-width closing parenthesis of the same type as the opening parenthesis; and text editing means for editing the text.
キーボードから全角或いは半角の閉じ括弧が入力される
と、括弧検索手段により入力された閉し括弧と組になる
既に入力済みの開き括弧が探し出される。そして、探し
出された開き括弧が全角である場合は、括弧変換手段か
ら探し出された開き括弧と同一種類の全角の閉じ括弧が
出力され、探し出された開き括弧が半角である場合は括
弧変換手段から探し出された開き括弧と同一種類の半角
の閉じ括弧が出力される。テキスト編集手段はキーボー
ドからの入力と括弧変換手段の出力とに基づいてテキス
トを編集する。When a full-width or half-width closing parenthesis is input from the keyboard, the parenthesis search means searches for an already input opening parenthesis to pair with the input closing parenthesis. If the opening parenthesis found is full-width, the parenthesis conversion means outputs a full-width closing parenthesis of the same type as the opening parenthesis found, and if the opening parenthesis found is half-width, the parenthesis is output. A half-width closing parenthesis of the same type as the opening parenthesis found by the conversion means is output. The text editing means edits the text based on the input from the keyboard and the output of the bracket conversion means.
次に本発明の実施例について図面を参照して詳細に説明
する。Next, embodiments of the present invention will be described in detail with reference to the drawings.
第1図は本発明の実施例のブロック図であり、文字、記
号、変換指示等の指示を入力するキーボード1と、かな
漢字変換等の変換処理を行なうかな漢字変換手段2と、
かな漢字変換手段2の出力及びキーボード1の出力に基
づいてテキスト40編集を行なうテキスト編集手段3と
、かな漢字変換手段2に入力された閉じ括弧の全角、半
角を入力された閉じ括弧と組になる既に入力済みの開き
括弧の全角、半角と一致させる括弧変換手段5と、テキ
スト4を検索してかな漢字変換手段2に入力された閉じ
括弧と組になる既に入力済みの開き括弧を探し出す括弧
検索手段6と、全角及び半角の開き括弧と全角及び半角
の閉じ括弧とが対応して登録されている括弧対応テーブ
ル7とから構成されている。FIG. 1 is a block diagram of an embodiment of the present invention, which includes a keyboard 1 for inputting instructions such as characters, symbols, conversion instructions, etc., a kana-kanji conversion means 2 for performing conversion processing such as kana-kanji conversion,
The text editing means 3 edits the text 40 based on the output of the kana-kanji conversion means 2 and the output of the keyboard 1, and the text editing means 3 edits the text 40 based on the output of the kana-kanji conversion means 2 and the output of the keyboard 1. A parenthesis conversion means 5 that matches full-width and half-width characters of an input open parenthesis, and a parenthesis search means 6 that searches the text 4 to find an already input open parenthesis that pairs with the closing parenthesis input to the kana-kanji conversion means 2. and a parenthesis correspondence table 7 in which full-width and half-width opening parentheses and full-width and half-width closing parentheses are registered in correspondence.
第2図は括弧変換手段5の処理例を示す流れ図、第3図
は括弧検索手段6の処理例を示す流れ図であり、以下各
図を参照して本実施例の動作を説明する。FIG. 2 is a flowchart showing an example of processing by the parenthesis conversion means 5, and FIG. 3 is a flowchart showing an example of processing by the parenthesis search means 6. The operation of this embodiment will be described below with reference to each figure.
かな漢字変換手段2はキーボード1から入力された文字
等を変換指示に従って漢字、半角文字等に変換し、変換
結果を括弧変換手段5に渡す、括弧変換手段5はかな漢
字変換手段2から変換結果が渡されると、第2図に示す
ように、括弧対応テーブル7を参照し、括弧対応テーブ
ル7の閉じ括弧の欄に変換結果対応のものが存在するか
否か、即ち、変換結果が閉じ括弧であるか否かを判断す
る(ステップSl)。そして、ステップS1で変換結果
が閉じ括弧対応のものでないと判断した場合はその処理
を終了し、変換結果が閉じ括弧対応のものであると判断
した場合は変換結果を渡して括弧検索手段6を呼び出す
(ステップS2)。The kana-kanji conversion means 2 converts the characters input from the keyboard 1 into kanji, half-width characters, etc. according to the conversion instructions, and passes the conversion results to the bracket conversion means 5. Then, as shown in FIG. 2, the parenthesis correspondence table 7 is referred to and it is determined whether there is a conversion result corresponding to the closing parenthesis column of the parenthesis correspondence table 7, that is, the conversion result is a closing parenthesis. It is determined whether or not (step Sl). If it is determined in step S1 that the conversion result is not compatible with the closing bracket, the process is terminated, and if it is determined that the conversion result is compatible with the closing bracket, the conversion result is passed to the bracket search means 6. call (step S2).
括弧検索手段6は呼び出されると、第3図に示すように
、テキスト編集手段3に問い合わせを行なうことにより
現在の文字位置を得る(ステップ5ll)、次に括弧検
索手段6は文字位置を一文字分前に戻しくステップ51
2)、テキスト4の上記文字位置の文字が括弧変換手段
5から渡された変換結果が示す閉じ括弧と同一種類の開
き括弧であるか否かを判断する(ステップ513)、そ
して、同一種類の開き括弧であると判断した場合は、上
記文字位置の文字を括弧変換手段5に返す(ステ7ブ5
16)、また、同一種類゛の括弧でないと判断した場合
は、文字位置がテキストの先頭か否かを判断しくステッ
プ514)、先頭でないと判断した場合は再びステップ
312の処理に戻り、先頭であると判断した場合は括弧
変換手段5から渡された変換結果が示す閉じ括弧と組に
なる開き括弧がテキスト4中に存在しないことを括弧変
換手段5に通知する(ステップ515)。When the parenthesis search means 6 is called, the parenthesis search means 6 obtains the current character position by making an inquiry to the text editing means 3 (step 5ll), as shown in FIG. Go back step 51
2) Determine whether or not the character at the above character position of text 4 is an open parenthesis of the same type as the closing parenthesis indicated by the conversion result passed from the parenthesis conversion means 5 (step 513); If it is determined that it is an open parenthesis, the character at the above character position is returned to the parenthesis conversion means 5 (step 7, block 5).
16), if it is determined that the parentheses are not of the same type, it is determined whether the character position is at the beginning of the text or not (step 514); if it is determined that it is not the beginning, the process returns to step 312 again, and the character position is determined to be at the beginning. If it is determined that there is one, the parenthesis converting means 5 is notified that the opening parenthesis that pairs with the closing parenthesis indicated by the conversion result passed from the parenthesis converting means 5 does not exist in the text 4 (step 515).
括弧変換手段5ば閉じ括弧と組になる開き括弧が存在し
ないことが通知されると(ステップS3の判断結果がN
Oとなると)、その処理を終了し、括弧検索手段6から
文字が返されると(ステップS3の判断結果がYESと
なると)、返された文字が全角の開き括弧なのか半角の
開き括弧なのかを判断する (ステップS4)、そして
、半角の開き括弧であると判断した場合は、括狼対応テ
ーブル7を参照して括弧検索手段6から返された開き括
弧と同一種類の半角の閉じ括弧をかな漢字変換手段2に
返しくステップS5)、全角の開き括弧であると判断し
た場合は括弧検索手段6から返された開き括弧と同一種
類の全角の閉じ括弧をかな漢字変換手段2に返す(ステ
ップS6)。When the parenthesis converting means 5 is notified that there is no opening parenthesis to be paired with the closing parenthesis (the judgment result in step S3 is N
When the process ends and the character is returned from the parenthesis search means 6 (if the judgment result in step S3 is YES), it is determined whether the returned character is a full-width open parenthesis or a half-width open parenthesis. (step S4), and if it is determined that it is a half-width open parenthesis, refer to the parenthesis correspondence table 7 and find a half-width close parenthesis of the same type as the open parenthesis returned from the parenthesis search means 6. If it is determined that it is a full-width open parenthesis, a full-width closing parenthesis of the same type as the open parenthesis returned from the parenthesis search means 6 is returned to the kana-kanji conversion means 2 (step S6). ).
かな漢字変換手段2は括弧変換手段5に変換結果を渡し
ても、括弧変換手段5から閉じ括弧が返されない場合は
既に変換しである変換結果をテキスト編集手段3に渡し
、括弧変換手段5から閉じ括弧が返された場合は既に変
換しである変換結果に代えて括弧変換手段5から返され
た閉じ括弧をテキスト編集手段3に渡す。テキストW集
子段3はかな漢字変換手段3から変換結果或いは閉し括
弧が加えられると、テキスト4の現在の文字位置にそれ
らを挿入する。また、テキス)W隻手段3はキーボード
1から削除指示、挿入指示等が加えられた場合は、加え
られた指示に従ってテキスト4を編集する。Even if the kana-kanji conversion means 2 passes the conversion result to the parenthesis conversion means 5, if the closing parenthesis is not returned from the parenthesis conversion means 5, it passes the conversion result that has already been converted to the text editing means 3, and the parenthesis conversion means 5 returns the closing parenthesis. If a parenthesis is returned, the closing parenthesis returned from the parenthesis conversion means 5 is passed to the text editing means 3 instead of the conversion result that has already been converted. When a conversion result or a closing parenthesis is added to the text W collection sub-stage 3 from the ephemeral kana-kanji conversion means 3, they are inserted at the current character position of the text 4. Further, when a deletion instruction, an insertion instruction, etc. are added from the keyboard 1, the text editor 3 edits the text 4 according to the added instruction.
以上説明したように、本発明は、閉じ括弧が入力された
時、入力された閉じ括弧と組になる既に入力済みの開き
括弧が全角であれば、全角の閉し括弧とし、半角であれ
ば半角の閉じ括弧とするものであるので、開き括弧と閉
し括弧との全角、半角を一致させることができる効果が
ある。As explained above, in the present invention, when a closing parenthesis is input, if the input opening parenthesis that is paired with the input closing parenthesis is full-width, it is set as a full-width closing parenthesis, and if it is half-width, Since it is a half-width closing parenthesis, it has the effect of making the full-width and half-width of the opening and closing parentheses match.
第1図は本発明の実施例のブロック図、第2図は括弧変
換手段5の処理例を示す流れ図及び、
第3図は括弧検索手段6の処理例を示す流れ図である。
、図に於いて、1・・・キーボード、2・・・かな漢字
変換手段、3・・・テキスト編集手段、4・・・テキス
ト、5・・・括弧変換手段、6・・・括弧検索手段、7
・・・括弧対応テーブル。FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flowchart showing an example of processing by the bracket conversion means 5, and FIG. 3 is a flowchart showing an example of processing by the bracket search means 6. , In the figure, 1...keyboard, 2...kana-kanji conversion means, 3...text editing means, 4...text, 5...bracket conversion means, 6...bracket search means, 7
...Bracket compatible table.
Claims (2)
るテキスト作成装置に於いて、 前記キーボードから全角或いは半角の閉じ括弧が入力さ
れることにより、作成中のテキストを検索して該閉じ括
弧と組になる開き括弧を探し出す括弧検索手段と、 該括弧検索手段で探し出された開き括弧が全角である場
合は該開き括弧と同一種類の全角の閉じ括弧を出力し、
前記括弧検索手段で探し出された開き括弧が半角である
場合は該開き括弧と同一種類の半角の閉じ括弧を出力す
る括弧変換手段と、該括弧変換手段の出力及び前記キー
ボードからの入力に基づいてテキストを編集するテキス
ト編集手段とを含むことを特徴とするテキスト作成装置
。(1) In a text creation device that creates text according to input from a keyboard, when a full-width or half-width closing parenthesis is input from the keyboard, the text being created is searched and paired with the closing parenthesis. a parenthesis search means for searching for an opening parenthesis; if the opening parenthesis found by the parenthesis search means is full-width, outputting a full-width closing parenthesis of the same type as the opening parenthesis;
a parenthesis conversion means for outputting a half-width closing parenthesis of the same type as the opening parenthesis when the opening parenthesis found by the parenthesis search means is a half-width character; and a parenthesis conversion means for outputting a half-width closing parenthesis of the same type as the opening parenthesis; 1. A text creation device comprising: a text editing means for editing a text using a text editor.
全角及び半角の閉じ括弧とが対応して登録された括弧対
応テーブルを有し、前記キーボードから前記括弧対応テ
ーブルに登録されている閉じ括弧が入力されることによ
り、入力中のテキストを検索して入力された閉じ括弧と
対応する開き括弧を探し出すことを特徴とする請求項1
記載のテキスト作成装置。(2) The parenthesis search means has a parenthesis correspondence table in which full-width and half-width opening parentheses and full-width and half-width closing parentheses are registered in correspondence, and the closing parentheses registered in the parenthesis correspondence table are searched from the keyboard. Claim 1 characterized in that when a parenthesis is input, the text being input is searched to find an opening parenthesis that corresponds to the input closing parenthesis.
The text production device described.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2196793A JPH0481966A (en) | 1990-07-25 | 1990-07-25 | Text preparing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2196793A JPH0481966A (en) | 1990-07-25 | 1990-07-25 | Text preparing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0481966A true JPH0481966A (en) | 1992-03-16 |
Family
ID=16363746
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2196793A Pending JPH0481966A (en) | 1990-07-25 | 1990-07-25 | Text preparing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0481966A (en) |
-
1990
- 1990-07-25 JP JP2196793A patent/JPH0481966A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6310267A (en) | Mechanical translating device | |
| JPH0481966A (en) | Text preparing device | |
| JPH04673A (en) | Collocation registration method and device | |
| JPH02119356A (en) | On-line system information generating mechanism | |
| JP2842611B2 (en) | Natural sentence semantic analysis processor by candidate sentence generation | |
| Hong et al. | Integrated software development environment based on CCITT/SDL for telecommunication systems | |
| JPS6325765A (en) | Document editing device | |
| JPH0546669A (en) | Hit ratio improvement system for data base retrieval system | |
| JPH07129446A (en) | Database access method | |
| JPH05165889A (en) | Document retrieval device | |
| JPH04270450A (en) | document creation device | |
| JPH03154963A (en) | Literary style conversion system | |
| JPH0378860A (en) | Operating procedure form producing device | |
| JPH0728821A (en) | Text processing device | |
| JPH0251764A (en) | Index production system | |
| JPS60231264A (en) | Translation word formation device | |
| JPH02110773A (en) | List data reference processing system | |
| JPH01290015A (en) | Command converter | |
| JPH07282046A (en) | Kana-kanji conversion method | |
| JPH0443459A (en) | Terminology explanation generation system | |
| JPS6215654A (en) | Japanese text input device | |
| JPH07311767A (en) | Document creating apparatus and method | |
| JPH07146858A (en) | Information processing system | |
| JPH02224064A (en) | Machine translation system | |
| JP2000250912A (en) | Translation example sentence editing device |