[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Does "measurement-to-length" works bad?
Norman Walsh wrote: > / "Juan R. Migoya" <promo804@hsoft.es> was heard to say: > | The "measurement-to-length" function in the lib/dblib.dsl file of > | the Docbook DSSSL distribution works with an associative list. > | It seems that the program always look for unit in uppercase (CM, MM > | and so on), but the list is is lowercase (cm, mm, ...). So it always > | defaults > | to "1pi". > | The easier workaround is to duplicate each element of the list in this > | way: > > What makes you say that it looks for the unit in uppercase? They're > all lowercase in my list. > > Be seeing you, > norm > Usign the following piece of code: (let* (height (measurement-to-length (attribute-string "depth" nd))) (width (measurement-to-length (attribute-string "width" nd))) ) If you have <graphic fileref..... width="2.3cm" depth="4.5cm"> (values doesn't matter) in your document, the variables "height" and "width" get incorrect values, unless you make the described changes in the associative list. Then you get the right values for this variables. Am I doing something wrong here? :-( I use Jade, not OpenJade. Regards, Juan R. Migoya
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC