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 11-30-2014, 03:05 AM   #16
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 536
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by arspr View Post
But I really hope he could make some magic... (If MS Word is capable, why is not Calibre going to be?)
Not only MS Word... I use Total Commander for everyday work (best money ever spent on a piece of software), and I just tried to open an html of a soft-hypenated book with its small internal listener. The hypens are visible and marked by a dash.
Ruskie_it is offline   Reply With Quote
Old 11-30-2014, 10:43 AM   #17
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Ruskie_it View Post
Not only MS Word... I use Total Commander for everyday work (best money ever spent on a piece of software), and I just tried to open an html of a soft-hypenated book with its small internal listener. The hypens are visible and marked by a dash.
And neither of them are based off of Qt.

Although either one could afford more than Kovid to spend time fixing Qt, in order to polish tiny details of the UI.
eschwartz is offline   Reply With Quote
Old 11-30-2014, 10:45 AM   #18
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by arspr View Post
And yet another brainstorming about making non-printable characters visible: through named entities.
  • Calibre does prefer the usage of unicode characters over named entities. But this case could be the exception to that general rule.
  • I propose something like a "white-list" of named entities/"black-list" of their associated unicode characters. (Also fully customizable?)
  • Then some options which could cause:
    • Nothing. As Calibre currently beheaves. The default option.
    • Warn me. Whenever a new editor window is opened an automatic search is launched against the black-list. And you get a warning. But nothing else is done.
    • Automatically change when opening but revert on save. The black-listed unicode chars are automatically changed by entities. This procedure is reverted when saving. I mean that the epub/azw3 file on the HDD always contains unicode chars but the opened editor shows entities.
    • Preserve entities. The same as above but entities are preserved when saving.
Of course this scheme needs some polishing and those white-listed entities would also affect other areas of the code, like the main named entities check or the automated change into Unicode when typing the ending ";" ... But I think the general idea is more or less clear.

As I said just brainstorming mode.
Sounds like an idea for an editor plugin.
eschwartz is offline   Reply With Quote
Old 11-30-2014, 11:20 AM   #19
shamanNS
Guru
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 886
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
@eschwartz: Any idea if QT is also to blame for both Sigil and Calibre Editor search/replace fields (or into html code itself) not excepting that same soft hyphen character when I input it using Autohotkey's hotkey/hotstring? Or even using Alt+0173 shortcut.

I know I could use: "Insert special character"> Shy, but that is not as convenient.

Easiest workaround so far for me is to open Notepad via Autohotkey shortcut, input special character via hotstring (.sh for soft hyphen, .mdash for — etc), and then select and copy character from Notepad to Calibre/Sigil search or code view.

Of the ones that I regularly use "Shy" is so far the first one that both editors ignore.


Because hyphenated footnotes/endnotes text looks awful in PW1 & PW2 pop out window (because of forced left alignment) usually after using HyphenateThis plugin I manually remove soft hyphens using search/replace just for endnotes html file.

Last edited by shamanNS; 11-30-2014 at 11:24 AM.
shamanNS is offline   Reply With Quote
Old 11-30-2014, 12:24 PM   #20
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
At least in calibre, I just type the entity and have it autoconvert. That works for the HTML code and you can paste into the search field.

I have never had problems with alt codes, which makes sense as it is part of the keyboard/OS system support and would anyway tend to be well integrated.
I do not know why AutoHotKey, wouldn't work, as I have never used it.
eschwartz is offline   Reply With Quote
Old 11-30-2014, 12:50 PM   #21
shamanNS
Guru
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 886
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
Other alt codes (say for single curly quotes, ‘) work inside Calibre Editor's code view and search field. Also "typing" the same Alt code via Autohotkey works in all other programs except Calibre & Sigil which both use QT. So far only U+00AD/Alt+0173 doesn't work. For html code workaround is typing the entity * but for Search field we still must use copy/paste.
shamanNS is offline   Reply With Quote
Old 11-30-2014, 01:50 PM   #22
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, I definitely don't know why &shy ; specifically would spaz out.
eschwartz is offline   Reply With Quote
Old 12-01-2014, 08:44 AM   #23
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Ruskie_it View Post
anyway it means to me that soft hypenation kinda breaks search functions, isn't it?
Yes. That's the bottom line.

And not only for editing, it prevents readers from using their device's/app's search function effectively on the finished product.

My advice would be to do all editing/searching/replacing you deem necessary before adding the soft hyphens (with "Hyphenate This" or otherwise) for your personal viewing pleasure. And to allow other readers the chance to do the very same thing, by never running "Hyphenate This" on an ebook that's going into production. Because ...
Quote:
Originally Posted by Ruskie_it View Post
anyway it means to me that soft hypenation kinda breaks search functions, isn't it?
DiapDealer is offline   Reply With Quote
Old 12-01-2014, 09:08 AM   #24
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 536
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by DiapDealer View Post
And not only for editing, it prevents readers from using their device's/app's search function effectively on the finished product.
I have just searched a word on my soft-hypenated epub (kindle pw2 fw 5.4.5.1): it finds it. Although it finds all related words as well.
That is: I searched for "correre", it found "correvano", "correva", "correndo", "corriamo", "corre", all verbal form for the verb "correre".
Same for the noun "strano", it found also the adverb "stranamente".
Which is - in fact - "strano".
But it seems not to break device search functions completely, at least.
Ruskie_it is offline   Reply With Quote
Old 12-01-2014, 09:24 AM   #25
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sorry...
Breaks most standard epub ereader search functions.

But I would still not recommend using "Hyphenate This" on a production ebook. Some may value an accurate search function more than they mind a little white-space here and there.

Personal use?... knock yourself out. But if I bought an ebook that was littered with invisible soft-hyphens (or their entity equivalent), I'd probably be asking for a refund.
DiapDealer is offline   Reply With Quote
Old 12-01-2014, 09:38 AM   #26
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 536
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by DiapDealer View Post
Sorry...
Breaks most standard epub ereader search functions.

But I would still not recommend using "Hyphenate This" on a production ebook. Some may value an accurate search function more than they mind a little white-space here and there.

Personal use?... knock yourself out. But if I bought an ebook that was littered with invisible soft-hyphens (or their entity equivalent), I'd probably be asking for a refund.
Well, ebooks in azw format are proprietary to the kindle world. Kindle does not hypenate itself but it manages soft-hypenation AND search functions. In the .epub world shy may break device's search (I'll take your words), but they are also unnecessary because (I believe) all epub e-reader can handle hypenation, can't they?
So, it seems they are two well separated worlds.

In any case, no worries: I'm not a publisher, just a reader. It's that I value, for the pleasure of reading, much much much more a well balanced "written page" that I "use" 99.9% of the time while using my reader, than a search function that I use only sometimes, to say the least.
But that's just me. I agree that the approach of demanding to an ebook reader to be able to hypenate itself makes much more sense.
Ruskie_it is offline   Reply With Quote
Old 12-01-2014, 09:42 AM   #27
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)
Quote:
Originally Posted by shamanNS View Post
Other alt codes (say for single curly quotes, ‘) work inside Calibre Editor's code view and search field. Also "typing" the same Alt code via Autohotkey works in all other programs except Calibre & Sigil which both use QT. So far only U+00AD/Alt+0173 doesn't work. For html code workaround is typing the entity * but for Search field we still must use copy/paste.
Typing \u00ad should allow to find them using the search window of the Calibre editor (provided the shy entity is not used, but this one should be visible...)
roger64 is offline   Reply With Quote
Old 12-01-2014, 10:47 AM   #28
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
Quote:
Originally Posted by eschwartz View Post
Quote:
Originally Posted by arspr View Post
And yet another brainstorming about making non-printable characters visible: through named entities.
  • Calibre does prefer the usage of unicode characters over named entities. But this case could be the exception to that general rule.
  • I propose something like a "white-list" of named entities/"black-list" of their associated unicode characters. (Also fully customizable?)
  • Then some options which could cause:
    • Nothing. As Calibre currently beheaves. The default option.
    • Warn me. Whenever a new editor window is opened an automatic search is launched against the black-list. And you get a warning. But nothing else is done.
    • Automatically change when opening but revert on save. The black-listed unicode chars are automatically changed by entities. This procedure is reverted when saving. I mean that the epub/azw3 file on the HDD always contains unicode chars but the opened editor shows entities.
    • Preserve entities. The same as above but entities are preserved when saving.
Of course this scheme needs some polishing and those white-listed entities would also affect other areas of the code, like the main named entities check or the automated change into Unicode when typing the ending ";" ... But I think the general idea is more or less clear.

As I said just brainstorming mode.
Sounds like an idea for an editor plugin.
Any volunteers??? (DiapDealer I'm looking at you )
arspr is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini Search function? AndrewH Kobo Reader 4 12-21-2013 11:20 AM
Touch Search function tkavan Kobo Reader 7 06-26-2012 09:54 AM
Odyssey No Search function? Fourvin Bookeen 4 01-09-2012 06:41 PM
PRS-350 Search function not working correctly skypilotpete Sony Reader 15 11-22-2011 10:05 PM
Why no search function? gatorfan Astak EZReader 6 08-24-2009 03:10 PM


All times are GMT -4. The time now is 05:01 PM.


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