feat: add single-letter shortcuts + internationalization#160
Open
nojhan wants to merge 1 commit intoPythonTurtle:masterfrom
Open
feat: add single-letter shortcuts + internationalization#160nojhan wants to merge 1 commit intoPythonTurtle:masterfrom
nojhan wants to merge 1 commit intoPythonTurtle:masterfrom
Conversation
1) Adds single-letter shortcuts to the main commands.
This is useful for people having difficulties to type, e.g. people with disabilites.
This also allows for compact "functions", using the `do` and `repeat` commands with a string of letters
(e.g. `repeat("GLglGRgr",3)`.
Those also serve as an introduction to loops and can be localized.
The letters command are designed to allow for grid drawing, both on straight and diagonal segments:
- a = small (straight) go, A = large (diagonal) go,
- r/l = small (diagonal) turn, R/L = large (straight) turn.
2) Localize every menus and commands.
Currently with a french translation, but uses gettext (the standard tool for internationalization),
so can be easily ported to other languages.
Member
|
Sorry, I won't have time to consider these PR in the next three months.
It's a really busy time.
…On Mon, Jan 10, 2022, 18:57 nojhan ***@***.***> wrote:
1. Adds single-letter shortcuts to the main commands.
This is useful for people having difficulties typing, e.g. people with
disabilities.
This also allows for compact "functions", using the do and repeat
commands with a string of letters
(e.g. repeat("GLglGRgr",3).
Those also serve as an introduction to loops and can be localized.
The letters command are designed to allow for grid drawing, both on
straight and diagonal segments, for example:
- a = small (straight) go, A = large (diagonal) go,
- r/l = small (diagonal) turn, R/L = large (straight) turn.
1. Localize every menus and command.
Currently with a french translation, but uses gettext (the standard
tool for internationalization),
so can be easily ported to other languages.
------------------------------
You can view, comment on, or merge this pull request online at:
#160
Commit Summary
- fa3fe13
<fa3fe13>
feat: add single-letter shortcuts + internationalization
File Changes
(3 files <https://github.com/PythonTurtle/PythonTurtle/pull/160/files>)
- *M* pythonturtle/application.py
<https://github.com/PythonTurtle/PythonTurtle/pull/160/files#diff-d0a4c6a8aa66883c61560e2924fbcb07760d121632c239ffd07902ac6b6c0058>
(41)
- *A* pythonturtle/locale/fr_FR/LC_MESSAGES/turtle.po
<https://github.com/PythonTurtle/PythonTurtle/pull/160/files#diff-0c3a3f981de8fe4c0477ffe3ef2420cda1aab797922b263863f77221baf46d9e>
(136)
- *M* pythonturtle/turtleprocess.py
<https://github.com/PythonTurtle/PythonTurtle/pull/160/files#diff-a9958c990c9b254b28887f90efaff11c6b22c921e22fb9b7a7b08e6288ee0827>
(93)
Patch Links:
- https://github.com/PythonTurtle/PythonTurtle/pull/160.patch
- https://github.com/PythonTurtle/PythonTurtle/pull/160.diff
—
Reply to this email directly, view it on GitHub
<#160>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAN3STI4JA2XCQGXSHK46TUVMFVLANCNFSM5LUEVANQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Author
|
No problem, I'll merge them myself in the meantime. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is useful for people having difficulties typing, e.g. people with disabilities.
This also allows for compact "functions", using the
doandrepeatcommands with a string of letters(e.g.
repeat("GLglGRgr",3).Those also serve as an introduction to loops and can be localized.
The letters command are designed to allow for grid drawing, both on straight and diagonal segments, for example:
Currently with a french translation, but uses gettext (the standard tool for internationalization),
so can be easily ported to other languages.