-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ideas for new Commands / Constants #121
Comments
@Adriandmen Any thoughts on this? Edit: I accidentally closed and reopened the issue right away... Sorry :S |
@Mr-Xcoder Thank you for the suggestion! I have implemented the constants and the capitalization exchange command: #122. I'm not sure about the extended transliteration/replacement command. The way the parameters should be given looks very clumsy. Perhaps rather than |
@Adriandmen That would work too for the extended transliteration command. It's up to you if you implement it or not anyway :) |
Implemented, except for extended transliteration, in #122. |
I've been thinking about this for a while now and it is apparent to me that the following would be really useful:
ž
-constants:aeiouAEIOU
(orAEIOUaeiou
) – alias foržMDu«
aeiouyAEIOUY
(orAEIOUYaeiouy
) – alias foržODu«
.‡
): Given a string and a list containing the replacements achieve something like this:"Elephant" [["AEIOU", "aeiou"], ["U", "u"]] .‡
(I prefer this one) or"Elephant" [["AEIOU", "U"], ["aeiou", "u"]] .‡
would yield"Uluphunt"
. Overloads for standalone strings rather than arrays would also be cool:"elephant" "aeiou" "u"
would yield"uluphunt"
.Ï
). Example:"CoDeGoLf" "abcdefgh" .Ï
would yield"AbCdEfGh"
. In case the two strings would not match in length, the remaining characters would just be left as-is.Example where those all could be useful – The current answer is (20 bytes):
Using the first suggestion, this could be 17 bytes:
Using extended transliteration alongside interchanging capitalisation would be even stronger. An outline of the technique: Keep only the vowels, deduplicate, map over those, extended transliterate from
aeiou
to the current vowel (y
), then interchange capitalisation with the input and join by newlines.The text was updated successfully, but these errors were encountered: