Backport new copytext stuff from dailygraphics.