Skip to content

mytory/idml2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

idml2html

Installation

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.

Korean

sudo ./install.sh์„ ์‹คํ–‰ํ•œ๋‹ค. ์ด ์Šคํฌ๋ฆฝํŠธ๋Š” /usr/local/bin ํด๋”์— ๋งํฌ๋ฅผ ๊ฑด๋‹ค.

์•„๋ž˜์ฒ˜๋Ÿผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

idml2html idmlfile.idml result.html

์ด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋ ค๋ฉด ํŽ„์ด ํ•„์š”ํ•˜๋‹ค.

Manual usage

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.

  1. Unzip idml file(unzip idml-file.idml).
  2. Stories folder contains the text that is xml. Run the following script.
  3. for f in Stories/* ; do idml2html.pl "$f" ; printf "\n\n------\n\n" ; done > result.html

Korean

์ธ๋””์ž์ธ์—์„œ idml๋กœ ์ €์žฅํ•œ ํŒŒ์ผ์„ html๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ์Šคํฌ๋ฆฝํŠธ๋‹ค.

์‚ฌ์‹ค idml์€ zip ํŒŒ์ผ์ด๋‹ค. unzip์œผ๋กœ ์••์ถ•์„ ํ’€๋ฉด ํ’€๋ฆฐ๋‹ค. ๊ทธ๋Ÿผ ๊ทธ ์•ˆ์— xml ํŒŒ์ผ๋“ค์ด ๋“ค์–ด ์žˆ๋Š”๋ฐ, ์ด xml ํŒŒ์ผ์„ html๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ํŽ„ ์Šคํฌ๋ฆฝํŠธ๋‹ค.

  1. idml ํŒŒ์ผ ์••์ถ• ํ‘ผ๋‹ค (unzip idml-file.idml)
  2. Stories ํด๋” ์•ˆ์— xml๋กœ ๋ณธ๋ฌธ์ด ๋“ค์–ด ์žˆ๋‹ค. ์•„๋ž˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.
  3. for f in Stories/* ; do idml2html.pl "$f" ; printf "\n\n------\n\n" ; done > result.html

About

Perl script convert idml to html.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors