Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2020, 01:51 PM   #1
ebulerdo
Junior Member
ebulerdo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2020
Device: Huawei M6
Setting itemref to linear=no

Hi All,

Not sure if this is a bug or something I'm doing wrong. The epub file I am preparing has an endnotes file that I'd rather hide from the contents.

I found that you can do this by editing the <spine> section of the contents.opf file, and adding "linear=no" to the itemref in question. I know many apps ignore the "linear=no" setting, I don't care too much. If it works it works, if not the reader will just see a list of endnotes.

So I edit that file and type:
<itemref idref="id27" linear=no />
I save it, and when I open it again that line is changed to:
<itemref idref="id27"/>no /&gt;

Why does Calibre Editor change my code? How can I prevent it?

I am using Calibre 4.20 on a Windows 10 Home.

Thank you!
ebulerdo is offline   Reply With Quote
Old 07-13-2020, 02:51 PM   #2
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Try no in quotes:

Code:
<itemref idref="id27" linear="no" />
phossler is offline   Reply With Quote
Advert
Old 07-13-2020, 02:53 PM   #3
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,181
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ebulerdo View Post
Hi All,

Not sure if this is a bug or something I'm doing wrong. The epub file I am preparing has an endnotes file that I'd rather hide from the contents.

I found that you can do this by editing the <spine> section of the contents.opf file, and adding "linear=no" to the itemref in question. I know many apps ignore the "linear=no" setting, I don't care too much. If it works it works, if not the reader will just see a list of endnotes.

So I edit that file and type:
<itemref idref="id27" linear=no />
I save it, and when I open it again that line is changed to:
<itemref idref="id27"/>no /&gt;

Why does Calibre Editor change my code? How can I prevent it?

I am using Calibre 4.20 on a Windows 10 Home.

Thank you!
Quote:
Originally Posted by phossler View Post
Try no in quotes:

Code:
<itemref idref="id27" linear="no" />
phossler is correct.

See:

https://github.com/jgm/pandoc/issues/1593

bernie
gbm is offline   Reply With Quote
Old 07-13-2020, 06:11 PM   #4
ebulerdo
Junior Member
ebulerdo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2020
Device: Huawei M6
Quote:
Originally Posted by phossler View Post
Try no in quotes:
Code:
<itemref idref="id27" linear="no" />
Using quotes fixed it.

Thank you!
ebulerdo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does *anything* support linear=no? Skeezix ePub 38 10-27-2019 05:55 PM
Is there a plugin to make non-linear items linear? deback Conversion 4 11-28-2017 12:30 AM
File is non-linear -- what does that mean? Paula-59 Conversion 4 02-01-2016 06:39 PM
Comfortable linear reading radius Which one should I buy? 28 03-28-2014 05:37 PM
Linear narrative (or not) mr ploppy Writers' Corner 25 02-03-2012 03:55 PM


All times are GMT -4. The time now is 01:35 AM.


MobileRead.com is a privately owned, operated and funded community.