Re: [xslt] Kannada fonts garbled in xsltproc



On Fri, Jun 18, 2004 at 10:39:04AM +0200, Peter Jacobi wrote:
> (Daniel, let's keep this one moment on the list please. 
> For those writing between U+0900 and U+0DFF, i.e. South
> Asian scripts, the situation is really unfortunate. National 
> Standardization gave the ISCII character model, which is hard
> to handle, in addition users of the  Dravidian languages even
> produced competing provincial standards, as they felt 
> misrepresented by ISCII. All these encodings are mostly not
> IETF registered, let alone implemented in current browsers.
> So x-userdefined and masquerading fonts rule.
> There is a migration towards the Unicode character model, but
> it's very slow. You must also imagine that some characters
> in legacy encodings get translated into 3 or more Unicode
> codepoints, i.e. 9 UTF-8 bytes. Anyway, let's try to give
> Manoj a start)

  Okay, then apologies, but the whole XML framework is really
based on the Unicode, i.e. everything is defined in terms of
character information item with their relative Unicode codepoint
and only the processing to/from a character encoding from/to
taht internal representation is really defined. Things then
like browser rendering, font selection, etc ... are all supposed
to derive from that Unicode codepoint.

> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> <xsl:output method="html" encoding="ISO-8859-1"/>
> 
> Given this xsl:output element, your Kannada characters masquerading
> as Latin-1 Supplement should be left unchanged.

  Note that in XML-1.1 using ISO-8859-1 for characters not actually
in that range is made an error:
  http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-xml11

  "the additional control characters #x7F through #x9F, which were freely
   allowed in XML 1.0 documents, now must also appear only as character
   references."

Unicode is really the only way forward ...

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]