|  04-12-2009, 01:16 PM | #1 | 
| E-Reader Sammler            Posts: 143 Karma: 4160 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? | 
|   |   | 
|  04-12-2009, 01:18 PM | #2 | 
| Guru            Posts: 610 Karma: 4150 Join Date: Mar 2008 Device: Sony Reader PRS-T3, Kobo Libra H2O | 
			
			Use  Code: ^b$ | 
|   |   | 
| Advert | |
|  | 
|  04-12-2009, 01:28 PM | #3 | 
| E-Reader Sammler            Posts: 143 Karma: 4160 Join Date: Feb 2009 Location: Austria Device: plenty... | |
|   |   | 
|  04-12-2009, 01:59 PM | #4 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			[b]+                                grrr i hate this short message restriction | 
|   |   | 
|  04-12-2009, 02:08 PM | #5 | 
| E-Reader Sammler            Posts: 143 Karma: 4160 Join Date: Feb 2009 Location: Austria Device: plenty... | |
|   |   | 
| Advert | |
|  | 
|  04-12-2009, 02:17 PM | #6 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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> | 
|   |   | 
|  04-12-2009, 02:22 PM | #7 | 
| E-Reader Sammler            Posts: 143 Karma: 4160 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...    | 
|   |   | 
|  04-12-2009, 02:29 PM | #8 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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
		 | 
|   |   | 
|  04-12-2009, 02:35 PM | #9 | 
| E-Reader Sammler            Posts: 143 Karma: 4160 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/> | 
|   |   | 
|  04-12-2009, 02:40 PM | #10 | |
| E-Reader Sammler            Posts: 143 Karma: 4160 Join Date: Feb 2009 Location: Austria Device: plenty... | Quote: 
 <b> gets translated to <spawn class = "bold"> Last edited by flowoeB; 04-12-2009 at 02:48 PM. | |
|   |   | 
|  04-12-2009, 02:46 PM | #11 | 
| Guru            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>.
		 | 
|   |   | 
|  04-12-2009, 02:51 PM | #12 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			calibre uses match not search which means ^ is implied
		 | 
|   |   | 
|  04-12-2009, 02:57 PM | #13 | 
| E-Reader Sammler            Posts: 143 Karma: 4160 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"> ? | 
|   |   | 
|  04-12-2009, 03:01 PM | #14 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			--force-page-break-before-attr
		 | 
|   |   | 
|  04-12-2009, 03:05 PM | #15 | 
| E-Reader Sammler            Posts: 143 Karma: 4160 Join Date: Feb 2009 Location: Austria Device: plenty... | 
			
			i forced a pagebreak before attribute spawn,class,bold finaly works! thank you for the help!!!! | 
|   |   | 
|  | 
| 
 | 
|  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 |