Many thanks for the reply.
On Tue, Apr 07, 2009 at 05:54:32PM -0300, Aur?lio Jargas wrote:
> Hello Barrie,
>
> The culprit is inside doFinalEscape():
>
> elif target == 'lout': txt = txt.replace('/', '"/"')
>
> I don't remember why I'm quoting the / char, but it may be special in
> Lout.
/ is indeed special in lout. If we want to have / printed as in the
expression `6 / 2 = 3' then lout requires quotes around it; we can put
quotes around the whole expression if we wish. However, if we want to
print the TEX logo where the E is lowered slightly, we need the input
to contain `T{/0.2fo E}X' - minus the `' of course. Here the `/0.2fo'
is a command to lower the following object (E) and, were there quotes
around /, it would not be obeyed but be printed.
Your solution is faulty in that it does not discriminate the two cases
just mentioned. It leaves `/0.2fo' alone as it should but it also
leaves `6 / 2 = 3' alone and it shouldn't.
I suspect that tagged sequences need to be marked when they are met.
In doFinalEscape such marked strings should have the mark removed but
otherwise be left as they are. Sadly, I don't have the skill to effect
such a solution in Python.
Thanks again.
Barrie.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list