Hello everyone,
When copying a Japanese character string to the clipboard from PDF-XChange Editor, some character codes become incorrect.
I think the cause is the same as other Japanese problems.
Unicode Japanese fonts are grouped together with Chinese and Korean.
Please refer to "Chapter 18 East Asia" of Unicode specification.
https://www.unicode.org/versions/Unicode14.0.0/ch18.pdf
Japanese kanji uses the character code of "18.1 Han", but PDF-XChange Editor will be converted to the Chinese character code when copied to the clipboard. Chinese characters are often not defined in Japanese font sets, so Chinese characters are not displayed correctly.
For example:
// Copy from Gmail on Chrome
String="2021年12月28日(火)まで"
Code (Hex)=32 30 32 31 5E74 31 32 6708 32 38 65E5 FF08 706B FF09 307E 3067
// Save from Chrome to PDF and copy with PDF-XChange Editor
String="2021年12⽉28⽇(⽕)まで"
Code (Hex)=32 30 32 31 5E74 31 32 2F49 32 38 2F47 FF08 2F55 FF09 307E 3067
// Save from Chrome to PDF and copy with Adobe Reader
String="2021年12月28日(火)まで"
Code (Hex)=32 30 32 31 5E74 31 32 6708 32 38 65E5 FF08 706B FF09 307E 3067
For details, please refer to "Chapter 5 Implementation Guidelines" -> "5.10 Language Information in Plain Text" -> "Language Tags and Han Unification" -> "Typical Scenarios." of the Unicode specification.
https://www.unicode.org/versions/Unicode14.0.0/ch05.pdf
Best regards,
--
Pointy Ears
Gifu City, Gifu Prefecture, Japan (UTC+9)
Problems when copying Japanese strings to the clipboard
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
Pointy Ears
- User
- Posts: 7
- Joined: Fri Dec 17, 2021 8:34 am
Problems when copying Japanese strings to the clipboard
You do not have the required permissions to view the files attached to this post.
--
Pointy Ears
Gifu City, Gifu Prefecture, Japan (UTC+0900)
Pointy Ears
Gifu City, Gifu Prefecture, Japan (UTC+0900)
-
Paul - PDF-XChange
- Site Admin
- Posts: 7445
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Problems when copying Japanese strings to the clipboard
Hi Pointy Ears,
thanks for the very detailed post. I have asked the dev who is responsible for this to take a look. Given the time of year and that we are on a skeleton staff until the New Year I am not sure how soon you will see a reply, but we will definitely look into this.
Gifu is beautiful, I lived in Shizuoka for 5 years and had the opportunity to visit your lovely city.
thanks for the very detailed post. I have asked the dev who is responsible for this to take a look. Given the time of year and that we are on a skeleton staff until the New Year I am not sure how soon you will see a reply, but we will definitely look into this.
Gifu is beautiful, I lived in Shizuoka for 5 years and had the opportunity to visit your lovely city.
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
Pointy Ears
- User
- Posts: 7
- Joined: Fri Dec 17, 2021 8:34 am
Re: Problems when copying Japanese strings to the clipboard
Hello Paul,
I think this problem is due to the Japanese mode not being set when accessing the clipboard.
Chinese fonts, Korean fonts, and Japanese fonts are treated together as a "CJK" font set.
In Illegal mode, character codes of other languages with similar shapes may be used.
Please ask the engineer.
Best regards
I think this problem is due to the Japanese mode not being set when accessing the clipboard.
Chinese fonts, Korean fonts, and Japanese fonts are treated together as a "CJK" font set.
In Illegal mode, character codes of other languages with similar shapes may be used.
Please ask the engineer.
Best regards
You do not have the required permissions to view the files attached to this post.
--
Pointy Ears
Gifu City, Gifu Prefecture, Japan (UTC+0900)
Pointy Ears
Gifu City, Gifu Prefecture, Japan (UTC+0900)
-
Paul - PDF-XChange
- Site Admin
- Posts: 7445
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Problems when copying Japanese strings to the clipboard
Hi Pointy Ears,
I was asked by the devs to ask you to provide the PDF in question as exact steps to reproduce this.
Can we have your original PDF please?
regards
I was asked by the devs to ask you to provide the PDF in question as exact steps to reproduce this.
Can we have your original PDF please?
regards
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
Pointy Ears
- User
- Posts: 7
- Joined: Fri Dec 17, 2021 8:34 am
Re: Problems when copying Japanese strings to the clipboard
Hello Paul,
When I copied a string of only the characters that caused the problem to the clipboard, I found that Adobe Reader inserted CR + LF between the characters.
However, the character code is correct.
The "IPAexGothic" font can be downloaded for free from the following site.
IPA FONT LICENSE AGREEMENT
https://moji.or.jp/ipafont/license/
DOWNLOAD (IPAexGothic (sanserif), IPAexMincho (serif))
https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00401.zip
Best regards
When I copied a string of only the characters that caused the problem to the clipboard, I found that Adobe Reader inserted CR + LF between the characters.
However, the character code is correct.
The "IPAexGothic" font can be downloaded for free from the following site.
IPA FONT LICENSE AGREEMENT
https://moji.or.jp/ipafont/license/
DOWNLOAD (IPAexGothic (sanserif), IPAexMincho (serif))
https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00401.zip
Best regards
You do not have the required permissions to view the files attached to this post.
--
Pointy Ears
Gifu City, Gifu Prefecture, Japan (UTC+0900)
Pointy Ears
Gifu City, Gifu Prefecture, Japan (UTC+0900)
-
Paul - PDF-XChange
- Site Admin
- Posts: 7445
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Problems when copying Japanese strings to the clipboard
Thank you.
I have let the dev team know. Things are a bit busy right now, I hope they will have opportunity to look at this soon.
please and thanks
I have let the dev team know. Things are a bit busy right now, I hope they will have opportunity to look at this soon.
please and thanks
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
Paul - PDF-XChange
- Site Admin
- Posts: 7445
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Problems when copying Japanese strings to the clipboard
Hi again Pointy Ears,
the devs looked into this and say that we need to add support for the "ActualText" tag of the content when copying. Currently we do not so we will add this feature. While intended for internal use only, referring to RT#5969: Feature Request :: Editor :: Support of ActualText tag for text copying in correspondence with us will facilitate a support staff member getting you a status update.
I do not have an ETA for delivery of this item yet. It will be at the discretion of the development team. When delivered your copy/paste should be correct.
I hope that helps.
the devs looked into this and say that we need to add support for the "ActualText" tag of the content when copying. Currently we do not so we will add this feature. While intended for internal use only, referring to RT#5969: Feature Request :: Editor :: Support of ActualText tag for text copying in correspondence with us will facilitate a support staff member getting you a status update.
I do not have an ETA for delivery of this item yet. It will be at the discretion of the development team. When delivered your copy/paste should be correct.
I hope that helps.
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com