priority=2,-- so it can override the one put back by publisher_page-break-before_avoid
css=[[h1, h2, h3 { page-break-before: auto !important; }]],
},
{
id="docfragment_page-break-before_avoid ";
title=_("Avoid blank page on chapter end"),
priority=2,-- so it can override the one put back by publisher_page-break-before_avoid
css=[[DocFragment { page-break-before: auto !important; }]],
},
{
id="publisher_page-breaks_avoid ";
title=_("Avoid publisher page breaks"),
description=_("Disable all publisher page breaks, keeping only KOReader's epub.css ones.\nWhen combined with the two previous tweaks, all page-breaks are disabled."),
description=_("Enforce left alignment of text in common text elements."),
css=[[body, p, li { text-align: left !important; }]],
priority=2,-- so it overrides the justify below
},
{
id="text_align_all_left",
title=_("Left align all elements"),
description=_("Enforce left alignment of text in all elements."),
css=[[* { text-align: left !important; }]],
priority=2,-- so it overrides the justify below
separator=true,
},
{
id="text_align_most_justify",
title=_("Justify most text"),
description=_("Text justification is the default, but it may be overridden by publisher styles. This will re-enable it for most common text elements."),
css=[[body, p, li { text-align: justify !important; }]],
},
{
id="text_align_all_justify",
title=_("Justify all elements"),
description=_("Text justification is the default, but it may be overridden by publisher styles. This will re-enable it for all elements, which may lose centering in some of them."),
description=_("Disable line-height specified in embedded styles, and may allow KOReader's line spacing settings to work on books where they would not."),
css=[[* { line-height: inherit !important; }]],
},
{
id="font_family_all_inherit";
title=_("Ignore publisher font families"),
description=_("Disable font-family specified in embedded styles."),
-- we have to use this trick, font-family handling by crengine is a bit complex
description=_("Indentation on the first line of a paragraph is the default, but it may be overridden by publisher styles. This will force KOReader's defaults on common elements."),
description=_("Add a line of whitespace between paragraphs."),
css=[[p + p { margin-top: 1em !important; }]],
},
{
id="paragraph_whitespace_half";
title=_("Spacing between paragraphs (half)"),
description=_("Add half a line of whitespace between paragraphs."),
css=[[p + p { margin-top: .5em !important; }]],
},
{
id="paragraph_no_whitespace";
title=_("No spacing between paragraphs"),
description=_("No whitespace between paragraphs is the default, but it may be overridden by publisher styles. This will re-enable it for paragraphs and list items."),
description=_("Make table expand to the full width of the page. (Tables with small content now use only the width needed to display that content. This restores the previous behavior.)"),
css=[[table { width: 100% !important; }]],
},
{
id="table_td_width_auto";
title=_("Ignore publisher table and cell widths"),
description=_("Ignore table and cells widths specified by the publisher, and let the engine decide the most appropriate widths."),
css=[[table, td, th { width: auto !important; }]],
},
{
id="table_margin_left_right_auto";
title=_("Center small tables"),
description=_("Horizontally center tables that do not use the full page width."),
css=[[table { margin-left: auto !important; margin-right: auto !important; }]],
separator=true,
},
{
id="td_vertical_align_none";
title=_("Ignore publisher vertical alignment in tables"),
-- Using "vertical-align: top" would vertical-align children text nodes to top.
-- "vertical-align: baseline" has no meaning in table rendering, and is as fine
Afterapplyingthesetweaks,thealternativeTOCneedstoberebuiltbylong-pressing"Table of content"twice:oncetorestoretheoriginalTOC,andoncetobuildthealternativeTOCagain.]]),