I'm using the interlinear text model here described in Doing an interlinear text, but for other purposes I want to write a interlinear Arabic / Russian Text, but I don't understand why my code doesn't run.
I can not put the Arabic text in the XeLaTeX file.
Here is the code:
\documentclass[11pt]{book}
\usepackage[margin=1in]{geometry}
\usepackage{titlesec}
\usepackage{polyglossia}
\defaultfontfeatures{Ligatures=TeX}
\setmainlanguage{brazil}
\setotherlanguage[variant=ancient]{greek}
\setotherlanguage[arabic]
\setmainfont{Linux Libertine O}
\usepackage{expex}
\usepackage{hologo}
\usepackage{fontspec}
\titleformat{\chapter}[display]
{\normalfont\filcenter}
{\LARGE\MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{\vspace{1pc}%
\LARGE}
\titlespacing{\chapter}
{0pt}{0pt}{10pt}
\titleformat{\section}[leftmargin]
{\normalfont
\vspace{0pt}%
\bfseries\Large\filleft}
{\thesection}{.5em}{}
\titlespacing{\section}
{4pc}{1.5ex plus .1ex minus .2ex}{0pt}
\renewcommand{\thesection}{\arabic{chapter}:\arabic{section}}
\lingset{glhangstyle=none}
\begin{document}
\setcounter{chapter}{1}
\chapter{O sonhou Nabucodonsor}
\section{}
\begingl
\gla \begin{Arabic}
هناك حقيقة مثبتة منذ زمن طويل وهي أن المحتوى المقروء لصفحة ما سيلهي القارئ عن الترك
\end{Arabic}//
\glb {εν τω} έτει τω δευτέρω της βασιλείας Ναβουχοδονόσορ ενυπνιάσθη Ναβουχοδονόσορ
ενύπνιον και εξέστη το πνεύμα αυτού και ο {ύπνος αυτού} {εγένετο απ 'αυτού}//
\glc No ano {} segundo do reinado {de Nabucodonosor} sonhou Nabucodonsor
{um sonho,} e desconcertou-se o espirito dele, e o {sono dele} {se lhe fugiu.}//
\endgl
\section{}
\begingl
\gla это текст-"рыба", часто используемый в печати и вэб-дизайне. Lorem Ipsum является стандартной "рыбой" для текстов на латинице с начала XVI века.//
\glb και είπεν ο βασιλεύς καλέσαι τονς επαοιδούς και τονς μάγους και
τονς φαρμακούς και τονς Χαλδαίούς τον αναγγείλαι τω βασιλεί
τα {ενύπνια αυτού} και ήλθον και έστησαν ενώπιον του βασιλεύς //
\glc E mandou o rei chamar os encantadores, e os magos, e
os {ministradores de poções,} e os Caldeus, para anunciar ao rei
{as \emph{coisas}} {dos sonhos dele.} e vieram E {postaram-se} diante
de rei//
\endgl
\end{document}
