Forked from theamnesic/Name Mangler advanced snippet
Created
November 22, 2012 19:42
-
-
Save petermaurer/4132667 to your computer and use it in GitHub Desktop.
Hardcore evil characters cleaner for Name Mangler (shortened, fixed "g" equivalents, some other minor changes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[findRegularExpression "[ÀàÁáÂâÃãÄäÅåĀāĂ㥹ǞǟǺǻ]", <name>, "a"] | |
[findRegularExpression "[ÆæǼǽ]", <name>, "ae"] | |
[findRegularExpression "[Ḃḃ]", <name>, "b"] | |
[findRegularExpression "[ĆćÇçČčĈĉĊċ]", <name>, "c"] | |
[findRegularExpression "[ḐḑĎďḊḋĐđÐðDZdzDŽdž]", <name>, "d"] | |
[findRegularExpression "[ÈèÉéĚěÊêËëĒēĔĕĘęĖėƷʒǮǯ]", <name>, "e"] | |
[findRegularExpression "[Ḟḟƒfffiflffifflſt]", <name>, "f"] | |
[findRegularExpression "[ǴǵĢģǦǧĜĝĞğĠġǤǥ]", <name>, "g"] | |
[findRegularExpression "[ĤĥĦħ]", <name>, "h"] | |
[findRegularExpression "[ÌìÍíÎîĨĩÏïĪīĬĭĮįİıIJij]", <name>, "i"] | |
[findRegularExpression "[Ĵĵ]", <name>, "j"] | |
[findRegularExpression "[ḰḱĶķǨǩĸ]", <name>, "k"] | |
[findRegularExpression "[ĹĺĻļĽľĿŀŁłLJlj]", <name>, "l"] | |
[findRegularExpression "[Ṁṁ]", <name>, "m"] | |
[findRegularExpression "[ŃńŅņŇňÑñʼnŊŋNJnj]", <name>, "n"] | |
[findRegularExpression "[ÒòÓóÔôÕõÖöŌōŎŏØøŐőǾǿŒœ]", <name>, "o"] | |
[findRegularExpression "[Ṗṗ]", <name>, "p"] | |
[findRegularExpression "[ŔŕŖŗŘřɼ]", <name>, "r"] | |
[findRegularExpression "[ŚśŞşŠšŜŝṠṡſ]", <name>, "s"] | |
[findRegularExpression "[ß]", <name>, "ss"] | |
[findRegularExpression "[ŢţŤťṪṫŦŧÞþ]", <name>, "t"] | |
[findRegularExpression "[ÙùÚúÛûŨũÜüŮůŪūŬŭŲųŰű]", <name>, "u"] | |
[findRegularExpression "[ẀẁẂẃŴŵẄẅ]", <name>, "w"] | |
[findRegularExpression "[ỲỳÝýŶŷŸÿ]", <name>, "y"] | |
[findRegularExpression "[ŹźŽžŻż]", <name>, "z"] | |
[findRegularExpression "[-–—‾_,;:!¡\?¿.…·'‘’‚‹›“”„«»\(\)\[\]\{\}§¶@*/&#%‰†‡•`´^¯¨¸°©®←→↑↓+±÷×<=>¬|¦~●♠♣♥♦¤¢$£¥¹½¼²³¾ªº™αβγδεζηθικλμνξοπρστυφχψω ]+", <name>, "-"] | |
[lowercase | |
[concatenate <name>, <.extension>] | |
] |
This saved me a lot of time today, so thank you. As to the # character, I simply escaped it with a \ and it worked perfectly in the current version. Renamed as expected.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @petermaurer !
4 years after (!), our snippet does not work anymore ...
https://infinit.io/_/YkSGQz7
The problem comes from the # character on the last regex.
I don't understand why ... Any idea ?
Thanks!
— G