JPH0552273B2 - - Google Patents

Info

Publication number
JPH0552273B2
JPH0552273B2 JP61142520A JP14252086A JPH0552273B2 JP H0552273 B2 JPH0552273 B2 JP H0552273B2 JP 61142520 A JP61142520 A JP 61142520A JP 14252086 A JP14252086 A JP 14252086A JP H0552273 B2 JPH0552273 B2 JP H0552273B2
Authority
JP
Japan
Prior art keywords
character
character string
data
buffer
original
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
Application number
JP61142520A
Other languages
Japanese (ja)
Other versions
JPS62299363A (en
Inventor
Mayumi Kanari
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61142520A priority Critical patent/JPS62299363A/en
Publication of JPS62299363A publication Critical patent/JPS62299363A/en
Publication of JPH0552273B2 publication Critical patent/JPH0552273B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 [概要] 文字列(例えば文章など)を編集して印刷出力
する装置において、文字列に他の文字列を挿入し
て印刷する場合、従来は予め定められた大きさ以
外の文字を挿入したり、挿入した文字が小さいた
め生じた余白を詰める等の処理を行なうことが困
難であり、そのため、文字列がスキツプ情報を持
つていたり、同一文字列に、他の大きさのそれぞ
れ異なる文字を頻繁に挿入したり、また、そのと
き生じた余白を詰める等の処理を行なうことは制
御が非常に複雑になつて事実上、実現が不可能で
あるという問題点があつた。本発明はこのような
従来の問題点を解決するため、文字列中の各文字
ごとに水平方向の位置を示す情報を保有せしめ、
文字を移動を生ずるような処理の都度、該情報を
更新することにより、常に印刷すべき文字の正確
な位置の認識を可能とする技術を開示している。
[Detailed Description of the Invention] [Summary] In a device that edits and prints out a character string (for example, a text), when inserting another character string into the character string and printing it, conventionally It is difficult to insert characters other than Frequently inserting characters of different sizes and processing such as closing the margins that occur at that time has the problem that control becomes extremely complicated and is virtually impossible to implement. Ta. In order to solve these conventional problems, the present invention stores information indicating the horizontal position of each character in a character string,
The present invention discloses a technology that enables accurate recognition of the position of characters to be printed at all times by updating the information each time a process that causes character movement occurs.

[産業上の利用分野] 本発明は、文字の印刷位置制御に関するもので
あつて、特にスキツプデータを含む文字列中に任
意の大きさの他の文字や文字列を挿入することが
可能で、また、その後の文字列の体裁を容易に整
えることができる制御方法に係る。
[Industrial Application Field] The present invention relates to character printing position control, and in particular, it is possible to insert other characters or character strings of arbitrary size into a character string containing skip data, and , relates to a control method that can easily arrange the appearance of subsequent character strings.

[従来の技術] 固定部分の文字列のフオーマツトを定めておい
て、これに可変部分の文字または文字列を挿入す
る例えば集計表のような印刷を行なう場合には、
固定部分の文字列をオリジナルデータとして保有
していて、一方可変部分を修飾データとして持
ち、前記オリジナルデータに修飾データを重畳し
て印刷すべき文字列を生成する。このとき、オリ
ジナルデータの文字列についての移動を生ずるこ
とがあるが、従来はその制御はハードウエア的に
各文字の領域(位置)を管理する方式が採られて
いた。
[Prior Art] For example, when printing a tally table, etc., the format of a character string in a fixed part is determined and characters or character strings in a variable part are inserted into this format.
The fixed part of the character string is held as original data, while the variable part is held as modification data, and the modification data is superimposed on the original data to generate a character string to be printed. At this time, movement of the character string of the original data may occur, but conventionally this control has been controlled by managing the area (position) of each character using hardware.

[発明が解決しようとする問題点] 近年、印刷に係る文章の処理について、複雑で
多様なものが要求されるようになつて来ている。
例えば、挿入する文字も任意の大きさのものが許
容されなければならず、また、同一文字列に何回
も文字を挿入する等の処理が必要であることがあ
る。このようなときは、文字列中の各文字の水平
方向の位置の移動が頻繁に発生し、その移動量も
一定しない。また、オリジナルデータの文字列が
マージ等のためのスキツプデータを含んでいる
と、一層、各文字位置の移動が激しい。
[Problems to be Solved by the Invention] In recent years, complex and diverse processing of text related to printing has been required.
For example, characters of any size must be allowed to be inserted, and it may be necessary to insert characters multiple times into the same character string. In such a case, the horizontal position of each character in the character string frequently moves, and the amount of movement is not constant. Furthermore, if the character string of the original data includes skip data for merging or the like, the movement of each character position is even more rapid.

これらに対して、従来の方式における文字位置
の管理は、上述したようにハードウエアによつて
行なわれていたため、頻繁に発生し、またその移
動量が一定しないような複雑な文字位置の変化に
追従できる制御を実行することは非常に困難であ
り、事実上その実現が不可能であるという問題点
があつた。
On the other hand, character position management in conventional methods is done by hardware as mentioned above, so complex changes in character position occur frequently and the amount of movement is not constant. There was a problem in that it was very difficult to execute control that could be followed, and it was virtually impossible to implement it.

本発明はこのような従来の問題点に鑑み、編集
に際する文字列の文字の複雑多様な移動に容易に
追従することが可能で、そのため、水平スキツプ
データを含むオリジナルデータへコピー修飾を行
なうことが可能な印刷装置の文字列編集に係る制
御手段を提供することを目的としている。
In view of these conventional problems, the present invention is capable of easily following the complex and various movements of characters in a character string during editing, and is therefore capable of copying modification to original data including horizontal skip data. It is an object of the present invention to provide a control means for character string editing of a printing device that is capable of editing character strings.

[問題点を解決するための手段] 本発明によれば、上記目的は特許請求の範囲に
記載のとおり、印刷すべき文字パターンをビツト
対応で格納するイメージメモリを有し、文字列中
の一部を他の文字列に置き換えて印刷を行う印刷
位置制御方法において、原文字列と原文字列の一
部を置き換えるべき文字列の、文字データについ
ては各文字の文字幅を示す情報を有し、文字列中
に含まれる水平スキツプデータには水平方向の位
置情報を有し、印刷のためイメージメモリに展開
するに先立つて文字例についての編集をするため
のバツフアに、原文字列と原文字列の一部を置き
替えるべき文字列とを格納するに際し、その都度
上記文字幅を表わす情報および水平方向の位置情
報を元に文字毎に左端からの相対位置情報を生成
して各文字に付加せしめることを特徴とする印刷
文字水平方向位置制御方法により達成される。
[Means for Solving the Problems] According to the present invention, the above object is achieved by having an image memory that stores a character pattern to be printed in bit correspondence. In a printing position control method that performs printing by replacing a part of the original character string with another character string, the character data of the original character string and the character string to be replaced with a part of the original character string has information indicating the character width of each character. , the horizontal skip data included in the character string has horizontal position information, and the original character string and the original character string are stored in a buffer for editing character examples before being expanded to the image memory for printing. When storing a character string in which a part of This is achieved by a method for controlling the horizontal position of printed characters, which is characterized in that:

[実施例] 第1図は本発明の1実施例のブロツク図であつ
て、1は制御部、2はメモリ、3はページバツフ
ア(PB)、4はページバツフア制御テーブル
(PBCT)、5はコピー修飾制御テーブル
(CMCT)、6はコピー修飾バツフア(CMB)、
7はバツフアメモリ、8はイメージメモリを表し
ている。
[Embodiment] FIG. 1 is a block diagram of an embodiment of the present invention, in which 1 is a control unit, 2 is a memory, 3 is a page buffer (PB), 4 is a page buffer control table (PBCT), and 5 is a copy modification. control table (CMCT), 6 is copy modification buffer (CMB),
7 represents a buffer memory, and 8 represents an image memory.

第2図は実施例のバツフアと制御テーブルにつ
いての詳細を示す図で、aはコピー修飾制御テー
ブル(CMCT)の内容と該テーブルとコピー修
飾バツフア(CMB)との関係、および、ページ
バツフア制御テーブル(PBCT)の内容と該テー
ブルとページバツフア(PB)との関係を示して
おり、bはコピー修飾バツフア(CMB)のデー
タ形式、cはページバツフア(PB)のデータ形
式を示している。
FIG. 2 is a diagram showing details of the buffer and control table of the embodiment, and a shows the contents of the copy modification control table (CMCT), the relationship between this table and the copy modification buffer (CMB), and the page buffer control table (CMCT). PBCT) and the relationship between the table and the page buffer (PB), b indicates the data format of the copy modification buffer (CMB), and c indicates the data format of the page buffer (PB).

第2図aにおける3〜6は第1図と同一であ
り、またbおよびcにおける文字データ群は文字
データ以外に水平スキツプデータを含むものであ
る。
Numbers 3 to 6 in FIG. 2a are the same as those in FIG. 1, and the character data groups in b and c include horizontal skip data in addition to character data.

第1図において、オリジナルデータ(元となる
文章などの文字列)は、1頁単位でメモリ2内の
オリジナルデータ領域3に格納され、1行ごとに
バツフアメモリ7上で他の文字や文字列などを挿
入して編集されたのちイメージメモリ8にドツト
パターンとして展開され、これが出力されて印刷
される。
In FIG. 1, original data (character strings such as original sentences) is stored in the original data area 3 in the memory 2 on a page-by-page basis, and other characters and character strings are stored in the buffer memory 7 line by line. After being inserted and edited, it is developed as a dot pattern in the image memory 8, and this is output and printed.

このとき、ページバツフア3に格納されている
オリジナルデータに挿入する文字はコピー修飾デ
ータとしてコピー修飾バツフア6に格納されてい
る。これらの各データ領域はそれぞれ第2図aに
示すように、それぞれのバツフアに対応する制御
テーブル(CMCT5、RBCT4)がその先頭ア
ドレスを管理している。これらの制御テーブル
CMCT5およびRBCT4は更に第2図aに示す
ような各種の制御情報を持つていて、これらによ
りコピー修飾が制御される。
At this time, the characters to be inserted into the original data stored in the page buffer 3 are stored in the copy modification buffer 6 as copy modification data. As shown in FIG. 2a, each of these data areas has its start address managed by a control table (CMCT5, RBCT4) corresponding to each buffer. These control tables
CMCT5 and RBCT4 further have various control information as shown in FIG. 2a, and copy modification is controlled by these.

第3図はデータ形式の例を説明する図であつ
て、aは文字データ(6バイト)の形式を示して
おり、bは水平スキツプデータ(6バイト)の形
式を示している。第3図において、aにおける
HPSは文字幅を表すものであり、また、CGAは
文字パターンアドレスを示すものである。一方、
bにおけるHPSは左端からのドツト位置である。
FIG. 3 is a diagram for explaining an example of a data format, where a indicates the format of character data (6 bytes), and b indicates the format of horizontal skip data (6 bytes). In Figure 3, at a
HPS represents character width, and CGA represents character pattern address. on the other hand,
HPS in b is the dot position from the left end.

そして、コピー修飾は次のような処理手順によ
つて行なわれる。
Copy modification is performed by the following processing procedure.

バツフアメモリに一行分の空白文字データと
各々の空白文字データについて印刷する位置を
示す左端からの相対位置(HSP値)を算出し
て設定する。
Calculate and set the relative position from the left end (HSP value) indicating the print position for one line of blank character data and each blank character data in the buffer memory.

次にPBデータの各々の文字データをバツフ
アメモリに書き込む際、該文字の文字幅と該文
字の左からの相対位置情報に基づいて、そのす
ぐ後の文字の左端からの相対位置(HSP値)
を求め、該バツフアメモリに格納する。
Next, when writing each character data of PB data to the buffer memory, based on the character width of the character and the relative position information from the left of the character, the relative position from the left edge of the character immediately following it (HSP value)
is determined and stored in the buffer memory.

コピー修飾の必要な行について、コピー修飾
制御テーブルに基いて、置き換えるべき文字列
データの各文字データをバツフアメモリー内の
対応する場所に格納する際、該文字の文字幅と
該文字の左からの相対位置情報に基づいて、そ
のすぐ後の文字の左端からの相対位置(HSP
値)を求め、該バツフアメモリに格納する。
For lines that require copy modification, when storing each character data of the character string data to be replaced in the corresponding location in the buffer memory based on the copy modification control table, the character width of the character and from the left of the character Based on the relative position information of
value) and stores it in the buffer memory.

このように、本発明においてはバツフアメモリ
上での文字列の編集に際し、常に各文字の水平位
置情報を正しく維持するごとく制御しているの
で、文字列がスキツプデータを含んでいても、ま
た、元の文字列と大きさの異なる文字を何回も挿
入したような場合で文字の位置が複雑に変化する
ときでも、各文字の位置が明確になり、文字列を
正確にイメージメモリ上に展開することができる
から、文字列についての多様な編集が可能にな
る。
In this way, in the present invention, when editing a character string on the buffer memory, the horizontal position information of each character is always maintained correctly, so even if the character string contains skip data, the original Even when characters with different sizes are inserted many times and the position of the characters changes in a complex manner, the position of each character is clear and the character string can be accurately expanded into image memory. This allows for a variety of editing of character strings.

[発明の効果] 以上説明したように本発明によれば印刷すべき
文字列の編集に際し、該文字列中の各文字ごとに
位置情報を付し、これを、編集等によつて文字の
位置が移動する条件が発生する都度、更新する制
御を行なつているので、文字の印刷すべき位置の
管理が確実に行なえるため、従来不可能であつた
文字列についての複雑な編集が容易に行なえる利
点があり、これによつて、高性能の印刷装置を実
現し得るから効果は大きい。
[Effects of the Invention] As explained above, according to the present invention, when editing a character string to be printed, position information is attached to each character in the character string, and this is used to determine the position of the character by editing etc. Since the control is performed to update each time a condition for moving occurs, the position where characters should be printed can be reliably managed, making complex editing of character strings that was previously impossible possible. There is an advantage that this method can be used, and a high-performance printing device can be realized, so the effect is great.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の1実施例のブロツク図、第2
図は実施例のバツフアと制御テーブルについての
詳細を示す図、第3図はデータ形式の例を説明す
る図である。 1……制御部、2……メモリ、3……ページバ
ツフア、4……ページバツフア制御テーブル、5
……コピー修飾制御テーブル、6……コピー修飾
バツフア、7……バツフアメモリ、8……イメー
ジメモリ。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG.
The figure is a diagram showing details of the buffer and control table of the embodiment, and FIG. 3 is a diagram explaining an example of the data format. DESCRIPTION OF SYMBOLS 1... Control unit, 2... Memory, 3... Page buffer, 4... Page buffer control table, 5
...Copy modification control table, 6...Copy modification buffer, 7...Buffer memory, 8...Image memory.

Claims (1)

【特許請求の範囲】[Claims] 1 印刷すべき文字パターンをビツト対応で格納
するイメージメモリを有し、文字列中の一部を他
の文字列に置き換えて印刷を行う印刷位置制御方
法において、原文字列と原文字列の一部を置き換
えるべき文字列の、文字データについては各文字
の文字幅を示す情報を有し、文字列中に含まれる
水平スキツプデータには水平方向の位置情報を有
し、印刷のためイメージメモリーに展開するに先
立つて文字例についての編集をするためのバツフ
アに、原文字列と原文字列の一部を置き換えるべ
き文字列とを格納するに際し、その都度上記文字
幅を表わす情報および水平方向の位置情報を元に
文字毎に左端からの相対位置情報を生成して各文
字に付加せしめることを特徴とする印刷文字水平
方向位置制御方法。
1. In a printing position control method that has an image memory that stores character patterns to be printed in bit correspondence, and prints by replacing part of a character string with another character string, The character data of the character string to be replaced has information indicating the character width of each character, and the horizontal skip data included in the character string has horizontal position information, and is expanded to image memory for printing. When storing the original character string and the character string to replace a part of the original character string in a buffer for editing character examples before editing, the information representing the character width and the horizontal position are stored each time. A method for controlling the horizontal position of printed characters, characterized in that relative position information from the left end of each character is generated based on information and added to each character.
JP61142520A 1986-06-18 1986-06-18 Controlling system for horizontal position of character to be printed Granted JPS62299363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61142520A JPS62299363A (en) 1986-06-18 1986-06-18 Controlling system for horizontal position of character to be printed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61142520A JPS62299363A (en) 1986-06-18 1986-06-18 Controlling system for horizontal position of character to be printed

Publications (2)

Publication Number Publication Date
JPS62299363A JPS62299363A (en) 1987-12-26
JPH0552273B2 true JPH0552273B2 (en) 1993-08-04

Family

ID=15317266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61142520A Granted JPS62299363A (en) 1986-06-18 1986-06-18 Controlling system for horizontal position of character to be printed

Country Status (1)

Country Link
JP (1) JPS62299363A (en)

Also Published As

Publication number Publication date
JPS62299363A (en) 1987-12-26

Similar Documents

Publication Publication Date Title
US4470129A (en) Page modification method in a printer subsystem of the partial page buffer composing type
JPH0552273B2 (en)
EP0090802A1 (en) A page modification method in a printer subsystem of the partial page buffer composing type.
JP3246142B2 (en) Printing control device
JP2550562B2 (en) Character display device
JPH01190465A (en) Character output device by utilizing vector font reproduction
JP3017363B2 (en) Printing equipment
JP2626769B2 (en) Output control device and method
JPS63100872A (en) Hard copy system for display screen
JPH04135772A (en) Image data forming device
JP2933222B2 (en) Document processing device
JPS61158384A (en) Character processor
JPH08161308A (en) Document processor
JPH05101043A (en) Indent control system for document processor
JPS63304365A (en) Text data editing/output system for multi-media editing/ output device
JPS60114972A (en) Form format forming device
JPS62284777A (en) Printing controlling system for variable line feed pitch business form
JPH03250362A (en) Document proofreading device
JPS59123037A (en) Indent control system of document processor
JPH02297172A (en) Document processor
JPH04246570A (en) Printer
JPS6320621A (en) Editing printer
JPH0433161A (en) Document processor
JPS63298664A (en) Data editing device
JPH0749848A (en) Word processor