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

bug (gradio-pdf): preview not displaying CJK characters #273

Closed
tastelikefeet opened this issue Dec 18, 2024 · 7 comments
Closed

bug (gradio-pdf): preview not displaying CJK characters #273

tastelikefeet opened this issue Dec 18, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@tastelikefeet
Copy link
Contributor

问题描述

请对问题进行描述,并提供日志或截图
请确认 issues 中没有相同问题且完整阅读 wiki
本项目不处理网络环境引发的问题(例如 empty translation result/connection reset/check_hostname requires server_hostname/certificate verify failed/unable to connect to proxy/LocalEntryNotFoundError)

测试文档

Important

请提供用于复现测试的 PDF 文档

  1. gradio翻译完成后预览效果不正常

image

  1. gradio在国内如果选择连接不通的translater会等待很长时间,影响使用,建议增加并发或者减少retry
@hellofinch
Copy link
Contributor

gradio翻译完成后预览效果不正常是因为没有获取到cmap的文件,可能需要向上游gradio-pdf反馈。

@awwaawwa
Copy link
Contributor

第二点我写 #216 (comment) 的时候看看

@Byaidu Byaidu added the enhancement New feature or request label Dec 18, 2024
@reycn
Copy link
Collaborator

reycn commented Dec 18, 2024

If necessary, rollback to my image preview, lol

@Byaidu
Copy link
Owner

Byaidu commented Dec 18, 2024

其实还好,这个文字显示也不是大问题

@Issues-translate-bot
Copy link

The issue has been automatically translated into English.


Actually, it’s okay. The text display isn’t a big problem either.

@reycn
Copy link
Collaborator

reycn commented Dec 19, 2024

The bug in upstream has been fixed at in its PR#34, which has been released as v0.0.21.

I am working on it.

@reycn reycn changed the title gradio预览效果不正常以及排队过长问题 bug (gradio-pdf): preview not displaying CJK characters Dec 19, 2024
@reycn
Copy link
Collaborator

reycn commented Dec 19, 2024

This bug has been fixed in CMT#b9ae66bd59fde45d3b52d499611cda4b5fb83466.

With the following different results before & after the present fix:

  • Before, gradio-pdf<0.0..21
21
  • After, gradio-pdf>0.0.21
= 21

@reycn reycn closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants