Skip to content

Commit

Permalink
Separate Letters and Marks
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Sep 24, 2018
1 parent e9a0f5d commit c88a647
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Helper/Separate Letters and Marks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#MenuTitle: Separate Letters and Marks
# -*- coding: utf-8 -*-
__doc__="""
Separate Letters and Marks.
"""

tab = Font.currentTab
print ord(tab.text[0])
letters = ""
marks = ""
for c in tab.text:
glyph = Font.glyphForCharacter_(ord(c))
if glyph.category == "Mark":
marks += c
else:
letters += c
tab.text = letters + marks

0 comments on commit c88a647

Please sign in to comment.