Recreating length-specs

Subject: Recreating length-specs
From: Richard Light <richard@xxxxxxxxxxxxxxxxx>
Date: Wed, 22 Jul 1998 09:59:59 +0100
Hi,

When time permits I'm looking into this FOT identity transform issue
(well, I don't hear anyone else offering a working solution!), and I'm
getting stuck with (display-space).

The space-before characteristic is of this type, which is constructed by
the (display-space) procedure:

(display-space length-spec #!key min: max: conditional?: priority:)

I've written a procedure that attempts to take the three attributes that
Jade outputs and recombine them into a display-space, but I'm falling at
the first hurdle.  This is the error I get:

C:\DSSSL\JADE\JADE.EXE:fotasis.dsl:88:4:E: 1st argument for primitive
"display-space" of wrong type: "6000" not a length or length-spec

and this is my procedure:

(define (atts-to-display-space attname attmin attmax)
  (if (attribute-string attname (current-node))
    (display-space
      (string->number (attribute-string attname (current-node)))
      min: 0m max: 0m conditional?: #t priority: 0)
    (display-space 0m min: 0m max: 0m conditional?: #t priority: 0)))

The problem is that in my FOT input, the length-specs have been
converted to dimensionless quantities, e.g.:

<paragraph space-before.min=6000 ...

How do I convert them back?  There is a (quantity->number) procedure,
but not (number->quantity).

Also, in what dimensions is the FOT output expressed?

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy
richard@xxxxxxxxxxxxxxxxx


 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)