Digital-Humanities-Quarterly / dhq-journal

DHQ is an open-access, peer-reviewed journal of digital humanities.
http://www.digitalhumanities.org/dhq/
10 stars 5 forks source link

use “resources/images/” as the initial path in all `@url` attributes #62

Open sydb opened 5 months ago

sydb commented 5 months ago

Per request @juliaflanders add code to the TEIGarage → DHQstarter routine (common/xslt/convert_tei2dhq.xsl) so that regardless of what input has before the filename, the output has “resources/images/”.

(Note: this might cause problems if the input were ever something like "https://bauman.zapto.org/~syd/pics/Dungeouns_and_Dragons_rulebooks_2020-03-20T12:44:01.jpg". As far as I know, this never happens. And if it did, we might want "resources/images/Dungeouns_and_Dragons_rulebooks_2020-03-20T12:44:01.jpg", anyway. :-)

sydb commented 5 months ago

Note to potential reviewers — Make sure to hide whitespace when looking at the “Files changed”, otherwise it will look like hundreds of lines have been changed.

(This change only adds 1 template that has a start tag, 1 line of code, 6 lines of comment, and an end tag.)