From 2d5242c8c8b0f901239c9765efee0ac8bd3fcc5e Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 23 Mar 2018 14:38:19 +0100 Subject: [PATCH] Add test files --- test/expected/cbz.cbz | Bin 0 -> 1383 bytes test/expected/epub.epub | Bin 0 -> 6243 bytes test/expected/html/html.info | 18 ++++++ test/expected/html/html.txt | 27 ++++++++ test/expected/html/index.html | 55 +++++++++++++++++ test/expected/html/style.css | 112 ++++++++++++++++++++++++++++++++++ test/expected/info_text | 24 ++++++++ test/expected/info_text.info | 18 ++++++ test/expected/latex.tex | 44 +++++++++++++ test/expected/text.txt | 27 ++++++++ test/test.story | 23 +++++++ 11 files changed, 348 insertions(+) create mode 100644 test/expected/cbz.cbz create mode 100644 test/expected/epub.epub create mode 100644 test/expected/html/html.info create mode 100644 test/expected/html/html.txt create mode 100644 test/expected/html/index.html create mode 100644 test/expected/html/style.css create mode 100644 test/expected/info_text create mode 100644 test/expected/info_text.info create mode 100644 test/expected/latex.tex create mode 100644 test/expected/text.txt create mode 100644 test/test.story diff --git a/test/expected/cbz.cbz b/test/expected/cbz.cbz new file mode 100644 index 0000000000000000000000000000000000000000..30c6efc58717aed210708390700501a869b26065 GIT binary patch literal 1383 zcmWIWW@Zs#;Nak3NQy4^VL$>LKz4Fcm0o6ETK?P#2mPB3B#yrStL@=mHG}8EN)_9Z zr3OGKwcheIvE=ls|9hb~{%d>L!DX5L?_ACuKb!IUVb8=Ro}LB|w0i#?PB&&ZKP%j1 zTH?9gg?aMdlF_X zefsSA+tnIMYFD;=dM8-s6QT9#)%$L-(+LmR`<}P{tKG5ZsK&DMdv?u;O{!rI@Mh;Y zwDRgjHbw@94j>M|8FtLTunP_H@jiXVbL*w^C(ip`J%9SlxhwkT^-t;PdHDEU_4hvG zeR|CWeNSCIM&YWXsy|()0*zzmm~x}aQxB-w0ElrL&kl{6l8TbGL3{H=3(`R!<7>tsmFyhRyElDd1x6?+&EVG=9O~=q7!=9dvyqp{k%y%?{2`ae1UvPGP3p(3 zYU;1uzkMRT(QYwM)B;|wg+e;Ho2(bll}_FfAfF+6e#umkee=85W%=7yp6GaN!g$7) zEzW($`~BCYH?MFNjx8`g-|yDda!`4L*ZG4RO!Tx>I*;^}Z$FxOcv6~S?FM!)x8S{= zYu~J4yjrtZB6CM^=RWxd{2<3KxKOjW1L*K2V8=5ui7+4v6XdJ{DojuTtY``FM%9I! z13*E705-tj1!gLA4agx6$`}YR8>j(f4KSOaYeEimR81j3OQBJOt_j(*sG9nKnxL^0 T;LXYgasn$5f(i<677z~ro-*~T literal 0 HcmV?d00001 diff --git a/test/expected/epub.epub b/test/expected/epub.epub new file mode 100644 index 0000000000000000000000000000000000000000..ea932ba19a632cbc533746fc7f290e75132d4757 GIT binary patch literal 6243 zcmb7J1yodB*QO*SL}5T0l+Ga}1eKC*>23ju0fq)?kdmB1x`!0$4hca(kdUFIK|tve zMBtzC)lcO6U)TEfteJK1y7xKf-o4Lx_Oth>$fIKrqhMoWqnPTsDWF_1Y{aphwVegn z17v|hjPm8&1O&3RHZuWRJJ@qsfLu)3Jgq_KC@S(;*bXMe>=cOGi4k9we;p75aaCF6 z5!XK$#0d%-@&{r6jsYO9A~9xGCLpkd69*8;!|84XwzExB>$e{fCA=@7%zadm?+Nmx zi`|f;hlsMO#Hh{(QF;yEadgd@mQDNkjdpqY8-3)MwMIf}oqOx_@mZ6rXT4r6NO?d2 zZmxQxHOf!H;!D>@iy>&@%2sxtcS1{&ZxY~vL#b%xwnIy6>zQESD&@|hX^0@#r|m_F zoi*|}L9wQ9lw!F_0*^XNzbtIts@WunaH#vTEIW*w?x^ofB`Xeu@^n3Bs_HT4AtUye zw@8Z~P_wVg^M>`|#|Q2Zr&Ck6+H;JIbkG>@rY?wHx1V|e5VYZ4_Lz+ulPnPx*0n6! zrS7n1mqFbUNMM0cnYBvGcGB?}jC;;Du9b_tS8HX#SGQYhej$T@p!UhiyynXlAxQM2 zb?M{%vUZk?LEYu)M3hZ*#1TfGsfYD|mQ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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. + -- 2.27.0