Open espertus opened 4 years ago
This may be a good issue for a prospective GSOC student to work on.
I would like to work on this feature .
@killbotXD To get started you'll want to familiarize yourself with how the existing upcase/lowercase block works. Here are the relevant files:
@killbotXD If interested, below is an old extension that I developed: https://amerkashi.wordpress.com/?s=textutils
I would like to work on this issue.
@kkashi01 I am very sorry for not being active. I had to travel from my college to home on very short notice last week due to the coronavirus outbreak and missed your comment.
yes, I am interested. I will start working this weekend asap.
@killbotXD To get started you'll want to familiarize yourself with how the existing upcase/lowercase block works. Here are the relevant files:
- Block definition: text.js
- Code generation: text.js
- Function definitions: runtime.scm
this was a very helpful comment. I would have had lost without these.
@ewpatton I needed some help with blockly. I am editing the source code but the changes are not being shown by the google cloud server.
After you've made changes to files under blocklyeditor, you will need to run ant noplay
to rebuild the site and then you can refresh in your browser.
okay. thanks alot.
Describe the desired feature
I would like for there to be a built-in
Text
function to capitalize a word. It could appear in the dropdown on the block withupcase
anddowncase
.Give an example of how this feature would be used
I am writing a word game and wants words to be displayed with the same capitalization, no matter how they are entered.
Why doesn't the current App Inventor system address this use case?
It can be completed using existing features. See attached block function. It just took extra work, and it surprised me that it wasn't provided.
Why is this feature beneficial to App Inventor's educational mission?
It makes it easier for users to get to the parts of programming specific to their app, not basic text functions. On the other hand, it is an interesting exercise to ask students to create it, and there is ambiguity in how it should behave: Would the capitalization of "abC" be "AbC" or "Abc"?
This would be a good first issue for an open source contributor.