| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 6 
				Karma: 10 
				Join Date: Jul 2017 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Forced line breaks and full justify
			 
			
			
			I've got this project that involves a poem with specific formatting.  The lines need forced line breaks but also full justification.  I searched a bunch on google and found various tricks that all fail to pan out when tried in the ePub. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Such as https://stackoverflow.com/questions/...rows-in-a-poem https://stackoverflow.com/questions/...text-using-css The best solution did the breaks and the full justify (the second link) however when a long paragraph of text went from one page to the next the reader cut the lines off weird (top few pixels of a line at the and of the page and the rest of the pixels on the next page) -- I think due to the line-height confusing the reader (iBooks). Any tricks for accomplishing forced line breaks and full justification? - Doug  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I don't think you can do it.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 A Hairy Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,397 
				Karma: 20212733 
				Join Date: Dec 2012 
				Location: Charleston, SC today 
				
				
				Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Welcome to MR dougfetch2! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Formatting poetry properly is one of the more difficult, if not impossible, challenges in a reflowable format such as ePub. There should be easy css properties to do what you want, but apparently the demand isn't high enough for the IDPF (the ePub standards people) to require them. There are multiple threads on here that discuss formatting poetry, but the basic answer is for the author to accept that some of the more esoteric shapes/designs cannot be done in reflowable ePub. If it is essential to have a specific shape, then sometimes inserting an image of the poem is the easiest option. The other option (not for the novice or faint of heart) is to do a fixed format ePub. For your specific question of line breaks and justified alignment: I can only recommend <br /> and text-align:justify and perhaps setting a <div> with a specific width (and perhaps a monospace/fixed-width font). The page-break-inside, orphans, and widows settings MIGHT help prevent breaking over a page, but it sounds like iBooks has a bug - what a shock... ![]() Code: 
	CSS
div.poem   {width:410px; margin:2em; page-break-inside:avoid}
div.poem p {font-size:.8em; text-indent:0; text-align:justify; orphans:0; widows:0}
<div class="poem">
     <p>
     Bacon ipsum dolor amet andouille<br />
     meatloaf rump meatball, shank ribeye<br />
     jowl turkey swine. Drumstick tri-tip<br />
     brisket, cupim tongue andouille chuck<br />
     spare ribs. Bresaola cow drumstick,<br />
     tail boudin ground round sausage<br />
     kielbasa prosciutto turkey andouille<br />
     jowl spare ribs. Short ribs brisket.
     </p>
</div>
Sorry I don't have more help for you - hopefully one of our poetry formatting gurus has some better advice! Cheers  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 6 
				Karma: 10 
				Join Date: Jul 2017 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for the thoughts.  I tried the suggestion and the iBook won't full justify it.  Evil iBooks.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It can't be done.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | |
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				Join Date: Nov 2006 
				Location: UK 
				
				
				Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Poetry is one of the very few things I'd suggest investigating the possibility of using PDF for. A nice PDF with pages properly sized for eInk devices can be very good for this kind of thing.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,842 
				Karma: 105494725 
				Join Date: Apr 2011 
				
				
				
				Device: pb360 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Once a minimum readable size is found, size the PDF page for that. On larger devices, zoom to fit if it's not automatic. For smaller devices, try portrait.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 mostly an observer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519 
				Karma: 996810 
				Join Date: Dec 2012 
				
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			For my sins, I was once sent the PDF of a book I need for a book review. It was laid out two pages of book on a PDF page. To have the type large enough to read on my 7-inch Fire tablet, I had to do a lot of moving the pages around. It wasn't fun, but it was doable, and I got the job done.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	I don't think a single book-sized page would pose much of a problem. At worst, I could read in landscape mode, which would require such one thumb-sweep to read a page.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470 
				Karma: 13095790 
				Join Date: Aug 2007 
				Location: Grass Valley, CA 
				
				
				Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Dale  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				Join Date: Nov 2006 
				Location: UK 
				
				
				Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I'm not claiming that it's a perfect solution, but it may perhaps be the best available. ePub just isn't up to the job of formatting poetry. If you have any better ideas, please do put them forward. Last edited by HarryT; 07-31-2017 at 12:13 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,842 
				Karma: 105494725 
				Join Date: Apr 2011 
				
				
				
				Device: pb360 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,842 
				Karma: 105494725 
				Join Date: Apr 2011 
				
				
				
				Device: pb360 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				Join Date: Nov 2006 
				Location: UK 
				
				
				Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,842 
				Karma: 105494725 
				Join Date: Apr 2011 
				
				
				
				Device: pb360 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I live in a 7 bit ASCII monospace font world, so I would see that as the least compromise. Maybe some embedded font trickery combined with use of PRE would do the job.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Line breaks on Kindle, no line breaks on 4 PC | Siavahda | Kindle Formats | 0 | 10-20-2012 06:50 AM | 
| Line breaks with no style | therealjoeblow | Conversion | 5 | 11-02-2011 12:51 AM | 
| Spurious Line Breaks | Halk | Workshop | 1 | 05-15-2010 02:22 PM | 
| No line breaks | ecpepper | Amazon Kindle | 3 | 08-09-2009 07:42 PM | 
| Getting rid of line breaks with Bookdesigner | Ned | Workshop | 16 | 11-01-2008 06:37 PM |