fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
179 stars 24 forks source link

Cannot display Japanese character from imported PDF? #221

Closed HQYang1979 closed 3 years ago

HQYang1979 commented 3 years ago

Not sure why, my PDFs cannot display Japanese characters.

image

fonol commented 3 years ago

HI, I just tested with some random pdf file with japanese characters, and they work for me. It might be a problem with pdf.js, the library used in the add-on to render the pdfs. Does the problem occur with every japanese pdf or just with that specific one?

HQYang1979 commented 3 years ago

Yes, all PDFs with Asian characters cannot be displayed (Chinese and Japanese). Maybe I need to install Adobe Reader?

fonol commented 3 years ago

Maybe I need to install Adobe Reader?

No, that's not it. Got any example pdf file you can share?

If you have firefox installed, do these pdfs display fine if you open them with firefox? Also, if you start Anki from the console, got any errors printed there when you open the pdf? (if you are on Windows, you can start the console version with anki-console.exe in Anki's installation folder)

HQYang1979 commented 3 years ago

No problem open it in Chrome or firefox. Ah, there are some errors, but I don't know how to fix it.

image

HQYang1979 commented 3 years ago

is there any fix? Great Add-on.....

fonol commented 3 years ago

A possible fix will be in the next update.

HQYang1979 commented 3 years ago

Looking forward to it, man you are doing a great job!

HQYang1979 commented 3 years ago

the bug persisted even after yesterday's update.

fonol commented 3 years ago

Closing, see #223