如何重新映射字符以进行自动组织

MediaMonkey for Windows 在编写文件名时几乎可以写入任何字符,除了操作系统认为非法的字符。在这种情况下,MediaMonkey for Windows 会用受支持的“类似”字符替换不受支持的字符。例如,“?”和“*”是文件名中的非法字符,可以用“-”替换。这些替换基于MediaMonkey.ini文件中定义的替换表进行。该表位于MediaMonkey.ini文件的[FilenameMappings]部分,十六进制值用于定义源字符和它们映射到的字符。请注意,字符定义必须采用十六进制形式的 UTF-8 编码字符串(否则,重新启动 MediaMonkey for Windows 时会自动删除)。例如:

[文件名映射]
2A=2D
2F=2D
3A=2D
3C=2D
3E=2D
5C=2D
7C=2D

在此示例中, 3A=2D表示“:”映射到“-”。如果您希望查找字符的十六进制值,可以通过 Windows 附带的“字符映射表”应用程序进行查找。要更改替换表以更好地满足您的需求,请执行以下操作:

  1. 关闭 Windows 版 MediaMonkey(这样它就不会覆盖任何更改)
  2. 备份MediaMonkey.ini文件。
  3. 在文本编辑器(如记事本)中打开MediaMonkey.ini文件,根据需要编辑[FilenameMappings]部分,然后保存。
  4. 启动 Windows 版 MediaMonkey

NOTES

  • 为了确保包含“\”的元数据在使用自动组织时不会创建新目录,请添加以下映射: 5C=2D

Applies to: ,

Translated automatically (see original)

How to Remap Characters for Auto-Organize

MediaMonkey for Windows can write almost any character when writing a filename, except for those characters that are considered illegal by the Operating System. In such cases, MediaMonkey for Windows substitutes unsupported characters with ‘similar’ ones that are supported. For instance ‘?’ and ‘*’ are illegal characters in a filename, and are substituted with ‘-‘. These substitutions occur based on a substitution table defined within the MediaMonkey.ini file. The table is in the [FilenameMappings] section of the MediaMonkey.ini file, and hexadecimal values are used to define the source character and characters to which they are mapped. Note that character definitions must be in the form of UTF-8 encoded strings in hexadecimal form (those that aren’t will be automatically removed on restart of MediaMonkey for Windows). For example:

[FilenameMappings]
2A=2D
2F=2D
3A=2D
3C=2D
3E=2D
5C=2D
7C=2D

In this example, 3A=2D means that “:” is mapped to “-“. If you wish to look up the hexadecimal values of characters, you can do so via the “Character map” application included with Windows. To change the substitution table to better suit your needs:

  1. Close MediaMonkey for Windows (so that it doesn’t overwrite any of the changes)
  2. Back up the MediaMonkey.ini file.
  3. Open the MediaMonkey.ini file inside a text editor such as Notepad, edit the [FilenameMappings] section as required, and save it.
  4. Start MediaMonkey for Windows

NOTES

  • To ensure that metadata containing a ‘\’ doesn’t create a new directory when using auto-organize, add the following mapping: 5C=2D

Applies to: ,

Hide original

这篇文章有帮助吗?