wustho / epy

CLI Ebook (epub2, epub3, fb2, mobi) Reader
GNU General Public License v3.0
928 stars 52 forks source link

hii, formatting missalignment report #66

Open autoteelar opened 1 year ago

autoteelar commented 1 year ago

i really like the program, ive been using it for years now

i do have 1 question/kind of a bug report, it seems to be somewhat linux's fault, i think but there definitely can be some workarounds i bet

so for some reason in terminals by default japanese text is liike really wide and spacey, almost like its unintentionally spawning extra space or something,

so anything that centers the text is like all broken and weird, this happened in lyrics in terminal for me so i thought it was just that for the longest time but recently i tried reading a japanese book and it had the same thing, the only fix ive found so far is alligning the text to the left of the terminal instead of the center, which i found is somewhat possible by pressing = twice

image as you can see the text kinda goes crazy,

zooming in a bit and pressing = twice at least makes it readable, which is a good enough workaround for me for now, but if you manage to figure out a fix or a better workaround or anything like that, that would be really awesome and much appreciated. image

i understand not everyone uses cjk so most people wont run into these things, still i think it would be really cool if this somehow would be able to look like how the english text books do in epy in terms of formatting :D

3N4N commented 1 year ago

I haven't read the whole of your report, so apologies if I'm incorrect, but I think the problem is your font. You are using proportional font, which no terminal emulator supports. Change the font to a monospace font and your problem should be solved. If there is no monospace font for your language (there is none for my native language, by the way), you simply cannot hope for first-class support in the terminal. The best you can do is try a bunch of other terminal emulators and see if any of them performs better.

And just to clarify: this is not a bug in epy. It's a problem with your terminal emulator.

wustho commented 1 year ago

@autoteelar Hey there, currently non english language, isn't much supported, but currently I'm looking at a library that might add supports for other language than english, so please wait a little more. Thanks.