Parameters
    ----------
    folder : string
        Path to a folde with *.inkml files.

    Returns
    -------
    list :
        Objects of the type HandwrittenData

def read_folder(folder):
    """
    Parameters
    ----------
    folder : string
        Path to a folde with *.inkml files.

    Returns
    -------
    list :
        Objects of the type HandwrittenData
    """
    import glob
    recordings = []
    for filename in natsorted(glob.glob("%s/*.inkml" % folder)):
        hw = read(filename)
        if hw.formula_in_latex is not None:
            hw.formula_in_latex = hw.formula_in_latex.strip()
        if hw.formula_in_latex is None or \
           not hw.formula_in_latex.startswith('$') or \
           not hw.formula_in_latex.endswith('$'):
            if hw.formula_in_latex is not None:
                logging.info("Starts with: %s",
                             str(hw.formula_in_latex.startswith('$')))
                logging.info("ends with: %s",
                             str(hw.formula_in_latex.endswith('$')))
            logging.info(hw.formula_in_latex)
            logging.info(hw.segmentation)
            hw.show()
        recordings.append(hw)
    return recordings