![]() |
#1 |
Connoisseur
![]() 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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 Last edited by phossler; 02-05-2022 at 02:14 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. Code:
Hi, I am from france. i am also german. my third sentence. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Any possibility of making the conversion respect the full stop between sentences? I know spotting nouns might be a bit difficult. Thank you. |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
|
Quote:
And, AFAICS, "Capitalization" should be changed to "Sentence case". There's a definition at https://writeanswers.royalroads.ca/faq/199241. |
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |