From: Niki Roo Date: Fri, 23 Mar 2018 13:38:19 +0000 (+0100) Subject: Add test files X-Git-Tag: fanfix-1.7.0~22 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=2d5242c8c8b0f901239c9765efee0ac8bd3fcc5e;p=fanfix.git Add test files --- diff --git a/test/expected/cbz.cbz b/test/expected/cbz.cbz new file mode 100644 index 0000000..30c6efc Binary files /dev/null and b/test/expected/cbz.cbz differ diff --git a/test/expected/epub.epub b/test/expected/epub.epub new file mode 100644 index 0000000..ea932ba Binary files /dev/null and b/test/expected/epub.epub differ diff --git a/test/expected/html/html.info b/test/expected/html/html.info new file mode 100644 index 0000000..6831683 --- /dev/null +++ b/test/expected/html/html.info @@ -0,0 +1,18 @@ +TITLE="The trials of Fanfan" +AUTHOR="UnknownArtist366" +DATE="2018" +SUBJECT="test" +SOURCE="text" +URL="file:/home/niki/workspace/fanfix/test/test.story" +TAGS="" +UUID="file:/home/niki/workspace/fanfix/test/test.story" +LUID="" +LANG="en" +IMAGES_DOCUMENT="false" +TYPE="text" +COVER="" +EPUBCREATOR="Fanfix (by Niki)" +PUBLISHER="" +WORDCOUNT="59" +CREATION_DATE="2018-03-23 11:27:04" +FAKE_COVER="false" diff --git a/test/expected/html/html.txt b/test/expected/html/html.txt new file mode 100644 index 0000000..4ff9013 --- /dev/null +++ b/test/expected/html/html.txt @@ -0,0 +1,27 @@ +The trials of Fanfan +by UnknownArtist366 (2018) + +Chapter 0: Description +—————————————————————— + +This `story‘ is nothing more than a test file to check +that the program can convert it into different +formats correctly. + +Chapter 1: Quotes +————————————————— + +“Yes, quotes!”, I said. +`Thos can start with a single- or double quote sign‘, I continued. +“ They also supports other characters, and an optionnal leading dash. ” +“The optionnal leading dash is enough to signify “quote”.” + +Chapter 2: “Quote” test +——————————————————————— + +This test was just for the chapter title. +We can also check for breaks. + +* * * + +This was a break space. diff --git a/test/expected/html/index.html b/test/expected/html/index.html new file mode 100644 index 0000000..22b6eb0 --- /dev/null +++ b/test/expected/html/index.html @@ -0,0 +1,55 @@ + + + + + + + The trials of Fanfan + + + +
+

The trials of Fanfan

+
+
+ +
+
UnknownArtist366
+
+

+ This `story‘ is nothing more than a test file to check + that the program can convert it into different + formats correctly. +
+ +
+

+ Chapter 1: + Quotes +

+ +
+
+
— “Yes, quotes!”, I said.
+
— `Thos can start with a single- or double quote sign‘, I continued.
+
— “ They also supports other characters, and an optionnal leading dash. ”
+
— “The optionnal leading dash is enough to signify “quote”.”
+
+ +
+

+ Chapter 2: + “Quote” test +

+ +
+
+ This test was just for the chapter title. + We can also check for breaks. +
+
+
+ This was a break space. +
+ +
diff --git a/test/expected/html/style.css b/test/expected/html/style.css new file mode 100644 index 0000000..6b6d0d2 --- /dev/null +++ b/test/expected/html/style.css @@ -0,0 +1,112 @@ +html { + text-align: justify; + max-width: 800px; + margin: auto; +} + +.titlepage { + padding-left: 10%; + padding-right: 10%; + width: 80%; +} + +h1 { + padding-bottom: 0; + margin-bottom: 0; + text-align: left; +} + +.type { + position: relative; + font-size: large; + color: #666666; + font-weight: bold; + padding-bottom: 10px; + text-align: left; +} + +.cover, .page-image { + width: 100%; +} + +.cover img { + height: 45%; + max-width: 100%; + margin: auto; +} + +.author { + text-align: right; + font-size: large; + font-style: italic; +} + +.book, .chapter_content { + NO_text-indent: 40px; + padding-top: 40px; + padding-left: 5%; + padding-right: 5%; + width: 90%; +} + +h2 { + border: 1px solid black; + color: #222222; + padding-left: 10px; + padding-right: 10px; + display: block; + padding-bottom: 0; + margin-bottom: 0; +} + +h2 .chap { + color: #000000; + font-size: large; + font-variant: small-caps; + display: block; +} + +h2 .chap:first-letter { + font-weight: bold; +} + +h2 .chapnumber { + color: #000000; + font-size: xx-large; +} + +h2 .chaptitle { + color: #444444; + font-size: large; + font-style: italic; + padding-bottom: 5px; + text-align: right; + display: block; +} + +.normals { +} + +.normal { + /* Can be removed if you want a more "compact" view */ + display: block; +} + +.blank { + /* Can be removed if you want a more "compact" view */ + height: 24px; + width: 100%; +} + +hr.break { + /* Can be removed if you want a more "compact" view */ + margin-top: 48px; + margin-bottom: 48px; +} + +.dialogues { +} + +.dialogue { + font-style: italic; +} diff --git a/test/expected/info_text b/test/expected/info_text new file mode 100644 index 0000000..e6c90d2 --- /dev/null +++ b/test/expected/info_text @@ -0,0 +1,24 @@ +The trials of Fanfan +by UnknownArtist366 (2018) + +Chapter 0: Description + +This 'story' is nothing more than a test file to check +that the program can convert it into different +formats correctly. + +Chapter 1: Quotes + +"Yes, quotes!", I said. +'Thos can start with a single- or double quote sign', I continued. +" They also supports other characters, and an optionnal leading dash. " +"The optionnal leading dash is enough to signify "quote"." + +Chapter 2: “Quote” test + +This test was just for the chapter title. +We can also check for breaks. + +* * * + +This was a break space. diff --git a/test/expected/info_text.info b/test/expected/info_text.info new file mode 100644 index 0000000..5e97cce --- /dev/null +++ b/test/expected/info_text.info @@ -0,0 +1,18 @@ +TITLE="The trials of Fanfan" +AUTHOR="UnknownArtist366" +DATE="2018" +SUBJECT="test" +SOURCE="text" +URL="file:/home/niki/workspace/fanfix/test/test.story" +TAGS="" +UUID="file:/home/niki/workspace/fanfix/test/test.story" +LUID="" +LANG="en" +IMAGES_DOCUMENT="false" +TYPE="info_text" +COVER="" +EPUBCREATOR="Fanfix (by Niki)" +PUBLISHER="" +WORDCOUNT="59" +CREATION_DATE="2018-03-23 11:27:04" +FAKE_COVER="false" diff --git a/test/expected/latex.tex b/test/expected/latex.tex new file mode 100644 index 0000000..81909dd --- /dev/null +++ b/test/expected/latex.tex @@ -0,0 +1,44 @@ +% +% This LaTeX document was auto-generated by Fanfic Reader, created by Niki. +% + +\documentclass[a4paper]{book} +\usepackage[english]{babel} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{lmodern} +\newcommand{\br}{\vspace{10 mm}} +\newcommand{\say}{--- \noindent\emph} +\hyphenpenalty=1000 +\tolerance=5000 +\begin{document} +\date{2018} +\title{The trials of Fanfan} +\author{UnknownArtist366} +\maketitle + + + +\chapter{Quotes} + +\say{``Yes, quotes!'', I said.} + +\say{`Thos can start with a single- or double quote sign', I continued.} + +\noindent{} +\say{`` They also supports other characters, and an optionnal leading dash. ''} + +\noindent{} +\say{``The optionnal leading dash is enough to signify ``quote''.''} + +\noindent{} + + +\chapter{``Quote'' test} +This test was just for the chapter title. +We can also check for breaks. + +\br +This was a break space. + +\end{document} diff --git a/test/expected/text.txt b/test/expected/text.txt new file mode 100644 index 0000000..4ff9013 --- /dev/null +++ b/test/expected/text.txt @@ -0,0 +1,27 @@ +The trials of Fanfan +by UnknownArtist366 (2018) + +Chapter 0: Description +—————————————————————— + +This `story‘ is nothing more than a test file to check +that the program can convert it into different +formats correctly. + +Chapter 1: Quotes +————————————————— + +“Yes, quotes!”, I said. +`Thos can start with a single- or double quote sign‘, I continued. +“ They also supports other characters, and an optionnal leading dash. ” +“The optionnal leading dash is enough to signify “quote”.” + +Chapter 2: “Quote” test +——————————————————————— + +This test was just for the chapter title. +We can also check for breaks. + +* * * + +This was a break space. diff --git a/test/test.story b/test/test.story new file mode 100644 index 0000000..c3136a3 --- /dev/null +++ b/test/test.story @@ -0,0 +1,23 @@ +The trials of Fanfan +by UnknownArtist366 (2018) + +Chapter 0: Description + +This 'story' is nothing more than a test file to check +that the program can convert it into different +formats correctly. + +Chapter 1: Quotes +- "Yes, quotes!", I said. +'Thos can start with a single- or double quote sign', I continued. +- « They also supports other characters, and an optionnal leading dash. » +- The optionnal leading dash is enough to signify "quote". + +Chapter 2: "Quote" test +This test was just for the chapter title. +We can also check for breaks. + +* * * + +This was a break space. +