1
0
mirror of https://github.com/KanjiVG/kanjivg.git synced 2026-08-05 11:53:09 +02:00

Fix merge script

This commit is contained in:
Alexandre Courbot
2010-12-27 13:03:39 +00:00
parent ba3cdec71e
commit 92e6d24a29
+3 -3
View File
@@ -70,13 +70,13 @@ if __name__ == "__main__":
desc[i].svg = svg[i]
# Add dummy strokes for SVG orphans
for i in range(len(desc), len(svg)):
s = Stroke()
s = Stroke(kanji.root)
s.stype = "Missing stroke"
s.svg = svg[i]
kanji.root.childs.append(s)
kanjis.append(kanji)
# Now parse orphan SVGs (probably just kanas and romanjis)
# Now parse orphan SVGs (probably just kana and romaji)
files = os.listdir("SVG")
for f in files:
# Let's skip the variations out of the process for now...
@@ -95,7 +95,7 @@ if __name__ == "__main__":
kanji.midashi = unichr(int(f[:-4], 16))
kanji.root = StrokeGr(None)
for s in svgHandler.strokes:
stroke = Stroke()
stroke = Stroke(kanji.root)
stroke.svg = s
kanji.root.childs.append(stroke)
kanjis.append(kanji)