Run sudo ./install.sh. The script link files to /usr/local/bin folder.
Use like below.
idml2html idmlfile.idml result.html
You need perl for this script.
sudo ./install.sh์ ์คํํ๋ค. ์ด ์คํฌ๋ฆฝํธ๋ /usr/local/bin ํด๋์ ๋งํฌ๋ฅผ ๊ฑด๋ค.
์๋์ฒ๋ผ ์ฌ์ฉํ๋ฉด ๋๋ค.
idml2html idmlfile.idml result.html
์ด ์คํฌ๋ฆฝํธ๋ฅผ ์คํํ๋ ค๋ฉด ํ์ด ํ์ํ๋ค.
This is script that convert InDesign idml to html.
In fact, idml is zip file. You can unzip idml file. So you can find xml files in it. This is a perl script convert the xml file to html.
- Unzip
idmlfile(unzip idml-file.idml). Storiesfolder contains the text that isxml. Run the following script.for f in Stories/* ; do idml2html.pl "$f" ; printf "\n\n------\n\n" ; done > result.html
์ธ๋์์ธ์์ idml๋ก ์ ์ฅํ ํ์ผ์ html๋ก ๋ณํํ๋ ์คํฌ๋ฆฝํธ๋ค.
์ฌ์ค idml์ zip ํ์ผ์ด๋ค. unzip์ผ๋ก ์์ถ์ ํ๋ฉด ํ๋ฆฐ๋ค. ๊ทธ๋ผ ๊ทธ ์์ xml ํ์ผ๋ค์ด ๋ค์ด ์๋๋ฐ, ์ด xml ํ์ผ์ html๋ก ๋ณํํ๋ ํ ์คํฌ๋ฆฝํธ๋ค.
idmlํ์ผ ์์ถ ํผ๋ค (unzip idml-file.idml)Storiesํด๋ ์์xml๋ก ๋ณธ๋ฌธ์ด ๋ค์ด ์๋ค. ์๋ ์คํฌ๋ฆฝํธ๋ฅผ ์คํํ๋ค.for f in Stories/* ; do idml2html.pl "$f" ; printf "\n\n------\n\n" ; done > result.html