From 831a67d1273c40ff9b7e040207878b072051be5c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Jan 2022 08:36:58 +0530 Subject: [PATCH] Add link to chromium bug for hyphenate char on macos --- resources/pdf-preprint.js | 1 + src/pyj/read_book/settings.pyj | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/pdf-preprint.js b/resources/pdf-preprint.js index bdd9c92974..384bdabb09 100644 --- a/resources/pdf-preprint.js +++ b/resources/pdf-preprint.js @@ -35,6 +35,7 @@ // is U+2010 but that does not render with the default Times font on macOS as of Monterey // and Qt 15.5 See https://bugs.launchpad.net/bugs/1951467 and can be easily reproduced // by converting a plain text file with the --pdf-hyphenate option + // https://bugs.chromium.org/p/chromium/issues/detail?id=1267606 (fix released Feb 1 2022 v98) // See also settings.pyj if (HYPHEN_CHAR) { for (const elem of document.getElementsByTagName('*')) { diff --git a/src/pyj/read_book/settings.pyj b/src/pyj/read_book/settings.pyj index b0af75c6b6..3bce4523c3 100644 --- a/src/pyj/read_book/settings.pyj +++ b/src/pyj/read_book/settings.pyj @@ -79,6 +79,7 @@ def apply_colors(is_content_popup): # is U+2010 but that does not render with the default Times font on macOS as of Monterey # and Qt 15.5 See https://bugs.launchpad.net/bugs/1951467 and can be easily reproduced # by converting a plain text file with the --pdf-hyphenate option + # https://bugs.chromium.org/p/chromium/issues/detail?id=1267606 (fix released Feb 1 2022 v98) # See also pdf-preprint.js text += '\n* { -webkit-hyphenate-character: "-" !important }\n' if opts.override_book_colors is not 'never':