1 # SPDX-License-Identifier: GPL-3.0-or-later
3 # This file is part of Nominatim. (https://nominatim.org)
5 # Copyright (C) 2022 by the Nominatim developer community.
6 # For a full list of authors see the git log.
8 This is a file for a function that converts Kanji (Japanese) numerals to Arabic numerals.
11 def convert_kanji_sequence_to_number(sequence: str) -> str:
12 """Converts Kanji numbers to Arabic numbers
30 current_number += kanji_map[char]
32 converted += current_number
35 converted += current_number