unicode - How to translate words literally? -


i want translate names of businesses literally.

i.e :

flafel adam want translate hebrew,

f -> פ l -> ל -> א . . . 

so פלאפל אדם

both names have same spelling ! don't care bout meaning , want have same spelling in both languages !

how ?

you use table lookup, i.e. table translates every character 1 language another. in obj-c, use nsdictionary initialize

nsdictionary *table = @{@"f": @"פ",                        @"l": @"ל",                        @"a": @"א"                        }; 

etc.
can translation e.g.

nsstring *translatedl = table[@"l"]; 

etc.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -