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 09-18-2015, 05:00 AM   #1
BaconButty
Connoisseur
BaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enough
 
Posts: 69
Karma: 520
Join Date: Jun 2012
Location: France
Device: Kindle Paperwhite 5 & iPad Mini & Galaxy Tab10
Change CAse for ToC?

Hi there,

I know how to create and/or edit a ToC, but I would like to be able to select the case (Upper/Lower/Swap/Title/Capitalize) for the entries.

Is there a way to edit the ToC either globally (select all/right-click/select case) or individually (double-click/right-click/select case)?

Thanks for your help
BaconButty is offline   Reply With Quote
Old 09-18-2015, 05:53 AM   #2
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
AFAIK, you can only change all to title case (with right-click, or select all/right-click). It doesn't give any other options, but generally, a TOC goes for titles, so...
MerlinMama is offline   Reply With Quote
Old 09-18-2015, 06:12 AM   #3
BaconButty
Connoisseur
BaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enough
 
Posts: 69
Karma: 520
Join Date: Jun 2012
Location: France
Device: Kindle Paperwhite 5 & iPad Mini & Galaxy Tab10
OK, great! Thanks! I hadn't even noticed that before!

I have just tried this on an "ALL CAPS" ToC and I was able to change it to "Title Case".

I also found out that I should expand the ToC beforehand to ensure the indented entries were also changed!

Thanks again
BaconButty is offline   Reply With Quote
Old 10-03-2015, 11:40 AM   #4
Themus
Zealot
Themus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-books
 
Posts: 133
Karma: 998
Join Date: Apr 2010
Device: Nook
Can you tell me specifically where you do this? I had an ePub that all items in the TOC is all caps. Like Chapter 1 - THE WIND BLOWS WEST. Since the book has 20 chapters, editing each one line by line and re-typing them grows old. I desire it to look like Chapter 1 - The Wind Blows West.

I tried the feature in Calibre, under "TOC editor," under "Edit the TOC," right clicked on the first chapter for example, choose "Change all selected items to title case." Nothing happens. I ended up re-typing each line Title Case.

I know I will run into this again and am hoping there is an easier method. This looks like a great option to have as mentioned above.

Thank you!
Themus is offline   Reply With Quote
Old 10-03-2015, 01:12 PM   #5
Thom*
The Fumbler
Thom* began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
Use search/replace

I think you can accomplish this with the search/replace function. First select the toc.ncx file, then use the following settings in search/replace.

Click image for larger version

Name:	Capture.PNG
Views:	198
Size:	18.9 KB
ID:	142563

If the image didn't work, then use these settings in the search/replace panel.
Find: <text>(.*?)</text>
Function: Title-case text (ignore tags) [select this from the drop arrow]
Mode: Regex-Function --- Current File

That should change all of the labels in your TOC to Title-case.
Thom* is offline   Reply With Quote
Old 10-03-2015, 01:42 PM   #6
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Or you can choose Edit TOC, do select all (ctrl+A), then right click, and choose 'Change all selected items to title case'. I have the Edit TOC button on my toolbar, but otherwise it would be in the Tools menu. See image, although that is a bad example that doesn't need to change, but it will give you an idea...

If only a few need to be changed, then just right click on each on as needed to change. Hope this helps!
Attached Thumbnails
Click image for larger version

Name:	CaseTOC.jpg
Views:	197
Size:	76.7 KB
ID:	142565  
MerlinMama is offline   Reply With Quote
Old 10-03-2015, 01:48 PM   #7
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by MerlinMama View Post
Or you can choose Edit TOC, do select all (ctrl+A), then right click, and choose 'Change all selected items to title case'. I have the Edit TOC button on my toolbar, but otherwise it would be in the Tools menu. See image, although that is a bad example that doesn't need to change, but it will give you an idea...

If only a few need to be changed, then just right click on each on as needed to change. Hope this helps!
Ooops, I re-read your post, and then went to retest it. It always used to work, so that must be a bug. The last few months, I've taken to changing the titles in the actual document to be title case and the rebuilding the TOC, but I used to always right click in the TOC and change it that way.
MerlinMama is offline   Reply With Quote
Old 10-03-2015, 02:20 PM   #8
Themus
Zealot
Themus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-books
 
Posts: 133
Karma: 998
Join Date: Apr 2010
Device: Nook
Thank you both. Yes, it does look like a bug as you tried the same thing I was referring to above. It would be a great feature to have fixed.
Themus is offline   Reply With Quote
Old 10-03-2015, 02:50 PM   #9
Thom*
The Fumbler
Thom* began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
Using the search/replace method you can choose from various functions to accomplish (Upper/Lower/Swap/Title/Capitalize). Calibre has these option built into the regex-function section.
Thom* is offline   Reply With Quote
Old 10-03-2015, 11:16 PM   #10
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,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It works for me.
kovidgoyal is offline   Reply With Quote
Old 10-04-2015, 06:53 AM   #11
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by kovidgoyal View Post
It works for me.
I did a test to check, because yesterday, right-click didn't work.
  • If the entries are all caps (eg. TABLE OF CONTENTS TEST), then it works.
  • If the entries are like the example given (eg. Chapter 12 - TABLE OF CONTENTS TEST), then it doesn't work.
  • If 'Chapter' is also in caps (eg. CHAPTER 12 - TABLE OF CONTENTS TEST), it works.

Not sure if that's wanted behavior or a bug or oversight.
MerlinMama is offline   Reply With Quote
Old 10-04-2015, 07:29 AM   #12
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,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It is wanted behavior. Otherwise things like

The attack of the FBI

would become

The attack of the Fbi
kovidgoyal is offline   Reply With Quote
Old 10-04-2015, 11:01 AM   #13
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Kovids reason is sound

If you still want to bulk re-case your text,

First LOWER everything
then do your Mixed Case change

Remember to fix any multiple Initials or acronyms (GIGO )
theducks is offline   Reply With Quote
Old 10-04-2015, 01:21 PM   #14
Themus
Zealot
Themus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-books
 
Posts: 133
Karma: 998
Join Date: Apr 2010
Device: Nook
Thank You. Key is for everything to be in one entire state. IE., All caps and then it will work. Agreed, makes sense.
Themus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change background color in TOC of EZPDF? Talayero Android Devices 0 01-15-2013 04:28 PM
Change location of Generated TOC deathbunnynoir Conversion 1 01-12-2013 07:00 AM
The case of the missing TOC MartinC General Discussions 12 09-01-2011 11:07 AM
Will E-Books Change The Way We Handle The TOC? Ransom General Discussions 35 07-08-2011 03:46 AM
the case of the disappearing TOC cybmole Conversion 4 01-22-2011 04:29 AM


All times are GMT -4. The time now is 03:36 AM.


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