We don't need that first-level menu to be short
as it contains no tweak itself (only the submenus
with toggable tweaks need to be kept shorter to
let room below to see the tweak effects).
title=_("No indentation on first paragraph line"),
description=_("Do not indent the first line of paragraphs."),
css=[[p + 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."),
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
title=_("Alternate background color of table rows"),
css=[[
id="paragraph_no_indent";
title=_("No indentation on first paragraph line"),
description=_("Do not indent the first line of paragraphs."),
css=[[p + 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."),
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."),
css=[[p, li { margin: 0 !important; }]],
},
},
{
title=_("Tables"),
{
id="table_full_width";
title=_("Full-width tables"),
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