Discuss Scratch

OmanScratch
Scratcher
6 posts

Can I use Arabic numbers?

Hi everybody,
Can you help me in this issue, Can I use Arabic numbers (or any numbers rather than English) in way like “pick random” block
I want to pick random number and appear in screen in Arabic with out need to convert it to a string.

I hope my issue is clear ,
Thanks and waiting for your replies
MClovers
Scratcher
1000+ posts

Can I use Arabic numbers?

Do you mean putting Arabic numbers in the pick random block?

President of Scratch ShopBux
footsocktoe
Scratcher
1000+ posts

Can I use Arabic numbers?

OmanScratch wrote:

Hi everybody,
Can you help me in this issue, Can I use Arabic numbers (or any numbers rather than English) in way like “pick random” block
I want to pick random number and appear in screen in Arabic with out need to convert it to a string.

I hope my issue is clear ,
Thanks and waiting for your replies

I think you are confused about what “Arabic numbers” are. Usually that term refers to the numbers we use every day, the ones you called “English numbers”. Of course, there ARE different-looking numbers in the Arabic language itself, but I don't think you mean that, do you?

If you do, then no, the only number systems Scratch recognizes are the standard decimal and hexadecimal number systems. ( I don't know if the pick random block will do hex. Probably not.)

Last edited by footsocktoe (April 22, 2017 02:20:26)



SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

OmanScratch
Scratcher
6 posts

Can I use Arabic numbers?

MClovers wrote:

Do you mean putting Arabic numbers in the pick random block?
yes , I want to do multiplication method and I want to show results in Arabic numbers
in way to use random numbers in pick random block as first and second number to show the result as an arabic number

it is for school kids (it should be in arabic )
OmanScratch
Scratcher
6 posts

Can I use Arabic numbers?

footsocktoe wrote:

OmanScratch wrote:

Hi everybody,
Can you help me in this issue, Can I use Arabic numbers (or any numbers rather than English) in way like “pick random” block
I want to pick random number and appear in screen in Arabic with out need to convert it to a string.

I hope my issue is clear ,
Thanks and waiting for your replies

I think you are confused about what “Arabic numbers” are. Usually that term refers to the numbers we use every day, the ones you called “English numbers”. Of course, there ARE different-looking numbers in the Arabic language itself, but I don't think you mean that, do you?

If you do, then no, the only number systems Scratch recognizes are the standard decimal and hexadecimal number systems. ( I don't know if the pick random block will do hex. Probably not.)

numbers of first line
https://s-media-cache-ak0.pinimg.com/736x/aa/d6/60/aad660b5e71b8714051c51f16e76d5ef.jpg
KingOfAwesome58219
Scratcher
1000+ posts

Can I use Arabic numbers?

The Arabic numeral system is the same numeric system used in English (and many, if not most, other languages). Your project should already show in Arabic numbers, whether or not the website is in English or Arabic.



OmanScratch
Scratcher
6 posts

Can I use Arabic numbers?

KingOfAwesome58219 wrote:

The Arabic numeral system is the same numeric system used in English (and many, if not most, other languages). Your project should already show in Arabic numbers, whether or not the website is in English or Arabic.
I mean this types of numbers.

wikipedia link
OmanScratch
Scratcher
6 posts

Can I use Arabic numbers?

I solve that problem by using list and put the numbers as string then sort numbers in order. ( at the end it is a problem solving)
I was very happy till I find out that when I upload the game to website , the numbers change to English !!

any suggestion
footsocktoe
Scratcher
1000+ posts

Can I use Arabic numbers?

OmanScratch wrote:

I solve that problem by using list and put the numbers as string then sort numbers in order. ( at the end it is a problem solving)
I was very happy till I find out that when I upload the game to website , the numbers change to English !!

any suggestion

It probably has something to do with when you choose what language you want Scratch to be in.

The solution is to upload the desired numerals as images (the image you linked to would be a good source image), doing it either as 10 sprites or as 10 costumes of one sprite. Then in your project convert the standard numerals to their appropriate images for displaying them on the screen. In other words, it's like a text engine and you are creating a new font.

Last edited by footsocktoe (April 22, 2017 16:28:18)



SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

OmanScratch
Scratcher
6 posts

Can I use Arabic numbers?

footsocktoe wrote:

OmanScratch wrote:

I solve that problem by using list and put the numbers as string then sort numbers in order. ( at the end it is a problem solving)
I was very happy till I find out that when I upload the game to website , the numbers change to English !!

any suggestion

It probably has something to do with when you choose what language you want Scratch to be in.

The solution is to upload the desired numerals as images (the image you linked to would be a good source image), doing it either as 10 sprites or as 10 costumes of one sprite. Then in your project convert the standard numerals to their appropriate images for displaying them on the screen. In other words, it's like a text engine and you are creating a new font.

wow, great idea , thank you very much.

Powered by DjangoBB