How Do I Add A New Encoding To AmphetaDesk?
AmphetaDesk 0.93.2 and above ship with a number of default encodings, which you can see by browsing the lib/XML/Parser/Encodings/ directory. As the name suggests, these all come from the XML::Parser::Encodings Perl module, which also contains some scripts to make your own from encoding maps freely available online. To build your own encoding: • Download encoding.txt from ftp://ftp.unicode.org/Public/MAPPINGS/. • Run make_encmap encoding encoding.txt > encoding.encmap. • Add expat=”yes” on the document element in encoding.encmap. • Run compile_encoding -o encoding.enc encoding.encmap. Once you’ve got the encoding.enc file, drop it into lib/XML/Parser/Encodings/ and test it out on a feed that requires it. If everything goes smoothly, drop the encoding into an email to morbus@disobey.com for inclusion into a future release. Thanks to Klaus Johannes Rusch.