09-15-2017, 08:21 PM | #16 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Many thanks to you all. I'll try and see if it works on my Sony T3.
|
09-16-2017, 11:30 AM | #17 |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Alex;
Try using the following code: 1. In your .css stylesheet: Code:
.nowrap { text-indent: 0; display: inline-block; } 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> It works under ADE 3 and upper (I suppose also it should work under ADE 2). Regards Rubén |
Advert | |
|
09-16-2017, 11:47 AM | #18 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In order to make sure code works properly, it will need to work with ADE 1.7.2 on up because there are a lot of devices out there with old version of RMDSK and there's no way they will every be updated. So don't assume, test it out.
Last edited by JSWolf; 09-16-2017 at 11:49 AM. |
09-16-2017, 12:55 PM | #19 |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
I don't have ADE 1.7.2 nor ADE 2.0. Can you test the code for me? That is, if you have those versions of ADE.
|
09-16-2017, 01:07 PM | #20 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
Advert | |
|
09-16-2017, 02:42 PM | #21 | |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
09-16-2017, 11:28 PM | #22 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Thanks, again, but there may be another option. This morning I accidentally found an article on Wikipedia:
Word joiner From Wikipedia, the free encyclopedia (Redirected from Zwnbsp) The word joiner (WJ) is a code point in Unicode used to indicate that word separation should not occur at a position, when using scripts that do not use explicit spacing. It is encoded since Unicode version 3.2 (released in 2002) as U+2060 WORD JOINER (HTML ). The word joiner does not produce any space, and prohibits a line break at its position. The word joiner replaces the zero-width no-break space (ZWNBSP), a deprecated use of the Unicode character at code point U+FEFF. Character U+FEFF is intended for use as a Byte Order Mark at the start of a file. However, if encountered elsewhere it should, according to Unicode, be treated as a "zero-width non-breaking space." The deliberate use of U+FEFF for this purpose is deprecated as of Unicode 3.2, with the word joiner strongly preferred. The HTML is & # 8 2 8 8 ; I've tried it on my Sony T3, and it works. It will take me a few days to finish the ebook I'm working on, and then I'll use calibre to produce an AZW3 version and will report whether it works on my Kindle and on the other readers I use. |
09-17-2017, 11:52 AM | #23 | |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Using the character & #8288; and the css property "display: inline-block" are not mutually exclusive solutions but complementary. Suppose you want to stick together a complete word (or two words); how would you do that by using the character & #8288;? You would have to use/add that char for each letter or the word. In those cases, it easier to use the property "display: inline-block". Regards Rubén |
|
09-17-2017, 10:49 PM | #24 |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Wouldn't you just put the two words together without anyspaces??
|
09-18-2017, 02:38 AM | #25 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
09-18-2017, 03:43 PM | #26 | |
Evangelist
Posts: 417
Karma: 6913952
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
Quote:
The problem in this case is that the Sony doesn't seem to think the em-dash is a punctuation mark. It can't be a general issue, or otherwise the OP would see periods, commas, quotation marks, etc. splitting from the word in front of them. |
|
09-18-2017, 03:46 PM | #27 |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
That's the case. By using the property "display: inline-block" you are avoiding that the word (or a sentence or a block of text) will be hyphenated and, of course, the text will remain joined.
Last edited by RbnJrg; 09-18-2017 at 03:50 PM. |
09-18-2017, 07:31 PM | #28 | |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
When you have word1–word2 and that won't fit on at the end of the line, instead of dropping word1–word2 to the next line and creating large gaps, if word1 fits, but –word2 doesn't fit, then –word2 will drop to the next line. Also, in some cases, you'll find it typeset like word1 – word2. So the em dash will be alone and treated that way. If it need to fall off the end of the line, it will. |
|
09-19-2017, 01:43 AM | #29 | ||
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Quote:
Quote:
Last edited by GrannyGrump; 09-19-2017 at 01:59 AM. |
||
09-19-2017, 03:02 AM | #30 |
Guru
Posts: 653
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
When I use "justify" on my Kobo there is usually a space between quote marks and the text within. I would prefer it to not be (but it's not a big deal, just looks strange).
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
italic at end of line causes next line to start with a space | ebookreadr | Sigil | 29 | 03-20-2017 11:25 AM |
Preventing chemical symbol from being split by page or line break | Nick Payne | ePub | 8 | 10-23-2013 03:06 AM |
Line breaks on Kindle, no line breaks on 4 PC | Siavahda | Kindle Formats | 0 | 10-20-2012 05:50 AM |
Spurious Line Breaks | Halk | Workshop | 1 | 05-15-2010 01:22 PM |
No line breaks | ecpepper | Amazon Kindle | 3 | 08-09-2009 06:42 PM |