[XeTeX] polyglossia and ledpar conflict

Gildas Hamel gweltaz at ucsc.edu
Sun Jun 13 20:21:46 CEST 2010


* Daron Wilson (daron.wilson at gmail.com) wrote:
[....]

  |>  
  |>  ====== Doc Source ==========
  |>  
  |>  %!TEX TS-program = xelatex
  |>  %!TEX encoding = UTF-8 Unicode
  |>  
  |>  \documentclass[10pt]{memoir}
  |>  \usepackage{fontspec}
  |>  \usepackage{polyglossia}
  |>  	\setdefaultlanguage[variant=american]{english}
  |>  	\setotherlanguage[variant=ancient]{greek}
  |>  	\newfontinstance\greekfont[Scale=1.1]{Lucida Grande}
  |>  \usepackage{ledmac}
  |>  \usepackage{ledpar}
  |>  
  |>  \begin{document}
  |>  	\begin{greek}
  |>  	Καθὼς παρεκάλεσά σε προσμεῖναι ἐν Ἐφέσῳ πορευόμενος εἰς Μακεδονίαν
  |>  	\end{greek}	
  |>  \end{document}
  |>  
  |>  
  |>  
  |>  A pdf file is actually created, but all it contains is the page number and the following text on a single line:
  |>  
  |>  ]greekΚ￿￿￿￿ ￿￿￿￿￿￿￿￿￿￿ ￿￿ ￿￿￿￿￿￿￿￿￿￿ ￿￿ ￿￿￿￿￿ ￿￿￿￿￿￿￿￿￿￿￿ ￿￿￿ Μ￿￿￿￿￿￿￿￿￿
  |>  

I only use the parallel package, not the ledpar with which I'm unfamiliar. If instead of using \begin{greek}...\end{greek} [not sure why this doesn't work with ledpar and ledmac], I use \textgreek{} I get the Greek text to show and hyphenate properly.  My example below.
--gildas 

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass[10pt]{memoir}                                                    
\usepackage{fontspec}                                                           
\usepackage[english]{polyglossia}                                                                               
\setotherlanguage[variant=ancient]{greek}                               
\newfontinstance\greekfont[Scale=1.1]{GraecaUBSU}          
\usepackage{ledmac}                                                             
\usepackage{ledpar}                                                             
                                                                                
\begin{document}
\begin{pairs}    
	\begin{Leftside}
		\beginnumbering
			\pstart
text here, however long. 
			\pend
		\endnumbering
	\end{Leftside}
	\begin{Rightside}
		\beginnumbering
        	\pstart
        		\textgreek{\textsuperscript{3}~Καθὼς παρεκάλεσά σε προσμεῖναι ἐν Ἐφέσῳ πορευόμενος εἰς Μακεδονίαν, ἵνα παραγγείλῃς τισὶν μὴ ἑτεροδιδασκαλεῖν \textsuperscript{4}~μηδὲ προσέχειν μύθοις καὶ γενεαλογίαις ἀπεράντοις, αἵτινες ἐκζητήσεις παρέχουσιν μᾶλλον ἢ οἰκονομίαν θεοῦ τὴν ἐν πίστει· \textsuperscript{5}~τὸ δὲ τέλος τῆς παραγγελίας ἐστὶν ἀγάπη ἐκ καθαρᾶς καρδίας καὶ συνειδήσεως ἀγαθῆς καὶ πίστεως ἀνυποκρίτου, \textsuperscript{6}~ὧν τινες ἀστοχήσαντες ἐξετράπησαν εἰς ματαιολογίαν, \textsuperscript{7}~θέλοντες εἶναι νομοδιδάσκαλοι, μὴ νοοῦντες μήτε ἃ λέγουσιν μήτε περὶ τίνων διαβεβαιοῦνται.}
        	\pend
        \endnumbering
	\end{Rightside}
	\Columns                                              
\end{pairs}                                                            
\end{document}



More information about the XeTeX mailing list