Ok, looking at the problem, I think the main question is:
Is it possible to create the chapter name from multiple tags?
I know that I have something like
Code:
<p>2.</p>
<p>Name of the chapter</p>
in the XHTML and I can catch the first tag eg by the regexp from my first post. Now is there a way to construct chapter name "2. Name of the chapter" from the two tags above? Or is the interface of Calibre not general enough for this knd of task?