asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 500 forks source link

Add select combining characters to bundled fonts #2482

Closed mojavelinux closed 8 months ago

mojavelinux commented 8 months ago

In order to add diacritical marks to certain characters, such as small capital letters, fonts will use combining characters instead of dedicated characters. Add the combining characters in the range U+0300-U+030f for this purpose. (If a larger range is needed, we can add it later).

Here's an example of a letter that uses one of this characters: ᴇ́ (small capital E with an acute accent)

mojavelinux commented 8 months ago

With this added, it's possible to support the smallcaps transformation (with help from an extended converter) for non-ASCII letters. See docs.asciidoctor.org/pdf-converter/latest/theme/text/#transform