Re: Expanded quote conversion

New Message Reply Date view Thread view Subject view Author view

From: Bernard Desgraupes (berdesg@EASYNET.FR)
Date: 8 Jul 00, 06:04 EST


From: Bernard Desgraupes <berdesg@EASYNET.FR>
Subject:      Re: Expanded quote conversion

Donavan Hall wrote:
>
> Fellow Alpha TeX mode users:
>
> Below is an expanded set of quotation mark conversions for use in TeX
> mode.  It's useful if you have cut and pasted text from a word
> processor using "smart (curly) quotes".
>
> -Donavan
>
[snip]

This looks quite useful.
I think though that it is typically the kind of situations when one
should use filters and the Filter Menu.
Why don't you just create a new filter like this

!! Filter : ConvertQuotesToTex.flt

!! Convert all left double quotes:
(^|[ \r\t\(\[\{])\"     \1``    1
!! Convert all right double quotes:
(\[\^\\])\"     \1''    1
!! Convert all left single quotes:
(^|[ \r\t\(\[\{])\'     \1`     1
!! Convert all left curly quotes:
(^|[ \r\t\(\[\{])\"     \1``    1
!! Convert all right curly quotes:
([^\\])\"       \1''    1
!! Convert all left single curly quotes:
(^|[ \r\t\(\[\{])\'     \1`     1
!! Convert all right single curly quotes:
([^\\])\'       \1'     1


With the Filters Menu you can then apply this filter to a selection or
to an entire file or to all the TEXT files in an entire folder. Your new
filter will be stored in the Usermodifications folder and you can select
it whenever you want from the Filters Menu.


Cheers,

Bernard


http://perso.easynet.fr/~berdesg/FiltersPackage.sit.hqx


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:51 EST