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-05-2022, 06:57 AM   #1
paperback
Connoisseur
paperback began at the beginning.
 
Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
Changing the case of text

Linux Mint 20.1

Changing case is a common enough occurence but, IMV, it could be improved a little. First you have to select the text, then right-click, then select the options. The keyboard shortcut for "Change case" is the same as that to select "Cut", so you need to press twice to engage. IMV, it would be better to have unique letter shortcuts in the context menu if possible.

Suggestion: Have a menu option for "Change case" and allow this to be accessed purely by keyboard letter shortcuts.

The other thing is that Calibre has an option "Capitalise". Normally this means "make the first letter in every selected word a capital letter", but Calibre interprets this mistakenly as "make the first letter of the selection a capital. In fact, this should called "Sentence case".

Suggestion: Change the wording of the existing "Capitalize" to "Sentence" and add a true "Capitalize" option for those who want a capital leter at the start of every word.
paperback is offline   Reply With Quote
Old 02-05-2022, 01:27 PM   #2
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,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Preferences, Keyboard Shortcuts, Tools has UPPER CASE, lowercase, and Title Case options where you can customize the shortcut key

You still have to select the text though since Kovid hasn't had time to add a mind reading option yet

There's also some RegEx-Functions that might be helpful, although I'm not sure which ones were 'built in' and which members were nice enough to help me with
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	159
Size:	94.8 KB
ID:	192129   Click image for larger version

Name:	Capture1.JPG
Views:	141
Size:	90.1 KB
ID:	192130  

Last edited by phossler; 02-05-2022 at 02:14 PM.
phossler is offline   Reply With Quote
Advert
Old 02-05-2022, 07:46 PM   #3
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I changed the shortcut letter to h. Although as phossler points out there are already configurable shortcuts for it that dont go through menus. I'ma fraid I dont agree capitalize means capitalize every word, in any case, why would one ever want to capitalize every word? If you want to capitalize words in a sentence, you use title case.
kovidgoyal is offline   Reply With Quote
Old 02-05-2022, 09:45 PM   #4
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
While discussing Capitalize case, I have noticed a bug with this.

I have always interpreted this to mean that the first letter of the first word of every sentence becomes a capital letter, along with nouns.

But using this on consecutive sentences, only the first letter is ever capitalised. Subsequent sentences then get reverted to lower case.

This is expected...
Code:
Hi, I am from France. I am also German. My third sentence.
But using Capitalize case, you end up with...
Code:
Hi, I am from france. i am also german. my third sentence.
Not only are nouns uncapitalised, but letters at the start of a sentence are also uncapitalised.
Karellen is offline   Reply With Quote
Old 02-05-2022, 09:59 PM   #5
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes capitalize capitalises only the first letter of the selection. it does not do language analysis to capitalize things.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-05-2022, 10:11 PM   #6
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
Yes capitalize capitalises only the first letter of the selection. it does not do language analysis to capitalize things.
Ok.
Any possibility of making the conversion respect the full stop between sentences? I know spotting nouns might be a bit difficult.

Thank you.
Karellen is offline   Reply With Quote
Old 02-06-2022, 12:10 AM   #7
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That would require language analysis as well. think of for e.g. or etc or languages where the sentence separator is not a period.
kovidgoyal is offline   Reply With Quote
Old 02-06-2022, 01:09 AM   #8
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
That would require language analysis as well. think of for e.g. or etc or languages where the sentence separator is not a period.
ah, of course. Lots of opportunity for false positives.

Thanks anyway
Karellen is offline   Reply With Quote
Old 02-07-2022, 08:23 AM   #9
paperback
Connoisseur
paperback began at the beginning.
 
Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
Quote:
Originally Posted by phossler View Post
Preferences, Keyboard Shortcuts, Tools has UPPER CASE, lowercase, and Title Case options where you can customize the shortcut key
That's true but, IMV, not the most convenient option as it involves remembering three different shortcuts. A better way might be to have one shortcut to open the menu with the "Change case" options in it; then use the keyboard shortcuts suggested by the "menu mnemonics". That way you only have one shortcut to remember for all cases. Alternatively, if the "Change case" could be incorporated into one of the main menu options then you could use all mnemonic shortcuts.

And, AFAICS, "Capitalization" should be changed to "Sentence case". There's a definition at https://writeanswers.royalroads.ca/faq/199241.
paperback is offline   Reply With Quote
Old 02-08-2022, 01:03 PM   #10
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,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
@paperback

I only ever need the Title Case, mostly when I'm fixing headings that my Saved Searchs missed, so it's not an issue for me

I suppose a logical place would be to add three icons to the Format Text toolbar, but I'm happy with the keyboard shortcut
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	117
Size:	85.9 KB
ID:	192216  
phossler is offline   Reply With Quote
Old 02-08-2022, 04:33 PM   #11
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: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I use a utility AnyCase that works everywhere, even HERE

I don't know where the 'drive' to burden every app with multiple variants of common functions such case changing, dictionary lookups, snippets etc came from… but I can guarantee you it wasn't me

BR
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2022-02-09 082214.jpg
Views:	141
Size:	41.9 KB
ID:	192225  
BetterRed is offline   Reply With Quote
Old 02-08-2022, 06:28 PM   #12
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,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
If you include tags in the selected text, does it leave them alone?

Calibre's Title Case only affects non-tag text
phossler is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing all text color to black bosola Conversion 1 01-27-2021 07:08 AM
Changing h1 text back to normal rosshalde Sigil 1 10-27-2014 10:48 AM
Changing case on category (tag) values BetterRed Calibre 2 10-13-2013 11:46 AM
Changing text color? bizzybody ePub 2 10-23-2011 01:45 AM
Changing text size GBC Calibre 0 05-23-2009 07:10 PM


All times are GMT -4. The time now is 09:12 PM.


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