fohelpers.py: XSL-FO helper functions for Python

27. dash(): An attribute dictionary
generator

fohelpers.py

# - - - d a s h
def dash(**kw):
'''XSL-FO attribute dictionary builder.
[ kw is a dictionary ->
return a new dictionary with the same elements as kw,
but with each key transformed by substituting "x-y"
for any sequence "xY" where x is lowercase and Y is
uppercase ]
'''
#-- 1
result = {}