[texinfo-pretest] accented letters....
vale.it at tiscali.it
vale.it at tiscali.it
Wed Jun 2 12:27:52 EDT 2004
Regarding accented letters, I write in Italian and other languages and it was an issue. The fact is that writing @'a la carte is not only a little bit complicated, but also not so beautiful to be looked at when looking at the source.
The solution: i write the source with the normalli accented letters (è, é, ù, etc.), then, when compiling, I send the source to a script which duplicates the file, invokes sed utility and changes the accented letters in the "@'accented" ones.
I like this solution because it allows you to continue reading the source with normal accented letters in, but in the same time, tex and makeinfo process correctly formed source file. Moreover, in case of damages to the file processed by sed, you still conserve the original source.
Here is the script (actually it generates also automatically .dvi, .pdf, .ps and removes the unnecessary auxiliary files):
texicompile.sh
# /bin/sh
# $1 = nomefile
# $1 = filename
sed s/à/\@\`a/g $1.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/è/\@\`e/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/È/\@\`E/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/ù/\@\`u/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/ì/\@\`i/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/ò/\@\`o/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/à/\@\`a/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/é/\@\'e/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
sed s/ú/\@\'u/g $1dvi.texi > $1dvi.txi
mv $1dvi.txi $1dvi.texi
texi2pdf $1dvi.texi
texi2dvi $1dvi.texi
dvips $1dvi.dvi
mv $1dvi.pdf $1.pdf
mv $1dvi.ps $1.ps
mv $1dvi.dvi $1.dvi
rm $1dvi.fn $1dvi.log $1dvi.ky $1dvi.pg $1dvi.tp $1dvi.vr $1dvi.cp $1dvi.aux
xdvi $1.dvi
Cheers,
Valentino
vale.it at tiscali.it
On Mon, 31 May 2004 15:07:51 +0200
Patrice Dumas <pertusus at free.fr> wrote:
> > 2) 7-bit plus @-accents is good for English authors to get the names of
> > strangers right (like Dvo at v{r}@'ak)
>
> I've written a course in french in texinfo (the pdf and the html produced by
> texi2html are available at
> http://www.centre-cired.fr/perso/dumas/pb_eco_main.html
> ). There are no node in that book like document, as I don't need info and
> I was lazy and I know that @-commands aren't well supported i nodes ;-).
>
> It didn't bothered me to use @-commands for accented characters (except
> for @^{@dotless{i}}, I should have done a @macro for that, but these aren't
> frequent). I could have written in latin1 but I prefer using @-commands
> because in that case texi2html outputs entities and I find entities more
> portable, just like ascii 7 bit for texinfo documents.
>
> I don't argue that my case is a general case, I agree with you regarding
> priorities and so on, it is just to mention that such "manual" exists.
>
> And I also made another one, to be used as local manual for linux users at my
> lab (that's how I became interested in texinfo), and it was where I was first
> hit by @-commands not allowed in nodes. I don't have time to maintain it,
> however.
>
> Pat
> _______________________________________________
> Texinfo home page: http://www.gnu.org/software/texinfo/
> texinfo-pretest at texinfo.org
> http://ff0.org/mailman/listinfo/texinfo-pretest
More information about the texinfo-pretest
mailing list