question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hyphens display incorrectly on macOS speedreader articles

See original GitHub issue

Description

We set hyphens: auto in the speedreader css, which asks the layout engine to break long words at the end of lines when the article is marked with a recognized lang value. A user reports the square boxes where hyphen characters should be shown.

Steps to Reproduce

  1. Enable Speedreader
  2. Visit a page where Speedreader is triggered.
  3. Change the window width until some words are split across lines
  4. Observe line-ending word break characters

Actual result:

Square boxes appear at the end of some lines. Screen Shot 2021-11-07 at 4 45 36 PM

Expected result:

Word-breaks should be marked by inserted hyphen (-) characters. Screenshot from 2021-11-10 14-11-14

Reproduces how often:

User reports it happens with multiple fonts on their macOS system, including Apple system fonts like Optima as well as the requested Georgia. The problem does not occur with Helvetica.

If the hyphens: auto style rule is disabled in devtools, words are not broken and the problem doesn’t manifest.

I haven’t been able to reproduce on Linux, hyphenation works as expected.

I don’t see hyphenation happening at all on Windows 10, so I can’t reproduce there either.

Brave version (brave://version info)

Brave 1.33.x Nightly

Version/Channel Information:

  • Can you reproduce this issue with the current release?
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the nightly channel?

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rilliancommented, Nov 10, 2021
0reactions
rilliancommented, Mar 25, 2022

Fascinating. Ok, sounds like @boocmp’s suggestion isn’t sufficient on its own. 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Format hyphens, dashes, and quotation marks in Pages on Mac
Click Auto-Correction at the top of the settings window. In the Formatting section, select the “Use smart quotes and dashes” checkbox. Click the...
Read more >
Speedreader - GitHub
Speedreader layout, typography and reading comfort brave-browser#23771 opened by shinze ... speedreader doesn't show Brave Support center article title ...
Read more >
Incorrect display of a dash [duplicate] - LaTeX Stack Exchange
I have next problem: I can't compile code after I copied and paste it in editor, because dashes on the left side of...
Read more >
Untitled
Singam puli tamil hot scene in tamil, Masak buah rumbia, Ey eshghe man az to, Cedar bluff station post office hours, Sustainable transportation...
Read more >
Untitled
Gente poco corriente eric hobsbawm, Body fat monitor iphone, Castello masino ... Parque tibes ponce horario, Speed reader enhanced portable, Tv alfa y...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found