aptalca / docker-rdp-calibre

DEPRECATED
GNU General Public License v2.0
74 stars 31 forks source link

Calibre dont have enough fonts to show non latin language #29

Open mahabuta opened 6 years ago

mahabuta commented 6 years ago

Hi, I was glade when I saw this project and found it could help me a lot with my books.

But when I opened my existing library, I found out that this docker image doesnt contains enough fonts to show non latin language such as Chinese and Japanese. I know it's not quite usefull for you to ship lots of unnessary CJK fonts taking too much place, but can you consider providing a folderpath or Variables for me to overwrite the default one so I can use my own fonts? chrome_2017-11-08_23-24-32

aptalca commented 6 years ago

Hi, I'm trying to understand if this is a docker image issue or an issue with calibre. For the former, I can try to fix, for the latter, I would advise contacting the developers of calibre.

Can you install calibre on a separate machine directly (without docker) and see if the fonts are displayed correctly?

I'm not sure if those fonts are supported by the OS or the app.

Thanks

mahabuta commented 6 years ago

yes, the calibre on my windows works ok, can show CJK figures charactors correctly. as shown bellow, calibre_2017-11-09_21-30-33

due to lack of relevent knowledge, I am not sure if it's only font problem or the system itself lacking relevent codepages, but I am certain that all the fonts I can see from the docker-rdp-calibre setting, none of them contains CJK characters, or say all of them are for latin charactors only. and on my own computer I can see many many more fonts. and the problem remains if I set the docker-rdp-calibre system language to Chinese or so.

chrome_2017-11-09_21-35-03

will you please give me a folder path for me to overwrite the current one, so I can test if my guess is correct or not, I have see the /usr/share/fonts or some thing like that, but there are many subfolders inside, ,I dont quite understand which is the right one >_<

oit63 commented 6 years ago

@ikonome actually, this is the problem of English Linux System, the origin system does not contain any Chinese fonts. So we should install it by ourselves .

here is my Solution

enter your container with bash

(p.s. rdp-calibre is my container name replace it with yours )

docker exec -it rdp-calibre bash

apt-get install -y --force-yes --no-install-recommends fonts-wqy-microhei
apt-get install -y --force-yes --no-install-recommends ttf-wqy-zenhei

now we exit the container

exit

then reboot the container with command

docker restart rdp-calibre

now everything is OK .

results: 18

19

references: https://segmentfault.com/a/1190000005640352

oit63 commented 6 years ago

@ikonome if you do not know how to do with it, you could simply search dochurch in docker hub and use my fork-mod image dochurch/docker-rdp-calibre