From e1fa22748f90341cfdec9b0b5a44ef1c900d0997 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 Mar 2025 11:44:14 +0530 Subject: [PATCH] Kobo driver: Fix hyphenation settings not being applied correctly when generating KEPUB to put on the device --- src/calibre/devices/kobo/driver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index e675b94b6c..c8e2c77769 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -2347,10 +2347,10 @@ class KOBOTOUCH(KOBO): extra_css=self.extra_css or '', affect_hyphenation=bool(self.get_pref('affect_hyphenation')), disable_hyphenation=bool(self.get_pref('disable_hyphenation')), - hyphenation_min_chars=bool(self.get_pref('hyphenation_min_chars')), - hyphenation_min_chars_before=bool(self.get_pref('hyphenation_min_chars_before')), - hyphenation_min_chars_after=bool(self.get_pref('hyphenation_min_chars_after')), - hyphenation_limit_lines=bool(self.get_pref('hyphenation_limit_lines')), + hyphenation_min_chars=self.get_pref('hyphenation_min_chars'), + hyphenation_min_chars_before=self.get_pref('hyphenation_min_chars_before'), + hyphenation_min_chars_after=self.get_pref('hyphenation_min_chars_after'), + hyphenation_limit_lines=self.get_pref('hyphenation_limit_lines'), remove_at_page_rules=self.extra_css_options.get('has_atpage', False), remove_widows_and_orphans=self.extra_css_options.get('has_widows_orphans', False), )