def compute_indentation(props):
    """
    Compute the indentation in inches from the properties of a paragraph style.
    """
    res = 0
    for k, v in props.items():
        if k in ['margin-left', 'text-indent']:
            try:
                res += float(v.replace('in', ''))
            except:
                pass
    return res