wrong spaces in text
@ousia
Submitted by Pablo Rodríguez Assigned to poppler-bugs
Description
Compiling the below XeLaTeX document, I get the attached PDF file.
\documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Theano Didot} \usepackage{polyglossia} \setmainlanguage[variant=ancient]{greek} \setotherlanguage{english} \begin{document} χαλεπὰ \addfontfeature{LetterSpace=12}τὰ καλά
χαλεπὰ τὰ καλά
χαλεπὰ \addfontfeature{LetterSpace=0}τὰ καλά
\selectlanguage{english} Beauty \addfontfeature{LetterSpace=12}is difficult
Beauty is difficult
Beauty \addfontfeature{LetterSpace=0}is difficult
\end{document}
The issue with this PDF file is that text is extracted in the following way:
χαλεπὰ τ ὰ κ α λ ά χαλεπὰ τὰ καλά χ α λ ε π ὰ τὰ καλά Beauty i s d i ffi c u l t Beauty is difficult B e a u t y is difficult
Although there should be no spaces between letters, only between words.
Could you fix this?
Thanks,
Pablo