From 80c5e99c3c690ae323ea28216d1b5cc3a395b850 Mon Sep 17 00:00:00 2001 From: Arthur Tazhitdinov Date: Fri, 16 Jan 2026 19:53:03 +0500 Subject: [PATCH] restore breaking after en/em dashes --- lib/Epub/Epub/hyphenation/HyphenationCommon.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp b/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp index 907095fc..99584fde 100644 --- a/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp +++ b/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp @@ -111,6 +111,18 @@ bool isExplicitHyphen(const uint32_t cp) { case 0x058A: // Armenian hyphen case 0x2010: // hyphen case 0x2011: // non-breaking hyphen + case 0x2012: // figure dash + case 0x2013: // en dash + case 0x2014: // em dash + case 0x2015: // horizontal bar + case 0x2043: // hyphen bullet + case 0x207B: // superscript minus + case 0x208B: // subscript minus + case 0x2212: // minus sign + case 0x2E17: // double oblique hyphen + case 0x2E3A: // two-em dash + case 0x2E3B: // three-em dash + case 0xFE58: // small em dash case 0xFE63: // small hyphen-minus case 0xFF0D: // fullwidth hyphen-minus return true;