atom-pdf-view icon indicating copy to clipboard operation
atom-pdf-view copied to clipboard

pdf-view can't approved Chinese path

Open niukai10 opened this issue 8 years ago • 5 comments

When my path contains Chinese, the reserve to source can't success due to the unidentifiable Chinese code

niukai10 avatar Nov 13 '17 10:11 niukai10

Thanks for opening an issue, @xjtunk :bow:

When my path contains Chinese, the reserve to source can't success due to the unidentifiable Chinese code

I'm not sure I understand what you mean by "reserve to source" -- what do you mean by that?

Do you see some error and if so -- which error do you see exactly?

Can you give an example path which has Chinese characters that causes problems for you?

izuzak avatar Nov 18 '17 08:11 izuzak

I‘m sorry for my wrong expression. I mean that i want to double click the pdf so that i can go to the source. But when the path contains Chinese characters, like 'E:\北京大学\无线感知团队\论文写作\acmart-master', it will open a new pane, like E:\������ѧ\���߸�֪�Ŷ�\����д��\acmart-master\sample-acmlarge.tex. But when the path only contains English characters, it works well.

niukai10 avatar Nov 22 '17 12:11 niukai10

Thanks for explaining, @xjtunk -- I think I understand now. Unfortunately, I'm not able to try and reproduce the problem since I don't have synctex installed anymore. Still, I do expect this is a bug in this package. If someone would like to try and reproduce and fix the problem -- I'd be happy to review a pull request!

Thank again for reporting this ⭐️

izuzak avatar Nov 25 '17 18:11 izuzak

May be a redherring but traditionally synctex only stored latin characters without spaces, more recently some versions will support spaces and unicode but I think CJK may require/benefit from oriental W32TeX build rather than TeX Live. Thus I think pdf-view needs to pass back the path characters as unicode? possibly duplicate of #193

GitHubRulesOK avatar Oct 12 '18 13:10 GitHubRulesOK

Synctex does not work with Chinese text, when I delete the Chinese in the path, it works.

zhouzhouwei avatar May 10 '19 02:05 zhouzhouwei