Re: Recreating length-specs

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
  • Recreating length-specs
    • Richard Light - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id FAA26421Wed, 22 Jul 1998 05:03:49 -0400 (EDT)
      • Brandon Ibach - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id FAA27163Wed, 22 Jul 1998 05:36:06 -0400 (EDT)
      • Toby Speight - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id FAA27228Wed, 22 Jul 1998 05:38:07 -0400 (EDT) <=
        • Toby Speight - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id FAA27527Wed, 22 Jul 1998 05:47:57 -0400 (EDT)
          • Richard Light - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id HAA28730Wed, 22 Jul 1998 07:06:04 -0400 (EDT)