[XeTeX] XeTeX/xdvipdfmx: PDF text copying with double encoded fonts

Zdenek Wagner zdenek.wagner at gmail.com
Mon Jun 12 09:41:58 CEST 2017


2017-06-12 9:38 GMT+02:00 Akira Kakuto <kakuto at fuk.kindai.ac.jp>:

> Dear Jiang,
>
> There has been a report
>>
>> https://github.com/CTeX-org/ctex-kit/issues/286
>>
>
> % XeTeX
> \XeTeXgenerateactualtext=1
> \font\1="Source Han Sans SC"
> \font\2="Source Han Serif SC"
> \font\3="Microsoft YaHei"
>
> {\1 孤立子 ABC} \par
> {\2 孤立子 ABC} \par
> {\3 孤立子 ABC} \par
>
> \bye
>
> I tested the above example on Windows 7.
> Used fonts are
> (1) SourceHanSansSC-Regular.otf
> (2) SourceHanSerifSC-Regular.otf
> (3) msyh.ttf
>
> I'm afraid that I don't understand the problem correctly.
> My Results:
>
> In the case of \XeTeXgenerateactualtext=0, copy&paste
> is wrong for "立" in fonts (1) and (2), in Adobe Reader DC.
> In the case of \XeTeXgenerateactualtext=1, copy&pase
> is OK in Adobe Reader DC for all fonts (1), (2) and (3).
>

As I found on PDF viewers on Linux, some of them ignore ActualText
completely, some of them use it when saving as text but not with
copy&paste. I have not tried on Mac yet.

>
> Best,
> Akira
>
>
>
>
> Zdeněk Wagner
> http://ttsm.icpf.cas.cz/team/wagner.shtml
> http://icebearsoft.euweb.cz
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20170612/e394b321/attachment.html>


More information about the XeTeX mailing list