AlphabeticStrings()

22 views
Skip to first unread message

Doris Behrendt

unread,
Aug 25, 2022, 2:28:52 AM8/25/22
to sage-...@googlegroups.com
Hi list,

this

A=AlphabeticStrings()
s='hellowörld'
A.encoding(s)

is throwing an error. Is there any possibility of enlarging the alphabet set by some chosen characters like german ü, ä, ö, ß?
I understand that it makes no sense to enlarge to the whole ASCII character set in *this* case, but I really would appreciate to have german umlauts.


Thanks in advance ...

Doris


Travis Scrimshaw

unread,
Aug 25, 2022, 3:22:36 AM8/25/22
to sage-devel
Hi Doris,
   What would their images be in this monoid? Their capital letter versions are not generators of the monoid. If you would like to work in a different (free) monoid, then you would need to implement it (not necessarily within Sage). If you just want to extend the encoding, say have ß -> SS and ü -> U, then you are probably best writing your own encoding function to handle these additional cases.

Best,
Travis
Reply all
Reply to author
Forward
0 new messages