JP5892307B2 - Character code conversion method and system - Google Patents

Character code conversion method and system Download PDF

Info

Publication number
JP5892307B2
JP5892307B2 JP2011214031A JP2011214031A JP5892307B2 JP 5892307 B2 JP5892307 B2 JP 5892307B2 JP 2011214031 A JP2011214031 A JP 2011214031A JP 2011214031 A JP2011214031 A JP 2011214031A JP 5892307 B2 JP5892307 B2 JP 5892307B2
Authority
JP
Japan
Prior art keywords
code
conversion
file
character code
text
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
JP2011214031A
Other languages
Japanese (ja)
Other versions
JP2013073560A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2011214031A priority Critical patent/JP5892307B2/en
Publication of JP2013073560A publication Critical patent/JP2013073560A/en
Application granted granted Critical
Publication of JP5892307B2 publication Critical patent/JP5892307B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は文字コードを変換する技術分野に属する。特に、秘密を守るべきテキストファイルの意味を理解不能とするコード変換と、その変換したテキストファイルを素材として使用しその他の素材も含めて編集によって得た意味が理解不能のテキストを含む編集ファイルからそのテキストの部分の意味が理解可能な編集ファイルを得るコード逆変換とを含む文字コード変換方法およびシステムに関する。   The present invention belongs to the technical field of converting character codes. In particular, from code conversion that makes it impossible to understand the meaning of a text file that should be kept secret, and from an edit file that contains text that cannot be understood by using the converted text file as a material and including other materials. The present invention relates to a character code conversion method and system including code reverse conversion for obtaining an edit file in which the meaning of the text portion can be understood.

個人情報等の秘密情報を取扱う部門(自部門)においては、自部門において秘密情報の漏洩を防止することは当然の義務である。しかしながら、自部門の内で秘密情報の取扱いが完結せず、他部門に秘密情報を提供する必要性が生じることがある。その場合には、他部門においても秘密情報の漏洩が起きないようにする必要性がある。
たとえば、請求書、利用明細書、等の顧客に送付するフォームには秘密情報が含まれている。また、請求書、利用明細書、等のフォームは、送付を受けた顧客によって無視されることが少なく、顧客は高い確率で目を通す。そのために、そのようなフォームはプロモーション(販売促進)のツールとして利用される。すなわち、請求書、利用明細書、等に係わる秘密情報だけでなく、その他、広告、PR、サービス、等の多数の情報(非秘密情報)をフォームに付加することが行われる。
その際に、秘密情報と非秘密情報とを別個のものとして編集するのではなく、一体で編集することが行われる。秘密情報においては、氏名、住所、請求または利用明細の内容、等の文字数が、個々の情報で相違している。非秘密情報についても同様である。また、フォームの形態はダイレクトメール、圧着はがき、ウェブページ、等、様々である。したがって、一体で編集しなければ、所望の体裁を得ることや、プロモーションに相応しい意匠性、訴求性を得ることが困難である。
その編集を自部門ではなく他部門で行うときには、編集可能ではあるが意味は理解不能の状態に秘密情報を変換しておくことが秘密情報の漏洩を防止することになる。
In a department that handles confidential information such as personal information (own department), it is a natural duty to prevent leakage of confidential information in the own department. However, the handling of confidential information may not be completed within its own department, and it may be necessary to provide confidential information to other departments. In that case, it is necessary to prevent leakage of confidential information in other departments.
For example, confidential information is included in forms sent to customers such as bills, usage statements, and the like. In addition, forms such as invoices, usage statements, etc. are less likely to be ignored by customers who receive them, and customers look at them with a high probability. Therefore, such a form is used as a promotion (sales promotion) tool. That is, not only secret information related to bills, usage statements, etc., but also a large amount of information (non-secret information) such as advertisements, PRs, services, etc. is added to the form.
At that time, the secret information and the non-secret information are not edited separately, but are edited together. In the secret information, the number of characters such as name, address, billing or usage details is different for each piece of information. The same applies to non-secret information. There are various forms of forms such as direct mail, crimped postcard, web page, and the like. Therefore, unless it is edited together, it is difficult to obtain a desired appearance and to obtain a design and appeal suitable for promotion.
When the editing is performed not in the own department but in another department, the secret information is prevented from being leaked by converting the secret information into an editable but unintelligible state.

特開2002‐318797JP2002-318797 特開2008‐028695JP2008-028695

文字コードの変換に関しては、たとえば、所定事業体のメインフレームで作成された印字データのフォント名でフォント対応表データから対応するPCのフォント名を得ると共に、印字データの文字コードを文字コード対応表データに基づきPCの文字コードに変換し、変換不能文字を文字コード対応フォントデータよりイメージデータとして取得することによって、レイアウトデータに基づいてドキュメントの編集を行い、PDFファイルを作成する発明が知られている(特許文献1)。
また、秘密情報の漏洩に関しては、たとえば、第一のコード群を基に、所定の規則に従って、漏洩防止対象情報の文字数n(nは2以上の整数)と同数の数値を取得し、取得されたn個の数値からそれぞれ求まる位置に配置されたn個の空白と、それ以外の位置に配置されたダミーコードとから成る虫食いダミーコード群を生成し、n個の空白に、それぞれ、前記n文字から成る漏洩防止対象情報を入れることにより、前記虫食いダミーコード群とそれに入れられた前記n文字の漏洩防止対象情報とで構成される暗号化情報を生成する発明が知られている(特許文献2)。
しかしながら、これら従来技術においては、編集可能ではあるが意味が理解不能の状態に秘密情報を変換し、その秘密情報を編集した後に編集ファイルの意味を理解可能にすることができない。
Regarding the conversion of the character code, for example, the font name of the print data created on the mainframe of the predetermined entity is used to obtain the corresponding PC font name from the font correspondence table data, and the character code of the print data is converted to the character code correspondence table. An invention is known in which a PDF file is created by editing a document based on layout data by converting the character code of the PC based on the data and acquiring the unconvertible character as image data from the font data corresponding to the character code. (Patent Document 1).
Regarding leakage of confidential information, for example, based on the first code group, the number of characters equal to the number of characters n (n is an integer of 2 or more) of the information to be leaked is obtained and obtained according to a predetermined rule. A worm-eaten dummy code group composed of n blanks arranged at positions determined from the n numerical values and dummy codes arranged at other positions is generated, and each of the n blanks includes the n There is known an invention for generating encrypted information composed of the worm-eaten dummy code group and the n-letter leakage prevention target information inserted therein by including leakage prevention target information composed of characters (Patent Document) 2).
However, in these conventional techniques, it is impossible to make the meaning of the edited file understandable after the secret information is converted into a state where the meaning is incomprehensible but the meaning cannot be understood, and the secret information is edited.

本発明は上記の問題を解決するために成されたものである。その目的は、秘密を守るべきテキストファイルの意味を理解不能とするコード変換と、その変換したテキストファイルを使用し編集によって得た編集ファイルから意味が理解可能な編集ファイルを得るコード逆変換とを含む文字コード変換方法およびシステムを提供することにある。   The present invention has been made to solve the above problems. The purpose is code conversion that makes the meaning of a text file that should be kept secret unintelligible, and code reverse conversion that uses the converted text file to obtain an edit file whose meaning can be understood from the edit file. Another object is to provide a character code conversion method and system including the same.

本発明の請求項1は、規格文字コード表の文字を表すコードの配列は入れ替える操作を行い、該規格文字コード表の記号を表すコードの配列は入れ替える操作を行わずに得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶しておき、前記規格文字コード表を使用してコードから文字と記号を再現するテキストファイルを読み込み、前記記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成する過程を備えた文字コード変換方法である。
本発明の請求項2は、規格文字コード表の所定範囲における配列を入れ替える操作を行って得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶しておき、前記規格文字コード表を使用してコードから文字を再現するテキストファイルを読み込み、前記記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成し、前記コード変換テキストファイルを生成する過程で使用したテキストファイル、コード対応表、コード変換テキストファイルを特定する情報とそれらを使用した処理の内容を記述する変換仕様ファイルを生成し、この生成した変換仕様ファイルを記憶しておき、前記コード変換テキストファイルを素材として使用し、意味が理解不能な状態で編集を行った編集コード変換テキストを含む編集ファイルを読み込み、前記記憶した変換仕様ファイルを読み込み、この読み込んだ変換仕様ファイルを使用して、前記編集ファイルの中の前記編集コード変換テキストのコードを逆変換し、その逆変換によって得た編集コード逆変換テキストを含むコード逆変換編集ファイルを生成する過程を備えた文字コード変換方法である。
本発明の請求項は、前記コード対応表を生成する過程をさらに備えた文字コード変換方法である。
本発明の請求項は、前記配列を入れ替える操作として、Fisher−Yatesシャッフル法を使用する文字コード変換方法である。
本発明の請求項は、前記文字コード変換方法をコンピュータに実行させるプログラムである。
本発明の請求項は、規格文字コード表の文字を表すコードの配列は入れ替える操作を行い、該規格文字コード表の記号を表すコードの配列は入れ替える操作を行わずに得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶する記憶手段と、前記規格文字コード表を使用してコードから文字と記号を再現するテキストファイルを読み込み、前記記憶手段に記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成するコード変換テキストファイル生成手段とを備えた文字コード変換システムである。
本発明の請求項は、規格文字コード表の所定範囲における配列を入れ替える操作を行って得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶する記憶手段と、前記規格文字コード表を使用してコードから文字を再現するテキストファイルを読み込み、前記記憶手段に記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成するコード変換テキストファイル生成手段と、前記コード変換テキストファイルを生成する過程で使用したテキストファイル、コード対応表、コード変換テキストファイルを特定する情報とそれらを使用した処理の内容を記述する変換仕様ファイルを生成する変換仕様ファイル生成手段と、前記コード変換テキストファイルを素材として使用し、意味が理解不能な状態で編集を行った編集コード変換テキストを含む編集ファイルを読み込み、前記変換仕様ファイル生成手段が生成した変換仕様ファイルを使用して、前記編集ファイルの中の前記編集コード変換テキストのコードを逆変換し、その逆変換によって得た編集コード逆変換テキストを含むコード逆変換編集ファイルを生成するコード逆変換編集ファイル生成手段とをさらに備えた文字コード変換システムである。
本発明の請求項は、前記コード対応表を生成するコード対応表生成手段をさらに備えた文字コード変換システムである。
Claim 1 of the present invention performs an operation of replacing the arrangement of codes representing characters in the standard character code table, and an array replacement character code obtained without performing an operation of replacing the arrangement of codes representing symbols in the standard character code table A code correspondence table that describes the correspondence between codes in the table and codes in the standard character code table is stored, and a text file that reproduces characters and symbols from the code is read using the standard character code table A character code conversion method comprising a step of generating a code conversion text file obtained by converting the code in the text file into the code of the array replacement character code table using the stored code correspondence table.
Claim 2 of the present invention is a code describing a correspondence relationship between a code of an array replacement character code table obtained by performing an operation of replacing an array in a predetermined range of the standard character code table and a code of the standard character code table A correspondence table is stored, a text file that reproduces characters from a code is read using the standard character code table, and a code in the text file is converted to the array replacement character code using the stored code correspondence table. Generate the code conversion text file converted into the code of the table, the text file used in the process of generating the code conversion text file, the code correspondence table, the information to identify the code conversion text file and the contents of the processing using them Create a conversion specification file to be written and store the generated conversion specification file. Use the code conversion text file as material, read the edit file containing the edit code conversion text edited in a state where the meaning is incomprehensible, read the stored conversion specification file, and use the read conversion specification file A character code conversion method comprising a step of reversely converting the code of the edit code conversion text in the edit file and generating a code reverse conversion edit file including the edit code reverse conversion text obtained by the reverse conversion It is.
Claim 3 of the present invention is a character code conversion method further comprising a step of generating the code correspondence table.
Claim 4 of the present invention is a character code conversion method that uses the Fisher-Yates shuffle method as the operation of replacing the arrangement.
Claim 5 of the present invention is a program for causing a computer to execute the character code conversion method.
According to a sixth aspect of the present invention, an array replacement character code obtained by performing an operation of replacing the array of codes representing characters in the standard character code table, and without performing an operation of replacing the array of codes representing the symbols of the standard character code table. A storage means for storing a code correspondence table describing a correspondence relationship between a code of the table and a code of the standard character code table; and a text file for reproducing characters and symbols from the code using the standard character code table. Code conversion text file generation means for generating a code conversion text file obtained by converting the code in the text file into the code of the array replacement character code table using the code correspondence table read and stored in the storage means It is a character code conversion system.
Claim 7 of the present invention is a code describing a correspondence relationship between a code of an array replacement character code table obtained by performing an operation of replacing an array in a predetermined range of the standard character code table and a code of the standard character code table A storage means for storing a correspondence table; a text file for reproducing characters from the code using the standard character code table; and a code correspondence table stored in the storage means for reading the code in the text file Code conversion text file generation means for generating a code conversion text file converted into codes of the array replacement character code table, and the text file, code correspondence table, and code conversion text file used in the process of generating the code conversion text file are specified. Conversion specification file that describes information to be processed and contents of processing using them A conversion specification file generation means for generating a file, and an edit file containing an edit code conversion text edited using the code conversion text file as a material and edited in an incomprehensible state, and the conversion specification file generation means Code that reversely converts the code of the edit code conversion text in the edit file using the generated conversion specification file and generates a code reverse conversion edit file including the edit code reverse conversion text obtained by the reverse conversion A character code conversion system further comprising reverse conversion edit file generation means.
Claim 8 of the present invention is a character code conversion system further comprising code correspondence table generation means for generating the code correspondence table.

本発明によれば、秘密を守るべきテキストファイルの意味を理解不能とするコード変換と、その変換したテキストファイルを使用し編集によって得た編集ファイルから意味が理解可能な編集ファイルを得るコード逆変換とを含む文字コード変換方法およびシステムが提供される。   According to the present invention, code conversion that makes the meaning of a text file that should be kept secret unintelligible, and code reverse conversion that uses the converted text file to obtain an edit file whose meaning can be understood from an edit file A character code conversion method and system are provided.

本発明の文字コード変換方法およびシステムにおける具体的な利用方法の一例を示す説明図である。It is explanatory drawing which shows an example of the concrete usage method in the character code conversion method and system of this invention. 本発明の文字コード変換システムとその周辺を含む全体構成の一例を示すブロック図である。It is a block diagram which shows an example of the whole structure containing the character code conversion system of this invention, and its periphery. 本発明の文字コード変換システムにおける構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure in the character code conversion system of this invention. 本発明の文字コード変換方法およびシステムにおけるコード対応表生成の過程の一例を示すフロー図である。It is a flowchart which shows an example of the process of the code | cord correspondence table | surface production | generation in the character code conversion method and system of this invention. 本発明の文字コード変換方法およびシステムにおけるコード変換テキストファイル生成の過程の一例を示すフロー図である。It is a flowchart which shows an example of the process of the code conversion text file production | generation in the character code conversion method and system of this invention. 本発明の文字コード変換方法およびシステムにおける変換仕様ファイル生成の過程の一例を示すフロー図である。It is a flowchart which shows an example of the process of the conversion specification file production | generation in the character code conversion method and system of this invention. 本発明の文字コード変換方法およびシステムにおけるコード逆変換編集ファイル生成の過程の一例を示すフロー図である。It is a flowchart which shows an example of the process of the code reverse conversion edit file production | generation in the character code conversion method and system of this invention. アスキーコード表を示す図である。It is a figure which shows an ASCII code table. アスキーコード表における太枠の内部(所定の範囲)に存在するコードと文字についてコード対応表が生成されることを示す図である。It is a figure which shows that a code | corresponding table | surface is produced | generated about the code and character which exist in the inside (predetermined range) of the thick frame in an ASCII code table. コード対応表の一例を示す図である。It is a figure which shows an example of a code corresponding table. コード変換テキストファイル生成手段が生成するコード変換テキストファイルにおけるコード変換テキストの一例を示す図である。It is a figure which shows an example of the code conversion text in the code conversion text file which a code conversion text file generation means produces | generates. テキスト、コード変換テキスト、編集コード変換テキスト、編集コード逆変換テキストの一例を示す図である。It is a figure which shows an example of a text, code conversion text, edit code conversion text, and edit code reverse conversion text.

次に、本発明の実施の形態について図を参照しながら説明する。最初に、本発明の利用方法について全体像を説明しておく。本発明の文字コード変換方法およびシステムにおける具体的な利用方法の一例を説明図として図1に示す。
図1に一例を示すように、本発明の文字コード変換方法およびシステムは、たとえば、印刷会社と、印刷会社の得意先と、印刷会社の外注先とが関係する業務において利用することができる。得意先は印刷会社に個人情報が含まれる印刷物の印刷を発注する。たとえば、印刷物はクレジットカード利用明細を記載したダイレクトメールであるものとすると、個人情報としては、氏名、住所、利用明細に係わる情報、個人宛のメッセージ、等が含まれている。得意先はそれらの個人情報を印刷会社に提供する。その個人情報はデータベース等であって、そのまま使用可能な形式のテキストファイルでないこともある。その場合には、印刷会社においてファイル形式の変換、必要とするデータ(ここでは、「氏名」のような一区切りの文字列)の抽出、データの並べ替え(ソート)、等を行って使用可能な形式のテキストファイルを生成する。そのテキストファイルのコードには規格文字コード表(たとえば、シフトJISコード表)が使用されている。
Next, embodiments of the present invention will be described with reference to the drawings. First, an overview of how to use the present invention will be described. An example of a specific use method in the character code conversion method and system of the present invention is shown in FIG. 1 as an explanatory diagram.
As shown in FIG. 1, the character code conversion method and system of the present invention can be used, for example, in a business involving a printing company, a customer of the printing company, and a subcontractor of the printing company. The customer orders the printing company to print the printed matter including the personal information. For example, if the printed material is a direct mail describing the credit card usage details, the personal information includes a name, an address, information on the usage details, a message addressed to the individual, and the like. The customer provides such personal information to the printing company. The personal information is a database or the like, and may not be a text file that can be used as it is. In that case, it can be used by converting the file format at the printing company, extracting the required data (here, a single character string such as “name”), sorting the data, etc. Generate a text file in the format. A standard character code table (for example, a shift JIS code table) is used as the code of the text file.

そのテキストファイルは素材の一つであって、ダイレクトメールには、その他、広告、PR、サービス、等の多数の素材(文字、絵柄、写真)が付加される。すなわち、テキストファイルの個人情報とともに、その他の情報の編集が行われる。テキストファイルの個々のデータについても、ダイレクトメールにおける印刷位置、フォント、色、等の属性について編集が行われる。そのような編集を、印刷会社において行うのではなく外注する場合がある。図1に示す外注先はそのような編集を行う外注先である。その場合、外注先から個人情報が漏洩することを防止する必要性がある。
そこで、印刷会社において本発明の文字コード変換方法およびシステムを利用し、規格文字コード表のコードが使用されているテキストファイルのコードに対して意味を理解不能とするコード変換を行いコード変換テキストファイルを生成する。そして、このコード変換テキストファイルを外注先に提供する。ここで、コード変換する範囲は、規格文字コード表の全体ではなく、一部である。たとえば、文字(漢字、カタカナ、ひらがな、英字、数字、等)についてはコード変換を行い、記号(制御文字、改行、空白、〒、等)についてはコード変換を行わない。そうすることで、外注先においてテキストファイルの意味が判らなくても(理解不能であっても)適正な編集が可能となる。
The text file is one of the materials, and many other materials (characters, designs, photos) such as advertisements, PR, services, etc. are added to the direct mail. That is, other information is edited together with the personal information of the text file. The individual data of the text file is also edited with respect to attributes such as print position, font, color, etc. in direct mail. Such editing may be outsourced rather than performed at the printing company. The subcontractor shown in FIG. 1 is a subcontractor who performs such editing. In that case, there is a need to prevent leakage of personal information from the subcontractor.
Therefore, the code company uses the character code conversion method and system of the present invention in the printing company to perform code conversion that makes the meaning unintelligible for the code of the text file in which the code of the standard character code table is used. Is generated. Then, this code conversion text file is provided to the subcontractor. Here, the range for code conversion is not the entire standard character code table, but a part. For example, code conversion is performed for characters (kanji, katakana, hiragana, alphabetic characters, numbers, etc.), and code conversion is not performed for symbols (control characters, line feeds, blanks, 〒, etc.). By doing so, even if the subcontractor does not understand the meaning of the text file (even if it cannot be understood), it can be edited appropriately.

外注先においては、このコード変換テキストファイルを使用して編集が行われ、印刷会社には意味が理解不能のテキストを含む編集ファイルが外注先から納品される。そこで、印刷会社において本発明の文字コード変換方法およびシステムを利用し、編集ファイルにおけるコード変換されているテキストの部分に対して、そのテキストのコードを逆変換し、コード逆変換した編集ファイル(コード逆変換編集ファイル)を生成する。すなわち、意味が理解可能なテキストからなるコード逆変換編集ファイルを生成する。そして、印刷会社においては、そのコード逆変換編集ファイルを使用し、印刷(プリント)、加工、等を行い、得意先が発注したダイレクトメールを生産する。   In the subcontractor, the code conversion text file is used for editing, and the editing file containing the text whose meaning is not understood is delivered from the subcontractor to the printing company. Therefore, the printing company uses the character code conversion method and system of the present invention, reversely converts the code of the text to the part of the text that has been code-converted in the edit file, and edits the code (code Generate reverse conversion edit file). That is, a code reverse conversion editing file composed of text whose meaning can be understood is generated. The printing company uses the code reverse conversion editing file to perform printing (printing), processing, etc., and produce direct mail ordered by the customer.

上述した内容を整理して図2に示す。図2は、本発明の文字コード変換システムとその周辺を含む全体構成の一例を示すブロック図である。図2に示すように、テキスト提供元は意味を理解可能なテキストファイルを出稿する。情報処理部門の文字コード変換システムはそのテキストファイルを使用し意味が理解不能のコード変換テキストファイルを生成する。情報処理部門はそのコード変換テキストファイルを編集部門に提供する。編集部門はそのコード変換テキストファイルを使用し編集を行い、意味が理解不能の編集ファイルを情報処理部門に納品する。情報処理部門の文字コード変換システムはその編集ファイルを使用し意味を理解可能なコード逆変換編集ファイルを生成する。情報処理部門はそのコード逆変換編集ファイルを印刷部門(たとえば印刷会社)に提供する。印刷部門はそのコード逆変換編集ファイルを使用して印刷物を印刷する。   The contents described above are organized and shown in FIG. FIG. 2 is a block diagram showing an example of the entire configuration including the character code conversion system of the present invention and its periphery. As shown in FIG. 2, the text provider places a text file whose meaning can be understood. The character code conversion system of the information processing department uses the text file to generate a code conversion text file whose meaning cannot be understood. The information processing department provides the code conversion text file to the editing department. The editing department performs editing using the code conversion text file, and delivers an editing file whose meaning is unintelligible to the information processing department. The character code conversion system of the information processing department uses the edit file to generate a code reverse conversion edit file whose meaning can be understood. The information processing department provides the code reverse conversion editing file to the printing department (for example, a printing company). The printing department uses the code reverse conversion editing file to print the printed matter.

次に、本発明の文字コード変換システムにおける構成について説明する。本発明の文字コード変換システムにおける構成の一例をブロック図として図3に示す。
図3に示すように、文字コード変換システム1は処理部10と記憶部20を有している。また、処理部10はコード対応表生成手段101、コード変換テキストファイル生成手段102、変換仕様ファイル生成手段103、コード逆変換編集ファイル生成手段104を有しており、記憶部20は規格文字コード表201、配列入替文字コード表202、コード対応表203、テキストファイル204、コード変換テキストファイル205、変換方法指定ファイル206、変換仕様ファイル207、編集ファイル208、テキスト箇所データファイル209、コード逆変換編集ファイル210を有している。
文字コード変換システム1はコンピュータシステムのハードウェアとソフトウェアによって実現することができる。図示していないが、文字コード変換システム1の記憶部20は、メモリだけでなくファイル(データ)の読み出し書き込みを制御するハードウエアとしてのメモリ制御機構、等を有している。また、処理部10における各手段は、文字コード変換システム1の特定のハードウエア資源がソフトウェアとしてのコンピュータプログラムに記述された一連の命令の実行によって駆動制御され、必要に応じて他のハードウエア資源と協調動作したり、別の命令の実行を促したりすることによりその機能が実現される。
Next, the configuration of the character code conversion system of the present invention will be described. An example of the configuration of the character code conversion system of the present invention is shown in FIG. 3 as a block diagram.
As shown in FIG. 3, the character code conversion system 1 includes a processing unit 10 and a storage unit 20. The processing unit 10 includes a code correspondence table generation unit 101, a code conversion text file generation unit 102, a conversion specification file generation unit 103, and a code reverse conversion editing file generation unit 104. The storage unit 20 stores a standard character code table. 201, array replacement character code table 202, code correspondence table 203, text file 204, code conversion text file 205, conversion method specification file 206, conversion specification file 207, edit file 208, text location data file 209, code reverse conversion edit file 210.
The character code conversion system 1 can be realized by hardware and software of a computer system. Although not shown, the storage unit 20 of the character code conversion system 1 has not only a memory but also a memory control mechanism as hardware for controlling reading and writing of files (data). Each means in the processing unit 10 is driven and controlled by executing a series of instructions described in a computer program as software for specific hardware resources of the character code conversion system 1, and other hardware resources as necessary. The function is realized by cooperating with the user or prompting the execution of another command.

コード対応表生成手段101は、規格文字コード表201のコードと配列入替文字コード表202のコードとの間の対応関係を記述したコード対応表203を生成する。規格文字コード表201は、アスキー(ASCII:American Standard Code for Information Interchange)コード表、JIS規格文字コード表、のように標準規格とされているコード表のことである。アスキーコード表を図8に示す。図8に示すように文字数は128個であり、各々の文字には0〜127(10進)のコードが割り当てられている。また、配列入替文字コード表202は、規格文字コード表201の所定範囲における配列を入れ替える操作を行って得られるコード表のことである。ここで、所定範囲とは、アスキーコード表であれば、たとえば、英文字、数字を含み、その他は含まないコード表の範囲である。また、JIS規格文字コード表であれば、たとえば、英文字、数字、漢字、ひらがな、カタカナを含み、その他を含まないコード表の範囲である。アスキーコード表における配列を入れ替える操作を行う範囲(配列入替範囲;所定範囲)の一例を図9に示す。図9において、太枠の内部が配列入替え範囲である。なお、配列の入れ替えは規則性を有する入替えではなくランダムな(規則性を有しない)入替えの方が理解不能(解読困難)の程度を上げることができ好適である。
このように、区切り文字(空白文字など)、記号、等を文字コード変換の「所定範囲」に含めないことにより、コード変換テキストファイルの意味内容を理解不能にしつつも、外形的な形式(たとえば、単語のブロックの文字数など)が、元のテキストファイルの形式を保っていることから、外注先等での編集作業における視認性を高めることができる。
The code correspondence table generating unit 101 generates a code correspondence table 203 describing the correspondence between the codes in the standard character code table 201 and the codes in the array replacement character code table 202. The standard character code table 201 is a standard code table such as an ASCII (ASCII: American Standard Code for Information Interchange) code table or a JIS standard character code table. The ASCII code table is shown in FIG. As shown in FIG. 8, the number of characters is 128, and a code of 0 to 127 (decimal) is assigned to each character. The array replacement character code table 202 is a code table obtained by performing an operation of replacing the array in the predetermined range of the standard character code table 201. Here, in the case of an ASCII code table, the predetermined range is, for example, a range of a code table that includes alphabetic characters and numbers and does not include others. In the case of a JIS standard character code table, for example, it is a range of a code table including English characters, numbers, kanji, hiragana and katakana, but not including others. FIG. 9 shows an example of a range (sequence replacement range; predetermined range) in which an operation for switching the sequence in the ASCII code table is performed. In FIG. 9, the inside of the thick frame is the array replacement range. It should be noted that the replacement of the arrangement is not a replacement with regularity but a replacement with random (not having regularity) is preferable because it can increase the degree of incomprehension (difficult to read).
In this way, delimiters (such as white space), symbols, etc. are not included in the “predetermined range” of character code conversion, making the meaning of the code conversion text file incomprehensible, but providing an external format (for example, The number of characters in the word block) maintains the original text file format, so that the visibility in editing work at the subcontractor can be improved.

配列をランダムに入れ替える操作としては、たとえば、Fisher−Yatesシャッフル法を使用することができる。Fisher−Yatesシャッフル法は、以下の手順で配列を入れ替える操作を行う。
第1ステップとして、所定の範囲に含まれるコードの数をNとしたときに、所定の範囲に含まれるコードを1〜N番目に順番に配置した配列を作成する。
第2ステップとして、1〜M(M=N−(乱数配置した数)、最初はM=N,その次はM=N−1)の数から乱数を使用してK(K=1〜Mの内の1つ)を選択する。
第3ステップとして、K番目のコードを配列の最後尾(最後尾=M番目)に配置(乱数配置)する。それに合わせて、元の(K+1)番目〜M番目の配列は1つ繰り上がる(番号を1つ減らす)。また、M=M−1=N−(乱数配置した数)とする(Mの値を1つ減らす)。
第4ステップとして、M=0となるまで第2ステップから第3ステップを繰り返す。
そして、この過程で新たに生成されたコードの配列は元の配列に対してランダムな配列となっている。
For example, the Fisher-Yates shuffle method can be used as an operation for randomly changing the sequence. In the Fisher-Yates shuffle method, an operation of exchanging sequences is performed according to the following procedure.
As a first step, when N is the number of codes included in the predetermined range, an array is created in which the codes included in the predetermined range are arranged in order 1 to N.
As a second step, K (K = 1 to M) using random numbers from 1 to M (M = N− (number of random numbers arranged), M = N at first, M = N−1 next). 1 of the above) is selected.
As a third step, the Kth code is arranged (random number arrangement) at the end of the array (the end = Mth). Accordingly, the original (K + 1) -th to M-th arrays are incremented by 1 (the number is decreased by 1). In addition, M = M−1 = N− (number of random numbers arranged) (the value of M is decreased by 1).
As the fourth step, the second to third steps are repeated until M = 0.
The code sequence newly generated in this process is a random sequence with respect to the original sequence.

コード対応表203は、第1ステップにおいて規格文字コード表201の所定の範囲に含まれるコードを1〜N番目に順番に配置した配列と、第4ステップにおいて新たに生成されたコードの配列とのコードの対応関係を記述した表である。そして、そのコード対応表203は、当然、規格文字コード表201のコードと配列入替文字コード表202のコードとの間の対応関係を記述した表となっている。コード対応表203の一例を図10に示す。図10に示すコード対応表203における規格文字の欄には図9に示すアスキーコード表における太枠の内部に存在するコードと文字が示されており、No.(番目)は、コードを1〜N番目に順番に配置した配列の番号(N=62)を示している(第1ステップ参照)。また、配列入替文字の欄は新たに生成されたコードの配列コードと文字が示されている。たとえば、N.1(第1番目)の規格文字の欄におけるコードと文字は48(10進)と0であるが、N.1(第1番目)の配列入替文字の欄におけるコードと文字は113(10進)とqになっている。また、N.37(第37番目)の規格文字の欄におけるコードと文字は97(10進)とaであるが、N.37(第37番目)の配列入替文字の欄におけるコードと文字は81(10進)とQになっている。このように、新たに生成されたコードの配列は元の配列に対してランダムな配列となっている。   The code correspondence table 203 includes an array in which codes included in a predetermined range of the standard character code table 201 are arranged in order 1 to N in the first step, and an array of codes newly generated in the fourth step. It is a table describing the correspondence of codes. The code correspondence table 203 is a table describing the correspondence between the codes in the standard character code table 201 and the codes in the array replacement character code table 202. An example of the code correspondence table 203 is shown in FIG. The standard character column in the code correspondence table 203 shown in FIG. 10 shows codes and characters existing inside the thick frame in the ASCII code table shown in FIG. (Th) shows the number (N = 62) of the arrangement | sequence which has arrange | positioned the code | cord | chord in order 1st-Nth (refer 1st step). Further, the array replacement character column shows the array code and character of the newly generated code. For example, N.I. The codes and characters in the 1 (first) standard character column are 48 (decimal) and 0. The codes and characters in the 1 (first) array replacement character column are 113 (decimal) and q. N. The code and character in the 37 (37th) standard character column are 97 (decimal) and a. The code and character in the 37 (37th) array replacement character column are 81 (decimal) and Q. Thus, the newly generated code array is a random array with respect to the original array.

Fisher−Yatesシャッフル法の補足説明として、このコード対応表203をコード対応表生成手段101が生成する過程について説明する。上述の第1ステップにおいては、図10におけるNo.(番目)の欄と、規格文字の欄のデータが決定され、コード対応表における配列入替文字の欄のデータは空欄の状態となっている。
第2ステップにおいて、1〜62(=M)番目の内から乱数を使用して38番目(K番目)が選択される。したがって、第3ステップにおいて、38番目のコード98と文字bを(規格文字の欄における)配列の最後尾(62番目)に配置する。それに合わせて、元の39番目〜62番目の配列は1つ繰り上がる(番号を1つ減らす)。また、M=M−1=N−(乱数配置した数)とする。この最後尾に配置された38番目のコード98と文字bを(配列入替文字の欄における)配列の最後尾(62番目)に配置する。そして、第4ステップにおいて、M=1となっていないから第2ステップから第3ステップを繰り返す。
次に、第2ステップにおいて、1〜61(=M)番目の内から乱数を使用して17番目(K番目)が選択される。したがって、第3ステップにおいて、17番目のコード71と文字Gを(規格文字の欄における)配列の最後尾(61番目)に配置する。それに合わせて、元の18番目〜61番目の配列は1つ繰り上がる(番号を1つ減らす)。また、M=M−1=N−(乱数配置した数)とする。この最後尾に配置された17番目のコード71と文字Gを(配列入替文字の欄における)配列の最後尾(61番目)に配置する。そして、第4ステップにおいて、M=1となっていないから第2ステップから第3ステップを繰り返す。
このような繰り返しを行って、第3ステップでM=M−1を演算した結果、第4ステップにおいて、M=0となったときにその繰り返しを終了する。この一連のステップにより図10における配列入替文字の欄のデータは全て決定する。したがって、コード対応表生成手段101がこの一連のステップの当初の規格文字の欄のデータ(図10の規格文字の欄のデータ)とこの一連のステップにより決定した配列入替文字の欄のデータを組み合わせることにより、コード対応表203が得られる。
As a supplementary explanation of the Fisher-Yates shuffle method, a process of generating the code correspondence table 203 by the code correspondence table generation unit 101 will be described. In the first step described above, No. 1 in FIG. The data in the (th) column and the standard character column are determined, and the data in the array replacement character column in the code correspondence table is blank.
In the second step, the 38th (Kth) is selected from the 1st to 62th (= M) th using random numbers. Therefore, in the third step, the 38th code 98 and the letter b are arranged at the end (62nd) of the array (in the standard character column). Accordingly, the original 39th to 62nd arrays are incremented by 1 (the number is decreased by 1). Further, M = M-1 = N- (number of random numbers arranged). The 38th code 98 and the letter b arranged at the end are arranged at the end (62nd) of the arrangement (in the arrangement replacement character column). In the fourth step, since M = 1 is not satisfied, the second step to the third step are repeated.
Next, in the second step, the 17th (Kth) is selected from the 1st to 61st (= M) th using random numbers. Therefore, in the third step, the 17th code 71 and the letter G are arranged at the end (61st) of the array (in the standard character column). Accordingly, the original 18th to 61st sequences are incremented by 1 (the number is decreased by 1). Further, M = M-1 = N- (number of random numbers arranged). The 17th code 71 and the letter G arranged at the end are arranged at the end (61st) of the array (in the column of array replacement characters). In the fourth step, since M = 1 is not satisfied, the second step to the third step are repeated.
As a result of performing such repetition and calculating M = M−1 in the third step, the repetition ends when M = 0 in the fourth step. Through this series of steps, all the data in the column of the sequence replacement character in FIG. 10 is determined. Therefore, the code correspondence table generating means 101 combines the data in the original standard character column (data in the standard character column in FIG. 10) of this series of steps with the data in the sequence replacement character column determined in this series of steps. As a result, the code correspondence table 203 is obtained.

なお、本発明は、規格文字コード表201の所定範囲における配列をコード対応表生成手段101が入れ替える操作、すなわちシャッフル(shuffle)の方法(アルゴリズム)によって制限されない。Fisher−Yatesシャッフル法を改良した上述以外の方法も多数知られており、それらの改良された方法や、それらとは異なる他の方法を使用することができる。   The present invention is not limited by the operation in which the code correspondence table generating unit 101 replaces the arrangement in the predetermined range of the standard character code table 201, that is, the shuffle method (algorithm). Many methods other than those described above that improve the Fisher-Yates shuffle method are also known, and these improved methods and other methods different from them can be used.

コード変換テキストファイル生成手段102は、規格文字コード表201を使用してコードから文字を再現するテキストファイル204におけるコードを、コード対応表203を使用してコード変換しコード変換テキストファイル205を生成する。すなわち、テキストファイル205のテキストにおいて使用されているコードがコード対応表に載っているときには、そのコードに対応するコード対応表のコードに置き換えて使用する。一方、テキストファイル205のテキストにおいて使用されているコードがコード対応表に載っていないときには、そのコードをそのまま使用する。
コード変換テキストファイル生成手段102が生成するコード変換テキストの一例を図11に示す。図11において、(1)の「これは一人の人間にとっては小さな一歩だが、人類にとっては大きな飛躍だ」は規格文字コード表201を使用してコードから文字を再現するテキストファイル204におけるテキストの一例を示している。(2)の「クざレ炎化か化況まぺホちレ初メは炎笑こワ、化什まぺホちレ背ユは如虹ノ」は、コード対応表203を使用して、そのテキストのコードをコード変換して得られるコード変換テキストの一例を示している。この場合の規格文字コード表201は、たとえばJIS規格文字コード表であり、コード対応表203はその表に基づくコード対応表である。
また、(3)の「That's one small step for (a)man,one giant reap for mankind 」は規格文字コード表201を使用してコードから文字を再現するテキストファイル204におけるテキストの一例を示している。(4)の「trQT'V Nfp VoQll VTpK 7Nd (Q)oQf,Nfp wCQfT dKQp 7Nd oQfkCfD 」は、コード対応表203を使用して、そのテキストのコードをコード変換して得られるコード変換テキストの一例を示している。この場合の規格文字コード表201は、たとえばアスキーコード表であり、コード対応表203はその表に基づくコード対応表である。
The code conversion text file generation unit 102 converts the code in the text file 204 that reproduces characters from the code using the standard character code table 201 using the code correspondence table 203 to generate the code conversion text file 205. . That is, when the code used in the text of the text file 205 is listed in the code correspondence table, it is used by replacing it with the code in the code correspondence table corresponding to that code. On the other hand, when the code used in the text of the text file 205 is not listed in the code correspondence table, the code is used as it is.
An example of the code conversion text generated by the code conversion text file generation means 102 is shown in FIG. In FIG. 11, (1) “This is a small step for one human being but a big leap for humanity” is an example of text in a text file 204 that reproduces characters from codes using the standard character code table 201. Is shown. Using the code correspondence table 203, (2) “Kazare flames or climatization is the first time the flame is laughter, and the monsters are rainbows” An example of code conversion text obtained by code conversion of the code of the text is shown. The standard character code table 201 in this case is, for example, a JIS standard character code table, and the code correspondence table 203 is a code correspondence table based on the table.
Also, (3) “That's one small step for (a) man, one giant reap for mankind” shows an example of text in the text file 204 that reproduces characters from codes using the standard character code table 201. . (4) “trQT'V Nfp VoQll VTpK 7Nd (Q) oQf, Nfp wCQfT dKQp 7Nd oQfkCfD” is an example of the code conversion text obtained by transcoding the code of the text using the code correspondence table 203 Is shown. The standard character code table 201 in this case is an ASCII code table, for example, and the code correspondence table 203 is a code correspondence table based on the table.

なお、コード対応表生成手段101が生成するコード対応表は1つではなく、複数のコード対応表を生成することができる。具体的に説明すると、nを2以上の自然数として、第1配列入替文字コード表〜第n配列入替文字コード表からなる複数個の配列変入替文字コード表の各々に対応して、第1コード対応表〜第nコード対応表からなる複数個のコード対応表を生成することができる。そのときには、コード変換テキストファイル生成手段102は、所定の規則にしたがって、テキストファイルにおけるコードを複数個のコード対応表を使用してコード変換しコード変換テキストファイルを生成する。
その所定の規則としては、データを区切るコードが出現する度に、使用する配列変換文字コード表の切替を行う規則とすることができる。具体的に説明すると、テキストファイルにおいてデータを区切るコードが出現する前までは第1コード対応表を使用し、そのデータを区切るコードから次のデータを区切るコードが出現する前までは第2コード対応表を使用し、そのデータを区切るコードから次のデータを区切るコードが出現する前までは第3コード対応表を使用し、・・・、そのデータを区切るコードから次のデータを区切るコードが出現する前までは第nコード対応表を使用し、そのデータを区切るコードから次のデータを区切るコードが出現する前までは第1コード対応表を使用し、・・・、というようにデータを区切るコードが出現する度に、使用する配列変換文字コード表の切替を行う。
たとえば、データを区切るコードとしては空白を示すコードを使用することができる。その他としては、段落記号、タブ文字、ハイフン、カンマ、等の特殊文字を使用することができる。
このように、コード対応表生成手段101が複数のコード対応表を生成し、コード変換テキストファイル生成手段102が使用する配列変換文字コード表の切替を行うことによって、理解不能(解読困難)の程度が向上し秘密情報の漏洩を防止する効果が高くなる。いわゆる換字式暗号は、固定の変換ルールでは平文の統計的性質(たとえば文字の出現頻度)が暗号文に残ってしまうため、暗号文に出現する文字の頻度分析によって解読の端緒を与えてしまうことが、暗号学、等において指摘されているが、複数のコード対応表を使用することで解読を極めて困難にすることができる。
さらに、上記の所定の規則を、データを区切るコードが出現する度に、複数のコード対応表をランダムに切り替える規則とすることにより、理解不能(解読困難)の程度が向上し秘密情報の漏洩を防止する効果が高くなる。ランダムに切り替える順序は、変換仕様ファイル207に記載しておく。
Note that the code correspondence table generating unit 101 generates not only one code correspondence table but also a plurality of code correspondence tables. More specifically, the first code corresponding to each of the plurality of array replacement character code tables including the first array replacement character code table to the nth array replacement character code table, where n is a natural number of 2 or more. A plurality of code correspondence tables including correspondence tables to n-th code correspondence tables can be generated. At that time, the code conversion text file generation means 102 generates a code conversion text file by converting the codes in the text file using a plurality of code correspondence tables according to a predetermined rule.
The predetermined rule may be a rule for switching the array conversion character code table to be used every time a code for separating data appears. More specifically, the first code correspondence table is used until the code that separates the data appears in the text file, and the second code corresponds until the code that separates the next data appears from the code that separates the data. Use the third code correspondence table until the code that separates the next data from the code that separates the data from the table is used, ..., the code that separates the next data from the code that separates the data appears The nth code correspondence table is used until the data is separated, the first code correspondence table is used until the code that separates the next data from the code that separates the data, and the data is separated as follows. Each time a code appears, the sequence conversion character code table to be used is switched.
For example, a code indicating a blank can be used as a code for separating data. In addition, special characters such as paragraph marks, tab characters, hyphens, and commas can be used.
In this way, the code correspondence table generating unit 101 generates a plurality of code correspondence tables, and the sequence conversion character code table used by the code conversion text file generation unit 102 is switched, so that the degree of incomprehension (difficult to read) is reduced. This improves the effect of preventing leakage of confidential information. In so-called substitutional cryptography, the statistical properties of plaintext (for example, the appearance frequency of characters) remain in the ciphertext under a fixed conversion rule, so that the analysis of the frequency of characters appearing in the ciphertext gives the beginning of decryption. However, although it has been pointed out in cryptography, etc., it is possible to make decryption extremely difficult by using a plurality of code correspondence tables.
Furthermore, the above-mentioned predetermined rule is a rule that switches a plurality of code correspondence tables at random each time a code delimiting data appears, thereby improving the degree of incomprehension (difficulty) and leaking secret information. The effect to prevent becomes high. The order of switching at random is described in the conversion specification file 207.

変換仕様ファイル生成手段103は、コード変換テキストファイル205を生成する過程で使用したテキストファイル204、コード対応表203、コード変換テキストファイル205を特定する情報とそれらを使用した処理の内容を記述する変換仕様ファイル207を生成する。変換仕様ファイル207は、コード変換テキストファイル205を素材として使用し編集によって得た編集コード変換テキストのコードを逆変換するときに使用する。したがって、変換仕様ファイル207は、その逆変換において必要とする範囲の情報を有すれば済む。たとえば、コード変換の処理過程が簡単な場合においては、使用したテキストファイル204、コード対応表203、コード変換テキストファイル205を特定する情報だけで済むような場合もある。しかし、コード変換の処理過程が複雑な場合においては、たとえば複数のコード対応表203を組合わせて使用する場合には、複数のコード対応表203をどのような順番で使用したかという処理の内容に係わる情報が必要となる。   The conversion specification file generation unit 103 converts the text file 204 used in the process of generating the code conversion text file 205, the code correspondence table 203, information for specifying the code conversion text file 205, and the conversion describing the contents of the processing using them. A specification file 207 is generated. The conversion specification file 207 is used when the code of the edit code conversion text obtained by editing using the code conversion text file 205 as a material is reversely converted. Therefore, the conversion specification file 207 only needs to have information in a range necessary for the reverse conversion. For example, when the code conversion process is simple, there may be a case where only the information specifying the used text file 204, the code correspondence table 203, and the code conversion text file 205 is sufficient. However, in the case where the code conversion process is complicated, for example, when a plurality of code correspondence tables 203 are used in combination, the contents of processing indicating the order in which the plurality of code correspondence tables 203 are used Information related to is required.

コード逆変換編集ファイル生成手段104は、コード変換テキストファイル205を素材として使用し編集によって得た編集コード変換テキストを含む編集ファイル208において、変換仕様ファイル207を使用して編集コード変換テキストのコードを逆変換し、その逆変換によって得た編集コード逆変換テキストを含むコード逆変換編集ファイル210を生成する。
この編集ファイル208は、前述したように、情報処理部門が生成した意味が理解不能のコード変換テキストファイルの提供を受け、編集部門がそのコード変換テキストファイルを使用し編集を行った意味が理解不能の編集ファイルである。また、編集コード変換テキストはその編集ファイル208におけるコード変換テキストファイル205を素材として使用し編集した部分である。たとえば、コード変換テキストファイルのコード変換テキストが「クざレ炎化か化況まぺホちレ初メは炎笑こワ、化什まぺホちレ背ユは如虹ノ」であるときに、編集コード変換テキストは「クざレ炎化か化況まぺホちレ初メは炎笑こワ、(改行)・・・・・化什まぺホちレ背ユは如虹ノ」のように2行に編集したものとなる。コード逆変換編集ファイル生成手段104は、その編集コード変換テキストのコードを変換仕様ファイル207を使用して逆変換する。その結果、コード逆変換編集ファイル生成手段104は、編集コード逆変換テキストとして「これは一人の人間にとっては小さな一歩だが、(改行)・・・・・人類にとっては大きな飛躍だ」を生成する。テキスト、コード変換テキスト、編集コード変換テキスト、編集コード逆変換テキストの一例を図12に示す。なお、コード逆変換編集ファイル210は、一般的に、この編集コード逆変換テキストだけでなく、広告、PR、サービス、等のその他の素材(文字、絵柄、写真)を含んで構成される。
The code reverse conversion edit file generation means 104 uses the conversion specification file 207 to edit the code of the edit code conversion text in the edit file 208 including the edit code conversion text obtained by editing using the code conversion text file 205 as a material. Inverse conversion is performed, and a code reverse conversion editing file 210 including an edit code reverse conversion text obtained by the reverse conversion is generated.
As described above, the editing file 208 is provided with a code conversion text file whose meaning is generated by the information processing department and whose meaning is unintelligible, and the editing department uses the code conversion text file for editing and cannot understand the meaning. This is an edit file. The edit code conversion text is a portion edited using the code conversion text file 205 in the edit file 208 as a material. For example, when the code conversion text of the code conversion text file is "Kazare flames or chemical status first time is flame laughter, Bakehomapehochile back is like rainbow" In addition, the edit code conversion text is "Kazare flame or whether it's going to be in progress" It will be edited in two lines like The code reverse conversion edit file generation means 104 reversely converts the code of the edit code conversion text using the conversion specification file 207. As a result, the code reverse conversion edit file generation means 104 generates “this is a small step for one person, but (new line)... A great leap for humanity” as the edit code reverse conversion text. An example of text, code conversion text, edit code conversion text, and edit code reverse conversion text is shown in FIG. Note that the code reverse conversion editing file 210 generally includes not only the edit code reverse conversion text but also other materials (characters, designs, photographs) such as advertisements, PR, services, and the like.

以上、構成について説明した。次に、本発明の文字コード変換方法およびシステムにおける動作について説明する。最初に、コード対応表生成の過程について説明する。本発明の文字コード変換方法およびシステムにおけるコード対応表生成の過程の一例をフロー図として図4に示す。複数のコード対応表を生成するときには、図4のフローで示す過程を各々のコード対応表に対して行う。
まず、図4のステップS101(規格文字コード表読込)において、オペレータは文字コード変換システム1に対して読み込みの指示入力を行う。コード変換システム1のコード対応表生成手段101はその指示入力に従って、外部記憶システム、通信回線を介する等により、その記憶部201に規格文字コード表201を読み込む。
次に、ステップS102(配列入替範囲指定)において、コード対応表生成手段101は規格文字コード表201をディスプレイに表示する。その規格文字コード表201の表示画面においてオペレータがマウス等を使用し配列入替範囲(所定の範囲)を指定する(図9参照)。コード対応表生成手段101はその指定された配列入替範囲のコードを規格文字コード表201から抽出する。配列入替範囲は、すでに説明したように、規格文字コード表201がアスキーコード表であれば、たとえば、英文字、数字を含み、その他は含まないコード表の範囲である。また、規格文字コード表201がJIS規格文字コード表であれば、たとえば、英文字、数字、漢字、ひらがな、カタカナを含み、その他を含まないコード表の範囲である。
The configuration has been described above. Next, operations in the character code conversion method and system of the present invention will be described. First, the process of generating the code correspondence table will be described. An example of the process of generating the code correspondence table in the character code conversion method and system of the present invention is shown in FIG. 4 as a flowchart. When generating a plurality of code correspondence tables, the process shown in the flow of FIG. 4 is performed for each code correspondence table.
First, in step S101 (standard character code table reading) in FIG. 4, the operator inputs a reading instruction to the character code conversion system 1. The code correspondence table generating unit 101 of the code conversion system 1 reads the standard character code table 201 into the storage unit 201 through an external storage system, a communication line, or the like according to the instruction input.
Next, in step S102 (array replacement range designation), the code correspondence table generation unit 101 displays the standard character code table 201 on the display. On the display screen of the standard character code table 201, the operator designates the array replacement range (predetermined range) using a mouse or the like (see FIG. 9). The code correspondence table generating unit 101 extracts the code of the designated array replacement range from the standard character code table 201. As described above, the array replacement range is a range of the code table including, for example, alphabetic characters and numbers and not including other characters if the standard character code table 201 is an ASCII code table. Further, if the standard character code table 201 is a JIS standard character code table, for example, it is a range of a code table that includes English characters, numbers, kanji, hiragana, katakana, and does not include others.

次に、ステップS103(ランダム配列入替処理)において、コード対応表生成手段101は抽出した配列入替範囲のコードに対して、そのコードの配列をランダムに入れ替える処理を行う。この処理については、すでにFisher−Yatesシャッフル法を使用する方法を一例として説明が済んでいるからここでは説明を省略する。
次に、ステップS104(所定回数終了?)において、所定回数だけステップS103に戻り、ステップS103におけるランダム配列入替処理(シャッフル)を繰り返す。ここで、所定回数とは、Fisher−Yatesシャッフル法であれば指定された配列入替範囲におけるコードの数に一致する。その他の方法でランダム配列入替処理を行うときには、その方法にしたがった適正な所定回数である。
次に、ステップS105(配列入替文字コード表生成)において、コード対応表生成手段101は、ランダム配列入替処理を行ったコードと文字の関係を規格文字コード表201の配列入替範囲に適用することにより配列入替文字コード表202を生成する。この配列入替文字コード表202と規格文字コード表201とは、配列入替範囲において文字配列が相違し、その他の範囲において一致している。
Next, in step S103 (random array replacement process), the code correspondence table generation unit 101 performs a process of randomly replacing the code array on the extracted code in the array replacement range. Since this process has already been described by way of example using the Fisher-Yates shuffle method, the description thereof is omitted here.
Next, in step S104 (end predetermined number of times?), The process returns to step S103 a predetermined number of times, and the random array replacement process (shuffle) in step S103 is repeated. Here, the predetermined number of times coincides with the number of codes in the designated array replacement range in the Fisher-Yates shuffle method. When the random sequence replacement process is performed by another method, the number of times is appropriate according to the method.
Next, in step S105 (array replacement character code table generation), the code correspondence table generation unit 101 applies the relationship between the code and the character subjected to the random array replacement processing to the array replacement range of the standard character code table 201. An array replacement character code table 202 is generated. The array replacement character code table 202 and the standard character code table 201 have different character arrays in the array replacement range and match in the other ranges.

次に、ステップS106(コード対応表生成)において、コード対応表生成手段101は、規格文字コード表201のコードと配列入替文字コード表202のコードとの間の対応関係を記述したコード対応表203を生成する。規格文字コード表201のコードと配列入替文字コード表202のコードとが一致する部分(配列入替範囲外の部分)についてはコード対応表において省略が可能である。すなわち、コード対応表に存在しないコードは一致するコードであるとすることにより省略が可能である。したがって、規格文字コード表のコードと配列入替文字コード表のコードとが一致しない部分(配列入替範囲の部分)についてだけコード対応表に載せることができる(図10参照)。
次に、ステップS107(コード対応表保存)において、コード対応表生成手段101は、コード対応表203を記憶部20に保存する。
Next, in step S106 (code correspondence table generation), the code correspondence table generation means 101 stores the code correspondence table 203 describing the correspondence between the codes in the standard character code table 201 and the codes in the array replacement character code table 202. Is generated. A portion where the code in the standard character code table 201 and the code in the array replacement character code table 202 match (a portion outside the array replacement range) can be omitted in the code correspondence table. In other words, codes that do not exist in the code correspondence table can be omitted by assuming that the codes match. Therefore, only the portion where the code of the standard character code table and the code of the array replacement character code table do not match (the portion of the array replacement range) can be included in the code correspondence table (see FIG. 10).
Next, in step S107 (code correspondence table storage), the code correspondence table generation unit 101 stores the code correspondence table 203 in the storage unit 20.

以上、コード対応表生成の過程について説明した。次に、コード変換テキストファイル生成の過程について説明する。本発明の文字コード変換方法およびシステムにおけるコード変換テキストファイル生成の過程の過程の一例をフロー図として図5に示す。
図5のステップS201(テキストファイル読込)において、オペレータは文字コード変換システム1に対して読み込みの指示入力を行う。コード変換システム1のコード変換テキスト生成手段102はその指示入力に従って、外部記憶システム、通信回線を介する等により、その記憶部201にテキストファイル204を読み込む。
次に、ステップS202(文字コード判定)において、コード変換テキスト生成手段102はテキストファイル204にどの規格文字コード表が使用されているか(どの規格の文字コードに基づいてエンコードされているか)を判定する。文字コードとしては、たとえば、ASCII、日本語JIS(iso-2022-jp)、シフトJIS(shift_jis,JIS X 0208)、日本語EUC(euc-jp,Extended UNIX Code Packed Format for Japanese)、UTF−8(UCS Transformation Format 8,Unicode Transformation Format-8)、等である。文字コードの判別は、たとえば、使用されているコードの領域によって判定する。コードが0x00〜0x7F(16進)の範囲内ならASCIIであり、0x00〜0x7F(16進)の範囲外のコードが現れたらASCIIではない、というように文字コードの判定を行う。文字コードを判定する方法については多くの方法が知られているからここでは詳細な説明を省略する。
The process of generating the code correspondence table has been described above. Next, the process of generating the code conversion text file will be described. An example of the process of generating the code conversion text file in the character code conversion method and system of the present invention is shown as a flowchart in FIG.
In step S201 (reading a text file) in FIG. 5, the operator inputs a reading instruction to the character code conversion system 1. The code conversion text generation means 102 of the code conversion system 1 reads the text file 204 into the storage unit 201 through an external storage system, a communication line, or the like according to the instruction input.
Next, in step S202 (character code determination), the code conversion text generation unit 102 determines which standard character code table is used in the text file 204 (based on which standard character code is encoded). . Examples of character codes include ASCII, Japanese JIS (iso-2022-jp), Shift JIS (shift_jis, JIS X 0208), Japanese EUC (euc-jp, Extended UNIX Code Packed Format for Japanese), UTF-8. (UCS Transformation Format 8, Unicode Transformation Format-8), etc. The character code is determined by, for example, the code area being used. If the code is in the range of 0x00 to 0x7F (hexadecimal), it is ASCII, and if a code outside the range of 0x00 to 0x7F (hexadecimal) appears, the character code is determined such that it is not ASCII. Since many methods are known for determining the character code, a detailed description thereof is omitted here.

次に、ステップS203(変換方法指定)において、コード変換テキスト生成手段102はディスプレイに変換方法の指定入力を行う画面を表示する。オペレータは、その画面において変換方法の指定入力を行う。コード変換テキスト生成手段102は、オペレータによる指定入力に基づいて、変換方法指定ファイル206を生成する。ステップS202において文字コード判定された規格文字コード表に基づくコード対応表としては複数のコード対応表203を生成して記憶部20に記憶しておくことができる。したがって、変換方法について指定する内容としては、使用するコード対応表203の指定が含まれる。さらに、複数のコード対応表203を指定したときにはそれらの使用順番、コード対応表の切替えを行う規則の指定、たとえばデータを区切るコードとして使用するコードの指定、等を指定する内容に含める。なお、以下のステップにおいては、複数のコード対応表203を指定し、データを区切るコードによってコード対応表の切替えを行う規則が指定されたものとして説明が行われる。
次に、ステップS204(コード対応表読込)において、コード変換テキスト生成手段102は変換方法指定ファイル206において指定されているコード対応表203を読み込む(変換に使用するコード対応表として設定する)。
Next, in step S203 (conversion method designation), the code conversion text generation unit 102 displays a screen for inputting the conversion method designation on the display. The operator inputs a conversion method designation on the screen. The code conversion text generation unit 102 generates a conversion method specification file 206 based on a specification input by an operator. A plurality of code correspondence tables 203 can be generated and stored in the storage unit 20 as the code correspondence table based on the standard character code table determined in step S202. Therefore, the content to be specified for the conversion method includes specification of the code correspondence table 203 to be used. Further, when a plurality of code correspondence tables 203 are designated, the order of use, designation of rules for switching the code correspondence tables, for example, designation of codes used as codes for separating data, and the like are included in the designated contents. In the following steps, a description will be given on the assumption that a plurality of code correspondence tables 203 are designated, and a rule for switching the code correspondence tables is designated by a code for separating data.
Next, in step S204 (code correspondence table reading), the code conversion text generation means 102 reads the code correspondence table 203 specified in the conversion method specification file 206 (set as a code correspondence table used for conversion).

次に、ステップS205(変換開始入力)において、オペレータは文字コード変換システム1に対して変換開始を指示する入力を行う。コード変換テキスト生成手段102は、変換方法指定ファイル206に指定された内容にしたがって、ステップS201で読み込んだテキストファイル204のコードの変換を開始する。
次に、ステップS206(次の(最初の)1文字読込)において、コード変換テキスト生成手段102はテキストファイル204の最初の(次の)1文字を読み込む。
次に、ステップS207(区切りコード?)において、コード変換テキスト生成手段102は読み込んだ1文字のコードが区切りコードであるか否かを判定する。区切りコードであるときにはステップS208に進み、そうでないときにはステップS209に進む。
次に、ステップS208(使用コード対応表の切替)において、コード変換テキスト生成手段102は使用するコード対応表の切り替えを行う。そして、ステップS206に戻り、上述した以降のステップを繰り返す。
Next, in step S205 (conversion start input), the operator inputs to the character code conversion system 1 an instruction to start conversion. The code conversion text generation unit 102 starts conversion of the code of the text file 204 read in step S201 according to the content specified in the conversion method specification file 206.
Next, in step S206 (the next (first) one character reading), the code conversion text generation unit 102 reads the first (next) one character of the text file 204.
Next, in step S207 (delimiter code?), The code conversion text generation unit 102 determines whether or not the read one-character code is a delimiter code. If it is a delimiter code, the process proceeds to step S208; otherwise, the process proceeds to step S209.
Next, in step S208 (switching of the used code correspondence table), the code conversion text generating unit 102 switches the code correspondence table to be used. And it returns to step S206 and repeats the subsequent steps mentioned above.

次に、ステップS209(コード変換)において、コード変換テキスト生成手段102は読み込んだ1文字のコードを、読み込んだコード対応表203を参照して変換する。コード対応表203が指定された配列入替範囲のコードだけを記述したコード対応表であるときには、コード変換テキスト生成手段102は読み込んだコード対応表203を参照して、コードが存在するときにはそのコード対応表203に基づく変換を行うが、コードが存在しないときには読み込んだ1文字のコードをそのまま使用する変換(無変換)を行う。
次に、ステップS210(変換したコードを(追加)保存)において、コード変換テキスト生成手段102はコード変換テキストに対して変換したコードを追加しコード変換テキストファイル205として保存する。
次に、ステップS211(最終文字)において、コード変換テキスト生成手段102はステップS210における変換したコードがテキストファイル204の最終文字であるか否かを判定する。たとえば、コード変換テキスト生成手段102はあらかじめ計数したテキストファイル204の文字数と比較して最終文字であるか否かを判定する。最終文字であるときにはコード変換テキストファイルを生成する一連のステップを終了し、そうでないときにはステップS206に戻り、上述した以降のステップを繰り返す。
In step S209 (code conversion), the code conversion text generation unit 102 converts the read one-character code with reference to the read code correspondence table 203. When the code correspondence table 203 is a code correspondence table describing only the codes in the designated array replacement range, the code conversion text generation means 102 refers to the read code correspondence table 203, and when a code exists, the code correspondence table 203 Conversion based on Table 203 is performed. When there is no code, conversion (no conversion) is performed using the read one-character code as it is.
Next, in step S210 (converted code is (added) storage), the code conversion text generation means 102 adds the converted code to the code conversion text and stores it as a code conversion text file 205.
Next, in step S211 (final character), the code conversion text generation unit 102 determines whether or not the code converted in step S210 is the final character of the text file 204. For example, the code conversion text generation means 102 determines whether it is the last character by comparing with the number of characters of the text file 204 counted in advance. If it is the last character, the series of steps for generating the code conversion text file is terminated. If not, the process returns to step S206 to repeat the subsequent steps.

以上、コード変換テキストファイル生成の過程について説明した。次に、変換仕様ファイル生成の過程について説明する。本発明の文字コード変換方法およびシステムにおける変換仕様ファイル生成の過程の一例をフロー図として図6に示す。
まず、図6のステップS301(テキストファイル(名)取込)において、変換仕様ファイル生成手段103はテキストファイルそのもの、またはテキストファイル名を変換仕様ファイルに記述するデータとして取り込む。この取り込みは、たとえば、前述したステップS201(テキストファイル読込)において、変換仕様ファイル生成手段103が行う。
次に、ステップS302(文字コード名取込)において、変換仕様ファイル生成手段103は文字コード名を変換仕様ファイルに記述するデータとして取り込む。この取り込みは、たとえば、前述したステップS202(文字コード判定)において、変換仕様ファイル生成手段103が行う。
次に、ステップS303(変換方法指定データ取込)において、変換仕様ファイル生成手段103は変換方法指定データそのもの、または変換方法指定データファイル名を変換仕様ファイルに記述するデータとして取り込む。この取り込みは、たとえば、前述したステップS203(変換方法指定)において、変換仕様ファイル生成手段103が行う。変換方法指定データには、使用するコード対応表名、それらの使用順番、コード対応表の切替えを行う規則の指定、等が含まれている。
The process of generating the code conversion text file has been described above. Next, the process of generating a conversion specification file will be described. An example of the process of generating a conversion specification file in the character code conversion method and system of the present invention is shown in FIG. 6 as a flowchart.
First, in step S301 of FIG. 6 (capturing a text file (name)), the conversion specification file generating means 103 captures the text file itself or the text file name as data described in the conversion specification file. For example, this import is performed by the conversion specification file generation unit 103 in the above-described step S201 (text file reading).
Next, in step S302 (capture character code name), the conversion specification file generation means 103 captures the character code name as data described in the conversion specification file. For example, this conversion is performed by the conversion specification file generation means 103 in step S202 (character code determination) described above.
Next, in step S303 (conversion method specification data acquisition), the conversion specification file generation means 103 acquires the conversion method specification data itself or the conversion method specification data file name as data described in the conversion specification file. This import is performed by the conversion specification file generation means 103 in step S203 (conversion method designation) described above, for example. The conversion method designation data includes the code correspondence table names to be used, the order in which they are used, the designation of rules for switching the code correspondence table, and the like.

次に、ステップS304(変換開始時刻取込)において、変換仕様ファイル生成手段103はオペレータが変換開始入力を行った年月日時刻を変換仕様ファイルに記述するデータとして取り込む。この取り込みは、たとえば、前述したステップS205(変換開始入力)において、変換仕様ファイル生成手段103が行う。
次に、ステップS305(変換終了時刻取込)において、変換仕様ファイル生成手段103はコード変換が完了しコード変換テキストファイルが生成された年月日時刻を変換仕様ファイルに記述するデータとして取り込む。この取り込みは、たとえば、前述したステップS211(最終文字?)において、最終文字であると判定されたとき(END)において、変換仕様ファイル生成手段103が行う。変換開始時刻と変換終了時刻のデータを変換仕様に取込むことにより自他のシステム(たとえば、生産管理システム)におけるログ情報(生産管理システムであれば生産管理情報)、等と、ここで生成する変換仕様ファイルとの紐付けを容易にする。
Next, in step S304 (conversion start time capture), the conversion specification file generation means 103 captures the date and time when the operator inputs the conversion start as data described in the conversion specification file. This capture is performed, for example, by the conversion specification file generation means 103 in step S205 (conversion start input) described above.
Next, in step S305 (conversion end time capture), the conversion specification file generation unit 103 captures the date and time when the code conversion is completed and the code conversion text file is generated as data described in the conversion specification file. This conversion is performed, for example, by the conversion specification file generation means 103 when it is determined in step S211 (final character?) That the character is the final character (END). Data of the conversion start time and the conversion end time are taken into the conversion specification, and log information (production management information in the case of a production management system) in another system (for example, a production management system) is generated here. Facilitates linking with conversion specification files.

次に、ステップS306(コード変換テキストファイル名取込)において、変換仕様ファイル生成手段103はコード変換テキストファイル205そのもの、またはコード変換テキストファイル名を変換仕様ファイルに記述するデータとして取り込む。この取り込みは、たとえば、前述したステップS305(変換終了時刻取込)に引き続いて、変換仕様ファイル生成手段103が行う。そして、変換仕様ファイル生成手段103はそれまでに取り込んだデータを記述する変換仕様ファイル207を生成する。変換仕様ファイル207のファイル名としては、コード変換テキストファイル名を特定可能なファイル名を使用する。すなわち、変換仕様ファイル207とコード変換テキストファイル205は一方から他方を特定し組合わせて使用することができる。
なお、上記においてファイルそのものを取り込めば、当然、取込データ量は大きくなるがコード逆変換するときに変換仕様ファイル207に記述されたファイル名からファイルを読み込む必要がなくなる。一方、ファイル名だけのときには、当然、取込データ量は小さくなるが同一ファイル名で内容の相違するファイルが存在しないようにする必要性がある。本発明においては変換仕様ファイル207として各種各様の構成のものを使用することができる。変換仕様ファイル207における最小構成としては、テキストファイル、コード対応表、コード変換テキストファイルを特定するデータと、コード逆変換に必要な処理の内容またはそれと等価の関係を有する変換方法指定データである。
Next, in step S306 (capture code conversion text file name), the conversion specification file generation means 103 captures the code conversion text file 205 itself or the code conversion text file name as data described in the conversion specification file. For example, this conversion is performed by the conversion specification file generation means 103 following the above-described step S305 (conversion end time acquisition). Then, the conversion specification file generation unit 103 generates a conversion specification file 207 that describes the data that has been captured so far. As the file name of the conversion specification file 207, a file name that can identify the code conversion text file name is used. That is, the conversion specification file 207 and the code conversion text file 205 can be used by specifying one from the other and combining them.
If the file itself is captured in the above, naturally, the amount of captured data increases, but it is not necessary to read the file from the file name described in the conversion specification file 207 when performing reverse code conversion. On the other hand, when only the file name is used, it is natural that the amount of captured data is reduced, but it is necessary to prevent files having the same file name and different contents from being present. In the present invention, a conversion specification file 207 having various configurations can be used. The minimum configuration in the conversion specification file 207 includes data specifying a text file, a code correspondence table, and a code conversion text file, and conversion method designation data having a processing content necessary for reverse code conversion or an equivalent relationship thereto.

以上、変換仕様ファイル生成の過程について説明した。次に、コード逆変換編集ファイル生成の過程について説明する。本発明の文字コード変換方法およびシステムにおけるコード逆変換編集ファイル生成の過程の一例をフロー図として図7に示す。
まず、図7のステップS401(編集ファイル読込)において、オペレータは文字コード変換システム1に対して読み込みの指示入力を行う。コード変換システム1のコード逆変換編集ファイル生成手段104はその指示入力に従って、外部記憶システム、通信回線を介する等により、その記憶部201に編集ファイル208を読み込む。
次に、ステップS402(変換仕様ファイル読込)において、コード逆変換編集ファイル生成手段104はその読み込んだ編集ファイル208の素材として使用したコード変換テキストファイルを生成したときの変換仕様ファイルを読み込む。変換仕様ファイルの特定は、たとえば、編集ファイル208からその素材としてのコード変換テキストファイルを特定し、さらにそのコード変換テキストファイルから変換仕様ファイルを特定する。
次に、ステップS403(変換仕様関連ファイル読込)において、コード逆変換編集ファイル生成手段104は読み込んだ変換仕様ファイルに関連し、コード逆変換に必要とするファイルを読み込む。たとえば、テキストファイル、コード変換テキストファイルを読み込む。
The conversion specification file generation process has been described above. Next, the process of generating the code reverse conversion edit file will be described. An example of the process of generating the code reverse conversion edit file in the character code conversion method and system of the present invention is shown in FIG. 7 as a flowchart.
First, in step S401 (read editing file) in FIG. 7, the operator inputs a reading instruction to the character code conversion system 1. The code reverse conversion edit file generation unit 104 of the code conversion system 1 reads the edit file 208 into the storage unit 201 through an external storage system, a communication line, or the like according to the instruction input.
Next, in step S402 (conversion specification file reading), the code reverse conversion edit file generation means 104 reads the conversion specification file when the code conversion text file used as the material of the read edit file 208 is generated. The conversion specification file is specified by, for example, specifying a code conversion text file as the material from the editing file 208 and further specifying the conversion specification file from the code conversion text file.
Next, in step S403 (conversion specification related file reading), the code reverse conversion edit file generation means 104 reads a file necessary for code reverse conversion in relation to the read conversion specification file. For example, a text file and a code conversion text file are read.

次に、ステップS404(テキスト箇所指定)において、コード逆変換編集ファイル生成手段104は編集ファイル208をディスプレイに表示する。オペレータは、ディスプレイに表示された編集ファイル208において、コード変換テキストファイルが使用されている箇所(コード変換テキストの流し込みが行われている箇所)を指定する。この指定は、すくなくとも、編集形式の繰り返しにおける1単位の領域において行われる。たとえば、その1単位とはダイレクトメールであれば顧客一人分のことである。オペレータが指定すべき箇所は読み込んだコード変換テキストファイルを参照することにより、間違いなく行うことができる。コード逆変換編集ファイル生成手段104はその指定された箇所を指定箇所とし、他の箇所と編集ファイル208において区別できるようにする。
次に、ステップS405(変換開始入力)において、オペレータは文字コード変換システム1に対して変換開始を指示する入力を行う。コード逆変換編集ファイル生成手段104は、コード変換テキスト生成手段102によるコード対応表と変換方法指定ファイル206とに基づくコード変換に対して、コード逆変換となる処理を開始する。
Next, in step S404 (text location specification), the code reverse conversion edit file generation means 104 displays the edit file 208 on the display. The operator designates a location where the code conversion text file is used in the edit file 208 displayed on the display (a location where the code conversion text is being poured). This designation is performed at least in one unit area in the repetition of the edit format. For example, the unit is one customer if it is a direct mail. The location to be specified by the operator can be definitely performed by referring to the read code conversion text file. The code reverse conversion edit file generation means 104 designates the designated place as a designated place so that it can be distinguished from other places in the edit file 208.
Next, in step S405 (conversion start input), the operator inputs to the character code conversion system 1 an instruction to start conversion. The code reverse conversion editing file generation unit 104 starts a process of code reverse conversion for the code conversion based on the code correspondence table and the conversion method designation file 206 by the code conversion text generation unit 102.

次に、ステップS406(次の(最初の)1文字読込)において、コード逆変換編集ファイル生成手段104は編集ファイル208における指定箇所の最初の(次の)1文字を読み込む。
次に、ステップS407(区切りコード?)において、コード逆変換編集ファイル生成手段104は読み込んだ1文字のコードが区切りコードであるか否かを判定する。区切りコードであるときにはステップS408に進み、そうでないときにはステップS409に進む。
次に、ステップS408(使用コード対応表の切替)において、コード逆変換編集ファイル生成手段104は使用するコード対応表の切り替えを行う。そして、ステップS406に戻り、上述した以降のステップを繰り返す。
Next, in step S406 (reading the next (first) one character), the code reverse conversion edit file generating means 104 reads the first (next) character at the designated location in the edit file 208.
Next, in step S407 (delimiter code?), The code reverse conversion edit file generation means 104 determines whether or not the read one-character code is a delimiter code. If it is a delimiter code, the process proceeds to step S408; otherwise, the process proceeds to step S409.
Next, in step S408 (switching of the used code correspondence table), the code reverse conversion editing file generating unit 104 switches the code correspondence table to be used. And it returns to step S406 and repeats the subsequent steps mentioned above.

次に、ステップS409(コード逆変換)において、コード逆変換編集ファイル生成手段104は読み込んだ1文字のコードを、変換仕様ファイル207に記述されたコード対応表を参照して逆変換する。コード対応表が指定された配列入替範囲のコードだけを記述したコード対応表であるときには、コード逆変換編集ファイル生成手段104は変換仕様ファイル207に記述されたコード対応表を参照して、コードが存在するときにはそのコード対応表に基づく逆変換を行うが、コードが存在しないときには読み込んだ1文字のコードをそのまま使用する変換(無変換)を行う。
次に、ステップS410(逆変換したコードに置換)において、コード逆変換編集ファイル生成手段104は編集ファイル208の該当箇所において逆変換したコードへの置き換えを行いコード逆変換編集ファイル210として保存する。
次に、ステップS411(最終文字)において、コード変換テキスト生成手段102はステップS210における変換したコードが編集ファイル208の該当箇所における最終文字であるか否かを判定する。たとえば、コード逆変換編集ファイル生成手段104はあらかじめ計数した編集ファイル208の該当箇所における文字数と比較して最終文字であるか否かを判定する。最終文字であるときにはコード逆変換編集ファイル210を生成する一連のステップを終了し、そうでないときにはステップS406に戻り、上述した以降のステップを繰り返す。
Next, in step S409 (code reverse conversion), the code reverse conversion edit file generation means 104 performs reverse conversion on the read one-character code with reference to the code correspondence table described in the conversion specification file 207. When the code correspondence table is a code correspondence table describing only the codes in the specified array replacement range, the code reverse conversion editing file generation means 104 refers to the code correspondence table described in the conversion specification file 207 and the code is When the code exists, reverse conversion based on the code correspondence table is performed. When the code does not exist, conversion (no conversion) is performed using the read one-character code as it is.
Next, in step S410 (replace with the reversely converted code), the code reverse conversion edit file generation means 104 performs replacement with the reversely converted code at the corresponding portion of the edit file 208 and saves it as the code reverse conversion edit file 210.
Next, in step S411 (final character), the code conversion text generation unit 102 determines whether or not the code converted in step S210 is the final character in the corresponding portion of the editing file 208. For example, the code reverse conversion edit file generation means 104 determines whether or not it is the last character by comparing with the number of characters in the corresponding portion of the edit file 208 counted in advance. If it is the last character, the series of steps for generating the reverse code conversion edit file 210 is terminated. If not, the process returns to step S406 and the above-described steps are repeated.

秘密情報を含むテキストファイルを素材とする編集を、その秘密を保持したまま行う産業において利用可能である。また、秘密情報を含むテキストファイルにおいて、特定の者に対して特定の部分だけ表示するように管理する産業において利用可能である。   It can be used in an industry that performs editing using a text file containing secret information as a material while keeping the secret. Further, the present invention can be used in an industry that manages to display only a specific part for a specific person in a text file including secret information.

1 カード
11 記憶手段
12 インタフェース
13 利用回数増加手段
14 暗号処理手段
15 命令処理手段
2 カード端末
21 記憶手段
22 リーダライタ
23 取引情報生成手段
24 通信手段
25 決済要求手段
3 決済サブシステム
31 記憶手段
32 通信手段
33 暗号処理手段
34 決済判定手段
35 タイミング判定手段
36 更新判定要求手段
4 会員管理サブシステム
41 記憶手段
42 会員データベース
43 通信手段
44 更新条件設定手段
45 更新判定手段
46 更新処理手段
47 カード発行手段
5 ネットワーク
DESCRIPTION OF SYMBOLS 1 Card 11 Memory | storage means 12 Interface 13 Use frequency increase means 14 Cryptographic processing means 15 Instruction processing means 2 Card terminal 21 Storage means 22 Reader / writer 23 Transaction information generation means 24 Communication means 25 Settlement request means 3 Settlement subsystem 31 Storage means 32 Communication Means 33 Cryptographic processing means 34 Settlement judgment means 35 Timing judgment means 36 Update judgment request means 4 Member management subsystem 41 Storage means 42 Member database 43 Communication means 44 Update condition setting means 45 Update judgment means 46 Update processing means 47 Card issuing means 5 network

Claims (8)

規格文字コード表の文字を表すコードの配列は入れ替える操作を行い、該規格文字コード表の記号を表すコードの配列は入れ替える操作を行わずに得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶しておき、
前記規格文字コード表を使用してコードから文字と記号を再現するテキストファイルを読み込み、
前記記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成する
過程を備えたことを特徴とする文字コード変換方法。
The code array representing the characters of the standard character code table is replaced, and the code of the standard character code table is replaced with the code of the array replacement character code table obtained without performing the operation of replacing the standard character code table. Remember the code correspondence table that describes the correspondence between the codes in the table,
Read a text file that reproduces characters and symbols from the code using the standard character code table,
A character code conversion method comprising a step of generating a code conversion text file by converting the code in the text file into the code of the array replacement character code table using the stored code correspondence table.
規格文字コード表の所定範囲における配列を入れ替える操作を行って得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶しておき、
前記規格文字コード表を使用してコードから文字を再現するテキストファイルを読み込み、
前記記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成し、
前記コード変換テキストファイルを生成する過程で使用したテキストファイル、コード対応表、コード変換テキストファイルを特定する情報とそれらを使用した処理の内容を記述する変換仕様ファイルを生成し、この生成した変換仕様ファイルを記憶しておき、
前記コード変換テキストファイルを素材として使用し、意味が理解不能な状態で編集を行った編集コード変換テキストを含む編集ファイルを読み込み、
前記記憶した変換仕様ファイルを読み込み、この読み込んだ変換仕様ファイルを使用して、前記編集ファイルの中の前記編集コード変換テキストのコードを逆変換し、その逆変換によって得た編集コード逆変換テキストを含むコード逆変換編集ファイルを生成する
過程を備えたことを特徴とする請求項1又は請求項2記載の文字コード変換方法。
A code correspondence table describing a correspondence relationship between codes of the sequence replacement character code table obtained by performing an operation of replacing the sequences in the predetermined range of the standard character code table and codes of the standard character code table;
Read a text file that reproduces characters from the code using the standard character code table,
Using the stored code correspondence table, generate a code conversion text file by converting the code in the text file into the code of the sequence replacement character code table,
Generate a conversion specification file that describes the text file used in the process of generating the code conversion text file, the code correspondence table, information for specifying the code conversion text file, and the contents of the processing using them, and the generated conversion specification Remember the file,
Using the code conversion text file as a material, read the edit file containing the edit code conversion text edited in a state where the meaning is incomprehensible,
The stored conversion specification file is read, the code of the edit code conversion text in the edit file is reversely converted using the read conversion specification file, and the edit code reverse conversion text obtained by the reverse conversion is converted. 3. The character code conversion method according to claim 1, further comprising a step of generating a code reverse conversion editing file.
前記コード対応表を生成する過程をさらに備えたことを特徴とする請求項1又は請求項2記載の文字コード変換方法。 3. The character code conversion method according to claim 1, further comprising a step of generating the code correspondence table. 前記配列を入れ替える操作として、Fisher−Yatesシャッフル法を使用することを特徴とする請求項1乃至請求項のいずれかに記載した文字コード変換方法。 The character code conversion method according to any one of claims 1 to 3 , wherein a Fisher-Yates shuffle method is used as the operation of replacing the array. 請求項1乃至請求項のいずれかに記載した文字コード変換方法をコンピュータに実行させるプログラム。 The program which makes a computer perform the character code conversion method in any one of Claims 1 thru | or 4 . 規格文字コード表の文字を表すコードの配列は入れ替える操作を行い、該規格文字コード表の記号を表すコードの配列は入れ替える操作を行わずに得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶する記憶手段と、
前記規格文字コード表を使用してコードから文字と記号を再現するテキストファイルを読み込み、前記記憶手段に記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成するコード変換テキストファイル生成手段と
を備えたことを特徴とする文字コード変換システム。
The code array representing the characters of the standard character code table is replaced, and the code of the standard character code table is replaced with the code of the array replacement character code table obtained without performing the operation of replacing the standard character code table. Storage means for storing a code correspondence table describing a correspondence relationship between codes in the table;
Read a text file that reproduces characters and symbols from the code using the standard character code table, and use the code correspondence table stored in the storage means to convert the code in the text file to the code of the array replacement character code table A character code conversion system comprising code conversion text file generation means for generating a code conversion text file converted into a character code.
規格文字コード表の所定範囲における配列を入れ替える操作を行って得られる配列入替文字コード表のコードと前記規格文字コード表のコードとの間の対応関係を記述したコード対応表を記憶する記憶手段と、
前記規格文字コード表を使用してコードから文字を再現するテキストファイルを読み込み、前記記憶手段に記憶したコード対応表を使用して、前記テキストファイルにおけるコードを前記配列入替文字コード表のコードに変換したコード変換テキストファイルを生成するコード変換テキストファイル生成手段と、
前記コード変換テキストファイルを生成する過程で使用したテキストファイル、コード対応表、コード変換テキストファイルを特定する情報とそれらを使用した処理の内容を記述する変換仕様ファイルを生成する変換仕様ファイル生成手段と、
前記コード変換テキストファイルを素材として使用し、意味が理解不能な状態で編集を行った編集コード変換テキストを含む編集ファイルを読み込み、
前記変換仕様ファイル生成手段が生成した変換仕様ファイルを使用して、前記編集ファイルの中の前記編集コード変換テキストのコードを逆変換し、その逆変換によって得た編集コード逆変換テキストを含むコード逆変換編集ファイルを生成するコード逆変換編集ファイル生成手段と
を備えたことを特徴とする文字コード変換システム。
Storage means for storing a code correspondence table describing a correspondence relationship between a code of an array replacement character code table obtained by performing an operation of replacing an array in a predetermined range of the standard character code table and a code of the standard character code table; ,
A text file that reproduces characters from codes using the standard character code table is read, and codes in the text file are converted into codes of the array replacement character code table using a code correspondence table stored in the storage means Code conversion text file generation means for generating the converted code conversion text file;
A conversion specification file generating means for generating a conversion specification file that describes the text file used in the process of generating the code conversion text file, the code correspondence table, information for specifying the code conversion text file, and the contents of processing using them; ,
Using the code conversion text file as a material, read the edit file containing the edit code conversion text edited in a state where the meaning is incomprehensible,
Using the conversion specification file generated by the conversion specification file generating means, the code of the edit code conversion text in the edit file is reversely converted, and the code reverse including the edit code reverse conversion text obtained by the reverse conversion A character code conversion system comprising code reverse conversion edit file generation means for generating a conversion edit file.
前記コード対応表を生成するコード対応表生成手段をさらに備えたことを特徴とする請求項記載又は請求項記載の文字コード変換システム。 Character code conversion system according to claim 6 or claim 7, wherein further comprising a code correspondence table generation unit for generating the code correspondence table.
JP2011214031A 2011-09-29 2011-09-29 Character code conversion method and system Expired - Fee Related JP5892307B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011214031A JP5892307B2 (en) 2011-09-29 2011-09-29 Character code conversion method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011214031A JP5892307B2 (en) 2011-09-29 2011-09-29 Character code conversion method and system

Publications (2)

Publication Number Publication Date
JP2013073560A JP2013073560A (en) 2013-04-22
JP5892307B2 true JP5892307B2 (en) 2016-03-23

Family

ID=48477982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011214031A Expired - Fee Related JP5892307B2 (en) 2011-09-29 2011-09-29 Character code conversion method and system

Country Status (1)

Country Link
JP (1) JP5892307B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07118710B2 (en) * 1987-07-10 1995-12-18 日本電信電話株式会社 Confidential communication method in broadcast communication system
JP2002169807A (en) * 2000-12-01 2002-06-14 Nec Corp Information processing system and personal information retrieving method
JP2005141282A (en) * 2003-11-04 2005-06-02 Fujitsu Ltd Program for encrypting character data
JP4143628B2 (en) * 2005-08-11 2008-09-03 大学共同利用機関法人情報・システム研究機構 Text content presentation device, text content presentation method, and text content presentation program
JP2009530877A (en) * 2006-03-14 2009-08-27 ティーアイアール テクノロジー エルピー Apparatus and method for controlling activation of electronic device
JP2008287396A (en) * 2007-05-16 2008-11-27 Toshiba Corp Data processor and program
JP5371289B2 (en) * 2008-06-02 2013-12-18 キヤノン株式会社 Information processing apparatus, data processing method, and 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
JP2013073560A (en) 2013-04-22

Similar Documents

Publication Publication Date Title
AU2003200547B2 (en) Method for selecting a font
JPS6165290A (en) Generator for vector character font
KR100858103B1 (en) Template-based pdf publishing system for web contents
JP5892307B2 (en) Character code conversion method and system
JPS59220867A (en) Processing system of parts data of machine design
JP2002189715A (en) Code number embedding system
JP4143628B2 (en) Text content presentation device, text content presentation method, and text content presentation program
JP2010221429A (en) Label printer and information processor
JP3115059B2 (en) Structured document editing method
JP2004094410A (en) Contents creation program, contents display program, recording medium, contents creation method, and contents display method
JP2008269453A (en) Printing system and program for printing system
JP2000029677A (en) Automatic generating device for screen constitution
JP2011248421A (en) Data creation method and data creation system
JPH0822470A (en) Information preparation supporting system
JP6976524B2 (en) How to generate print data and software for generating print data
JPH01262149A (en) Document output device having dot-character font forming function
KR20070001765A (en) Memory saving character display system and display method thereof
JP4270016B2 (en) Document management system
JP2003256410A (en) Variable form data creation system
JP2004334420A (en) Form generation method and form output device
JP2978178B2 (en) Document creation apparatus and control method thereof
JP2009003496A (en) Business form data conversion device
JP2691871B2 (en) Comp compiling device using pseudo characters
JP2009230423A (en) Template output control device and program
JPH0764981A (en) Document processor

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20130823

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140729

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150303

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150430

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20150430

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150901

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151030

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160127

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160209

R150 Certificate of patent or registration of utility model

Ref document number: 5892307

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees