help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fixing M$ character codes


From: nospam55
Subject: fixing M$ character codes
Date: Sat, 03 Jul 2004 18:00:28 +0200
User-agent: KNode/0.7.1

Hi! Help me and the mankind ! 

I have often to correct manually dowloaded M$ - originating text , i. e. I must 
bother
to do the ethernal replacements

    \222 into '
    \213 into <
    etc etc

        , where the codes are taken from the well-known

               (defvar gnus-article-dumbquotes-map
                 '(("\202" ",")
                   ("\203" "f")
                   ("\204" ",,")
                   ("\205" "...")
                   ("\213" "<")
                   ("\214" "OE")
                   ("\221" "`")
                   ("\222" "'")
                   ("\223" "``")
                   ("\224" "\"")
                   ("\225" "*")
                   ("\226" "-")
                   ("\227" "--")
                   ("\231" "(TM)")
                   ("\233" ">")
                   ("\234" "oe")
                   ("\264" "'"))
                 "Table for MS-to-Latin1 translation.")

Now, the big question whose answer I didn't find on the internet 

   is there a way for having emacs fix this mess ?

My dream is to have something like 

    M-x  fix-evil-empire-nonsense  RET

that automatically does on the selected region the replacements above for us
poor humans.

Any package? Any defun ?

   Thank you :)



PS micro$oft-ware makes many people to write 

    \222 for ' apostrophe
    \202 for , comma
    \213 for < "less than"
    \233 for > "greater than"
    \224 for backslash
    \225 for asterisk
    etc etc


without they realize this :(




reply via email to

[Prev in Thread] Current Thread [Next in Thread]