6

Trying to set up a document in classical latin using babel (XeLaTeX via MiKTeX).

\documentclass{article} \usepackage[no-math]{fontspec} \usepackage[classicallatin]{babel} \babelprovide[casing=nouv]{classicallatin} \babelfont{rm}{EB Garamond} %\usepackage{ebgaramond} %\setmainfont{EB Garamond} \usepackage{lipsum} \begin{document} \section{Capitulum PRIMUM} Exempla: U V \=U u \=u uu vu wu \lipsum[1] \end{document} 

with the following result:

fig. 1

As you can clearly see, all the u's got converted into v, and U into V, but not their diacritic-ed forms. This only happens when I use \babelfont{rm}{EB Garamond}.

These are the cases where this (u turning into v) doesn't happen:

  • Using \setmainfont
  • Using package ebgaramond
  • Using \babelfont with other fonts (e.g. Times New Roman, Comic Sans)

What did I do wrong? Why is this the case?

Edit: Just to clarify, I want it to not have any conversion at all.

1 Answer 1

5

The casing key of babel is for casing, that means it affects \MakeUppercase{u\=u v}.

What you see with EB garamond is a "font feature" as it has specific support for the language latin:

\documentclass{article} \usepackage[no-math]{fontspec} \setmainfont{EB Garamond}[Language=Latin] \begin{document} Exempla: U V \=U u \=u uu vu wu \end{document} 

enter image description here

There is not much you can do to get this replacement also with \=u, but if you want disable that you can force another language:

\babelfont{rm}[Language=Default]{EB Garamond} 
1
  • Perhaps fontspec (compiling with lualatex) allows creating a custom OpenType feature, than would perform the desired substitutions, using the existing characters in the font? Commented Oct 15 at 18:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.