Commit e3879842 authored by Olly Betts's avatar Olly Betts
Browse files

Adjust Danish algorithm not to mangle alphanumeric codes

We now define "consonant" more tightly than just "not a vowel",
which in particular means alphanumeric codes ending in a double digit
(e.g. 0x0e00, hal9000, space1999) are no longer mangled.

See #81.
parent db198aac
......@@ -12,7 +12,7 @@ strings ( ch )
integers ( p1 x )
groupings ( v s_ending )
groupings ( c v s_ending )
stringescapes {}
......@@ -22,6 +22,8 @@ stringdef ae '{U+00E6}'
stringdef ao '{U+00E5}'
stringdef o/ '{U+00F8}'
define c 'bcdfghjklmnpqrstvwxz'
define v 'aeiouy{ae}{ao}{o/}'
define s_ending 'abcdfghjklmnoprtvyz{ao}'
......@@ -73,7 +75,7 @@ backwardmode (
define undouble as (
setlimit tomark p1 for ([non-v] ->ch)
setlimit tomark p1 for ([c] ->ch)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment