cvs: presentations / wereldveroverend-ac2005.xml /slides/i18nl10n funny-characters.xml latin.xml locale-collation.xml locale-date.xml
locale-money.xml other-filters.xml other-transliterations.xml resources.xml title-ac2005.xml

From: Date: Tue, 26 Apr 2005 14:52:54 +0000
Subject: cvs: presentations / wereldveroverend-ac2005.xml /slides/i18nl10n funny-characters.xml latin.xml locale-collation.xml locale-date.xml
locale-money.xml other-filters.xml other-transliterations.xml resources.xml title-ac2005.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1121@lists.php.net to get a copy of this message
derick Tue Apr 26 10:52:54 2005 EDT Added files: /presentations wereldveroverend-ac2005.xml /presentations/slides/i18nl10n title-ac2005.xml Modified files: /presentations/slides/i18nl10n funny-characters.xml latin.xml locale-collation.xml locale-date.xml locale-money.xml other-filters.xml other-transliterations.xml resources.xml Log: - Added draft of AC-EU/I18N talk.

http://cvs.php.net/diff.php/presentations/slides/i18nl10n/funny-characters.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/i18nl10n/funny-characters.xml diff -u presentations/slides/i18nl10n/funny-characters.xml:1.3 presentations/slides/i18nl10n/funny-characters.xml:1.4 --- presentations/slides/i18nl10n/funny-characters.xml:1.3 Thu Feb 24 10:38:01 2005 +++ presentations/slides/i18nl10n/funny-characters.xml Tue Apr 26 10:52:53 2005 @@ -7,18 +7,19 @@ <break lines="2"/> <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> + <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 do now:</blurb> - <example class="bit_larger" result="0"><![CDATA["HÃ¥tveit pÃ¥ 8. plass" to "haatveit_paa_8_plass"]]></example> + <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 = "HÃ¥tveit pÃ¥ 8. plass"; +$string = "HÃ¥tveit pÃ¥ 8. plass"; $res = transliterate($string, - array('normalize_ligature', 'lowercase_latin', 'space_to_underscores'), + array('normalize_ligature', 'lowercase_latin', + 'space_to_underscores'), 'utf-8', 'utf-8'); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/latin.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/latin.xml diff -u presentations/slides/i18nl10n/latin.xml:1.1 presentations/slides/i18nl10n/latin.xml:1.2 --- presentations/slides/i18nl10n/latin.xml:1.1 Tue Sep 7 02:58:40 2004 +++ presentations/slides/i18nl10n/latin.xml Tue Apr 26 10:52:53 2005 @@ -3,29 +3,28 @@ <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>ISO-8859-X: Often used character sets</bullet> + <bullet>latin-X: Subset of ISO-8859-X</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> + <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/diff.php/presentations/slides/i18nl10n/locale-collation.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/locale-collation.xml diff -u presentations/slides/i18nl10n/locale-collation.xml:1.2 presentations/slides/i18nl10n/locale-collation.xml:1.3 --- presentations/slides/i18nl10n/locale-collation.xml:1.2 Thu Feb 24 10:38:01 2005 +++ presentations/slides/i18nl10n/locale-collation.xml Tue Apr 26 10:52:53 2005 @@ -5,10 +5,8 @@ <example class="bit_larger" result="1"><![CDATA[<pre><?php $b = $a = array("øks", "ærlig", "Ã¥tte", "øyeblikk"); - setlocale(LC_COLLATE, 'C'); sort($a); print_r($a); - setlocale(LC_COLLATE, 'no_NO.UTF8'); sort($b, SORT_LOCALE_STRING); print_r($b); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/locale-date.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/locale-date.xml diff -u presentations/slides/i18nl10n/locale-date.xml:1.2 presentations/slides/i18nl10n/locale-date.xml:1.3 --- presentations/slides/i18nl10n/locale-date.xml:1.2 Tue Mar 8 10:21:33 2005 +++ presentations/slides/i18nl10n/locale-date.xml Tue Apr 26 10:52:53 2005 @@ -4,19 +4,19 @@ <subtitle>language oriented date and time formatting</subtitle> <example class="bit_larger" result="1"><![CDATA[<pre><?php - $locales = array( - 'Arabic (Egypt)' => 'ar_EG.UTF-8', 'American ' => 'en_US', - 'Dutch ' => 'nl_NL', 'Hebrew ' => 'iw_IL', - 'Hebrew (UTF-8)' => 'iw_IL.UTF-8', 'Hungarian' => 'hu_HU.UTF-8', - 'Japanese ' => 'ja_JP.UTF-8', 'Norwegian' => 'no_NO.UTF-8', - 'Turkish ' => 'tr_TR.UTF-8' - ); + $locales = array( + 'Arabic (Egypt)' => 'ar_EG.UTF-8', 'American ' => 'en_US', + 'Dutch ' => 'nl_NL', 'Hebrew ' => 'iw_IL', + 'Hebrew (UTF-8)' => 'iw_IL.UTF-8', 'Hungarian' => 'hu_HU.UTF-8', + 'Japanese ' => 'ja_JP.UTF-8', 'Norwegian' => 'no_NO.UTF-8', + 'Turkish ' => 'tr_TR.UTF-8' + ); - foreach ($locales as $country => $locale) { - setlocale(LC_TIME, $locale); - echo '<b>', $country, "</b>\t", strftime('%c'), - "\n"; - } + foreach ($locales as $country => $locale) { + setlocale(LC_TIME, $locale); + echo '<b>', $country, "</b>\t", strftime('%c'), + "\n"; + } ?></pre>]]></example> </slide> <!-- http://cvs.php.net/diff.php/presentations/slides/i18nl10n/locale-money.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/locale-money.xml diff -u presentations/slides/i18nl10n/locale-money.xml:1.1 presentations/slides/i18nl10n/locale-money.xml:1.2 --- presentations/slides/i18nl10n/locale-money.xml:1.1 Mon Sep 13 09:41:18 2004 +++ presentations/slides/i18nl10n/locale-money.xml Tue Apr 26 10:52:53 2005 @@ -15,7 +15,8 @@ setlocale(LC_MONETARY, $locale); $nr = 31415.92654; echo "<b>$country</b>\t", - money_format("[%i]", $nr), " \t", money_format("[%n]", $nr), "\n"; + money_format("[%i]", $nr), " \t", + money_format("[%n]", $nr), "\n"; } ?></pre>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/other-filters.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/other-filters.xml diff -u presentations/slides/i18nl10n/other-filters.xml:1.1 presentations/slides/i18nl10n/other-filters.xml:1.2 --- presentations/slides/i18nl10n/other-filters.xml:1.1 Thu Nov 11 11:33:04 2004 +++ presentations/slides/i18nl10n/other-filters.xml Tue Apr 26 10:52:53 2005 @@ -14,8 +14,9 @@ $string = iconv("utf-8", "ucs-2", $string); $res = transliterate($string, array( - 'decompose_currency_signs', 'decompose_special', 'normalize_numbers', - 'han_transliterate', 'uppercase_cyrillic', 'normalize_ligature', + 'decompose_currency_signs', 'decompose_special', + 'normalize_numbers', 'han_transliterate', + 'uppercase_cyrillic', 'normalize_ligature', 'diacritical_remove')); echo iconv('ucs-2', 'utf-8', $res); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/other-transliterations.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/other-transliterations.xml diff -u presentations/slides/i18nl10n/other-transliterations.xml:1.1 presentations/slides/i18nl10n/other-transliterations.xml:1.2 --- presentations/slides/i18nl10n/other-transliterations.xml:1.1 Thu Nov 11 11:33:04 2004 +++ presentations/slides/i18nl10n/other-transliterations.xml Tue Apr 26 10:52:53 2005 @@ -15,10 +15,10 @@ ήδη γνωστή. END; - $string = iconv("utf-8", "ucs-2", $string); $res = transliterate($string, array( - 'han_transliterate', 'hebrew_transliterate', 'greek_transliterate')); + 'han_transliterate', 'hebrew_transliterate', + 'greek_transliterate')); echo nl2br(iconv('ucs-2', 'utf-8', $res)); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/resources.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/i18nl10n/resources.xml diff -u presentations/slides/i18nl10n/resources.xml:1.2 presentations/slides/i18nl10n/resources.xml:1.3 --- presentations/slides/i18nl10n/resources.xml:1.2 Wed Feb 23 11:04:01 2005 +++ presentations/slides/i18nl10n/resources.xml Tue Apr 26 10:52:53 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://files.derickrethans.nl/wereldveroverend-hungary.pdf" target="_new"/> + <link fontsize="2.4em" marginleft="0em" leader="This presentation: " href="http://derickrethans.nl/talks.php" target="_new"/> <link fontsize="3em" marginleft="0em" leader="Questions?: " href="dr@ez.no" target="_new"/> </slide> http://cvs.php.net/co.php/presentations/wereldveroverend-ac2005.xml?r=1.1&p=1 Index: presentations/wereldveroverend-ac2005.xml +++ presentations/wereldveroverend-ac2005.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>Localization and Internationalization</title> <event>ApacheCon Europe 2005</event> <location>Stuttgart, Germany</location> <date>July 22nd, 2005</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://derickrethans.nl/talks.php</url> <slide>slides/i18nl10n/title-ac2005.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-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-money.xml</slide> <!-- formatting money --> <slide>slides/i18nl10n/locale-php.xml</slide> <!-- PHP and locales --> <!-- EXIT --> <slide>slides/php5intro/nl/p5pp.xml</slide> <!-- PHP and locales --> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/co.php/presentations/slides/i18nl10n/title-ac2005.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/title-ac2005.xml +++ presentations/slides/i18nl10n/title-ac2005.xml <slide fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="dominating-the-world.png" /> <break lines="3"/> <blurb class="event">ApacheCon Europe 2005</blurb> <break/> <blurb class="event-date">July 22nd, Stuttgart, Germany</blurb> <break/> <blurb class="event-presenter">Derick Rethans &amp;lt;&lt;a href="mailto:dr@ez.no">dr@ez.no&lt;/a>&amp;gt;</blurb> <break/> <blurb class="pres-url-small">&lt;a href="http://derickrethans.nl/talks.php">http://derickrethans.nl/talks.php&lt;/a></blurb> </slide>
« previous php.pres (#1121) next »