Kahakō support (Hawaiian macrons)


#1

Aloha team-

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.

Examples:

41%20AM

and

unnamed

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!

Billy


#2

Aloha Billy!

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)?


#3

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 https://wisc.pb.unizin.org/testbook/chapter/kakaho-testing/ 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 (https://fonts.google.com/specimen/Karla) than Lora does (https://fonts.google.com/specimen/Lora). 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).


#4

you might find some love adding fonts that support diacriticals in theme options:


#5

Thanks Brad!

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?


#6

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.


#7

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!


#8

Thanks for the quick response @ned!

I’ll check back next week.