vkit.utility.text.const.digit
Consts for detecting digit 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 digit chars. 16''' 17from typing import Sequence, Tuple 18 19#: Digits. 20ITV_DIGIT: Sequence[Sequence[Tuple[int, int]]] = [ 21 # ASCII_DIGIT_RANGES 22 [ 23 (0x0030, 0x0039), 24 ], 25 # DIGIT_EXTENSION_RANGES 26 [ 27 (0xFF10, 0xFF19), 28 ], 29 # CIRCLE DIGIT RANGES 30 [ 31 # ① - ⑨ 32 (0x2460, 0x2468), 33 ], 34]