-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hebrew subtitles #2
Comments
Hmm, I would have thought that UTF-8 is the way to go, but I admit that I have never tried a language such as Hebrew. I will have a look. |
I did a quick test, and have a quick example working here: https://iandevlin.com/html5/track/index-hebrew-test.html I would love to add a Hebrew example, if you had the translated text? |
I can translate it to hebrew, If that's what you mean (I can send a link to pastebin when i'll finish) by the way, please excuse my english because sometimes I have misspellings. feel free to fix me if I wrote something incorrect! p.s. I have to admit that I really try to write it right - I even checked it few times with hebrew-english dictionary (morfix) but if you still found anything incorrect with my spelling please let me know thank you for answering and again, for this really great thing that you've made! =] |
Hi, I've translated it (you can find it here / raw ("test" in hebrew is actually "בדיקה" but you can also say it as "ניסיון" like "try" - trying to see if it works, there's not much difference and hebrew speakers/readers will understand but you can change it to "בדיקה" if you want to. i usually write "ניסיון" instead of "בדיקה" - never really used it, but it's just me)) and, if you want to learn how to say those words I wrote in hebrew so, read it like this: the (Le) \ (ל) is in brackets because its optional, you can say דוגמה = example or לדוגמה = for example טקסט sounds exactly like text |
Ok cool, thanks. I will have a look at it when I have a moment. I can imagine that the font does have some issues, I don't know the alef font, but I assume it is specifically for Hebrew? I have not looked into how WebVTT works with fonts, so that is something interesting. I have no idea why the line breaks are not working, that is also weird! I sense that I will be testing all this and writing an article! Oh and your English is excellent, so please do not worry about that! :D |
yes this font is specifically for hebrew, but there is also english letters. I tried to use this font through css (::cue - font-family after embedding @font-face), but it didn't work, when I changed it to "Arial" then it worked thank you again! =] |
I suspect the line break in Hebrew might be adding some weird invalid character or something. |
Hmm, what browser are you having difficulties in? I have just tried it with the Alef font (from Google fonts) and it works fine in Chrome. Line breaks are also not a problem. |
Firefox thank you |
Will do, when I am at home. |
Okay thank you again! =] |
Apologies for the delay. It is online at https://iandevlin.com/html5/track/hebrew/. |
Hi! it's alright you don't need to apologize - everything is fine. I really appreciate this, thank you very much! |
Apparently the styles can also be in the VTT file so I was trying both in case one worked in Firefox, but neither do sadly. |
I was wrong, I didn't encoded the file to UTF-8 and also forgot to replace the comma in the time milliseconds to period. anyway you've helped a lot, thank you so much! =] |
No worries, happy to help! I would be interested to see what you are using it for! |
I am actually using it to learn HTML5 and CSS3 (change stuff here and there to learn some basics or advanced things) and now I wanted to learn how can I make my own media player and I found yours in this mozilla website and I really loved it and it helps me learn how to use video tag for example (and the thing with the vtt that is really new to me cause I haven't learn about it before this) It's currently on localhost because I don't have any website but if I will ever have one I'll share with you (and with the internet) the things I have learned including the web media player so you will be able to see it (I will also credit you and mozilla and thank you). but right now it's just for learning only and I don't think I will ever make my own site, maybe blog or something, I'll need an idea for that lol again, thanks! =] |
Ah cool, glad to hear it. Well I wish you all the best, and if you have any Good luck with it all! Ian Devlin skype: idevlinOn 10 June 2016 at 18:17, natanelg97 notifications@github.com wrote:
|
Hi!
first of all, thank you for this awesome player.
I've got some issue: when I try to play Hebrew subtitles, It shows only "???" instead of text (for example: "טקסט לדוגמה" - translation from hebrew: "Example Text")
I tried to change the page charset to WINDOWS-1255 but still "???" and even tried to convert the hebrew into unicode and then it showed as &#[...];
How can I fix this? can you help me?
Thanks again, this is really awesome! 👍
The text was updated successfully, but these errors were encountered: