Thanks Kovid. That's really weird, because I can't see any change in the hexa code after having inserted an
nbsp; in replacement of a common space.
Without wanting to take too much of your time, let's see a short example:
1.
In the "Normal viewer" tab I have a French sentence like this:
La langue française nous tend des pièges au quotidien !
Dragging the left limit of the text container which is in the rightmost side of the main GUI I can see the exclamation mark going alone to the next line. I would like to "group" the last word of the sentence with the exclamation mark.
2.
To see the code before any alteration, in the "Normal Viewer" tab I do a copy of the sentence, then I simply paste it in Notepad++ in hexa mode (there is a plugin available for that). In hexa it gives this:
4c 61 20 6c 61 6e 67 75 65 20 66 72 61 6e c3 a7 61 69 73 65 20 6e 6f 75 73 20 74 65 6e 64 20 64 65 73 20 70 69 c3 a8 67 65 73 20 61 75 20 71 75 6f 74 69 64 69 65 6e
20 21
Correct.
(the most important is the penultimate character)
3.
I come back to Calibre "HTML Source" tab, and in replacement of the last space I put
to have now an unbreakable space.
4.
Then I come back to the "Normal Viewer" tab, and I copy again all the sentence.
5.
In a new tab of Notepad++ again in Hexa mode, I paste again. And... I don't see any difference!:
4c 61 20 6c 61 6e 67 75 65 20 66 72 61 6e c3 a7 61 69 73 65 20 6e 6f 75 73 20 74 65 6e 64 20 64 65 73 20 70 69 c3 a8 67 65 73 20 61 75 20 71 75 6f 74 69 64 69 65 6e
20 21
... while I should have:
4c 61 20 6c 61 6e 67 75 65 20 66 72 61 6e c3 a7 61 69 73 65 20 6e 6f 75 73 20 74 65 6e 64 20 64 65 73 20 70 69 c3 a8 67 65 73 20 61 75 20 71 75 6f 74 69 64 69 65 6e
a0 21
No?
6
And yet... I see that the change has an effective result!!! This time it is not only the exclamation mark which goes to the next line... but also the last word as I desired.
Of course I'm happy of the result, but there's a mystery for me.