Help me to optimize the blocks

its work only with “Z” ( last letter ) :pensive:

A Dictionary is basically a list of key and value pairs. You can use it to make a mapping of the characters to its replacement. If you know JSON, it is similar to Objects.

https://docs.kodular.io/blocks/dictionaries/

Here’s an example of using Dictionaries for character mapping which is exactly what you are looking for: Chars exchanges. Dictionary. Json to csv. Transliteration - Tutorials and Guides - MIT App Inventor Community

2 Likes

Show your blocks

1 Like

this is my block according to your suggestion

Here is a little example

6 Likes

And if you want to simplify:
First make this dictionary, then press Do it.

Copy the result

Use that this extension to convert the copied text to dictionary

Delete all dictionary blocks.
Do the same as my previous post to replace text

2 Likes

Well @WatermelonIce already gave you block.
But if you are using for then you have to use
For I in list : your list
Replace item I
With item in list2
index: of i in list 1

2 Likes

Thanks for helping me , but can you help me without using Dictionary blocks :grin:

what you mean by For I in list

There is a block in list category
For item in list

1 Like

Why?


This uses the dictionary blocks, but after all the dictionary blocks is not needed

1 Like


Is my blocks correct ?

See here

1 Like

Thanks to all who tried to solve my problem.
And a big thanks to @ WatermelonIce :grin:
I watched some tutorials about Dictionary Blocks from Youtube and implement logic which is given by @ WatermelonIce. then i am getting output as i expected. so i want to say @ WatermelonIce and and Dictionary Blocks is very Amazing. :grin: :heart_eyes:

2 Likes

@pavi2410 is the one suggest using dictionary :sweat_smile:
Anyways I’m glad I helped you :smile:

Why don’t you search for that font and use it?!

I don’t understand :thinking:

if he is willing to change evey text with that desired font,
why not to import that font.
:thinking:

Maybe that is not a font? I don’t know.
Or s/he is making apps that make special character for users