Try to limit the nb of items per menu page to 5 or 6 by
splitting related ones into sub-menus, so we get more
room below to see how they affect the content.
Adds "No indentation on first/following paragraphs" and
"Paragraphs margins and paddings", and Links underlining.
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; }]],
title=_("Page breaks and blank pages"),
{
id="titles_page-break-before_avoid ";
title=_("Avoid blank page on chapter start"),
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."),
css=[[
},
{
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=_("Disable font-size specified in embedded styles."),
css=[[* { font-size: inherit !important; }]],
separator=true,
},
{
id="lineheight_all_inherit";
title=_("Ignore publisher line heights"),
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="lineheight_all_normal_strut_confined";
title=_("Enforce steady line heights"),
description=_("Prevent inline content like sub- and superscript from changing their paragraph line height."),
priority=-5,-- so other -cr-hint can override (this one has effect only on inline content)
css=[[* { -cr-hint: strut-confined; }]],
separator=true,
},
{
id="sub_sup_smaller";
title=_("Smaller sub- and superscript"),
description=_("Prevent sub- and superscript from affecting line-height."),
priority=5,-- so we can override "font_size_all_inherit"
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="lineheight_all_normal_strut_confined";
title=_("Enforce steady line heights"),
description=_("Prevent inline content like sub- and superscript from changing their paragraph line height."),
priority=-5,-- so other -cr-hint can override (this one has effect only on inline content)
css=[[* { -cr-hint: strut-confined; }]],
separator=true,
},
{
id="font_size_all_inherit";
title=_("Ignore publisher font sizes"),
description=_("Disable font-size specified in embedded styles."),
css=[[* { font-size: 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
title=_("No indentation on first paragraph line"),
description=_("Do not indent the first line of paragraphs."),
css=[[p { text-indent: 0 !important; }]],
},
{
id="paragraph_indent";
title=_("Indentation on first paragraph line"),
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."),
css=[[
title=_("Paragraph first-line indentation"),
{
id="paragraph_no_indent";
title=_("No indentation on first paragraph line"),
description=_("Do not indent the first line of paragraphs."),
css=[[p { text-indent: 0 !important; }]],
separator=true,
},
{
id="paragraph_indent";
title=_("Indentation on first paragraph line"),
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=_("Do not indent the first line of the first paragraph of its container. This might be needed to correctly display drop caps, while still having indentation on following paragraphs."),
priority=2,-- so it can override 'paragraph_indent'
title=_("No indentation on following paragraphs"),
description=_("Do not indent the first line of following paragraphs, but leave the first paragraph of its container untouched."),
priority=2,-- so it can override 'paragraph_indent'
css=[[p + p { text-indent: 0 !important; }]],
},
},
{
id="paragraph_whitespace";
title=_("Spacing between paragraphs"),
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_whitespace";
title=_("Spacing between paragraphs"),
description=_("Add a line of whitespace between paragraphs."),
priority=5,-- Override "Ignore margins and paddings" below
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."),
priority=5,
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."),
priority=5,
css=[[p, li { margin-top: 0 !important; margin-bottom: 0 !important; }]],
separator=true,
},
{
id="paragraph_no_vertical_padding";
title=_("Ignore vertical paragraph padding"),
priority=3,-- Override "Pages > Ignore margin and padding"
css=[[p, li { padding-top: 0 !important; padding-bottom: 0 !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."),
css=[[p, li { margin-top: 0 !important; margin-bottom: 0 !important; }]],
title=_("Horizontal paragraph margins"),
{
id="paragraph_no_horizontal_margin";
title=_("Ignore horizontal paragraph margins"),
priority=3,-- Override "Pages > Ignore margin and padding"
css=[[p, li { margin-left: 0 !important; margin-right: 0 !important; }]],
},
{
id="paragraph_no_horizontal_padding";
title=_("Ignore horizontal paragraph padding"),
priority=3,
css=[[p, li { padding-left: 0 !important; padding-right: 0 !important; }]],