This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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




----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]