On Wed, 10 Jul 2002 12:43:13 +0930 wrote Pierre Marc Dumuid
<[EMAIL PROTECTED]>:
> Hi,
> I was wondering if anyone has thought of the following idea:
>
> Typically, when writing documents, any acronyms, (ie FIR for Finite
> Impulse Response), on first usage must be written in full followed by
> the acronym in short.
>
> Is it possible, that a key-stroke be made identifying the desire for the
> insert of an acronym, (say FIR), then the user would type the acronym,
> followed by a space key indicating the end of the acronym.
>
> When generating the document, lyx or latex would then look this up on a
> list of acronyms, and on the first occurence, expand out the meaning in
> full, then for all occurence following use the appropriate acronym.
...
> This may have already been done, but in case it hasn't I thought I'd ask...
Maybe it would be easier to have a small script that does this outside LyX...
The script should process the *.lyx file and do:
- For all acronyms defined in a acronyms.txt file: Find the first occurence
and change to Full Name (FN).
- Look for following "Full Name (FN)"-s and change these to FN.
This would also save typing, as there is no need for an extra keypress: "this
is an acronym"
A feedback (change, look for next, abort) would increase security...
Run this on your final version.
Also, a script that extracts the used acronyms to a loa (list of acronyms)
should be no problem.
This would become very handy, if there where a generic LyX command that
saves the LyX file, starts a command/script on it and restores the file from
disk. As this is something quite general (and would also allow complicated
search/replaces, regexp replace and other nice things programmed in your
favourite editor) Something like M-x
process-buffer(my_script)
where my_script is a script that does something on the *.lyx file and saves
it back or my favourite editor (where I do some miracles and than save and
close). This is a feature request.
Guenter
--
G.Milde at physik.tu-dresden.de