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 08-14-2014, 11:06 AM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
KB Shortcuts for Change Case?

I was using the right-click menu to change the case of selected text (very useful BTW)

But I couldn't find a way to assign each of the 4 or 5 Change Case options to a KB shortcut

There didn't seem to be (at least as far as I could find) a way to do that in Editor.

Did I miss something? Or could they be added to the list of customizable KB shortcuts?


Thanks
phossler is offline   Reply With Quote
Old 08-14-2014, 11:44 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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...2b3e08856eba4a
kovidgoyal is online now   Reply With Quote
Advert
Old 08-14-2014, 12:01 PM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks

I wish I understood Python (?)

Does that mean I can assign (say) Shift+Alt+L to LowerCase, and Shift+Alt+U to UpperCase?
phossler is offline   Reply With Quote
Old 08-14-2014, 12:13 PM   #4
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 phossler View Post
Thanks

I wish I understood Python (?)

Does that mean I can assign (say) Shift+Alt+L to LowerCase, and Shift+Alt+U to UpperCase?
Kovid's way of saying the fix was made, and will be in the next calibre release. The summary on top says yes, lowercase/uppercase/titlecase/capitalizing have all been added to the shortcuts preferences so you can assign whatever shortcuts that aren't already taken.
eschwartz is offline   Reply With Quote
Old 08-14-2014, 12:20 PM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by eschwartz View Post
Kovid's way of saying the fix was made, and will be in the next calibre release. The summary on top says yes, lowercase/uppercase/titlecase/capitalizing have all been added to the shortcuts preferences so you can assign whatever shortcuts that aren't already taken.
I understood the 'fix was made' part, but I was asking

a. if there are 5 shortcuts that can be assigned (one to LC, one to UC, etc.) or

b. if there was only one keystroke combo that could be assigned to bring up the current [Change Case] menu with it's 5 choices.

I just know 0.0000000% about Python (other than of course the Kovid is a whiz at it)
phossler is offline   Reply With Quote
Advert
Old 08-14-2014, 12:22 PM   #6
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It means you can assign whatever (as long as it does not conflict with something else) you like to whichever individual action you like.

EDIT: There is a small caveat, IIRC, the shortcut system does not support the shift key, you would have to use ctrl+Alt+L instead.

Last edited by kovidgoyal; 08-14-2014 at 12:25 PM.
kovidgoyal is online now   Reply With Quote
Old 08-14-2014, 12:27 PM   #7
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks for translating it into 'User Speak' for me
phossler is offline   Reply With Quote
Old 08-14-2014, 07:12 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
It means you can assign whatever (as long as it does not conflict with something else) you like to whichever individual action you like.

EDIT: There is a small caveat, IIRC, the shortcut system does not support the shift key, you would have to use ctrl+Alt+L instead.
Kovid, I suspect you meant the shift/alt key combo, shift alone is fine - for me at least.

BR
BetterRed is offline   Reply With Quote
Old 08-14-2014, 11:32 PM   #9
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by BetterRed View Post
Kovid, I suspect you meant the shift/alt key combo, shift alone is fine - for me at least.

BR
Shift alone is pretty useless since it is used for typing. The problem is that in Qt, keyboard shortcuts are case independent, so ctrl+u and ctrl+U are the same thing. Not only that, the list of such items is keyboard layout dependent. For example, on typical US keyboards you press shift for +, on Norwegian keyboards you press Shift for =

This means one has to detect the presence of shift by examining the text produced by the keypress and for certain combination of modifier keys such as, for example, shift+ctrl+u Qt produces ascii control codes for the keypress text, which confuses the logic I use to detect shift sensitive characters. I have actually implemented a fix for that, though there's no way to make it fully robust, so it will work with some keyboard layouts, with some keys, on some platforms, some of the time...best to just avoid using shift.
kovidgoyal is online now   Reply With Quote
Old 08-15-2014, 04:40 AM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
As I said - 'shift alone is fine - for me at least' - now if it stops working I won't be able to ask - why wasn't I told? :lol:

I was sort of surprised when I discovered shift/something worked at all.

Curiosity : why can't we use shift/alt ?

BR
BetterRed is offline   Reply With Quote
Old 08-15-2014, 04:42 AM   #11
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Shift alone will certainly work as a shortcut, the problem with it is that it prevents you from using the shift key while typing (I am talking about the editor here) since the shiortcut will be triggerred instead of the upper case letter being typed.
kovidgoyal is online now   Reply With Quote
Old 08-15-2014, 05:18 AM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
In my usage case the Code Editor window, and the S&R panel, seem to take precedence.

Due to procedural serendipity, I only use the two I assigned - shift/p (smarten punctuation) and shift/c (Remove unused CSS rules) - when there's no file in the CV window - i.e. when the EPUB is first opened.

If there's a file open in CV the shift/p and shift/c produce a 'P' and 'C' wherever the insertion point is in the CV window, or similarly in the S&R text boxes.

BR
BetterRed is offline   Reply With Quote
Old 08-15-2014, 05:20 AM   #13
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well ok, it goes the other way, the typing takes precedence over the shortcut, the point is that they conflict. I suppose you can get away with it if you are particularly careful about which shift based shortcuts you assign where.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change case in a regular expression myki Library Management 19 06-26-2014 04:46 AM
Change case tool ZoeRochelle Editor 12 04-04-2014 06:55 PM
Change uppercase to mixed case ElMiko Sigil 15 06-13-2012 07:13 AM
Keyboard shortcuts change for 0.8.14 - impact on plugins? kiwidude Development 37 09-24-2011 12:25 PM
Folder case change skells Calibre 3 05-17-2011 02:24 PM


All times are GMT -4. The time now is 05:54 AM.


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