diff --git a/src/main/resources/css/default.scss b/src/main/resources/css/default.scss index 71d0e55..6880268 100644 --- a/src/main/resources/css/default.scss +++ b/src/main/resources/css/default.scss @@ -23,24 +23,34 @@ @page frontmatter:right { margin-bottom: 1; @bottom-center { - content: string(running-footer); + content: string(running-footer); } } @page bodymatter:right { margin-bottom: 1; - @bottom-left { - content: "⠸" string(print-page); - /* change to the following when string() supports it: */ - /* content: "_" string(print-page, start-spread) "/" string(print-page, last-on-spread); */ - /* this translates _x/ (single print page) as _x and _x/y (range) as a fraction: */ - /* text-transform: print-page; */ - } @bottom-center { - content: string(running-footer); + content: string(running-footer); + } +} + +@if $show-print-page-numbers { + @page bodymatter:right { + @bottom-left { + content: "⠸" string(print-page); + /* change to the following when string() supports it: */ + /* content: "_" string(print-page, start-spread) "/" string(print-page, last-on-spread); */ + /* this translates _x/ (single print page) as _x and _x/y (range) as a fraction: */ + /* text-transform: print-page; */ + } } - @bottom-right { - content: counter(page); +} + +@if $show-braille-page-numbers { + @page bodymatter:right { + @bottom-right { + content: counter(page); + } } } diff --git a/src/test/xprocspec/test_dtbook-to-pef.xprocspec b/src/test/xprocspec/test_dtbook-to-pef.xprocspec index 794fbc8..a369798 100644 --- a/src/test/xprocspec/test_dtbook-to-pef.xprocspec +++ b/src/test/xprocspec/test_dtbook-to-pef.xprocspec @@ -3,7 +3,7 @@ xmlns:sbs="http://www.sbs.ch" script="http://www.sbs.ch/pipeline/modules/braille/dtbook-to-pef.xpl"> - + @@ -25,6 +25,8 @@ + +