In the fifth century B.C., members of the "League of the Greeks" paid annual tribute to Athens. The Athenian Tribute Quota lists are a series of fragmentarily preserved inscriptions recording the proportion of that payment (1/60) that was handed over to the Treasurers of Athena.
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
# Add to your .profile or equivalent: | |
export JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8" |
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
/* | |
Uses grapes to grab all dependencies needed to convert textual data in | |
XML texts of Greek like ancient Perseus texts from beta code representation | |
of Greek to the polytonic Greek range of Unicode in UTF-8 while preserving markup. | |
Writes a UTF-8 version of the XML file to standard output. | |
*/ | |
String usage = "Usage: groovy betaToUtf8Xml.groovy <FILENAME>" |
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
/* | |
Simple groovy script to convert a CTS repository of local XML files to : | |
1. tabular representation in structured text files | |
2. graph representation in RDF (TTL) | |
Usage: groovy cts.groovy <INVENTORY> <ARCHIVEROOT> <SCHEMA> | |
where INVENTORY is a CTS TextInventory file, ARCHIVEROOT is the root directory | |
where XML editions are stored, and SCHEMA is the Relax NG schema for validating |
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
export EDITOR="/usr/bin/open -n -W -a /Applications/TextEdit.app" |
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
<ul id="citekit-sources"> | |
<li class="citekit-source cite-text citekit-default">http://DEFAULTCTS</li> | |
<li class="citekit-source cite-image citekit-default">http://DEFAULTIMGSVC</li> | |
<li class="citekit-source cite-collection citekit-default">http://DEFAULTCOLL</li> | |
</ul> |
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
while (<STDIN>) { | |
my $currLine = $_; | |
# accept deletions: | |
$currLine =~ s#{--[^\-]+--}##g; | |
# accept additions: | |
$currLine =~ s#{\+\+([^+]*)\+\+}#$1#g; | |
# accept changes: | |
$currLine =~ s#{~~[^~]+~>([^~]+)~~}#$1#; | |
print $currLine; | |
} |
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
while (<STDIN>) { | |
my $currLine = $_; | |
#reject deletions: | |
$currLine =~ s#{--([^\-]+)--}#$1#g; | |
#reject additions: | |
$currLine =~ s#{\+\+([^+]*)\+\+}##g; | |
#reject changes: | |
$currLine =~ s#{~~([^~]+)~>[^~]+~~}#$1#g; | |
print $currLine; | |
} |
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
/* | |
groovy XmlParser creates a tree of nodes that are | |
either Strings or groovy.util.Node objects. Walk the | |
parsed tree recursively and save text content. | |
*/ | |
String collectText(Object n, String allText) { | |
if (n.getClass().getName() == "java.lang.String") { | |
allText = allText + n |
OlderNewer