diff options
| -rw-r--r-- | org/default_paths.org | 17 | ||||
| -rw-r--r-- | src/sisudoc/ocda/io_in/paths_source.d | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/org/default_paths.org b/org/default_paths.org index 9bf56d5..27caf8b 100644 --- a/org/default_paths.org +++ b/org/default_paths.org @@ -277,6 +277,23 @@ template PathMatters() { } return _uid; } + /+ ↓ doc_uid_out without the trailing ".{lng}", for the artefacts + that hold every language of a document in one file rather + than one file per language (the .ocda.db) + +/ + string doc_uid_out_no_lang() { + string _uid; + if (is_pod && !(pod_name_with_path.empty)) { + if (pod_name_with_path.baseName == filename_base) { + _uid = filename_base; + } else { + _uid = pod_name_with_path.baseName ~ mkup.uid_sep ~ filename_base; + } + } else { + _uid = "_" ~ filename_base; + } + return _uid; + } string docname_composite_unique_per_src_doc() { string _fn; if (pod_name_with_path.baseName == filename_base) { diff --git a/src/sisudoc/ocda/io_in/paths_source.d b/src/sisudoc/ocda/io_in/paths_source.d index c0f526a..125d6f1 100644 --- a/src/sisudoc/ocda/io_in/paths_source.d +++ b/src/sisudoc/ocda/io_in/paths_source.d @@ -265,6 +265,23 @@ template PathMatters() { } return _uid; } + /+ ↓ doc_uid_out without the trailing ".{lng}", for the artefacts + that hold every language of a document in one file rather + than one file per language (the .ocda.db) + +/ + string doc_uid_out_no_lang() { + string _uid; + if (is_pod && !(pod_name_with_path.empty)) { + if (pod_name_with_path.baseName == filename_base) { + _uid = filename_base; + } else { + _uid = pod_name_with_path.baseName ~ mkup.uid_sep ~ filename_base; + } + } else { + _uid = "_" ~ filename_base; + } + return _uid; + } string docname_composite_unique_per_src_doc() { string _fn; if (pod_name_with_path.baseName == filename_base) { |
