JPH03203679A - Character display controller - Google Patents
Character display controllerInfo
- Publication number
- JPH03203679A JPH03203679A JP34417889A JP34417889A JPH03203679A JP H03203679 A JPH03203679 A JP H03203679A JP 34417889 A JP34417889 A JP 34417889A JP 34417889 A JP34417889 A JP 34417889A JP H03203679 A JPH03203679 A JP H03203679A
- Authority
- JP
- Japan
- Prior art keywords
- character
- line
- display
- data
- characters
- 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
- 238000000034 method Methods 0.000 description 26
- 230000006870 function Effects 0.000 description 5
- 235000016496 Panda oleosa Nutrition 0.000 description 2
- 240000000220 Panda oleosa Species 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
Landscapes
- Character Spaces And Line Spaces In Printers (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、指定した文字列が2行に跨がることなく一行
内で表示されるようにした文字表示制御装置に関する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a character display control device that allows a specified character string to be displayed within one line without spanning two lines.
従来の技術
最近では、文書の作成にはワードプロセッサと称される
装置が一般的に用いられている。2. Description of the Related Art Recently, devices called word processors have been commonly used to create documents.
このワードプロセッサによって文書を作成する場合、人
力された文字数が設定された文字数を越えると、その越
えた文字は自動的に改行されてデイスプレィに表示され
るようにその表示の制御が行われる。When creating a document using this word processor, if the number of characters entered manually exceeds a set number of characters, the display is controlled so that the excess characters are automatically displayed on the display with a new line.
発明が解決しようとする課題
しかしながら、このような制御が行われた場合には、入
力の効率が向上するという面では有意義であるといえる
が、1つの意味を持った文字列を見易く表示するという
面では未だ難点がある。Problems to be Solved by the Invention However, when such control is performed, it can be said that it is significant in terms of improving input efficiency, but it is also important to display character strings with one meaning in an easy-to-read manner. There are still difficulties in this aspect.
すなわち、ある一つの意味を持った文字列1例えばもの
の名前等が2行に渡って表示されることがあるために、
より読みやすい文書を作成することが簡単にはできない
という問題がある。In other words, a character string with a certain meaning, such as the name of something, may be displayed over two lines, so
There is a problem in that it is not easy to create documents that are easier to read.
本発明は、このような従来の問題点に鑑みて成されたも
のであり、指定した文字列は、1行内で表示されるよう
にした文字表示制御装置の提供を目的とする。The present invention has been made in view of such conventional problems, and aims to provide a character display control device in which a designated character string is displayed within one line.
課題を解決するための手段
上記目的を達成するための本発明は、人力された任意の
文字列を1つのグループに設定する設定手段と、該設定
手段によって設定された文字列を記憶する記憶手段と、
人力された文字列の中から該記憶手段に記憶されている
文字列を検索し、当該文字列を表示する場合には、前記
文字列が同一行に表示されるように行末を決定する表示
制御手段とを有することを特徴とする。Means for Solving the Problems To achieve the above objects, the present invention provides a setting means for setting arbitrary character strings manually entered into one group, and a storage means for storing the character strings set by the setting means. and,
When searching for a character string stored in the storage means from among human-generated character strings and displaying the character string, display control determines the end of a line so that the character string is displayed on the same line. It is characterized by having a means.
作用
設定手段によって1つのグループに設定された文字列は
記憶手段に記憶される。表示制御手段は、この記憶手段
に記憶されている文字列を、例えばデイスプレィ上や紙
などの表示媒体上に表示する場合には、当該文字列が同
一行に表示されるように行末を決定する。The character strings set into one group by the effect setting means are stored in the storage means. When displaying the character string stored in the storage means on a display medium such as a display or paper, the display control means determines the end of a line so that the character string is displayed on the same line. .
従って、設定された文字列は必ず1行内に表示されるの
で、より読みやすい文書を作成することができる。Therefore, since the set character string is always displayed within one line, it is possible to create a document that is easier to read.
実施例
以下、本発明の実施例を図面に基づいて詳細に説明する
。Embodiments Hereinafter, embodiments of the present invention will be described in detail based on the drawings.
第1図は、本発明の文字表示制御装置の概略構成図であ
る。CPUl0には、任意の文字を入力したり、入力し
た文字の編集を指令する。具体的には第2図に示される
ようなキーボード12と、デイスプレィ14に表示させ
る文字データを一時記憶するイメージバッファ16と、
デイスプレィ14に表示させるイメージバッファ16の
文字データを記憶するデイスプレィメモリ18とが接続
される。イメージバッファ16は、デイスプレィメモリ
18と同じ大きさを持つバッファであり、デイスプレィ
14に表示される文字の配置などの変更は、このイメー
ジバッファ16内の文字データを変更することで行われ
る。デイスプレィメモリ18は、そのアドレスがデイス
プレィ14のアドレスに対応しているメモリであり、デ
イスプレィメモリ18の文字データは記憶されている配
列のままデイスプレィ14に表示される。FIG. 1 is a schematic configuration diagram of a character display control device of the present invention. The CPU 10 is instructed to input arbitrary characters or to edit the input characters. Specifically, a keyboard 12 as shown in FIG. 2, an image buffer 16 for temporarily storing character data to be displayed on the display 14,
A display memory 18 that stores character data of an image buffer 16 to be displayed on a display 14 is connected. The image buffer 16 is a buffer having the same size as the display memory 18, and the arrangement of characters displayed on the display 14 is changed by changing the character data in the image buffer 16. The display memory 18 is a memory whose address corresponds to the address of the display 14, and the character data in the display memory 18 is displayed on the display 14 in the stored arrangement.
デイスプレィ14には、キーボード12から人力された
文字が次のようにして表示されることになる。まず、C
PUl0からイメージバッファ16に文字データが出力
されると、イメージバッファ16はこの文字データを記
憶する。キーボード12から表示に関する編集指令等が
されたときには、この編集などはイメージバッファ16
内の文字データについて行われる。この文字データがデ
イスプレィ14の各画素に対応するイメージデータに展
開されデイスプレィメモリ18に入力される。デイスプ
レィ14は、このデイスプレィメモリ18に記憶されて
いるイメージデータを表示する。Characters entered manually from the keyboard 12 are displayed on the display 14 in the following manner. First, C
When character data is output from PU10 to the image buffer 16, the image buffer 16 stores this character data. When an editing command related to display is issued from the keyboard 12, this editing is performed in the image buffer 16.
This is done for character data within. This character data is developed into image data corresponding to each pixel of the display 14 and input to the display memory 18. The display 14 displays image data stored in the display memory 18.
本発明の文字表示制御装置は第3図から第5図に示した
フローチャートのように動作することになるが、このフ
ローチャートの説明をする前に概略の動作を説明する。The character display control device of the present invention operates as shown in the flowcharts shown in FIGS. 3 to 5, but before explaining the flowcharts, the general operation will be explained.
例えば、次のような文字が入力され、文章を読み易くす
るために「国際社会」という文字列を2行に渡って表示
されないようにする指定(以下、ワードラップという。For example, the following characters are input, and in order to make the text easier to read, the character string "International Society" is specified not to be displayed across two lines (hereinafter referred to as word wrap).
)がされたときには、次のようにデイスプレィ14の表
示及びプリントがされることになる。) is displayed on the display 14 and printed as follows.
という文字列が入力されて上記のような表示がされると
、国際社会の文字が2行に渡って表示され、みにくい文
書となってしまう。ここで、「国際社会」の文字を指定
してワードラップ処理を行なうと、デイスプレィ14の
表示は次のようになり、「国際社会」の文字は同一の行
に表示されるようになる。If the character string ``is input'' and the display shown above is displayed, the characters of the international community will be displayed over two lines, resulting in an ugly document. Here, if the characters ``International Society'' are specified and word wrap processing is performed, the display on the display 14 will be as shown below, and the characters ``International Society'' will be displayed on the same line.
−以下余白一
れた場合には、
まず、文書をデイスプレィ14に表示させて、第2図に
示すキーボード12のファンクションキー12A (F
4)を押すと、ワードラップ処理を行なうためのメニュ
ー画面がその文書め一部に表示される。このメニュー画
面は、次のような画面である(ステップ1)。- If there is a blank space below, first display the document on the display 14 and press the function key 12A (F) of the keyboard 12 shown in FIG.
4) When you press , a menu screen for word wrap processing is displayed on part of the document. This menu screen is as shown below (step 1).
ワードラップ処理 となり、非常に読みやすい文書が作成される。word wrap processing This creates a very readable document.
実際にワードラップが指定されたときの概略の処理は以
上の通りであるが、次に、第3図以降のフローチャート
に基づいて以上のような処理がどのように行われるのか
をさらに具体的に説明する。The outline of the processing when word wrap is actually specified is as above, but next we will explain in more detail how the above processing is carried out based on the flowcharts from Figure 3 onwards. explain.
第3図のフローチャートは前記したワードラップが指定
されたときに処理されるものである。The flowchart in FIG. 3 is a process that is performed when the word wrap described above is specified.
そして、ユーザーは、このメニュー画面に基づいて、検
索文字(前述の例では「国際社会」を人力することにな
る。)、検索方向、検索範囲9日本語グループの各項目
を設定し、キーボード12の実行キー12Bあるいは取
消キーを押す。この時点で、メニュー画面において設定
した各項目の設定データがバッファに記憶されることに
なる(ステップ2)。このステップ2において実行キー
が押された場合、検索文字の項目で指定した文字列の検
索が開始されるが、この検索は、メニュー画面の検索方
向、検索範囲の項目で指示された検索対象となる文書の
先頭より、イメージバッファ16に記憶されている文字
データに対して行われ、具体的には次のようにして行わ
れることになる。Then, based on this menu screen, the user sets the search characters (in the above example, "international society" is entered manually), search direction, and search range (9 Japanese groups), and then presses the keyboard 12. Press the execution key 12B or the cancel key. At this point, the setting data for each item set on the menu screen is stored in the buffer (step 2). If the execution key is pressed in step 2, a search for the character string specified in the search character field will begin, but this search will not match the search target specified in the search direction and search range fields on the menu screen. The processing is performed on the character data stored in the image buffer 16 from the beginning of the document. Specifically, the processing is performed as follows.
イメージバッファ16に記憶される1文字分の文字デー
タは、文字の属性を決定するアトリビュートの1バイト
(8ビツト)と、文字の種類を特定するキャラクタの1
バイト(8ビツト)との2バイト(16ビツト)によっ
て構成される。The character data for one character stored in the image buffer 16 consists of one byte (8 bits) of an attribute that determines the attribute of the character, and one character that specifies the type of character.
It consists of a byte (8 bits) and 2 bytes (16 bits).
例えば、 半角英数字文字は、
アトリビュートが、xxox xxxxであり、キャ
ラクタが、xxxx xxxx。For example, for half-width alphanumeric characters, the attribute is xxox xxxx, and the character is xxxx xxxx.
半角英数字下線つきの文字は、
アトリビュートが、XXIX XX0Oであり、キャ
ラクタが、xXXx xxxx。The underlined half-width alphanumeric characters have attributes XXIX XX0O and characters xXXx xxxx.
半角カナ文字は、
アトリヒュートカ、xXIX xXOlであり、キャラ
クタ力、oxxx xxxx。The half-width kana characters are atorihutoka, xXIX xXOl, and character power, oxxx xxxx.
全角左文字は、
アトリヒュートカ、xXIX xxlXであり、キャラ
クタ力、oxxx xxxx。The full-width left character is Atrihyutoka, xXIX xxlX, and the character power is oxxx xxxx.
全角右文字は、
アトリヒュートカ、xxIX xXIXであり、キャラ
クタが、IXXX XXXXと決められている。尚、
上記ビットのOはOFFを、1はONを、Xはどちらで
も良いことを示している。The full-width right-hand characters are Atrihyutoka, xxIX xXIX, and the characters are determined to be IXXX XXXXX. still,
The above bit O indicates OFF, 1 indicates ON, and X indicates either is acceptable.
従って、検索文字の項目で指定した文字列の検索は、そ
の文字列を構成する文字データの照合を入力されている
文字データに対して行なうことで実施される(ステップ
3)。このような照合が行われ、指定した文字列が検索
された場合には(ステップ4)、この文字列を日本語グ
ループに設定する処理を行なう。この日本語グループの
設定は、端的に言えば、文字列を構成するそれぞれの文
字のアトリビュートを日本語グループ固有のものに設定
することで行われるが、これは、前記した国際社会の文
字を一例とすれば、具体的には次のようにして行われる
。Therefore, the search for the character string specified in the search character item is performed by comparing the character data that constitutes the character string against the input character data (step 3). When such a comparison is performed and the designated character string is retrieved (step 4), processing is performed to set this character string in the Japanese group. To put it simply, this Japanese group setting is done by setting the attributes of each character that makes up the character string to be unique to the Japanese group. Specifically, this is done as follows.
国際社会の夫々の文字のうちの国のJISコードは39
71であるが、この文字は全角文字であるので、このJ
ISコードを39と71の2つに分ける。このJISコ
ードはキャラクタであるので、この文字のキャラクタは
、(OXOO39)と(OXOO71)となる。これに
アトリビュートとして全角左(OX2200)と全角右
(OX2280)とを加えると、国の文字の文字データ
は、0X22390X22F1となる。同様に、際の文
字の文字テータハ、0X223AOX22DD。The JIS code for each country in the international community is 39.
71, but since this character is a double-width character, this J
The IS code is divided into two, 39 and 71. Since this JIS code is a character, the characters of this character are (OXOO39) and (OXOO71). When adding full-width left (OX2200) and full-width right (OX2280) as attributes to this, the character data of the national character becomes 0X22390X22F1. Similarly, the characters at the end are 0X223AOX22DD.
社の文字の文字データハ、0X223COX22D2.
会の文字の文字データは、0X22320X22F1と
なる。ステップ2における項目の設定において、「国際
社会」の文字列を日本語グループとして設定した場合に
は、夫々の文字を表すアトリビュートを、全角左の場合
には、(OX2200)から(OX2300)に、全角
右の場合には、(OX2280)から(OX2380)
に、夫々変更する。したがって、「国際社会」の文字列
が日本語グループに設定された場合には、国の文字の文
字データは、0X23390X23F1に、際の文字の
文字データは、0X233AOX23DDに、社の文字
の文字データは、0x233COX23D2に、会の文
字の文字データは、0X23320X23F1に夫々変
更される。このようにして、設定された国際社会の文字
列は日本語グループとして設定され、他の文字列との区
別を可能としている(ステップ5)。次に、この日本語
グループとして設定した文字列が含まれている行の行末
のチエツクを行なう。この行末のチエツクのサブルーチ
ンフローチャートは第4図に示しであるので、この行末
のチエツクの詳細な処理は後述する(ステップ6)。こ
の行末のチエツクの結果、行末を変更すべきと判断され
たときには(ステップ7)、新たに行を区切り直しくス
テップ8)、次の行の行末のチエツクを行なうことにな
る(ステップ9)。つまり、ステップ6からステップ9
の処理において、ワードラップの処理や、禁則処理を行
なうことになる。尚、ステップ7の判断において、行末
を変更する必要がないと判断されたときには、ステップ
3に戻り、次の文字データより文字列の検索処理が再開
される。また、ステップ4の判断において、検索の対象
となる全ての文字データの検索が終了した場合には、イ
メージバッファ16の文字データをデイスプレィメモリ
18に送り、画面を表示し直す(ステップ10)。The character data of the company character is 0X223COX22D2.
The character data for the character of the society is 0X22320X22F1. When setting the item in step 2, if you set the character string "International Society" as a Japanese group, change the attributes representing each character from (OX2200) to (OX2300) if it is full-width left. For full-width right, from (OX2280) to (OX2380)
, respectively. Therefore, if the character string "International Society" is set to the Japanese group, the character data for the country character is 0X23390X23F1, the character data for the character is 0X233AOX23DD, and the character data for the company character is 0X23390X23F1. , 0x233COX23D2, and the character data of the characters of the society are changed to 0X23320X23F1, respectively. In this way, the international community character strings set are set as a Japanese group and can be distinguished from other character strings (step 5). Next, check the end of the line that contains the character string set as this Japanese group. Since the subroutine flowchart for checking the end of a line is shown in FIG. 4, the detailed process for checking the end of a line will be described later (step 6). As a result of this line end check, if it is determined that the line end should be changed (step 7), the line is re-separated (step 8), and the line end of the next line is checked (step 9). That is, from step 6 to step 9
In the processing, word wrap processing and prohibition processing will be performed. If it is determined in step 7 that there is no need to change the end of the line, the process returns to step 3 and the character string search process is restarted from the next character data. Further, in the judgment in step 4, if the search for all character data to be searched is completed, the character data in the image buffer 16 is sent to the display memory 18 and the screen is redisplayed (step 10).
第4図のフローチャートは、上記のようにしてワードラ
ップが行われた後に行末のチエツクを行なうフローチャ
ートである。The flowchart in FIG. 4 is a flowchart for checking the end of a line after word wrapping is performed as described above.
このフローチャートの動作を説明する前に、行末チエツ
クの概略を説明する。まず、行末となる条件は単語の切
れ目である。このチエツクは行の最後のデータから始め
て行の先頭に向かって進めていく。単語の切れ目を見つ
けたとき又は行の先頭まで進んでも切れ目がなかったと
きには、この行末チエツクは終了することになる。この
単語の切れ目となるのは、基本的には、スペース、タブ
、例えば「あいうニオ」の「う」と「工」の間のように
異なる種類の文字が連結しているところ、例えば「処理
」の「処」と「理」の間のように全角文字と全角文字と
が連結しているところの3つである。つまり、半角英数
字や半角カナでは、連続している同一種類の文字列が1
つの単語であり、全角文字では、−文字一文字が1つの
単語である。Before explaining the operation of this flowchart, an outline of the end-of-line check will be explained. First, the condition for the end of a line is a word break. This check starts with the last data in the row and proceeds toward the beginning of the row. This end-of-line check ends when a word break is found or when there is no break even after reaching the beginning of the line. This word break is basically a space, a tab, or a place where different types of characters are connected, such as between the ``u'' and ``工'' in ``Aiu Nio,'' for example, ``Processing''. There are three cases where full-width characters and full-width characters are connected, such as between ``dokoro'' and ``ri'' in ``.'' In other words, for half-width alphanumeric characters and half-width kana, consecutive character strings of the same type are 1
In double-width characters, one - character is one word.
本発明のワードラップ処理では、この全角文字での単語
の定義に例外を設けたものである。これは、禁則処理に
おいても同様に言える。禁則処理における禁則文字には
、行頭禁則文字と行末禁則文字とがある。行頭禁則文字
は、行の先頭には置かない文字で、例えば、「、」や「
。」や「)」等がある。また、行末禁止文字は、行の終
わりには置かない文字で、例えば、r (Jや「[」や
r「」等がある。以上のことから、行頭禁止文字の前や
行末禁止文字の後ろは、行の区切りにはできない。In the word wrap process of the present invention, an exception is made to the definition of words using double-byte characters. The same can be said of the prohibition process. The prohibited characters in the prohibited process include characters prohibited at the beginning of a line and characters prohibited at the end of a line. Non-first-line characters are characters that cannot be placed at the beginning of a line, such as "," or "
. ” and “)”. In addition, end-of-line prohibited characters are characters that should not be placed at the end of a line, such as r cannot be used as a line separator.
そこで、禁則処理においては、行頭禁止文字は1つ前の
単語、行末禁止文字は1つ後ろの単語と合わせて1つの
単語と見なすように処理がされる。Therefore, in the prohibition processing, a character prohibited at the beginning of a line is treated as one word, and a character prohibited at the end of a line is treated as one word, together with the word immediately following it.
本発明におけるワードラップ処理においても、日本語グ
ループとして設定した文字列それぞれの全角文字には、
前記したように他の全角文字とは異なるアトリビュート
を設定しであるので、その日本語グループとして設定し
た全角文字列を1つの単語と見なすように処理がされる
。従って、ワードラップ処理が行われると、設定した文
字列の途中での改行は行われなくなる。In the word wrap process of the present invention, the double-byte characters of each character string set as a Japanese group are
As described above, since attributes different from those of other double-width characters are set, processing is performed so that the double-width character string set as the Japanese group is regarded as one word. Therefore, when word wrap processing is performed, a line break will not occur in the middle of the set character string.
CPUl0は、まず、ステップ3で検索された行に行末
のチエツクを行なっていない文字データがイメージバッ
ファ16に記憶されているか否かを調べ(ステップ20
)、行末をチエツクしていない文字データが残っていれ
ば、文字データを取り出す。この文字データは、行の最
後からその行の先頭に向かって順に取り出される(ステ
ップ21)。この取り出した文字データが英単語の切れ
目ならば、ここを行末としてメインルーチンに戻り(ス
テップ22)、全角左ならばステップ21に戻って、再
度ステップ21で取り出した文字データの1つ前の文字
データを取り出し、以上の処理を行なう。このように処
理するのは、全角左が行末になると全角右と別れてしま
い文字とならなくなってしまうからである(ステップ2
3)。次に、後ろは行末禁止文字であるかどうかの判断
がされるが、後ろの文字データが行末禁止文字であれば
、ここを行末にはできないので、ステップ21に戻って
、再度ステップ21で取り出した文字データの1つ前の
文字データを取り出す(ステップ24)。さらに、取り
出した文字データが行末禁止文字の右半分のときにもこ
こを行末にすることはできないので、ステップ21に戻
って、再度ステップ21で取り出した文字データの1つ
前の文字データを取り出す(ステップ25)。取り出し
た文字データが日本語グループに設定された文字データ
の最後でなければ、前記と同様に1つ前の文字データを
取り出して以上の処理を行なう。First, the CPU 10 checks whether or not character data for which the end of the line has not been checked is stored in the image buffer 16 in the line searched in step 3 (step 20).
), if there is character data remaining that has not been checked at the end of the line, extract the character data. This character data is extracted in order from the end of the line to the beginning of the line (step 21). If the extracted character data is a break in an English word, this is the end of the line and the process returns to the main routine (step 22); if it is a full-width left, then the process returns to step 21 and the character data that is one character before the character data extracted in step 21 is returned to. Extract the data and perform the above processing. The reason for processing this way is that when the full-width left side reaches the end of the line, it separates from the full-width right side and no longer becomes a character (Step 2
3). Next, it is determined whether the following character is a prohibited character at the end of the line, but if the character data after the character data is a prohibited character at the end of the line, this cannot be made the end of the line, so the process returns to step 21 and is extracted again in step 21. Then, the character data immediately before the character data that has been retrieved is extracted (step 24). Furthermore, even if the retrieved character data is in the right half of the prohibited character at the end of the line, this cannot be made the end of the line, so return to step 21 and retrieve the character data immediately before the character data retrieved in step 21 again. (Step 25). If the retrieved character data is not the last character data set in the Japanese group, the previous character data is retrieved and the above processing is performed in the same manner as above.
このような処理を行なうのは、日本語グループに設定さ
れた文字列の途中は行末にはしないからである(ステッ
プ26)。取り出した文字データの後ろの文字データが
全角左であるか(ステップ27)、全角右であれば、こ
こを行末としてメインフローチャートに戻って処理を終
了する(ステップ28)。ステップ27まで処理が行わ
れるのは、禁則処理がされず、日本語グループでもない
全角右か半角文字である。全角右の場合は、全角文字と
全角文字とが連結しているものに、半角の場合は、異な
る種類の文字が連結しているものに夫々あてはまる。ス
テップ28まで処理が行われるのは、禁則処理がされず
、日本語グループでもない全角の場合だけであるが、こ
のときの後ろの文字データは半角文字であるので、異な
る種類の文字が連結しているものにあてはまる。そして
、どの条件にもあてはまらなかったときには、ステップ
20に戻り、未チエツクの文字データがその行の中に残
っているかどうかが調べられ、残っていれば、その行に
おいて今チエツクした文字データの1つ前の文字データ
を取り出し、上記したような行末のチエツク処理が行わ
れる。残っていなければメインルーチンに戻って行末の
チエツク処理は終了することになる。This process is performed because the middle of the character string set in the Japanese group is not set as the end of the line (step 26). If the character data after the extracted character data is full-width left (step 27) or full-width right, this is the end of the line and the process returns to the main flowchart and ends (step 28). The characters that are processed up to step 27 are full-width right-hand or half-width characters that are not subjected to the prohibition process and are not in the Japanese group. In the case of full-width right, it applies to a combination of full-width characters and two full-width characters, and in the case of half-width, it applies to characters of different types connected. Processing up to step 28 is performed only in the case of full-width characters that are not subjected to Kinsoku processing and are not in the Japanese group, but since the character data at the end of this case is half-width characters, different types of characters are concatenated. It applies to what you have. If none of the conditions are met, the process returns to step 20, where it is checked whether unchecked character data remains in that line, and if so, one of the character data just checked in that line is checked. The previous character data is extracted and the end of line check process as described above is performed. If there are no lines remaining, the process returns to the main routine and ends the line end check process.
前記したような文章において、「国際社会」を日本語グ
ループに設定した後に、
というように表示されている文字列の行末をチエツクす
ると、実際に次のようにして行末チエツクの処理が行わ
れる。In a sentence like the one mentioned above, if you check the end of the line of the displayed character string after setting "International Society" to the Japanese group, the end of line check process will actually be performed as follows.
まず、「国」の文字の右半分の文字データを取り出し、
この文字データに対してチエツクが行われる。この場合
、「国」の文字は日本語グループであり、またその後ろ
の「際」の文字の左半分も日本語グループであるので行
末にはならない。そこで次に、1つ前の文字データであ
る「国」の文字の左半分の文字データに対してチエツク
が行われる。この文字データも全角左という条件のため
に行末にはならない。さらにもう1つ前の文字データで
ある「て」の右半分の文字データを取り出し、この文字
データに対してチエツクが行われる。First, extract the character data of the right half of the character "Country",
A check is performed on this character data. In this case, the character ``Kuni'' is in the Japanese group, and the left half of the character ``Kai'' after it is also in the Japanese group, so it will not be at the end of the line. Then, a check is made on the left half character data of the character "country" which is the previous character data. This character data also does not end at the end of the line because of the full-width left-hand condition. Furthermore, the character data of the right half of the previous character data, "te", is extracted and a check is performed on this character data.
これは後ろの文字データが全角左という条件にあてはま
るので、ここが行末となる。この行末のチエツク処理の
結果、「て」のところで行が変わり、「信頼される商品
とサービスの提供を通じて」までが−行目とされる。そ
して、そこから後ろの文字データを区切り直して2行目
を作る。それから2行目の行末のチエツク処理が行われ
るが、この例では、新しい2行目行以降では禁則処理も
ワードラップも起こらない。以上のような処理が行われ
た後は、デイスプレィ14には次のように表示されるこ
とになる。This meets the condition that the following character data is full-width left, so this is the end of the line. As a result of this check process at the end of the line, the line changes at ``te'' and the lines up to ``through the provision of reliable products and services'' are set to the -th line. Then, the second line is created by re-separating the character data after that. Then, a check process for the end of the second line is performed, but in this example, neither prohibition process nor word wrap occurs from the new second line onwards. After the above processing is performed, the following will be displayed on the display 14.
このようにしてワードラップ処理が行われた文字列の印
刷は、第5図のフローチャートに示されているような均
等印字処理を行なうことで、右端を揃えて行なうことが
できるようになる。The character strings subjected to word wrap processing in this manner can be printed with their right ends aligned by performing uniform printing processing as shown in the flowchart of FIG.
このフローチャートの処理は、キーボード12に設けら
れている印刷キーを押すことで開始される。The process of this flowchart is started by pressing the print key provided on the keyboard 12.
まず、先頭行にワードラップ処理が行われた文字列が含
まれているかどうかの判断がされ、ワードラップ処理が
行われた文字列がその行になければ、通常の印刷が行わ
れる(ステップ30.31)。一方、ワードラップ処理
が行われた文字列がその行にある場合には、その行に改
行コードがあるかどうかが判断される(ステップ32)
。改行コードがある場合には、そのまま1行分の文字デ
ータをプリンタに送り、改行コードがない場合には、行
末の文字から右端の文字までの空白部分の距離を算出し
くステップ33)、その算出した距離を微小スペースに
分割して(ステップ34)、−桁分の文字データにその
分割したスペースを振り分け、均等な文字間隔で印字さ
れるようにする(ステップ35)。そして、このような
処理が行われた1行分の文字データをプリンタに送り(
ステップ36)、次の行に進んで、印字していない行が
なくなるまで、ステップ30からステップ38の処理を
繰り返し、全ての行の印字が行われたら処理を終了する
(ステップ37.38)。First, it is determined whether the first line contains a word-wrapped character string, and if the word-wrapped character string is not in that line, normal printing is performed (step 30). .31). On the other hand, if the word-wrapped character string is on that line, it is determined whether there is a newline code on that line (step 32).
. If there is a line feed code, send one line of character data to the printer as is; if there is no line feed code, calculate the distance of the blank space from the end of the line to the rightmost character.Step 33) The calculated distance is divided into minute spaces (step 34), and the divided spaces are distributed to character data corresponding to -digits, so that characters are printed at equal character intervals (step 35). Then, one line of character data that has been processed in this way is sent to the printer (
Step 36), proceed to the next line and repeat the processes from step 30 to step 38 until there are no unprinted lines, and when all lines have been printed, the process ends (steps 37 and 38).
このような均等印字処理が行われると、デイスプレィ1
4に表示されているワードラ・ツブ処理後の文字列は、
プリントアウト時には次のようにな尚、この均等印字処
理は、ワードラップ処理が行われている場合に自動的に
行なわれるものを例示したが、オペレータがその均等印
字をマニュアルで指定するようなものであっても良い。When such uniform printing processing is performed, display 1
The character string displayed in 4 after Wardler-Tsubu processing is
When printing out, the following is displayed.Although this uniform printing process is automatically performed when word wrap processing is being performed, there is a case where the operator manually specifies the uniform printing. It may be.
このように、任意の文字列を日本語グループに設定でき
るようにすると、自動的に行末が決定されてデイスプレ
ィへの表示が行なわれ、また、プリント時には均等印字
されるので、非常に見易い文書を容易に作成でき、特に
これは、入力文書を再編集したような場合に非常に有効
な機能となる。In this way, by allowing any character string to be set in the Japanese group, the end of the line will be automatically determined and displayed on the display, and when printed, it will be printed evenly, making the document very easy to read. It can be easily created, and this function is particularly useful when the input document has been re-edited.
尚、このワードラップの機能を置換やサーチの機能と併
用して使用できるようにしても良い。例えば置換及びサ
ーチの機能を併用できるようにすれば、指定した文字列
を他の文字列に置換しながら日本語グループに設定する
処理を一度で行なうことができるようになり、さらに使
い勝手が向上することになる。Note that this word wrap function may be used in combination with the replace and search functions. For example, if the replace and search functions can be used together, it will be possible to replace a specified string with another string and set it in the Japanese group at the same time, further improving usability. It turns out.
発明の効果
以上の説明により明らかなように、本発明によれば、指
定した文字列を同一行に表示させることができるので、
非常に読みやすい文書を作成することができる。Effects of the Invention As is clear from the above explanation, according to the present invention, specified character strings can be displayed on the same line.
You can create very readable documents.
第1図は、本発明の文字表示制御装置の概略構成図、
第2図は、第1図に示した装置に使用されるキーボード
の外観図、
第3図は、本発明の文字表示制御装置のメインフローチ
ャート、
第4図は、本発明の文字表示制御装置の行末チエツク処
理のフローチャート、
第5図は、本発明の文字表示制御装置の印字処理のフロ
ーチャートである。
0・・・CPU (設定手段2表示制御手段)2・・・
キーボード(設定手段)、
4・・・デイスプレィ、
6・・・イメージバッファ(記憶手段)、8・・・デイ
スプレィメモリ(記憶手段)。
959−
2BFIG. 1 is a schematic configuration diagram of a character display control device of the present invention, FIG. 2 is an external view of a keyboard used in the device shown in FIG. 1, and FIG. 3 is a character display control device of the present invention. 4 is a flowchart of line end check processing of the character display control device of the present invention. FIG. 5 is a flowchart of print processing of the character display control device of the present invention. 0...CPU (setting means 2 display control means) 2...
Keyboard (setting means), 4... Display, 6... Image buffer (storage means), 8... Display memory (storage means). 959-2B
Claims (1)
定手段と、 該設定手段によって設定された文字列を記憶する記憶手
段と、 入力された文字列の中から該記憶手段に記憶されている
文字列を検索し、当該文字列を表示する場合には、前記
文字列が同一行に表示されるように行末を決定する表示
制御手段とを有することを特徴とする文字表示制御装置
。[Claims] Setting means for setting arbitrary input character strings into one group; storage means for storing the character strings set by the setting means; and storage means for storing the character strings from among the input character strings. A character string characterized by having a display control means for determining the end of a line so that when searching for a character string stored in the means and displaying the character string, the character string is displayed on the same line. Display control device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP34417889A JPH03203679A (en) | 1989-12-29 | 1989-12-29 | Character display controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP34417889A JPH03203679A (en) | 1989-12-29 | 1989-12-29 | Character display controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03203679A true JPH03203679A (en) | 1991-09-05 |
Family
ID=18367232
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP34417889A Pending JPH03203679A (en) | 1989-12-29 | 1989-12-29 | Character display controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03203679A (en) |
-
1989
- 1989-12-29 JP JP34417889A patent/JPH03203679A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7315867B2 (en) | Document processing apparatus, document processing method, document processing program, and recording medium | |
| US4396992A (en) | Word processor | |
| US20020165707A1 (en) | Methods and apparatus for storing and processing natural language text data as a sequence of fixed length integers | |
| US20020062324A1 (en) | Setting text composition spacing amount | |
| JPH07114568A (en) | Data retrieval device | |
| EP0384986A2 (en) | Method for displaying online information | |
| JPS60245083A (en) | electronic dictionary | |
| US5835921A (en) | Data processing apparatus for creating and storing a text file from input data | |
| JPH0137783B2 (en) | ||
| JP2763227B2 (en) | Format determination method | |
| JP2634926B2 (en) | Kana-Kanji conversion device | |
| US5481663A (en) | Word processors for performing an automatic layout process | |
| JPS60176137A (en) | Sentence generating device | |
| JPS62271048A (en) | Index output device | |
| JPS63269251A (en) | document processing device | |
| JPH0778800B2 (en) | Document processor | |
| JPS58172735A (en) | Japanese input device | |
| JP3256990B2 (en) | Document processing device | |
| JPH08339371A (en) | Document output device and character modification method | |
| JPH0721189A (en) | Translation support device | |
| JPH01194061A (en) | Display control system for word processor | |
| JPH0736902A (en) | Electronic dictionary device | |
| JPS6395571A (en) | electronic dictionary | |
| JPS63211456A (en) | Display control system for word processor | |
| JPH07141345A (en) | Japanese sentence processing method |