Next / Previous / Contents / Shipman's homepage

16. regionBefore()

fosox.py
# - - -   r e g i o n B e f o r e

def regionBefore(s, regName, dims):
    '''Generate a region-before element.

      [ (s is a sox.Sox instance) and
        (dims a PageDims instance) ->
          s  +:=  a complete region-before element tag using region-name
              (regName) and dims.frameMargins.top for its extent ]
    '''
    s.leaf("region-before",
        dash(regionName=regName,
             extent=str(dims.frameMargins.top)))