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
Post a Comment