Tuesday, February 1, 2011

Curl Markup

While I usually import the layout declarations so that they do not clutter my view of a file containing a poem in Curl markup such as

{poem
   {stanza
      the first
      couplet
   }
   {stanza
      the second
      couplet
   }
}

here is a simple Curl page with a StyleSheet declaration:


{curl 7.0 applet}
{curl-file-attributes character-encoding = "utf8"}

{def styl_em =
    {StyleSheet
        {StyleRule "text.emphasis",
            font-style = "italic",
            font-weight = "bold"
        }
    }
}

{paragraph style-manager = {BasicStyleManager styl_em},
  
    {text style-class = "emphasis",

             this text will be presented as italic font-style with bold font-weight
    }
  
}

The resulting page is simply:

this text will be presented as italic font-style with bold font-weight 

No comments:

Post a Comment