Browse Source

update the replacement characters list (fix #1625)

Gildas 1 year ago
parent
commit
9307ad5be6
3 changed files with 18 additions and 12 deletions
  1. 8 5
      README.MD
  2. 7 5
      src/ui/pages/help.html
  3. 3 2
      src/ui/pages/help_zh_CN.html

+ 8 - 5
README.MD

@@ -116,11 +116,14 @@ See https://addons.mozilla.org/firefox/addon/single-file/versions/
     [video](https://developer.mozilla.org/docs/Web/HTML/Element/video) elements.
   - The last saved path cannot be remembered by default. To circumvent this
     limitation, disable the option "Misc > save pages in background".
-  - The following characters are replaced with `_` in file names: `~`, `+`, `\`,
-    `?`, `%`, `*`, `:`, `|`, `"`, `<`, `>`. This is done to maintain compatibility with
-    various OSs and file systems. If you don't need that level of compatibility and know
-    what you are doing, you can change the list of forbidden characters in
-    [Hidden options](https://github.com/gildas-lormeau/SingleFile/wiki/Hidden-options).
+  - The following characters are replaced by their full-width equivalent 
+    symbols in file names: ~, +, ?, %, *, :, |, ", &lt;, &gt;, \. The 
+    replacement characters are respectively: ~, +, ?, %, *, :, |, ", <, >, \.
+    Other invalid charcaters are replaced by _. This is done to maintain 
+    compatibility with various OSs and file systems. If you don't need that 
+    level of compatibility and know what you are doing, you can change the
+    list of forbidden characters and the replacement characters in the Hidden 
+    options(https://github.com/gildas-lormeau/SingleFile/wiki/Hidden-options).
 - Chromium-based browsers:
   - You must enable the option "Allow access to file URLs" in the extension page
     to display the infobar when viewing a saved page, and to save or to annotate

+ 7 - 5
src/ui/pages/help.html

@@ -1245,11 +1245,13 @@
 								canvas and snapshots of video elements.</li>
 							<li>The last saved path cannot be remembered by default. To circumvent this limitation,
 								disable the option "Misc. &gt; Save pages in background".</li>
-							<li>The following characters are replaced with _ in filenames: ~, +, \, ?, %, *, :, |, ",
-								&lt;, &gt;. This is done to maintain compatibility with various OSs and file systems.
-								If you don't need that level of compatibility and know what you are doing, you can
-								change the list of forbidden characters in
-								<a href="https://github.com/gildas-lormeau/SingleFile/wiki/Hidden-options">Hidden
+							<li>The following characters are replaced by their full-width equivalent symbols in file
+								names: ~, +, ?, %, *, :, |, ", &lt;, &gt;, \. The replacement characters are
+								respectively: ~, +, ?, %, *, :, |, ", <, >, \. Other invalid charcaters are replaced by
+								_. This is done to maintain compatibility with various OSs and file systems. If you
+								don't need that level of compatibility and know what you are doing, you can change the
+								list of forbidden characters and the replacement characters in the <a
+									href="https://github.com/gildas-lormeau/SingleFile/wiki/Hidden-options">hidden
 									options</a>.
 							</li>
 						</ul>

+ 3 - 2
src/ui/pages/help_zh_CN.html

@@ -875,8 +875,9 @@
                                 https://addons.mozilla.org以及其他一些Mozilla域名。当这种情况发生时,🚫 显示在SingleFile图标的顶部。</li>
                             <li>出于安全原因,SingleFile有时无法保存画布的图像表示和视频元素的快照。</li>
                             <li>默认情况下,无法记住上次保存的路径。要规避此限制,请禁用“杂项&gt;在后台保存页面”选项。</li>
-                            <li>文件名中的以下字符被替换为_:~、+、\、?、%、*、:、|、,“,&lt;,&gt;。这样做是为了保持与各种操作系统和文件系统的兼容性。如果你不需要这种兼容性,并且知道自己在做什么,你可以在<a
-                                    href="https://github.com/gildas-lormeau/SingleFile/wiki/Hidden-options">隐藏选项</a>.
+                            <li>以下字符在文件名中被替换为其全角等效符号:~、+、?、%、*、:、|、"、<、>、\。替换后的字符分别是:~、+、?、%、*、:、|、"、<、>、\。其他无效字符会被替换为
+                                    _。这样做是为了兼容不同的操作系统和文件系统。如果不需要这种兼容性,并且知道自己在做什么,可以在<a
+                                        href="https://github.com/gildas-lormeau/SingleFile/wiki/Hidden-options">隐藏选项</a>中更改禁止字符和替换字符的列表。
                             </li>
                         </ul>
                     </li>