[luatex] hyphenating ancient Greek
Pablo Rodríguez
oinos at web.de
Sat Jun 12 13:57:02 CEST 2010
On 06/12/2010 12:00 AM, Khaled Hosny wrote:
> On Fri, Jun 11, 2010 at 11:14:14PM +0200, Pablo Rodríguez wrote:
>> Hi there,
>>
>> I hyphenate ancient Greek with babel on LaTeX or polyglossia with XeLaTeX.
>>
>> How could I do it using Lua(La)TeX?
>
> Assuming you are running a modern tex distro, say texlive 2009, there
> nothing special needed, just make sure your document is utf-8, then
> activate greek hyphenation in babel as usual.
Thanks for your reply, Khaled.
I use TL2009, my document is utf8, babel is invoked the usual way (at
least for greek), pdflatex and xelatex work, but lualatex doesn't:
\documentclass[a5paper,12pt]{article}
\usepackage[greek]{babel}
\usepackage{ifluatex}
\usepackage{ifxetex}
\ifluatex
\usepackage{luaotfload}
\usepackage[EU2]{fontenc}
\renewcommand*{\greektext}{}
\else
\ifxetex
\usepackage{xltxtra}
\setmainfont{Theano Didot}
\renewcommand*{\greektext}{}
\else
\usepackage[utf8x]{inputenc}
\fi
\fi
\begin{document}
\showhyphens{χαλεπὰ}
ἡ ῥητορική ἐστιν ἀντίστροφος τῇ διαλεκτικῇ: ἀμφότεραι γὰρ περὶ
τοιούτων τινῶν εἰσιν ἃ κοινὰ τρόπον τινὰ ἁπάντων ἐστὶ γνωρίζειν
καὶ οὐδεμιᾶς ἐπιστήμης ἀφωρισμένης: διὸ καὶ πάντες τρόπον τινὰ
μετέχουσιν ἀμφοῖν: πάντες γὰρ μέχρι τινὸς καὶ ἐξετάζειν καὶ ὑπέχειν
λόγον καὶ ἀπολογεῖσθαι καὶ κατηγορεῖν ἐγχειροῦσιν.
\end{document}
Am I missing something?
Thanks for your help,
Pablo
More information about the luatex
mailing list