Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-12-2009, 01:16 PM   #1
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
Page break before <b>

i'm close to getting nuts:

i try to convert mobi to lrf and want a pagebreak before every <b>

but if i enter b as expression to break before it also breaks before every <br/>

how can i get this to work without editing the html file by replacing the <b> eg with <h2> and use h2 as expression for the break?
flowoeB is offline   Reply With Quote
Old 04-12-2009, 01:18 PM   #2
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Use
Code:
^b$
pepak is offline   Reply With Quote
Advert
Old 04-12-2009, 01:28 PM   #3
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
Quote:
Originally Posted by pepak View Post
Use
Code:
^b$
no luck neither ^b$ nor b$ adds a break before <b>
flowoeB is offline   Reply With Quote
Old 04-12-2009, 01:59 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
[b]+

grrr i hate this short message restriction
kovidgoyal is offline   Reply With Quote
Old 04-12-2009, 02:08 PM   #5
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
Quote:
Originally Posted by kovidgoyal View Post
[b]+

grrr i hate this short message restriction
breaks also each <br/>

same as b alone
flowoeB is offline   Reply With Quote
Advert
Old 04-12-2009, 02:17 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I just tried

html2lrf --force-page-break-before-tag "b$" --verbose test.html

on the file

Code:
<html>
    <p>one<b>two<br>three</p>
        </html>
and it correctly inserted a page break after one but not after two
kovidgoyal is offline   Reply With Quote
Old 04-12-2009, 02:22 PM   #7
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
converting mobi -> lrf it doesn't work somehow - or i'm doing something terrible wron - or am allready nuts...
flowoeB is offline   Reply With Quote
Old 04-12-2009, 02:29 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use mobi2oeb to get the html from the MOBI then convert that using html2lrf. That way you can see what's going on in more detail
kovidgoyal is offline   Reply With Quote
Old 04-12-2009, 02:35 PM   #9
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
i can confirm at least: the html file that i made the mobi file from converts perfect ( b$ adds breaks only after <b>)
as soon as i try to convert the mobi itself b$ adds breaks to <b> and <br/>
flowoeB is offline   Reply With Quote
Old 04-12-2009, 02:40 PM   #10
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
Quote:
Originally Posted by kovidgoyal View Post
Use mobi2oeb to get the html from the MOBI then convert that using html2lrf. That way you can see what's going on in more detail
found the problem:

<b> gets translated to <spawn class = "bold">

Last edited by flowoeB; 04-12-2009 at 02:48 PM.
flowoeB is offline   Reply With Quote
Old 04-12-2009, 02:46 PM   #11
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
I would still urge to use ^b$. b$ should match any tag that ends with b (e.g. <sub>), while ^b$ should match only <b>.
pepak is offline   Reply With Quote
Old 04-12-2009, 02:51 PM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre uses match not search which means ^ is implied
kovidgoyal is offline   Reply With Quote
Old 04-12-2009, 02:57 PM   #13
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
so, after there are no <b> how do i get a page break before
<spawn class = "bold">
?
flowoeB is offline   Reply With Quote
Old 04-12-2009, 03:01 PM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
--force-page-break-before-attr
kovidgoyal is offline   Reply With Quote
Old 04-12-2009, 03:05 PM   #15
flowoeB
E-Reader Sammler
flowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheeseflowoeB can extract oil from cheese
 
flowoeB's Avatar
 
Posts: 134
Karma: 1000
Join Date: Feb 2009
Location: Austria
Device: plenty...
i forced a pagebreak before attribute

spawn,class,bold

finaly works!

thank you for the help!!!!
flowoeB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Page Break after Images luthar28 ePub 17 04-05-2017 03:16 PM
Mobi to epub page break mr.ninja13 Calibre 23 08-09-2011 02:06 PM
Why two separate page break xpaths in 0.6.x? ldolse Calibre 3 08-12-2009 01:00 PM
Page break before h2 question Amalthia Calibre 9 04-17-2009 06:33 PM
PRS-500 makelrf3 and Unexpected Page-Break EatingPie Sony Reader Dev Corner 0 04-19-2007 01:28 AM


All times are GMT -4. The time now is 08:32 AM.


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