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

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

Info

Publication number
JP7270369B2
JP7270369B2 JP2018230865A JP2018230865A JP7270369B2 JP 7270369 B2 JP7270369 B2 JP 7270369B2 JP 2018230865 A JP2018230865 A JP 2018230865A JP 2018230865 A JP2018230865 A JP 2018230865A JP 7270369 B2 JP7270369 B2 JP 7270369B2
Authority
JP
Japan
Prior art keywords
display
replacement
character string
processed
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.)
Active
Application number
JP2018230865A
Other languages
Japanese (ja)
Other versions
JP2020095329A (en
Inventor
諒 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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)

Description

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

複数のデータファイルに関して、ファイル名に含まれる共通の文字列を一括置換する技術が既に知られている(例えば、特許文献1参照)。複数のファイル名を表示する際に、これら複数のファイル名を比較し、その比較結果に基づき、それぞれのファイル名の表示形態を変更する技術も知られている(例えば、特許文献2参照)。正規表現を用いて複数の文字列を置換する技術も知られている。 A technique for batch replacement of common character strings included in file names of a plurality of data files is already known (see, for example, Japanese Unexamined Patent Application Publication No. 2002-100001). There is also known a technique of comparing a plurality of file names when displaying a plurality of file names, and changing the display form of each file name based on the comparison results (see, for example, Patent Document 2). Techniques for replacing multiple character strings using regular expressions are also known.

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

正規表現を用いた従来の置換技術は、様々な形態の文字列置換に活用できるが、文字列を置換するための置換式の記述に自由度が高く、置換のために高度な知識を必要とする。即ち、この技術を扱うためには、ユーザは、学習コストの高い正規表現を習得しなければならない。更には、置換作業の度に、置換対象の複数の文字列を分析して、目的の置換結果を生むように置換式を手作業で作成しなければならない。 Conventional substitution techniques using regular expressions can be used for various forms of string substitution, but the degree of freedom in writing substitution expressions for string substitution is high, and advanced knowledge is required for substitution. do. That is, in order to work with this technique, the user must learn regular expressions, which are expensive to learn. 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 the desired replacement result.

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

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

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

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

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

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

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

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

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

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

上記警告によれば、置換指示に従う文字列の置換を行うことができないことで、置換指示前に行うユーザの確認作業等の一部作業が無駄になるのを抑制することができる。従って、本開示の一側面によれば、利便性の高い置換方法を提供することができる。 According to the above warning, it is possible to suppress the waste of some work such as user confirmation work performed before the replacement instruction because the character string cannot be replaced according to the replacement instruction. 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 displaying a plurality of character strings to be processed on a display separately from the single character string.

本開示の一側面によれば、上記置換方法は更に、単一文字列とは別に、複数の処理対象文字列を、ディスプレイに表示させ、更には、置換指示が入力される前に、複数の処理対象文字列を仮に変更文字列に基づき置換した場合の置換後の文字列を、複数の処理対象文字列に代えて、又は加えて、ディスプレイに表示させるように、ディスプレイを制御するステップを含んでいてもよい。このディスプレイ制御によれば、ユーザによる置換結果の正確な事前把握が可能である。 According to one aspect of the present disclosure, the above replacement method further displays a plurality of processing target character strings on the display separately from the single character string, and furthermore, performs a plurality of processing before the replacement instruction is input. Including a step of controlling the display so that the character string after replacement when the target character string is temporarily replaced based on the changed character string is displayed on the display in place of or in addition to the plurality of processing target character strings. You can This display control allows the user to have an accurate prior understanding of the replacement result.

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

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

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

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

本開示の一側面によれば、複数の処理対象文字列は、スプレッドシートにおける複数のセル内の文字列であってもよい。本開示の方法をスプレッドシートに適用することにより、スプレッドシートで取り扱う文字列の置換に関する作業性が向上する。 According to one aspect of the present disclosure, the multiple character strings to be processed may be character strings in multiple cells in a 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 for causing a computer to execute the replacement method described above may be provided. A computer readable recording medium storing the computer program may be provided. According to one aspect of the present disclosure, there may be provided an information processing system that executes the replacement method described above.

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

情報処理システムの構成を表すブロック図である。1 is a block diagram showing the configuration of an information processing system; FIG. 置換プログラムの利用に関する説明図である。FIG. 10 is an explanatory diagram regarding utilization of a replacement program; 第一実施形態でプロセッサが実行する処理を表すフローチャートである。4 is a flowchart showing processing executed by a processor in the first embodiment; 操作ウィンドウの第一表示例を示す図である。FIG. 10 is a diagram showing a first display example of an operation window; 操作ウィンドウの第二表示例を示す図である。FIG. 10 is a diagram showing a second display example of the operation window; 操作ウィンドウの第三表示例を示す図である。FIG. 13 is a diagram showing a third display example of the operation window; 警告表示の第一例を示す図である。It is a figure which shows the first example of a warning display. 警告表示の第二例を示す図である。It is a figure which shows the 2nd example of a warning display. スプレッドシートにおける置換プログラムの利用に関する説明図である。FIG. 10 is an explanatory diagram regarding use of a replacement 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は、例えば汎用のパーソナルコンピュータにより構成される。
Exemplary embodiments of the present disclosure are described below in conjunction with the drawings.
[First embodiment]
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, as shown in FIG. This information processing system 1 is configured by, 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 computer programs stored in the storage device 15 and implement various functions. Memory 13 includes RAM. The storage device 15 functions as an auxiliary storage device for storing various computer programs and data files. Examples of storage devices 15 include solid state drives (SSD) and hard disk drives (HDD).

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

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

続いて、本実施形態に特徴的な処理の詳細を説明する。情報処理システム1には、CD-ROMやメモリカード等のコンピュータ読取可能な可搬性の記録媒体や、インターネット等の広域ネットワークを通じて、ファイル名の一括置換を実現するための置換プログラムがインストールされる。 Next, the details of the processing that is characteristic of this embodiment will be described. In the information processing system 1, a replacement program for realizing batch replacement of file names is installed via 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 contains multiple data files managed by a file system. These data files include user-generated data files. As is well known, a user can freely assign a file name to a data file created by the user.

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

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

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

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

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

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

例えば、リネーム対象の複数のデータファイルが、図4に例示するように、「[職員会議]配布資料成績評価について2018年04月12日.docx」と名付けられた第一データファイル、「[線形代数]講義資料行列とは2018年04月01日.pptx」と名付けられた第二データファイル、「[微分積分学]講義資料数列と極限2018年04月02日.docx」と名づけられた第三データファイルを含む、合計3つのデータファイルである場合を考える。 For example, a plurality of data files to be renamed include a first data file named "[Staff meeting] Handout materials grade evaluation April 12, 2018.docx", a first data file named "[Linear Algebra] Lecture material matrix is April 01, 2018.pptx", the second data file named "[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, for the first, second, and third data files, the processor 11 determines a plurality of common parts "[", "]", "material", "2018.04", and "day.". Further, the processor 11 distinguishes a plurality of non-common portions "staff meeting", "distribution", "about grade evaluation", "12", and "docx" with respect to the first data file.

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

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

S110での分析後、プロセッサ11は、リネーム対象の複数のデータファイルのファイル名を統合表現した単一文字列を生成すると共に、この単一文字列を置換式の初期値としてリネーム対象の各データファイルのファイル名と共に記述した図4に例示する操作ウィンドウをディスプレイ17に表示させる(S120)。 After the analysis in S110, the processor 11 generates a single character string that integrates the file names of the 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 exemplified in FIG. 4 has an input field for a replacement expression in the upper part and a file name display field for displaying the file names of a plurality of data files to be renamed in the lower part. The above single character string is displayed in the input field as the initial value of the replacement expression. The file name display field displays the current file names of a plurality of data files to be renamed until the replacement expression 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 renamed file names of the plurality of data files to be renamed based on the changed replacement formula are displayed in the file name display column.

図4から理解できるように、置換式の初期値として表示される単一文字列は、リネーム対象の複数のデータファイルの現在のファイル名における共通部分を、対応する共通文字で表現し、非共通部分を、対応する符号で抽象表現する文字列である。 As can be understood from FIG. 4, the single character string displayed as the initial value of the replacement expression expresses the common part of the current file names of the multiple data files to be renamed with the corresponding common character, and the non-common part is a string that abstractly represents with the 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>Document <3>April 4, 2018.<5>”. In this example, the single character string includes "[", "]", "material", "April 2018", and "day." as multiple common characters, and multiple non-common parts as multiple codes. Codes <1>, <2>, <3>, <4>, and <5> are included to distinguish them.

ここで符号<1>は、第一データファイルのファイル名に含まれる「職員会議」、第二データファイルのファイル名に含まれる「線形代数」、及び、第三データファイルのファイル名に含まれる「微分積分学」に対応する。 Here, the code <1> is included in the file name of the first data file, "staff meeting", in the file name of the second data file, "linear algebra", and 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 "distribution", "lecture" and "lecture" included in the file names of the first, second and third data files, and the code <3> corresponds to "grade About evaluation”, “What is a matrix” and “Sequences and limits” correspond to each, code <4> corresponds to each of “12”, “01” and “02”, code <5> corresponds to “docx ” correspond to “pptx” and “docx” respectively.

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 each code <1><2 included in the single character string. ><3><4><5> are displayed in the corresponding color in the input field, and the non-common part included in the file name of multiple data files to be renamed is displayed in the color assigned to the corresponding code at the bottom. to display the operation window to be displayed on the display 17 .

例えば、符号<1>に対しては、赤色が割り当てられ、符号<2>に対して青色が割り当てられる。この場合、操作ウィンドウの入力欄には、置換式に含まれる符号<1>が赤色で表示され、符号<2>が青色で表示される。更に、操作ウィンドウの下段には、符号<1>に対応する文字列「職員会議」「線形代数」及び「微分積分学」が赤色で表示され、符号<2>に対応する文字列「配布」「講義」及び「講義」が青色で表示される。 For example, red is assigned to code <1>, and blue is assigned to code <2>. In this case, the code <1> included in the replacement expression is displayed in red and the code <2> is displayed in blue in the input field of the operation window. Furthermore, at the bottom of the operation window, the text strings "staff meeting", "linear algebra" and "calculus" corresponding to code <1> are displayed in red, and the text string "distribution" corresponding to 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 the operation of the operation window through the input device 19 by the user. Then, when an operation is performed, the process corresponding to the operation is executed by the processes of S140 to S190.

S130において、プロセッサ11は、新たなデータファイルをリネーム対象として追加する操作を受け付けることができる。例えば、ユーザは、操作ウィンドウの下部に、リネーム対象として新たに追加したいデータファイルのアイコンを、ドラッグアンドドロップすることにより、新たなデータファイルをリネーム対象に追加することができる。 At S130, the processor 11 can accept an operation to add 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 to the lower part 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 operation performed is to add 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 data files to be renamed, including the added data file, and determines common and non-common portions of the file names for each data file. The processor 11 updates the display contents of the operation window on the display 17 based on this determination result (S145).

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

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

即ち、プロセッサ11は、操作ウィンドウの入力欄に変更後の置換式が表示され、操作ウィンドウの下段に、変更後の置換式に従うリネーム対象のデータファイルの置換後のファイル名が表示されるように、操作ウィンドウの表示内容を更新する(S155)。ここで表示される置換後のファイル名は、変更後の置換式に従って「仮に」対応するデータファイルのファイル名を置換したときのファイル名である。即ち、S155で、実際にデータファイルのファイル名が変更されるわけではないことを留意されたい。 That is, the processor 11 displays the replacement formula after the change in the input field of the operation window, and displays the file name after replacement of the data file to be renamed according to the replacement formula after the change 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 "temporarily" corresponding data file is replaced according to the replacement expression after the change. Note 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 replacement formula is shown in FIG. changed to "(2018-04-<4>)<1>-<3>.<5>". In this case, the character string "(2018-04-12) Staff Meeting-Grading.docx" is displayed for the first data file as the file name after replacement at the bottom of the operation window, and the character string for the second data file is The column "(2018-04-01) Linear Algebra - What is a matrix..pptx" is displayed, and for the third data file the string "(2018-04-02) Calculus - Sequences and Limits.docx" is displayed , the processor 11 updates the display contents of the operation window. After that, the next operation is accepted (S130).

図4と図5との比較から理解できるように、本実施形態では、置換式の変更操作として、共通文字の変更、追加、移動、及び削除操作、並びに、非共通部分(符号)の移動及び削除操作を受け付けることができる。「移動」操作は、文字列全体における共通/非共通文字の記載位置を変更する操作に対応する。この操作の多様性は、置換式に対する操作によって、ユーザが自由度高く、リネーム対象のデータファイルのファイル名を一括置換可能であることを意味する。 As can be understood from the comparison between FIG. 4 and FIG. 5, in this embodiment, the operations for changing the substitution formula include changing, adding, moving, and deleting common characters, and moving and deleting non-common parts (signs). It can accept delete operations. A "move" operation corresponds to an operation of changing the position of common/non-common characters in the entire character string. This diversity of operations 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 performing operations on replacement expressions.

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

例えば、ユーザは、操作ウィンドウの右上に位置する操作オブジェクト「オプション」に対する入力デバイス19を通じた操作により、表示モードを、簡易モードと詳細モードとの間で切り替えるように表示モードの変更操作を行うことができる。図4及び図5に示される操作ウィンドウは、簡易モードで表示される操作ウィンドウである。これに対し、図6に示される操作ウィンドウは、詳細モードで表示される操作ウィンドウである。 For example, the user can perform a display mode change operation 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. can be done. 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 detailed mode.

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

更に、詳細モードでは、操作ウィンドウの上段において、第一及び第二の入力欄が表示される。第一の入力欄は、図6に示される入力欄のうち最上段の入力欄であり、第二の入力欄は、第一の入力欄の下に位置する入力欄である。
第二の入力欄は、簡易モードの入力欄と同じ機能を果たす。即ち、第二の入力欄には、変更操作を受付可能な状態で、置換式の初期値としてリネーム対象の複数のデータファイルに対応する単一文字列が表示される。
Furthermore, in the detailed mode, first and second input fields are displayed in the upper part of the operation window. The first entry field is the uppermost entry field among the entry fields shown in FIG. 6, and the second entry field is the entry field positioned below the first entry field.
The second input field performs 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 change operations can be accepted.

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

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

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

この他、プロセッサ11は、操作ウィンドウに対する操作がなされたと判断し(S130でYes)、なされた操作がキャンセル操作であると判断すると(S170でYes)、操作ウィンドウに対するこれまでのユーザの操作を破棄し、リネーム対象のデータファイルに対するファイル名の置換処理を実行することなく、図3に示す処理を終了する。キャンセル操作は、例えば、操作ウィンドウを閉じる操作に対応する。 In addition, when the processor 11 determines that an operation has been performed on the operation window (Yes at S130), and determines that the operation performed is a cancel operation (Yes at S170), the user's previous operation on the operation window is discarded. Then, the process shown in FIG. 3 ends without executing the file name replacement process for the data file to be renamed. A 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 at S130) and determines that the performed operation is a replacement instructing operation (Yes at S180), the processor 11 proceeds to S185 and performs replacement processing. Namely, the file names of a plurality of data files to be renamed are replaced with 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's pressing operation of the confirm button in the operation window. An operation of pressing a specific key (for example, an enter key) on the keyboard as the input device 19 can also be included as an 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 asking whether or not the replacement may be executed.

置換処理を終了すると、プロセッサ11は、操作ウィンドウを閉じて、図3に示す処理を終了する。プロセッサ11は、上述した操作以外の他の操作がなされた場合、なされた操作に対応する処理を実行する(S190)。S190では、上述したパターン表現式に対する修正操作がなされた場合に、その操作に対応して、パターン表現式を修正し、第一の入力欄の表示を更新することができる。プロセッサ11は、その後、S130に移行し、次の操作を受け付ける。 After completing the replacement process, the processor 11 closes the operation window and ends the process shown in FIG. When an operation other than the operation described above is performed, the processor 11 executes processing corresponding to the performed operation (S190). At S190, when the above-described pattern expression expression is modified, the pattern expression expression can be modified and the display of the first input field can be updated in accordance with the operation. The processor 11 then proceeds 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 a single character string that is an integral expression of these as the initial value of the replacement expression, and then replaces Receives the change operation of the expression and performs batch replacement of file names according to the replacement expression after the change.

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

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

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

この他、プロセッサ11は、リネーム対象の複数のデータファイルの中に、他のプロセスによって使用され、これによりファイル名を変更不可能な状態にあるデータファイルが存在するか否かを判断してもよい。そして、該当するデータファイルが存在する場合には、図8に示すように「他のプロセスによって使用されている」等の警告メッセージを、該当するデータファイルのファイル名と関連付けて操作ウィンドウ内に表示するように、ディスプレイ17に操作ウィンドウを表示させてもよい、あるいは、操作ウィンドウの表示内容を更新してもよい(S120,S145,S155)。 In addition, the processor 11 may determine 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. Alternatively, the display contents of the operation window may be updated (S120, S145, S155).

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

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

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

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

第二実施形態において、プロセッサ11は、スプレッドシートに対するユーザの操作により、図9に示すように、スプレッドシートにおける複数のセルが選択された状態で、置換プログラムに従う処理の実行が指示されると、図10に示す処理を実行する。 In the second embodiment, when the processor 11 is instructed to execute processing according to the replacement program with a plurality of cells selected in the spreadsheet as shown in FIG. 9 by a user's operation on the spreadsheet, 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 the character strings are to be replaced collectively as the cells to be processed. Depending on this processing, a 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 operations related to batch replacement of character strings in multiple cells.

例えば、ユーザは、図9に示すように、破線で囲まれた複数セルを、マウスを用いて選択した後、マウスに対する右クリック操作を行うことにより、コンテキストメニューをディスプレイ17に表示させ、コンテキストメニューの中から、置換プログラムに対応する「一括置換」と名づけられたアイテムを選択することができる。このアイテムの選択により、置換プログラムに従う処理の実行指示を、入力デバイス19を通じてプロセッサ11に入力することができる。 For example, as shown in FIG. 9, the user selects a plurality of cells surrounded by dashed lines with the mouse, and then right-clicks the mouse to display the context menu on the display 17, and the context menu is displayed. , you can select the item named "Bulk Replace" that corresponds to the replacement program. By selecting this item, an execution instruction for processing 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 process shown in FIG. 10 by inputting the execution instruction, the processor 11 analyzes the current character strings in the cells selected by the user prior to the execution instruction (S210).

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

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

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

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 integrates the character strings in the multiple 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」のそれぞれに対応する。 A single character string includes codes <1><2><3> that distinguish and represent each of a plurality of non-common parts. The code <1> corresponds to each of "A issue", "A issue", "B issue", and "book" contained in the character strings in the first, second, third, and fourth cells, and the code <2 > corresponds to each of "1", "3", "1", "10" contained in the character strings in the first, second, third, and fourth cells, and the symbol <3> corresponds to the first, It corresponds to each of "152", "301", "131", and "1013" contained 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 proceeds to S230 and accepts the user's operation on the operation window through the input device 19. FIG. Then, when an operation is performed, the process corresponding to the operation is executed by the processes of S240 to S270.

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

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

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

プロセッサ11は、操作がなされたと判断し(S230でYes)、なされた操作が置換指示操作であると判断すると(S260でYes)、S265に移行し、処理対象の複数セル内の仮置換後の文字列を、置換後の文字列として確定した後、操作ウィンドウを閉じて、図10に示す処理を終了する。 When the processor 11 determines that an operation has been performed (Yes at S230) and determines that the performed operation is a replacement instructing operation (Yes at S260), the processor 11 proceeds to S265, and replaces the cells after provisional replacement in the plurality of cells to be processed. 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 operations is performed, the processor 11 executes processing corresponding to the performed operation (S270), shifts to S230, and waits until the next operation is performed.

以上に説明した第二実施形態の情報処理システム1は、処理対象の複数セル内の文字列を分析して、これら統合表現した単一文字列を置換式の初期値として表示し、その後、置換式の変更操作を受け付けて、変更後の置換式に従う複数セル内の文字列の一括置換を行う。従って、本実施形態によれば、スプレッドシートにおける複数のセル内の文字列の置換作業を、自由度の高く、従来よりも簡単に行うことができる。 The information processing system 1 of the second embodiment described above analyzes character strings in multiple cells to be processed, displays a single character string that is integrated and expressed as the initial value of the replacement formula, and then displays the replacement formula accepts the change operation of , and performs batch replacement of strings in multiple cells according to the replacement formula after change. Therefore, according to this embodiment, it is possible to replace character strings in a plurality of cells in a spreadsheet with a high degree of freedom and 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 forms. For example, the character string replacement method implemented by the replacement program of the present disclosure is not limited to batch replacement of file names or batch 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 does not have to be displayed in advance. In this case, the current file names of the plurality of data files to be renamed may be displayed at the bottom of the operation window, or neither the current file names nor the file names after replacement may be displayed. The processor 11 may perform display control of the operation window so as to switch display and non-display of at least one of the current file name and the file name after replacement according to a switching instruction from the user.

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

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

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

Claims (10)

コンピュータにより実行される文字列の置換方法であって、
ユーザインタフェースを通じて複数の処理対象文字列が選択されたことを条件に、前記複数の処理対象文字列のそれぞれにおける、前記複数の処理対象文字列の間で共通する文字部分である共通部分、及び、前記複数の処理対象文字列の間で共通しない文字部分である非共通部分を判別するステップと、
前記複数の処理対象文字列に対応する単一文字列であって、前記判別するステップにより判別された前記共通部分を、対応する共通文字で表し、前記非共通部分を、対応する符号で表す単一文字列を、ディスプレイに表示させるステップと、
前記ディスプレイに表示された前記単一文字列に対する変更操作を前記ユーザインタフェースを通じて受け付けるステップと
置換指示を、前記ユーザインタフェースを通じて受け付けるステップと、
前記置換指示が前記ユーザインタフェースを通じて入力されたことを条件に、前記変更操作による変更後の前記単一文字列である変更文字列に基づいて、前記複数の処理対象文字列のそれぞれを、前記変更文字列に従う文字列に置換するステップと
前記単一文字列とは別に、前記複数の処理対象文字列を、前記ディスプレイに表示させ、更には、前記置換指示が入力される前に、前記複数の処理対象文字列を仮に前記変更文字列に基づき置換した場合の置換後の文字列を、前記複数の処理対象文字列に代えて、又は加えて、前記ディスプレイに表示させるように、前記ディスプレイを制御するステップと、
前記単一文字列に、前記非共通部分として、複数の非共通部分に対応する複数の符号が含まれる場合に、前記複数の符号のそれぞれに異なる表示形態を割り当てるステップと、
を含み、
前記ディスプレイに前記単一文字列を表示させるステップでは、前記複数の符号のそれぞれを割り当てられた表示形態で表示するように、前記ディスプレイに、前記複数の符号を含む前記単一文字列を表示させ、
前記ディスプレイを制御するステップでは、前記複数の処理対象文字列のそれぞれに含まれる前記非共通部分のそれぞれを、対応する符号に割り当てられた表示形態で表示するように、前記ディスプレイに、前記複数の処理対象文字列を表示させる置換方法。
A computer-implemented string replacement method comprising:
A common part, which is a character part common among the plurality of character strings to be processed, in each of the plurality of character strings to be processed, on the condition that a plurality of character strings to be processed are selected through a user interface; determining a non-common portion that is a character portion that is not common among the plurality of character strings to be processed;
A single character string corresponding to the plurality of character strings to be processed, wherein the common portion determined by the determining step is represented by a corresponding common character, and the non-common portion is represented by a corresponding code. causing the columns to appear on a display;
receiving, through the user interface , an operation to change the single character string displayed on the display ;
receiving a replacement instruction through the user interface;
On the condition that the replacement instruction is input through the user interface, each of the plurality of processing target character strings is replaced with the changed character string based on the changed character string, which is the single character string after being changed by the change operation. replacing with a string following a column ;
The plurality of character strings to be processed are displayed on the display separately from the single character string, and the plurality of character strings to be processed are temporarily changed to the changed character string before the replacement instruction is input. a step of controlling the display so as to display the character string after replacement when the replacement is performed based on the display instead of or in addition to the plurality of processing target character strings;
when the single character string includes, as the non-common portion, a plurality of codes corresponding to the plurality of non-common portions, assigning a different display form to each of the plurality of codes;
including
causing the display to display the single character string, 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;
The step of controlling the display causes the display to display each of the non-common portions included in each of the plurality of character strings to be processed in a display format assigned to a corresponding code. Replacement method to display the target string .
請求項記載の置換方法であって、
前記変更文字列に、使用不可文字が含まれる場合には、前記置換指示が入力される前に、前記使用不可文字が含まれることを警告するメッセージを、前記ディスプレイに表示させるステップを更に含む置換方法。
The replacement method of claim 1 , comprising:
The replacement further comprising the step of displaying a warning message on the display to warn that the character string to be changed contains an unusable character before the replacement instruction is entered. Method.
請求項又は請求項記載の置換方法であって、
前記複数の処理対象文字列の少なくとも一つが置換不可能な状態にある場合には、前記置換指示が入力される前に、前記置換不可能であることを警告するメッセージを、前記ディスプレイに表示させるステップを更に含む置換方法。
A replacement method according to claim 1 or claim 2 ,
When at least one of the plurality of character strings to be processed is in an unreplaceable state, a message warning that the replacement is not possible is displayed on the display before the replacement instruction is input. The permutation method further comprising steps.
請求項1~請求項3のいずれか一項記載の置換方法であって、
前記ディスプレイを制御するステップでは、前記ユーザインタフェースを通じた切替指示に基づいて、前記ディスプレイにおける前記複数の処理対象文字列及び前記置換後の文字列の少なくとも一方の表示及び非表示を切り替えるように、前記ディスプレイを制御する置換方法。
The replacement method according to any one of claims 1 to 3 ,
In the step of controlling the display, based on a switching instruction through the user interface, switching between display and non-display of at least one of the plurality of character strings to be processed and the character string after replacement on the display is performed. A replacement method that controls the display.
請求項1~請求項4のいずれか一項記載の置換方法であって、
前記割り当てるステップでは、前記複数の符号のそれぞれに前記異なる表示形態として異なる色が割り当てられ、
前記複数の符号のそれぞれは、割り当てられた色で表示され、
前記非共通部分のそれぞれは、対応する符号に割り当てられた色で表示される置換方法。
The replacement method according to any one of claims 1 to 4 ,
In the assigning step, different colors are assigned as the different display forms to each of the plurality of codes,
each of the plurality of symbols is displayed in an assigned color;
A permutation method in which each of said non-common parts is displayed in the color assigned to the corresponding code.
請求項1~請求項のいずれか一項記載の置換方法であって、
前記複数の処理対象文字列のそれぞれは、ファイルシステムにおける個別のデータファイル及びフォルダの少なくとも一方の名称を表す文字列である置換方法。
The replacement method according to any one of claims 1 to 5 ,
The replacement method, wherein each of the plurality of character strings to be processed is a character string representing at least one name of an individual data file or folder in the file system.
請求項1~請求項のいずれか一項記載の置換方法であって、
前記複数の処理対象文字列は、スプレッドシートにおける複数のセル内の文字列である置換方法。
The replacement method according to any one of claims 1 to 6 ,
The replacement method, wherein the plurality of character strings to be processed are character strings in a plurality of cells in a spreadsheet.
請求項1~請求項のいずれか一項記載の置換方法を、コンピュータに実行させるためのコンピュータプログラム。 A computer program for causing a computer to execute the replacement method according to any one of claims 1 to 7 . ユーザインタフェースを通じて複数の処理対象文字列が選択されたことを条件に、前記複数の処理対象文字列のそれぞれにおける、前記複数の処理対象文字列の間で共通する文字部分である共通部分、及び、前記複数の処理対象文字列の間で共通しない文字部分である非共通部分を判別する判別部と、
前記複数の処理対象文字列に対応する単一文字列であって、前記判別部により判別された前記共通部分を、対応する共通文字で表し、前記非共通部分を、対応する符号で表す単一文字列を、ディスプレイに表示させる第一の表示制御部と、
前記ディスプレイに表示された前記単一文字列に対する変更操作を前記ユーザインタフェースを通じて受け付ける第一の受付部と
置換指示を、前記ユーザインタフェースを通じて受け付ける第二の受付部と、
前記置換指示が前記ユーザインタフェースを通じて入力されたことを条件に、前記変更操作による変更後の前記単一文字列である変更文字列に基づいて、前記複数の処理対象文字列のそれぞれを、前記変更文字列に従う文字列に置換する置換処理部と、
前記単一文字列とは別に、前記複数の処理対象文字列を、前記ディスプレイに表示させ、更には、前記置換指示が入力される前に、前記複数の処理対象文字列を仮に前記変更文字列に基づき置換した場合の置換後の文字列を、前記複数の処理対象文字列に代えて、又は加えて、前記ディスプレイに表示させるように、前記ディスプレイを制御する第二の表示制御部と、
前記単一文字列に、前記非共通部分として、複数の非共通部分に対応する複数の符号が含まれる場合に、前記複数の符号のそれぞれに異なる表示形態を割り当てる割当部と、
を含み、
前記第一の表示制御部は、前記複数の符号のそれぞれを割り当てられた表示形態で表示するように、前記ディスプレイに、前記複数の符号を含む前記単一文字列を表示させ、
前記第二の表示制御部は、前記複数の処理対象文字列のそれぞれに含まれる前記非共通部分のそれぞれを、対応する符号に割り当てられた表示形態で表示するように、前記ディスプレイに、前記複数の処理対象文字列を表示させる情報処理システム。
A common part, which is a character part common among the plurality of character strings to be processed, in each of the plurality of character strings to be processed, on the condition that a plurality of character strings to be processed are selected through a user interface; a determination unit that determines a non-common portion that is a character portion that is not common among the plurality of processing target character strings;
A single character string corresponding to the plurality of character strings to be processed, 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. a first display control unit for displaying on the display;
a first reception unit that receives, through the user interface , a change operation for the single character string displayed on the display ;
a second reception unit that receives a replacement instruction through the user interface;
On the condition that the replacement instruction is input through the user interface, each of the plurality of processing target character strings is replaced with the changed character string based on the changed character string, which is the single character string after being changed by the change operation. a replacement processing unit that replaces with a character string that follows a column;
The plurality of character strings to be processed are displayed on the display separately from the single character string, and the plurality of character strings to be processed are temporarily changed to the changed character string before the replacement instruction is input. a second display control unit that controls the display so that the character string after replacement when the replacement is performed based on the display is displayed on the display instead of or in addition to the plurality of processing target character strings;
when the single character string includes, as the non-common portion, a plurality of codes corresponding to the plurality of non-common portions, an allocation unit that allocates a different display form to each of the plurality of codes;
including
The first display control unit causes the display to display the single character string including the plurality of codes so as to display each of the plurality of codes in the assigned display format,
The second display control unit causes the display to display each of the non-common parts included in each of the plurality of character strings to be processed in a display format assigned to a corresponding code. An information processing system that displays the character string to be processed .
請求項9記載の情報処理システムであって、 The information processing system according to claim 9,
前記割当部は、前記複数の符号のそれぞれに前記異なる表示形態として異なる色を割り当てるように構成され、 The allocation unit is configured to allocate different colors as the different display forms to each of the plurality of codes,
前記複数の符号のそれぞれは、割り当てられた色で表示され、 each of the plurality of symbols is displayed in an assigned color;
前記非共通部分のそれぞれは、対応する符号に割り当てられた色で表示される情報処理システム。 An information processing system in which each of the non-common parts is displayed in a color assigned to a corresponding code.
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 JP2020095329A (en) 2020-06-18
JP7270369B2 true 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
マックライフを劇的に便利にしてくれる超強力なフリーソフトばかりを厳選してお届け! このフリーソフトがスゴい! 多機能リネーム処理ソフト「Shupapan」,Mac100% 2008.AUTUMN ,日本,株式会社晋遊舎,2008年10月01日,p. 042

Also Published As

Publication number Publication date
JP2020095329A (en) 2020-06-18

Similar Documents

Publication Publication Date Title
JP4879983B2 (en) Keyboard accelerator
US7503009B2 (en) Multifunctional icon in icon-driven computer system
US7134094B2 (en) Automatic assigning of shortcut keys
US5699534A (en) Multiple display pointers for computer graphical user interfaces
JP5193037B2 (en) Rich drag and drop user interface
US7730427B2 (en) Desktop management scheme
US7487466B2 (en) Command line provided within context menu of icon-based computer interface
US20090138818A1 (en) Method, program, and data processing system for manipulating display of multiple display objects
US20100146431A1 (en) Object picker with window splitter
KR20080080381A (en) User customizable drop-down control list for gui software applications
US8850344B1 (en) Drag drop multiple list modification user interaction
US20140059491A1 (en) Electronic apparatus to execute application, method thereof, and computer readable recording medium
US7386808B2 (en) Apparatus and method for selecting actions for visually associated files and applications
GB2301758A (en) Icon driven data processing system
EP0475744B1 (en) Method of obtaining functions by using pictorial symbols
CN112541330A (en) Information processing apparatus and recording medium
US20140351251A1 (en) Text-based command generation
JP2008276575A (en) Data management device and program therefor
JP7270369B2 (en) Substitution method, computer program, and information processing system
JP7056078B2 (en) Document processing device and document processing program
KR102179370B1 (en) System for executing copy and paste of contents of computer program, method thereof and recording medium stored program executable by computer the method
JP7105683B2 (en) Electronic computer, method and program
JP5211338B2 (en) Data management apparatus and program thereof
JPH09269887A (en) Data processor
JP7322255B2 (en) Electronic computer, method and program

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