We use s with caron COMBINING CARON U+030C

but also s with curved breve (curving up) COMBINING BREVE U+0306

from https://en.wikipedia.org/wiki/Diacritic

in a book we are typesetting with luatex using an adobe Berkeley opentype font on a mac

We tried



but it just outputs a plain s with no accent and no error.

It seems unicode suggests combining diacritical marks as the best way to add accents to a character.

What is the best way to implement this with this opentype font and luatex? Other suggestions are welcome.

  • 2
    add \tracinglostchars=3 to your preamble then compile. If you get an error your font doesn't have the accent and you will have to use another font or find a way to fake it. Aug 31, 2022 at 7:00
  • 1
    your log will (preumably) show a missing character warning not an error unless you set \tracinglostchars to 3 as Ulrike suggests, you can also use the standard latex markup \u{s} which may be easier to adjust to get the breve from another font (I do not have this font to test) Aug 31, 2022 at 7:18
  • Thank you both. Sadly \tracinglostchars=3 or 2 does not bring up an error for me in luatex. Standard markup \u{s} also produces no accent.
    – David B
    Sep 3, 2022 at 22:57
  • 1
    @DavidB That sounds like the font contains the combining characters but the glyphs are empty which seems weird. Of course it's hard to determine exactly what's going on without seeing the font. Sep 4, 2022 at 10:38

1 Answer 1

\newcommand\Sbreve{\accent\string"02D8 S}%  unicode U+02D8 for breve glyph

worked great for all characters where the accent goes above the main letter such as S.

The caron, breve, diaresis etc. were all in this Berkeley font at their correct unicode hex address.

The TeX \accent command places the accent above so did not work for accents such as slash or cedilla that do not appear above the character.

You could place these with low level TeX commands as explained in other questions.

  • You lose all the kerning by using the \accent primitive. Sep 4, 2022 at 7:22

Not the answer you're looking for? Browse other questions tagged .