[xmlroff] Non-dot-using locales ticket
Tony Graham
Tony.Graham at MenteithConsulting.com
Thu Jul 12 16:41:33 UTC 2007
On Thu, Jul 12 2007 16:59:51 +0100, asmodai at in-nomine.org wrote:
> -On [20070712 16:49], Tony Graham (Tony.Graham at MenteithConsulting.com) wrote:
>>Is it in some way a DocBook problem that the numbers are being
>>localised?
>
> I think some number is getting localized yes.
>
> The first line I get is:
>
> (xmlroff:62351): libfo-CRITICAL **: Expression evaluation error: Expression
> not completely evaluated: ',736pt'
>
> I am guessing this is a fractional point font size. In most non-English
> speaking countries this would be represented with a , (comma) whereas English
> expects a . (dot/period), this also affects interpretation from a programming
> point of view.
>
> A quick sifting through the sources of xmlroff did not bring me further on
> where to add in a debugging printf.
You would probably add it to fo_expr_eval() in
libfo/expr/fo-expr-eval.c, although there's multiple _eval() routines
since some properties have particular evaluation rules.
I added #50 because the error message should be able to provide info
about the current FO and property.
I would suggest running xsltproc on your XML and stylesheet and seeing
if the string appears in the output XML. If it's not there, then
there's some subtle difference between xsltproc and xmlroff's use of
libxslt.
Regards,
Tony.
#50 http://xmlroff.org/ticket/50
More information about the xmlroff-list
mailing list