diff --git a/pandoc-filters/sentence_lines.lua b/pandoc-filters/sentence_lines.lua index 90507cf7..e15f7de4 100644 --- a/pandoc-filters/sentence_lines.lua +++ b/pandoc-filters/sentence_lines.lua @@ -34,6 +34,11 @@ end local function is_en_exception (previous, next) if tr_non_terminal[previous] then return true end + -- Dates (reverse from most common order, but other way harder to match without negatives) + if previous:match("A%.?D%.$") and next:match("^%d") then return true end + if previous:match("B%.?C%.$") and next:match("^%d") then return true end + if previous:match("C%.?E%.$") and next:match("^%d") then return true end + if previous:match("B%.?C%.?E%.$") and next:match("^%d") then return true end -- Verse refs, e.g. Gen. 16 if previous:match("^%u%P+%.$") and next:match("^%d") then return true end end