Skip to content

Instantly share code, notes, and snippets.

@agoldst
agoldst / html_clean.hs
Created April 21, 2013 16:12
a clean-up operation on tex4ht/biblatex output
import Text.Pandoc
{-
This script uses the Pandoc library to do two transformations
needed on the way from my mixed markdown/LaTeX syllabus sources to a
single HTML file:
1. Transform the slightly garbled html produced by tex4ht from LaTeX
source containing a biblatex bibliography by getting rid of definition
@agoldst
agoldst / threepercent-post.Rmd
Last active December 15, 2015 01:59
calculations going into a blogpost about the Three Percent translation counts
As long promised, here are some links to the data I showed a table of during our discussion of Casanova about U.S. literary translation.
By kind permission of Chad Post, I can make available an aggregate data file of all the literature translations catalogued by Three Percent. I've decided to put the data file, together with some scripts and information about the munging, in a [github repository](http://github.com/agoldst/threepercent). The data consists of a single CSV file with one line for each title: [all_titles.csv](https://github.com/agoldst/threepercent/blob/master/all_titles.csv) ([Wikipedia on CSV format](http://en.wikipedia.org/wiki/Comma-separated_values)).
I have produced this by exporting the first "sheet" of each of the five yearly spreadsheets available at [the Three Percent Translation Database](http://www.rochester.edu/College/translation/threepercent/index.php?s=database) and then combining the files. According to Chad Post, updated data will be available soon, at which point I can reprodu
@agoldst
agoldst / woolf-bennett.R
Created February 8, 2013 17:25
quickie plots for the Woolf-Bennett ULTIMATE SHOWDOWN
# the metadata.R script (for read.citations()) is part of
# this git repository:
# http://github.com/agoldst/dfr-analysis
# So change this path as needed
source("~/Developer/dfr-analysis/metadata.R")
bennett.df <- read.citations("bennett.csv")
woolf.df <- read.citations("woolf.csv")
# Now bind the two together, using columns to flag AB and VW hits