[Squeak-ev] [Q] Sonderzeichen
Marcus Denker
marcus at ira.uka.de
Die Jan 13 17:37:27 UTC 2004
Am 13.01.2004 um 16:38 schrieb Bert Freudenberg:
>
> Am 13.01.2004 um 12:16 schrieb Chris Burkert:
>
>> Hi,
>>
>> ich versuche gerade die untenstehende HtmlEscapeTable des SmallWiki
>> zu portieren (wird in Squeak nicht korrekt angezeigt). Jedoch kann
>> Squeak die meisten Sonderzeichen nicht und somit wird, wenn ich einen
>> Text, mit z.B. einem Yen Zeichen, escapen will, kein ¥ eingefügt,
>> sondern ein ´, was eigentlich ein Akut ist [siehe auch 1]. Für
>> das Yen Zeichen wird ein Bullet (ein ausgemalter Kreis) angezeigt.
>
> Ich behaupte mal es ist egal wie Squeak das intern anzeigt - im
> Browser klappt das schon. Nimm einfach die Tabelle so wie sie ist - es
> geht doch nur um eine Übersetzung der Bytes in Entities, unabhängig
> von deren Bedeutung.
>
>> Ich weiß das es Umlaut Unterstützung gibt. Gibt es das auch für
>> andere Zeichen als nur Umlaute? Gibt es andere Ideen um das Problem
>> zu lösen?
>
Ist das vielleicht relevant?
Subject: [FIX] String>>asHtml fix
Author: cg at cdegroot.com
Date Posted: 8 January 2004
Archive ID: 15102
Comments:
String>>asHtml uses a table that is initialized by calling
Character>>isoToSqueak for various characters >128. However, isoToSqueak
has a fall-back representation for characters not representable in
Squeak's MacRoman font; these fall-back representations are then used in
the table and the result is that $2, $3, $y (and possible more) are
translated to '²', '³', 'ý'. This patch filters out any
translations that 'land' at 7bit ASCII characters so that #isoToSqueak's
fallback characters are not used in building the translation table.
ist approved, kommt also bald in 3.7a...
--
Marcus Denker marcus at ira.uka.de