On 17/08/2010 11:17 AM, Pavel Sanda wrote:
Filip Dominec wrote:
Hi, first of all let me thank you for the LyX project. I like how it enables
even people with minimal TeX experience to typeset clean and nice documents.
I have a feature request: please, can you add the automatic replacement function
to the editor? Ideally, each replacement rule should be enabled depending on the
environment and language, but a simple, unconditional replacement would now
suffice, too.
Motivation: In many slavic languages, there are some prepositions that shall be
connected to the following word with an unbreakable space. The localized OO
btw what slavonic languages are you aware of, which have this rule and its
latex user would use vlna in particular? it wouldn't be good to have ten
different
filters for each language... we have already request for "vlna" in bugzilla
(targetted 2.0), but i was bit unsure how to proceed, whether to add some ui
checkbox for "preprocessing via vlna" or to create completely new target e.g.
"pdflatex (vlna)" which will be visible in case vlna executable is found on
its path...
pavel
Adding a preprocessing command could be valuable to LyX. The above case
is one example. Other examples include sweave and lilypond-book, and
certainly others. Yes, you can make it work through file formats, but it
is not the easiest thing to understand for newcomers (not to mention the
ui which is often confusing users on the mailing list).
Also, even with file format, instant preview doesn't change its
mechanism. If you want your latex file to be preprocessed when doing
instant preview, at the moment you have to modify LyX's source (or, at
least, the python script being called by LyX).
To be useful, the preprocessor value could be set per document, but that
could be a security risk. Now, how do you make that safe? I don't know.
$0.02
Julien