INNER CODE UNIT · Python

l10n_path

rfc-st/humble · humble.py:536

    l10n_path = (OS_PATH / HUMBLE_DIRS[1] /
                 (HUMBLE_FILES[3] if args.lang == "es" else HUMBLE_FILES[4]))
    with l10n_path.open(encoding="utf8") as l10n_content:
        return l10n_content.readlines()


def get_l10n_map(l10n_lines):
    """Map each l10n ID to the index of its descriptive text."""
    return {ln.strip(): i + 1 for i, ln in enumerate(l10n_lines)
            if ln.startswith("[")}


def get_analysis_results():
    """Print analysis results and summary."""
    analysis_t = str(round(end - start, 2))
    print(f"{get_detail('[analysis_time]', replace=True)} {analysis_t}\
{get_detail('[analysis_time_sec]', replace=True)}")
    t_cnt = sum([m_cnt, f_cnt, i_cnt[0], e_cnt])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…