I would like to know how to obtain a list of all Greek characters (upper and lowercase letters). I know how to find specific characters (unicodedata.lookup(name)
), but I want all upper and lowercase letters.
Is there any way to do this?
I would like to know how to obtain a list of all Greek characters (upper and lowercase letters). I know how to find specific characters (unicodedata.lookup(name)
), but I want all upper and lowercase letters.
Is there any way to do this?
Copyright © 2021 Jogjafile Inc.
The Unicode standard defines the range
0x370
through0x3ff
(inclusive) as Greek and Coptic symbols. The symbols that are exclusively Coptic (i.e. not shared with Greek) are0x3e2
through0x3ef
(inclusive).You can thus iterate through the two ranges
0x370-0x3e1
(inclusive) and0x3f0-0x3ff
(inclusive) to get all the Greek symbols, and usestr.isalpha()
to test each to see if it's a letter. For example: