4

I'm writing a paper on Hawaiian, and I wonder what the proper way of writing an ʻokina is in LaTeX. I believe it is U+02BB in Unicode (correct me if I'm wrong). For now, I have been replacing it by typing a grave accent ` in LaTeX, but I believe it yields U+2018, so it's similar, but not the same glyph.

Thanks!

  • 1
    it depends on the font you are using, in classic tex the fonts only have 127 or 256 characters so do not have a separate glyph for this in the common text fonts if you use lulatex or xelatex you could type U+02BB directly if your opentype font has the character – David Carlisle Apr 2 '18 at 23:18
2

This could be font-dependent. With pdflatex one can scale a backquote and raise it:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{newunicodechar,graphicx}
%\usepackage{libertine}

\DeclareRobustCommand{\okina}{%
  \raisebox{\dimexpr\fontcharht\font`A-\height}{%
    \scalebox{0.8}{`}%
  }%
}
\newunicodechar{ʻ}{\okina}

\begin{document}

``ʻ\=Olelo Hawaiʻi''

\end{document}

enter image description here

The same with libertine enabled:

enter image description here

Compare with XeLaTeX and Libertinus Serif

\documentclass{article}
\usepackage{fontspec}

\setmainfont{Libertinus Serif}

\begin{document}

``ʻ\=Olelo Hawaiʻi''

\end{document}

enter image description here

  • This works nicely. Since the Unicode description is Modifier letter turned comma, I originally tried to turn a comma and raise it, but I failed. Would this approach yield the same result if successful? – Lundgren8 Apr 2 '18 at 23:48
  • 2
    @Lundgren8 In most fonts a comma is a rotated version of the left quote. – egreg Apr 2 '18 at 23:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.