03-26-2012, 01:20 PM | #166 | |
Resident Curmudgeon
Posts: 76,435
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-26-2012, 01:28 PM | #167 | |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 03-26-2012 at 01:31 PM. |
|
Advert | |
|
03-26-2012, 10:46 PM | #168 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks all for your infos. It's a big first for me to know something can be unentified but not erased.
I'll try this clever regex expression, it will be an opportunity to use 0.53. Will for sure come back on it after trials. Quote:
supports it "fine" : That's exactly the word to use! Last edited by roger64; 03-26-2012 at 11:23 PM. |
|
03-27-2012, 10:38 PM | #169 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
I just found some information about the narrow no-break space, which is more recent than the thin space and presumably more promising for French writers and about its font support. Here. Like presumed, ADE is flagging it with a question mark. Even using a supported font (TNR), on my -old- PRS-505, I get the same question marks. So, if I prepare an EPUB with these narrow spaces, it seems it will be moreless the same as with the thins spaces. Only the "new generation" of e-readers seems to be able to transcribe them correctly. French will have to wait a little... Or did I miss something? Last edited by roger64; 03-28-2012 at 01:11 AM. |
03-28-2012, 03:38 AM | #170 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Are thin spaces automatically treated like non-breaking spaces? If not, aren't you (theoretically) running the risk that a punctuation character is separated from the preceding word and moved to the next line if the user changes the font size? BTW, I've read conflicting information regarding the recommended width of a space character before a two-part punctuation character in French. What's the correct width according to your research? |
|
Advert | |
|
03-28-2012, 04:02 AM | #171 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I have put in an issue in the list about this some time ago. In older versions this behavior was not present (0.4.2 or even lower) and I really want to see those entities. If you can't see them, you never know if they are there until the book is already finished and on the readers. I really dislike question marks when they don't have to be there...
|
03-28-2012, 05:18 AM | #172 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
It may not be very helpful because it's written in French but it deals with your question. Sorry for feeling unable to translate. Here it is. |
|
03-28-2012, 12:48 PM | #173 | |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
If I remember correctly (I don't have the reader here to try), narrow non-breaking spaces didn't work with the Gen3, and they only work with the Orizon if I enable hyphenation. It seems hyphenation triggers the use of a newer rendering engine, with better font support. When I enable hyphenation narrow non-breaking spaces (and many other kinds of spaces) are turned into question marks. Have a look here. |
|
03-28-2012, 12:50 PM | #174 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
In reality, I'd prefer not to have to include these thin spaces. In LaTeX, for instance, I can just say that I'm writing in French, and automatically all punctuation that needs has some space (non-breaking, of course) added before/after it. I wish there was something similar for ePub (and there's no reason why a rendering engine could not implement it).
|
03-30-2012, 11:08 AM | #175 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
Thanks for your other answers. |
|
03-30-2012, 12:33 PM | #176 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Actually, what I meant is that the thin spaces shouldn't even be in the code, they're just a display thing. But short of that, adding them when the conversion into ePub is done would be already an improvement.
|
04-10-2012, 07:02 AM | #177 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
Just a lookalike. But ADE does not like thinsp and nnbsp so it's just a - clumsy - workaround. Here is it to be used for example with Sigil as a regex (all html files). Search ([«]) | ([;!?»]) Replace \1<span class="fine"> </span>\2 CSS code is a one-liner: span.fine {font-size:0.25em;} Last edited by roger64; 04-10-2012 at 07:08 AM. |
|
04-14-2012, 01:11 PM | #178 |
Zealot
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
Centered image with caption
Deleted due to moderation issues.
Last edited by huebi; 04-19-2012 at 05:18 AM. |
04-28-2012, 04:25 AM | #179 |
Enthusiast
Posts: 30
Karma: 157236
Join Date: Apr 2012
Location: Winnipeg
Device: Kobo Glo
|
In all too many Project Gutenberg .epub 's the blue footnote number is superimposed on the text. This is probably due to their automated usage of epubmaker and their one size fits all settings thereof.
To fix - get into the .css part of the epub (Sigil works well for this). For PG it is /Styles/0.css The right alignment is incorrect. Amend .footnote .label to have the right position to be at 91% .footnote .label { position: absolute; right: 91%; text-align: right } |
10-05-2012, 07:37 PM | #180 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Oct 2012
Location: Winnipeg, Canada
Device: Sony PRS-505
|
This is the code I use to center images that have width's set as percentages:
<div class="imagecentre"><img alt="a horse" src="../Images/pic0001.png" /></div> div.imagecentre { margin-left: 25%; width: 50%; } div.imagecentre img { width: 100%; } Quote:
At first it seemd like a simple fix but it was hard finding a solution that worked reliably on so many readers. Last edited by jobalcaen; 10-05-2012 at 07:40 PM. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
direkter Umlaut oder lieber HTML Code in Epub ? | NASCARaddicted | Erste Hilfe | 14 | 06-16-2011 06:54 AM |
Programming language code snippets in ebooks? | Connochaetes | Writers' Corner | 7 | 10-18-2010 03:43 PM |
ebook-convert HTML to EPUB and problem with <pre><code> | mikegr | Calibre | 2 | 03-09-2010 03:27 PM |
css override code for margins? | Amalthia | Calibre | 15 | 08-11-2009 08:20 PM |
Problems generating ePub from HTML/CSS | AlexBell | Calibre | 3 | 07-17-2009 06:10 AM |