[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sylpheed
Subject:    [sylpheed:25410] German "Umlaut" in Sylpheed 2.0.0beta6
From:       Andreas =?UTF-8?Q?B=C3=B6hler?= <andy.boehler () gmx ! at>
Date:       2005-07-15 19:42:32
Message-ID: 20050715214232.75456b0d.andy.boehler () gmx ! at
[Download RAW message or body]

Hi all!

I sometimes receive messages that are plain HTML. Sylpheed strips HTML-Tags and tries to some extent to \
replace special characters. However, the german Umlauts ä, ü, ö are not recognized (also ß).

Here is a simple patch that adds support for ä, ö and ü to html.c. ß is simply replaced by sz, \
because emacs replaces Ÿ by \u0178, which is then not recognized by the UTF-8 interpreter (the same \
happens to capital Ö, Ä und Ü). It's a pity that I don't understand C well enough to fix this up, \
maybe someone else can help me!  ß in UTF-8 would be "ß"...or is there another way to describe those \
special characters?

greetings, 

andy

Here is the patch:
--- html.c.orig	2005-07-15 21:29:21.000000000 +0200
+++ html.c	2005-07-15 21:19:02.000000000 +0200
@@ -109,6 +109,11 @@ static HTMLSymbol ascii_symbol_list[] = 
 	{"&uacute;", "u'"},
 	{"&ucirc;" , "u^"},
 	{"&yacute;", "y'"},
+	{"&auml;"  , "Ã ¤"},
+
+	{"&ouml;"  , "Ã ¶"},
+	{"&uuml;"  , "Ã ¼"},
+	{"&szlig;" , "sz"}
 };
 
 static GHashTable *default_symbol_table;


-- 
Andreas Böhler
andy (dot) boehler (at) gmx (dot) at
www.klasseonline.tk


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic