lyoutakoduka / spartaproject

MIT License
0 stars 0 forks source link

Replace character other than alphabets and numbers to specific character. #59

Closed lyoutakoduka closed 3 months ago

lyoutakoduka commented 4 months ago

Related development: https://github.com/lyoutakoduka/spartaproject/issues/41#issue-2217069442

https://github.com/lyoutakoduka/spartaproject/blob/e50ca35166258b42ba88e6e9ef33dc78e5d64046/pyspartaproj/script/string/standardize_text.py#L22

Currently, module to convert string used for keys of custom dictionary support following 3 characters.

Space: " "
Dot: "."
Hyphen: "-"

On this update, these characters are expanded to all characters other than alphabets and numbers.

Module "grouped_characters" is used to get character other than alphabets and numbers.

https://github.com/lyoutakoduka/spartaproject/blob/e50ca35166258b42ba88e6e9ef33dc78e5d64046/pyspartaproj/script/string/rename/grouped_characters.py#L11

In addition, I newly create module to get Split Identifier like under bar character.