Stereo Tool https://forums.stereotool.com/ |
|
Umlauts in RadioText https://forums.stereotool.com/viewtopic.php?t=4412 |
Page 3 of 3 |
Author: | hvz [ Sun Dec 30, 2012 4:45 pm ] |
Post subject: | Re: Umlauts in RadioText |
Quote: The AMIP plug-in can do many different things. I have it writing what's playing to a file and do the RDS character set translation.
I suppose this thing writes UTF-8? So if I just convert UTF-8 in the input to the RDS charset it should be fine?
Code: strrep(ü,chr(153),strrep(Ü,chr(217),strrep(É,chr(194),strrep(é,chr(130),strrep(Ö,chr(215),strrep(Ä,chr(209),strrep(Å,chr(225),strrep(ö,chr(151),strrep(ä,chr(145),strrep(å,chr(241),strrep(',chr(39),strrep(á,chr(128),strrep(Á,chr(192),%name))))))))))))) |
Author: | ragnar.jensen [ Sun Dec 30, 2012 5:44 pm ] |
Post subject: | Re: Umlauts in RadioText |
Quote: Quote: The AMIP plug-in can do many different things. I have it writing what's playing to a file and do the RDS character set translation.
I suppose this thing writes UTF-8? So if I just convert UTF-8 in the input to the RDS charset it should be fine?Code: strrep(ü,chr(153),strrep(Ü,chr(217),strrep(É,chr(194),strrep(é,chr(130),strrep(Ö,chr(215),strrep(Ä,chr(209),strrep(Å,chr(225),strrep(ö,chr(151),strrep(ä,chr(145),strrep(å,chr(241),strrep(',chr(39),strrep(á,chr(128),strrep(Á,chr(192),%name))))))))))))) Quote:
My question: The spec mentions that some cheap receivers can only display the characters inside the thick black line. What happens if you send lower case (I suppose they get converted?)
Most RDS receivers I have seen that don't support lower case convert to upper case, but some old ones substitutes with a space.Quote: What happens if you send special characters with umlauts etc? Are they replaced by the same character without umlaut, or completely left out?
Almost all receivers I have seen that don't support funny characters convert them to a space ("NÜRNBERG" -> "N RNBERG"), but I have seen one or two that just leaves them out ("NÜRNBERG" -> "NRNBERG").That was only regarding PS. I'll echo AlexL in that if RadioText is supported at all, then most likely the entire RDS charset is supported. Quote: The latest version in the News section should fix the issue with changed characters before umlauts now.
Yep, I just took 7.02BETA4 for a spin. Looking good!-- Ragnar |
Author: | ragnar.jensen [ Sun Dec 30, 2012 6:09 pm ] |
Post subject: | Re: Umlauts in RadioText |
Quote:
Where I live there are no stations that broadcast weird characters in their RDS texts, you may have more experience with this
Heh, you can say that ![]() ![]() Especially the last three characters in the Swedish alphabet; åäö. That's why the word "Räksmörgås" is popular when doing character set tests here. BTW, this is what a Räksmörgås looks like: ![]() -- Ragnar |
Author: | hvz [ Sun Dec 30, 2012 9:40 pm ] |
Post subject: | Re: Umlauts in RadioText |
What's the stuff below the shrimps? ![]() Edit: See edits below ![]() But anyway, I'm getting a big confused. First, the ASCII characters that to my knowledge are default in Windows are these: http://www.theasciicode.com.ar/ascii-codes.txt This is however VERY different from Latin-1 etc. Also unrelated to UTF-8. Could you check which character you get with ASCII code 129? Normally you get this by typing ALT+129 on the numeric keypad, that's how I make a ü if I need to type something in German. This is by the way also the character set that's built into Stereo Tool, I don't know why characters above 127 aren't displayed, will check that now. EDIT: - Ah, problem in Stereo Tool display found - now all characters ARE displayed - Ow, what you enter by typing ALT+129 is indeed ASCII code 129 if you use the DOS editor. But not if you do the same thing in Notepad. Then you get 252. Which fits Latin-1! |
Author: | AlexL [ Sun Dec 30, 2012 9:47 pm ] |
Post subject: | Re: Umlauts in RadioText |
Quote: What's the stuff below the shrimps?
That looks like CP437 or CP850 - a DOS encoding (I recognize it from the line drawing characters). Thats not Win1252 (the western windows encoding). So those are not the windows "characters".![]() But anyway, I'm getting a big confused. First, the ASCII characters that to my knowledge are default in Windows are these: http://www.theasciicode.com.ar/ascii-codes.txt Quote:
This is however VERY different from Latin-1 etc. Also unrelated to UTF-8.
Thats because Windows imported this feature from DOS as far as I know. If you want to use the real encoding windows uses for applications, you need to prefix your number by a 0. I.e. ALT + 0252 should give you an ü.Could you check which character you get with ASCII code 129? Normally you get this by typing ALT+129 on the numeric keypad, that's how I make a ü if I need to type something in German. Quote:
This is by the way also the character set that's built into Stereo Tool, I don't know why characters above 127 aren't displayed, will check that now.
So ST is secretly using DOS code internally? ![]() |
Author: | hvz [ Sun Dec 30, 2012 9:53 pm ] |
Post subject: | Re: Umlauts in RadioText |
Quote: So ST is secretly using DOS code internally?
See my edits in the code above... Indeed I use a DOS font because I made this font a loooong time ago (I actually made it to be able to keep using my MSX printer when I got my first PC ![]() ![]() ![]() |
Author: | ragnar.jensen [ Sun Dec 30, 2012 10:24 pm ] |
Post subject: | Re: Umlauts in RadioText |
Quote: What's the stuff below the shrimps?
Mayonnaise. Yum! ![]() ![]() -- Ragnar |
Author: | hvz [ Mon Dec 31, 2012 1:48 am ] |
Post subject: | Re: Umlauts in RadioText |
Part 1 should be ok now (conversion of PC to DOS characters, so everything is displayed correctly). Which leaves sending it to the RDS encoder and reading it back from it. |
Author: | hvz [ Fri Jan 04, 2013 3:47 pm ] |
Post subject: | Re: Umlauts in RadioText |
I somehow found a wrong ASCII-list. Most characters were correct but quite a few were different. Should be ok now, in next beta (702-003). What I needed was this one: http://www.kostis.net/charsets/cp437.htm |
Page 3 of 3 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |