* Problem when converting epub to mobi
@ 2015-01-29 22:04 Cesar Romani
2015-01-30 6:09 ` Pablo Rodríguez
2015-01-31 2:21 ` John MacFarlane
0 siblings, 2 replies; 9+ messages in thread
From: Cesar Romani @ 2015-01-29 22:04 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
On 01/12/2014 12:47 a.m., John MacFarlane wrote:
> Thanks! I think this has already been fixed, in this commit to
> pandoc-types:
>
> commit 4425dfc894761cc6cdff8e67d3e5ba78df2d5d4e
> Author: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
> Date: Tue Jul 8 00:23:51 2014 -0600
>
> Added `type="text/css"` to link tags in epub3 template.
>
>
> I suppose we should get a new release together before the year's
> end.
Was it added? Because I'm having the same behavior as before, i.e. all
xhtml files have
<link rel="stylesheet" href="stylesheet.css" />
and not
<link rel="stylesheet" href="stylesheet.css" type="text/css" />
which has the effect that all style customizations on stylesheet aren't
recognized when converting the epub to mobi.
Moreover, on nav.xhtml it was added:
<nav epub:type="landmarks" hidden="hidden">
<ol>
<li>
<a href="cover.xhtml" epub:type="cover">Cover</a>
</li>
<li>
<a href="#toc" epub:type="toc">Table of contents</a>
</li>
</ol>
</nav>
which has the effect, that when converting the epub to mobi, it doesn't
contain any Table of Contents.
Many thanks in advance,
--
Cesar
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem when converting epub to mobi
2015-01-29 22:04 Problem when converting epub to mobi Cesar Romani
@ 2015-01-30 6:09 ` Pablo Rodríguez
[not found] ` <54CB201D.6060408-S0/GAf8tV78@public.gmane.org>
2015-01-31 2:21 ` John MacFarlane
1 sibling, 1 reply; 9+ messages in thread
From: Pablo Rodríguez @ 2015-01-30 6:09 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
On 01/29/2015 11:04 PM, Cesar Romani wrote:
> [...]
> Was it added? Because I'm having the same behavior as before, i.e. all
> xhtml files have
> <link rel="stylesheet" href="stylesheet.css" />
>
> and not
> <link rel="stylesheet" href="stylesheet.css" type="text/css" />
Hi Cesar,
I get (copied and pasted from an xhtml file inside the ePub document):
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
when invoking:
$ pandoc book.md -o book.epub -t epub3
> Moreover, on nav.xhtml it was added:
>
> <nav epub:type="landmarks" hidden="hidden">
> <ol>
> <li>
> <a href="cover.xhtml" epub:type="cover">Cover</a>
> </li>
> <li>
> <a href="#toc" epub:type="toc">Table of contents</a>
> </li>
> </ol>
> </nav>
>
> which has the effect, that when converting the epub to mobi, it doesn't
> contain any Table of Contents.
I get:
<nav epub:type="landmarks" hidden="hidden">
<ol />
</nav>
after:
<nav epub:type="toc" id="toc">
<h1 id="toc-title">pandoc</h1>
<ol class="toc">
<li id="toc-li-1">
<a href="ch001.xhtml">pandoc</a>
</li>
<li id="toc-li-2">
<a href="ch002.xhtml">[Copyright page]</a>
</li>
</ol>
</nav>
I use the latest stable release (pandoc-1.13.2).
Sorry for the stupid question, but are you (sure you are) using this
release: https://github.com/jgm/pandoc/releases/latest?
Jist in case it helps,
Pablo
--
http://www.ousia.tk
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem when converting epub to mobi
2015-01-29 22:04 Problem when converting epub to mobi Cesar Romani
2015-01-30 6:09 ` Pablo Rodríguez
@ 2015-01-31 2:21 ` John MacFarlane
[not found] ` <20150131022105.GA5231-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
1 sibling, 1 reply; 9+ messages in thread
From: John MacFarlane @ 2015-01-31 2:21 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
>Was it added? Because I'm having the same behavior as before, i.e. all
>xhtml files have
><link rel="stylesheet" href="stylesheet.css" />
>
>and not
><link rel="stylesheet" href="stylesheet.css" type="text/css" />
If you're seeing this, then you're using old templates.
`pandoc -D epub3` shows:
$for(css)$
<link rel="stylesheet" type="text/css" href="$css$" />
$endfor$
>Moreover, on nav.xhtml it was added:
>
><nav epub:type="landmarks" hidden="hidden">
> <ol>
> <li>
> <a href="cover.xhtml" epub:type="cover">Cover</a>
> </li>
> <li>
> <a href="#toc" epub:type="toc">Table of contents</a>
> </li>
> </ol>
></nav>
>
>which has the effect, that when converting the epub to mobi, it doesn't
>contain any Table of Contents.
On this issue, please see https://github.com/jgm/pandoc/issues/1757
and comment there if you think this behavior is wrong.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Problem when converting epub to mobi
@ 2014-12-01 3:09 Cesar Romani
2014-12-01 5:47 ` John MacFarlane
0 siblings, 1 reply; 9+ messages in thread
From: Cesar Romani @ 2014-12-01 3:09 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
I'm using pandoc 1.13.2 on Windows 7.
When I convert markup to epub with pandoc, and subsequently I convert
the epub to mobi, it doesn't recognize all the customized styles on
stylesheet.css
I notice that the xhtml files contain the line:
<link rel="stylesheet" href="stylesheet.css" />
it should be:
<link rel="stylesheet" href="stylesheet.css" type="text/css" />
then, all styles on stylesheet.css will be recognized.
Many thanks in advance,
--
Cesar
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem when converting epub to mobi
2014-12-01 3:09 Cesar Romani
@ 2014-12-01 5:47 ` John MacFarlane
0 siblings, 0 replies; 9+ messages in thread
From: John MacFarlane @ 2014-12-01 5:47 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Thanks! I think this has already been fixed, in this commit to
pandoc-types:
commit 4425dfc894761cc6cdff8e67d3e5ba78df2d5d4e
Author: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
Date: Tue Jul 8 00:23:51 2014 -0600
Added `type="text/css"` to link tags in epub3 template.
I suppose we should get a new release together before the year's
end.
+++ Cesar Romani [Nov 30 14 22:09 ]:
>I'm using pandoc 1.13.2 on Windows 7.
>When I convert markup to epub with pandoc, and subsequently I convert
>the epub to mobi, it doesn't recognize all the customized styles on
>stylesheet.css
>
>I notice that the xhtml files contain the line:
><link rel="stylesheet" href="stylesheet.css" />
>
>it should be:
><link rel="stylesheet" href="stylesheet.css" type="text/css" />
>
>then, all styles on stylesheet.css will be recognized.
>
>
>Many thanks in advance,
>
>--
>Cesar
>
>--
>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m5gm64%24dbc%241%40ger.gmane.org.
>For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-01-31 3:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29 22:04 Problem when converting epub to mobi Cesar Romani
2015-01-30 6:09 ` Pablo Rodríguez
[not found] ` <54CB201D.6060408-S0/GAf8tV78@public.gmane.org>
2015-01-30 15:32 ` Cesar Romani
[not found] ` <54CBA422.9060108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-30 21:49 ` John MacFarlane
[not found] ` <20150130214949.GA1805-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-01-31 1:56 ` Cesar Romani
2015-01-31 2:21 ` John MacFarlane
[not found] ` <20150131022105.GA5231-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
2015-01-31 3:14 ` Cesar Romani
-- strict thread matches above, loose matches on Subject: below --
2014-12-01 3:09 Cesar Romani
2014-12-01 5:47 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).