def loadmeta_altafsir(madhab_path, tafsir_path):
    """ Load metadata text files for altafsir.

    Args:
        madhab_path (str): path for madhab file.
        tafsir_path (str): path for tafsir file.

    returns:
        dict, dict: madhab metadata and tafsir metadata.

    """
    with open(madhab_path) as fp:
        lines = (li.split('|') for li in filter(None, (l.strip() for l in fp)) if not li.startswith('#'))
        madhab_mapping = {_id.strip() : name.strip() for _id, name in lines}

    with open(tafsir_path) as fp:
        lines = (list(map(str.strip, li.split('|'))) for li in filter(None, (l.strip() for l in fp)) if not li.startswith('#'))
        tafsir_mapping = {_id : {'name':name, 'author':author, 'date':date} for _id, name, author, date in lines}
    
    return madhab_mapping, tafsir_mapping