Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annotation contents doesn't support Chinese #2255

Open
wms6017 opened this issue Nov 19, 2021 · 7 comments
Open

annotation contents doesn't support Chinese #2255

wms6017 opened this issue Nov 19, 2021 · 7 comments

Comments

@wms6017
Copy link

wms6017 commented Nov 19, 2021

20211119105624

As shown in the above Figure,some Chinese text are ignored and disappeared.

@xqm32
Copy link

xqm32 commented Nov 19, 2021

I have the same problem.

Reproduce:

  • Create a new free text annotation in a .pdf file(I use C17 Final Draft.pdf)
  • Input the character 生(\u751f), 产(\u4ea7), 的(\u7684)
  • The character 生(\u751f) and 的(\u7684) display, but the character 产(\u4ea7) not
  • The character 產(\u7522), which is the traditional character of 产(\u4ea7) can display
  • The character 亦(\u4ea6) and 亨(\u4ea8) whose Unicode are next to 产(\u4ea7) can display

In addition, all character in CJK Unified Ideographs Extension A(\u3400—\u4db5) seem
unsupported.

SumatraPDF Version: 3.3.3
Windows Version: Windows 家庭中文版(Home, Chinese) 19043.1348
Annotation in: C17 Final Draft.pdf

@GitHubRulesOK
Copy link
Collaborator

related to #2154

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Mar 9, 2022

whilst 2 wrongs dont make a write the behaviour in edge is worse
image

SumatraPDF can try to correct the fully seen characters in the comment even if MuPDF cannot render all of them !

image

@kjk I had hoped the latest CJK font update may have helped with annotation rendering but it seems there may be ? a MuPDF issue with that character range \u3400—\u4fff ?

@GitHubRulesOK
Copy link
Collaborator

potential duplicate of #1671
MuPDF only supports PDF Standard 14 fonts in comments.

@LiuZengqiang
Copy link

LiuZengqiang commented Oct 31, 2023

I encountered the same problem, do you have any solutions?

@wms6017
Copy link
Author

wms6017 commented Mar 25, 2024 via email

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Mar 25, 2024

@wms6017 It should be possible to support UTF-16bit in comments as "Rich Text" and unsure how far MuPDF/SumatraPDF has gone towards supporting that more complex annotation. but not all Chinese characters stick to the 2 byte (paired) when import/export by say clipboard As I have seen on occasion some 3 byte or more coding's.

The Issue is clearly not well covered so this issue is "held open" for now.

@kjk kjk changed the title cannot show some Chinese Text annotation contents doesn't support Chinese Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants