-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds quick camelcasing names for issue #114 * U+2900-U+297F Supplemental Arrows-B * U+2980-U+29FF Miscellaneous Mathematical Symbols-B * U+2A00-U+2AFF Supplemental Mathematical Operators * U+2B00-U+2BFF Miscellaneous Symbols and Arrows This also removes 2 gremlin characters from the "Supplementary" word in the unicodePlaneNames. I can't see if they caused any harm, but they should not be there. This also adds "Combining Diacritical Marks for Symbols", as the module was there but not committed. Basic camelcase names seem best. But noted that the "Combining Diacritical Marks Supplement" does everything lowercase and consistency is hard.
- Loading branch information
Showing
7 changed files
with
84 additions
and
5 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
Lib/glyphNameFormatter/rangeProcessors/combining_diacritical_marks_for_symbols.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Combining Diacritical Marks for Symbols | ||
#combining_diacritical_marks_for_symbols | ||
|
||
# camelcase looks good for the longer names | ||
# but the range Combining Diacritical Marks Supplement | ||
# does everything lowercase. | ||
|
||
def process(self): | ||
self.setExperimental() | ||
|
||
self.edit("COMBINING") | ||
self.edit("OPEN") | ||
self.edit("ACCENT") | ||
self.edit("FLATTENED", "flat") | ||
|
||
self.processAs("Helper Diacritics") | ||
self.handleCase() | ||
|
||
self.camelCase() | ||
self.compress() | ||
self.scriptPrefix() | ||
|
||
|
||
if __name__ == "__main__": | ||
from glyphNameFormatter.exporters import printRange | ||
printRange("Combining Diacritical Marks for Symbols") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Lib/glyphNameFormatter/rangeProcessors/miscellaneous_mathematical_symbols_b.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
def process(self): | ||
self.setExperimental() | ||
self.edit("-", " ") | ||
self.camelCase() | ||
|
||
|
||
if __name__ == "__main__": | ||
from glyphNameFormatter.exporters import printRange | ||
printRange("Miscellaneous Mathematical Symbols-B") |
10 changes: 10 additions & 0 deletions
10
Lib/glyphNameFormatter/rangeProcessors/miscellaneous_symbols_and_arrows.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
def process(self): | ||
self.setExperimental() | ||
self.edit("-", " ") | ||
self.camelCase() | ||
|
||
|
||
if __name__ == "__main__": | ||
from glyphNameFormatter.exporters import printRange | ||
printRange("Miscellaneous Symbols and Arrows") |
19 changes: 19 additions & 0 deletions
19
Lib/glyphNameFormatter/rangeProcessors/supplemental_arrows_b.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
|
||
# The names in this range are quite long, but not really | ||
# any redundancy in the words. It is all relevant and | ||
# even contractions from rightward to right already cause | ||
# duplicates. So, camelCase seems like a reasonable approach. | ||
# Names are still very long though. What is the preference? | ||
# arrowPointingRightwardsThenCurvingDownwards - 2967 ⥧ LEFTWARDS HARPOON WITH BARB DOWN ABOVE RIGHTWARDS HARPOON WITH BARB DOWN | ||
|
||
|
||
def process(self): | ||
self.setExperimental() | ||
self.edit("-", " ") | ||
self.camelCase() | ||
|
||
|
||
if __name__ == "__main__": | ||
from glyphNameFormatter.exporters import printRange | ||
printRange("Supplemental Arrows-B") |
10 changes: 10 additions & 0 deletions
10
Lib/glyphNameFormatter/rangeProcessors/supplemental_mathematical_operators.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
def process(self): | ||
self.setExperimental() | ||
self.edit("-", " ") | ||
self.camelCase() | ||
|
||
|
||
if __name__ == "__main__": | ||
from glyphNameFormatter.exporters import printRange | ||
printRange("Supplemental Mathematical Operators") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters