DirifyES merges both dirify-unicode and dirify-plus. The purpose for dirifyES is to solve a bug in Dirifyplus with unicode languages. Of course, dirifyunicode gives you unicode support. But the main problem with dirify-unicode is that features are worse than those of dirifyplus operator, other than high unicode replacement. In fact, it has just the power of the old dirify operator. DirifyES is aimed at archive mapping with fully human readable URLs. Continue reading.
En castellano: DirifyES: arreglando la función dirify, dirifyplus y dirify unicode para MovableType.
cgi-bin/plugins
directory.
<$MTCategoryLabel dirifyes="sld" $>/<$MTEntryTitle dirifyes="sld"$>.php
Cruzada y revolución: la Guerra Civil Española
-> cruzada-y-revolucion-la-guerra-civil-espanola-un-juego.php
El inglés es sólo un idioma más
-> el-ingles-es-solo-un-idioma-mas.php
If you are using dirify plus in fact you get these URLs:
-qua-aspecto-tiene-sap.php
-el-inglas-es-salo-un-idioma-mas.php
-cruzada-y-revolucian-la-guerra-civil-espanola-un-juego.php
which are still (but quirky) human readable, but are going to be badly indexed (if indexed at all).
We prefer to make our own operator rather than changing an existing one which somebody making a plugin expects to work as always. Of course, you don't need to be a crack to make this (you don't even need to understand the code). The fix is done changing dirifyplus, removing the call to convert_high_ascii and puting dirify-plus' convert_high_unicode instead.
Call to convert_high_unicode is done changing this line:
$s = convert_high_ascii($s); ## convert high-ASCII chars to 7bit
with this other:
$s = convert_high_unicode($s); ## convert high-ASCII chars to 7bit.
So, this way, we can have this archiving map:
<$MTCategoryLabel dirifyes="sld" $>/<$MTEntryTitle dirifyes="sld"$>.php
DirifyES gets just the same parameters as dirifyplus. We have been working with it for a year without problem. Feedback will be appreciated!
Resources:
Una página colectiva y ecléctica para comentar y apuntar cosas.
Estás viendo los archivos de Diciembre de 2006. Visita la portada para ver las últimas notas.
Si quieres curiosear, puedes consultar:
http://tira.escomposlinux.org
La tira ecol ha vuelto.