There are tools to convert translated HTML CodeIgniter User Guide into Sphinx RST files.
Replace " " with space in HTML User Guide.
Get repoistoies.
$ git clone git://github.com/EllisLab/CodeIgniter.git $ git clone git://github.com/codeigniter-jp/ci-ja.git $ git clone git://github.com/codeigniter-jp/html2sphinx.git
"ci-ja" repository has translated User Guide in "ci-ja/user_guide_ja/" folder.
Copy "CodeIgniter" repository's "user_guide_src/" folder as "user_guide_ja_src".
$ cp -R CodeIgniter/user_guide_src ci-ja/user_guide_ja_src
Copy the tools to "source" folder.
$ cp html2sphinx/* ci-ja/user_guide_ja_src/source/ $ rm ci-ja/user_guide_ja_src/source/README.rst
Convert HTML into RST.
$ cd ci-ja/user_guide_ja_src/source $ sh convert.sh
You can get Japanese RST files in "source" folder.
You can get RST of tables.
$ php get_table.php path/to/html_user_guide/libraies/email.html
Thanks.
- https://bitbucket.org/djerdo/musette/ (html2rest.py)
- http://simplehtmldom.sourceforge.net/ (simple_html_dom.php)