Skip to content

Instantly share code, notes, and snippets.

@yurfuwa-chan
Created December 15, 2011 09:03
Show Gist options
  • Save yurfuwa-chan/1480433 to your computer and use it in GitHub Desktop.
Save yurfuwa-chan/1480433 to your computer and use it in GitHub Desktop.
インスタンス名 _あ→_ア
var hira = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん"
var kana = "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン"
var selection = fl.getDocumentDOM().selection;
for each(var symbol in selection){
symbol.name = "_"+kana.charAt(hira.search(symbol.name.charAt(1)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment