![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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;". |
![]() |
![]() |
![]() |
#4 |
Member
![]() 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; |
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
A curiosus lector!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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; } |
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() Last edited by Francois_C; 02-13-2015 at 07:48 AM. |
![]() |
![]() |
![]() |
#8 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
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.
|
![]() |
![]() |
![]() |
#9 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() ![]() 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. ![]() |
|
![]() |
![]() |
![]() |
#10 |
Member
![]() 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 ! |
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,207
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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.
|
![]() |
![]() |
![]() |
#12 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
|
Quote:
([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. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |