Subject: Re: Recreating length-specs From: Toby Speight <Toby.Speight@xxxxxxxxxxxxxx> Date: 22 Jul 1998 10:36:26 +0100 |
Richard> Richard Light <URL:mailto:richard@xxxxxxxxxxxxxxxxx> => In article <HOXBSDAPoat1Ewk3@xxxxxxxxxxxxxxxxx>, Richard wrote: Richard> The problem is that in my FOT input, the length-specs have been Richard> converted to dimensionless quantities, e.g.: Richard> Richard> <paragraph space-before.min=6000 ... Richard> Richard> How do I convert them back? There is a (quantity->number) Richard> procedure, but not (number->quantity). You can multiply a number by a quantity, IIRC. So you could write (display-space (* *dsssl-unit-length* (string->number (attribute-string attname (current-node))) in your stylesheet. Which brings us to the question: Richard> Also, in what dimensions is the FOT output expressed? I don't know. But it shouldn't be hard to find out experimentally, and then (define *dsssl-unit-length* 0.001mm) or whatever length you find. -- DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Recreating length-specs, Brandon Ibach | Thread | Re: Recreating length-specs, Toby Speight |
Re: Recreating length-specs, Brandon Ibach | Date | Re: Recreating length-specs, Toby Speight |
Month |