View Single Post
Old 08-09-2012, 05:13 AM   #23
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by roger64 View Post
I think about "optically justified text". Would this be possible using Prince?
That would be a feature request for Prince... and it's already in the roadmap.

Quote:
What also about inserting thin spaces? This can be done using emulation. Is there a nicer way to do it using Prince?
Thin spaces can be used all right. I guess your problem is that you don't use thin spaces in the epub, because some readers/fonts do not support them, and you want to use them in Prince instead...

Depending on how you faked the thin spaces in the epub, you could either preprocess the xhtml files before feeding them to Prince, or set some transformations on-the-fly. For example, if you have <span class="thinsp"> </span>, maybe this works:

Code:
span.thinspace { content: "?" }
where ? is either the thin space UTF-8 character or its code in whatever format understood by CSS.
Jellby is offline   Reply With Quote