riverrun / genxword

Crossword generator written in Python.
GNU General Public License v3.0
162 stars 40 forks source link

Does not support Chinese characters #18

Open rolero opened 4 years ago

rolero commented 4 years ago

Key image file does not show the Chinese characters.

image

rolero commented 4 years ago

Printscreen console:

image

riverrun commented 4 years ago

Thanks for raising this issue. I am looking into it now.

slycordinator commented 2 years ago

On my system, I can see the Chinese characters in the console and they show up in the PDF.

The console output is likely related to the LOCALE not being UTF-8. My LOCALE is en_US.UTF-8.

Here is printed console output for me, with the grid showing the Chinese characters. tuL43H59q1

And the PDF is display is likely related to the system not having fonts that include the characters. Here's a grid from my system that shows the Chinese characters. grid

My generated PDF has the following fonts embedded:

The last font is Korean, but includes many Chinese characters. If I were to make a grid with some rare Chinese characters that don't show up in Korean, I'd probably get placeholders like the OP.