Skip to content
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

Closed
3 of 4 tasks
Mr-Xcoder opened this issue Sep 3, 2018 · 4 comments
Closed
3 of 4 tasks

Ideas for new Commands / Constants #121

Mr-Xcoder opened this issue Sep 3, 2018 · 4 comments

Comments

@Mr-Xcoder
Copy link
Collaborator

Mr-Xcoder commented Sep 3, 2018

I've been thinking about this for a while now and it is apparent to me that the following would be really useful:

  • 2 ž-constants:
    • aeiouAEIOU (or AEIOUaeiou) – alias for žMDu«
    • aeiouyAEIOUY (or AEIOUYaeiouy) – alias for žODu«
  • 2 two-byte command:
    • Extended Transliteration / Replacement – I am not sure if one of the current commands already achieves this, to be honest – (maybe .‡): 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"
    • Interchange capitalisation (maybe ). 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):

lžMÃÙεžMDu«s5×Du«‡}»

Using the first suggestion, this could be 17 bytes:

lžMÃÙεž?s5×Du«‡}»

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.

@Mr-Xcoder
Copy link
Collaborator Author

Mr-Xcoder commented Sep 8, 2018

@Adriandmen Any thoughts on this? Edit: I accidentally closed and reopened the issue right away... Sorry :S

@Mr-Xcoder Mr-Xcoder reopened this Sep 8, 2018
@Adriandmen
Copy link
Owner

@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 [["AEIOU", "aeiou"], ["U", "u"]], would ["AEIOU", "aeiou"], ["U", "u"] (as two separate elements) work?

@Mr-Xcoder
Copy link
Collaborator Author

@Adriandmen That would work too for the extended transliteration command. It's up to you if you implement it or not anyway :)

@Mr-Xcoder
Copy link
Collaborator Author

Implemented, except for extended transliteration, in #122.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants