RE: Bold and Formatting within a Table

Subject: RE: Bold and Formatting within a Table
From: "Jordi Mulet" <jmulet@xxxxxxxxxx>
Date: Fri, 20 Mar 1998 09:40:59 +0100
Hello Norman,
We have modified our custom layer for formatting cells with different sizes
and colors with the new rules you have sent yesterday.
The new style-sheet can output markup as
    <entry><para>some info<emphasis>Here the
italics</emphasis></para><entry>
correctly with the text inside emphasis in bold and italics.

bu if we markup with pi instructions as :
<para><?size 18pt><?color red-color>some information</para>
the output doesnt work correctly.

Our code is now:

(define ($pi-font-size$)
  (let ((fontsize (inherited-pi-value (current-node) "size")))
      (if fontsize
      fontsize
      #f)))
(define ($pi-font-color$)
  (let ((fontcolor (inherited-pi-value (current-node) "color")))
      (if fontcolor
      fontcolor
      #f)))
(element (ENTRY PARA)
  (make paragraph
    quadding: (inherited-quadding)
    (process-children)))

(define ($process-cell-contents$ entry colnum)
   (let ((font-name (if (have-ancestor? "THEAD" entry)
          %title-font-family%
          %body-font-family%))
   (weight    (if (have-ancestor? "THEAD" entry)
       'bold
       'medium))
   (align     (cell-align entry colnum))
  (fontsize ($pi-font-size$))
    (fontcolor($pi-font-color$))
                                   )
      (make sequence
          font-family-name: font-name
          font-weight: weight
          font-size: (if fontsize fontsize 10pt)
          color:(if fontcolor fontcolor *blue-color*)
          quadding: align
          (process-node-list (children entry)))))


Thanks for your help.
Jordi
Editorial Praxis S.A




 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Bold and Formatting within a Table
    • Chuck Darney - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id JAA19672Thu, 19 Mar 1998 09:54:32 -0500 (EST)
      • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA20817Thu, 19 Mar 1998 10:28:45 -0500 (EST)
      • <Possible follow-ups>
      • Jordi Mulet - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id DAA08750Fri, 20 Mar 1998 03:42:04 -0500 (EST) <=
        • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id HAA10429Fri, 20 Mar 1998 07:26:19 -0500 (EST)
      • Jordi Mulet - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA12801Fri, 20 Mar 1998 11:26:41 -0500 (EST)