Mobileread
Multiple ends
#1  FrustratedReader 10-26-2019, 09:33 AM
Mobi had or has a tag that means "you can't turn page forward". This is handy for a "Plot your own adventure" as then the only way forward is to select one of the internal links (to anchors) that are user choices at the end of the "Chapter".

Can this be done in epub2?

Has anyone a complete table of features that work in old mobi, AZW3/KFX and epub2. Obviously page breaks, justification types, margins, bold, italic and bold+ italic and font size all work. Monospace, serif and sans-serif font face all seem to work with those three font styles in old Mobi, at least sometimes, depending on exactly what is done in Word/Writer. Switching per paragraph seems more reliable than per word in a paragraph. Even converting to epub or AZW.

If so how can it be automated in say a docx to epub2 conversion in Calibre, perhaps by detection of the heading / chapter style and inserting the tag before.

Is there any way to indicate it in Word/Writer? Obviously a reserved style that is then converted by a rule in Calibre could be used.

Does AZW / KF8 support this ancient mobi tag? I tested it ages ago on XP using Mobi Pocket Creator. I made a MS Word Doc, exported or converted to HTML (I forget which), cleaned it up and added the extra tag after every line of choices using Notepad++. I don't use XP now or even Windows now, so I'd have to dig out the old PC and try again, or find my demo file. I wasn't using epub or azw back then.
Reply 

#2  Doitsu 10-26-2019, 11:14 AM
Quote FrustratedReader
Can this be done in epub2?
AFAIK, it can't be done in epub2. For more information, see this thread.
Reply 

#3  FrustratedReader 10-26-2019, 02:22 PM
Interesting discussion, however the tag used in mobo doesn't work like that. It's like a special paragraph tag that simply stops you going to the next page.
I'd want ALL the chapters/sections listed normally in a TOC
My friend has designed a map game with a very slight resemblance to Near and Far in that there is a printed book of maps and associated text related to places on the map.

More like <br /> in style than <div style="clear: both;"></div>
I'll see can I find it.

So far I found this
https://kdp.amazon.com/en_US/help/topic/G200673180
Reply 

#4  Doitsu 10-26-2019, 02:53 PM
Quote FrustratedReader
I'll see can I find it.
It might have been <mbp:section>

Quote FrustratedReader
So far I found this
https://kdp.amazon.com/en_US/help/topic/G200673180
You can't use any of these tags to prevent readers from reading the next page.

Do you plan to self-publish your book on KDP?
Reply 

#5  FrustratedReader 10-26-2019, 03:09 PM
Yes, it was section.
Sections

The <mbp:section> tag allows the definition of sections in a book, from which the user cannot escape by turning to the next page at the end of the section or turning to the previous page at the beginning of the section.

This is enforced by using the crossable="no" attribute. In this case, the only way to jump from one section to another is to have hyperlinks or indexes which point into another location.

You can also use this attribute in the <mpb:frameset> tag, which encloses a non crossable main HTML content flow

By default if no attribute is set, crossable="yes"

Example :

<mbp:section crossable="no">
This is the first section.<a href="#section2">Go to the next section</a>
</mbp:section>
<mbp:pagebreak/>

<mbp:section crossable="no">
<a name="section2" />This is the second section
</mbp:section>

I found your link just before I came back!
https://web.archive.org/web/20160314192006/http://mobipocket.com/dev/article.asp?BaseFolder=prcgen&File=section.htm

I'm sure I archived all that years ago before or just after Amazon bought mobi. The mobi creator, PC reader and all the documentation was still online for a while after Amazon "borged" them.

I remember being disappointed that the simple client side image map, which works fine on static HTML pages without javascript (and is fast & lightweight) wasn't supported.

I'm doing support for the game developer. There will be no separate book. He'd thought of an app to do the text part of the game as an alternative to a book with the big book of maps. So each player could have a copy.
He'd never encountered eBooks and didn't realise how much work making an iOS, Android and Windows app is compared to an ebook version of the paperback book of text with the game boards. As most here know, with a docx source (needed to make PDF for printed book anyway) and Calibre, epub2 can be uploaded to Amazon. The epub2, dual mobi and ms doc files to Smashwords. Even a code in the printed game rules to download free from Smashwords.

At the end of the day, it's no big deal to block the next page, it's available on the print copy and likely via search or TOC.
Reply 

#6  FrustratedReader 10-26-2019, 03:11 PM
P.S. I've done programming for more than 30 years, and some Android. Just making an ebook from a decently formatted LibreOffice Writer or MS Word via docx via Calibre is WAY faster, minutes vs months.
Reply 

#7  Turtle91 10-26-2019, 07:36 PM
Just wondering - does crossable=no keep someone from going to the next chapter/html page? If it doesn't then the whole book would need to be on a single html page - with the issues that brings up. No??
Reply 

#8  DNSB 10-26-2019, 11:48 PM
Quote Turtle91
Just wondering - does crossable=no keep someone from going to the next chapter/html page? If it doesn't then the whole book would need to be on a single html page - with the issues that brings up. No??
Not quite. You can't page forward or backwards out of the current section so you need a link to a different section to leave the section you are in. There should be multiple links so multiple choices. Select the next step in the quest, go to to the nearest inn for R&R, etc.
Reply 

#9  FrustratedReader 10-27-2019, 08:27 AM
Each section can be a separate file, or even split to separate files.
The only issue seems to be that it's not supported in epub2.
It is supported in AZW/KF8 according to Amazon's HTML tag guide for Kindle generation.

I have a suspicion that it is possible in epub2 by having all the files in the TOC but messing with the playorder? Possibly actual epub renderers would baulk
Code
 <navPoint id="u5As8H7DXtuyEsfIbRU5kJ5" playOrder="18"> <navLabel> <text>Chapter 18: Recognition</text> </navLabel> <content src="index_split_021.html"/> </navPoint>
Typically Calibre breaks the source into separate HTML files by Chapter or Heading or source TOC.
There is no link at all between the chapters in the files. So next & prior page are within a file except when it's the next TOC or previous TOC entry.

So the epub renderer uses the TOC to get to the next page at the end of a chapter. There is also the Manifest, but it's just a link of files.

Presumably the Playorder and/or the order of TOC entries decides what happens with page next at the end of a chapter?
Reply 

#10  FrustratedReader 10-27-2019, 08:41 AM
OK, I experimented.
Curiously editing the playOrder seemed to have no effect, at least previewing in Calibre's epub viewer.
Removing a TOC entry entirely only removes it from the TOC (duh!). Curiously Next Page at the end of the chapter goes to the missing next chapter 1st page.

So is the renderer / viewer using the list in <spine toc="ncx" of content.opf?
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register