Loading ...
Sorry, an error occurred while loading the content.

[jasspa] Re: Me: Command-line multiple files global-search and re place

Expand Messages
  • Kludszuweit Dr, Arne (A.)
    What do you think about using perl - it is much easier to automate translations. s/ä/ a/g i.e. sed syntax s tr/from/to tr syntax Arne ... From: Detlef
    Message 1 of 1 , Oct 4, 1999
    • 0 Attachment
      What do you think about using perl - it is much easier to automate
      translations.
      s/ä/\"a/g i.e. sed syntax s
      tr/from/to tr syntax

      Arne

      -----Original Message-----
      From: Detlef Groth [mailto:dgroth@...]
      Sent: Montag, 4. Oktober 1999 12:33
      To: jasspa@egroups.com
      Subject: [jasspa] Me: Command-line multiple files global-search and
      replace


      Recently I was discovering more and more the command-line use of Me which is
      very great.

      The command:
      me32 -p "@..." <einleit.tex >einleit.out

      with replace.emf:
      ;; beginn replace.emf
      define-macro start-up
      ; german keyboard configuration
      translate-key "A-C-7 A-C-{" "\x7b"
      translate-key "A-C-9 A-C-]" "\x5d"
      translate-key "A-C-0 A-C-}" "\x7d"
      translate-key "A-C-[ A-C-\\" "\x5c"
      translate-key "A-C-= A-C-~" "\x7e"
      translate-key "A-C-m A-C-\xb5" "\xb5"
      translate-key "A-C-8 A-C-[" "\x5b"
      translate-key "A-C-q A-C-@" "\x40"
      translate-key "A-C-2 A-C-²" "\xb2"
      translate-key "A-C-b A-C-|" "\x7c"
      ; end german keyboard
      find-buffer "*stdin*"
      ; translations german umlauts to tex
      beginning-of-buffer
      replace-string "ä" "\\\\\"a" ; conversion ä -> \"a
      beginning-of-buffer
      replace-string "ö" "\\\\\"o"
      beginning-of-buffer
      replace-string "ü" "\\\\\"u"
      beginning-of-buffer
      replace-string "Ä" "\\\\\"A"
      beginning-of-buffer
      replace-string "Ö" "\\\\\"O"
      beginning-of-buffer
      replace-string "Ü" "\\\\\"Ü"
      beginning-of-buffer
      replace-string "ß" "{\\\\\"s}"
      save-buffer
      quick-exit
      !emacro
      ;; end of file

      did some german to tex format translations. However no file-wildcards like
      '*.tex' are allowed here.
      How to process all texfiles in one directory with on single command?

      Thanks,

      Detlef

      ------------------------------------------------------------------------
      __________________________________________________________________________



      This is an unmoderated list. JASSPA is not responsible for the content of

      any material posted to this list.
    Your message has been successfully submitted and would be delivered to recipients shortly.