theshell.ch/bonus2
bevilj ca47e336ba bonus2: do not escape preformatted text chars
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@264 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-19 11:29:22 +00:00
..
gradle/wrapper bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
res bonus2: support special html chars 2018-11-16 20:02:39 +00:00
src/ch/usi/inf/atelier/group1 bonus2: do not escape preformatted text chars 2018-11-19 11:29:22 +00:00
.svnignore bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
ReadMe.md bonus2: add support for combinig multiple html files into one LaTeX doc 2018-11-15 15:11:32 +00:00
bonus2.iml Initial bonus 2 implementation 2018-11-12 18:16:45 +00:00
build.gradle bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
gradlew bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
gradlew.bat bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00

ReadMe.md

Bonus 2

Author: Bevilacqua Joey

Language: Kotlin

Build

To compile this exercise gradle and java-1.8 are needed.

To create a working jar executable, run

./gradlew shadowJar

The output jar will be available at this path: build/libs/bonus2.jar

Execute

java -jar bonus2.jar [-s, --singlepage] [file1.html] [file2.html] [directory]

Both files and directories can be passed as parameter, even at the same.

If a directory is passed as parameter, the program will attemp to recursively search for Jekyll html files.

The converted LaTeX files will be created in the out directory with subdirectories matching the absolute path of the files passed as argument.

Note that the program will not work with plain html files, it requires Jekyll html files instead.

The -s or --singlepage flag creates one single output LaTeX file instead of many. It will be output'ed in the "out" directory.

Test files is available for reference under the directory res.

Supported tags

HTML tags

  • b -> textbf
  • br -> \
  • code -> texttt
  • i -> emph
  • a -> emph footnote url
  • ul -> itemize
  • ol -> itemize
  • li -> item
  • pre -> verbatim
  • h1 -> section
  • h2 -> subsection
  • h3 -> subsubsection
  • h4 -> plainText
  • h5 -> plainText
  • p -> plainText
  • table -> table tabular
  • u -> underline

Extra

  • comments are removed
  • jekyll author -> LaTeX author
  • jekyll title -> LaTeX title
  • jekyll highlight -> verbatim