cvs: presentations / php6-unicode-lt2006.xml /slides/i18nl10n characters-not-bytes.xml locale-example-arrays2.xml locale-example2.xml
| From: | Derick Rethans | Date: | Wed, 03 May 2006 14:24:28 +0000 |
| Subject: | cvs: presentations / php6-unicode-lt2006.xml /slides/i18nl10n characters-not-bytes.xml locale-example-arrays2.xml locale-example2.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1308@lists.php.net to get a copy of this message | ||
derick Wed May 3 14:24:28 2006 UTC
Added files:
/presentations php6-unicode-lt2006.xml
/presentations/slides/i18nl10n locale-example-arrays2.xml
locale-example2.xml
Modified files:
/presentations/slides/i18nl10n characters-not-bytes.xml
Log:
- Added Unicode talk for LinuxTag
http://cvs.php.net/viewcvs.cgi/presentations/slides/i18nl10n/characters-not-bytes.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/i18nl10n/characters-not-bytes.xml
diff -u presentations/slides/i18nl10n/characters-not-bytes.xml:1.1
presentations/slides/i18nl10n/characters-not-bytes.xml:1.2
--- presentations/slides/i18nl10n/characters-not-bytes.xml:1.1 Fri Sep 9 15:04:35 2005
+++ presentations/slides/i18nl10n/characters-not-bytes.xml Wed May 3 14:24:28 2006
@@ -10,7 +10,8 @@
<blurb>String Indexes:</blurb>
<example result="1"><![CDATA[<?php
- $string = "â¿æ"; // bytes are: 0xE9 0xBB 0x83 0xE6 0x97 0xAD
+ $string = "ç½é¡µæç´¢";
+ // bytes are: E7 BD 91 E9 A1 B5 E6 90 9C E7 B4 A2
echo $string[1];
?>]]></example>
http://cvs.php.net/viewcvs.cgi/presentations/php6-unicode-lt2006.xml?view=markup&rev=1.1
Index: presentations/php6-unicode-lt2006.xml
+++ presentations/php6-unicode-lt2006.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>LinuxTag 2006</event>
<location>Wiesbaden, Germany</location>
<date>May 6th, 2006</date>
<speaker>Derick Rethans</speaker>
<email>dr@ez.no</email>
<url>http://derickrethans.nl/talks.php</url>
<slide>slides/clustering/title.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/script-encoding-pragma.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/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/viewcvs.cgi/presentations/slides/i18nl10n/locale-example-arrays2.xml?view=markup&rev=1.1
Index: presentations/slides/i18nl10n/locale-example-arrays2.xml
+++ presentations/slides/i18nl10n/locale-example-arrays2.xml
<?xml version="1.0" encoding="utf-8"?>
<slide fontsize="6em">
<title>ICU Locales</title>
<subtitle>Array Sorting Example</subtitle>
<example result="1"><![CDATA[<pre># orig norm loc trad
--------------------------
<?php
$d = $c = $b = $a = array('mapa', 'kilo', 'libro', 'llave',
'loca');
sort($b);
i18n_loc_set_default('es_VE');
sort($c, SORT_LOCALE_STRING);
i18n_loc_set_default('es_VE@collation=traditional');
sort($d, SORT_LOCALE_STRING);
for ($i = 0; $i < 5; ++$i) {
echo sprintf('%d. %-5s %-5s %-5s %-5s<br/>',
$i + 1, $a[$i], $b[$i], $c[$i], $d[$i]);
}
?>]]></example>
<!--
# vim: encoding=utf8
-->
</slide>
http://cvs.php.net/viewcvs.cgi/presentations/slides/i18nl10n/locale-example2.xml?view=markup&rev=1.1
Index: presentations/slides/i18nl10n/locale-example2.xml
+++ presentations/slides/i18nl10n/locale-example2.xml
<?xml version="1.0" encoding="utf-8"?>
<slide fontsize="6em">
<title>ICU Locales</title>
<subtitle>Example</subtitle>
<blurb>Comparing strings:</blurb>
<example result="1"><![CDATA[<?php
$coll = new Collator("fr_CA");
if ($coll->compare("côte", "coté") < 0) {
echo "less\n";
} else {
echo "greater\n";
}
?>]]></example>
<break/>
<blurb>Ignore case and accents:</blurb>
<example result="1"><![CDATA[<?php
$coll = new Collator("fr_CA");
$coll->setStrength(Collator::PRIMARY);
if ($coll->compare("côte", "cOTé") == 0) {
echo "same\n";
} else {
echo "different\n";
}
?>]]></example>
</slide>