01-22-2019, 06:22 PM | #31 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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.
|
01-22-2019, 06:34 PM | #32 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@Psymon I had a look at your Shakespeare book and it is excellent.
|
01-22-2019, 07:03 PM | #33 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
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). |
|
01-22-2019, 09:49 PM | #34 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
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". |
01-22-2019, 10:04 PM | #35 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
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. |
|
01-22-2019, 10:23 PM | #36 | |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
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:
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. |
|
01-23-2019, 05:30 AM | #37 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Code:
.nowrap { white-space: nowrap; } |
|
01-23-2019, 09:19 PM | #38 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
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. |
01-24-2019, 05:04 AM | #39 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
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? |
01-24-2019, 09:11 AM | #40 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
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? |
01-24-2019, 09:05 PM | #41 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
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 09:09 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add empty MD file to book | Dalcyks | Library Management | 6 | 11-27-2016 02:05 AM |
Generous use of empty spaces (Foolish?) | chaot | Editor | 6 | 10-29-2015 02:57 PM |
Sigil adds spaces between HTML tags, creating strange characters | chezjim | Sigil | 10 | 06-10-2011 04:00 AM |
Can't add files to library if the filename contain spaces | mduijkers | enTourage Archive | 8 | 09-19-2010 05:10 AM |
Add Empty Books? | Sydney's Mom | Calibre | 4 | 03-14-2010 08:26 PM |