// This is a recorded macro. First, check over the // commands to make sure this is what you intended. Then, // save this buffer, and the macro should appear in the // Macros menu. import java.util.*; Hashtable ht = new Hashtable(); ht.put(" ", " "); ht.put("¢", "¢ "); ht.put("£", "£"); ht.put("¤", "¤"); ht.put("¥", "¥"); ht.put("¦", "¦"); ht.put("§", "§"); ht.put("¨", "¨"); ht.put("©", "©"); ht.put("ª", "ª"); ht.put("«", "«"); ht.put("¬", "¬"); ht.put("®", "® "); ht.put("¯", "¯"); ht.put("°", "°"); ht.put("±", "±"); ht.put("²", "²"); ht.put("³", "³"); ht.put("´", "´"); ht.put("µ", "µ"); ht.put("¶", "¶"); ht.put("·", "·"); ht.put("¸", "¸"); ht.put("¹", "¹"); ht.put("º", "º"); ht.put("»", "»"); ht.put("¼", "¼"); ht.put("½", "½"); ht.put("¾", "¾"); ht.put("¿", "¿"); ht.put("À", "À"); ht.put("Á", "Á"); ht.put("Â", "Â"); ht.put("Ã", "Ã"); ht.put("Ä", "Ä"); ht.put("Å", "Å"); ht.put("Æ", "Æ"); ht.put("Ç", "Ç"); ht.put("È", "È"); ht.put("É", "É"); ht.put("Ê", "Ê"); ht.put("Ë", "Ë"); ht.put("Ì", "Ì"); ht.put("Í", "Í"); ht.put("Î", "Î"); ht.put("Ï", "Ï"); ht.put("ð", "ð"); ht.put("Ñ", "Ñ"); ht.put("Ò", "Ò"); ht.put("Ó", "Ó"); ht.put("Ô", "Ô"); ht.put("Õ", "Õ"); ht.put("Ö", "Ö"); ht.put("×", "×"); ht.put("Ø", "Ø"); ht.put("Ù", "Ù"); ht.put("Ú", "Ú"); ht.put("Û", "Û"); ht.put("Ü", "Ü"); ht.put("Ý", "Ý"); ht.put("þ", "þ"); ht.put("ß", "ß"); ht.put("à", "à"); ht.put("á", "á"); ht.put("â", "â"); ht.put("ã", "ã"); ht.put("ä", "ä"); ht.put("å", "å"); ht.put("æ", "æ"); ht.put("ç", "ç"); ht.put("è", "è"); ht.put("é", "é"); ht.put("ê", "ê"); ht.put("ë", "ë"); ht.put("ì", "ì"); ht.put("í", "í"); ht.put("î", "î"); ht.put("ï", "ï"); ht.put("ð", "ð"); ht.put("ñ", "ñ"); ht.put("ò", "ò"); ht.put("ó", "ó"); ht.put("ô", "ô"); ht.put("õ", "õ"); ht.put("ö", "ö"); ht.put("÷", "÷"); ht.put("ø", "ø"); ht.put("ù", "ù"); ht.put("ú", "ú"); ht.put("û", "û"); ht.put("ü", "ü"); ht.put("ý", "ý"); ht.put("þ", "þ"); ht.put("ÿ", "ÿ"); String strsearch = ""; String strreplace = ""; for( Enumeration e = ht.keys(); e.hasMoreElements(); ){ strsearch = (String) e.nextElement(); strreplace = (String) ht.get(strsearch); SearchAndReplace.setSearchString(strsearch); SearchAndReplace.setReplaceString(strreplace); SearchAndReplace.setBeanShellReplace(false); SearchAndReplace.setIgnoreCase(false); SearchAndReplace.setRegexp(false); SearchAndReplace.replace(view); } ht = null; strsearch = null; strreplace = null; //Macros.message(view, "Conversione avvenuta con successo !!!!");