Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2024, 05:55 PM   #1
BRupp
Junior Member
BRupp began at the beginning.
 
BRupp's Avatar
 
Posts: 4
Karma: 10
Join Date: Nov 2024
Device: None
Post Words breaking horizontally in tables

Hi! I hope someone can help me.

I made a book in InDesign and exported to reflowable EPUB. It has a lot of tables. On some of my longer tables the table splits in the middle of a row and often cuts the words where the top half of the word is on one page and the bottom half is on the next page.

Any idea on how to fix it? Please explain simply. I’ve been using oxygen for editing but can use Sigil or Calibre if that would be easier.

Thanks in advance!
BRupp is offline   Reply With Quote
Old 11-04-2024, 08:54 PM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by BRupp View Post
Hi! I hope someone can help me.

I made a book in InDesign and exported to reflowable EPUB. It has a lot of tables. On some of my longer tables the table splits in the middle of a row and often cuts the words where the top half of the word is on one page and the bottom half is on the next page.

Any idea on how to fix it? Please explain simply. I’ve been using oxygen for editing but can use Sigil or Calibre if that would be easier.

Thanks in advance!
Give the text inside a table-cell the property "display: inline-block". You should have something like (in your xhtml file):

Code:
<tr>
  <td><p class="nb">blah, blah, blah...., blah</p></td>
</tr>
where the style "nb" would be:

Code:
.nb {
  display: inline-block;
}
Since I don't know how is your table, maybe you should also include inside the style "nb" the property "width: 100%".
RbnJrg is offline   Reply With Quote
Advert
Old 11-04-2024, 09:07 PM   #3
BRupp
Junior Member
BRupp began at the beginning.
 
BRupp's Avatar
 
Posts: 4
Karma: 10
Join Date: Nov 2024
Device: None
Ok, thanks, I will try that.
BRupp is offline   Reply With Quote
Old 11-04-2024, 09:10 PM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,291
Karma: 20171067
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
Quote:
Originally Posted by RbnJrg View Post
Give the text inside a table-cell the property "display: inline-block". You should have something like (in your xhtml file):

Code:
<tr>
  <td><p class="nb">blah, blah, blah...., blah</p></td>
</tr>
where the style "nb" would be:

Code:
.nb {
  display: inline-block;
}
Since I don't know how is your table, maybe you should also include inside the style "nb" the property "width: 100%".
Unless there is a very special styling that is only available when using a <p> you don’t need them… just include the class in your <td>

Code:
 
<tr>
  <td class="nb">blah, blah, blah...., blah</td>
</tr>
Turtle91 is offline   Reply With Quote
Old 11-04-2024, 09:35 PM   #5
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Turtle91 View Post
Unless there is a very special styling that is only available when using a <p> you don’t need them… just include the class in your <td>

Code:
 
<tr>
  <td class="nb">blah, blah, blah...., blah</td>
</tr>
There are issues with some ereaders if you give the property in <td>. Legacy ADE is problematic to handle long tables. And we don't know if the table-row has one or more cells. Also if the epub is built as source for a Kindle ebook, there is a bug in some Kindle models (Kindle Voyage if my memory serves me right) that make necessary to employ the <p> tag.
RbnJrg is offline   Reply With Quote
Advert
Old 11-04-2024, 10:32 PM   #6
BRupp
Junior Member
BRupp began at the beginning.
 
BRupp's Avatar
 
Posts: 4
Karma: 10
Join Date: Nov 2024
Device: None
Is there a way to prevent a table splitting in the middle of a row?

The tables have several columns and usually a fair amount of text in each cell.
BRupp is offline   Reply With Quote
Old 11-05-2024, 02:44 PM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by BRupp View Post
Is there a way to prevent a table splitting in the middle of a row?

The tables have several columns and usually a fair amount of text in each cell.
Where are you opening your epub? Because your issue can be originated due to your ereader doesn't honor "display: inline-block" (or you are not applying the property correctly). If you are opening your epub with Cool Reader, Readera, or similars, then you are buying troubles. And you are working under epub2 or epub3? Can you post here your table?
RbnJrg is offline   Reply With Quote
Reply

Tags
broken words, table


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
horizontally center table in mobi7? lumpynose Kindle Formats 7 08-22-2019 09:16 PM
Sigil: how to get rid of breaking words kfachuh ePub 4 11-23-2015 05:10 PM
Aligning Images and Text Horizontally miz sue ePub 3 09-11-2015 09:20 AM
Allowing Books to be read horizontally tyronedavies Calibre 1 10-08-2010 01:50 AM
Read books horizontally mapletony Sony Reader 10 01-25-2008 04:36 PM


All times are GMT -4. The time now is 04:09 AM.


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