rgheck <rgh...@...> writes:
>
>
> Attached is the patch switching us from prettyref to refstyle. What
> happens at the moment is pretty minimal, but there is more that could
> now be done, e.g., allowing customization of the separator in labels,
> which still defaults to the colon. See bug 6420.
>
> Comments welcome.
I applied the patch and loaded an earlier document with a formatted reference, I
got this:
> Warning: An error ocurred in 379, <function convert_prettyref at 0xb7bf279c>
Traceback (most recent call last):
File "/ext/lyx-devel/lib/lyx2lyx/lyx2lyx", line 85, in <module>
main()
File "/ext/lyx-devel/lib/lyx2lyx/lyx2lyx", line 79, in main
doc.convert()
File "/ext/lyx-devel/lib/lyx2lyx/LyX.py", line 546, in convert
conv(self)
File "/ext/lyx-devel/lib/lyx2lyx/lyx_2_0.py", line 627, in convert_prettyref
m = re_ref.match(document.body[k])
NameError: global name 're_ref' is not defined
Error: Conversion script failed
I have a further comment about the lyx2lyx conversion: prettyref knows about
theorems and lemmas, refstyle does not. What shoud be done to deal with this ?
refstyle.cfg can be upgraded of course, but how should lyx publish it ?
The same question applies for i18n as well (a few languages are currently known
by refstyle.cfg).
--
Jean-Pierre