KanjiVG / kanjivg

Kanji vector graphics
http://kanjivg.tagaini.net
Other
1.05k stars 180 forks source link

Add a stripped XML version to the release #459

Closed benkasminbullock closed 1 month ago

benkasminbullock commented 1 month ago

Add a version to the release where the XML is stripped of the attribute list and the KanjiVG-specific attributes. Perl code to remove it all is as follows:

use File::Slurper qw!read_text write_text!;
my $file = "$Bin/051fe.svg";
my $text = read_text ($file);
$text =~ s!\[.*?<\!ATTLIST.*?\]>!>!sm;
$text =~ s!kvg:([a-z]+?)="[^"]+"\s*!!g;
$text =~ s!\s+>!>!g;

This just needs to be done with the release and a new set of files such as kanjivg-20240804-stripped.zip added to the release.

benkasminbullock commented 1 month ago

This is now complete.