home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1999 - Joune
-
- /**
- @Tool: HtmlToAccents~replace HTML code with French accents.
- @EndTool:
- @Summary: HtmlToAccents~replace HTML code with French accents.
- */
-
-
- 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
-
-