Page 1 of 1

Version 0.2.0 published (26. March 2011)

Posted: Sat 26. Mar 2011, 14:46
by Raimond
Hi,

here's the next version.
- Two additional fanfiction pages
- output layout changable (see layout.hmtl which is automatically created after you've downloaded the first story)
- ...

Rai

Re: Version 0.2.0 published (26. March 2011)

Posted: Sat 26. Mar 2011, 23:02
by Berry
Thank you for the update! If we want to change the layout, does that mean we should edit the layout.html file?

Re: Version 0.2.0 published (26. March 2011)

Posted: Sun 27. Mar 2011, 13:32
by Raimond
Hi,

Yes, edit the layout.html file.
But you aren't allowed to change or remove the bold&redcolored parts!!!! Thats very important.
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<meta name="author" content="%author">
<title>%author: %storyname</title>
</head>
<body>
<br/><br/>
<div style="text-align:center">
<h1>%storyname</h1>
</div>
<br/><br/>
<b>Story:</b> %storyname<br>
<b>Storylink:</b> <a href="%storylink">%storylink</a><br/>
<b>Author:</b> %author<br/>
<b>Last updated:</b> %updated<br/>
<b>Content:</b> Chapter %beg to %end of %total chapters<br/>
<b>Source:</b> %archivename<br><br>
<b>Summary:</b> %summary

<!--CHAPTERAREA START-->
<h2 class=chapterffdl>*Chapter %chapnumber*: %chapname</h2>
%chaptertext
<!--CHAPTERAREA STOP-->

</body>
</html>
Rai

Re: Version 0.2.0 published (26. March 2011)

Posted: Sun 3. Apr 2011, 05:06
by Berry
Great. Thank you. I've been playing around with the layout and I appreciate the freedom.

One thing, though: I was hoping to make it so that the Chapter headings aren't larger in font than the rest of the document. I know you said we can't touch that section, but is there a way to do set that?

Thank you again.

Re: Version 0.2.0 published (26. March 2011)

Posted: Sun 3. Apr 2011, 10:31
by Raimond
Hi Berry

Calibe creates an TOC for some outputformats. (e.g. for epub files). It detects the beginning/name of a new chapter by looking for "<h2 class=chapterffdl>"
So this h2 Tag isn't important for the downloader, but for Calibre if you are using the TOC feature.
If not: feel free to modify it.

You could also enter some CSS Code for all h2 Tags or for class chapterffdl to modify the size.

Rai

Re: Version 0.2.0 published (26. March 2011)

Posted: Sun 3. Apr 2011, 15:14
by Berry
Thanks for the explanation, Rai. I would like to keep the TOC for the epub format, so I guess I'll be keeping the h2. Is the h1 tag for the story title also something that Calibre reads and uses? I had removed it from the layout so that the title wouldn't be so large, but if it will also affect the epub adversely, I'm going to have to restore it.

Thanks again.