All times are UTC+02:00




Post new topic  Reply to topic  [ 29 posts ]  Go to page Previous 1 2 3
Author Message
 Post subject: Re: Umlauts in RadioText
PostPosted: Sun Dec 30, 2012 4:45 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
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.
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)))))))))))))
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?


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Sun Dec 30, 2012 5:44 pm 
User avatar

Joined: Fri Mar 16, 2012 11:11 pm
Posts: 19
Location: Stockholm, Sweden
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.
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)))))))))))))
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?
No, as far as I can see it writes in Latin-1. I have not seen any multi-byte characters in the file.
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


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Sun Dec 30, 2012 6:09 pm 
User avatar

Joined: Fri Mar 16, 2012 11:11 pm
Posts: 19
Location: Stockholm, Sweden
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:
Image

--
Ragnar


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Sun Dec 30, 2012 9:40 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
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!


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Sun Dec 30, 2012 9:47 pm 

Joined: Sat Dec 15, 2012 1:47 am
Posts: 42
Location: Some campus radio station, Germany
Quote:
What's the stuff below the shrimps? ;)

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
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".
Quote:
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.
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 ü.
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? :D Are you sure that a printf of the entered ü gives you a 129 and not a 252?


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Sun Dec 30, 2012 9:53 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
Quote:
So ST is secretly using DOS code internally? :D Are you sure that a printf of the entered ü gives you a 129 and not a 252?
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 :shock: ). And yes you are probably right about the printf - and also vice versa, if I type this code in Notepad and Notepad correctly shows a ü, then run the program in a DOS box I get a small 'n' at the top. The same thing happens in Stereo Tool :) The new font is ok though, it's the monosize font used for entering and displaying texts (mainly RDS) that uses the wrong mapping.


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Sun Dec 30, 2012 10:24 pm 
User avatar

Joined: Fri Mar 16, 2012 11:11 pm
Posts: 19
Location: Stockholm, Sweden
Quote:
What's the stuff below the shrimps? ;)
Mayonnaise. Yum! :D

--
Ragnar


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Mon Dec 31, 2012 1:48 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
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.


Top
   
 Post subject: Re: Umlauts in RadioText
PostPosted: Fri Jan 04, 2013 3:47 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 29 posts ]  Go to page Previous 1 2 3

All times are UTC+02:00


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited