vkit.utility.text.const.english

Consts for detecting chinese chars.

 1# Copyright 2022 vkit-x Administrator. All Rights Reserved.
 2#
 3# This project (vkit-x/vkit) is dual-licensed under commercial and SSPL licenses.
 4#
 5# The commercial license gives you the full rights to create and distribute software
 6# on your own terms without any SSPL license obligations. For more information,
 7# please see the "LICENSE_COMMERCIAL.txt" file.
 8#
 9# This project is also available under Server Side Public License (SSPL).
10# The SSPL licensing is ideal for use cases such as open source projects with
11# SSPL distribution, student/academic purposes, hobby projects, internal research
12# projects without external distribution, or other projects where all SSPL
13# obligations can be met. For more information, please see the "LICENSE_SSPL.txt" file.
14'''
15Consts for detecting chinese chars.
16'''
17from typing import Sequence, Tuple
18
19#: English Chars.
20ITV_ENGLISH: Sequence[Sequence[Tuple[int, int]]] = [
21    # ASCII_ALPHA_RANGES
22    [
23        (0x0041, 0x005A),
24        (0x0061, 0x007A),
25    ],
26    # ALPHA_EXTENSION_RANGES
27    [
28        (0xFF21, 0xFF3A),
29        (0xFF41, 0xFF5A),
30    ],
31]