|
For my job I'm taking a bunch of words written in a phonetic alphabet, and converting them to another phonetic alphabet. Essentially this is the same as transliteration. First, I looked for some sort of transliteration module or such, but they're all preset for Latin<->Cyrillic and aren't customizable in the least. Second, I found some selection.replace macros for Excel, which do what I need except for one thing, I'm dealing with unicode phonetic symbols. For example: code:
What I need this code to do, it take something like "tɬ" as input, and output "ʟ̣" I could normally just use the Find/Replace window but I need to do this with 100 separate worksheets. Alternatively if there was some sort of easier way to accomplish this, that would be great too!
|
# ¿ Nov 3, 2010 19:42 |
|
|
# ¿ May 5, 2024 22:11 |
|
gwar3k1 posted:Does simple concatenation work: "ChrW(&Hxxx) & ChrW(&Hxxx)" Excellent. code:
Except I don't quite understand what your second macro does (I'm a Linguist and all I have is one year of computer science under my belt), all of my data is formatted so that column C contains the empty fields that I need to put the translation into, and column E contains the source.
|
# ¿ Nov 3, 2010 20:23 |
|
gwar3k1 posted:Sorry, the macro assumes you have a sheet named "TransLookup". On that sheet you have a column (A) which contains your original characters, and a second column (B) which contains the characters that col A should be changed to. I'm assuming your task is as simple as "change xx to yy" without any conditions (i.e. not accounting for "change xx to yy but if xx preceeds xxz then change it to ccc"). Yeah that does, thank you very much. And it greatly simplifies matters!
|
# ¿ Nov 3, 2010 23:04 |