01-18-2012, 10:04 AM | #1 |
Connoisseur
Posts: 82
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Moonreader+
|
Chapters are just All Capital letters
I'm trying to do a conversion where the Chapters are just All Capital letters, is there something I can type into
TOC Level 3 TOC (XPath expression) That will make chapters out of the short stories in this anthology. Thanks for any help. |
01-18-2012, 12:27 PM | #2 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Are the chapters wrapped in specific tags? Check out the Chapter Detection sticky.
Note if they're not wrapped in anything special heuristics should detect all-caps chapter headings. |
Advert | |
|
01-18-2012, 02:04 PM | #3 | |
Connoisseur
Posts: 82
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Moonreader+
|
Quote:
I was looking for a regex to detect all caps, with a different # of characters. Like TITLE, LONGER TITLE, SHORT TITLE, this is useful for short story anthologies. I think it can be done with a regular expression, but I'm not to hot with regex. |
|
01-18-2012, 04:57 PM | #4 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
If heuristics actually detected the chapters (check the conversion logs) then you don't need a regex, just use //h:h2, as per the sticky. If not the starting point for the regex would be something like [A-Z]{2,}.
|
01-18-2012, 07:42 PM | #5 |
Connoisseur
Posts: 82
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Moonreader+
|
Thanks a lot, that's regex finds the CAPS but for some reason, calibre still won't generate a TOC. I appreciate your help, and I'll keep on playing around with it. I never would have gotten the expression without your help.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recipe for capital.bg | throshlyak | Recipes | 1 | 07-07-2011 10:34 AM |
azw to mobi: Not detecting chapters/page break at chapters and no TOC | RachDvn | Calibre | 3 | 01-16-2011 09:53 AM |
Help With Capital Letter Going Astray | Marcy | Calibre | 3 | 08-10-2010 11:38 AM |
ePub Chapters vs. Stanza Chapters | kjk | Sigil | 4 | 09-14-2009 10:50 AM |
Hi from the ex capital of culture | snickp | Introduce Yourself | 14 | 01-30-2009 02:27 PM |