JPH0482119B2 - - Google Patents
Info
- Publication number
- JPH0482119B2 JPH0482119B2 JP62161509A JP16150987A JPH0482119B2 JP H0482119 B2 JPH0482119 B2 JP H0482119B2 JP 62161509 A JP62161509 A JP 62161509A JP 16150987 A JP16150987 A JP 16150987A JP H0482119 B2 JPH0482119 B2 JP H0482119B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- line
- characters
- printed
- storage area
- 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
Landscapes
- Character Spaces And Line Spaces In Printers (AREA)
- Document Processing Apparatus (AREA)
- Record Information Processing For Printing (AREA)
Description
【発明の詳細な説明】
(イ) 産業上の利用分野
この発明は、たとえばワードプロセツサのよう
な文字処理装置に関し、特に、自動禁則処理機能
を有し、印字される文字と文字との間隔を任意に
調整することが可能な文字処理装置に関する。[Detailed Description of the Invention] (a) Industrial Application Field The present invention relates to a character processing device such as a word processor, and in particular, the present invention relates to a character processing device such as a word processor. The present invention relates to a character processing device that can arbitrarily adjust the characters.
(ロ)従来の技術
従来、この種の文字処理装置においては、作成さ
れた文章の印字がオペレータによつて指示される
と、文書処理機は、所定の文字間隔を印字される
各文字の後部に付加し、印字される各行の行頭と
行末を監視して、行頭が行頭禁則文字(たとえば
。 、 など)である場合にはそれを前行の行
末に移行し、行末が行末禁則文字(たとえば(
「 など)である場合にはそれを次行の行頭に移
行するか、あるいは、その行末に次行の行頭文字
を移行して、それらを印字するようにしている
(たとえば、特開昭57−101990号公報参照)。(B) Conventional Technology Conventionally, in this type of character processing device, when an operator instructs printing of a created sentence, the document processing device prints a predetermined character interval at the rear of each character to be printed. , monitors the beginning and end of each line to be printed, and if the beginning of a line is a non-starting character (for example, (
", etc.), it is moved to the beginning of the next line, or the next line's first character is moved to the end of that line, and then printed (for example, (See Publication No. 101990).
(ハ) 発明が解決しようとする問題点
しかしながら、従来のこの種の文字処理装置に
においては、行頭にある句読点のような行頭禁則
文字を前行の行末に移行する場合、前行の行末文
字の後部に付加されている文字間隔の後に移行し
ていたため、たとえば原稿用紙のような、所定の
文字間隔を有して印刷された用紙に印字するとき
には、その移行された禁則文字が所定の枠内から
はみ出してしまうという問題があつた。(c) Problems to be Solved by the Invention However, in conventional character processing devices of this type, when moving a character that cannot start at the beginning of a line, such as a punctuation mark, to the end of the previous line, the end of line character of the previous line is Because the characters were moved after the character spacing added at the end of I had a problem with it sticking out from within.
この発明は、このような事情を考慮してなされ
たもので、所定の文字間隔を有して印刷された用
紙に印字する場合でも、次行から移行された行末
の禁則文字が所定の枠内からはみ出すことのない
禁則文字はみ出し防止機能付き文字処理装置を提
供するものである。 This invention was made in consideration of these circumstances, and even when printing on paper with a predetermined character spacing, the prohibited characters at the end of a line that are transferred from the next line do not fit within the predetermined frame. To provide a character processing device with a function to prevent prohibited characters from protruding from the outside.
(ニ) 問題点を解決するための手段
第1図はこの発明の構成を示すブロツク図であ
る。(d) Means for solving the problems FIG. 1 is a block diagram showing the configuration of the present invention.
この図において、101はキー入力手段、10
2はキー入力手段101からの入力によつて作成
された文書を格納する第1記憶手段、103は第
1記憶手段102から一行分の所定数の文字を呼
び出し各文字の後部に所定の文字間隔を付加して
出力する制御手段、104は制御手段103から
の出力を受けそれを格納する第2記憶手段、10
5は第2記憶手段104に格納された一行に続く
次の行頭文字が行頭禁則文字であるかどうかを判
別する判別手段、106は前記行頭文字が行頭禁
則文字であるとき第2記憶手段104に格納され
た行末文字後部の文字間隔を削除してそこに前記
行頭禁則文字を付加する付加手段、107は第2
記憶手段104の内容に対応して印字する印字手
段である。 In this figure, 101 is a key input means;
Reference numeral 2 denotes a first storage means for storing a document created by inputting from the key input means 101; 103 reads a predetermined number of characters for one line from the first storage means 102; a predetermined character interval is placed after each character; 104 is a second storage means that receives the output from the control means 103 and stores it;
5 is a determining means for determining whether the next bullet following a line stored in the second storage means 104 is a character that cannot start at the beginning of a line; 106 is a determination means for determining whether the first character is a character that cannot start at the beginning of a line; 107 is a second additional means for deleting the character interval after the stored end-of-line character and adding the non-startable character thereto;
This is a printing means that prints in accordance with the contents of the storage means 104.
(ホ) 作用
第1図において、印字がおこなわれるときに
は、キー入力手段101からの入力によつて第1
記憶手段102に格納されている文書は、制御手
段103によつて、所定の一行分づつ各文字の後
部に所定の文字間隔が付加されて第2記憶手段1
04に格納され、判別手段105によつて、第2
記憶手段104に格納された一行に続く次の行頭
文字が行頭禁則文字であると判別された場合に
は、付加手段106によつて、第2記憶手段10
4に移された行末文字後部の文字間隔が削除され
そこに行頭禁則文字が付加されるため、所定の文
字間隔を有して印刷された用紙に印字する場合で
も、次行から移行された行末の禁則文字が所定の
枠内からはみ出すことがない。(e) Operation In FIG. 1, when printing is performed, the first
The document stored in the storage means 102 is stored in the second storage means 1 with a predetermined character interval added to the end of each character for a predetermined line by the control means 103.
04 and is stored in the second
If it is determined that the next bullet character following one line stored in the storage means 104 is a character that cannot start at the beginning of a line, the addition means 106 causes the second storage means 10
The character spacing after the end-of-line character moved to 4 is deleted and a non-startable character is added there, so even when printing on paper with a specified character interval, the end-of-line character moved from the next line The prohibited characters will not protrude from the specified frame.
(ヘ) 実施例
以下、図面に示す実施例に基づいてこの発明を
詳述する。なお、これによつてこの発明が限定さ
れるものではない。(F) Embodiments The present invention will be described in detail below based on embodiments shown in the drawings. Note that this invention is not limited to this.
第2図はこの発明の一実施例を示す構成図であ
る。 FIG. 2 is a block diagram showing an embodiment of the present invention.
この図において、1は文字入力キー、漢字変換
キー、次候補キー、無変換キー、各種フアンクシ
ヨンキーなどを有したキーボードであり、このキ
ーボード1からの入力によつて文書が作成され、
文字間隔および一行の印字文字数の指定や、印字
の指令などがおこなわれる。2はRAMであり、
キーボード1から入力された文書を格納する文書
格納エリア2aと、キーボード1からの入力によ
つて指定された一行の印字文字数に対応する一行
分の所定数の文字を格納する印字文書格納エリア
2bを有している。文書格納エリア2aは、入力
された文字および記号などの各文字情報が2バイ
トのヘキサコードに変換されて格納されるエリア
であり、印字文書格納エリア2bは、実際に印字
される形式で、文字と文字との間に文字間隔が付
加された一行分のイメージがドツトで形成される
エリアである。3はCPUであり、キーボード1
から印字の指令がおこなわれた場合、RAM2の
文書格納エリア2aから一行分の所定数の文字を
呼び出し、その各文字の後部に所定の文字間隔を
付加して同じくRAM2の印字文書格納エリア2
bに格納し、その格納された一行に続く次の行頭
文字が行頭禁則文字であるかどうかを判別し、そ
の行頭文字が行頭禁則文字であるときには、印字
文書格納エリア2bに格納された行末文字後部の
文字間隔を削除してそこにその行頭禁則文字を付
加する。4はCPU3のプログラムおよび漢字変
換のための辞書が格納されているROM、5は
RAM2の印字文書格納エリア2bに格納されて
いる内容を印字するドツトプリンター、6はキー
ボード1からの入力によつて作成された文書など
が表示されるCRTデイスプレイである。 In this figure, 1 is a keyboard having character input keys, kanji conversion keys, next candidate keys, non-conversion keys, various function keys, etc. A document is created by inputting from this keyboard 1.
The character spacing and number of characters printed per line are specified, and printing commands are given. 2 is RAM;
A document storage area 2a for storing a document input from the keyboard 1, and a print document storage area 2b for storing a predetermined number of characters for one line corresponding to the number of characters to be printed for one line specified by the input from the keyboard 1. have. The document storage area 2a is an area where input character information such as characters and symbols is converted into 2-byte hex codes and stored, and the print document storage area 2b is an area where characters are stored in the format in which they are actually printed. This is an area where an image of one line is formed by dots, with character spacing added between and characters. 3 is the CPU, keyboard 1
When a printing command is issued from the document storage area 2a of RAM2, a predetermined number of characters for one line are called from the document storage area 2a of RAM2, a predetermined character interval is added to the end of each character, and the characters are read from the print document storage area 2a of RAM2 as well.
b, and determines whether the next bullet following the stored line is a non-startable character, and if the first bullet is a non-startable character, the end-of-line character stored in the printed document storage area 2b is Delete the trailing character spacing and add the non-starting character there. 4 is a ROM that stores the program for CPU 3 and a dictionary for kanji conversion; 5 is a ROM
A dot printer prints the contents stored in the print document storage area 2b of the RAM 2, and a CRT display 6 displays documents created by inputting from the keyboard 1.
このような構成の動作を第3図に示すフローチ
ヤートを用いて以下に説明する。 The operation of such a configuration will be explained below using the flowchart shown in FIG.
まず、オペレーターによつて、あらかじめ、キ
ーボード1から文字情報が入力され、RAM2の
文書格納エリア2aに文書が格納される。そし
て、キーボード1から、印字するべき一行の字数
(たとえば22字)と文字間隔(たとえば10ドツト)
が設定され、次に、印字の指令がキーボード1か
らCPU3に与えられる。 First, character information is input in advance from the keyboard 1 by an operator, and a document is stored in the document storage area 2a of the RAM 2. Then, from keyboard 1, select the number of characters per line to be printed (for example, 22 characters) and the character spacing (for example, 10 dots).
is set, and then a print command is given from the keyboard 1 to the CPU 3.
以下、第3図に示すように、この印字の指令に
よつて印字ルーチンが起動されると、ステツプ
201において、CPU3は、RAM2の文書格納エ
リア2aから、印字される先頭の文字を一文字呼
び出し、その数をカウントしながら(ステツプ
202)印字するべき一行の所定文字数(22字)に
達したかどうかを判定し(ステツプ203)、達して
いなければその文字の後部に所定の文字間隔(10
ドツト)を付加して、RAM2の印字文書格納エ
リア2bに格納する(ステツプ205)。この動作を
所定回数(22回)繰り返して、印字するべき一行
の所定文字数(22字)に達したなら(ステツプ
203)、次に呼び出すべき文書格納エリア2aの次
行の行頭文字(第23字目の文字)が行頭禁則文字
であるかどうかを判別する(ステツプ206)。そし
て、この文字(23番目の文字)が行頭禁則文字で
あれば、印字文書格納エリア2bに格納されてい
る行末文字(22番目の文字)の後部に付加されて
いる文字間隔(10ドツト)を削除して(ステツプ
207)、そこに、次行の行頭禁則文字(23番目の文
字)を文書格納エリア2aから呼び出して付加す
る(ステツプ208)。このとき、ステツプ206にお
いて、次に呼び出すべき文書格納エリア2aの次
行の行頭文字(23番目の文字)が行頭禁則文字で
ない場合には、印字文書格納エリア2bに格納さ
れている行末文字(22番目の文字)の後部に付加
されている文字間隔(10ドツト)はそのままであ
る。 Hereinafter, as shown in Figure 3, when the printing routine is started by this printing command, the step
In step 201, the CPU 3 reads the first character to be printed from the document storage area 2a of the RAM 2, and counts the number (step by step).
202) Determine whether the predetermined number of characters (22 characters) in one line to be printed has been reached (step 203), and if not, print a predetermined character interval (10 characters) after that character.
dot) and stores it in the printed document storage area 2b of the RAM 2 (step 205). Repeat this operation a predetermined number of times (22 times), and when the predetermined number of characters (22 characters) in one line to be printed is reached (step
203), it is determined whether the first character of the next line (the 23rd character) of the document storage area 2a to be called next is a character that cannot be started at the beginning of a line (step 206). If this character (the 23rd character) is a character that cannot start at the beginning of a line, then the character spacing (10 dots) added to the end of the line end character (22nd character) stored in the printed document storage area 2b is Delete (step
207), the next line's non-startable character (the 23rd character) is called from the document storage area 2a and added thereto (step 208). At this time, in step 206, if the first character (the 23rd character) of the next line in the document storage area 2a to be called next is not a character that cannot start at the beginning of a line, then the end-of-line character (22nd character) stored in the printed document storage area 2b is The character spacing (10 dots) added to the end of the second character) remains unchanged.
このようにして、印字文書格納エリア2bに、
実際に印字される形式で、文字と文字との間に文
字間隔が付加された一行分のイメージがドツトで
形成され、この印字文書格納エリア2bのイメー
ジがRAM2からプリンター5に出力されると、
プリンター5はこの出力を受けて一行分の文書を
印字し(ステツプ209)、一行分の印字が終了す
る。 In this way, in the printed document storage area 2b,
In the format that is actually printed, an image for one line with character spacing added between characters is formed as dots, and when this image in the printed document storage area 2b is output from the RAM 2 to the printer 5,
The printer 5 receives this output and prints one line of the document (step 209), and the printing of one line is completed.
以上のように、各行の印字をおこなつてゆけ
ば、所定の文字間隔を有して印刷された用紙に印
字する場合でも、次行から移行された行末の禁則
文字が所定の枠内からはみ出すことがなくなる。 As described above, if you print each line, even when printing on paper printed with a predetermined character spacing, the prohibited characters at the end of the line that are transferred from the next line will protrude from the predetermined frame. Things will disappear.
(ト) 発明の効果
この発明によれば、印字されるべき行の次の行
頭文字が行頭禁則文字である場合には、印字され
るべき行の行末文字後部の文字間隔が削除されそ
こに行頭禁則文字が付加されるため、所定の文字
間隔を有して印刷された用紙に印字する場合で
も、次行から移行された行末の禁則文字が所定の
枠内からはみ出すことのない禁則文字はみ出し防
止機能付き文字処理装置が提供される。(g) Effect of the invention According to this invention, when the first character of the next line of a line to be printed is a non-startable character, the character interval after the last character of the line to be printed is deleted and the line start is inserted there. Because prohibited characters are added, even when printing on paper with a specified character spacing, the prohibited characters at the end of the line that are transferred from the next line will not protrude from within the specified frame.Prohibition of prohibited characters from protruding. A capable character processing device is provided.
第1図はこの発明の構成を示すブロツク図、第
2図はこの発明の一実施例を示す構成図、第3図
はこの発明の一実施例の動作を示すフローチヤー
トである。
1……キーボード、2……RAM、2a……文
書格納エリア、2b……印字文書格納エリア、3
……CPU、4……ROM、5……ドツトプリンタ
ー、6……CRTデイスプレイ。
FIG. 1 is a block diagram showing the structure of the present invention, FIG. 2 is a block diagram showing an embodiment of the invention, and FIG. 3 is a flowchart showing the operation of the embodiment of the invention. 1...Keyboard, 2...RAM, 2a...Document storage area, 2b...Printed document storage area, 3
...CPU, 4...ROM, 5...dot printer, 6...CRT display.
Claims (1)
れた文書を格納する第1記憶手段、 c 第1記憶手段から一行分の所定数の文字を呼
び出し、各文字の後部に所定の文字間隔を付加
して出力する制御手段、 d 前記制御手段からの出力を受けそれを格納す
る第2記憶手段、 e 第2記憶手段に格納された一行に続く次の行
頭文字が行頭禁則文字であるかどうかを判別す
る判別手段、 f 前記行頭文字が行頭禁則文字であるとき、第
2記憶手段に格納された行末文字後部の文字間
隔を削除してそこに前記行頭禁則文字を付加す
る付加手段、 g 第2記憶手段の内容に対応して印字する印字
手段、 からなる禁則文字はみ出し防止機能付き文字処理
装置。[Scope of Claims] 1 a key input means; b first storage means for storing a document created by input from the key input means; c recall a predetermined number of characters for one line from the first storage means; , a control means for adding and outputting a predetermined character interval at the end of each character; d. a second storage means for receiving and storing the output from the control means; e. a next line following the one line stored in the second storage means; a discriminating means for determining whether the first character of the bullet is a character that cannot be started at the beginning of a line; A character processing device with a function to prevent prohibited characters from running out, comprising: an addition means for adding characters that cannot be placed at the beginning of a line;
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62161509A JPS645874A (en) | 1987-06-29 | 1987-06-29 | Character processor with preventive function for forbidden character swelling out |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62161509A JPS645874A (en) | 1987-06-29 | 1987-06-29 | Character processor with preventive function for forbidden character swelling out |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS645874A JPS645874A (en) | 1989-01-10 |
| JPH0482119B2 true JPH0482119B2 (en) | 1992-12-25 |
Family
ID=15736411
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62161509A Granted JPS645874A (en) | 1987-06-29 | 1987-06-29 | Character processor with preventive function for forbidden character swelling out |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS645874A (en) |
-
1987
- 1987-06-29 JP JP62161509A patent/JPS645874A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS645874A (en) | 1989-01-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3016515B2 (en) | Character processing apparatus and method | |
| JPH01229673A (en) | English and european writing printing control system | |
| JPS59201870A (en) | Printer | |
| JPS61122774A (en) | Japanese input/output device | |
| JP3108936B2 (en) | Document processing device | |
| JPH04111116A (en) | character processing device | |
| JPH0720770Y2 (en) | Document creation device | |
| KR940005156B1 (en) | How to convert Korean / English to electronic typewriter | |
| JPH0773167A (en) | Word processor equipment | |
| JP2554225B2 (en) | Text output device | |
| JPH03246716A (en) | Document data output controller | |
| JPH11115260A (en) | Document data print output control method and font conversion control printer | |
| JPH06320801A (en) | Printer | |
| JPH0573562A (en) | Document editing device | |
| JPS62248651A (en) | Printing method | |
| JPH0422653A (en) | printing device | |
| JPH01247187A (en) | Printing control device | |
| JPS63130376A (en) | Printer | |
| JPS62270364A (en) | Document processing apparatus | |
| JPH0711750B2 (en) | Document output method | |
| JPS6328686A (en) | Display control system | |
| JPH10232861A (en) | Document output device | |
| JPH04120141U (en) | printer device | |
| JPH04257056A (en) | Document processor | |
| JPH0673131B2 (en) | Input/Output Devices |