ge1789 / common-library

3 stars 1 forks source link

Add note about "intertitles" to documentation #54

Closed riddella closed 5 years ago

riddella commented 5 years ago

At least one of the novels has "intertitles". As we are excluding chapter titles from the body of the chapter, we need to exclude these as well. Here's an example of a chapter which has a chapter title and intertitles:

<!doctype html>
<title>Chapter 40 of THE LAST INCA; OR, THE STORY OF TUPAC AMÂRU by ANON</title>
<meta charset="utf-8">
<!-- CHAPTER 40.<br>CHAPTER THE FORTIETH -->
<div>
<p>“Who will not be persuaded that now at length the Great Judge of the world hath heard the sighs, and groans, and lamentations, hath seen the tears and blood of so many innocent men, women, and children, afflicted, robbed, reviled, branded with hot irons, roasted, dismembered, mangled, stabbed, whipped, racked, scalded with hot oil, put to the strapado, ripped alive, beheaded in sport, drowned, dashed against the rocks, famished, devoured by mastiffs, burned, and by infinite cruelties consumed, and purposeth to scourge that cursed nation, and to take the yoke of servitude from that distressed people as free by nature as any Christian.”—Sir Walter Raleigh.</p>
</div>
<!-- the following div contains intertitles -->
<!-- <div><p>“HANG ME?”—THE INCA’S ADDRESS TO HIS CHILDREN —INCARIAL SACRAMENT — THE INDIANS DO NOT CHEER — GRAN DIOS! WHY ARE THEY DUMB? — A FATAL DELAY — A SLIGHT PEEP INTO A SPANISH “WORKSHOP” — A NEW WAY OF KILLING TWO BIRDS WITH ONE STONE — ZAGRAZMIT’S CONSCIENCE SMITES HIM, AND HE TAKES AN OATH, AND MAKES A BLAZE —ENTHUSIASM — “TO CUZCO!”</p></div> -->
<p>It is reported, in dull official phrase, that Tupac Amâru took Alliaga prisoner by surprise, brought him to Tungasuca, kept him in durance for six days, provided him with a confessor, and otherwise gave the sinner time to “fold his soul up neatly, and direct it to God in Heaven.” Unofficial report states quite the contrary. There need be no conflict on the matter, since both reports are strikingly unanimous in their testimony to the one great event — that, the tenth day of November having come, Tupac Amaru caused a gallows to be put up in the market-place of Tungasuca, and on that gallows the Corregidor of Tinta, the representative of his Most Catholic Majesty the King of Spain, was hanged by the neck till he was dead.</p>
...