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 01-26-2023, 03:05 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 751
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
Title-case text (ignore tags) Not Necessarily Working

Another weird one. Sometimes, the Calibre Editor's Regex-Function mode of "Title-case text (ignore tags)" doesn't completely change the case of the text. I haven't been able to find a reason why. For instance, just now, I had it look for:
Code:
<h2>(.+?)</h2>
and it correctly found and highlighted:
Code:
<h2>Introduction: CARLA LEMARCHANT</h2>
When I told it to do the replacement, nothing changed. I backed the cursor off a bit, tried again, and got the same result. So, I switched the mode to "Lower-case text (ignore tags)", hit the Find and the Replace buttons and it correctly found and lower-cased the thing. I changed it back to Title-case and it now worked.

Then, I manually changed it back to its original, and Title-case didn't work again. The Lower-case function worked and then Title-case on that also worked. If I use the "Upper-case text (ignore tags)" mode and back to Title-case, that also works.

EDIT: I should have been more specific about "didn't work." The stuff before the colon (":") converts fine (even with more than one word). The stuff after the colon is where the problem always seems to happen.

Last edited by enuddleyarbl; 01-26-2023 at 03:30 PM.
enuddleyarbl is online now   Reply With Quote
Old 01-26-2023, 04:09 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,032
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
calibre's title case function won't change a string that contains uppercase letters. Reason: acronyms. The workaround if you really want the case changes is the one you found: convert to lower case first.
chaley is offline   Reply With Quote
Old 01-26-2023, 04:11 PM   #3
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,357
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Yes, I have noticed that also. They have problems with mixed cases. So either convert to all upper or all lower case, then use the Title case or Capitalise text
Karellen is offline   Reply With Quote
Old 01-26-2023, 04:29 PM   #4
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,359
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Also Title case needs manually reviewed anyway as there are at least two sets of rules.

Best to convert all headings to lower case and then convert headings one at a time to title case.
Quoth is offline   Reply With Quote
Old 01-26-2023, 09:57 PM   #5
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 751
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by chaley View Post
calibre's title case function won't change a string that contains uppercase letters. Reason: acronyms. The workaround if you really want the case changes is the one you found: convert to lower case first.
Thanks. I never would have thought of acronyms. That makes sense.
enuddleyarbl is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Books: Ignore tags in metadata ownedbycats Library Management 3 02-03-2019 04:07 PM
Plugin to ignore tags when searching? Vanguard3000 Plugins 5 06-07-2018 03:36 AM
Ignore tags when downloading metadata? rockola Library Management 2 12-09-2017 11:11 AM
Bulk change all tags to title case wrbriant@gmail.c Library Management 5 04-07-2017 04:02 AM
[AWOL] Context menu: Alter title text case Sabardeyn Calibre 8 06-26-2014 01:04 AM


All times are GMT -4. The time now is 06:57 PM.


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