This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Pandoc filter to convert Tracked Changes in docx | |
input to CriticMarkup in the output. | |
""" | |
from pandocfilters import toJSONFilter, Str, RawInline | |
def findValue (which, items): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Pandoc filter to parse CriticMarkup into Spans for | |
Insertion and Deletion. The Docx writer will convert | |
these into Tracked Changes. | |
A comment immediately after a change will be parsed | |
for "author: The Author" and "date: 12-21-12", which | |
will be inserted into the Span as appropriate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Javascript bookmarklet to decode old texts with encoding problems | |
// between Windows 1252 and utf-8 | |
// Intended to be used as a bookmarklet | |
var ct=[ | |
{"c":"€","ch":"€"}, | |
{"c":"Â\x81","ch":"\x81"}, | |
{"c":"‚","ch":"‚"}, | |
{"c":"Æ’","ch":"ƒ"}, | |
{"c":"„","ch":"„"}, |