Skip to content

Instantly share code, notes, and snippets.

@du-song
Created February 16, 2012 05:56
Show Gist options
  • Save du-song/1842466 to your computer and use it in GitHub Desktop.
Save du-song/1842466 to your computer and use it in GitHub Desktop.
Calibre Chapter Detection Setting
//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\s+', 'i')) or @class = 'chapter' or re:test(., '^\s*.{0,2}[一二三四五六七八九十百千上中下序]+[部章节篇].{0,50}', '')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment