JPH07325810A - Device and method for processing character - Google Patents

Device and method for processing character

Info

Publication number
JPH07325810A
JPH07325810A JP6119973A JP11997394A JPH07325810A JP H07325810 A JPH07325810 A JP H07325810A JP 6119973 A JP6119973 A JP 6119973A JP 11997394 A JP11997394 A JP 11997394A JP H07325810 A JPH07325810 A JP H07325810A
Authority
JP
Japan
Prior art keywords
character
output position
character string
string
amount
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
Application number
JP6119973A
Other languages
Japanese (ja)
Inventor
Junichiro Kizaki
純一郎 木崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP6119973A priority Critical patent/JPH07325810A/en
Publication of JPH07325810A publication Critical patent/JPH07325810A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

PURPOSE:To closely write the character spaces of a specified character string by providing a character space amount setting means, an output position lead-out means and a control means. CONSTITUTION:A character space setting processing is selected by using a mouse 15 or a keyboard 14 and a character space setting window is displayed. Then, when a desired character space amount is inputted by a point unit by the keyboard 14 and selected by using the mouse 15 or the keyboard 14, the character space amount is inputted to a device main body and stored in a prescribed position. For the character space amount, an MPU 16 calculates the arrangement of characters. Whether or not the character of the selected character string is a first character is discriminated first and when the character to be outputted is the first character, the output position on a VRAM 12 of the character is defined as the output position on the VRAM 12 at present. For second and succeeding characters, a value for which the specified character space amount is subtracted from the value for which the character width of the character immediately before is added to the output position on the VRAM 12 of the character immediately before is defined as the output position of the VRAM 12 of the character. Thus, the character string of a layout which did not exist before is easily prepared.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、字詰め処理を行う文字
処理装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing apparatus and method for carrying out character filling processing.

【0002】[0002]

【従来の技術】一般に、ワープロ等の文字処理装置で
は、文字間や行間の大きさを任意に設定し、自由な文章
レイアウトを行うことが可能となっている。書式などの
文書全体を管理するような情報に指定して、文書全体の
バランスを決めたり、文字毎に前後の文字間を設定し
て、部分的にバランスを変更したりする。
2. Description of the Related Art Generally, in a character processing device such as a word processor, it is possible to freely set a character layout by freely setting the size of characters or lines. The balance of the entire document is determined by specifying information such as the format that manages the entire document, or the balance between the preceding and following characters is set for each character to partially change the balance.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、欧文や
ひらがな等、システムで管理している文字幅からみて、
実際のデータの幅が小さい文字は、文字の間隔を広げる
より、むしろ文字同士を重ねた方が美しく見え、そのよ
うな文字が多く含まれるような文章においては、その部
分だけ間隔を狭めたり、全体で一律に詰めるような設定
ができると便利である。しかしながら、今までは、一文
字単位で詰める等の操作はできたが、指定された文字列
を対象に一括して字詰めを行うことができない問題点が
あった。
However, in view of the character widths managed by the system such as Western characters and hiragana,
For characters with a small actual data width, it seems more beautiful to stack characters on top of each other rather than widening the character spacing.In a sentence that contains many such characters, the spacing may be narrowed by that part, It would be convenient if the settings could be set uniformly for the whole. However, until now, although operations such as filling characters by character can be performed, there is a problem that the specified character strings cannot be packed together in a batch.

【0004】本発明は上記問題点を解決する為になされ
たもので、指定された文字列の字間を簡単に詰めること
ができる文字処理装置及び方法を提供することを目的と
する。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a character processing device and method capable of easily reducing the space between specified character strings.

【0005】[0005]

【課題を解決するための手段】かかる目的を達成するた
めに、本発明に係る文字処理装置は、入力された文字列
を表示する表示手段と、前記表示される文字列の内、所
望の文字列を指定する指定手段と、字詰量を設定する字
詰量設定手段と、前記字詰量設定手段によって設定され
た字詰量に基づいて、前記指定された文字列の出力位置
を導出する出力位置導出手段と、前記出力位置導出手段
によって導出された出力位置に文字を表示すべく前記表
示手段を制御する制御手段とを具備することを特徴とす
る。
In order to achieve such an object, a character processing device according to the present invention comprises a display means for displaying an input character string and a desired character among the displayed character strings. An output position of the designated character string is derived based on a specifying means for specifying a column, a character closing amount setting means for setting a character closing amount, and a character closing amount set by the character closing amount setting means. It is characterized by comprising output position deriving means and control means for controlling the display means to display a character at the output position derived by the output position deriving means.

【0006】また、本発明に係る文字処理方法は、入力
された文字列を表示する表示手段を利用する文字処理方
法であって、前記表示される文字列の内、所望の文字列
を指定し、字詰量を設定し、前記設定された字詰量に基
づいて、前記指定された文字列の出力位置を導出し、前
記導出された出力位置に文字を表示すべく前記表示手段
を制御することを特徴とする。
Further, the character processing method according to the present invention is a character processing method utilizing a display means for displaying an input character string, wherein a desired character string is designated from among the displayed character strings. , Setting the amount of padding, deriving an output position of the designated character string based on the set amount of padding, and controlling the display unit to display a character at the derived output position. It is characterized by

【0007】[0007]

【作用】本発明においては、簡単なコマンドにより、指
定された文字列の字間を簡単に詰めることができる。
In the present invention, the character spacing of the designated character string can be easily reduced with a simple command.

【0008】[0008]

【実施例】図1は本発明の一実施例にかかる文字処理装
置全体のブロック構成図である。
1 is a block diagram of the entire character processing apparatus according to an embodiment of the present invention.

【0009】図において、11は文字、図形などを表示
するための表示装置、12は表示装置11の表示内容を
記憶するVRAM、13はたとえばレーザビームプリン
タ、インクジェットプリンタ等高解像度のプリンタ、1
4は文字、数字等のキャラクタその他の入力を行うため
のキーボード、15はポインティングデバイスであるマ
ウス、16は文字処理装置全体を制御するMPU、17
は後述する図3のフローチャートに係るプログラムを記
憶したり、キーボード14から入力された文字、数字、
コマンドを記憶したり、ワーク領域として使われるメイ
ンメモリ、18はハードディスク装置、19はアドレス
バス、コントロールバス、データバスからなるシステム
バス、20はフロッピーディスクドライブ(FDドライ
ブ)、21はフロッピーディスク(FD)である。
In the figure, 11 is a display device for displaying characters, figures, etc., 12 is a VRAM for storing the display contents of the display device 11, 13 is a high resolution printer such as a laser beam printer, an ink jet printer, etc.
Reference numeral 4 is a keyboard for inputting characters such as characters and numbers, 15 is a mouse as a pointing device, 16 is an MPU for controlling the entire character processing device, 17
Stores the program according to the flowchart of FIG. 3 described later, and the characters, numbers input from the keyboard 14,
Main memory used for storing commands and used as a work area, 18 is a hard disk device, 19 is a system bus including an address bus, a control bus, and a data bus, 20 is a floppy disk drive (FD drive), and 21 is a floppy disk (FD). ).

【0010】図2は本発明に係る一実施例の文字処理装
置の外観図である。22はシステム・バス19やMPU
16や主メモリ17を内蔵した文書処理システムの本体
部である。11はCRTで、14はキーボード、15は
PD、20はFDドライブでありFD21がセットされ
て画像データや図形データや文字データや数値データを
FD21に書き込んだり、またFD21に記録されてい
る図形データや文字データや数値データを読み込んだり
する。また本発明は本文書処理システムにおいて実現さ
れるのはもちろんである。また、本発明を実現可能なプ
ログラムを記録されたFD21を他の文章処理装置のF
Dドライブ20にセットし、そのプログラムをハードデ
ィスク18へロードし、そのロードしたプログラムを実
行する。こうすることによって本発明は他の文字処理装
置においても実現可能である。
FIG. 2 is an external view of a character processing apparatus according to an embodiment of the present invention. 22 is the system bus 19 and MPU
16 is the main body of the document processing system including the main memory 16 and the main memory 17. Reference numeral 11 is a CRT, 14 is a keyboard, 15 is a PD, 20 is an FD drive, and FD21 is set to write image data, graphic data, character data, and numerical data into FD21, and graphic data recorded in FD21. Or read character data and numerical data. The present invention is, of course, realized in the document processing system. In addition, the FD 21 in which a program that can implement the present invention is recorded is used as an F of another text processing device.
It is set in the D drive 20, the program is loaded into the hard disk 18, and the loaded program is executed. By doing so, the present invention can be implemented in other character processing devices.

【0011】図3は、本発明の動作を説明するフローチ
ャートである。
FIG. 3 is a flow chart for explaining the operation of the present invention.

【0012】図5に示されているようなあらかじめ入力
され表示さている文書の中から、文字列『It is
very fine today.』を字間を詰める文
字列としてマウス15、或はキーボード14を用いて選
択する(S31)。図5の51は指定された文字列が反
転表示されている例である。次に、字詰め設定処理をマ
ウス15、或はキーボード14を用いて選択すると、図
5の52に示す字詰設定ウインドウを表示する(S3
2)。次に、所望の字詰量をキーボード14によりポイ
ント単位で入力し、実行53をマウス15、或はキーボ
ード14を用いて選択すると字詰め量が装置本体に入力
され、図4の41の位置に記憶される。(S33)。な
お、このウインドウを表示することにより字詰め量の設
定が容易になる。次に、字詰め量の入力にともない内部
管理されている文字データは、文字列『It is v
ery fine today.』をはさむようにし
て、コマンドが生成される。図5は、主メモリ17の一
部を示すものであり、文字列をはさむようにして、コマ
ンドが記憶される例である。
From the document which is input and displayed in advance as shown in FIG. 5, the character string "It is
very fine today. Is selected as a character string for closing the space between characters using the mouse 15 or the keyboard 14 (S31). Reference numeral 51 in FIG. 5 is an example in which the designated character string is highlighted. Next, when the character-filling setting process is selected using the mouse 15 or the keyboard 14, the character-filling setting window 52 shown in FIG. 5 is displayed (S3).
2). Next, the desired amount of characters is input by the keyboard 14 in units of points, and when the execution 53 is selected using the mouse 15 or the keyboard 14, the amount of characters is input to the apparatus main body and stored at position 41 in FIG. To be done. (S33). Displaying this window makes it easier to set the amount of padding. Next, the character data that is internally managed as the amount of padding is input is the character string "It is v
ery fine today. , And a command is generated. FIG. 5 shows a part of the main memory 17, and is an example in which a command is stored by sandwiching a character string.

【0013】この入力された字詰め量に対して、MPU
は文字の配置を計算する。
[0013] The MPU with respect to the input character filling amount
Calculates the layout of the characters.

【0014】まず、選択された文字列の文字が一文字目
か否かを判別し(S34)、出力すべき文字が一文字目
なら、その文字のVRAM12上の出力位置は現在のV
RAM12上の出力位置とする(S35)。二文字目以
降は、直前の文字のVRAM12上の出力位置に、直前
の文字の文字幅をたしたものから、S33で指定された
字詰量をひいた値をその文字のVRAM12上の出力位
置とする(S36)。その時、直前の文字の文字幅よ
り、指定された字詰量の値の方が大きい場合(S3
7)、直前の文字より前に位置することになり、その時
には、直前の出力位置と同じ値を以て、その文字のVR
AM12上の出力位置とする(S38)。それを、選択
された文字すべてにおいて行う(S39)。
First, it is judged whether or not the character of the selected character string is the first character (S34), and if the character to be output is the first character, the output position of that character on the VRAM 12 is the current V.
The output position on the RAM 12 is set (S35). For the second and subsequent characters, a value obtained by subtracting the character width of the immediately preceding character from the output position of the immediately preceding character on the VRAM 12 and subtracting the filling amount specified in S33 is the output position of the character on the VRAM 12. (S36). At that time, if the value of the specified filling amount is larger than the character width of the immediately preceding character (S3
7), the character is positioned before the character immediately before, and at that time, the VR of that character is set with the same value as the output position immediately before.
The output position on the AM 12 is set (S38). This is performed for all the selected characters (S39).

【0015】なお、途中で自然に改行される場合や、改
行コマンドで強制的に改行する場合、行頭の文字を、選
択する文字列の一文字目と同様に扱い、S34からの処
理を行えば良い。
In the case of a natural line feed in the middle of the line or forcible line feed by a line feed command, the character at the beginning of the line may be treated in the same manner as the first character of the character string to be selected, and the processing from S34 may be performed. .

【0016】なお、S31とS32は入れ替えて行うこ
ともできる。
The steps S31 and S32 can be interchanged.

【0017】また、図6に示したように、比較的字面が
小さい文字は、文字間がせばまった方が綺麗にレイアウ
トされる。図7は、図6に加えて、『It will
bevery fine tomorrow to
o.』の文字列を字詰め設定した図である。字詰め設定
した文字列の先頭に、マーク61を表示することによ
り、字詰め設定してあることがわかるようになってい
る。
Further, as shown in FIG. 6, characters having a relatively small character surface are laid out neatly when the spaces between the characters are narrowed. In addition to FIG. 6, FIG. 7 shows “It will
every day fine tomorrow to
o. It is the figure which set the character string of "." By displaying the mark 61 at the beginning of the character string for which the character packing is set, it is possible to know that the character packing is set.

【0018】なお、S37の処理により、例えば図8の
ように3つの文字を指定し、字詰め量として25.5ポ
を設定することにより、図9のように3つの文字を重ね
て出力することもできる。
By the processing of S37, for example, by designating three characters as shown in FIG. 8 and setting the character packing amount as 25.5 points, three characters are superimposed and output as shown in FIG. You can also

【0019】以上説明したように、文字間の値をマイナ
スに設定できるような字詰コマンドにより、今までにな
かったようなレイアウトの文字列を簡単に作成すること
ができるようなソフトウェアを搭載した文字処理装置を
提供できる。
As described above, software for loading a character string having a layout that has never existed is easily installed by using a padding command that can set the value between characters to a negative value. A character processing device can be provided.

【0020】[0020]

【発明の効果】以上説明したように、本発明によれば、
指定された文字列の字間を簡単に詰めることができる文
字処理装置及び方法を提供することができる。
As described above, according to the present invention,
It is possible to provide a character processing device and method that can easily reduce the space between specified character strings.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例を表す文字処理装置全体のブ
ロック図である。
FIG. 1 is a block diagram of an entire character processing device that represents an embodiment of the present invention.

【図2】本発明の一実施例を表す文字処理装置の外観図
である。
FIG. 2 is an external view of a character processing device that represents an embodiment of the present invention.

【図3】実施例の字詰め処理のフローチャートである。FIG. 3 is a flowchart of a character closing process according to the embodiment.

【図4】文字データの構造を説明する図である。FIG. 4 is a diagram illustrating a structure of character data.

【図5】字詰設定する文字列を選択した表示例を示す図
である。
FIG. 5 is a diagram showing a display example in which a character string to be set for padding is selected.

【図6】字詰設定を行った後の表示例を示す図である。FIG. 6 is a diagram showing a display example after the setting of the character closing is performed.

【図7】字詰設定を行った後の表示例を示す図である。FIG. 7 is a diagram showing a display example after setting the character closing setting.

【図8】字詰設定する文字列を選択した表示例を示す図
である。
FIG. 8 is a diagram showing a display example in which a character string to be set for closing characters is selected.

【図9】字詰設定を行った後の表示例を示す図である。FIG. 9 is a diagram showing a display example after the setting of character closing is performed.

【符号の説明】[Explanation of symbols]

11 CRT 12 VRAM 13 プリンタ 14 キーボード 15 ポインティングデバイス 16 MPU 17 メインメモリ 18 ハードディスク装置 19 システムバス 20 フロッピーディスクドライブ 21 フロッピーディスク(FD) 22 文字処理装置 54 マウスカーソル 61 キーボードカーソル 11 CRT 12 VRAM 13 Printer 14 Keyboard 15 Pointing Device 16 MPU 17 Main Memory 18 Hard Disk Device 19 System Bus 20 Floppy Disk Drive 21 Floppy Disk (FD) 22 Character Processing Device 54 Mouse Cursor 61 Keyboard Cursor

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 入力された文字列を表示する表示手段
と、 前記表示される文字列の内、所望の文字列を指定する指
定手段と、 字詰量を設定する字詰量設定手段と、 前記字詰量設定手段によって設定された字詰量に基づい
て、前記指定された文字列の出力位置を導出する出力位
置導出手段と、 前記出力位置導出手段によって導出された出力位置に文
字を表示すべく前記表示手段を制御する制御手段と、 を具備することを特徴とする文字処理装置。
1. Display means for displaying an input character string, designating means for designating a desired character string among the displayed character strings, and padding amount setting means for setting a padding amount. Output position deriving means for deriving an output position of the designated character string based on the character filling amount set by the character filling amount setting means, and displaying a character at the output position derived by the output position deriving means. In order to do so, a control means for controlling the display means is provided.
【請求項2】 前記指定された文字列が字詰処理がされ
ていることを示すマークを表示することを特徴とする請
求項1記載の文字処理装置。
2. The character processing device according to claim 1, wherein a mark indicating that the specified character string has been subjected to a character closing process is displayed.
【請求項3】 前記字詰量を設定する際に字詰量設定ウ
インドウを表示することを特徴とする請求項1記載の文
字処理装置。
3. The character processing device according to claim 1, wherein a character padding amount setting window is displayed when the character padding amount is set.
【請求項4】 前記指定された文字列の出力位置を導出
する際に、前の文字の位置より前に出力すると判定され
た場合、前記前の文字の出力位置をその文字の出力位置
とすることを特徴とする請求項1記載の文字処理装置。
4. When deriving the output position of the designated character string, when it is determined that the output is performed before the position of the previous character, the output position of the previous character is set as the output position of the character. The character processing apparatus according to claim 1, wherein the character processing apparatus is a character processing apparatus.
【請求項5】 入力された文字列を表示する表示手段を
利用する文字処理方法であって、 前記表示される文字列の内、所望の文字列を指定し、 字詰量を設定し、 前記設定された字詰量に基づいて、前記指定された文字
列の出力位置を導出し、 前記導出された出力位置に文字を表示すべく前記表示手
段を制御することを特徴とする文字処理方法。
5. A character processing method using a display means for displaying an input character string, wherein a desired character string is designated from among the displayed character strings, and a filling amount is set. A character processing method comprising: deriving an output position of the designated character string based on the set amount of padding and controlling the display unit to display a character at the derived output position.
【請求項6】 前記指定された文字列が字詰処理がされ
ていることを示すマークを表示することを特徴とする請
求項5記載の文字処理方法。
6. The character processing method according to claim 5, further comprising displaying a mark indicating that the designated character string has been subjected to a character closing process.
【請求項7】 前記字詰量を設定する際に、字詰量設定
ウインドウを表示することを特徴とする請求項5記載の
文字処理方法。
7. The character processing method according to claim 5, wherein a character padding amount setting window is displayed when the character padding amount is set.
【請求項8】 前記指定された文字列の出力位置を導出
する際に、前の文字の位置より前に出力すると判定され
た場合、前記前の文字の出力位置をその文字の出力位置
とすることを特徴とする請求項5記載の文字処理方法。
8. When deriving the output position of the designated character string, when it is determined that the output is performed before the position of the previous character, the output position of the previous character is set as the output position of the character. The character processing method according to claim 5, wherein:
JP6119973A 1994-06-01 1994-06-01 Device and method for processing character Pending JPH07325810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6119973A JPH07325810A (en) 1994-06-01 1994-06-01 Device and method for processing character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6119973A JPH07325810A (en) 1994-06-01 1994-06-01 Device and method for processing character

Publications (1)

Publication Number Publication Date
JPH07325810A true JPH07325810A (en) 1995-12-12

Family

ID=14774783

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6119973A Pending JPH07325810A (en) 1994-06-01 1994-06-01 Device and method for processing character

Country Status (1)

Country Link
JP (1) JPH07325810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013095064A (en) * 2011-11-01 2013-05-20 Ricoh Co Ltd Image forming apparatus, image forming system, method of processing image data to be output, program, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013095064A (en) * 2011-11-01 2013-05-20 Ricoh Co Ltd Image forming apparatus, image forming system, method of processing image data to be output, program, and recording medium

Similar Documents

Publication Publication Date Title
US4503515A (en) Footnote assembly management
US4648067A (en) Footnote management for display and printing
US4648071A (en) Designation of footnotes and footnote reference
JP2741750B2 (en) Image processing device
EP0398477B1 (en) Text processing system using text cells
JPH07325810A (en) Device and method for processing character
JPS62229463A (en) Document processor
EP0094516B1 (en) Footnote formatting
EP0094514A2 (en) Designation of footnotes and footnote references
JPH0346830B2 (en)
JPH04256065A (en) Document editing device
JP2906643B2 (en) Document processing device
JP2728906B2 (en) Character processor
JPH077404B2 (en) Document processor
JP3133385B2 (en) Character editing system
JPH04149769A (en) Ruby editing processor
JP3046429B2 (en) Document processing apparatus and document processing method
JP2828591B2 (en) Typesetting equipment
JP2969920B2 (en) Document processing device
JP2978178B2 (en) Document creation apparatus and control method thereof
JPH0675948A (en) Document processor
JPH05135034A (en) Document processing method
JPH07200562A (en) Document format setting method
JPH0235346B2 (en)
JPH0589096A (en) Word processing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040316