Added some more options to the export GUI and the ability to skip scene and section titles
This commit is contained in:
@@ -83,7 +83,10 @@ class ToHtml(Tokenizer):
|
||||
self.theResult += "<h4%s>%s</h4>\n" % (hStyle,tText)
|
||||
|
||||
elif tType == self.T_SEP:
|
||||
self.theResult += "<div%s>%s</div>\n" % (hStyle,tText)
|
||||
self.theResult += "<p%s>%s</p>\n" % (hStyle,tText)
|
||||
|
||||
elif tType == self.T_SKIP:
|
||||
self.theResult += "<p> </p>\n"
|
||||
|
||||
elif tType == self.T_TEXT:
|
||||
tTemp = tText
|
||||
@@ -94,8 +97,8 @@ class ToHtml(Tokenizer):
|
||||
elif tType == self.T_COMMENT and self.doComments:
|
||||
self.theResult += "<div class='comment'>%s</div>\n" % tText
|
||||
|
||||
elif tType == self.T_COMMAND and self.doCommands:
|
||||
self.theResult += "<pre>%s</pre>\n" % tText
|
||||
elif tType == self.T_KEYWORD and self.doKeywords:
|
||||
self.theResult += "<pre>@%s</pre>\n" % tText
|
||||
|
||||
# print(self.theResult)
|
||||
|
||||
|
||||
@@ -90,6 +90,10 @@ class ToLaTeX(Tokenizer):
|
||||
self.theResult += "%s\n" % self._escapeUnicode(tText)
|
||||
self.theResult += endText
|
||||
|
||||
elif tType == self.T_SKIP:
|
||||
self.theResult += "\\bigskip\n"
|
||||
self.theResult += "\\bigskip\n\n"
|
||||
|
||||
elif tType == self.T_TEXT:
|
||||
thisPar.append(self._escapeUnicode(tText))
|
||||
|
||||
@@ -99,7 +103,7 @@ class ToLaTeX(Tokenizer):
|
||||
elif tType == self.T_COMMENT and self.doComments:
|
||||
self.theResult += "%s\n\n" % tText
|
||||
|
||||
elif tType == self.T_COMMAND and self.doCommands:
|
||||
elif tType == self.T_KEYWORD and self.doKeywords:
|
||||
self.theResult += "%% @%s\n\n" % tText
|
||||
|
||||
return
|
||||
|
||||
@@ -98,13 +98,16 @@ class ToMarkdown(Tokenizer):
|
||||
elif tType == self.T_SEP:
|
||||
self.theResult += "%s\n\n" % tText
|
||||
|
||||
elif tType == self.T_SKIP:
|
||||
self.theResult += "\n\n\n\n"
|
||||
|
||||
elif tType == self.T_TEXT:
|
||||
thisPar.append(tText)
|
||||
|
||||
elif tType == self.T_COMMENT and self.doComments:
|
||||
self.theResult += "%s\n\n" % tText
|
||||
|
||||
elif tType == self.T_COMMAND and self.doCommands:
|
||||
elif tType == self.T_KEYWORD and self.doKeywords:
|
||||
self.theResult += "%s\n\n" % tText
|
||||
|
||||
return
|
||||
|
||||
@@ -105,13 +105,16 @@ class ToText(Tokenizer):
|
||||
tText = self._centreText(tText,self.wordWrap)
|
||||
self.theResult += "%s\n\n" % tText
|
||||
|
||||
elif tType == self.T_SEP:
|
||||
self.theResult += "\n\n\n\n"
|
||||
|
||||
elif tType == self.T_TEXT:
|
||||
thisPar.append(tText)
|
||||
|
||||
elif tType == self.T_COMMENT and self.doComments:
|
||||
self.theResult += "%s\n\n" % tText
|
||||
|
||||
elif tType == self.T_COMMAND and self.doCommands:
|
||||
elif tType == self.T_KEYWORD and self.doKeywords:
|
||||
self.theResult += "%s\n\n" % tText
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user