summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-10-11 11:10:34 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-10-11 11:10:34 +0200
commit176ae32b3f32b45a6ff8c81921aa9fbed2e28ace (patch)
treec8abf4a6964f83b6772c93ef741de35f3167a797 /_test
parent3adb34502b7478af0367f6960bf8bc3aba506b44 (diff)
downloadrpg-176ae32b3f32b45a6ff8c81921aa9fbed2e28ace.tar.gz
rpg-176ae32b3f32b45a6ff8c81921aa9fbed2e28ace.tar.bz2
Do romanization of certain characters different from what deaccent does FS#1117
Some characters are deaccented/romanized different in different languages, we now do one way in deaccent and the other way in romanize. Giving the user a choice what she prefers. (Currently affects a handful scandinavian letters). darcs-hash:20081011091034-7ad00-08535e03639b0b0c634e2438609ac10545f14f48.gz
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/utf8_romanize.test.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/_test/cases/inc/utf8_romanize.test.php b/_test/cases/inc/utf8_romanize.test.php
index 28595b594..9aade570b 100644
--- a/_test/cases/inc/utf8_romanize.test.php
+++ b/_test/cases/inc/utf8_romanize.test.php
@@ -22,5 +22,15 @@ class utf8_romanize_test extends UnitTestCase {
$line++;
}
}
+
+ /**
+ * Test romanization of character that would usually be deaccented in a different
+ * way FS#1117
+ *
+ * @author Andreas Gohr <andi@splitbrain.org>
+ */
+ function test_deaccented(){
+ $this->assertEqual("a A a A a o O",utf8_romanize("å Å ä Ä ä ö Ö"));
+ }
}
//Setup VIM: ex: et ts=4 enc=utf-8 :