View Single Post
Old 08-14-2013, 04:01 AM   #39
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by roger64 View Post
Hi

nnbsp (narrow no-break space) bug in Sigil 0.7.3

Usually with Sigil, the nnbsp entities are not displayed in code view: this means that you can ascertain the presence of a nnbsp only using your cursor. For example, when a nnbp has been inserted between e and ; you will need three cursors moves to go from e to ; but you will see only two characters (in code view). In book view, you can see the - small- white space.

For many months now, I have been consistently producing epubs for MR using some nbsp and mostly nnbsp, according to French typographic rules. For this, I always used some version of Sigil to fine-tune the book and insert the nnbsp within the EPUB.

The version of Sigil (0.7.3) I use has been compiled by DiapDealer for Linux 64 bits, like the previous one I used. It just seems to ignore the nnbsp:

- when I insert a nnbsp (either as &#_x202f; -or as &#_8239; - without the _ of course ) it does not appear again once the EPUB has been saved and reopened. I consistently get a normal white space.

- worse, when I reopen one of my former ebooks which has been published with nnbsp throughout, these entities are not displayed. One can see white spaces instead of nnbsp. Here for example.
0.7.3 does show nnbsp characters as a normal space in Code View, and does not show them in 0.7.2. The nnbsp characters are still there as nnbsp characters, even after saving and re-opening, they just look different now in Code View. They are all still there if you open your test epub. Qt must have changed how it is showing them.

The attached example epub contains nbsp, nnbsp, and mdash entities and characters (the html has been hand edited outside of Sigil since Sigil won't save an nbsp character - if you open the epub in 0.7.3 you will see that both nbsp entries turn into entities).

The nnbsp character and entity show up as a space in Code View. But if you actually do a Find for an nnbsp character it will find the character, even after saving and re-opening. (As you probably already know, you can create this character by, for example, opening gedit on linux, typing ctrl-shift-u followed by 202f [RETURN], and can then paste that into Sigil. Or just copy it from Book View.)
Attached Files
File Type: epub nbsp_and_nnbsp_example.epub (2.5 KB, 202 views)
meme is offline   Reply With Quote