Jump to content

Arabic Subtitle issue


iBoss

Recommended Posts

Hi

 

There is some issue with Arabic subtitle on ios emby App. it gives Squares and G letter (please see the attached screenshot 01.png) ... it should as attached screenshot 02.png

 

after some investigation on mpv player I see the same problem (it is because the default font it used by the mpv) ... if I add:

sub-text-font=""

without any name of font, it will fix the issue.

 

my request: Could you please embed the attached font (Mohammad-Bold-normal.ttf) within the emby app and point mpv player to chose it? it will fix the issue and it will be fantastic because this font is one of the top font for Arabic subtitle :)

 

and also please add it for all app like Apple TV and Android

 

 

Note: I have attached a test subtitle (small subtitle 7 sec) to reproduce the issue

 

 

Server: Linux Ubuntu Linux 16.04.5

Emby Version 4.0.0.2

ios Emby App Version: 1.7.2

 

 

test.srt

post-134723-0-35305000-1548097566_thumb.png

post-134723-0-51708600-1548097575_thumb.png

embyserver.txt

ffmpeg-transcode-0d6635bc-f8a3-45d6-aade-f88882c7996a_1.txt

Mohammad-Bold-normal.zip

Link to comment
Share on other sites

Hi there, how does that compare to this font file:

 

https://github.com/mpv-android/mpv-android/blob/master/app/src/main/assets/subfont.ttf

 

 

Same issue. actually  this font does not have Arabic letters. please see that attached screenshots.

 

I have an idea ... please give me the font file you want to use it; I will develop it to add Arabic characters inside it without touch any other language :) ... in this way I will solve the issue + top Arabic font for the subtitle will be added 

post-134723-0-62592100-1548134500_thumb.jpg

post-134723-0-30055500-1548134522_thumb.jpg

Link to comment
Share on other sites

Attached is the font file we are currently using on Android. On iOS we are currently just using system fonts from the device.

 

There is no issue when I use/type Arabic on iOS, but the issue there only on emby subtitle. so if I work on the file you have attached, will you use it for emby iOS as well?

Link to comment
Share on other sites

First i think we'll need to get to the bottom of why the system fonts don't display correctly with subtitles.

 

But yes if you make the change, i can put it in android right away and have you test that. Thanks.

Link to comment
Share on other sites

@@Luke

 

I did some test using Apple TV, iPhone, Chrome and Android TV:

 

The subtitle works perfect on Apple TV

The subtitle works perfect on Chrome

The subtitle has issue that mention above on iPhone (Please see the attached screenshot)

The subtitle works perfect on Android TV (I don't have Android mobile to test)

 

- My comment on Android TV ... it works but it use different font that you have attached it here (Please see the attached screenshot)

- this font "https://github.com/mpv-android/mpv-android/blob/master/app/src/main/assets/subfont.ttf"does not have Arabic

- but the font you have sent it to me it has Arabic font but it's different from what I see on Android TV (Please see the attached screenshot - tested by using mpv player)

 

 

So, the current font on emby Android TV works and it is good font ... can you add this font for iOS to test it 

 

Thanks

post-134723-0-84416300-1548183850_thumb.png

post-134723-0-30157800-1548183868_thumb.jpg

post-134723-0-58126900-1548184083_thumb.png

Link to comment
Share on other sites

Thanks for the info. We're going to do what i said above first on iOS and then make a decision. Thanks.

  • Like 1
Link to comment
Share on other sites

Thanks for the info. We're going to do what i said above first on iOS and then make a decision. Thanks.

 

Thanks

 

if any thing want it from me, I'm ready to help

Link to comment
Share on other sites

Hi @@Luke,

 

Are you using mpv player for iOS emby?

 

if yes, I think the problem from mpv; because you said you are using system fonts .. if you don't mind, what did you mean by that? are you leave the mpv's config file empty for the font selection or you select a default iOS font "San Francisco" by write something like this:

sub-text-font="San Francisco"

In both ways it will give you the same issue because San Francisco does not have Arabic characters as well. So it will show you a default Arabic font with this issue.

 

 

if my above assumption true, you need to fix the problem:

 

  • Either mpv support solve it
  • Or add subfont.ttf file inside the app and use it (I prefer this solution) ... this will make the app more independent.

 

Just in case I have already submitted this issue to mpv: https://github.com/mpv-player/mpv/issues/6456

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

@@Luke, I have just test emby Android mobile from my friend .. also the same issue :(, actually worse than iOS (screenshot and log are attached)

 

but the file you have attached "subfont.ttf" is working on mpv player ver. 0.29.1 on macOS without any issue .. are you sure you are using the same version of the attached subfont.ttf file?

 

Emby Android mobile ver. 3.0.33

post-134723-0-31883400-1549211432_thumb.png

subfont.ttf.zip

embyserver.txt

Link to comment
Share on other sites

For the Android mobile:

 

I know the problem of "subfont.ttf" font ... there are some characters missing.

 

it works on mpv mac/windows/ubuntu versions because some how it replace the Arabic character missing with Farsi character (same shape) .. for example this Arabic Unicode Character “ﻳ” (U+FEF3) same as Farsi Unicode Character “ﯾ” (U+FBFE)

 

So the "subfont.ttf" font not design properly.

 

to fix this issue:

 

  • Either find the way to let the player/Android mobile to behave same as mac/windows/ubuntu
  • Or fix the "subfont.ttf"

 

anyway the "subfont.ttf" should be fixed.

 

I'll fix one character and send it to you to test it ... if it works I'll continue for all characters

 

Thanks

Link to comment
Share on other sites

 

I'll fix one character and send it to you to test it ... if it works I'll continue for all characters

 

 

 

modifying Arabic characters not easy .. I fixed only one character to make sure my solution works.

 

if you don't mind, I need form you to add my attached file to emby Android mobile .. if it works, I'll start working on all characters

subfont_v1.0.zip

Link to comment
Share on other sites

Is there another way outside of emby that you can test it?

 

How? I want to make sure is working on emby

 

you can add it on emby beta for Android mobile ...  I have already installed the beta

Link to comment
Share on other sites

I understand, but i can't keep building the apk for every single character change. can you test the font file by using it in a document?

Link to comment
Share on other sites

it works on mpv mac/windows/ubuntu versions because some how it replace the Arabic character missing with Farsi character (same shape) .. for example this Arabic Unicode Character “ﻳ” (U+FEF3) same as Farsi Unicode Character “ﯾ” (U+FBFE)

 

 

as I said above, it works on my macOS before and after modifying the file.

 

 

to fix this issue:

 

  • Either find the way to let the player/Android mobile to behave same as mac/windows/ubuntu
  • Or fix the "subfont.ttf"

 

 

 

--------

 

but i can't keep building the apk for every single character change

 

 

I understand, but I'm not requesting to build the apk for every single character ... just one time.

 

if you can't, I'll work on all characters and send it to you later

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...