Unicode support in Winboard/XBoard
Posted: 03 Dec 2009, 17:59
Hello,
I am the main developer for the raptor interface for fics http://code.google.com/p/raptor-chess-interface/. One of the features I have added to raptor is unicode support via html characters. It has turned out to be fairly popular. There are quite a few people on fics which speak foreign languages and it is a convenient way for them to communicate. If you finger maciejg you will see the standard. It uses the html unicode characters with the x after the &# i.e. <pre>Δ</pre> is the greek delta. It is also nice because you can send ucicode symbols for chess pieces over fics http://en.wikipedia.org/wiki/Chess_symbols_in_Unicode for the unicode characters (e.g. ♔). It was easy to support this in Raptor because its java and java has very nice unicode support. I know winboard/xboard uses c/c++ but if you would like to see how I did it:
http://code.google.com/p/raptor-chess-i ... Utils.java
This method translates from the maciejg html unicode characters into unicode.
line 669: public static String maciejgFormatToUnicode(String inputString)
This method translate from unicode into the maciejg html unicode characters.
line 541 public static void filterOutbound(StringBuilder message)
As you can see it really wasn't that difficult to implement and is a great feature. It may be more difficult to do it in xboard/winboard since its unicode but if it is it easy it would certainly be nice to have more interfaces supporting it. Quite a few Raptor users are using it.
Carson (CDay on fics)
I am the main developer for the raptor interface for fics http://code.google.com/p/raptor-chess-interface/. One of the features I have added to raptor is unicode support via html characters. It has turned out to be fairly popular. There are quite a few people on fics which speak foreign languages and it is a convenient way for them to communicate. If you finger maciejg you will see the standard. It uses the html unicode characters with the x after the &# i.e. <pre>Δ</pre> is the greek delta. It is also nice because you can send ucicode symbols for chess pieces over fics http://en.wikipedia.org/wiki/Chess_symbols_in_Unicode for the unicode characters (e.g. ♔). It was easy to support this in Raptor because its java and java has very nice unicode support. I know winboard/xboard uses c/c++ but if you would like to see how I did it:
http://code.google.com/p/raptor-chess-i ... Utils.java
This method translates from the maciejg html unicode characters into unicode.
line 669: public static String maciejgFormatToUnicode(String inputString)
This method translate from unicode into the maciejg html unicode characters.
line 541 public static void filterOutbound(StringBuilder message)
As you can see it really wasn't that difficult to implement and is a great feature. It may be more difficult to do it in xboard/winboard since its unicode but if it is it easy it would certainly be nice to have more interfaces supporting it. Quite a few Raptor users are using it.
Carson (CDay on fics)