home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Utilities / Programming / PowerReplace 4.1 / Documentation / FAQ next >
Encoding:
Text File  |  1995-12-18  |  2.1 KB  |  79 lines  |  [ttro/ttxt]

  1.  
  2.  
  3.  
  4.  
  5.                          PowerReplace F.A.Q. 
  6.                                Novembre 21, 1995
  7.  
  8. _________________________________________________________________
  9. [Q1] I would like to replace é by é for converting my text into HTML format. How to do it?
  10. [R] It's enough to add the following line in your filter-file:
  11. "é"   "é"
  12.  
  13. [Q2] Now I would like to do exactly the opposite, it means replace é by é
  14. how about it ?
  15. [R] This time the following line:
  16. "é" "é" 
  17.  
  18. [Q3] OK. But sometimes my text editor cut a word into two for separating two lines as  &ea-cute; how to correct it?
  19. [R] Add the two following lines :
  20. "&ea\ncute;" "é\n" 
  21. "&ea\rcute;" "é\r" 
  22.  
  23. [Q4] How to replace %22 by " (quotation marks)?
  24. [R] You must use the  special character \" adding the following line:
  25. "%22"   "\""
  26.  
  27. [Q5] How to remouve all words beginning with def?
  28. [R] Here some examples:
  29. "def* " " "
  30. "def*\r" "\r"
  31. "def*\n" "\n"
  32. "def*\t" "\t"
  33.  
  34. [Q6] How to remouve a line beginning with % (TeX comment)?
  35. [R] 
  36. "%*\r" "\r"
  37. "%*\n" "\n"
  38.  
  39. [Q7] How to remouve all mathmatical formulas in a TeX file?
  40. [R]
  41. "$$*$$" ""
  42. "$*$" ""
  43.  
  44. [Q8] I would like to replace ef by EF, except ef in def?
  45. [R] There is an astute method:
  46. "def" "a random word"
  47. "ef" "EF"
  48. "a random word" "def" 
  49.  
  50. [Q9] How to replace \alpha by æ (in a TeX file for example)?
  51. [R] (Don’t forget that there is perhaps \alphabet in the text file)
  52. "\\alpha " "æ "
  53. "\\alpha\\" "æ\\"
  54. "\\alpha;" "æ;"
  55. "\\alpha)" "æ)"
  56. "\\alpha," "æ,"
  57. "\\alpha=" "æ="
  58. "\\alpha\r" "æ\r"
  59. "\\alpha\n" "æ\n"
  60. "\\alpha\t" "æ\t"
  61.  
  62. [Q10] What is “Char Convert Only” option in the MakeFilterFile window ?
  63. [R] Every PowerReplace Expression contains two strings separated by espace or by tabulation. If the first-string of each  PRExpression is only one character as :
  64.  
  65. "d" "\alpha"
  66. "e" "EF"
  67. "a" "$$" 
  68.  
  69. you can set “Char Convert Only” option on in the MakeFilterFile window. It lets  PowerReplace convert much more rapidly.
  70.  
  71.  
  72. _________________________
  73. Guoniu Han
  74. 30, avenue du Gal de Gaulle
  75. 67000 Strasbourg, France
  76. email: guoniu@math.u-strasbg.fr
  77. http://130.79.4.26/~guoniu/mac/
  78. _________________________
  79.