[XeTeX] Coptic typesetting backwards with polyglossia
Gareth Hughes
garzohugo at gmail.com
Fri Apr 1 17:06:39 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/04/11 01:31, Jonathan Harmon wrote:
> I was so pleased that the polyglossia package started supporting more
> languages, including Coptic. But when I try to invoke it with
> \textcoptic{} or the coptic environment, it typesets right-to-left, i.e.
> backwards. Interestingly, the problem doesn't seem to exist
> if \textcoptic{} is not invoked. Is there a reason for this, or was
> there a step I missed?
>
> Here is the text of the example file:
>
> \documentclass{article}
> \usepackage{fontspec,xunicode,xltxtra}
>
> \usepackage{polyglossia}
>
> \setmainlanguage{english}
>
> \setotherlanguage{coptic}
>
> \setmainfont{Antinoou}
>
> \newfontfamily\copticfont{Antinoou}
>
> \begin{document}
>
> Here is some English text.
>
> \bigskip
>
> And now for the Coptic:
>
> ⲛⲁⲉⲓ ⲛⲉ ⲛ̅ϣⲁϫⲉ ⲉⲑⲏⲡ ⲉⲛⲧ-ⲁ-ⲓ̅ⲥ̅
>
> \textcoptic{ⲛⲁⲉⲓ ⲛⲉ ⲛ̅ϣⲁϫⲉ ⲉⲑⲏⲡ ⲉⲛⲧ-ⲁ-ⲓ̅ⲥ̅}
>
> \begin{coptic}
>
> ⲛⲁⲉⲓ ⲛⲉ ⲛ̅ϣⲁϫⲉ ⲉⲑⲏⲡ ⲉⲛⲧ-ⲁ-ⲓ̅ⲥ̅
>
> \end{coptic}
>
> \end{document}
The problem is in the file
TEXMF/tex/xelatex/polyglossia/gloss-coptic.ldf which says
> \PolyglossiaSetup{coptic}{
> script=Coptic,
> direction=RL,
> scripttag=copt,
> langtag=COP,
> hyphennames={coptic},
> hyphenmins={2,2},
> fontsetup=true
> }
If that's changed to direction=LR, Coptic should work properly.
Gareth.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFNlen/9UDttp8yrx4RAnymAJ9VgHzIPsv5VeeV0xed2dNsWCMAoQCgoPGD
mjVFcHmxRO3tPYi8jLPU2rc=
=ei+K
-----END PGP SIGNATURE-----
More information about the XeTeX
mailing list