fscorrupt / Posterizarr

๐Ÿ–ผ๏ธ Automated poster maker for Plex/Jellyfin/Emby.
107 stars 10 forks source link

[FR] corect RTL langage #115

Closed Aabayoumy closed 3 weeks ago

Aabayoumy commented 4 months ago

Is your feature request related to a problem? Please describe. Arabic title show in wrong direction

image

Describe the solution you'd like support RTL languages, like arabic

fscorrupt commented 4 months ago

so this is how plex has it: how you expect it to be displayed on a poster? image

fscorrupt commented 4 months ago

Please provide more info, if nothing is provided i will cose this in 2 days.

fscorrupt commented 4 months ago

No information received, closing it...

zchesler commented 1 month ago

Hi As promised: Screenshot 2024-08-10 075502 but posterizarr adds the text like this: Screenshot 2024-08-10 075426 which is in the opposite direction of the text... this is the log from the log file ( clearly see there is encoding problem): ร—ยร—โ€”ร—โ€œ ร—ยขร—ล“ ร—ยร—โ€”ร—โ€œ;"Show";"One on One (2020)";"Israeli TV Shows";"he";"True";"False";"https://image.tmdb.org/t/p/original/fkPTcgrSmglh6ky7ZRjFmYJDriX.jpg";"https://www.themoviedb.org/tv/115191/images/posters"

BTW, if the "title" is in hebrew but there is no "original title", posterizarr fetches the name from last "original title" examples: Screenshot 2024-08-10 080128 as you can see - wrong title. it's plex naming: Screenshot 2024-08-10 080349 and he got his posterizarr name from: Screenshot 2024-08-10 080305

Two issues i guess. I presume they are connected due to language encoding.

It would really be great if you can hlep my case.

Thanks in advance.

zchesler commented 3 weeks ago

hey @fscorrupt . sorry for re-opening this issue. In RTL languages, if a title is too long to fit one row, it expands into two rows as it should, but with the first words at the bottom and not at the top. Example: screenshot-plex chesler net-2024 08 20-13_55_48

zchesler commented 3 weeks ago

it's ought to be: ื‘ื™ื™ื‘ื™ ื‘ื•ืก 2: ืขืกืง ืžืฉืคื—ืชื™ and not the other way around

fscorrupt commented 3 weeks ago

Just for the record, currently this only works on windows, i have to invest some time to check how this is possible in container, as the code itself works.