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 01-22-2019, 07:22 PM   #31
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: 52,464
Karma: 47532851
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by GrannyGrump View Post
Curiosity bump is itching.

No smallish phone available. Can you provide some sample code and a screenshot of reading screen to illustrate breakage?

Thanks.
What I've seen is that if a <pre></pre> is used to prevent wrapping and the line doesn't fit on screen, with ADE, it flows off the screen to the left and you lose some of the line.
JSWolf is offline   Reply With Quote
Old 01-22-2019, 07:34 PM   #32
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: 52,464
Karma: 47532851
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
@Psymon I had a look at your Shakespeare book and it is excellent.
JSWolf is offline   Reply With Quote
Old 01-22-2019, 08:03 PM   #33
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 427486
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by JSWolf View Post
@Psymon I had a look at your Shakespeare book and it is excellent.
Oh, thanks so much! Since I re-posted it recently, with the addition of my own fonts, I've been discovering all sorts of little things that needed fixing up in the latter -- tons of kerning, and also some more ligatures I found that I could use, too -- and so I've been working on that the last couple weeks.

So if you like it now, you should like it even more once I load up yet another revision (with better fonts)! Of course, a lot of those things I've been fixing up are nearly invisible (unless one is a nitpicker about tiny details in fonts, of course -- which seems to have become an affliction I've acquired in recent years).
Psymon is offline   Reply With Quote
Old 01-22-2019, 10:49 PM   #34
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 1,994
Karma: 18488693
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
@Psymon --- A thought for you --- since you are using embedded fonts for this beautiful book, how about this:

Edit your font (as a new font with a new name, of course) with extra-wide spacing, and use that spaced font for those names. This should prevent the search breakage.

So you would have an additional font "Alde_Roman_Antiqua_WIDE".
GrannyGrump is offline   Reply With Quote
Old 01-22-2019, 11:04 PM   #35
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 427486
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by GrannyGrump View Post
Edit your font (as a new font with a new name, of course) with extra-wide spacing, and use that spaced font for those names. This should prevent the search breakage.
Oh, ha ha, now there's a thought!

I wonder, though, if people would really be using the search feature much, just to look for names? As I mentioned earlier (somewhere), those same authors' names (of any significance) are still mentioned in the table of contents and stuff, too, so people would still find those names there (and then just click on that link to read the piece by that author).

That's still a thought, though! I think I'll just stick with my kludgy way of doing it, adding in a space in-between each letter, but it's still something to think about.
Psymon is offline   Reply With Quote
Old 01-22-2019, 11:23 PM   #36
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 1,994
Karma: 18488693
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Oh, I forgot to mention --- a possible alternative to preventing line-wrap. (<pre> is really not ideal, as JSWolf notes).

Over a year ago, there was a discussion to try to prevent emdashes at end of sentences from orphaning themselves on a separate line. RbnJrg found a solution that will also prevent single words or phrases from breaking up.

https://www.mobileread.com/forums/sh...ghlight=nowrap

See Ruben's solution, post # 17.

Quote:
Originally Posted by RbnJrg View Post

Try using the following code:

1. In your .css stylesheet:

Code:
.nowrap {
    text-indent: 0;
    display: inline-block;
}
2. In your .xhtml files

Code:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Etiam <span class="nowrap">T—</span> imperdiet leo metus, et gravida lacus.  Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo.</p>
To test the code, add "." after the word nunc. (ie. nunc.., nunc..., etc.) You'll see that the T— always remains joined.

It works under ADE 3 and upper (I suppose also it should work under ADE 2).

Regards
Rubén

I have successfully used this css ever since for short words, but on long words or phrases, it can do bad things to justification and hyphenation.
GrannyGrump is offline   Reply With Quote
Old 01-23-2019, 06:30 AM   #37
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 427486
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by GrannyGrump View Post
Over a year ago, there was a discussion to try to prevent emdashes at end of sentences from orphaning themselves on a separate line. RbnJrg found a solution that will also prevent single words or phrases from breaking up.
I just use this class...

Code:
.nowrap {
	white-space: nowrap;
}
How is the method you mentioned better? Mine seems to work just fine (in what few things I can test it on, anyway).
Psymon is offline   Reply With Quote
Old 01-23-2019, 10:19 PM   #38
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 1,994
Karma: 18488693
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
According to Doitsu's tests that he reported in that thread, on ADE v 2.4.5 the emdash would still break onto a new line. (Remember, this was looking for a way to keep emdash attached to its word at the end of a sentence.). The "inline-block" method seems to keep the emdash glued on.

I think white-space: no-wrap will force your line to bleed off the edge of the screen.
I use white-space: pre-wrap, which will preserve the spacing, but will still wrap the line to keep it from flowing off the side.
GrannyGrump is offline   Reply With Quote
Old 01-24-2019, 06:04 AM   #39
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 427486
Join Date: May 2013
Device: iPad, ADE
Interesting, never heard of "white-space: pre-wrap" -- I'll have to look into that one!

In Doitsu's version, what's the purpose of "text-indent: 0" -- what's that trying to do (or prevent)? I know what it DOES, of course, but why is it needed in that context, in the middle of a sentence (I presume) in a paragraph or something?
Psymon is offline   Reply With Quote
Old 01-24-2019, 10:11 AM   #40
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 427486
Join Date: May 2013
Device: iPad, ADE
I did a quick google search just now on that pre-wrap thing, and ended up at the w3schools site, where they say that "white-space: pre-wrap" has the effect of "Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks."

I haven't tested this out myself yet, but from that description, it just sounds like it would have the same effect as having no "white-space" tag at all, that lines are just breaking if/when they feel like it?
Psymon is offline   Reply With Quote
Old 01-24-2019, 10:05 PM   #41
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 1,994
Karma: 18488693
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
It *preserves* white space --- such as your widely-spaced author names. So the name would still display as-- B E N . J O N S O N
but would be allowed to wrap if too wide for the screen, instead of running off the edge.

Try a test of a long sentence with your wide spacing, using both settings, and see what happens.
It is kind of a toss-up if you would prefer the words to disappear off the edge, or to wrap at some random point without a hyphen. It seems like we are always having to choose the lesser of two evils.

Last edited by GrannyGrump; 01-24-2019 at 10:09 PM.
GrannyGrump 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
Add empty MD file to book Dalcyks Library Management 6 11-27-2016 03:05 AM
Generous use of empty spaces (Foolish?) chaot Editor 6 10-29-2015 03:57 PM
Sigil adds spaces between HTML tags, creating strange characters chezjim Sigil 10 06-10-2011 05:00 AM
Can't add files to library if the filename contain spaces mduijkers enTourage Archive 8 09-19-2010 06:10 AM
Add Empty Books? Sydney's Mom Calibre 4 03-14-2010 09:26 PM


All times are GMT -4. The time now is 12:03 AM.


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