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

Add rudimentary morse mode #19

Merged
merged 3 commits into from
May 28, 2021
Merged

Add rudimentary morse mode #19

merged 3 commits into from
May 28, 2021

Conversation

aerickt
Copy link
Contributor

@aerickt aerickt commented May 26, 2021

I wanted to add a mode to translate text into Morse code, but it doesn't work as well as I'd hoped. Currently I have the every letter mapped to its translation in Morse and also with a space after it. This is not really ideal, but I couldn't figure out a way to put a space in between every character. I also couldn't figure out if I can change the space character between words to a slash, so currently I'm just using {:fancytext_set:morse}{MODE:SET_SPACE:/}.

I'm not sure if this is something you want to improve, but I'm opening this PR just in case it is something you're interested in.

@aerickt
Copy link
Contributor Author

aerickt commented May 26, 2021

Oh and also stroking TK-LS will reset the mode, bizarrely.
I might look into this later.

Space characters for multiword briefs also don't get translated into slashes.

@psethwick
Copy link
Owner

Siiick, love it!

I got some thoughts for tidy up on the spaces. Plan would be to extend the substitute class and return ' '.join(characters) there. I don't mind picking that up if you don't follow, let me know!

The TK-LS thing I've seen before, it's definitely unrelated to your changes. Probably belongs in a separate issue

@aerickt
Copy link
Contributor Author

aerickt commented May 26, 2021

Nice! Everything I've done in this PR is all I really can do (not a programmer). You can absolutely pick up from where I left off. Thanks again for this awesome plugin!

@psethwick
Copy link
Owner

Not a problem at all! Thanks for the pr!

@psethwick psethwick merged commit 5f86ecf into psethwick:master May 28, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants