Hebrew fonts in Pressbooks (Open Source)

On the SUNY Create Pressbooks, which is a self hosted Pressbooks installation, we have a book failing to export due to a lack of fonts.

There is some modern Hebrew in one of the chapters.

In the Book Styles area, its possible to add Biblical Hebrew, but there is no Hebrew or Modern Hebrew.

I wondered if it was because Pressbooks SAAS already has a Hebrew font installed at the server level as part of your standard setup, so that’s why it wasn’t included as a possible add on in theme options.

I have 2 requests (if I’m correct about my assumptions above):

  1. What package or hebrew font do you think I need to ask my system administrator to install?
  2. Could Hebrew be added to the list of additional fonts in Pressbooks Theme Options, so that having hebrew installed at the server level is no longer a “hidden dependency” for open source users/admins?

Thanks in advance for any help you can provide.

@SteelWagstaff

Would this be a better as an issue in Github?

Hey Ed, sorry for delayed response – I don’t know how I missed the original post. To the best of my knowledge, we do not have any additional typefaces intended to support modern Hebrew installed on our enterprise servers.

When it comes to supporting additional languages, the process that I’ve used in the past is to

  1. start by writing a text in the desired language (with the unicode characters specified for the alphabet).
  2. I then look at a webbook and PDF export to see whether the default fontstack for a given theme have glyphs for all the characters I used. If either of them look wonky or I see the dreaded ‘tofu’ blocks, that’s a sign that we need to add additional support for the language’s writing system.
  3. I then try to find a relevant Noto typeface that does support the language. In this case, https://fonts.google.com/noto/specimen/Noto+Sans+Hebrew looks like a pretty good candidate. We can then add this to the list of supported languages via a couple of pull requests.

If you’ve already done 1 and 2 for modern Hebrew, yeah I think opening a GitHub ticket that says ‘Add support for modern Hebrew alphabet’ with a sample chapter/export that has missing glyphs and a couple of representative screenshots would be ideal. Here are a couple of prior examples you could use a templates: Add support for Cherokee using Language & Script Support · Issue #960 · pressbooks/pressbooks-book · GitHub and Add support for Adlam & N'Ko scripts · Issue #585 · pressbooks/pressbooks-book · GitHub. Hope that helps!