Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2015, 07:59 AM   #1
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
vertical-align: super

Thanks again for this editor.

I would ask for one minor feature, which would be very useful for me.

I generally build my ebooks with Amanuensis (because of the better handling of images), but Argonite does not seem to keep maintaining this excellent software, and the sources are unfortunately unavailable, as far as I know.

When a string is written as an exponent, Amanuensis translates it in the style sheet with:
vertical-align: top
which is not properly displayed on my Kobos. So I must replace all occurrences (seldom more than 3 if the original ODT is properly written, but sometimes more) with:
vertical-align: super

Maybe it could be added to the smarten punctuation option, or, if "vertical-align: super" works with all e-readers, automatically converted when loading the epub?

Of course, modifying only one word in Amanuensis sources would fix the issue, but we have not these sources...

Thanks.
Francois_C is offline   Reply With Quote
Old 02-09-2015, 11:51 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
This isn't punctuation, the goal of Smarten Punctuation is not to fix general mistakes that people may make, but rather to convert punctuation into a more typographically correct form.

You can however do a Search and Replace.
eschwartz is offline   Reply With Quote
Advert
Old 02-09-2015, 12:45 PM   #3
drjenkins
Addict
drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.
 
Posts: 250
Karma: 1702156
Join Date: Nov 2010
Device: Kindle Voyage
I have seen multiple e-books with "vertical-align: sup;" so I created a saved search to replace "vertical-align: sup;" with "vertical-align: super;". You might consider doing the same with "vertical-align: top;".

Contrary to my initial expectation I have not yet seen a case where "vertical-align: sup;" was meant to be "vertical-align: sub;".
drjenkins is offline   Reply With Quote
Old 02-10-2015, 03:13 AM   #4
DigitEditLab
Member
DigitEditLab began at the beginning.
 
DigitEditLab's Avatar
 
Posts: 21
Karma: 10
Join Date: Feb 2014
Device: Kobo Aura HD, Samsung Note II, Kindle and a few more
My advice is:

Code:
vertical-align:super;
line-height:0;
font-size:x-small;
It should improve the rendering. Do you approve?
DigitEditLab is offline   Reply With Quote
Old 02-10-2015, 10:16 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Please don't arbitrarily set small fonts in the CSS, leave that to the ereader settings. They exist for a reason, stop being mean and denying them the ability to do their job properly.
eschwartz is offline   Reply With Quote
Advert
Old 02-12-2015, 02:41 PM   #6
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
@ DigitEditLab

Nice codes and they seem to work well, but I used to use them:

Code:
sup {
  font-size: 0.55em;
  vertical-align: 0.6em;
  line-height: 0.5em;
}
And Francois_C you're right the Kobo don't render <sup> properly (particularly Mlle). If you try either of these codes and they work well, let us know.
Arios is offline   Reply With Quote
Old 02-13-2015, 07:25 AM   #7
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Thanks everybody.
I'll try your suggestions. I already have a saved search for this, but I seldom use it, because when I type "v" in the search box, the first available option is "vertical-align:top", and "vertical-align:super" in the replace box.
Of course, I understood it was not punctuation, as I use very often the "smarten punctuation" command: punctuation conventions are very complicated in French (always non-breakable spaces with "double" punctuation marks (;:?!,«»), and many ebook makers don't comply with them.
I don't agree with arbitrarily setting fonts size either, for the same reasons as you, eschwartz (though I'm rather a "rational pessimist").
Maybe add a "fix CSS for Kobo" option?
BTW, I also noticed in some ebooks strange errors like 1,5em instead of 1.5em. Maybe the result of a localization madness which often happens in free software.
For instance, Gimp can no longer work properly with UFRaw when it is set to French (probably arithmetical dots converted to commas somewhere Another example of this madness: with the last version of MKVMerge GUI, when I want to set a stream language to French, the dropdown menu will drop up and open on zza (Zaza; Dimil;..., and (as you cannot type the first letters) I must laboriously navigate through hundreds of local languages before I can reach French. In Windows versions, common languages are on top, but I suppose this was considered imperialist...

Last edited by Francois_C; 02-13-2015 at 07:48 AM.
Francois_C is offline   Reply With Quote
Old 02-13-2015, 07:40 AM   #8
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by DigitEditLab View Post
My advice is:

Code:
vertical-align:super;
line-height:0;
font-size:x-small;
It should improve the rendering. Do you approve?
Depends what you're using it for. If it's a superscript such as a "2" for "squared", it may be reasonable enough, but if it's for a footnote hyperlink, then no, an "x-small" hyperlink will be too small to activate easily on many reading devices.
HarryT is offline   Reply With Quote
Old 02-13-2015, 11:50 AM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Francois_C View Post
I don't agree with arbitrarily setting fonts size either, for the same reasons as you, eschwartz (though I'm rather a "rational pessimist").
Maybe add a "fix CSS for Kobo" option?
You should see our thread (in sig).

Re: Fix CSS for Kobo -- perhaps you could write or modify plugin to do this. Ideally with a number of fixes that makes a plugin worthwhile to make.
eschwartz is offline   Reply With Quote
Old 02-15-2015, 05:38 PM   #10
DigitEditLab
Member
DigitEditLab began at the beginning.
 
DigitEditLab's Avatar
 
Posts: 21
Karma: 10
Join Date: Feb 2014
Device: Kobo Aura HD, Samsung Note II, Kindle and a few more
@HarryT:
You're right. My code may entail some problem in (smaller) footnotes. I am currently assessing the version "font-size:80%;", which could make it.

@all:
I'm not convinced that we should leave the font sizing to the reader. Note that the "x-small" value doesn't mean "small" but "smaller" than the font size in the parent element.

@Francois_C:
The punctuation in French is perfectly processed thanks to a non-breakable space added with a safe and effective regex query, instead of any "smarten punctuation".
Bon courage, collègue !
DigitEditLab is offline   Reply With Quote
Old 02-15-2015, 07:55 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,669
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DigitEditLab View Post
@all:
I'm not convinced that we should leave the font sizing to the reader. Note that the "x-small" value doesn't mean "small" but "smaller" than the font size in the parent element.
x-small means way too small. Given that newer Readers are high resolution, x-small for a link is just ridiculously small. I actually prefer something like[*] in the same size font or slightly smaller for the link.
JSWolf is offline   Reply With Quote
Old 02-20-2015, 06:14 AM   #12
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Quote:
Originally Posted by DigitEditLab View Post
@Francois_C:
The punctuation in French is perfectly processed thanks to a non-breakable space added with a safe and effective regex query, instead of any "smarten punctuation".
Bon courage, collègue !
"Smarten punctuation" generally works well for me. On LibreOffice, I use this (rather empirically written but generally working – to add non breakable spaces – except for opening lower double quotes that must be treated separately):
([a-z0-9àâäéèêëíìîïóòôöùúÛüÿyç…;!?»”"\)])([;:?!»])
Replace with:
$1(paste non breakable space here)$2
and:
([a-z0-9àâäéèêëíìîïóòôöùúÛüÿyç…;!?»”"\)]) ([;:?!»])
$1(paste non breakable space here)$2
Which regex are you using?

Last edited by Francois_C; 02-20-2015 at 06:35 AM.
Francois_C is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vertical-align/display table nu9j6e ePub 2 01-27-2015 03:20 PM
Attribute 'align' daveconifer Sigil 4 09-05-2014 10:13 AM
need help on how to align a table to the right NASCARaddicted ePub 6 02-18-2011 01:46 PM
My super easy, super cheap (less than $3) DIY Kindle Cover solution... cegrundler Amazon Kindle 12 10-08-2010 06:42 PM
unwanted table-change (vertical align) by calibre NASCARaddicted Calibre 2 01-27-2010 03:35 AM


All times are GMT -4. The time now is 05:54 PM.


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