DEFAULT_FONT_SIZE = 8
DEFAULT_PAD_SIZE = 3
DEFAULT_PPB = 16
MAX_SEQ_LENGTH = 529
MAX_PIXELS_LEN = MAX_SEQ_LENGTH * DEFAULT_PPB

# From mT5 paper, Table 6
# https://arxiv.org/abs/2010.11934
MC4_LANGUAGES = {
    "en": 0.0567,
    "ru": 0.0371,
    "es": 0.0309,
    "de": 0.0305,
    "fr": 0.0289,
    "it": 0.0243,
    "pt": 0.0236,
    "pl": 0.0215,
    "nl": 0.0198,
    "tr": 0.0193,
    "ja": 0.0192,
    "vi": 0.0187,
    "id": 0.0180,
    "cs": 0.0172,
    "zh": 0.0167,
    "fa": 0.0167,
    "ar": 0.0166,
    "sv": 0.0161,
    "ro": 0.0158,
    "el": 0.0154,
    "uk": 0.0151,
    "hu": 0.0148,
    "da": 0.0138,
    "fi": 0.0135,
    "no": 0.0133,
    "bg": 0.0129,
    "hi": 0.0121,
    "sk": 0.0119,
    "ko": 0.0114,
    "th": 0.0114,
    "ca": 0.0112,
    "ms": 0.0109,
    "iw": 0.0106,
    "lt": 0.0104,
    "sl": 0.0095,
    "mr": 0.0093,
    "bn": 0.0091,
    "et": 0.0089,
    "lv": 0.0087,
    "az": 0.0082,
    "gl": 0.0079,
    "cy": 0.0076,
    "sq": 0.0076,
    "ta": 0.0073,
    "sr": 0.0072,
    "ne": 0.0069,
    "lb": 0.0068,
    "hy": 0.0065,
    "kk": 0.0065,
    "ka": 0.0064,
    "mt": 0.0064,
    "af": 0.0063,
    "fil": 0.0062,
    "is": 0.0062,
    "mk": 0.0062,
    "ml": 0.0062,
    "mn": 0.0062,
    "ur": 0.0061,
    "be": 0.0059,
    "la": 0.0058,
    "eu": 0.0057,
    "tg": 0.0054,
    "te": 0.0052,
    "fy": 0.0051,
    "kn": 0.0051,
    "ky": 0.0050,
    "sw": 0.0050,
    "so": 0.0048,
    "my": 0.0047,
    "uz": 0.0046,
    "km": 0.0046,
    "ru-Latn": 0.0046,
    "sd": 0.0045,
    "gu": 0.0043,
    "hi-Latn": 0.0043,
    "jv": 0.0042,
    "zu": 0.0042,
    "si": 0.0041,
    "ja-Latn": 0.0041,
    "eo": 0.0040,
    "co": 0.0040,
    "ga": 0.0040,
    "el-Latn": 0.0039,
    "zh-Latn": 0.0037,
    "pa": 0.0037,
    "ceb": 0.0036,
    "mg": 0.0036,
    "ps": 0.0036,
    "sn": 0.0035,
    "gd": 0.0035,
    "ku": 0.0034,
    "hmn": 0.0034,
    "su": 0.0034,
    "ht": 0.0033,
    "ha": 0.0033,
    "ny": 0.0029,
    "am": 0.0029,
    "bg-Latn": 0.0028,
    "yi": 0.0028,
    "lo": 0.0028,
    "mi": 0.0025,
    "sm": 0.0025,
    "ig": 0.0024,
    "haw": 0.0024,
    "xh": 0.0022,
    "st": 0.0022,
    "yo": 0.0020,
}
