\documentclass{article}
\usepackage[georgian]{babel}
\usepackage{ifxetex}% load different packages with/without XeLaTex
\ifxetex
\usepackage{fontspec}
\setmainfont{sylfaen.ttf}
\else % packages below are not needed with utf8 based engines
\usepackage[utf8]{inputenc}
\usepackage[T8M]{fontenc}
\fi%
\begin{document}
\begin{abstract}
test ტესტი
\end{abstract}
\section{Test section}
test ტესტი
\end{document}
Porque pdflatex
todo funciona... cuando tengo el idioma activo, georgian
el texto georgiano no se muestra... Sé que la codificación de fuente se cambia de EU1/2 a TU, pero no sé por qué EU1/2 está activado pero no TU...
Simplemente cambiar de UE a TU en un archivo ldf no ayuda...
Respuesta1
Desafortunadamente, georgian.ldf
no se ha actualizado para admitir TU
. La solución es sencilla:
\documentclass{article}
\usepackage[georgian]{babel}
\usepackage{ifxetex}% load different packages with/without XeLaTex
\ifxetex
\def\georgianencoding{TU}
\usepackage{fontspec}
\setmainfont{DejaVu Serif}
\else % packages below are not needed with utf8 based engines
\usepackage[utf8]{inputenc}
\usepackage[T8M]{fontenc}
\fi
\begin{document}
\begin{abstract}
test ტესტი
\end{abstract}
\section{Test section}
test ტესტი
\end{document}
Aquí hay una versión editada de georgian.ldf
(solo la parte relevante):
\newif\if@kauni@ode
\ifdefined\luatexversion \@kauni@odetrue \else
\ifdefined\XeTeXrevision \@kauni@odetrue \fi\fi
\ifx\l@georgian\@undefined
\@nopatterns{Georgian}
\adddialect\l@georgian0
\fi
\def\@setgeorgianencoding{%
\def\sce@a##1##2{%
\edef\sce@b{##1}%
\edef\sce@c{##2}%
\ifx\sce@b\sce@c
\let\georgiancoding\sce@c
\fi}%
\def\cdp@elt##1##2##3##4{%
\sce@a{##1}{T8K}%
\sce@a{##1}{T8M}%
\if@kauni@ode
\sce@a{##1}{TU}%TU
\fi}%
\cdp@list
}
\@setgeorgianencoding
\@onlypreamble\@setgeorgianencoding
\@onlypreamble\sce@a
\@onlypreamble\sce@b
\@onlypreamble\sce@c
\ifdefined\georgianencoding
\else
\if@kauni@ode
\def\georgianencoding{TU}
\fi
\else
\edef\georgianencoding{T8M}
\fi
\PackageWarning{babel}%
{No Georgian font encoding has been loaded so far.\MessageBreak
A font encoding should be declared before babel.\MessageBreak
Default `\georgianencoding' encoding will be loaded
}%
\lowercase\expandafter{\expandafter\input\georgianencoding enc.def\relax}%
\AtBeginDocument{\@setgeorgianencoding}
\fi