Re: Kerning dell’apostrofo in Adobe Jenson Pro

#84557
samiel
Partecipante
    Up
    0
    Down
    ::


    Con questo codice:
    `\documentclass[a4paper,12pt]{article}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage[greek,italian]{babel}
    \usepackage{JensonPro}
    \usepackage{microtype}
    \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
    \setlength{\parindent}{0pt}
    \frenchspacing
    \newcommand{\GR}[1]{%
    \begin{otherlanguage*}{greek}#1\end{otherlanguage*}}
    \DeclareRobustCommand{\greektext}{%
    \fontencoding{LGR}\fontfamily{artemisia}\selectfont
    \def\encodingdefault{LGR}}
    % kerning dell'apostrofo
    \makeatletter
    \catcode`\'=12
    \def\qu@te{'}
    \catcode`'=\active
    \begingroup
    \obeylines\obeyspaces%
    \gdef\@resetactivechars{%
    \def^^M{\@activechar@info{EOL}\space}%
    \def {\@activechar@info{space}\space}%
    }%
    \endgroup
    \providecommand\texorpdfstring[2]{#1}
    \protected\def'{\texorpdfstring{\texqu@te}{\string'}}
    \def\texqu@te{\relax
    \ifmmode
    \expandafter^\expandafter\bgroup\expandafter\prim@s
    \else
    \expandafter\futurelet\expandafter\@let@token\expandafter\qu@t@
    \fi}
    \def\qu@t@{%
    \ifx'\@let@token
    \qu@te\qu@te\expandafter\@gobble
    \else
    {}\qu@te{}\penalty\@M\hskip\expandafter\z@skip
    \fi}
    \scantokens\expandafter{%
    \expandafter\def\expandafter\pr@m@s\expandafter{\pr@m@s}}
    \makeatother
    \begin{document}

    L'apostrofo qui è posizionato correttamente

    Ma nel greco gli accenti no. Infatti nell'esempio:
    \GR{<'usteron pr'oteron} sono spostati visibilmente a destra \end{document}` il risultato è il seguente: [attachment=661]zzzz.png[/attachment] Co nXelatex tutto, come dicevo, risulta corretto, con pdflatex il problema è quello che si vede. Stessa cosa col Minion, tranne che in quel caso non è necessario specificare un alfabeto greco alternativo, poiché quel font inlude il gredo e il cirillico. m PS come noterete, continuo a confondere la sinistra con la destra... sarà colpa della situazione politica :-)

    Attachments:
    You must be logged in to view attached files.

    Go to top