Add test files
authorNiki Roo <niki@nikiroo.be>
Fri, 23 Mar 2018 13:38:19 +0000 (14:38 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 23 Mar 2018 13:38:19 +0000 (14:38 +0100)
test/expected/cbz.cbz [new file with mode: 0644]
test/expected/epub.epub [new file with mode: 0644]
test/expected/html/html.info [new file with mode: 0644]
test/expected/html/html.txt [new file with mode: 0644]
test/expected/html/index.html [new file with mode: 0644]
test/expected/html/style.css [new file with mode: 0644]
test/expected/info_text [new file with mode: 0644]
test/expected/info_text.info [new file with mode: 0644]
test/expected/latex.tex [new file with mode: 0644]
test/expected/text.txt [new file with mode: 0644]
test/test.story [new file with mode: 0644]

diff --git a/test/expected/cbz.cbz b/test/expected/cbz.cbz
new file mode 100644 (file)
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 (file)
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 (file)
index 0000000..6831683
--- /dev/null
@@ -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 (file)
index 0000000..4ff9013
--- /dev/null
@@ -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 (file)
index 0000000..22b6eb0
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta http-equiv='content-type' content='text/html; charset=utf-8'>
+       <meta name='viewport' content='width=device-width, initial-scale=1.0'>
+       <link rel='stylesheet' type='text/css' href='style.css'>
+       <title>The trials of Fanfan</title>
+</head>
+<body>
+
+       <div class="titlepage">
+               <h1>The trials of Fanfan</h1>
+                       <div class="type"></div>
+               <div class="cover">
+                       <img src="cover.png"></img>
+               </div>
+               <div class="author">UnknownArtist366</div>
+       </div>
+       <hr/><br/>              <div class='normals'>
+               <span class='normal'>This `story‘ is nothing more than a test file to check</span>
+               <span class='normal'>that the program can convert it into different</span>
+               <span class='normal'>formats correctly.</span>
+               </div>
+
+       <br/>
+       <h2>
+               <span class='chap'>Chapter <span class='chapnumber'>1</span>:</span> 
+               <span class='chaptitle'>Quotes</span>
+       </h2>
+       
+       <div class='chapter_content'>
+               <div class='dialogues'>
+                       <div class='dialogue'>&mdash; “Yes, quotes!”, I said.</div>
+                       <div class='dialogue'>&mdash; `Thos can start with a single- or double quote sign‘, I continued.</div>
+                       <div class='dialogue'>&mdash; “ They also supports other characters, and an optionnal leading dash. ”</div>
+                       <div class='dialogue'>&mdash; “The optionnal leading dash is enough to signify “quote”.”</div>
+               </div>
+
+       </div>
+       <h2>
+               <span class='chap'>Chapter <span class='chapnumber'>2</span>:</span> 
+               <span class='chaptitle'>“Quote” test</span>
+       </h2>
+       
+       <div class='chapter_content'>
+               <div class='normals'>
+               <span class='normal'>This test was just for the chapter title.</span>
+               <span class='normal'>We can also check for breaks.</span>
+               </div>
+               <hr class='break'/>
+               <div class='normals'>
+               <span class='normal'>This was a break space.</span>
+               </div>
+
+       </div></body>
diff --git a/test/expected/html/style.css b/test/expected/html/style.css
new file mode 100644 (file)
index 0000000..6b6d0d2
--- /dev/null
@@ -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 (file)
index 0000000..e6c90d2
--- /dev/null
@@ -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 (file)
index 0000000..5e97cce
--- /dev/null
@@ -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 (file)
index 0000000..81909dd
--- /dev/null
@@ -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 (file)
index 0000000..4ff9013
--- /dev/null
@@ -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 (file)
index 0000000..c3136a3
--- /dev/null
@@ -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.
+