JPH07200214A - Printer control mechanism - Google Patents

Printer control mechanism

Info

Publication number
JPH07200214A
JPH07200214A JP5355492A JP35549293A JPH07200214A JP H07200214 A JPH07200214 A JP H07200214A JP 5355492 A JP5355492 A JP 5355492A JP 35549293 A JP35549293 A JP 35549293A JP H07200214 A JPH07200214 A JP H07200214A
Authority
JP
Japan
Prior art keywords
printer
job
external character
code
font
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.)
Granted
Application number
JP5355492A
Other languages
Japanese (ja)
Other versions
JP2778445B2 (en
Inventor
Yoshiyuki Yatsu
義之 矢津
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP5355492A priority Critical patent/JP2778445B2/en
Publication of JPH07200214A publication Critical patent/JPH07200214A/en
Application granted granted Critical
Publication of JP2778445B2 publication Critical patent/JP2778445B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

(57)【要約】 【目的】 一台のプリンタ装置を複数のユーザで共有す
るコンピュータネットワークシステムにおいて、外字情
報等のユーザ固有の多くの情報をプリンタサーバに伝え
ることが可能なプリンタの制御機構を提供すること。 【構成】 プリンタ利用要求をプリントジョブに付与し
スプールディレクトリに蓄えるクライアントフィルタ機
構と、プリンタ利用要求を解釈しコード変換を行なって
プリンタに印字を行なわせるサーバフィルタ機構と、ジ
ョブの発生を知らせるスプール機構と、プリントジョブ
を自システムのプリンタに出力する場合サーバフィルタ
機構を起動しネットワーク上の他のワークステーション
のプリンタに出力する場合該他ワークステーションシス
テムのプリントシステム制御機構に通知しジョブ受信機
構にジョブを転送するジョブ送出制御機構と、他のワー
クステーションのジョブ送出機構から転送されるジョブ
を受信するジョブ受信機構と、ジョブ発生通知を受けた
ときジョブ送出機構を起動しジョブ転送要求の通知を受
けたときジョブ受信機構を起動するプリントシステム制
御機構を備える。
(57) [Abstract] [Purpose] In a computer network system in which one printer is shared by a plurality of users, a printer control mechanism capable of transmitting a large amount of user-specific information such as external character information to a printer server is provided. To provide. [Structure] A client filter mechanism for adding a printer use request to a print job and storing it in a spool directory, a server filter mechanism for interpreting the printer use request, performing code conversion and printing to the printer, and a spool mechanism for notifying the occurrence of a job When a print job is output to the printer of the local system, when the server filter mechanism is activated and when it is output to the printer of another workstation on the network, the print system control mechanism of the other workstation system is notified, and the job reception mechanism is notified of the job. A job sending control mechanism that transfers jobs, a job receiving mechanism that receives jobs transferred from the job sending mechanism of another workstation, and a job sending mechanism that starts when a job occurrence notification is received and receives a job transfer request notification. When receiving a job A print system control mechanism for activating the mechanism is provided.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ネットワークで接続さ
れたコンピュータシステム間で、プリンタを共有する場
合の、表示する文字と印字する文字とを一致させ、かつ
プリンタの外字登録機能を効率的に使用するためのプリ
ンタ制御機構に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention, when sharing a printer between computer systems connected by a network, matches displayed characters with printed characters, and efficiently implements the printer's external character registration function. A printer control mechanism for use.

【0002】[0002]

【従来の技術】セントロニクスインターフェースのよう
に比較的低速のデータ受信インターフェースを持つプリ
ンタでは、装置内部にフォント(文字のビットマップデ
ータ)を持っており、それぞれのフォントごとに1バイ
トまたは2バイトのコードが対応している。そして、プ
リンタ内部において対応するものが無いコードを当該プ
リンタの外字と呼ぶ。
2. Description of the Related Art A printer having a relatively low-speed data receiving interface such as the Centronics interface has a font (character bitmap data) inside the device, and each font has a 1-byte or 2-byte code. Is supported. A code that does not correspond to the inside of the printer is called an external character of the printer.

【0003】近年のプリンタでは、ほとんどのものが、
JISの第1、第2水準の文字をプリンタ内に持ってい
る。したがって、このようなプリンタでは、JIS第
1、第2水準以外の文字は外字となる。同様に、JIS
の第1水準までの文字しか持たないプリンタにとって
は、JIS第1水準以外の文字は外字となる。すなわ
ち、このようなプリンタではJIS第2水準の文字も外
字となる。
Most printers in recent years are
It has JIS first and second level characters in the printer. Therefore, in such a printer, characters other than the JIS first and second levels are external characters. Similarly, JIS
For a printer having only the characters up to the first level of, the characters other than the JIS first level are external characters. That is, in such a printer, JIS level 2 characters are also external characters.

【0004】また、プリンタ装置には、このような外字
コードと対応するフォントをあわせて記憶するメモリを
持ち、一度記憶させた後は、当該コードを送ると、プリ
ンタ装置は既に記憶しているフォントを使用して外字を
印字する機能を持つものがある。これをプリンタの外字
登録機能と呼ぶ。
Further, the printer device has a memory for storing the font corresponding to such an external character code together, and after storing once, when the code is sent, the printer device stores the font already stored. Some have the ability to print external characters using. This is called the external character registration function of the printer.

【0005】コードとフォントの対応は、外字について
は、必ずしも各種のプリンタで一致しているものではな
い.JIS規格のフォントでも時期(年度)により相違
が有り、プリンタの種類が異なれば、同じコードでも印
字フォントが異なる場合がある。こういったプリンタ機
種毎の相違を吸収するために、オペレーティングシステ
ムには、プリンタコード変換機構と呼ばれるプログラム
がプリンタの機種毎に用意されている。プリンタコード
変換機構は、通常プリンタの接続されているホストに存
在し、プリンタに印字する直前に印字コードをそれぞれ
のプリンタにあったコードに変換する。
Regarding the correspondence between the code and the font, the external character does not always match in various printers. Even JIS standard fonts differ depending on the time (year), and different types of printers may have different print fonts for the same code. In order to absorb such differences between printer models, a program called a printer code conversion mechanism is prepared in the operating system for each printer model. The printer code conversion mechanism normally exists in the host to which the printer is connected, and converts the print code into a code suitable for each printer immediately before printing on the printer.

【0006】以下に、現在知られているプリンタ外字の
機構とプリンタコード変換機構についての具体例を示
す。 (1)第1の例として、UNIX4.3BSDシステム
で提供されているlprプリンタサービスがある。これ
には、サーバクライアントモデルを使用したlprプリ
ンとサービスシステムのプログラムの構造が述べられて
いる。このプリントサービスにおいて、プリンタコード
変換処理は、ジョブがどのホストまたはユーザから送ら
れてきたものかといった情報に依存することなく単にプ
リンタの機種に応じた変換のみを行なっている。一方、
JIS規格の定義から外れた区域のコードには、利用者
が任意にデザインしたフォントを設定して使用すること
ができるため、同じコードでも各ワークステーションの
表示は互いに異なっている可能性がある。このような場
合、本方式では、少なくとも一方のワークステーション
において、表示フォントと印字フォントとが一致しな
い。外字に関する機構に限らず、本方式は、クライアン
トから多くの利用者固有のフォンと情報をプリンタサー
バに通知するには不適当であった。
Specific examples of the currently known printer external character mechanism and printer code conversion mechanism are shown below. (1) As a first example, there is the lpr printer service provided by the UNIX 4.3 BSD system. It describes the program structure of the lpr print and service system using the server-client model. In this print service, the printer code conversion process simply performs conversion according to the printer model without depending on information such as which host or user sent the job. on the other hand,
For the code in the area outside the definition of the JIS standard, the font arbitrarily designed by the user can be set and used, so that even if the same code is used, the display on each workstation may be different from each other. In such a case, in this method, the display font and the print font do not match in at least one workstation. Not only the mechanism related to external characters, but this method is not suitable for notifying the printer server of many user-specific phones and information from the client.

【0007】(2)第2の例として、外字管理テーブル
を持ち、既に登録済みの外字が現れると出現頻度にした
がって優先順位を変え、該変更済み優先順位をマーク
し、未登録の外字が現れると外字管理テーブル中で優先
度の最も低い外字コードが登録された情報フィールドに
登録して、最も高い優先順位を割り付けるという方式が
ある。本方式では、使用頻度の低い外字が次々と現れる
と、ジョブ全体の中では使用頻度が多い外字であって
も、最近に出現していないと、ジョブ中にただ一度しか
現れない外字に優先順位で負けてしまい、外字登録領域
から追い出されてしまうおそれがある。
(2) As a second example, the external character management table is provided, and when an already registered external character appears, the priority order is changed according to the appearance frequency, the changed priority order is marked, and an unregistered external character appears. In the external character management table, the external character code having the lowest priority is registered in the information field, and the highest priority is assigned. In this method, when external characters that are used infrequently appear one after another, even if they are frequently used in the entire job, if they have not appeared recently, the external character that appears only once in the job has priority. There is a risk that you will be lost and you will be kicked out of the external character registration area.

【0008】(3)第3の例として、プリンタ装置が外
字領域の管理を行なう方式がある。本方式では、ホスト
から送られたコードが外字であることをプリンタ装置が
判断し、ホストコンピュータに外字のダウンロードの要
求を行なう。プリンタ装置側に外字の使用カウンタを持
ち、外字領域がなくなったときには、使用頻度の低いも
のを優先的に消去し、より使用頻度の高いものを設定す
る。本方式では、プリンタ装置がホストコンピュータと
双方向通信できるものでなければならず、さらに外字の
ダウンロード要求やダウンロードを行なうプロトコルを
準備する必要がある。
(3) As a third example, there is a method in which the printer device manages the external character area. In this method, the printer device determines that the code sent from the host is an external character, and requests the host computer to download the external character. When the external character area is used up, the printer device has a counter for using external characters, and when the external character area is exhausted, the less frequently used one is preferentially erased and the more frequently used one is set. In this method, the printer device must be capable of bidirectional communication with the host computer, and it is necessary to prepare a protocol for requesting and downloading external characters.

【0009】(4)第4の例として、コンピュータ本体
から漢字フォントを得て、プリンタ装置に対してダウン
ロードする機構がある。本方式では、プリンタが接続さ
れたコンピュータの持つ外字フォントは一意であるのに
対し、ワークステーションごとの表示画面中の外字フォ
ントは一般的には複数であり、先に述べたSteven
seの論文の4.3BSD Printer Serv
iceの場合と同様の欠点を有する。
(4) As a fourth example, there is a mechanism for obtaining a Kanji font from the computer body and downloading it to the printer device. In this method, the external character font of the computer to which the printer is connected is unique, whereas the external character font on the display screen of each workstation is generally plural.
4.3 BSD Printer Serv of se paper
It has the same drawbacks as ice.

【0010】[0010]

【発明が解決しようとする課題】上述したように、従来
のプリンタ外字機構とプリンタコード変換機構について
は、それぞれ上述したように、各々の機構の構成に起因
する欠点があった。本発明の第1の目的は、上記従来の
欠点を解消し、一台のプリンタ装置を複数のユーザで共
有するコンピュータネットワークシステムにおいて、外
字情報等のユーザ固有の多くの情報をプリンタサーバに
伝えることが可能なプリンタの制御機構を提供すること
にある。
As described above, the conventional printer external character mechanism and printer code conversion mechanism have drawbacks due to their respective configurations as described above. A first object of the present invention is to solve the above-mentioned conventional drawbacks and transmit a lot of user-specific information such as external character information to a printer server in a computer network system in which one printer is shared by a plurality of users. It is to provide a printer control mechanism capable of performing the above.

【0011】また本発明の第2の目的は、外字の発生頻
度に応じたプリンタ装置の外字登録領域の効率的使用を
可能とすることにある。
A second object of the present invention is to enable efficient use of the external character registration area of the printer device according to the frequency of occurrence of external characters.

【0012】さらに本発明の第3の目的は、一方向の通
信機能しか持たないプリンタ装置や、外字登録機能を持
たないプリンタ装置においても外字の印字を可能とする
ことにある。
A third object of the present invention is to enable printing of external characters even in a printer device having only a one-way communication function or a printer device having no external character registration function.

【0013】[0013]

【課題を解決するための手段】上記の目的を達成するた
め、本発明のプリンタ制御機構は、特定のワークステー
ションに接続されたプリンタを、ネットワークで接続さ
れた複数のワークステーションコンピュータから、共有
して使用する運用形態を有するコンピュータネットワー
クシステムにおいて、プリンタ利用要求をプリントジョ
ブに付与し、スプールディレクトリに蓄えるクライアン
トフィルタ機構と、プリントジョブに付与されたプリン
タ利用要求を解釈し、プリンタ機種固有のコード変換を
行ない、プリンタに印字を行なわせるサーバフィルタ機
構と、クライアントフィルタ機構の起動後に、ジョブの
発生を知らせるスプール機構と、プリントジョブをスプ
ールディレクトリから取り出し、自システムのプリンタ
に出力する場合、サーバフィルタ機構を起動し、ネット
ワーク上の他のワークステーションのプリンタに出力す
る場合、該他ワークステーションシステムのプリントシ
ステム制御機構に通知し、該プリントシステム制御機構
から起動されたジョブ受信機構にジョブを転送するジョ
ブ送出制御機構と、他のワークステーションのジョブ送
出機構から転送されるジョブを受信してスプールし、自
身以外にジョブ制御機構が起動されていれば終了し、自
身以外にジョブ制御機構が起動されていなければ引き続
いて該スプールジョブを読み込んでサーバフィルタ機構
を起動するジョブ受信機構と、スプール機構からのジョ
ブ発生通知を受けたとき、ジョブ送出機構を起動し、リ
モートシステムのジョブ送出機構からのジョブ転送要求
の通知を受けたとき、ジョブ受信機構を起動するプリン
トシステム制御機構を備える構成としている。
To achieve the above object, the printer control mechanism of the present invention shares a printer connected to a specific workstation from a plurality of workstation computers connected by a network. In a computer network system that has an operating mode that is used as a printer, a printer use request is added to a print job, a client filter mechanism that stores in a spool directory, and a printer use request added to a print job are interpreted, and printer-specific code conversion is performed. When the server filter mechanism that causes the printer to print, the spool mechanism that notifies the occurrence of a job after the client filter mechanism is activated, and the print job is extracted from the spool directory and output to the printer of the local system, When the server filter mechanism is activated and the data is output to the printer of another workstation on the network, the print system control mechanism of the other workstation system is notified and the job is transferred to the job receiving mechanism activated from the print system control mechanism. The job transfer control mechanism that does this and the job transfer mechanism of another workstation receives the job and spools it. If a job control mechanism other than itself is started, it ends, and a job control mechanism other than itself starts. If not, the job reception mechanism that subsequently reads the spool job and activates the server filter mechanism, and when the job generation notification from the spool mechanism is received, the job transmission mechanism is activated, and the job transmission mechanism from the remote system is activated. When the job transfer request notification is received, the job receiver It has a configuration comprising a print system controls to start.

【0014】上記目的を達成する他のプリンタ制御機構
では、フォンとファイルをシステム内に備え、または、
ネットワークを介して参照可能なコンピュータシステム
上で、プリントジョブ毎に起動され、表示装置で使用さ
れるフォントに対応するコードを同等の形状のプリンタ
のフォンとコードに変換するプリンタ制御機構におい
て、プリンタに外字登録機能がある場合、外字コードと
カウンタを一つのエントリとし、登録可能外字数と同数
のエントリからなる外字登録テーブルを作成する外字登
録テーブル作成機構と、入力コードが、外字であるか否
かを判定する外字判定機構と、前記外字判定機構による
判定の結果、外字でない場合、表示フォントに対応する
プリンタのコードに変換するコード変換機構と、前記外
字判定機構で入力コードが外字であると判定され、かつ
プリンタに外字登録機能がある場合、上記外字登録テー
ブルを検索し、未登録外字であるか既登録外字であるか
を判定し、既登録外字であれば、該当するエントリのカ
ウンタをインクリメントし、未登録外字であれば、該カ
ウンタが最小であるエントリの中で最も古く登録したエ
ントリを破棄して園エントリに新しい外字コードとカウ
ンタの初期値を登録する外字登録テーブル検索更新機構
と、前記外字判定機構で入力コードが外字であると判定
され、かつ外字登録機能のないプリンタの場合、フォン
とファイルからフォントを取得し、出力ジョブ中の該コ
ードをフォントのピットマップデータに代えて出力し、
外字登録機能のあるプリンタの場合、未登録フォントを
フォントファイルから取得し、プリンタにダウンロード
する外字ロード機構を備える構成としている。
In another printer control mechanism that achieves the above object, a phone and a file are provided in the system, or
In a printer control mechanism that is activated for each print job on a computer system that can be referred to via a network and that converts the code corresponding to the font used on the display device into a printer phone and code of the same shape. If there is an external character registration function, the external character code and the counter are treated as one entry, and the external character registration table creation mechanism that creates an external character registration table consisting of the same number of entries as the number of external characters that can be registered, and whether the input code is an external character The external character determination mechanism that determines whether the input character is a foreign character, and the external character determination mechanism determines that the input code is an external character if the external character is not a foreign character. If the printer is registered and the printer has the external character registration function, the external character registration table above is searched and unregistered. It is determined whether it is an external character or a registered external character. If it is a registered external character, the counter of the corresponding entry is incremented, and if it is an unregistered external character, the oldest registered entry is the one with the smallest counter. The external character registration table search / update mechanism that discards the entered entry and registers the new external character code and the initial value of the counter in the garden entry, and the printer that has been determined by the external character determination mechanism that the input code is an external character and that does not have the external character registration function. In the case of, the font is acquired from the font and file, and the code in the output job is output instead of the pit map data of the font,
In the case of the printer having the external character registration function, the external character loading mechanism that acquires the unregistered font from the font file and downloads it to the printer is provided.

【0015】[0015]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は、本発明の一実施例に係るプリンタ
のフォントロード機構の構成を示すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a font loading mechanism of a printer according to an embodiment of the present invention.

【0016】本実施例において、図示のように、ワーク
ステーション100とワークステーション101とは、
ネットワーク140を介して接続されている。何れのワ
ークステーションにもプリンタ121、122が接続さ
れている。プリンタデータベース111、112は、各
々のワークステーションい、プリンタ接続の有無にかか
わらず一つずつ存在する。
In this embodiment, as shown, the workstation 100 and the workstation 101 are
It is connected via the network 140. Printers 121 and 122 are connected to both workstations. The printer databases 111 and 112 exist one by one regardless of whether each workstation or printer is connected or not.

【0017】プリンタデータベース111、112のデ
ータベースファイルの詳細を図3A、Bに示す。図3A
は、プリントジョブ発行側のプリンタデータベース、図
3Bは、プリントジョブ受信側のプリンタデータベース
である。これらのデータベースは、プリンタ名とそのプ
リンタに付随する情報で一つのエントリとなっている。
各エントリ中のアイテムは、それぞれ以下に示すような
意味を持っている。
Details of the database files of the printer databases 111 and 112 are shown in FIGS. 3A and 3B. Figure 3A
Is a printer database on the print job issuing side, and FIG. 3B is a printer database on the print job receiving side. Each of these databases is a single entry including a printer name and information associated with the printer.
The items in each entry have the following meanings.

【0018】1.lp=自システムに接続されたプリン
タデバイス。 2.rm=ネットワーク上の他のワークステーションに
接続されたプリンタの場合にのみ存在するホスト名。 3.rp=上記ホストのプリンタデータベースファイル
のエントリ名。 4.sd=スプールディレクトリ(スプールファイル上
のディレクトリ)。 5.LF=クライアントフィルタ名。 6.of=サーバフィルタ名。
1. lp = printer device connected to the system. 2. rm = host name that exists only for printers attached to other workstations on the network. 3. rp = entry name of printer database file of the above host. 4. sd = spool directory (directory on spool file). 5. LF = client filter name. 6. of = server filter name.

【0019】なお、上記のアイテムのうち、LF(クラ
イアントフィルタ)、of(サーバフィルタ)における
フィルタとは、情報にヘッダを付与または除去したり、
コード変換を行なったりするプログラムを言う。
Of the above items, the filters in LF (client filter) and of (server filter) are to add or remove a header to information,
A program that performs code conversion.

【0020】ワークステーション100から出力ファイ
ル130をワークステーション101のプリンタ122
に出力するときの各機構の関連を制御の流れ、データの
流れ、データの流れ、情報の授受に着目して説明する。
The output file 130 from the workstation 100 is transferred to the printer 122 of the workstation 101.
The relationship between the respective mechanisms when outputting to will be described focusing on the flow of control, the flow of data, the flow of data, and the exchange of information.

【0021】まず、プリンタ使用者は、以下のようにコ
マンドを実行し、スプール機構20を起動する。 コマンド: lpr −Prprinter file “lpr”はスプール機構20の起動コマンド、“rp
rinter”はプリンタデータベース111のエント
リ名、“file”はプリント出力するファイル130
である。
First, the printer user activates the spool mechanism 20 by executing a command as follows. Command: lpr-Prprinter file “lpr” is a command to start the spool mechanism 20, “rp”
“Printer” is the entry name of the printer database 111, and “file” is the file 130 to be printed out.
Is.

【0022】スプール機構20は、“rprinte
r”のエントリから以下の情報を読み取る。すなわち、
クライアントフィルタ“/usr/lib/lprfi
lters/udfhead”の指定があるので、スプ
ールディレクトリにジョブ130を格納する前に、該フ
ィルタにかけて各種情報を付与して“/var/spo
ol/lpd/rpr”ディレクトリに格納する。その
後、プリントシステム制御機構31にジョブの発行とプ
リンタ名“rprinter”を通知して終了する。
The spool mechanism 20 is a "rprinte".
Read the following information from the entry for r ″:
Client filter "/ usr / lib / lprfi
Since "lters / udfhead" is specified, before storing the job 130 in the spool directory, various information is added to the job 130 by applying the filter to "/ var / spo".
ol / lpd / rpr ”directory. Then, the print system control mechanism 31 is notified of the issue of the job and the printer name“ rpprinter ”, and the process is terminated.

【0023】また、以下のようなコマンドによりスプー
ル機構20を起動すると、 コマンド: lpr −Plprinter file
When the spool mechanism 20 is activated by the following command, the command: lpr -Plprinter file

【0024】“lprinter”のエントリをプリン
タデータベース111から探し、sdで指定されている
ディレクトリ“/var/spool/lpd/lp
r”にスプールし、プリントシステム制御機構31にジ
ョブの薄幸とプリンタ名“lprinter”を通知し
て終了する。
The printer database 111 is searched for an entry "lprinter", and the directory "/ var / pool / lpd / lp" specified by sd is searched.
Spooling to r ", the print system control mechanism 31 is notified of the unlucky job and the printer name" lprinter ", and the process ends.

【0025】クライアントフィルタ機構10では、実行
しているシステムの情報(例えば外字ファイルの所在)
をジョブにヘッダとして付与する。例えば、ワークステ
ーション100の表示装置で使用している外字フォント
ファイルのホスト名、ディレクトリ名、ファイル名等の
情報煮ついても同様である。
In the client filter mechanism 10, information on the system being executed (for example, the location of the external character file)
Is added to the job as a header. For example, the same applies to information such as the host name, directory name, and file name of the external character font file used in the display device of the workstation 100.

【0026】図6に、かかるヘッダ付与の例をあげる。
図示の例では、プリントジョブにホスト名“FontS
erver”、ディレクトリ名“/usr/shaGo
thic.8”という情報をヘッダとして付与してい
る。
FIG. 6 shows an example of such header addition.
In the illustrated example, the host name “FontS
"server", directory name "/ usr / shaGo"
thic. Information "8" is added as a header.

【0027】プリントシステム制御機構31、32は、
各々のワークステーションに常駐するプロセスである。
自システムのスプール機構20から要求を受けた場合
と、他システムのスプール機構30から要求を受けた場
合とで動作が異なるため、図は異なっているが、どちら
もそれぞれのワークステーションで同等の働きをする。
スプール機構20からジョブをスプールディレクトリに
格納したという通知を受けると、ジョブ送出機構40を
生成する。また、他ワークステーションのジョブ送出機
構40からジョブ転送要求を受けると、ジョブ受信機構
50を生成する。このように、このプロセスは常に外部
からの要求を待っており、要求があったらプロセスを生
成して後の処理は生成したプロセスに任せて、次の要求
を待つ。
The print system control mechanisms 31, 32 are
A process that resides on each workstation.
The operation is different depending on whether a request is received from the spool mechanism 20 of the own system or a request from the spool mechanism 30 of another system. Therefore, although the figures are different, both work equally in their respective workstations. do.
Upon receiving the notification from the spool mechanism 20 that the job has been stored in the spool directory, the job sending mechanism 40 is generated. When receiving a job transfer request from the job sending mechanism 40 of another workstation, the job receiving mechanism 50 is generated. In this way, this process always waits for a request from the outside, creates a process when there is a request, and leaves the subsequent processing to the created process, and waits for the next request.

【0028】ジョブ送出機構40は、プリントシステム
制御機構31から生成される。プリンタデータベース1
11を調べ、出力要求が、自システムに接続されたプリ
ンタへのものであるか、ネットワーク上の他ワークステ
ーションへのものであるかを判断する。
The job sending mechanism 40 is generated from the print system control mechanism 31. Printer database 1
11 is checked to determine whether the output request is to the printer connected to the system or to another workstation on the network.

【0029】スプール機構20からプリンタ名“lpr
inter”を得ると、図3Aの“lprinter”
の項目をデータベース111から探す。データベース中
“lp”の項目が存在するので、“/dev/lp”と
いう名称の自ワークステーションに接続されているプリ
ンタ121への要求であると判断し、指定されたクライ
アント“/usr/lib/lprfilters/p
cpr602”を起動し、出力処理を行なう。
From the spool mechanism 20 to the printer name "lpr"
When "inter" is obtained, "lprinter" in FIG. 3A is obtained.
Is searched from the database 111. Since the item “lp” exists in the database, it is determined that the request is to the printer 121 connected to the own workstation named “/ dev / lp”, and the designated client “/ usr / lib / lprfilters / p
The cpr 602 ″ is activated and output processing is performed.

【0030】また、スプール機構20からプリンタ名
“rprinter”を受け取ると、プリンタデータベ
ース111より、以下の情報を得る。 1.出力はホスト“PrintServer”に接続さ
れているプリンタに行なう。 2.PrintServerで使用するサーバフィルタ
を指定するエントリはプリンタ名である。 3.クライアント側でのスプールディレクトリは“/v
ar/spool/lpd/rpr”である。
When the printer name "rpprinter" is received from the spool mechanism 20, the following information is obtained from the printer database 111. 1. The output is performed to the printer connected to the host "PrintServer". 2. The entry that specifies the server filter used in PrintServer is the printer name. 3. The spool directory on the client side is "/ v
ar / pool / lpd / rpr ".

【0031】rmの項目が存在するので、ネットワーク
上のリモートワークステーション“PrintServ
er”に接続されたプリンタへの出力要求であると判断
される。そこでホスト“PrintServer”のプ
リンタシステム制御機構32にジョブを転送する旨の通
知をする。これを受けて、リモートワークステーション
“PrintServer”のプリントシステム制御機
構32がジョブ受信機構50を生成し、ジョブ送出機構
40は該ジョブ受信機構50と通信し、スプールディレ
クトリ“/var/spool/lpd/rpr”から
ジョブを取り出し、リモートシステム“PrintSe
rver”に転送し、プリンタ名“printer”を
通知する。
Since the rm item exists, the remote workstation "PrintServ" on the network.
It is determined that the output request is to the printer connected to the printer "er". Therefore, the printer system control unit 32 of the host "PrintServer" is notified that the job is to be transferred. In response, the remote workstation "PrintServer" is notified. The print system control mechanism 32 of "" creates the job receiving mechanism 50, and the job sending mechanism 40 communicates with the job receiving mechanism 50 to take out the job from the spool directory "/ var / pool / lpd / rpr", PrintSe
Transfer to "rver" and notify the printer name "printer".

【0032】ジョブ受信機構50は、プリンタシステム
制御機構32から生成されるサーバ側のプリンタデータ
ベース112を参照する。プリンタデータベース112
の詳細を図3Bに示す。ジョブ送出機構40から送出さ
れるプリントジョブと対応するエントリ名“print
er”を受け取り、“printer”で定義される以
下の情報にしたがって処理を行なう。 1.プリンタは“/dev/lp”である。 2.スプールディレクトリは“/var/spool/
lpd/pr”である。 3.サーバフィルタは“/usr/lib/lprfi
lters/pc2000”である。
The job receiving mechanism 50 refers to the printer database 112 on the server side generated from the printer system control mechanism 32. Printer database 112
Is shown in FIG. 3B. The entry name "print" corresponding to the print job sent from the job sending mechanism 40
er "and processes according to the following information defined by" printer ": 1. Printer is" / dev / lp "2. Spool directory is" / var / pool /
lpd / pr ”3. The server filter is“ / usr / lib / lprfi ”
liters / pc2000 ″.

【0033】受信したジョブを、まずスプールファイル
112のディレクトリ“/var/spool/lpd
/pr”に格納する。もしこのとき、他のジョブ受信機
構が動作中でなければ、この後、引き続きサーバフィル
タを起動しジョブを出力する。ジョブが終了したら、再
度スプールディレクトリを探し、出力するべきジョブが
無いかを調べ、もしあれば再度該当するフィルタを起動
し、ジョブを出力する。これを繰り返し、出力するべき
ジョブがなくなったら終了する。もしこのとき、他のジ
ョブ受信機構が動作中であれば、プリンタ装置“/de
v/lp”をめぐって複数のジョブ受信機構が競合する
ことを避けるため、スプールファイルへの格納が終了し
た時点で終了する。サーバフィルタ機構61、62は、
ジョブ送出機構40またはジョブ受信機構50により生
成される。クライアントフィルタ機構10で付与された
ヘッダを調べ、どのシステム、ディレクトリから外字フ
ォントを取り出せば良いかを知ることができる。
The received job is first processed in the directory "/ var / pool / lpd" of the spool file 112.
/ Pr ". At this time, if another job receiving mechanism is not in operation, after that, the server filter is continuously activated and the job is output. When the job is completed, the spool directory is searched again and the job is output. Check if there are any jobs that should be output, if any, activate the corresponding filter again and output the job. Repeat this, and if there are no more jobs to output, end it. At this time, another job receiving mechanism is operating. If so, the printer device "/ de
In order to avoid a plurality of job receiving mechanisms competing for v / lp ", the processing is finished when the storage in the spool file is finished.
It is generated by the job sending mechanism 40 or the job receiving mechanism 50. By checking the header added by the client filter mechanism 10, it is possible to know from which system or directory the external character font should be extracted.

【0034】例えば、図6で示した例であれば、外字フ
ォントは、ホスト“FontServer”のファイル
“/usr/share/font/Gothic.
8”ファイルから得る。外字でなければプリンタコード
の変換を行ない、プリンタ装置に出力する。
For example, in the example shown in FIG. 6, the external character font is the file "/ usr / share / font / Gothic.
It is obtained from the 8 "file. If it is not a foreign character, the printer code is converted and output to the printer device.

【0035】以下に、本発明の第2の実施例について図
2に基づいて説明する。外字登録テーブル作成機構11
は、サーバフィルタ機構が起動されると最初に実行され
る。該当するプリンタに外字格納機能がある場合には、
外字コードとカウンタを1エントリとする、登録可能外
字数mと同数のエントリからなる外字登録テーブル15
(詳細を図4に示す)を作成する。
The second embodiment of the present invention will be described below with reference to FIG. Gaiji registration table creation mechanism 11
Is first executed when the server filter mechanism is activated. If the corresponding printer has the external character storage function,
The external character registration table 15 having the same number as the registerable external character number m, where the external character code and the counter are one entry
(Details are shown in FIG. 4).

【0036】外字判定機構12では、入力したコード
が、出力するプリンタにとって外字であるか否かを判定
する。外字登録テーブル検索更新機構13では、外字登
録テーブルを検索し、既に外字として登録されているか
をラウンドロビンに検索し、未登録外字を外字登録テー
ブルに登録する。
The external character determining mechanism 12 determines whether or not the input code is an external character for the output printer. The external character registration table search / updating mechanism 13 searches the external character registration table, searches for a round robin to see if it has already been registered as an external character, and registers an unregistered external character in the external character registration table.

【0037】図5を参照して、登録処理の実例を説明す
る。外字登録テーブルが、(1)の状態のときに、fo
nt−code”Oxaaee”が現れたとする。”O
xaaee”はまだ登録されておらず、font−co
deに空欄があるため、ここに”Oxaaee”、登録
カウンタには”1”を入れる(2)。
An example of the registration process will be described with reference to FIG. When the external character registration table is in the state (1), fo
It is assumed that the nt-code "Oxaaee" appears. "O
xaaee "has not been registered yet, font-co
Since "de" has a blank space, "Oxaaee" is entered here and "1" is entered in the registration counter (2).

【0038】外字登録テーブルが一杯であった場合、未
登録外字であれば、カウンタが最小であるエントリをラ
ウンドロビンにサーチし、破棄する。例えば、次にfo
nt−code”Oxbbaa”が現れたとする。これ
は、未登録外字であるので、外字使用カウンタが最小で
あるエントリをラウンドロビンに、つまり、最後に登録
した”Oxaaee”の次のスロットから始めて上から
下に検索し、最初に現れた”Oxaacc”を破棄す
る。”Oxbbaa”をこのエントリに登録して、最も
優先順位の低いカウンタ”1”を与える(3)。
If the external character registration table is full and it is an unregistered external character, the entry with the smallest counter is searched in round robin and discarded. For example, fo
It is assumed that the nt-code "Oxbbaa" appears. This is an unregistered external character, so the entry with the smallest external character usage counter is searched for in the round robin, that is, starting from the slot next to the last registered "Oxaaee" and searching from top to bottom, and appears first. " Discard Oxaacc ". "Oxbbaa" is registered in this entry, and the lowest priority counter "1" is given (3).

【0039】該当するコードがあれば、そこの参照カウ
ンタをインクリメントする。例えば、次に”Oxaaa
a”が現れたら、既に登録されているので、現在の登録
カウンタ”4”を”5”にする(5)。
If there is a corresponding code, the reference counter there is incremented. For example, next, "Oxaaa
When "a" appears, it is already registered, so the current registration counter "4" is set to "5" (5).

【0040】コード変換機構16では、外字以外のコー
ド場合は、プリンタ固有のフォントコードへと変換す
る。例えば、ワークステーション内コード(Exten
dedUNIX code)からプリンタコード(19
88年度JIS規格コード)への変換を行なう。
The code conversion mechanism 16 converts a code other than the external character into a font code unique to the printer. For example, the code in the workstation (Exten
From the dedUNIX code) to the printer code (19
1988 JIS standard code) conversion.

【0041】外字ロード機構14では、該当するコード
のフォントをフォントファイル400から取得する。外
字登録機能を有するプリンタでは、外字登録テーブルに
更新すると共に、プリンタに外字コードと外字フォント
を送り、外字登録を行なう。外字登録機能を持たないプ
リンタでは、該当するコード部分に、ビットマップに展
開したコードを埋めこんでプリンタに出力する。以上好
ましい実施例をあげて本発明を説明したが、本発明は必
ずしも上記実施例に限定されるものではない。
The external character loading mechanism 14 acquires the font of the corresponding code from the font file 400. The printer having the external character registration function updates the external character registration table and sends the external character code and the external character font to the printer to perform the external character registration. In the printer that does not have the external character registration function, the code expanded in the bitmap is embedded in the corresponding code portion and output to the printer. Although the present invention has been described above with reference to the preferred embodiments, the present invention is not necessarily limited to the above embodiments.

【0042】[0042]

【発明の効果】以上述べたのように、本発明のプリンタ
制御機構によれば、一台のプリンタ装置を複数のユーザ
で共有するコンピュータネットワークシステムにおい
て、外字情報等のユーザ固有の多くの情報をプリンタサ
ーバに伝えることが可能になるという効果がある。
As described above, according to the printer control mechanism of the present invention, in a computer network system in which one printer device is shared by a plurality of users, a large amount of user-specific information such as external character information can be stored. This has the effect of making it possible to inform the printer server.

【0043】また本発明のプリンタ制御機構によれば、
外字の発生頻度に応じたプリンタ装置の外字登録領域の
効率的使用を可能とするというこうかがある。
According to the printer control mechanism of the present invention,
There is a method of enabling efficient use of the external character registration area of the printer device according to the occurrence frequency of external characters.

【0044】さらに本発明のプリンタ制御機構によれ
ば、一方向の通信機能しか持たないプリンタ装置や、外
字登録機能を持たないプリンタ装置においても外字の印
字を可能とするという効果がある。
Further, according to the printer control mechanism of the present invention, it is possible to print an external character even in a printer device having only a one-way communication function or a printer device having no external character registration function.

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

【図1】 本発明の一実施例に係るプリンタ制御機構の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a printer control mechanism according to an embodiment of the present invention.

【図2】 本発明の他の実施例に係るプリンタ制御機構
の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a printer control mechanism according to another embodiment of the present invention.

【図3】 プリンタデータベースの例を示す図である。FIG. 3 is a diagram showing an example of a printer database.

【図4】 外字登録テーブルの例を示す図である。FIG. 4 is a diagram showing an example of an external character registration table.

【図5】 外字登録テーブルの例を示す図である。FIG. 5 is a diagram showing an example of an external character registration table.

【図6】 クライアントフィルタのデータの付与例を示
す図である。
FIG. 6 is a diagram showing an example of adding data of a client filter.

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

10 クライアントフィルタ機構 11 外字登録テーブル作成機構 12 外字判定機構 13 外字登録テーブル検索更新機構 14 外字ロード機構 15 外字登録テーブル 16 プリンタコード変換機構 20 スプール機構 31 プリンタシステム制御機構 32 プリンタシステム制御機構 40 ジョブ送出機構 50 ジョブ受信機構 61 サーバフィルタ機構 62 サーバフィルタ機構 100 ワークステーション 101 ワークステーション 111 プリンタデータベース 112 プリンタデータベース 121 プリンタ 122 プリンタ 130 ジョブ 141 スプールファイル 142 スプールファイル 200 プリントジョブ 300 プリンタデータベース 400 フォントファイル 500 フォントサーバ 600 プリンタ 10 client filter mechanism 11 external character registration table creation mechanism 12 external character determination mechanism 13 external character registration table search update mechanism 14 external character load mechanism 15 external character registration table 16 printer code conversion mechanism 20 spool mechanism 31 printer system control mechanism 32 printer system control mechanism 40 job transmission Mechanism 50 Job receiving mechanism 61 Server filter mechanism 62 Server filter mechanism 100 Workstation 101 Workstation 111 Printer database 112 Printer database 121 Printer 122 Printer 130 Job 141 Spool file 142 Spool file 200 Print job 300 Printer database 400 Font file 500 Font server 600 Printer

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年8月24日[Submission date] August 24, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】全文[Correction target item name] Full text

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【書類名】 明細書[Document name] Statement

【発明の名称】 プリンタ制御機構Title: Printer control mechanism

【特許請求の範囲】[Claims]

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

【0001】[0001]

【産業上の利用分野】本発明は、ネットワークで接続さ
れたコンピュータシステム間で、プリンタを共有する場
合の、表示する文字と印字する文字とを一致させ、かつ
プリンタの外字登録機能を効率的に使用するためのプリ
ンタ制御機構に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention, when sharing a printer between computer systems connected by a network, matches displayed characters with printed characters, and efficiently implements the printer's external character registration function. A printer control mechanism for use.

【0002】[0002]

【従来の技術】セントロニクスインターフェースのよう
に比較的低速のデータ受信インターフェースを持つプリ
ンタでは、装置内部にフォント(文字のビットマップデ
ータ)を持っており、それぞれのフォントごとに1バイ
トまたは2バイトのコードが対応している。そして、プ
リンタ内部において対応するものが無いコードを当該プ
リンタの外字と呼ぶ。
2. Description of the Related Art A printer having a relatively low-speed data receiving interface such as the Centronics interface has a font (character bitmap data) inside the device, and each font has a 1-byte or 2-byte code. Is supported. A code that does not correspond to the inside of the printer is called an external character of the printer.

【0003】近年のプリンタでは、ほとんどのものが、
JISの第1、第2水準の文字をプリンタ内に持ってい
る。したがって、このようなプリンタでは、JIS第
1、第2水準以外の文字は外字となる。同様に、JIS
の第1水準までの文字しか持たないプリンタにとって
は、JIS第1水準以外の文字は外字となる。すなわ
ち、このようなプリンタではJIS第2水準の文字も外
字となる。
Most printers in recent years are
It has JIS first and second level characters in the printer. Therefore, in such a printer, characters other than the JIS first and second levels are external characters. Similarly, JIS
For a printer having only the characters up to the first level of, the characters other than the JIS first level are external characters. That is, in such a printer, JIS level 2 characters are also external characters.

【0004】また、プリンタ装置には、このような外字
コードと対応するフォントをあわせて記憶するメモリを
持ち、一度記憶させた後は、当該コードを送ると、プリ
ンタ装置は既に記憶しているフォントを使用して外字を
印字する機能を持つものがある。これをプリンタの外字
登録機能と呼ぶ。
Further, the printer device has a memory for storing the font corresponding to such an external character code together, and after storing once, when the code is sent, the printer device stores the font already stored. Some have the ability to print external characters using. This is called the external character registration function of the printer.

【0005】コードとフォントの対応は、外字について
は、必ずしも各種のプリンタで一致しているものではな
い。JIS規格のフォントでも時期(年度)により相違
が有り、プリンタの種類が異なれば、同じコードでも印
字フォントが異なる場合がある。こういったプリンタ機
種毎の相違を吸収するために、オペレーティングシステ
ムには、プリンタコード変換機構と呼ばれるプログラム
がプリンタの機種毎に用意されている。プリンタコード
変換機構は、通常プリンタの接続されているホストに存
在し、プリンタに印字する直前に印字コードをそれぞれ
のプリンタにあったコードに変換する。
[0005] code and font support, for external characters, it not necessarily the same on various printers
Yes. Even JIS standard fonts differ depending on the time (year), and different types of printers may have different print fonts for the same code. In order to absorb such differences between printer models, a program called a printer code conversion mechanism is prepared in the operating system for each printer model. The printer code conversion mechanism normally exists in the host to which the printer is connected, and converts the print code into a code suitable for each printer immediately before printing on the printer.

【0006】以下に、現在知られているプリンタ外字の
機構とプリンタコード変換機構についての具体例を示
す。 (1)第1の例として、UNIX4.3BSDシステム
で提供されているlprプリンタサービスがある。これ
は、サーバクライアントモデルを使用したlprプリン
トサービスシステムである。このプリントサービスにお
いて、プリンタコード変換処理は、ジョブがどのホスト
またはユーザから送られてきたものかといった情報に依
存することなく単にプリンタの機種に応じた変換のみを
行なっている。一方、JIS規格の定義から外れた区域
のコードには、利用者が任意にデザインしたフォントを
設定して使用することができるため、同じコードでも各
ワークステーションの表示は互いに異なっている可能性
がある。このような場合、本方式では、少なくとも一方
のワークステーションにおいて、表示フォントと印字フ
ォントとが一致しない。外字に関する機構に限らず、本
方式は、クライアントから多くの利用者固有のフォント
情報をプリンタサーバに通知するには不適当であった。
Specific examples of the currently known printer external character mechanism and printer code conversion mechanism are shown below. (1) As a first example, there is the lpr printer service provided by the UNIX 4.3 BSD system. this
Is an lpr print using the server-client model
Service system. In this print service, the printer code conversion process simply performs conversion according to the printer model without depending on information such as which host or user sent the job. On the other hand, for the code of the area outside the definition of JIS standard, the user can set and use the font designed arbitrarily, so the display of each workstation may be different even with the same code. is there. In such a case, in this method, the display font and the print font do not match in at least one workstation. Not limited to a mechanism related to external characters, this method, many users specific font from the client
It was unsuitable for notifying the printer server of information .

【0007】(2)第2の例として、外字管理テーブル
を持ち、既に登録済みの外字が現れると出現頻度にした
がって優先順位を変え、該変更済み優先順位をマーク
し、未登録の外字が現れると外字管理テーブル中で優先
度の最も低い外字コードが登録された情報フィールドに
登録して、最も高い優先順位を割り付けるという方式が
ある。本方式では、使用頻度の低い外字が次々と現れる
と、ジョブ全体の中では使用頻度が多い外字であって
も、最近に出現していないと、ジョブ中にただ一度しか
現れない外字に優先順位で負けてしまい、外字登録領域
から追い出されてしまうおそれがある。
(2) As a second example, the external character management table is provided, and when an already registered external character appears, the priority order is changed according to the appearance frequency, the changed priority order is marked, and an unregistered external character appears. In the external character management table, the external character code having the lowest priority is registered in the information field, and the highest priority is assigned. In this method, when external characters that are used infrequently appear one after another, even if they are frequently used in the entire job, if they have not appeared recently, the external character that appears only once in the job has priority. There is a risk that you will be lost and you will be kicked out of the external character registration area.

【0008】(3)第3の例として、プリンタ装置が外
字領域の管理を行なう方式がある。本方式では、ホスト
から送られたコードが外字であることをプリンタ装置が
判断し、ホストコンピュータに外字のダウンロードの要
求を行なう。プリンタ装置側に外字の使用カウンタを持
ち、外字領域がなくなったときには、使用頻度の低いも
のを優先的に消去し、より使用頻度の高いものを設定す
る。本方式では、プリンタ装置がホストコンピュータと
双方向通信できるものでなければならず、さらに外字の
ダウンロード要求やダウンロードを行なうプロトコルを
準備する必要がある。
(3) As a third example, there is a method in which the printer device manages the external character area. In this method, the printer device determines that the code sent from the host is an external character, and requests the host computer to download the external character. When the external character area is used up, the printer device has a counter for using external characters, and when the external character area is exhausted, the less frequently used one is preferentially erased and the more frequently used one is set. In this method, the printer device must be capable of bidirectional communication with the host computer, and it is necessary to prepare a protocol for requesting and downloading external characters.

【0009】(4)第4の例として、コンピュータ本体
から漢字フォントを得て、プリンタ装置に対してダウン
ロードする機構がある。本方式では、プリンタが接続さ
れたコンピュータの持つ外字フォントは一意であるのに
対し、ワークステーションごとの表示画面中の外字フォ
ントは一般的には複数であり、先に述べた第1の例の
4.3BSD プリンタサービスの場合と同様の欠点を
有する。
(4) As a fourth example, there is a mechanism for obtaining a Kanji font from the computer body and downloading it to the printer device. In this method, the external character font possessed by the computer to which the printer is connected is unique, whereas the external character font on the display screen for each workstation is generally plural .
4.3 The same drawbacks as in the case of the printer service
Have.

【0010】[0010]

【発明が解決しようとする課題】上述したように、従来
のプリンタ外字機構とプリンタコード変換機構について
は、それぞれ上述したように、各々の機構の構成に起因
する欠点があった。本発明の第1の目的は、上記従来の
欠点を解消し、一台のプリンタ装置を複数のユーザで共
有するコンピュータネットワークシステムにおいて、外
字情報等のユーザ固有の多くの情報をプリンタサーバに
伝えることが可能なプリンタの制御機構を提供すること
にある。
As described above, the conventional printer external character mechanism and printer code conversion mechanism have drawbacks due to their respective configurations as described above. A first object of the present invention is to solve the above-mentioned conventional drawbacks and transmit a lot of user-specific information such as external character information to a printer server in a computer network system in which one printer is shared by a plurality of users. It is to provide a printer control mechanism capable of performing the above.

【0011】また本発明の第2の目的は、外字の発生頻
度に応じたプリンタ装置の外字登録領域の効率的使用を
可能とすることにある。
A second object of the present invention is to enable efficient use of the external character registration area of the printer device according to the frequency of occurrence of external characters.

【0012】さらに本発明の第3の目的は、一方向の通
信機能しか持たないプリンタ装置や、外字登録機能を持
たないプリンタ装置においても外字の印字を可能とする
ことにある。
A third object of the present invention is to enable printing of external characters even in a printer device having only a one-way communication function or a printer device having no external character registration function.

【0013】[0013]

【課題を解決するための手段】上記の目的を達成するた
め、本発明のプリンタ制御機構は、特定のワークステー
ションに接続されたプリンタを、ネットワークで接続さ
れた複数のワークステーションコンピュータから、共有
して使用する運用形態を有するコンピュータネットワー
クシステムにおいて、プリンタ利用要求をプリントジョ
ブに付与し、スプールディレクトリに蓄えるクライアン
トフィルタ機構と、プリントジョブに付与されたプリン
タ利用要求を解釈し、プリンタ機種固有のコード変換を
行ない、プリンタに印字を行なわせるサーバフィルタ機
構と、クライアントフィルタ機構の起動後に、ジョブの
発生を知らせるスプール機構と、プリントジョブをスプ
ールディレクトリから取り出し、自システムのプリンタ
に出力する場合、サーバフィルタ機構を起動し、ネット
ワーク上の他のワークステーションのプリンタに出力す
る場合、該他ワークステーションシステムのプリントシ
ステム制御機構に通知し、該プリントシステム制御機構
から起動されたジョブ受信機構にジョブを転送するジョ
ブ送出制御機構と、他のワークステーションのジョブ送
出機構から転送されるジョブを受信してスプールし、自
身以外にジョブ制御機構が起動されていれば終了し、自
身以外にジョブ制御機構が起動されていなければ引き続
いて該スプールジョブを読み込んでサーバフィルタ機構
を起動するジョブ受信機構と、スプール機構からのジョ
ブ発生通知を受けたとき、ジョブ送出機構を起動し、リ
モートシステムのジョブ送出機構からのジョブ転送要求
の通知を受けたとき、ジョブ受信機構を起動するプリン
トシステム制御機構を備える構成としている。
To achieve the above object, the printer control mechanism of the present invention shares a printer connected to a specific workstation from a plurality of workstation computers connected by a network. In a computer network system that has an operating mode that is used as a printer, a printer use request is added to a print job, a client filter mechanism that stores in a spool directory, and a printer use request added to a print job are interpreted, and printer-specific code conversion is performed. When the server filter mechanism that causes the printer to print, the spool mechanism that notifies the occurrence of a job after the client filter mechanism is activated, and the print job is extracted from the spool directory and output to the printer of the local system, When the server filter mechanism is activated and the data is output to the printer of another workstation on the network, the print system control mechanism of the other workstation system is notified and the job is transferred to the job receiving mechanism activated from the print system control mechanism. The job transfer control mechanism that does this and the job transfer mechanism of another workstation receives the job and spools it. If a job control mechanism other than itself is started, it ends, and a job control mechanism other than itself starts. If not, the job reception mechanism that subsequently reads the spool job and activates the server filter mechanism, and when the job generation notification from the spool mechanism is received, the job transmission mechanism is activated, and the job transmission mechanism from the remote system is activated. When the job transfer request notification is received, the job receiver It has a configuration comprising a print system controls to start.

【0014】上記目的を達成する他のプリンタ制御機構
では、フォントファイルをシステム内に備え、または、
ネットワークを介して参照可能なコンピュータシステム
上で、プリントジョブ毎に起動され、表示装置で使用さ
れるフォントに対応するコードを同等の形状のプリンタ
フォントコードに変換するプリンタ制御機構におい
て、プリンタに外字登録機能がある場合、外字コードと
カウンタを一つのエントリとし、登録可能外字数と同数
のエントリからなる外字登録テーブルを作成する外字登
録テーブル作成機構と、入力コードが、外字であるか否
かを判定する外字判定機構と、前記外字判定機構による
判定の結果、外字でない場合、表示フォントに対応する
プリンタのコードに変換するプリンタコード変換機構
と、前記外字判定機構で入力コードが外字であると判定
され、かつプリンタに外字登録機能がある場合、上記外
字登録テーブルを検索し、未登録外字であるか既登録外
字であるかを判定し、既登録外字であれば、該当するエ
ントリのカウンタをインクリメントし、未登録外字であ
れば、該カウンタが最小であるエントリの中で最も古く
登録したエントリを破棄してそのエントリに新しい外字
コードとカウンタの初期値を登録する外字登録テーブル
検索更新機構と、前記外字判定機構で入力コードが外字
であると判定され、かつ外字登録機能のないプリンタの
場合、フォントファイルからフォントを取得し、出力ジ
ョブ中の該コードをフォントのビットマップデータに代
えて出力し、外字登録機能のあるプリンタの場合、未登
録フォントをフォントファイルから取得し、プリンタに
ダウンロードする外字ロード機構を備える構成としてい
る。
In another printer control mechanism which achieves the above object, a font file is provided in the system, or
In a printer control mechanism that is activated for each print job on a computer system that can be referenced via a network and that converts the code corresponding to the font used on the display device into the font code of the printer of the same shape, the external character If there is a registration function, the external character code and the counter are treated as one entry, and the external character registration table creation mechanism that creates an external character registration table consisting of the same number of entries as the number of external characters that can be registered, and whether the input code is an external character or not. The external character determining mechanism and the external character determining mechanism determines that the input code is an external character if the input character is a printer code conversion mechanism that converts the printer code corresponding to the display font if the character is not an external character. If the printer is registered and the printer has the external character registration function, the external character registration table above is searched. , It is determined whether it is an unregistered external character or a registered external character, and if it is a registered external character, the counter of the corresponding entry is incremented, and if it is an unregistered external character, the counter with the smallest counter is selected. An external character registration table search / update mechanism that discards the oldest registered entry and registers a new external character code and the initial value of the counter in that entry, and the external character determination mechanism determines that the input code is an external character, and the external character registration function For printers that do not have a font, the font is acquired from the font file, the code in the output job is output instead of the bitmap data of the font, and for a printer with the external character registration function, the unregistered font is acquired from the font file. The external character loading mechanism for downloading to the printer is provided.

【0015】[0015]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は、本発明の一実施例に係るプリンタ
のフォントロード機構の構成を示すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a font loading mechanism of a printer according to an embodiment of the present invention.

【0016】本実施例において、図示のように、ワーク
ステーション100とワークステーション101とは、
ネットワーク140を介して接続されている。何れのワ
ークステーションにもプリンタ121、122が接続さ
れている。プリンタデータベース111、112は、各
々のワークステーションに、プリンタ接続の有無にかか
わらず一つずつ存在する。
In this embodiment, as shown, the workstation 100 and the workstation 101 are
It is connected via the network 140. Printers 121 and 122 are connected to both workstations. The printer databases 111 and 112 exist one by one in each workstation regardless of whether or not a printer is connected.

【0017】プリンタデータベース111、112のデ
ータベースファイルの詳細を図3A、Bに示す。図3A
は、プリントジョブ発行側のプリンタデータベース、図
3Bは、プリントジョブ受信側のプリンタデータベース
である。これらのデータベースは、プリンタ名とそのプ
リンタに付随する情報で一つのエントリとなっている。
各エントリ中のアイテムは、それぞれ以下に示すような
意味を持っている。
Details of the database files of the printer databases 111 and 112 are shown in FIGS. 3A and 3B. Figure 3A
Is a printer database on the print job issuing side, and FIG. 3B is a printer database on the print job receiving side. Each of these databases is a single entry including a printer name and information associated with the printer.
The items in each entry have the following meanings.

【0018】1.lp=自システムに接続されたプリン
タデバイス。 2.rm=ネットワーク上の他のワークステーションに
接続されたプリンタの場合にのみ存在するホスト名。 3.rp=上記ホストのプリンタデータベースファイル
のエントリ名。 4.sd=スプールディレクトリ(スプールファイル上
のディレクトリ)。 5.LF=クライアントフィルタ名。 6.of=サーバフィルタ名。
1. lp = printer device connected to the system. 2. rm = host name that exists only for printers attached to other workstations on the network. 3. rp = entry name of printer database file of the above host. 4. sd = spool directory (directory on spool file). 5. LF = client filter name. 6. of = server filter name.

【0019】なお、上記のアイテムのうち、LF(クラ
イアントフィルタ)、of(サーバフィルタ)における
フィルタとは、情報にヘッダを付与または除去したり、
コード変換を行なったりするプログラムを言う。
Of the above items, the filters in LF (client filter) and of (server filter) are to add or remove a header to information,
A program that performs code conversion.

【0020】ワークステーション100から出力ファイ
ル130をワークステーション101のプリンタ122
に出力するときの各機構の関連を制御の流れ、データの
流れ、データの流れ、情報の授受に着目して説明する。
The output file 130 from the workstation 100 is transferred to the printer 122 of the workstation 101.
The relationship between the respective mechanisms when outputting to will be described focusing on the flow of control, the flow of data, the flow of data, and the exchange of information.

【0021】まず、プリンタ使用者は、以下のようにコ
マンドを実行し、スプール機構20を起動する。 コマンド: lpr −Prprinter file “lpr”はスプール機構20の起動コマンド、“rp
rinter”はプリンタデータベース111のエント
リ名、“file”はプリント出力するファイル130
である。
First, the printer user activates the spool mechanism 20 by executing a command as follows. Command: lpr-Prprinter file “lpr” is a command to start the spool mechanism 20, “rp”
“Printer” is the entry name of the printer database 111, and “file” is the file 130 to be printed out.
Is.

【0022】スプール機構20は、“rprinte
r”のエントリから以下の情報を読み取る。すなわち、
クライアントフィルタ“/usr/lib/lprfi
lters/udfhead”の指定があるので、スプ
ールディレクトリにジョブ130を格納する前に、該フ
ィルタにかけて各種情報を付与して“/var/spo
ol/lpd/rpr”ディレクトリに格納する。その
後、プリントシステム制御機構31にジョブの発行とプ
リンタ名“rprinter”を通知して終了する。
The spool mechanism 20 is a "rprinte".
Read the following information from the entry for r ″:
Client filter "/ usr / lib / lprfi
Since "lters / udfhead" is specified, before storing the job 130 in the spool directory, various information is added to the job 130 by applying the filter to "/ var / spo".
ol / lpd / rpr ”directory. Then, the print system control mechanism 31 is notified of the issue of the job and the printer name“ rpprinter ”, and the process is terminated.

【0023】また、以下のようなコマンドによりスプー
ル機構20を起動すると、 コマンド: lpr −Plprinter file
When the spool mechanism 20 is activated by the following command, the command: lpr -Plprinter file

【0024】“lprinter”のエントリをプリン
タデータベース111から探し、sdで指定されている
ディレクトリ“/var/spool/lpd/lp
r”にスプールし、プリントシステム制御機構31に
ョブの発行とプリンタ名“lprinter”を通知し
て終了する。
The printer database 111 is searched for an entry "lprinter", and the directory "/ var / pool / lpd / lp" specified by sd is searched.
spooled in the r ", Di to the print system control mechanism 31
The job issuance and the printer name "lprinter" are notified, and the process ends.

【0025】クライアントフィルタ機構10では、実行
しているシステムの情報(例えば外字ファイルの所在)
をジョブにヘッダとして付与する。例えば、ワークステ
ーション100の表示装置で使用している外字フォント
ファイルのホスト名、ディレクトリ名、ファイル名等の
情報についても同様である。
In the client filter mechanism 10, information on the system being executed (for example, the location of the external character file)
Is added to the job as a header. For example, the host name, directory name, file name, etc. of the external character font file used in the display device of the workstation 100
The same applies to information .

【0026】図6に、かかるヘッダ付与の例をあげる。
図示の例では、プリントジョブにホスト名“FontS
erver”、ディレクトリ名“/usr/share
/font/Gothic.8”という情報をヘッダと
して付与している。
FIG. 6 shows an example of such header addition.
In the illustrated example, the host name “FontS
"server", directory name "/ usr / share "
/ Font / Gothic. Information "8" is added as a header.

【0027】プリントシステム制御機構31、32は、
各々のワークステーションに常駐するプロセスである。
自システムのスプール機構20から要求を受けた場合
と、他システムのスプール機構30から要求を受けた場
合とで動作が異なるため、図は異なっているが、どちら
もそれぞれのワークステーションで同等の働きをする。
スプール機構20からジョブをスプールディレクトリに
格納したという通知を受けると、ジョブ送出機構40を
生成する。また、他ワークステーションのジョブ送出機
構40からジョブ転送要求を受けると、ジョブ受信機構
50を生成する。このように、このプロセスは常に外部
からの要求を待っており、要求があったらプロセスを生
成して後の処理は生成したプロセスに任せて、次の要求
を待つ。
The print system control mechanisms 31, 32 are
A process that resides on each workstation.
The operation is different depending on whether a request is received from the spool mechanism 20 of the own system or a request from the spool mechanism 30 of another system. Therefore, although the figures are different, both work equally in their respective workstations. do.
Upon receiving the notification from the spool mechanism 20 that the job has been stored in the spool directory, the job sending mechanism 40 is generated. When receiving a job transfer request from the job sending mechanism 40 of another workstation, the job receiving mechanism 50 is generated. In this way, this process always waits for a request from the outside, creates a process when there is a request, and leaves the subsequent processing to the created process, and waits for the next request.

【0028】ジョブ送出機構40は、プリントシステム
制御機構31から生成される。プリンタデータベース1
11を調べ、出力要求が、自システムに接続されたプリ
ンタへのものであるか、ネットワーク上の他ワークステ
ーションへのものであるかを判断する。
The job sending mechanism 40 is generated from the print system control mechanism 31. Printer database 1
11 is checked to determine whether the output request is to the printer connected to the system or to another workstation on the network.

【0029】スプール機構20からプリンタ名“lpr
inter”を得ると、図3Aの“lprinter”
の項目をデータベース111から探す。データベース中
“lp”の項目が存在するので、“/dev/lp”と
いう名称の自ワークステーションに接続されているプリ
ンタ121への要求であると判断し、指定されたクライ
アント“/usr/lib/lprfilters/p
cpr602”を起動し、出力処理を行なう。
From the spool mechanism 20 to the printer name "lpr"
When "inter" is obtained, "lprinter" in FIG. 3A is obtained.
Is searched from the database 111. Since the item “lp” exists in the database, it is determined that the request is to the printer 121 connected to the own workstation named “/ dev / lp”, and the designated client “/ usr / lib / lprfilters / p
The cpr 602 ″ is activated and output processing is performed.

【0030】また、スプール機構20からプリンタ名
“rprinter”を受け取ると、プリンタデータベ
ース111より、以下の情報を得る。 1.出力はホスト“PrintServer”に接続さ
れているプリンタに行なう。 2.PrintServerで使用するサーバフィルタ
を指定するエントリはプリンタ名である。 3.クライアント側でのスプールディレクトリは“/v
ar/spool/lpd/rpr”である。
When the printer name "rpprinter" is received from the spool mechanism 20, the following information is obtained from the printer database 111. 1. The output is performed to the printer connected to the host "PrintServer". 2. The entry that specifies the server filter used in PrintServer is the printer name. 3. The spool directory on the client side is "/ v
ar / pool / lpd / rpr ".

【0031】rmの項目が存在するので、ネットワーク
上のリモートワークステーション“PrintServ
er”に接続されたプリンタへの出力要求であると判断
される。そこでホスト“PrintServer”のプ
リンタシステム制御機構32にジョブを転送する旨の通
知をする。これを受けて、リモートワークステーション
“PrintServer”のプリントシステム制御機
構32がジョブ受信機構50を生成し、ジョブ送出機構
40は該ジョブ受信機構50と通信し、スプールディレ
クトリ“/var/spool/lpd/rpr”から
ジョブを取り出し、リモートシステム“PrintSe
rver”に転送し、プリンタ名“printer”を
通知する。
Since the rm item exists, the remote workstation "PrintServ" on the network.
It is determined that the output request is to the printer connected to the printer "er". Therefore, the printer system control unit 32 of the host "PrintServer" is notified that the job is to be transferred. In response, the remote workstation "PrintServer" is notified. The print system control mechanism 32 of "" creates the job receiving mechanism 50, and the job sending mechanism 40 communicates with the job receiving mechanism 50 to take out the job from the spool directory "/ var / pool / lpd / rpr", PrintSe
Transfer to "rver" and notify the printer name "printer".

【0032】ジョブ受信機構50は、プリンタシステム
制御機構32から生成されるサーバ側のプリンタデータ
ベース112を参照する。プリンタデータベース112
の詳細を図3Bに示す。ジョブ送出機構40から送出さ
れるプリントジョブと対応するエントリ名“print
er”を受け取り、“printer”で定義される以
下の情報にしたがって処理を行なう。 1.プリンタは“/dev/lp”である。 2.スプールディレクトリは“/var/spool/
lpd/lpr”である。 3.サーバフィルタは“/usr/lib/lprfi
lters/pc2000”である。
The job receiving mechanism 50 refers to the printer database 112 on the server side generated from the printer system control mechanism 32. Printer database 112
Is shown in FIG. 3B. The entry name "print" corresponding to the print job sent from the job sending mechanism 40
er "and processes according to the following information defined by" printer ": 1. Printer is" / dev / lp "2. Spool directory is" / var / pool /
lpd / lpr ”3. The server filter is“ / usr / lib / lprfi ”
liters / pc2000 ″.

【0033】受信したジョブを、まずスプールファイル
112のディレクトリ“/var/spool/lpd
/pr”に格納する。もしこのとき、他のジョブ受信機
構が動作中でなければ、この後、引き続きサーバフィル
タを起動しジョブを出力する。ジョブが終了したら、再
度スプールディレクトリを探し、出力するべきジョブが
無いかを調べ、もしあれば再度該当するフィルタを起動
し、ジョブを出力する。これを繰り返し、出力するべき
ジョブがなくなったら終了する。もしこのとき、他のジ
ョブ受信機構が動作中であれば、プリンタ装置“/de
v/lp”をめぐって複数のジョブ受信機構が競合する
ことを避けるため、スプールファイルへの格納が終了し
た時点で終了する。サーバフィルタ機構61、62は、
ジョブ送出機構40またはジョブ受信機構50により生
成される。クライアントフィルタ機構10で付与された
ヘッダを調べ、どのシステム、ディレクトリから外字フ
ォントを取り出せば良いかを知ることができる。
The received job is first processed in the directory "/ var / pool / lpd" of the spool file 112.
/ Pr ". At this time, if another job receiving mechanism is not in operation, after that, the server filter is continuously activated and the job is output. When the job is completed, the spool directory is searched again and the job is output. Check if there are any jobs that should be output, if any, activate the corresponding filter again and output the job. Repeat this, and if there are no more jobs to output, end it. At this time, another job receiving mechanism is operating. If so, the printer device "/ de
In order to avoid a plurality of job receiving mechanisms competing for v / lp ", the processing is finished when the storage in the spool file is finished.
It is generated by the job sending mechanism 40 or the job receiving mechanism 50. By checking the header added by the client filter mechanism 10, it is possible to know from which system or directory the external character font should be extracted.

【0034】例えば、図6で示した例であれば、外字フ
ォントは、ホスト“FontServer”のファイル
“/usr/share/font/Gothic.
8”ファイルから得る。外字でなければプリンタコード
の変換を行ない、プリンタ装置に出力する。
For example, in the example shown in FIG. 6, the external character font is the file "/ usr / share / font / Gothic.
It is obtained from the 8 "file. If it is not a foreign character, the printer code is converted and output to the printer device.

【0035】以下に、本発明の第2の実施例について図
2に基づいて説明する。外字登録テーブル作成機構11
は、サーバフィルタ機構が起動されると最初に実行され
る。該当するプリンタに外字格納機能がある場合には、
外字コードとカウンタを1エントリとする、登録可能外
字数mと同数のエントリからなる外字登録テーブル15
(詳細を図4に示す)を作成する。
The second embodiment of the present invention will be described below with reference to FIG. Gaiji registration table creation mechanism 11
Is first executed when the server filter mechanism is activated. If the corresponding printer has the external character storage function,
The external character registration table 15 having the same number as the registerable external character number m, where the external character code and the counter are one entry
(Details are shown in FIG. 4).

【0036】外字判定機構12では、入力したコード
が、出力するプリンタにとって外字であるか否かを判定
する。外字登録テーブル検索更新機構13では、外字登
録テーブルを検索し、既に外字として登録されているか
をラウンドロビンに検索し、未登録外字を外字登録テー
ブルに登録する。
The external character determining mechanism 12 determines whether or not the input code is an external character for the output printer. The external character registration table search / updating mechanism 13 searches the external character registration table, searches for a round robin to see if it has already been registered as an external character, and registers an unregistered external character in the external character registration table.

【0037】図5を参照して、登録処理の実例を説明す
る。外字登録テーブルが、(1)の状態のときに、fo
nt−code”0xaaee”が現れたとする。”
xaaee”はまだ登録されておらず、font−co
deに空欄があるため、ここに”0xaaee”、登録
カウンタには”1”を入れる(2)。
An example of the registration process will be described with reference to FIG. When the external character registration table is in the state (1), fo
It is assumed that the nt-code " 0xaaae " appears. " 0
xaaee "has not been registered yet, font-co
Since "de" has a blank space, " 0xaaae " is entered here and "1" is entered in the registration counter (2).

【0038】外字登録テーブルが一杯であった場合、未
登録外字であれば、カウンタが最小であるエントリをラ
ウンドロビンにサーチし、破棄する。例えば、次にfo
nt−code”0xbbaa”が現れたとする。これ
は、未登録外字であるので、外字使用カウンタが最小で
あるエントリをラウンドロビンに、つまり、最後に登録
した”0xaaee”の次のスロットから始めて上から
下に検索し、最初に現れた”0xaacc”を破棄す
る。”0xbbaa”をこのエントリに登録して、最も
優先順位の低いカウンタ”1”を与える(3)。
If the external character registration table is full and it is an unregistered external character, the entry with the smallest counter is searched in round robin and discarded. For example, fo
It is assumed that nt-code " 0xbbaa " appears. This is an unregistered external character, so the entry with the smallest external character usage counter is searched for in the round robin, that is, starting from the slot next to the last registered " 0xaaae ", searching from top to bottom, and appears first. " 0xaacc "is discarded. " 0xbbaa " is registered in this entry, and the lowest priority counter "1" is given (3).

【0039】該当するコードがあれば、そこの参照カウ
ンタをインクリメントする。例えば、次に”0xaaa
”が現れたら、既に登録されているので、現在の登録
カウンタ”4”を”5”にする(5)。
If there is a corresponding code, the reference counter there is incremented. For example, next, " 0xaaa
When a "appears, it is already registered, so the current registration counter" 4 "is set to" 5 "(5).

【0040】コード変換機構16では、外字以外のコー
ド場合は、プリンタ固有のフォントコードへと変換す
る。例えば、ワークステーション内コード(Exten
dedUNIX code)からプリンタコード(19
88年度JIS規格コード)への変換を行なう。
The code conversion mechanism 16 converts a code other than the external character into a font code unique to the printer. For example, the code in the workstation (Exten
From the dedUNIX code) to the printer code (19
1988 JIS standard code) conversion.

【0041】外字ロード機構14では、該当するコード
のフォントをフォントファイル400から取得する。外
字登録機能を有するプリンタでは、外字登録テーブルに
更新すると共に、プリンタに外字コードと外字フォント
を送り、外字登録を行なう。外字登録機能を持たないプ
リンタでは、該当するコード部分に、ビットマップに展
開したコードを埋めこんでプリンタに出力する。以上好
ましい実施例をあげて本発明を説明したが、本発明は必
ずしも上記実施例に限定されるものではない。
The external character loading mechanism 14 acquires the font of the corresponding code from the font file 400. The printer having the external character registration function updates the external character registration table and sends the external character code and the external character font to the printer to perform the external character registration. In the printer that does not have the external character registration function, the code expanded in the bitmap is embedded in the corresponding code portion and output to the printer. Although the present invention has been described above with reference to the preferred embodiments, the present invention is not necessarily limited to the above embodiments.

【0042】[0042]

【発明の効果】以上述べたのように、本発明のプリンタ
制御機構によれば、一台のプリンタ装置を複数のユーザ
で共有するコンピュータネットワークシステムにおい
て、外字情報等のユーザ固有の多くの情報をプリンタサ
ーバに伝えることが可能になるという効果がある。
As described above, according to the printer control mechanism of the present invention, in a computer network system in which one printer device is shared by a plurality of users, a large amount of user-specific information such as external character information can be stored. This has the effect of making it possible to inform the printer server.

【0043】また本発明のプリンタ制御機構によれば、
外字の発生頻度に応じたプリンタ装置の外字登録領域の
効率的使用を可能とするという効果がある
According to the printer control mechanism of the present invention,
This has the effect of enabling efficient use of the external character registration area of the printer device according to the frequency of occurrence of external characters.

【0044】さらに本発明のプリンタ制御機構によれ
ば、一方向の通信機能しか持たないプリンタ装置や、外
字登録機能を持たないプリンタ装置においても外字の印
字を可能とするという効果がある。
Further, according to the printer control mechanism of the present invention, it is possible to print an external character even in a printer device having only a one-way communication function or a printer device having no external character registration function.

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

【図1】 本発明の一実施例に係るプリンタ制御機構の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a printer control mechanism according to an embodiment of the present invention.

【図2】 本発明の他の実施例に係るプリンタ制御機構
の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a printer control mechanism according to another embodiment of the present invention.

【図3】 プリンタデータベースの例を示す図である。FIG. 3 is a diagram showing an example of a printer database.

【図4】 外字登録テーブルの例を示す図である。FIG. 4 is a diagram showing an example of an external character registration table.

【図5】 外字登録テーブルの例を示す図である。FIG. 5 is a diagram showing an example of an external character registration table.

【図6】 クライアントフィルタのデータの付与例を示
す図である。
FIG. 6 is a diagram showing an example of adding data of a client filter.

【符号の説明】 10 クライアントフィルタ機構 11 外字登録テーブル作成機構 12 外字判定機構 13 外字登録テーブル検索更新機構 14 外字ロード機構 15 外字登録テーブル 16 プリンタコード変換機構 20 スプール機構 31 プリンタシステム制御機構 32 プリンタシステム制御機構 40 ジョブ送出機構 50 ジョブ受信機構 61 サーバフィルタ機構 62 サーバフィルタ機構 100 ワークステーション 101 ワークステーション 111 プリンタデータベース 112 プリンタデータベース 121 プリンタ 122 プリンタ 130 ジョブ 141 スプールファイル 142 スプールファイル 200 プリントジョブ 300 プリンタデータベース 400 フォントファイル 500 フォントサーバ 600 プリンタ[Explanation of Codes] 10 Client Filter Mechanism 11 External Character Registration Table Creation Mechanism 12 External Character Judgment Mechanism 13 External Character Registration Table Search and Update Mechanism 14 External Character Loading Mechanism 15 External Character Registration Table 16 Printer Code Conversion Mechanism 20 Spool Mechanism 31 Printer System Control Mechanism 32 Printer System Control mechanism 40 Job sending mechanism 50 Job receiving mechanism 61 Server filter mechanism 62 Server filter mechanism 100 Workstation 101 Workstation 111 Printer database 112 Printer database 121 Printer 122 Printer 130 Job 141 Spool file 142 Spool file 200 Print job 300 Printer database 400 Font File 500 Font server 600 Printer

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図1[Name of item to be corrected] Figure 1

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図1】 [Figure 1]

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 特定のワークステーションに接続された
プリンタを、ネットワークで接続された複数のワークス
テーションコンピュータから、共有して使用する運用形
態を有するコンピュータネットワークシステムにおい
て、 プリンタ利用要求をプリントジョブに付与し、スプール
ディレクトリに蓄えるクライアントフィルタ機構と、 プリントジョブに付与されたプリンタ利用要求を解釈
し、プリンタ機種固有のコード変換を行ない、プリンタ
に印字を行なわせるサーバフィルタ機構と、 クライアントフィルタ機構の起動後に、ジョブの発生を
知らせるスプール機構と、 プリントジョブをスプールディレクトリから取り出し、
自システムのプリンタに出力する場合、サーバフィルタ
機構を起動し、ネットワーク上の他のワークステーショ
ンのプリンタに出力する場合、該他ワークステーション
システムのプリントシステム制御機構に通知し、該プリ
ントシステム制御機構から起動されたジョブ受信機構に
ジョブを転送するジョブ送出制御機構と、 他のワークステーションのジョブ送出機構から転送され
るジョブを受信してスプールし、自身以外にジョブ制御
機構が起動されていれば終了し、自身以外にジョブ制御
機構が起動されていなければ、引き続いて該スプールジ
ョブを読み込んでサーバフィルタ機構を起動するジョブ
受信機構と、 スプール機構からのジョブ発生通知を受けたとき、ジョ
ブ送出機構を起動し、リモートシステムのジョブ送出機
構からのジョブ転送要求の通知を受けたとき、ジョブ受
信機構を起動するプリントシステム制御機構を備えるこ
とを特徴とするプリンタ制御機構。
1. A computer network system having an operation mode in which a printer connected to a specific workstation is shared and used by a plurality of workstation computers connected via a network, and a printer use request is given to a print job. Then, the client filter mechanism that stores in the spool directory, the server filter mechanism that interprets the printer use request given to the print job, performs the code conversion unique to the printer model, and prints to the printer, and after starting the client filter mechanism , Spool mechanism to notify the occurrence of the job, and take out the print job from the spool directory,
When outputting to the printer of the local system, the server filter mechanism is activated, and when outputting to the printer of another workstation on the network, the print system control mechanism of the other workstation system is notified, and the print system control mechanism Job transmission control mechanism that transfers jobs to the activated job reception mechanism, and receives and spools jobs transferred from the job transmission mechanism of another workstation, and ends if the job control mechanism other than itself is activated. However, if the job control mechanism other than itself is not activated, the job reception mechanism that subsequently reads the spool job and activates the server filter mechanism, and the job transmission mechanism when the job generation notification from the spool mechanism is received. Jobs that are started and from the remote system's job submission mechanism When receiving the notification of the transmission request, the printer control mechanism, characterized in that it comprises a printing system controls to start the job receiving mechanism.
【請求項2】 フォンとファイルをシステム内に備え、
または、ネットワークを介して参照可能なコンピュータ
システム上で、プリントジョブ毎に起動され、表示装置
で使用されるフォントに対応するコードを同等の形状の
プリンタのフォンとコードに変換するプリンタ制御機構
において、 プリンタに外字登録機能がある場合、外字コードとカウ
ンタを一つのエントリとし、登録可能外字数と同数のエ
ントリからなる外字登録テーブルを作成する外字登録テ
ーブル作成機構と、 入力コードが、外字であるか否かを判定する外字判定機
構と、前記外字判定機構による判定の結果、外字でない
場合、表示フォントに対応するプリンタのコードに変換
するコード変換機構と、 前記外字判定機構で入力コードが外字であると判定さ
れ、かつプリンタに外字登録機能がある場合、上記外字
登録テーブルを検索し、未登録外字であるか既登録外字
であるかを判定し、既登録外字であれば、該当するエン
トリのカウンタをインクリメントし、未登録外字であれ
ば、該カウンタが最小であるエントリの中で最も古く登
録したエントリを破棄して園エントリに新しい外字コー
ドとカウンタの初期値を登録する外字登録テーブル検索
更新機構と、 前記外字判定機構で入力コードが外字であると判定さ
れ、かつ外字登録機能のないプリンタの場合、フォンと
ファイルからフォントを取得し、出力ジョブ中の該コー
ドをフォントのビットマップデータに代えて出力し、外
字登録機能のあるプリンタの場合、未登録フォントをフ
ォントファイルから取得し、プリンタにダウンロードす
る外字ロード機構を備えることを特徴とするプリンタ制
御機構。
2. A phone and a file are provided in the system,
Alternatively, in a printer control mechanism that is activated for each print job on a computer system that can be referred to via a network and converts a code corresponding to a font used in a display device into a printer phone and a code of an equivalent shape, If the printer has the external character registration function, the external character code and the counter are treated as one entry, and the external character registration table creation mechanism that creates the external character registration table consisting of the same number of entries as the number of external characters that can be registered and whether the input code is an external character An external character determining mechanism that determines whether or not there is a result, and if the result of the determination by the external character determining mechanism is that it is not an external character, a code converting mechanism that converts it into a printer code corresponding to the display font, and the input character is the external character by the external character determining mechanism. If it is determined that the printer has the external character registration function, the external character registration table above is checked. Then, it is determined whether it is an unregistered external character or a registered external character. If it is a registered external character, the counter of the corresponding entry is incremented. If it is an unregistered external character, then the entry whose counter is the smallest is selected. In the external character registration table search and update mechanism that discards the oldest registered entry and registers the new external character code and the initial value of the counter in the garden entry, and the external character determination mechanism determines that the input code is an external character, and registers the external character. In the case of a printer without a function, the font is obtained from the font and file, and the code in the output job is output instead of the bitmap data of the font. In the case of a printer with the external character registration function, an unregistered font is extracted from the font file. A printer control mechanism comprising an external character loading mechanism for acquiring and downloading to a printer.
JP5355492A 1993-12-31 1993-12-31 Printer control mechanism Expired - Lifetime JP2778445B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5355492A JP2778445B2 (en) 1993-12-31 1993-12-31 Printer control mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5355492A JP2778445B2 (en) 1993-12-31 1993-12-31 Printer control mechanism

Publications (2)

Publication Number Publication Date
JPH07200214A true JPH07200214A (en) 1995-08-04
JP2778445B2 JP2778445B2 (en) 1998-07-23

Family

ID=18444262

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5355492A Expired - Lifetime JP2778445B2 (en) 1993-12-31 1993-12-31 Printer control mechanism

Country Status (1)

Country Link
JP (1) JP2778445B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5880782A (en) * 1981-11-06 1983-05-14 Nec Corp Printer device
JPH02100095A (en) * 1988-10-07 1990-04-12 Fujitsu Ltd External character registration device
JPH04340125A (en) * 1990-07-30 1992-11-26 Ricoh Co Ltd Multi-printer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5880782A (en) * 1981-11-06 1983-05-14 Nec Corp Printer device
JPH02100095A (en) * 1988-10-07 1990-04-12 Fujitsu Ltd External character registration device
JPH04340125A (en) * 1990-07-30 1992-11-26 Ricoh Co Ltd Multi-printer

Also Published As

Publication number Publication date
JP2778445B2 (en) 1998-07-23

Similar Documents

Publication Publication Date Title
US6842263B1 (en) Print system and printer device facilitating reuse of print data
US7477167B2 (en) Character string processing apparatus, character string processing method, and image-forming apparatus
US7461377B2 (en) Method and apparatus for automatically managing capabilities in a virtual printer group
US7116434B2 (en) Controlling a cluster operation
AU2002244111A1 (en) Method and apparatus for automatically managing capabilities in a virtual printer group
JP2006302290A (en) Image output device selection method and image output system
US7787143B2 (en) Job information management method and apparatus
JP2000207150A (en) Printing system
US20050094172A1 (en) Linking font resources in a printing system
JPH02146618A (en) Printing control method and device
US7436533B2 (en) Printer discovery, status and automatic addition of printer to print spooler database
JPH07200214A (en) Printer control mechanism
EP0854416B1 (en) Character processing in a window system
JP2009146439A (en) Character string processing apparatus, character string processing method, and image forming apparatus
JP2003150348A (en) Print service device
JP6115342B2 (en) Pull print system, pull print server and computer program
US20040093345A1 (en) Image processing apparatus having web server function
US8379251B2 (en) Image forming system and image forming apparatus
US7688465B2 (en) Print information identification and managing apparatus with first and second counters representing higher and lower significant bits of the print identification information
JP3892802B2 (en) Information processing device
JP3229062B2 (en) Communication method
JP2000172465A (en) Internet printing system
JPH06202827A (en) Print serve method and print server for using the same
US20080010236A1 (en) Printing Device and Computer Readable Medium for the Same
JPH08137638A (en) Printing device and printing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees