libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

quot.sed (608B)


      1 # Sed script that converts quotations, by replacing ASCII quotation marks
      2 # with Unicode quotation marks.
      3 #
      4 # Copyright (C) 2001 Free Software Foundation, Inc.
      5 # This file is free software; the Free Software Foundation
      6 # gives unlimited permission to copy and/or distribute it,
      7 # with or without modifications, as long as this notice is preserved.
      8 # This file is offered as-is, without any warranty.
      9 #
     10 # Written by Bruno Haible <bruno@clisp.org>, 2001.
     11 #
     12 s/"\([^"]*\)"/“\1”/g
     13 s/`\([^`']*\)'/‘\1’/g
     14 s/ '\([^`']*\)' / ‘\1’ /g
     15 s/ '\([^`']*\)'$/ ‘\1’/g
     16 s/^'\([^`']*\)' /‘\1’ /g
     17 s/“”/""/g