å ¨è§è±æ°ãåè§ã«å¤æããjEditãã¯ã
æ¥æ¬äººã§ãjEditã便å©ã«ä½¿ãããã¨ããããã§ãé¸æç¯å²ã®å ¨è§è±æ°ãåè§ã«å¤æããjEditãã¯ããæ¸ãã¦ã¿ãã
ãã¼ã ãã£ã¬ã¯ããª/.jedit/macros ã«ã
ConvertWideCharToASCII.bshã¨ãããã¡ã¤ã«ãç½®ãã以ä¸ã®ã³ã¼ããè²¼ãä»ããã
void convertWideCharToASCII() { text = textArea.getSelectedText(); sb = new StringBuffer(); for(i = 0; i < text.length(); i++) { c = text.charAt(i); if(c >= 0xff01 && c <= 0xff5d) { c = c - 0xff01 + 0x0021; } else if(c == 0x3000) { c = ' '; } sb.append((char)c); } textArea.setSelectedText(sb.toString()); } if(buffer.isReadOnly()) Macros.error(view, "Buffer is read-only."); else convertWideCharToASCII();
ããã ããè¶ ç°¡åã§ããç®çã«åããã©ã°ã¤ã³ããã¯ããæ¢ãããã欲ããæååæä½ããã®ã¤ã©æ¸ãã»ãã楽ãããããªããLispã§åããã¨ããã¨è¨ããã¦ããã¡ãã£ã¨äºã®è¶³è¸ãããã
ãªãããã¹ãã¨ãã£ã¿ä¸ã§åããã¼ã«ãæ¸ããï¼ï¼ãã¡ã¤ã«åä½ã§å¤æãããã¼ã«ãä½ãã¨ããã¡ã¤ã«å ã®å ¨ããã¹ããå¤æããã¦ãã¾ãããä½ãããæä½ã®ãã³ã«ä¿åãçºçããã®ã¯é¢åã ãä¿åãã¦ãªããããã¡ã§ç·¨éã§ããã®ãããã
jEditã«JRubyãçµã¿è¾¼ãããããã£ã¨æ¥½ã§ãæ¥æ¬ã§ãã¦ã±ãã®ããªã