From 9e1f1f19cce5989290c1abc618d0b0b91591525c Mon Sep 17 00:00:00 2001 From: poire-z Date: Mon, 10 Jan 2022 19:14:38 +0100 Subject: [PATCH] Style tweaks: add "Ignore publisher line-break restrictions" --- frontend/ui/data/css_tweaks.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/ui/data/css_tweaks.lua b/frontend/ui/data/css_tweaks.lua index 26f8b2e28..09a362cc5 100644 --- a/frontend/ui/data/css_tweaks.lua +++ b/frontend/ui/data/css_tweaks.lua @@ -304,6 +304,14 @@ DocFragment { h1, h2, h3, h4, h5, h6 { hyphens: none !important; } ]], }, + { + id = "line_break_cre_loose"; + title = _("Ignore publisher line-break restrictions"), + description = _([[ +A publisher might use non-breaking spaces and hyphens to avoid line breaking between some words, which is not always necessary and may have been added to make reading easier. This can cause large word spacing on some lines. +Ignoring them will only use KOReader's own typography rules for line breaking.]]), + css = [[* { line-break: -cr-loose; }]], + }, { id = "ligature_all_no_common_ligature"; title = _("Disable common ligatures"),