Tools to convert Japanese HTML CodeIgniter User Guide into Sphinx
PHP Python Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
FILES
README.rst
convert.sh
csv2rst.php
filter.php
get_table.php
html2rest.py
makerst.php
max_length.php
mbtextwrap.py
simple_html_dom.php

README.rst

Tools to convert Japanese HTML CodeIgniter User Guide into Sphinx

Setup Instructions

There are tools to convert translated HTML CodeIgniter User Guide into Sphinx RST files.

Before Converting

Replace " " with space in HTML User Guide.

How to Use

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.

Helper Script

You can get RST of tables.

$ php get_table.php path/to/html_user_guide/libraies/email.html

Using Libraries

Thanks.