Fwd: "International Domain Names" support in KDE
Marc Mutz
Marc.Mutz at uni-bielefeld.de
Sun Jan 26 21:47:12 GMT 2003
On Sunday 26 January 2003 02:23, Thiago Macieira wrote:
> * name preparation, especially the handling of case folding and
> prohibited characters
You can use a perl script to extract the tables from
draft-ietf-idn-nameprep. They're in machine-readable format. That's
also what TT does for generating the Unicode tables for QString.
> * punycode encoding and decoding (not yet written)
You can adapt the source code from draft-ietf-idn-punycode-nn.txt. It's
already in C (this is from an old version):
enum punycode_status punycode_encode(
punycode_uint input_length,
const punycode_uint input[],
const unsigned char case_flags[],
punycode_uint *output_length,
char output[] );
/* punycode_encode() converts Unicode to Punycode. The input */
/* is represented as an array of Unicode code points (not code */
/* units; surrogate pairs are not allowed), and the output */
/* will be represented as an array of ASCII code points. The */
enum punycode_status punycode_decode(
punycode_uint input_length,
const char input[],
punycode_uint *output_length,
punycode_uint output[],
unsigned char case_flags[] );
/* punycode_decode() converts Punycode to Unicode. The input is */
/* represented as an array of ASCII code points, and the output */
/* will be represented as an array of Unicode code points. The */
--
Silent leges inter arma -- Cicero
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030126/ef6c3153/attachment.sig>
More information about the kde-core-devel
mailing list