cvs: presentations / php6-unicode-webtech2006.xml /slides/i18nl10n characters-not-bytes.xml http-output-encoding.xml iterator-example.xml
locale-example-arrays.xml locale-example.xml locale-example2.xml runtime-encoding.xml script-encoding-pragma.xml /slides/perf ezp.css

From: Date: Wed, 28 Jun 2006 12:20:40 +0000
Subject: cvs: presentations / php6-unicode-webtech2006.xml /slides/i18nl10n characters-not-bytes.xml http-output-encoding.xml iterator-example.xml
locale-example-arrays.xml locale-example.xml locale-example2.xml runtime-encoding.xml script-encoding-pragma.xml /slides/perf ezp.css
Groups: php.pres 
Request: Send a blank email to pres+get-1334@lists.php.net to get a copy of this message
derick Wed Jun 28 12:20:40 2006 UTC Added files: /presentations php6-unicode-webtech2006.xml /presentations/slides/i18nl10n iterator-example.xml Modified files: /presentations/slides/i18nl10n characters-not-bytes.xml http-output-encoding.xml locale-example-arrays.xml locale-example.xml locale-example2.xml runtime-encoding.xml script-encoding-pragma.xml /presentations/slides/perf ezp.css Log: - Pres is totally hosed with PHP 6 now, so fallback to non-live examples.

http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/characters-not-bytes.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/i18nl10n/characters-not-bytes.xml diff -u presentations/slides/i18nl10n/characters-not-bytes.xml:1.2 presentations/slides/i18nl10n/characters-not-bytes.xml:1.3 --- presentations/slides/i18nl10n/characters-not-bytes.xml:1.2 Wed May 3 14:24:28 2006 +++ presentations/slides/i18nl10n/characters-not-bytes.xml Wed Jun 28 12:20:40 2006 @@ -9,12 +9,14 @@ </list> <blurb>String Indexes:</blurb> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php $string = "网页搜索"; // bytes are: E7 BD 91 E9 A1 B5 E6 90 9C E7 B4 A2 echo $string[1]; ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output">页</blurb> <!-- # vim: encoding=utf8 --> http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/http-output-encoding.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/i18nl10n/http-output-encoding.xml diff -u presentations/slides/i18nl10n/http-output-encoding.xml:1.1 presentations/slides/i18nl10n/http-output-encoding.xml:1.2 --- presentations/slides/i18nl10n/http-output-encoding.xml:1.1 Fri Sep 9 15:04:35 2005 +++ presentations/slides/i18nl10n/http-output-encoding.xml Wed Jun 28 12:20:40 2006 @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="iso-8859-1"?> +<?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>HTTP Output Encoding</title> @@ -9,13 +9,15 @@ </list> <blurb>On the fly encoding:</blurb> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php declare(encoding="iso-8859-1"); ini_set('unicode.output_encoding', 'utf-8'); - $str = "rødbærsyltetøy<br/>"; - $bstr = b"rødbærsyltetøy<br/>"; + $str = "rødbærsyltetøy<br/>"; + $bstr = b"rødbærsyltetøy<br/>"; echo $str, $bstr; ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output"><![CDATA[rødbærsyltetøy<br/>rødbærsyltetøy<br/>]]></blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/locale-example-arrays.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/i18nl10n/locale-example-arrays.xml diff -u presentations/slides/i18nl10n/locale-example-arrays.xml:1.3 presentations/slides/i18nl10n/locale-example-arrays.xml:1.4 --- presentations/slides/i18nl10n/locale-example-arrays.xml:1.3 Fri May 5 14:13:54 2006 +++ presentations/slides/i18nl10n/locale-example-arrays.xml Wed Jun 28 12:20:40 2006 @@ -3,7 +3,7 @@ <title>ICU Locales</title> <subtitle>Array Sorting Example</subtitle> - <example result="1"><![CDATA[<pre># orig norm loc trad + <example><![CDATA[<pre># orig norm loc trad -------------------------- <?php $d = $c = $b = $a = array('mapa', 'kilo', 'libro', 'llave', 'loca'); @@ -18,6 +18,10 @@ $i + 1, $a[$i], $b[$i], $c[$i], $d[$i]); } ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output"><![CDATA[<pre># orig norm loc trad +-------------------------- +1. mapa kilo kilo kilo <br/>2. kilo libro libro libro<br/>3. libro llave llave loca <br/>4. llave loca loca llave<br/>5. loca mapa mapa mapa <br/>]]></blurb> <!-- # vim: encoding=utf8 http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/locale-example.xml?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/i18nl10n/locale-example.xml diff -u presentations/slides/i18nl10n/locale-example.xml:1.4 presentations/slides/i18nl10n/locale-example.xml:1.5 --- presentations/slides/i18nl10n/locale-example.xml:1.4 Fri May 5 14:13:54 2006 +++ presentations/slides/i18nl10n/locale-example.xml Wed Jun 28 12:20:40 2006 @@ -3,12 +3,16 @@ <title>ICU Locales</title> <subtitle>Example</subtitle> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php locale_set_default("nl"); echo strtotitle("het ijsselmeer (ijsselmeer) is ßaf"), "<br/>\n"; locale_set_default("tr"); echo strtotitle("het ijsselmeer (ijsselmeer) is ßaf"), "\n"; ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output">Het Ijsselmeer (IJsselmeer) Is Ssaf&lt;br/> + Het İjsselmeer (IJsselmeer) İs Ssaf + </blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/locale-example2.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/i18nl10n/locale-example2.xml diff -u presentations/slides/i18nl10n/locale-example2.xml:1.1 presentations/slides/i18nl10n/locale-example2.xml:1.2 --- presentations/slides/i18nl10n/locale-example2.xml:1.1 Wed May 3 14:24:28 2006 +++ presentations/slides/i18nl10n/locale-example2.xml Wed Jun 28 12:20:40 2006 @@ -4,7 +4,7 @@ <subtitle>Example</subtitle> <blurb>Comparing strings:</blurb> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php $coll = new Collator("fr_CA"); if ($coll->compare("côte", "coté") < 0) { echo "less\n"; @@ -12,9 +12,11 @@ echo "greater\n"; } ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output">less</blurb> <break/> <blurb>Ignore case and accents:</blurb> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php $coll = new Collator("fr_CA"); $coll->setStrength(Collator::PRIMARY); if ($coll->compare("côte", "cOTé") == 0) { @@ -23,5 +25,6 @@ echo "different\n"; } ?>]]></example> - + <blurb>Output:</blurb> + <blurb class="bit_larger_output">same</blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/runtime-encoding.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/i18nl10n/runtime-encoding.xml diff -u presentations/slides/i18nl10n/runtime-encoding.xml:1.2 presentations/slides/i18nl10n/runtime-encoding.xml:1.3 --- presentations/slides/i18nl10n/runtime-encoding.xml:1.2 Thu May 4 15:15:56 2006 +++ presentations/slides/i18nl10n/runtime-encoding.xml Wed Jun 28 12:20:40 2006 @@ -8,7 +8,7 @@ </list> <break/> <blurb>Encoding problems:</blurb> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php ini_set('unicode.runtime_encoding', 'iso-8859-5'); ini_set('unicode.from_error_subst_char', '2D'); $food = 'blÃ¥bær != блабар'; @@ -16,4 +16,6 @@ $food3 = (string) $food2; echo $food, '<br/>', $food2, '<br/>', $food3, "<br/>\n"; ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output"><![CDATA[blÃ¥bær != блабар<br/>bl?b?r != ������<br/>bl?b?r != блабар<br/>]]></blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/script-encoding-pragma.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/i18nl10n/script-encoding-pragma.xml diff -u presentations/slides/i18nl10n/script-encoding-pragma.xml:1.2 presentations/slides/i18nl10n/script-encoding-pragma.xml:1.3 --- presentations/slides/i18nl10n/script-encoding-pragma.xml:1.2 Thu Mar 30 17:07:16 2006 +++ presentations/slides/i18nl10n/script-encoding-pragma.xml Wed Jun 28 12:20:40 2006 @@ -4,19 +4,23 @@ <subtitle>Setting Script Encoding With declare()</subtitle> <blurb>Interpreting an iso-8859-1 script as UTF-8:</blurb> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php declare(encoding="iso-8859-1"); $str = "blÃ¥ = 青"; var_inspect($str); ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output">unicode(10) "blÃ¥ = 青" { 0062 006c 00c3 00a5 0020 003d 0020 00e9 009d 0092 }</blurb> <break lines="3"/> <blurb>Interpreting an UTF-8 script as UTF-8:</blurb> - <example result="1"><![CDATA[<?php + <example><![CDATA[<?php declare(encoding="utf-8"); $str = "blÃ¥ = 青"; var_inspect($str); ?>]]></example> + <blurb>Output:</blurb> + <blurb class="bit_larger_output">unicode(7) "blÃ¥ = 青" { 0062 006c 00e5 0020 003d 0020 9752 }</blurb> <!-- # vim: encoding=utf8 --> http://cvs.php.net/viewvc.cgi/presentations/slides/perf/ezp.css?r1=1.18&r2=1.19&diff_format=u Index: presentations/slides/perf/ezp.css diff -u presentations/slides/perf/ezp.css:1.18 presentations/slides/perf/ezp.css:1.19 --- presentations/slides/perf/ezp.css:1.18 Sun Apr 23 15:08:00 2006 +++ presentations/slides/perf/ezp.css Wed Jun 28 12:20:40 2006 @@ -165,6 +165,12 @@ margin-right: 20px; } +div.bit_larger_output { + background: #e6e300; + font-size: 20pt; + font-weight: normal; +} + div.large code, div.large { font-size: 26px; background: #eee; http://cvs.php.net/viewvc.cgi/presentations/php6-unicode-webtech2006.xml?view=markup&rev=1.1 Index: presentations/php6-unicode-webtech2006.xml +++ presentations/php6-unicode-webtech2006.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>PHP 6 and Unicode</title> <event>WebTech 2006</event> <location>Sofia, Bulgaria</location> <date>Just 1st, 2006</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://derickrethans.nl/talks.php</url> <slide>slides/clustering/title.xml</slide> <slide>slides/toolbox/me.xml</slide> <!-- UNICODE --> <slide>slides/i18nl10n/what-languages.xml</slide> <!-- what is the problem actually? --> <slide>slides/i18nl10n/challenges2.xml</slide> <slide>slides/i18nl10n/sorting.xml</slide> <slide>slides/i18nl10n/convert.xml</slide> <slide>slides/i18nl10n/php-can-do-it-now.xml</slide> <slide>slides/i18nl10n/php-now-iconv.xml</slide> <slide>slides/i18nl10n/php-now-mbstring.xml</slide> <slide>slides/i18nl10n/php-now-locales.xml</slide> <!-- UNICODE --> <slide>slides/i18nl10n/unicode.xml</slide> <slide>slides/i18nl10n/composition.xml</slide> <slide>slides/i18nl10n/properties.xml</slide> <!-- PHP SOON --> <slide>slides/i18nl10n/goals-1.xml</slide> <slide>slides/i18nl10n/basics-1.xml</slide> <slide>slides/i18nl10n/surrogates.xml</slide> <!-- how does the encoding work? --> <slide>slides/i18nl10n/icu.xml</slide> <slide>slides/i18nl10n/roadmap.xml</slide> <slide>slides/i18nl10n/unicode-semantics.xml</slide> <!-- STRINGS --> <slide>slides/i18nl10n/string-types.xml</slide> <slide>slides/i18nl10n/string-literals.xml</slide> <slide>slides/i18nl10n/characters-not-bytes.xml</slide> <slide>slides/i18nl10n/upgrading-locale.xml</slide> <slide>slides/i18nl10n/locale-example.xml</slide> <slide>slides/i18nl10n/locale-example2.xml</slide> <slide>slides/i18nl10n/locale-example-arrays.xml</slide> <slide>slides/i18nl10n/iterator-example.xml</slide> <slide>slides/i18nl10n/unicode-extensions.xml</slide> <!-- DIFFERENT ENCODINGS --> <slide>slides/i18nl10n/encoding-overview.xml</slide> <slide>slides/i18nl10n/script-encoding.xml</slide> <slide>slides/i18nl10n/script-encoding-pragma.xml</slide> <slide>slides/i18nl10n/runtime-encoding.xml</slide> <slide>slides/i18nl10n/http-output-encoding.xml</slide> <slide>slides/i18nl10n/fallback-encoding.xml</slide> <!-- EXIT --> <slide>slides/i18nl10n/when.xml</slide> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/i18nl10n/iterator-example.xml?view=markup&rev=1.1 Index: presentations/slides/i18nl10n/iterator-example.xml +++ presentations/slides/i18nl10n/iterator-example.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Text Iteration</title> <subtitle>Example</subtitle> <example><![CDATA[<?php $text = "Pouvez-vous me dire quelle heure il est ? Merci."; foreach (new TextIterator($text, TextIterator::LINE) as $u) { if ($u != " ") echo($u),"<br/>\n"; } ?>]]></example> <blurb>Output:</blurb> <blurb class="bit_larger_output"><![CDATA[ Pouvez-<br/> vous <br/> me <br/> dire <br/> quelle <br/> heure <br/> il <br/> est ? <br/> Merci.<br/>]]></blurb> </slide>
« previous php.pres (#1334) next »