We are noticing that characters with kakahō (macrons) appear different than other characters in the text. It almost looks like they are bold, or in a different font.
Regular in-chapter content doesn’t appear this way, only the text styled as a heading I believe.
Might this be a theme-based issue? I foresee more content using Hawaiian diacriticals in the near future, hoping to find the cleanest way to handle it now.
FYI This book uses the Open Textbooks theme Version: 2.1.1
Mahalo for any pointers!
We don’t maintain the Open Textbooks theme (that’s one of @brad’s creations at BCcampus), so it’s hard to say exactly. First debugging question I’d ask is if the problem persists in vanilla Pressbooks themes (like McLuhan or Luther)?
Quick test for me indicates that it’s probably an issue with character support for the typeface used by the theme. I created a test chapter Kakahō testing: ʻā, ʻē, ʻī, ʻō, ʻū, hē, kē, lā, mū, nū, pī, wē, ʻokina – Testing Pressbooks: ʻā, ʻē, ʻī, ʻō, ʻū, hē, kē, lā, mū, nū, pī, wē, ʻokina using McLuhan and noticed that the text looks good in the main body (in bold, italic, and blockquotes) but renders strangely in the ToC.
In the screenshot I posted, we’re using
Lora as the typeface for the body text and
Karla for the ToC test. I believe both are Google fonts. Karla appears to have a more limited character set (Karla - Google Fonts) than Lora does (Lora - Google Fonts). My suspicion is that what you’re seeing here is the browser displaying the unicode character for a character that doesn’t have a specified symbol included in the font kit in question. That’s my first, best guess as to why the macrons render differently in that example (and in our Open Textbook example).
you might find some love adding fonts that support diacriticals in theme options:
Doesn’t look like Hawaiian language is supported.
IIRC you did some work to include additional indigenous languages.
What would the process look like if we wanted Hawaiian diacriticals in the supported languages?
And thanks for looking into this, @SteelWagstaff.
FWIW this affects our exports as well.
We would probably be fine using a limited number (or single) font if the rendering of these characters were consistent.
Hi all, the immediate issue is what @SteelWagstaff identified — the theme used for titling and TOC items in the webbook UI is Karla, which does not include kakahō. I think it would be good to add explicit support for Hawaiian in language & script support. However, this would only affect chapter/section titles and content and would not solve the issue @wmeinke is encountering. My inclination would be to expand the scope of language & script support so as to alter the fonts in the webbook UI as well. I think that needs a quick product discussion, so I’ll add it to our product team meeting agenda for Monday. Thanks for bringing this to our attention, as I expect it affects other languages & scripts as well!
Thanks for the quick response @ned!
I’ll check back next week.
@wmeinke I’m guessing you noticed this a long time ago, but Karla added a more complete glyphset to the font in 2019 (karla/FONTLOG.txt at main · googlefonts/karla · GitHub), which results in much better performance for kakahō and other Latin characters with diacritical markings. I think books and chapters should look good now, but let me know if you’ve noticed any other problems related to this?
Thanks Steel! We will be doing updates soon and will take a look.