1
0
mirror of https://github.com/KanjiVG/kanjivg.git synced 2026-01-27 08:33:12 +01:00

Fix paths regexp

This commit is contained in:
Alexandre Courbot
2010-12-30 18:00:38 +09:00
parent a4e2fc919d
commit c1caa09b19

View File

@@ -43,7 +43,7 @@ def svg2Path(svg):
t = re.sub(r"[a-zA-Z]\d|\d[a-zA-Z]", lambda(m): m.group(0)[0] + " " + m.group(0)[1], t)
t = re.sub(r"[a-zA-Z]\d|\d[a-zA-Z]", lambda(m): m.group(0)[0] + " " + m.group(0)[1], t)
t = re.sub(r"\-\d", lambda(m): " " + m.group(0), t)
tokens = re.split(" +|,", t)
tokens = re.split("[ ,]+", t)
# Convert to Qt path
i = 0