|
@@ -77,7 +77,7 @@ def writeStrip(story):
|
|
|
textVign = fetchText(indVign)
|
|
|
if textVign !=0:
|
|
|
text1 = textVign[2]
|
|
|
- if text1.find('§') != -1:
|
|
|
+ if text1.find('$') != -1:
|
|
|
text1 = replaceText(text1)
|
|
|
addtext.multiline_text((int(textVign[0]),int(textVign[1])),text1,fill="#000000",font=fnt,align="center")
|
|
|
else:
|
|
@@ -85,9 +85,9 @@ def writeStrip(story):
|
|
|
if textVign!=0:
|
|
|
text1 = textVign[4]
|
|
|
text2 = textVign[5]
|
|
|
- if text1.find('§') != -1:
|
|
|
+ if text1.find('$') != -1:
|
|
|
text1 = replaceText(text1)
|
|
|
- if text2.find('§') != -1:
|
|
|
+ if text2.find('$') != -1:
|
|
|
text2 = replaceText(text2)
|
|
|
addtext.multiline_text((int(textVign[0]),int(textVign[1])),text1,fill="#000000",font=fnt,align="center")
|
|
|
addtext.multiline_text((int(textVign[2]),int(textVign[3])),text2,fill="#000000",font=fnt,align="center")
|
|
@@ -103,8 +103,16 @@ def writeStrip(story):
|
|
|
xshift += 600
|
|
|
return image
|
|
|
|
|
|
+def createStrip(name):
|
|
|
+ try:
|
|
|
+ story = fetchVign()
|
|
|
+ finalStrip = writeStrip(story)
|
|
|
+ finalStrip.save(name)
|
|
|
+ return 0
|
|
|
+ except Exception as err:
|
|
|
+ return err
|
|
|
+
|
|
|
if __name__ == "__main__":
|
|
|
story = fetchVign()
|
|
|
- print(story)
|
|
|
finalStrip = writeStrip(story)
|
|
|
finalStrip.show()
|