New VLD and translit releases
They're two little extension for very distinctive purposes. VLD is a tool for hard core PHP hackers that want to figure out what is going on in PHP's engine. This would be an extremely useful tool for students that want to work on the Google Summer of Code project to implement and finish "Ilia's" Optimizer .
The translit extension focuses on transliterating scripts into different representations. It contains many filters for different tasks. For example the "normalize_numbers" filter can convert "1234567890" into "1234567890" with the following script:
<?php
$input = "1234567890";
var_dump(transliterate(
$input,
array('normalize_numbers'),
'utf-8', 'ascii'));
?>
But many other filters exist, such as converting Chinese text (大平矿难死者增至66人) to pinyin (dapingkuangnansǐzhezengzhi66ren) or stripping out accents (á -> a )and converting ligatures (© -> (c), æ -> ae) etc. The translit extension is also used on this website to create "nice" urls with the following code:
$blurp['url'] = transliterate($blurp['title'],
array(
'cyrillic_transliterate', 'lowercase_latin',
'normalize_ligature', 'diacritical_remove',
'normalize_punctuation', 'remove_punctuation',
'spaces_to_underscore', 'compact_underscores'),
'utf8', 'us-ascii');
Both extensions are available through PECL and installable like:
pecl install vld pecl install translit
Comments
there's also a TRANSLIT option in the iconv() function but to work, you need to set a correct locale.
This piece of code seems familiar, might have seen it somewhere yesterday ;)
Thanks for this new release Derick.
@Damien: I've never found that to work reliable... and we all know that POSIX locales suck anyway, as they're different on every system out there.
Life Line
Success (well, 80%) with my first real soldering-required project!
I have a board with components that can power three (different) Neopixel shapes in a (prototype) Lego enclosure.
Need to make lots of nice 8x8 pixel art and fonts now though, and get a properly designed Lego box.
The only problem is a wonky connector for my third Neopixel — I'll have to resolder that.
I also have software so that I can change everything through Wi-Fi.
Mark roads and tracks as private, as I found out yesterday and got stuck behind a locked fence with a security guard
Updated a bird_hide
Updated a bench
This is not an accessible site. Needs more updates too
This is not an accessible site. Needs more updates too
Created 2 gates
This is indeed no more a clothes shop, but a restaurant
Created 2 waste_baskets, 2 boards, and 2 benches; Updated 8 benches, 6 waste_baskets, and 2 other objects; Deleted 2 waste_baskets and a bench
Updated a pub
Merge branch 'v2022'
Merge branch 'php_gh_19803' into v2022
Fix PHP GH-19803: Parsing a string with a single white space does cre…
Merge branch 'xdebug_3_5'
Back to -dev
Go with 3.5.1
Thanks Brussels, you've been lovely to me this weekend.
And I've a lot to process from the conference too.
I walked 3.9km in 36m24s
I walked 1.1km in 11m31s
Updated a restaurant; Confirmed 3 fast_foods, a convenience shop, and 2 other objects
I walked 4.4km in 44m06s
I walked 5.1km in 56m16s
I walked 3.8km in 37m43s
I'm up early to get the Eurostar to #FOSDEM and I've already seen friends being made.
Fixed another address



Shortlink
This article has a short URL available: https://drck.me/n-vld-atr-6a6