-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow capital letters in custom lessons #107
Comments
In case anyone else sees this, for reference, I made this change in my fork here. |
@mmaulwurff was there a specific reason you can recall that necessitated downcasing all letters in custom word lists/lessons? |
I don't remember why I did this. Possible reasons:
|
Would you consider either:
If you think that these suggestions aren't appropriate for your project, that's okay! I'd be happy to just continue tweaking my fork where I can :) |
I think removing all the limitations is the best idea. Letter case, allowed characters, word length - let it be decided by the text itself. Now I remember - the idea behind custom lesson was to allow the user throw any text at Typist and it would just work. That idea proved to be not feasible, as some preparation and manual filtering was always needed. |
So, if I understand your comment, you'd be in favor of getting rid of the If those specific filters need to be there for some reason, then I respect that, and I'm happy to close this issue. I'm planning to keep the altered conditions in my fork, though, but are there any landmines I should watch out for by keeping them in? |
I may have not expressed myself clearly. I'd be in favor of getting rid of filter functions altogether, and I see no disadvantages of that. Initially, I wanted to accept all kinds of text - like, full stories. Hence the filters - to extract words from the text. But then I found out that the best way to use custom lessons is with simple word lists. |
When reading in word lists for custom lessons, it seems that all words get lowercased.
typist.pk3/zscript/typist/lesson/custom_lesson.zs
Lines 65 to 67 in b38f5aa
For word lists that contain person or place names etc, it would great to be able to keep the original word case containing capital letters, perhaps in a config option(?), rather than have convert-to-lower be the default.
The text was updated successfully, but these errors were encountered: