Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 04-24-2020, 05:04 AM   #1
qqk
Junior Member
qqk began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2020
Device: Kindle PW 4
Dot Leaders in Kindle

Hi,

I'd like to create something like this on my ebook

ABC ......... 12,000 KG
CDFGH ..... 34,000 KG
IJKL ......... 56,000 KG

With the two columns of text aligned to the left side and the right side of the page respectively. Filling the middle with dots is good to have but not must-have if technically impossible.

What is the best way to implement this in calibre and Kindle ebook?

Many thanks!
QQK
qqk is offline   Reply With Quote
Old 04-24-2020, 12:13 PM   #2
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
I have successfully coded dot leaders back when I worked but have not attempted them in the e-book world. I strongly suspect it is do-able in a fairly new Kindle but I have not tested. What is certain: coding them involves various methods that include trickery (transparent background pngs and relative positioning) or advanced CSS objects like pseudo-elements combined with a bit of code nesting. Do a Google search on "dot leaders html css" and then code and test.

The dot leader convention is still not supported in any native way in the digital world.
Brett Merkey is offline   Reply With Quote
Advert
Old 04-24-2020, 12:17 PM   #3
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,944
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by qqk View Post
Hi,

I'd like to create something like this on my ebook

ABC ......... 12,000 KG
CDFGH ..... 34,000 KG
IJKL ......... 56,000 KG

With the two columns of text aligned to the left side and the right side of the page respectively. Filling the middle with dots is good to have but not must-have if technically impossible.

What is the best way to implement this in calibre and Kindle ebook?

Many thanks!
QQK
Perhaps an HTML table. So long at it's not too big.
pdurrant is offline   Reply With Quote
Old 04-25-2020, 07:14 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by pdurrant View Post
Perhaps an HTML table. So long at it's not too big.
Yes, this is the correct answer. Don't waste time with dot leaders.

Code:
<table>
<tr><td>ABC</td><td>12,000 KG</td></tr>
<tr><td>CDFGH</td><td>34,000 KG</td></tr>
<tr><td>IJKL</td><td>56,000 KG</td></tr>
</table>
If you wanted to adjust alignment, then give the <td> further classes with:

text-align: left;
or
text-align: right;

Quote:
Originally Posted by qqk View Post
Filling the middle with dots is good to have but not must-have if technically impossible.
Back in 2017 we discussed a little about "dot leaders" in EPUB:

Table-like block with dotted lines

and trying to hack a few things with CSS3... but it won't be supported on devices AT ALL, and are incredibly glitchy.

Just stick with basic HTML tables and you'll be fine. There's no need to try to completely replicated the original Print as long as all the core information still comes across clearly.
Tex2002ans is offline   Reply With Quote
Old 04-25-2020, 08:14 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
you might have better support using a 'bar paper' approach. alternate each lines background color
or
use padding-bottom (spaces away from text) and a border-bottom, to draw a line between (appearance only)
theducks is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
White dot or Pinhole of light on a new kindle paperwhite Rosa6622 Amazon Kindle 2 03-23-2017 08:16 AM
Free (nook/Kindle/iTunes/DRM-free) Top 10 Mistakes Leaders Make [Xtian Management] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 1 01-27-2015 08:40 AM
Who works until 10 p.m is an IDIOT and the best leaders are BASTARDS nick allen Self-Promotions by Authors and Publishers 0 08-20-2012 03:02 AM
Free (Kindle/Nook) Know What You Don't Know: How Great Leaders Prevent Problems arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 4 07-23-2012 12:22 PM
Dot on my kindle (International)? ensyed Amazon Kindle 5 12-17-2010 01:33 PM


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


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