Re: TeX double quotation marks and Italian language.

Antonio Ospite <[email protected]> Tue, 27 May 2008 23:55:53 +0200
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <[email protected]>
On Fri, 23 May 2008 13:45:37 -0600 (MDT)
Kevin Atkinson <[email protected]> wrote:

> On Wed, 21 May 2008, Antonio Ospite wrote:
> 
> > Great! This seems to be way simpler than a dictionary solution, and
> > it is language independent, too.
> >
> > Do you think it is worth to translate the whole expression
> >  ``some text''
> > to
> >  "some text"
> > in the filter? It looks more robust to me.
> 
> Maybe, but more trouble.  Does TeX more or less unconditionally 
> converts '' to a double quote?  If so, there is no reason the filter 
> shouldn't also.
> 

Ok, thanks, the attached patch makes me happy for now :)

Just a side note, mk-tex.conv.pl does not produce the same tex.conv
that aspell provides, is that known?

Thanks again for your help.

Regards,
   Antonio.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

  Web site: http://www.studenti.unina.it/~ospite
Public key: http://www.studenti.unina.it/~ospite/aopubkey.asc

_______________________________________________
Aspell-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/aspell-devel
replace-double-quotes-in-tex-filter.patch (text/x-diff, 853 B)
diff -ruN aspell-0.61+20071105.orig/modules/filter/mk-tex.conv.pl aspell-0.61+20071105/modules/filter/mk-tex.conv.pl
--- aspell-0.61+20071105.orig/modules/filter/mk-tex.conv.pl	2008-05-27 12:30:49.000000000 +0200
+++ aspell-0.61+20071105/modules/filter/mk-tex.conv.pl	2008-05-27 12:43:29.000000000 +0200
@@ -71,6 +71,7 @@
 print F "name tex\n";
 print F "table\n";
 print F ". \\\\-\n";
+print F "\" \\'\\'\n";
 
 foreach (sort {$a <=> $b} keys %table)
 {
diff -ruN aspell-0.61+20071105.orig/modules/filter/tex.conv aspell-0.61+20071105/modules/filter/tex.conv
--- aspell-0.61+20071105.orig/modules/filter/tex.conv	2008-05-27 12:30:49.000000000 +0200
+++ aspell-0.61+20071105/modules/filter/tex.conv	2008-05-27 12:43:55.000000000 +0200
@@ -2,6 +2,7 @@
 name tex
 table
 . \\-
+" \'\'
 À \\`A \\`{A} \\`\ A
 Á \\'A \\'{A} \\'\ A
 Â \\^A \\^{A} \\^\ A
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIPINw5xr2akVTsAERAubFAJ0aW159ONUYYeL3bRdj4mWg6GhvSgCgp0J4
yBg76/co3+QIIAduxWnDN3I=
=RNCX
-----END PGP SIGNATURE-----