[Doxygen-develop] Language & XML
Brought to you by:
dimitri
From: <ca...@cr...> - 2003-11-08 11:17:07
|
Hi, Dimitri & language maintainers. There is some problem with language dependencies XML format. Language = dependencies charecters coded as=20 &#x**;=20 but notation &#x****; reserved for UNICODE charecters. There are two = solutions (I don't know, what is the best FOR OTHER THAN RUSSIAN = LANGUAGE) 1. (I think it is best way for me) Don't code charecters that <128 as = &#x** (simple remove code=20 if (c<0)=20 { result+=3D(QCString)"&#x" +=20 nibbleToHex((((uchar)c)>>4)&0xf)+ nibbleToHex(c&0xf)+";"; } else=20 { at function convertToXML) 2. Translate chars <128 to unicode with help of Translator function: virtual Q_UINT16 toUnicode( char c ); to translator*.* and modify convertToXML as=20 if (c<0)=20 { char str[10]; sprintf( str, "&#x%X;", theTranslator->toUnicode( c ) ); result +=3D str; } else { |