Detailed Description
Paragraph filtering routines.
Function Documentation
template<typename L >
paragraph_set<L> scribo::filter::paragraphs_bbox_overlap |
( |
const paragraph_set< L > & |
parset | ) |
|
Remove invalid paragraphs.
- Parameters
-
[in] | parset | A paragraph set. |
- Returns
- A paragraph set with invalid paragraphs tag set to Paragraph::Ignored.
template<typename L >
void scribo::filter::paragraphs_in_borders |
( |
document< L > & |
doc | ) |
|
Invalidate paragraphs located close to the image borders.
- Parameters
-
[in,out] | doc | A document structure. |
Warning: it does not remove paragraphs from separator image. It only invalidate separator components in their respective component_set.
-----------
|_!____!__|
| ! ! <--------- Paragraphs located in this area are
| ! ! | invalidated.
| ! ! |
|_!____!__|
| ! ! |
-----------
template<typename L >
void scribo::filter::paragraphs_in_image |
( |
document< L > & |
doc | ) |
|
Remove invalid paragraphs.
- Parameters
-
[in,out] | doc | A document structure. |
- Returns
- A paragraph set with invalid paragraphs tag set to Paragraph::Ignored.