cvs: presentations / php6-unicode.xml /slides/i18nl10n icu.xml locale-example-arrays.xml locale-example.xml streams1.xml streams2.xml surrogates.xml
test-file.txt unicode-extensions.xml unicode-identifiers.xml upgrading-functions.xml upgrading-guidelines.xml upgrading-locale-funcs.xml
upgrading-locale.xml utf16.xml what-languages.xml when.xml

From: Date: Mon, 12 Sep 2005 10:01:32 +0000
Subject: cvs: presentations / php6-unicode.xml /slides/i18nl10n icu.xml locale-example-arrays.xml locale-example.xml streams1.xml streams2.xml surrogates.xml
test-file.txt unicode-extensions.xml unicode-identifiers.xml upgrading-functions.xml upgrading-guidelines.xml upgrading-locale-funcs.xml
upgrading-locale.xml utf16.xml what-languages.xml when.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1185@lists.php.net to get a copy of this message
derick Mon Sep 12 06:01:32 2005 EDT Added files: /presentations/slides/i18nl10n locale-example-arrays.xml locale-example.xml streams1.xml streams2.xml test-file.txt unicode-extensions.xml unicode-identifiers.xml upgrading-guidelines.xml upgrading-locale-funcs.xml upgrading-locale.xml when.xml Modified files: /presentations php6-unicode.xml /presentations/slides/i18nl10n icu.xml surrogates.xml upgrading-functions.xml utf16.xml what-languages.xml Log: - Update php6/unicode talk.

http://cvs.php.net/diff.php/presentations/php6-unicode.xml?r1=1.1&r2=1.2&ty=u Index: presentations/php6-unicode.xml diff -u presentations/php6-unicode.xml:1.1 presentations/php6-unicode.xml:1.2 --- presentations/php6-unicode.xml:1.1 Fri Sep 9 11:04:35 2005 +++ presentations/php6-unicode.xml Mon Sep 12 06:01:31 2005 @@ -9,7 +9,7 @@ stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Localization and Internationalization</topic> -<title>PHP 6 and Unicode</title> +<title>Unicode and PHP 6.0: A Look at the Future</title> <event>php|works 2005</event> <location>Toronto, Canada</location> <date>September 15th, 2005</date> @@ -77,10 +77,23 @@ <!-- PHP's STRING FUNCTIONS --> <slide>slides/i18nl10n/upgrading-functions.xml</slide> +<slide>slides/i18nl10n/upgrading-guidelines.xml</slide> <!-- LOCALES --> - +<slide>slides/i18nl10n/upgrading-locale.xml</slide> +<slide>slides/i18nl10n/upgrading-locale-funcs.xml</slide> +<slide>slides/i18nl10n/locale-example.xml</slide> +<slide>slides/i18nl10n/locale-example-arrays.xml</slide> +<slide>slides/i18nl10n/unicode-extensions.xml</slide> + +<!-- IDS --> +<slide>slides/i18nl10n/unicode-identifiers.xml</slide> + +<!-- STREAMS --> +<slide>slides/i18nl10n/streams1.xml</slide> +<slide>slides/i18nl10n/streams2.xml</slide> <!-- EXIT --> +<slide>slides/i18nl10n/when.xml</slide> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/icu.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/icu.xml diff -u presentations/slides/i18nl10n/icu.xml:1.1 presentations/slides/i18nl10n/icu.xml:1.2 --- presentations/slides/i18nl10n/icu.xml:1.1 Fri Sep 9 11:04:35 2005 +++ presentations/slides/i18nl10n/icu.xml Mon Sep 12 06:01:32 2005 @@ -2,7 +2,7 @@ <slide fontsize="6em"> <title>How Will It Be Implemented?</title> - <blurb>ICU: IBMs Components for Unicode</blurb> + <blurb>ICU: International Components for Unicode</blurb> <list> <bullet>Unicode is extremely complex, with ICU we don't have to implement it ourselves</bullet> <bullet>ICU has a lot of features, is fast, stable, portable, extensible, Open Source and well maintained and supported</bullet> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/surrogates.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/surrogates.xml diff -u presentations/slides/i18nl10n/surrogates.xml:1.1 presentations/slides/i18nl10n/surrogates.xml:1.2 --- presentations/slides/i18nl10n/surrogates.xml:1.1 Fri Sep 9 11:04:35 2005 +++ presentations/slides/i18nl10n/surrogates.xml Mon Sep 12 06:01:32 2005 @@ -8,15 +8,12 @@ <bullet>UTF-16 uses a double two-byte sequence for characters outside the BMP</bullet> <bullet>Special ranges in the Unicode range are used for this</bullet> </list> - <example><![CDATA[byte 1 = 1101 10yy yyyy yyyy -byte 2 = 1101 11xx xxxx xxxx + <example><![CDATA[byte 1 = 0xd800 - 0xdbff +byte 2 = 0xdc00 - 0xdfff -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> +𐐘 +U+10418 DESERET CAPITAL LETTER GAY + 0xd810 0xdc18]]></example> <list> <bullet>Code *point*: a character</bullet> <bullet>Code *unit*: a two-byte sequence with UTF-16</bullet> http://cvs.php.net/diff.php/presentations/slides/i18nl10n/upgrading-functions.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/upgrading-functions.xml diff -u presentations/slides/i18nl10n/upgrading-functions.xml:1.1 presentations/slides/i18nl10n/upgrading-functions.xml:1.2 --- presentations/slides/i18nl10n/upgrading-functions.xml:1.1 Fri Sep 9 11:04:35 2005 +++ presentations/slides/i18nl10n/upgrading-functions.xml Mon Sep 12 06:01:32 2005 @@ -3,7 +3,12 @@ <title>Upgrading Functions</title> <list> - <bullet></bullet> + <bullet>PHP has a few thousand functions</bullet> + <bullet>About half of them use a parameter parsing API</bullet> + <bullet>This API can be modified to do automatic conversions</bullet> + <bullet>Upgrade will be a continuing process</bullet> + <bullet>Requires cooperation from extension maintainers</bullet> + <bullet>Guidelines are important</bullet> </list> <!-- # vim: encoding=utf8 http://cvs.php.net/diff.php/presentations/slides/i18nl10n/utf16.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/utf16.xml diff -u presentations/slides/i18nl10n/utf16.xml:1.1 presentations/slides/i18nl10n/utf16.xml:1.2 --- presentations/slides/i18nl10n/utf16.xml:1.1 Wed Feb 23 11:04:01 2005 +++ presentations/slides/i18nl10n/utf16.xml Mon Sep 12 06:01:32 2005 @@ -12,11 +12,7 @@ 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> +(0x1d161) => 0xd8 0x74 0xdd 0x61]]></example> </slide> <!-- vim: encoding=utf8 http://cvs.php.net/diff.php/presentations/slides/i18nl10n/what-languages.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/what-languages.xml diff -u presentations/slides/i18nl10n/what-languages.xml:1.1 presentations/slides/i18nl10n/what-languages.xml:1.2 --- presentations/slides/i18nl10n/what-languages.xml:1.1 Fri Sep 9 11:04:35 2005 +++ presentations/slides/i18nl10n/what-languages.xml Mon Sep 12 06:01:32 2005 @@ -7,7 +7,7 @@ <bullet>Ce n'est pas tout le monde qui parle anglais</bullet> <bullet>Tjueseks karakterer holder ikke mÃ¥l</bullet> <bullet>Нот эврибади из юзин зэ сэйм скрипт ивэн</bullet> - <bullet>It gets even more complicated with Chinese languages</bullet> + <bullet>它变得更加复杂的与汉语语言</bullet> </list> <!-- # vim: encoding=utf8 http://cvs.php.net/co.php/presentations/slides/i18nl10n/locale-example-arrays.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/locale-example-arrays.xml +++ presentations/slides/i18nl10n/locale-example-arrays.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/co.php/presentations/slides/i18nl10n/locale-example.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/locale-example.xml +++ presentations/slides/i18nl10n/locale-example.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>ICU Locales</title> <subtitle>Example</subtitle> <example result="1"><![CDATA[<?php i18n_loc_set_default("nl"); echo i18n_strtotitle("het ijsselmeer (ijsselmeer) is ßaf"), "<br/>\n"; i18n_loc_set_default("tr"); echo i18n_strtotitle("het ijsselmeer (ijsselmeer) is ßaf"), "\n"; ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/streams1.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/streams1.xml +++ presentations/slides/i18nl10n/streams1.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>PHP Streams</title> <list> <bullet>PHP has a streams-based IO</bullet> <bullet>Generalized file, network, data compression, and other operations</bullet> <bullet>Streams will operate on binary strings by default</bullet> </list> <example result="1"><![CDATA[<?php $f = fopen('../presentations/slides/i18nl10n/test-file.txt', 'r'); $data = fread($f, 32); var_dump($data); $udata = unicode_decode($data, 'latin1'); var_dump($udata); ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/streams2.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/streams2.xml +++ presentations/slides/i18nl10n/streams2.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>PHP Streams</title> <subtitle>Filters</subtitle> <blurb>Explicit filter:</blurb> <example result="1"><![CDATA[<?php $f = fopen('../presentations/slides/i18nl10n/test-file.txt', 'r'); stream_filter_append($f, 'unicode.from.latin1'); $data = fread($f, 32); var_dump($data); ?>]]></example> <break lines="2"/> <blurb>Default filter:</blurb> <example result="1"><![CDATA[<?php $ctx = stream_context_get_default(); stream_context_set_params( $ctx, array('input_encoding' => 'latin1')); $f = fopen('../presentations/slides/i18nl10n/test-file.txt', 'rt'); $data = fread($f, 32); var_dump($data); ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/test-file.txt?r=1.1&p=1 Index: presentations/slides/i18nl10n/test-file.txt +++ presentations/slides/i18nl10n/test-file.txt blåbærøl http://cvs.php.net/co.php/presentations/slides/i18nl10n/unicode-extensions.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/unicode-extensions.xml +++ presentations/slides/i18nl10n/unicode-extensions.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>i18n Extensions</title> <list> <bullet>*i18n_core*: always enabled, functions to set the locale, the locale aware string functions. String searching API.</bullet> <bullet>*i18n_regexp*: Unicode aware regular expressions</bullet> <bullet>*i18n_translit*: PECL/translit extension, integrated with ICU's transliteration</bullet> <bullet>*i18n_...*: Other specialized extensions, such as normalization, break iteration...</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/unicode-identifiers.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/unicode-identifiers.xml +++ presentations/slides/i18nl10n/unicode-identifiers.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Identifiers</title> <example result="1"><![CDATA[<?php function 誅(&$兽) { $兽 = "斃"; } $彪 = "tiger"; 誅($彪); var_dump($彪); ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/upgrading-guidelines.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/upgrading-guidelines.xml +++ presentations/slides/i18nl10n/upgrading-guidelines.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Guidelines</title> <list> <bullet>Behavior of functions should not change</bullet> <bullet>Search/comparison functions work in binary mode</bullet> <bullet>Case mapping functions use simple case-mapping</bullet> <bullet>Combining sequences do not influence matching</bullet> <bullet>Formatting functions do not use ICU API</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/upgrading-locale-funcs.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/upgrading-locale-funcs.xml +++ presentations/slides/i18nl10n/upgrading-locale-funcs.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>ICU Locales</title> <subtitle>Functions</subtitle> <blurb>Functions that are modified to use ICU locales:</blurb> <list> <bullet>*str_word_count()*</bullet> <bullet>*strtoupper()* and *strtolower()*</bullet> </list> <blurb>Functions that do not use locale information:</blurb> <list> <bullet>*ucfirst()* and *ucwords()*</bullet> <bullet>*strnatcasecmp()*, *strnatcmp()* and *stristr()*</bullet> <bullet>*strcmp()* and *strncmp()*</bullet> </list> <blurb>Additional functions:</blurb> <list> <bullet>*i18n_loc_set_default()*</bullet> <bullet>*strtotitle()* (name not known yet)</bullet> <bullet>*i18n_format_number()* and *i18n_parse_number()*</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/upgrading-locale.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/upgrading-locale.xml +++ presentations/slides/i18nl10n/upgrading-locale.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>ICU Locales</title> <list> <bullet>ICU comes with it's own Locale information</bullet> <bullet>PHP currently uses POSIX locales for some functions only</bullet> <bullet>Those functions need to be modified</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/i18nl10n/when.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/when.xml +++ presentations/slides/i18nl10n/when.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>When Can We Have This?</title> <list> <bullet>When it is ready.</bullet> <bullet>Development version is in CVS.</bullet> <bullet>Release: hopefully this year.</bullet> </list> </slide>
« previous php.pres (#1185) next »