JP2011164999A - Method, server and program for creation of document - Google Patents

Method, server and program for creation of document Download PDF

Info

Publication number
JP2011164999A
JP2011164999A JP2010028055A JP2010028055A JP2011164999A JP 2011164999 A JP2011164999 A JP 2011164999A JP 2010028055 A JP2010028055 A JP 2010028055A JP 2010028055 A JP2010028055 A JP 2010028055A JP 2011164999 A JP2011164999 A JP 2011164999A
Authority
JP
Japan
Prior art keywords
character string
name
pattern matching
flag information
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.)
Granted
Application number
JP2010028055A
Other languages
Japanese (ja)
Other versions
JP5509899B2 (en
Inventor
Akihiko Miyazaki
昭彦 宮崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2010028055A priority Critical patent/JP5509899B2/en
Publication of JP2011164999A publication Critical patent/JP2011164999A/en
Application granted granted Critical
Publication of JP5509899B2 publication Critical patent/JP5509899B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method, server and program for document creation, capable of greatly reducing the quantity of work of an operator by automatically adding, in uploading of many files, attribute information to be given to each file thereto. <P>SOLUTION: A fixed rule is provided for file names, and processing for generating attribute information by interpreting the rule is given to a web server side to eliminate the need for manual selection of attribute information for each file in one-by-one loading of files as in the past. According to this arrangement, a plurality of files can be collectively uploaded without the labor hour of troublesome input of attribute information, thereby the quantity of input work is greatly reduced. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、文書作成方法、文書作成サーバ及び文書作成プログラムに関する。
より詳細には、少ない手間で複数のファイルに所定の属性情報を付加してアップロードすることのできるwebサーバに関する。
The present invention relates to a document creation method, a document creation server, and a document creation program.
More specifically, the present invention relates to a web server that can upload predetermined attribute information to a plurality of files with less effort.

一般的に、webサーバでcgi(Common Gateway Interface)を用いてファイルをアップロードする場合、cgiにはアップロードするファイル名をフルパスで入力する他に、ファイルの説明文等を入力する欄が設けられているのが通例である。アップロードしたファイルをアップロードした者とは別の者がダウンロードする際に、アップロードされた複数のファイルがそれぞれどのような中身であるのか、そしてどれが所望するファイルであるのかを判別するために必要だからである。
なお、特許文献1に本発明と関係すると思われる文献を示す。
In general, when uploading a file using cgi (Common Gateway Interface) on a web server, cgi has a field for entering a description of the file in addition to entering the full name of the file to be uploaded. It is customary. When a person other than the person who uploaded the uploaded file downloads it, it is necessary to determine what the uploaded files are and what they are. It is.
Patent Document 1 shows a document considered to be related to the present invention.

特開2006−260197号公報JP 2006-260197 A

アップロードするファイルの数が一つや二つ程度の少ない数であれば、説明文等の入力の作業量は小さいので、クライアントを操作する者の作業量の負担は軽い。しかし、アップロードするファイルの数が四つ、五つ、或はそれ以上の数量をまとめてアップロードしなければならない、となると、クライアントを操作する者の作業量は膨大になる。
このようなシチュエーションが想定される場合の一例として、プリンタドライバがある。
プリンタドライバは、機能追加やバグフィクスを行う度に、OS別、そして言語別にドライバを作成する必要がある。ここで言語とは、日本語、英語、フランス語、ドイツ語等の自然言語を指す。また、複数のプリンタのプリンタドライバに共通に搭載されている機能に対して共通のバージョンアップやバグフィクスがあった場合には、それら複数のプリンタ毎に、一斉にバージョンアップを実施しなければならない。そうなると、アップロードするファイルの数は膨大になり、それらアップロードされるファイル毎に一つずつ手入力で説明文を記入しなければならない、となると、その作業量が極めて重くなることは容易に想像できる。
説明文の入力を省略し、例えばプリンタドライバが対応する言語を予め定めておき、プルダウンメニュー等で選択させる、という方法もあるが、これも「選択する」という手作業が必要になるので、あまり作業量の軽減には寄与しない。
If the number of files to be uploaded is small, such as one or two, the amount of work for inputting explanations and the like is small, so the burden on the amount of work for the person who operates the client is light. However, if the number of files to be uploaded must be uploaded in batches of four, five, or more, the amount of work for the person who operates the client becomes enormous.
An example of a case where such a situation is assumed is a printer driver.
The printer driver needs to be created for each OS and each language every time a function is added or a bug fix is made. Here, the language refers to natural languages such as Japanese, English, French and German. If there is a common version upgrade or bug fix for a function that is commonly installed in the printer driver of multiple printers, the multiple printers must be upgraded at the same time. . In that case, the number of files to be uploaded becomes enormous, and it is easy to imagine that the amount of work will become extremely heavy if it becomes necessary to enter an explanatory note by hand for each uploaded file. .
There is a method of omitting the input of the explanatory text, for example, predetermining the language supported by the printer driver and selecting it with a pull-down menu, etc., but this also requires the manual operation of “selecting”. Does not contribute to reducing the amount of work.

本発明は係る課題を解決し、多くのファイルをアップロードする際に、ファイル毎に付与する属性情報を自動的に付加することで、操作者の作業量を大幅に軽減する、文書作成方法、文書作成サーバ及び文書作成プログラムを提供することを目的とする。   The present invention solves such a problem, and automatically uploads attribute information assigned to each file when uploading a large number of files, thereby greatly reducing the amount of work for an operator, a document creation method, and a document An object is to provide a creation server and a document creation program.

上記課題を解決するために、本発明の文書作成方法は、クライアントから複数のファイル名を受信するファイル名受信ステップと、ファイル名に、第一の文字列とのパターンマッチングを実行する第一パターンマッチング実行ステップと、第一の文字列とのパターンマッチングが成功した場合には、第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第一のフラグ情報付加出力ステップと、第一の文字列とのパターンマッチングが失敗した場合には、第一の文字列に係る第一の名称にフラグ情報を付加せずに出力する第一のフラグ情報抑止出力ステップと、ファイル名に、第一の文字列とは異なる第二の文字列とのパターンマッチングを実行する第二パターンマッチング実行ステップと、第一の文字列とのパターンマッチングが成功した場合には、第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第二のフラグ情報付加出力ステップと、第一の文字列とのパターンマッチングが失敗した場合には、第一の文字列に係る第一の名称にフラグ情報を付加せずに出力する第二のフラグ情報抑止出力ステップと、複数のファイル名のそれぞれに、第一パターンマッチング実行ステップ、第一のフラグ情報付加出力ステップ、第一のフラグ情報抑止出力ステップ、第二パターンマッチング実行ステップ、第二のフラグ情報付加出力ステップ、第二のフラグ情報抑止出力ステップを実行するループ処理ステップと、ループ処理ステップの結果として、複数のファイル名毎に、第一の名称及び第二の名称と、第一の名称又は第二の名称のいずれかに付されるフラグ情報を付加した文書を出力する文書出力ステップとを有する。   In order to solve the above problems, a document creation method of the present invention includes a file name receiving step for receiving a plurality of file names from a client, and a first pattern for executing pattern matching between the file name and a first character string A first flag information addition output for adding a predetermined flag information to the first name relating to the first character string and outputting when the pattern matching between the matching execution step and the first character string is successful A first flag information suppression output step for outputting the step without adding flag information to the first name related to the first character string, when pattern matching with the first character string fails; A second pattern matching execution step for performing pattern matching with a second character string different from the first character string in the file name, and pattern matching with the first character string The second flag information addition output step for adding and outputting predetermined flag information to the first name relating to the first character string, and pattern matching with the first character string. In case of failure, a second flag information suppression output step for outputting without adding flag information to the first name relating to the first character string, and a first pattern matching execution for each of a plurality of file names A loop processing step for executing a step, a first flag information addition output step, a first flag information suppression output step, a second pattern matching execution step, a second flag information addition output step, and a second flag information suppression output step As a result of the loop processing step, the first name and the second name, and the first name or the second name are attached to each of the plurality of file names. And a document output step of outputting the document obtained by adding the flag information.

ファイル名に一定の規則を設け、これを解釈して属性情報を生成する処理を実行することで、面倒な属性情報の入力の手間がなくなると共に、複数のファイルを一括してアップロードできるので、入力作業量が大幅に軽減される。   By setting a certain rule for the file name, interpreting this, and executing the process to generate attribute information, there is no need to input troublesome attribute information, and you can upload multiple files at once. The amount of work is greatly reduced.

本発明により、多くのファイルをアップロードする際に、ファイル毎に付与する属性情報を自動的に付加することで、操作者の作業量を大幅に軽減する、文書作成方法、文書作成サーバ及び文書作成プログラムを提供できる。   According to the present invention, when a large number of files are uploaded, attribute information assigned to each file is automatically added to greatly reduce the amount of work for an operator, a document creation method, a document creation server, and a document creation Can provide a program.

本発明の実施形態の一例である、ファイル送信システムの全体像及び機能を示すブロック図である。It is a block diagram which shows the whole image and function of a file transmission system which is an example of embodiment of this invention. ファイル名の例と、そのファイル名に対応するルールテーブルの例である。An example of a file name and an example of a rule table corresponding to the file name. クライアントとwebサーバとの間の処理の流れを示すタイムチャートである。It is a time chart which shows the flow of processing between a client and a web server. ファイル名解釈cgiが実行する、ファイル名から言語を判定してhtml文書を作成する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which determines a language from a file name and produces an html document which file name interpretation cgi performs. ファイル名解釈cgiが生成するhtml文書の一例である。It is an example of the html document which file name interpretation cgi produces | generates. ファイル名解釈cgiが生成したhtml文書を、webブラウザで読み込んで表示部に表示させた際の、画面表示の一例である。It is an example of a screen display when an html document generated by the file name interpretation cgi is read by a web browser and displayed on a display unit. ファイル受信cgiが生成したダウンロード用html文書を、webブラウザで読み込んで表示部に表示させた際の、画面表示の一例である。It is an example of a screen display when the html document for download which file reception cgi produced | generated was read with the web browser, and was displayed on the display part. ファイル名解釈cgiとファイル受信cgiの処理を一体化させた、クライアントとwebサーバとの間の処理の流れを示すタイムチャートである。It is a time chart which shows the flow of a process between a client and a web server which unified the process of file name interpretation cgi and file reception cgi.

図1は、本発明の実施形態の一例である、ファイル送信システムの全体像及び機能を示すブロック図である。
ファイル送信システム101は、クライアント102とwebサーバ103がネットワーク104で接続されて構成される。
クライアント102は周知のパソコンであり、これにネットワークOSがインストールされ、周知のwebブラウザが稼働している。
クライアント102のwebブラウザとネットワークOSは、入出力制御部105を構成する。入出力制御部105は、ネットワーク104を通じてwebサーバ103から送信されるhtml(Hyper Text Markup Language)文書をディスプレイである表示部106に表示したり、キーボードやマウス等のポインティングデバイスである操作部107が出力する操作情報をhttp(Hyper Text Transfer Protocol)等の所定のフォーマットに変換して、ネットワーク104を通じてwebサーバ103に送信する。
FIG. 1 is a block diagram showing an overview and functions of a file transmission system, which is an example of an embodiment of the present invention.
The file transmission system 101 is configured by connecting a client 102 and a web server 103 via a network 104.
The client 102 is a well-known personal computer, on which a network OS is installed, and a well-known web browser is running.
The web browser of the client 102 and the network OS constitute an input / output control unit 105. The input / output control unit 105 displays an html (Hyper Text Markup Language) document transmitted from the web server 103 via the network 104 on the display unit 106 that is a display, or the operation unit 107 that is a pointing device such as a keyboard or a mouse. The operation information to be output is converted into a predetermined format such as http (Hyper Text Transfer Protocol) and transmitted to the web server 103 through the network 104.

webサーバ103は周知のサーバコンピュータであり、ネットワークOSがインストールされ、webサーバプログラム108が稼働している。なお、webサーバ103はパソコンであっても良い。
webサーバプログラム108はクライアント102から送信される要求に応じて、図示しない不揮発性ストレージ内に存在する案内html文書109を送信したり、ファイル名解釈部ともいえるファイル名解釈cgi(Common Gateway Interface)110或はファイル受信cgi111を実行してその実行結果を送信する。
The web server 103 is a well-known server computer, in which a network OS is installed, and a web server program 108 is running. The web server 103 may be a personal computer.
In response to a request transmitted from the client 102, the web server program 108 transmits a guide html document 109 existing in a nonvolatile storage (not shown), or a file name interpretation cgi (Common Gateway Interface) 110 that can be called a file name interpretation unit. Alternatively, the file reception cgi 111 is executed and the execution result is transmitted.

案内html文書109は、htmlのテキストファイルである。この案内html文書109には、クライアント102からアップロードする予定のファイルのファイル名を複数記入する、テキストボックスのフォームと、後述する言語判別ルールデータベース112に格納されているルールテーブルのうちの一つを選択する、プルダウンメニューのフォームが形成されている。   The guidance html document 109 is an html text file. This guidance html document 109 contains one of a text box form in which a plurality of file names to be uploaded from the client 102 are entered and a rule table stored in the language discrimination rule database 112 described later. A form of pull-down menu to be selected is formed.

フォームとは、htmlの仕様の一つであり、formタグと呼ばれる"<form ...>"で始まり、"</form>"で閉じられる。フォームが形成されているhtml文書では、所定のパラメータを入力し或は選択し、その後送信ボタンを押すことで、入力或は選択されたパラメータがhttpのPOSTメソッドで送信される。   A form is one of the specifications of html, and starts with "<form ...>" called a form tag and is closed with "</ form>". In an HTML document in which a form is formed, a predetermined parameter is input or selected, and then a transmission button is pressed, and the input or selected parameter is transmitted by the POST method of http.

クライアント102が案内html文書109を表示部106に表示した状態で、ユーザは図示しない不揮発性ストレージ内に設けられているアップロード用ファイルディレクトリ113に格納されているアップロード対象となるファイルを複数選択して、テキストボックスにファイル名を記入する。その後、ユーザが操作部107を操作して「送信」ボタンをクリックすると、ファイル名のテキストと、選択したルールテーブルの名称が、POSTメソッドにてファイル名解釈cgi110に向けて送信される。   With the client 102 displaying the guidance html document 109 on the display unit 106, the user selects a plurality of upload target files stored in the upload file directory 113 provided in the non-volatile storage (not shown). Enter the file name in the text box. Thereafter, when the user operates the operation unit 107 and clicks the “Send” button, the text of the file name and the name of the selected rule table are transmitted to the file name interpretation cgi 110 by the POST method.

webサーバプログラム108はクライアント102から送信された、ファイル名解釈cgi110に向けた要求を受信し、ファイル名解釈cgi110を起動すると共に、クライアント102からPOSTメソッドで送信された、ファイル名のテキストと、選択されたルールテーブルの名称を、ファイル名解釈cgi110に渡す。   The web server program 108 receives the request for the file name interpretation cgi 110 sent from the client 102, starts the file name interpretation cgi 110, and selects the text of the file name sent from the client 102 by the POST method and the selection. The name of the rule table is passed to the file name interpretation cgi110.

ファイル名解釈cgi110は、所定のパラメータを受け取ってテキストを出力する、周知の一般的なcgiである。ファイル名解釈cgi110は、ファイル名のテキストと、選択されたルールテーブルの名称を受け取り、言語判別ルールデータベース112から該当するルールテーブルを読み出して所定の処理を行った後、html文書のテキストを出力する。ファイル名解釈cgi110が出力したテキスト(html文書)は、webサーバプログラム108を通じてクライアント102に送信される。   The file name interpretation cgi 110 is a well-known general cgi that receives predetermined parameters and outputs text. The file name interpretation cgi 110 receives the text of the file name and the name of the selected rule table, reads the corresponding rule table from the language discrimination rule database 112 and performs a predetermined process, and then outputs the text of the html document. . The text (html document) output by the file name interpretation cgi 110 is transmitted to the client 102 through the web server program 108.

ファイル名解釈cgi110が作成したhtml文書には、先にクライアント102から受信したファイル名を、クライアント102によって指定されたルールテーブルで解釈して、ファイル名毎に言語の種別を判定した結果が、プルダウンメニュー形式のフォームで形成されている。また、このhtml文書には、ファイルの実体を送信するためのテキストボックスのフォームも形成されている。   In the html document created by the file name interpretation cgi 110, the file name received from the client 102 is interpreted using the rule table specified by the client 102, and the result of determining the language type for each file name is Formed in a menu form. This html document also has a text box form for transmitting the file entity.

クライアント102が、このファイル名解釈cgi110が作成したhtml文書を表示部106に表示した状態で、ユーザは図示しない不揮発性ストレージ内に設けられているアップロード用ファイルディレクトリ113に格納されているアップロード対象となるファイルを複数選択して、テキストボックスにファイル名を記入する。その後、ユーザが操作部107を操作して「送信」ボタンをクリックすると、予めhtml文書にフォームとして記載されていたファイル名と、選択されていた言語名と、ファイルの実体が、POSTメソッドにてファイル受信cgi111に向けて送信される。   With the client 102 displaying the html document created by the file name interpretation cgi 110 on the display unit 106, the user can select the upload target stored in the upload file directory 113 provided in the nonvolatile storage (not shown). Select multiple files and enter the file names in the text box. Thereafter, when the user operates the operation unit 107 and clicks the “Send” button, the file name previously described as a form in the html document, the selected language name, and the file entity are displayed in the POST method. It is sent to the file reception cgi 111.

webサーバプログラム108はクライアント102から送信された、ファイル受信cgi111に向けた要求を受信し、ファイル受信cgi111を起動すると共に、クライアント102からPOSTメソッドで送信された、ファイル名と、選択されていた言語名と、ファイルの実体を、ファイル受信cgi111に渡す。   The web server program 108 receives the request for the file reception cgi 111 transmitted from the client 102, activates the file reception cgi 111, and transmits the file name and the selected language transmitted from the client 102 by the POST method. The name and the file entity are passed to the file reception cgi 111.

ファイル受信cgi111は、ファイルの実体をファイル格納ディレクトリ114に出力すると共に、ファイル名のテキストと、選択されていた言語名とを受け取り、所定の処理を行った後、二つのhtml文書のテキストを出力する。一つはクライアント102に向けて送信するための、受信完了を示すhtml文書であり、もう一つは任意のクライアント102がファイル格納ディレクトリ114に格納されたファイルをダウンロードするためのリンクが埋め込まれた、ダウンロード用html文書115である。   The file reception cgi 111 outputs the file entity to the file storage directory 114, receives the file name text and the selected language name, performs predetermined processing, and outputs the texts of the two html documents. To do. One is an html document indicating completion of reception for transmission to the client 102, and the other is embedded with a link for downloading a file stored in the file storage directory 114 by an arbitrary client 102. Html document 115 for download.

ファイル受信cgi111が出力した、受信完了を示すテキスト(html文書)は、webサーバプログラム108を通じてクライアント102に送信される。その一方で、ファイル受信cgi111は、同時に不揮発性ストレージ内の所定の場所にダウンロード用html文書115も作成する。   The text indicating the completion of reception (html document) output from the file reception cgi 111 is transmitted to the client 102 through the web server program 108. On the other hand, the file reception cgi 111 simultaneously creates a download html document 115 at a predetermined location in the nonvolatile storage.

ダウンロード用html文書115が作成された以降は、任意のユーザがダウンロード用html文書115にアクセスすると、ダウンロード用html文書115に埋め込まれている、「Aタグ」と呼ばれるタグで形成されたリンクをクリックすることによって、所望のファイルをファイル格納ディレクトリ114からダウンロードすることができる。   After the download html document 115 is created, when an arbitrary user accesses the download html document 115, the user clicks a link formed with a tag called "A tag" embedded in the download html document 115. By doing so, a desired file can be downloaded from the file storage directory 114.

図2は、ファイル名の例と、そのファイル名に対応するルールテーブルの例である。ルールテーブルは、言語判別ルールデータベース112に格納されている。
図2(a)は、第一番目のファイル名の例であり、図2(b)は図2(a)の第一番目のファイル名の例に対応する、第一番目のルールテーブルである。
図2(a)のファイル名は、ファイル名のピリオド直前の最後の二文字が言語の種別を示すアルファベットの組み合わせである。図2(b)のルールテーブルは、入力されたファイル名がどの言語に該当するのかを判別するための、周知の正規表現文字列である。
FIG. 2 shows an example of a file name and an example of a rule table corresponding to the file name. The rule table is stored in the language determination rule database 112.
2A is an example of the first file name, and FIG. 2B is a first rule table corresponding to the example of the first file name in FIG. 2A. .
The file name in FIG. 2A is an alphabet combination in which the last two characters immediately before the period of the file name indicate the language type. The rule table in FIG. 2B is a well-known regular expression character string for determining which language the input file name corresponds to.

図2(b)に示す、正規表現の意味を説明する。「da\.(exe|zip|hqx)$」という正規表現文字列は、「da」、「\.」、「(exe|zip|hqx)」そして「$」に分けられる。
先ず、「da」は、「da」という文字列そのものと一致する(マッチ(match)する)ことを意味する。
次に、「\.」は、任意の一文字を示す「.」(ピリオド)という特殊文字に、特殊文字の意味を打ち消して文字そのものと一致するための「\」(円マーク或はバックスラッシュ)が前置されていることで、ピリオドそのものに一致することを意味する。
次に、「(exe|zip|hqx)」は、「(」及び「)」の括弧で囲まれた中の文字列をグルーピングすることを意味すると共に、「|」(縦線或はパイプライン)で区切ることで、複数の文字列をor条件で結合することを意味する。つまり、「exe」又は「zip」又は「hqx」のいずれか一つの文字列に一致することを意味する。
最後に「$」(ダラー)は正規表現の特殊文字で、文字列の終端に一致することを意味する。
The meaning of the regular expression shown in FIG. The regular expression character string “da \. (Exe | zip | hqx) $” is divided into “da”, “\.”, “(Exe | zip | hqx)”, and “$”.
First, “da” means that the character string “da” itself matches (matches).
Next, “\.” Is a special character “.” (Period) indicating an arbitrary character, and “\” (yen mark or backslash) to cancel the meaning of the special character and match the character itself. Is prefixed to match the period itself.
Next, “(exe | zip | hqx)” means grouping the character strings enclosed in parentheses “(” and “)” and “|” (vertical line or pipeline) ) Means to combine multiple character strings with the or condition. That is, it means that it matches one of the character strings “exe”, “zip”, or “hqx”.
Finally, “$” (dollar) is a special character of regular expression, which means it matches the end of the string.

つまり、「da\.(exe|zip|hqx)$」という正規表現文字列は、「ファイル名の終端にある拡張子の前にあるピリオドから手前二文字に、文字列"da"が存在する」時に、マッチすることとなる。
ファイル名解釈cgi110は、図示しない正規表現ライブラリの機能を用いて、以上に記した正規表現文字列に対して、入力されるファイル名が合致するのかの、パターンマッチングを行う。
In other words, the regular expression string “da \. (Exe | zip | hqx) $” has the string “da” in the first two characters before the extension at the end of the file name. ", It will match.
The file name interpretation cgi 110 uses a regular expression library function (not shown) to perform pattern matching as to whether the input file name matches the regular expression character string described above.

ルールテーブルは、第一番目のフィールドが言語種類の名称(「言語種類名称」フィールド)であり、第二番目のフィールドが正規表現文字列(「ファイル名パターン」フィールド)であり、識別子フィールドともいえる第三のフィールドがhtml文書を作成する際に使用する言語種類のパラメータ名称(「VALUE」フィールド)である。もし、ルールテーブルをプレーンテキストファイルで構成する場合は、フィールドセパレータは正規表現文字列と混同しない文字が望ましい。例えばタブや、周知の簡易言語AWKでサブセパレータ(SUBSEP)のデフォルト値として使用されている”¥034”、或はC言語等で用いられるNULL等、非表示のコントロールキャラクタが考えられる。   In the rule table, the first field is the name of the language type ("Language type name" field), the second field is the regular expression character string ("File name pattern" field), and can be said to be an identifier field. The third field is a parameter name (“VALUE” field) of a language type used when creating an html document. If the rule table is composed of plain text files, the field separator is preferably not confused with the regular expression string. For example, a non-display control character such as a tab, “¥ 034” used as the default value of the sub-separator (SUBSEP) in the well-known simple language AWK, or NULL used in the C language or the like can be considered.

図2(c)は、第二番目のファイル名の例であり、図2(d)は図2(c)の第二番目のファイル名の例に対応する、第二番目のルールテーブルである。
図2(c)のファイル名は、ファイル名の先頭の二文字が言語の種別を示すアルファベットの組み合わせである。図2(d)のルールテーブルも、図2(b)と同様の、周知の正規表現文字列である。
FIG. 2C is an example of the second file name, and FIG. 2D is a second rule table corresponding to the example of the second file name in FIG. .
The file name in FIG. 2C is a combination of alphabets in which the first two characters of the file name indicate the language type. The rule table in FIG. 2D is also a well-known regular expression character string similar to that in FIG.

図2(d)に示す、正規表現の意味を説明する。「^da」という正規表現文字列は、「^」と「da」に分けられる。
先ず、「^」(キャレット)は正規表現の特殊文字で、文字列の始端に一致することを意味する。
次に、「da」は、「da」という文字列そのものと一致する(マッチ(match)する)ことを意味する。
The meaning of the regular expression shown in FIG. The regular expression character string “^ da” is divided into “^” and “da”.
First, “^” (caret) is a special character of regular expression, which means it matches the beginning of the string.
Next, “da” means that the character string “da” itself matches (matches).

つまり、「^da」という正規表現文字列は、「ファイル名の先頭から文字列"da"が存在する」時に、マッチすることとなる。   That is, the regular expression character string “^ da” is matched when “the character string“ da ”exists from the beginning of the file name”.

図3は、クライアント102とwebサーバ103との間の処理の流れを示すタイムチャートである。
クライアント102の入出力制御部105は、ユーザが操作部107を操作することで操作部107から出力される操作情報を受けて、webサーバ103に対して、案内html文書109の送信を要求する(S301)。
webサーバプログラム108はクライアント102から送信された要求を受信すると(S302)、案内html文書109を送信する(S303)。
入出力制御部105は案内html文書109を受信すると、表示部106に表示する(S304)。
FIG. 3 is a time chart showing the flow of processing between the client 102 and the web server 103.
The input / output control unit 105 of the client 102 receives the operation information output from the operation unit 107 when the user operates the operation unit 107 and requests the web server 103 to transmit the guidance html document 109 ( S301).
When the web server program 108 receives the request transmitted from the client 102 (S302), it transmits a guidance html document 109 (S303).
When receiving the guidance html document 109, the input / output control unit 105 displays it on the display unit 106 (S304).

案内html文書109がクライアント102の表示部106に表示された状態で、ユーザはアップロード用ファイルディレクトリ113に格納されているアップロード対象となるファイルを複数選択して、テキストボックスにファイル名を記入する。その後、ユーザが操作部107を操作して「送信」ボタンをクリックすると、ファイル名のテキストと、選択したルールテーブルの名称が、POSTメソッドにてファイル名解釈cgi110に向けて送信される(S305)。   In a state where the guide html document 109 is displayed on the display unit 106 of the client 102, the user selects a plurality of files to be uploaded stored in the upload file directory 113, and enters the file names in the text boxes. Thereafter, when the user operates the operation unit 107 and clicks the “Send” button, the text of the file name and the name of the selected rule table are transmitted to the file name interpretation cgi 110 by the POST method (S305). .

webサーバプログラム108はクライアント102から送信された、ファイル名解釈cgi110に向けた要求を受信すると、ファイル名解釈cgi110を起動すると共に、クライアント102からPOSTメソッドで送信された、ファイル名のテキストと、選択されたルールテーブルの名称を、ファイル名解釈cgi110に渡す(S306)。
ファイル名解釈cgi110は、ファイル名のテキストと、選択されたルールテーブルの名称を受け取り、所定の処理を行った後、html文書のテキストを出力する。ファイル名解釈cgi110が出力したテキスト(html文書)は、webサーバプログラム108を通じてクライアント102に送信される(S307)。
入出力制御部105は、ファイル名解釈cgi110が作成したhtml文書を受信すると、表示部106に表示する(S308)。
When the web server program 108 receives the request for the file name interpretation cgi 110 sent from the client 102, the web server program 108 activates the file name interpretation cgi 110 and selects the text of the file name sent from the client 102 by the POST method and the selection. The rule table name thus passed is passed to the file name interpretation cgi 110 (S306).
The file name interpretation cgi 110 receives the text of the file name and the name of the selected rule table, performs a predetermined process, and outputs the text of the html document. The text (html document) output by the file name interpretation cgi 110 is transmitted to the client 102 through the web server program 108 (S307).
When receiving the html document created by the file name interpretation cgi 110, the input / output control unit 105 displays it on the display unit 106 (S308).

このファイル名解釈cgi110が作成したhtml文書がクライアント102の表示部106に表示された状態で、ユーザはアップロード用ファイルディレクトリ113に格納されているアップロード対象となるファイルを複数選択して、テキストボックスにファイル名を記入する。その後、ユーザが操作部107を操作して「確定」ボタンをクリックすると、予めhtml文書にフォームとして記載されていたファイル名と、選択されていた言語名(「VALUE」フィールドの値)と、ファイルの実体が、POSTメソッドにてファイル受信cgi111に向けて送信される(S309)。   While the html document created by the file name interpretation cgi 110 is displayed on the display unit 106 of the client 102, the user selects a plurality of files to be uploaded stored in the upload file directory 113, and enters the text box. Enter the file name. Thereafter, when the user operates the operation unit 107 and clicks the “confirm” button, the file name previously described as a form in the html document, the selected language name (value of the “VALUE” field), the file Is transmitted to the file reception cgi 111 by the POST method (S309).

webサーバプログラム108はクライアント102から送信された、ファイル受信cgi111に向けた要求を受信すると、ファイル受信cgi111を起動すると共に、クライアント102からPOSTメソッドで送信された、ファイル名と、選択されていた言語名と、ファイルの実体を、ファイル受信cgi111に渡す(S310)。   When the web server program 108 receives the request for the file reception cgi 111 transmitted from the client 102, the web server program 108 activates the file reception cgi 111 and sends the file name and the selected language transmitted from the client 102 by the POST method. The name and the file entity are passed to the file reception cgi 111 (S310).

ファイル受信cgi111は、ファイルの実体をファイル格納ディレクトリ114に出力すると共に、ファイル名のテキストと、選択されていた言語名とを受け取り、所定の処理を行った後、二つのhtml文書のテキストを出力する。一つはクライアント102に向けて送信するための、受信完了を示すhtml文書であり、もう一つは任意のクライアント102がファイル格納ディレクトリ114に格納されたファイルをダウンロードするためのリンクが埋め込まれた、ダウンロード用html文書115である。   The file reception cgi 111 outputs the file entity to the file storage directory 114, receives the file name text and the selected language name, performs predetermined processing, and outputs the texts of the two html documents. To do. One is an html document indicating completion of reception for transmission to the client 102, and the other is embedded with a link for downloading a file stored in the file storage directory 114 by an arbitrary client 102. Html document 115 for download.

ファイル受信cgi111が出力した、受信完了を示すテキスト(html文書)は、webサーバプログラム108を通じてクライアント102に送信される(S311)。
入出力制御部105は、ファイル受信cgi111が作成したhtml文書を受信すると、表示部106に表示する(S312)。
ファイル受信cgi111は、ステップS311において受信完了を示すテキスト(html文書)を作成してクライアント102に送信する一方で、同時に不揮発性ストレージ内の所定の場所にダウンロード用html文書115も作成する(S313)。
The text indicating the completion of reception (html document) output by the file reception cgi 111 is transmitted to the client 102 through the web server program 108 (S311).
Upon receiving the html document created by the file reception cgi 111, the input / output control unit 105 displays the html document on the display unit 106 (S312).
In step S311, the file reception cgi 111 creates a text (html document) indicating the completion of reception and transmits it to the client 102, and at the same time creates a download html document 115 in a predetermined location in the nonvolatile storage (S313). .

図4は、ファイル名解釈cgi110が実行する、ファイル名から言語を判定してhtml文書を作成する処理の流れを示すフローチャートである。図3のステップS307の中身に該当する。
webサーバプログラム108を通じて起動されると(S401)、ファイル名解釈cgi110は最初にhtml文書の上段部分を作成し、webサーバプログラム108を通じてクライアント102へ出力する(S402)。
次に、ファイル名解釈cgi110はwebサーバプログラム108から配列変数として引き渡されたファイル名の配列のうち、最初のファイル名を注目する(S403)。
FIG. 4 is a flowchart showing a flow of processing executed by the file name interpretation cgi 110 to determine a language from a file name and create an html document. This corresponds to the content of step S307 in FIG.
When activated through the web server program 108 (S401), the file name interpretation cgi 110 first creates the upper part of the html document and outputs it to the client 102 through the web server program 108 (S402).
Next, the file name interpretation cgi 110 pays attention to the first file name in the array of file names delivered as an array variable from the web server program 108 (S403).

これ以降はループ処理である。
先ず、ファイル名解釈cgi110はhtml文書中でフォームを形成する最初の部分を作成し、webサーバプログラム108を通じてクライアント102へ出力する(S404)。
次に、ファイル名解釈cgi110はwebサーバプログラム108から引き渡された、ユーザによって選択されたルールテーブルの名称に合致するルールテーブルを、言語判別ルールデータベース112から読み出し、ルールテーブルの最初のレコードの「ファイル名パターン」フィールドに記されている最初のルール(正規表現文字列)に注目する(S405)。
Subsequent processing is loop processing.
First, the file name interpretation cgi 110 creates the first part forming the form in the html document and outputs it to the client 102 through the web server program 108 (S404).
Next, the file name interpretation cgi 110 reads the rule table that is delivered from the web server program 108 and matches the name of the rule table selected by the user from the language determination rule database 112, and displays “file” in the first record of the rule table. Attention is focused on the first rule (regular expression character string) written in the “name pattern” field (S405).

次に、ファイル名解釈cgi110は図示しない正規表現ライブラリを用いて、現在注目しているルールテーブルのレコードに記されているルール(正規表現文字列)を読み込み、現在注目しているファイル名とマッチするか、判定する(S406)。
もし、ファイル名がルールにマッチしたら、現在注目しているルールテーブルの「言語種類名称」フィールドに記されている言語名称と、「VALUE」フィールドに記されているパラメータ名称を読み込み、「SELECTED」文字列を伴う「OPTION」タグを出力する(S407)。具体的には、例えば以下のようにタグを出力する。
「<OPTION VALUE="da" SELECTED>Dansk</OPTION>」
Next, the file name interpretation cgi 110 reads a rule (regular expression character string) described in the record of the currently focused rule table using a regular expression library (not shown) and matches the currently focused file name. It is determined whether or not (S406).
If the file name matches the rule, the language name written in the “language type name” field of the currently focused rule table and the parameter name written in the “VALUE” field are read, and “SELECTED” is read. An “OPTION” tag with a character string is output (S407). Specifically, for example, tags are output as follows.
"<OPTION VALUE =" da "SELECTED> Dansk </ OPTION>"

この「SELECTED」文字列は、プルダウンメニュー形式のフォームにおいて、デフォルトで選択される項目に付する文字列である。そして、本実施形態においては、クライアント102から入力されたファイル名が当該言語に対応すると判定したことを示す、フラグ情報でもある。   This “SELECTED” character string is a character string attached to an item selected by default in a pull-down menu form. In the present embodiment, it is also flag information indicating that it is determined that the file name input from the client 102 corresponds to the language.

ステップS406の時点で、もし、ファイル名がルールにマッチしなかったら、現在注目しているルールテーブルの「言語種類名称」フィールドに記されている言語名称と、「VALUE」フィールドに記されているパラメータ名称を読み込み、「SELECTED」文字列を伴わない「OPTION」タグを出力する(S408)。具体的には、例えば以下のようにタグを出力する。
「<OPTION VALUE="da">Dansk</OPTION>」
At the time of step S406, if the file name does not match the rule, it is written in the language name written in the “language type name” field of the currently focused rule table and in the “VALUE” field. The parameter name is read, and an “OPTION” tag without a “SELECTED” character string is output (S408). Specifically, for example, tags are output as follows.
"<OPTION VALUE =" da "> Dansk </ OPTION>"

ステップS407又はS408の後、ファイル名解釈cgi110は現在注目しているルールテーブルのレコードが最後のレコードであるか否か確認する(S409)。もし、まだ最後のレコードでないのなら(S409のNO)、ファイル名解釈cgi110はルールテーブルの現在注目しているレコードを次のレコードへ進めて(S410)、再度ステップS406から処理を繰り返す。
ステップS409で、最後のレコードに至ったのなら(S409のYES)、ファイル名解釈cgi110はステップS404に対応する、フォームを形成する最後の部分を作成し、webサーバプログラム108を通じてクライアント102へ出力する(S411)。
After step S407 or S408, the file name interpretation cgi 110 checks whether or not the rule table record currently focused on is the last record (S409). If it is not yet the last record (NO in S409), the file name interpretation cgi 110 advances the record currently focused on in the rule table to the next record (S410), and repeats the process from step S406 again.
If the last record is reached in step S409 (YES in S409), the file name interpretation cgi 110 creates the last part forming the form corresponding to step S404, and outputs it to the client 102 through the web server program 108. (S411).

ステップS411の後、ファイル名解釈cgi110は現在注目している配列変数中のファイル名が、配列変数の最後の要素であるか否か確認する(S412)。もし、まだ最後の要素でないのなら(S412のNO)、ファイル名解釈cgi110は配列変数の現在注目している要素を次の要素へ進めて(S413)、再度ステップS404から処理を繰り返す。   After step S411, the file name interpretation cgi 110 checks whether or not the file name in the currently focused array variable is the last element of the array variable (S412). If it is not yet the last element (NO in S412), the file name interpretation cgi 110 advances the element currently focused on in the array variable to the next element (S413), and repeats the process from step S404 again.

ステップS412で、最後の要素に至ったのなら(S412のYES)、ファイル名解釈cgi110はステップS402に対応する、html文書の後段部分を作成し、webサーバプログラム108を通じてクライアント102へ出力して(S414)、一連の処理を終了する(S415)。   If the last element has been reached in step S412, (YES in S412), the file name interpretation cgi110 creates the latter part of the html document corresponding to step S402, and outputs it to the client 102 through the web server program 108 ( S414), a series of processing ends (S415).

図5は、ファイル名解釈cgi110が生成するhtml文書の一例である。図5では、html文書中で、図4の対応するステップによって出力される箇所を明示している。但し、図5では図面の関係上、ファイル名を入力するためのテキストボックスについては省略していることに注意されたい。
図6(a)、(b)及び(c)は、ファイル名解釈cgi110が生成したhtml文書を、webブラウザで読み込んで表示部106に表示させた際の、画面表示の一例である。
FIG. 5 is an example of an html document generated by the file name interpretation cgi110. In FIG. 5, in the html document, the part output by the corresponding step of FIG. 4 is clearly shown. However, it should be noted that in FIG. 5, the text box for inputting the file name is omitted because of the drawing.
FIGS. 6A, 6 </ b> B, and 6 </ b> C are examples of screen displays when an html document generated by the file name interpretation cgi 110 is read by a web browser and displayed on the display unit 106.

図5に示したhtml文書は、図6(a)のように表示される。そして、プルダウンメニューをクリックすると、それぞれ図6(b)及び図6(c)のように表示される。文字色が反転している部分が、図4のステップS407で「SELECTED」文字列を伴って出力された結果である。   The html document shown in FIG. 5 is displayed as shown in FIG. When the pull-down menu is clicked, the screens are displayed as shown in FIGS. 6B and 6C, respectively. The portion in which the character color is inverted is the result of being output with the “SELECTED” character string in step S407 of FIG.

ユーザは、図6のように表示されたhtml文書の内容を確認した上で、html文書に別途設けられているテキストボックスに、図3のステップS305と同様に複数のファイル名を記入し、「確認」ボタンをクリックする。すると、「SELECTED」文字列が付されている「VALUE」フィールドの値が、ファイル名と共にファイル受信cgi111へ送信される。   After confirming the contents of the html document displayed as shown in FIG. 6, the user enters a plurality of file names in a text box separately provided in the html document, as in step S305 of FIG. Click the “Confirm” button. Then, the value of the “VALUE” field to which the “SELECTED” character string is attached is transmitted to the file reception cgi 111 together with the file name.

図7は、ファイル受信cgi111が生成したダウンロード用html文書115を、webブラウザで読み込んで表示部106に表示させた際の、画面表示の一例である。
ファイル受信cgi111は、クライアント102から、予めhtml文書にフォームとして記載されていたファイル名と、選択されていた言語名(「VALUE」フィールドの値)と、ファイルの実体を、POSTメソッドにて受信すると、「VALUE」フィールドの値で言語判別ルールデータベース112中のルールテーブルを検索し、「言語種類名称」フィールドの値を読み出して、ファイル名と共にAタグの説明文を構成する。こうして、言語名称とファイル名が並んだリンクがファイル毎に列挙されたhtml文書が作成される。
FIG. 7 is an example of a screen display when the download html document 115 generated by the file reception cgi 111 is read by the web browser and displayed on the display unit 106.
When the file reception cgi 111 receives from the client 102 the file name previously described as a form in the html document, the selected language name (value of the “VALUE” field), and the file entity by the POST method. Then, the rule table in the language discrimination rule database 112 is searched with the value of the “VALUE” field, the value of the “language type name” field is read, and the description of the A tag is constructed with the file name. In this way, an html document is created in which links in which language names and file names are arranged are listed for each file.

これまではファイルを一つずつアップロードする際にその属性情報(上記実施形態では「言語」が該当する)を手作業で選択しなければならなかったが、本実施形態では、ファイル名に規則を設け、これを解釈して属性情報を生成する処理をwebサーバ側に持たせたことで、面倒な属性情報の入力の手間がなくなると共に、複数のファイルを一括してアップロードできるので、入力作業量が大幅に軽減される。   Up to now, when uploading files one by one, the attribute information (in the above embodiment, “language” is applicable) must be selected manually. By providing the web server with processing to generate attribute information by interpreting this, there is no need for troublesome input of attribute information, and a plurality of files can be uploaded at once. Is greatly reduced.

本実施形態は、以下のような応用が可能である。
(1)ファイル名解釈cgi110とファイル受信cgi111の処理は、一体化することが可能である。つまり、複数のファイルを一括してアップロードするだけで、ファイル名から言語を判別して、ダウンロード用html文書115を生成することができる。
図8は、ファイル名解釈cgi110とファイル受信cgi111の処理を一体化させた、クライアント102とwebサーバ103との間の処理の流れを示すタイムチャートである。
This embodiment can be applied as follows.
(1) The processing of the file name interpretation cgi 110 and the file reception cgi 111 can be integrated. That is, by simply uploading a plurality of files at once, the language can be determined from the file name, and the download html document 115 can be generated.
FIG. 8 is a time chart showing a flow of processing between the client 102 and the web server 103 in which the processing of the file name interpretation cgi 110 and the file reception cgi 111 is integrated.

この応用例において、ステップS801は図3のステップS301に、ステップS802は図3のステップS302に、ステップS803は図3のステップS303に、ステップS804は図3のステップS304に対応する。そして、ステップS804でクライアント102の表示部106に表示される案内html文書は、ファイル名のテキストを送信する代わりに、複数のファイルの実体そのものを送信する(S805)。   In this application example, step S801 corresponds to step S301 in FIG. 3, step S802 corresponds to step S302 in FIG. 3, step S803 corresponds to step S303 in FIG. 3, and step S804 corresponds to step S304 in FIG. In step S804, the guidance html document displayed on the display unit 106 of the client 102 transmits the entity itself of a plurality of files instead of transmitting the text of the file name (S805).

ファイル受信cgiは、クライアントからファイルの実体と選択されたルールテーブルの名称を受信すると(S806)、受信したファイルをファイル格納ディレクトリ114に格納した後、ファイル名を抽出して、図4に示した内容と同様の処理を行った後、受信完了を示すhtml文書を作成して送信する(S807)。
ステップS808は、図3のステップS312に対応する。
ファイル受信cgiは、ステップS807を実行すると共に、ダウンロード用html文書を作成する(S809)。
When the file reception cgi receives the file entity and the name of the selected rule table from the client (S806), the received file is stored in the file storage directory 114, and then the file name is extracted and shown in FIG. After performing the same processing as the contents, an html document indicating completion of reception is created and transmitted (S807).
Step S808 corresponds to step S312 of FIG.
The file reception cgi executes step S807 and creates a download html document (S809).

(2)cgiの代わりにJava(登録商標)アプレットを用いてもよい。
(3)パターンマッチングでは正規表現を用いたが、パターンマッチングはこれに限られるものではなく、最低限、文字列の部分一致ができる手法であれば採用が可能である。
(2) A Java (registered trademark) applet may be used instead of cgi.
(3) Although regular expressions are used in pattern matching, pattern matching is not limited to this, and any technique that can at least partially match character strings can be used.

本実施形態では、ファイル送信システムを開示した。
これまではファイルを一つずつアップロードする際にその属性情報を手作業で選択しなければならなかったが、本実施形態では、ファイル名に一定の規則を設け、これを解釈して属性情報を生成する処理をwebサーバ側に持たせた。これにより、面倒な属性情報の入力の手間がなくなると共に、複数のファイルを一括してアップロードできるので、入力作業量が大幅に軽減される。
In the present embodiment, a file transmission system has been disclosed.
Up to now, when uploading files one by one, the attribute information had to be manually selected.In this embodiment, a certain rule is set for the file name, and this is interpreted as attribute information. The web server side has a process to generate. As a result, troublesome input of attribute information is eliminated, and a plurality of files can be uploaded in a lump, which greatly reduces the amount of input work.

以上、本発明の実施形態例について説明したが、本発明は上記実施形態例に限定されるものではなく、特許請求の範囲に記載した本発明の要旨を逸脱しない限りにおいて、他の変形例、応用例を含む。   The embodiment of the present invention has been described above. However, the present invention is not limited to the above-described embodiment, and other modifications may be made without departing from the gist of the present invention described in the claims. Includes application examples.

101…ファイル送信システム、102…クライアント、103…webサーバ、104…ネットワーク、105…入出力制御部、106…表示部、107…操作部、108…webサーバプログラム、109…案内html文書、110…ファイル名解釈cgi、111…ファイル受信cgi、112…言語判別ルールデータベース、113…アップロード用ファイルディレクトリ、114…ファイル格納ディレクトリ、115…ダウンロード用html文書   DESCRIPTION OF SYMBOLS 101 ... File transmission system, 102 ... Client, 103 ... Web server, 104 ... Network, 105 ... Input / output control part, 106 ... Display part, 107 ... Operation part, 108 ... Web server program, 109 ... Guidance html document, 110 ... File name interpretation cgi, 111 ... File reception cgi, 112 ... Language discrimination rule database, 113 ... Upload file directory, 114 ... File storage directory, 115 ... Download html document

Claims (8)

クライアントから複数のファイル名を受信するファイル名受信ステップと、
前記ファイル名に、第一の文字列とのパターンマッチングを実行する第一パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第一のフラグ情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記フラグ情報を付加せずに出力する第一のフラグ情報抑止出力ステップと、
前記ファイル名に、前記第一の文字列とは異なる第二の文字列とのパターンマッチングを実行する第二パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第二のフラグ情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記フラグ情報を付加せずに出力する第二のフラグ情報抑止出力ステップと、
前記複数のファイル名のそれぞれに、前記第一パターンマッチング実行ステップ、前記第一のフラグ情報付加出力ステップ、前記第一のフラグ情報抑止出力ステップ、前記第二パターンマッチング実行ステップ、前記第二のフラグ情報付加出力ステップ、前記第二のフラグ情報抑止出力ステップを実行するループ処理ステップと、
前記ループ処理ステップの結果として、前記複数のファイル名毎に、前記第一の名称及び前記第二の名称と、前記第一の名称又は前記第二の名称のいずれかに付される前記フラグ情報を付加した文書を出力する文書出力ステップと
を有する文書作成方法。
A file name receiving step for receiving a plurality of file names from a client;
A first pattern matching execution step for executing pattern matching with a first character string on the file name;
When pattern matching with the first character string has succeeded, a first flag information addition output step for adding a predetermined flag information to the first name related to the first character string and outputting it,
If pattern matching with the first character string fails, a first flag information suppression output step for outputting the first name related to the first character string without adding the flag information;
A second pattern matching execution step for performing pattern matching with a second character string different from the first character string in the file name;
When pattern matching with the first character string is successful, a second flag information addition output step for adding and outputting predetermined flag information to the first name related to the first character string;
A second flag information suppression output step that outputs the first name related to the first character string without adding the flag information when pattern matching with the first character string fails;
For each of the plurality of file names, the first pattern matching execution step, the first flag information addition output step, the first flag information suppression output step, the second pattern matching execution step, the second flag An information addition output step, a loop processing step for executing the second flag information suppression output step, and
As a result of the loop processing step, for each of the plurality of file names, the first name and the second name, and the flag information attached to either the first name or the second name A document creation method comprising: a document output step of outputting a document to which is added.
前記第一の文字列及び前記第二の文字列は、言語種類を判別する二文字以上の文字列を含むパターンマッチングルールであり、
前記第一の名称及び前記第二の名称は、言語種類を示す文字列であり、
前記複数のファイル名は、前記二文字以上の文字列を含む、請求項1記載の文書作成方法。
The first character string and the second character string are pattern matching rules including a character string of two or more characters for determining a language type,
The first name and the second name are character strings indicating language types,
The document creation method according to claim 1, wherein the plurality of file names include a character string of two or more characters.
クライアントから複数のファイルを受信するファイル受信ステップと、
前記複数のファイルに付されているファイル名に、第一の文字列とのパターンマッチングを実行する第一パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第一のフラグ情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記フラグ情報を付加せずに出力する第一のフラグ情報抑止出力ステップと、
前記ファイル名に、前記第一の文字列とは異なる第二の文字列とのパターンマッチングを実行する第二パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第二のフラグ情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記フラグ情報を付加せずに出力する第二のフラグ情報抑止出力ステップと、
前記複数のファイルに付されている複数のファイル名のそれぞれに、前記第一パターンマッチング実行ステップ、前記第一のフラグ情報付加出力ステップ、前記第一のフラグ情報抑止出力ステップ、前記第二パターンマッチング実行ステップ、前記第二のフラグ情報付加出力ステップ、前記第二のフラグ情報抑止出力ステップを実行するループ処理ステップと、
前記ループ処理ステップの結果として、前記複数のファイル名毎に、前記第一の名称及び前記第二の名称と、前記第一の名称又は前記第二の名称のいずれかに付される前記フラグ情報を付加した文書を出力する文書出力ステップと
を有する文書作成方法。
A file receiving step for receiving a plurality of files from a client;
A first pattern matching execution step for performing pattern matching with a first character string on the file names attached to the plurality of files;
When pattern matching with the first character string has succeeded, a first flag information addition output step for adding a predetermined flag information to the first name related to the first character string and outputting it,
If pattern matching with the first character string fails, a first flag information suppression output step for outputting the first name related to the first character string without adding the flag information;
A second pattern matching execution step for performing pattern matching with a second character string different from the first character string in the file name;
When pattern matching with the first character string is successful, a second flag information addition output step for adding and outputting predetermined flag information to the first name related to the first character string;
A second flag information suppression output step that outputs the first name related to the first character string without adding the flag information when pattern matching with the first character string fails;
For each of a plurality of file names attached to the plurality of files, the first pattern matching execution step, the first flag information addition output step, the first flag information suppression output step, the second pattern matching A loop processing step for executing an execution step, the second flag information addition output step, and the second flag information suppression output step;
As a result of the loop processing step, for each of the plurality of file names, the first name and the second name, and the flag information attached to either the first name or the second name A document creation method comprising: a document output step of outputting a document to which is added.
前記第一の文字列及び前記第二の文字列は、言語種類を判別する二文字以上の文字列を含むパターンマッチングルールであり、
前記第一の名称及び前記第二の名称は、言語種類を示す文字列であり、
前記複数のファイル名は、前記二文字以上の文字列を含む、請求項3記載の文書作成方法。
The first character string and the second character string are pattern matching rules including a character string of two or more characters for determining a language type,
The first name and the second name are character strings indicating language types,
The document creation method according to claim 3, wherein the plurality of file names include a character string of two or more characters.
クライアントから入力される複数のファイル名に付与する属性情報の名称が格納される属性情報名称フィールドと、前記ファイル名が所定の文字列を含んでいるか否か判別するための文字列パターンが格納されるファイル名パターンフィールドと、各レコードを一意に識別する識別子が格納される識別子フィールドとを有するルールテーブルと、
前記クライアントから前記複数のファイル名を受信し、前記複数のファイル名に対して、前記ルールテーブルの各レコードの前記ファイル名パターンフィールドから前記文字列パターンを読み出し、前記文字列パターンとのパターンマッチングを実行し、前記パターンマッチングが成功した場合には前記属性情報の名称に所定のフラグ情報を付加して出力し、前記パターンマッチングが失敗した場合には前記属性情報の名称に前記所定のフラグ情報を付加せずに出力する処理を繰り返して、前記複数のファイル名毎に、前記ルールテーブルの全レコードの前記属性情報の名称と、前記パターンマッチングが成功した前記属性情報の名称に係る前記フラグ情報を付加した文書を出力するファイル名解釈部と
を具備する文書作成サーバ。
An attribute information name field for storing names of attribute information to be assigned to a plurality of file names input from a client, and a character string pattern for determining whether or not the file name includes a predetermined character string are stored. A rule table having a file name pattern field and an identifier field in which an identifier for uniquely identifying each record is stored;
The plurality of file names are received from the client, the character string pattern is read from the file name pattern field of each record of the rule table for the plurality of file names, and pattern matching with the character string pattern is performed. When the pattern matching is successful, a predetermined flag information is added to the attribute information name and output, and when the pattern matching is unsuccessful, the predetermined flag information is added to the attribute information name. By repeating the process of outputting without adding, for each of the plurality of file names, the name of the attribute information of all the records in the rule table and the flag information relating to the name of the attribute information for which the pattern matching has been successful A document creation server comprising a file name interpretation unit for outputting an added document.
クライアントから送信される複数のファイルに付与する属性情報の名称が格納される属性情報名称フィールドと、前記複数のファイルのファイル名が所定の文字列を含んでいるか否か判別するための文字列パターンが格納されるファイル名パターンフィールドと、各レコードを一意に識別する識別子が格納される識別子フィールドとを有するルールテーブルと、
前記クライアントから前記複数のファイルを受信し、前記複数のファイル名に対して、前記ルールテーブルの各レコードの前記ファイル名パターンフィールドから前記文字列パターンを読み出し、前記文字列パターンとのパターンマッチングを実行し、前記パターンマッチングが成功した場合には前記属性情報の名称に所定のフラグ情報を付加して出力し、前記パターンマッチングが失敗した場合には前記属性情報の名称に前記所定のフラグ情報を付加せずに出力する処理を繰り返して、前記複数のファイル名毎に、前記ルールテーブルの全レコードの前記属性情報の名称と、前記パターンマッチングが成功した前記属性情報の名称に係る前記フラグ情報を付加した文書を出力するファイル名解釈部と
を具備する文書作成サーバ。
An attribute information name field for storing names of attribute information to be assigned to a plurality of files transmitted from the client, and a character string pattern for determining whether or not the file names of the plurality of files include a predetermined character string A rule table having a file name pattern field in which is stored, and an identifier field in which an identifier for uniquely identifying each record is stored;
Receiving the plurality of files from the client, reading the character string pattern from the file name pattern field of each record of the rule table for the plurality of file names, and performing pattern matching with the character string pattern If the pattern matching is successful, a predetermined flag information is added to the name of the attribute information and output. If the pattern matching is unsuccessful, the predetermined flag information is added to the name of the attribute information. The output process is repeated without adding the attribute information name of all the records in the rule table and the flag information related to the name of the attribute information for which the pattern matching has succeeded for each of the plurality of file names. A document creation server comprising a file name interpretation unit for outputting the document.
コンピュータに、
クライアントから複数のファイル名を受信するファイル名受信ステップと、
前記ファイル名に、第一の文字列とのパターンマッチングを実行する第一パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定の属性情報を付加して出力する第一の属性情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記属性情報を付加せずに出力する第一の属性情報抑止出力ステップと、
前記ファイル名に、前記第一の文字列とは異なる第二の文字列とのパターンマッチングを実行する第二パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定の属性情報を付加して出力する第二の属性情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記属性情報を付加せずに出力する第二の属性情報抑止出力ステップと、
前記複数のファイル名のそれぞれに、前記第一パターンマッチング実行ステップ、前記第一の属性情報付加出力ステップ、前記第一の属性情報抑止出力ステップ、前記第二パターンマッチング実行ステップ、前記第二の属性情報付加出力ステップ、前記第二の属性情報抑止出力ステップを実行するループ処理ステップと、
前記ループ処理ステップの結果として、前記複数のファイル名毎に、前記第一の名称及び前記第二の名称と、前記第一の名称又は前記第二の名称のいずれかに付される前記属性情報を付加した文書を出力する文書出力ステップと
を実行させる、文書作成プログラム。
On the computer,
A file name receiving step for receiving a plurality of file names from a client;
A first pattern matching execution step for executing pattern matching with a first character string on the file name;
If the pattern matching with the first character string is successful, a first attribute information addition output step for adding and outputting predetermined attribute information to the first name related to the first character string;
When pattern matching with the first character string fails, a first attribute information suppression output step for outputting without adding the attribute information to the first name related to the first character string;
A second pattern matching execution step for performing pattern matching with a second character string different from the first character string in the file name;
If the pattern matching with the first character string has succeeded, a second attribute information addition output step for adding and outputting predetermined attribute information to the first name related to the first character string;
If pattern matching with the first character string fails, a second attribute information suppression output step for outputting the first name related to the first character string without adding the attribute information;
For each of the plurality of file names, the first pattern matching execution step, the first attribute information addition output step, the first attribute information suppression output step, the second pattern matching execution step, the second attribute An information addition output step, a loop processing step for executing the second attribute information suppression output step,
As a result of the loop processing step, the attribute information attached to either the first name or the second name and either the first name or the second name for each of the plurality of file names. A document creation program for executing a document output step for outputting a document to which is added.
コンピュータに、
クライアントから複数のファイルを受信するファイル受信ステップと、
前記複数のファイルに付されているファイル名に、第一の文字列とのパターンマッチングを実行する第一パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第一のフラグ情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記フラグ情報を付加せずに出力する第一のフラグ情報抑止出力ステップと、
前記ファイル名に、前記第一の文字列とは異なる第二の文字列とのパターンマッチングを実行する第二パターンマッチング実行ステップと、
前記第一の文字列とのパターンマッチングが成功した場合には、前記第一の文字列に係る第一の名称に所定のフラグ情報を付加して出力する第二のフラグ情報付加出力ステップと、
前記第一の文字列とのパターンマッチングが失敗した場合には、前記第一の文字列に係る第一の名称に前記フラグ情報を付加せずに出力する第二のフラグ情報抑止出力ステップと、
前記複数のファイルに付されている複数のファイル名のそれぞれに、前記第一パターンマッチング実行ステップ、前記第一のフラグ情報付加出力ステップ、前記第一のフラグ情報抑止出力ステップ、前記第二パターンマッチング実行ステップ、前記第二のフラグ情報付加出力ステップ、前記第二のフラグ情報抑止出力ステップを実行するループ処理ステップと、
前記ループ処理ステップの結果として、前記複数のファイル名毎に、前記第一の名称及び前記第二の名称と、前記第一の名称又は前記第二の名称のいずれかに付される前記フラグ情報を付加した文書を出力する文書出力ステップと
を実行させる、文書作成プログラム。
On the computer,
A file receiving step for receiving a plurality of files from a client;
A first pattern matching execution step for performing pattern matching with a first character string on the file names attached to the plurality of files;
When pattern matching with the first character string has succeeded, a first flag information addition output step for adding a predetermined flag information to the first name related to the first character string and outputting it,
If pattern matching with the first character string fails, a first flag information suppression output step for outputting the first name related to the first character string without adding the flag information;
A second pattern matching execution step for performing pattern matching with a second character string different from the first character string in the file name;
When pattern matching with the first character string is successful, a second flag information addition output step for adding and outputting predetermined flag information to the first name related to the first character string;
A second flag information suppression output step that outputs the first name related to the first character string without adding the flag information when pattern matching with the first character string fails;
For each of a plurality of file names attached to the plurality of files, the first pattern matching execution step, the first flag information addition output step, the first flag information suppression output step, the second pattern matching A loop processing step for executing an execution step, the second flag information addition output step, and the second flag information suppression output step;
As a result of the loop processing step, for each of the plurality of file names, the first name and the second name, and the flag information attached to either the first name or the second name A document creation program for executing a document output step for outputting a document to which is added.
JP2010028055A 2010-02-10 2010-02-10 Document creation method, document creation server, and document creation program Active JP5509899B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010028055A JP5509899B2 (en) 2010-02-10 2010-02-10 Document creation method, document creation server, and document creation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010028055A JP5509899B2 (en) 2010-02-10 2010-02-10 Document creation method, document creation server, and document creation program

Publications (2)

Publication Number Publication Date
JP2011164999A true JP2011164999A (en) 2011-08-25
JP5509899B2 JP5509899B2 (en) 2014-06-04

Family

ID=44595598

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010028055A Active JP5509899B2 (en) 2010-02-10 2010-02-10 Document creation method, document creation server, and document creation program

Country Status (1)

Country Link
JP (1) JP5509899B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05241923A (en) * 1992-03-03 1993-09-21 Hitachi Ltd File converting device
JP2006260197A (en) * 2005-03-17 2006-09-28 Toshiba Corp Electronic file storage system
JP2009223882A (en) * 2008-02-18 2009-10-01 Just Syst Corp Data processing apparatus and data processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05241923A (en) * 1992-03-03 1993-09-21 Hitachi Ltd File converting device
JP2006260197A (en) * 2005-03-17 2006-09-28 Toshiba Corp Electronic file storage system
JP2009223882A (en) * 2008-02-18 2009-10-01 Just Syst Corp Data processing apparatus and data processing method

Also Published As

Publication number Publication date
JP5509899B2 (en) 2014-06-04

Similar Documents

Publication Publication Date Title
JP4306991B2 (en) Data processing apparatus and method, computer program, and storage medium
Evjen Professional xml
KR20200034660A (en) Facilitated user interaction
JP2006252001A (en) Document processor
West et al. Practical PHP 7, MySQL 8, and MariaDB Website Databases
WO2014102935A1 (en) Electronic manual viewing device and system
Aquino et al. Front-end web development: The big nerd ranch guide
US20150113375A1 (en) Search Driven Navigation for User Interface to Application Program
Penberthy Beginning ASP. NET for Visual Studio 2015
JP7014960B2 (en) Information processing equipment, servers, their processing methods and programs
WO2010087071A1 (en) Web server system and program
JP5509899B2 (en) Document creation method, document creation server, and document creation program
JP6303390B2 (en) Printing apparatus, printing system, and program
Bretet Spring mvc cookbook
Munro ASP. NET MVC 5 with Bootstrap and Knockout. js: Building Dynamic, Responsive Web Applications
US10296588B2 (en) Build of material production system
Radford Learning Web Development with Bootstrap and AngularJS
TW201508505A (en) Input and instant displaying method with multiple character-set character codes, system and apparatus
WO2021069905A1 (en) User interface generation
JP4715104B2 (en) General-purpose GUI device and general-purpose GUI program
JP3589400B2 (en) Server client system, network server, client, form providing method, storage medium, and program transmission device
Harmon Dojo: Using the Dojo JavaScript Library to Build Ajax Applications
US20210342106A1 (en) Program, method, and device for generating job data
Duarte Vaadin 7 UI Design by Example: Beginner's Guide
Monteiro AngularJS Directives Cookbook

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131119

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131206

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: 20140225

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140310