cvs: presentations / wereldveroverend-oscom4.xml /slides/i18nl10n ascii-table.png asian.xml convert.xml correct-http-header.png
correct-http-header.xml iconv-function.xml iconv-ob-buffer-multiple.xml iconv-ob-buffer.xml iconv-solved.xml iconv-strpos.xml iconv.xml latin.xml
mb-problems.xml multi-langual-development-trans.png not-ascii.xml pcre-utf8.xml resources.xml title.xml unicode.xml utf8-encoding.xml utf8.xml
wrong-http-header.png wrong-http-header.xml /slides/perf ezp.css
| From: | Derick Rethans | Date: | Tue, 07 Sep 2004 06:58:40 +0000 |
| Subject: | cvs: presentations / wereldveroverend-oscom4.xml /slides/i18nl10n ascii-table.png asian.xml convert.xml correct-http-header.png correct-http-header.xml iconv-function.xml iconv-ob-buffer-multiple.xml iconv-ob-buffer.xml iconv-solved.xml iconv-strpos.xml iconv.xml latin.xml mb-problems.xml multi-langual-development-trans.png not-ascii.xml pcre-utf8.xml resources.xml title.xml unicode.xml utf8-encoding.xml utf8.xml wrong-http-header.png wrong-http-header.xml /slides/perf ezp.css |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1056@lists.php.net to get a copy of this message | ||
derick Tue Sep 7 02:58:40 2004 EDT
Added files:
/presentations wereldveroverend-oscom4.xml
/presentations/slides/i18nl10n ascii-table.png asian.xml
convert.xml correct-http-header.png
correct-http-header.xml
iconv-function.xml
iconv-ob-buffer-multiple.xml
iconv-ob-buffer.xml iconv-solved.xml
iconv-strpos.xml iconv.xml latin.xml
mb-problems.xml
multi-langual-development-trans.png
not-ascii.xml pcre-utf8.xml
resources.xml title.xml unicode.xml
utf8-encoding.xml utf8.xml
wrong-http-header.png
wrong-http-header.xml
Modified files:
/presentations/slides/perf ezp.css
Log:
- Added first part of my "Wereldveroverend" talk.
http://cvs.php.net/diff.php/presentations/slides/perf/ezp.css?r1=1.6&r2=1.7&ty=u Index: presentations/slides/perf/ezp.css diff -u presentations/slides/perf/ezp.css:1.6 presentations/slides/perf/ezp.css:1.7 --- presentations/slides/perf/ezp.css:1.6 Thu Sep 2 02:56:03 2004 +++ presentations/slides/perf/ezp.css Tue Sep 7 02:58:40 2004 @@ -70,14 +70,28 @@ font-size: 24px; } -div.blurb { +div.blurb, div.bit_larger_output_text { font-size: 32px; + width: 100%; +} + +div.bit_larger_output_text { + margin-top: 10px; +} + +div.x_small_blurb { + font-size: 0.5em; } div.large_blurb { font-size: 32px; } +div.xx_large_blurb_center { + font-size: 80px; + text-align: center; +} + div.q_mark { text-align: center; margin-left: 250px; @@ -88,6 +102,17 @@ font-size: 18px; width: 640px; } +div.bit_larger, div.bit_larger code, div.bit_larger_output { + background: #ccc; + font-size: 20px; + width: 100%; +} +div.bit_larger, div.bit_larger_output { + margin-left: 20px; + margin-right: 20px; + width: 100%; +} + div.code_small { background: #ccc; } @@ -107,5 +132,22 @@ } div.code_large code, div.code_large pre { font-size: 24px; +} + +div.event, div.event-date, div.event-presenter { + text-align: center; + font-size: 32pt; +} + +div.pres-url-small { + text-align: center; + font-size: 24pt; +} + +img.spaced { + margin-right: 25px; + margin-left: 25px; + margin-top: 25px; + margin-bottom: 25px; } </style> http://cvs.php.net/co.php/presentations/wereldveroverend-oscom4.xml?r=1.1&p=1 Index: presentations/wereldveroverend-oscom4.xml +++ presentations/wereldveroverend-oscom4.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Localization and Internationalization</topic> <title>Multi-lingual development</title> <event>php|works</event> <location>Toronto, Canada</location> <date>September 22th, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/wereldveroverend-phpworks04</url> <slide>slides/i18nl10n/title.xml</slide> <!-- CHARSETS --> <!--<slide>slides/i18nl10n/what-languages.xml</slide>--> <!-- what is the problem actually? --> <slide>slides/i18nl10n/not-ascii.xml</slide> <!-- not everything is ascii --> <slide>slides/i18nl10n/latin.xml</slide> <!-- latin charsets --> <slide>slides/i18nl10n/convert.xml</slide> <!-- converting charsets (single byte) --> <slide>slides/i18nl10n/asian.xml</slide> <!-- asian charsets --> <slide>slides/i18nl10n/unicode.xml</slide> <!-- unicode and ucs2, ucs4 --> <slide>slides/i18nl10n/utf8.xml</slide> <!-- what does utf8 solve? --> <slide>slides/i18nl10n/utf8-encoding.xml</slide> <!-- how does the encoding work? --> <!-- PROBLEMS and SOLUTIONS --> <slide>slides/i18nl10n/mb-problems.xml</slide> <!-- functions with utf8 chars --> <slide>slides/i18nl10n/iconv-solved.xml</slide> <!-- fixed with iconv --> <slide>slides/i18nl10n/iconv-strpos.xml</slide> <!-- iconv* and other functions --> <slide>slides/i18nl10n/pcre-utf8.xml</slide> <!-- regular expressions, /u, mb_regexp */ --> <!-- CONVERSION and OUTPUT --> <slide>slides/i18nl10n/iconv.xml</slide> <!-- iconv --> <slide>slides/i18nl10n/iconv-function.xml</slide> <!-- converting charsets with iconv --> <slide>slides/i18nl10n/iconv-ob-buffer.xml</slide> <!-- iconv ob_buffer --> <slide>slides/i18nl10n/iconv-ob-buffer-multiple.xml</slide> <!-- multiple charsets and iconv conversion --> <slide>slides/i18nl10n/wrong-http-header.xml</slide> <!-- show problem with wrong http header --> <slide>slides/i18nl10n/correct-http-header.xml</slide> <!-- setting http header --> <slide>slides/i18nl10n/</slide> <!-- transliteration to html --> <slide>slides/i18nl10n/</slide> <!-- eZ transliteration ? --> <!-- LOCALE ISSUES --> <slide>slides/i18nl10n/</slide> <!-- string collation (ordering) --> <slide>slides/i18nl10n/</slide> <!-- strupper/strlower --> <slide>slides/i18nl10n/</slide> <!-- formatting a date --> <slide>slides/i18nl10n/</slide> <!-- formatting numbers (also arabic numbers?) --> <slide>slides/i18nl10n/</slide> <!-- formatting money --> <!-- TRANSLATIONS IN WEBSITES --> <slide>slides/i18nl10n/</slide> <!-- with define --> <slide>slides/i18nl10n/</slide> <!-- with gettext --> <slide>slides/i18nl10n/</slide> <!-- xml based definition --> <slide>slides/i18nl10n/</slide> <!-- lupdate --> <slide>slides/i18nl10n/</slide> <!-- Qt Linguist --> <slide>slides/i18nl10n/</slide> <!-- using the XML translations --> <!-- EXIT --> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/co.php/presentations/slides/i18nl10n/asian.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/asian.xml +++ presentations/slides/i18nl10n/asian.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Asian Character Sets</title> <subtitle>äºå</subtitle> <list> <bullet>They need more than 256 positions</bullet> <bullet>Multi-byte</bullet> <bullet>One character is often one word</bullet> <bullet>Problems with NULL characters and special characters</bullet> <bullet>addslashes() mis-recognises chinese-big5 words like "0xA5 0x5C" (%Â¥\,% å, E5 8A 9F)</bullet> </list> <break lines="3"/> <blurb class="xx_large_blurb_center"><![CDATA[ä¼²åå æ´å½]]></blurb> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/convert.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/convert.xml +++ presentations/slides/i18nl10n/convert.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Conversion Between ISO-8859 Character Sets</title> <list> <bullet>Each set has only 256 positions</bullet> <bullet>Impossible to convert everything</bullet> <bullet>Conversion will result in broken text</bullet> <bullet>http://www.eki.ee/letter/</bullet> </list> <break /> <example class="bit_larger"><![CDATA[ ISO 8859-1 ISO-8859-2 Hex Char Hex Char Description E0 à -- - LATIN SMALL LETTER A WITH GRAVE E1 á E1 á LATIN SMALL LETTER A WITH ACUTE E2 â E2 â LATIN SMALL LETTER A WITH CIRCUMFLEX E3 ã -- - LATIN SMALL LETTER A WITH TILDE E4 ä E4 ä LATIN SMALL LETTER A WITH DIAERESIS E5 Ã¥ -- - LATIN SMALL LETTER A WITH RING ABOVE E6 æ -- - LATIN SMALL LETTER AE E7 ç E7 ç LATIN SMALL LETTER C WITH CEDILLA E8 è -- - LATIN SMALL LETTER E WITH GRAVE E9 é E9 é LATIN SMALL LETTER E WITH ACUTE EA ê -- - LATIN SMALL LETTER E WITH CIRCUMFLEX EB ë EB ë LATIN SMALL LETTER E WITH DIAERESIS EC ì -- - LATIN SMALL LETTER I WITH GRAVE ED à ED à LATIN SMALL LETTER I WITH ACUTE EE î EE î LATIN SMALL LETTER I WITH CIRCUMFLEX EF ï -- - LATIN SMALL LETTER I WITH DIAERESIS ]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/correct-http-header.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/correct-http-header.xml +++ presentations/slides/i18nl10n/correct-http-header.xml <?xml version="1.0" encoding="UTF8"?> <slide fontsize="6em"> <title>Setting a Content-Type header</title> <example class="bit_larger"><![CDATA[<?php header("Content-Type: text/html; charset=iso-8859-1"); ?> Vær sÃ¥ god]]></example> <break lines="5"/> <blurb>Very easy to do, and the result is much better:</blurb> <image class="spaced" filename="correct-http-header.png"/> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-function.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-function.xml +++ presentations/slides/i18nl10n/iconv-function.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>Converting Character Sets</title> <blurb>iconv():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; echo iconv('iso-8859-1', 'utf8', $str); ?>]]></example> <break lines="2"/> <blurb>iconv():</blurb> <example class="bit_larger"><![CDATA[<?php $str = "© 2004, by Derick Rethans"; echo iconv('iso-8859-1', 'iso-8859-2', $str); ?>]]></example> <blurb>output:</blurb> <example class="bit_larger_output">Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/httpd/pres2/display.php(461) : eval()'d code on line 3</example> <break lines="2"/> <blurb>iconv():</blurb> <example class="bit_larger"><![CDATA[<?php $str = "© 2004, by Derick Rethans"; echo iconv('iso-8859-1', 'iso-8859-2//ignore', $str); ?>]]></example> <blurb>output:</blurb> <example class="bit_larger_output">Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/httpd/pres2/display.php(461) : eval()'d code on line 3 2004, by Derick Rethans</example> </slide> <!-- vim: encoding=latin1 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-ob-buffer-multiple.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-ob-buffer-multiple.xml +++ presentations/slides/i18nl10n/iconv-ob-buffer-multiple.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>Conversions with Multiple Character Sets</title> <blurb>ob_iconv_handler():</blurb> <example class="bit_larger"><![CDATA[<?php // Output text as-is echo 'Nittenhundreogåttiåtte', "<br/>\n"; // Set the output and internal encodings iconv_set_encoding("output_encoding", "utf-8"); iconv_set_encoding("internal_encoding", "iso-8859-1"); // Start the output buffer handler and echo the string again ob_start("ob_iconv_handler"); echo 'Nittenhundreogåttiåtte', "<br/>\n"; ob_end_flush(); // Change the internal encoding iconv_set_encoding("internal_encoding", "iso-8859-2"); // Start the output buffer handler and echo the string again ob_start("ob_iconv_handler"); echo 'Nittenhundreogåttiåtte', "<br/>\n"; ob_end_flush(); ?>]]></example> <blurb>output:</blurb> <example class="bit_larger_output"><![CDATA[Nittenhundreogåttiåtte NittenhundreogÃ¥ttiÃ¥tte Nittenhundreogĺttiĺtte]]></example> </slide> <!-- vim: encoding=latin1 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-ob-buffer.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-ob-buffer.xml +++ presentations/slides/i18nl10n/iconv-ob-buffer.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>Automatic Conversions</title> <subtitle>Iconv and Output Buffers</subtitle> <blurb>ob_iconv_handler():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php // Output text as-is echo 'Nittenhundreogåttiåtte', "<br/>\n"; // Set the internal and output encodings iconv_set_encoding("internal_encoding", "iso-8859-1"); iconv_set_encoding("output_encoding", "utf-8"); // Start the output buffer handler and echo the string again ob_start("ob_iconv_handler"); echo 'Nittenhundreogåttiåtte', "<br/>\n"; // Flush and stop the output buffer handler ob_end_flush(); ?>]]></example> </slide> <!-- vim: encoding=latin1 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-solved.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-solved.xml +++ presentations/slides/i18nl10n/iconv-solved.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Iconv Functions</title> <blurb>iconv_strlen():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo "The string has length: ", iconv_strlen($str, 'utf8'); ?>]]></example> <break lines="4"/> <blurb>iconv_substr():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php iconv_set_encoding('internal_encoding', 'utf8'); $str = "Vær sÃ¥ god!"; echo "The first 7 characters are: ", iconv_substr($str, 0, 7); ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-strpos.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-strpos.xml +++ presentations/slides/i18nl10n/iconv-strpos.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Iconv Functions</title> <subtitle>iconv_strpos() and iconv_strrpos()</subtitle> <blurb>iconv_strpos():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php iconv_set_encoding('internal_encoding', 'utf8'); $str = "Vær sÃ¥ god!"; echo "The o is at position: ", strpos($str, 'o'), "<br />\n"; echo "The o is at position: ", iconv_strpos($str, 'o'), "\n"; ?>]]></example> <break lines="4"/> <blurb>iconv_strrpos():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php iconv_set_encoding('internal_encoding', 'utf8'); $str = "Vær sÃ¥ god!"; echo "The Ã¥ is at position: ", strrpos($str, 'Ã¥'), "<br />\n"; echo "The Ã¥ is at position: ", iconv_strrpos($str, 'Ã¥'), "\n"; ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv.xml +++ presentations/slides/i18nl10n/iconv.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Iconv</title> <subtitle>Character Set Conversions</subtitle> <list> <bullet>Is part of glibc</bullet> <bullet>BSD requires an external library</bullet> <bullet>Enabled by default in PHP 5</bullet> <bullet>Supports 100s of character sets:</bullet> </list> <blurb>DOS, ISO-8859, MAC, EBCDIC, UTF*, IBM, OSF...</blurb> <break/> <blurb class="x_small_blurb"> 437, 500, 500V1, 850, 851, 852, 855, 856, 857, 860, 861, 862, 863, 864, 865, 866, 866NAV, 869, 874, 904, 1026, 1046, 1047, 8859_1, 8859_2, 8859_3, 8859_4, 8859_5, 8859_6, 8859_7, 8859_8, 8859_9, 10646-1:1993, 10646-1:1993/UCS4/ ANSI_X3.4-1968, ANSI_X3.4-1986, ANSI_X3.4, ANSI_X3.110-1983, ANSI_X3.110, ARABIC, ARABIC7, ARMSCII-8, ASCII, ASMO-708, ASMO_449, BALTIC, BIG-5, BIG-FIVE, BIG5-HKSCS, BIG5, BIG5HKSCS, BIGFIVE, BS_4730, CA, CN-BIG5, CN-GB, CN, CP-AR, CP-GR, CP-HU, CP037, CP038, CP273, CP274, CP275, CP278, CP280, CP281, CP282, CP284, CP285, CP290, CP297, CP367, CP420, CP423, CP424, CP437, CP500, CP737, CP775, CP813, CP819, CP850, CP851, CP852, CP855, CP856, CP857, CP860, CP861, CP862, CP863, CP864, CP865, CP866, CP866NAV, CP868, CP869, CP870, CP871, CP874, CP875, CP880, CP891, CP903, CP904, CP905, CP912, CP915, CP916, CP918, CP920, CP922, CP930, CP932, CP933, CP935, CP936, CP937, CP939, CP949, CP950, CP1004, CP1026, CP1046, CP1047, CP1070, CP1079, CP1081, CP1084, CP1089, CP1124, CP1125, CP1129, CP1132, CP1133, CP1160, CP1161, CP1162, CP1163, CP1164, CP1250, CP1251, CP1252, CP1253, CP1254, CP1255, CP1256, CP1257, CP1258, CP1361, CP10007, CPIBM861, CSA7-1, CSA7-2, CSASCII, CSA_T500-1983, CSA_T500, CSA_Z243.4-1985-1, CSA_Z243.4-1985-2, CSA_Z243.419851, CSA_Z243.419852, CSDECMCS, CSEBCDICATDE, CSEBCDICATDEA, CSEBCDICCAFR, CSEBCDICDKNO, CSEBCDICDKNOA, CSEBCDICES, CSEBCDICESA, CSEBCDICESS, CSEBCDICFISE, CSEBCDICFISEA, CSEBCDICFR, CSEBCDICIT, CSEBCDICPT, CSEBCDICUK, CSEBCDICUS, CSEUCKR, CSEUCPKDFMTJAPANESE, CSGB2312, CSHPROMAN8, CSIBM037, CSIBM038, CSIBM273, CSIBM274, CSIBM275, CSIBM277, CSIBM278, CSIBM280, CSIBM281, CSIBM284, CSIBM285, CSIBM290, CSIBM297, CSIBM420, CSIBM423, CSIBM424, CSIBM500, CSIBM851, CSIBM855, CSIBM856, CSIBM857, CSIBM860, CSIBM863, CSIBM864, CSIBM865, CSIBM866, CSIBM868, CSIBM869, CSIBM870, CSIBM871, CSIBM880, CSIBM891, CSIBM903, CSIBM904, CSIBM905, CSIBM918, CSIBM922, CSIBM930, CSIBM932, CSIBM933, CSIBM935, CSIBM937, CSIBM939, CSIBM943, CSIBM1026, CSIBM1124, CSIBM1129, CSIBM1132, CSIBM1133, CSIBM1160, CSIBM1161, CSIBM1163, CSIBM1164, CSIBM11621162, CSISO4UNITEDKINGDOM, CSISO10SWEDISH, CSISO11SWEDISHFORNAMES, CSISO14JISC6220RO, CSISO15ITALIAN, CSISO16PORTUGESE, CSISO17SPANISH, CSISO18GREEK7OLD, CSISO19LATINGREEK, CSISO21GERMAN, CSISO25FRENCH, CSISO27LATINGREEK1, CSISO49INIS, CSISO50INIS8, CSISO51INISCYRILLIC, CSISO58GB1988, CSISO60DANISHNORWEGIAN, CSISO60NORWEGIAN1, CSISO61NORWEGIAN2, CSISO69FRENCH, CSISO84PORTUGUESE2, CSISO85SPANISH2, CSISO86HUNGARIAN, CSISO88GREEK7, CSISO89ASMO449, CSISO90, CSISO92JISC62991984B, CSISO99NAPLPS, CSISO103T618BIT, CSISO111ECMACYRILLIC, CSISO121CANADIAN1, CSISO122CANADIAN2, CSISO139CSN369103, CSISO141JUSIB1002, CSISO143IECP271, CSISO150, CSISO150GREEKCCITT, CSISO151CUBA, CSISO153GOST1976874, CSISO646DANISH, CSISO2022CN, CSISO2022JP, CSISO2022JP2, CSISO2022KR, CSISO2033, CSISO5427CYRILLIC, CSISO5427CYRILLIC1981, CSISO5428GREEK, CSISO10367BOX, CSISOLATIN1, CSISOLATIN2, CSISOLATIN3, CSISOLATIN4, CSISOLATIN5, CSISOLATIN6, CSISOLATINARABIC, CSISOLATINCYRILLIC, CSISOLATINGREEK, CSISOLATINHEBREW, CSKOI8R, CSKSC5636, CSMACINTOSH, CSNATSDANO, CSNATSSEFI, CSN_369103, CSPC8CODEPAGE437, CSPC775BALTIC, CSPC850MULTILINGUAL, CSPC862LATINHEBREW, CSPCP852, CSSHIFTJIS, CSUCS4, CSUNICODE, CSWINDOWS31J, CUBA, CWI-2, CWI, CYRILLIC, DE, DEC-MCS, DEC, DECMCS, DIN_66003, DK, DS2089, DS_2089, E13B/ EBCDIC-AT-DE-A, EBCDIC-AT-DE, EBCDIC-BE, EBCDIC-BR, EBCDIC-CA-FR, EBCDIC-CP-AR1, EBCDIC-CP-AR2, EBCDIC-CP-BE, EBCDIC-CP-CA, EBCDIC-CP-CH, EBCDIC-CP-DK, EBCDIC-CP-ES, EBCDIC-CP-FI, EBCDIC-CP-FR, EBCDIC-CP-GB, EBCDIC-CP-GR, EBCDIC-CP-HE, EBCDIC-CP-IS, EBCDIC-CP-IT, EBCDIC-CP-NL, EBCDIC-CP-NO, EBCDIC-CP-ROECE, EBCDIC-CP-SE, EBCDIC-CP-TR, EBCDIC-CP-US, EBCDIC-CP-WT, EBCDIC-CP-YU, EBCDIC-CYRILLIC, EBCDIC-DK-NO-A, EBCDIC-DK-NO, EBCDIC-ES-A, EBCDIC-ES-S, EBCDIC-ES, EBCDIC-FI-SE-A, EBCDIC-FI-SE, EBCDIC-FR, EBCDIC-GREEK, EBCDIC-INT, EBCDIC-INT1, EBCDIC-IS-FRISS, EBCDIC-IT, EBCDIC-JP-E, EBCDIC-JP-KANA, EBCDIC-PT, EBCDIC-UK, EBCDIC-US, EBCDICATDE, EBCDICATDEA, EBCDICCAFR, EBCDICDKNO, EBCDICDKNOA, EBCDICES, EBCDICESA, EBCDICESS, EBCDICFISE, EBCDICFISEA, EBCDICFR, EBCDICISFRISS, EBCDICIT, EBCDICPT, EBCDICUK, EBCDICUS, ECMA-114, ECMA-118, ECMA-128, ECMA-CYRILLIC, ECMACYRILLIC, ELOT_928, ES, ES2, EUC-CN, EUC-JISX0213, EUC-JP-MS, EUC-JP, EUC-KR, EUC-TW, EUCCN, EUCJP-MS, EUCJP-OPEN, EUCJP-WIN, EUCJP, EUCKR, EUCTW, FI, FR, GB, GB2312, GB13000, GB18030, GBK, GB_1988-80, GB_198880, GEORGIAN-ACADEMY, GEORGIAN-PS, GOST_19768-74, GOST_19768, GOST_1976874, GREEK-CCITT, GREEK, GREEK7-OLD, GREEK7, GREEK7OLD, GREEK8, GREEKCCITT, HEBREW, HP-ROMAN8, HPROMAN8, HU, IBM-856, IBM-922, IBM-930, IBM-932, IBM-933, IBM-935, IBM-937, IBM-939, IBM-943, IBM-1046, IBM-1047, IBM-1124, IBM-1129, IBM-1132, IBM-1133, IBM-1160, IBM-1161, IBM-1162, IBM-1163, IBM-1164, IBM037, IBM038, IBM256, IBM273, IBM274, IBM275, IBM277, IBM278, IBM280, IBM281, IBM284, IBM285, IBM290, IBM297, IBM367, IBM420, IBM423, IBM424, IBM437, IBM500, IBM775, IBM813, IBM819, IBM848, IBM850, IBM851, IBM852, IBM855, IBM856, IBM857, IBM860, IBM861, IBM862, IBM863, IBM864, IBM865, IBM866, IBM866NAV, IBM868, IBM869, IBM870, IBM871, IBM874, IBM875, IBM880, IBM891, IBM903, IBM904, IBM905, IBM912, IBM915, IBM916, IBM918, IBM920, IBM922, IBM930, IBM932, IBM933, IBM935, IBM937, IBM939, IBM943, IBM1004, IBM1026, IBM1046, IBM1047, IBM1089, IBM1124, IBM1129, IBM1132, IBM1133, IBM1160, IBM1161, IBM1162, IBM1163, IBM1164, IEC_P27-1, IEC_P271, INIS-8, INIS-CYRILLIC, INIS, INIS8, INISCYRILLIC, ISIRI-3342, ISIRI3342, ISO-2022-CN-EXT, ISO-2022-CN, ISO-2022-JP-2, ISO-2022-JP-3, ISO-2022-JP, ISO-2022-KR, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, ISO-10646, ISO-10646/UCS2/ ISO-10646/UCS4/ ISO-10646/UTF-8/ ISO-10646/UTF8/ ISO-CELTIC, ISO-IR-4, ISO-IR-6, ISO-IR-8-1, ISO-IR-9-1, ISO-IR-10, ISO-IR-11, ISO-IR-14, ISO-IR-15, ISO-IR-16, ISO-IR-17, ISO-IR-18, ISO-IR-19, ISO-IR-21, ISO-IR-25, ISO-IR-27, ISO-IR-37, ISO-IR-49, ISO-IR-50, ISO-IR-51, ISO-IR-54, ISO-IR-55, ISO-IR-57, ISO-IR-60, ISO-IR-61, ISO-IR-69, ISO-IR-84, ISO-IR-85, ISO-IR-86, ISO-IR-88, ISO-IR-89, ISO-IR-90, ISO-IR-92, ISO-IR-98, ISO-IR-99, ISO-IR-100, ISO-IR-101, ISO-IR-103, ISO-IR-109, ISO-IR-110, ISO-IR-111, ISO-IR-121, ISO-IR-122, ISO-IR-126, ISO-IR-127, ISO-IR-138, ISO-IR-139, ISO-IR-141, ISO-IR-143, ISO-IR-144, ISO-IR-148, ISO-IR-150, ISO-IR-151, ISO-IR-153, ISO-IR-155, ISO-IR-156, ISO-IR-157, ISO-IR-166, ISO-IR-179, ISO-IR-193, ISO-IR-197, ISO-IR-199, ISO-IR-203, ISO-IR-209, ISO-IR-226, ISO646-CA, ISO646-CA2, ISO646-CN, ISO646-CU, ISO646-DE, ISO646-DK, ISO646-ES, ISO646-ES2, ISO646-FI, ISO646-FR, ISO646-FR1, ISO646-GB, ISO646-HU, ISO646-IT, ISO646-JP-OCR-B, ISO646-JP, ISO646-KR, ISO646-NO, ISO646-NO2, ISO646-PT, ISO646-PT2, ISO646-SE, ISO646-SE2, ISO646-US, ISO646-YU, ISO2022CN, ISO2022CNEXT, ISO2022JP, ISO2022JP2, ISO2022KR, ISO6937, ISO8859-1, ISO8859-2, ISO8859-3, ISO8859-4, ISO8859-5, ISO8859-6, ISO8859-7, ISO8859-8, ISO8859-9, ISO8859-10, ISO8859-11, ISO8859-13, ISO8859-14, ISO8859-15, ISO8859-16, ISO88591, ISO88592, ISO88593, ISO88594, ISO88595, ISO88596, ISO88597, ISO88598, ISO88599, ISO885910, ISO885911, ISO885913, ISO885914, ISO885915, ISO885916, ISO_646.IRV:1991, ISO_2033-1983, ISO_2033, ISO_5427-EXT, ISO_5427, ISO_5427:1981, ISO_5427EXT, ISO_5428, ISO_5428:1980, ISO_6937-2, ISO_6937-2:1983, ISO_6937, ISO_6937:1992, ISO_8859-1, ISO_8859-1:1987, ISO_8859-2, ISO_8859-2:1987, ISO_8859-3, ISO_8859-3:1988, ISO_8859-4, ISO_8859-4:1988, ISO_8859-5, ISO_8859-5:1988, ISO_8859-6, ISO_8859-6:1987, ISO_8859-7, ISO_8859-7:1987, ISO_8859-8, ISO_8859-8:1988, ISO_8859-9, ISO_8859-9:1989, ISO_8859-10, ISO_8859-10:1992, ISO_8859-14, ISO_8859-14:1998, ISO_8859-15, ISO_8859-15:1998, ISO_8859-16, ISO_8859-16:2001, ISO_9036, ISO_10367-BOX, ISO_10367BOX, ISO_69372, IT, JIS_C6220-1969-RO, JIS_C6229-1984-B, JIS_C62201969RO, JIS_C62291984B, JOHAB, JP-OCR-B, JP, JS, JUS_I.B1.002, KOI-7, KOI-8, KOI8-R, KOI8-T, KOI8-U, KOI8, KOI8R, KOI8U, KSC5636, L1, L2, L3, L4, L5, L6, L7, L8, L10, LATIN-9, LATIN-GREEK-1, LATIN-GREEK, LATIN1, LATIN2, LATIN3, LATIN4, LATIN5, LATIN6, LATIN7, LATIN8, LATIN10, LATINGREEK, LATINGREEK1, MAC-CYRILLIC, MAC-IS, MAC-SAMI, MAC-UK, MAC, MACCYRILLIC, MACINTOSH, MACIS, MACUK, MACUKRAINIAN, MS-ANSI, MS-ARAB, MS-CYRL, MS-EE, MS-GREEK, MS-HEBR, MS-MAC-CYRILLIC, MS-TURK, MS932, MS936, MSCP949, MSCP1361, MSMACCYRILLIC, MSZ_7795.3, MS_KANJI, NAPLPS, NATS-DANO, NATS-SEFI, NATSDANO, NATSSEFI, NC_NC0010, NC_NC00-10, NC_NC00-10:81, NF_Z_62-010, NF_Z_62-010_(1973), NF_Z_62-010_1973, NF_Z_62010, NF_Z_62010_1973, NO, NO2, NS_4551-1, NS_4551-2, NS_45511, NS_45512, OS2LATIN1, OSF00010001, OSF00010002, OSF00010003, OSF00010004, OSF00010005, OSF00010006, OSF00010007, OSF00010008, OSF00010009, OSF0001000A, OSF00010020, OSF00010100, OSF00010101, OSF00010102, OSF00010104, OSF00010105, OSF00010106, OSF00030010, OSF0004000A, OSF0005000A, OSF05010001, OSF100201A4, OSF100201A8, OSF100201B5, OSF100201F4, OSF100203B5, OSF1002011C, OSF1002011D, OSF1002035D, OSF1002035E, OSF1002035F, OSF1002036B, OSF1002037B, OSF10010001, OSF10020025, OSF10020111, OSF10020115, OSF10020116, OSF10020118, OSF10020122, OSF10020129, OSF10020352, OSF10020354, OSF10020357, OSF10020359, OSF10020360, OSF10020364, OSF10020365, OSF10020366, OSF10020367, OSF10020370, OSF10020387, OSF10020388, OSF10020396, OSF10020402, OSF10020417, PT, PT2, R8, ROMAN8, RUSCII, SE, SE2, SEN_850200_B, SEN_850200_C, SHIFT-JIS, SHIFT_JIS, SHIFT_JISX0213, SJIS-OPEN, SJIS-WIN, SJIS, SS636127, ST_SEV_358-88, T.61-8BIT, T.61, T.618BIT, TCVN-5712, TCVN, TCVN5712-1, TCVN5712-1:1993, TIS-620, TIS620-0, TIS620.2529-1, TIS620.2533-0, TIS620, TS-5881, TSCII, UCS-2, UCS-2BE, UCS-2LE, UCS-4, UCS-4BE, UCS-4LE, UCS2, UCS4, UHC, UJIS, UK, UNICODE, UNICODEBIG, UNICODELITTLE, US-ASCII, US, UTF-7, UTF-8, UTF-16, UTF-16BE, UTF-16LE, UTF-32, UTF-32BE, UTF-32LE, UTF7, UTF8, UTF16, UTF16BE, UTF16LE, UTF32, UTF32BE, UTF32LE, VISCII, WCHAR_T, WIN-SAMI-2, WINBALTRIM, WINDOWS-31J, WINDOWS-936, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1253, WINDOWS-1254, WINDOWS-1255, WINDOWS-1256, WINDOWS-1257, WINDOWS-1258, WINSAMI2, WS2, YU </blurb> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/latin.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/latin.xml +++ presentations/slides/i18nl10n/latin.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>ISO-8859 and Latin Character Sets</title> <list> <bullet>ISO-8859: Group of often used character sets</bullet> <bullet>latin-X: Group of character sets based on the "latin" set</bullet> <bullet>Contains most of European's characters</bullet> <bullet>Adds 96 characters to ASCII (A0 - FF)</bullet> </list> <break /> <example class="bit_larger"><![CDATA[ ISO 8859 Latin Usage Example 1 1 West European languages é ë ç Ã¥ 2 2 Central and East European languages Å¡ Ä Å 3 3 Southeast European and miscellaneous languages 4 4 Scandinavian/Baltic languages 5 Latin/Cyrillic РРРд 6 Latin/Arabic Ù ï» ïº]]></example> <example class="bit_larger"><![CDATA[ 7 Latin/Greek α ζ Ï Ï 8 Latin/Hebrew × × ×¦ ×]]></example> <example class="bit_larger"><![CDATA[ 9 5 Latin-1 modification for Turkish ŠŠİ ÿ 10 6 Lappish/Nordic/Eskimo languages 11 Latin/Thai ภภภฬ 13 7 Baltic Rim languages 14 8 Celtic 15 9 West European languages ⬠16 10 Romanian Ä Ä È Ä]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/mb-problems.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/mb-problems.xml +++ presentations/slides/i18nl10n/mb-problems.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Problems with Multi-byte Characters</title> <blurb>strlen() no longer "works":</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo "The string has length: ", strlen($str); ?>]]></example> <break lines="2"/> <blurb>substr() may mangle text:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo "The first 7 characters are: ", substr($str, 0, 7); ?>]]></example> <break lines="2"/> <blurb>wordwrap() wraps too early:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo wordwrap($str, 6, '|'); ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/not-ascii.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/not-ascii.xml +++ presentations/slides/i18nl10n/not-ascii.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Not Everything is ASCII</title> <break lines="3"/> <image class="spaced" align="right" filename="ascii-table.png"/> <break lines="2"/> <list> <bullet>ASCII is a 7 bit character set</bullet> <bullet>ASCII is old (published in 1968)</bullet> <bullet effect="hide">Only English does not require accented characters.</bullet> <bullet effect="hide">There are more languages than English :)</bullet> <bullet effect="hide">This means that it is no longer adequate</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/pcre-utf8.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/pcre-utf8.xml +++ presentations/slides/i18nl10n/pcre-utf8.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Regular Expressions and UTF8</title> <blurb>preg_match():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; if (preg_match('@,(.{6}),@', $str, $result)) { echo 'We matched: ', $result[1], "<br/>\n"; } else { echo 'There was no match!', "<br/>\n"; } ?>]]></example> <break lines="4"/> <blurb>preg_match() in UTF8 mode:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; if (preg_match('@,(.{6}),@u', $str, $result)) { echo 'We matched: ', $result[1], "<br/>\n"; } else { echo 'There was no match!', "<br/>\n"; } ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/resources.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/resources.xml +++ presentations/slides/i18nl10n/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="3.5em"> <title>Resources</title> <image align="center" filename="multi-langual-development-trans.png" /> <break lines="4"/> <link fontsize="2.4em" marginleft="0em" leader="This presentation: " href="http://pres.derickrethans.nl/wereldveroverend-phpworks04" target="_new"/> <link fontsize="3em" marginleft="0em" leader="Questions?: " href="derick@php.net" target="_new"/> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/title.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/title.xml +++ presentations/slides/i18nl10n/title.xml <slide fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="multi-langual-development-trans.png" /> <break lines="3"/> <blurb class="event">php|Ïorks</blurb> <break/> <blurb class="event-date">September 22th, 2004. Toronto, Canada</blurb> <break/> <blurb class="event-presenter">Derick Rethans &lt;<a href="mailto:derick@php.net">derick@php.net</a>&gt;</blurb> <break/> <blurb class="pres-url-small"><a href="http://pres.derickrethans.nl/wereldveroverend-phpworks04">http://pres.derickrethans.nl/wereldveroverend-phpworks04</a></blurb> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/unicode.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/unicode.xml +++ presentations/slides/i18nl10n/unicode.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Unicode and ISO-10646 (UCS)</title> <list> <bullet>UCS uses 31 bits for character storage</bullet> <bullet>Contains all known characters and symbols</bullet> <bullet>First 128 bytes are the same as ASCII</bullet> <bullet>First 256 bytes are the same as ISO-8859-1</bullet> <bullet>Unicode 3.0 describes the BMP (16 bits)</bullet> <bullet>Unicode 3.1 describes other planes (21 bits)</bullet> <bullet>Characters are ordered in language/script blocks: Basic latin, Cyrillic, Hebrew, Arabic, Gujarati, Runic, CJK etc.</bullet> <bullet>Encoding in numerous encodings: UCS-2, UCS-4, UTF8, UTF16 etc.</bullet> </list> <break lines="2"/> <blurb class="xx_large_blurb_center">A Ð × Ø« ઠ᪠åª</blurb> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/utf8-encoding.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/utf8-encoding.xml +++ presentations/slides/i18nl10n/utf8-encoding.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>UTF8 Encoding</title> <blurb>Characters in the ASCII range are stored "as-is"</blurb> <break /> <blurb>Characters in the range 0x0080 to 0x07ff:</blurb> <example class="bit_larger"><![CDATA[byte 1: 110x xxxx byte 2: 10xx xxxx ë (0x00eb) 110x xxxx 10xx xxxx 1110 1011 -> ---+ ++11 --10 1011 ==================== 1100 0011 1010 1011 0xc3 0xab]]></example> <break /> <blurb>Characters in the range 0x8000 to 0xffff:</blurb> <example class="bit_larger"><![CDATA[byte 1: 1110 xxxx byte 2: 10xx xxxx byte 3: 10xx xxxx å (0x529f) 110x xxxx 10xx xxxx 10xx xxxx 0101 0010 1001 1111 -> ---+ 0101 --00 1010 --01 1111 =============================== 1100 0101 1000 1010 1001 1111 0xe5 0x8a 0x9f]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/utf8.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/utf8.xml +++ presentations/slides/i18nl10n/utf8.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>UTF8</title> <subtitle>Encoding of UCS characters</subtitle> <list> <bullet>All UCS characters > 0x7f (127) are stored as multi-byte characters >= 0x80</bullet> <bullet>No problems with control characters</bullet> <bullet>The first byte of a multi-byte character is always in the range 0xc0 - 0xfd and describes how long this byte-sequence is.</bullet> <bullet>European languages usually use up to two bytes per character</bullet> <bullet>Characters of other languages usually use up to three bytes per character</bullet> <bullet>The longest UTF8 encoded character is 6 bytes</bullet> </list> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/wrong-http-header.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/wrong-http-header.xml +++ presentations/slides/i18nl10n/wrong-http-header.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>HTTP and Browser Problems</title> <list> <bullet>Most sites don't set any Content-Type header</bullet> <bullet>Browsers and/or digital environments will move more and more to UTF8 as default encoding</bullet> </list> <blurb>Result:</blurb> <image class="spaced" filename="wrong-http-header.png"/> </slide>
http://cvs.php.net/diff.php/presentations/slides/perf/ezp.css?r1=1.6&r2=1.7&ty=u Index: presentations/slides/perf/ezp.css diff -u presentations/slides/perf/ezp.css:1.6 presentations/slides/perf/ezp.css:1.7 --- presentations/slides/perf/ezp.css:1.6 Thu Sep 2 02:56:03 2004 +++ presentations/slides/perf/ezp.css Tue Sep 7 02:58:40 2004 @@ -70,14 +70,28 @@ font-size: 24px; } -div.blurb { +div.blurb, div.bit_larger_output_text { font-size: 32px; + width: 100%; +} + +div.bit_larger_output_text { + margin-top: 10px; +} + +div.x_small_blurb { + font-size: 0.5em; } div.large_blurb { font-size: 32px; } +div.xx_large_blurb_center { + font-size: 80px; + text-align: center; +} + div.q_mark { text-align: center; margin-left: 250px; @@ -88,6 +102,17 @@ font-size: 18px; width: 640px; } +div.bit_larger, div.bit_larger code, div.bit_larger_output { + background: #ccc; + font-size: 20px; + width: 100%; +} +div.bit_larger, div.bit_larger_output { + margin-left: 20px; + margin-right: 20px; + width: 100%; +} + div.code_small { background: #ccc; } @@ -107,5 +132,22 @@ } div.code_large code, div.code_large pre { font-size: 24px; +} + +div.event, div.event-date, div.event-presenter { + text-align: center; + font-size: 32pt; +} + +div.pres-url-small { + text-align: center; + font-size: 24pt; +} + +img.spaced { + margin-right: 25px; + margin-left: 25px; + margin-top: 25px; + margin-bottom: 25px; } </style> http://cvs.php.net/co.php/presentations/wereldveroverend-oscom4.xml?r=1.1&p=1 Index: presentations/wereldveroverend-oscom4.xml +++ presentations/wereldveroverend-oscom4.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Localization and Internationalization</topic> <title>Multi-lingual development</title> <event>php|works</event> <location>Toronto, Canada</location> <date>September 22th, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/wereldveroverend-phpworks04</url> <slide>slides/i18nl10n/title.xml</slide> <!-- CHARSETS --> <!--<slide>slides/i18nl10n/what-languages.xml</slide>--> <!-- what is the problem actually? --> <slide>slides/i18nl10n/not-ascii.xml</slide> <!-- not everything is ascii --> <slide>slides/i18nl10n/latin.xml</slide> <!-- latin charsets --> <slide>slides/i18nl10n/convert.xml</slide> <!-- converting charsets (single byte) --> <slide>slides/i18nl10n/asian.xml</slide> <!-- asian charsets --> <slide>slides/i18nl10n/unicode.xml</slide> <!-- unicode and ucs2, ucs4 --> <slide>slides/i18nl10n/utf8.xml</slide> <!-- what does utf8 solve? --> <slide>slides/i18nl10n/utf8-encoding.xml</slide> <!-- how does the encoding work? --> <!-- PROBLEMS and SOLUTIONS --> <slide>slides/i18nl10n/mb-problems.xml</slide> <!-- functions with utf8 chars --> <slide>slides/i18nl10n/iconv-solved.xml</slide> <!-- fixed with iconv --> <slide>slides/i18nl10n/iconv-strpos.xml</slide> <!-- iconv* and other functions --> <slide>slides/i18nl10n/pcre-utf8.xml</slide> <!-- regular expressions, /u, mb_regexp */ --> <!-- CONVERSION and OUTPUT --> <slide>slides/i18nl10n/iconv.xml</slide> <!-- iconv --> <slide>slides/i18nl10n/iconv-function.xml</slide> <!-- converting charsets with iconv --> <slide>slides/i18nl10n/iconv-ob-buffer.xml</slide> <!-- iconv ob_buffer --> <slide>slides/i18nl10n/iconv-ob-buffer-multiple.xml</slide> <!-- multiple charsets and iconv conversion --> <slide>slides/i18nl10n/wrong-http-header.xml</slide> <!-- show problem with wrong http header --> <slide>slides/i18nl10n/correct-http-header.xml</slide> <!-- setting http header --> <slide>slides/i18nl10n/</slide> <!-- transliteration to html --> <slide>slides/i18nl10n/</slide> <!-- eZ transliteration ? --> <!-- LOCALE ISSUES --> <slide>slides/i18nl10n/</slide> <!-- string collation (ordering) --> <slide>slides/i18nl10n/</slide> <!-- strupper/strlower --> <slide>slides/i18nl10n/</slide> <!-- formatting a date --> <slide>slides/i18nl10n/</slide> <!-- formatting numbers (also arabic numbers?) --> <slide>slides/i18nl10n/</slide> <!-- formatting money --> <!-- TRANSLATIONS IN WEBSITES --> <slide>slides/i18nl10n/</slide> <!-- with define --> <slide>slides/i18nl10n/</slide> <!-- with gettext --> <slide>slides/i18nl10n/</slide> <!-- xml based definition --> <slide>slides/i18nl10n/</slide> <!-- lupdate --> <slide>slides/i18nl10n/</slide> <!-- Qt Linguist --> <slide>slides/i18nl10n/</slide> <!-- using the XML translations --> <!-- EXIT --> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/co.php/presentations/slides/i18nl10n/asian.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/asian.xml +++ presentations/slides/i18nl10n/asian.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Asian Character Sets</title> <subtitle>äºå</subtitle> <list> <bullet>They need more than 256 positions</bullet> <bullet>Multi-byte</bullet> <bullet>One character is often one word</bullet> <bullet>Problems with NULL characters and special characters</bullet> <bullet>addslashes() mis-recognises chinese-big5 words like "0xA5 0x5C" (%Â¥\,% å, E5 8A 9F)</bullet> </list> <break lines="3"/> <blurb class="xx_large_blurb_center"><![CDATA[ä¼²åå æ´å½]]></blurb> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/convert.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/convert.xml +++ presentations/slides/i18nl10n/convert.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Conversion Between ISO-8859 Character Sets</title> <list> <bullet>Each set has only 256 positions</bullet> <bullet>Impossible to convert everything</bullet> <bullet>Conversion will result in broken text</bullet> <bullet>http://www.eki.ee/letter/</bullet> </list> <break /> <example class="bit_larger"><![CDATA[ ISO 8859-1 ISO-8859-2 Hex Char Hex Char Description E0 à -- - LATIN SMALL LETTER A WITH GRAVE E1 á E1 á LATIN SMALL LETTER A WITH ACUTE E2 â E2 â LATIN SMALL LETTER A WITH CIRCUMFLEX E3 ã -- - LATIN SMALL LETTER A WITH TILDE E4 ä E4 ä LATIN SMALL LETTER A WITH DIAERESIS E5 Ã¥ -- - LATIN SMALL LETTER A WITH RING ABOVE E6 æ -- - LATIN SMALL LETTER AE E7 ç E7 ç LATIN SMALL LETTER C WITH CEDILLA E8 è -- - LATIN SMALL LETTER E WITH GRAVE E9 é E9 é LATIN SMALL LETTER E WITH ACUTE EA ê -- - LATIN SMALL LETTER E WITH CIRCUMFLEX EB ë EB ë LATIN SMALL LETTER E WITH DIAERESIS EC ì -- - LATIN SMALL LETTER I WITH GRAVE ED à ED à LATIN SMALL LETTER I WITH ACUTE EE î EE î LATIN SMALL LETTER I WITH CIRCUMFLEX EF ï -- - LATIN SMALL LETTER I WITH DIAERESIS ]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/correct-http-header.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/correct-http-header.xml +++ presentations/slides/i18nl10n/correct-http-header.xml <?xml version="1.0" encoding="UTF8"?> <slide fontsize="6em"> <title>Setting a Content-Type header</title> <example class="bit_larger"><![CDATA[<?php header("Content-Type: text/html; charset=iso-8859-1"); ?> Vær sÃ¥ god]]></example> <break lines="5"/> <blurb>Very easy to do, and the result is much better:</blurb> <image class="spaced" filename="correct-http-header.png"/> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-function.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-function.xml +++ presentations/slides/i18nl10n/iconv-function.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>Converting Character Sets</title> <blurb>iconv():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; echo iconv('iso-8859-1', 'utf8', $str); ?>]]></example> <break lines="2"/> <blurb>iconv():</blurb> <example class="bit_larger"><![CDATA[<?php $str = "© 2004, by Derick Rethans"; echo iconv('iso-8859-1', 'iso-8859-2', $str); ?>]]></example> <blurb>output:</blurb> <example class="bit_larger_output">Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/httpd/pres2/display.php(461) : eval()'d code on line 3</example> <break lines="2"/> <blurb>iconv():</blurb> <example class="bit_larger"><![CDATA[<?php $str = "© 2004, by Derick Rethans"; echo iconv('iso-8859-1', 'iso-8859-2//ignore', $str); ?>]]></example> <blurb>output:</blurb> <example class="bit_larger_output">Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/httpd/pres2/display.php(461) : eval()'d code on line 3 2004, by Derick Rethans</example> </slide> <!-- vim: encoding=latin1 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-ob-buffer-multiple.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-ob-buffer-multiple.xml +++ presentations/slides/i18nl10n/iconv-ob-buffer-multiple.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>Conversions with Multiple Character Sets</title> <blurb>ob_iconv_handler():</blurb> <example class="bit_larger"><![CDATA[<?php // Output text as-is echo 'Nittenhundreogåttiåtte', "<br/>\n"; // Set the output and internal encodings iconv_set_encoding("output_encoding", "utf-8"); iconv_set_encoding("internal_encoding", "iso-8859-1"); // Start the output buffer handler and echo the string again ob_start("ob_iconv_handler"); echo 'Nittenhundreogåttiåtte', "<br/>\n"; ob_end_flush(); // Change the internal encoding iconv_set_encoding("internal_encoding", "iso-8859-2"); // Start the output buffer handler and echo the string again ob_start("ob_iconv_handler"); echo 'Nittenhundreogåttiåtte', "<br/>\n"; ob_end_flush(); ?>]]></example> <blurb>output:</blurb> <example class="bit_larger_output"><![CDATA[Nittenhundreogåttiåtte NittenhundreogÃ¥ttiÃ¥tte Nittenhundreogĺttiĺtte]]></example> </slide> <!-- vim: encoding=latin1 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-ob-buffer.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-ob-buffer.xml +++ presentations/slides/i18nl10n/iconv-ob-buffer.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>Automatic Conversions</title> <subtitle>Iconv and Output Buffers</subtitle> <blurb>ob_iconv_handler():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php // Output text as-is echo 'Nittenhundreogåttiåtte', "<br/>\n"; // Set the internal and output encodings iconv_set_encoding("internal_encoding", "iso-8859-1"); iconv_set_encoding("output_encoding", "utf-8"); // Start the output buffer handler and echo the string again ob_start("ob_iconv_handler"); echo 'Nittenhundreogåttiåtte', "<br/>\n"; // Flush and stop the output buffer handler ob_end_flush(); ?>]]></example> </slide> <!-- vim: encoding=latin1 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-solved.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-solved.xml +++ presentations/slides/i18nl10n/iconv-solved.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Iconv Functions</title> <blurb>iconv_strlen():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo "The string has length: ", iconv_strlen($str, 'utf8'); ?>]]></example> <break lines="4"/> <blurb>iconv_substr():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php iconv_set_encoding('internal_encoding', 'utf8'); $str = "Vær sÃ¥ god!"; echo "The first 7 characters are: ", iconv_substr($str, 0, 7); ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv-strpos.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv-strpos.xml +++ presentations/slides/i18nl10n/iconv-strpos.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Iconv Functions</title> <subtitle>iconv_strpos() and iconv_strrpos()</subtitle> <blurb>iconv_strpos():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php iconv_set_encoding('internal_encoding', 'utf8'); $str = "Vær sÃ¥ god!"; echo "The o is at position: ", strpos($str, 'o'), "<br />\n"; echo "The o is at position: ", iconv_strpos($str, 'o'), "\n"; ?>]]></example> <break lines="4"/> <blurb>iconv_strrpos():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php iconv_set_encoding('internal_encoding', 'utf8'); $str = "Vær sÃ¥ god!"; echo "The Ã¥ is at position: ", strrpos($str, 'Ã¥'), "<br />\n"; echo "The Ã¥ is at position: ", iconv_strrpos($str, 'Ã¥'), "\n"; ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/iconv.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/iconv.xml +++ presentations/slides/i18nl10n/iconv.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Iconv</title> <subtitle>Character Set Conversions</subtitle> <list> <bullet>Is part of glibc</bullet> <bullet>BSD requires an external library</bullet> <bullet>Enabled by default in PHP 5</bullet> <bullet>Supports 100s of character sets:</bullet> </list> <blurb>DOS, ISO-8859, MAC, EBCDIC, UTF*, IBM, OSF...</blurb> <break/> <blurb class="x_small_blurb"> 437, 500, 500V1, 850, 851, 852, 855, 856, 857, 860, 861, 862, 863, 864, 865, 866, 866NAV, 869, 874, 904, 1026, 1046, 1047, 8859_1, 8859_2, 8859_3, 8859_4, 8859_5, 8859_6, 8859_7, 8859_8, 8859_9, 10646-1:1993, 10646-1:1993/UCS4/ ANSI_X3.4-1968, ANSI_X3.4-1986, ANSI_X3.4, ANSI_X3.110-1983, ANSI_X3.110, ARABIC, ARABIC7, ARMSCII-8, ASCII, ASMO-708, ASMO_449, BALTIC, BIG-5, BIG-FIVE, BIG5-HKSCS, BIG5, BIG5HKSCS, BIGFIVE, BS_4730, CA, CN-BIG5, CN-GB, CN, CP-AR, CP-GR, CP-HU, CP037, CP038, CP273, CP274, CP275, CP278, CP280, CP281, CP282, CP284, CP285, CP290, CP297, CP367, CP420, CP423, CP424, CP437, CP500, CP737, CP775, CP813, CP819, CP850, CP851, CP852, CP855, CP856, CP857, CP860, CP861, CP862, CP863, CP864, CP865, CP866, CP866NAV, CP868, CP869, CP870, CP871, CP874, CP875, CP880, CP891, CP903, CP904, CP905, CP912, CP915, CP916, CP918, CP920, CP922, CP930, CP932, CP933, CP935, CP936, CP937, CP939, CP949, CP950, CP1004, CP1026, CP1046, CP1047, CP1070, CP1079, CP1081, CP1084, CP1089, CP1124, CP1125, CP1129, CP1132, CP1133, CP1160, CP1161, CP1162, CP1163, CP1164, CP1250, CP1251, CP1252, CP1253, CP1254, CP1255, CP1256, CP1257, CP1258, CP1361, CP10007, CPIBM861, CSA7-1, CSA7-2, CSASCII, CSA_T500-1983, CSA_T500, CSA_Z243.4-1985-1, CSA_Z243.4-1985-2, CSA_Z243.419851, CSA_Z243.419852, CSDECMCS, CSEBCDICATDE, CSEBCDICATDEA, CSEBCDICCAFR, CSEBCDICDKNO, CSEBCDICDKNOA, CSEBCDICES, CSEBCDICESA, CSEBCDICESS, CSEBCDICFISE, CSEBCDICFISEA, CSEBCDICFR, CSEBCDICIT, CSEBCDICPT, CSEBCDICUK, CSEBCDICUS, CSEUCKR, CSEUCPKDFMTJAPANESE, CSGB2312, CSHPROMAN8, CSIBM037, CSIBM038, CSIBM273, CSIBM274, CSIBM275, CSIBM277, CSIBM278, CSIBM280, CSIBM281, CSIBM284, CSIBM285, CSIBM290, CSIBM297, CSIBM420, CSIBM423, CSIBM424, CSIBM500, CSIBM851, CSIBM855, CSIBM856, CSIBM857, CSIBM860, CSIBM863, CSIBM864, CSIBM865, CSIBM866, CSIBM868, CSIBM869, CSIBM870, CSIBM871, CSIBM880, CSIBM891, CSIBM903, CSIBM904, CSIBM905, CSIBM918, CSIBM922, CSIBM930, CSIBM932, CSIBM933, CSIBM935, CSIBM937, CSIBM939, CSIBM943, CSIBM1026, CSIBM1124, CSIBM1129, CSIBM1132, CSIBM1133, CSIBM1160, CSIBM1161, CSIBM1163, CSIBM1164, CSIBM11621162, CSISO4UNITEDKINGDOM, CSISO10SWEDISH, CSISO11SWEDISHFORNAMES, CSISO14JISC6220RO, CSISO15ITALIAN, CSISO16PORTUGESE, CSISO17SPANISH, CSISO18GREEK7OLD, CSISO19LATINGREEK, CSISO21GERMAN, CSISO25FRENCH, CSISO27LATINGREEK1, CSISO49INIS, CSISO50INIS8, CSISO51INISCYRILLIC, CSISO58GB1988, CSISO60DANISHNORWEGIAN, CSISO60NORWEGIAN1, CSISO61NORWEGIAN2, CSISO69FRENCH, CSISO84PORTUGUESE2, CSISO85SPANISH2, CSISO86HUNGARIAN, CSISO88GREEK7, CSISO89ASMO449, CSISO90, CSISO92JISC62991984B, CSISO99NAPLPS, CSISO103T618BIT, CSISO111ECMACYRILLIC, CSISO121CANADIAN1, CSISO122CANADIAN2, CSISO139CSN369103, CSISO141JUSIB1002, CSISO143IECP271, CSISO150, CSISO150GREEKCCITT, CSISO151CUBA, CSISO153GOST1976874, CSISO646DANISH, CSISO2022CN, CSISO2022JP, CSISO2022JP2, CSISO2022KR, CSISO2033, CSISO5427CYRILLIC, CSISO5427CYRILLIC1981, CSISO5428GREEK, CSISO10367BOX, CSISOLATIN1, CSISOLATIN2, CSISOLATIN3, CSISOLATIN4, CSISOLATIN5, CSISOLATIN6, CSISOLATINARABIC, CSISOLATINCYRILLIC, CSISOLATINGREEK, CSISOLATINHEBREW, CSKOI8R, CSKSC5636, CSMACINTOSH, CSNATSDANO, CSNATSSEFI, CSN_369103, CSPC8CODEPAGE437, CSPC775BALTIC, CSPC850MULTILINGUAL, CSPC862LATINHEBREW, CSPCP852, CSSHIFTJIS, CSUCS4, CSUNICODE, CSWINDOWS31J, CUBA, CWI-2, CWI, CYRILLIC, DE, DEC-MCS, DEC, DECMCS, DIN_66003, DK, DS2089, DS_2089, E13B/ EBCDIC-AT-DE-A, EBCDIC-AT-DE, EBCDIC-BE, EBCDIC-BR, EBCDIC-CA-FR, EBCDIC-CP-AR1, EBCDIC-CP-AR2, EBCDIC-CP-BE, EBCDIC-CP-CA, EBCDIC-CP-CH, EBCDIC-CP-DK, EBCDIC-CP-ES, EBCDIC-CP-FI, EBCDIC-CP-FR, EBCDIC-CP-GB, EBCDIC-CP-GR, EBCDIC-CP-HE, EBCDIC-CP-IS, EBCDIC-CP-IT, EBCDIC-CP-NL, EBCDIC-CP-NO, EBCDIC-CP-ROECE, EBCDIC-CP-SE, EBCDIC-CP-TR, EBCDIC-CP-US, EBCDIC-CP-WT, EBCDIC-CP-YU, EBCDIC-CYRILLIC, EBCDIC-DK-NO-A, EBCDIC-DK-NO, EBCDIC-ES-A, EBCDIC-ES-S, EBCDIC-ES, EBCDIC-FI-SE-A, EBCDIC-FI-SE, EBCDIC-FR, EBCDIC-GREEK, EBCDIC-INT, EBCDIC-INT1, EBCDIC-IS-FRISS, EBCDIC-IT, EBCDIC-JP-E, EBCDIC-JP-KANA, EBCDIC-PT, EBCDIC-UK, EBCDIC-US, EBCDICATDE, EBCDICATDEA, EBCDICCAFR, EBCDICDKNO, EBCDICDKNOA, EBCDICES, EBCDICESA, EBCDICESS, EBCDICFISE, EBCDICFISEA, EBCDICFR, EBCDICISFRISS, EBCDICIT, EBCDICPT, EBCDICUK, EBCDICUS, ECMA-114, ECMA-118, ECMA-128, ECMA-CYRILLIC, ECMACYRILLIC, ELOT_928, ES, ES2, EUC-CN, EUC-JISX0213, EUC-JP-MS, EUC-JP, EUC-KR, EUC-TW, EUCCN, EUCJP-MS, EUCJP-OPEN, EUCJP-WIN, EUCJP, EUCKR, EUCTW, FI, FR, GB, GB2312, GB13000, GB18030, GBK, GB_1988-80, GB_198880, GEORGIAN-ACADEMY, GEORGIAN-PS, GOST_19768-74, GOST_19768, GOST_1976874, GREEK-CCITT, GREEK, GREEK7-OLD, GREEK7, GREEK7OLD, GREEK8, GREEKCCITT, HEBREW, HP-ROMAN8, HPROMAN8, HU, IBM-856, IBM-922, IBM-930, IBM-932, IBM-933, IBM-935, IBM-937, IBM-939, IBM-943, IBM-1046, IBM-1047, IBM-1124, IBM-1129, IBM-1132, IBM-1133, IBM-1160, IBM-1161, IBM-1162, IBM-1163, IBM-1164, IBM037, IBM038, IBM256, IBM273, IBM274, IBM275, IBM277, IBM278, IBM280, IBM281, IBM284, IBM285, IBM290, IBM297, IBM367, IBM420, IBM423, IBM424, IBM437, IBM500, IBM775, IBM813, IBM819, IBM848, IBM850, IBM851, IBM852, IBM855, IBM856, IBM857, IBM860, IBM861, IBM862, IBM863, IBM864, IBM865, IBM866, IBM866NAV, IBM868, IBM869, IBM870, IBM871, IBM874, IBM875, IBM880, IBM891, IBM903, IBM904, IBM905, IBM912, IBM915, IBM916, IBM918, IBM920, IBM922, IBM930, IBM932, IBM933, IBM935, IBM937, IBM939, IBM943, IBM1004, IBM1026, IBM1046, IBM1047, IBM1089, IBM1124, IBM1129, IBM1132, IBM1133, IBM1160, IBM1161, IBM1162, IBM1163, IBM1164, IEC_P27-1, IEC_P271, INIS-8, INIS-CYRILLIC, INIS, INIS8, INISCYRILLIC, ISIRI-3342, ISIRI3342, ISO-2022-CN-EXT, ISO-2022-CN, ISO-2022-JP-2, ISO-2022-JP-3, ISO-2022-JP, ISO-2022-KR, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, ISO-10646, ISO-10646/UCS2/ ISO-10646/UCS4/ ISO-10646/UTF-8/ ISO-10646/UTF8/ ISO-CELTIC, ISO-IR-4, ISO-IR-6, ISO-IR-8-1, ISO-IR-9-1, ISO-IR-10, ISO-IR-11, ISO-IR-14, ISO-IR-15, ISO-IR-16, ISO-IR-17, ISO-IR-18, ISO-IR-19, ISO-IR-21, ISO-IR-25, ISO-IR-27, ISO-IR-37, ISO-IR-49, ISO-IR-50, ISO-IR-51, ISO-IR-54, ISO-IR-55, ISO-IR-57, ISO-IR-60, ISO-IR-61, ISO-IR-69, ISO-IR-84, ISO-IR-85, ISO-IR-86, ISO-IR-88, ISO-IR-89, ISO-IR-90, ISO-IR-92, ISO-IR-98, ISO-IR-99, ISO-IR-100, ISO-IR-101, ISO-IR-103, ISO-IR-109, ISO-IR-110, ISO-IR-111, ISO-IR-121, ISO-IR-122, ISO-IR-126, ISO-IR-127, ISO-IR-138, ISO-IR-139, ISO-IR-141, ISO-IR-143, ISO-IR-144, ISO-IR-148, ISO-IR-150, ISO-IR-151, ISO-IR-153, ISO-IR-155, ISO-IR-156, ISO-IR-157, ISO-IR-166, ISO-IR-179, ISO-IR-193, ISO-IR-197, ISO-IR-199, ISO-IR-203, ISO-IR-209, ISO-IR-226, ISO646-CA, ISO646-CA2, ISO646-CN, ISO646-CU, ISO646-DE, ISO646-DK, ISO646-ES, ISO646-ES2, ISO646-FI, ISO646-FR, ISO646-FR1, ISO646-GB, ISO646-HU, ISO646-IT, ISO646-JP-OCR-B, ISO646-JP, ISO646-KR, ISO646-NO, ISO646-NO2, ISO646-PT, ISO646-PT2, ISO646-SE, ISO646-SE2, ISO646-US, ISO646-YU, ISO2022CN, ISO2022CNEXT, ISO2022JP, ISO2022JP2, ISO2022KR, ISO6937, ISO8859-1, ISO8859-2, ISO8859-3, ISO8859-4, ISO8859-5, ISO8859-6, ISO8859-7, ISO8859-8, ISO8859-9, ISO8859-10, ISO8859-11, ISO8859-13, ISO8859-14, ISO8859-15, ISO8859-16, ISO88591, ISO88592, ISO88593, ISO88594, ISO88595, ISO88596, ISO88597, ISO88598, ISO88599, ISO885910, ISO885911, ISO885913, ISO885914, ISO885915, ISO885916, ISO_646.IRV:1991, ISO_2033-1983, ISO_2033, ISO_5427-EXT, ISO_5427, ISO_5427:1981, ISO_5427EXT, ISO_5428, ISO_5428:1980, ISO_6937-2, ISO_6937-2:1983, ISO_6937, ISO_6937:1992, ISO_8859-1, ISO_8859-1:1987, ISO_8859-2, ISO_8859-2:1987, ISO_8859-3, ISO_8859-3:1988, ISO_8859-4, ISO_8859-4:1988, ISO_8859-5, ISO_8859-5:1988, ISO_8859-6, ISO_8859-6:1987, ISO_8859-7, ISO_8859-7:1987, ISO_8859-8, ISO_8859-8:1988, ISO_8859-9, ISO_8859-9:1989, ISO_8859-10, ISO_8859-10:1992, ISO_8859-14, ISO_8859-14:1998, ISO_8859-15, ISO_8859-15:1998, ISO_8859-16, ISO_8859-16:2001, ISO_9036, ISO_10367-BOX, ISO_10367BOX, ISO_69372, IT, JIS_C6220-1969-RO, JIS_C6229-1984-B, JIS_C62201969RO, JIS_C62291984B, JOHAB, JP-OCR-B, JP, JS, JUS_I.B1.002, KOI-7, KOI-8, KOI8-R, KOI8-T, KOI8-U, KOI8, KOI8R, KOI8U, KSC5636, L1, L2, L3, L4, L5, L6, L7, L8, L10, LATIN-9, LATIN-GREEK-1, LATIN-GREEK, LATIN1, LATIN2, LATIN3, LATIN4, LATIN5, LATIN6, LATIN7, LATIN8, LATIN10, LATINGREEK, LATINGREEK1, MAC-CYRILLIC, MAC-IS, MAC-SAMI, MAC-UK, MAC, MACCYRILLIC, MACINTOSH, MACIS, MACUK, MACUKRAINIAN, MS-ANSI, MS-ARAB, MS-CYRL, MS-EE, MS-GREEK, MS-HEBR, MS-MAC-CYRILLIC, MS-TURK, MS932, MS936, MSCP949, MSCP1361, MSMACCYRILLIC, MSZ_7795.3, MS_KANJI, NAPLPS, NATS-DANO, NATS-SEFI, NATSDANO, NATSSEFI, NC_NC0010, NC_NC00-10, NC_NC00-10:81, NF_Z_62-010, NF_Z_62-010_(1973), NF_Z_62-010_1973, NF_Z_62010, NF_Z_62010_1973, NO, NO2, NS_4551-1, NS_4551-2, NS_45511, NS_45512, OS2LATIN1, OSF00010001, OSF00010002, OSF00010003, OSF00010004, OSF00010005, OSF00010006, OSF00010007, OSF00010008, OSF00010009, OSF0001000A, OSF00010020, OSF00010100, OSF00010101, OSF00010102, OSF00010104, OSF00010105, OSF00010106, OSF00030010, OSF0004000A, OSF0005000A, OSF05010001, OSF100201A4, OSF100201A8, OSF100201B5, OSF100201F4, OSF100203B5, OSF1002011C, OSF1002011D, OSF1002035D, OSF1002035E, OSF1002035F, OSF1002036B, OSF1002037B, OSF10010001, OSF10020025, OSF10020111, OSF10020115, OSF10020116, OSF10020118, OSF10020122, OSF10020129, OSF10020352, OSF10020354, OSF10020357, OSF10020359, OSF10020360, OSF10020364, OSF10020365, OSF10020366, OSF10020367, OSF10020370, OSF10020387, OSF10020388, OSF10020396, OSF10020402, OSF10020417, PT, PT2, R8, ROMAN8, RUSCII, SE, SE2, SEN_850200_B, SEN_850200_C, SHIFT-JIS, SHIFT_JIS, SHIFT_JISX0213, SJIS-OPEN, SJIS-WIN, SJIS, SS636127, ST_SEV_358-88, T.61-8BIT, T.61, T.618BIT, TCVN-5712, TCVN, TCVN5712-1, TCVN5712-1:1993, TIS-620, TIS620-0, TIS620.2529-1, TIS620.2533-0, TIS620, TS-5881, TSCII, UCS-2, UCS-2BE, UCS-2LE, UCS-4, UCS-4BE, UCS-4LE, UCS2, UCS4, UHC, UJIS, UK, UNICODE, UNICODEBIG, UNICODELITTLE, US-ASCII, US, UTF-7, UTF-8, UTF-16, UTF-16BE, UTF-16LE, UTF-32, UTF-32BE, UTF-32LE, UTF7, UTF8, UTF16, UTF16BE, UTF16LE, UTF32, UTF32BE, UTF32LE, VISCII, WCHAR_T, WIN-SAMI-2, WINBALTRIM, WINDOWS-31J, WINDOWS-936, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1253, WINDOWS-1254, WINDOWS-1255, WINDOWS-1256, WINDOWS-1257, WINDOWS-1258, WINSAMI2, WS2, YU </blurb> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/latin.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/latin.xml +++ presentations/slides/i18nl10n/latin.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>ISO-8859 and Latin Character Sets</title> <list> <bullet>ISO-8859: Group of often used character sets</bullet> <bullet>latin-X: Group of character sets based on the "latin" set</bullet> <bullet>Contains most of European's characters</bullet> <bullet>Adds 96 characters to ASCII (A0 - FF)</bullet> </list> <break /> <example class="bit_larger"><![CDATA[ ISO 8859 Latin Usage Example 1 1 West European languages é ë ç Ã¥ 2 2 Central and East European languages Å¡ Ä Å 3 3 Southeast European and miscellaneous languages 4 4 Scandinavian/Baltic languages 5 Latin/Cyrillic РРРд 6 Latin/Arabic Ù ï» ïº]]></example> <example class="bit_larger"><![CDATA[ 7 Latin/Greek α ζ Ï Ï 8 Latin/Hebrew × × ×¦ ×]]></example> <example class="bit_larger"><![CDATA[ 9 5 Latin-1 modification for Turkish ŠŠİ ÿ 10 6 Lappish/Nordic/Eskimo languages 11 Latin/Thai ภภภฬ 13 7 Baltic Rim languages 14 8 Celtic 15 9 West European languages ⬠16 10 Romanian Ä Ä È Ä]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/mb-problems.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/mb-problems.xml +++ presentations/slides/i18nl10n/mb-problems.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Problems with Multi-byte Characters</title> <blurb>strlen() no longer "works":</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo "The string has length: ", strlen($str); ?>]]></example> <break lines="2"/> <blurb>substr() may mangle text:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo "The first 7 characters are: ", substr($str, 0, 7); ?>]]></example> <break lines="2"/> <blurb>wordwrap() wraps too early:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "Vær sÃ¥ god!"; echo wordwrap($str, 6, '|'); ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/not-ascii.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/not-ascii.xml +++ presentations/slides/i18nl10n/not-ascii.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Not Everything is ASCII</title> <break lines="3"/> <image class="spaced" align="right" filename="ascii-table.png"/> <break lines="2"/> <list> <bullet>ASCII is a 7 bit character set</bullet> <bullet>ASCII is old (published in 1968)</bullet> <bullet effect="hide">Only English does not require accented characters.</bullet> <bullet effect="hide">There are more languages than English :)</bullet> <bullet effect="hide">This means that it is no longer adequate</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/pcre-utf8.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/pcre-utf8.xml +++ presentations/slides/i18nl10n/pcre-utf8.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Regular Expressions and UTF8</title> <blurb>preg_match():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; if (preg_match('@,(.{6}),@', $str, $result)) { echo 'We matched: ', $result[1], "<br/>\n"; } else { echo 'There was no match!', "<br/>\n"; } ?>]]></example> <break lines="4"/> <blurb>preg_match() in UTF8 mode:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; if (preg_match('@,(.{6}),@u', $str, $result)) { echo 'We matched: ', $result[1], "<br/>\n"; } else { echo 'There was no match!', "<br/>\n"; } ?>]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/resources.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/resources.xml +++ presentations/slides/i18nl10n/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="3.5em"> <title>Resources</title> <image align="center" filename="multi-langual-development-trans.png" /> <break lines="4"/> <link fontsize="2.4em" marginleft="0em" leader="This presentation: " href="http://pres.derickrethans.nl/wereldveroverend-phpworks04" target="_new"/> <link fontsize="3em" marginleft="0em" leader="Questions?: " href="derick@php.net" target="_new"/> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/title.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/title.xml +++ presentations/slides/i18nl10n/title.xml <slide fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="multi-langual-development-trans.png" /> <break lines="3"/> <blurb class="event">php|Ïorks</blurb> <break/> <blurb class="event-date">September 22th, 2004. Toronto, Canada</blurb> <break/> <blurb class="event-presenter">Derick Rethans &lt;<a href="mailto:derick@php.net">derick@php.net</a>&gt;</blurb> <break/> <blurb class="pres-url-small"><a href="http://pres.derickrethans.nl/wereldveroverend-phpworks04">http://pres.derickrethans.nl/wereldveroverend-phpworks04</a></blurb> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/unicode.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/unicode.xml +++ presentations/slides/i18nl10n/unicode.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Unicode and ISO-10646 (UCS)</title> <list> <bullet>UCS uses 31 bits for character storage</bullet> <bullet>Contains all known characters and symbols</bullet> <bullet>First 128 bytes are the same as ASCII</bullet> <bullet>First 256 bytes are the same as ISO-8859-1</bullet> <bullet>Unicode 3.0 describes the BMP (16 bits)</bullet> <bullet>Unicode 3.1 describes other planes (21 bits)</bullet> <bullet>Characters are ordered in language/script blocks: Basic latin, Cyrillic, Hebrew, Arabic, Gujarati, Runic, CJK etc.</bullet> <bullet>Encoding in numerous encodings: UCS-2, UCS-4, UTF8, UTF16 etc.</bullet> </list> <break lines="2"/> <blurb class="xx_large_blurb_center">A Ð × Ø« ઠ᪠åª</blurb> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/utf8-encoding.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/utf8-encoding.xml +++ presentations/slides/i18nl10n/utf8-encoding.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>UTF8 Encoding</title> <blurb>Characters in the ASCII range are stored "as-is"</blurb> <break /> <blurb>Characters in the range 0x0080 to 0x07ff:</blurb> <example class="bit_larger"><![CDATA[byte 1: 110x xxxx byte 2: 10xx xxxx ë (0x00eb) 110x xxxx 10xx xxxx 1110 1011 -> ---+ ++11 --10 1011 ==================== 1100 0011 1010 1011 0xc3 0xab]]></example> <break /> <blurb>Characters in the range 0x8000 to 0xffff:</blurb> <example class="bit_larger"><![CDATA[byte 1: 1110 xxxx byte 2: 10xx xxxx byte 3: 10xx xxxx å (0x529f) 110x xxxx 10xx xxxx 10xx xxxx 0101 0010 1001 1111 -> ---+ 0101 --00 1010 --01 1111 =============================== 1100 0101 1000 1010 1001 1111 0xe5 0x8a 0x9f]]></example> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/utf8.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/utf8.xml +++ presentations/slides/i18nl10n/utf8.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>UTF8</title> <subtitle>Encoding of UCS characters</subtitle> <list> <bullet>All UCS characters > 0x7f (127) are stored as multi-byte characters >= 0x80</bullet> <bullet>No problems with control characters</bullet> <bullet>The first byte of a multi-byte character is always in the range 0xc0 - 0xfd and describes how long this byte-sequence is.</bullet> <bullet>European languages usually use up to two bytes per character</bullet> <bullet>Characters of other languages usually use up to three bytes per character</bullet> <bullet>The longest UTF8 encoded character is 6 bytes</bullet> </list> </slide> <!-- vim: encoding=utf8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/wrong-http-header.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/wrong-http-header.xml +++ presentations/slides/i18nl10n/wrong-http-header.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>HTTP and Browser Problems</title> <list> <bullet>Most sites don't set any Content-Type header</bullet> <bullet>Browsers and/or digital environments will move more and more to UTF8 as default encoding</bullet> </list> <blurb>Result:</blurb> <image class="spaced" filename="wrong-http-header.png"/> </slide>