1
0
mirror of https://github.com/KanjiVG/kanjivg.git synced 2026-04-19 12:10:41 +02:00

Added missing kanji page generation

This commit is contained in:
Alexandre Courbot
2010-02-18 15:09:00 +09:00
parent dbc53114bb
commit 70110e95f2
2 changed files with 8 additions and 7 deletions

View File

@@ -97,13 +97,13 @@ if __name__ == "__main__":
kanji.root.childs.append(stroke)
kanjis.append(kanji)
#mismatch.sort()
#misout = codecs.open("wiki.d/Main.StrokeCountMismatch", "w", "utf-8")
#misout.write('version=pmwiki-2.1.0 urlencoded=1\ntext=')
#misout.write("'''This page is generated - please do not edit it!'''%0a%0aThe following kanjis have a stroke order mismatch between their XML and SVG descriptions:%0a")
#for i in range(len(mismatch)):
#misout.write("* %s: XML %d, SVG %d" % (mismatch[i][0], mismatch[i][1], mismatch[i][2]))
#misout.write("%0a")
mismatch.sort()
misout = codecs.open("Main.StrokeCountMismatch", "w", "utf-8")
misout.write('version=pmwiki-2.1.0 urlencoded=1\ntext=')
misout.write("'''This page is generated - please do not edit it!'''%0a%0aThe following kanjis have a stroke order mismatch between their XML and SVG descriptions:%0a")
for i in range(len(mismatch)):
misout.write("* %s: XML %d, SVG %d" % (mismatch[i][0], mismatch[i][1], mismatch[i][2]))
misout.write("%0a")
kanjis.sort(lambda x,y: cmp(x.id, y.id))
out = codecs.open("kanjivg.xml", "w", "utf-8")

View File

@@ -7,5 +7,6 @@ tar czf currentdata.tar.gz currentdata
gzip kanjivg.xml
scp kanjivg.xml.gz gnurou@gnurou.org:/srv/http/kanjivg/upload/Main/kanjivg-latest.xml.gz
scp currentdata.tar.gz gnurou@gnurou.org:/home/gnurou
scp Main.StrokeCountMismatch gnurou@gnurou.org:/srv/http/kanjivg/wiki.d
ssh gnurou@gnurou.org "cd /srv/http/kanjivg ; rm -Rf currentdata ; tar xfz /home/gnurou/currentdata.tar.gz ; rm /home/gnurou/currentdata.tar.gz"