Added code to the ContentHandler to extract the site informarion directly from the input file itself, rather than depending on it being passed in to the handle_page() method.
* added a mandatory titlesdb and optional language argument to the command-line parser
* factored a _get_rule_for_heading() method out of the parsed_structured_section() method that calls on a ditionary with rules and relations for given heading types
* added a sense_num rule to handle the use of sense numbers in definitions and cross-references.
Added German-specific definition section.
Partial implementation of parse rules for German translation entries.
Finished parse rules for translation section.
Refactored WiktionaryWriter to make possible subclassing for handling different source formats.
Look up superclass methods when extracting EBNF
Updated help message to reflect sub-classing of ConceptNetWiktionarySemantics.
Almost done with German wiktionary parsing.
* added support for language names in German (and, incidentally, French)
* refactored ConceptWiktionarySemantics into separate subclasses for English and German (via, alas, multiple inheritance)
* modified Makefile to relect this refactoring (also .gitignore)
* added logger to main parser and relaxed exception handling to be able to collect failing patterns
Removed unnecessary encode('utf-8') directives.
Restored encoding directive on file open.
Added log level as optional command-line argument.
Added a 'no_links' pattern in an attempt to capture as many anomalies as possible in the 'link_section's, not all of whose items contain links.
Storing the 2-letter code as the preferred form it it exists, otherwise the 'terminology' version of the three-letter code.
Replace spaces with underscores in source URIs
Added a specialized synonym_section that can be used by EdgeInfo to set the source language of the endpoint to the head language rather than the default language of the wiktionary.
Added code to the ContentHandler to extract the site informarion directly from the input file itself, rather than depending on it being passed in to the handle_page() method.
* added a mandatory titlesdb and optional language argument to the command-line parser
* factored a _get_rule_for_heading() method out of the parsed_structured_section() method that calls on a ditionary with rules and relations for given heading types
* added a sense_num rule to handle the use of sense numbers in definitions and cross-references.
Added German-specific definition section.
Partial implementation of parse rules for German translation entries.