AppleScript";“翻译”;功能
我正试图找到一种写俄语的方法,但是要用拉丁字符(参见idea translatit.ru) 我的想法是写一个AppleScript smth,比如:->selectedtext->translatitAppleScript";“翻译”;功能,applescript,transliteration,cyrillic,Applescript,Transliteration,Cyrillic,我正试图找到一种写俄语的方法,但是要用拉丁字符(参见idea translatit.ru) 我的想法是写一个AppleScript smth,比如:->selectedtext->translatit Hpw dp我在ActionScript中使用字符串替换字符?用西里尔字母转换拉丁语是第一个重要的问题。它是Unicode还是拉丁和西里尔字符编码之间的转换 你要求用一个例子来代替一个又一个的角色,我可以给你一个例子来说明它是如何工作的。当然还有很多其他的例子,但是这里您可以根据自己的喜好更改so
Hpw dp我在ActionScript中使用字符串替换字符?用西里尔字母转换拉丁语是第一个重要的问题。它是Unicode还是拉丁和西里尔字符编码之间的转换 你要求用一个例子来代替一个又一个的角色,我可以给你一个例子来说明它是如何工作的。当然还有很多其他的例子,但是这里您可以根据自己的喜好更改sourcelist和targetlist
set theString to "Hello World!"
set sourceList to "abcdefghijklmnopqrstuvwxyz"
set targetList to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
set newString to {}
repeat with theChar in theString
set o to offset of theChar in sourceList
if o is 0 then
set end of newString to contents of theChar
else
set end of newString to character o of targetList
end if
end repeat
return newString as string