Kobo driver: Fix hyphenation settings not being applied correctly when generating KEPUB to put on the device

This commit is contained in:
Kovid Goyal 2025-03-24 11:44:14 +05:30
parent 28c1cb4711
commit e1fa22748f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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),
)