home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1999 - Joune
-
- /**
- @Tool: AccentsToHtml~replace French accents with HTML code.
- @EndTool:
- @Summary: AccentsToHtml~replace French accents with HTML code.
- */
-
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- // └ α ┬ Γ ╚ ╔ ╩ ╦ Φ Θ Ω δ ╧ ╬ ∩ ε ╘ ⌠ ╓ ÷ ┘ ∙ █ √ ▄ ⁿ ╟ τ
- var findData = editor.findFirst("└", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("À", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("α", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("à", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("┬", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Â", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("Γ", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("â", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╚", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("È", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╔", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("É", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╩", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ê", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╦", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ë", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("Φ", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("è", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("Θ", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("é", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("Ω", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ê", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("δ", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ë", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╧", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ï", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╬", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Î", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("∩", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ï", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("ε", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("î", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╘", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ô", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("⌠", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ô", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╓", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ö", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("÷", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ö", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("┘", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ù", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("∙", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ö", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("█", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Û", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("√", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("û", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("▄", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ü", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("ⁿ", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ü", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("╟", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("Ç", findData);
- editor.findNext(findData);
- }
-
- var findData = editor.findFirst("τ", 0, 0, true, true, true);
- while (findData && findData.found)
- {
- editor.replace("ç", findData);
- editor.findNext(findData);
- }
-
- editor.setActive("Accents To HTML");
- }
- }
-
- !!/Script
-
-