Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"respect font faces" should be more general and more careful #1169

Closed
karlkleinpaste opened this issue Aug 12, 2024 · 0 comments
Closed

"respect font faces" should be more general and more careful #1169

karlkleinpaste opened this issue Aug 12, 2024 · 0 comments

Comments

@karlkleinpaste
Copy link
Contributor

Xiphos provides a "respect font faces" option, where embedded font directives are left alone vs aggressively going through the rendered HTML content to obliterate them. This is useful where poor publishers' choices can be overcome by letting the user's choice for the module as a whole remain in control. I use this in NET + NETnote because the "Galaxie Hebrew" and "Galaxie Greek" are plain ugly, and the FreeSerif or LinuxLibertine I normally use for most modules are quite beautiful by comparison.

This has 2 longstanding problems:

  • It's far too specific to "Galax" as a font face prefix. When this was implemented, I was far too concerned with one type of font use, from NET.
  • It obliterates the entire "[font face="..."]" and "[/font]" specifications, leaving a pile of spaces that make the embedded Heb/Grk content not flow properly, such as when following a parenthesis opening a comment, which renders at the end of the line, so the parenthesis is at line end and the Heb/Grk starts the next line.

Thus:

  • Get rid of the "Galax" prefix specificity: Annihilate any font.
  • Replace only the actual font name with some garbage, so that the font face does not actually change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant