home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / HTMLTOACCENTS.SCRIPT < prev    next >
Encoding:
Text File  |  1999-06-24  |  5.5 KB  |  219 lines

  1. !!Script
  2. // Copyright ⌐ 1999 - Joune
  3.  
  4. /**
  5. @Tool: HtmlToAccents~replace HTML code with French accents. 
  6. @EndTool: 
  7. @Summary: HtmlToAccents~replace HTML code with French accents.
  8. */
  9.  
  10.  
  11. function DoCommand()
  12. {
  13.     var editor = getActiveEditor();
  14.     if (editor)
  15.     {
  16.         // └ α ┬ Γ ╚ ╔ ╩ ╦ Φ Θ Ω δ ╧ ╬ ∩ ε ╘ ⌠ ╓ ÷ ┘ ∙ █ √ ▄ ⁿ ╟ τ
  17.         var findData = editor.findFirst("À", 0, 0, true, true, true);
  18.         while (findData && findData.found)
  19.         {
  20.             editor.replace("└", findData);
  21.             editor.findNext(findData);
  22.         }
  23.         
  24.     var findData = editor.findFirst("à", 0, 0, true, true, true);
  25.         while (findData && findData.found)
  26.         {
  27.             editor.replace("α", findData);
  28.             editor.findNext(findData);
  29.         }
  30.         
  31.         var findData = editor.findFirst("Â", 0, 0, true, true, true);
  32.         while (findData && findData.found)
  33.         {
  34.             editor.replace("┬", findData);
  35.             editor.findNext(findData);
  36.         }
  37.         
  38.         var findData = editor.findFirst("â", 0, 0, true, true, true);
  39.         while (findData && findData.found)
  40.         {
  41.             editor.replace("Γ", findData);
  42.             editor.findNext(findData);
  43.         }
  44.         
  45.         var findData = editor.findFirst("È", 0, 0, true, true, true);
  46.         while (findData && findData.found)
  47.         {
  48.             editor.replace("╚", findData);
  49.             editor.findNext(findData);
  50.         }
  51.         
  52.         var findData = editor.findFirst("É", 0, 0, true, true, true);
  53.         while (findData && findData.found)
  54.         {
  55.             editor.replace("╔", findData);
  56.             editor.findNext(findData);
  57.         }
  58.         
  59.         var findData = editor.findFirst("Ê", 0, 0, true, true, true);
  60.         while (findData && findData.found)
  61.         {
  62.             editor.replace("╩", findData);
  63.             editor.findNext(findData);
  64.         }
  65.         
  66.         var findData = editor.findFirst("Ë", 0, 0, true, true, true);
  67.         while (findData && findData.found)
  68.         {
  69.             editor.replace("╦", findData);
  70.             editor.findNext(findData);
  71.         }
  72.         
  73.         var findData = editor.findFirst("è", 0, 0, true, true, true);
  74.         while (findData && findData.found)
  75.         {
  76.             editor.replace("Φ", findData);
  77.             editor.findNext(findData);
  78.         }
  79.  
  80.         var findData = editor.findFirst("é", 0, 0, true, true, true);
  81.         while (findData && findData.found)
  82.         {
  83.             editor.replace("Θ", findData);
  84.             editor.findNext(findData);
  85.         }
  86.  
  87.         var findData = editor.findFirst("ê", 0, 0, true, true, true);
  88.         while (findData && findData.found)
  89.         {
  90.             editor.replace("Ω", findData);
  91.             editor.findNext(findData);
  92.         }
  93.  
  94.         var findData = editor.findFirst("ë", 0, 0, true, true, true);
  95.         while (findData && findData.found)
  96.         {
  97.             editor.replace("δ", findData);
  98.             editor.findNext(findData);
  99.         }
  100.         
  101.         var findData = editor.findFirst("Ï", 0, 0, true, true, true);
  102.         while (findData && findData.found)
  103.         {
  104.             editor.replace("╧", findData);
  105.             editor.findNext(findData);
  106.         }
  107.  
  108.         var findData = editor.findFirst("Î", 0, 0, true, true, true);
  109.         while (findData && findData.found)
  110.         {
  111.             editor.replace("╬", findData);
  112.             editor.findNext(findData);
  113.         }
  114.  
  115.         var findData = editor.findFirst("ï", 0, 0, true, true, true);
  116.         while (findData && findData.found)
  117.         {
  118.             editor.replace("∩", findData);
  119.             editor.findNext(findData);
  120.         }
  121.         
  122.         var findData = editor.findFirst("î", 0, 0, true, true, true);
  123.         while (findData && findData.found)
  124.         {
  125.             editor.replace("ε", findData);
  126.             editor.findNext(findData);
  127.         }
  128.         
  129.         var findData = editor.findFirst("Ô", 0, 0, true, true, true);
  130.         while (findData && findData.found)
  131.         {
  132.             editor.replace("╘", findData);
  133.             editor.findNext(findData);
  134.         }
  135.         
  136.         var findData = editor.findFirst("ô", 0, 0, true, true, true);
  137.         while (findData && findData.found)
  138.         {
  139.             editor.replace("⌠", findData);
  140.             editor.findNext(findData);
  141.         }
  142.         
  143.         var findData = editor.findFirst("Ö", 0, 0, true, true, true);
  144.         while (findData && findData.found)
  145.         {
  146.             editor.replace("╓", findData);
  147.             editor.findNext(findData);
  148.         }
  149.         
  150.         var findData = editor.findFirst("ö", 0, 0, true, true, true);
  151.         while (findData && findData.found)
  152.         {
  153.             editor.replace("÷", findData);
  154.             editor.findNext(findData);
  155.         }
  156.         
  157.         var findData = editor.findFirst("Ù", 0, 0, true, true, true);
  158.         while (findData && findData.found)
  159.         {
  160.             editor.replace("┘", findData);
  161.             editor.findNext(findData);
  162.         }
  163.  
  164.         var findData = editor.findFirst("ö", 0, 0, true, true, true);
  165.         while (findData && findData.found)
  166.         {
  167.             editor.replace("∙", findData);
  168.             editor.findNext(findData);
  169.         }
  170.  
  171.         var findData = editor.findFirst("Û", 0, 0, true, true, true);
  172.         while (findData && findData.found)
  173.         {
  174.             editor.replace("█", findData);
  175.             editor.findNext(findData);
  176.         }
  177.  
  178.         var findData = editor.findFirst("û", 0, 0, true, true, true);
  179.         while (findData && findData.found)
  180.         {
  181.             editor.replace("√", findData);
  182.             editor.findNext(findData);
  183.         }
  184.  
  185.         var findData = editor.findFirst("Ü", 0, 0, true, true, true);
  186.         while (findData && findData.found)
  187.         {
  188.             editor.replace("▄", findData);
  189.             editor.findNext(findData);
  190.         }
  191.  
  192.         var findData = editor.findFirst("ü", 0, 0, true, true, true);
  193.         while (findData && findData.found)
  194.         {
  195.             editor.replace("ⁿ", findData);
  196.             editor.findNext(findData);
  197.         }
  198.  
  199.         var findData = editor.findFirst("Ç", 0, 0, true, true, true);
  200.         while (findData && findData.found)
  201.         {
  202.             editor.replace("╟", findData);
  203.             editor.findNext(findData);
  204.         }
  205.  
  206.         var findData = editor.findFirst("ç", 0, 0, true, true, true);
  207.         while (findData && findData.found)
  208.         {
  209.             editor.replace("τ", findData);
  210.             editor.findNext(findData);
  211.         }
  212.  
  213.         editor.setActive("Accents To HTML");
  214.     }
  215. }
  216.  
  217. !!/Script
  218.  
  219.