#<!ENTITY common.series "Series">
#<!ENTITY common.keyword "Keyword">
#<!ENTITY common.type "Type">
+#<!ENTITY tricksy.entity 'Some text with "quoted" content'>
print "var entities = {};";
while( $line = <> ) {
- if ($line =~ /<!ENTITY\s+(\S+)\s+(["'].*["'])\s*>/) {
+ if ($line =~ /<!ENTITY\s+(\S+)\s+((["']).*\3)\s*>\s*$/) {
print "entities['$1'] = $2;\n";
} else {
chomp $line;
#!/bin/bash
-./dtd2js.pl ~/ILS/Open-ILS/web/opac/locale/en-US/lang.dtd > ../chrome/content/main/lang.js
+./dtd2js.pl ../../../web/opac/locale/en-US/lang.dtd > ../chrome/content/main/lang.js