Discuss Scratch

forkmanb
Scratcher
100+ posts

Unicode blocks

forkmanb wrote:

support… though wouldn't it be easier to not make a separate block and just make it an option of the “___ of” block?
[unicode v] of (put this here) :: operators
idk.. maybe someone has put this out there in the 10 pages this suggestion has.
(edited to make it clearer)

Last edited by forkmanb (Oct. 17, 2023 19:32:11)

TWY_
Scratcher
12 posts

Unicode blocks

forkmanb wrote:

support… though wouldn't it be easier to not make a separate block and just make it an option of the “___ of” block?
([unicode v] of (put this here))::green
idk.. maybe someone has put this out there in the 10 pages this suggestion has.

I suppose this may be included somewhere.

To my knowledge, I think currently the only block that returns a number from a text (string) is the (length of) that can be grouped together with.

However, some minor difference is that unicode (or something like case-sensing) blocks should typically take only 1 character no matter how many characters are received. This contradicts the length block, which is supposed to accept input of arbitrary length.

This may also raise an unsolved issue about whether the code of the first character, -1, false, or other output (e.g. all codepoints concatenated by space character) to be returned if the input to some (get code of) block is empty, or contains more than 1 characters.

Last edited by TWY_ (Oct. 21, 2023 10:07:27)

cookieclickerer33
Scratcher
1000+ posts

Unicode blocks

Here’s something

What if the provided string has move than 1 character in it
mumu245
Scratcher
1000+ posts

Unicode blocks

cookieclickerer33 wrote:

(#203)
Here’s something

What if the provided string has move than 1 character in it
It could only check for the first one, or return a list of codepoints.
KingRat_1
Scratcher
100+ posts

Unicode blocks

support would make cloud variables waaaaaaaaay easier
-Cubism007-
Scratcher
500+ posts

Unicode blocks

KingRat_1 wrote:

support would make cloud variables waaaaaaaaay easier
I know, but that would also make it easier to make chatroons on Scratch.
cookieclickerer33
Scratcher
1000+ posts

Unicode blocks

mumu245 wrote:

cookieclickerer33 wrote:

(#203)
Here’s something

What if the provided string has move than 1 character in it
It could only check for the first one, or return a list of codepoints.
How would that work?
Thiago_le_meilleur
Scratcher
1000+ posts

Unicode blocks

Support.
We would have more need to look for the character on the web.
wilhelm43
Scratcher
1000+ posts

Unicode blocks

Not Unicode but ASCII…anyway, use as a case detector is certainly interesting.
Support.
mumu245
Scratcher
1000+ posts

Unicode blocks

wilhelm43 wrote:

(#209)
Not Unicode but ASCII
It should support Unicode: ASCII is a subset of unicode.
thepianokid9378
Scratcher
4 posts

Unicode blocks

I SUPPORT this thread so much

Last edited by thepianokid9378 (Dec. 14, 2023 20:31:27)

50_scratch_tabs
Scratcher
1000+ posts

Unicode blocks

Support, the workarounds take up lots of project data space and it could be dumbed down to “character with number ()” and "number of character []". New users would likely quickly find that each character had a different number.

Last edited by 50_scratch_tabs (Jan. 30, 2025 21:22:58)

Powered by DjangoBB