Le 05/07/2012 10:20, Jean-Marc Lasgouttes a écrit :
I tested it with all sorts of verbatim that I could imagine and also
with single '\' as \verb argument.
One thing that chould be done[...]
Sorry for the unreadable message. I put a better version at
http://www.lyx.org/trac/ticket/8230#comment:3
One thing that could be done is to change getArg and friends to accept
strings as delimiter. I am not sure it would be so difficult. Then, when
a token is several characters (as in utf8 case), there will be no need
for painful tricks as in your patch.
Seriously, I am not sure that using utf8 delimiters is a common enough
need in real world to warrant ugly code. Did you want to implement this
for the sake of completeness or was it from a real-world request?
I would vote for putting this on hold until getArg is upgraded.
The underlying problem is that tex2lyx should use docstring as a
foundation instead of string, but this would be much too disruptive.