Rockbox General > Rockbox General Discussion
tagnavi.config v2.0 syntax
bluebrother:
I just tried your example. Works for me, but:
when saving the file as utf-8 with BOM it doesn't work. You need to make sure to save without a BOM. Apart from that, as long as your file doesn't include characters outside of the ASCII set utf-8 is identical to ASCII, so there's no need to save it as utf-8. (Edit: the lower 127 characters of ASCII that is.)
Just remove the BOM, that worked fine for me. Notepad is really ugly when it comes to utf-8 files. I suggest using a different editor which can handle utf-8 better (I used vim and Crimson Editor).
bascule:
--- Quote from: xlarge on September 28, 2006, 08:10:21 AM ---# And finally set custom menu as our root menu
%root_menu "custom"
--- End quote ---
I took that option off roolku's file, because, AFAICT, that option completely replaces the default Tag Cache menu with the custom one. ATM all I am trying to do is add a custom menu to the existing list. Once I get that working I'll branch out into more esoteric stuff. I'm just frustrated that it doesn't seem to work as simply as it appears it should do.
--- Quote from: bluebrother on September 28, 2006, 08:21:24 AM ---I just tried your example. Works for me, but:
when saving the file as utf-8 with BOM it doesn't work. You need to make sure to save without a BOM. Apart from that, as long as your file doesn't include characters outside of the ASCII set utf-8 is identical to ASCII, so there's no need to save it as utf-8. (Edit: the lower 127 characters of ASCII that is.)
Just remove the BOM, that worked fine for me. Notepad is really ugly when it comes to utf-8 files. I suggest using a different editor which can handle utf-8 better (I used vim and Crimson Editor).
--- End quote ---
So, using the magic of Wikipedia, I now know what BOM is, but not yet how to remove it :( Â Is there an easy way to do this?
I am also aware that Notepad is not the best text editor out there, but my previous dabblings in this area have always worked OK, so I made the assumption that it would be OK this time. I'll try Notepad++ or Notepad2. EDIT: Well I got it working by copying my config text into a copy of the default config file and re-saving it. I presume I got the BOM issue by copying and pasting from the forum into a new Notepad file? Not something I've come across before, but hey, you need to learn something new every day...
@ roolku - your config rocks!
As for the UTF-8, I used that because I thought, (probably incorrectly) that it fixed the LF/CR vs LF-only issue.
bluebrother:
To remove the BOM you need to get a decent editor. In my case, I used Crimson Editor in which I can change the document encoding (Document / Encoding Type / UTF-8 w/o BOM). Of course you can also use a hex-editor and delete the first three bytes ;-) The problem is (afaik) that windows notepad simply always adds a BOM if a file is saved as utf-8. But if you don't need utf-8 you can simply save files as ASCII (which also works with notepad).
The CR/LF issue is something completely different.
bascule:
--- Quote from: bluebrother on September 28, 2006, 10:06:17 AM ---To remove the BOM you need to get a decent editor. In my case, I used Crimson Editor in which I can change the document encoding (Document / Encoding Type / UTF-8 w/o BOM). Of course you can also use a hex-editor and delete the first three bytes ;-) The problem is (afaik) that windows notepad simply always adds a BOM if a file is saved as utf-8. But if you don't need utf-8 you can simply save files as ASCII (which also works with notepad).
The CR/LF issue is something completely different.
--- End quote ---
Our posts crossed in the ether and you can see I have managed to get it working now, but thanks for those explanations, you have been very helpful :)
roolku:
--- Quote from: bascule on September 28, 2006, 08:39:03 AM ---@ roolku - your config rocks!
--- End quote ---
Thanks, I have attached a slightly improved version (v0.2). Also I have some more ideas, but no time to try them. :(
[attachment deleted by admin, too old]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version