based on dotclear2-importer from kyon79 in official wordpress plugin