diff options
Diffstat (limited to 'src/sisudoc/ocda/meta/rgx.d')
| -rw-r--r-- | src/sisudoc/ocda/meta/rgx.d | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sisudoc/ocda/meta/rgx.d b/src/sisudoc/ocda/meta/rgx.d index 125fb52..f418582 100644 --- a/src/sisudoc/ocda/meta/rgx.d +++ b/src/sisudoc/ocda/meta/rgx.d @@ -226,6 +226,10 @@ static template spineRgxIn() { static br_line = ctRegex!(`\s*┘\s*`, "mg"); static br_line_inline = ctRegex!(`\s*┙\s*`, "mg"); static br_line_spaced = ctRegex!(`\s*┚\s*`, "mg"); + /+ ↓ the line break the markup asked for with a trailing " \\\\". xhtml writers + carry their own copy of this in rgx_xhtml may be needed by other writers + +/ + static line_break = ctRegex!(` [\\]{2}`, "m"); /+ inline markup footnotes endnotes +/ static inline_notes_al = ctRegex!(`【(?:[*+]\s+|\s*)(.+?)】`, "mg"); static inline_notes_al_special = ctRegex!(`【(?:[*+]\s+)(.+?)】`, "mg"); // TODO remove match when special footnotes are implemented @@ -258,6 +262,11 @@ static template spineRgxIn() { static inline_link_clean = ctRegex!(`┤(?:.+?)├|[┥┝]`, "mg"); static inline_link_toc_to_backmatter = ctRegex!(`┤#(?P<link>endnotes|bibliography|bookindex|glossary|blurb)├`, "mg"); static find_bookindex_ocn_link_and_comma = ctRegex!(`[, ]*┥.+?┝┤#?\S+?├`, "mg"); + /+ ↓ an internal link target on its own, with or without the segment prefix a segmented output uses. Read where the + *target* is the question and the surrounding link may be malformed: gpl3`s copyright line nests one link inside + another, which the flat markers cannot express, so the target is there and the pair around it is not + +/ + static any_internal_target = ctRegex!(`┤(?:¤.+?\.fnSuffix)?#(?P<frag>[^├]+)├`, "mg"); static url = ctRegex!(`https?://`, "mg"); static uri = ctRegex!(`(?:https?|git)://`, "mg"); static uri_identify_components = ctRegex!(`(?P<type>(?:https?|git)://)(?P<path>\S+?/)(?P<file>[^/]+)$`, "mg"); |
