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, 02:16 PM   #1
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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, 02: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: 601
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
Use
Code:
^b$
pepak is offline   Reply With Quote
 
Advertisement
Old 04-12-2009, 02:28 PM   #3
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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, 02: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: 26,343
Karma: 5382313
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, 03:08 PM   #5
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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
Old 04-12-2009, 03: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: 26,343
Karma: 5382313
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, 03:22 PM   #7
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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, 03: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: 26,343
Karma: 5382313
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, 03:35 PM   #9
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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, 03:40 PM   #10
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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 03:48 PM.
flowoeB is offline   Reply With Quote
Old 04-12-2009, 03: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: 601
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
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, 03: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: 26,343
Karma: 5382313
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, 03:57 PM   #13
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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, 04: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: 26,343
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
--force-page-break-before-attr
kovidgoyal is offline   Reply With Quote
Old 04-12-2009, 04:05 PM   #15
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
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
Mobi to epub page break mr.ninja13 Calibre 23 08-09-2011 03:06 PM
Remove Page Break after Images luthar28 ePub 16 10-15-2010 12:48 PM
Why two separate page break xpaths in 0.6.x? ldolse Calibre 3 08-12-2009 02:00 PM
Page break before h2 question Amalthia Calibre 9 04-17-2009 07:33 PM
PRS-500 makelrf3 and Unexpected Page-Break EatingPie Sony Reader Dev Corner 0 04-19-2007 02:28 AM


All times are GMT -4. The time now is 07:22 AM.


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