Menu

Is there a way to turn off ii, ij and ji changes in LuaLaTeX + Junicode?

2014-12-31
2014-12-31
  • Jakub Jelinek

    Jakub Jelinek - 2014-12-31

    \documentclass[a4paper]{article}
    \usepackage{fontspec}
    \setmainfont{Junicode}
    \begin{document}
    \noindent
    ji\\
    ii\\
    ij\\
    fi\\
    j\mbox{}i\\
    i\mbox{}i\\
    i\mbox{}j\\
    f\mbox{}i
    \end{document}

    ends up with dotless i or j as the second letter. The fi ligature is fine, but ii, ji and ij transformation into jı, iı, i doesn't look like a ligature, at least when pasted out of the pdf it is two separate letters. Is there a way to turn this off? It might be fine for e.g. Latin, but for translations into other languages it is less desirable, and using a different font for the translations might be too ugly.

     

    Last edit: Jakub Jelinek 2014-12-31
  • Jakub Jelinek

    Jakub Jelinek - 2014-12-31

    Junicode 0.6.17 still didn't do it, only 0.7.0 and later does.

     
  • Jakub Jelinek

    Jakub Jelinek - 2014-12-31

    \documentclass{article}
    \usepackage{filecontents,fontspec}
    \begin{filecontents*}{juni.fea}
    languagesystem DFLT dflt;
    languagesystem latn dflt;

    fix problem in https://tex.stackexchange.com/q/220038/7883

    feature fixi {
    sub uni0131 by i;
    sub uniF6BE by j;
    } fixi;
    \end{filecontents*}
    \setmainfont[FeatureFile={juni.fea}, Ligatures={Common, TeX}, RawFeature=+fixi]{Junicode}
    \begin{document}
    \noindent
    ji\\
    ii\\
    ij\\
    fi\\
    j\mbox{}i\\
    i\mbox{}i\\
    i\mbox{}j\\
    f\mbox{}i
    \end{document}

    works around this, but wonder if:
    1) this behavior is intentional (I didn't see omission of second dot in ii, ij and ji in the
    http://babel.hathitrust.org/cgi/pt?id=ucm.5326970965
    pages I've skimmed)
    2) if there isn't a better way (some feature flag) to disable this behavior

     

Log in to post a comment.