Ebook viewer: Breaking long words at the ends of lines causing boxes to be rendered instead of hyphens on macOS

Bug #1954714 reported by Andras
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Version: 5.33.2 Problem was present also in 5.33. I think a couple of versions earlier it was working fine.
OS: Mac OS Monterey 12.1
Font: Tried a lot of fonts. Hyphens are broken with all fonts.

Custom style I used for many versions of Calibre:
p {
text-align:justify !important;
line-height: 1.4 !important;
hyphens:auto !important;
}
h1, h2, h3, h4, h5, h6 {
text-align:center;
font-style:italic;
font-weight:bold;}

Current behavior:
Hyphens render as a box in the end of the line with any font.

Expected behavior:
Hyphens render as "-" in the end of the line with any font.

Andras (abartl)
summary: - Ebook viewer: Fix the option to break long words at the ends of lines
- causing boxes to be rendered at the end of the line on macOS with some
- fonts
+ Ebook viewer: Breaking long words at the ends of lines causing boxes to
+ be rendered instead if hyphens on macOS
Andras (abartl)
summary: Ebook viewer: Breaking long words at the ends of lines causing boxes to
- be rendered instead if hyphens on macOS
+ be rendered instead of hyphens on macOS
Revision history for this message
Kovid Goyal (kovid) wrote :

This will be a bug in Qt WebEngine/chromium. Use

-webkit-hyphenate-character: "-" !important

Changed in calibre:
status: New → Invalid
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Invalid → Fix Released
Revision history for this message
Andras (abartl) wrote :

Thank you for the reply, your solution worked! In case anybody wants more detail, look here:
https://www.bram.us/2021/12/18/broken-hyphens-in-chromium-96-an-explanation-and-fix/

My updated style:

p {
text-align:justify !important;
line-height: 1.4 !important;
hyphens:auto !important;
-webkit-hyphenate-character: '-';
}
h1, h2, h3, h4, h5, h6 {
text-align:center;
font-style:italic;
font-weight:bold;
}

Revision history for this message
Alan Smith (dralans) wrote :

The hyphenation bug wasn't fixed in the ebook editor in calibre 5.35 for MacOS.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.