JP6083967B2 - Image forming apparatus, control method therefor, and program - Google Patents
Image forming apparatus, control method therefor, and program Download PDFInfo
- Publication number
- JP6083967B2 JP6083967B2 JP2012149492A JP2012149492A JP6083967B2 JP 6083967 B2 JP6083967 B2 JP 6083967B2 JP 2012149492 A JP2012149492 A JP 2012149492A JP 2012149492 A JP2012149492 A JP 2012149492A JP 6083967 B2 JP6083967 B2 JP 6083967B2
- Authority
- JP
- Japan
- Prior art keywords
- character code
- character
- byte
- code information
- byte string
- 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.)
- Active
Links
Images
Description
本発明は、画像形成装置及びその制御方法、並びにプログラムに関し、特に、複数の文字コードを処理可能な画像形成装置及びその制御方法、並びにプログラムに関する。 The present invention relates to an image forming apparatus, a control method therefor, and a program, and more particularly to an image forming apparatus capable of processing a plurality of character codes, a control method therefor, and a program.
従来、画像形成装置において、PC側のアプリケーションやプリンタドライバから設定されたジョブ名やユーザ名といった文字を属性として保持して、ジョブリストやジョブの履歴表示として表示することは一般に知られている。近年では、多言語混在環境への対応を容易とするため、文字コードとして特定言語に依存しない文字符号化方式であるUnicodeを採用する場合がある。 2. Description of the Related Art Conventionally, in an image forming apparatus, it is generally known that characters such as a job name and a user name set from an application on a PC side or a printer driver are held as attributes and displayed as a job list or job history display. In recent years, in order to easily cope with a multilingual mixed environment, Unicode, which is a character encoding method that does not depend on a specific language, may be employed as a character code.
一方、アプリケーションが特定言語に依存する文字符号化方式であるレガシーエンコーディングによって文字属性設定を行う場合でも、画像形成装置内でUnicodeに変換して保持することが実現されている(例えば、特許文献1参照)。具体的には、アプリケーションから送信されたデータ内で指定される文字について、Unicodeであるかどうかを判定し、Unicodeであればそのまま文字を示すバイト列を保存する。一方、レガシーエンコーディングであればUnicodeに変換して保存する技術が開示されている。また、アプリケーションが画像形成装置に対して文字属性を取得する場合は、保存された文字を示すバイト列と保存された文字コード識別をそのまま取得することが可能である。 On the other hand, even when a character attribute is set by legacy encoding, which is a character encoding method that depends on a specific language, conversion into Unicode is realized and stored in the image forming apparatus (for example, Patent Document 1). reference). Specifically, it is determined whether or not the character specified in the data transmitted from the application is Unicode. If it is Unicode, a byte string indicating the character is stored as it is. On the other hand, a technique for converting to Unicode and storing it for legacy encoding is disclosed. Further, when the application acquires character attributes from the image forming apparatus, it is possible to acquire the byte string indicating the stored characters and the stored character code identification as they are.
上記従来技術では、文字属性がUnicodeによって保存されている場合、保存された文字コードであるUnicodeデータとUnicodeを示す文字コード識別によって取得可能である。 In the above prior art, when the character attribute is stored by Unicode, it can be acquired by Unicode code that is the stored character code and character code identification indicating Unicode.
しかしながら、従来のレガシーエンコーディングによる文字属性取得のみに対応しているアプリケーションにおいては、Unicodeデータ及びUnicodeを示す文字コード識別を解釈することはできない。このため、Unicodeで文字を保存する画像形成装置から文字を取得するアプリケーションはUnicodeデータに対応する必要がある。一方、対応していないアプリケーションにおいては取得した文字を正しく処理できないという課題がある。 However, in an application that only supports the acquisition of character attributes by conventional legacy encoding, the Unicode data and the character code identification indicating the Unicode cannot be interpreted. For this reason, an application that acquires characters from an image forming apparatus that stores characters in Unicode needs to support Unicode data. On the other hand, there is a problem that an acquired character cannot be processed correctly in an incompatible application.
本発明は、レガシーエンコーディングのみ処理可能な従来のアプリケーションを変更することなく、画像形成装置とアプリケーション間で文字属性の取得及び設定に関する互換性を保つことが可能となる技術を提供することを目的とする。 An object of the present invention is to provide a technique that can maintain compatibility regarding acquisition and setting of character attributes between an image forming apparatus and an application without changing a conventional application that can process only legacy encoding. To do.
上記目的を達成するために、本発明の画像形成装置は、文字の文字コードを示す文字コード情報、前記文字コード情報が示す文字コードに従って文字を示すバイト列、及び前記バイト列が示す文字の文字属性を含む設定コマンドを情報処理装置から受信する受信手段と、前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが特定言語に依存しない所定の文字コードではない場合、前記受信された設定コマンドに含まれるバイト列を前記所定の文字コードで表された第1のバイト列に変換する変換手段と、前記変換された第1のバイト列を保存し、かつ、前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが前記所定の文字コードではない場合、前記設定コマンドに含まれる文字コード情報をさらに保存する保存手段と、前記情報処理装置のアプリケーションから前記文字属性を示す情報を含む取得コマンドを受信した場合、前記所定の文字コードに対応する第1のインタフェースを介してバイト列を返信するか、又は、前記所定の文字コードに対応しない第2のインタフェースを介してバイト列を返信するかを判断する判断手段と、前記第1のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された第1のバイト列を前記アプリケーションに返信し、前記第2のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された文字コード情報に基づいて、前記保存された第1のバイト列を前記所定の文字コードと異なる文字コードで表された第2のバイト列に変換し、該変換された第2のバイト列を前記アプリケーションに返信する返信手段とを備えることを特徴とする。 To achieve the above object, an image forming apparatus of the present invention, the character code information indicating a character code, the character code information byte sequence indicating the characters according to the character code that indicates, and the character indicated by the byte sequence and receiving means for character attributes that will receive including setting command from the information processing apparatus, if the character code indicating the character code information contained in the received setting command is not a predetermined character code which does not depend on the particular language a first conversion unit that converts the byte sequence a Luba site columns included in the received setting command represented by said predetermined character codes, the first byte string that is the converted and stored and, if the character code indicating the included Rubun character code information in the received setting command is not the predetermined character codes, further character code information contained in the configuration command A save unit that exists, when receiving the acquisition command including information indicating the character attribute from the application of the information processing apparatus, or sends back the bytes over a first interface corresponding to the predetermined character codes, Alternatively, when it is determined that the byte string is returned via the second interface that does not correspond to the predetermined character code, and when it is determined that the byte string is returned via the first interface, the first bytes stored reply to the application, when a decision is made to return the bytes via said second interface is first based on the stored character code information, which is the storage the first byte string is converted into a second byte sequence expressed in different character codes and the predetermined character codes, the converted second bi Characterized in that it comprises a return means for returning the column to the application.
本発明によれば、Unicodeにより文字属性を保存する画像形成装置は従来のレガシーエンコーディングのみを処理可能なアプリケーションからの文字属性取得コマンドに対して、レガシーエンコーディングに変換した文字属性取得結果を返却することができる。その結果、レガシーエンコーディングのみ処理可能な従来のアプリケーションを変更することなく、画像形成装置とアプリケーション間で文字属性の取得及び設定に関する互換性を保つことが可能となる。 According to the present invention, an image forming apparatus that stores character attributes by Unicode returns a character attribute acquisition result converted into legacy encoding in response to a character attribute acquisition command from an application that can process only conventional legacy encoding. Can do. As a result, compatibility regarding acquisition and setting of character attributes can be maintained between the image forming apparatus and the application without changing a conventional application that can process only legacy encoding.
以下、本発明の実施の形態を図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明の実施形態に係る画像形成装置を含むネットワークシステム全体の構成例を示す図である。 FIG. 1 is a diagram illustrating a configuration example of an entire network system including an image forming apparatus according to an embodiment of the present invention.
MFP101は、本実施形態に係る画像形成装置であり、スキャナ機能とプリンタ機能を備えるMFP(Multi Function Peripheral)である。MFP102は、MFP101と同様の機能を備えた画像形成装置である。 The MFP 101 is an image forming apparatus according to the present embodiment, and is an MFP (Multi Function Peripheral) having a scanner function and a printer function. The MFP 102 is an image forming apparatus having the same functions as the MFP 101.
PC103及びPC104は情報処理装置であり、LAN110を介してMFP101、MFP102と接続されている。PC103及びPC104は、MFP101またはMFP102に対して印刷処理等を依頼したり、MFP101またはMFP102の状態管理や処理中のスキャン、プリント、コピーなどのジョブ管理を行うことができる。
PC 103 and PC 104 are information processing apparatuses, and are connected to MFP 101 and MFP 102 via LAN 110. The PC 103 and the PC 104 can request the MFP 101 or the MFP 102 to perform print processing or the like, and can manage the status of the MFP 101 or the
図2は、図1におけるMFP101のハードウェア構成の一例を示す図である。なお、MFP102も図示と同様のハードウェア構成を有する。
FIG. 2 is a diagram illustrating an example of a hardware configuration of the
図2において、MFP101は、CPU201と、RAM202と、LCD203と、InputDevice204と、ROM205と、スキャナエンジン206と、プリンタエンジン207とを備える。さらに、MFP101は、DISK208と、ネットワークI/F209と、カードリーダ210とを備える。これらがシステムバス220を介して図示のように相互に接続されている。
In FIG. 2, the MFP 101 includes a
CPU201は、システムバス220を介して、RAM202、LCD203、ROM205、スキャナエンジン206、プリンタエンジン207、DISK208、及びネットワークI/F209を制御する。RAM202は、CPU201により実行される処理に必要なデータ等を一時的に記憶する読み書き可能なメモリである。ROM205は、CPU201により実行される制御プログラムを記憶する読み出し専用メモリである。MFP101を制御するプログラムは、ROM205に記憶されており、必要に応じてRAM202に読み出されてCPU201によって実行される。
The
LCD203は、液晶ディスプレイ等から成り、CPU201により実行される処理に必要な情報の表示を行う。InputDevice204は、ユーザからの操作入力を受け付ける入力部である。スキャナエンジン206は、原稿を走査しながら画像を読み取り、スキャン画像データを生成する処理を行う。プリンタエンジン207は、画像データを印刷用紙に物理的に印刷する処理を行う。DISK208は、ハードディスクドライブであり、各種処理のためのシステムソフトウェア及び入力された画像データを等格納する。ROM205やDISK208には、制御プログラム以外にもMFP101で処理されるジョブの機能や状態を示す属性情報、出力の対象となるジョブ・データ、受信して蓄積されたジョブ・データなどが記憶される。
The
CPU201は、ネットワークI/F209を介してLAN110上のPC103やPC104との通信を行う。ネットワークI/F209は、イーサネット(登録商標)インターフェースだけではなく、USBやIEEE1394、ブルートゥースなどの無線通信ネットワークI/Fであってもよい。ネットワークI/F209は、文字属性設定コマンド受信手段または文字属性取得コマンド受信手段として機能する。
The
また、CPU201は、LCD203やInputDevice204を介して、ユーザに対するメッセージを表示したり、ユーザからの入力を受け付ける。さらに、CPU201は、カードリーダ210を介して、ICカードや磁気カードからの入力データを読み取る。
Further, the
MFP101は、スキャナエンジン206を用いて、紙文書を読み込んで画像データを作成するスキャンジョブを実行することができる。また、MFP101は、プリンタエンジン207を用いて、外部から受信したデータを印刷出力するプリントジョブを実行することができる。さらに、MFP101は、スキャナエンジン206とプリンタエンジン207とを用いて紙文書の複写を行うコピージョブを実行することができる。本実施形態では、MFP101が実行する印刷、スキャン、コピー、FAX送信、FAX受信、文書保存、文書送信などの処理をジョブと称する。
Using the
次に、MFP101とPC103,104との間でLAN110を介して送受信される文字属性設定コマンドの一例を図3(a)、図3(b)を用いて説明する。
Next, an example of a character attribute setting command transmitted / received between the
図3(a)は、MFP101が受信して処理する文字属性設定コマンドの送信データの構成例を示す図である。
FIG. 3A is a diagram illustrating a configuration example of transmission data of a character attribute setting command received and processed by the
文字属性設定コマンド301(送信データ)は、属性「ユーザ名」に対して、CodeSet「ShiftJIS」でString「太郎」という文字列を設定することを示す。 The character attribute setting command 301 (transmission data) indicates that the character string “Taro” is set in CodeSet “ShiftJIS” for the attribute “user name”.
図3(b)は、MFP101が送信する文字属性設定コマンドの返信データの構成例を示す図である。
FIG. 3B is a diagram illustrating a configuration example of reply data of a character attribute setting command transmitted from the
文字属性設定コマンド302(返信データ)は、属性「ユーザ名」に対し、CodeSet「ShiftJIS」でString「太郎」という文字列を示す値の設定が正常に実行されたことを示す。 The character attribute setting command 302 (reply data) indicates that the setting of the value indicating the character string “Taro” in CodeSet “ShiftJIS” is normally executed for the attribute “user name”.
図3(a)、図3(b)に示すように、文字属性設定コマンド301,302は、属性、文字コード、文字を示すバイト列によって構成される。 As shown in FIGS. 3A and 3B, the character attribute setting commands 301 and 302 are constituted by byte strings indicating attributes, character codes, and characters.
次に、MFP101とPC103,PC104との間でLAN110を介して送受信される属性取得コマンドを図4(a)、図4(b)を用いて説明する。
Next, an attribute acquisition command transmitted / received between the
図4(a)は、MFP101が受信して処理する文字属性取得コマンドの送信データの構成例を示す図である。
FIG. 4A is a diagram illustrating a configuration example of transmission data of a character attribute acquisition command received and processed by the
文字属性取得コマンド401(送信データ)は、属性「ユーザ名」の取得要求であることを示す。 A character attribute acquisition command 401 (transmission data) indicates an acquisition request for the attribute “user name”.
図4(b)は、MFP101が送信する文字属性取得コマンドの返信データの構成例を示す図である。
FIG. 4B is a diagram illustrating a configuration example of reply data of a character attribute acquisition command transmitted from the
文字属性取得コマンド402(返信データ)は、属性「ユーザ名」に対し、CodeSet「ShiftJIS」で“太郎”という文字列を示す値の取得が正常に実行されたことを示す。 The character attribute acquisition command 402 (reply data) indicates that acquisition of a value indicating a character string “Taro” in CodeSet “ShiftJIS” for the attribute “user name” has been executed normally.
図5は、MFP101がRAM202またはDISK208で保持する文字属性の構成例を示す図である。
FIG. 5 is a diagram illustrating a configuration example of character attributes that the
501は文字属性を示す属性名であり、「ユーザ名」と「ジョブ名」が文字属性として保持されていることを示す。なお、文字属性は、MFP101が処理するジョブに関するものであってもよいし、機器名称といったMFP101に関するものであってもよい。
502は「互換用の変換文字コード」を示し、文字属性を取得する際にUTF8で保存されている文字をどのレガシーエンコーディングに変換するかを示す値である。503は保存している文字を示すバイト列であり、文字コードはUTF8に統一されている。
図5において、ユーザ名には、UTF8で“太郎”を示すバイト列が保存されており、互換用にレガシーエンコーディングの文字コードによって属性取得をさせる場合には「ShiftJIS」に変換して返すことを示す。また、ジョブ名には、UTF8で“print”を示すバイト列が保存されており、互換用にレガシーエンコーディングの文字コードによって文字属性取得をさせる場合には「ASCII」に変換して返すことを示す。 In FIG. 5, a byte string indicating “Taro” in UTF8 is stored in the user name, and when the attribute is acquired by the character code of legacy encoding for compatibility, it is converted to “Shift JIS” and returned. Show. In the job name, a byte string indicating “print” is stored in UTF8, and when the character attribute is acquired by the character code of legacy encoding for compatibility, it is converted to “ASCII” and returned. .
なお、UTF8はASCIIと上位互換性があるため、実際にはUTF8で保存されたバイト列を変更する必要はない。しかしながら、図4(b)に示すように、レガシーエンコーディングとして所定の文字コードがASCIIであるという情報は文字属性取得コマンドの返信データに必要であり、図4(b)におけるCodeSetにはASCIIを示す値が格納されるものとする。 Since UTF8 is upward compatible with ASCII, it is not actually necessary to change the byte sequence stored in UTF8. However, as shown in FIG. 4B, the information that the predetermined character code is ASCII as the legacy encoding is necessary for the return data of the character attribute acquisition command, and ASCII is indicated in CodeSet in FIG. 4B. A value shall be stored.
図6は、MFP101が図3(a)に示すような文字属性設定コマンド301を受信して実行する文字属性設定処理の流れを示すフローチャートである。本処理は、ROM205に格納されたプログラムをCPU201が実行することによって実現される。
FIG. 6 is a flowchart showing the flow of character attribute setting processing executed when the
図6に示す文字属性設定処理は、PC側のアプリケーションがMFP101にジョブを投入したり、ユーザ登録或いは機器名称を設定する場合に、PC側から図3(a)の文字属性設定コマンド301が送信され、MFP101が受信することで実行される。
The character attribute setting process shown in FIG. 6 is transmitted by the character
ステップS601では、CPU201は、受信した文字属性設定コマンドのCodeSetを参照し、指定された文字コードがUTF8であるかどうかを判断する。なお、本実施形態では、特定言語に依存しないUnicode(第1の文字コード)としてUTF8を採用するように構成しているが、UTF16などその他の特定言語に依存しない文字コードであってもよい。文字属性コマンドのCodeSetがUTF8である場合には、ステップS602へと進み、UTF8以外である場合にはレガシーエンコーディングが指定されたものとして、ステップS611へと進む。
In step S601, the
ステップS611では、CPU201は、受信した文字属性設定コマンドのStringを参照し、指定されたバイト列を得ると共に、バイト列をステップS601で参照したCodeSetで示される文字コードからUTF8へと変換して保持する。ここでCPU201は例えば第1の変換手段として機能する。
In step S611, the
次に、ステップS612では、CPU201は、ROM205からユーザモード設定を読み出す。そして、互換用の変換文字コードとして、文字属性設定時に指定された文字コードを採用するモードか、MFP101の表示言語設定に対応する文字コードを採用するモードかを判断する。通常は、文字属性設定時に指定された文字コードを採用するモードとなる。しかしながら、文字属性設定を指示するアプリケーションやプリンタドライバなどが指定する文字コードと指定するバイト列との対応が一致していない場合などは、表示言語設定を優先して処理した方が文字属性取得時の従来互換性を高めることがある。
Next, in step S612, the
ステップS612の判定結果から、CPU201が表示言語設定に対応する文字コードを採用するモードであると判定した場合にはステップS602へと進む。一方、文字属性設定時に指定された文字コードを採用するモードであると判定した場合にはステップS613へと進む。
If the
ステップS613では、CPU201は、文字属性設定コマンド内で指定された文字コードを示す値を、図5に示す互換用の変換文字コード502としてDISK208に保存し、ステップS604へと進む。ステップS613でCPU201は文字属性保存手段として機能する。
In step S613, the
ステップS602では、CPU201は、表示言語設定の値をROM205から取得して次のステップS603へと進む。
In step S602, the
ステップS603では、CPU201は、ステップS602で取得した表示言語設定に対応するレガシーエンコーディングを、図5に示す互換用の変換文字コード502としてDISK208に保存して、ステップS604へと進む。例えば、表示言語設定が日本語表示設定であれば、対応するShiftJISを保存するが、表示言語設定と対応するレガシーエンコーディングの組は予め決められているものとする。ステップS603でCPU201は文字属性保存手段として機能する。
In step S603, the
ステップS604では、CPU201は、ステップS611でUTF8に変換され保持されたバイト列或いは文字属性設定コマンドでUTF8にて設定されたバイト列を、図5に示すバイト列503としてDISK208に保存する。一連の文字設定処理が完了すると、CPU201は、返信データとして図3(b)に示す文字属性設定コマンド302をPC103またはPC104に送信して本処理を終了する。
In step S604, the
図7は、MFP101が図4(a)に示すような文字属性取得コマンド401を受信して実行する文字属性取得処理の流れを示すフローチャートである。本処理は、ROM205に格納されたプログラムをMFP101のCPU201が実行することによって実現される。
FIG. 7 is a flowchart showing the flow of character attribute acquisition processing executed when the
図7の文字属性取得処理は、PC側のアプリケーションがMFP101にジョブ名を取得したり、登録されたユーザ名又は機器名称を取得する場合に、PC側から図4(a)の文字属性取得コマンド401が送信され、MFP101が受信することで実行される。
The character attribute acquisition process in FIG. 7 is performed when the PC-side application acquires a job name in the
ステップS701では、CPU201は、従来互換の必要があるI/F(レガシーエンコーディングで文字属性を返却するI/F)による取得なのか、Unicodeで文字属性を返却するI/Fによる取得なのかを判断する。従来互換の必要があるI/Fである場合にはUTF8のまま文字を取得させず、従来互換用にレガシーエンコーディングに変換して取得させるため、ステップS702へと進む。一方、Unicodeで文字属性を返却するI/Fによる取得だと判断する場合は、従来互換を考慮する必要はないため、ステップS711へと進む。
In step S701, the
ステップS702では、CPU201は、受信した文字属性取得コマンドの属性指定を参照し、対象属性について図5に示す互換用の変換文字コード502(第2の文字コード)を取得する。ステップS702でCPU201は文字コード取得手段として機能する。
In step S702, the
ステップS703では、CPU201は、対象属性について図5に示す文字を示すバイト列503の領域を読み出し、対象属性のバイト列を取得する。ここで取得するバイト列はUTF8に統一されている。
In step S703, the
ステップS704では、CPU201は、ステップS703で取得したUTF8のバイト列を、ステップS702で取得した互換用の変換文字コード502によって文字コード変換し、レガシーエンコーディングのバイト列に置き換える。ステップS704でCPU201は第2の変換手段として機能する。
In step S704, the
ステップS705では、CPU201は、ステップS704で変換したバイト列を図4(b)に示すStringとして設定する。そして、互換用の変換文字コードを図4(b)に示すCodeSetとして設定したのち、返信データとして図4(b)に示す文字属性取得コマンド402をPC103またはPC104に返信する。
In step S705, the
ステップS711では、CPU201は、対象属性について図5に示す文字を示すバイト列503を取得する。
In step S711, the
次に、ステップS712では、CPU201は、図5に示す文字を示すバイト列503に保存されている文字コードであるUTF8を図4(b)に示すCodeSetに、ステップS711で取得したバイト列をStringにそれぞれ設定する。その上で文字属性取得コマンドに対する返信データとして、文字属性取得コマンド402をPC103またはPC104に送信して本処理を終了する。
Next, in step S712, the
以上説明したように、本実施形態によれば、MFP101は、レガシーエンコーディングを指定した文字属性設定コマンドに対して、バイト列をUTF8に変換した上で保存すると共に、文字属性設定コマンドに指定された文字コードを保存することが可能となる。
As described above, according to the present embodiment, the
また、MFP101は、文字属性取得コマンドに対し、文字を示すバイト列をUTF8からレガシーエンコーディングに変換した上で、レガシーエンコーディングの文字コードを文字属性取得結果として返却するように構成することができる。
Further, the
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。 The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.
101,102 MFP
103,104 PC
110 LAN
201 CPU
301,302 文字属性設定コマンド
401,402 文字属性取得コマンド
501 属性名
502 互換用の変換文字コード
503 文字を示すバイト列
101,102 MFP
103,104 PC
110 LAN
201 CPU
301, 302 Character
Claims (6)
前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが特定言語に依存しない所定の文字コードではない場合、前記受信された設定コマンドに含まれるバイト列を前記所定の文字コードで表された第1のバイト列に変換する変換手段と、
前記変換された第1のバイト列を保存し、かつ、前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが前記所定の文字コードではない場合、前記設定コマンドに含まれる文字コード情報をさらに保存する保存手段と、
前記情報処理装置のアプリケーションから前記文字属性を示す情報を含む取得コマンドを受信した場合、前記所定の文字コードに対応する第1のインタフェースを介してバイト列を返信するか、又は、前記所定の文字コードに対応しない第2のインタフェースを介してバイト列を返信するかを判断する判断手段と、
前記第1のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された第1のバイト列を前記アプリケーションに返信し、前記第2のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された文字コード情報に基づいて、前記保存された第1のバイト列を前記所定の文字コードと異なる文字コードで表された第2のバイト列に変換し、該変換された第2のバイト列を前記アプリケーションに返信する返信手段とを備えることを特徴とする画像形成装置。 Character code information indicating a character code, the character code information byte sequence indicating the characters according to the character code indicated by, and receive character attributes of characters indicated by the byte sequence to including configuration commands from the information processing apparatus and receiving means you,
If the character code indicating the character code information contained in the received setting command is not a predetermined character code which does not depend on the particular language, the Luba site columns included in the received setting command by the predetermined character codes a conversion unit that converts the first byte sequence expressed,
Wherein the transformed first bytes stored, and if the character code indicated by the included Rubun character code information on the received setting command is not the predetermined character codes, characters included in the setting command and save means further stores the code information,
When an acquisition command including information indicating the character attribute is received from the application of the information processing apparatus, a byte string is returned via the first interface corresponding to the predetermined character code, or the predetermined character Determining means for determining whether to return a byte string via a second interface not corresponding to the code;
If it is determined that a byte string is returned via the first interface, the stored first byte string is returned to the application, and a byte string is determined to be returned via the second interface. If, based on the stored character code information, it converts the first byte sequence in which the stored in the second byte sequence expressed in different character codes and the predetermined character codes, is the conversion An image forming apparatus comprising: a reply unit that returns the second byte string to the application .
文字の文字コードを示す文字コード情報、前記文字コード情報が示す文字コードに応じて文字を示すバイト列、及び前記バイト列が示す文字の文字属性を含む設定コマンドを情報処理装置から受信する受信工程と、
前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが特定言語に依存しない所定の文字コードではない場合、前記受信された設定コマンドに含まれるバイト列を前記所定の文字コードで表された第1のバイト列に変換する変換工程と、
前記変換された第1のバイト列を保存し、かつ、前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが前記所定の文字コードではない場合、前記設定コマンドに含まれる文字コード情報をさらに保存する保存工程と、
前記情報処理装置のアプリケーションから前記文字属性を示す情報を含む取得コマンドを受信した場合、前記所定の文字コードに対応する第1のインタフェースを介してバイト列を返信するか、又は、前記所定の文字コードに対応しない第2のインタフェースを介してバイト列を返信するかを判断する判断工程と、
前記第1のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された第1のバイト列を前記アプリケーションに返信し、前記第2のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された文字コード情報に基づいて、前記保存された第1のバイト列を前記所定の文字コードと異なる文字コードで表された第2のバイト列に変換し、該変換された第2のバイト列を前記アプリケーションに返信する返信工程とを備えることを特徴とする画像形成装置の制御方法。 An image forming apparatus control method comprising:
Character code information indicating a character code, the character code information byte sequence indicating the characters according to the character code indicated by, and receive character attributes of characters indicated by the byte sequence to including configuration commands from the information processing apparatus and receiving process you,
If the character code indicating the character code information contained in the received setting command is not a predetermined character code which does not depend on the particular language, the Luba site columns included in the received setting command by the predetermined character codes a conversion step that converts the first byte sequence expressed,
Wherein the transformed first bytes stored, and if the character code indicated by the included Rubun character code information on the received setting command is not the predetermined character codes, characters included in the setting command a save step of further storing the code information,
When an acquisition command including information indicating the character attribute is received from the application of the information processing apparatus, a byte string is returned via the first interface corresponding to the predetermined character code, or the predetermined character A determination step of determining whether to return a byte string via a second interface that does not correspond to a code;
If it is determined that a byte string is returned via the first interface, the stored first byte string is returned to the application, and a byte string is determined to be returned via the second interface. If, based on the stored character code information, it converts the first byte sequence in which the stored in the second byte sequence expressed in different character codes and the predetermined character codes, is the conversion And a return step of returning the second byte string to the application .
前記画像形成装置の制御方法は、
文字の文字コードを示す文字コード情報、前記文字コード情報が示す文字コードに応じて文字を示すバイト列、及び前記バイト列が示す文字の文字属性を含む設定コマンドを情報処理装置から受信する受信工程と、
前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが特定言語に依存しない所定の文字コードではない場合、前記受信された設定コマンドに含まれるバイト列を前記所定の文字コードで表された第1のバイト列に変換する変換工程と、
前記変換された第1のバイト列を保存し、かつ、前記受信された設定コマンドに含まれる文字コード情報が示す文字コードが前記所定の文字コードではない場合、前記設定コマンドに含まれる文字コード情報をさらに保存する保存工程と、
前記情報処理装置のアプリケーションから前記文字属性を示す情報を含む取得コマンドを受信した場合、前記所定の文字コードに対応する第1のインタフェースを介してバイト列を返信するか、又は、前記所定の文字コードに対応しない第2のインタフェースを介してバイト列を返信するかを判断する判断工程と、
前記第1のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された第1のバイト列を前記アプリケーションに返信し、前記第2のインタフェースを介してバイト列を返信すると判断した場合には、前記保存された文字コード情報に基づいて、前記保存された第1のバイト列を前記所定の文字コードと異なる文字コードで表された第2のバイト列に変換し、該変換された第2のバイト列を前記アプリケーションに返信する返信工程とを備えることを特徴とするプログラム。 A program for causing a computer to execute a control method of an image forming apparatus,
The control method of the image forming apparatus is:
Character code information indicating a character code, the character code information byte sequence indicating the characters according to the character code indicated by, and receive character attributes of characters indicated by the byte sequence to including configuration commands from the information processing apparatus and receiving process you,
If the character code indicating the character code information contained in the received setting command is not a predetermined character code which does not depend on the particular language, the Luba site columns included in the received setting command by the predetermined character codes a conversion step that converts the first byte sequence expressed,
Wherein the transformed first bytes stored, and if the character code indicated by the included Rubun character code information on the received setting command is not the predetermined character codes, characters included in the setting command a save step of further storing the code information,
When an acquisition command including information indicating the character attribute is received from the application of the information processing apparatus, a byte string is returned via the first interface corresponding to the predetermined character code, or the predetermined character A determination step of determining whether to return a byte string via a second interface that does not correspond to a code;
If it is determined that a byte string is returned via the first interface, the stored first byte string is returned to the application, and a byte string is determined to be returned via the second interface. If, based on the stored character code information, it converts the first byte sequence in which the stored in the second byte sequence expressed in different character codes and the predetermined character codes, is the conversion And a return step of returning the second byte string to the application .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012149492A JP6083967B2 (en) | 2012-07-03 | 2012-07-03 | Image forming apparatus, control method therefor, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012149492A JP6083967B2 (en) | 2012-07-03 | 2012-07-03 | Image forming apparatus, control method therefor, and program |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017012035A Division JP6366755B2 (en) | 2017-01-26 | 2017-01-26 | Image forming apparatus, control method therefor, and program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2014008769A JP2014008769A (en) | 2014-01-20 |
JP2014008769A5 JP2014008769A5 (en) | 2015-08-20 |
JP6083967B2 true JP6083967B2 (en) | 2017-02-22 |
Family
ID=50105851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012149492A Active JP6083967B2 (en) | 2012-07-03 | 2012-07-03 | Image forming apparatus, control method therefor, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6083967B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016062983A (en) | 2014-09-16 | 2016-04-25 | 株式会社東芝 | Semiconductor device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3382572B2 (en) * | 1999-04-13 | 2003-03-04 | キヤノン株式会社 | Character string information output device, character string information output system, character string information output method, character string information recording device, character string information recording method, and storage medium |
JP2004227351A (en) * | 2003-01-23 | 2004-08-12 | Ricoh Co Ltd | Information providing device, information display device, information providing system, information providing method, and information providing program |
JP4687283B2 (en) * | 2005-06-30 | 2011-05-25 | ブラザー工業株式会社 | PRINT CONTROL DEVICE, CONTROL PROGRAM FOR PRINT CONTROL DEVICE, AND PRINT SYSTEM |
JP2007079847A (en) * | 2005-09-13 | 2007-03-29 | Ricoh Co Ltd | Character processor, character processing method, character processing program and recording medium |
JP2007076253A (en) * | 2005-09-15 | 2007-03-29 | Ricoh Co Ltd | Image forming device and data processing method for forming image |
JP4681422B2 (en) * | 2005-11-01 | 2011-05-11 | Aiソリューションズ株式会社 | Image forming apparatus and image forming system |
-
2012
- 2012-07-03 JP JP2012149492A patent/JP6083967B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2014008769A (en) | 2014-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102479062B (en) | Printing system, information processing apparatus, and printing method | |
US9069504B2 (en) | Printing apparatus and method for increasing storage area | |
US20110063668A1 (en) | Printing control apparatus, printing control method, and storage medium | |
US7812990B2 (en) | Data processing apparatus and method | |
US9237251B2 (en) | Data processing apparatus that enables import/export of setting value, control method therefor, and storage medium storing control program therefor | |
US20070223068A1 (en) | Image forming apparatus, image display apparatus, image forming method, image display method, image display system, and storage medium | |
JP2009266211A (en) | System and method for assisting software update of document processing device | |
EP1755029A1 (en) | Printing process control method and short distance wireless communication terminal apparatus | |
US8230205B2 (en) | Image processing apparatus and program starting up method | |
US8665478B2 (en) | Printing system, control method of the same, print server, control method of the print server, and storage medium | |
JP2024025809A (en) | Image forming device, image forming device control method, and program | |
JP6366755B2 (en) | Image forming apparatus, control method therefor, and program | |
JP6083967B2 (en) | Image forming apparatus, control method therefor, and program | |
JP4761535B2 (en) | Document management apparatus and method, program | |
JP2015026215A (en) | Printing system and control method thereof, information processor and control method thereof, printer and control method thereof, and program | |
EP2403230B1 (en) | Device link profile creation method, computer-readable medium storing program, and device link profile creation apparatus | |
US8462372B2 (en) | Image processing apparatus and image processing method for storing output pattern data according to a kind of document | |
US9071707B2 (en) | Devices and methods for acquiring model information of a peripheral device by a computer | |
JP2009054153A (en) | System and method for customizing driver of document processing device | |
JP2000353059A (en) | Device and method for image processing, device and method for image forming and image processing system | |
US20210342106A1 (en) | Program, method, and device for generating job data | |
JP6996373B2 (en) | Information processing equipment, image forming equipment, systems and programs | |
JP2009276919A (en) | Image information processor, image formation processor and program | |
JP2009075854A (en) | Image forming device, updating system, and updating method | |
JP4118834B2 (en) | Printer control program and printer control apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150629 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150629 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160524 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160531 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160729 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20161227 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170124 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6083967 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |