how to create unicode characters based on character number? many copy/pasted characters in the source code show as a sequence of characters, useless for inserting unicode characters
Offline
I'm not sure what you mean... are you saying some unicode characters don't work in Scratch? Because I think they all do...
Offline
try the character 'ϕ' or 'Φ' (what I am trying to make)
the question is how to input them onto the blocks by the unicode number
Last edited by Interest (2013-02-13 18:37:04)
Offline
You probably can't. You could just copy and paste the character instead, or possibly create two lists which map each unicode number to its symbol.
Offline
Interest wrote:
try the character 'ϕ' or 'Φ' (what I am trying to make)
the question is how to input them onto the blocks by the unicode number
Both characters work for me in 1.4 and 2.0.
Offline
lemonpretzel wrote:
You probably can't. You could just copy and paste the character instead, or possibly create two lists which map each unicode number to its symbol.
how?
veggieman001 wrote:
Interest wrote:
try the character 'ϕ' or 'Φ' (what I am trying to make)
the question is how to input them onto the blocks by the unicode numberBoth characters work for me in 1.4 and 2.0.
I mean in the source code
it does work fine on dialogs, scratch text boxes, scratch variables, etc.
Offline
Interest wrote:
veggieman001 wrote:
Interest wrote:
try the character 'ϕ' or 'Φ' (what I am trying to make)
the question is how to input them onto the blocks by the unicode numberBoth characters work for me in 1.4 and 2.0.
I mean in the source code
it does work fine on dialogs, scratch text boxes, scratch variables, etc.
Oh.
Alt-232 and Alt-237 insert uppercase and lowercase phis, respectively, on Windows. It renders for me as a box in the system browser; I believe this is because that font doesn't support the symbol. However, it may display properly in the actual Scratch skin (I don't know enough to test or find out, though).
Offline
veggieman001 wrote:
Interest wrote:
veggieman001 wrote:
Both characters work for me in 1.4 and 2.0.
I mean in the source code
it does work fine on dialogs, scratch text boxes, scratch variables, etc.Oh.
Alt-232 and Alt-237 insert uppercase and lowercase phis, respectively, on Windows. It renders for me as a box in the system browser; I believe this is because that font doesn't support the symbol. However, it may display properly in the actual Scratch skin (I don't know enough to test or find out, though).
three things:
1. I am using a mac
2. copy/pasting gives two separate characters for me
3. in scratch skin, they load correctly (for example, in the variable names)
Offline
You can create them from their character code using the Char class.
Offline
LS97 wrote:
You can create them from their character code using the Char class.
… from 1 to 255. However, Unicode character 981 cannot be created with the Character class.
Offline
Interest wrote:
LS97 wrote:
You can create them from their character code using the Char class.
… from 1 to 255. However, Unicode character 981 cannot be created with the Character class.
Oh, ok. Then maybe (I haven't looked into this) you can use the UTF32 to some extent.
Offline
LS97 wrote:
Interest wrote:
LS97 wrote:
You can create them from their character code using the Char class.
… from 1 to 255. However, Unicode character 981 cannot be created with the Character class.
Oh, ok. Then maybe (I haven't looked into this) you can use the UTF32 to some extent.
the problem is, I don't know how
Offline
Interest wrote:
veggieman001 wrote:
Interest wrote:
I mean in the source code
it does work fine on dialogs, scratch text boxes, scratch variables, etc.Oh.
Alt-232 and Alt-237 insert uppercase and lowercase phis, respectively, on Windows. It renders for me as a box in the system browser; I believe this is because that font doesn't support the symbol. However, it may display properly in the actual Scratch skin (I don't know enough to test or find out, though).three things:
1. I am using a mac
2. copy/pasting gives two separate characters for me
3. in scratch skin, they load correctly (for example, in the variable names)
Remap your keyboard layout to include phi temporarily?
Offline
veggieman001 wrote:
Interest wrote:
veggieman001 wrote:
Oh.
Alt-232 and Alt-237 insert uppercase and lowercase phis, respectively, on Windows. It renders for me as a box in the system browser; I believe this is because that font doesn't support the symbol. However, it may display properly in the actual Scratch skin (I don't know enough to test or find out, though).three things:
1. I am using a mac
2. copy/pasting gives two separate characters for me
3. in scratch skin, they load correctly (for example, in the variable names)Remap your keyboard layout to include phi temporarily?
1. how?
2. probably won't work (see point #2 above)
Offline
Are you trying to use this in a block? Because if so, you can go around the problem by imitating the turn cw X degrees motion block (since it has a little image instead of the word clockwise).
To do that there is a method in CommandBlockMorph I think.
Offline