JP2020095329A - Substitution method, computer program, and information processing system - Google Patents

Substitution method, computer program, and information processing system Download PDF

Info

Publication number
JP2020095329A
JP2020095329A JP2018230865A JP2018230865A JP2020095329A JP 2020095329 A JP2020095329 A JP 2020095329A JP 2018230865 A JP2018230865 A JP 2018230865A JP 2018230865 A JP2018230865 A JP 2018230865A JP 2020095329 A JP2020095329 A JP 2020095329A
Authority
JP
Japan
Prior art keywords
display
character string
replacement
processing target
common
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
JP2018230865A
Other languages
Japanese (ja)
Other versions
JP7270369B2 (en
Inventor
諒 田中
Ryo Tanaka
諒 田中
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2018230865A priority Critical patent/JP7270369B2/en
Publication of JP2020095329A publication Critical patent/JP2020095329A/en
Application granted granted Critical
Publication of JP7270369B2 publication Critical patent/JP7270369B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

To provide a technique for allowing a user to easily substitute a character string.SOLUTION: A method for substituting a character string according to an aspect of the present disclosure includes the steps for: determining, on condition that a plurality of process object character strings are selected, a common section and a non-common section in the plurality of process object character strings (S110); displaying a single character string corresponding to the plurality of process object character strings while the determined common section is represented in corresponding common characters, and the non-common section is represented in common symbols (S120); accepting a change operation to the single character string displayed on the display (S150); and substituting each of the plurality of process object character strings to a character string according to a changed character string being a single character string after changing through the change operation on the basis of the changed character string (S155 and S185).SELECTED DRAWING: Figure 3

Description

本開示は、置換方法、コンピュータプログラム、及び情報処理システムに関する。 The present disclosure relates to a replacement method, a computer program, and an information processing system.

複数のデータファイルに関して、ファイル名に含まれる共通の文字列を一括置換する技術が既に知られている(例えば、特許文献1参照)。複数のファイル名を表示する際に、これら複数のファイル名を比較し、その比較結果に基づき、それぞれのファイル名の表示形態を変更する技術も知られている(例えば、特許文献2参照)。正規表現を用いて複数の文字列を置換する技術も知られている。 A technique of collectively replacing a common character string included in a file name with respect to a plurality of data files is already known (for example, see Patent Document 1). A technique is also known in which, when displaying a plurality of file names, the plurality of file names are compared with each other and the display form of each file name is changed based on the comparison result (see, for example, Patent Document 2). A technique of replacing a plurality of character strings by using a regular expression is also known.

特開2000−330842号公報JP 2000-330842 A 特開2009−163561号公報JP, 2009-163561, A

正規表現を用いた従来の置換技術は、様々な形態の文字列置換に活用できるが、文字列を置換するための置換式の記述に自由度が高く、置換のために高度な知識を必要とする。即ち、この技術を扱うためには、ユーザは、学習コストの高い正規表現を習得しなければならない。更には、置換作業の度に、置換対象の複数の文字列を分析して、目的の置換結果を生むように置換式を手作業で作成しなければならない。 Conventional replacement techniques using regular expressions can be used for various forms of character string replacement, but there is a high degree of freedom in describing replacement expressions for replacing character strings, and a high degree of knowledge is required for replacement. To do. That is, in order to handle this technique, the user has to learn a regular expression which has a high learning cost. Furthermore, each time a replacement operation is performed, a plurality of character strings to be replaced must be analyzed, and a replacement expression must be manually created so as to produce a desired replacement result.

特許文献1記載の技術は、作業性の点で優れているものの、この技術では、自由度が低い。この技術によれば、ユーザは、置換対象の複数の文字列に関して、コンピュータにより抽出された共通の文字列を、別の文字列に置換できる。しかしながら、それ以外の自由な置換を行うことができない。従って、特許文献1記載の技術では、ユーザが目的とする置換結果を生じさせるようには、複数の文字列を置換できない場合も多い。 Although the technique described in Patent Document 1 is excellent in workability, this technique has a low degree of freedom. According to this technique, the user can replace the common character string extracted by the computer with respect to the plurality of character strings to be replaced with another character string. However, no other free replacement is possible. Therefore, in the technique described in Patent Document 1, it is often the case that a plurality of character strings cannot be replaced so that the user produces a desired replacement result.

そこで、本開示の一側面によれば、自由度の高い文字列の置換作業をユーザが従来よりも簡単に行うことが可能な技術を提供できることが望ましい。 Therefore, according to an aspect of the present disclosure, it is desirable to be able to provide a technique that allows a user to more easily perform a character string replacement operation than in the past.

本開示の一側面によれば、コンピュータにより実行される文字列の置換方法が提供される。この方法は、ユーザインタフェースを通じて複数の処理対象文字列が選択されたことを条件に、複数の処理対象文字列のそれぞれにおける共通部分及び非共通部分を判別するステップを含む。共通部分は、複数の処理対象文字列の間で共通する文字部分である。非共通部分は、複数の処理対象文字列の間で共通しない文字部分である。 According to an aspect of the present disclosure, a computer-implemented method for replacing a character string is provided. The method includes a step of determining a common part and a non-common part in each of the plurality of process target character strings on condition that a plurality of process target character strings are selected through the user interface. The common part is a character part common to a plurality of processing target character strings. The non-common part is a character part that is not common among a plurality of processing target character strings.

この方法は更に、複数の処理対象文字列に対応する単一文字列であって、上記判別するステップにより判別された共通部分を、対応する共通文字で表し、非共通部分を、対応する符号で表す単一文字列を、ディスプレイに表示させるステップを含む。 In this method, a common character string that is a single character string corresponding to a plurality of character strings to be processed and that is discriminated by the discrimination step is represented by a corresponding common character, and a non-common portion is represented by a corresponding code. The step of displaying the single character string on the display is included.

この方法は更に、ディスプレイに表示された単一文字列に対する変更操作を、ユーザインタフェースを通じて受け付けるステップと、変更操作による変更後の単一文字列である変更文字列に基づいて、複数の処理対象文字列のそれぞれを、変更文字列に従う文字列に置換するステップと、を含む。 The method further includes a step of accepting a change operation for a single character string displayed on the display through a user interface, and a plurality of process target character strings based on the change character string which is the single character string after the change operation. Replacing each with a string that conforms to the modified string.

この置換方法によれば、単一文字列に対する変更操作により、自由度の高い変更操作を、ユーザインタフェースを通じて受け付けることができる。一例によれば、共通文字の変更操作、及び、符号と共通文字との間の記載順の変更操作を受け付けることができる。 According to this replacement method, a modification operation with a high degree of freedom can be accepted through a user interface by a modification operation on a single character string. According to an example, a common character changing operation and a description order changing operation between the code and the common character can be accepted.

この変更操作は、正規表現を用いた従来の置換技術のようには、高度な知識を必要としない。更には、複数の処理対象文字列の分析もコンピュータにより実現されるので、ユーザは、自ら分析を行い、一から置換式を組み立てる必要もない。置換式に対応するコンピュータにより生成された単一文字列に対する変更操作で、ユーザは、自由度の高い置換作業を行うことができる。 This modification operation does not require a high degree of knowledge, unlike the conventional replacement technique using a regular expression. Furthermore, since the analysis of a plurality of processing target character strings is also realized by the computer, the user does not need to perform the analysis by himself and assemble a replacement formula from scratch. The user can perform the replacement work with a high degree of freedom by the change operation for the single character string generated by the computer corresponding to the replacement expression.

従って、本開示の一側面によれば、自由度の高い文字列の置換作業をユーザが従来よりも簡単に行うことが可能な技術を提供することができる。 Therefore, according to one aspect of the present disclosure, it is possible to provide a technique that allows a user to more easily perform a character string replacement operation than ever before.

本開示の一側面によれば、上記置換方法は、置換指示を、ユーザインタフェースを通じて受け付けるステップを含んでいてもよい。上記置換するステップでは、置換指示がユーザインタフェースを通じて入力されたことを条件に、複数の処理対象文字列のそれぞれを、変更文字列に従う文字列に置換することができる。 According to one aspect of the present disclosure, the replacement method may include a step of receiving a replacement instruction through a user interface. In the replacing step, each of the plurality of processing target character strings can be replaced with a character string according to the changed character string, on the condition that the replacement instruction is input through the user interface.

本開示の一側面によれば、上記置換方法は更に、変更文字列に、使用不可文字が含まれる場合には、置換指示が入力される前に、使用不可文字が含まれることを警告するメッセージを、ディスプレイに表示させるステップを更に含んでいてもよい。本開示の一側面によれば、上記置換方法は更に、複数の処理対象文字列の少なくとも一つが置換不可能な状態にある場合には、置換指示が入力される前に、置換不可能であることを警告するメッセージを、ディスプレイに表示させるステップを含んでいてもよい。 According to an aspect of the present disclosure, the replacement method further includes a message that warns that an unusable character is included before a replacement instruction is input when the modified character string includes the unusable character. May be displayed on the display. According to an aspect of the present disclosure, the replacement method is further impossible before the replacement instruction is input when at least one of the plurality of processing target character strings is in a non-replaceable state. The step of displaying a message warning the fact on the display may be included.

上記警告によれば、置換指示に従う文字列の置換を行うことができないことで、置換指示前に行うユーザの確認作業等の一部作業が無駄になるのを抑制することができる。従って、本開示の一側面によれば、利便性の高い置換方法を提供することができる。 According to the above warning, since it is not possible to replace the character string in accordance with the replacement instruction, it is possible to prevent some work such as user confirmation work before the replacement instruction from being wasted. Therefore, according to one aspect of the present disclosure, it is possible to provide a highly convenient replacement method.

本開示の一側面によれば、上記置換方法は更に、単一文字列とは別に、複数の処理対象文字列を、ディスプレイに表示させるステップを含んでいてもよい。 According to one aspect of the present disclosure, the replacement method may further include a step of displaying a plurality of processing target character strings on the display, in addition to the single character string.

本開示の一側面によれば、上記置換方法は更に、単一文字列とは別に、複数の処理対象文字列を、ディスプレイに表示させ、更には、置換指示が入力される前に、複数の処理対象文字列を仮に変更文字列に基づき置換した場合の置換後の文字列を、複数の処理対象文字列に代えて、又は加えて、ディスプレイに表示させるように、ディスプレイを制御するステップを含んでいてもよい。このディスプレイ制御によれば、ユーザによる置換結果の正確な事前把握が可能である。 According to one aspect of the present disclosure, the replacement method further causes a plurality of processing target character strings to be displayed on the display, separately from the single character string, and further performs a plurality of processing before the replacement instruction is input. In the case where the target character string is tentatively replaced based on the changed character string, the replaced character string is replaced with or added to the plurality of processing target character strings, and a step of controlling the display is included. You may stay. According to this display control, it is possible for the user to accurately grasp the replacement result in advance.

本開示の一側面によれば、ディスプレイを制御するステップでは、ユーザインタフェースを通じた切替指示に基づいて、ディスプレイにおける複数の処理対象文字列及び置換後の文字列の少なくとも一方の表示及び非表示を切り替えるように、ディスプレイを制御してもよい。 According to one aspect of the present disclosure, in the step of controlling the display, display and non-display of at least one of the plurality of processing target character strings and the replaced character string on the display are switched based on a switching instruction through the user interface. As such, the display may be controlled.

本開示の一側面によれば、上記置換方法は更に、単一文字列に、複数の非共通部分に対応する複数の符号が含まれる場合に、複数の符号のそれぞれに異なる表示形態を割り当てるステップを含んでいてもよい。ディスプレイに単一文字列を表示させるステップでは、複数の符号のそれぞれを割り当てられた表示形態で表示するように、ディスプレイに、複数の符号を含む単一文字列を表示させてもよい。ディスプレイを制御するステップでは、複数の処理対象文字列のそれぞれに含まれる非共通部分のそれぞれを、対応する符号に割り当てられた表示形態で表示するように、ディスプレイに、複数の処理対象文字列を表示させてもよい。 According to an aspect of the present disclosure, when the single character string includes a plurality of codes corresponding to a plurality of non-common portions, the replacement method further includes a step of assigning a different display form to each of the plurality of codes. May be included. In the step of displaying the single character string on the display, the display may display the single character string including the plurality of codes such that each of the plurality of codes is displayed in the assigned display form. In the step of controlling the display, the plurality of processing target character strings are displayed on the display so that each of the non-common portions included in each of the plurality of processing target character strings is displayed in the display form assigned to the corresponding code. It may be displayed.

表示形態の相違により、単一文字列及び複数の処理対象文字列を、ユーザが対応関係を識別可能に表示すれば、ユーザによる置換作業の作業性が向上する。ここでいう表示形態の例には、表示色により定義される表示形態が含まれる。例えば、上記割り当てるステップでは、複数の符号のそれぞれに異なる色が割り当てられてもよく、複数の符号のそれぞれは、割り当てられた色で表示されてもよく、非共通部分のそれぞれは、対応する符号に割り当てられた色で表示されてもよい。 Due to the difference in the display form, if the single character string and the plurality of processing target character strings are displayed so that the user can identify the correspondence, the workability of the replacement work by the user is improved. Examples of the display form here include a display form defined by a display color. For example, in the assigning step, different colors may be assigned to each of the plurality of codes, each of the plurality of codes may be displayed in the assigned color, and each of the non-common portions may have a corresponding code. May be displayed in the color assigned to.

本開示の一側面によれば、複数の処理対象文字列のそれぞれは、ファイルシステムにおける個別のデータファイル及びフォルダの少なくとも一方の名称を表す文字列であってもよい。本開示の方法をファイルシステムに適用することにより、ファイルシステムで取り扱うデータファイルの名称変換に関する作業性が向上する。 According to an aspect of the present disclosure, each of the plurality of processing target character strings may be a character string that represents the name of at least one of an individual data file and folder in the file system. By applying the method of the present disclosure to a file system, workability regarding name conversion of a data file handled by the file system is improved.

本開示の一側面によれば、複数の処理対象文字列は、スプレッドシートにおける複数のセル内の文字列であってもよい。本開示の方法をスプレッドシートに適用することにより、スプレッドシートで取り扱う文字列の置換に関する作業性が向上する。 According to one aspect of the present disclosure, the plurality of processing target character strings may be character strings in a plurality of cells in the spreadsheet. By applying the method of the present disclosure to a spreadsheet, workability regarding replacement of character strings handled in the spreadsheet is improved.

本開示の一側面によれば、上述した置換方法を、コンピュータに実行させるためのコンピュータプログラムが提供されてもよい。当該コンピュータプログラムを記憶するコンピュータ読取可能な記録媒体が提供されてもよい。本開示の一側面によれば、上述した置換方法を実行する情報処理システムが提供されてもよい。 According to one aspect of the present disclosure, a computer program that causes a computer to execute the above-described replacement method may be provided. A computer-readable recording medium that stores the computer program may be provided. According to the 1 side of this indication, the information processing system which performs the above-mentioned substitution method may be provided.

本開示の一側面によれば、ユーザインタフェースを通じて複数の処理対象文字列が選択されたことを条件に、複数の処理対象文字列のそれぞれにおける共通部分及び非共通部分を判別する判別部と、複数の処理対象文字列に対応する単一文字列であって、判別部により判別された共通部分を、対応する共通文字で表し、非共通部分を、対応する符号で表す単一文字列を、ディスプレイに表示させる表示制御部と、ディスプレイに表示された単一文字列に対する変更操作を、ユーザインタフェースを通じて受け付ける受付部と、変更操作による変更後の単一文字列である変更文字列に基づいて、複数の処理対象文字列のそれぞれを、変更文字列に従う文字列に置換する置換処理部と、を含む情報処理システムが提供されてもよい。この情報処理システムは、上記置換方法と同様の効果を奏する。 According to an aspect of the present disclosure, a determination unit that determines a common part and a non-common part in each of a plurality of processing target character strings on the condition that a plurality of processing target character strings are selected through a user interface, A single character string corresponding to the processing target character string, wherein the common part determined by the determination unit is represented by the corresponding common character, and the non-common part is represented by the corresponding code, is displayed on the display. Based on the display control unit, a reception unit that accepts a change operation for the single character string displayed on the display through the user interface, and the change character string that is the single character string after the change operation, a plurality of processing target characters An information processing system may be provided that includes a replacement processing unit that replaces each of the columns with a character string according to the changed character string. This information processing system has the same effects as the above replacement method.

情報処理システムの構成を表すブロック図である。It is a block diagram showing the structure of an information processing system. 置換プログラムの利用に関する説明図である。It is explanatory drawing regarding the use of a replacement program. 第一実施形態でプロセッサが実行する処理を表すフローチャートである。6 is a flowchart showing a process executed by a processor in the first embodiment. 操作ウィンドウの第一表示例を示す図である。It is a figure which shows the 1st example of a display of an operation window. 操作ウィンドウの第二表示例を示す図である。It is a figure which shows the 2nd example of a display of an operation window. 操作ウィンドウの第三表示例を示す図である。It is a figure which shows the 3rd example of a display of an operation window. 警告表示の第一例を示す図である。It is a figure which shows the 1st example of a warning display. 警告表示の第二例を示す図である。It is a figure which shows the 2nd example of a warning display. スプレッドシートにおける置換プログラムの利用に関する説明図である。It is explanatory drawing regarding utilization of the substitution program in a spreadsheet. 第二実施形態でプロセッサが実行する処理を表すフローチャートである。It is a flow chart showing processing which a processor performs in a second embodiment.

以下に本開示の例示的実施形態を、図面と共に説明する。
[第一実施形態]
本実施形態の情報処理システム1は、図1に示すように、プロセッサ11と、メモリ13と、ストレージデバイス15と、ディスプレイ17と、入力デバイス19とを備える。この情報処理システム1は、例えば汎用のパーソナルコンピュータにより構成される。
Hereinafter, exemplary embodiments of the present disclosure will be described with reference to the drawings.
[First embodiment]
As shown in FIG. 1, the information processing system 1 of this embodiment includes a processor 11, a memory 13, a storage device 15, a display 17, and an input device 19. The information processing system 1 is composed of, for example, a general-purpose personal computer.

プロセッサ11は、ストレージデバイス15に格納されたコンピュータプログラムに従う処理を実行し、各種機能を実現するように構成される。メモリ13は、RAMを含む。ストレージデバイス15は、各種コンピュータプログラム及びデータファイルを記憶する補助記憶装置として機能する。ストレージデバイス15の例には、ソリッドステートドライブ(SSD)及びハードディスクドライブ(HDD)が含まれる。 The processor 11 is configured to execute processing according to a computer program stored in the storage device 15 and realize various functions. The memory 13 includes a RAM. The storage device 15 functions as an auxiliary storage device that stores various computer programs and data files. Examples of the storage device 15 include a solid state drive (SSD) and a hard disk drive (HDD).

ストレージデバイス15が記憶するコンピュータプログラムには、例えばウィンドウズ(登録商標)等のオペレーティングシステム(OS)が含まれる。OSは、ファイルシステム、及び、グラフィカルユーザインタフェース(GUI)を提供するデスクトップ環境を提供する。 The computer program stored in the storage device 15 includes an operating system (OS) such as Windows (registered trademark). The OS provides a desktop environment that provides a file system and a graphical user interface (GUI).

ディスプレイ17は、プロセッサ11により制御されて、ユーザ向けの各種情報を表示するように構成される。ディスプレイ17の例には、液晶ディスプレイ及び有機ELディスプレイが含まれる。入力デバイス19は、ユーザによる操作信号をプロセッサ11に伝達するように構成される。入力デバイス19の例には、キーボード及びポインティングデバイスが含まれる。 The display 17 is controlled by the processor 11 and is configured to display various kinds of information for the user. Examples of the display 17 include a liquid crystal display and an organic EL display. The input device 19 is configured to transmit a user operation signal to the processor 11. Examples of the input device 19 include a keyboard and a pointing device.

続いて、本実施形態に特徴的な処理の詳細を説明する。情報処理システム1には、CD−ROMやメモリカード等のコンピュータ読取可能な可搬性の記録媒体や、インターネット等の広域ネットワークを通じて、ファイル名の一括置換を実現するための置換プログラムがインストールされる。 Next, details of the processing characteristic of the present embodiment will be described. The information processing system 1 is installed with a replacement program for collectively replacing file names through a computer-readable portable recording medium such as a CD-ROM or a memory card or a wide area network such as the Internet.

ストレージデバイス15には、ファイルシステムで管理される複数のデータファイルが含まれる。これらのデータファイルには、ユーザにより生成されたデータファイルが含まれる。周知のように、ユーザにより生成されるデータファイルには、ユーザが自由にファイル名を付与することができる。 The storage device 15 includes a plurality of data files managed by the file system. These data files include data files generated by the user. As is well known, a user can freely give a file name to a data file generated by the user.

ユーザには、これら複数のデータファイルのファイル名を効率よく一括置換したいというニーズがある。ストレージデバイス15に格納される置換プログラムは、このファイル名の一括置換に関して優れた機能を提供する。 The user needs to efficiently replace the file names of the plurality of data files at once. The replacement program stored in the storage device 15 provides an excellent function for this collective replacement of file names.

ユーザは、入力デバイス19を通じたデスクトップ環境に対する操作により、ファイル名の一括置換を所望するリネーム対象の複数のデータファイルを選択した状態で、置換プログラムに従う処理の実行を指示することにより、図3に示す処理をプロセッサ11に実行させることができる。そして、この処理によりディスプレイ17に表示される操作ウィンドウ(図4参照)を通じて、ファイル名の一括置換に関する操作を入力することができる。 By operating the desktop environment via the input device 19, the user selects a plurality of data files to be renamed for which batch replacement of file names is desired, and instructs execution of processing according to the replacement program. The processing shown may be executed by the processor 11. Then, through this operation, the operation relating to the batch replacement of file names can be input through the operation window (see FIG. 4) displayed on the display 17.

例えば、ユーザは、図2に示すように、デスクトップ環境においてアイコンとして表示される複数のファイルを、マウスを用いて選択した後、マウスに対する右クリック操作を行うことにより、コンテキストメニューをディスプレイ17に表示させ、コンテキストメニューの中から、予めインストールされた置換プログラムに対応するアイテム、図2では「一括置換」と名づけられたアイテムを選択することができる。 For example, as shown in FIG. 2, the user selects a plurality of files displayed as icons in the desktop environment with a mouse and then performs a right-click operation on the mouse to display a context menu on the display 17. Then, from the context menu, the item corresponding to the pre-installed replacement program, that is, the item named "collective replacement" in FIG. 2 can be selected.

ユーザは、このアイテムの選択により、置換プログラムに従う処理の実行指示を、入力デバイス19を通じてプロセッサ11に入力することができる。あるいは、ユーザは、予め割り当てられたキーボード上のショートカットキーを押下操作することにより、置換プログラムに従う処理の実行指示を、入力デバイス19を通じてプロセッサ11に入力してもよい。 By selecting this item, the user can input an instruction to execute the process according to the replacement program into the processor 11 through the input device 19. Alternatively, the user may input an instruction to execute the process according to the replacement program to the processor 11 through the input device 19 by pressing a shortcut key on a keyboard that is assigned in advance.

プロセッサ11は、上記実行指示の入力により図3に示す処理を開始すると、先駆けてユーザにより選択されたリネーム対象の複数のデータファイルの現在のファイル名を分析する(S110)。 When the processor 11 starts the processing shown in FIG. 3 by inputting the execution instruction, the processor 11 analyzes the current file names of the plurality of rename target data files selected by the user (S110).

S110において、プロセッサ11は、リネーム対象の複数のデータファイルのそれぞれについて、そのファイル名の共通部分及び非共通部分を判別することができる。ここでいう共通部分は、対応するデータファイルのファイル名を構成する文字列のうち、リネーム対象の複数のデータファイル間で共通する文字列部分である。非共通部分は、対応するデータファイルのファイル名を構成する文字列のうち、上記共通部分に該当しない文字列部分である。 In S110, the processor 11 can determine the common part and non-common part of the file name of each of the plurality of data files to be renamed. The common portion here is a character string portion that is common to a plurality of data files to be renamed among the character strings that form the file name of the corresponding data file. The non-common portion is a character string portion that does not correspond to the common portion among the character strings that form the file name of the corresponding data file.

例えば、リネーム対象の複数のデータファイルが、図4に例示するように、「[職員会議]配布資料成績評価について2018年04月12日.docx」と名付けられた第一データファイル、「[線形代数]講義資料行列とは2018年04月01日.pptx」と名付けられた第二データファイル、「[微分積分学]講義資料数列と極限2018年04月02日.docx」と名づけられた第三データファイルを含む、合計3つのデータファイルである場合を考える。 For example, a plurality of data files to be renamed are, as illustrated in FIG. 4, a first data file named “[Staff Meeting] Distributor Grade Evaluation April 12, 2018.docx”, “[Linear Algebra] Lecture Material Matrix is April 01, 2018.pptx" The second data file named "[Differential Calculus] Lecture Material Sequence and Limit April 02, 2018.docx" Consider the case of a total of three data files, including three data files.

この場合、第一、第二、及び第三データファイルに関して、プロセッサ11は、複数の共通部分「[」「]」「資料」「2018年04月」「日.」を判別する。更に、プロセッサ11は、第一データファイルに関して、複数の非共通部分「職員会議」「配布」「成績評価について」「12」「docx」を判別する。 In this case, regarding the first, second, and third data files, the processor 11 determines a plurality of common parts “[”, “]”, “material”, “April 2018”, and “date”. Further, the processor 11 determines a plurality of non-common parts “staff meeting”, “distribution”, “about grade evaluation”, “12”, and “docx” regarding the first data file.

第二データファイルに関して、プロセッサ11は、複数の非共通部分「線形代数」「講義」「行列とは」「01」「pptx」を判別し、第三データファイルに関して、複数の非共通部分「微分積分学」「講義」「数列と極限」「02」「docx」を判別する。 For the second data file, the processor 11 discriminates a plurality of non-common portions "linear algebra", "lecture", "what is a matrix", "01", "pptx", and for the third data file, a plurality of non-common portions "differential". Discriminate between "integral", "lecture", "sequence and limit", "02", "docx".

文字列の比較技術としては、最長共通部分列問題に対する動的計画法のように、いくつかの技術が既に知られている。S110における分析も、このような既知の技術を利用又は応用して実現することができる。 As techniques for comparing character strings, some techniques are already known, such as dynamic programming for the longest common subsequence problem. The analysis in S110 can also be realized by utilizing or applying such a known technique.

S110での分析後、プロセッサ11は、リネーム対象の複数のデータファイルのファイル名を統合表現した単一文字列を生成すると共に、この単一文字列を置換式の初期値としてリネーム対象の各データファイルのファイル名と共に記述した図4に例示する操作ウィンドウをディスプレイ17に表示させる(S120)。 After the analysis in S110, the processor 11 generates a single character string that is an integrated representation of the file names of a plurality of data files to be renamed, and uses this single character string as the initial value of the replacement expression for each data file to be renamed. The operation window illustrated in FIG. 4 described together with the file name is displayed on the display 17 (S120).

図4に例示される操作ウィンドウは、置換式の入力欄を上段に有し、リネーム対象の複数のデータファイルのファイル名を表示するファイル名表示欄を下段に有する。入力欄には、置換式の初期値として上記単一文字列が表示される。ファイル名表示欄には、入力欄に表示される置換式がユーザの操作により初期値から変更されるまで、リネーム対象の複数のデータファイルの現在のファイル名が表示される。置換式が初期値から変更された後、ファイル名表示欄には、リネーム対象の複数のデータファイルについての、変更後の置換式に基づくリネーム後のファイル名が表示される。 The operation window illustrated in FIG. 4 has a replacement expression input field in the upper part and a file name display field in which the file names of a plurality of data files to be renamed are displayed in the lower part. In the input field, the above single character string is displayed as the initial value of the substitution formula. The file name display field displays the current file names of the plurality of data files to be renamed until the replacement formula displayed in the input field is changed from the initial value by the user's operation. After the replacement formula is changed from the initial value, the file name display column displays the renamed file names of the plurality of data files to be renamed based on the changed replacement formula.

図4から理解できるように、置換式の初期値として表示される単一文字列は、リネーム対象の複数のデータファイルの現在のファイル名における共通部分を、対応する共通文字で表現し、非共通部分を、対応する符号で抽象表現する文字列である。 As can be understood from FIG. 4, the single character string displayed as the initial value of the replacement expression represents the common part in the current file names of the plurality of data files to be renamed by the corresponding common character, and the non-common part. Is a character string that abstractly represents with a corresponding code.

図4に示される単一文字列は、「[<1>]<2>資料<3>2018年04月<4>日.<5>」である。この例において単一文字列には、複数の共通文字として「[」「]」「資料」「2018年04月」「日.」が含まれ、複数の符号として、複数の非共通部分のそれぞれを区別して表す符号<1><2><3><4><5>が含まれる。 The single character string shown in FIG. 4 is “[<1>]<2>Material<3>April<4>Date 2018.<5>”. In this example, the single character string contains "[", "]", "material", "April 2018", "day." as multiple common characters, and multiple non-common parts as multiple codes. The distinctive symbols <1><2><3><4><5> are included.

ここで符号<1>は、第一データファイルのファイル名に含まれる「職員会議」、第二データファイルのファイル名に含まれる「線形代数」、及び、第三データファイルのファイル名に含まれる「微分積分学」に対応する。 Here, the code <1> is included in the “staff meeting” included in the file name of the first data file, “linear algebra” included in the file name of the second data file, and included in the file name of the third data file. Corresponds to "calculus".

同様に、符号<2>は、第一、第二、及び第三データファイルのファイル名に含まれる「配布」「講義」及び「講義」のそれぞれに対応し、符号<3>は、「成績評価について」「行列とは」及び「数列と極限」のそれぞれに対応し、符号<4>は、「12」「01」及び「02」のそれぞれに対応し、符号<5>は、「docx」「pptx」及び「docx」のそれぞれに対応する。 Similarly, the code <2> corresponds to each of “Distribution”, “Lecture” and “Lecture” included in the file names of the first, second and third data files, and the code <3> is “Grade”. About evaluation", "What is a matrix?" and "Sequence and limit", respectively. The code <4> corresponds to "12", "01" and "02", and the code <5> is "docx". It corresponds to each of "pptx" and "docx".

S120において、プロセッサ11は、所定規則により、複数の符号<1><2><3><4><5>のそれぞれに異なる色を割り当て、単一文字列に含まれる各符号<1><2><3><4><5>を、対応する色で入力欄に表示し、リネーム対象の複数のデータファイルのファイル名に含まれる非共通部分を、対応する符号に割り当てられた色で下段に表示する操作ウィンドウをディスプレイ17に表示させる。 In S120, the processor 11 assigns different colors to each of the plurality of codes <1><2><3><4><5> according to a predetermined rule, and the codes <1><2 included in the single character string are assigned. ><3><4><5> is displayed in the input field in the corresponding color, and the non-common part included in the file names of multiple data files to be renamed is displayed in the lower row in the color assigned to the corresponding code. The operation window to be displayed on the display 17 is displayed on the display 17.

例えば、符号<1>に対しては、赤色が割り当てられ、符号<2>に対して青色が割り当てられる。この場合、操作ウィンドウの入力欄には、置換式に含まれる符号<1>が赤色で表示され、符号<2>が青色で表示される。更に、操作ウィンドウの下段には、符号<1>に対応する文字列「職員会議」「線形代数」及び「微分積分学」が赤色で表示され、符号<2>に対応する文字列「配布」「講義」及び「講義」が青色で表示される。 For example, red is assigned to the code <1>, and blue is assigned to the code <2>. In this case, the code <1> included in the substitution formula is displayed in red and the code <2> is displayed in blue in the input field of the operation window. Furthermore, in the lower part of the operation window, the character strings "staff meeting", "linear algebra" and "calculus" corresponding to the code <1> are displayed in red, and the character string "distribution" corresponding to the code <2>. "Lecture" and "Lecture" are displayed in blue.

プロセッサ11は、操作ウィンドウをディスプレイ17に表示させると、S130に移行し、操作ウィンドウに対するユーザの入力デバイス19を通じた操作を受け付ける。そして、操作がなされると、S140〜S190の処理により、操作に対応する処理を実行する。 After displaying the operation window on the display 17, the processor 11 proceeds to S130 and accepts an operation of the operation window by the user through the input device 19. Then, when an operation is performed, the processing corresponding to the operation is executed by the processing of S140 to S190.

S130において、プロセッサ11は、新たなデータファイルをリネーム対象として追加する操作を受け付けることができる。例えば、ユーザは、操作ウィンドウの下部に、リネーム対象として新たに追加したいデータファイルのアイコンを、ドラッグアンドドロップすることにより、新たなデータファイルをリネーム対象に追加することができる。 In S130, the processor 11 can accept an operation of adding a new data file as a rename target. For example, the user can add a new data file to the rename target by dragging and dropping the icon of the data file to be newly added as the rename target at the bottom of the operation window.

プロセッサ11は、操作ウィンドウに対する操作がなされたと判断し(S130でYes)、なされた操作が新たなデータファイルをリネーム対象に追加する操作であると判断すると(S140でYes)、S141に移行する。 When the processor 11 determines that an operation has been performed on the operation window (Yes in S130) and determines that the performed operation is an operation of adding a new data file to the rename target (Yes in S140), the process proceeds to S141.

S141において、プロセッサ11は、追加されたデータファイルを含むリネーム対象の全てのデータファイルのファイル名を再分析して、データファイル毎に、ファイル名の共通部分及び非共通部分を判別する。プロセッサ11は、この判別結果に基づき、ディスプレイ17における操作ウィンドウの表示内容を更新する(S145)。 In S141, the processor 11 re-analyzes the file names of all the data files to be renamed including the added data file, and determines the common part and the non-common part of the file name for each data file. The processor 11 updates the display content of the operation window on the display 17 based on the determination result (S145).

即ち、プロセッサ11は、再分析結果に基づき、追加されたデータファイルを含むリネーム対象の複数のデータファイルのファイル名を統合表現した単一文字列を生成して、この単一文字列を置換式として、リネーム対象の各データファイルのファイル名と共にディスプレイ17に表示させるように、操作ウィンドウの表示内容を更新する(S145)。その後、次の操作を受け付ける(S130)。 That is, the processor 11 generates a single character string in which the file names of a plurality of data files to be renamed including the added data file are integrally expressed based on the reanalysis result, and the single character string is used as a replacement expression. The display content of the operation window is updated so that it is displayed on the display 17 together with the file name of each data file to be renamed (S145). Then, the next operation is accepted (S130).

プロセッサ11は、操作ウィンドウに対する操作がなされたと判断し(S130でYes)、なされた操作が操作ウィンドウに表示される置換式に対する変更操作であると判断すると(S150でYes)、S155に移行して、操作ウィンドウの表示内容を、変更された置換式に従う内容に更新する。 The processor 11 determines that an operation has been performed on the operation window (Yes in S130), and determines that the operation performed is a change operation for the replacement formula displayed in the operation window (Yes in S150), the process proceeds to S155. , Update the display contents of the operation window to the contents that comply with the changed replacement formula.

即ち、プロセッサ11は、操作ウィンドウの入力欄に変更後の置換式が表示され、操作ウィンドウの下段に、変更後の置換式に従うリネーム対象のデータファイルの置換後のファイル名が表示されるように、操作ウィンドウの表示内容を更新する(S155)。ここで表示される置換後のファイル名は、変更後の置換式に従って「仮に」対応するデータファイルのファイル名を置換したときのファイル名である。即ち、S155で、実際にデータファイルのファイル名が変更されるわけではないことを留意されたい。 That is, the processor 11 displays the changed replacement expression in the input field of the operation window, and displays the replaced file name of the data file to be renamed according to the changed replacement expression in the lower part of the operation window. The display contents of the operation window are updated (S155). The file name after replacement displayed here is the file name when the file name of the corresponding data file is "provisionally" replaced according to the replacement formula after modification. That is, it should be noted that the file name of the data file is not actually changed in S155.

図5に示す例によれば、置換式は、図4に示される「[<1>]<2>資料<3>2018年04月<4>日.<5>」から、図5に示される「(2018-04-<4>)<1>-<3>.<5>」に変更されている。この場合、操作ウィンドウの下段に、置換後のファイル名として、第一データファイルについて文字列「(2018-04-12)職員会議-成績評価について.docx」が表示され、第二データファイルについて文字列「(2018-04-01)線形代数-行列とは..pptx」が表示され、第三データファイルについて文字列「(2018-04-02)微分積分学-数列と極限.docx」が表示されるように、プロセッサ11は、操作ウィンドウの表示内容を更新する。その後、次の操作を受け付ける(S130)。 According to the example shown in FIG. 5, the substitution formula is shown in FIG. 5 from “[<1>]<2>Material<3>April<4>2018.<5>2018” shown in FIG. It has been changed to "(2018-04-<4>)<1>-<3>.<5>". In this case, in the lower part of the operation window, the character string "(2018-04-12) Staff Meeting-About grade evaluation .docx" is displayed for the first data file as the file name after replacement, and the character string for the second data file is displayed. The column ``(2018-04-01) Linear algebra-What is a matrix..pptx'' is displayed and the string ``(2018-04-02) Calculus-sequence and limit .docx'' is displayed for the third data file. As described above, the processor 11 updates the display content of the operation window. Then, the next operation is accepted (S130).

図4と図5との比較から理解できるように、本実施形態では、置換式の変更操作として、共通文字の変更、追加、移動、及び削除操作、並びに、非共通部分(符号)の移動及び削除操作を受け付けることができる。「移動」操作は、文字列全体における共通/非共通文字の記載位置を変更する操作に対応する。この操作の多様性は、置換式に対する操作によって、ユーザが自由度高く、リネーム対象のデータファイルのファイル名を一括置換可能であることを意味する。 As can be understood from the comparison between FIG. 4 and FIG. 5, in the present embodiment, as the replacement expression changing operation, common character changing, adding, moving, and deleting operations, and non-common portion (code) moving and A delete operation can be accepted. The “move” operation corresponds to the operation of changing the position where the common/non-common character is described in the entire character string. The versatility of this operation means that the user has a high degree of freedom and can collectively replace the file names of the data files to be renamed by the operation on the replacement expression.

プロセッサ11は、操作ウィンドウに対する操作がなされたと判断し(S130でYes)、なされた操作が表示モードの変更操作であると判断すると(S160でYes)、S165に移行して、操作ウィンドウの表示を、変更後の表示モードに対応する態様に切り替える。その後、次の操作を受け付ける(S130)。 If the processor 11 determines that an operation on the operation window has been performed (Yes in S130) and determines that the operation performed is a display mode changing operation (Yes in S160), the processor 11 proceeds to S165 to display the operation window. , The mode is switched to the mode corresponding to the changed display mode. Then, the next operation is accepted (S130).

例えば、ユーザは、操作ウィンドウの右上に位置する操作オブジェクト「オプション」に対する入力デバイス19を通じた操作により、表示モードを、簡易モードと詳細モードとの間で切り替えるように表示モードの変更操作を行うことができる。図4及び図5に示される操作ウィンドウは、簡易モードで表示される操作ウィンドウである。これに対し、図6に示される操作ウィンドウは、詳細モードで表示される操作ウィンドウである。 For example, the user performs an operation of changing the display mode so as to switch the display mode between the simple mode and the detailed mode by operating the operation object “option” located at the upper right of the operation window through the input device 19. You can The operation windows shown in FIGS. 4 and 5 are operation windows displayed in the simple mode. On the other hand, the operation window shown in FIG. 6 is an operation window displayed in the detailed mode.

図6から理解できるように、詳細モードでは、操作ウィンドウの下段で、リネーム対象の複数のデータファイルのそれぞれのファイル名として、現在のファイル名と共に、置換式に従う置換後のファイル名が並列表示される。即ち、簡易モードでは、置換式が変更されると、操作ウィンドウに表示されるリネーム対象の複数のデータファイルのファイル名が変更後の置換式に従うファイル名に変更されるが、詳細モードでは、置換式に従う置換後のファイル名が、現在のファイル名に追加して表示される。 As can be understood from FIG. 6, in the detailed mode, in the lower part of the operation window, the file names after the replacement according to the replacement formula are displayed in parallel as the file names of the plurality of data files to be renamed, respectively. It That is, in the simple mode, when the replacement expression is changed, the file names of the data files to be renamed displayed in the operation window are changed to the file names according to the changed replacement expression. The replaced filename according to the expression is displayed in addition to the current filename.

更に、詳細モードでは、操作ウィンドウの上段において、第一及び第二の入力欄が表示される。第一の入力欄は、図6に示される入力欄のうち最上段の入力欄であり、第二の入力欄は、第一の入力欄の下に位置する入力欄である。
第二の入力欄は、簡易モードの入力欄と同じ機能を果たす。即ち、第二の入力欄には、変更操作を受付可能な状態で、置換式の初期値としてリネーム対象の複数のデータファイルに対応する単一文字列が表示される。
Furthermore, in the detailed mode, the first and second input fields are displayed in the upper part of the operation window. The first input field is the uppermost input field of the input fields shown in FIG. 6, and the second input field is the input field located below the first input field.
The second input field has the same function as the simple mode input field. That is, in the second input field, a single character string corresponding to a plurality of data files to be renamed is displayed as the initial value of the replacement expression in a state in which the change operation can be accepted.

一方、第一の入力欄には、リネーム対象の複数のデータファイルについての置換前のファイル名を統合表現した文字列が、パターン表現式として表示される。第一の入力欄に初期表示される文字列は、第二の入力欄に初期表示される文字列と同じである。 On the other hand, in the first input field, a character string in which the file names of the plurality of data files to be renamed before replacement are integratedly expressed is displayed as a pattern expression. The character string initially displayed in the first input field is the same as the character string initially displayed in the second input field.

即ち、第一の入力欄は、プロセッサ11が分析したリネーム対象の複数のデータファイルについてのファイル名のパターンに基づく自動生成されたパターン表現式としての単一文字列が、ユーザにとって満足するものではないときに、パターン表現式の修正操作を受付可能に構成される。第一の入力欄において、ユーザは高度な正規表現をパターン表現式として使用することも可能である。 That is, in the first input field, a single character string as an automatically generated pattern expression based on the file name patterns of a plurality of data files to be renamed analyzed by the processor 11 is not satisfactory to the user. At times, it is configured to be able to accept the correction operation of the pattern expression. In the first input field, the user can also use an advanced regular expression as a pattern expression.

このように、詳細モードでは、置換式の変更操作だけではなく、その基礎となるパターン表現式の修正操作をユーザから受付可能に、操作ウィンドウが表示される。付言すれば、記号<>を用いた表現では、パターン表現式と置換式とを同じにすることが、ファイル名を変更しないことを表すが、正規表現を使用する場合には、そうではない。 As described above, in the detailed mode, the operation window is displayed so that the user can receive not only the operation for changing the replacement expression but also the operation for modifying the underlying pattern expression. In addition, in the expression using the symbol <>, making the pattern expression and the replacement expression the same means not changing the file name, but this is not the case when using a regular expression.

この他、プロセッサ11は、操作ウィンドウに対する操作がなされたと判断し(S130でYes)、なされた操作がキャンセル操作であると判断すると(S170でYes)、操作ウィンドウに対するこれまでのユーザの操作を破棄し、リネーム対象のデータファイルに対するファイル名の置換処理を実行することなく、図3に示す処理を終了する。キャンセル操作は、例えば、操作ウィンドウを閉じる操作に対応する。 In addition, if the processor 11 determines that an operation has been performed on the operation window (Yes in S130) and determines that the performed operation is a cancel operation (Yes in S170), the user's previous operation on the operation window is discarded. Then, the process shown in FIG. 3 is terminated without executing the process of replacing the file name of the data file to be renamed. The cancel operation corresponds to, for example, an operation of closing the operation window.

プロセッサ11は、操作ウィンドウに対する操作がなされたと判断し(S130でYes)、なされた操作が置換指示操作であると判断すると(S180でYes)、S185に移行し、置換処理を実行する。即ち、リネーム対象の複数のデータファイルのファイル名を、操作ウィンドウに示される置換式に従うファイル名に置換する。これにより、リネーム対象の各データファイルのファイル名が、操作ウィンドウに表示される置換後のファイル名に、実際に変更される。 When the processor 11 determines that an operation has been performed on the operation window (Yes in S130) and determines that the performed operation is a replacement instruction operation (Yes in S180), the processor 11 proceeds to S185 and executes the replacement process. That is, the file names of the plurality of data files to be renamed are replaced with the file names according to the replacement formula shown in the operation window. As a result, the file name of each data file to be renamed is actually changed to the file name after replacement displayed in the operation window.

置換指示操作は、ユーザが操作ウィンドウ内の確定ボタンを押下操作することに対応する。入力デバイス19としてのキーボードにおける特定キー(例えば、エンターキー)の押下操作も、置換指示操作の例に含まれ得る。置換指示操作がなされた場合、特には特定キーが押下操作された場合には、置換を実行してもよいか否かを問い合わせるダイアログボックスをディスプレイ17に表示させてもよい。 The replacement instruction operation corresponds to the user pressing the confirm button in the operation window. The pressing operation of a specific key (for example, the enter key) on the keyboard as the input device 19 may be included in the example of the replacement instruction operation. When a replacement instruction operation is performed, particularly when a specific key is pressed, a dialog box may be displayed on the display 17 to inquire whether the replacement may be executed.

置換処理を終了すると、プロセッサ11は、操作ウィンドウを閉じて、図3に示す処理を終了する。プロセッサ11は、上述した操作以外の他の操作がなされた場合、なされた操作に対応する処理を実行する(S190)。S190では、上述したパターン表現式に対する修正操作がなされた場合に、その操作に対応して、パターン表現式を修正し、第一の入力欄の表示を更新することができる。プロセッサ11は、その後、S130に移行し、次の操作を受け付ける。 When the replacement process is completed, the processor 11 closes the operation window and ends the process shown in FIG. When an operation other than the above-described operation is performed, the processor 11 executes a process corresponding to the performed operation (S190). In S190, when the correction operation for the pattern expression is performed, the pattern expression can be corrected and the display in the first input field can be updated according to the operation. After that, the processor 11 moves to S130 and accepts the next operation.

以上に説明した第一実施形態の情報処理システム1は、リネーム対象の複数のデータファイルのファイル名を分析して、これら統合表現した単一文字列を置換式の初期値として表示し、その後、置換式の変更操作を受け付けて、変更後の置換式に従うファイル名の一括置換を行う。 The information processing system 1 of the first embodiment described above analyzes the file names of a plurality of data files to be renamed, displays the integrated single character string as the initial value of the replacement expression, and then replaces it. Accept the formula change operation and perform the batch replacement of file names according to the changed replace formula.

従って、本実施形態によれば、ユーザは、ファイル名の置換作業時に、正規表現を用いた従来の置換技術のようには、高度な知識を必要としない。更には、リネーム対象の複数のファイル名の分析もプロセッサ11により実現されるので、ユーザは、自ら分析を行い、一から置換式を組み立てる必要もない。プロセッサ11により生成された置換式(単一文字列)に対する変更操作で、ユーザは、自由度の高い置換作業を行うことができる。 Therefore, according to the present embodiment, the user does not need to have a high degree of knowledge when replacing a file name, unlike the conventional replacement technique using a regular expression. Furthermore, the analysis of a plurality of file names to be renamed is also realized by the processor 11, so that the user does not need to perform the analysis by himself and assemble a substitution formula from scratch. The user can perform the replacement work with a high degree of freedom by the change operation for the replacement expression (single character string) generated by the processor 11.

更に言えば、本実施形態では、操作ウィンドウにおいて表示されるリネーム対象の各データファイルのファイル名における複数の非共通部分を、置換式内の符号と関連付けて、同一色で表示する。従って、ユーザは、表示色を根拠に、置換後のファイル名をよく事前理解しながら、置換式を変更することができる。従って、本実施形態によれば、自由度の高い文字列の置換作業をユーザが従来よりも簡単に行うことが可能な技術を提供することができる。 Further, in the present embodiment, a plurality of non-common portions in the file names of the respective rename-targeted data files displayed in the operation window are displayed in the same color in association with the code in the substitution formula. Therefore, the user can change the replacement formula based on the display color while well understanding in advance the file name after replacement. Therefore, according to the present embodiment, it is possible to provide a technique that allows a user to more easily perform a character string replacement operation than ever before.

付言すれば、プロセッサ11は、置換式に対する変更操作を受け付けた際、変更後の置換式に、ファイル名に対して使用不可能な文字が含まれているか否かを判断し、使用不可能な文字が含まれる場合には、「名前に無効な文字が含まれています。」等の警告メッセージを、操作ウィンドウ内に表示するように、操作ウィンドウの表示内容を更新してもよい(S155)。図7は、「名前に無効な文字が含まれています。」との警告メッセージを含む操作ウィンドウの例示的構成を示す図である。 In addition, when the processor 11 receives the change operation for the replacement expression, the processor 11 determines whether or not the replacement expression after the change includes a character that cannot be used in the file name, and determines that the replacement expression cannot be used. If the characters are included, the display contents of the operation window may be updated so that a warning message such as "The name contains invalid characters" is displayed in the operation window (S155). .. FIG. 7 is a diagram showing an exemplary configuration of an operation window including a warning message "The name contains invalid characters."

この他、プロセッサ11は、リネーム対象の複数のデータファイルの中に、他のプロセスによって使用され、これによりファイル名を変更不可能な状態にあるデータファイルが存在するか否かを判断してもよい。そして、該当するデータファイルが存在する場合には、図8に示すように「他のプロセスによって使用されている」等の警告メッセージを、該当するデータファイルのファイル名と関連付けて操作ウィンドウ内に表示するように、ディスプレイ17に操作ウィンドウを表示させてもよい、あるいは、操作ウィンドウの表示内容を更新してもよい(S120,S145,S155)。 In addition, the processor 11 determines whether or not there is a data file that is used by another process and whose file name cannot be changed, among the plurality of data files to be renamed. Good. If the corresponding data file exists, a warning message such as "used by another process" is displayed in the operation window in association with the file name of the corresponding data file as shown in FIG. As described above, the operation window may be displayed on the display 17, or the display content of the operation window may be updated (S120, S145, S155).

同様に、プロセッサ11は、置換後のファイル名と同じファイル名のデータファイルが既に存在することにより、リネーム対象の複数のデータファイルの中に、ファイル名を変更不可能な状態にあるデータファイルが存在するか否かを判断してもよい。そして、該当するデータファイルが存在する場合には、「置換後のファイル名と同じ名前のファイルが存在します」等の警告メッセージをディスプレイ17に表示させてもよい(S155)。例えば、プロセッサ11は、図8に示す「他のプロセスによって使用されています」とのメッセージに代えて、「置換後のファイル名と同じ名前のファイルが既に存在します」とのメッセージをディスプレイ17に表示させることができる。 Similarly, since the processor 11 already has a data file with the same file name as the file name after replacement, among the plurality of data files to be renamed, the data file whose file name cannot be changed is It may be determined whether or not it exists. Then, if the corresponding data file exists, a warning message such as "a file with the same name as the file name after replacement exists" may be displayed on the display 17 (S155). For example, the processor 11 displays a message "a file with the same name as the file name after replacement already exists" instead of the message "used by another process" shown in FIG. Can be displayed on.

こうした警告メッセージの置換指示前の表示は、置換指示に従う文字列の置換を行うことができないことで、置換指示前に行うユーザの確認作業等の一部作業が無駄になる可能性を抑制することができる。従って、本実施形態によれば、利便性の高いファイル名の一括置換機能を提供することができる。 Since the display of such a warning message before the replacement instruction cannot replace the character string according to the replacement instruction, it is possible to suppress the possibility that some work such as user confirmation work performed before the replacement instruction is wasted. You can Therefore, according to this embodiment, it is possible to provide a highly convenient batch replacement function for file names.

本実施形態によれば、置換プログラムは、データファイルだけではなくフォルダを、リネーム対象に選択可能に構成されてもよい。リネーム対象として、複数のデータファイル及びフォルダが混在してもよい。プロセッサ11は、リネーム対象のフォルダ名を、ファイル名と同様に取り扱って、図3に示す処理を実行し、置換式に従ってフォルダ名を一括置換することができる。 According to the present embodiment, the replacement program may be configured so that not only the data file but also the folder can be selected as the rename target. As a rename target, a plurality of data files and folders may be mixed. The processor 11 handles the folder name to be renamed in the same manner as the file name, executes the process shown in FIG. 3, and can collectively replace the folder name according to the replacement formula.

[第二実施形態]
続いて、第二実施形態の情報処理システム1について説明する。第二実施形態は、置換プログラムが、スプレッドシートにおける複数セル内の文字列の一括置換のために構成されている点で、第一実施形態とは異なるが、情報処理システム1のハードウェア構成は、第一実施形態と同じである。従って、以下では、プロセッサ11が置換プログラムに従って実行する処理の詳細を説明し、第一実施形態と同一構成に係る説明を省略する。
[Second embodiment]
Then, the information processing system 1 of 2nd embodiment is demonstrated. The second embodiment is different from the first embodiment in that the replacement program is configured for batch replacement of character strings in a plurality of cells in a spreadsheet, but the hardware configuration of the information processing system 1 is The same as in the first embodiment. Therefore, in the following, the details of the process executed by the processor 11 according to the replacement program will be described, and the description of the same configuration as that of the first embodiment will be omitted.

第二実施形態において、プロセッサ11は、スプレッドシートに対するユーザの操作により、図9に示すように、スプレッドシートにおける複数のセルが選択された状態で、置換プログラムに従う処理の実行が指示されると、図10に示す処理を実行する。 In the second embodiment, when the processor 11 is instructed to execute the process according to the replacement program in a state where a plurality of cells in the spreadsheet are selected by the user's operation on the spreadsheet, as shown in FIG. 9, The processing shown in FIG. 10 is executed.

ユーザは、入力デバイス19を通じて、文字列の一括置換を所望する複数のセルを処理対象のセルとして選択した状態で、置換プログラムに従う処理の実行を指示することができる。この処理によっては、ディスプレイ17に図9の下段に示すGUI形式の操作ウィンドウが表示される。ユーザは、この操作ウィンドウを通じて、複数セル内の文字列の一括置換に関する操作を入力することができる。 Through the input device 19, the user can instruct the execution of the process according to the replacement program while selecting a plurality of cells for which batch replacement of character strings is desired as cells to be processed. Depending on this processing, the GUI-type operation window shown in the lower part of FIG. 9 is displayed on the display 17. Through this operation window, the user can input an operation related to batch replacement of character strings in a plurality of cells.

例えば、ユーザは、図9に示すように、破線で囲まれた複数セルを、マウスを用いて選択した後、マウスに対する右クリック操作を行うことにより、コンテキストメニューをディスプレイ17に表示させ、コンテキストメニューの中から、置換プログラムに対応する「一括置換」と名づけられたアイテムを選択することができる。このアイテムの選択により、置換プログラムに従う処理の実行指示を、入力デバイス19を通じてプロセッサ11に入力することができる。 For example, as shown in FIG. 9, the user selects a plurality of cells surrounded by broken lines with a mouse and then performs a right-click operation on the mouse to display a context menu on the display 17 to display the context menu. From among the items, the item named "collective replacement" corresponding to the replacement program can be selected. By selecting this item, an instruction to execute the process according to the replacement program can be input to the processor 11 through the input device 19.

プロセッサ11は、上記実行指示の入力により図10に示す処理を開始すると、上記実行指示に先駆けてユーザにより選択された処理対象の複数セルについてセル内の現在の文字列を分析する(S210)。 When the processor 11 starts the processing shown in FIG. 10 by inputting the execution instruction, the processor 11 analyzes the current character string in the cell regarding a plurality of cells to be processed selected by the user prior to the execution instruction (S210).

S210において、プロセッサ11は、処理対象の複数セルのそれぞれについて、セル内の文字列における共通部分及び非共通部分を判別する。共通部分は、対応するセル内の文字列のうち、処理対象の複数セル間で共通する文字列部分である。非共通部分は、対応するセル内の文字列のうち、上記共通部分に該当しない文字列部分である。 In S210, the processor 11 determines, for each of the plurality of cells to be processed, a common part and a non-common part in the character string in the cell. The common portion is a character string portion common to a plurality of cells to be processed among the character strings in the corresponding cells. The non-common part is a character string part that does not correspond to the common part among the character strings in the corresponding cells.

例えば、処理対象の複数セルが、図9に例示するように、文字列「A号館1階152」を有する第一セル、文字列「A号館3階301」を有する第二セル、文字列「B号館1階131」を有する第三セル、文字列「本館10階1013」を有する第四セルを含む、合計4つのセルである場合を考える。 For example, the plurality of cells to be processed are, as illustrated in FIG. 9, a first cell having a character string “A Building 1F 152”, a second cell having a character string “A Building 3F 301”, and a character string “ Consider a case where there are a total of four cells, including a third cell having the first floor of Building B 131" and a fourth cell having the character string "Main Building 10th Floor 1013".

この場合、第一、第二、第三、及び第四セルに関して、プロセッサ11は、複数の共通部分「館」「階」を判別する。更に、第一セルに関して、複数の非共通部分「A号」「1」「152」を判別し、第二セルに関して、複数の非共通部分「A号」「3」「301」を判別し、第三セルに関して、複数の非共通部分「B号」「1」「131」を判別し、第四セルに関して、複数の非共通部分「本」「10」「1013」を判別する。 In this case, regarding the first, second, third, and fourth cells, the processor 11 determines a plurality of common parts “building” and “floor”. Further, regarding the first cell, a plurality of non-common parts “A number”, “1” and “152” are discriminated, and regarding the second cell, a plurality of non-common portions “A number” “3” “301” are discriminated, For the third cell, a plurality of non-common portions "B number", "1", "131" are discriminated, and for the fourth cell, a plurality of non-common portions "book", "10", "1013" are discriminated.

S210での分析後、プロセッサ11は、処理対象の複数セル内の文字列を統合表現した単一文字列「<1>館<2>階<3>」を生成すると共に、この単一文字列を置換式の初期値として記述した図9下段に例示する操作ウィンドウをディスプレイ17に表示させる(S220)。 After the analysis in S210, the processor 11 generates a single character string "<1> building <2> floor <3>" that is an integrated representation of the character strings in the plurality of cells to be processed, and replaces this single character string. The operation window illustrated in the lower part of FIG. 9 described as the initial value of the expression is displayed on the display 17 (S220).

単一文字列には、複数の非共通部分のそれぞれを区別して表す符号<1><2><3>が含まれる。符号<1>は、第一、第二、第三、及び第四セル内の文字列に含まれる「A号」「A号」「B号」「本」のそれぞれに対応し、符号<2>は、第一、第二、第三、及び第四セル内の文字列に含まれる「1」「3」「1」「10」のそれぞれに対応し、符号<3>は、第一、第二、第三、及び第四セル内の文字列に含まれる「152」「301」「131」「1013」のそれぞれに対応する。 The single character string includes the codes <1><2><3> that distinguish each of the plurality of non-common parts. The code <1> corresponds to each of “A”, “A”, “B”, and “book” included in the character strings in the first, second, third, and fourth cells, and the code <2 > Corresponds to each of the 1st, 2nd, 3rd, and 4th cells included in the character string in the cell, "1" "3" "1" "10", the code <3>, the first, It corresponds to each of “152”, “301”, “131”, and “1013” included in the character strings in the second, third, and fourth cells.

プロセッサ11は、操作ウィンドウをディスプレイ17に表示させると、S230に移行し、ユーザによる操作ウィンドウに対する入力デバイス19を通じた操作を受け付ける。そして、操作がなされると、S240〜S270の処理により、操作に対応する処理を実行する。 After displaying the operation window on the display 17, the processor 11 moves to S230 and accepts an operation of the user on the operation window through the input device 19. Then, when an operation is performed, the processing corresponding to the operation is executed by the processing of S240 to S270.

プロセッサ11は、操作ウィンドウに対する操作がなされたと判断し(S230でYes)、なされた操作が操作ウィンドウに表示される置換式に対する変更操作であると判断すると(S240でYes)、S241に移行して、操作ウィンドウの表示内容を、変更された置換式に従う内容に更新する。 The processor 11 determines that an operation has been performed on the operation window (Yes in S230), and determines that the performed operation is a change operation for the substitution formula displayed in the operation window (Yes in S240), the process proceeds to S241. , Update the display contents of the operation window to the contents that comply with the changed replacement formula.

更に、S245では、プロセッサ11は処理対象の複数セル内の文字列を、変更後の置換式に対応する文字列に仮置換する。ここでいう仮置換は、キャンセル指示が入力された場合には、置換前の初期状態に戻すことが可能な状態で、複数セル内の文字列を、変更後の置換式に対応する文字列に置換することに対応する。その後、次の操作を受け付ける(S230)。 Further, in S245, the processor 11 provisionally replaces the character string in the plurality of cells to be processed with the character string corresponding to the changed replacement expression. Temporary replacement here means that when a cancel instruction is input, it is possible to return to the initial state before replacement, and the character strings in multiple cells are changed to the character string corresponding to the changed replacement expression. Corresponds to replacement. Then, the next operation is accepted (S230).

プロセッサ11は、操作がなされたと判断し(S230でYes)、なされた操作がキャンセル操作であると判断すると(S250でYes)、操作ウィンドウに対するこれまでのユーザの操作を破棄して、処理対象の複数セル内の文字列を、置換前の初期状態に戻した後(S255)、操作ウィンドウを閉じて、図10に示す処理を終了する。 When the processor 11 determines that the operation has been performed (Yes in S230) and determines that the performed operation is the cancel operation (Yes in S250), the processor 11 discards the operation of the user until now on the operation window and sets the operation target. After returning the character strings in the plurality of cells to the initial state before the replacement (S255), the operation window is closed and the processing shown in FIG. 10 is ended.

プロセッサ11は、操作がなされたと判断し(S230でYes)、なされた操作が置換指示操作であると判断すると(S260でYes)、S265に移行し、処理対象の複数セル内の仮置換後の文字列を、置換後の文字列として確定した後、操作ウィンドウを閉じて、図10に示す処理を終了する。 When the processor 11 determines that the operation is performed (Yes in S230) and determines that the performed operation is the replacement instruction operation (Yes in S260), the process proceeds to S265, and the temporary replacement in the plurality of cells to be processed is performed. After confirming the character string as the character string after replacement, the operation window is closed and the processing shown in FIG. 10 is terminated.

プロセッサ11は、上述した操作以外の他の操作がなされた場合、なされた操作に対応する処理を実行して(S270)、S230に移行し、次の操作がなされるまで待機する。 When an operation other than the above-described operation is performed, the processor 11 executes a process corresponding to the performed operation (S270), shifts to S230, and waits until the next operation is performed.

以上に説明した第二実施形態の情報処理システム1は、処理対象の複数セル内の文字列を分析して、これら統合表現した単一文字列を置換式の初期値として表示し、その後、置換式の変更操作を受け付けて、変更後の置換式に従う複数セル内の文字列の一括置換を行う。従って、本実施形態によれば、スプレッドシートにおける複数のセル内の文字列の置換作業を、自由度の高く、従来よりも簡単に行うことができる。 The information processing system 1 according to the second embodiment described above analyzes character strings in a plurality of cells to be processed, displays the integrated single character string as an initial value of the replacement expression, and then replaces the replacement expression. Accepts the change operation of and replaces the character strings in multiple cells at once according to the changed replacement expression. Therefore, according to the present embodiment, the work of replacing the character strings in the plurality of cells in the spreadsheet has a high degree of freedom and can be performed more easily than before.

本開示が、上述した第一実施形態及び第二実施形態が限定されるものではなく、種々の態様を採ることができることは言うまでもない。例えば、本開示の置換プログラムにより実現される文字列の置換方法は、ファイル名の一括置換やセル内の文字列の一括置換に限定されるものではない。 It goes without saying that the present disclosure is not limited to the above-described first embodiment and second embodiment, and can take various aspects. For example, the character string replacement method realized by the replacement program of the present disclosure is not limited to the collective replacement of file names and the collective replacement of character strings in cells.

第一実施形態では、置換式に従う置換後の文字列を、事前に、操作ウィンドウの下段に表示したが、置換後の文字列は事前表示されなくてもよい。この場合、操作ウィンドウの下段には、リネーム対象の複数のデータファイルの現在のファイル名が表示されてもよいし、現在のファイル名及び置換後のファイル名がいずれも表示されなくてもよい。ユーザからの切替指示に従って、現在のファイル名及び置換後のファイル名の少なくとも一方の表示及び非表示を切り替えるように、プロセッサ11は、操作ウィンドウの表示制御を行ってもよい。 In the first embodiment, the character string after replacement according to the replacement formula is displayed in advance in the lower part of the operation window, but the character string after replacement may not be displayed in advance. In this case, the current file names of the plurality of data files to be renamed may be displayed in the lower part of the operation window, or neither the current file name nor the file name after replacement may be displayed. According to a switching instruction from the user, the processor 11 may perform display control of the operation window so as to switch display/non-display of at least one of the current file name and the replaced file name.

第一実施形態では、複数の符号<1><2><3><4><5>、及び、リネーム対象の複数のデータファイルのファイル名に含まれる非共通部分を異なる表示形態、具体的には異なる色で表示することにより、符号と非共通部分との対応関係を、ユーザに向けて明確に表示したが、その他の表示形態で上記対応関係をユーザに向けて表示してもよい。表示形態の相違は、フォントタイプ、フォントサイズ、及びフォントカラーの少なくとも一つ以上の相違に基づいて生成可能である。 In the first embodiment, a plurality of codes <1><2><3><4><5>, and different display modes for the non-common parts included in the file names of the data files to be renamed, specifically Although the correspondence relationship between the code and the non-common part is clearly displayed to the user by displaying in different colors, the correspondence relationship may be displayed to the user in other display modes. The difference in display form can be generated based on at least one difference in font type, font size, and font color.

上記実施形態における1つの構成要素が有する機能は、複数の構成要素に分散して設けられてもよい。複数の構成要素が有する機能は、1つの構成要素に統合されてもよい。上記実施形態の構成の一部は、省略されてもよい。上記実施形態の構成の少なくとも一部は、他の上記実施形態の構成に対して付加又は置換されてもよい。特許請求の範囲に記載の文言から特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。 The function of one constituent element in the above-described embodiment may be distributed to a plurality of constituent elements. Functions of a plurality of components may be integrated into one component. Part of the configuration of the above embodiment may be omitted. At least a part of the configurations of the above-described embodiments may be added or replaced with respect to the configurations of the other above-described embodiments. All aspects included in the technical idea specified by the wording of the claims are the embodiments of the present disclosure.

1…情報処理システム、11…プロセッサ、13…メモリ、15…ストレージデバイス、17…ディスプレイ、19…入力デバイス。 1... Information processing system, 11... Processor, 13... Memory, 15... Storage device, 17... Display, 19... Input device.

Claims (13)

コンピュータにより実行される文字列の置換方法であって、
ユーザインタフェースを通じて複数の処理対象文字列が選択されたことを条件に、前記複数の処理対象文字列のそれぞれにおける、前記複数の処理対象文字列の間で共通する文字部分である共通部分、及び、前記複数の処理対象文字列の間で共通しない文字部分である非共通部分を判別するステップと、
前記複数の処理対象文字列に対応する単一文字列であって、前記判別するステップにより判別された前記共通部分を、対応する共通文字で表し、前記非共通部分を、対応する符号で表す単一文字列を、ディスプレイに表示させるステップと、
前記ディスプレイに表示された前記単一文字列に対する変更操作を前記ユーザインタフェースを通じて受け付けるステップと、
前記変更操作による変更後の前記単一文字列である変更文字列に基づいて、前記複数の処理対象文字列のそれぞれを、前記変更文字列に従う文字列に置換するステップと、
を含む置換方法。
A method for replacing a character string, which is executed by a computer, comprising:
On condition that a plurality of processing target character strings are selected through the user interface, a common part in each of the plurality of processing target character strings, which is a character part common to the plurality of processing target character strings, and Determining a non-common part that is a character part that is not common among the plurality of processing target character strings;
A single character string corresponding to the plurality of processing target character strings, wherein the common part determined by the determining step is represented by a corresponding common character, and the non-common part is represented by a corresponding code. Displaying the columns on the display,
Accepting a change operation for the single character string displayed on the display through the user interface;
Replacing each of the plurality of processing target character strings with a character string according to the changed character string, based on the changed character string that is the single character string after the change by the changing operation,
A replacement method including.
請求項1記載の置換方法であって、
置換指示を前記ユーザインタフェースを通じて受け付けるステップを含み、
前記置換するステップでは、前記置換指示が前記ユーザインタフェースを通じて入力されたことを条件に、前記複数の処理対象文字列のそれぞれを、前記変更文字列に従う文字列に置換する置換方法。
The replacement method according to claim 1, wherein
Including a step of receiving a replacement instruction through the user interface,
In the replacing step, the replacing method of replacing each of the plurality of processing target character strings with a character string according to the changed character string, on condition that the replacement instruction is input through the user interface.
請求項2記載の置換方法であって、
前記変更文字列に、使用不可文字が含まれる場合には、前記置換指示が入力される前に、前記使用不可文字が含まれることを警告するメッセージを、前記ディスプレイに表示させるステップを更に含む置換方法。
The replacement method according to claim 2, wherein
When the changed character string includes unusable characters, the replacement further includes the step of displaying a message on the display, which warns that the unusable characters are included, before the replacement instruction is input. Method.
請求項2又は請求項3記載の置換方法であって、
前記複数の処理対象文字列の少なくとも一つが置換不可能な状態にある場合には、前記置換指示が入力される前に、前記置換不可能であることを警告するメッセージを、前記ディスプレイに表示させるステップを更に含む置換方法。
The replacement method according to claim 2 or 3, wherein
When at least one of the plurality of processing target character strings is in a non-replaceable state, a message warning that the substitution is impossible is displayed on the display before the replacement instruction is input. The replacement method further comprising a step.
請求項1〜請求項4のいずれか一項記載の置換方法であって、
前記単一文字列とは別に、前記複数の処理対象文字列を、前記ディスプレイに表示させるステップを更に含む置換方法。
The replacement method according to any one of claims 1 to 4, wherein:
The replacement method further comprising the step of displaying the plurality of processing target character strings on the display separately from the single character string.
請求項2〜請求項4のいずれか一項記載の置換方法であって、
前記単一文字列とは別に、前記複数の処理対象文字列を、前記ディスプレイに表示させ、更には、前記置換指示が入力される前に、前記複数の処理対象文字列を仮に前記変更文字列に基づき置換した場合の置換後の文字列を、前記複数の処理対象文字列に代えて、又は加えて、前記ディスプレイに表示させるように、前記ディスプレイを制御するステップを更に含む置換方法。
The replacement method according to any one of claims 2 to 4,
Separately from the single character string, the plurality of processing target character strings are displayed on the display, and further, before the replacement instruction is input, the plurality of processing target character strings are temporarily changed to the changed character string. The replacement method further comprising the step of controlling the display so as to display a character string after replacement based on the replacement, on or in addition to the plurality of processing target character strings.
請求項6記載の置換方法であって、
前記ディスプレイを制御するステップでは、前記ユーザインタフェースを通じた切替指示に基づいて、前記ディスプレイにおける前記複数の処理対象文字列及び前記置換後の文字列の少なくとも一方の表示及び非表示を切り替えるように、前記ディスプレイを制御する置換方法。
The replacement method according to claim 6, wherein
In the step of controlling the display, the display and non-display of at least one of the plurality of processing target character strings and the replaced character string in the display are switched based on a switching instruction through the user interface, A replacement method that controls the display.
請求項6又は請求項7記載の置換方法であって、
前記単一文字列に、前記非共通部分として、複数の非共通部分に対応する複数の符号が含まれる場合に、前記複数の符号のそれぞれに異なる表示形態を割り当てるステップ
を含み、
前記ディスプレイに前記単一文字列を表示させるステップでは、前記複数の符号のそれぞれを割り当てられた表示形態で表示するように、前記ディスプレイに、前記複数の符号を含む前記単一文字列を表示させ、
前記ディスプレイを制御するステップでは、前記複数の処理対象文字列のそれぞれに含まれる前記非共通部分のそれぞれを、対応する符号に割り当てられた表示形態で表示するように、前記ディスプレイに、前記複数の処理対象文字列を表示させる置換方法。
The replacement method according to claim 6 or 7, wherein
When the single character string includes, as the non-common part, a plurality of codes corresponding to a plurality of non-common parts, a step of assigning a different display form to each of the plurality of codes,
In the step of displaying the single character string on the display, causing the display to display the single character string including the plurality of codes so as to display each of the plurality of codes in an assigned display form,
In the step of controlling the display, the plurality of non-common portions included in each of the plurality of processing target character strings are displayed in the display so as to be displayed in a display form assigned to a corresponding code. Replacement method to display the processing target string.
請求項8記載の置換方法であって、
前記割り当てるステップでは、前記複数の符号のそれぞれに前記異なる表示形態として異なる色が割り当てられ、
前記複数の符号のそれぞれは、割り当てられた色で表示され、
前記非共通部分のそれぞれは、対応する符号に割り当てられた色で表示される置換方法。
The replacement method according to claim 8, wherein
In the assigning step, a different color is assigned to each of the plurality of codes as the different display form,
Each of the plurality of symbols is displayed in an assigned color,
The replacement method in which each of the non-common portions is displayed in a color assigned to a corresponding code.
請求項1〜請求項9のいずれか一項記載の置換方法であって、
前記複数の処理対象文字列のそれぞれは、ファイルシステムにおける個別のデータファイル及びフォルダの少なくとも一方の名称を表す文字列である置換方法。
The replacement method according to any one of claims 1 to 9,
The replacement method, wherein each of the plurality of processing target character strings is a character string representing the name of at least one of individual data files and folders in the file system.
請求項1〜請求項9のいずれか一項記載の置換方法であって、
前記複数の処理対象文字列は、スプレッドシートにおける複数のセル内の文字列である置換方法。
The replacement method according to any one of claims 1 to 9,
The replacement method, wherein the plurality of processing target character strings are character strings in a plurality of cells in a spreadsheet.
請求項1〜請求項11のいずれか一項記載の置換方法を、コンピュータに実行させるためのコンピュータプログラム。 A computer program for causing a computer to execute the replacement method according to any one of claims 1 to 11. ユーザインタフェースを通じて複数の処理対象文字列が選択されたことを条件に、前記複数の処理対象文字列のそれぞれにおける、前記複数の処理対象文字列の間で共通する文字部分である共通部分、及び、前記複数の処理対象文字列の間で共通しない文字部分である非共通部分を判別する判別部と、
前記複数の処理対象文字列に対応する単一文字列であって、前記判別部により判別された前記共通部分を、対応する共通文字で表し、前記非共通部分を、対応する符号で表す単一文字列を、ディスプレイに表示させる表示制御部と、
前記ディスプレイに表示された前記単一文字列に対する変更操作を前記ユーザインタフェースを通じて受け付ける受付部と、
前記変更操作による変更後の前記単一文字列である変更文字列に基づいて、前記複数の処理対象文字列のそれぞれを、前記変更文字列に従う文字列に置換する置換処理部と、
を含む情報処理システム。
On condition that a plurality of processing target character strings are selected through the user interface, a common part in each of the plurality of processing target character strings, which is a character part common to the plurality of processing target character strings, and A discriminating unit for discriminating non-common portions which are character portions that are not common among the plurality of processing target character strings;
A single character string corresponding to the plurality of processing target character strings, wherein the common portion determined by the determination unit is represented by a corresponding common character, and the non-common portion is represented by a corresponding code. And a display control unit for displaying on the display,
A receiving unit that receives a change operation for the single character string displayed on the display through the user interface,
A replacement processing unit that replaces each of the plurality of processing target character strings with a character string that complies with the changed character string, based on the changed character string that is the single character string after the change operation.
Information processing system including.
JP2018230865A 2018-12-10 2018-12-10 Substitution method, computer program, and information processing system Active JP7270369B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018230865A JP7270369B2 (en) 2018-12-10 2018-12-10 Substitution method, computer program, and information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018230865A JP7270369B2 (en) 2018-12-10 2018-12-10 Substitution method, computer program, and information processing system

Publications (2)

Publication Number Publication Date
JP2020095329A true JP2020095329A (en) 2020-06-18
JP7270369B2 JP7270369B2 (en) 2023-05-10

Family

ID=71086201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018230865A Active JP7270369B2 (en) 2018-12-10 2018-12-10 Substitution method, computer program, and information processing system

Country Status (1)

Country Link
JP (1) JP7270369B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209662A (en) * 2005-01-31 2006-08-10 Canon Inc File management apparatus and its control method
JP2008262354A (en) * 2007-04-11 2008-10-30 Seiko Epson Corp File management device, program and method
JP2009163561A (en) * 2008-01-08 2009-07-23 Sharp Corp Display device and image processing apparatus with the same
JP2015028699A (en) * 2013-07-30 2015-02-12 富士通株式会社 Program, information processor, and method
WO2018100700A1 (en) * 2016-11-30 2018-06-07 株式会社日立製作所 Data conversion device and data conversion method
JP2018174469A (en) * 2017-03-31 2018-11-08 西日本電信電話株式会社 Dns server, blacklist generation method in dns server, blacklist generation program for use in dns server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209662A (en) * 2005-01-31 2006-08-10 Canon Inc File management apparatus and its control method
JP2008262354A (en) * 2007-04-11 2008-10-30 Seiko Epson Corp File management device, program and method
JP2009163561A (en) * 2008-01-08 2009-07-23 Sharp Corp Display device and image processing apparatus with the same
JP2015028699A (en) * 2013-07-30 2015-02-12 富士通株式会社 Program, information processor, and method
WO2018100700A1 (en) * 2016-11-30 2018-06-07 株式会社日立製作所 Data conversion device and data conversion method
JP2018174469A (en) * 2017-03-31 2018-11-08 西日本電信電話株式会社 Dns server, blacklist generation method in dns server, blacklist generation program for use in dns server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"マックライフを劇的に便利にしてくれる超強力なフリーソフトばかりを厳選してお届け! このフリーソフトが", MAC100% 2008.AUTUMN, JPN6022046510, 1 October 2008 (2008-10-01), JP, pages 042, ISSN: 0004914538 *

Also Published As

Publication number Publication date
JP7270369B2 (en) 2023-05-10

Similar Documents

Publication Publication Date Title
JP4879983B2 (en) Keyboard accelerator
US7503009B2 (en) Multifunctional icon in icon-driven computer system
US11385786B2 (en) Spin control user interface for selecting options
US6691282B1 (en) Method and apparatus for displaying and navigating containment hierarchies
US7487466B2 (en) Command line provided within context menu of icon-based computer interface
RU2335012C2 (en) Control of user interface of virtual address line
US7672944B1 (en) Method and system for multiple column/row data sorting in a display table
US20080270919A1 (en) Context Based Software Layer
US7533354B2 (en) Technique for selecting and prioritizing choices
US20100185967A1 (en) Information Processing Device, and File Managing Method
US9921917B2 (en) Undo stack to explore past actions in business analytics
JP2020095329A (en) Substitution method, computer program, and information processing system
CN112541330A (en) Information processing apparatus and recording medium
JP2007164505A (en) Portable terminal
JP7056078B2 (en) Document processing device and document processing program
JP2008276575A (en) Data management device and program therefor
US10672287B2 (en) Method and system for managing assessments
JP5211338B2 (en) Data management apparatus and program thereof
CN111144090A (en) File comparison method and device, electronic equipment and storage medium
JP2006221616A (en) Information processing device, file data merging method, and file naming method
TW201435526A (en) Engineering tool
JP2004110410A (en) Display method of chart, display system, and computer program
JP2008276574A (en) Data management device and program therefor
CN110457377B (en) Interactive method and interactive system for searching for data records
Hallot , Getting Started with Calc

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211109

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221201

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230425

R150 Certificate of patent or registration of utility model

Ref document number: 7270369

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150