based on dotclear2-importer from kyon79 and wordpressdotorg