Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4338231B2 - External character management device and computer readable medium storing computer program for external character management - Google Patents
[go: Go Back, main page]

JP4338231B2 - External character management device and computer readable medium storing computer program for external character management - Google Patents

External character management device and computer readable medium storing computer program for external character management Download PDF

Info

Publication number
JP4338231B2
JP4338231B2 JP12052297A JP12052297A JP4338231B2 JP 4338231 B2 JP4338231 B2 JP 4338231B2 JP 12052297 A JP12052297 A JP 12052297A JP 12052297 A JP12052297 A JP 12052297A JP 4338231 B2 JP4338231 B2 JP 4338231B2
Authority
JP
Japan
Prior art keywords
external character
external
character
code
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12052297A
Other languages
Japanese (ja)
Other versions
JPH1055358A (en
Inventor
勇 大石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP12052297A priority Critical patent/JP4338231B2/en
Publication of JPH1055358A publication Critical patent/JPH1055358A/en
Application granted granted Critical
Publication of JP4338231B2 publication Critical patent/JP4338231B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【0001】
本発明は外字管理装置および外字管理を行うコンピュータプログラムを記憶たコンピュータ可読媒体に関し、特にコード系の異なるマルチプラットフォームの外字を一括して管理する外字管理装置および外字管理を行うコンピュータプログラムを記憶たコンピュータ可読媒体に関する。
【0002】
従来より複数の異なるプラットフォームの情報処理装置がネットワークを介して接続された分散システムがあるが、このような分散システムでは、それぞれのプラットフォームにて使われている文字コード体系が異なっているのが現状である。大型のコンピュータでは、たとえばJEF(Japanese processing Extended Feature)コード系を使っており、ワークステーションのUNIX(X/Open Co.,Ltd.がライセンスしている米国およびその他に国における登録商標)マシンではEUC(extended UNIX code)コード系、パーソナルコンピュータの場合はシフトJISコード系が主流となっている。これらの違いは、文字は1バイト、2バイト、または3バイトの文字コードで表現されるが、それら文字コードへの割り当て方にある。いずれのコード系についても、非漢字、JIS第1水準漢字およびJIS第2水準漢字の標準の規格化された文字セットを収容したJISの領域を有している。しかし、企業が顧客管理をしたり、自治体が人名を管理したりする場合には、当然、標準の文字セットの範囲ではカバーしきれない文字が多数存在する。そのような文字、さらには企業のロゴといった、規格化されていない文字・図形については、ユーザが任意に定義し、登録して使用することができる外字の領域が用意されており、それぞれプラットフォームで定義された外字を使用することによって、コード系の異なるどのプラットフォームにおいても、非JIS漢字やロゴマークを表示・印刷出力することはできる。
【0003】
【従来の技術】
規格化された文字セットは、各コード系で文字と文字コードとが明確に対応付けられているので、その文字セットを使っている限りはあらかじめ定めた変換の規則にしたがってコード変換することによりシステム間で共通に使用することができる。一方、外字については、コード系の異なる複数のプラットフォームによって分散システムが構築されている場合に、あるコード系にて外字が定義されると、分散システム内のすべてのコード系においても共通に定義されていなければならない。このため、どこかで新たに外字が作成されると、コード系が同じならばそのまま文字コードを使用することができるが、違うコード系ならば、そのコード系のシステムに割り当てられた外字領域に対応する外字を登録しなければならず、しかも、登録した外字を使用できるようにするにはコードの変換が必要である。
【0004】
従来の、たとえば、特開平7−271777号公報に記載のシステムでは、コード系の異なる他のプラットフォームに対して文字列を送る場合に、フォントファイルより文字パターンを読み出し、この文字パターンが割り付けられた文字コードに対応する受信側の文字コードをコード変換表に基づいてコード変換し、変換された文字コードを送信するようにしている。これによって、コード系の異なるプラットフォーム間で外字を統一して使用できるようにしている。
【0005】
【発明が解決しようとする課題】
従来は、コード系の異なる複数のプラットフォームを考慮した外字の流通が行われており、コードの変換も行われている。しかし、表示または印刷用の文字パターンについては、流通先のコード系のシステムが持っている形式およびサイズに合わせて機械的に変換が行われているので、一般に変換後の文字品質は悪化する。これは、たとえばドット形式の文字パターンをあるサイズから別のサイズに変換するような場合には、機械的にビットを付加したり間引いたりすることによってサイズを変更しているので、文字パターンによっては意図しないパターンに変換されることがあるためである。したがって、流通先では、変換後の文字品質の確認が必要であり、そのためには、流通後の各システムにおいて、変換後の外字を印刷または表示によって確認することが必要である。
【0006】
さらに、流通先での変換後の外字の試し印刷または表示によって、整形が必要と判断された外字が存在する場合には、そのシステムの外字エディタを起動し、その外字エディタを使ってその外字を整形することが必要になる。この外字エディタは、システム毎に操作方法が異なるので、外字を管理している担当者はすべてのシステムの外字エディタの操作をマスターする必要がある。
【0007】
したがって、従来では、システム導入時に外字を一括して移行する場合には良いが、運用途中で外字を新規に追加するような場合、たとえ数文字単位の追加でも、全システムでの操作が必要になり、運用環境の変化に対して効率的に対処することができないという問題点があった。
【0008】
本発明はこのような点に鑑みてなされたものであり、使っているシステム分の外字エディタの操作をマスターする必要がなく、1つの場所ですべてのシステムの外字を一括して管理することができる外字管理装置を提供することを目的とする。
【0009】
【課題を解決するための手段】
図1は上記目的を達成する本発明の原理図である。
本発明の外字管理装置は、使用する文字のサイズおよび文字に割り当てられた文字コードの異なる複数のコンピュータシステムがネットワークを介して接続されて構成されているような分散システム内において、外字を統一して管理できるように構成されている。すなわち、図1に示した本発明の外字管理装置は、外字流通元ファイル1に格納された外字を読み込んでその外字の登録処理を行う外字登録手段2と、この外字登録手段2によって登録された外字をファイルに格納しておく外字管理ファイル格納手段3と、この外字管理ファイル格納手段3に格納されている外字を取り出して外字流通先ファイル4に格納する処理を行う外字取り出し手段5と、文字コード変換表6aを有し外字登録手段2または外字取り出し手段5が外字コードの変換を必要としているときに文字コード変換表6aに従って外字コードの変換を行うコード変換手段6と、文字コード変換表6aの更新を行うコード変換表更新手段7と、外字管理ファイル格納手段3に格納されている外字を異なるデータフォーマットおよびサイズの外字に変換する処理を行う外字移行手段8と、外字移行時のデータフォーマットおよびサイズの変換を行うデータフォーマット変換手段9と、外字管理ファイル格納手段3に登録された外字に対して編集を行う外字編集手段10とを備えている。
【0010】
上記構成によれば、外字登録手段2が登録処理を行うときは、外字流通元ファイル1から流通元システムの外字管理コード系を解析し、外字管理ファイル格納手段3の外字管理ファイルが外字流通元ファイル1と外字管理コード系が異なるときは外字流通元ファイル1の外字コードをコード変換手段6によりコード変換してから外字管理ファイル格納手段3に登録する。外字取り出し手段5が外字取り出し処理を行うときは、外字流通先ファイル4が外字管理ファイル格納手段3の外字管理ファイルと外字管理コード系が異なるときは外字管理ファイルの外字コードをコード変換手段6によりコード変換してから外字流通先ファイル4に格納する。外字移行手段8は外字管理ファイル格納手段3に登録されている外字に対してデータフォーマットまたはサイズ間の変換を行う場合に、外字管理ファイル格納手段3より取り出した外字をデータフォーマット変換手段9によりデータフォーマットまたはサイズの変換をしてから外字管理ファイル格納手段3に登録する。外字編集手段10は外字管理ファイル格納手段3に登録されている外字に対して文字パターンの整形・修正を行う。
【0011】
【発明の実施の形態】
まず、本発明の概略について図面を参照して説明する。
図1は本発明の外字管理装置の原理的な構成を示す図である。
【0012】
本発明の外字管理装置は、特に、使用する文字のサイズおよび文字に割り当てられた文字コードの異なる複数のコンピュータシステムがネットワークを介して接続されて構成されているような分散システムの環境において利用されるものでであって、ネットワークまたは記憶媒体によって流通されている外字流通元ファイル1に格納された外字を読み込んでその外字の登録処理を行う外字登録手段2と、この外字登録手段2によって登録処理された外字を外字管理ファイルに格納しておく外字管理ファイル格納手段3と、外字管理ファイルに格納されている外字を取り出して外字流通先ファイル4に格納する処理を行う外字取り出し手段5と、文字コード変換表6aを有し、外字登録手段2または外字取り出し手段5が外字コードの変換を必要としているときに文字コード変換表6aに従って外字コードの変換を行うコード変換手段6と、文字コード変換表6aの更新を行うコード変換表更新手段7と、外字管理ファイルに格納されている外字をデータフォーマットまたはサイズの異なる外字に変換して別の外字管理ファイルに登録する処理を行う外字移行手段8と、この外字移行手段8による移行の処理を行うときにデータフォーマットまたはサイズの変換を行うデータフォーマット変換手段9と、外字管理ファイル格納手段3に登録されている外字に対して編集を行う外字編集手段10とを備えている。
【0013】
上記構成の外字管理装置によれば、外字登録手段2によって外字の登録処理を行うときは、外字流通元ファイル1を解析して流通元システムの外字管理コード系をチェックしておく。ここで、外字流通元ファイル1の外字管理コード系が外字管理ファイル格納手段3の外字管理ファイルのものと異なるときには、外字流通元ファイル1の外字コードをコード変換手段により外字管理ファイルの外字コードに変換して新たな外字管理ファイルに格納し、外字管理ファイル格納手段3に登録する。
【0014】
外字取り出し手段5によって外字管理ファイルから外字流通先ファイル4へ外字の取り出しを行うときには、まず、外字管理ファイルと取り出し先の外字流通先ファイル4との外字管理コード系をチェックする。ここで、取り出し元と取り出し先との外字管理コード系が異なるときには、外字管理ファイルの外字コードをコード変換手段6により外字流通先ファイル4の外字コードに変換して外字流通先ファイル4に格納する。
【0015】
コード変換表更新手段7は、分散システム内で使用されるコード系が追加された場合などに、コード変換手段6の有する文字コード変換表6aに対して既に管理下にあるコード系の文字コードとの対応表を追加するなどの処理を行う。
【0016】
外字移行手段8により外字管理ファイル格納手段3に登録されているある外字管理ファイルの外字を、データフォーマットまたはサイズの異なる別の外字管理ファイルに移行するときには、それぞれのファイルのデータフォーマットおよび外字のサイズをチェックする。外字管理ファイル格納手段3より取り出した外字のデータをデータフォーマット変換手段9により移行先のデータフォーマットまたは外字のサイズに変換し、別の外字管理ファイルに格納して外字管理ファイル格納手段3に登録する。
【0017】
外字編集手段10は複数のデータフォーマットを扱うことができる外字エディタを備え、外字管理ファイル格納手段3に登録されている外字を編集する際には、その外字を格納している外字管理ファイルからデータフォーマットおよび文字のサイズをチェックし、その条件で外字エディタを起動し、外字に対して必要な整形または修正を行い、最後に、編集された外字を元の外字管理ファイルに格納する。
【0018】
次に、本発明の実施の形態を、複数のコンピュータシステムがネットワークを介して接続されて構成されている分散システムに適用した場合を例にして説明する。
【0019】
図2は分散システムの一例を示す構成図である。
図2に示した分散システムは、たとえばメインフレーム11と、ワークステーション(WS)12と、パーソナルコンピュータ(PC)13とがネットワーク14を介して相互に接続されて構成されている。メインフレーム11には文字コード管理部11aが接続され、その文字コード系はたとえばJEFコードが使用されている。ワークステーション12には文字コード管理部12aが接続されており、その文字コード系はたとえばEUCコードが使用されている。そして、パーソナルコンピュータ13には文字コード管理部13aおよびフロッピーディスクドライブ(FDD)13bが接続されており、文字コード管理部13aの文字コード系はたとえばシフトJISコードが使用されている。また、ネットワーク14には汎用コンピュータ15が接続されている。この汎用コンピュータ15は、中央処理装置(CPU)15aおよびメモリ15bを有し、外部記憶装置であるハードディスク16、CD−ROMドライブ17およびフロッピーディスクドライブ(FDD)18が接続されて外字管理装置を構成している。
【0020】
外字を管理する外字管理プログラムは、当初、CD−ROM17aまたはフロッピーディスク18aの流通記憶媒体に格納されている。たとえばCD−ROM17aに外字管理プログラムが格納されているとすると、その外字管理プログラムはCD−ROM17aから読み出され、ハードディスク16に外字管理プログラム16aとしてインストールされることによって利用可能になる。また、ハードディスク16には、オペレーティングシステム(OS)16bや外字ファイル16cが格納されている。
【0021】
ハードディスク16にインストールされた外字管理プログラム16aは必要に応じて汎用コンピュータ15のメモリ15b上に一部または全部がロードされて実行される。外字管理プログラム16aはオペレーティングシステム16bにより制御され、必要に応じてオペレーティングシステムの提供する機能(プログラム)を呼び出して実行する。
【0022】
この分散システムにおける各種文字コード体系の外字、すなわち、JEFコード系、EUCコード系およびシフトJISコード系の外字は、外字管理プログラム16aによって一括管理される。この外字管理プログラム16aは外字の登録、外字の取り出し、外字の移行および外字の編集を行うことができる。このとき、外字管理装置において、利用者によって、管理上有効と思われる任意のコード系を管理コード系としてあらかじめ定められる。以下の説明では、外字管理装置の管理コード系はJEFコード系に定められているとする。外字の登録や取り出しは、汎用コンピュータ15による外字管理装置からはもちろん、分散システムの端末、たとえばワークステーション12からもネットワークを通じて要求することができる。また、この場合の流通は、CD−ROM17a、フロッピーディスク18a、または図示はしないが半導体メモリなどの記憶媒体や、ネットワーク14を介して行われる。図示の例では、外字流通元ファイルとしては、CD−ROM17aまたはフロッピーディスク18aによって提供される。また、外字の取り出しをフロッピーディスク18aに行った場合は、外字管理装置より取り出されかつデータの内容が保証された外字は、たとえばパーソナルコンピュータ13のフロッピーディスクドライブ13bを通じて文字コード管理部13aに入れられる。
【0023】
次に、汎用コンピュータ15のメモリ15bにロードされた外字管理プログラム16aが中央処理装置15aによって実行されるときの外字管理装置の処理概要について説明する。
【0024】
図3は外字管理装置の処理概要を示す図である。
外字管理装置は、外字一括管理部21と、外字管理データベース22と、外字管理ファイル群23と、この外字管理ファイル群23を取り囲むように配置されたファイルアクセス関数24、コード変換関数25およびデータフォーマット変換関数26と、コード変換関数25に接続された外字コード変換表27と、複数のデータフォーマットに対応した外字エディタ28と、外字コード変換表27の変換表を更新するコード変換表更新部29と、管理コード系設定部30とから構成されている。
【0025】
外字一括管理部21は外字管理装置全体の管理をする部分で、外字管理ファイル群23を外字管理データベース22によって管理するとともに、外字の登録、外字の取り出し、外字の移行、外字の編集、コード変換表更新部29による外字コード変換表27の更新および管理コード系設定部30によるこの外字管理装置としての管理コード系の設定処理を制御する。ファイルアクセス関数24は外字管理ファイル群23の外字管理ファイルのオープン・クローズ、リード・ライトを行い、コード変換関数25は外字を取り込んだり取り出したりするときにコード系間での外字コードの変換が必要な場合、外字コード変換表27に基づいて他のコード系から管理コード系のJEFコードに変換したり、JEFコード系から目的の文字コードにコード変換を行い、そしてデータフォーマット変換関数26は、外字の移行をするときにデータフォーマットの変換を行う。
【0026】
外字管理ファイル群23は、文字のたとえば明朝やゴシックなどの書体毎、たとえばドットかベクトルかトゥルータイプかなどのデータフォーマット毎、およびサイズ毎に作成された外字管理ファイルによって構成されている。外字管理装置が管理している外字を利用者に対して図示しないモニタに表示する場合には、外字一括管理部21は、書体毎、フォーマット毎およびサイズ毎に分類してツリー構造で外字を表示するようにしている。外字エディタ28はたとえばドット、ベクトル、またはトゥルータイプのいずれのデータフォーマットにも対応しており、データフォーマット間で相互に変換する機能を有している。したがって、利用者はデータフォーマットが何であるかを意識することなく編集することができる。たとえば、ベクトル形式の外字を編集する場合、編集はドット形式で行うことができ、編集を終了するときには、編集結果はベクトル形式に変換されて、対応する外字管理ファイルに保存される。
【0027】
外字管理装置の処理の流れとしては、外字の登録時は、流通元システムから提供された外字流通ファイル31を読み込み、流通元システムがJEFコード系でなければ、コード変換関数25でJEFコード系への外字コード変換が行われ、ファイルアクセス関数24による外字管理ファイルの書き込み処理が行われて、外字が登録される。
【0028】
登録されている外字を取り出すときは、ファイルアクセス関数24によって取り出し元の外字管理ファイルを読み出し、目的の文字コード系がJEFコード系でなければ、コード変換関数25でJEFコード系から目的のコード系へ外字コード変換してから、外字流通ファイル32に書き込んで、流通先システムに持参またはネットワーク転送する。このとき、書体、サイズ、データフォーマットが保証されている完成された字を取り出すだけなので、データフォーマットの変換はしない。
【0029】
登録されている外字からデータフォーマットおよびサイズの異なる別の外字に移行するときには、ファイルアクセス関数24で変換元の外字管理ファイルを読み込み、データフォーマット変換関数26で目的のデータフォーマットへの変換が行われる。この場合は、同じJEFコードなので、コード変換は行われず、ファイルアクセス関数24によって目的のデータフォーマットの外字の書き込みが行われる。また、この外字の移行を利用者が指示するときには、外字管理ファイル群23をモニタ画面にツリー表示しているときに、既に登録されている外字と登録の可能性のある外字とを区別して表示しておき、たとえばマウスのようなポインティングデバイスを利用して、既に登録されている外字を表す文字列から登録の可能性のある外字を表す文字列へドラッグ・アンド・ドロップすることによって、外字の移行を開始させることができる。
【0030】
そして、外字エディタ28は、登録されている外字管理ファイルをファイルアクセス関数24で読み込んで外字の編集を行う。編集後は、ファイルアクセス関数24で編集結果を元の外字管理ファイルに書き込む。ここで、この外字エディタ28の起動方法について説明する。まず、外字管理ファイル群23をモニタ画面にツリー表示しているときに、登録されている外字のサイズを表す文字列をポインティングデバイスによってダブルクリックすることにより、指定されたサイズの外字の一覧が表示される。ここで、その一覧の中から目的の外字文字を表示している部分をダブルクリックすることによって、外字エディタ28を起動させることができる。
【0031】
次に、外字管理装置による外字の登録、外字の取り出し、外字の移行および外字の編集の詳細な処理の流れについて説明する。
図4は外字の登録を行うときの処理の流れを示すフローチャートである。
【0032】
外字流通ファイルから外字管理ファイルに外字の登録を行う場合には、まず、外字登録のための入力受付を行う(ステップS1)。ここで、入力受付には2通りの方法があり、1つは、外字管理装置において直接外字の登録要求があった場合であり、他は別のシステムからネットワーク経由で外字の登録要求がある場合である。受付の際には、入力情報として、登録しようとする外字が格納されたファイルの名前、すなわち、外字流通ファイル名と、登録先情報とが指定される。この登録先情報としては、登録しようとする書体、サイズおよびデータフォーマットが指定され 。なお、登録情報が指定されていない場合は、そのファイルの中に入っているデフォルトの情報が指定される。次いで、入力受付で入力された入力情報が正しいかどうかなど、入力情報の正当性のチェックが行われ(ステップS2)、外字流通ファイルをオープンし(ステップS3)、外字流通ファイルのヘッダ情報の読み込みを行う(ステップS4)。読み込んだヘッダ情報を解析して、流通する文字数、流通元システムのコード系、流通元システムの外字のデータフォーマットおよびサイズのチェックを行う(ステップS5)。次に、入力受付にて登録先情報で指定された外字管理ファイルをオープンする(ステップS6)。
【0033】
ここで、ループ処理になっており、流通する文字数分ループしたかどうかがチェックされる(ステップS7)。流通する文字数はヘッダ情報の解析のところでチェックされているので、ループ処理がその文字数分行われたかどうかがチェックされる。ループ処理が文字数分行われていない場合は、外字流通ファイルから登録する外字データが1文字単位で取り出される(ステップS8)。
【0034】
次に、外字流通ファイルのコード系が登録する外字管理ファイルの管理コード系と異なっているかどうかがチェックされる(ステップS9)。ここで、外字流通ファイルのコード系と登録する外字管理ファイルの管理コード系とが異なっていた場合には、コード変換を行って管理コード系におけるコードを求め(ステップS10)、異なっていなければそのまま外字流通ファイルのコードが使用される。たとえば、管理コード系がJEFであり、外字流通ファイルのコード系がEUCであれば、EUCのコードからそれに対応するJEFコードに変換される。その後、その外字は外字管理ファイルに登録される(ステップS11)。そして、ステップS7からステップS11までの処理が文字数分繰り返し行われると、ファイルのクローズなどの終了処理が行われる(ステップS12)。
【0035】
図5は外字の取り出しを行うときの処理の流れを示すフローチャートである。
外字管理ファイルから外字流通ファイルに外字の取り出しを行う場合には、まず、外字の取り出しのための入力受付を行う(ステップS21)。ここで、入力受付には2通りの方法があり、1つは、外字管理装置において直接外字の取り出し要求があった場合であり、他は別のシステムからネットワーク経由で外字の取り出し要求がある場合である。受付の際には、入力情報として、まず、取り出そうとする外字の書体、サイズおよびデータフォーマットからなる取り出し情報が入力される。さらに、入力情報として、取り出した外字を格納する外字流通ファイル名、流通先システムコード系および取り出す文字コードの範囲が指定される。そして、利用者が入力された、またはネットワークを経由しての取り出し要求時のこれらの入力情報に対する文字列のチェックなど、入力情報の正当性のチェックが行われる(ステップS22)。次いで、その入力情報から、オープンする外字管理ファイルが特定される(ステップS23)。この外字管理ファイルは、取り出し情報として入力された書体、サイズおよびデータフォーマットから特定される。そして、取り出す外字管理ファイルをオープンし(ステップS24)、取り出した外字を格納する外字流通ファイルをオープンする(ステップS25)。
【0036】
ここで、ループ処理になっており、取り出す文字数分ループしたかどうかがチェックされる(ステップS26)。取り出す文字数は、入力情報として取り出す文字コードの範囲が指定されており、この情報から文字数が判断される。次に、外字管理ファイルの管理コード系と流通先システムのコード系とが異なっているかどうかがチェックされる(ステップS27)。ここで、外字管理ファイルの管理コード系と流通先システムのコード系とが異なっている場合には、コード変換を行い、流通先システムのコード系から管理コード系において対応するコードを求め(ステップS28)、異なっていなければそのまま管理コード系のコードが使用される。たとえば、管理コード系がJEFであり、流通先システムのコード系がシフトJISとすれば、コード系が異なるので、コード変換を行う。ここでは、取り出す文字コードの範囲は流通先システムのコード系のシフトJISで指定しているので、シフトJISにおける指定した文字コード範囲のコードから、逆に、管理コード系のJEFの対応するコードを求める。その後、外字管理ファイルから外字データを取り出し(ステップS29)、外字流通ファイルに流通先システムのコード系におけるコードで外字を格納する(ステップS30)。
【0037】
以上のステップS26からステップS30までの処理を文字数分繰り返した後、外字流通ファイルのヘッダ情報を設定する(ステップS31)。このヘッダ情報には、格納文字数の情報が含まれているが、実際に外字管理ファイルから取り出される外字の数は、最初に、取り出す文字コードの範囲として指定した文字数と同じではないので、実際に外字流通ファイルに外字が格納されてからヘッダ情報が設定される。最後に、ファイルのクローズなどの終了処理が行われる(ステップS32)。
【0038】
図6は外字の移行を行うときの処理の流れを示すフローチャートである。
ある外字管理ファイルの外字のデータフォーマットまたはサイズを変換して、異なる別の外字管理ファイルに外字を移行する場合には、まず、入力情報として、取り出し情報と、移行先情報と、移行文字コードの範囲とが指定される。取り出し情報および移行先情報にはそれぞれ外字の書体、サイズおよびデータフォーマットの情報が指定され、移行文字コードの範囲については、単一の文字を指定、または範囲指定による複数文字を指定することができる。そして、これらの入力情報に対する文字列のチェックなど、入力情報の正当性のチェックが行われる(ステップS41)。なお、この外字の移行を利用者が指示するときには、好ましくは、書体、サイズおよびデータフォーマットの情報が画面にツリー表示されている文字列のうち、変換元の文字列を変換先の文字列にポインティングデバイスによってドラッグ・アンド・ドロップすることによって、外字の移行の入力情報を入力する方法が採られる。または、たとえば、メニューの中から「移行」を選択指定し、これによって現れるダイアログボックスを通じて入力情報を入力するようにしてもよい。
【0039】
次に、入力情報から取り出し元および移行先の外字管理ファイルを特定する(ステップS42)。この取り出し元および移行先の外字管理ファイルの特定は、入力された取り出し情報および移行先情報の書体、サイズ、データフォーマットから行われる。そして、取り出し元の外字管理ファイルをオープンし(ステップS43)、移行先の外字管理ファイルをオープンする(ステップS44)。
【0040】
ここで、ループ処理になっており、移行する文字数分ループしたかどうかがチェックされる(ステップS45)。移行する文字の数は、入力情報として指定された移行文字コードの範囲から判断される。次いで、取り出し元の外字管理ファイルから外字データを取り出し(ステップS46)、取り出した外字を指定された書体、サイズ、データフォーマットに変換し(ステップS47)、移行先外字管理ファイルに変換された外字を登録する(ステップS48)。外字の移行の場合は、管理コード系は全部同じコード系で管理されているので、コードの変換は必要ない。以上のステップS45からステップS48までの処理が文字数分繰り返されると、最後に、ファイルのクローズなどの終了処理が行われる(ステップS49)。
【0041】
図7は外字の編集を行うときの処理の流れを示すフローチャートである。
複数のデータフォーマットを扱うことができる外字エディタで外字の編集を行う場合には、まず、入力情報として、取り出し元となる外字管理ファイルを特定するための書体、サイズおよびデータフォーマットの取り出し情報と、編集対象の文字コードとを指定する。たとえば外字を画面にツリー表示しているときに、目的の外字のサイズを表す文字列をポインティングデバイスによってダブルクリックすることにより、その外字を表す情報が入力情報の取り出し情報として内部的に指定されることになる。次いで、この入力情報は正当性がチェックされ(ステップS51)、その入力情報から取り出し元の外字管理ファイルが特定される(ステップS52)。なお、外字を画面にツリー表示している場合には、目的の外字のサイズを表す文字列をポインティングデバイスによってダブルクリックすることにより、その取り出し元の外字管理ファイルは内部的に特定されることになる。次に、特定された取り出し元の外字管理ファイルをオープンし(ステップS53)、編集する外字を読み出す(ステップS54)。このとき、画面には、指定されたサイズの外字の一覧がたとえばコード番号順に表示されるので、その一覧の中から目的の外字を表示している部分をダブルクリックすることによって、外字エディタを起動させる(ステップS55)。このとき、取り出し元の外字管理ファイルのデータフォーマットが判定され、外字エディタはそのデータフォーマットを編集するためのモードで起動され、実行される。たとえばデータフォーマットがベクトル形式であったら、ベクトル形式で編集するモードで外字エディタが起動される。編集が終了すると、元の外字管理ファイルに編集後の外字が格納され(ステップS56)、その外字管理ファイルをクローズする(ステップS57)。
図8は外字管理データベースのデータ構造を示す図である。
【0042】
外字管理装置では、外字管理ファイルの管理を外字管理データベースで行っている。その外字管理データベースは、その一例として、全体管理情報のテーブル41,42、書体テーブル43、データフォーマットテーブル44およびサイズ情報テーブル45によってツリー状に構成されている。
【0043】
テーブル41には、外字管理ファイルの個数と、外字管理コード系と、テーブル42へのオフセットとが設定されている。外字管理ファイルの個数は外字管理ファイル群に登録されている外字管理ファイルの数であり、外字管理コード系はあらかじめ管理コード系として管理コード系設定手段により利用者によって定められた、たとえばJEFの文字列情報が入っている。
【0044】
テーブル42には、書体数と、書体テーブルオフセットとが設定されている。書体数は、たとえば「明朝」と「ゴシック」との2種類の書体が登録されていれば「2」が入る。
【0045】
書体テーブル43には、書体毎に、書体識別子と、書体名と、フォーマット数と、データフォーマットテーブルオフセットとが設定されている。たとえば書体が明朝ならば、書体識別子は「a0」、書体名には「明朝」の文字列が入り、フォーマット数はたとえばデータ形式がドットと、ベクトルと、トゥルータイプとであれば、「3」が入る。
【0046】
データフォーマットテーブル44には、データフォーマット毎に、フォーマット識別子と、フォーマット名と、サイズ数と、サイズ情報テーブルオフセットとが設定されている。フォーマット識別子はたとえばデータフォーマットがドット形式ならば「b0」、フォーマット名には「ドット」が入り、サイズ数はそのフォーマットが持っているサイズの数が入れられる。
【0047】
サイズ情報テーブル45には、サイズ毎に、サイズ識別子、縦サイズ、横サイズ、縦レターサイズ、および横レターサイズが設定されている。サイズ識別子は、たとえば縦サイズ×横サイズが「30×30」、縦レターサイズ×横レターサイズが「28×28」のサイズの場合には「c0」、他のサイズの場合は「c1」・・・となる。
【0048】
ここで、書体テーブル43の書体識別子、データフォーマットテーブル44のフォーマット識別子、およびサイズ情報テーブル45のサイズ識別子は外字管理ファイルを特定するファイル名の情報に使用される。たとえば、外字管理ファイル名が「a0b0c0」ならば、明朝の、ドット形式の、サイズが「30×30(28×28)」の外字ファイルを表している。登録している外字を画面にツリー表示しているときには、書体名「明朝」、フォーマット名「ドット」、サイズ「30×30(28×28)」で表示される。
【0049】
図9は外字流通ファイルのデータ構造を示す図である。
流通される外字流通ファイルは、ヘッダ情報部51と、外字データ部52とから構成される。ヘッダ情報部51は、流通元システムコード系長と、流通元システムコード系名と、書体名長と、書体名と、縦サイズ・横サイズと、レター縦サイズ・レター横サイズと、外字フォーマット種別と、外字数との情報を含んでおり、外字データ部52は、外字コード毎に、外字コードと、外字データ長と、外字データとを含んでいる。
【0050】
ヘッダ情報部51において、流通元システムのコード系がたとえばJEFならば、このJEFは1バイトの文字で3であるので、流通元システムコード系長は「3」、流通元システムコード系名は「JEF」となる。書体が明朝ならば、この明朝という文字は二つの2バイト文字の漢字からなるので、書体名長は「4」、書体名は「明朝」となる。外字フォーマット種別は、ドット、ベクトル、あるいはトゥルータイプなどの形式を表す情報が入力される。外字数は、外字データ部52に格納された外字の数である。
【0051】
なお、上述の実施の形態では、本発明の外字管理装置を日本の漢字キャラクターに対して適用したが、それ以外にも適用できる。たとえば7/8ビット系(ISO/IEC 646:1991,ANSI X 3.4−1986(ASCII)など)や16ビット以上で1文字を表す体系(ISO/IEC 10646−11993のUCS−2など)の文字にも適用することができる。
【0052】
【発明の効果】
以上説明したように本発明では、外字登録手段と、外字管理ファイル格納手段と、外字取り出し手段と、データフォーマット変換手段と、コード変換手段と、外字移行手段と、外字編集手段とを備えるように構成した。
【0053】
このため、利用者が特定の1つのコード系を外字管理コード系として設定しておくことにより、外字域のコード変換が可能なコード変換手段により外字の入力および出力時に、管理コード系への変換および出力先のシステムコード系への変換を行うことができ、したがって、特定の管理コード系で複数のシステムの外字を統一して一括管理する事が可能になる。また、データフォーマット変換手段により複数の外字データフォーマットの相互変換が可能なので、移行して外字を生成する場合は、そのシステム上で移行後の外字の品質確認が可能であるため、従来のように、移行後に各システム毎に試し印刷・表示することによって外字品質の確認を行う必要がなく、移行先での確認工数を節約することができる。
【0054】
また、複数の外字データフォーマットを扱うことができる外字編集手段を備えたことにより、外字編集の集中的な実施が可能になり、しかも、システム毎の外字エディタの操作の習得および外字エディタによる編集を行う必要がなく、外字生成工数を節約することができる。
【0055】
さらに、分散システムにおける外字品質確認工数および外字編集工数が少なくなるため、外字環境の変化に対して早期の対策が可能であり、システム運用率を向上させることができる。
【0056】
なお、管理コード系を定めずに、外字管理ファイルでの管理を各システムのコード系で行い、移行時にデータフォーマットおよびサイズの変更と同時にコード変換を行うようにしても、同様の効果を奏することができる。ただし、その場合は、データフォーマットが同じでも、システムが異なる場合は、異なるデータフォーマットとして扱う。
【図面の簡単な説明】
【図1】本発明の外字管理装置の原理的な構成を示す図である。
【図2】分散システムの一例を示す構成図である。
【図3】外字管理装置の処理概要を示す図である。
【図4】外字の登録を行うときの処理の流れを示すフローチャートである。
【図5】外字の取り出しを行うときの処理の流れを示すフローチャートである。
【図6】外字の移行を行うときの処理の流れを示すフローチャートである。
【図7】外字の編集を行うときの処理の流れを示すフローチャートである。
【図8】外字管理データベースのデータ構造を示す図である。
【図9】外字流通ファイルのデータ構造を示す図である。
【符号の説明】
1 外字流通元ファイル
2 外字登録手段
3 外字管理ファイル格納手段
4 外字流通先ファイル
5 外字取り出し手段
6 コード変換手段
6a 文字コード変換表
7 コード変換表更新手段
8 外字移行手段
9 データフォーマット変換手段
10 外字編集手段
[0001]
The present invention is an external character management device. Place And computer programs for managing external characters Shi External character management device that manages multi-platform external characters that have different code systems Place And computer programs for managing external characters Shi Relates to a computer readable medium.
[0002]
Conventionally, there is a distributed system in which information processing devices of different platforms are connected via a network. However, in such a distributed system, the current character code system used by each platform is different. It is. Large computers use, for example, the JEF (Japan processing Extended Feature) code system, and the UNIX (X / Open Co., Ltd. licensed in the United States and other countries) licenses EUC on workstations. In the case of an (extended UNIX code) code system and a personal computer, a shift JIS code system is mainly used. The difference is that characters are represented by 1-byte, 2-byte, or 3-byte character codes, but are assigned to these character codes. Each code system has a JIS area that accommodates standardized character sets of non-kanji, JIS first level kanji, and JIS second level kanji. However, when a company manages customers or a local government manages names, there are naturally many characters that cannot be covered by the standard character set. For such characters and even non-standard characters and figures such as company logos, there are external character areas that can be arbitrarily defined, registered, and used by the user. By using the defined external characters, non-JIS kanji and logo marks can be displayed and printed out on any platform with a different code system.
[0003]
[Prior art]
In the standardized character set, characters and character codes are clearly associated with each code system, so as long as the character set is used, the system can be converted by code conversion according to predetermined conversion rules. Can be used in common between. On the other hand, external characters are defined in common in all code systems in a distributed system when the external system is defined in a certain code system when the distributed system is constructed by multiple platforms with different code systems. Must be. For this reason, if an external character is newly created somewhere, the character code can be used as it is if the code system is the same, but if it is a different code system, the external character area assigned to the system of the code system is used. Corresponding external characters must be registered, and code conversion is necessary to be able to use the registered external characters.
[0004]
In the conventional system described in, for example, Japanese Patent Application Laid-Open No. 7-271777, when a character string is sent to another platform having a different code system, the character pattern is read from the font file, and the character pattern is assigned. The receiving side character code corresponding to the character code is converted based on the code conversion table, and the converted character code is transmitted. This makes it possible to use external characters in a unified manner across platforms with different code systems.
[0005]
[Problems to be solved by the invention]
Conventionally, external characters have been distributed in consideration of a plurality of platforms having different code systems, and code conversion has also been performed. However, since the character pattern for display or printing is mechanically converted in accordance with the format and size of the distribution code system, generally the character quality after conversion deteriorates. This is because, for example, when converting a dot-shaped character pattern from one size to another, the size is changed by mechanically adding or thinning bits, so depending on the character pattern This is because the pattern may be converted into an unintended pattern. Therefore, it is necessary for the distribution destination to check the character quality after conversion, and for this purpose, it is necessary to check the converted external characters by printing or displaying in each system after distribution.
[0006]
In addition, if there is an external character that needs to be formatted by trial printing or display of the external character after conversion at the distribution destination, start the external character editor of that system and use that external character editor to change the external character. It needs to be shaped. Since the operation method of this external character editor is different for each system, the person in charge of managing the external character needs to master the operation of the external character editor of all the systems.
[0007]
Therefore, in the past, it was good to transfer external characters at the same time when the system was introduced, but when external characters were newly added during operation, operation in the entire system would be required even if several characters were added. Therefore, there has been a problem that it is impossible to efficiently cope with changes in the operating environment.
[0008]
The present invention has been made in view of these points, and it is not necessary to master the operation of the external character editor for the system being used, and it is possible to collectively manage the external characters of all the systems in one place. An object of the present invention is to provide a device for managing external characters.
[0009]
[Means for Solving the Problems]
FIG. 1 is a principle diagram of the present invention that achieves the above object.
The external character management device of the present invention unifies external characters in a distributed system in which a plurality of computer systems having different character sizes and character codes assigned to characters are connected via a network. Can be managed. That is, the external character management apparatus of the present invention shown in FIG. 1 is registered by the external character registration means 2 that reads external characters stored in the external character distribution source file 1 and performs registration processing of the external characters, and is registered by the external character registration means 2. External character management file storage means 3 for storing external characters in a file, external character extraction means 5 for performing processing for extracting external characters stored in the external character management file storage means 3 and storing them in the external character distribution destination file 4; A code conversion means 6 having a code conversion table 6a for converting an external character code according to the character code conversion table 6a when the external character registration means 2 or the external character extraction means 5 needs to convert the external character code; and a character code conversion table 6a The code conversion table update means 7 for updating the external character and the external characters stored in the external character management file storage means 3 are different in data format and support. Edit the external character registered in the external character management file storage means 3, the external character transfer means 8 that performs the process of converting the external character into the external character, the data format conversion means 9 that converts the data format and size at the time of external character transfer, and The external character editing means 10 is provided.
[0010]
According to the above configuration, when the external character registration unit 2 performs the registration process, the external character management code system of the distribution source system is analyzed from the external character distribution source file 1, and the external character management file of the external character management file storage unit 3 is the external character distribution source. When the file 1 and the external character management code system are different, the external character code of the external character distribution source file 1 is converted by the code conversion means 6 and then registered in the external character management file storage means 3. When the external character extraction unit 5 performs the external character extraction process, the external character code of the external character management file is converted by the code conversion unit 6 when the external character distribution destination file 4 is different from the external character management file of the external character management file storage unit 3. After code conversion, it is stored in the external character distribution destination file 4. When the external character transfer means 8 performs conversion between data formats or sizes for external characters registered in the external character management file storage means 3, the external character extracted from the external character management file storage means 3 is converted into data by the data format conversion means 9. After the format or size is converted, it is registered in the external character management file storage means 3. The external character editing means 10 shapes and corrects the character pattern for the external characters registered in the external character management file storage means 3.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
First, an outline of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing the basic configuration of an external character management apparatus according to the present invention.
[0012]
The external character management device of the present invention is used particularly in a distributed system environment in which a plurality of computer systems having different character sizes and character codes assigned to characters are connected via a network. An external character registration unit 2 that reads an external character stored in an external character distribution source file 1 distributed via a network or a storage medium and performs registration processing of the external character, and registration processing by the external character registration unit 2 External character management file storage means 3 for storing the external characters in the external character management file, external character extraction means 5 for performing processing for extracting the external characters stored in the external character management file and storing them in the external character distribution destination file 4; It has a code conversion table 6a, and the external character registration means 2 or the external character extraction means 5 must convert the external character code. Code conversion means 6 for converting an external character code according to the character code conversion table 6a, code conversion table update means 7 for updating the character code conversion table 6a, and external characters stored in the external character management file as data External character transfer means 8 that performs processing of converting to an external character having a different format or size and registering it in another external character management file, and a data format that converts the data format or size when the transfer processing by the external character transfer means 8 is performed Conversion means 9 and external character editing means 10 for editing external characters registered in external character management file storage means 3 are provided.
[0013]
According to the external character management apparatus configured as described above, when the external character registration unit 2 performs external character registration processing, the external character distribution source file 1 is analyzed to check the external character management code system of the distribution source system. Here, when the external character management code system of the external character distribution source file 1 is different from that of the external character management file of the external character management file storage unit 3, the external character code of the external character distribution source file 1 is converted into the code conversion unit. 6 Is converted into an external character code of the external character management file, stored in a new external character management file, and registered in the external character management file storage means 3.
[0014]
When an external character is extracted from the external character management file to the external character distribution destination file 4 by the external character extracting means 5, first, the external character management code system of the external character management file and the external character distribution destination file 4 of the extraction destination is checked. Here, when the external character management code system is different between the extraction source and the extraction destination, the external character code of the external character management file is converted into the external character code of the external character distribution destination file 4 by the code conversion means 6 and stored in the external character distribution destination file 4. .
[0015]
The code conversion table updating unit 7 includes a character code of a code system already managed with respect to the character code conversion table 6a of the code conversion unit 6 when a code system used in the distributed system is added. Processes such as adding a corresponding table.
[0016]
When an external character of an external character management file registered in the external character management file storage unit 3 is transferred by the external character transfer unit 8 to another external character management file having a different data format or size, the data format of each file and the size of the external character Check. The external character data taken out from the external character management file storage means 3 is converted into the data format or the external character size of the transfer destination by the data format conversion means 9, stored in another external character management file, and registered in the external character management file storage means 3. .
[0017]
The external character editing means 10 includes an external character editor capable of handling a plurality of data formats. When editing an external character registered in the external character management file storage means 3, data is output from the external character management file storing the external character. Check the format and the size of the character, start the Gaiji editor under the conditions, perform the necessary formatting or correction for the Gaiji, and finally store the edited Gaiji in the original Gaiji management file.
[0018]
Next, the case where the embodiment of the present invention is applied to a distributed system configured by connecting a plurality of computer systems via a network will be described as an example.
[0019]
FIG. 2 is a configuration diagram illustrating an example of a distributed system.
The distributed system shown in FIG. 2 is configured by connecting, for example, a mainframe 11, a workstation (WS) 12, and a personal computer (PC) 13 via a network 14. A character code management unit 11a is connected to the main frame 11, and for example, a JEF code is used as the character code system. A character code management unit 12a is connected to the workstation 12, and for example, an EUC code is used as the character code system. A character code management unit 13a and a floppy disk drive (FDD) 13b are connected to the personal computer 13, and the character code system of the character code management unit 13a uses, for example, a shift JIS code. A general-purpose computer 15 is connected to the network 14. The general-purpose computer 15 has a central processing unit (CPU) 15a and a memory 15b, and is connected to a hard disk 16, a CD-ROM drive 17 and a floppy disk drive (FDD) 18 which are external storage devices to constitute an external character management device. is doing.
[0020]
An external character management program for managing external characters is initially stored in the distribution storage medium of the CD-ROM 17a or the floppy disk 18a. For example, if an external character management program is stored in the CD-ROM 17a, the external character management program is read from the CD-ROM 17a and can be used by being installed in the hard disk 16 as the external character management program 16a. The hard disk 16 stores an operating system (OS) 16b and an external character file 16c.
[0021]
The external character management program 16a installed on the hard disk 16 is partially or entirely loaded on the memory 15b of the general-purpose computer 15 as necessary. The external character management program 16a is controlled by the operating system 16b, and calls and executes functions (programs) provided by the operating system as necessary.
[0022]
External characters of various character code systems in this distributed system, that is, external characters of the JEF code system, EUC code system, and shift JIS code system are collectively managed by the external character management program 16a. The external character management program 16a can register external characters, extract external characters, transfer external characters, and edit external characters. At this time, in the external character management device, an arbitrary code system that is considered to be effective in management is predetermined as a management code system by the user. In the following description, it is assumed that the management code system of the external character management apparatus is defined as the JEF code system. External character registration and retrieval can be requested not only from the external character management device by the general-purpose computer 15 but also from a terminal of the distributed system, for example, the workstation 12, through the network. Distribution in this case is performed via the CD-ROM 17a, the floppy disk 18a, a storage medium such as a semiconductor memory (not shown), or the network 14. In the illustrated example, the external character distribution source file is provided by the CD-ROM 17a or the floppy disk 18a. When the external characters are extracted from the floppy disk 18a, the external characters extracted from the external character management device and the data contents are guaranteed are entered into the character code management unit 13a through the floppy disk drive 13b of the personal computer 13, for example. .
[0023]
Next, an outline of processing of the external character management device when the external character management program 16a loaded in the memory 15b of the general-purpose computer 15 is executed by the central processing unit 15a will be described.
[0024]
FIG. 3 is a diagram showing an outline of processing of the external character management device.
The external character management apparatus includes an external character collective management unit 21, an external character management database 22, an external character management file group 23, a file access function 24, a code conversion function 25, and a data format arranged so as to surround the external character management file group 23. A conversion function 26, an external character code conversion table 27 connected to the code conversion function 25, an external character editor 28 corresponding to a plurality of data formats, and a code conversion table update unit 29 for updating the conversion table of the external character code conversion table 27; And a management code system setting unit 30.
[0025]
The external character collective management unit 21 manages the external character management device as a whole, and manages the external character management file group 23 using the external character management database 22, and also registers external characters, extracts external characters, transfers external characters, edits external characters, and converts codes. The update of the external character code conversion table 27 by the table update unit 29 and the management code system setting process as the external character management device by the management code system setting unit 30 are controlled. The file access function 24 opens, closes and reads / writes the external character management file of the external character management file group 23, and the code conversion function 25 needs to convert the external character code between the code systems when the external character is taken in or taken out. In this case, conversion from another code system to a management code system JEF code based on the external character code conversion table 27, or code conversion from the JEF code system to the target character code, and the data format conversion function 26 Data format conversion is performed when migrating.
[0026]
The external character management file group 23 is composed of external character management files created for each typeface of characters such as Mincho and Gothic, for example, for each data format such as dot, vector or true type, and for each size. When displaying external characters managed by the external character management device on a monitor (not shown) to the user, the external character batch management unit 21 displays the external characters in a tree structure by classifying them by type, format, and size. Like to do. The external character editor 28 supports, for example, any of the dot, vector, and true type data formats, and has a function of converting between the data formats. Therefore, the user can edit without being aware of what the data format is. For example, when editing an external character in the vector format, the editing can be performed in the dot format. When the editing is finished, the editing result is converted into the vector format and stored in the corresponding external character management file.
[0027]
As a processing flow of the external character management device, when registering an external character, the external character distribution file 31 provided from the distribution source system is read, and if the distribution source system is not the JEF code system, the code conversion function 25 converts it to the JEF code system. The external character code is converted, the external character management file is written by the file access function 24, and the external character is registered.
[0028]
When a registered external character is to be extracted, the external character management file to be extracted is read by the file access function 24. If the target character code system is not the JEF code system, the code conversion function 25 uses the target code system from the JEF code system. After converting the external character code, the external character code is written into the external character distribution file 32 and brought to the distribution destination system or transferred to the network. At this time, the data format is not converted because only the completed characters whose typeface, size, and data format are guaranteed are extracted.
[0029]
When shifting from a registered external character to another external character having a different data format and size, the file access function 24 reads the conversion source external character management file, and the data format conversion function 26 converts it to the target data format. . In this case, since the same JEF code is used, code conversion is not performed, and external characters of the target data format are written by the file access function 24. In addition, when the user instructs the transfer of external characters, when the external character management file group 23 is displayed in a tree on the monitor screen, the registered external characters are distinguished from the external characters that may be registered. Then, using a pointing device such as a mouse, drag and drop from the character string representing the registered external character to the character string representing the external character that may be registered. The migration can be started.
[0030]
The external character editor 28 reads the registered external character management file with the file access function 24 and edits the external characters. After editing, the file access function 24 writes the edited result into the original external character management file. Here, a method of starting the external character editor 28 will be described. First, when the external character management file group 23 is displayed in a tree on the monitor screen, a list of external characters of a specified size is displayed by double-clicking a character string representing the size of the registered external characters with a pointing device. Is done. Here, the external character editor 28 can be activated by double-clicking the portion displaying the target external character from the list.
[0031]
Next, a detailed flow of processing of external character registration, external character extraction, external character transition, and external character editing by the external character management device will be described.
FIG. 4 is a flowchart showing the flow of processing when registering an external character.
[0032]
When registering an external character from the external character distribution file to the external character management file, first, an input for external character registration is received (step S1). Here, there are two ways of accepting input, one is when there is a request for registration of external characters directly in the external character management device, and the other is when there is a request for registration of external characters via a network from another system It is. At the time of reception, the name of the file storing the external character to be registered, that is, the external character distribution file name and the registration destination information are specified as input information. As the registration destination information, the typeface, size and data format to be registered are specified. If registration information is not specified, default information contained in the file is specified. Next, the validity of the input information, such as whether the input information input at the input reception is correct, is checked (step S2), the external character distribution file is opened (step S3), and the header information of the external character distribution file is read. (Step S4). The read header information is analyzed to check the number of characters to be distributed, the code system of the distribution source system, and the data format and size of the external characters of the distribution source system (step S5). Next, the external character management file designated by the registration destination information at the input reception is opened (step S6).
[0033]
Here, it is a loop process, and it is checked whether or not the number of circulating characters has been looped (step S7). Since the number of distributed characters is checked in the analysis of the header information, it is checked whether or not the loop processing has been performed for the number of characters. If the loop processing is not performed for the number of characters, the external character data to be registered is extracted from the external character distribution file in units of one character (step S8).
[0034]
Next, it is checked whether or not the code system of the external character distribution file is different from the management code system of the external character management file to be registered (step S9). If the code system of the external character distribution file is different from the management code system of the registered external character management file, code conversion is performed to obtain a code in the management code system (step S10). The code of the Gaiji distribution file is used. For example, if the management code system is JEF and the code system of the external character distribution file is EUC, the EUC code is converted to the corresponding JEF code. Thereafter, the external character is registered in the external character management file (step S11). When the processing from step S7 to step S11 is repeated for the number of characters, end processing such as file closing is performed (step S12).
[0035]
FIG. 5 is a flowchart showing the flow of processing when extracting external characters.
When extracting an external character from the external character management file to the external character distribution file, first, an input for external character extraction is received (step S21). Here, there are two ways of accepting input, one is when there is a request for external character extraction directly in the external character management device, and the other is when there is a request for external character extraction via a network from another system It is. At the time of acceptance, first, as input information, extraction information including a font, size and data format of an external character to be extracted is input. Further, as input information, a character distribution file name for storing the extracted external characters, a distribution destination system code system, and a range of character codes to be extracted are designated. Then, the validity of the input information is checked, such as a character string check for the input information when the user is input or when a request for extraction is made via the network (step S22). Next, the open character management file to be opened is specified from the input information (step S23). This external character management file is specified from the typeface, size and data format input as the extraction information. Then, the extracted external character management file is opened (step S24), and the external character distribution file for storing the extracted external characters is opened (step S25).
[0036]
Here, it is a loop process, and it is checked whether or not the number of characters to be extracted has been looped (step S26). The number of characters to be extracted specifies a range of character codes to be extracted as input information, and the number of characters is determined from this information. Next, it is checked whether the management code system of the external character management file is different from the code system of the distribution destination system (step S27). If the management code system of the external character management file is different from the code system of the distribution destination system, code conversion is performed to obtain a corresponding code in the management code system from the code system of the distribution destination system (step S28). If there is no difference, the management code system code is used as it is. For example, if the management code system is JEF and the code system of the distribution destination system is Shift JIS, code conversion is performed because the code system is different. Here, since the range of character codes to be extracted is specified by the code system shift JIS of the distribution destination system, the code corresponding to the management code system JEF is reversed from the code of the character code range specified by the shift JIS. Ask. Thereafter, the external character data is extracted from the external character management file (step S29), and the external character is stored in the external character distribution file with the code in the code system of the distribution destination system (step S30).
[0037]
After the processes from step S26 to step S30 are repeated for the number of characters, the header information of the external character distribution file is set (step S31). This header information includes information on the number of stored characters, but the number of external characters actually extracted from the external character management file is not the same as the number of characters specified as the range of the character code to be extracted first. The header information is set after the external character is stored in the external character distribution file. Finally, end processing such as file closing is performed (step S32).
[0038]
FIG. 6 is a flowchart showing the flow of processing when an external character is transferred.
When converting the external character data format or size of one external character management file and transferring the external character to a different external character management file, first, as input information, the extraction information, the transfer destination information, and the transfer character code A range is specified. The external information typeface, size, and data format information are specified for the extraction information and the transfer destination information, respectively. For the range of the transfer character code, a single character can be specified, or multiple characters can be specified by specifying the range. . Then, the validity of the input information, such as a character string check for the input information, is performed (step S41). When the user instructs this external character transfer, it is preferable that the conversion source character string is converted into the conversion destination character string from among the character strings whose typeface, size, and data format information are displayed in a tree form on the screen. A method of inputting input information of external character transition by dragging and dropping with a pointing device is adopted. Alternatively, for example, “migration” may be selected and specified from a menu, and input information may be input through a dialog box that appears.
[0039]
Next, the extraction-source and transfer-destination external character management files are specified from the input information (step S42). The external character management file of the extraction source and the transfer destination is specified from the font, size, and data format of the input extraction information and the transfer destination information. Then, the external character management file of the extraction source is opened (step S43), and the external character management file of the transfer destination is opened (step S44).
[0040]
Here, loop processing is performed, and it is checked whether or not the number of characters to be transferred has been looped (step S45). The number of characters to be transferred is determined from the range of transfer character codes specified as input information. Next, the external character data is extracted from the source external character management file (step S46), the extracted external character is converted into the designated typeface, size, and data format (step S47), and the external character converted into the transfer destination external character management file is converted. Registration is performed (step S48). In the case of transition of external characters, since the management code system is managed by the same code system, code conversion is not necessary. When the processes from step S45 to step S48 are repeated for the number of characters, finally, end processing such as file closing is performed (step S49).
[0041]
FIG. 7 is a flowchart showing the flow of processing when editing an external character.
When editing an external character with an external character editor that can handle multiple data formats, first, as input information, the typeface, size and data format extraction information for specifying the external character management file to be extracted, Specify the character code to be edited. For example, when an external character is displayed as a tree on the screen, double-clicking the character string indicating the size of the target external character with the pointing device internally specifies the information indicating the external character as input information extraction information. It will be. Next, the input information is checked for validity (step S51), and the extracted external character management file is specified from the input information (step S52). When external characters are displayed in a tree display on the screen, a character string representing the size of the target external character is double-clicked with a pointing device, and the external character management file from which the character is extracted is specified internally. Become. Next, the specified external character management file is extracted (step S53), and the external character to be edited is read (step S54). At this time, a list of external characters of the specified size is displayed on the screen, for example, in the order of code number. Double-clicking the part displaying the target external characters in the list starts the external character editor. (Step S55). At this time, the data format of the extracted external character management file is determined, and the external character editor is activated and executed in a mode for editing the data format. For example, if the data format is the vector format, the external character editor is activated in the mode for editing in the vector format. When editing is completed, the edited external character is stored in the original external character management file (step S56), and the external character management file is closed (step S57).
FIG. 8 shows the data structure of the external character management database.
[0042]
In the external character management device, the external character management file is managed by the external character management database. As an example, the external character management database is configured in a tree shape by tables 41 and 42 of overall management information, a typeface table 43, a data format table 44, and a size information table 45.
[0043]
In the table 41, the number of external character management files, an external character management code system, and an offset to the table 42 are set. The number of external character management files is the number of external character management files registered in the external character management file group, and the external character management code system is defined in advance by the management code system setting means as a management code system, for example, JEF characters Contains column information.
[0044]
In the table 42, the number of typefaces and the typeface table offset are set. As the number of typefaces, for example, “2” is entered if two types of typefaces “Mincho” and “Gothic” are registered.
[0045]
In the typeface table 43, a typeface identifier, a typeface name, the number of formats, and a data format table offset are set for each typeface. For example, if the typeface is Mincho, the typeface identifier is “a0”, the typeface name is “Mincho”, and the number of formats is, for example, dot, vector, and true type. 3 ”is entered.
[0046]
In the data format table 44, a format identifier, a format name, a size number, and a size information table offset are set for each data format. For example, if the data format is a dot format, the format identifier is “b0”, the format name is “dot”, and the size number is the number of sizes that the format has.
[0047]
In the size information table 45, a size identifier, a vertical size, a horizontal size, a vertical letter size, and a horizontal letter size are set for each size. The size identifier is, for example, “c0” when the vertical size × horizontal size is “30 × 30”, vertical letter size × horizontal letter size is “28 × 28”, and “c1” for other sizes.・ ・
[0048]
Here, the typeface identifier in the typeface table 43, the format identifier in the data format table 44, and the size identifier in the size information table 45 are used as file name information for specifying the external character management file. For example, if the name of the external character management file is “a0b0c0”, it represents an external character file of the Mincho dot format with a size of “30 × 30 (28 × 28)”. When the registered external characters are displayed in a tree form on the screen, the typeface name “Mincho”, the format name “dot”, and the size “30 × 30 (28 × 28)” are displayed.
[0049]
FIG. 9 is a diagram showing the data structure of an external character distribution file.
The distributed external character file is composed of a header information part 51 and an external character data part 52. The header information unit 51 includes a distribution source system code length, a distribution source system code name, a typeface name length, a typeface name, a vertical size / horizontal size, a letter vertical size / letter horizontal size, and an external character format type. The external character data section 52 includes an external character code, an external character data length, and external character data for each external character code.
[0050]
In the header information section 51, if the code system of the distribution source system is JEF, for example, this 1-byte character is 3, so the distribution system code length is “3” and the distribution system code name is “ JEF ". If the typeface is Mincho, the character Mincho consists of two 2-byte Kanji characters, so the typeface name length is “4” and the typeface name is “Mincho”. As the external character format type, information representing a format such as dot, vector, or true type is input. The number of external characters is the number of external characters stored in the external character data part 52.
[0051]
In the above-described embodiment, the external character management device of the present invention is applied to Japanese Kanji characters, but can be applied to other than that. For example, a 7 / 8-bit system (ISO / IEC 646: 1991, ANSI X 3.4-1986 (ASCII), etc.) or a system that expresses one character with 16 bits or more (such as UCS-2 of ISO / IEC 10646-11993). It can also be applied to letters.
[0052]
【The invention's effect】
As described above, the present invention includes an external character registration unit, an external character management file storage unit, an external character extraction unit, a data format conversion unit, a code conversion unit, an external character transfer unit, and an external character editing unit. Configured.
[0053]
For this reason, when a user sets a specific one code system as an external character management code system, conversion to the management code system is performed at the time of input and output of external characters by the code conversion means capable of code conversion of the external character area. And conversion to the output destination system code system. Therefore, it is possible to unify and manage the external characters of a plurality of systems in a specific management code system. In addition, since multiple external character data formats can be mutually converted by the data format conversion means, it is possible to check the quality of external characters after the transfer on the system when generating external characters by shifting, as in the past Thus, it is not necessary to check the quality of external characters by performing trial printing / display for each system after the migration, and the number of confirmation steps at the migration destination can be saved.
[0054]
In addition, by providing external character editing means that can handle multiple external character data formats, it is possible to concentrate on external character editing, and to learn how to operate external character editors for each system and to edit with external character editors. There is no need to do this, and man-hours for generating external characters can be saved.
[0055]
Furthermore, since the man-hours for checking the external character quality and the man-hours for editing the external characters are reduced in the distributed system, it is possible to take early measures against changes in the external character environment and improve the system operation rate.
[0056]
The same effect can be achieved even if the management of the external character management file is performed by the code system of each system without defining the management code system, and the code conversion is performed simultaneously with the change of the data format and size at the time of migration. Can do. However, in this case, even if the data format is the same, but the systems are different, they are handled as different data formats.
[Brief description of the drawings]
FIG. 1 is a diagram showing a basic configuration of an external character management apparatus according to the present invention.
FIG. 2 is a configuration diagram illustrating an example of a distributed system.
FIG. 3 is a diagram showing an outline of processing of an external character management apparatus.
FIG. 4 is a flowchart showing a flow of processing when registering an external character.
FIG. 5 is a flowchart showing a flow of processing when external characters are extracted.
FIG. 6 is a flowchart showing a flow of processing when an external character is transferred.
FIG. 7 is a flowchart showing a flow of processing when editing an external character.
FIG. 8 is a diagram showing a data structure of an external character management database.
FIG. 9 is a diagram showing a data structure of an external character distribution file.
[Explanation of symbols]
1 Gaiji distribution source file
2 External character registration means
3 External character management file storage means
4 Gaiji distribution file
5 External character extraction means
6 Code conversion means
6a Character code conversion table
7 Code conversion table update means
8 External character transfer means
9 Data format conversion means
10 External character editing means

Claims (3)

使用する文字のサイズおよび文字に割り当てられた文字コードの異なる複数のコンピュータシステムがネットワークを介して接続されて構成されている分散システムに該ネットワークを介して接続される外字管理装置であって、
外字流通元ファイルに格納された外字を読み込んでその外字の登録処理を行う外字登録手段と、
前記外字登録手段によって登録された外字を外字管理ファイルに格納しておく外字管理ファイル格納手段と、
前記外字管理ファイル格納手段に格納されている外字を取り出して外字流通先ファイルに格納する処理を行う外字取り出し手段と、
文字コード変換表を有し前記外字流通元ファイルの外字管理コード系が、前記外字管理ファイルの外字のコード系と異なるとき、または、前記外字取り出し手段の前記処理時に前記外字管理ファイルの外字のコード系と流通先ファイルの外字管理コード系が異なるときに前記文字コード変換表に従って外字コードの変換を行うコード変換手段と、
管理しようとするコード系に応じて前記文字コード変換表を更新するコード変換表更新手段と、
前記外字管理ファイル格納手段に格納されている外字を取り出してデータフォーマットおよびサイズの異なる別の外字に変換して前記外字管理ファイル格納手段に格納する外字移行手段と、
前記外字移行手段による外字の移行時に移行元の外字を移行先の外字のデータフォーマットまたはサイズに変換するデータフォーマット変換手段と、
前記外字管理ファイル格納手段に登録された外字に対して編集を行う外字編集手段と、
を備えていることを特徴とする外字管理装置。
An external character management device connected via a network to a distributed system in which a plurality of computer systems having different character sizes and character codes assigned to the characters are connected via the network,
External character registration means for reading an external character stored in the external character distribution source file and registering the external character;
External character management file storage means for storing external characters registered by the external character registration means in an external character management file;
External character extraction means for performing processing for extracting external characters stored in the external character management file storage means and storing them in an external character distribution destination file;
The external character management code system of the external character distribution source file having a character code conversion table is different from the external character code system of the external character management file, or the external character code of the external character management file during the processing of the external character extraction means Code conversion means for converting the external character code according to the character code conversion table when the external character management code system of the system and the distribution destination file are different ;
Code conversion table updating means for updating the character code conversion table according to a code system to be managed;
An external character migration unit that takes out an external character stored in the external character management file storage unit, converts it into another external character having a different data format and size, and stores the external character in the external character management file storage unit;
A data format conversion means for converting a transfer source external character into a data format or size of a transfer destination external character when the external character is transferred by the external character transfer means;
External character editing means for editing external characters registered in the external character management file storage means;
An external character management device characterized by comprising:
外字流通元ファイルに格納された外字管理コード系が、外字管理ファイル格納手段に格納されている外字管理ファイルの外字のコード系と異なる場合には前記外字流通元のファイルの外字コードを、前記外字管理ファイルの外字コードに変換して登録処理を行う登録手段と、If the external character management code system stored in the external character distribution source file is different from the external character code system of the external character management file stored in the external character management file storage means, the external character code of the external character distribution source file is Registration means for converting to an external character code of the management file and performing registration processing;
登録されている外字を取り出して外字流通先システムのコード系が前記外字管理ファイルの外字のコード系と異なる場合には流通先のコード系の外字コードに変換して外字流通先ファイルに格納する外字取り出し処理を行う外字取り出し処理手段と、  The external character stored in the external character distribution destination file after extracting the registered external character and converting the external character code system of the external character distribution destination system to the external character code of the distribution character code system when the external character code system of the external character management file is different External character extraction processing means for performing extraction processing;
前記登録されている外字を読み出してデータフォーマットまたはサイズの異なる外字に変換して別の書体として登録する移行処理を行う移行処理手段と、  Migration processing means for performing migration processing for reading out the registered external characters, converting them into external characters of different data formats or sizes, and registering them as another typeface;
前記登録されている外字に対して編集処理を行う編集処理手段と、  Editing processing means for performing editing processing on the registered external characters;
を備える中央処理装置としてコンピュータを動作せしむるためのコンピュータプログラムを記憶したコンピュータ可読媒体。  A computer-readable medium storing a computer program for causing a computer to operate as a central processing unit.
外字流通元ファイルに格納された外字を読み込んでその外字の登録処理を行う外字登録手段と、前記外字登録手段によって登録された外字を外字管理ファイルに格納しておく外字管理ファイル格納手段と、前記外字管理ファイル格納手段に格納されている外字を取り出して外字流通先ファイルに格納する処理を行う外字取り出し手段と、前記外字流通元ファイルの外字管理コード系が、前記外字管理ファイルの外字のコード系と異なるとき、または、前記外字取り出し手段の前記処理時に前記外字管理ファイルの外字のコード系と流通先ファイルの外字管理コード系が異なるときに外字コードの変換を行うコード変換手段と、前記外字管理ファイル格納手段に格納されている外字を取り出してデータフォーマットまたはサイズの異なる別の外字に変換して前記外字管理ファイル格納手段に格納する外字移行手段と、前記外字移行手段による外字の移行時にデータフォーマットまたはサイズの変換を行うデータフォーマット変換手段と、前記外字管理ファイル格納手段に登録された外字に対して編集を行う外字編集手段とを備えている外字管理装置として汎用コンピュータを動作せしむるためのコンピュータプログラムを記憶したコンピュータ可読媒体。External character registration means for reading an external character stored in an external character distribution source file and registering the external character, external character management file storage means for storing the external character registered by the external character registration means in an external character management file, and External character extraction means for performing processing for extracting an external character stored in the external character management file storage means and storing it in an external character distribution destination file, and an external character management code system of the external character distribution source file include an external character code system of the external character management file Code conversion means for converting an external character code when the external character code system of the external character management file is different from the external character management code system of the distribution destination file at the time of the processing of the external character extraction means, and the external character management The external character stored in the file storage means is taken out and another external data with different data format or size Registered in the external character management file storage means, a data format conversion means for converting the data format or size when the external characters are transferred by the external character transfer means, and the external character management file storage means. A computer-readable medium storing a computer program for operating a general-purpose computer as an external character management device comprising external character editing means for editing external characters.
JP12052297A 1996-05-16 1997-05-12 External character management device and computer readable medium storing computer program for external character management Expired - Fee Related JP4338231B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12052297A JP4338231B2 (en) 1996-05-16 1997-05-12 External character management device and computer readable medium storing computer program for external character management

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-121218 1996-05-16
JP12121896 1996-05-16
JP12052297A JP4338231B2 (en) 1996-05-16 1997-05-12 External character management device and computer readable medium storing computer program for external character management

Publications (2)

Publication Number Publication Date
JPH1055358A JPH1055358A (en) 1998-02-24
JP4338231B2 true JP4338231B2 (en) 2009-10-07

Family

ID=26458088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12052297A Expired - Fee Related JP4338231B2 (en) 1996-05-16 1997-05-12 External character management device and computer readable medium storing computer program for external character management

Country Status (1)

Country Link
JP (1) JP4338231B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007179159A (en) * 2005-12-27 2007-07-12 Just Syst Corp Document processing device, character data management device, document processing method, character data management method, and document processing program
JP2011154495A (en) * 2010-01-27 2011-08-11 Nec System Technologies Ltd Character code conversion device, character code conversion method and character code conversion program

Also Published As

Publication number Publication date
JPH1055358A (en) 1998-02-24

Similar Documents

Publication Publication Date Title
US7315867B2 (en) Document processing apparatus, document processing method, document processing program, and recording medium
CN111241793A (en) Method, system, and medium for parsing rich text editor content for native client rendering
WO2001022199A2 (en) Method and apparatus for creating and maintaining graphic representations of documents under a universal format
US5890184A (en) External character management apparatus
JP4338231B2 (en) External character management device and computer readable medium storing computer program for external character management
US8381183B2 (en) Navigation in computer software applications developed in a procedural language
JPH10162098A (en) Document electrolyzing device and method therefor
US20050015715A1 (en) Form processing method, form processing program, and form processing apparatus
JP2004145736A (en) Character recognition device, character recognition data output method, program and recording medium
JPH1021192A (en) Operation extraction system and macro generation system
JP2000293624A (en) Image processing method, apparatus and storage medium
JP3777135B2 (en) System migration method
JP2000280435A (en) Enrollment data check system
US7281204B1 (en) Hub document preparation method
JPH11203279A (en) Kana-kanji conversion device, kana-kanji conversion method, and storage medium
CN121882066A (en) A method for targeted filtering of blocks and drawing frames in AI translation of CAD drawings
Hong et al. Integrated software development environment based on CCITT/SDL for telecommunication systems
JPH05135013A (en) Character processor
JPH08123811A (en) Document editing apparatus and document editing method
JPH0528150A (en) Document processing method and apparatus
JPH10340281A (en) Deployment connection diagram automatic editing device
JPH01236324A (en) Program design supporting system
JPH08339365A (en) Document creating apparatus and document creating method
JP2000322247A (en) System for generating new program source from existing program list
JPH04165563A (en) Document preparing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040423

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051017

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051025

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051226

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070205

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070309

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20071005

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090615

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090630

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120710

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees