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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2012, 01:20 PM   #166
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: 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:
Originally Posted by DiapDealer View Post
Sigil doesn't erase it at all. It just un-entities it... meaning you probably can't see it in the Code View. But it's still there and it still renders properly in the Book View.

The regex expression \x{202f} will find all occurrences of the narrow, non-breaking spaces that you thought were erased (in Code View).

This is all based on Sigil 0.5.3.
Is that Tidy at work again?
JSWolf is offline   Reply With Quote
Old 03-26-2012, 01:28 PM   #167
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Is that Tidy at work again?
No clue. I just learn to work around things like that (once I'm aware of them) rather than dwelling on them.

Last edited by DiapDealer; 03-26-2012 at 01:31 PM.
DiapDealer is online now   Reply With Quote
Advert
Old 03-26-2012, 10:46 PM   #168
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by Jellby View Post
I don't know what Sigil does, but my reader (Cybook Orizon, which uses an Adobe engine internally) supports it fine, at least with the fonts I use.
/hopeful / Could you name one of them (if possible, free, regular, serif) ?

supports it "fine" : That's exactly the word to use!

Last edited by roger64; 03-26-2012 at 11:23 PM.
roger64 is offline   Reply With Quote
Old 03-27-2012, 10:38 PM   #169
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
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.
roger64 is offline   Reply With Quote
Old 03-28-2012, 03:38 AM   #170
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roger64 View Post
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...
I've always thought that French always requires non-breaking spaces before two-part punctuation characters (e.g. colons, question marks etc.).
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?
Doitsu is offline   Reply With Quote
Advert
Old 03-28-2012, 04:02 AM   #171
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by DiapDealer View Post
No clue. I just learn to work around things like that (once I'm aware of them) rather than dwelling on them.
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...
Toxaris is offline   Reply With Quote
Old 03-28-2012, 05:18 AM   #172
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by Doitsu View Post
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?
It's indeed -slightly- conflicting.

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.
roger64 is offline   Reply With Quote
Old 03-28-2012, 12:48 PM   #173
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,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by roger64 View Post
/hopeful / Could you name one of them (if possible, free, regular, serif) ?
Now I'm using Minion Pro (not free), but I believe it works with Droid Serif (free) too.

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.
Jellby is offline   Reply With Quote
Old 03-28-2012, 12:50 PM   #174
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,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).
Jellby is offline   Reply With Quote
Old 03-30-2012, 11:08 AM   #175
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by Jellby View Post
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).
It would be great. I will ask Henrik Just about it. He is probably familiar about it because he develops Writer2Latex, of which W2X is only a subset.

Thanks for your other answers.
roger64 is offline   Reply With Quote
Old 03-30-2012, 12:33 PM   #176
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,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.
Jellby is offline   Reply With Quote
Old 04-10-2012, 07:02 AM   #177
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by Jellby View Post
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.
I published a regex emulating them from  
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">&nbsp;</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.
roger64 is offline   Reply With Quote
Old 04-14-2012, 01:11 PM   #178
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
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.
huebi is offline   Reply With Quote
Old 04-28-2012, 04:25 AM   #179
paxmark1
Enthusiast
paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.paxmark1 can grok the meaning of the universe.
 
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
}
paxmark1 is offline   Reply With Quote
Old 10-05-2012, 07:37 PM   #180
jobalcaen
Junior Member
jobalcaen began at the beginning.
 
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:
When setting a relative image width (such as 50%), create a left margin that is half of the remaining page width. In the example below the image width is 50% of the screen so the left margin is set to 25%.
I found the code at http://adamdscott.com/wrote-about/re...ges-in-ibooks/ and have tested it on: Ibooks, Sony PRS-505, ADE and the firefox epubreader.

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.
jobalcaen 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
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


All times are GMT -4. The time now is 09:46 PM.


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