Closed kkaiser closed 5 years ago
The _clean_chars()
function is part of the internal API of the util module and not really meant for consumption, except for through the clean()
function (which in turn is part of the internap API for python-stdnum.
There are other libraries that can deal with general unicode to ascii conversion such as Unidecode.
I did however add your above list in ad96b15.
In
stdnum.utils._clean_chars
you use a_char_map
to replace unicode chars. I was wondering if you can make_char_map
an optional argument for_clean_chars
so that I could add some more symbols. In this case I would like it for apostrophes:If you think that is useful you can also just add it but maybe others would want something similar if they deal with that type of data.