%3F.png)
Em umpergunta anteriorDescrevi o espaçamento errado em textos gregos escritos GFS Porson
depois --
(pensei que dependesse de \,
, o que não acontece, como observou Ulrike Fischer).
Resumindo: o espaçamento após o traço final - eu sempre uso --
e sempre coloco \,
- GFS Porson
está errado. Como Filho do Pac-Man, ele ocupa o seguinte espaço. Qual a melhor forma de alterá-lo, por exemplo, como está definido para GFS Didot
?
% -*- mode: latex; TeX-engine: luatex; coding: utf-8; -*-
\listfiles
\documentclass{article}
\usepackage{luatextra}
\usepackage{polyglossia}
\setmainlanguage[variant=ancient]{greek}
\setotherlanguage{german}
\newfontfamily\greekfont{GFS Porson}[Ligatures = TeX]
\newfontfamily\othergreekfont{GFS Didot}[Ligatures = TeX]
\newfontfamily\germanfont{TeX Gyre Pagella}[Ligatures = {Common,TeX}]
\RenewDocumentCommand{\,}{}{\thinspace\linebreak[1]}
\begin{document}
\foreignlanguage{german}{GFS Porson}\\
\setmainfont{GFS Porson}[Ligatures = {Common, TeX}]
Οὑτωσὶ\,--\,τοίνυν, ὦ παῖ\,--\,καλέ\,--\,, ἐν\,--\,νόησον, ὡς\,--\,ὁ
μὲν πρότερος ἦν \\
λόγος Φαίδρου\,--\,Τοῦ Πυ\,--\,Θοκλέους% , Μυρρινουσίου ἀνδρός·
Οὑτωσὶ \fbox{---} τοίνυν
Οὑτωσὶ \fbox{--} τοίνυν
\bigskip
\foreignlanguage{german}{GFS Didot}\\
\othergreekfont
Οὑτωσὶ\,--\,τοίνυν, ὦ παῖ\,--\,καλέ\,--\,, ἐν\,--\,νόησον, ὡς\,--\,ὁ
μὲν πρότερος ἦν \\
λόγος Φαίδρου\,--\,Τοῦ Πυ\,--\,Θοκλέους
Οὑτωσὶ \fbox{---} τοίνυν
Οὑτωσὶ \fbox{--} τοίνυν
\end{document}
Responder1
Uma imagem esclarece bem a questão
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage[variant=ancient]{greek}
\newfontfamily\greekfont{GFS Porson}[Ligatures = TeX]
\newfontfamily\othergreekfont{GFS Didot}[Ligatures = TeX]
\begin{document}
\setlength{\fboxsep}{0pt} % just to show the problem
\fbox{--} Οὑτωσὶ--τοίνυν
\othergreekfont
\fbox{--} Οὑτωσὶ--τοίνυν
\end{document}
Como você pode ver, o travessão em Porson está deslocado para a direita. Um bug na fonte. A mudança é de cerca de 1 ponto, conforme o código
\setlength{\fboxsep}{0pt}\setlength{\fboxrule}{0.1pt}
\fbox{\kern -1pt --\kern 1pt}
mostra