Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Hindi as a language in rockbox
« previous next »
  • Print
Pages: [1]

Author Topic: Hindi as a language in rockbox  (Read 2930 times)

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Hindi as a language in rockbox
« on: December 21, 2007, 04:44:54 PM »
For those that don't know, Hindi is one of the most widely spoken languages in India and I think that a language from South Asia should be included in rockbox because you have lots of users from there.

I was just reading the font stats page at the rasher rockbox site and noticed that Devanagari font is 95% supported by unifont! I am interested in making a lang file for rockbox that can use Hindi. What would be the proper way to do this? I run windows so compiling would be a problem on my ancient computer.

I'm probably going to submit a feature request for this, but in case that isn't going to be done, I would like to know how to do it myself.

Cheers
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline Domonoky

  • Developer
  • Member
  • *
  • Posts: 205
Re: Hindi as a language in rockbox
« Reply #1 on: December 21, 2007, 04:58:55 PM »

As translation can only be done by people knowing the target language it would be good if you step forward and do it :-)

I think you can do everything for translation without a development enviroment. Check the wiki, especially this page: http://www.rockbox.org/twiki/bin/view/Main/LangFiles

cheers back..
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Hindi as a language in rockbox
« Reply #2 on: December 21, 2007, 05:16:11 PM »
I'm not much of a developer and I have no clue how to do most of that stuff. My biggest confusion is how I will get the Devanagari letters into notepad style encoding. I'll probably put in a feature request soon.
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Hindi as a language in rockbox
« Reply #3 on: December 21, 2007, 05:36:30 PM »
.lang files are utf-8 encoded text files so you should be able to use almost any text editor.
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Hindi as a language in rockbox
« Reply #4 on: January 07, 2008, 06:04:50 PM »
Sorry for digging up my old thread. I know a good deal of Hindi and I was wondering whether or not someone on this forum knows how to compile AND knows Hindi and is willing to make this a reality.

I will try this out myself and see how it goes.

And notepad should work for this, right? So I just take a word like those found at
Quote
http://dsal.uchicago.edu/cgi-bin/philologic/search3advanced?dbname=platts&query=music&matchtype=exact&display=utf8
and copy the word in Devanagari script into the english.lang notepad file, right? And it would function fine?

Of course, I would need to compile it, right?
« Last Edit: January 07, 2008, 06:08:27 PM by crzyboyster »
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: Hindi as a language in rockbox
« Reply #5 on: January 07, 2008, 07:27:09 PM »
Quote from: crzyboyster on January 07, 2008, 06:04:50 PM
Sorry for digging up my old thread. I know a good deal of Hindi and I was wondering whether or not someone on this forum knows how to compile AND knows Hindi and is willing to make this a reality.

Many people here know how to compile, but that's not really needed to work on a language file. Just edit the text and after it gets committed it will be shipped with every new build of rockbox.

Quote
And notepad should work for this, right?

Yes. Here you find some editors you could use:

http://www.rockbox.org/twiki/bin/view/Main/UnicodeGuide#Text_editors_supporting_Unicode

Quote
So I just take a word like those found at
Quote
http://dsal.uchicago.edu/cgi-bin/philologic/search3advanced?dbname=platts&query=music&matchtype=exact&display=utf8
and copy the word in Devanagari script into the english.lang notepad file, right? And it would function fine?

Correct, but copy english.lang to hindi.lang first.

Quote
Of course, I would need to compile it, right?

No, just open a new entry in the patch tracker and post your hindi.lang file there.

Thanks for making another translation btw!
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Hindi as a language in rockbox
« Reply #6 on: January 07, 2008, 07:52:18 PM »
To tell you the truth, I haven't even started with the actual translation  ;)

So, here's my question: I got the latest version of the english.lang file and copied it out into a text document called "hindi.txt" which can be renamed to hindi.lang when finished, correct?

I added in my first word and all I got in the file was "उदास".

Here's the funny part, most likely, you won't be able to view that script, but I can because I have a Devanagari font installed. All you will be able to view is boxes, correct? How will rockbox not just display boxes and actually show what's supposed to be shown?

And here's what's really supposed to be shown (attached)


EDIT: Another question: If I attempt to do this translation and become 50% finished, will this get accepted and then more can be committed as I become finished with it?

I can tell you by looking through some of the strings that about 30-40% of them have no literal translation, so I would probably have to be creative and come up with some sort of slang/pure Hindi so that most can understand.

* MWSnap047.png (1.51 kB, 393x18 - viewed 158 times.)
« Last Edit: January 07, 2008, 07:56:00 PM by crzyboyster »
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Hindi as a language in rockbox
« Reply #7 on: January 07, 2008, 07:56:39 PM »
Those of us with decent web browsers and OSes see "उदास" just fine. :-P

If your file is actually saved in Unicode, as markun suggested, Rockbox will be able to handle it just fine as long as the font the user has contains the appropriate characters.
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Hindi as a language in rockbox
« Reply #8 on: January 07, 2008, 08:35:25 PM »
If you are using Windows, this might help : http://devanaagarii.net/windows/
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Hindi as a language in rockbox
« Reply #9 on: January 07, 2008, 08:45:54 PM »
Actually, I've been on that site a couple of times before and I already have a Devanagari font for windows installed so that's not a problem.

I have a question with the actual editing, though. This seems to be really simple...almost too simple. Here's a snippet of one phrase code:

Quote

  id: LANG_BOOKMARK_CONTEXT_RESUME
  desc: bookmark context menu, resume this bookmark
  user:
 
    *: "Resume"
 
 
    *: "Resume"
 

 
    *: "Resume"
 



Am I just supposed to change the words in quotes to (let's say) this:

Quote

  id: LANG_BOOKMARK_CONTEXT_RESUME
  desc: bookmark context menu, resume this bookmark
  user:
 
    *: "shooru"
 
 
    *: "shooru"
 

 
    *: "shooru"
 



Only in Hindi as I can't find the actual Devanagari word for it right now...
« Last Edit: January 07, 2008, 08:47:53 PM by crzyboyster »
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Hindi as a language in rockbox
« Reply #10 on: January 08, 2008, 05:53:36 AM »
All you need to change is the string with the "dest" tags, and the "voice" tags. "dest" is what will show up on screen, and "voice" is what will be used for voice generation.
« Last Edit: January 08, 2008, 10:54:10 AM by LambdaCalculus379 »
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: Hindi as a language in rockbox
« Reply #11 on: January 08, 2008, 09:31:10 AM »
Quote from: Llorean on January 07, 2008, 07:56:39 PM
If your file is actually saved in Unicode, as markun suggested, Rockbox will be able to handle it just fine as long as the font the user has contains the appropriate characters.

Here you can check what our fonts support:

http://rasher.dk/rockbox/fontstats/

There is only 1 Devanagari font right now: unifont
Logged

Offline crzyboyster

  • Member
  • *
  • Posts: 362
  • Proud iPod Nano User!
Re: Hindi as a language in rockbox
« Reply #12 on: January 08, 2008, 04:18:22 PM »
I'm going to start working on this as soon as the whole Cabbie 2.0 Default Theme thing is over and hopefully I can translate well and somebody will use it  ;D

EDIT:
Here is the Hindi translation: http://www.rockbox.org/tracker/task/8446
« Last Edit: January 12, 2008, 10:34:32 AM by crzyboyster »
Logged
My iPod Nano themes: AAPodSVN - PHK1 Remix - Cabbie 3.0 - Christmas - corners

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Hindi as a language in rockbox
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.113 seconds with 14 queries.