JP2004227351A - Information providing device, information display device, information providing system, information providing method, and information providing program - Google Patents

Information providing device, information display device, information providing system, information providing method, and information providing program Download PDF

Info

Publication number
JP2004227351A
JP2004227351A JP2003015342A JP2003015342A JP2004227351A JP 2004227351 A JP2004227351 A JP 2004227351A JP 2003015342 A JP2003015342 A JP 2003015342A JP 2003015342 A JP2003015342 A JP 2003015342A JP 2004227351 A JP2004227351 A JP 2004227351A
Authority
JP
Japan
Prior art keywords
character string
character
information
character code
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003015342A
Other languages
Japanese (ja)
Inventor
Seiji Takahashi
征司 高橋
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2003015342A priority Critical patent/JP2004227351A/en
Publication of JP2004227351A publication Critical patent/JP2004227351A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information providing device which appropriately provides information by a character code, which can express a plurality of languages, on an information providing device treating a double byte system character code as an internal code. <P>SOLUTION: The information providing device provides prescribed information with a character string by a first character code, which is a character code to express a plurality of languages, according to a request transmitted from a terminal. It is provided with an information management means which manages at least one part of the prescribed information associating with a code distinguishing information, which distinguishes a class of a second character code, with a character string by the second character code, a first character code translation means which translates the character string managed by the information management means to the character string by the first character code based on the code distinguishing information associated with the character string according to the request from the terminal, and an information transmission means which transmits the character string by the first character code to be translated by the first character code translation means to the terminal. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、ネットワークを介して接続している端末から送信される要求に応じて、所定の情報を提供する情報提供装置に関する。
【0002】
【従来の技術】
Web技術の普及に伴い、近年ではいわゆるサーバ機と呼ばれるコンピュータのみならず、様々な機器にもWebサーバ機能が搭載されている。例えば、LP(Line Printer)、MFP(Multi Function Printer)等の画像処理装置は、ネットワークを介して接続しているWebクライアントから様々な情報の閲覧や設定などが可能となっている。
【0003】
一方、近年の国際化に伴い、それぞれ異なる言語を使うユーザが同一の機器にアクセスする機会が増加している。このような状況に対処すべく、同一の情報を様々な言語で提供する機器がある。即ち、Webクライアントから、機器の情報を英語で表示するWebページの送信を要求された場合は、機器は英語によるWebページを提供し、日本語で表示するWebページの送信を要求された場合は、機器は日本語によるWebページを提供する。
【0004】
しかしながら、Webページ上のすべての情報が表示言語に依存しているわけではない。例えば、ユーザがWebクライントから機器に対して設定した情報等、その情報の値そのものに意味があるものについては、表示言語によって表示態様(言葉)を変えるのは適切でない。従って、表示言語に依存した情報(表示言語の言葉で表示されるべき情報)と、依存しない情報(表示言語によって値が変更されるべきではない情報)とを一つのWebページに表示させる場合において、表示言語に依存しない情報が、表示言語と異なる言語によるものである場合は、一つのWebページに複数の言語による文字列を混在させて表示させる必要がある。
【0005】
一つのWebページに複数の言語を混在させて表示させる手段として、UnicodeによってWebページを生成することが考えられる。Unicodeは、一つの文字コード体系で世界中の主な言語の文字の全てを表現するものであり、種々の言語の全ての文字に対して一意に文字コードが定まるものである。従って、WebページをUnicodeで生成することで、機器は、種々の言語を混在させたWebページを提供することができる。
【0006】
なお、文字コード変換に関する発明については、特許文献1及び特許文献2等に記載されている。
【0007】
【特許文献1】
特開2001−84183号公報
【0008】
【特許文献2】
特開2001−243217号公報
【0009】
【発明が解決しようとする課題】
しかしながら、WebクライアントへUnicodeによるWebページを提供した場合、そのWebページ上でユーザによって入力された文字列は、Unicodeの文字列として機器に送信される。
【0010】
ところが、機器の内部コードとしてUnicodeを採用しているものはまだ少ないのが現状である。即ち、従来からの機器は一文字に最大2バイトの領域を必要とする2バイト系文字コードを扱うように設計されており、一文字に2バイト以上の領域を必要とするUnicodeを扱うには、2000年問題の場合と同様、大きな改造が必要となるからである。
【0011】
本発明は、上記の点に鑑みてなされたものであって、2バイト系文字コードを内部コードとして扱っている情報提供装置において、複数言語の表現が可能な文字コードで適切に情報の提供を行うことができる情報提供装置の提供を目的とする。
【0012】
【課題を解決するための手段】
そこで上記課題を解決するため、本発明は、請求項1に記載されるように、ネットワークを介して接続している端末から送信される要求に応じて、複数言語を表現する文字コードである第一の文字コードによる文字列で所定の情報を提供する情報提供装置であって、前記所定の情報の少なくとも一部を、第二の文字コードによる文字列で、前記第二の文字コードの種別を識別するコード識別情報と関連付けて管理する情報管理手段と、前記端末からの要求に応じて、前記情報管理手段が管理している文字列を、前記文字列と関連付けられている前記コード識別情報に基づいて前記第一の文字コードによる文字列に変換する第一の文字コード変換手段と、前記第一の文字コード変換手段による変換先の前記第一の文字コードによる文字列を前記端末に送信する情報送信手段とを有することを特徴とする。
【0013】
このような情報提供装置では、2バイト系文字コード等の第二の文字コードによって管理されている文字列を、当該文字列に関連付けられているコード識別情報に基づいてUnicode等の複数言語を扱える第一の文字コードに変換するため、複数言語の表現が可能な文字コードで文字化け等させることなく適切に情報の提供を行うことができる。
【0014】
また上記課題を解決するため、本発明は、前記情報提供装置における情報提供方法、前記情報提供方法をコンピュータに実行させるためのプログラム、前記情報提供装置から送信される情報を表示する情報表示装置、又は前記情報提供装置と前記情報表示装置とを有する情報提供システムとしてもよい。
【0015】
【発明の実施の形態】
以下、図面に基づいて本発明の実施の形態を説明する。本実施の形態においては、画像処理装置を情報提供装置の一例として説明する。図1は、本発明の実施の形態における画像処理装置の機能構成例を示す図である。図1において、画像処理装置10は、プロッタエンジン1023及びスキャナエンジン1024等の個別の画像処理を行うためのハードウェア資源と、エンジン制御ボード1022と、OS1021と、システム管理サービス1016と、ネットワークサービス1017と、メモリ管理サービス1018と、オペパネ管理サービス1019と、エンジン管理サービス1020と、コピーアプリ1011、ファックスアプリ1012、プリンタアプリ1013及び情報提供1014等の各種アプリケーションとから構成される。
【0016】
エンジン制御ボード1022は、プロッタエンジン1023及びスキャナエンジン1024等の画像処理装置10の個別機能を制御し、エンジンI/F(インタフェース)を通して、エンジン制御ボード1022の機能をOS1021等に提供する。
【0017】
OS1021は、UNIX(登録商標)等のオペレーティング・システムであり、コピーアプリ1011、ファックスアプリ1012等、アプリケーションとして実装されている各種ソフトウェアをプロセスとして並列実行する。
【0018】
システム管理サービス1016、ネットワークサービス1017、メモリ管理サービス1018、オペパネ管理サービス1019、及びエンジン管理サービス1020は、API(Application Programming Interface)を通して、コピーアプリ1011等の上位アプリケーションにそれぞれの機能と提供するものである。即ち、システム管理サービス1016は、システム管理に関する機能を提供し、ネットワークサービス1017は、ネットワーク通信に関する機能を提供する。また、メモリ管理サービス1018は、メモリ管理に関する機能を提供し、オペパネ管理サービス1019は、画像処理装置10に設置された操作パネル(オペパネ)に関する機能を提供する。更に、エンジン管理サービス1020は、エンジン制御ボード1022を介してプロッタエンジン1023やスキャナエンジン1024を制御するための機能を提供する。
【0019】
コピーアプリ1011は、コピー用アプリケーションであり、ファックスアプリ1012は、ファクシミリ用アプリケーションである。プリンタアプリ1013は、ページ記述言語(PDL)、PCL及びポストスクリプト(PS)を有するプリンタ用アプリケーションである。また、情報提供アプリ1014は、本発明の特徴が実装されているアプリケーションであり、画像処理装置10にネットワークを介して接続している端末に対して、端末のユーザに適した言語で各種の情報を提供するためのアプリケーションである。
【0020】
次に、上述した情報提供アプリ1014及びネットワークサービス1017等により実現される画像処理装置10のWebサーバとしての機能について説明する。図2は、Webサーバとしての画像処理装置の機能構成例を示す図である。図2の画像処理装置10は、組み込みWebサーバ11、Webアプリ12、プリンタ情報管理部13、多言語変換モジュール15、言語処理部16、言語リソース17、及び書式情報ファイル18等から構成される。また、画像処理装置10には、LAN、イントラネット、又はインターネット等のネットワーク50を介して端末20、端末30、及び端末40等が接続している。
【0021】
組み込みWebサーバ11は、一般にHTTPd(HTTP daemon)と呼ばれるプログラムに相当するものであり、画像処理装置10をWebサーバとして機能させるためのものある。
【0022】
Webアプリ12は、端末20等から送信されたWebページの送信要求に基づいて、組み込みWebサーバ11によって呼び出されるいわゆるWebアプリケーションである。Webアプリ12は、端末20等から画像処理装置10に関する情報(プリンタ名、グループ名、及びコメント等から構成される情報。以下、「プリンタ情報」という。)の参照を要求された場合には、プリンタ情報管理部13よりプリンタ情報を取得し、組み込みWebサーバ11に出力する。また、端末20等からプリンタ情報の設定、変更等が要求された場合には、要求に伴って送信された値をプリンタ情報管理部13に設定する。
【0023】
プリンタ情報管理部13は、プリンタ情報が登録されている記憶領域である。
【0024】
多言語変換モジュール15は、本実施の形態において第二の文字コードに相当する2バイト系文字コード(1文字を表現するために細大で2バイトを必要とする文字コード)による文字列を、本実施の形態において第一の文字コードに相当するUnicodeに変換する処理を実行するプログラムである。なお、言語処理部16、言語リソース17、及び書式情報ファイル18の詳細については後述する。
【0025】
画像処理装置10は、上記の機能によって端末20等と通信を行う。ここで、画像処理装置10と端末20等との通信に用いる文字コードは複数言語を表現する文字コード(第一の文字コード)であるUnicode(UTF−8)であるとする。即ち、画像処理装置10は、プリンタ情報の参照及び設定を行うためのWebページ(以下、「プリンタ情報ページ」という。)をUnicodeで生成し、端末20等に送信する。また、端末20等においてプリンタ情報ページに入力された値(文字列)は、Unicode(UTF−8)で画像処理装置10に送信される。
【0026】
一方、画像処理装置10の内部処理に用いる文字コードは、今日のほとんどの機器と同様2バイト系文字コード(第二の文字コード)である。従って、プリンタ情報管理部13には、プリンタ情報を構成する文字列が2バイト系文字コードで登録されている。
【0027】
また、本実施の形態において、端末20のユーザは日本人、端末30のユーザはアメリカ人、端末40のユーザはチェコ人であるとし、画像処理装置10、端末20、端末30、及び端末40等は、日本国内のオフィスにおける同一のフロアにあるものとする。
【0028】
以下、図2の画像処理装置10の処理手順について説明する。図3は、プリンタ情報の更新要求を受信した場合の画像処理装置の処理を説明するためのシーケンス図である。
【0029】
ステップS1において、端末20の日本人ユーザが、端末20のWebブラウザに表示されたプリンタ情報ページにおいてプリンタ情報を入力すると、端末20は、画像処理装置10にプリンタ情報の設定要求を送信する。
【0030】
図4は、プリンタ情報ページの表示例を示す図である。図4のプリンタ情報ページは、ラベル411、412、及び413と、テキストボックス414、415、及び416と、ボタン417とから構成されている。各ラベルには、プリンタ情報を構成する属性の属性名がそれぞれ日本語で表示されている(「プリンタ名」、「グループ名」、「コメント」)。また、各テキストボックスには、それぞれの属性値が表示されている(「開発部用プリンタ」、「RRR」、「修理中」)。
【0031】
各テキストボックスでは、属性値を編集することができる。従って、ユーザが図4に示されるように各属性値を入力し、ボタン417をクリックすると、ステップS1における要求が画像処理装置10に対して送信される。なお、ここで、各テキストボックスに入力された文字列は、Unicodeによる文字列として画像処理装置10に送信される。
【0032】
ステップS1に続いてステップS2に進み、端末20からの要求を受信した画像処理装置10のWebサーバプログラム11は、端末20から送信されたプリンタ情報の属性値の登録をWebアプリ12に指示する。
【0033】
ステップS2に続いてステップS3に進み、Webアプリ12は、Unicodeの文字列であるプリンタ情報の属性値を2バイト系文字コードの文字列に変換する。Unicodeは、一つの文字コード体系で世界中の主な言語の文字の全てを表現するものであり、全ての文字に対して一意に文字コードが定まる。従って、Webアプリ12は、属性値を示す文字列の、Unicodeにおける文字コードの値から当該文字列がどの言語に該当するかを識別することにより、当該文字列をその言語に対応した2バイト系文字コードに変換する。ここでは、プリンタ情報が日本語で入力されているため、Webアプリ12は、プリンタ情報をShift JIS(SJIS)に変換する。
【0034】
ステップS3に続いてステップS4に進み、Webアプリ12は、SJISに変換されたプリンタ情報を、変換後の2バイト系文字コードの種別(ここではSJIS)を識別する情報(以下、「エンコード情報」という。)と共にプリンタ情報管理部13に登録する。
【0035】
図5は、プリンタ情報の登録イメージを示す図である。図5において、1文字につき3バイト分の領域をもつUnicode文字列データ501が、2バイト系文字列データ502に変換されて登録され、エンコード情報503が関連付けられてプリンタ情報管理部13に登録されている様子を示している。なお、図5においては、便宜上1文字分について表現しているが、エンコード情報は文字列(属性値)ごとに持たせてもよい。本実施の形態においては、文字列ごとにエンコード情報が関連付けられているものとする。従って、SJISに変換された「開発部用プリンタ」、「RRR」、及び「修理中」という文字列が、それぞれのエンコード情報(SJIS)と共にSJISでプリンタ情報管理部13に登録される。
【0036】
ステップS4に続いてステップS5に進み、Webアプリ12はプリンタ情報の登録処理の結果を示す情報(例えば、正常終了又はエラー等の情報。以下、「処理結果情報」という。)を示すXML形式のデータ(以下、「処理結果データ」という。)を組み込みWebサーバ11に出力する。
【0037】
ステップS5に続いてステップS6に進み、組み込みWebサーバ11は、処理結果データに基づいて処理結果情報を表示するWebページ(以下、「処理結果ページ」という。)を生成し、処理結果情報ページを端末20に送信する。ステップS6に続いてステップS7に進み、端末20に処理結果ページが表示され、日本人ユーザは、画像処理装置10に正常にプリンタ情報を設定することができた旨を確認することができる。
【0038】
次に、かかるプリンタ情報を端末30のアメリカ人ユーザが参照、又は更新しようとした場合について説明する。図6は、プリンタ情報の参照要求を受信した場合の画像処理装置の処理を説明するためのシーケンス図である。
【0039】
ステップS11において、端末30のアメリカ人ユーザが英語版のプリンタ情報ページ(以下、「英語版プリンタ情報ページ」という。)に対するURLをWebブラウザに入力すると、端末30は、英語版プリンタ情報ページの送信要求を画像処理装置10に送信する。
【0040】
ステップS11に続いてステップS12に進み、端末20からの要求を受信した組み込みWebサーバ11は、プリンタ情報の取得をWebアプリ12に要求する。ステップS12に続いてステップS13に進み、Webアプリ12は、プリンタ情報管理部13から2バイト系文字コードで登録されているプリンタ情報の属性値を示す文字列(以下、「2バイト系文字列」という。)とそれぞれの属性値に付加されているエンコード情報とを取得する。
【0041】
ステップS13に続いてステップS14に進み、Webアプリ12は、2バイト系文字列とそのエンコード情報を多言語変換モジュール15に引渡し、2バイト系文字列のUnicodeによる文字列(以下、「Unicode文字列」という。)への変換を要求する。
【0042】
ステップS14に続いてステップS15に進み、多言語変換モジュール15は、2バイト系文字列をUnicode文字列に変換する。ここで、多言語変換モジュール15は、エンコード情報により、2バイト系文字列がどの文字コードによるものかを特定することで、当該2バイト系文字列を構成する各文字のUnicode上での文字コードを一意に特定する。ステップS15に続いてステップS16に進み、多言語変換モジュール15は、Unicodeに変換した属性値をWebアプリ12に出力する。
【0043】
ステップS16に続いてステップS17に進み、Webアプリ12は、プリンタ情報ページに掲載する情報をXML形式のデータとして生成し、組み込みWebサーバ11に出力する(S18)。なお、ステップS17においてWebアプリ12が生成するXML形式のデータを以下、「掲載データ」という。
【0044】
図7は、掲載データの例を示す図である。図7の掲載データ300において、記述301、記述302、及び記述303には、それぞれプリンタ情報を構成する属性であるプリンタ名、グループ名、コメントについての属性名及び属性値が順番に出力されている。即ち、各記述は、それぞれ<Name>タグで囲まれたName要素と<Value>タグで囲まれたValue要素とから構成されており、Name要素は属性名を、Value要素は属性値を示す。
【0045】
掲載データ300を図4におけるプリンタ情報ページ410に対応させて説明する。ラベル411に表示される文字列は記述3011における「S_NAME」であり、テキストボックス414に表示される文字列は、記述3012における「開発部用プリンタ」である。また、ラベル412に表示される文字列は、記述3021における「S_GROUP」であり、テキストボックス415に表示される文字列は、記述3022における「RRR」である。更に、ラベル413に表示される文字列は、記述3031における「S_COMMENT」であり、テキストボックス416に表示される文字列は、記述3032における「修理中」である。
【0046】
ここで、各属性名は、表示文字列そのものではないことが分かる。即ち、「S_NAME」、「S_GROUP」、及び「S_COMMENT」は、表示文字列そのものではなく、表示文字列を識別するための文字列(以下、「ID文字列」という。)である。これは、各属性名は表示させる表示言語によって表示するための文字列が変化するからである。
【0047】
一方、属性値は、値そのものに絶対的な意味があるため、言語ごとに変化させるのは好ましくない。即ち、プリンタ名である「開発用プリンタ」は、「開発用プリンタ」という文字列としての値に意味があり、「開発用プリンタ」という言語に意味があるものではない。
【0048】
値そのものに意味があるものには、一般に、ユーザによって設定、変更可能な動的な情報が相当する場合が多い。従って、以下の説明においては、かかるデータを「動的データ」と呼ぶ。本実施の形態においては、各属性値が動的データに相当する。これに対し、ユーザから設定されたり変更されたりするものではなく、予め表示文字列が表示言語毎で定まっているデータを「静的データ」と呼ぶ。本実施の形態においては、属性名等のID文字列で識別される文字列が静的データに相当する。
【0049】
なお、記述304には、端末20等から要求された言語を識別するための情報が出力されている。即ち、Webアプリ12が、端末20等からの要求(HTTPリクエスト)に含まれるURLから端末20等が要求している言語を特定し、当該言語を識別するための文字列を出力したものである。ここで、「en」は英語を示す。
【0050】
ステップS18に続いてステップS19に進み、組み込みWebサーバ11は、言語処理部16に、XML形式である掲載データ300のWebページ(HTML形式)への変換を指示する。
【0051】
ステップS19に続いてステップS20に進み、言語処理部16は、言語リソース17及び書式情報ファイル18等を利用して、掲載データ300をWebページ(プリンタ情報ページ)に変換する。
【0052】
ここで、言語リソース17と書式情報ファイル18について説明する。言語リソース17は、表示言語ごとにID文字列と表示文字列との対応づけが登録されているXML形式のファイルである。
【0053】
図8は、日本語用言語リソースの例を示す図である。図8の記述1711において、ID文字列「S_NAME」に対する日本語による表示文字列は「プリンタ名」であることが定義されている。同様に「S_GROUP」は「グループ名」(記述1712)、「S_COMMENT」は「コメント」(記述1713)が表示文字列であることが定義されている。
【0054】
また、図9は、英語用言語リソースの例を示す図である。図9において、「S_NAME」に対しては「Printer Name」(記述1721)、「S_GROUP」に対しては「Group Name」(記述1722)、「S_COMMENT」に対しては「Comment」(記述1723)が英語による表示文字列として定義されている。
【0055】
また、書式情報ファイル18は、Webページの書式情報(レイアウト等)が定義されているファイルであり、例えばXSL(eXtensible Stylesheet Language)ファイル等によって実装することができる。
【0056】
従って、言語処理部16はステップS20において、言語リソース17の定義に従ってID文字列を表示文字列(英語)に変換し、変換された表示文字列と属性値としての文字列とを書式情報ファイル18の定義に従った書式で表示する英語版プリンタ情報ページを生成する。なお、ここで生成される英語版プリンタ情報ページはUnicodeによるものである。
【0057】
ステップS20に続いてステップS21に進み、言語処理部16は、生成した英語版プリンタ情報ページを組み込みWebサーバ11に出力する。ステップS21に続いてステップS22に進み、組み込みWebサーバ11が、端末30に英語版プリンタ情報ページを送信すると、英語版プリンタ情報ページが端末30のWebブラウザに表示される。
【0058】
図10は、英語版プリンタ情報ページの表示例を示す図である。図10の英語版プリンタ情報ページ420では、各属性名(静的データ)は、英語で表示されているのが分かる(「Printer Name」、「Group Name」、「Comment」。しかし、各属性値(動的データ)については、端末30のアメリカ人ユーザが英語版のプリンタ情報ページを要求したにもかかわらず、日本語ユーザが登録したままの値で文字化けすることなく表示されている(「開発部用プリンタ」、「RRR」、「修理中」)。これは、多言語変換モジュール15が、エンコード情報に基づいて、各属性値を示す文字列の文字コード種別を適切に判断していることによる。即ち、もし、多言語変換モジュール15が、属性値は、端末30から要求された言語(ここでは、英語)によるものであると単純に判断し、その判断に基づいて各属性値を示す文字列をUnicode文字列に変換したとすると、図10の英語版プリンタ情報ページ420においては、各属性値が文字化けして表示されてしまうことになる。
【0059】
なお、上述の例においては、説明を単純にするため、Webページに掲載する情報(掲載情報)をプリンタ情報管理部13のみから取得するように記載したが、画像処理装置10に実装されている他のアプリケーション(他アプリ)が管理している情報や、画像処理装置10とネットワークを介して接続されている他のシステム(外部システム)が管理している情報を表示するWebページを生成する場合は、他アプリケーションや外部システムから掲載情報を取得することになる。
【0060】
図11は、Webページに掲載する情報を外部システム等から取得する場合の画像処理装置の機能構成例を示す図である。図11中、図2と同一部分には同一符号を付し、その説明は省略する。図11においては、図2に対して、他アプリ19と、外部システム60とが追加されている。
【0061】
以下においては、他アプリ19や外部システム60等からも情報を取得する場合も考慮して、多言語変換モジュール15による処理の詳細について説明するが、まず、多言語変換モジュールの機能構成例について説明する。
【0062】
図12は、多言語変換モジュールの機能構成例を示す図である。図12に示すように、多言語変換モジュール15は、静的データ変換モジュール151と動的データ変換モジュール152とから構成されている。静的データ変換モジュール151は、静的データ(上述の例では、属性名)をID文字列に変換するものである。動的データ変換モジュール151は、動的データ(上述の例では属性値)をUnicodeに変換するものである。
【0063】
図12における多言語変換モジュールによる処理を中心に、図6におけるステップS14からステップS16までの処理の詳細を以下に説明する。図13は、多言語変換モジュールによる文字列の変換処理を説明するためのフローチャートである。
【0064】
ステップS101において、Webアプリ12は、変換対象としている文字列(以下、「対象文字列」という。)が静的データ(属性名等)であるか、動的データ(属性値等)であるかを判断し、静的データであった場合(S101で「静的データ」)には、静的データ変換モジュール151に文字列の変換を要求し、動的データであった場合(S101で「動的データ」)には、動的変換モジュール152に文字列の変換を要求する。
【0065】
なお、ここでの静的データ変換モジュール151又は動的データ変換モジュール152に対する文字列の変換要求は、図6におけるステップS14に対応する。図6においては、ステップS14におけるWebアプリ12から多言語変換モジュール15への要求は、2バイト系文字列である属性値の変換要求であると説明したが、厳密には、Webアプリ12は、属性値のような動的データのみならず、静的データについても、多言語変換モジュール15に変換を要求する。
【0066】
即ち、Webアプリ12は、静的データであろうと動的データであろうとWebページの掲載対象となる文字列(各ラベルに表示される文字列、及び各テキストボックスに表示される文字列等)は、とりあえず多言語変換モジュール15に変換を要求する。ただし、対象文字列が静的データの場合は、文字コードの変換ではなく、ID文字列への変換を要求する。
【0067】
対象文字列が静的データであった場合は、ステップS102に進み、静的データ変換モジュール151は、変換を要求された対象文字列がID文字列そのものであるか否かを、言語リソース17を参照して判断する。即ち、静的データ変換モジュール151は、対象文字列と同一のID文字列が言語リソース17に登録されている場合は、対象文字列はID文字列であると判断し、登録されていない場合は、対象文字列はID文字列でないと判断する。
【0068】
ここで、対象文字列が静的データであるにもかかわらず、ID文字列でない場合とは、例えば、他アプリ19や外部システム60等が、Webアプリ12から静的データに相当する所定の情報の提供要求を受けた場合に、要求された情報をID文字列ではなく、所定の言語による文字列で返却するような場合が相当する。即ち、他アプリ19等は、言語リソース17に登録されているID文字列には全く関与しないものである。従って、他アプリ19等が静的データに相当する情報であるにもかかわらず、所定の言語での文字列で要求された情報を返却するのは当然のことである。
【0069】
なお、対象文字列が静的なデータであって、ID文字列である場合とは、例えばWebアプリ12にハードコーディングされているID文字列が静的データ変換モジュール151に渡された場合等が相当する。
【0070】
ステップS102において、静的データ変換モジュール151が、対象文字列はID文字列であると判断した場合は、変換の必要はないため、Webアプリ12から渡された対象文字列をそのままWebアプリ12に出力する(S103)。
【0071】
また、ステップS102において、静的データ変換モジュール151が対象文字列はID文字列でないと判断した場合は、ステップS104に進む。ステップS104において、静的データ変換モジュール151は、言語リソース17に登録されている表示文字列の中から、対象文字列と同一の文字列を検索し、検索された表示文字列に対応するID文字列を取得する(逆引き)。
【0072】
ここで、ID文字列を逆引きするのは、静的データは、上述したように端末30等から要求された言語で表示させる必要があるからである。即ち、他アプリ19等から取得した対象文字列は、端末30等から要求された言語によるものであるか静的データ変換モジュール151には判断がつかない。よって、一度、ID文字列に変換し、その後に端末30等からの要求された言語での文字列への変換は、言語処理部16に任せるという趣旨である。
【0073】
ステップS104に続いてステップS105に進み、静的データ変換モジュール151は、逆引きしたID文字列をWebアプリ12に出力する。
【0074】
一方、ステップS101において、対象データが動的データであった場合はステップS106に進む。ステップS106において、動的データ変換モジュール152は、2バイト系文字列である対象文字列をUnicode文字列に変換する。なお、この処理の詳細は後述する。
【0075】
ステップS106に続いてステップS107に進み、動的データ変換モジュール152は、変換されたUnicode文字列をWebアプリ12に出力する。
【0076】
なお、上述において、ステップS103、S105、及びS107は、図6におけるステップS16に相当する。
【0077】
次に、図13におけるステップS106の処理の詳細について説明する。図14は、動的データの文字コードの変換処理を説明するためのフローチャートである。
【0078】
ステップS201において、動的データ変換モジュール152は、Webアプリ12から変換を要求された対象文字列にエンコード情報が関連付けられているか否かを判断する。
【0079】
エンコード情報が関連付けられている場合は、ステップS202に進む。エンコード情報が関連付けられている場合とは、上述したように対象文字列がプリンタ情報の属性値であり、その属性値がプリンタ情報管理部13に登録される際に、エンコード情報も伴って登録されている場合や、他アプリ19又は外部システム60等から取得した情報にエンコード情報が関連付けられている場合等である。
【0080】
ステップS202において、動的データ変換モジュール152は、エンコード情報の値がUnicodeに対応するものであるか否かを判断する。エンコード情報の値がUnicodeに対応するものであった場合(S202でYes)は、対象文字列はもともとUnicodeであるため、動的データ変換モジュール152は、対象文字列の変換は行わない(S203)。エンコード情報の値がUnicode以外のものである場合(S202でNo)は、エンコード情報に基づいて2バイト系文字列である対象文字列をUnicode文字列に変換する。
【0081】
一方、S202において、動的データ変換モジュール152が、対象文字列には、エンコード情報が関連付けられていないと判断した場合は、ステップS205に進む。
【0082】
上述したように、プリンタ情報管理部13に登録されているプリンタ情報の属性値には、原則としてエンコード情報が付加されている。しかし、外部システム60から直接(Webアプリ12を介さないで)telnet等でプリンタ情報管理部13における属性値が設定された場合や、あるいは対象文字列が、外部システム60や他アプリ19等から取得されたものであってエンコード情報が関連付けられていない場合は、対象文字列に対するエンコード情報は無い。かかる場合に、対象文字列がどの種別の文字コードによるものか判断できないため、本来であればUnicodeへの変換が一意に定まらない。
【0083】
そこで、動的データ変換モジュール152は、ステップS205以降の処理において、対象文字列の文字コード種別を所定のものに仮定し、その仮定に基づいて変換した結果、正常に変換できれば対象文字列の変換は完了したものと判断する。ここで、正常に変換できるとは、例えば、対象文字列の文字コード種別がSJISとの仮定に基づいてUnicodeへ変換した場合、変換後の文字列の文字コードの値がUnicodeにおいて日本語を表現するための値に該当していることをいう。
【0084】
但し、2バイト系文字コードは、各種別どうし(例えば、日本語の文字コードとチェコ語の文字コード)で相互に文字コードの値が一部重複しているため、他の文字コード種別であると仮定しても、”正常に変換”できてしまう場合がある。従って、動的データ変換モジュール152は、対象文字列の文字コード種別として仮定するものをいくつかの候補に絞り、その中で優先順位(以下、「変換順位」という。)をつけ、その変換順位の順番に正常に変換できるか否かを判断する。
【0085】
動的データ変換モジュール152が、対象文字列の文字コード種別として仮定する候補は、端末30等から表示言語として要求された言語(以下、「要求言語」という。)、画像処理装置10の操作パネル(オペパネ)の表示言語(以下、「オペパネ言語」という。)、画像処理装置10がオペパネ言語に選択可能なものとしてサポートしている言語(以下、「サポート言語」という。)の3つである。
【0086】
なお、操作パネルとは、画像処理装置10に設置され、画像処理装置10のユーザに対して画像処理装置10を操作するための操作情報を表示するためのパネルである。即ち、画像処理装置10は、予めインストールされている複数の言語の中から、オペパネ言語をユーザの任意によって選択することが可能である。従って、例えば、ユーザがオペパネ言語を日本語に設定したら、画像処理装置10は、操作パネルに日本語で操作情報を表示させる。
【0087】
この中での変換順位は、本実施の形態においては、原則として要求言語、オペパネ言語、サポート言語の順番とする。かかる順番とするのは以下の理由による。
【0088】
例えば、本実施の形態における日本のオフィスの人種の構成が、日本人は80%、チェコ人は15%、アメリカ人は5%であるとする。この場合、画像処理装置10には、日本語で表示されるWebページ(プリンタ情報ページ等)の要求が最も多いと考えられる。また、かかるWebページを通して画像処理装置10に設定される情報の値(プリンタ情報の属性値等)は、日本語による可能性が最も高いと考えられる。従って、対象文字列の言語を要求言語と仮定することは、結果的に、最も多くの場合に適切な仮定をすることとなる。よって、動的データ変換モジュール152は、まず対象文字列の言語を要求言語と仮定する。
【0089】
次に、複数の人種の人たちが混在する環境においては、画像処理装置10等のように皆で共通に利用する機器に対して、皆が共通に理解できる言語で情報の設定がされると考えられる。本実施の形態のように画像処理装置10がオフィスのフロアに置かれている場合は、画像処理装置10の情報にアクセスする人達は、そのフロアにいる人達にほぼ限定されるといえる。即ち、実際に操作パネルによって画像処理装置10を操作する人達である。また、同一のフロア等、ある程度限定された空間の中で勤務している人であれば、普段は共通の言語によってコミュニケーションをとっているはずである。例えば、本実施の形態における想定のように、日本のオフィッスにおいてであれば、端末20、端末30、端末40のユーザは、お互いに日本語でコミュニケーションをとっているはずである。
【0090】
従って、画像処理装置10の操作パネルに表示される言語(オペパネ言語)は、フロア内の人が共通に理解できる言語で設定されるはずである。よって、動的データ変換モジュール152は、オペパネ言語を対象文字列の言語として仮定する。
【0091】
但し、要求言語やオペパネ言語が英語である場合は、当該要求言語や当該オペパネ言語を変換順位からはずす。対象文字列が英語であると仮定して最初に変換してしまうと、必ず正常に変換できてしまうため、変換処理の妥当性が担保されないからである。
【0092】
ステップS205において、動的データ変換モジュール152は、画像処理装置10の操作パネル(オペパネ)の表示言語(以下、「オペパネ言語」という。)として選択されている言語をオペパネ管理サービス1019に問い合わせる。
【0093】
以下、フローチャートに沿って説明する。
【0094】
ステップS205に続いてステップS206に進み、動的データ変換モジュール152は、端末30等から要求された表示言語(要求言語)は、英語であるか否かを判断する。要求言語の判断は、端末30等から指定されたURLや、HTTPリクエストヘッダに含まれるAccept−Language等を参照することにより行う。
【0095】
要求言語が英語である場合は、ステップS207に進み、動的データ変換モジュール152は、オペパネ言語が英語であるか否かを判断する。
【0096】
オペパネ言語が英語である場合はステップS208に進み、動的データ変換モジュール152は、変換順位をサポート言語の中での優先順位とする。即ち、サポート言語は複数あるため、サポート言語内で予め設定されている優先順位を変換順位とするのである。なお、サポート言語内での優先順位は、画像処理装置10の出荷先に合わせて設定しておけばよい。例えば、画像処理装置10のサポート言語が、日本語、英語、スペイン語の場合に、画像処理装置10をスペインに出荷する場合は、スペイン語、英語、日本語の順に優先順位を設定するといった感じである。
【0097】
また、オペパネ言語が英語以外である場合はステップS209に進み、動的データ変換モジュール152は、変換順位をオペパネ言語、サポート言語の順番とする。
【0098】
一方、ステップS206において、動的データ変換モジュール152が、端末から要求された表示言語は英語でないと判断した場合はステップS210に進む。ステップS210において、動的データ変換モジュール152は、変換順位を要求言語、オペパネ言語、サポート言語の順番とする。ただし、オペパネ言語が英語だった場合は、オペパネ言語を変換順位から除き、動的データ変換モジュール152は、変換順位を要求言語、サポート言語の順番とする。
【0099】
ステップS211及びS212において、動的データ変換モジュール152は、変換順位の順番で対象文字列の文字コード種別を仮定して、対象文字列をUnicode文字列に変換し、正常に変換でき時点で変換を終了する。
【0100】
なお、変換先のUnicode文字列は、上述したように(図13のS16)、Webアプリ12に出力される。
【0101】
次に、上記のエンコード情報が無い場合(ステップS205以降)における動的データ変換モジュール152による文字コードの変換処理を、いくつかの具体的なケースにあてはめてみる。なお、以下の全てのケースにおいて共通する事項として、以下を前提とする。
(1)画像処理装置10と端末20、30、及び40とは、日本企業における同一フロアにあり、端末20のユーザは日本人、端末30のユーザはアメリカ人、端末40のユーザはチェコ人である。
(2)画像処理装置10等が設置されているフロアの人種の構成は、日本人が80%、チェコ人が15%、アメリカ人が5%である。
(3)画像処理装置10のサポート言語の優先順位は日本語、チェコ語、英語である。
【0102】
また、各端末のユーザは、それぞれ自分の母国語によるプリンタ情報ページを要求するとする。更に、フロア内での共通語は日本語、即ち、フロア内ではお互いに日本語でコミュニケーションをとっているものとする。
【0103】
第一のケースとして、プリンタ情報管理部13には日本語で属性値が設定されており(即ち、動的データ変換モジュール15に変換が要求される対象文字列は日本語)、オペパネ言語は日本語である場合を想定する。
【0104】
端末20の日本人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が日本語の場合、変換順位は、図14のステップS210より、
要求言語(日本語)→オペパネ言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0105】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末20に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0106】
また、端末30のアメリカ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が英語の場合、変換順位は、図14のステップS209より、
オペパネ言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0107】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末30に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0108】
また、端末40のチェコ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語がチェコ語の場合、変換順位は、図14のステップS210より、
要求言語(チェコ語)→オペパネ言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0109】
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次に日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末40に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0110】
上記より、第一のケースにおいて、動的データ変換モジュール152の変換処理は妥当であるといえる。
【0111】
次に、第二のケースとして、プリンタ情報管理部13には日本語で属性値が設定されており(即ち、対象文字列は日本語)、オペパネ言語は英語である場合を想定する。
【0112】
端末20の日本人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が日本語の場合、変換順位は、図14のステップS210より、
要求言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0113】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末20に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0114】
また、端末30のアメリカ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が英語の場合、変換順位は、図14のステップS208より、
サポート言語(日本語、チェコ語、英語)
となる。
【0115】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末30に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0116】
また、端末40のチェコ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語がチェコ語の場合、変換順位は、図14のステップS210より、
要求言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
となる。
【0117】
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列はチェコであるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次に日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末40に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0118】
上記より、第二のケースにおいて、動的データ変換モジュール152の変換処理は妥当であるといえる。
【0119】
次に、第三のケースとして、プリンタ情報管理部13には日本語で属性値が設定されており(即ち、対象文字列は日本語)、オペパネ言語はチェコ語である場合を想定する。
【0120】
端末20の日本人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が日本語の場合、変換順位は、図14のステップS210より、
要求言語(日本語)→オペパネ言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末20に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0121】
また、端末30のアメリカ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が英語の場合、変換順位は、図14のステップS209より、
オペパネ言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次に日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末30に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0122】
また、端末40のチェコ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語がチェコ語の場合、変換順位は、図14のステップS210より、
要求言語(チェコ語)→オペパネ言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次に日本語であると仮定して変換する。上述したように対象文字列(対象文字列)は日本語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末40に表示されたプリンタ情報ページ上で文字化けすることなく日本語で表示される。
【0123】
上記より、第三のケースにおいて、動的データ変換モジュール152の変換処理は妥当であるといえる。
【0124】
次に、第四のケースとして、プリンタ情報管理部13にはチェコ語で属性値が設定されており(即ち、対象文字列はチェコ語)、オペパネ言語は日本語である場合を想定する。
【0125】
端末20の日本人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が日本語の場合、変換順位は、図14のステップS210より、
要求言語(日本語)→オペパネ言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0126】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次にチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末20に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0127】
また、端末30のアメリカ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が英語の場合、変換順位は、図14のステップS209より、
オペパネ言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0128】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次にチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末30に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0129】
また、端末40のチェコ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語がチェコ語の場合、変換順位は、図14のステップS210より、
要求言語(チェコ語)→オペパネ言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0130】
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末40に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0131】
上記より、第四のケースにおいて、動的データ変換モジュール152の変換処理は妥当であるといえる。
【0132】
次に、第五のケースとして、プリンタ情報管理部13にはチェコ語で属性値が設定されており(即ち、対象文字列はチェコ語)、オペパネ言語は英語である場合を想定する。
【0133】
端末20の日本人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が日本語の場合、変換順位は、図14のステップS210より、
要求言語(日本語)→サポート言語(日本語、チェコ語、英語)
となる。
【0134】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次にチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末20に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0135】
また、端末30のアメリカ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が英語の場合、変換順位は、図14のステップS208より、
サポート言語(日本語、チェコ語、英語)
となる。
【0136】
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次にチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末30に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0137】
また、端末40のチェコ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語がチェコ語の場合、変換順位は、図14のステップS208〜S211より、
要求言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
となる。
【0138】
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末40に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0139】
上記より、第五のケースにおいて、動的データ変換モジュール152の変換処理は妥当であるといえる。
【0140】
次に、第六のケースとして、プリンタ情報管理部13にはチェコ語で属性値が設定されており(即ち、対象文字列はチェコ語)、オペパネ言語もチェコ語である場合を想定する。
【0141】
端末20の日本人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が日本語の場合、変換順位は、図14のステップS210より、
要求言語(日本語)→オペパネ言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
従って、動的データ変換モジュール152は、まず対象文字列を日本語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列は日本語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換されない。従って、動的データ変換モジュール152は、次にチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末20に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0142】
また、端末30のアメリカ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語が英語の場合、変換順位は、図14のステップS209より、
オペパネ言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
となる。
【0143】
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末30に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0144】
また、端末40のチェコ人ユーザからプリンタ情報ページの送信要求があった場合、即ち、要求言語がチェコ語の場合、変換順位は、図14のステップS210より、
要求言語(チェコ語)→オペパネ言語(チェコ語)→サポート言語(日本語、チェコ語、英語)
従って、動的データ変換モジュール152は、まず対象文字列をチェコ語であると仮定して変換する。上述したように対象文字列(対象文字列)はチェコ語であるため、対象文字列はチェコ語であるとの仮定に基づいて変換した場合、対象文字列はUnicode文字列に正常に変換される。よって、属性値は、端末40に表示されたプリンタ情報ページ上で文字化けすることなくチェコ語で表示される。
【0145】
上記より、第六のケースにおいて、動的データ変換モジュール152の変換処理は妥当であるといえる。
【0146】
上述したように、本実施の形態における画像処理装置10によれば、端末20等から登録を要求されたUnicodeによる文字列を、2バイト系文字コードでプリンタ情報管理部13に登録する際に、エンコード情報を付加して登録しておくため、その後にプリンタ情報管理部13に登録されている文字列をUnicodeで提供する必要がある場合でも、エンコード情報に基づいて正しく文字コード変換することができるため、文字化けすることなく適切に表示されるWebページを提供することができる。
【0147】
また、エンコード情報がない場合であっても、動的データ変換モジュール152が妥当性のある判断により、文字コード変換を行うため、文字化けすることなく適切に表示されるWebページを提供することができる。
【0148】
更に、本実施の形態において説明した方法によれば、機器内部の文字コードを拡張する必要はないため、端末20等とのUnicodeによる通信を低コストで実現することができる。
【0149】
なお、本発明が適用可能な機器は、画像形成装置だけに限られない。一般的なコンピュータ等の情報処理装置はもちろん、通信機能を有しているデジタルカメラや携帯電話、又はいわゆるデジタル家電等にも本発明を適用することができる。
【0150】
以上、本発明の好ましい実施例について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。
【0151】
【発明の効果】
上述の如く、本発明によれば、2バイト系文字コードを内部コードとして扱っている情報提供装置において、複数言語の表現が可能な文字コードで適切に情報の提供を行うことができる。
【図面の簡単な説明】
【図1】本発明の実施の形態における画像処理装置の機能構成例を示す図である。
【図2】Webサーバとしての画像処理装置の機能構成例を示す図である。
【図3】プリンタ情報の更新要求を受信した場合の画像処理装置の処理を説明するためのシーケンス図である。
【図4】プリンタ情報ページの表示例を示す図である。
【図5】プリンタ情報の登録イメージを示す図である。
【図6】プリンタ情報の参照要求を受信した場合の画像処理装置の処理を説明するためのシーケンス図である。
【図7】掲載データの例を示す図である。
【図8】日本語用言語リソースの例を示す図である。
【図9】英語用言語リソースの例を示す図である。
【図10】英語版のプリンタ情報ページの表示例を示す図である。
【図11】Webページに掲載する情報を外部システム等から取得する場合の画像処理装置の機能構成例を示す図である。
【図12】多言語変換モジュールの機能構成例を示す図である。
【図13】多言語変換モジュールによる文字列の変換処理を説明するためのフローチャートである。
【図14】動的データの文字コードの変換処理を説明するためのフローチャートである。
【符号の説明】
10 画像処理装置
11 組み込みWebサーバ
12 Webアプリ
13 プリンタ情報管理部
14 多言語変換モジュール
16 言語処理部
17 言語リソース
18 書式情報ファイル
19 他アプリ
20、30、40 端末
50 ネットワーク
60 外部システム
1011 コピーアプリ
1012 ファックスアプリ
1013 プリンタアプリ
1014 情報提供アプリ
1016 システム管理サービス
1017 ネットワークサービス
1018 メモリ管理サービス
1019 オペパネ管理サービス
1020 エンジン管理サービス
1021 OS
1022 エンジン制御ボード
1023 プロッタエンジン
1024 スキャナエンジン
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an information providing apparatus that provides predetermined information in response to a request transmitted from a terminal connected via a network.
[0002]
[Prior art]
With the spread of Web technology, in recent years, not only computers called server machines, but also various devices have Web server functions. For example, an image processing apparatus such as an LP (Line Printer) and an MFP (Multi Function Printer) can browse and set various information from a Web client connected via a network.
[0003]
On the other hand, with the recent internationalization, opportunities for users using different languages to access the same device are increasing. In order to cope with such a situation, there are devices that provide the same information in various languages. That is, when the Web client requests transmission of a Web page that displays device information in English, the device provides a Web page in English, and when transmission of a Web page that displays in Japanese is requested. The device provides a Web page in Japanese.
[0004]
However, not all information on a Web page depends on the display language. For example, it is not appropriate to change the display mode (word) depending on the display language for information having a significant value itself, such as information set by a user to a device from a Web client. Therefore, when displaying information dependent on the display language (information that should be displayed in the language of the display language) and information that does not depend on the information (information whose value should not be changed depending on the display language) on a single Web page, If the information independent of the display language is in a language different from the display language, it is necessary to display a mixture of character strings in a plurality of languages on one Web page.
[0005]
As a means for displaying a plurality of languages mixedly on one Web page, a Web page may be generated by Unicode. Unicode represents all characters in the main languages of the world in one character code system, and character codes are uniquely determined for all characters in various languages. Therefore, by generating a Web page in Unicode, the device can provide a Web page in which various languages are mixed.
[0006]
Note that inventions related to character code conversion are described in Patent Documents 1 and 2 and the like.
[0007]
[Patent Document 1]
JP 2001-84183 A
[0008]
[Patent Document 2]
JP 2001-243217 A
[0009]
[Problems to be solved by the invention]
However, when a Web page by Unicode is provided to a Web client, a character string input by the user on the Web page is transmitted to the device as a Unicode character string.
[0010]
However, at present, there are few devices that use Unicode as the internal code of the device. That is, conventional devices are designed to handle 2-byte character codes that require a maximum of 2 bytes per character, and 2000 bytes to handle Unicode that requires a region of 2 bytes or more per character. This is because, as in the case of the year problem, major remodeling is required.
[0011]
The present invention has been made in view of the above points, and in an information providing apparatus that handles 2-byte character codes as internal codes, information is appropriately provided using character codes that can be expressed in a plurality of languages. It is an object of the present invention to provide an information providing device that can perform the information.
[0012]
[Means for Solving the Problems]
Therefore, in order to solve the above-mentioned problem, the present invention provides, as described in claim 1, a character code representing a plurality of languages in response to a request transmitted from a terminal connected via a network. An information providing apparatus for providing predetermined information with a character string by one character code, wherein at least a part of the predetermined information is a character string by a second character code, and the type of the second character code is changed. Information management means for managing in association with the code identification information to be identified, and, in response to a request from the terminal, a character string managed by the information management means, to the code identification information associated with the character string A first character code conversion unit that converts the character string based on the first character code based on the first character code, and a character string based on the first character code converted by the first character code conversion unit. And having an information transmission means for transmitting powder to.
[0013]
In such an information providing apparatus, a character string managed by a second character code such as a 2-byte character code can be handled in a plurality of languages such as Unicode based on code identification information associated with the character string. Since the information is converted into the first character code, information can be appropriately provided without being garbled by a character code capable of expressing a plurality of languages.
[0014]
In order to solve the above problems, the present invention provides an information providing method in the information providing apparatus, a program for causing a computer to execute the information providing method, an information display apparatus for displaying information transmitted from the information providing apparatus, Alternatively, an information providing system including the information providing device and the information display device may be used.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the present embodiment, an image processing device will be described as an example of an information providing device. FIG. 1 is a diagram illustrating an example of a functional configuration of an image processing apparatus according to an embodiment of the present invention. 1, an image processing apparatus 10 includes hardware resources for performing individual image processing such as a plotter engine 1023 and a scanner engine 1024, an engine control board 1022, an OS 1021, a system management service 1016, and a network service 1017. , A memory management service 1018, an operation management service 1019, an engine management service 1020, and various applications such as a copy application 1011, a fax application 1012, a printer application 1013, and an information provision 1014.
[0016]
The engine control board 1022 controls individual functions of the image processing apparatus 10 such as the plotter engine 1023 and the scanner engine 1024, and provides the functions of the engine control board 1022 to the OS 1021 and the like via an engine I / F (interface).
[0017]
The OS 1021 is an operating system such as UNIX (registered trademark), and executes various kinds of software implemented as applications such as the copy application 1011 and the fax application 1012 as processes in parallel.
[0018]
A system management service 1016, a network service 1017, a memory management service 1018, an operation panel management service 1019, and an engine management service 1020 provide respective functions and functions to a higher-level application such as a copy application 1011 through an API (Application Programming Interface). is there. That is, the system management service 1016 provides a function related to system management, and the network service 1017 provides a function related to network communication. The memory management service 1018 provides a function related to memory management, and the operation panel management service 1019 provides a function related to an operation panel (operation panel) installed in the image processing apparatus 10. Further, the engine management service 1020 provides a function for controlling the plotter engine 1023 and the scanner engine 1024 via the engine control board 1022.
[0019]
The copy application 1011 is a copy application, and the fax application 1012 is a facsimile application. The printer application 1013 is a printer application having a page description language (PDL), PCL, and PostScript (PS). The information providing application 1014 is an application in which the features of the present invention are implemented. The information providing application 1014 provides various types of information to a terminal connected to the image processing apparatus 10 via a network in a language suitable for the user of the terminal. It is an application for providing.
[0020]
Next, a function of the image processing apparatus 10 as a Web server realized by the above-described information providing application 1014, the network service 1017, and the like will be described. FIG. 2 is a diagram illustrating an example of a functional configuration of an image processing apparatus as a Web server. The image processing apparatus 10 in FIG. 2 includes an embedded Web server 11, a Web application 12, a printer information management unit 13, a multilingual conversion module 15, a language processing unit 16, a language resource 17, a format information file 18, and the like. The terminal 20, the terminal 30, the terminal 40, and the like are connected to the image processing apparatus 10 via a network 50 such as a LAN, an intranet, or the Internet.
[0021]
The embedded Web server 11 is equivalent to a program generally called HTTPd (HTTP daemon), and is for causing the image processing apparatus 10 to function as a Web server.
[0022]
The Web application 12 is a so-called Web application called by the embedded Web server 11 based on a Web page transmission request transmitted from the terminal 20 or the like. When the Web application 12 is requested by the terminal 20 or the like to refer to information on the image processing apparatus 10 (information including a printer name, a group name, a comment, etc .; hereinafter, referred to as “printer information”), The printer information is acquired from the printer information management unit 13 and output to the embedded Web server 11. When a request for setting or changing printer information is made from the terminal 20 or the like, a value transmitted in response to the request is set in the printer information management unit 13.
[0023]
The printer information management unit 13 is a storage area in which printer information is registered.
[0024]
The multilingual conversion module 15 converts a character string of a two-byte character code corresponding to the second character code (a character code that is large and requires two bytes to represent one character) in the present embodiment, This is a program for executing processing for converting to Unicode corresponding to the first character code in the present embodiment. The details of the language processing unit 16, the language resource 17, and the format information file 18 will be described later.
[0025]
The image processing apparatus 10 communicates with the terminal 20 and the like by using the above functions. Here, it is assumed that the character code used for communication between the image processing apparatus 10 and the terminal 20 or the like is Unicode (UTF-8) which is a character code (first character code) expressing a plurality of languages. That is, the image processing apparatus 10 generates a Web page (hereinafter, referred to as a “printer information page”) for referencing and setting printer information using Unicode, and transmits the generated Web page to the terminal 20 or the like. The value (character string) input to the printer information page at the terminal 20 or the like is transmitted to the image processing apparatus 10 by Unicode (UTF-8).
[0026]
On the other hand, the character code used for the internal processing of the image processing apparatus 10 is a 2-byte character code (second character code) like most of today's devices. Therefore, a character string constituting the printer information is registered in the printer information management unit 13 as a 2-byte character code.
[0027]
In the present embodiment, it is assumed that the user of the terminal 20 is Japanese, the user of the terminal 30 is American, and the user of the terminal 40 is Czech, and the image processing apparatus 10, the terminal 20, the terminal 30, the terminal 40, and the like. Are on the same floor in an office in Japan.
[0028]
Hereinafter, a processing procedure of the image processing apparatus 10 of FIG. 2 will be described. FIG. 3 is a sequence diagram illustrating a process performed by the image processing apparatus when a request for updating printer information is received.
[0029]
In step S <b> 1, when a Japanese user of the terminal 20 inputs printer information on a printer information page displayed on a Web browser of the terminal 20, the terminal 20 transmits a printer information setting request to the image processing apparatus 10.
[0030]
FIG. 4 is a diagram illustrating a display example of a printer information page. The printer information page of FIG. 4 includes labels 411, 412, and 413, text boxes 414, 415, and 416, and a button 417. On each label, the attribute names of the attributes constituting the printer information are displayed in Japanese ("printer name", "group name", "comment"). In addition, respective attribute values are displayed in each text box (“printer for development department”, “RRR”, “under repair”).
[0031]
In each text box, the attribute value can be edited. Therefore, when the user inputs each attribute value as shown in FIG. 4 and clicks the button 417, the request in step S1 is transmitted to the image processing apparatus 10. Here, the character string input to each text box is transmitted to the image processing apparatus 10 as a character string by Unicode.
[0032]
Proceeding to step S2 following step S1, the Web server program 11 of the image processing apparatus 10 receiving the request from the terminal 20 instructs the Web application 12 to register the attribute value of the printer information transmitted from the terminal 20.
[0033]
Proceeding to step S3 following step S2, the Web application 12 converts the attribute value of the printer information, which is a Unicode character string, into a character string of a 2-byte character code. Unicode represents all the characters of the main languages in the world with one character code system, and the character code is uniquely determined for all the characters. Accordingly, the Web application 12 identifies the language to which the character string corresponds from the character code value in Unicode of the character string indicating the attribute value, and converts the character string into a 2-byte system corresponding to the language. Convert to character code. Here, since the printer information is input in Japanese, the web application 12 converts the printer information into Shift JIS (SJIS).
[0034]
Proceeding to step S4 following step S3, the Web application 12 converts the printer information converted to SJIS into information for identifying the type (here, SJIS) of the converted 2-byte character code (hereinafter, “encoding information”). ) With the printer information management unit 13.
[0035]
FIG. 5 is a diagram illustrating a registration image of the printer information. In FIG. 5, Unicode character string data 501 having an area of 3 bytes for each character is converted into 2-byte character string data 502 and registered, and encoded information 503 is registered in the printer information management unit 13 in association with it. Is shown. Although FIG. 5 illustrates one character for convenience, encoding information may be provided for each character string (attribute value). In the present embodiment, it is assumed that encoding information is associated with each character string. Therefore, the character strings of “printer for development department”, “RRR”, and “under repair” converted into SJIS are registered in the printer information management unit 13 by SJIS together with the respective encoding information (SJIS).
[0036]
Proceeding to step S5 following step S4, the Web application 12 uses the XML format to indicate information indicating the result of the printer information registration process (for example, information such as a normal end or an error; hereinafter, referred to as “processing result information”). Data (hereinafter, referred to as “processing result data”) is output to the embedded Web server 11.
[0037]
Proceeding to step S6 following step S5, the embedded Web server 11 generates a Web page (hereinafter, referred to as “processing result page”) for displaying the processing result information based on the processing result data, and generates the processing result information page. Transmit to terminal 20. Proceeding to step S7 following step S6, a processing result page is displayed on the terminal 20, and the Japanese user can confirm that the printer information has been normally set in the image processing apparatus 10.
[0038]
Next, a case where an American user of the terminal 30 attempts to refer to or update such printer information will be described. FIG. 6 is a sequence diagram illustrating a process performed by the image processing apparatus when a reference request for printer information is received.
[0039]
In step S11, when an American user of the terminal 30 inputs a URL for an English-language printer information page (hereinafter referred to as an "English-language printer information page") into a Web browser, the terminal 30 transmits the English-language printer information page. The request is transmitted to the image processing apparatus 10.
[0040]
Proceeding to step S12 following step S11, the embedded Web server 11 receiving the request from the terminal 20 requests the web application 12 to acquire printer information. Proceeding to step S13 following step S12, the Web application 12 sends a character string indicating the attribute value of the printer information registered with the two-byte character code from the printer information management unit 13 (hereinafter, “two-byte character string”). ) And encoding information added to each attribute value.
[0041]
Proceeding to step S14 following step S13, the Web application 12 transfers the two-byte character string and its encoding information to the multilingual conversion module 15, and executes the two-byte character string by Unicode (hereinafter, “Unicode character string”). ").).
[0042]
Proceeding to step S15 following step S14, the multilingual conversion module 15 converts the 2-byte character string into a Unicode character string. Here, the multilingual conversion module 15 specifies the character code of the two-byte character string based on the encoding information, and thereby determines the character code on the Unicode of each character constituting the two-byte character string. Is uniquely identified. Proceeding to step S16 following step S15, the multilingual conversion module 15 outputs the attribute value converted to Unicode to the Web application 12.
[0043]
Proceeding to step S17 following step S16, the Web application 12 generates information to be posted on the printer information page as XML format data, and outputs it to the embedded Web server 11 (S18). Note that the data in the XML format generated by the Web application 12 in step S17 is hereinafter referred to as “posting data”.
[0044]
FIG. 7 is a diagram illustrating an example of publication data. In the publication data 300 of FIG. 7, the description 301, the description 302, and the description 303 output the printer name, the group name, and the attribute name and the attribute value of the comment, which are the attributes constituting the printer information, in order. . That is, each description includes a Name element enclosed by <Name> tags and a Value element enclosed by <Value> tags. The Name element indicates an attribute name, and the Value element indicates an attribute value.
[0045]
The publication data 300 will be described in association with the printer information page 410 in FIG. The character string displayed on the label 411 is “S_NAME” in the description 3011, and the character string displayed in the text box 414 is “printer for development department” in the description 3012. The character string displayed on label 412 is “S_GROUP” in description 3021, and the character string displayed in text box 415 is “RRR” in description 3022. Further, the character string displayed on the label 413 is “S_COMMENT” in the description 3031, and the character string displayed in the text box 416 is “under repair” in the description 3032.
[0046]
Here, it is understood that each attribute name is not a display character string itself. That is, “S_NAME”, “S_GROUP”, and “S_COMMENT” are not display character strings themselves but character strings for identifying display character strings (hereinafter, “ID character strings”). This is because for each attribute name, the character string to be displayed changes depending on the display language to be displayed.
[0047]
On the other hand, since the attribute value itself has an absolute meaning, it is not preferable to change the attribute value for each language. That is, the printer name “development printer” has a significant value as a character string “development printer”, and does not have a meaning in the language “development printer”.
[0048]
In general, dynamic information that can be set and changed by a user corresponds to a value that is significant. Therefore, in the following description, such data is referred to as “dynamic data”. In the present embodiment, each attribute value corresponds to dynamic data. On the other hand, data that is not set or changed by the user and whose display character string is determined in advance for each display language is called “static data”. In the present embodiment, a character string identified by an ID character string such as an attribute name corresponds to static data.
[0049]
The description 304 outputs information for identifying the language requested from the terminal 20 or the like. That is, the Web application 12 specifies the language requested by the terminal 20 or the like from the URL included in the request (HTTP request) from the terminal 20 or the like, and outputs a character string for identifying the language. . Here, “en” indicates English.
[0050]
Proceeding to step S19 following step S18, the embedded Web server 11 instructs the language processing unit 16 to convert the publication data 300 in XML format into a Web page (HTML format).
[0051]
Proceeding to step S20 following step S19, the language processing unit 16 converts the publication data 300 into a Web page (printer information page) by using the language resource 17, the format information file 18, and the like.
[0052]
Here, the language resource 17 and the format information file 18 will be described. The language resource 17 is an XML file in which the correspondence between the ID character string and the display character string is registered for each display language.
[0053]
FIG. 8 is a diagram illustrating an example of a language resource for Japanese. The description 1711 in FIG. 8 defines that the display character string in Japanese for the ID character string “S_NAME” is “printer name”. Similarly, “S_GROUP” is defined to be a “group name” (description 1712), and “S_COMMENT” is defined to be a “comment” (description 1713) as a display character string.
[0054]
FIG. 9 is a diagram illustrating an example of an English language resource. In FIG. 9, “Printer Name” (description 1721) for “S_NAME”, “Group Name” (description 1722) for “S_GROUP”, and “Comment” (description 1723) for “S_COMMENT” Is defined as a display character string in English.
[0055]
The format information file 18 is a file in which format information (layout and the like) of a Web page is defined, and can be implemented by, for example, an XSL (extensible Stylesheet Language) file.
[0056]
Therefore, in step S20, the language processing unit 16 converts the ID character string into a display character string (English) in accordance with the definition of the language resource 17, and converts the converted display character string and the character string as the attribute value into the format information file 18. Generates an English version printer information page to be displayed in a format according to the definition of. The English-language printer information page generated here is based on Unicode.
[0057]
Proceeding to step S21 following step S20, the language processing unit 16 outputs the generated English-language printer information page to the embedded Web server 11. Proceeding to step S22 following step S21, when the embedded Web server 11 transmits the English-language printer information page to the terminal 30, the English-language printer information page is displayed on the Web browser of the terminal 30.
[0058]
FIG. 10 is a diagram illustrating a display example of an English-language printer information page. On the English-language printer information page 420 in FIG. 10, it can be seen that each attribute name (static data) is displayed in English (“Printer Name”, “Group Name”, “Comment”. However, each attribute value) (Dynamic data) is displayed without any garbled characters with the value registered by the Japanese user even though the American user of the terminal 30 has requested the English version of the printer information page. “Development department printer”, “RRR”, “under repair”), in which the multilingual conversion module 15 appropriately determines the character code type of the character string indicating each attribute value based on the encoding information. That is, if the multilingual conversion module 15 simply determines that the attribute value is in the language (here, English) requested from the terminal 30. If the character string indicating each attribute value is converted to a Unicode character string based on the determination, each attribute value is displayed as a garbled character on the English-language printer information page 420 in FIG. .
[0059]
In the above example, for simplicity of description, information to be posted on the Web page (posting information) is described as being acquired only from the printer information management unit 13, but the information is mounted on the image processing apparatus 10. When generating a Web page displaying information managed by another application (other application) or information managed by another system (external system) connected to the image processing apparatus 10 via a network. Means to acquire the publication information from other applications or external systems.
[0060]
FIG. 11 is a diagram illustrating an example of a functional configuration of the image processing apparatus when acquiring information to be posted on a Web page from an external system or the like. 11, the same parts as those of FIG. 2 are denoted by the same reference numerals, and the description thereof will be omitted. In FIG. 11, another application 19 and an external system 60 are added to FIG.
[0061]
In the following, details of processing by the multilingual conversion module 15 will be described in consideration of a case where information is also obtained from the other application 19, the external system 60, and the like. First, a functional configuration example of the multilingual conversion module will be described. I do.
[0062]
FIG. 12 is a diagram illustrating an example of a functional configuration of the multilingual conversion module. As shown in FIG. 12, the multilingual conversion module 15 includes a static data conversion module 151 and a dynamic data conversion module 152. The static data conversion module 151 converts static data (attribute name in the above example) into an ID character string. The dynamic data conversion module 151 converts dynamic data (attribute values in the above example) into Unicode.
[0063]
Details of the processing from step S14 to step S16 in FIG. 6 will be described below, centering on the processing by the multilingual conversion module in FIG. FIG. 13 is a flowchart illustrating a character string conversion process performed by the multilingual conversion module.
[0064]
In step S101, the Web application 12 determines whether the character string to be converted (hereinafter, referred to as “target character string”) is static data (attribute name or the like) or dynamic data (attribute value or the like). If the data is static data (“static data” in S101), a request for conversion of a character string is made to the static data conversion module 151, and if the data is dynamic data (“dynamic data” in S101). For the target data “), the dynamic conversion module 152 is requested to convert a character string.
[0065]
Here, the character string conversion request to the static data conversion module 151 or the dynamic data conversion module 152 corresponds to step S14 in FIG. In FIG. 6, it has been described that the request from the Web application 12 to the multilingual conversion module 15 in step S14 is a conversion request for an attribute value that is a 2-byte character string, but strictly speaking, the Web application 12 It requests the multilingual conversion module 15 to convert not only dynamic data such as attribute values but also static data.
[0066]
In other words, the Web application 12 is a character string to be posted on the Web page, whether it is static data or dynamic data (a character string displayed on each label, a character string displayed on each text box, etc.). Requests the multilingual conversion module 15 for conversion. However, if the target character string is static data, a request for conversion to an ID character string is required instead of character code conversion.
[0067]
If the target character string is static data, the process proceeds to step S102, and the static data conversion module 151 determines whether or not the target character string requested to be converted is the ID character string itself by checking the language resource 17. Refer to and judge. That is, the static data conversion module 151 determines that the target character string is an ID character string when the same ID character string as the target character string is registered in the language resource 17, and determines that the target character string is not registered. , The target character string is not an ID character string.
[0068]
Here, the case where the target character string is static data but is not an ID character string means that, for example, the other application 19, the external system 60, or the like transmits predetermined information corresponding to the static data from the Web application 12. Corresponds to a case where the requested information is returned not as an ID character string but as a character string in a predetermined language. That is, the other application 19 and the like do not participate in the ID character string registered in the language resource 17 at all. Therefore, it is natural that the information requested by a character string in a predetermined language is returned even if the other application 19 or the like is information corresponding to static data.
[0069]
The case where the target character string is static data and is an ID character string is, for example, a case where an ID character string hard-coded in the Web application 12 is passed to the static data conversion module 151. Equivalent to.
[0070]
In step S102, when the static data conversion module 151 determines that the target character string is an ID character string, there is no need for conversion, and therefore, the target character string passed from the Web application 12 is directly transmitted to the Web application 12. Output (S103).
[0071]
If the static data conversion module 151 determines in step S102 that the target character string is not an ID character string, the process proceeds to step S104. In step S104, the static data conversion module 151 searches the display character strings registered in the language resource 17 for the same character string as the target character string, and determines the ID character corresponding to the searched display character string. Get a column (reverse lookup).
[0072]
Here, the reason why the ID character string is reversed is that the static data must be displayed in the language requested from the terminal 30 or the like as described above. That is, the static data conversion module 151 cannot determine whether the target character string acquired from the other application 19 or the like is in the language requested from the terminal 30 or the like. Therefore, the language is converted into an ID character string once, and then converted into a character string in a language requested from the terminal 30 or the like, by the language processing unit 16.
[0073]
Proceeding to step S105 following step S104, the static data conversion module 151 outputs the reversed ID character string to the Web application 12.
[0074]
On the other hand, if the target data is dynamic data in step S101, the process proceeds to step S106. In step S106, the dynamic data conversion module 152 converts the target character string that is a two-byte character string into a Unicode character string. The details of this processing will be described later.
[0075]
Proceeding to step S107 following step S106, the dynamic data conversion module 152 outputs the converted Unicode character string to the Web application 12.
[0076]
In the above description, steps S103, S105, and S107 correspond to step S16 in FIG.
[0077]
Next, details of the processing in step S106 in FIG. 13 will be described. FIG. 14 is a flowchart for explaining the character code conversion processing of dynamic data.
[0078]
In step S201, the dynamic data conversion module 152 determines whether the encoding information is associated with the target character string whose conversion has been requested by the Web application 12.
[0079]
If the encoding information is associated, the process proceeds to step S202. The case where the encoding information is associated means that the target character string is the attribute value of the printer information as described above, and when the attribute value is registered in the printer information management unit 13, the encoding information is registered together with the encoding information. Or encoding information is associated with information acquired from the other application 19 or the external system 60 or the like.
[0080]
In step S202, the dynamic data conversion module 152 determines whether the value of the encoding information corresponds to Unicode. If the value of the encoding information corresponds to Unicode (Yes in S202), the dynamic data conversion module 152 does not convert the target character string because the target character string is originally Unicode (S203). . If the value of the encoding information is other than Unicode (No in S202), the target character string, which is a 2-byte character string, is converted to a Unicode character string based on the encoding information.
[0081]
On the other hand, if the dynamic data conversion module 152 determines in step S202 that the encoding information is not associated with the target character string, the process proceeds to step S205.
[0082]
As described above, encoding information is added to the attribute value of the printer information registered in the printer information management unit 13 in principle. However, when the attribute value in the printer information management unit 13 is set directly from the external system 60 (not through the Web application 12) by telnet or the like, or the target character string is obtained from the external system 60 or another application 19 or the like. If the encoding is performed and no encoding information is associated, there is no encoding information for the target character string. In such a case, since it cannot be determined which type of character code the target character string is, conversion to Unicode is originally not uniquely determined.
[0083]
Therefore, in the processing after step S205, the dynamic data conversion module 152 assumes that the character code type of the target character string is a predetermined character code. Is determined to be completed. Here, the normal conversion means that, for example, when the character code type of the target character string is converted to Unicode based on the assumption of SJIS, the character code value of the converted character string represents Japanese in Unicode. Means that the value corresponds to
[0084]
However, the double-byte character codes are different character code types because the character code values of each type (for example, Japanese character code and Czech character code) partially overlap each other. Even if it is assumed, "normal conversion" may be performed. Therefore, the dynamic data conversion module 152 narrows down what is assumed as the character code type of the target character string to some candidates, assigns a priority (hereinafter, referred to as “conversion order”) among them, and sets the conversion order. It is determined whether the conversion can be performed normally in the order of.
[0085]
The candidate assumed by the dynamic data conversion module 152 as the character code type of the target character string is a language (hereinafter, referred to as “request language”) requested as a display language from the terminal 30 or the like, and an operation panel of the image processing apparatus 10. (Operation panel display language) (hereinafter, referred to as “operation panel language”), and languages supported by the image processing apparatus 10 as selectable operation panel languages (hereinafter, “support language”). .
[0086]
The operation panel is a panel that is installed in the image processing apparatus 10 and displays operation information for operating the image processing apparatus 10 for a user of the image processing apparatus 10. That is, the image processing apparatus 10 can select the operation panel language from a plurality of languages installed in advance by the user. Therefore, for example, when the user sets the operation panel language to Japanese, the image processing apparatus 10 causes the operation panel to display the operation information in Japanese.
[0087]
In this embodiment, the conversion order in this case is, in principle, the order of the request language, the operation panel language, and the support language. This order is used for the following reasons.
[0088]
For example, it is assumed that the composition of the race in the Japanese office in the present embodiment is 80% for Japanese, 15% for Czech, and 5% for American. In this case, it is considered that the image processing apparatus 10 has the highest request for a Web page (such as a printer information page) displayed in Japanese. It is considered that the value of the information (such as the attribute value of the printer information) set in the image processing apparatus 10 through the Web page is most likely to be in Japanese. Therefore, assuming the language of the target character string to be the required language will result in the most likely appropriate assumption. Therefore, the dynamic data conversion module 152 first assumes that the language of the target character string is the request language.
[0089]
Next, in an environment where people of a plurality of races coexist, information is set in a language that can be commonly understood by a device commonly used by all, such as the image processing apparatus 10. it is conceivable that. When the image processing apparatus 10 is placed on an office floor as in the present embodiment, it can be said that those who access the information of the image processing apparatus 10 are almost limited to those who are on the floor. That is, those who actually operate the image processing apparatus 10 using the operation panel. In addition, those who work in a limited space such as the same floor should usually communicate in a common language. For example, as assumed in the present embodiment, in a Japanese office, the users of the terminal 20, the terminal 30, and the terminal 40 should be communicating with each other in Japanese.
[0090]
Therefore, the language (operation panel language) displayed on the operation panel of the image processing apparatus 10 should be set in a language that can be commonly understood by people on the floor. Therefore, the dynamic data conversion module 152 assumes the operation panel language as the language of the target character string.
[0091]
However, if the request language or the operation panel language is English, the request language or the operation panel language is excluded from the conversion order. This is because if the target character string is first converted assuming that it is in English, the conversion can be performed normally, and the validity of the conversion process is not ensured.
[0092]
In step S205, the dynamic data conversion module 152 inquires of the operation panel management service 1019 about the language selected as the display language (hereinafter, referred to as “operation panel language”) of the operation panel (operation panel) of the image processing apparatus 10.
[0093]
Hereinafter, description will be given along a flowchart.
[0094]
Proceeding to step S206 following step S205, the dynamic data conversion module 152 determines whether the display language (request language) requested from the terminal 30 or the like is English. The request language is determined by referring to a URL specified by the terminal 30 or the like, an Accept-Language included in the HTTP request header, or the like.
[0095]
If the requested language is English, the process proceeds to step S207, and the dynamic data conversion module 152 determines whether the operation panel language is English.
[0096]
If the operation panel language is English, the process proceeds to step S208, and the dynamic data conversion module 152 sets the conversion order as the priority in the supported language. That is, since there are a plurality of supported languages, the priorities set in advance in the supported languages are set as the conversion orders. The priorities in the supported languages may be set according to the shipping destination of the image processing apparatus 10. For example, when the image processing device 10 is supported in Japanese, English, and Spanish, and the image processing device 10 is shipped to Spain, the priority is set in the order of Spanish, English, and Japanese. It is.
[0097]
When the operation panel language is other than English, the process proceeds to step S209, and the dynamic data conversion module 152 sets the conversion order to the operation panel language and the support language.
[0098]
On the other hand, when the dynamic data conversion module 152 determines in step S206 that the display language requested from the terminal is not English, the process proceeds to step S210. In step S210, the dynamic data conversion module 152 sets the conversion order in the order of the request language, the operation panel language, and the support language. However, when the operation panel language is English, the dynamic data conversion module 152 excludes the operation panel language from the conversion order, and sets the conversion order to the order of the request language and the support language.
[0099]
In steps S211 and S212, the dynamic data conversion module 152 converts the target character string into a Unicode character string, assuming the character code type of the target character string in the order of the conversion order, and performs conversion when the conversion can be performed normally. finish.
[0100]
The Unicode character string of the conversion destination is output to the Web application 12, as described above (S16 in FIG. 13).
[0101]
Next, the character code conversion processing by the dynamic data conversion module 152 when there is no encoding information (step S205 and thereafter) will be applied to some specific cases. The following is assumed as a matter common to all the following cases.
(1) The image processing apparatus 10 and the terminals 20, 30, and 40 are on the same floor of a Japanese company, the user of the terminal 20 is Japanese, the user of the terminal 30 is American, and the user of the terminal 40 is Czech. is there.
(2) The composition of the race on the floor where the image processing device 10 and the like are installed is such that 80% of Japanese, 15% of Czech and 5% of American.
(3) The priorities of the languages supported by the image processing apparatus 10 are Japanese, Czech, and English.
[0102]
It is also assumed that the user of each terminal requests a printer information page in his / her native language. Further, it is assumed that the common language on the floor is Japanese, that is, the floors communicate with each other in Japanese.
[0103]
In the first case, the attribute value is set in Japanese in the printer information management unit 13 (that is, the target character string required to be converted by the dynamic data conversion module 15 is Japanese), and the operation language is Japanese. Assume that it is a word.
[0104]
When a request for transmission of a printer information page is made by a Japanese user of the terminal 20, that is, when the requested language is Japanese, the conversion order is determined from step S210 in FIG.
Required language (Japanese) → Operation panel language (Japanese) → Supported languages (Japanese, Czech, English)
It becomes.
[0105]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese on the printer information page displayed on the terminal 20 without being garbled.
[0106]
Further, when a request for transmission of a printer information page is made by an American user of the terminal 30, that is, when the requested language is English, the conversion order is determined from step S209 in FIG.
Operation panel language (Japanese) → supported languages (Japanese, Czech, English)
It becomes.
[0107]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese without being garbled on the printer information page displayed on the terminal 30.
[0108]
Further, when there is a transmission request of the printer information page from the Czech user of the terminal 40, that is, when the requested language is Czech, the conversion order is determined from step S210 in FIG.
Request language (Czech) → Operation panel language (Japanese) → Supported languages (Japanese, Czech, English)
It becomes.
[0109]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 performs conversion on the assumption that the language is Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese without being garbled on the printer information page displayed on the terminal 40.
[0110]
From the above, it can be said that the conversion process of the dynamic data conversion module 152 is appropriate in the first case.
[0111]
Next, as a second case, it is assumed that the attribute value is set in Japanese in the printer information management unit 13 (that is, the target character string is Japanese) and the operation language is English.
[0112]
When a request for transmission of a printer information page is made by a Japanese user of the terminal 20, that is, when the requested language is Japanese, the conversion order is determined from step S210 in FIG.
Request language (Japanese) → Support language (Japanese, Czech, English)
It becomes.
[0113]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese on the printer information page displayed on the terminal 20 without being garbled.
[0114]
Further, when a request for transmission of a printer information page is made by an American user of the terminal 30, that is, when the requested language is English, the conversion order is determined from step S208 in FIG.
Supported languages (Japanese, Czech, English)
It becomes.
[0115]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese without being garbled on the printer information page displayed on the terminal 30.
[0116]
Further, when there is a transmission request of the printer information page from the Czech user of the terminal 40, that is, when the requested language is Czech, the conversion order is determined from step S210 in FIG.
Request language (Czech) → Support language (Japanese, Czech, English)
It becomes.
[0117]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that it is Czech, the target character string is not properly converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 performs conversion on the assumption that the language is Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese without being garbled on the printer information page displayed on the terminal 40.
[0118]
From the above, it can be said that the conversion process of the dynamic data conversion module 152 is appropriate in the second case.
[0119]
Next, as a third case, it is assumed that the attribute value is set in Japanese in the printer information management unit 13 (that is, the target character string is Japanese) and the operation panel language is Czech.
[0120]
When a request for transmission of a printer information page is made by a Japanese user of the terminal 20, that is, when the requested language is Japanese, the conversion order is determined from step S210 in FIG.
Required language (Japanese) → Operation panel language (Czech) → Supported languages (Japanese, Czech, English)
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese on the printer information page displayed on the terminal 20 without being garbled.
[0121]
Further, when a request for transmission of a printer information page is made by an American user of the terminal 30, that is, when the requested language is English, the conversion order is determined from step S209 in FIG.
Operation panel language (Czech) → supported languages (Japanese, Czech, English)
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 performs conversion on the assumption that the language is Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese without being garbled on the printer information page displayed on the terminal 30.
[0122]
Further, when there is a transmission request of the printer information page from the Czech user of the terminal 40, that is, when the requested language is Czech, the conversion order is determined from step S210 in FIG.
Request language (Czech) → Oppane language (Czech) → Supported languages (Japanese, Czech, English)
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 performs conversion on the assumption that the language is Japanese. As described above, since the target character string (target character string) is in Japanese, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Japanese without being garbled on the printer information page displayed on the terminal 40.
[0123]
From the above, it can be said that the conversion process of the dynamic data conversion module 152 is appropriate in the third case.
[0124]
Next, as a fourth case, it is assumed that an attribute value is set in the Czech language in the printer information management unit 13 (that is, the target character string is Czech), and the operation panel language is Japanese.
[0125]
When a request for transmission of a printer information page is made by a Japanese user of the terminal 20, that is, when the requested language is Japanese, the conversion order is determined from step S210 in FIG.
Required language (Japanese) → Operation panel language (Japanese) → Supported languages (Japanese, Czech, English)
It becomes.
[0126]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 then performs the conversion assuming that the language is Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 20.
[0127]
Further, when a request for transmission of a printer information page is made by an American user of the terminal 30, that is, when the requested language is English, the conversion order is determined from step S209 in FIG.
Operation panel language (Japanese) → supported languages (Japanese, Czech, English)
It becomes.
[0128]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 then performs the conversion assuming that the language is Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 30.
[0129]
Further, when there is a transmission request of the printer information page from the Czech user of the terminal 40, that is, when the requested language is Czech, the conversion order is determined from step S210 in FIG.
Request language (Czech) → Operation panel language (Japanese) → Supported languages (Japanese, Czech, English)
It becomes.
[0130]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 40.
[0131]
From the above, it can be said that the conversion process of the dynamic data conversion module 152 is appropriate in the fourth case.
[0132]
Next, as a fifth case, it is assumed that an attribute value is set in the Czech language in the printer information management unit 13 (that is, the target character string is Czech), and the operation language is English.
[0133]
When a request for transmission of a printer information page is made by a Japanese user of the terminal 20, that is, when the requested language is Japanese, the conversion order is determined from step S210 in FIG.
Request language (Japanese) → Support language (Japanese, Czech, English)
It becomes.
[0134]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 then performs the conversion assuming that the language is Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 20.
[0135]
Further, when a request for transmission of a printer information page is made by an American user of the terminal 30, that is, when the requested language is English, the conversion order is determined from step S208 in FIG.
Supported languages (Japanese, Czech, English)
It becomes.
[0136]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 then performs the conversion assuming that the language is Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 30.
[0137]
Further, when there is a transmission request of the printer information page from the Czech user of the terminal 40, that is, when the requested language is Czech, the conversion order is determined from steps S208 to S211 in FIG.
Request language (Czech) → Support language (Japanese, Czech, English)
It becomes.
[0138]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 40.
[0139]
From the above, it can be said that the conversion process of the dynamic data conversion module 152 is appropriate in the fifth case.
[0140]
Next, as a sixth case, it is assumed that an attribute value is set in the printer information management unit 13 in Czech (that is, the target character string is Czech), and the operation panel is also in Czech.
[0141]
When a request for transmission of a printer information page is made by a Japanese user of the terminal 20, that is, when the requested language is Japanese, the conversion order is determined from step S210 in FIG.
Required language (Japanese) → Operation panel language (Czech) → Supported languages (Japanese, Czech, English)
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Japanese. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Japanese, the target character string is not normally converted to a Unicode character string. Accordingly, the dynamic data conversion module 152 then performs the conversion assuming that the language is Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 20.
[0142]
Further, when a request for transmission of a printer information page is made by an American user of the terminal 30, that is, when the requested language is English, the conversion order is determined from step S209 in FIG.
Operation panel language (Czech) → supported languages (Japanese, Czech, English)
It becomes.
[0143]
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 30.
[0144]
Further, when there is a transmission request of the printer information page from the Czech user of the terminal 40, that is, when the requested language is Czech, the conversion order is determined from step S210 in FIG.
Request language (Czech) → Oppane language (Czech) → Supported languages (Japanese, Czech, English)
Therefore, the dynamic data conversion module 152 first converts the target character string assuming that it is in Czech. As described above, since the target character string (target character string) is in Czech, if the target character string is converted based on the assumption that the target character string is in Czech, the target character string is normally converted to a Unicode character string. . Therefore, the attribute value is displayed in Czech without being garbled on the printer information page displayed on the terminal 40.
[0145]
From the above, it can be said that the conversion process of the dynamic data conversion module 152 is appropriate in the sixth case.
[0146]
As described above, according to the image processing apparatus 10 of the present embodiment, when registering a Unicode character string requested to be registered by the terminal 20 or the like in the printer information management unit 13 with a 2-byte character code, Since the encoding information is added and registered, even if the character string registered in the printer information management unit 13 needs to be provided later by Unicode, the character code can be correctly converted based on the encoding information. Therefore, it is possible to provide a Web page that is appropriately displayed without garbled characters.
[0147]
In addition, even when there is no encoding information, the dynamic data conversion module 152 performs character code conversion based on valid judgment, so that it is possible to provide a Web page that is appropriately displayed without garbled characters. it can.
[0148]
Furthermore, according to the method described in the present embodiment, it is not necessary to extend the character code inside the device, so that Unicode communication with the terminal 20 or the like can be realized at low cost.
[0149]
The devices to which the present invention can be applied are not limited to image forming apparatuses. The present invention can be applied not only to information processing apparatuses such as general computers, but also to digital cameras and mobile phones having communication functions, so-called digital home appliances, and the like.
[0150]
Although the preferred embodiments of the present invention have been described in detail, the present invention is not limited to the specific embodiments, and various modifications may be made within the scope of the present invention described in the appended claims.・ Change is possible.
[0151]
【The invention's effect】
As described above, according to the present invention, in an information providing apparatus that handles 2-byte character codes as internal codes, information can be appropriately provided using character codes that can be expressed in a plurality of languages.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an example of a functional configuration of an image processing apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of a functional configuration of an image processing apparatus serving as a Web server.
FIG. 3 is a sequence diagram illustrating a process performed by the image processing apparatus when a request for updating printer information is received.
FIG. 4 is a diagram illustrating a display example of a printer information page.
FIG. 5 is a diagram illustrating a registration image of printer information.
FIG. 6 is a sequence diagram illustrating a process performed by the image processing apparatus when a reference request for printer information is received.
FIG. 7 is a diagram showing an example of publication data.
FIG. 8 is a diagram illustrating an example of a language resource for Japanese.
FIG. 9 is a diagram illustrating an example of a language resource for English.
FIG. 10 is a diagram illustrating a display example of an English-language printer information page.
FIG. 11 is a diagram illustrating an example of a functional configuration of an image processing apparatus when acquiring information to be posted on a Web page from an external system or the like.
FIG. 12 is a diagram illustrating a functional configuration example of a multilingual conversion module.
FIG. 13 is a flowchart illustrating a character string conversion process performed by a multilingual conversion module.
FIG. 14 is a flowchart for explaining a character code conversion process of dynamic data.
[Explanation of symbols]
10 Image processing device
11 Embedded Web Server
12 Web application
13 Printer information management unit
14 Multilingual conversion module
16 Language processing unit
17 Language Resources
18 Format information file
19 Other applications
20, 30, 40 terminals
50 Network
60 External system
1011 Copy application
1012 Fax application
1013 Printer application
1014 Information providing application
1016 System management service
1017 Network Service
1018 Memory management service
1019 Operation panel management service
1020 Engine management service
1021 OS
1022 Engine control board
1023 plotter engine
1024 Scanner engine

Claims (15)

ネットワークを介して接続している端末から送信される要求に応じて、複数言語を表現する文字コードである第一の文字コードによる文字列で所定の情報を提供する情報提供装置であって、
前記所定の情報の少なくとも一部を、第二の文字コードによる文字列で、前記第二の文字コードの種別を識別するコード識別情報と関連付けて管理する情報管理手段と、
前記端末からの要求に応じて、前記情報管理手段が管理している文字列を、前記文字列と関連付けられている前記コード識別情報に基づいて前記第一の文字コードによる文字列に変換する第一の文字コード変換手段と、
前記第一の文字コード変換手段による変換先の前記第一の文字コードによる文字列を前記端末に送信する情報送信手段とを有することを特徴とする情報提供装置。
In response to a request transmitted from a terminal connected via a network, an information providing apparatus for providing predetermined information in a character string by a first character code that is a character code representing a plurality of languages,
Information management means for managing at least a part of the predetermined information in a character string by a second character code, in association with code identification information for identifying a type of the second character code,
In response to a request from the terminal, a character string managed by the information management unit is converted into a character string with the first character code based on the code identification information associated with the character string. One character code conversion means,
An information providing apparatus, comprising: an information transmitting unit that transmits a character string of the first character code converted by the first character code converting unit to the terminal.
前記端末から送信される前記第一の文字コードによる文字列を前記第二の文字コードによる文字列に変換する第二の文字コード変換手段と、前記第二の文字コード変換手段による変換先の前記第二の文字コードによる文字列を、該文字列の前記コード識別情報と関連付けて前記情報管理手段に登録する情報登録手段とを有することを特徴とする請求項1記載の情報提供装置。A second character code conversion unit that converts a character string with the first character code transmitted from the terminal into a character string with the second character code, and the conversion destination of the second character code conversion unit. 2. The information providing apparatus according to claim 1, further comprising: an information registering unit for registering a character string of the second character code in the information managing unit in association with the code identification information of the character string. 前記第一の文字コード変換手段は、前記情報管理手段が管理している文字列のうち前記端末からの要求に対応する文字列に前記コード識別情報が関連付けられていない場合は、該文字列の文字コードの種別を前記端末から送信される要求において指定された言語に対応する文字コードの種別と仮定して、前記端末からの要求に対応する文字列を前記第一の文字コードによる文字列に変換することを特徴とする請求項1又は2記載の情報提供装置。The first character code conversion means, when the code identification information is not associated with a character string corresponding to the request from the terminal among the character strings managed by the information management means, Assuming that the type of character code is the type of character code corresponding to the language specified in the request transmitted from the terminal, the character string corresponding to the request from the terminal is converted to a character string by the first character code. 3. The information providing apparatus according to claim 1, wherein the information is converted. 前記第一の文字コード変換手段は、前記情報管理手段が管理している文字列のうち前記端末からの要求に対応する文字列に前記コード識別情報が関連付けられていない場合は、該文字列の文字コードの種別を当該情報管理装置がサポートしている言語のうち、予め設定されている言語に対応する文字コードの種別と仮定して、前記端末からの要求に対応する文字列を前記第一の文字コードによる文字列に変換ることを特徴とする請求項1又は2記載の情報提供装置。The first character code conversion means, when the code identification information is not associated with a character string corresponding to the request from the terminal among the character strings managed by the information management means, Assuming that the type of the character code is the type of the character code corresponding to the language set in advance among the languages supported by the information management apparatus, the character string corresponding to the request from the terminal is referred to as the first character string. The information providing apparatus according to claim 1, wherein the information is converted into a character string using a character code of (1). 前記第一の文字コード変換手段は、前記情報管理手段が管理している文字列のうち前記端末からの要求に対応する文字列に前記コード識別情報が関連付けられていない場合は、該文字列の文字コードの種別を当該情報提供装置の操作パネルの表示言語として指定されている言語に対応する文字コードの種別と仮定して、該文字列を前記第一の文字コードによる文字列に変換することを特徴とする請求項1又は2記載の情報提供装置。The first character code conversion means, when the code identification information is not associated with a character string corresponding to the request from the terminal among the character strings managed by the information management means, Assuming that the type of the character code is the type of the character code corresponding to the language specified as the display language of the operation panel of the information providing device, converting the character string into a character string by the first character code The information providing device according to claim 1 or 2, wherein: 前記第一の文字コード変換手段は、前記端末からの要求に対応する文字列の文字コードの種別を前記端末から送信される要求において指定された言語に対応する文字コードの種別と仮定して変換した結果、該文字列の変換が正常にできない場合は、該文字列の文字コードの種別を当該情報提供装置の操作パネルの表示言語として指定されている言語に対応する文字コードの種別と仮定して、該文字列を前記第一の文字コードによる文字列に変換することを特徴とする請求項3記載の情報提供装置。The first character code conversion means converts the character code type of the character string corresponding to the request from the terminal assuming that the character code type corresponds to the language specified in the request transmitted from the terminal. As a result, if the conversion of the character string cannot be performed normally, it is assumed that the type of the character code of the character string is the type of the character code corresponding to the language specified as the display language of the operation panel of the information providing apparatus. 4. The information providing apparatus according to claim 3, wherein said character string is converted into a character string based on said first character code. 前記第一の文字コード変換手段は、前記端末からの要求に対応する文字列の文字コードの種別を当該情報提供装置の操作パネルの表示言語として指定されている言語に対応する文字コードの種別と仮定して変換した結果、該文字列の変換が正常にできない場合は、該文字列の文字コードの種別を当該情報管理装置がサポートしている言語のうち、予め設定されている言語に対応する文字コードの種別と仮定して、該文字列を前記第一の文字コードによる文字列に変換することを特徴とする請求項6記載の情報提供装置。The first character code conversion means, the type of the character code of the character string corresponding to the request from the terminal and the type of the character code corresponding to the language specified as the display language of the operation panel of the information providing device As a result of the assumed conversion, if the conversion of the character string cannot be performed normally, the type of the character code of the character string corresponds to the language set in advance among the languages supported by the information management apparatus. 7. The information providing apparatus according to claim 6, wherein the character string is converted into a character string based on the first character code, assuming a character code type. 前記端末から送信される要求において指定された言語が英語の場合は、前記端末からの要求に対応する文字列の文字コードの種別を前記端末から送信される要求において指定された言語に対応する文字コードの種別と仮定しないことを特徴とする請求項6又は7記載の情報提供装置。When the language specified in the request transmitted from the terminal is English, the character code type of the character string corresponding to the request from the terminal is changed to the character corresponding to the language specified in the request transmitted from the terminal. 8. The information providing apparatus according to claim 6, wherein the information providing apparatus does not assume a code type. 当該情報提供装置の操作パネルの表示言語として指定されている言語が英語の場合は、前記端末からの要求に対応する文字列の文字コードの種別を該操作パネルの表示言語に対応する文字コードの種別と仮定しないことを特徴とする請求項7又は8記載の情報提供装置。When the language specified as the display language of the operation panel of the information providing device is English, the type of the character code of the character string corresponding to the request from the terminal is changed to the character code corresponding to the display language of the operation panel. 9. The information providing apparatus according to claim 7, wherein the information providing apparatus does not assume a type. 前記複数言語の表現が可能な第一の文字コードはUnicodeであることを特徴とする請求項1乃至9いずれか一項記載の情報提供装置。The information providing apparatus according to any one of claims 1 to 9, wherein the first character code capable of expressing in a plurality of languages is Unicode. 前記情報提供装置は、画像処理装置であることを特徴とする請求項1乃至11いずれか一項記載の情報提供装置。The information providing apparatus according to any one of claims 1 to 11, wherein the information providing apparatus is an image processing apparatus. 請求項1乃至11いずれか一項記載の情報提供装置から送信される前記第一の文字コードによる文字列を表示させる文字列表示手段を有することを特徴とする情報表示装置。An information display device, comprising: character string display means for displaying a character string by the first character code transmitted from the information providing device according to any one of claims 1 to 11. 端末と、前記端末とネットワークを介して接続している端末から送信される要求に応じて、複数言語を表現する文字コードである第一の文字コードによる文字列で所定の情報を提供する情報提供装置とを有する情報提供システムであって、
前記情報提供装置は、
前記所定の情報の少なくとも一部を、第二の文字コードによる文字列で、前記第二の文字コードの種別を識別するコード識別情報と関連付けて管理する情報管理手段と、
前記端末からの要求に応じて、前記情報管理手段が管理している文字列を、前記文字列と関連付けられている前記コード識別情報に基づいて前記第一の文字コードによる文字列に変換する第一の文字コード変換手段と、
前記第一の文字コード変換手段による変換先の前記第一の文字コードによる文字列を前記端末に送信する情報送信手段とを有し、
前記端末は、
前記情報提供装置から送信される前記第一の文字コードによる文字列を表示させる文字列表示手段を有することを特徴とする情報提供システム。
Information provision for providing predetermined information in a character string of a first character code which is a character code representing a plurality of languages in response to a request transmitted from a terminal and a terminal connected to the terminal via a network An information providing system having a device,
The information providing device,
Information management means for managing at least a part of the predetermined information in a character string by a second character code, in association with code identification information for identifying a type of the second character code,
In response to a request from the terminal, a character string managed by the information management unit is converted into a character string with the first character code based on the code identification information associated with the character string. One character code conversion means,
Information transmitting means for transmitting a character string by the first character code of the conversion destination by the first character code conversion means to the terminal,
The terminal is
An information providing system, comprising: character string display means for displaying a character string in the first character code transmitted from the information providing device.
ネットワークを介して接続している端末から送信される要求に応じて、複数言語を表現する文字コードである第一の文字コードによる文字列で所定の情報を提供する情報提供装置における情報提供方法であって、
前記端末からの要求に対応した文字列を、該文字列に関連付けられている、第二の文字コードを識別するコード識別情報に基づいて、前記第一の文字コードによる文字列に変換する第一の文字コード変換手順と、
前記第一の文字コード変換手順による変換先の前記第一の文字コードによる文字列を前記端末に送信する情報送信手順とを有することを特徴とする情報提供方法。
In response to a request transmitted from a terminal connected via a network, an information providing method in an information providing apparatus for providing predetermined information with a character string based on a first character code which is a character code representing a plurality of languages. So,
Converting a character string corresponding to the request from the terminal into a character string based on the first character code based on code identification information for identifying a second character code associated with the character string; Character code conversion procedure,
Transmitting a character string of the first character code converted by the first character code conversion procedure to the terminal.
ネットワークを介して接続している端末から送信される要求に応じて、複数言語を表現する文字コードである第一の文字コードによる文字列で所定の情報を提供する情報提供装置に、
前記端末からの要求に対応した文字列を、該文字列に関連付けられている、第二の文字コードを識別するコード識別情報に基づいて、前記第一の文字コードによる文字列に変換する第一の文字コード変換手順と、
前記第一の文字コード変換手順による変換先の前記第一の文字コードによる文字列を前記端末に送信する情報送信手順とを実行させるための情報提供プログラム。
In response to a request transmitted from a terminal connected via a network, an information providing apparatus that provides predetermined information with a character string based on a first character code that is a character code representing a plurality of languages,
Converting a character string corresponding to the request from the terminal into a character string based on the first character code based on code identification information for identifying a second character code associated with the character string; Character code conversion procedure,
An information transmitting program for transmitting a character string of the first character code converted by the first character code converting procedure to the terminal;
JP2003015342A 2003-01-23 2003-01-23 Information providing device, information display device, information providing system, information providing method, and information providing program Pending JP2004227351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003015342A JP2004227351A (en) 2003-01-23 2003-01-23 Information providing device, information display device, information providing system, information providing method, and information providing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003015342A JP2004227351A (en) 2003-01-23 2003-01-23 Information providing device, information display device, information providing system, information providing method, and information providing program

Publications (1)

Publication Number Publication Date
JP2004227351A true JP2004227351A (en) 2004-08-12

Family

ID=32903128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003015342A Pending JP2004227351A (en) 2003-01-23 2003-01-23 Information providing device, information display device, information providing system, information providing method, and information providing program

Country Status (1)

Country Link
JP (1) JP2004227351A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006123594A1 (en) * 2005-05-16 2006-11-23 Ricoh Company, Ltd. Imaging apparatus and method of displaying image
EP2209295A3 (en) * 2006-02-09 2010-08-25 Ricoh Company, Ltd. Digital camera connected to an external apparatus and receiving the name of the external apparatus as a character string
US7849094B2 (en) 2007-03-07 2010-12-07 Brother Kogyo Kabushiki Kaisha Image processing device
JP2013244678A (en) * 2012-05-28 2013-12-09 Canon Inc Image forming apparatus, control method thereof, and program
JP2014008769A (en) * 2012-07-03 2014-01-20 Canon Inc Image forming apparatus and method for controlling the same, and program
JP2014229139A (en) * 2013-05-23 2014-12-08 京セラドキュメントソリューションズ株式会社 Image forming apparatus and web page language addition method
JP2017114130A (en) * 2017-01-26 2017-06-29 キヤノン株式会社 Image forming apparatus and method for controlling the same, and program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006123594A1 (en) * 2005-05-16 2006-11-23 Ricoh Company, Ltd. Imaging apparatus and method of displaying image
JP2006319835A (en) * 2005-05-16 2006-11-24 Ricoh Co Ltd Image pickup device
JP4592490B2 (en) * 2005-05-16 2010-12-01 株式会社リコー Imaging device
US7929018B2 (en) 2005-05-16 2011-04-19 Ricoh Company, Ltd. Imaging apparatus and method of displaying an operation selection screen
EP2209295A3 (en) * 2006-02-09 2010-08-25 Ricoh Company, Ltd. Digital camera connected to an external apparatus and receiving the name of the external apparatus as a character string
US7911499B2 (en) 2006-02-09 2011-03-22 Ricoh Company, Ltd. Digital camera
US7849094B2 (en) 2007-03-07 2010-12-07 Brother Kogyo Kabushiki Kaisha Image processing device
JP2013244678A (en) * 2012-05-28 2013-12-09 Canon Inc Image forming apparatus, control method thereof, and program
JP2014008769A (en) * 2012-07-03 2014-01-20 Canon Inc Image forming apparatus and method for controlling the same, and program
JP2014229139A (en) * 2013-05-23 2014-12-08 京セラドキュメントソリューションズ株式会社 Image forming apparatus and web page language addition method
JP2017114130A (en) * 2017-01-26 2017-06-29 キヤノン株式会社 Image forming apparatus and method for controlling the same, and program

Similar Documents

Publication Publication Date Title
JP4270992B2 (en) Information processing apparatus, information processing method, information processing program, service providing apparatus, service providing method, service providing program, and recording medium
JP2004318842A (en) Webpage generation device, embedding device, method for control of webpage generation, webpage generation program, and recording medium
US20080077855A1 (en) Generic website
US7925497B2 (en) Information service apparatus and method, information display apparatus and information service system
US20070139233A1 (en) Character string processing apparatus, character string processing method, and image-forming apparatus
EP1306777A2 (en) Contents conversion system, automatic style sheet selection method and program thereof
EP2569703B1 (en) Executing transcription requests on files
WO2006053851A1 (en) Method and system for enhancing uniform resource identifiers , uris , with additional information
JP2009038526A (en) Printing server apparatus
JP6029321B2 (en) Image forming apparatus, control method therefor, and program
JP2010129057A (en) Information processor, display data translation method, and program
US8073872B2 (en) Information processing apparatus
JP2004303218A (en) Information providing device and information display device
JP2000066656A (en) Special character processing system for dynamic document and recording medium having recorded special character processing program thereon
US7424509B2 (en) System and method for printing from a web application
JP2004227351A (en) Information providing device, information display device, information providing system, information providing method, and information providing program
US7075668B2 (en) Direct printing from internet database
WO2010128339A2 (en) Method and apparatus for printing from a mobile device
EP1754145B1 (en) Method and apparatus for supporting multiple versions of a web services protocol
JP2002304314A (en) Application data file reference system
JP4903078B2 (en) Electronic device, Web page generation method, and Web page generation program
US20040070610A1 (en) Configuration method of apparatus, and communication terminal device using the method
JP2004110131A (en) Information processor, information processing method and information processing system
JPH11175529A (en) Information processor and network system
JP2008257354A (en) Electronic device, method for creating web page, and program for creating web page

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050609

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080624

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090206

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090303