From 26aba525c0c55cb0ec77cf3a788cb59de2683cee Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 23 Sep 2026 07:18:52 -0400 Subject: uid and paths separator "~" in place of ":" need a character to split filenames on in certain circumstances. there problems with use of a colon in filenames, which is legal on posix but not on Windows."~" fits the bill better being legal on every filesystem of interest and is unreserved in rfc 3986, needing no escaping in a url. The reference abstraction is renamed, its content unchanged. Over the sample collection two filenames move and nothing else does: the abstraction and database digests are identical, the archive's members and their sizes are unchanged, and only the member order shifts, "~" collating after letters where ":" sorted before them. The document's epub dc:identifier is a v5 uuid derived from the uid, so it changes for those filenames. Every document's uid changes in the search database (spine.search.db). (assisted by Claude-Code) --- src/sisudoc/outputs/io_out/defaults.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sisudoc/outputs/io_out/defaults.d') diff --git a/src/sisudoc/outputs/io_out/defaults.d b/src/sisudoc/outputs/io_out/defaults.d index 73a9af1..0896be0 100644 --- a/src/sisudoc/outputs/io_out/defaults.d +++ b/src/sisudoc/outputs/io_out/defaults.d @@ -85,7 +85,7 @@ template InternalMarkup() { string tc_p = "┆"; string img = "☼"; string sep = "␣"; // "~";"␣"; // "~"; - string uid_sep = ":"; + string uid_sep = "~"; string on_o = "「"; string on_c = "」"; string mk_bullet = "● "; static string indent_by_spaces_provided(int indent, string _indent_spaces ="░░") { -- cgit v1.2.3