Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-08-26 00:24:58

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Dirifying currency symbols

I propose converting currency symbols to their 3-letter ISO 4217 code, ie adding the following to i18n-ascii.txt:

€ = “eur”
$ = “usd”
£ = “gbp”
¥ = “jpy”
₣ = “frf”
₪ = “nis”
₧ = “pts”

The last one (pesetas) is not converted to “esp” (ISO 4217 for spanish peseta) but is rather split to its compenent letters.

Last edited by Etz Haim (2005-08-26 00:52:00)

Offline

#2 2005-08-26 00:54:31

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Dirifying currency symbols

dumbDown is for words. Symbols and punctuation are stripped out by stripSpace.


Alex

Offline

#3 2005-08-26 01:02:55

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: Dirifying currency symbols

So, the above means that URL titles are first processed by stripSpace() first and then by dumbDown(), right?

Anyway, in the last few revisions, Textpattern’s i18n has greatly improved. Kudos to you, Sencer and Dean for this.

Offline

#4 2005-08-26 01:20:59

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Dirifying currency symbols

So, the above means that URL titles are first processed by stripSpace() first and then by dumbDown(), right?

Actually the other way around. If you add those items to i18n-ascii, they might work.

Point is, the intent of Textpattern’s dir-ify is to remove symbols, not transliterate them.


Alex

Offline

Board footer

Powered by FluxBB