Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-22-2014, 06:10 AM   #1
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Named entities and French books

Maybe this small issue does not exist only in French.
In French typography, we must put unbreakable spaces before these punctuation marks: ;:!?» and after «
All "double" marks need a space. So we cannot remove   and replace it with a plain space as it was an unwanted named entity, if we want to avoid having a semicolon or a closing double quote at the beginning of a line.
An option to exclude some named entities from being filtered should be introduced into the editor.
Thanks.
François.
Francois_C is offline   Reply With Quote
Old 01-22-2014, 06:47 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The editor does not replace   with a plain space, it replaces it with the unicode nbsp character. As you will see if you look at the bottom right of the screen with your cursor to the right of the character.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-22-2014, 07:02 AM   #3
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Quote:
Originally Posted by kovidgoyal View Post
The editor does not replace   with a plain space, it replaces it with the unicode nbsp character. As you will see if you look at the bottom right of the screen with your cursor to the right of the character.
Thank you very much, Kovid. This is great. I did not look at the bottom right, nor checked the binary, indeed. I only saw spaces, which I now understand are displayed like non-breakable spaces in LibreOffice. So I'll be able to use the feature now
Congratulations for the great job!
Francois_C is offline   Reply With Quote
Old 01-22-2014, 07:14 AM   #4
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
BTW, when you edit the processed file with Sigil, it displays   again; which I suppose means that it will restore   when saving, because it cannot handle the equivalent Unicode char.
But I suppose Calibre editor will replace Sigil shortly.
Francois_C is offline   Reply With Quote
Old 01-22-2014, 07:14 AM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
It can be a little hard to find and select non-breaking spaces.

You can search for them by setting search to Regex and type \u00a0 in Find.
mrmikel is offline   Reply With Quote
Advert
Old 01-22-2014, 09:00 AM   #6
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Or using the new insert special character tool (look in the main tool bar) which also works inside the F&R input text boxes.
arspr is offline   Reply With Quote
Old 01-22-2014, 10:27 AM   #7
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Quote:
Originally Posted by arspr View Post
Or using the new insert special character tool (look in the main tool bar) which also works inside the F&R input text boxes.
Absolutely! As you mouse across the characters displayed, you get a readout of the description and the unicode number for it in the lower left corner of the box.
mrmikel is offline   Reply With Quote
Old 01-24-2014, 07:03 AM   #8
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Thank you everybody. I'll use the search and replace and Regex tips when I need them. Now I'm using the 'replace named entities' feature confidently. It made me find that Sigil did not support Unicode characters (at least for the   equivalent, which is brought back to named entity if you save the file), whilst Amanuensis did.
I think this editing tool is really interesting and useful. But I would like to know which proportion of the innumerable Calibre users can use it: In France, I assume that one ebook user upon two uses Calibre, as a rule of thumb. But most of them totally ignore HTML (and Regex!). Thank you for those who are able to use the new feature. I like this in Calibre: it is not made 'for noobs', but it can be used by noobs with results they find satisfactory

Last edited by Francois_C; 01-24-2014 at 07:16 AM.
Francois_C is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil doesn't like named entities Notjohn Sigil 13 07-14-2013 11:12 PM
Epub no support for some named entities? Points ePub 25 11-19-2012 06:42 PM
decimal entities in ePub instead of character entities epub4ever Calibre 4 04-20-2012 02:27 AM
Named entities or not? alecE ePub 17 07-21-2009 12:24 PM
French writer named Hello Lobolover Lounge 8 04-12-2008 07:16 AM


All times are GMT -4. The time now is 08:22 PM.


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