| 
			
			 | 
		#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?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610 
				Karma: 4150 
				Join Date: Mar 2008 
				
				
				
				Device: Sony Reader PRS-T3, Kobo Libra H2O 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Use  
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	^b$  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 E-Reader Sammler 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 143 
				Karma: 4160 
				Join Date: Feb 2009 
				Location: Austria 
				
				
				Device: plenty... 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			[b]+                                
		
	
		
		
		
		
		
		
		
		
		
		
	
	grrr i hate this short message restriction  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 E-Reader Sammler 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 143 
				Karma: 4160 
				Join Date: Feb 2009 
				Location: Austria 
				
				
				Device: plenty... 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				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>
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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...  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				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
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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/>  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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 03:48 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>.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			calibre uses match not search which means ^ is implied
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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"> ?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			--force-page-break-before-attr
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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!!!!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Remove Page Break after Images | luthar28 | ePub | 17 | 04-05-2017 04:16 PM | 
| Mobi to epub page break | mr.ninja13 | Calibre | 23 | 08-09-2011 03:06 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 |