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 02-15-2018, 02:33 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Sigil compatibility (a wish)

Hi

I switch regularly between the two excellent Editors which I find complementary. To explain, I usually begin and end with Sigil plugins (ODTImport and Epubcheck among others) and in the middle I work with the Editor for group regexes, stylesheet tweaks, functions and so on.

As it happens, French (but also Russians and others) make a tremendous use of no-break spaces either normal or narrow (for me about 50/50).

Unhappily Sigil has been plagued for years by a Qtedit bug which forces them to avoid &_nbsp; and use &#_160; instead of the \u_00a0 the Calibre Editor uses. Very probably this will continue for some time. Recently, this problem got worse as I now need to force Sigil to use automatically &#x_202f; instead of \u_202f to get it visibly displayed in Code view...

So when I come back from Sigil to the Editor I have to perform the regex below, which I sometimes forget ...

Spoiler:

Code:
{
  "searches": [
    {
      "case_sensitive": false, 
      "dot_all": false, 
      "find": " |&#_160;", 
      "mode": "regex", 
      "name": "[w2x] INS Retour Sigil Convertir nbsp et 160 en  UTF8", 
      "replace": "\\u00a0"
    }, 
    {
      "case_sensitive": false, 
      "dot_all": false, 
      "find": " ", 
      "mode": "regex", 
      "name": "[w2x] INS Retour Sigil fines entité", 
      "replace": "\\u202f"
    }
  ], 
  "version": 1
}


Though I willingly admit this is not the Editor problem, it would be great for all dual users to be able to switch painlessly from one Editor to another without having to use a regex (*). Casual users will be lost by these tricky compatibillity questions.

My wish would be that, on opening any Epub, the Editor could transform automatically these unwanted entities. To enable this feature, it should be enough to tick a box in the Preferences panel named for example "Sigil no-break space conversion".

* this forced regex looks like a visa

Last edited by roger64; 02-15-2018 at 03:14 AM. Reason: Adding a _ to display 160
roger64 is offline   Reply With Quote
Old 02-15-2018, 03:15 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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just click Tools->Beautify all files and the entities will be replaced automatically.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-15-2018, 03:30 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)


and there is a "Beautify automatically" tick box in the Preferences that I duly activated.

Last edited by roger64; 02-15-2018 at 03:34 AM.
roger64 is offline   Reply With Quote
Old 02-15-2018, 04:16 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
There is an epubcheck plugin for Calibre's editor. I use it a lot.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil on Nook vs Sigil on Kobo vs Sigil on iBook rosshalde Sigil 12 11-13-2014 09:34 AM
Epub Compatibility transfield Calibre 4 09-08-2013 12:24 PM
EPUB3 Compatibility dpayment PocketBook 18 06-19-2011 08:33 AM
Compatibility question Metal Mick PocketBook 2 07-22-2010 03:48 AM
Compatibility? Egghead Sony Reader 4 06-16-2006 06:01 PM


All times are GMT -4. The time now is 04:11 PM.


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