JPH07102718B2 - A hyphen automatic printer - Google Patents
A hyphen automatic printerInfo
- Publication number
- JPH07102718B2 JPH07102718B2 JP61224277A JP22427786A JPH07102718B2 JP H07102718 B2 JPH07102718 B2 JP H07102718B2 JP 61224277 A JP61224277 A JP 61224277A JP 22427786 A JP22427786 A JP 22427786A JP H07102718 B2 JPH07102718 B2 JP H07102718B2
- Authority
- JP
- Japan
- Prior art keywords
- word
- data
- syllable
- hyphen
- memory
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 description 20
- 230000006870 function Effects 0.000 description 6
- 238000003780 insertion Methods 0.000 description 5
- 230000037431 insertion Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000000470 constituent Substances 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003116 impacting effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Description
本発明は次行に継続する単語の音節を自動判定し音節の
区切にハイフンを自動挿入するようにした印字装置に関
する。The present invention relates to a printing apparatus which automatically determines a syllable of a word continuing on the next line and automatically inserts a hyphen at a syllable division.
従来、主として欧文を印字する電子タイプライタでは、
文書を美しく読み易くするための行末を揃えて印字させ
ることが行われる。行末をライトマージンに自動的に揃
える方法として、1行分の入力された文字データを記憶
しておき、ライトマージンを越えずライトマージンに最
も近い単語の末端までを1行とし、その1行の文字がラ
イトマージンまでに納まるように単語間の間隔を調整し
て印字するという方法(ジャスティフィケーション)が
ある。しかし、この方法は、ライトマージンを越え且つ
ライトマージン内の文字数が多い単語の場合、調整スペ
ースが大きくなり過ぎ単語間隔が不自然に広くなると共
に1行当りの印字文字数が少なくなるという問題があ
る。 この問題を回避するためには、ライトマージンにかかる
単語を2分して、その間にハイフンを挿入し、そのハイ
フンがライトマージンに揃うように単語間隔の調整をす
る必要がある。ところが、ハイフンを挿入する位置は単
語の音節の切れ目でなければならず、自由な位置に挿入
することは出来ない。このハイフンの挿入位置を自動検
出する装置として、単語の分節判定基準となる基準パタ
ーンを記憶しておき、そのパターンと対象となる単語の
文字構成を比較して分節点を判定し、その位置にハイフ
ンを挿入するようにしたものが知られている(特開昭50
−128927号公報)。 また、行末を揃えないで印字する方法においても、行末
が極端に不揃いになる事を防止するため、文字数の多い
単語がライトマージンにかかる時は、ライトマージンの
近傍でオペレータが手動により音節の切れ目にハイフン
を挿入することが一般的に行われている。Conventionally, in the electronic typewriter that mainly prints European text,
Printing is performed with line ends aligned to make the document beautiful and easy to read. As a method of automatically aligning the end of a line with the right margin, the character data input for one line is stored, and the end of the word closest to the right margin without exceeding the right margin is regarded as one line, and the line There is a method (justification) of printing by adjusting the space between words so that the characters fit within the light margin. However, this method has a problem that in the case of a word that exceeds the light margin and has a large number of characters in the light margin, the adjustment space becomes too large and the word interval unnaturally widens and the number of characters printed per line decreases. . In order to avoid this problem, it is necessary to divide a word on the right margin into two parts, insert a hyphen between them, and adjust the word interval so that the hyphen is aligned with the right margin. However, the hyphen must be inserted at the break of the syllable of the word, and it cannot be inserted freely. As a device that automatically detects the insertion position of this hyphen, it stores a reference pattern that serves as a criterion for segmenting a word, compares the pattern with the character configuration of the target word, determines the segment point, and It is known that a hyphen is inserted (Japanese Patent Laid-Open No. Sho 50).
-128927 publication). Also, even in the method of printing without aligning the line ends, when a word with a large number of characters is applied to the light margin, the operator manually sets the syllable breaks near the light margin in order to prevent the line ends from becoming extremely misaligned. It is common practice to insert a hyphen into.
ところが、上記のハイフンを自動挿入し行末を揃えて印
字する装置は接頭語、接尾語等を基準パターンとしてお
り、この基準パターンと対象となる単語の文字構成を順
次比較して最初に一致した基準パターンの前または後に
ハイフンを挿入し、その後ハイフンの位置がライトマー
ジンにくるように単語間の間隔を調整するようにしてい
る。従って、対象となる単語の構成文字数が多く、字数
の少ない接頭語が最初に見出された場合には、ハイフン
の挿入位置はライトマージンから遠くになる。このた
め、調整スペースが大きくなり過ぎ、単語間隔が不自然
に広くなるという問題が存在する。 また、行末を揃えないでライトマージンの近傍でオペレ
ータが手動により音節の切れ目にハイフンを挿入して印
字する方法では、操作が煩わしく、ライトマージンから
遠くの位置でハイフンを挿入した場合には、1行の印字
文字数が少なくなるという問題がある。However, the device that automatically inserts hyphens and prints with the line ends aligned uses a prefix, suffix, etc. as a reference pattern.The reference pattern and the character configuration of the target word are sequentially compared, and the first match Hyphens are inserted before or after the pattern, and then the spacing between words is adjusted so that the hyphens are located in the right margin. Therefore, when a prefix having a large number of constituent characters of the target word and a small number of characters is first found, the hyphen insertion position becomes far from the right margin. Therefore, there is a problem that the adjustment space becomes too large and the word spacing unnaturally widens. In addition, the method in which the operator manually inserts a hyphen at the break of the syllable in the vicinity of the light margin without aligning the line ends and prints it is cumbersome. There is a problem that the number of characters printed on a line is reduced.
【発明の目的】 本発明は、上記の問題点を解決するために成されたもの
であり、その目的とするところは、自動的にハイフンを
挿入することにより、操作性と文書作成速度を向上させ
ると共に、1行当たりの印字字数を多くするとともに、
単語間隔が所定の基準間隔よりも小さくしないことによ
り文書を美しく読み易くすし、さらに、ハイフン挿入位
置の決定と改行処理を高速で行うようにすることであ
る。SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to automatically insert a hyphen to improve operability and document creation speed. In addition to increasing the number of print characters per line,
This is to make the document beautiful and easy to read by making the word interval not smaller than a predetermined reference interval, and to determine the hyphen insertion position and perform line feed processing at high speed.
上記課題を解決するための発明の構成は、第1図に示す
ように、キーボード等から入力されるデータを一時記憶
する第1のメモリと、複数の単語のデータを各単語の音
節情報と共に記憶する辞書メモリと、第1のメモリに入
力された単語のうち、ライトマージンを越えた単語を検
出する検出手段と、その検出手段により検出された単語
に対応する辞書メモリ中のデータを検索する検索手段
と、その検索手段により検索された単語データからその
単語の各音節情報を先頭より順次読出し、音節情報で区
切られた単語部分の後にハイフンを付与してもライトマ
ージンを越えることがない最長の音節位置を決定すると
ともに、最初の音節情報で区切られた単語部分の後にハ
イフンを付与するとライトマージンを越える場合にはそ
の単語データの全てを次行に移動させることを決定する
決定手段と、その決定手段により最長の音節位置が決定
された場合には、決定された音節位置までのデータと、
そのデータの直後に付与されるハイフンと、その後に自
動挿入される改行コードと、音節位置より後のデータと
を順番に第2のメモリに記憶するとともに、単語データ
の全てを次行に移動させることが決定された場合には、
その単語の前に自動挿入される改行コードと、その単語
データとを順番に第2のメモリに記憶する制御手段とを
備えたことである。As shown in FIG. 1, the structure of the invention for solving the above-mentioned problems is such that, as shown in FIG. A dictionary memory, a detection means for detecting a word exceeding the right margin among the words input to the first memory, and a search for searching data in the dictionary memory corresponding to the word detected by the detection means. Means and the word data searched by the searching means, sequentially reading each syllable information of the word from the beginning, and adding a hyphen after the word part delimited by the syllable information does not exceed the light margin. When the syllable position is determined and a hyphen is added after the word part delimited by the first syllable information, if the right margin is exceeded, all of the word data is Determining means for determining the moving to the next line, the, the data up to the syllable positions determined if the maximum syllable position has been determined by the determining means,
The hyphen added immediately after the data, the line feed code automatically inserted after that, and the data after the syllable position are sequentially stored in the second memory, and all the word data is moved to the next line. If it is decided,
A line feed code that is automatically inserted before the word and a control unit that sequentially stores the word data in the second memory are provided.
入力された単語データは第1のメモリに記憶され、検出
手段はその単語のうち予め設定されたライトマージンを
越える単語を検出する。辞書メモリには各単語の音節情
報が記憶されており、検索手段は辞書メモリを検索し検
出された単語に対応する音節情報を求める。次に、決定
手段により、その音節情報からライトマージンより左
(ライトマージンを含まない)に位置しそれに最も近い
音節の切れ目を決定するとともに、最初の音節情報で区
切られた単語部分の後にハイフンを付与するとライトマ
ージンを越える場合にはその単語データの全てを次行に
移動させることが決定される。その後、ライトマージン
を越える単語データは、制御入手段により、その音節の
切れ目にハイフンと改行コードが挿入されたデータに再
構成され第2のメモリに記憶されるとともに、単語デー
タの全てを次行に移動させることが決定された場合に
は、その単語の前に自動挿入される改行コードと、その
単語データとを順番に第2のメモリに記憶される。 このため、ハイフンはライトマージンに可能な限り近い
位置に挿入され、1行の印字字数を多くすることが出来
る。また、行末を揃えて印字させる場合には、挿入され
たハイフンをライトマージンに位置させるための調整文
字数が最小になるので、単語間隔を可能な限り狭くする
ことが出来る。The input word data is stored in the first memory, and the detecting means detects a word that exceeds a preset light margin among the words. The syllable information of each word is stored in the dictionary memory, and the searching means searches the dictionary memory to find syllable information corresponding to the detected word. Next, the deciding means decides a syllable break located to the left of the light margin (not including the light margin) from the syllable information and closest to the syllable information, and a hyphen is added after the word portion delimited by the first syllable information. When the addition exceeds the right margin, it is decided to move all of the word data to the next line. After that, the word data exceeding the write margin is reconstructed by the control input means into the data in which the hyphen and the line feed code are inserted at the break of the syllable, and is stored in the second memory. If it is decided to move to, the line feed code automatically inserted before the word and the word data are stored in order in the second memory. Therefore, the hyphen is inserted at a position as close as possible to the write margin, and the number of characters printed in one line can be increased. Further, when the line ends are aligned and printed, the number of adjustment characters for positioning the inserted hyphen in the right margin is minimized, so that the word interval can be made as narrow as possible.
以下、本発明を具体的な実施例に基づいて説明する。第
2図は本印字装置の電気的構成を示したブロックダイヤ
グラムである。制御装置Cを構成する中央処理装置(CP
U)20にはアドレスバス、データバス、制御バスを介し
てROM21、RAM22、入力インタフェース23、入出力インタ
フェース24,25,26がそれぞれ接続されている。ROM21に
はキーボード1からデータを入力して印字動作を行うた
めの制御プログラムが記憶されたプログラムメモリ210
と単語の音節情報と共に単語のスペルを記憶した辞書メ
モリ212が形成されている。また、RAM22には入力データ
を一時記憶する入力バッファメモリ220と印字データを
一定量記憶する印字メモリ222とが形成されており、こ
のRAM22はバッテリバックアップされている。ここで、
入力バッファメモリ220は第1のメモリに、印字メモリ2
22は第2のメモリに対応する。入出力インタフェース2
4,25,26にはそれぞれ駆動装置80,82,84が接続されてお
り、それぞれの駆動装置には紙送りのためのLFモータ8
1、キャリッジを移動させるCRモータ83、印字リボンの
送り、印字ハンマのインパクトや活字ホイールの回転等
を行う印字機構駆動源86がそれぞれ接続されている。 次に、本実施例装置の作用をCPUの処理手順を示した第
3図のフローチャートを参照して説明する。まず、ステ
ップS1(以下、単にS1で表す。他のステップについても
同じ)キーボード1のキーマトリックスが走査されてキ
ーの状態が読み込まれ、新しいキーの入力か否かが判定
される。新しいキーの入力でない場合には新しいキーの
入力があるまでキーボードの読み込み処理が繰り返され
る。S1で新しいキーの入力と判定されると、入力された
キーコードは次のS2の入力バッファメモリ220に順次記
憶される。次に、S3で入力コードがスペース、ピリオッ
ド等の単語の区切コードであるか否かが判定され、区切
コードでない場合にはS1に移行し次のキーコードの入力
処理が行われる。 一方、S3の判定結果がYESの場合即ち単語の区切の場合
にはS4へ移行し、辞書メモリ212に記憶されている単語
データと入力バッファメモリ220に記憶されている単語
データとが照合されてスペルチェックが行われる。S5で
チェック結果にエラーがあると判定された場合には、S6
で警報が発せられれ誤って入力された単語の訂正処理が
行われる。 次にS7で単語の区切コードがライトマージンRMを越えた
か否かが判定される。S7の判定結果がNOの場合には、S8
へ移行し区切コードはホットゾーン内に在るか否かが判
定される。本実施例では第4図(a)に示すように、ホ
ットゾーンHZはライトマージンRMの左6文字分の領域と
して設定されている。区切コードがホットゾーンHZ内に
存在しない場合には、入力された単語データはS9で印字
メモリ222に登録され、S1に戻り次のキーコードの入力
処理が行われる。 これに対し区切コードがホットゾーンHZ内に在ると判定
された場合には、S10でその入力単語が印字メモリに222
に登録され、印字メモリ222に登録された1行分のデー
タは、次のS11で行末がライトマージンRMに揃うように
各単語の間隔が調整された後印字される。その印字結果
は第4図(a)のようになる。印字後S12で改行動作が
行われ、S1に戻り次行のキーコードの入力処理が行われ
る。以上の処理により、1行分のキーコードが順次入力
され、入力位置がホットゾーンHZ内に在る時に、区切コ
ードが入力されると入力された1行分の印字が行われ
る。 一方、S7において単語の区切コードがライトマージンRM
を越えたと判定された時は、S13に移行して辞書メモリ2
12から対応する単語データが読み出される。辞書メモリ
の単語データは、例えば第4図(d)のように、音節の
区切が判別出来るように音節単位で記憶されている。
今、「specification」と入力され、この単語がライト
マージンを越えたと判定されると、辞書メモリ212が参
照され、その単語はS14で音節に分割される。次にS15で
第1音節「spec」が読み込まれ、S16でその音節が印字
メモリ222に仮登録される。次にS17でその音節を配置し
た結果、ライトマージンRMより1文字手前の位置RM−1
を越えたか否かが判定される。越えていない場合にはS1
8へ移行して仮登録を本登録とし、S19で次の音節が読み
込まれ、CPU20の処理はS16に戻る。このようにして各音
節は位置RM−1を越えるまで印字メモリ222に順次本登
録される。 S17で印字メモリ222に仮登録された音節が位置RM−1を
越えたと判定されると、S20へ移行しこの仮登録された
音節は印字メモリ222から一時消去され、S21で一時消去
された音節が第1音節か否かが判定され、判定結果がYE
Sの場合はS23へ移行し、判定結果がNOの場合にはS22で
ハイフンが印字メモリ222に登録される。このような処
理をするのは、第1音節が位置RM−1を越えるとハイフ
ンを挿入するスペースが存在しなくなるので、ライトマ
ージンRMを越えた単語の前の切れ目で改行する必要があ
るためである。 このように印字メモリ222は1行分の印字データが登録
され、S23でその登録データの末端(ハイフンを有する
場合にはそれを含む)が、ライトマージンRMに揃うよう
に、各単語間の間隔が調整された後印字され、次のS24
で改行処理が行われる。そしてS25において、S20で一時
消去された音節が印字メモリ222の先頭から登録され、S
26で更に残りの全ての音節が登録される。その後、CPU2
0の処理はS1に戻り、次行の印字データの入力処理が実
行される。 上記処理過程において、例えば第4図(b)に示すよう
に「specification」の第5音節「tion」が位置RM−1
を越えたとすると、第4図(c)に示すように第4音節
の後にハイフンが自動挿入され「specifica−」と印字
される。このように、単語はライトマージンRMを含まな
いライトマージンRMに最も近い位置にある音節の区切で
2分割される。 上記実施例において、発明の構成要素である検出手段の
機能は主としてS7を、検索手段の機能は主としてS13
を、決定手段の機能は主としてS14〜S17、S20、S21を、
制御手段の機能は主としてS18〜S19、S22〜S26を実行す
るCPU20の一連の処理過程によりそれぞれ達成される。 尚、前記実施例では、ジャスティフィケーション機能を
同時に使用した例について述べたが、本発明はジャステ
ィフィケーション機能を使用しない場合でも、行末をラ
イトマージンRMに近接することができるので極めて優れ
たものである。 また、上記実施例では本発明をタイプライタに応用した
例について述べたが、本発明はCRT表示装置、液晶表示
装置等のような入力文書を一時的に表示する装置にも応
用し得る。Hereinafter, the present invention will be described based on specific examples. FIG. 2 is a block diagram showing the electrical configuration of the printing apparatus. Central processing unit (CP
U) 20 is connected to ROM 21, RAM 22, input interface 23, and input / output interfaces 24, 25, 26 via an address bus, a data bus, and a control bus, respectively. A program memory 210 in which a control program for inputting data from the keyboard 1 and performing a printing operation is stored in the ROM 21
A dictionary memory 212 is formed which stores the word spelling together with the word syllable information. Further, the RAM 22 is formed with an input buffer memory 220 for temporarily storing input data and a print memory 222 for storing a fixed amount of print data, and the RAM 22 is backed up by a battery. here,
The input buffer memory 220 is the first memory and the print memory 2
22 corresponds to the second memory. I / O interface 2
Drive units 80, 82, 84 are connected to 4, 25, 26, respectively, and each drive unit has an LF motor 8 for feeding paper.
1. A CR motor 83 for moving the carriage, a print mechanism drive source 86 for feeding a print ribbon, impacting a print hammer, rotating a print wheel, etc. are connected. Next, the operation of the apparatus of this embodiment will be described with reference to the flowchart of FIG. 3 showing the processing procedure of the CPU. First, in step S1 (hereinafter, simply referred to as S1; the same applies to other steps), the key matrix of the keyboard 1 is scanned to read the key states, and it is determined whether or not a new key has been input. If it is not a new key input, the keyboard reading process is repeated until a new key is input. When it is determined in S1 that a new key has been input, the input key code is sequentially stored in the input buffer memory 220 of the next S2. Next, in S3, it is determined whether or not the input code is a delimiter code of words such as spaces and periods. If it is not the delimiter code, the process proceeds to S1 and the next key code input process is performed. On the other hand, if the determination result in S3 is YES, that is, if the words are separated, the process proceeds to S4, and the word data stored in the dictionary memory 212 is compared with the word data stored in the input buffer memory 220. Spell checking is done. If it is determined that there is an error in the check result in S5, S6
A warning is issued by and the correction processing of the word that is input by mistake is performed. Next, in S7, it is determined whether the word delimiter code exceeds the write margin RM. If the determination result in S7 is NO, S8
Then, it is judged whether or not the division code is in the hot zone. In this embodiment, as shown in FIG. 4 (a), the hot zone HZ is set as an area for the left six characters of the write margin RM. If the partition code does not exist in the hot zone HZ, the input word data is registered in the print memory 222 in S9, and the process returns to S1 to input the next key code. On the other hand, if it is determined that the delimiter code is in the hot zone HZ, the input word is stored in the print memory in S10.
The data for one line registered in the print memory 222 is printed after the spacing of each word is adjusted so that the line ends are aligned with the write margin RM in the next S11. The printing result is as shown in FIG. After printing, a line feed operation is performed in S12, and the process returns to S1 to enter the key code of the next line. By the above processing, the key codes for one line are sequentially input, and when the delimiter code is input when the input position is within the hot zone HZ, the input one line is printed. On the other hand, in S7, the word delimiter code is the right margin RM.
If it is determined that the value exceeds the limit, the process proceeds to S13 and the dictionary memory 2
The corresponding word data is read from 12. The word data in the dictionary memory is stored in syllable units so that the division of syllables can be discriminated, for example, as shown in FIG.
Now, when "specification" is input and it is determined that this word exceeds the right margin, the dictionary memory 212 is referred to and the word is divided into syllables in S14. Next, the first syllable "spec" is read in S15, and the syllable is provisionally registered in the print memory 222 in S16. Next, as a result of placing the syllable in S17, the position RM-1 one character before the right margin RM
It is determined whether or not S1 if not exceeded
The process shifts to 8 and the temporary registration is made the main registration, the next syllable is read in S19, and the processing of the CPU 20 returns to S16. In this way, each syllable is sequentially main-registered in the print memory 222 until it exceeds the position RM-1. If it is determined that the syllable temporarily registered in the print memory 222 in S17 exceeds the position RM-1, the process proceeds to S20, and the temporarily registered syllable is temporarily erased from the print memory 222, and the syllable temporarily erased in S21. Is determined to be the first syllable and the determination result is YE
If S, the process proceeds to S23, and if the determination result is NO, a hyphen is registered in the print memory 222 in S22. This processing is performed because there is no space to insert a hyphen when the first syllable exceeds the position RM-1, so it is necessary to start a line break before the word beyond the right margin RM. is there. In this way, one line of print data is registered in the print memory 222, and the spacing between each word is adjusted so that the end of the registered data (including the hyphen if it has a hyphen) is aligned with the right margin RM in S23. Is adjusted and then printed, and the next S24
The line feed processing is performed with. Then, in S25, the syllable temporarily erased in S20 is registered from the beginning of the print memory 222, and S
At 26, all the remaining syllables are registered. Then CPU2
The process of 0 returns to S1, and the input process of the print data of the next line is executed. In the above process, for example, as shown in FIG. 4 (b), the fifth syllable "tion" of "specification" is located at the position RM-1.
If it exceeds, a hyphen is automatically inserted after the fourth syllable and "specifica-" is printed as shown in FIG. 4 (c). In this way, the word is divided into two by the syllable delimiter located closest to the write margin RM, which does not include the write margin RM. In the above-described embodiment, the function of the detection means, which is a constituent element of the invention, is mainly S7, and the function of the search means is mainly S13.
, The function of the determination means mainly S14 ~ S17, S20, S21,
The function of the control means is achieved mainly by a series of processing steps of the CPU 20 which executes S18 to S19 and S22 to S26. In addition, in the above-mentioned embodiment, the example in which the justification function is used at the same time is described, but the present invention is extremely excellent because the line end can be brought close to the write margin RM even when the justification function is not used. Is. Further, although an example in which the present invention is applied to a typewriter has been described in the above embodiments, the present invention can also be applied to a device such as a CRT display device or a liquid crystal display device which temporarily displays an input document.
本発明は、ライトマージンを越える単語を音節に分解
し、ライトマージンを含まないライトマージンに最も近
い位置にある音節の切れ目にハイフンを自動挿入すると
ともに、最初の音節情報で区切られた単語部分の後にハ
イフンを付与するとライトマージンを越える場合にはそ
の単語データの全てを次行に移動させるようにしている
ので、1行当りの印字字数を最大限増加させることが出
来るとともに、単語間隔が所定の基準間隔よりも小さく
なることがない。従って行末を揃えて印字する場合に
は、単語間隔を最小して文書を美しく読み易くすること
が出来る。又、ハイフン挿入と改行の判定は、音節情報
が音節毎に順次読み込まれる毎に判定されるので、その
判定結果を速く得ることができ、改行処理を高速化する
ことができる。The present invention decomposes words that exceed the right margin into syllables, automatically inserts a hyphen at the break of the syllable at the position closest to the right margin that does not include the right margin, and detects the word part delimited by the first syllable information. If a hyphen is added later and all of the word data is moved to the next line when it exceeds the light margin, the number of characters printed per line can be maximized and the word interval can be set to a predetermined value. It does not become smaller than the reference interval. Therefore, when the line ends are aligned and printed, the word spacing can be minimized to make the document beautiful and easy to read. Further, the hyphen insertion and line break determination are performed each time the syllable information is sequentially read for each syllable, so that the determination result can be obtained quickly and the line feed processing can be sped up.
第1図は本発明の概念を示したブロックダイヤグラム、
第2図は実施例装置の電気的構成を示したブロックダイ
ヤグラム、第3図は同装置で使用されたCPUの処理手順
を示したフローチャート、第4図はハイフンの自動挿入
を説明するための説明図である。 RM……ライトマージン、LM……レフトマージン HZ……ホットゾーンFIG. 1 is a block diagram showing the concept of the present invention,
FIG. 2 is a block diagram showing the electrical configuration of the apparatus of the embodiment, FIG. 3 is a flowchart showing the processing procedure of the CPU used in the apparatus, and FIG. 4 is an explanation for explaining the automatic insertion of hyphens. It is a figure. RM …… right margin, LM …… left margin HZ …… hot zone
Claims (1)
記憶する第1のメモリと、 複数の単語のデータを各単語の音節情報と共に記憶する
辞書メモリと、 前記第1のメモリに入力された単語のうち、ライトマー
ジンを越えた単語を検出する検出手段と、 その検出手段により検出された単語に対応する前記辞書
メモリ中のデータを検索する検索手段と、 その検索手段により検索された単語データからその単語
の各音節情報を先頭より順次読出し、音節情報で区切ら
れた単語部分の後にハイフンを付与しても前記ライトマ
ージンを越えることがない最長の音節位置を決定すると
ともに、最初の音節情報で区切られた単語部分の後にハ
イフンを付与すると前記ライトマージンを越える場合に
はその単語データの全てを次行に移動させることを決定
する決定手段と、 その決定手段により最長の音節位置が決定された場合に
は、決定された音節位置までのデータと、そのデータの
直後に付与されるハイフンと、その後に自動挿入される
改行コードと、前記音節位置より後のデータとを順番に
第2のメモリに記憶するとともに、前記単語データの全
てを次行に移動させることが決定された場合には、その
単語の前に自動挿入される改行コードと、その単語デー
タとを順番に第2のメモリに記憶する制御手段と を備えたことを特徴とするハイフン自動挿入可能な印字
装置。1. A first memory for temporarily storing data input from a keyboard or the like, a dictionary memory for storing data of a plurality of words together with syllable information of each word, and words input to the first memory. Of the word data searched by the searching means, a detecting means for detecting a word exceeding the right margin, a searching means for searching the data in the dictionary memory corresponding to the word detected by the detecting means, Each syllabic information of the word is sequentially read from the beginning, and even if a hyphen is added after the word part delimited by the syllable information, the longest syllable position that does not exceed the light margin is determined and the first syllable information is used. If a hyphen is added after the delimited word parts, if it exceeds the light margin, it is decided to move all of the word data to the next line. If the longest syllable position is determined by the determining means, the data up to the determined syllable position, the hyphen added immediately after the data, and the line feed code automatically inserted after that And the data after the syllable position are sequentially stored in the second memory, and when it is decided to move all of the word data to the next line, they are automatically inserted before the word. A printing device capable of automatically inserting a hyphen, comprising: a line feed code for storing the word data and a control means for storing the word data in order in the second memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61224277A JPH07102718B2 (en) | 1986-09-22 | 1986-09-22 | A hyphen automatic printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61224277A JPH07102718B2 (en) | 1986-09-22 | 1986-09-22 | A hyphen automatic printer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6378768A JPS6378768A (en) | 1988-04-08 |
| JPH07102718B2 true JPH07102718B2 (en) | 1995-11-08 |
Family
ID=16811250
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61224277A Expired - Lifetime JPH07102718B2 (en) | 1986-09-22 | 1986-09-22 | A hyphen automatic printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07102718B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS50128927A (en) * | 1974-03-29 | 1975-10-11 | ||
| US4574363A (en) * | 1982-07-13 | 1986-03-04 | International Business Machines Corporation | Mixed mode enhanced resolution hyphenation function for a text processing system |
| JPS61202273A (en) * | 1985-03-05 | 1986-09-08 | Sharp Corp | Electronic dictionary |
| JPH0671802B2 (en) * | 1986-04-24 | 1994-09-14 | キヤノン株式会社 | Document processor |
-
1986
- 1986-09-22 JP JP61224277A patent/JPH07102718B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6378768A (en) | 1988-04-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0474257B1 (en) | Typewriter having means for automatic detection of misspelled words | |
| JP3130194B2 (en) | Tape printing apparatus and method | |
| US4974195A (en) | Document processing apparatus | |
| EP0267769B1 (en) | An electronic typewriter with a spelling check function | |
| US5193147A (en) | Document processing apparatus | |
| JPH07102718B2 (en) | A hyphen automatic printer | |
| JPS6195472A (en) | electronic typewriter | |
| US6142685A (en) | Character printing apparatus and method | |
| CA1301349C (en) | Bounded word replace function for an electronic typewriter | |
| US5115410A (en) | Program processing system having standard program for processing optionally post-stored programs | |
| JPS62263081A (en) | printing device | |
| EP0268471B1 (en) | Printing apparatus for automatically conducting a carriage return | |
| US5112148A (en) | Electronic typewriter with override of spelling-checking function | |
| JPH0812669B2 (en) | Document processing method | |
| JPH03134768A (en) | Printing device with spell check function | |
| JPH02135568A (en) | Character mode and font mode setting method for information processing equipment | |
| JPS6184774A (en) | electronic typewriter | |
| JP2891857B2 (en) | Printing apparatus and printing method | |
| JP3015373B2 (en) | Document processing method and document processing device | |
| EP0351180A2 (en) | Text processing system having means for checking entered words for different types of errors | |
| JPH0833883B2 (en) | Input device | |
| JPH0762847B2 (en) | Document processing method | |
| JPH0476765A (en) | Spelling checking device | |
| JPS62158076A (en) | Typewriter with automatic correction function | |
| JPH01311360A (en) | document processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |