cvs: presentations / wereldveroverend-hungary.xml /slides/i18nl10n correct-http-header.xml funny-characters.xml pcre-utf8.xml resources.xml
title-hungary.xml unicode.xml utf16.xml utf8-encoding.xml utf8.xml
| From: | Derick Rethans | Date: | Wed, 23 Feb 2005 16:04:01 +0000 |
| Subject: | cvs: presentations / wereldveroverend-hungary.xml /slides/i18nl10n correct-http-header.xml funny-characters.xml pcre-utf8.xml resources.xml title-hungary.xml unicode.xml utf16.xml utf8-encoding.xml utf8.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1092@lists.php.net to get a copy of this message | ||
derick Wed Feb 23 11:04:01 2005 EDT
Added files:
/presentations wereldveroverend-hungary.xml
/presentations/slides/i18nl10n title-hungary.xml utf16.xml
Modified files:
/presentations/slides/i18nl10n correct-http-header.xml
funny-characters.xml pcre-utf8.xml
resources.xml unicode.xml
utf8-encoding.xml utf8.xml
Log:
- Update Worlddomination Talk.
http://cvs.php.net/diff.php/presentations/slides/i18nl10n/correct-http-header.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/correct-http-header.xml diff -u presentations/slides/i18nl10n/correct-http-header.xml:1.2 presentations/slides/i18nl10n/correct-http-header.xml:1.3 --- presentations/slides/i18nl10n/correct-http-header.xml:1.2 Thu Sep 23 16:35:32 2004 +++ presentations/slides/i18nl10n/correct-http-header.xml Wed Feb 23 11:04:01 2005 @@ -3,7 +3,7 @@ <title>Setting a Content-Type header</title> <example class="bit_larger"><![CDATA[<?php - header("Content-Type: text/html; charset=iso-8859-1"); + header("Content-Type: text/html; charset=utf-8"); ?> Vær sÃ¥ god]]></example> <break/> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/funny-characters.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/funny-characters.xml diff -u presentations/slides/i18nl10n/funny-characters.xml:1.1 presentations/slides/i18nl10n/funny-characters.xml:1.2 --- presentations/slides/i18nl10n/funny-characters.xml:1.1 Thu Nov 11 11:33:04 2004 +++ presentations/slides/i18nl10n/funny-characters.xml Wed Feb 23 11:04:01 2005 @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="iso-8859-1"?> +<?xml version="1.0" encoding="utf8"?> <slide fontsize="6em"> <title>Transliteration</title> <subtitle>"Funny Characters"</subtitle> @@ -6,17 +6,17 @@ <image align="center" filename="funny-characters.png" /> <break lines="2"/> - <blurb>What we do now:</blurb> - <example class="bit_larger" result="0"><![CDATA["Håtveit på 8. plass" to "h_tveit_p_8_plass"]]></example> + <blurb>What we did first:</blurb> + <example class="bit_larger" result="0"><![CDATA["HÃ¥tveit pÃ¥ 8. plass" to "h_tveit_p_8_plass"]]></example> <break lines="2"/> - <blurb>What we want to do:</blurb> - <example class="bit_larger" result="0"><![CDATA["Håtveit på 8. plass" to "haatveit_paa_8_plass"]]></example> + <blurb>What we do now:</blurb> + <example class="bit_larger" result="0"><![CDATA["HÃ¥tveit pÃ¥ 8. plass" to "haatveit_paa_8_plass"]]></example> <break lines="2"/> <blurb>How we do this:</blurb> <example class="bit_larger" encoding="latin1" result="0"><![CDATA[<?php -$string = iconv("latin1", "ucs-2", "Håtveit på 8. plass"); +$string = iconv("latin1", "ucs-2", "HÃ¥tveit pÃ¥ 8. plass"); $res = transliterate($string, array('normalize_ligature', 'lowercase_latin', 'space_to_underscores')); echo iconv('ucs-2', 'latin1', $res); http://cvs.php.net/diff.php/presentations/slides/i18nl10n/pcre-utf8.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/pcre-utf8.xml diff -u presentations/slides/i18nl10n/pcre-utf8.xml:1.2 presentations/slides/i18nl10n/pcre-utf8.xml:1.3 --- presentations/slides/i18nl10n/pcre-utf8.xml:1.2 Mon Sep 13 09:41:18 2004 +++ presentations/slides/i18nl10n/pcre-utf8.xml Wed Feb 23 11:04:01 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> - <title>Regular Expressions and UTF8</title> + <title>Regular Expressions and UTF-8</title> <blurb>preg_match():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php @@ -15,7 +15,7 @@ <break lines="4"/> <div effect="hide"> - <blurb>preg_match() in UTF8 mode:</blurb> + <blurb>preg_match() in UTF-8 mode:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; if (preg_match('@,(.{6}),@u', $str, $result)) { http://cvs.php.net/diff.php/presentations/slides/i18nl10n/resources.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/resources.xml diff -u presentations/slides/i18nl10n/resources.xml:1.1 presentations/slides/i18nl10n/resources.xml:1.2 --- presentations/slides/i18nl10n/resources.xml:1.1 Tue Sep 7 02:58:40 2004 +++ presentations/slides/i18nl10n/resources.xml Wed Feb 23 11:04:01 2005 @@ -4,6 +4,6 @@ <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"/> + <link fontsize="2.4em" marginleft="0em" leader="This presentation: " href="http://files.derickrethans.nl/wereldveroverend-hungary.pdf" target="_new"/> + <link fontsize="3em" marginleft="0em" leader="Questions?: " href="dr@ez.no" target="_new"/> </slide> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/unicode.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/unicode.xml diff -u presentations/slides/i18nl10n/unicode.xml:1.1 presentations/slides/i18nl10n/unicode.xml:1.2 --- presentations/slides/i18nl10n/unicode.xml:1.1 Tue Sep 7 02:58:40 2004 +++ presentations/slides/i18nl10n/unicode.xml Wed Feb 23 11:04:01 2005 @@ -7,10 +7,10 @@ <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.0 describes the BMP ~(Basic Multilingual Plane)~ (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> + <bullet>Encoding in numerous encodings: UCS-2, UCS-4, UTF-8, UTF-16 etc.</bullet> </list> <break lines="2"/> <blurb class="xx_large_blurb_center">A Ð × Ø« ઠ᪠åª</blurb> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/utf8-encoding.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/utf8-encoding.xml diff -u presentations/slides/i18nl10n/utf8-encoding.xml:1.2 presentations/slides/i18nl10n/utf8-encoding.xml:1.3 --- presentations/slides/i18nl10n/utf8-encoding.xml:1.2 Mon Sep 13 09:41:18 2004 +++ presentations/slides/i18nl10n/utf8-encoding.xml Wed Feb 23 11:04:01 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> - <title>UTF8 Encoding</title> + <title>UTF-8 Encoding</title> <blurb>Characters in the ASCII range are stored "as-is"</blurb> <break /> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/utf8.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/utf8.xml diff -u presentations/slides/i18nl10n/utf8.xml:1.2 presentations/slides/i18nl10n/utf8.xml:1.3 --- presentations/slides/i18nl10n/utf8.xml:1.2 Wed Sep 22 15:39:38 2004 +++ presentations/slides/i18nl10n/utf8.xml Wed Feb 23 11:04:01 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> - <title>UTF8</title> + <title>UTF-8</title> <subtitle>Encoding of UCS characters</subtitle> <list> @@ -9,7 +9,7 @@ <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 can be 6 bytes, but only 4 bytes are used</bullet> + <bullet>The longest UTF-8 encoded character can be 6 bytes, but only 4 bytes are used</bullet> </list> </slide> <!-- http://cvs.php.net/co.php/presentations/wereldveroverend-hungary.xml?r=1.1&p=1 Index: presentations/wereldveroverend-hungary.xml +++ presentations/wereldveroverend-hungary.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>PHPKonferencia 2005</event> <location>Budapest, Hungary</location> <date>March 12th, 2005</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://files.derickrethans.nl/wereldveroverend-hungary.pdf</url> <slide>slides/i18nl10n/title-hungary.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? --> <slide>slides/i18nl10n/utf16.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-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 --> <!-- TRANSLITERATION --> <slide>slides/i18nl10n/funny-characters.xml</slide> <!-- æ -> ae --> <slide>slides/i18nl10n/cyrillic.xml</slide> <!-- cyrillic --> <slide>slides/i18nl10n/other-transliterations.xml</slide> <!-- chinese, greek, hebrew, korean --> <slide>slides/i18nl10n/normalize.xml</slide> <!-- curly->normal quotes, punctuation, diacritics --> <slide>slides/i18nl10n/other-filters.xml</slide> <!-- currency signs, copyright --> <!-- LOCALE ISSUES --> <slide>slides/i18nl10n/locales.xml</slide> <slide>slides/i18nl10n/locale-collation.xml</slide> <!-- string collation (ordering) --> <slide>slides/i18nl10n/locale-casing.xml</slide> <!-- strupper/strlower --> <slide>slides/i18nl10n/locale-date.xml</slide> <!-- formatting a date --> <slide>slides/i18nl10n/locale-numeric.xml</slide> <!-- formatting numbers (also arabic numbers?) --> <slide>slides/i18nl10n/locale-money.xml</slide> <!-- formatting money --> <slide>slides/i18nl10n/locale-php.xml</slide> <!-- PHP and locales --> <!-- EXIT --> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/co.php/presentations/slides/i18nl10n/title-hungary.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/title-hungary.xml +++ presentations/slides/i18nl10n/title-hungary.xml <slide fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="multi-langual-development-trans.png" /> <break lines="3"/> <blurb class="event">PHPKonferencia 2005</blurb> <break/> <blurb class="event-date">March 12th, 2005. Budapest, Hungary</blurb> <break/> <blurb class="event-presenter">Derick Rethans &lt;<a href="mailto:dr@ez.no">dr@ez.no</a>&gt;</blurb> <break/> <blurb class="pres-url-small"><a href="http://files.derickrethans.nl/wereldveroverend-hungary.pdf">http://files.derickrethans.nl/wereldveroverend-hungary.pdf</a></blurb> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/utf16.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/utf16.xml +++ presentations/slides/i18nl10n/utf16.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>UCS 2 and UTF-16 Encoding</title> <blurb>UCS 2: Only characters in the BMP are stored, they are stored "as-is"</blurb> <break lines="2"/> <blurb>UTF-16: Valid characters in the BMP are stored "as-is"</blurb> <break /> <blurb>Characters outside the BMP (in the range 0x10000 to 0x10ffff):</blurb> <example class="bit_larger"><![CDATA[byte 1 = 1101 10yy yyyy yyyy byte 2 = 1101 11xx xxxx xxxx MUSICAL SYMBOL SIXTEENTH NOTE (0x1d161) 1101 10yy yyyy yyyy 1101 11xx xxxx xxxx ---- --++ +111 0100 ---- --01 0110 0001 ======================================== 1101 1000 0111 0100 1101 1101 0110 0001 0xd8 0x74 0xdd 0x61]]></example> </slide> <!-- vim: encoding=utf8 -->
http://cvs.php.net/diff.php/presentations/slides/i18nl10n/correct-http-header.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/correct-http-header.xml diff -u presentations/slides/i18nl10n/correct-http-header.xml:1.2 presentations/slides/i18nl10n/correct-http-header.xml:1.3 --- presentations/slides/i18nl10n/correct-http-header.xml:1.2 Thu Sep 23 16:35:32 2004 +++ presentations/slides/i18nl10n/correct-http-header.xml Wed Feb 23 11:04:01 2005 @@ -3,7 +3,7 @@ <title>Setting a Content-Type header</title> <example class="bit_larger"><![CDATA[<?php - header("Content-Type: text/html; charset=iso-8859-1"); + header("Content-Type: text/html; charset=utf-8"); ?> Vær sÃ¥ god]]></example> <break/> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/funny-characters.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/funny-characters.xml diff -u presentations/slides/i18nl10n/funny-characters.xml:1.1 presentations/slides/i18nl10n/funny-characters.xml:1.2 --- presentations/slides/i18nl10n/funny-characters.xml:1.1 Thu Nov 11 11:33:04 2004 +++ presentations/slides/i18nl10n/funny-characters.xml Wed Feb 23 11:04:01 2005 @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="iso-8859-1"?> +<?xml version="1.0" encoding="utf8"?> <slide fontsize="6em"> <title>Transliteration</title> <subtitle>"Funny Characters"</subtitle> @@ -6,17 +6,17 @@ <image align="center" filename="funny-characters.png" /> <break lines="2"/> - <blurb>What we do now:</blurb> - <example class="bit_larger" result="0"><![CDATA["Håtveit på 8. plass" to "h_tveit_p_8_plass"]]></example> + <blurb>What we did first:</blurb> + <example class="bit_larger" result="0"><![CDATA["HÃ¥tveit pÃ¥ 8. plass" to "h_tveit_p_8_plass"]]></example> <break lines="2"/> - <blurb>What we want to do:</blurb> - <example class="bit_larger" result="0"><![CDATA["Håtveit på 8. plass" to "haatveit_paa_8_plass"]]></example> + <blurb>What we do now:</blurb> + <example class="bit_larger" result="0"><![CDATA["HÃ¥tveit pÃ¥ 8. plass" to "haatveit_paa_8_plass"]]></example> <break lines="2"/> <blurb>How we do this:</blurb> <example class="bit_larger" encoding="latin1" result="0"><![CDATA[<?php -$string = iconv("latin1", "ucs-2", "Håtveit på 8. plass"); +$string = iconv("latin1", "ucs-2", "HÃ¥tveit pÃ¥ 8. plass"); $res = transliterate($string, array('normalize_ligature', 'lowercase_latin', 'space_to_underscores')); echo iconv('ucs-2', 'latin1', $res); http://cvs.php.net/diff.php/presentations/slides/i18nl10n/pcre-utf8.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/pcre-utf8.xml diff -u presentations/slides/i18nl10n/pcre-utf8.xml:1.2 presentations/slides/i18nl10n/pcre-utf8.xml:1.3 --- presentations/slides/i18nl10n/pcre-utf8.xml:1.2 Mon Sep 13 09:41:18 2004 +++ presentations/slides/i18nl10n/pcre-utf8.xml Wed Feb 23 11:04:01 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> - <title>Regular Expressions and UTF8</title> + <title>Regular Expressions and UTF-8</title> <blurb>preg_match():</blurb> <example class="bit_larger" result="1"><![CDATA[<?php @@ -15,7 +15,7 @@ <break lines="4"/> <div effect="hide"> - <blurb>preg_match() in UTF8 mode:</blurb> + <blurb>preg_match() in UTF-8 mode:</blurb> <example class="bit_larger" result="1"><![CDATA[<?php $str = "1978,Dérick,Rethans"; if (preg_match('@,(.{6}),@u', $str, $result)) { http://cvs.php.net/diff.php/presentations/slides/i18nl10n/resources.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/resources.xml diff -u presentations/slides/i18nl10n/resources.xml:1.1 presentations/slides/i18nl10n/resources.xml:1.2 --- presentations/slides/i18nl10n/resources.xml:1.1 Tue Sep 7 02:58:40 2004 +++ presentations/slides/i18nl10n/resources.xml Wed Feb 23 11:04:01 2005 @@ -4,6 +4,6 @@ <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"/> + <link fontsize="2.4em" marginleft="0em" leader="This presentation: " href="http://files.derickrethans.nl/wereldveroverend-hungary.pdf" target="_new"/> + <link fontsize="3em" marginleft="0em" leader="Questions?: " href="dr@ez.no" target="_new"/> </slide> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/unicode.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/unicode.xml diff -u presentations/slides/i18nl10n/unicode.xml:1.1 presentations/slides/i18nl10n/unicode.xml:1.2 --- presentations/slides/i18nl10n/unicode.xml:1.1 Tue Sep 7 02:58:40 2004 +++ presentations/slides/i18nl10n/unicode.xml Wed Feb 23 11:04:01 2005 @@ -7,10 +7,10 @@ <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.0 describes the BMP ~(Basic Multilingual Plane)~ (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> + <bullet>Encoding in numerous encodings: UCS-2, UCS-4, UTF-8, UTF-16 etc.</bullet> </list> <break lines="2"/> <blurb class="xx_large_blurb_center">A Ð × Ø« ઠ᪠åª</blurb> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/utf8-encoding.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/utf8-encoding.xml diff -u presentations/slides/i18nl10n/utf8-encoding.xml:1.2 presentations/slides/i18nl10n/utf8-encoding.xml:1.3 --- presentations/slides/i18nl10n/utf8-encoding.xml:1.2 Mon Sep 13 09:41:18 2004 +++ presentations/slides/i18nl10n/utf8-encoding.xml Wed Feb 23 11:04:01 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> - <title>UTF8 Encoding</title> + <title>UTF-8 Encoding</title> <blurb>Characters in the ASCII range are stored "as-is"</blurb> <break /> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/utf8.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/utf8.xml diff -u presentations/slides/i18nl10n/utf8.xml:1.2 presentations/slides/i18nl10n/utf8.xml:1.3 --- presentations/slides/i18nl10n/utf8.xml:1.2 Wed Sep 22 15:39:38 2004 +++ presentations/slides/i18nl10n/utf8.xml Wed Feb 23 11:04:01 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> - <title>UTF8</title> + <title>UTF-8</title> <subtitle>Encoding of UCS characters</subtitle> <list> @@ -9,7 +9,7 @@ <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 can be 6 bytes, but only 4 bytes are used</bullet> + <bullet>The longest UTF-8 encoded character can be 6 bytes, but only 4 bytes are used</bullet> </list> </slide> <!-- http://cvs.php.net/co.php/presentations/wereldveroverend-hungary.xml?r=1.1&p=1 Index: presentations/wereldveroverend-hungary.xml +++ presentations/wereldveroverend-hungary.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>PHPKonferencia 2005</event> <location>Budapest, Hungary</location> <date>March 12th, 2005</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://files.derickrethans.nl/wereldveroverend-hungary.pdf</url> <slide>slides/i18nl10n/title-hungary.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? --> <slide>slides/i18nl10n/utf16.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-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 --> <!-- TRANSLITERATION --> <slide>slides/i18nl10n/funny-characters.xml</slide> <!-- æ -> ae --> <slide>slides/i18nl10n/cyrillic.xml</slide> <!-- cyrillic --> <slide>slides/i18nl10n/other-transliterations.xml</slide> <!-- chinese, greek, hebrew, korean --> <slide>slides/i18nl10n/normalize.xml</slide> <!-- curly->normal quotes, punctuation, diacritics --> <slide>slides/i18nl10n/other-filters.xml</slide> <!-- currency signs, copyright --> <!-- LOCALE ISSUES --> <slide>slides/i18nl10n/locales.xml</slide> <slide>slides/i18nl10n/locale-collation.xml</slide> <!-- string collation (ordering) --> <slide>slides/i18nl10n/locale-casing.xml</slide> <!-- strupper/strlower --> <slide>slides/i18nl10n/locale-date.xml</slide> <!-- formatting a date --> <slide>slides/i18nl10n/locale-numeric.xml</slide> <!-- formatting numbers (also arabic numbers?) --> <slide>slides/i18nl10n/locale-money.xml</slide> <!-- formatting money --> <slide>slides/i18nl10n/locale-php.xml</slide> <!-- PHP and locales --> <!-- EXIT --> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/co.php/presentations/slides/i18nl10n/title-hungary.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/title-hungary.xml +++ presentations/slides/i18nl10n/title-hungary.xml <slide fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="multi-langual-development-trans.png" /> <break lines="3"/> <blurb class="event">PHPKonferencia 2005</blurb> <break/> <blurb class="event-date">March 12th, 2005. Budapest, Hungary</blurb> <break/> <blurb class="event-presenter">Derick Rethans &lt;<a href="mailto:dr@ez.no">dr@ez.no</a>&gt;</blurb> <break/> <blurb class="pres-url-small"><a href="http://files.derickrethans.nl/wereldveroverend-hungary.pdf">http://files.derickrethans.nl/wereldveroverend-hungary.pdf</a></blurb> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/utf16.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/utf16.xml +++ presentations/slides/i18nl10n/utf16.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>UCS 2 and UTF-16 Encoding</title> <blurb>UCS 2: Only characters in the BMP are stored, they are stored "as-is"</blurb> <break lines="2"/> <blurb>UTF-16: Valid characters in the BMP are stored "as-is"</blurb> <break /> <blurb>Characters outside the BMP (in the range 0x10000 to 0x10ffff):</blurb> <example class="bit_larger"><![CDATA[byte 1 = 1101 10yy yyyy yyyy byte 2 = 1101 11xx xxxx xxxx MUSICAL SYMBOL SIXTEENTH NOTE (0x1d161) 1101 10yy yyyy yyyy 1101 11xx xxxx xxxx ---- --++ +111 0100 ---- --01 0110 0001 ======================================== 1101 1000 0111 0100 1101 1101 0110 0001 0xd8 0x74 0xdd 0x61]]></example> </slide> <!-- vim: encoding=utf8 -->