mit-cml / appinventor-sources

MIT App Inventor Public Open Source
http://appinventor.mit.edu/appinventor-sources/
Apache License 2.0
1.5k stars 2.08k forks source link

Add capitalize to upcase/downcase #1969

Open espertus opened 4 years ago

espertus commented 4 years ago

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 with upcase and downcase.

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.

capitalize procedure

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.

ewpatton commented 4 years ago

This may be a good issue for a prospective GSOC student to work on.

killbotXD commented 4 years ago

I would like to work on this feature .

ewpatton commented 4 years ago

@killbotXD To get started you'll want to familiarize yourself with how the existing upcase/lowercase block works. Here are the relevant files:

kkashi01 commented 4 years ago

@killbotXD If interested, below is an old extension that I developed: https://amerkashi.wordpress.com/?s=textutils

Mishrasubha commented 4 years ago

I would like to work on this issue.

killbotXD commented 4 years ago

@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 commented 4 years ago

@killbotXD To get started you'll want to familiarize yourself with how the existing upcase/lowercase block works. Here are the relevant files:

this was a very helpful comment. I would have had lost without these.

killbotXD commented 4 years ago

@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.

ewpatton commented 4 years ago

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.

killbotXD commented 4 years ago

okay. thanks alot.