Skip to content

Commit 5b67c89

Browse files
committed
BL-15958 Expand edge-to-edge and full-bleed support
Rename the old zero-margin ebook theme to the new edge-to-edge theme and wire it through templates, migrations, and UI settings. - Add canonical theme naming in AppearanceSettings with legacy alias normalization so existing books using zero-margin-ebook continue to load as edge-to-edge. - Rename the theme CSS file to appearance-theme-edge-to-edge.css and refine edge-to-edge/full-bleed layout variables, including page-number placement and trim-offset behavior. - Update template and migration appearance.json files to use cssThemeName=edge-to-edge. - Update book settings help text to make full-bleed guidance explicit for Edge to Edge usage. - Refresh localization entries for the theme label and related strings. - Update tests to validate alias normalization and edge-to-edge behavior expectations.
1 parent 1621090 commit 5b67c89

48 files changed

Lines changed: 269 additions & 220 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DistFiles/localization/am/BloomMediumPriority.xlf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869-
<target xml:lang="am" state="needs-translation">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869+
<target xml:lang="am" state="needs-translation">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
872872
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -1102,9 +1102,9 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1107-
<target xml:lang="am" state="needs-translation">Zero Margin Ebook</target>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
1106+
<source xml:lang="en">Edge to Edge</source>
1107+
<target xml:lang="am" state="needs-translation">Edge to Edge</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>
11101110
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

DistFiles/localization/ar/BloomMediumPriority.xlf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869-
<target xml:lang="ar" state="needs-translation">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869+
<target xml:lang="ar" state="needs-translation">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
872872
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -1102,9 +1102,9 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1107-
<target xml:lang="ar" state="needs-translation">Zero Margin Ebook</target>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
1106+
<source xml:lang="en">Edge to Edge</source>
1107+
<target xml:lang="ar" state="needs-translation">Edge to Edge</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>
11101110
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

DistFiles/localization/az/BloomMediumPriority.xlf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869-
<target xml:lang="az" state="needs-translation">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869+
<target xml:lang="az" state="needs-translation">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
872872
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -1102,9 +1102,9 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1107-
<target xml:lang="az" state="needs-translation">Zero Margin Ebook</target>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
1106+
<source xml:lang="en">Edge to Edge</source>
1107+
<target xml:lang="az" state="needs-translation">Edge to Edge</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>
11101110
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

DistFiles/localization/bn/BloomMediumPriority.xlf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869-
<target xml:lang="bn" state="needs-translation">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869+
<target xml:lang="bn" state="needs-translation">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
872872
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -1102,9 +1102,9 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1107-
<target xml:lang="bn" state="needs-translation">Zero Margin Ebook</target>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
1106+
<source xml:lang="en">Edge to Edge</source>
1107+
<target xml:lang="bn" state="needs-translation">Edge to Edge</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>
11101110
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

DistFiles/localization/en/BloomMediumPriority.xlf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@
784784
<note>BookSettings.FullBleed</note>
785785
</trans-unit>
786786
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
787-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
787+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
788788
<note>BookSettings.FullBleed.Description</note>
789789
</trans-unit>
790790
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -993,8 +993,8 @@
993993
<source xml:lang="en">Experimental Rounded Border</source>
994994
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
995995
</trans-unit> -->
996-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
997-
<source xml:lang="en">Zero Margin Ebook</source>
996+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
997+
<source xml:lang="en">Edge to Edge</source>
998998
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
999999
</trans-unit>
10001000
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

DistFiles/localization/es/BloomMediumPriority.xlf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869-
<target xml:lang="es-ES" state="needs-translation">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869+
<target xml:lang="es-ES" state="needs-translation">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
872872
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -1102,8 +1102,8 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true" approved="yes">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true" approved="yes">
1106+
<source xml:lang="en">Edge to Edge</source>
11071107
<target xml:lang="es-ES" state="final">eBook de margen cero</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>

DistFiles/localization/fr/BloomMediumPriority.xlf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869869
<target xml:lang="fr" state="translated">Activez la mise en page à fond perdu pour l'impression. Cela active les indicateurs [Impression à fond perdu](https://en.wikipedia.org/wiki/Bleed_%28printing%29) sur toutes les mises en page. Pour plus d'informations, consultez [Mise en page à fond perdu](https://docs.bloomlibrary.org/full-bleed).</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
@@ -1102,9 +1102,9 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1107-
<target xml:lang="fr" state="needs-translation">Zero Margin Ebook</target>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
1106+
<source xml:lang="en">Edge to Edge</source>
1107+
<target xml:lang="fr" state="needs-translation">Edge to Edge</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>
11101110
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

DistFiles/localization/fuc/BloomMediumPriority.xlf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869-
<target xml:lang="fuc" state="needs-translation">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869+
<target xml:lang="fuc" state="needs-translation">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
872872
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -1102,9 +1102,9 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1107-
<target xml:lang="fuc" state="needs-translation">Zero Margin Ebook</target>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
1106+
<source xml:lang="en">Edge to Edge</source>
1107+
<target xml:lang="fuc" state="needs-translation">Edge to Edge</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>
11101110
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

DistFiles/localization/ha/BloomMediumPriority.xlf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
<note>BookSettings.FullBleed</note>
866866
</trans-unit>
867867
<trans-unit id="BookSettings.FullBleed.Description" sil:dynamic="true">
868-
<source xml:lang="en">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869-
<target xml:lang="ha" state="needs-translation">Enable full bleed layout for printing. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
868+
<source xml:lang="en">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</source>
869+
<target xml:lang="ha" state="needs-translation">Enable full bleed layout for printing. Use with the "Edge to Edge" theme. This turns on the [Print Bleed](https://en.wikipedia.org/wiki/Bleed_%28printing%29) indicators on paper layouts. See [Full Bleed Layout](https://docs.bloomlibrary.org/full-bleed) for more information.</target>
870870
<note>BookSettings.FullBleed.Description</note>
871871
</trans-unit>
872872
<trans-unit id="BookSettings.ContentPagesGroupLabel" sil:dynamic="true">
@@ -1102,9 +1102,9 @@
11021102
<source xml:lang="en">Experimental Rounded Border</source>
11031103
<note>AppearanceTheme.ebook-rounded-border-bottom-number</note>
11041104
</trans-unit> -->
1105-
<trans-unit id="AppearanceTheme.zero-margin-ebook" sil:dynamic="true">
1106-
<source xml:lang="en">Zero Margin Ebook</source>
1107-
<target xml:lang="ha" state="needs-translation">Zero Margin Ebook</target>
1105+
<trans-unit id="AppearanceTheme.edge-to-edge" sil:dynamic="true">
1106+
<source xml:lang="en">Edge to Edge</source>
1107+
<target xml:lang="ha" state="needs-translation">Edge to Edge</target>
11081108
<note>See https://docs.bloomlibrary.org/page-themes-catalog</note>
11091109
</trans-unit>
11101110
<trans-unit id="AppearanceTheme.narrow-margin-ebook" sil:dynamic="true">

0 commit comments

Comments
 (0)