Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Add Slide, Curl and Ripple page turns, an editable tap grid, paragraph spacing and controls that fade on their own to the reader, group its settings into sections, move Search to the top bar and make scroll mode smoother

Barnabas8edd40966263
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index 96db50e7..33eb1072 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -5579,6 +5579,35 @@
"readerTopBarProgressBook": "Book",
"readerTopBarProgressChapter": "Chapter",
"readerTopBarProgressBoth": "Both",
+ "readerSectionText": "Text",
+ "readerSectionPage": "Page",
+ "readerSectionTopBar": "Top bar and screen",
+ "readerSectionControls": "Controls",
+ "readerSectionStats": "Stats",
+ "readerParagraphSpacing": "Paragraph spacing",
+ "readerParagraphSpacingBook": "Book's own",
+ "readerTapZones": "Tap zones",
+ "readerTapZonesHint": "Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.",
+ "readerTapPrev": "Previous page",
+ "readerTapNext": "Next page",
+ "readerTapMenu": "Show controls",
+ "readerTapNothing": "Nothing",
+ "readerTapKeepMenu": "One square has to show the controls",
+ "readerHideControls": "Hide controls after",
+ "readerHideControlsNever": "Never",
+ "readerBarNotes": "Notes and highlights",
+ "readerHideControlsAfter": "{seconds}s",
+ "@readerHideControlsAfter": {
+ "placeholders": {
+ "seconds": {"type": "int"}
+ }
+ },
+ "playerDownloadStreamingInstead": "This download couldn't be played, so it's streaming from the server. Downloading it again may fix it.",
+ "readerPageTurn": "Page turn",
+ "readerPageTurnNone": "None",
+ "readerPageTurnSlide": "Slide",
+ "readerPageTurnCurl": "Curl",
+ "readerPageTurnRipple": "Ripple",
"readerScrollMode": "Scroll mode",
"readerScrollModeHint": "Scroll down through the book instead of turning pages. Applies to every book.",
"readerKeepAwake": "Keep the screen on",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index 89af9d2c..d148bfa0 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -17085,6 +17085,150 @@ abstract class AppLocalizations {
/// **'Both'**
String get readerTopBarProgressBoth;
+ /// No description provided for @readerSectionText.
+ ///
+ /// In en, this message translates to:
+ /// **'Text'**
+ String get readerSectionText;
+
+ /// No description provided for @readerSectionPage.
+ ///
+ /// In en, this message translates to:
+ /// **'Page'**
+ String get readerSectionPage;
+
+ /// No description provided for @readerSectionTopBar.
+ ///
+ /// In en, this message translates to:
+ /// **'Top bar and screen'**
+ String get readerSectionTopBar;
+
+ /// No description provided for @readerSectionControls.
+ ///
+ /// In en, this message translates to:
+ /// **'Controls'**
+ String get readerSectionControls;
+
+ /// No description provided for @readerSectionStats.
+ ///
+ /// In en, this message translates to:
+ /// **'Stats'**
+ String get readerSectionStats;
+
+ /// No description provided for @readerParagraphSpacing.
+ ///
+ /// In en, this message translates to:
+ /// **'Paragraph spacing'**
+ String get readerParagraphSpacing;
+
+ /// No description provided for @readerParagraphSpacingBook.
+ ///
+ /// In en, this message translates to:
+ /// **'Book\'s own'**
+ String get readerParagraphSpacingBook;
+
+ /// No description provided for @readerTapZones.
+ ///
+ /// In en, this message translates to:
+ /// **'Tap zones'**
+ String get readerTapZones;
+
+ /// No description provided for @readerTapZonesHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.'**
+ String get readerTapZonesHint;
+
+ /// No description provided for @readerTapPrev.
+ ///
+ /// In en, this message translates to:
+ /// **'Previous page'**
+ String get readerTapPrev;
+
+ /// No description provided for @readerTapNext.
+ ///
+ /// In en, this message translates to:
+ /// **'Next page'**
+ String get readerTapNext;
+
+ /// No description provided for @readerTapMenu.
+ ///
+ /// In en, this message translates to:
+ /// **'Show controls'**
+ String get readerTapMenu;
+
+ /// No description provided for @readerTapNothing.
+ ///
+ /// In en, this message translates to:
+ /// **'Nothing'**
+ String get readerTapNothing;
+
+ /// No description provided for @readerTapKeepMenu.
+ ///
+ /// In en, this message translates to:
+ /// **'One square has to show the controls'**
+ String get readerTapKeepMenu;
+
+ /// No description provided for @readerHideControls.
+ ///
+ /// In en, this message translates to:
+ /// **'Hide controls after'**
+ String get readerHideControls;
+
+ /// No description provided for @readerHideControlsNever.
+ ///
+ /// In en, this message translates to:
+ /// **'Never'**
+ String get readerHideControlsNever;
+
+ /// No description provided for @readerBarNotes.
+ ///
+ /// In en, this message translates to:
+ /// **'Notes and highlights'**
+ String get readerBarNotes;
+
+ /// No description provided for @readerHideControlsAfter.
+ ///
+ /// In en, this message translates to:
+ /// **'{seconds}s'**
+ String readerHideControlsAfter(int seconds);
+
+ /// No description provided for @playerDownloadStreamingInstead.
+ ///
+ /// In en, this message translates to:
+ /// **'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.'**
+ String get playerDownloadStreamingInstead;
+
+ /// No description provided for @readerPageTurn.
+ ///
+ /// In en, this message translates to:
+ /// **'Page turn'**
+ String get readerPageTurn;
+
+ /// No description provided for @readerPageTurnNone.
+ ///
+ /// In en, this message translates to:
+ /// **'None'**
+ String get readerPageTurnNone;
+
+ /// No description provided for @readerPageTurnSlide.
+ ///
+ /// In en, this message translates to:
+ /// **'Slide'**
+ String get readerPageTurnSlide;
+
+ /// No description provided for @readerPageTurnCurl.
+ ///
+ /// In en, this message translates to:
+ /// **'Curl'**
+ String get readerPageTurnCurl;
+
+ /// No description provided for @readerPageTurnRipple.
+ ///
+ /// In en, this message translates to:
+ /// **'Ripple'**
+ String get readerPageTurnRipple;
+
/// No description provided for @readerScrollMode.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index 322ac67c..0554ae72 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -10034,6 +10034,82 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_el.dart b/lib/l10n/app_localizations_el.dart
index d9780838..666b7bbc 100644
--- a/lib/l10n/app_localizations_el.dart
+++ b/lib/l10n/app_localizations_el.dart
@@ -9917,6 +9917,82 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index d1442689..b397b708 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -9917,6 +9917,82 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index b3d95db5..45113fd1 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -9919,6 +9919,82 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index 36c6c12e..59c55530 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -9968,6 +9968,82 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index 438b807b..a2c72af8 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -9917,6 +9917,82 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index 23c0a2c6..c17e0451 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -9917,6 +9917,82 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_no.dart b/lib/l10n/app_localizations_no.dart
index 0648fb11..98570311 100644
--- a/lib/l10n/app_localizations_no.dart
+++ b/lib/l10n/app_localizations_no.dart
@@ -9917,6 +9917,82 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index 273863fd..d1590e8e 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -9917,6 +9917,82 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_ro.dart b/lib/l10n/app_localizations_ro.dart
index a4f6d668..f3661755 100644
--- a/lib/l10n/app_localizations_ro.dart
+++ b/lib/l10n/app_localizations_ro.dart
@@ -9917,6 +9917,82 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index 1901ab81..d42b6563 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -18,8 +18,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get offline => 'Не в сети';
@override
- String get stillOffline =>
- 'Не удается подключиться. Нажмите, чтобы попробовать еще раз.';
+ String get stillOffline => 'Не удается подключиться. Нажмите, чтобы попробовать еще раз.';
@override
String get retry => 'Повторить';
@@ -28,26 +27,22 @@ class AppLocalizationsRu extends AppLocalizations {
String get listsNone => 'No collections or playlists';
@override
- String get listsNoneHint =>
- 'Collections and playlists are made on your Audiobookshelf server, and show up here.';
+ String get listsNoneHint => 'Collections and playlists are made on your Audiobookshelf server, and show up here.';
@override
String get listsLoadFailed => 'Couldn\'t load your lists';
@override
- String get listsLoadFailedHint =>
- 'Absorb couldn\'t reach your server for collections and playlists.';
+ String get listsLoadFailedHint => 'Absorb couldn\'t reach your server for collections and playlists.';
@override
String get listsNoneBookOrbit => 'No collections or Smart Scopes';
@override
- String get listsNoneHintBookOrbit =>
- 'Collections and Smart Scopes are made on your BookOrbit server, and show up here.';
+ String get listsNoneHintBookOrbit => 'Collections and Smart Scopes are made on your BookOrbit server, and show up here.';
@override
- String get listsLoadFailedHintBookOrbit =>
- 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+ String get listsLoadFailedHintBookOrbit => 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
@override
String get cancel => 'Отменить';
@@ -160,8 +155,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get yourLibraryIsEmpty => 'Ваша библиотека пуста';
@override
- String get downloadBooksWhileOnline =>
- 'Download books while online to listen offline';
+ String get downloadBooksWhileOnline => 'Download books while online to listen offline';
@override
String get customizeHome => 'Customize Home';
@@ -194,8 +188,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get loginCustomHttpHeaders => 'Custom HTTP Headers';
@override
- String get loginCustomHeadersDescription =>
- 'For Cloudflare tunnels or reverse proxies that require extra headers. Add headers before entering your server URL.';
+ String get loginCustomHeadersDescription => 'For Cloudflare tunnels or reverse proxies that require extra headers. Add headers before entering your server URL.';
@override
String get loginHeaderName => 'Header name';
@@ -210,15 +203,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get loginSelfSignedCertificates => 'Self-signed Certificates';
@override
- String get loginTrustAllCertificates =>
- 'Trust all certificates (for self-signed / custom CA setups)';
+ String get loginTrustAllCertificates => 'Trust all certificates (for self-signed / custom CA setups)';
@override
String get loginApiKey => 'API Key';
@override
- String get loginApiKeyDescription =>
- 'Use an admin-generated API key instead of username/password. Useful when token refresh fails for your account.';
+ String get loginApiKeyDescription => 'Use an admin-generated API key instead of username/password. Useful when token refresh fails for your account.';
@override
String get loginWaitingForSso => 'Waiting for SSO...';
@@ -266,12 +257,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminSetupFileServerUrl => 'Server URL the new user will use';
@override
- String get adminSetupFileNoteWithHeaders =>
- 'A dedicated API key and your custom headers will be included so they can reach the server. Treat the link like a password.';
+ String get adminSetupFileNoteWithHeaders => 'A dedicated API key and your custom headers will be included so they can reach the server. Treat the link like a password.';
@override
- String get adminSetupFileNote =>
- 'A dedicated API key will be included. Treat the link like a password.';
+ String get adminSetupFileNote => 'A dedicated API key will be included. Treat the link like a password.';
@override
String get adminSetupFileCreate => 'Create link';
@@ -280,8 +269,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminSetupFileSaveTitle => 'Save setup file';
@override
- String get adminSetupFileKeyError =>
- 'Could not create an API key for this user';
+ String get adminSetupFileKeyError => 'Could not create an API key for this user';
@override
String adminSetupFileSaved(String username) {
@@ -319,8 +307,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get setupLinkSaveFile => 'Save setup file';
@override
- String get setupLinkQrError =>
- 'This setup link is too large for a QR code. Share the link instead.';
+ String get setupLinkQrError => 'This setup link is too large for a QR code. Share the link instead.';
@override
String setupLinkShareSubject(String username) {
@@ -353,8 +340,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get loginPasteLink => 'Paste login link';
@override
- String get loginPasteLinkHelp =>
- 'Paste the complete sign-in link you received. Treat it like a password.';
+ String get loginPasteLinkHelp => 'Paste the complete sign-in link you received. Treat it like a password.';
@override
String get loginFailed => 'Login failed';
@@ -363,8 +349,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get loginSsoFailed => 'SSO login failed or was cancelled';
@override
- String get loginSsoAuthFailed =>
- 'SSO authentication failed. Please try again.';
+ String get loginSsoAuthFailed => 'SSO authentication failed. Please try again.';
@override
String get loginRestoreFromBackup => 'Import';
@@ -381,8 +366,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get loginRestoreBackupNoAccounts =>
- 'This will restore all settings. No accounts were included in this backup.';
+ String get loginRestoreBackupNoAccounts => 'This will restore all settings. No accounts were included in this backup.';
@override
String get loginRestore => 'Restore';
@@ -393,8 +377,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get loginSessionExpired =>
- 'Settings restored. Session expired - sign in to continue.';
+ String get loginSessionExpired => 'Settings restored. Session expired - sign in to continue.';
@override
String get loginSettingsRestored => 'Settings restored';
@@ -411,8 +394,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get libraryTitle => 'Library';
@override
- String get librarySearchBooksHint =>
- 'Search books, series, authors, narrators...';
+ String get librarySearchBooksHint => 'Search books, series, authors, narrators...';
@override
String get librarySearchShowsHint => 'Search shows and episodes...';
@@ -454,8 +436,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get libraryNoBooksWithEbooks => 'No books with eBooks';
@override
- String get libraryNoBooksMissingMetadata =>
- 'No books are missing this metadata';
+ String get libraryNoBooksMissingMetadata => 'No books are missing this metadata';
@override
String get libraryNoItemsMatchingFilter => 'No items match this filter';
@@ -707,20 +688,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get absorbingNothingAbsorbingYet => 'Nothing absorbing yet';
@override
- String get absorbingDownloadEpisodesToListen =>
- 'Download episodes to listen offline';
+ String get absorbingDownloadEpisodesToListen => 'Download episodes to listen offline';
@override
- String get absorbingDownloadBooksToListen =>
- 'Download books to listen offline';
+ String get absorbingDownloadBooksToListen => 'Download books to listen offline';
@override
- String get absorbingStartEpisodeFromShows =>
- 'Start an episode from the Shows tab';
+ String get absorbingStartEpisodeFromShows => 'Start an episode from the Shows tab';
@override
- String get absorbingStartBookFromLibrary =>
- 'Start a book from the Library tab';
+ String get absorbingStartBookFromLibrary => 'Start a book from the Library tab';
@override
String get carModeTitle => 'Car Mode';
@@ -1177,8 +1154,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get statsTimeSavedReset => 'Reset time saved';
@override
- String get statsTimeSavedResetConfirm =>
- 'Time saved will start counting again from today.';
+ String get statsTimeSavedResetConfirm => 'Time saved will start counting again from today.';
@override
String get statsTimeSavedResetDone => 'Time saved reset';
@@ -1249,22 +1225,19 @@ class AppLocalizationsRu extends AppLocalizations {
String get settingsPodcastTab => 'Podcasts tab';
@override
- String get settingsPodcastTabDesc =>
- 'Give one podcast library its own tab in the bottom bar';
+ String get settingsPodcastTabDesc => 'Give one podcast library its own tab in the bottom bar';
@override
String get settingsPodcastTabLibrary => 'Podcasts tab library';
@override
- String get settingsMergeImpliedByPodcastTab =>
- 'Always on while the Podcasts tab is enabled';
+ String get settingsMergeImpliedByPodcastTab => 'Always on while the Podcasts tab is enabled';
@override
String get settingsEpisodeNotifs => 'Notification settings';
@override
- String get settingsEpisodeNotifsDesc =>
- 'New podcast episodes and upcoming book releases, checked in the background';
+ String get settingsEpisodeNotifsDesc => 'New podcast episodes and upcoming book releases, checked in the background';
@override
String get notifIntervalOff => 'Off';
@@ -1286,8 +1259,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get settingsBatteryUnrestricted => 'Allow unrestricted battery use';
@override
- String get settingsBatteryUnrestrictedDesc =>
- 'Keeps the system from pausing background checks on some phones';
+ String get settingsBatteryUnrestrictedDesc => 'Keeps the system from pausing background checks on some phones';
@override
String get appShellPressBackToExit => 'Нажмите «Назад» ещё раз, чтобы выйти';
@@ -1305,8 +1277,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get languageSystemDefault => 'По умолчанию системы';
@override
- String get languageHelpTranslateInvite =>
- 'Хотите помочь перевести Absorb на ваш язык?';
+ String get languageHelpTranslateInvite => 'Хотите помочь перевести Absorb на ваш язык?';
@override
String get themeLabel => 'Theme';
@@ -1327,12 +1298,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get colorSourceLabel => 'Color source';
@override
- String get colorSourceCoverDescription =>
- 'App colors follow the currently playing book cover';
+ String get colorSourceCoverDescription => 'App colors follow the currently playing book cover';
@override
- String get colorSourceWallpaperDescription =>
- 'App colors follow your system wallpaper';
+ String get colorSourceWallpaperDescription => 'App colors follow your system wallpaper';
@override
String get colorSourceWallpaper => 'Wallpaper';
@@ -1347,8 +1316,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get colorSourceManual => 'Manual';
@override
- String get colorSourceManualDescription =>
- 'Use a fixed app color you choose below';
+ String get colorSourceManualDescription => 'Use a fixed app color you choose below';
@override
String get colorSourceCustom => 'Custom';
@@ -1357,26 +1325,22 @@ class AppLocalizationsRu extends AppLocalizations {
String get useColorEverywhereLabel => 'Use this color everywhere';
@override
- String get useColorEverywhereSubtitle =>
- 'Also color book detail pages and the player card with your set color instead of each book\'s cover';
+ String get useColorEverywhereSubtitle => 'Also color book detail pages and the player card with your set color instead of each book\'s cover';
@override
String get flatBackgroundLabel => 'Flat background';
@override
- String get flatBackgroundSubtitle =>
- 'Remove the background gradient. Pure black in dark mode for OLED screens.';
+ String get flatBackgroundSubtitle => 'Remove the background gradient. Pure black in dark mode for OLED screens.';
@override
String get einkModeLabel => 'E-ink mode';
@override
- String get einkModeSubtitle =>
- 'High-contrast black and white with no animations, made for e-ink screens';
+ String get einkModeSubtitle => 'High-contrast black and white with no animations, made for e-ink screens';
@override
- String get einkModeIntroBody =>
- 'Made for e-ink screens. The app switches to a flat black-and-white look with high contrast, animations are turned off, the playing card loses its background, and the live server connection stays off to save battery. Playback and progress still sync normally. Your appearance settings are kept and come back when you turn this off.';
+ String get einkModeIntroBody => 'Made for e-ink screens. The app switches to a flat black-and-white look with high contrast, animations are turned off, the playing card loses its background, and the live server connection stays off to save battery. Playback and progress still sync normally. Your appearance settings are kept and come back when you turn this off.';
@override
String get einkModeIntroConfirm => 'Turn on';
@@ -1388,8 +1352,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get startScreenLabel => 'Начальный экран';
@override
- String get startScreenSubtitle =>
- 'Какая вкладка открывается при запуске приложения';
+ String get startScreenSubtitle => 'Какая вкладка открывается при запуске приложения';
@override
String get startScreenHome => 'Главная';
@@ -1410,8 +1373,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get disablePageFadeOnSubtitle => 'Страницы переключаются мгновенно';
@override
- String get disablePageFadeOffSubtitle =>
- 'Страницы затухают при смене вкладок';
+ String get disablePageFadeOffSubtitle => 'Страницы затухают при смене вкладок';
@override
String get rectangleBookCovers => 'Rectangle book covers';
@@ -1420,8 +1382,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get progressTextSize => 'Progress text size';
@override
- String get rectangleBookCoversOnSubtitle =>
- 'Covers display in 2:3 book proportion';
+ String get rectangleBookCoversOnSubtitle => 'Covers display in 2:3 book proportion';
@override
String get rectangleBookCoversOffSubtitle => 'Covers are square';
@@ -1448,8 +1409,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get fullScreenPlayer => 'Full screen player';
@override
- String get fullScreenPlayerOnSubtitle =>
- 'On - books open in full screen when played';
+ String get fullScreenPlayerOnSubtitle => 'On - books open in full screen when played';
@override
String get fullScreenPlayerOffSubtitle => 'Off - play within card view';
@@ -1458,8 +1418,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get fullBookScrubber => 'Full book scrubber';
@override
- String get fullBookScrubberOnSubtitle =>
- 'On - seekable slider across entire book';
+ String get fullBookScrubberOnSubtitle => 'On - seekable slider across entire book';
@override
String get fullBookScrubberOffSubtitle => 'Off - progress bar only';
@@ -1489,8 +1448,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get speedAdjustedTime => 'Speed-adjusted time';
@override
- String get speedAdjustedTimeOnSubtitle =>
- 'On - all times reflect your playback speed';
+ String get speedAdjustedTimeOnSubtitle => 'On - all times reflect your playback speed';
@override
String get speedAdjustedTimeOffSubtitle => 'Off - showing raw audio duration';
@@ -1499,8 +1457,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get buttonLayout => 'Button layout';
@override
- String get buttonLayoutSubtitle =>
- 'How action buttons are arranged on the card';
+ String get buttonLayoutSubtitle => 'How action buttons are arranged on the card';
@override
String get whenAbsorbed => 'When absorbed';
@@ -1509,12 +1466,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get whenAbsorbedInfoTitle => 'When Absorbed';
@override
- String get whenAbsorbedInfoContent =>
- 'Controls what happens to an absorbing card when you finish a book or episode.\n\nFinished cards are automatically removed from your Absorbing screen.';
+ String get whenAbsorbedInfoContent => 'Controls what happens to an absorbing card when you finish a book or episode.\n\nFinished cards are automatically removed from your Absorbing screen.';
@override
- String get whenAbsorbedSubtitle =>
- 'What happens to the absorbing card when a book or episode finishes';
+ String get whenAbsorbedSubtitle => 'What happens to the absorbing card when a book or episode finishes';
@override
String get whenAbsorbedShowOverlay => 'Show Overlay';
@@ -1529,16 +1484,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get mergeLibrariesInfoTitle => 'Главная Поглощающая Страница';
@override
- String get mergeLibrariesInfoContent =>
- 'Если включено, в одном окне отображаются все ваши текущие книги и подкасты из каждой библиотеки. Когда отключено, отображаются только элементы из выбранной вами библиотеки.';
+ String get mergeLibrariesInfoContent => 'Если включено, в одном окне отображаются все ваши текущие книги и подкасты из каждой библиотеки. Когда отключено, отображаются только элементы из выбранной вами библиотеки.';
@override
- String get mergeLibrariesOnSubtitle =>
- 'Показывать элементы из всех библиотек';
+ String get mergeLibrariesOnSubtitle => 'Показывать элементы из всех библиотек';
@override
- String get mergeLibrariesOffSubtitle =>
- 'Показывать элементы из текущей библиотеки';
+ String get mergeLibrariesOffSubtitle => 'Показывать элементы из текущей библиотеки';
@override
String get queueMode => 'Режим очереди';
@@ -1550,15 +1502,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get queueModeInfoOff => 'Выкл';
@override
- String get queueModeInfoOffDesc =>
- 'Плеер остановится после текущей книги или серии.';
+ String get queueModeInfoOffDesc => 'Плеер остановится после текущей книги или серии.';
@override
String get queueModeInfoManual => 'Очередь Вручную';
@override
- String get queueModeInfoManualDesc =>
- 'Ваши поглощающие карты действуют в качестве плейлиста. По завершении одной следующая незавершённая карта запуститься автоматически. Добавьте элементы нажав на кнопку «Добавить в абсорбцию» на книге или серии и измените порядок с экрана поглощения.';
+ String get queueModeInfoManualDesc => 'Ваши поглощающие карты действуют в качестве плейлиста. По завершении одной следующая незавершённая карта запуститься автоматически. Добавьте элементы нажав на кнопку «Добавить в абсорбцию» на книге или серии и измените порядок с экрана поглощения.';
@override
String get queueModeOff => 'Выкл';
@@ -1579,8 +1529,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get queueModeInfoPlaylist => 'Плейлист очереди';
@override
- String get queueModeInfoPlaylistDesc =>
- 'Воспроизведение элементов плейлиста, кроме прослушанных книг или серий. Остановка в конце списка.';
+ String get queueModeInfoPlaylistDesc => 'Воспроизведение элементов плейлиста, кроме прослушанных книг или серий. Остановка в конце списка.';
@override
String get queuePlaylistPickerTitle => 'Выберите плейлист';
@@ -1594,8 +1543,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get queueModePlaylistHint =>
- 'Запустите плейлист очереди, открыв плейлист на главной странице.';
+ String get queueModePlaylistHint => 'Запустите плейлист очереди, открыв плейлист на главной странице.';
@override
String get exit => 'Выход';
@@ -1665,8 +1613,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get defaultSpeed => 'Стандартная скорость';
@override
- String get defaultSpeedSubtitle =>
- 'Новые книги начинаются с этой скоростью - каждая книга сохранит эту настройку';
+ String get defaultSpeedSubtitle => 'Новые книги начинаются с этой скоростью - каждая книга сохранит эту настройку';
@override
String get skipBack => 'Перейти назад';
@@ -1675,19 +1622,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get skipForward => 'Перейти вперед';
@override
- String get iosLockScreenSkipHint =>
- 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+ String get iosLockScreenSkipHint => 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
@override
String get longSkipButtons => 'Long skip buttons';
@override
- String get longSkipButtonsOnSubtitle =>
- 'On - the player shows a second, bigger skip pair';
+ String get longSkipButtonsOnSubtitle => 'On - the player shows a second, bigger skip pair';
@override
- String get longSkipButtonsOffSubtitle =>
- 'Off - just the regular skip buttons';
+ String get longSkipButtonsOffSubtitle => 'Off - just the regular skip buttons';
@override
String get longSkipBack => 'Long skip back';
@@ -1711,12 +1655,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get showSubtitles => 'Show subtitles';
@override
- String get showSubtitlesOnSubtitle =>
- 'Subtitles show under book titles in the library and on home';
+ String get showSubtitlesOnSubtitle => 'Subtitles show under book titles in the library and on home';
@override
- String get showSubtitlesOffSubtitle =>
- 'Off - subtitles only on the book details sheet';
+ String get showSubtitlesOffSubtitle => 'Off - subtitles only on the book details sheet';
@override
String get subtitleVisibilityLabel => 'Subtitles';
@@ -1739,12 +1681,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get currentLibrarySkipOverride => 'Custom skip amounts';
@override
- String get currentLibrarySkipOverrideOnSubtitle =>
- 'On - this library uses its own skip amounts';
+ String get currentLibrarySkipOverrideOnSubtitle => 'On - this library uses its own skip amounts';
@override
- String get currentLibrarySkipOverrideOffSubtitle =>
- 'Off - this library uses the global skip amounts';
+ String get currentLibrarySkipOverrideOffSubtitle => 'Off - this library uses the global skip amounts';
@override
String get currentLibrarySkipBack => 'Skip back';
@@ -1753,31 +1693,25 @@ class AppLocalizationsRu extends AppLocalizations {
String get currentLibrarySkipForward => 'Skip forward';
@override
- String get chapterProgressInNotification =>
- 'Прогресс главы в уведомлении и в Android Auto';
+ String get chapterProgressInNotification => 'Прогресс главы в уведомлении и в Android Auto';
@override
- String get chapterProgressOnSubtitle =>
- 'Вкл. - уведомление и Android Auto покажут прогресс главы';
+ String get chapterProgressOnSubtitle => 'Вкл. - уведомление и Android Auto покажут прогресс главы';
@override
- String get chapterProgressOffSubtitle =>
- 'Выкл. - они покажут прогресс всей книги';
+ String get chapterProgressOffSubtitle => 'Выкл. - они покажут прогресс всей книги';
@override
- String get chapterProgressInNotificationIos =>
- 'Прогресс главы на экране блокировки и CarPlay';
+ String get chapterProgressInNotificationIos => 'Прогресс главы на экране блокировки и CarPlay';
@override
- String get chapterProgressOnSubtitleIos =>
- 'Вкл. - блокировка экрана и CarPlay покажут прогресс главы';
+ String get chapterProgressOnSubtitleIos => 'Вкл. - блокировка экрана и CarPlay покажут прогресс главы';
@override
String get nowPlayingText => 'Now playing text';
@override
- String get nowPlayingTextSubtitle =>
- 'Choose what the media controls show on each line';
+ String get nowPlayingTextSubtitle => 'Choose what the media controls show on each line';
@override
String get nowPlayingTopLine => 'Top line';
@@ -1789,8 +1723,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get nowPlayingNotShown => 'Not shown';
@override
- String get nowPlayingTopLineRequired =>
- 'The top line needs at least one item';
+ String get nowPlayingTopLineRequired => 'The top line needs at least one item';
@override
String get nowPlayingPieceChapter => 'Chapter';
@@ -1971,15 +1904,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get bookDockPickLibrary => 'Add to which library?';
@override
- String get bookDockNoLibraries =>
- 'Your account can\'t add books to a library';
+ String get bookDockNoLibraries => 'Your account can\'t add books to a library';
@override
String get bookDockFileFailed => 'Couldn\'t add this file to the library';
@override
- String get bookDockDuplicateBody =>
- 'A file with this name is already in that library. Remove it from Book Dock?';
+ String get bookDockDuplicateBody => 'A file with this name is already in that library. Remove it from Book Dock?';
@override
String get bookDockDetailsUpdated => 'Details updated';
@@ -2019,8 +1950,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get bomatchSearching => 'Searching...';
@override
- String get bomatchSearchFailed =>
- 'Couldn\'t search for matches. Check your connection and try again.';
+ String get bomatchSearchFailed => 'Couldn\'t search for matches. Check your connection and try again.';
@override
String get bomatchNoResults => 'No matches found';
@@ -2174,8 +2104,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqTabAll => 'All requests';
@override
- String get breqNoAccess =>
- 'Your account can\'t request books on this server.';
+ String get breqNoAccess => 'Your account can\'t request books on this server.';
@override
String get breqTitleHint => 'Book title';
@@ -2199,12 +2128,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqSearching => 'Searching...';
@override
- String get breqSearchFailed =>
- 'Couldn\'t search. Check your connection and try again.';
+ String get breqSearchFailed => 'Couldn\'t search. Check your connection and try again.';
@override
- String get breqSearchPrompt =>
- 'Search for a book the library does not have yet to request it.';
+ String get breqSearchPrompt => 'Search for a book the library does not have yet to request it.';
@override
String get breqNoResults => 'No matching books found';
@@ -2357,8 +2284,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqOpenBook => 'Open book';
@override
- String get breqCancelConfirm =>
- 'Cancel this request? A download in progress stops too.';
+ String get breqCancelConfirm => 'Cancel this request? A download in progress stops too.';
@override
String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
@@ -2373,8 +2299,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqApproveTitle => 'Approve request';
@override
- String get breqApproveLibraryNeeded =>
- 'Choose the library this book goes into.';
+ String get breqApproveLibraryNeeded => 'Choose the library this book goes into.';
@override
String get breqApprovedToast => 'Request approved';
@@ -2425,8 +2350,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqLibraryCta => 'Request a book';
@override
- String get breqSettingsSubtitle =>
- 'Ask for books the library does not have yet';
+ String get breqSettingsSubtitle => 'Ask for books the library does not have yet';
@override
String get navHoldBookRequests => 'Book requests';
@@ -2504,15 +2428,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqStopDownload => 'Stop download';
@override
- String get breqStopDownloadConfirm =>
- 'Stop this download? The request goes back to approved so another release can be picked.';
+ String get breqStopDownloadConfirm => 'Stop this download? The request goes back to approved so another release can be picked.';
@override
String get breqDiscardImport => 'Discard download';
@override
- String get breqDiscardConfirm =>
- 'Discard this download? The request is marked failed and can be tried again with another release.';
+ String get breqDiscardConfirm => 'Discard this download? The request is marked failed and can be tried again with another release.';
@override
String get breqFileAnyway => 'Add to library';
@@ -2539,16 +2461,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqGrabFailed => 'Couldn\'t start that download';
@override
- String get breqReleaseVipWarning =>
- 'This tracker only lets VIP accounts download it.';
+ String get breqReleaseVipWarning => 'This tracker only lets VIP accounts download it.';
@override
- String get breqReleaseNoBookFile =>
- 'This release has no book file BookOrbit can add to a library.';
+ String get breqReleaseNoBookFile => 'This release has no book file BookOrbit can add to a library.';
@override
- String get breqReleaseCheckFailed =>
- 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+ String get breqReleaseCheckFailed => 'Couldn\'t check what\'s in this release. Try again or pick another one.';
@override
String get breqCheckingRelease => 'Checking the files...';
@@ -2563,8 +2482,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqIsbnHint => 'Leave empty to search by title and author';
@override
- String get breqSearchingIndexers =>
- 'Searching your indexers. This can take up to a minute.';
+ String get breqSearchingIndexers => 'Searching your indexers. This can take up to a minute.';
@override
String get breqReleasesFailed => 'Couldn\'t search for releases.';
@@ -2573,12 +2491,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
@override
- String get breqNoSourcesOn =>
- 'Every search source is switched off in BookOrbit.';
+ String get breqNoSourcesOn => 'Every search source is switched off in BookOrbit.';
@override
- String get breqNoSourceCarries =>
- 'None of your search sources carry this kind of book.';
+ String get breqNoSourceCarries => 'None of your search sources carry this kind of book.';
@override
String get breqNoReleases => 'No releases found. Try different search terms.';
@@ -2656,12 +2572,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqReviewFailed => 'Couldn\'t load the download details.';
@override
- String get breqReviewDockGone =>
- 'The downloaded files are no longer in the Book Dock.';
+ String get breqReviewDockGone => 'The downloaded files are no longer in the Book Dock.';
@override
- String get breqReviewNoLibrary =>
- 'This request has no library to add the book to.';
+ String get breqReviewNoLibrary => 'This request has no library to add the book to.';
@override
String breqGrabFailedReason(String reason) {
@@ -2788,38 +2702,31 @@ class AppLocalizationsRu extends AppLocalizations {
String get breqPairSubmitted => 'Requested the e-book and the audiobook';
@override
- String get breqPairOneJoined =>
- 'Requested both. One was already on its way, so you were added to that request';
+ String get breqPairOneJoined => 'Requested both. One was already on its way, so you were added to that request';
@override
String get breqJoinedBoth => 'Added you to both requests';
@override
- String get breqJoinsOwned =>
- 'Requested. It will join the copy already in your library';
+ String get breqJoinsOwned => 'Requested. It will join the copy already in your library';
@override
- String get speedBookmarkInControls =>
- 'Скорость и закладки в панели управления медиа';
+ String get speedBookmarkInControls => 'Скорость и закладки в панели управления медиа';
@override
- String get speedBookmarkOnSubtitle =>
- 'Вкл. - уведомление покажет скорость и закладку; в Android Auto переключатели глав';
+ String get speedBookmarkOnSubtitle => 'Вкл. - уведомление покажет скорость и закладку; в Android Auto переключатели глав';
@override
- String get speedBookmarkOffSubtitle =>
- 'Выкл. - в уведомлении переключатели глав; в Android Auto скорость и закладка';
+ String get speedBookmarkOffSubtitle => 'Выкл. - в уведомлении переключатели глав; в Android Auto скорость и закладка';
@override
String get lockSeekBar => 'Заблокировать ползунок на панели';
@override
- String get lockSeekBarOnSubtitle =>
- 'Вкл. - уведомление покажет прогресс, на экране блокировки и Android Auto, но ползунок переместить невозможно';
+ String get lockSeekBarOnSubtitle => 'Вкл. - уведомление покажет прогресс, на экране блокировки и Android Auto, но ползунок переместить невозможно';
@override
- String get lockSeekBarOffSubtitle =>
- 'Выкл. - ползунок прогресса перемещается в уведомлении, на экране блокировки и Android Auto';
+ String get lockSeekBarOffSubtitle => 'Выкл. - ползунок прогресса перемещается в уведомлении, на экране блокировки и Android Auto';
@override
String get autoRewindOnResume => 'Auto-rewind on resume';
@@ -2845,8 +2752,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get rewindAlwaysLabel => 'Always';
@override
- String get rewindAlwaysDescription =>
- 'Rewinds every time you resume, even after quick interruptions';
+ String get rewindAlwaysDescription => 'Rewinds every time you resume, even after quick interruptions';
@override
String rewindAfterDescription(String seconds) {
@@ -2857,8 +2763,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterBarrier => 'Chapter barrier';
@override
- String get chapterBarrierSubtitle =>
- 'Don\'t auto-rewind past the start of the current chapter';
+ String get chapterBarrierSubtitle => 'Don\'t auto-rewind past the start of the current chapter';
@override
String get rewindInstant => 'Instant';
@@ -2930,30 +2835,25 @@ class AppLocalizationsRu extends AppLocalizations {
String get buttonDuringSleepTimer => 'Headphone button during wind-down';
@override
- String get buttonDuringSleepTimerHint =>
- 'In the final wind-down moments, one press resets the timer instead of pausing. Double press still skips.';
+ String get buttonDuringSleepTimerHint => 'In the final wind-down moments, one press resets the timer instead of pausing. Double press still skips.';
@override
String get resetTimerOnPause => 'Reset timer on pause';
@override
- String get resetTimerOnPauseOnSubtitle =>
- 'Timer restarts from full duration when you resume';
+ String get resetTimerOnPauseOnSubtitle => 'Timer restarts from full duration when you resume';
@override
- String get resetTimerOnPauseOffSubtitle =>
- 'Timer continues from where it left off';
+ String get resetTimerOnPauseOffSubtitle => 'Timer continues from where it left off';
@override
String get fadeVolumeBeforeSleep => 'Fade volume before sleep';
@override
- String get fadeVolumeOnSubtitle =>
- 'Gradually lowers volume during the last 30 seconds';
+ String get fadeVolumeOnSubtitle => 'Gradually lowers volume during the last 30 seconds';
@override
- String get fadeVolumeOffSubtitle =>
- 'Playback stops immediately when timer ends';
+ String get fadeVolumeOffSubtitle => 'Playback stops immediately when timer ends';
@override
String get autoSleepTimer => 'Auto sleep timer';
@@ -2964,8 +2864,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get autoSleepTimerOffSubtitle =>
- 'Automatically start a sleep timer during a time window';
+ String get autoSleepTimerOffSubtitle => 'Automatically start a sleep timer during a time window';
@override
String get windowStart => 'Window start';
@@ -3022,12 +2921,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get autoDownloadOnWifiInfoTitle => 'Auto-Download Books You Start';
@override
- String get autoDownloadOnWifiInfoContent =>
- 'When you start streaming a book, the full book downloads in the background so you\'ll have it offline without starting the download yourself. These downloads follow your Download network setting above, so set it to Any connection if you want them to run on mobile data too.';
+ String get autoDownloadOnWifiInfoContent => 'When you start streaming a book, the full book downloads in the background so you\'ll have it offline without starting the download yourself. These downloads follow your Download network setting above, so set it to Any connection if you want them to run on mobile data too.';
@override
- String get autoDownloadOnWifiOnSubtitle =>
- 'Streamed books download in the background automatically';
+ String get autoDownloadOnWifiOnSubtitle => 'Streamed books download in the background automatically';
@override
String get autoDownloadOnWifiOffSubtitle => 'Off';
@@ -3039,8 +2936,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get autoDownload => 'Auto-download';
@override
- String get autoDownloadSubtitle =>
- 'Enable per series, podcast, playlist or collection from their detail pages';
+ String get autoDownloadSubtitle => 'Enable per series, podcast, playlist or collection from their detail pages';
@override
String get autoDownloadEnabledFor => 'Turned on for';
@@ -3058,8 +2954,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get keepNextInfoTitle => 'Keep Next';
@override
- String get keepNextInfoContent =>
- 'The number of items to keep downloaded, including the one you\'re currently listening to. For example, \"Keep next 3\" means the current book plus the next 2 in that series, podcast, playlist or collection will stay downloaded. This applies to every auto-download you turn on.';
+ String get keepNextInfoContent => 'The number of items to keep downloaded, including the one you\'re currently listening to. For example, \"Keep next 3\" means the current book plus the next 2 in that series, podcast, playlist or collection will stay downloaded. This applies to every auto-download you turn on.';
@override
String get deleteAbsorbedDownloads => 'Delete absorbed downloads';
@@ -3068,12 +2963,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get deleteAbsorbedDownloadsInfoTitle => 'Delete Absorbed Downloads';
@override
- String get deleteAbsorbedDownloadsInfoContent =>
- 'When enabled, downloaded books or episodes are automatically deleted from this device after you finish them in Absorb. Finishing an item on the web or another device won’t delete its download here.';
+ String get deleteAbsorbedDownloadsInfoContent => 'When enabled, downloaded books or episodes are automatically deleted from this device after you finish them in Absorb. Finishing an item on the web or another device won’t delete its download here.';
@override
- String get deleteAbsorbedOnSubtitle =>
- 'Finished items are removed to save space';
+ String get deleteAbsorbedOnSubtitle => 'Finished items are removed to save space';
@override
String get deleteAbsorbedOffSubtitle => 'Off - finished downloads kept';
@@ -3104,15 +2997,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get streamingCacheInfoTitle => 'Streaming Cache';
@override
- String get streamingCacheInfoContent =>
- 'Caches streamed audio to disk so it doesn\'t need to be re-downloaded if you seek back or re-listen to sections. The cache is automatically managed - oldest files are removed when the size limit is reached. This is separate from fully downloaded books.';
+ String get streamingCacheInfoContent => 'Caches streamed audio to disk so it doesn\'t need to be re-downloaded if you seek back or re-listen to sections. The cache is automatically managed - oldest files are removed when the size limit is reached. This is separate from fully downloaded books.';
@override
String get streamingCacheOff => 'Off';
@override
- String get streamingCacheOffSubtitle =>
- 'Off - audio is streamed without caching';
+ String get streamingCacheOffSubtitle => 'Off - audio is streamed without caching';
@override
String streamingCacheOnSubtitle(int size) {
@@ -3141,19 +3032,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get homeCardsOpenDetails => 'Open details from Home';
@override
- String get homeCardsOpenDetailsOnSubtitle =>
- 'Tapping a Continue Listening or Continue Reading card opens its details';
+ String get homeCardsOpenDetailsOnSubtitle => 'Tapping a Continue Listening or Continue Reading card opens its details';
@override
- String get homeCardsOpenDetailsOffSubtitle =>
- 'Tapping a Continue Listening or Continue Reading card picks up where you left off';
+ String get homeCardsOpenDetailsOffSubtitle => 'Tapping a Continue Listening or Continue Reading card picks up where you left off';
@override
String get showGoodreadsButton => 'Show Goodreads button';
@override
- String get showGoodreadsOnSubtitle =>
- 'Book detail sheet shows a link to Goodreads';
+ String get showGoodreadsOnSubtitle => 'Book detail sheet shows a link to Goodreads';
@override
String get showGoodreadsOffSubtitle => 'Off - Goodreads button hidden';
@@ -3165,8 +3053,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get notifications => 'Notifications';
@override
- String get notificationsSubtitle =>
- 'For download progress and playback controls';
+ String get notificationsSubtitle => 'For download progress and playback controls';
@override
String get notificationsAlreadyEnabled => 'Notifications already enabled';
@@ -3175,8 +3062,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get unrestrictedBattery => 'Unrestricted battery';
@override
- String get unrestrictedBatterySubtitle =>
- 'Prevents Android from killing background playback';
+ String get unrestrictedBatterySubtitle => 'Prevents Android from killing background playback';
@override
String get batteryAlreadyUnrestricted => 'Battery already unrestricted';
@@ -3206,19 +3092,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get enableLogging => 'Enable logging';
@override
- String get enableLoggingOnSubtitle =>
- 'On - logs saved to file (restart to apply)';
+ String get enableLoggingOnSubtitle => 'On - logs saved to file (restart to apply)';
@override
String get enableLoggingOffSubtitle => 'Off - no logs captured';
@override
- String get loggingEnabledSnackbar =>
- 'Logging enabled - restart app to start capturing';
+ String get loggingEnabledSnackbar => 'Logging enabled - restart app to start capturing';
@override
- String get loggingDisabledSnackbar =>
- 'Logging disabled - restart app to stop capturing';
+ String get loggingDisabledSnackbar => 'Logging disabled - restart app to stop capturing';
@override
String get sendLogs => 'Send logs';
@@ -3241,8 +3124,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get clearLogsQuestion => 'Clear logs?';
@override
- String get clearLogsContent =>
- 'This can\'t be undone. Send them first if you might want them.';
+ String get clearLogsContent => 'This can\'t be undone. Send them first if you might want them.';
@override
String get sectionAdvanced => 'Расширенные';
@@ -3254,8 +3136,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get localServerInfoTitle => 'Local Server';
@override
- String get localServerInfoContent =>
- 'If you run your Audiobookshelf server at home, you can set a local/LAN URL here. Absorb will automatically switch to the faster local connection when it detects you\'re on your home network, and fall back to your remote URL when you\'re away.';
+ String get localServerInfoContent => 'If you run your Audiobookshelf server at home, you can set a local/LAN URL here. Absorb will automatically switch to the faster local connection when it detects you\'re on your home network, and fall back to your remote URL when you\'re away.';
@override
String get localServerOnConnectedSubtitle => 'Connected via local server';
@@ -3264,8 +3145,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get localServerOnRemoteSubtitle => 'Enabled - using remote server';
@override
- String get localServerOffSubtitle =>
- 'Auto-switch to a LAN server on your home WiFi';
+ String get localServerOffSubtitle => 'Auto-switch to a LAN server on your home WiFi';
@override
String get localServerUrlLabel => 'Local server URL';
@@ -3274,8 +3154,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get localServerUrlHint => 'http://192.168.1.100:13378';
@override
- String get localServerUrlSetSnackbar =>
- 'Local server URL set - will connect automatically when on your home network';
+ String get localServerUrlSetSnackbar => 'Local server URL set - will connect automatically when on your home network';
@override
String get disableAudioFocus => 'Disable audio focus';
@@ -3284,23 +3163,19 @@ class AppLocalizationsRu extends AppLocalizations {
String get disableAudioFocusInfoTitle => 'Audio Focus';
@override
- String get disableAudioFocusInfoContent =>
- 'By default, Android gives audio \"focus\" to one app at a time - when Absorb plays, other audio (music, videos) will pause. Disabling audio focus lets Absorb play alongside other apps. Phone calls will still pause playback regardless of this setting.';
+ String get disableAudioFocusInfoContent => 'By default, Android gives audio \"focus\" to one app at a time - when Absorb plays, other audio (music, videos) will pause. Disabling audio focus lets Absorb play alongside other apps. Phone calls will still pause playback regardless of this setting.';
@override
- String get disableAudioFocusOnSubtitle =>
- 'On - plays alongside other audio (still pauses for calls)';
+ String get disableAudioFocusOnSubtitle => 'On - plays alongside other audio (still pauses for calls)';
@override
- String get disableAudioFocusOffSubtitle =>
- 'Off - other audio pauses when Absorb plays';
+ String get disableAudioFocusOffSubtitle => 'Off - other audio pauses when Absorb plays';
@override
String get restartRequired => 'Restart Required';
@override
- String get restartRequiredContent =>
- 'Audio focus change requires a full restart to take effect. Close the app now?';
+ String get restartRequiredContent => 'Audio focus change requires a full restart to take effect. Close the app now?';
@override
String get closeApp => 'Close App';
@@ -3318,27 +3193,22 @@ class AppLocalizationsRu extends AppLocalizations {
String get mp3IndexSeekingInfoTitle => 'MP3 Index Seeking';
@override
- String get mp3IndexSeekingInfoContent =>
- 'Only enable this if you have MP3 files that don\'t seek to the right position. Inaccurate seeking usually comes from variable bitrate (VBR) MP3s. Index seeking builds an exact time map as the file is read, so jumping near the end of a large MP3 can take a moment - especially when streaming, since the file has to be read up to that point. Takes effect the next time a book or podcast episode starts.';
+ String get mp3IndexSeekingInfoContent => 'Only enable this if you have MP3 files that don\'t seek to the right position. Inaccurate seeking usually comes from variable bitrate (VBR) MP3s. Index seeking builds an exact time map as the file is read, so jumping near the end of a large MP3 can take a moment - especially when streaming, since the file has to be read up to that point. Takes effect the next time a book or podcast episode starts.';
@override
- String get mp3IndexSeekingOnSubtitle =>
- 'On - exact seeking for VBR MP3 files';
+ String get mp3IndexSeekingOnSubtitle => 'On - exact seeking for VBR MP3 files';
@override
String get mp3IndexSeekingOffSubtitle => 'Off - normal seeking';
@override
- String get trustAllCertificatesInfoContent =>
- 'Enable this if your Audiobookshelf server uses a self-signed certificate or a custom root CA. When enabled, Absorb will skip TLS certificate verification for all connections. Only enable this if you trust your network.';
+ String get trustAllCertificatesInfoContent => 'Enable this if your Audiobookshelf server uses a self-signed certificate or a custom root CA. When enabled, Absorb will skip TLS certificate verification for all connections. Only enable this if you trust your network.';
@override
- String get trustAllCertificatesOnSubtitle =>
- 'On - accepting all certificates';
+ String get trustAllCertificatesOnSubtitle => 'On - accepting all certificates';
@override
- String get trustAllCertificatesOffSubtitle =>
- 'Off - only trusted certificates accepted';
+ String get trustAllCertificatesOffSubtitle => 'Off - only trusted certificates accepted';
@override
String get supportTheDev => 'Поддержать разработчика';
@@ -3365,8 +3235,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get backupAndRestore => 'Backup & Restore';
@override
- String get backupAndRestoreSubtitle =>
- 'Save or restore all your settings to a file';
+ String get backupAndRestoreSubtitle => 'Save or restore all your settings to a file';
@override
String get backUp => 'Back up';
@@ -3393,8 +3262,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get includeLoginInfoTitle => 'Include login info?';
@override
- String get includeLoginInfoContent =>
- 'Would you like to include login credentials for all your saved accounts in the backup?\n\nThis makes it easy to restore on a new device, but the file will contain your auth tokens.';
+ String get includeLoginInfoContent => 'Would you like to include login credentials for all your saved accounts in the backup?\n\nThis makes it easy to restore on a new device, but the file will contain your auth tokens.';
@override
String get noSettingsOnly => 'No, settings only';
@@ -3417,8 +3285,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get restoreBackupTitle => 'Restore backup?';
@override
- String get restoreBackupContent =>
- 'This will replace all your current settings with the backup values.';
+ String get restoreBackupContent => 'This will replace all your current settings with the backup values.';
@override
String fromAbsorbVersion(String version) {
@@ -3453,8 +3320,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get logOutTitle => 'Log out?';
@override
- String get logOutContent =>
- 'This will sign you out. Your downloads will stay on this device.';
+ String get logOutContent => 'This will sign you out. Your downloads will stay on this device.';
@override
String get signOut => 'Выйти';
@@ -3463,8 +3329,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get changePasswordTitle => 'Change Password';
@override
- String get changePasswordSubtitle =>
- 'Update your Audiobookshelf password safely';
+ String get changePasswordSubtitle => 'Update your Audiobookshelf password safely';
@override
String get currentPassword => 'Current password';
@@ -3476,8 +3341,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get confirmNewPassword => 'Confirm new password';
@override
- String get passwordChangeEffect =>
- 'Changing your password signs out your other Audiobookshelf sessions. This device stays signed in.';
+ String get passwordChangeEffect => 'Changing your password signs out your other Audiobookshelf sessions. This device stays signed in.';
@override
String get passwordFieldsRequired => 'Fill in all password fields';
@@ -3486,29 +3350,25 @@ class AppLocalizationsRu extends AppLocalizations {
String get passwordsDoNotMatch => 'New passwords do not match';
@override
- String get passwordChanged =>
- 'Password changed. Other signed-in devices were disconnected.';
+ String get passwordChanged => 'Password changed. Other signed-in devices were disconnected.';
@override
String get passwordInvalid => 'The current password is incorrect';
@override
- String get passwordChangeUnsupported =>
- 'This server version does not support safe password changes in Absorb';
+ String get passwordChangeUnsupported => 'This server version does not support safe password changes in Absorb';
@override
String get passwordChangeFailed => 'Could not change your password';
@override
- String get otherUserPasswordResetWarning =>
- 'Changing this password signs the user out on every device.';
+ String get otherUserPasswordResetWarning => 'Changing this password signs the user out on every device.';
@override
String get manageSessionsTitle => 'Signed-in Devices';
@override
- String get manageSessionsSubtitle =>
- 'Review and remove Audiobookshelf sessions';
+ String get manageSessionsSubtitle => 'Review and remove Audiobookshelf sessions';
@override
String get sessionsCurrent => 'Current device';
@@ -3528,15 +3388,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get sessionsLoadMore => 'Load more';
@override
- String get sessionsUnsupported =>
- 'Session management requires Audiobookshelf 2.36 or newer.';
+ String get sessionsUnsupported => 'Session management requires Audiobookshelf 2.36 or newer.';
@override
String get sessionsLoadFailed => 'Could not load signed-in devices';
@override
- String get sessionsLegacyNotice =>
- 'This login does not have a refresh session, so Absorb cannot identify this device in the list.';
+ String get sessionsLegacyNotice => 'This login does not have a refresh session, so Absorb cannot identify this device in the list.';
@override
String get sessionsRemove => 'Sign out device';
@@ -3545,8 +3403,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get sessionsRemoveTitle => 'Sign out this device?';
@override
- String get sessionsRemoveContent =>
- 'This removes its refresh session. Its current access may keep working until that short-lived token expires.';
+ String get sessionsRemoveContent => 'This removes its refresh session. Its current access may keep working until that short-lived token expires.';
@override
String get sessionsRemoved => 'Device signed out';
@@ -3561,8 +3418,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get sessionsSignOutAllTitle => 'Sign out everywhere?';
@override
- String get sessionsSignOutAllContent =>
- 'This removes every refresh session, including this device. Existing access tokens may work until they expire.';
+ String get sessionsSignOutAllContent => 'This removes every refresh session, including this device. Existing access tokens may work until they expire.';
@override
String podcastScheduleServerTime(String timeZone) {
@@ -3610,8 +3466,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get editServerConnectionFailed => 'Couldn\'t update server connection';
@override
- String get editCustomHeadersDescription =>
- 'Used for Cloudflare tunnels or reverse proxies. These headers apply only to this saved account.';
+ String get editCustomHeadersDescription => 'Used for Cloudflare tunnels or reverse proxies. These headers apply only to this saved account.';
@override
String get removeAccountAction => 'Remove account';
@@ -3639,15 +3494,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get downloadLocationSheetTitle => 'Download Location';
@override
- String get downloadLocationSheetSubtitle =>
- 'Choose where audiobooks are saved';
+ String get downloadLocationSheetSubtitle => 'Choose where audiobooks are saved';
@override
String get currentLocation => 'Current location';
@override
- String get existingDownloadsWarning =>
- 'Existing downloads stay in their current location. Only new downloads use the new path.';
+ String get existingDownloadsWarning => 'Existing downloads stay in their current location. Only new downloads use the new path.';
@override
String get chooseFolder => 'Choose folder';
@@ -3656,19 +3509,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get chooseDownloadFolder => 'Choose download folder';
@override
- String get storagePermissionDenied =>
- 'Storage permission permanently denied - enable it in app settings';
+ String get storagePermissionDenied => 'Storage permission permanently denied - enable it in app settings';
@override
String get openSettings => 'Open Settings';
@override
- String get storagePermissionRequired =>
- 'Storage permission is required for custom download locations';
+ String get storagePermissionRequired => 'Storage permission is required for custom download locations';
@override
- String get cannotWriteToFolder =>
- 'Cannot write to that folder - choose another location or grant file access in system settings';
+ String get cannotWriteToFolder => 'Cannot write to that folder - choose another location or grant file access in system settings';
@override
String downloadLocationSetTo(String label) {
@@ -3686,10 +3536,8 @@ class AppLocalizationsRu extends AppLocalizations {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
- other:
- '$count downloads are in an old custom folder that can no longer be opened. Re-download them or dismiss this notice.',
- one:
- '1 download is in an old custom folder that can no longer be opened. Re-download it or dismiss this notice.',
+ other: '$count downloads are in an old custom folder that can no longer be opened. Re-download them or dismiss this notice.',
+ one: '1 download is in an old custom folder that can no longer be opened. Re-download it or dismiss this notice.',
);
return '$_temp0';
}
@@ -3816,8 +3664,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminRmabUrlTitle => 'ReadMeABook URL';
@override
- String get adminRmabUrlHelp =>
- 'Paste your URL with login token. Generate one in RMAB, Admin, Users.';
+ String get adminRmabUrlHelp => 'Paste your URL with login token. Generate one in RMAB, Admin, Users.';
@override
String get adminRmabUrlHint => 'https://rmab.example.com/?token=...';
@@ -3835,8 +3682,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminRmabReload => 'Reload';
@override
- String get adminRmabLoadFailed =>
- 'Couldn\'t load ReadMeABook. Check your URL.';
+ String get adminRmabLoadFailed => 'Couldn\'t load ReadMeABook. Check your URL.';
@override
String get adminRmabConnected => 'Connected';
@@ -3845,23 +3691,19 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminRmabAskAdmin => 'Get a login URL from your server admin';
@override
- String get adminRmabUrlHelpUser =>
- 'Get a login URL from your server admin. They generate one in RMAB > Admin > Users.';
+ String get adminRmabUrlHelpUser => 'Get a login URL from your server admin. They generate one in RMAB > Admin > Users.';
@override
- String get adminRmabSettingsInfo =>
- 'ReadMeABook is a self-hosted service for requesting and downloading audiobooks. It must be installed and set up by your server admin.';
+ String get adminRmabSettingsInfo => 'ReadMeABook is a self-hosted service for requesting and downloading audiobooks. It must be installed and set up by your server admin.';
@override
String get rmabConfigTitle => 'Connect ReadMeABook';
@override
- String get rmabConfigExplainerAdmin =>
- 'ReadMeABook is a self-hosted service for requesting audiobooks. Generate an API token in RMAB under Admin Dashboard > Settings > API, then paste the server URL and token below. Absorb doesn\'t host or download any content, it just sends requests to your server.';
+ String get rmabConfigExplainerAdmin => 'ReadMeABook is a self-hosted service for requesting audiobooks. Generate an API token in RMAB under Admin Dashboard > Settings > API, then paste the server URL and token below. Absorb doesn\'t host or download any content, it just sends requests to your server.';
@override
- String get rmabConfigExplainerUser =>
- 'ReadMeABook is a self-hosted service for requesting audiobooks. Ask your server admin for the RMAB URL and an API token. Absorb doesn\'t host or download any content, it just sends requests to your server.';
+ String get rmabConfigExplainerUser => 'ReadMeABook is a self-hosted service for requesting audiobooks. Ask your server admin for the RMAB URL and an API token. Absorb doesn\'t host or download any content, it just sends requests to your server.';
@override
String get rmabConfigLearnMore => 'Learn more about ReadMeABook';
@@ -3885,12 +3727,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get rmabConfigLegacyUrlHint => 'https://rmab.example.com/?token=...';
@override
- String get rmabConfigLegacyUrlHelp =>
- 'Paste your auto-login URL so \'Open in browser view\' lands you signed in. Leave blank to use a regular login.';
+ String get rmabConfigLegacyUrlHelp => 'Paste your auto-login URL so \'Open in browser view\' lands you signed in. Leave blank to use a regular login.';
@override
- String get rmabConfigHeadersHelp =>
- 'Extra headers sent with every ReadMeABook request, for reverse proxies like Cloudflare Access.';
+ String get rmabConfigHeadersHelp => 'Extra headers sent with every ReadMeABook request, for reverse proxies like Cloudflare Access.';
@override
String get rmabConfigConnect => 'Connect';
@@ -3916,8 +3756,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get rmabConfigErrorUnauthorized => 'Token rejected by server';
@override
- String get rmabConfigErrorForbidden =>
- 'This token isn\'t allowed for that action';
+ String get rmabConfigErrorForbidden => 'This token isn\'t allowed for that action';
@override
String get rmabConfigErrorNetwork => 'Couldn\'t reach RMAB. Check the URL.';
@@ -3958,8 +3797,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get rmabBookDetailExplainer =>
- 'This request will be sent through your ReadMeABook server. The admin will review and process it. You can track it under My Requests on the ReadMeABook tile.';
+ String get rmabBookDetailExplainer => 'This request will be sent through your ReadMeABook server. The admin will review and process it. You can track it under My Requests on the ReadMeABook tile.';
@override
String get rmabBookAlreadyAvailable => 'Already in your library';
@@ -3986,8 +3824,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get rmabRequestErrorValidation => 'Couldn\'t send the request';
@override
- String get rmabRequestErrorUserNotFound =>
- 'Token user no longer exists. Reconnect ReadMeABook.';
+ String get rmabRequestErrorUserNotFound => 'Token user no longer exists. Reconnect ReadMeABook.';
@override
String get rmabRequestErrorIgnored => 'This book is on your ignore list';
@@ -3996,8 +3833,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get rmabRequestErrorGeneric => 'Couldn\'t send the request';
@override
- String get rmabRequestErrorTokenRejected =>
- 'Token rejected by server. Reconnect ReadMeABook.';
+ String get rmabRequestErrorTokenRejected => 'Token rejected by server. Reconnect ReadMeABook.';
@override
String get rmabMyRequestsTab => 'My Requests';
@@ -4082,8 +3918,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get absorbAudioNotDownloaded => 'Audio not downloaded';
@override
- String get absorbAudioNotDownloadedEbookOnly =>
- 'Audio not downloaded, ebook only';
+ String get absorbAudioNotDownloadedEbookOnly => 'Audio not downloaded, ebook only';
@override
String get fullyAbsorbed => 'Fully Absorbed';
@@ -4210,8 +4045,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get encodeTimeNote => 'Encoding can take up to 30 minutes.';
@override
- String get encodeRescanNote =>
- 'If you have the watcher disabled you will need to re-scan this audiobook afterwards.';
+ String get encodeRescanNote => 'If you have the watcher disabled you will need to re-scan this audiobook afterwards.';
@override
String get aboutSection => 'About';
@@ -4262,36 +4096,31 @@ class AppLocalizationsRu extends AppLocalizations {
String get markAsFullyAbsorbedQuestion => 'Mark as Fully Absorbed?';
@override
- String get markAsFullyAbsorbedContent =>
- 'This will set your progress to 100% and stop playback if this book is playing.';
+ String get markAsFullyAbsorbedContent => 'This will set your progress to 100% and stop playback if this book is playing.';
@override
String get markedAsFinishedNiceWork => 'Marked as finished - nice work!';
@override
- String get failedToUpdateCheckConnection =>
- 'Failed to update - check your connection';
+ String get failedToUpdateCheckConnection => 'Failed to update - check your connection';
@override
String get markAsNotFinishedQuestion => 'Mark as Not Finished?';
@override
- String get markAsNotFinishedContent =>
- 'This will clear the finished status and put your position back at the start.';
+ String get markAsNotFinishedContent => 'This will clear the finished status and put your position back at the start.';
@override
String get unmark => 'Unmark';
@override
- String get markedAsNotFinishedBackAtIt =>
- 'Marked as not finished - back at it!';
+ String get markedAsNotFinishedBackAtIt => 'Marked as not finished - back at it!';
@override
String get resetProgressQuestion => 'Reset Progress?';
@override
- String get resetProgressContent =>
- 'This will erase all progress for this book and set it back to the beginning. This can\'t be undone.';
+ String get resetProgressContent => 'This will erase all progress for this book and set it back to the beginning. This can\'t be undone.';
@override
String get progressResetFreshStart => 'Progress reset - fresh start!';
@@ -4300,8 +4129,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get clearLocalMetadataQuestion => 'Clear Local Metadata?';
@override
- String get clearLocalMetadataContent =>
- 'This will remove the locally stored metadata and revert to whatever the server has.';
+ String get clearLocalMetadataContent => 'This will remove the locally stored metadata and revert to whatever the server has.';
@override
String get localMetadataCleared => 'Local metadata cleared';
@@ -4330,8 +4158,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get noBookmarksYet => 'No bookmarks yet';
@override
- String get longPressBookmarkHint =>
- 'Long-press the bookmark button to quick save';
+ String get longPressBookmarkHint => 'Long-press the bookmark button to quick save';
@override
String get addBookmark => 'Add Bookmark';
@@ -4426,8 +4253,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get autoDownloadThisSeries => 'Auto-Download This Series?';
@override
- String get autoDownloadSeriesContent =>
- 'Automatically download the next books as you listen.';
+ String get autoDownloadSeriesContent => 'Automatically download the next books as you listen.';
@override
String get standalone => 'Standalone';
@@ -4468,8 +4294,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get autoDownloadThisPodcast => 'Auto-Download This Podcast?';
@override
- String get autoDownloadPodcastContent =>
- 'Automatically download the next episodes as you listen.';
+ String get autoDownloadPodcastContent => 'Automatically download the next episodes as you listen.';
@override
String get download => 'Download';
@@ -4499,8 +4324,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get authorOptionalLabel => 'Author (optional)';
@override
- String get noResultsFound =>
- 'No results found.\nTry adjusting your search or provider.';
+ String get noResultsFound => 'No results found.\nTry adjusting your search or provider.';
@override
String get searchForMetadataAbove => 'Search for metadata above';
@@ -4563,8 +4387,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get coverRemove => 'Remove cover';
@override
- String get coverRemoveConfirm =>
- 'Remove this book\'s cover? It will show the generated title card instead.';
+ String get coverRemoveConfirm => 'Remove this book\'s cover? It will show the generated title card instead.';
@override
String get coverRemoved => 'Cover removed';
@@ -4663,26 +4486,22 @@ class AppLocalizationsRu extends AppLocalizations {
String get deleteCollection => 'Delete Collection';
@override
- String get deleteCollectionContent =>
- 'Are you sure you want to delete this collection?';
+ String get deleteCollectionContent => 'Are you sure you want to delete this collection?';
@override
String get deleteCollectionFailed => 'Couldn\'t delete the collection';
@override
- String get deletePermissionRequired =>
- 'Delete permission required. Ask the root admin to grant you the delete permission.';
+ String get deletePermissionRequired => 'Delete permission required. Ask the root admin to grant you the delete permission.';
@override
String get deleteFilesCheckbox => 'Also delete the files on the server';
@override
- String get deleteFilesCheckedHint =>
- 'The files are deleted from the server for good.';
+ String get deleteFilesCheckedHint => 'The files are deleted from the server for good.';
@override
- String get deleteFilesUncheckedHint =>
- 'The files stay on the server, so the next library scan can add this back.';
+ String get deleteFilesUncheckedHint => 'The files stay on the server, so the next library scan can add this back.';
@override
String get deleteFromServerAction => 'Delete from Server';
@@ -4701,8 +4520,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get deleteFromServerFailed =>
- 'Couldn\'t delete that. Check the server logs.';
+ String get deleteFromServerFailed => 'Couldn\'t delete that. Check the server logs.';
@override
String get playlistNotFound => 'Playlist not found';
@@ -4711,8 +4529,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get deletePlaylist => 'Delete Playlist';
@override
- String get deletePlaylistContent =>
- 'Are you sure you want to delete this playlist?';
+ String get deletePlaylistContent => 'Are you sure you want to delete this playlist?';
@override
String get newPlaylist => 'New Playlist';
@@ -4738,8 +4555,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get listsNewCollectionSubtitle => 'Group books into a list you keep';
@override
- String get listsNewCollectionNeedsBookSubtitle =>
- 'Start it with at least one book';
+ String get listsNewCollectionNeedsBookSubtitle => 'Start it with at least one book';
@override
String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
@@ -4748,15 +4564,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get listsAddBooksNow => 'Add books now';
@override
- String get listsPickBooksNext =>
- 'You\'ll pick books next. A collection on this server needs at least one.';
+ String get listsPickBooksNext => 'You\'ll pick books next. A collection on this server needs at least one.';
@override
String get listsCreate => 'Create';
@override
- String get listsCollectionNeedsBook =>
- 'A collection needs at least one book, so nothing was created.';
+ String get listsCollectionNeedsBook => 'A collection needs at least one book, so nothing was created.';
@override
String get listsCreateFailed => 'Couldn\'t create it';
@@ -4792,12 +4606,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get welcomeAbsorbingTitle => 'Absorbing';
@override
- String get welcomeAbsorbingIntro =>
- 'We use \"absorb\" in place of \"play\" and \"listen\". Prefer the classic wording? Switch it in Settings.';
+ String get welcomeAbsorbingIntro => 'We use \"absorb\" in place of \"play\" and \"listen\". Prefer the classic wording? Switch it in Settings.';
@override
- String get welcomeAbsorbingTabBullet =>
- 'Absorbing tab - what you\'re currently listening to';
+ String get welcomeAbsorbingTabBullet => 'Absorbing tab - what you\'re currently listening to';
@override
String get welcomeAbsorbButtonBullet => 'Absorb button - start playback';
@@ -4809,15 +4621,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get welcomeGettingAroundTitle => 'Getting around';
@override
- String get welcomeGettingAroundBody =>
- 'Tap any cover to open its details. Continue Listening cards are different - tap to play right away, press and hold to open details.';
+ String get welcomeGettingAroundBody => 'Tap any cover to open its details. Continue Listening cards are different - tap to play right away, press and hold to open details.';
@override
String get welcomeMakeItYoursTitle => 'Make it yours';
@override
- String get welcomeMakeItYoursBody =>
- 'Mess around in Settings to tune Absorb to your taste. The Tips & Hidden Features section in there is worth a look.';
+ String get welcomeMakeItYoursBody => 'Mess around in Settings to tune Absorb to your taste. The Tips & Hidden Features section in there is worth a look.';
@override
String get getStarted => 'Get Started';
@@ -4915,8 +4725,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get coverPlayPauseOnSubtitle => 'On - tap cover art to play/pause';
@override
- String get coverPlayPauseOffSubtitle =>
- 'Off - dedicated play/pause button in controls';
+ String get coverPlayPauseOffSubtitle => 'Off - dedicated play/pause button in controls';
@override
String get cardBackground => 'Card background';
@@ -4928,8 +4737,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get cardBackgroundGradient => 'Gradient';
@override
- String get queueModeMergedSubtitle =>
- 'Playback stops, manual queue, or auto-plays next item';
+ String get queueModeMergedSubtitle => 'Playback stops, manual queue, or auto-plays next item';
@override
String get queueModeSeriesLabel => 'Series';
@@ -4941,15 +4749,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get queueModeInfoSeries => 'Series';
@override
- String get queueModeInfoSeriesDesc =>
- 'Automatically plays the next book in a series or the next episode in a podcast show.';
+ String get queueModeInfoSeriesDesc => 'Automatically plays the next book in a series or the next episode in a podcast show.';
@override
String get resetButtonGridQuestion => 'Reset button grid?';
@override
- String get resetButtonGridContent =>
- 'This will restore the default button layout, order, and toggle settings.';
+ String get resetButtonGridContent => 'This will restore the default button layout, order, and toggle settings.';
@override
String get reset => 'Reset';
@@ -4967,16 +4773,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterBarrierInfoTitle => 'Chapter barrier';
@override
- String get chapterBarrierInfoContent =>
- 'When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.';
+ String get chapterBarrierInfoContent => 'When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.';
@override
- String get chapterBarrierOnRewindOnSubtitle =>
- 'On - rewind snaps to chapter start';
+ String get chapterBarrierOnRewindOnSubtitle => 'On - rewind snaps to chapter start';
@override
- String get chapterBarrierOnRewindOffSubtitle =>
- 'Off - rewind crosses chapter boundaries';
+ String get chapterBarrierOnRewindOffSubtitle => 'Off - rewind crosses chapter boundaries';
@override
String autoRewindOnSubtitleFormat(String min, String max) {
@@ -4987,8 +4790,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get rewindOnSessionStart => 'Rewind on session start';
@override
- String get rewindOnSessionStartInfoContent =>
- 'Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.';
+ String get rewindOnSessionStartInfoContent => 'Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.';
@override
String rewindOnSessionStartOnSubtitle(String seconds) {
@@ -5042,8 +4844,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chimeBeforeSleep => 'Chime before sleep';
@override
- String get chimeBeforeSleepOnSubtitle =>
- 'Plays a gentle bell when the timer is about to end';
+ String get chimeBeforeSleepOnSubtitle => 'Plays a gentle bell when the timer is about to end';
@override
String get chimeBeforeSleepOffSubtitle => 'No sound warning before sleep';
@@ -5062,11 +4863,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String autoSleepTimerEnabledSubtitle(
- String start,
- String end,
- String duration,
- ) {
+ String autoSleepTimerEnabledSubtitle(String start, String end, String duration) {
return '$start – $end · $duration';
}
@@ -5083,8 +4880,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get showExplicitBadge => 'Show explicit badge';
@override
- String get showExplicitBadgeOnSubtitle =>
- 'Explicit items show an \"E\" badge';
+ String get showExplicitBadgeOnSubtitle => 'Explicit items show an \"E\" badge';
@override
String get showExplicitBadgeOffSubtitle => 'Off - explicit badge hidden';
@@ -5093,8 +4889,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get showEbookBadge => 'Show ebook badge';
@override
- String get showEbookBadgeOnSubtitle =>
- 'Books with an ebook show a book icon on the cover';
+ String get showEbookBadgeOnSubtitle => 'Books with an ebook show a book icon on the cover';
@override
String get showEbookBadgeOffSubtitle => 'Off - ebook badge hidden';
@@ -5106,15 +4901,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get preReleaseUpdatesInfoTitle => 'Pre-release Updates';
@override
- String get preReleaseUpdatesInfoContent =>
- 'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.';
+ String get preReleaseUpdatesInfoContent => 'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.';
@override
String get includePreReleases => 'Include pre-releases';
@override
- String get includePreReleasesOnSubtitle =>
- 'On - checking for alpha & pre-release builds';
+ String get includePreReleasesOnSubtitle => 'On - checking for alpha & pre-release builds';
@override
String get includePreReleasesOffSubtitle => 'Off - stable releases only';
@@ -5155,8 +4948,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get updateDownloading => 'Downloading update...';
@override
- String get updateInstallPermissionDenied =>
- 'Install permission denied. Enable \"Install unknown apps\" for Absorb in system settings.';
+ String get updateInstallPermissionDenied => 'Install permission denied. Enable \"Install unknown apps\" for Absorb in system settings.';
@override
String get updateOpeningInBrowser => 'In-app update failed, opening browser';
@@ -5310,8 +5102,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get backupDetailsSeparator => ' · ';
@override
- String get bookmarksSortedByPositionReversed =>
- 'Sorted by position (reversed)';
+ String get bookmarksSortedByPositionReversed => 'Sorted by position (reversed)';
@override
String bookmarksJumpShortContent(String title, String position) {
@@ -5385,8 +5176,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get resetMayNotHaveSynced =>
- 'Reset may not have synced - check your server';
+ String get resetMayNotHaveSynced => 'Reset may not have synced - check your server';
@override
String failedToDownloadEbook(int code) {
@@ -5394,8 +5184,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get serverReturnedErrorPage =>
- 'Server returned an error page instead of the ebook file';
+ String get serverReturnedErrorPage => 'Server returned an error page instead of the ebook file';
@override
String ebookSaved(String filename) {
@@ -5763,12 +5552,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminPodcastsCheckNewEpisodesTitle => 'Check for New Episodes';
@override
- String get adminPodcastsCheckNewEpisodesContent =>
- 'This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).';
+ String get adminPodcastsCheckNewEpisodesContent => 'This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).';
@override
- String get adminPodcastsCheckNewEpisodesSubtitle =>
- 'Scan RSS feed and download new episodes';
+ String get adminPodcastsCheckNewEpisodesSubtitle => 'Scan RSS feed and download new episodes';
@override
String get adminPodcastsCheck => 'Check';
@@ -6043,8 +5830,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get adminPodcastsFailedToCheckNew =>
- 'Failed to check for new episodes';
+ String get adminPodcastsFailedToCheckNew => 'Failed to check for new episodes';
@override
String get adminPodcastsCheckAndDownload => 'Check & Download';
@@ -6053,31 +5839,25 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminPodcastsMatchPodcast => 'Match Podcast';
@override
- String get adminPodcastsMatchPodcastSubtitle =>
- 'Search iTunes to update cover and metadata';
+ String get adminPodcastsMatchPodcastSubtitle => 'Search iTunes to update cover and metadata';
@override
- String get adminPodcastsAutoDownloadNewEpisodes =>
- 'Auto-Download New Episodes';
+ String get adminPodcastsAutoDownloadNewEpisodes => 'Auto-Download New Episodes';
@override
- String get adminPodcastsAutoDownloadOnSubtitle =>
- 'Server downloads new episodes automatically';
+ String get adminPodcastsAutoDownloadOnSubtitle => 'Server downloads new episodes automatically';
@override
- String get adminPodcastsAutoDownloadOffSubtitle =>
- 'New episodes are not auto-downloaded';
+ String get adminPodcastsAutoDownloadOffSubtitle => 'New episodes are not auto-downloaded';
@override
- String get adminPodcastsFailedAutoDownloadUpdate =>
- 'Failed to update auto-download setting';
+ String get adminPodcastsFailedAutoDownloadUpdate => 'Failed to update auto-download setting';
@override
String get adminPodcastsMaxEpisodesToKeep => 'Max episodes to keep';
@override
- String get adminPodcastsMaxEpisodesToKeepHelp =>
- '0 keeps every episode. After a new episode is auto-downloaded, Audiobookshelf removes the oldest episode when the show is over this limit.';
+ String get adminPodcastsMaxEpisodesToKeepHelp => '0 keeps every episode. After a new episode is auto-downloaded, Audiobookshelf removes the oldest episode when the show is over this limit.';
@override
String get adminPodcastsNoEpisodeLimit => 'No limit';
@@ -6180,8 +5960,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminPodcastsEditInfo => 'Edit Info';
@override
- String get adminPodcastsEditInfoSubtitle =>
- 'Change title, description, cover and more';
+ String get adminPodcastsEditInfoSubtitle => 'Change title, description, cover and more';
@override
String get adminPodcastsEditTitle => 'Edit Podcast';
@@ -6224,8 +6003,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get episodeListUnsubscribeFromNewEpisodes =>
- 'Unsubscribe from New Episodes';
+ String get episodeListUnsubscribeFromNewEpisodes => 'Unsubscribe from New Episodes';
@override
String get episodeListSubscribeToNewEpisodes => 'Subscribe to New Episodes';
@@ -6234,8 +6012,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get episodeListSubscribeTitle => 'Subscribe to this podcast?';
@override
- String get episodeListSubscribeContent =>
- 'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.';
+ String get episodeListSubscribeContent => 'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.';
@override
String get episodeListSubscribe => 'Subscribe';
@@ -6328,12 +6105,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get episodeDetailMarkedFinishedNice => 'Marked as finished - nice!';
@override
- String get episodeDetailMarkAbsorbedContent =>
- 'This will set your progress to 100% for this episode.';
+ String get episodeDetailMarkAbsorbedContent => 'This will set your progress to 100% for this episode.';
@override
- String get episodeDetailResetProgressContent =>
- 'This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.';
+ String get episodeDetailResetProgressContent => 'This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.';
@override
String get episodeDetailToday => 'Today';
@@ -6394,20 +6169,17 @@ class AppLocalizationsRu extends AppLocalizations {
String get seriesBooksFindMissingTitle => 'Find Missing Books';
@override
- String get seriesBooksFindMissingContent =>
- 'This searches Audible to find books in this series that may be missing from your library.\n\nBooks are matched by ASIN first (depending on whether your server has ASINs for its books), then falls back to title matching. Results may not be perfectly accurate.';
+ String get seriesBooksFindMissingContent => 'This searches Audible to find books in this series that may be missing from your library.\n\nBooks are matched by ASIN first (depending on whether your server has ASINs for its books), then falls back to title matching. Results may not be perfectly accurate.';
@override
- String get seriesBooksCouldNotFindOnAudible =>
- 'Could not find this series on Audible';
+ String get seriesBooksCouldNotFindOnAudible => 'Could not find this series on Audible';
@override
String seriesBooksMarkAllNotFinishedContent(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
- other:
- 'This will clear the finished status for all $count books in this series.',
+ other: 'This will clear the finished status for all $count books in this series.',
one: 'This will clear the finished status for the 1 book in this series.',
);
return '$_temp0';
@@ -6559,8 +6331,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get sessionEndPosition => 'Ending position';
@override
- String get sessionEndPositionHint =>
- 'Changing this may also update your current progress.';
+ String get sessionEndPositionHint => 'Changing this may also update your current progress.';
@override
String get statsViewSessions => 'View sessions';
@@ -6571,8 +6342,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get statsNoSessionsForDate =>
- 'No listening sessions found for this day';
+ String get statsNoSessionsForDate => 'No listening sessions found for this day';
@override
String get statsSearchSessions => 'Search sessions';
@@ -6587,8 +6357,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get sessionDeleteConfirmTitle => 'Delete session?';
@override
- String get sessionDeleteConfirmBody =>
- 'This removes the session and lowers your listening totals by its time. It cannot be undone.';
+ String get sessionDeleteConfirmBody => 'This removes the session and lowers your listening totals by its time. It cannot be undone.';
@override
String get sessionSaved => 'Session updated';
@@ -6657,14 +6426,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get statsScreenPmLabel => 'PM';
@override
- String statsScreenDateAtTime(
- String month,
- int day,
- int year,
- int hour,
- String minute,
- String ampm,
- ) {
+ String statsScreenDateAtTime(String month, int day, int year, int hour, String minute, String ampm) {
return '$month $day, $year at $hour:$minute $ampm';
}
@@ -6777,8 +6539,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get upcomingReleasesNoneFound =>
- 'No upcoming or recent releases found';
+ String get upcomingReleasesNoneFound => 'No upcoming or recent releases found';
@override
String upcomingReleasesAcrossSeries(String summary, int count) {
@@ -6813,12 +6574,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get upcomingReleasesScanSettingsTitle => 'Scan settings';
@override
- String get upcomingReleasesFinishedAfterTitle =>
- 'Consider a series finished after';
+ String get upcomingReleasesFinishedAfterTitle => 'Consider a series finished after';
@override
- String get upcomingReleasesFinishedAfterDesc =>
- 'Series whose last book is older than this are skipped during scans and only re-checked every month or two.';
+ String get upcomingReleasesFinishedAfterDesc => 'Series whose last book is older than this are skipped during scans and only re-checked every month or two.';
@override
String upcomingReleasesFinishedAfterYears(int count) {
@@ -6864,8 +6623,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get upcomingReleasesSkippedUnmatched =>
- 'Couldn\'t match this series on Audible';
+ String get upcomingReleasesSkippedUnmatched => 'Couldn\'t match this series on Audible';
@override
String get upcomingReleasesSkippedScanNow => 'Scan now';
@@ -6887,8 +6645,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get upcomingReleasesSkippedOtherLibrary =>
- 'This list came from a different library. Run a rescan to refresh it.';
+ String get upcomingReleasesSkippedOtherLibrary => 'This list came from a different library. Run a rescan to refresh it.';
@override
String get upcomingReleasesChipUpcoming => 'Upcoming';
@@ -6915,19 +6672,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get upcomingReleasesScanUpcomingOption => 'Upcoming releases';
@override
- String get upcomingReleasesScanUpcomingOptionDesc =>
- 'Quick scan for new and upcoming books';
+ String get upcomingReleasesScanUpcomingOptionDesc => 'Quick scan for new and upcoming books';
@override
String get upcomingReleasesScanDeepOption => 'Deep scan';
@override
- String get upcomingReleasesScanDeepOptionDesc =>
- 'Also finds missing books in every series - takes longer';
+ String get upcomingReleasesScanDeepOptionDesc => 'Also finds missing books in every series - takes longer';
@override
- String get upcomingReleasesFirstScanNote =>
- 'The first scan checks every series on Audible and can take a few minutes. Later scans get much quicker once your series are sorted.';
+ String get upcomingReleasesFirstScanNote => 'The first scan checks every series on Audible and can take a few minutes. Later scans get much quicker once your series are sorted.';
@override
String get upcomingReleasesLastScanReport => 'Last scan report';
@@ -6958,11 +6712,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String upcomingReleasesReportFoundDeep(
- int upcoming,
- int recent,
- int missing,
- ) {
+ String upcomingReleasesReportFoundDeep(int upcoming, int recent, int missing) {
return 'Found $upcoming upcoming, $recent recent, $missing missing';
}
@@ -6984,8 +6734,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get upcomingReleasesSetSeriesAsin => 'Set series ASIN';
@override
- String get upcomingReleasesSetAsinInstructions =>
- 'Find the series on audible.com and copy the page link - the ASIN is the 10-character code starting with B0 (like B08S2YN3YS). Pasting the whole link works too.';
+ String get upcomingReleasesSetAsinInstructions => 'Find the series on audible.com and copy the page link - the ASIN is the 10-character code starting with B0 (like B08S2YN3YS). Pasting the whole link works too.';
@override
String get upcomingReleasesSetAsinHint => 'B0… or audible.com link';
@@ -7014,20 +6763,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get upcomingReleasesRemoveThisScan => 'Remove from this scan';
@override
- String get upcomingReleasesRemoveThisScanDesc =>
- 'Can come back on a future scan';
+ String get upcomingReleasesRemoveThisScanDesc => 'Can come back on a future scan';
@override
- String get upcomingReleasesRemoveForever =>
- 'Remove from this and future scans';
+ String get upcomingReleasesRemoveForever => 'Remove from this and future scans';
@override
- String get upcomingReleasesRemoveForeverDesc =>
- 'Goes to the removed list, restore any time';
+ String get upcomingReleasesRemoveForeverDesc => 'Goes to the removed list, restore any time';
@override
- String get upcomingReleasesRemovedForeverToast =>
- 'Removed - won\'t show on future scans';
+ String get upcomingReleasesRemovedForeverToast => 'Removed - won\'t show on future scans';
@override
String get upcomingReleasesRemovedBooksTitle => 'Removed books';
@@ -7053,8 +6798,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get upcomingReleasesRestoredToast => 'Restored';
@override
- String get upcomingReleasesRestoredNextScan =>
- 'Restored - it will show after the next scan';
+ String get upcomingReleasesRestoredNextScan => 'Restored - it will show after the next scan';
@override
String upcomingReleasesSelectedCount(int count) {
@@ -7177,8 +6921,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get smartScopeNew => 'New Smart Scope';
@override
- String get smartScopeNewSubtitle =>
- 'Save a set of filters as a list that keeps itself up to date';
+ String get smartScopeNewSubtitle => 'Save a set of filters as a list that keeps itself up to date';
@override
String get smartScopeEditTitle => 'Edit Smart Scope';
@@ -7262,8 +7005,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get smartScopeLoadFailed => 'Couldn\'t load the Smart Scope';
@override
- String get smartScopeUnsupportedRule =>
- 'This rule can only be changed on the BookOrbit web. It\'s kept as it is.';
+ String get smartScopeUnsupportedRule => 'This rule can only be changed on the BookOrbit web. It\'s kept as it is.';
@override
String get smartScopeAnd => 'and';
@@ -7541,11 +7283,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String audibleSeriesSummaryWithUpcoming(
- int total,
- int missing,
- int upcoming,
- ) {
+ String audibleSeriesSummaryWithUpcoming(int total, int missing, int upcoming) {
return '$total on Audible · $missing missing · $upcoming upcoming';
}
@@ -7694,12 +7432,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get librarySortFilterUpcomingReleases => 'Scan Series';
@override
- String get librarySortFilterMatchAllAuthorsSubtitle =>
- 'Fetch a photo and bio for every author from the metadata provider';
+ String get librarySortFilterMatchAllAuthorsSubtitle => 'Fetch a photo and bio for every author from the metadata provider';
@override
- String get librarySortFilterUpcomingReleasesSubtitle =>
- 'Check Audible for upcoming and missing books in your series';
+ String get librarySortFilterUpcomingReleasesSubtitle => 'Check Audible for upcoming and missing books in your series';
@override
String sleepTimerSheetChaptersLeft(int count) {
@@ -7810,8 +7546,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get sleepTimerSheetSpecificAlreadyPassed =>
- 'This point has already passed';
+ String get sleepTimerSheetSpecificAlreadyPassed => 'This point has already passed';
@override
String get sleepTimerSheetSpecificStartButton => 'Start timer';
@@ -7897,8 +7632,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get homeCustomizeAddGenreTitle => 'Add Genre Section';
@override
- String get homeCustomizeAddGenreSubtitle =>
- 'Pick a genre to show on your home screen';
+ String get homeCustomizeAddGenreSubtitle => 'Pick a genre to show on your home screen';
@override
String get homeSectionDoneBadge => 'Done';
@@ -7907,198 +7641,169 @@ class AppLocalizationsRu extends AppLocalizations {
String get tipsSheetQuickBookmarksTitle => 'Quick Bookmarks';
@override
- String get tipsSheetQuickBookmarksDesc =>
- 'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.';
+ String get tipsSheetQuickBookmarksDesc => 'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.';
@override
String get tipsSheetCoverPlayPauseTitle => 'Cover Play/Pause';
@override
- String get tipsSheetCoverPlayPauseDesc =>
- 'Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it\'s tappable.';
+ String get tipsSheetCoverPlayPauseDesc => 'Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it\'s tappable.';
@override
String get tipsSheetFullScreenPlayerTitle => 'Full Screen Player';
@override
- String get tipsSheetFullScreenPlayerDesc =>
- 'Swipe up on any absorbing card to open the full screen player. Swipe down to dismiss it.';
+ String get tipsSheetFullScreenPlayerDesc => 'Swipe up on any absorbing card to open the full screen player. Swipe down to dismiss it.';
@override
String get tipsSheetQuickAddAbsorbingTitle => 'Quick Add to Absorbing';
@override
- String get tipsSheetQuickAddAbsorbingDesc =>
- 'Swipe right on any book in a list sheet (series, author, search results) to instantly add it to your absorbing queue.';
+ String get tipsSheetQuickAddAbsorbingDesc => 'Swipe right on any book in a list sheet (series, author, search results) to instantly add it to your absorbing queue.';
@override
String get tipsSheetShakeExtendSleepTitle => 'Shake to Extend Sleep';
@override
- String get tipsSheetShakeExtendSleepDesc =>
- 'If you have a sleep timer running and shake your phone, it\'ll add extra minutes. Configure the amount in Settings under Sleep Timer.';
+ String get tipsSheetShakeExtendSleepDesc => 'If you have a sleep timer running and shake your phone, it\'ll add extra minutes. Configure the amount in Settings under Sleep Timer.';
@override
String get tipsSheetSeriesNavigationTitle => 'Series Navigation';
@override
- String get tipsSheetSeriesNavigationDesc =>
- 'Tap the series name in any book\'s detail popup to see all books in the series, sorted in reading order with sequence badges on each cover.';
+ String get tipsSheetSeriesNavigationDesc => 'Tap the series name in any book\'s detail popup to see all books in the series, sorted in reading order with sequence badges on each cover.';
@override
String get tipsSheetSwipeBetweenBooksTitle => 'Swipe Between Books';
@override
- String get tipsSheetSwipeBetweenBooksDesc =>
- 'Swipe left and right on the Absorbing screen to switch between your in-progress books. With Manual queue mode on, the cards also act as your queue, so the next one auto-plays when the current one finishes.';
+ String get tipsSheetSwipeBetweenBooksDesc => 'Swipe left and right on the Absorbing screen to switch between your in-progress books. With Manual queue mode on, the cards also act as your queue, so the next one auto-plays when the current one finishes.';
@override
String get tipsSheetTapToSeekTitle => 'Tap to Seek';
@override
- String get tipsSheetTapToSeekDesc =>
- 'Tap anywhere on the chapter or book progress bar to jump directly to that position. You can also drag the bars for fine-grained control.';
+ String get tipsSheetTapToSeekDesc => 'Tap anywhere on the chapter or book progress bar to jump directly to that position. You can also drag the bars for fine-grained control.';
@override
String get tipsSheetSpeedAdjustedTimeTitle => 'Speed-Adjusted Time';
@override
- String get tipsSheetSpeedAdjustedTimeDesc =>
- 'Every time shown - position, remaining, chapters, bookmarks - adjusts to your playback speed. Listening at 1.5x? The times shown reflect how long they\'ll actually take you.';
+ String get tipsSheetSpeedAdjustedTimeDesc => 'Every time shown - position, remaining, chapters, bookmarks - adjusts to your playback speed. Listening at 1.5x? The times shown reflect how long they\'ll actually take you.';
@override
String get tipsSheetPlaybackHistoryTitle => 'Playback History';
@override
- String get tipsSheetPlaybackHistoryDesc =>
- 'Tap the History button on any card to see a timeline of every play, pause, seek, and speed change. Tap any event to jump back to that position.';
+ String get tipsSheetPlaybackHistoryDesc => 'Tap the History button on any card to see a timeline of every play, pause, seek, and speed change. Tap any event to jump back to that position.';
@override
String get tipsSheetAutoRewindTitle => 'Auto-Rewind';
@override
- String get tipsSheetAutoRewindDesc =>
- 'When you resume after a pause, Absorb automatically rewinds a few seconds so you don\'t lose your place. The rewind amount scales with how long you were away. Configure it in Settings.';
+ String get tipsSheetAutoRewindDesc => 'When you resume after a pause, Absorb automatically rewinds a few seconds so you don\'t lose your place. The rewind amount scales with how long you were away. Configure it in Settings.';
@override
String get tipsSheetSeriesQueueModeTitle => 'Series Queue Mode';
@override
- String get tipsSheetSeriesQueueModeDesc =>
- 'When you finish a book that\'s part of a series, Absorb can automatically play the next book. Set queue mode to \"Series\" in Settings.';
+ String get tipsSheetSeriesQueueModeDesc => 'When you finish a book that\'s part of a series, Absorb can automatically play the next book. Set queue mode to \"Series\" in Settings.';
@override
String get tipsSheetOfflineModeTitle => 'Offline Mode';
@override
- String get tipsSheetOfflineModeDesc =>
- 'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.';
+ String get tipsSheetOfflineModeDesc => 'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.';
@override
String get tipsSheetUpcomingReleasesTitle => 'Upcoming Releases';
@override
- String get tipsSheetUpcomingReleasesDesc =>
- 'On the Series tab, tap the tab again to open its sort and filter sheet, then choose Upcoming Releases to see new and upcoming books across your series, sorted by release date.';
+ String get tipsSheetUpcomingReleasesDesc => 'On the Series tab, tap the tab again to open its sort and filter sheet, then choose Upcoming Releases to see new and upcoming books across your series, sorted by release date.';
@override
String get tipsSheetPerBookEqTitle => 'Per-Book Equalizer';
@override
- String get tipsSheetPerBookEqDesc =>
- 'Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.';
+ String get tipsSheetPerBookEqDesc => 'Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.';
@override
String get tipsSheetPerBookSpeedTitle => 'Per-Book Speed';
@override
- String get tipsSheetPerBookSpeedDesc =>
- 'Playback speed is saved per book. Run nonfiction at 1.5x and dramatic fiction at 1.0x without setting it every time.';
+ String get tipsSheetPerBookSpeedDesc => 'Playback speed is saved per book. Run nonfiction at 1.5x and dramatic fiction at 1.0x without setting it every time.';
@override
String get tipsSheetAutoSleepWindowTitle => 'Auto Sleep Window';
@override
- String get tipsSheetAutoSleepWindowDesc =>
- 'Pick the hours you usually fall asleep and the sleep timer will start itself when you begin listening in that window.';
+ String get tipsSheetAutoSleepWindowDesc => 'Pick the hours you usually fall asleep and the sleep timer will start itself when you begin listening in that window.';
@override
String get tipsSheetSleepFadeChimeTitle => 'Sleep Fade and Chime';
@override
- String get tipsSheetSleepFadeChimeDesc =>
- 'When the sleep timer ends, audio gradually fades out and an optional chime plays so it doesn\'t cut off mid-sentence.';
+ String get tipsSheetSleepFadeChimeDesc => 'When the sleep timer ends, audio gradually fades out and an optional chime plays so it doesn\'t cut off mid-sentence.';
@override
String get tipsSheetCarModeTitle => 'Car Mode';
@override
- String get tipsSheetCarModeDesc =>
- 'Tap the car icon to switch to giant-button mode designed for safer use while driving.';
+ String get tipsSheetCarModeDesc => 'Tap the car icon to switch to giant-button mode designed for safer use while driving.';
@override
String get tipsSheetAudibleSeriesTitle => 'Audible Series Discovery';
@override
- String get tipsSheetAudibleSeriesDesc =>
- 'Open a series and use the overflow menu (the three dots) to pull the full series list from Audible, including missing entries and books you haven\'t started.';
+ String get tipsSheetAudibleSeriesDesc => 'Open a series and use the overflow menu (the three dots) to pull the full series list from Audible, including missing entries and books you haven\'t started.';
@override
String get tipsSheetTranscribeBookmarkTitle => 'Transcribe Bookmarks';
@override
- String get tipsSheetTranscribeBookmarkDesc =>
- 'Turn the audio at any bookmark into text, fully on your device. Enable it in Settings under Advanced > Transcription and download a model, then tap Transcribe on a bookmark - the text lands in its note, ready to fix up or share.';
+ String get tipsSheetTranscribeBookmarkDesc => 'Turn the audio at any bookmark into text, fully on your device. Enable it in Settings under Advanced > Transcription and download a model, then tap Transcribe on a bookmark - the text lands in its note, ready to fix up or share.';
@override
- String get tipsSheetFindBetweenFormatsTitle =>
- 'Jump Between Audiobook and Ebook';
+ String get tipsSheetFindBetweenFormatsTitle => 'Jump Between Audiobook and Ebook';
@override
- String get tipsSheetFindBetweenFormatsDesc =>
- 'With transcription on and the book downloaded, pause and tap Find position in ebook on the player to open the ebook at the passage you just heard. In the reader, select some text and tap the headphones to start the audiobook right there.';
+ String get tipsSheetFindBetweenFormatsDesc => 'With transcription on and the book downloaded, pause and tap Find position in ebook on the player to open the ebook at the passage you just heard. In the reader, select some text and tap the headphones to start the audiobook right there.';
@override
String get tipsSheetShareQuoteTitle => 'Share Quotes';
@override
- String get tipsSheetShareQuoteDesc =>
- 'Share an ebook highlight or a bookmark note as an image with the quote over the book cover. Look for the share option on highlights and in the bookmark sheet.';
+ String get tipsSheetShareQuoteDesc => 'Share an ebook highlight or a bookmark note as an image with the quote over the book cover. Look for the share option on highlights and in the bookmark sheet.';
@override
String get tipsSheetClipExportTitle => 'Export Audio Clips';
@override
- String get tipsSheetClipExportDesc =>
- 'Open a bookmark and tap Export clip to trim and save a short audio snippet of the book, cover art included - great for sharing a favorite scene.';
+ String get tipsSheetClipExportDesc => 'Open a bookmark and tap Export clip to trim and save a short audio snippet of the book, cover art included - great for sharing a favorite scene.';
@override
String get tipsSheetAllHighlightsTitle => 'All Highlights in One Place';
@override
- String get tipsSheetAllHighlightsDesc =>
- 'The All Bookmarks page has a Highlights tab collecting every ebook highlight from every book. Tap one to share it or jump back into the book.';
+ String get tipsSheetAllHighlightsDesc => 'The All Bookmarks page has a Highlights tab collecting every ebook highlight from every book. Tap one to share it or jump back into the book.';
@override
String get tipsSheetVolumeKeyPagesTitle => 'Volume-Key Page Turns';
@override
- String get tipsSheetVolumeKeyPagesDesc =>
- 'Turn ebook pages with the volume keys. Enable it in the reader\'s settings - normal or mirrored direction, and it can stay on even while audio is playing.';
+ String get tipsSheetVolumeKeyPagesDesc => 'Turn ebook pages with the volume keys. Enable it in the reader\'s settings - normal or mirrored direction, and it can stay on even while audio is playing.';
@override
String get tipsSheetSettingsSyncTitle => 'Settings Sync';
@override
- String get tipsSheetSettingsSyncDesc =>
- 'Keep your settings, per-book speeds and Absorbing order in step across devices through your own WebDAV server. Set it up in Settings under Backup and sync.';
+ String get tipsSheetSettingsSyncDesc => 'Keep your settings, per-book speeds and Absorbing order in step across devices through your own WebDAV server. Set it up in Settings under Backup and sync.';
@override
String get tipsSheetNavLongPressTitle => 'Long-Press the Bottom Tabs';
@override
- String get tipsSheetNavLongPressDesc =>
- 'Hold the Home tab to switch libraries from any page. Hold the Library tab to jump straight into search.';
+ String get tipsSheetNavLongPressDesc => 'Hold the Home tab to switch libraries from any page. Hold the Library tab to jump straight into search.';
@override
String get bookCardUnknownTitle => 'Unknown Title';
@@ -8251,8 +7956,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get authInvalidApiKey => 'Invalid API key';
@override
- String get authLoginFailedDetail =>
- 'Login failed - check your server address and credentials';
+ String get authLoginFailedDetail => 'Login failed - check your server address and credentials';
@override
String get authUnexpectedServerResponse => 'Unexpected server response';
@@ -8363,15 +8067,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get downloadNotifProgressChannelName => 'Download Progress';
@override
- String get downloadNotifProgressChannelDesc =>
- 'Shows progress during audiobook downloads';
+ String get downloadNotifProgressChannelDesc => 'Shows progress during audiobook downloads';
@override
String get downloadNotifAlertChannelName => 'Download Alerts';
@override
- String get downloadNotifAlertChannelDesc =>
- 'Notifications when downloads finish or fail';
+ String get downloadNotifAlertChannelDesc => 'Notifications when downloads finish or fail';
@override
String get downloadNotifDownloadingTitle => 'Downloading…';
@@ -8410,8 +8112,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get upcomingNotifChannelName => 'Upcoming Release Scan';
@override
- String get upcomingNotifChannelDesc =>
- 'Shows progress while scanning for upcoming releases';
+ String get upcomingNotifChannelDesc => 'Shows progress while scanning for upcoming releases';
@override
String get upcomingNotifScanTitle => 'Scanning for upcoming releases';
@@ -8420,11 +8121,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get upcomingNotifStartingScan => 'Starting scan…';
@override
- String upcomingNotifCheckingSeries(
- String seriesName,
- int current,
- int total,
- ) {
+ String upcomingNotifCheckingSeries(String seriesName, int current, int total) {
return 'Checking $seriesName… ($current/$total)';
}
@@ -8464,12 +8161,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get carConnectAutoplayIos => 'Start playback when CarPlay connects';
@override
- String get carConnectAutoplayOnSubtitle =>
- 'The last book you were listening to starts by itself when the car connects';
+ String get carConnectAutoplayOnSubtitle => 'The last book you were listening to starts by itself when the car connects';
@override
- String get carConnectAutoplayOffSubtitle =>
- 'Playback waits for you to press play';
+ String get carConnectAutoplayOffSubtitle => 'Playback waits for you to press play';
@override
String get sectionCar => 'Android Auto';
@@ -8484,16 +8179,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get siriUseWithSiri => 'Use with Siri';
@override
- String get siriStatusOn =>
- 'On. Siri can find and play your books and podcasts by name.';
+ String get siriStatusOn => 'On. Siri can find and play your books and podcasts by name.';
@override
- String get siriStatusAsk =>
- 'Let Siri find and play your books and podcasts by name.';
+ String get siriStatusAsk => 'Let Siri find and play your books and podcasts by name.';
@override
- String get siriStatusOff =>
- 'Siri is turned off for Absorb. Turn it on in iOS Settings.';
+ String get siriStatusOff => 'Siri is turned off for Absorb. Turn it on in iOS Settings.';
@override
String get siriAllow => 'Allow';
@@ -8505,12 +8197,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get siriThingsToSay => 'Things to say';
@override
- String get siriExamples =>
- '\"Play [book title] on Absorb\"\n\"Play [series name] on Absorb\"\n\"Play something by [author] on Absorb\"\n\"Play the latest episode of [podcast] on Absorb\"\n\"Resume Absorb\"\n\"Skip back in Absorb\"\n\"Next chapter in Absorb\"\n\"Set a sleep timer in Absorb\"\n\"Add a bookmark in Absorb\"\n\"What am I listening to in Absorb\"';
+ String get siriExamples => '\"Play [book title] on Absorb\"\n\"Play [series name] on Absorb\"\n\"Play something by [author] on Absorb\"\n\"Play the latest episode of [podcast] on Absorb\"\n\"Resume Absorb\"\n\"Skip back in Absorb\"\n\"Next chapter in Absorb\"\n\"Set a sleep timer in Absorb\"\n\"Add a bookmark in Absorb\"\n\"What am I listening to in Absorb\"';
@override
- String get siriShortcutsNote =>
- 'Resume, pause, skips, chapters, the sleep timer, bookmarks and what\'s playing work even without this permission. They are also in the Shortcuts app for automations and the Action button.';
+ String get siriShortcutsNote => 'Resume, pause, skips, chapters, the sleep timer, bookmarks and what\'s playing work even without this permission. They are also in the Shortcuts app for automations and the Action button.';
@override
String get carBookOrder => 'Book order in the car';
@@ -8528,8 +8218,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get carEpisodesOldestFirst => 'Oldest episodes first';
@override
- String get carEpisodesOldestFirstSubtitle =>
- 'For shows you listen to from the start';
+ String get carEpisodesOldestFirstSubtitle => 'For shows you listen to from the start';
@override
String get androidAutoCatBooks => 'Books';
@@ -8550,8 +8239,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get showTipsAgain => 'Show tips again';
@override
- String get showTipsAgainSubtitle =>
- 'Bring back feature tips you\'ve dismissed';
+ String get showTipsAgainSubtitle => 'Bring back feature tips you\'ve dismissed';
@override
String get tipsRestored => 'Tips restored';
@@ -8560,8 +8248,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get resetSpeedPresets => 'Reset speed presets';
@override
- String get resetSpeedPresetsSubtitle =>
- 'Restore the default playback speed chips';
+ String get resetSpeedPresetsSubtitle => 'Restore the default playback speed chips';
@override
String get speedPresetsReset => 'Speed presets reset';
@@ -8582,8 +8269,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get authorRemoveImageTitle => 'Remove author image?';
@override
- String get authorRemoveImageConfirm =>
- 'This deletes the image on the server.';
+ String get authorRemoveImageConfirm => 'This deletes the image on the server.';
@override
String get authorImageRemoved => 'Image removed';
@@ -8609,8 +8295,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get authorQuickMatchHint =>
- 'Pull name, ASIN, description and image from Audible for the chosen region.';
+ String get authorQuickMatchHint => 'Pull name, ASIN, description and image from Audible for the chosen region.';
@override
String get region => 'Region';
@@ -8637,8 +8322,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
@override
- String get chapterErrorStartAfterPrevious =>
- 'Start must come after the previous chapter';
+ String get chapterErrorStartAfterPrevious => 'Start must come after the previous chapter';
@override
String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
@@ -8713,8 +8397,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterRemoveAllTitle => 'Remove all chapters?';
@override
- String get chapterRemoveAllMessage =>
- 'This removes every chapter from this book.';
+ String get chapterRemoveAllMessage => 'This removes every chapter from this book.';
@override
String get chapterAllRemoved => 'All chapters removed';
@@ -8773,8 +8456,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterFindStartWider => 'Search wider';
@override
- String get chapterFindStartCeiling =>
- 'Searched half an hour around the marker. The start is further off than that, or there\'s no chapter announcement to hear.';
+ String get chapterFindStartCeiling => 'Searched half an hour around the marker. The start is further off than that, or there\'s no chapter announcement to hear.';
@override
String get chapterFindStartStrong => 'Sounds like this chapter';
@@ -8793,8 +8475,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get chapterFindStartNeedsModel =>
- 'Turn on transcription in Settings and download a model first';
+ String get chapterFindStartNeedsModel => 'Turn on transcription in Settings and download a model first';
@override
String get chapterFindStartUseThis => 'Use this';
@@ -8808,8 +8489,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterShiftBySeconds => 'Shift by (seconds)';
@override
- String get chapterShiftHint =>
- 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+ String get chapterShiftHint => 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
@override
String get chapterTitleHint => 'Chapter title';
@@ -8841,8 +8521,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterFindTitle => 'Find chapters';
@override
- String get chapterFindSubtitle =>
- 'Looks up chapters from Audible/Audnexus by ASIN.';
+ String get chapterFindSubtitle => 'Looks up chapters from Audible/Audnexus by ASIN.';
@override
String get chapterEnterAsin => 'Enter an ASIN';
@@ -8854,8 +8533,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get chapterNoChaptersFound => 'No chapters found for that ASIN';
@override
- String get chapterRemoveBranding =>
- 'Удалить брендинг Audible (вступление/заключение)';
+ String get chapterRemoveBranding => 'Удалить брендинг Audible (вступление/заключение)';
@override
String chapterFoundCount(int count) {
@@ -8868,12 +8546,10 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get chapterAudibleLonger =>
- 'Версия Audible длиннее вашего файла - более поздние главы могут не совпадать.';
+ String get chapterAudibleLonger => 'Версия Audible длиннее вашего файла - более поздние главы могут не совпадать.';
@override
- String get chapterAudibleShorter =>
- 'Версия Audible короче, чем ваш файл - главы могут не совпадать.';
+ String get chapterAudibleShorter => 'Версия Audible короче, чем ваш файл - главы могут не совпадать.';
@override
String get chapterTitlesOnly => 'Только заголовки';
@@ -8885,8 +8561,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get coverSearchTitle => 'Поиск обложек';
@override
- String get coverSearchRefineHint =>
- 'Уточните название/автор для очистки результата - это не меняет книгу.';
+ String get coverSearchRefineHint => 'Уточните название/автор для очистки результата - это не меняет книгу.';
@override
String get coverNoneFound => 'Обложки не найдены';
@@ -8907,24 +8582,19 @@ class AppLocalizationsRu extends AppLocalizations {
String get coverUnknownResolution => 'Неизвестное разрешение';
@override
- String get embedIntro =>
- 'Вставить метаданные в аудио файлы, включая обложку и главы.';
+ String get embedIntro => 'Вставить метаданные в аудио файлы, включая обложку и главы.';
@override
- String get embedBackupOption =>
- 'Сначала сделайте резервную копию аудио файлов';
+ String get embedBackupOption => 'Сначала сделайте резервную копию аудио файлов';
@override
- String get embedNoteInFolder =>
- 'Метаданные будут встроены в аудиофайлы в папку аудиокниг.';
+ String get embedNoteInFolder => 'Метаданные будут встроены в аудиофайлы в папку аудиокниг.';
@override
- String get embedNoteMultiTrack =>
- 'Главы не встроить в мульти-трековые аудиокниги.';
+ String get embedNoteMultiTrack => 'Главы не встроить в мульти-трековые аудиокниги.';
@override
- String get embedNoteNavigateAway =>
- 'После запуска задачи вы можете уйти с этой страницы.';
+ String get embedNoteNavigateAway => 'После запуска задачи вы можете уйти с этой страницы.';
@override
String get embedStartButton => 'Запустить вставку метаданных';
@@ -8946,8 +8616,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get taskStarting => 'Запуск...';
@override
- String get embedBackupNoteIntro =>
- 'Резервная копия ваших оригинальных аудиофайлов будет сохранена на сервере в ';
+ String get embedBackupNoteIntro => 'Резервная копия ваших оригинальных аудиофайлов будет сохранена на сервере в ';
@override
String embedBackupNotePath(String itemId) {
@@ -9046,8 +8715,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminApiKeysTokenLabel => 'Ваш новый API-ключ';
@override
- String get adminApiKeysCopyWarning =>
- 'Скопируйте этот ключ сейчас. Для безопасности он не будет показан снова.';
+ String get adminApiKeysCopyWarning => 'Скопируйте этот ключ сейчас. Для безопасности он не будет показан снова.';
@override
String get adminApiKeysCopy => 'Копировать';
@@ -9086,8 +8754,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminApiKeysEmpty => 'API-ключей еще нет';
@override
- String get adminApiKeysEmptySub =>
- 'Создайте, чтобы приложения и скрипты дошли до вашего сервера';
+ String get adminApiKeysEmptySub => 'Создайте, чтобы приложения и скрипты дошли до вашего сервера';
@override
String get adminApiKeysNeverUsed => 'Не использовался';
@@ -9176,15 +8843,13 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get clipExportClamped =>
- 'Clip saved, shortened to the end of this track';
+ String get clipExportClamped => 'Clip saved, shortened to the end of this track';
@override
String get clipExportFailed => 'Couldn\'t export the clip.';
@override
- String get clipDownloadToExport =>
- 'Download this book first to export a clip on iPhone.';
+ String get clipDownloadToExport => 'Download this book first to export a clip on iPhone.';
@override
String get fsPickerTitle => 'Select folder';
@@ -9211,8 +8876,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminUploadSubtitle => 'Add books and podcasts from files';
@override
- String get adminUploadNoLibraries =>
- 'Create a library before uploading media.';
+ String get adminUploadNoLibraries => 'Create a library before uploading media.';
@override
String get adminUploadDestination => 'Destination';
@@ -9230,8 +8894,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminUploadAutoMetadata => 'Auto-fetch metadata';
@override
- String get adminUploadAutoMetadataSubtitle =>
- 'Fill title, author and series from the best match';
+ String get adminUploadAutoMetadataSubtitle => 'Fill title, author and series from the best match';
@override
String get adminUploadMetadataProvider => 'Metadata provider';
@@ -9240,12 +8903,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminUploadMetadataSearching => 'Searching for metadata...';
@override
- String get adminUploadMetadataNoResults =>
- 'No metadata match found. You can still upload this item.';
+ String get adminUploadMetadataNoResults => 'No metadata match found. You can still upload this item.';
@override
- String get adminUploadMetadataFailed =>
- 'Couldn\'t search for metadata. You can still upload this item.';
+ String get adminUploadMetadataFailed => 'Couldn\'t search for metadata. You can still upload this item.';
@override
String get adminUploadDestinationPreview => 'Server destination';
@@ -9271,20 +8932,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminUploadAddFiles => 'Add files';
@override
- String get adminUploadBookFilesHint =>
- 'Choose audio or ebook files. You can also include covers and metadata files.';
+ String get adminUploadBookFilesHint => 'Choose audio or ebook files. You can also include covers and metadata files.';
@override
- String get adminUploadPodcastFilesHint =>
- 'Choose one or more audio files. You can also include covers and metadata files.';
+ String get adminUploadPodcastFilesHint => 'Choose one or more audio files. You can also include covers and metadata files.';
@override
- String get adminUploadUnsupportedFiles =>
- 'Some selected files are not supported by Audiobookshelf.';
+ String get adminUploadUnsupportedFiles => 'Some selected files are not supported by Audiobookshelf.';
@override
- String get adminUploadFilePickerFailed =>
- 'Couldn\'t open the selected files.';
+ String get adminUploadFilePickerFailed => 'Couldn\'t open the selected files.';
@override
String get adminUploadTitleRequired => 'Enter a title';
@@ -9299,20 +8956,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminUploadFilesRequired => 'Choose at least one file';
@override
- String get adminUploadPodcastFileRequired =>
- 'Choose at least one audio file for this podcast.';
+ String get adminUploadPodcastFileRequired => 'Choose at least one audio file for this podcast.';
@override
- String get adminUploadBookFileRequired =>
- 'Choose at least one audio or ebook file for this book.';
+ String get adminUploadBookFileRequired => 'Choose at least one audio or ebook file for this book.';
@override
- String get adminUploadPathCheckFailed =>
- 'Couldn\'t check the destination folder. Nothing was uploaded.';
+ String get adminUploadPathCheckFailed => 'Couldn\'t check the destination folder. Nothing was uploaded.';
@override
- String get adminUploadDestinationExists =>
- 'That destination folder already exists on the server.';
+ String get adminUploadDestinationExists => 'That destination folder already exists on the server.';
@override
String adminUploadDestinationUsedBy(String title) {
@@ -9328,8 +8981,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get adminUploadAddToExistingNoItem =>
- 'That folder already exists on the server. Add the files to it?';
+ String get adminUploadAddToExistingNoItem => 'That folder already exists on the server. Add the files to it?';
@override
String get adminUploadAddToBook => 'Add to an existing book';
@@ -9351,8 +9003,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get adminUploadTargetNoFolder =>
- 'Couldn\'t find that book\'s folder on the server.';
+ String get adminUploadTargetNoFolder => 'Couldn\'t find that book\'s folder on the server.';
@override
String adminUploadTargetFolderMismatch(String preview, String folder) {
@@ -9384,8 +9035,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get adminUploadReselectFiles =>
- 'Choose the files again before retrying.';
+ String get adminUploadReselectFiles => 'Choose the files again before retrying.';
@override
String get adminServerSettings => 'Server settings';
@@ -9397,8 +9047,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminAuthentication => 'Authentication';
@override
- String get adminAuthenticationSubtitle =>
- 'Password and OpenID Connect sign-in';
+ String get adminAuthenticationSubtitle => 'Password and OpenID Connect sign-in';
@override
String get adminStats => 'Statistics';
@@ -9410,8 +9059,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get adminAllSessions => 'All sessions';
@override
- String get adminAllSessionsSubtitle =>
- 'View and manage all listening sessions';
+ String get adminAllSessionsSubtitle => 'View and manage all listening sessions';
@override
String get adminSessionsAllUsers => 'All users';
@@ -9594,8 +9242,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get authSetRedirectUris => 'Allowed mobile redirect URIs';
@override
- String get authSetRedirectUrisInfo =>
- 'Apps can only return to these addresses after sign-in. Absorb uses absorb://oauth. An asterisk (*) as the only entry allows any address.';
+ String get authSetRedirectUrisInfo => 'Apps can only return to these addresses after sign-in. Absorb uses absorb://oauth. An asterisk (*) as the only entry allows any address.';
@override
String get authSetAddRedirectUri => 'Add URI';
@@ -9610,8 +9257,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get authSetSubfolderNone => 'None';
@override
- String get authSetWebRedirectInfo =>
- 'Allow these URLs in your OAuth provider so sign-in can return to the web app:';
+ String get authSetWebRedirectInfo => 'Allow these URLs in your OAuth provider so sign-in can return to the web app:';
@override
String get authSetButtonText => 'Button text';
@@ -9629,44 +9275,37 @@ class AppLocalizationsRu extends AppLocalizations {
String get authSetMatchUsername => 'Username';
@override
- String get authSetMatchExistingInfo =>
- 'Used to link existing users. Once linked, users are matched by their unique ID from the provider.';
+ String get authSetMatchExistingInfo => 'Used to link existing users. Once linked, users are matched by their unique ID from the provider.';
@override
String get authSetAutoLaunch => 'Auto launch';
@override
- String get authSetAutoLaunchInfo =>
- 'Open the provider automatically from the web login page. /login?autoLaunch=0 skips it.';
+ String get authSetAutoLaunchInfo => 'Open the provider automatically from the web login page. /login?autoLaunch=0 skips it.';
@override
String get authSetAutoRegister => 'Auto register';
@override
- String get authSetAutoRegisterInfo =>
- 'Create new users automatically after they sign in';
+ String get authSetAutoRegisterInfo => 'Create new users automatically after they sign in';
@override
- String get authSetClaimsInfo =>
- 'Leave these empty to turn off group and permission assignment. New users then get the User role.';
+ String get authSetClaimsInfo => 'Leave these empty to turn off group and permission assignment. New users then get the User role.';
@override
String get authSetGroupClaim => 'Group claim';
@override
- String get authSetGroupClaimInfo =>
- 'Claim that lists the user\'s groups, usually groups. Groups named admin, user or guest set the role, and the highest one wins. If no group matches, sign-in is refused.';
+ String get authSetGroupClaimInfo => 'Claim that lists the user\'s groups, usually groups. Groups named admin, user or guest set the role, and the highest one wins. If no group matches, sign-in is refused.';
@override
String get authSetPermsClaim => 'Advanced permission claim';
@override
- String get authSetPermsClaimInfo =>
- 'Claim with permissions for non-admin users. If the claim is missing, sign-in is refused, and a missing option counts as off. Expected format:';
+ String get authSetPermsClaimInfo => 'Claim with permissions for non-admin users. If the claim is missing, sign-in is refused, and a missing option counts as off. Expected format:';
@override
- String get authSetRestartNote =>
- 'Restart the server after saving to apply OpenID Connect changes.';
+ String get authSetRestartNote => 'Restart the server after saving to apply OpenID Connect changes.';
@override
String get authSetNoChanges => 'No changes to save';
@@ -9685,8 +9324,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get authSetAsteriskAlone =>
- 'An asterisk (*) must be the only redirect URI';
+ String get authSetAsteriskAlone => 'An asterisk (*) must be the only redirect URI';
@override
String authSetInvalidClaim(String field) {
@@ -9708,8 +9346,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get libDeleteTitle => 'Delete library?';
@override
- String get libDeleteBody =>
- 'This permanently removes the library and all of its items from the server.';
+ String get libDeleteBody => 'This permanently removes the library and all of its items from the server.';
@override
String get libDeleted => 'Library deleted';
@@ -9831,8 +9468,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get libRemoveFoldersTitle => 'Remove folders?';
@override
- String get libRemoveFoldersBody =>
- 'Removing a folder deletes its items from the library. This can\'t be undone.';
+ String get libRemoveFoldersBody => 'Removing a folder deletes its items from the library. This can\'t be undone.';
@override
String get readEbook => 'Read';
@@ -9859,16 +9495,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get ebookSaveToDeviceTitle => 'Save to device?';
@override
- String get ebookSaveToDeviceBody =>
- 'This saves a copy of the ebook file somewhere on your device (you pick where). It won\'t make the book available offline in the reader - use Download for that.';
+ String get ebookSaveToDeviceBody => 'This saves a copy of the ebook file somewhere on your device (you pick where). It won\'t make the book available offline in the reader - use Download for that.';
@override
- String get readerFormatUnsupported =>
- 'This ebook format can\'t be opened in the reader yet';
+ String get readerFormatUnsupported => 'This ebook format can\'t be opened in the reader yet';
@override
- String get readerCouldNotOpen =>
- 'This ebook couldn\'t be opened. The file may be damaged.';
+ String get readerCouldNotOpen => 'This ebook couldn\'t be opened. The file may be damaged.';
@override
String get moreActions => 'More';
@@ -9907,8 +9540,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get readerPinTopBar => 'Keep the title and progress bar on screen';
@override
- String get readerPinTopBarHint =>
- 'Pins them above the page instead of showing them on tap. The page gets a little shorter so no text is covered.';
+ String get readerPinTopBarHint => 'Pins them above the page instead of showing them on tap. The page gets a little shorter so no text is covered.';
@override
String get readerTopBarProgress => 'Top bar progress';
@@ -9922,19 +9554,91 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint => 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead => 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
@override
- String get readerScrollModeHint =>
- 'Scroll down through the book instead of turning pages. Applies to every book.';
+ String get readerScrollModeHint => 'Scroll down through the book instead of turning pages. Applies to every book.';
@override
String get readerKeepAwake => 'Keep the screen on';
@override
- String get readerKeepAwakeHint =>
- 'Stops the screen timing out while you read at your own pace. Auto scroll and read along always keep it on.';
+ String get readerKeepAwakeHint => 'Stops the screen timing out while you read at your own pace. Auto scroll and read along always keep it on.';
@override
String get readerLayoutAuto => 'Auto';
@@ -9967,8 +9671,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get readerAutoScroll => 'Auto scroll';
@override
- String get readerAutoScrollSubtitle =>
- 'The next page paints over this one from the top down - drag the middle of the screen to change speed, tap to stop';
+ String get readerAutoScrollSubtitle => 'The next page paints over this one from the top down - drag the middle of the screen to change speed, tap to stop';
@override
String get readerAutoScrollStarted => 'Auto scroll started';
@@ -9997,8 +9700,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get readerAutoScrollSleep => 'Auto scroll sleep timer';
@override
- String get readerAutoScrollSleepHint =>
- 'Stops the scrolling after a while and lets the screen go dark.';
+ String get readerAutoScrollSleepHint => 'Stops the scrolling after a while and lets the screen go dark.';
@override
String readerAutoScrollSleepMinutes(int minutes) {
@@ -10123,8 +9825,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get sessionReading => 'Reading';
@override
- String get readerHistoryEmpty =>
- 'Pages you leave are listed here, so you can always get back to them.';
+ String get readerHistoryEmpty => 'Pages you leave are listed here, so you can always get back to them.';
@override
String get readerHistoryClosed => 'Closed the book';
@@ -10139,8 +9840,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get readerLogReading => 'Count reading time in stats';
@override
- String get readerLogReadingHint =>
- 'Logs your time in the reader as a session so it shows in your stats. On Audiobookshelf it counts as listening time.';
+ String get readerLogReadingHint => 'Logs your time in the reader as a session so it shows in your stats. On Audiobookshelf it counts as listening time.';
@override
String get readerNoBookmarks => 'No bookmarks yet';
@@ -10158,22 +9858,19 @@ class AppLocalizationsRu extends AppLocalizations {
String get backupAndSync => 'Backup and sync';
@override
- String get backupAndSyncSubtitle =>
- 'Save a backup file, or keep settings in step across devices';
+ String get backupAndSyncSubtitle => 'Save a backup file, or keep settings in step across devices';
@override
String get syncSettingsExperimental => 'Experimental';
@override
- String get syncSettingsExperimentalBody =>
- 'Sync is new and still being worked on. If two devices change things while they are apart, one side can lose its changes. Keep a backup file as your safe copy.';
+ String get syncSettingsExperimentalBody => 'Sync is new and still being worked on. If two devices change things while they are apart, one side can lose its changes. Keep a backup file as your safe copy.';
@override
String get syncSettingsNeedServer => 'Need a server?';
@override
- String get syncSettingsNeedServerSub =>
- 'Any WebDAV server works. Nextcloud is a free self-hosted one.';
+ String get syncSettingsNeedServerSub => 'Any WebDAV server works. Nextcloud is a free self-hosted one.';
@override
String get syncSettingsConnection => 'Connection';
@@ -10185,12 +9882,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncSettingsBackupFile => 'Backup file';
@override
- String get syncSettingsBackupFilePlain =>
- 'Save everything to a file you keep.';
+ String get syncSettingsBackupFilePlain => 'Save everything to a file you keep.';
@override
- String get syncSettingsBackupFileWithSync =>
- 'Save everything to a file you keep. Include login info and restoring it on another phone turns sync on there too.';
+ String get syncSettingsBackupFileWithSync => 'Save everything to a file you keep. Include login info and restoring it on another phone turns sync on there too.';
@override
String get syncSettingsStatusOff => 'Not syncing';
@@ -10208,12 +9903,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncSettingsIncludeRmab => 'ReadMeABook settings';
@override
- String get syncSettingsIncludeRmabSub =>
- 'Puts your ReadMeABook API token in the synced file';
+ String get syncSettingsIncludeRmabSub => 'Puts your ReadMeABook API token in the synced file';
@override
- String get syncSettingsSubtitle =>
- 'Keep your settings in step through your own WebDAV server';
+ String get syncSettingsSubtitle => 'Keep your settings in step through your own WebDAV server';
@override
String get syncSettingsEnable => 'Sync settings';
@@ -10222,8 +9915,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncSettingsServerUrl => 'WebDAV folder URL';
@override
- String get syncSettingsServerUrlHint =>
- 'https://cloud.example.com/remote.php/dav/files/you/Absorb';
+ String get syncSettingsServerUrlHint => 'https://cloud.example.com/remote.php/dav/files/you/Absorb';
@override
String get syncSettingsUsername => 'Username';
@@ -10235,8 +9927,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncSettingsHeaders => 'Custom headers (optional)';
@override
- String get syncSettingsHeadersHint =>
- 'One per line, like CF-Access-Client-Id: abc123';
+ String get syncSettingsHeadersHint => 'One per line, like CF-Access-Client-Id: abc123';
@override
String get syncSettingsTest => 'Test connection';
@@ -10263,8 +9954,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncSettingsNetworkError => 'Could not reach that address';
@override
- String get syncSettingsNotConfigured =>
- 'Fill in the address, username and password first';
+ String get syncSettingsNotConfigured => 'Fill in the address, username and password first';
@override
String get syncSettingsTooLarge => 'Your settings are too big to sync';
@@ -10303,8 +9993,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get navHoldPickBody =>
- 'Choose what a long press on this tab does. You can change it later in Settings.';
+ String get navHoldPickBody => 'Choose what a long press on this tab does. You can change it later in Settings.';
@override
String get navHoldSettingTitle => 'Tab hold shortcuts';
@@ -10400,8 +10089,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get bookStatsNobody => 'Nobody has started this yet';
@override
- String get bookStatsScanning =>
- 'Scanning through sessions, this could take a while...';
+ String get bookStatsScanning => 'Scanning through sessions, this could take a while...';
@override
String bookStatsScanningCount(int done, int total) {
@@ -10451,8 +10139,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncSourceTitle => 'Which copy should sync keep?';
@override
- String get syncSourceBody =>
- 'This backup turned settings sync on. Use the server\'s last sync, or make this backup the source of truth? Choosing the backup replaces the copy on the server for all your synced devices.';
+ String get syncSourceBody => 'This backup turned settings sync on. Use the server\'s last sync, or make this backup the source of truth? Choosing the backup replaces the copy on the server for all your synced devices.';
@override
String get syncSourceUseServer => 'Server\'s last sync';
@@ -10461,16 +10148,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncSourceUseBackup => 'This backup';
@override
- String get syncSettingsWhatTravels =>
- 'Your preferences, per-book speeds, home layout, Absorbing order, notes and ebook highlights travel. Logins, download folders, auto-download switches, reader looks and anything not yet sent to your server stay on this device.';
+ String get syncSettingsWhatTravels => 'Your preferences, per-book speeds, home layout, Absorbing order, notes and ebook highlights travel. Logins, download folders, auto-download switches, reader looks and anything not yet sent to your server stay on this device.';
@override
- String get syncSettingsDownloadWarnTitle =>
- 'Replace this device\'s settings?';
+ String get syncSettingsDownloadWarnTitle => 'Replace this device\'s settings?';
@override
- String get syncSettingsDownloadWarnBody =>
- 'The synced copy will overwrite the settings on this device.';
+ String get syncSettingsDownloadWarnBody => 'The synced copy will overwrite the settings on this device.';
@override
String get syncSettingsDownloadWarnConfirm => 'Replace';
@@ -10482,8 +10166,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get dictionaryNotFound => 'No definition found for this word.';
@override
- String get dictionaryError =>
- 'Couldn\'t reach the dictionary. Check your connection.';
+ String get dictionaryError => 'Couldn\'t reach the dictionary. Check your connection.';
@override
String get dictionaryRetry => 'Retry';
@@ -10526,23 +10209,19 @@ class AppLocalizationsRu extends AppLocalizations {
String get transcriptionTitle => 'Transcription';
@override
- String get transcriptionAdvancedSubtitle =>
- 'For transcribing bookmarks and finding your spot between audiobook and ebook';
+ String get transcriptionAdvancedSubtitle => 'For transcribing bookmarks and finding your spot between audiobook and ebook';
@override
String get transcriptionEnable => 'Enable transcription';
@override
- String get transcriptionEnableSubtitle =>
- 'Adds Transcribe to bookmarks, Find position in ebook to the player, and Find in audiobook to the reader';
+ String get transcriptionEnableSubtitle => 'Adds Transcribe to bookmarks, Find position in ebook to the player, and Find in audiobook to the reader';
@override
- String get transcriptionDisclaimer =>
- 'Runs entirely on your device, nothing is sent anywhere. It uses extra battery and processing while it works, and only downloaded books can be transcribed.';
+ String get transcriptionDisclaimer => 'Runs entirely on your device, nothing is sent anywhere. It uses extra battery and processing while it works, and only downloaded books can be transcribed.';
@override
- String get transcriptionNeedModelHint =>
- 'Download a model below to start transcribing.';
+ String get transcriptionNeedModelHint => 'Download a model below to start transcribing.';
@override
String get transcriptionModelSection => 'Models';
@@ -10551,8 +10230,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get transcriptionModelTiny => 'Tiny';
@override
- String get transcriptionModelTinyDesc =>
- 'Quickest, less accurate. About 31 MB.';
+ String get transcriptionModelTinyDesc => 'Quickest, less accurate. About 31 MB.';
@override
String get transcriptionModelBase => 'Base';
@@ -10564,19 +10242,16 @@ class AppLocalizationsRu extends AppLocalizations {
String get transcriptionModelSmall => 'Small';
@override
- String get transcriptionModelSmallDesc =>
- 'Slower but most accurate - best on a high-end phone. About 182 MB.';
+ String get transcriptionModelSmallDesc => 'Slower but most accurate - best on a high-end phone. About 182 MB.';
@override
- String get transcriptionAutoHint =>
- 'With more than one downloaded, each job picks between them. Books with an ebook get the quickest one, since the exact words come from the ebook anyway. Books without one get the most accurate - except read along, which stays below Small so it can keep up with the narration.';
+ String get transcriptionAutoHint => 'With more than one downloaded, each job picks between them. Books with an ebook get the quickest one, since the exact words come from the ebook anyway. Books without one get the most accurate - except read along, which stays below Small so it can keep up with the narration.';
@override
String get transcriptionDownload => 'Download';
@override
- String get transcriptionDownloadFailed =>
- 'Download failed. Check your connection and try again.';
+ String get transcriptionDownloadFailed => 'Download failed. Check your connection and try again.';
@override
String get transcribe => 'Transcribe';
@@ -10594,31 +10269,25 @@ class AppLocalizationsRu extends AppLocalizations {
String get transcriptionSavedToNote => 'Saved to bookmark note';
@override
- String get transcriptionDisabledHint =>
- 'Turn on bookmark transcription in Settings, under Advanced.';
+ String get transcriptionDisabledHint => 'Turn on bookmark transcription in Settings, under Advanced.';
@override
- String get transcriptionNoModelDownloaded =>
- 'Download a transcription model in Settings first.';
+ String get transcriptionNoModelDownloaded => 'Download a transcription model in Settings first.';
@override
- String get transcriptionNotDownloadedBook =>
- 'Download this book or connect to your server to transcribe it.';
+ String get transcriptionNotDownloadedBook => 'Download this book or connect to your server to transcribe it.';
@override
- String get transcriptionNoMetadataMsg =>
- 'Can\'t locate this spot in the download. Try re-downloading the book.';
+ String get transcriptionNoMetadataMsg => 'Can\'t locate this spot in the download. Try re-downloading the book.';
@override
- String get transcriptionBusyMsg =>
- 'Already transcribing something. Give it a moment.';
+ String get transcriptionBusyMsg => 'Already transcribing something. Give it a moment.';
@override
String get transcriptionEmptyMsg => 'No speech was found at this spot.';
@override
- String get transcriptionFailedMsg =>
- 'Couldn\'t transcribe this spot. Please try again.';
+ String get transcriptionFailedMsg => 'Couldn\'t transcribe this spot. Please try again.';
@override
String get transcriptionPlaySnippet => 'Listen';
@@ -10627,12 +10296,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get transcriptionPauseSnippet => 'Pause';
@override
- String get transcriptionIntroBody =>
- 'This listens to the chosen amount of audio, starting just before the bookmark, and turns it into text on your device. Longer clips take longer, and transcription isn\'t 100% accurate. The text is saved into the bookmark\'s note when it\'s done, ready to fix up or share.';
+ String get transcriptionIntroBody => 'This listens to the chosen amount of audio, starting just before the bookmark, and turns it into text on your device. Longer clips take longer, and transcription isn\'t 100% accurate. The text is saved into the bookmark\'s note when it\'s done, ready to fix up or share.';
@override
- String get transcriptionUseEbookText =>
- 'Use the ebook\'s exact text when it can be matched';
+ String get transcriptionUseEbookText => 'Use the ebook\'s exact text when it can be matched';
@override
String get lyricsMode => 'Live transcript';
@@ -10653,12 +10320,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get lyricsFullCover => 'Use the whole cover';
@override
- String get lyricsFullCoverHint =>
- 'Shows the transcript in place of the artwork while it runs, fitting as many lines as there is room for.';
+ String get lyricsFullCoverHint => 'Shows the transcript in place of the artwork while it runs, fitting as many lines as there is room for.';
@override
- String get lyricsBatteryInfo =>
- 'Live transcript and read along use extra battery and processing while they run. On phones with slower processors, lines can take longer to appear.';
+ String get lyricsBatteryInfo => 'Live transcript and read along use extra battery and processing while they run. On phones with slower processors, lines can take longer to appear.';
@override
String get lyricsClearCache => 'Clear transcript cache';
@@ -10669,15 +10334,13 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get lyricsClearCacheConfirm =>
- 'Delete the saved transcripts for every book and episode? They rebuild automatically as you listen.';
+ String get lyricsClearCacheConfirm => 'Delete the saved transcripts for every book and episode? They rebuild automatically as you listen.';
@override
String get lyricsCacheCleared => 'Transcript cache cleared';
@override
- String get lyricsIntroBody =>
- 'This listens a little ahead of the narration and shows each line as it is spoken, transcribed on your phone - nothing leaves the device. After turning it on, hold off on pressing play for a few seconds while it gets ahead. The transcript appears once its head start is ready, and starting paused gives it the smoothest run. It uses extra battery and processing while it runs.';
+ String get lyricsIntroBody => 'This listens a little ahead of the narration and shows each line as it is spoken, transcribed on your phone - nothing leaves the device. After turning it on, hold off on pressing play for a few seconds while it gets ahead. The transcript appears once its head start is ready, and starting paused gives it the smoothest run. It uses extra battery and processing while it runs.';
@override
String lyricsBuildingLead(String percent) {
@@ -10714,16 +10377,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get narrationDownloadTitle => 'Download to listen';
@override
- String get narrationDownloadBody =>
- 'This book is an EPUB3 that reads itself aloud. Audiobookshelf can\'t stream its narration, so the audio needs to be downloaded before it plays.';
+ String get narrationDownloadBody => 'This book is an EPUB3 that reads itself aloud. Audiobookshelf can\'t stream its narration, so the audio needs to be downloaded before it plays.';
@override
- String get narrationDownloadStarted =>
- 'Downloading the narration. Tap Absorb when it finishes.';
+ String get narrationDownloadStarted => 'Downloading the narration. Tap Absorb when it finishes.';
@override
- String get narrationTextBody =>
- 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+ String get narrationTextBody => 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
@override
String get narrationTextLoading => 'Getting the words from the book';
@@ -10745,12 +10405,10 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get transcriptionNeedsDownload =>
- 'This needs the audio on your phone. Download it now?';
+ String get transcriptionNeedsDownload => 'This needs the audio on your phone. Download it now?';
@override
- String get transcriptionDownloadStarted =>
- 'Downloading. Turn this on again when it finishes';
+ String get transcriptionDownloadStarted => 'Downloading. Turn this on again when it finishes';
@override
String get readAlongFollow => 'Read along follows';
@@ -10759,8 +10417,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncReadingListening => 'Keep reading and listening in sync';
@override
- String get syncReadingListeningHint =>
- 'For books with an audiobook and an ebook. When you stop listening, the ebook moves to where you stopped. When you leave the reader, the audiobook moves to your page. Only moves forward.';
+ String get syncReadingListeningHint => 'For books with an audiobook and an ebook. When you stop listening, the ebook moves to where you stopped. When you leave the reader, the audiobook moves to your page. Only moves forward.';
@override
String get syncEbookMoved => 'Ebook moved to where you stopped listening';
@@ -10787,8 +10444,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get syncPosition => 'Sync position';
@override
- String get readAlongFollowHint =>
- 'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
+ String get readAlongFollowHint => 'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
@override
String get readAlongFollowWord => 'Word';
@@ -10824,31 +10480,25 @@ class AppLocalizationsRu extends AppLocalizations {
String get findInAudiobook => 'Find in audiobook';
@override
- String get findInAudiobookSearching =>
- 'Finding this spot in the audiobook...';
+ String get findInAudiobookSearching => 'Finding this spot in the audiobook...';
@override
- String get findInAudiobookStillSearching =>
- 'Still searching the audio for this spot...';
+ String get findInAudiobookStillSearching => 'Still searching the audio for this spot...';
@override
- String get findInAudiobookSearchingLong =>
- 'Long chapter, still searching. This can take a minute or two...';
+ String get findInAudiobookSearchingLong => 'Long chapter, still searching. This can take a minute or two...';
@override
- String get findInAudiobookNotFound =>
- 'Couldn\'t find this spot in the audiobook.';
+ String get findInAudiobookNotFound => 'Couldn\'t find this spot in the audiobook.';
@override
- String get transcriptionWhisperInfo =>
- 'Transcription is powered by Whisper, an open speech recognition model that listens to the narration and writes out the words - all on this device.';
+ String get transcriptionWhisperInfo => 'Transcription is powered by Whisper, an open speech recognition model that listens to the narration and writes out the words - all on this device.';
@override
String get transcriptionWhisperLearnMore => 'Learn more about Whisper';
@override
- String get findInAudiobookIntroBody =>
- 'This listens to the audiobook near where you\'re reading and matches it to this passage, all on your device. It can take up to a minute. If the spot can\'t be matched confidently, nothing moves.';
+ String get findInAudiobookIntroBody => 'This listens to the audiobook near where you\'re reading and matches it to this passage, all on your device. It can take up to a minute. If the spot can\'t be matched confidently, nothing moves.';
@override
String get findInAudiobookAfterLabel => 'When the spot is found';
@@ -10863,12 +10513,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get findInAudiobookPlaying => 'Playing this passage in the audiobook';
@override
- String get catchUpAudioAhead =>
- 'The audiobook is further along. Tap to go there.';
+ String get catchUpAudioAhead => 'The audiobook is further along. Tap to go there.';
@override
- String get catchUpPageAhead =>
- 'This page is ahead of the audiobook. Tap to move the audiobook here.';
+ String get catchUpPageAhead => 'This page is ahead of the audiobook. Tap to move the audiobook here.';
@override
String get readerShortcutButton => 'Shortcut button';
@@ -10880,66 +10528,55 @@ class AppLocalizationsRu extends AppLocalizations {
String get keepScreenOnActive => 'Screen stays on';
@override
- String get keepScreenOnUntilClosed =>
- 'Screen stays on until you close the app';
+ String get keepScreenOnUntilClosed => 'Screen stays on until you close the app';
@override
String get keepScreenOnOff => 'Screen can turn off again';
@override
- String get keepScreenOnOffUntilRestart =>
- 'Off until the app restarts. The Settings switch stays on';
+ String get keepScreenOnOffUntilRestart => 'Off until the app restarts. The Settings switch stays on';
@override
String get keepScreenOnPlayer => 'Keep the screen on in the player';
@override
- String get keepScreenOnPlayerSubtitle =>
- 'The screen stays on while the player is open';
+ String get keepScreenOnPlayerSubtitle => 'The screen stays on while the player is open';
@override
String get keepScreenOnCarMode => 'Keep the screen on in car mode';
@override
- String get keepScreenOnCarModeSubtitle =>
- 'The screen stays on while car mode is open';
+ String get keepScreenOnCarModeSubtitle => 'The screen stays on while car mode is open';
@override
String get loginServerType => 'Server type';
@override
- String get authBookOrbitDefaultPassword =>
- 'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ String get authBookOrbitDefaultPassword => 'This account still has its default password. Change it in BookOrbit, then sign in again.';
@override
- String get authBookOrbitPasswordOff =>
- 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+ String get authBookOrbitPasswordOff => 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
@override
- String get authServerIsBookOrbit =>
- 'This is a BookOrbit server. Choose BookOrbit above the server address.';
+ String get authServerIsBookOrbit => 'This is a BookOrbit server. Choose BookOrbit above the server address.';
@override
- String get authServerIsAudiobookshelf =>
- 'This is an Audiobookshelf server. Choose Audiobookshelf above the server address.';
+ String get authServerIsAudiobookshelf => 'This is an Audiobookshelf server. Choose Audiobookshelf above the server address.';
@override
- String get castNotAvailableBookOrbit =>
- 'Casting is not available with BookOrbit servers';
+ String get castNotAvailableBookOrbit => 'Casting is not available with BookOrbit servers';
@override
String get loginMagicLink => 'Magic link';
@override
- String get loginMagicLinkDescription =>
- 'Sign in with a BookOrbit magic link instead of a password.';
+ String get loginMagicLinkDescription => 'Sign in with a BookOrbit magic link instead of a password.';
@override
String get collectionPublicTitle => 'Public';
@override
- String get collectionPublicSubtitle =>
- 'Everyone on this server can see this collection';
+ String get collectionPublicSubtitle => 'Everyone on this server can see this collection';
@override
String loginSignInWithProvider(String provider) {
@@ -10953,15 +10590,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get loginChooseSsoProvider => 'Choose how to sign in';
@override
- String get loginRedirectUriBookOrbit =>
- 'Redirect URI: bookorbit://oauth2-callback';
+ String get loginRedirectUriBookOrbit => 'Redirect URI: bookorbit://oauth2-callback';
@override
String get readStatusTitle => 'Reading status';
@override
- String get readStatusHint =>
- 'BookOrbit keeps a status you pick here until you change it.';
+ String get readStatusHint => 'BookOrbit keeps a status you pick here until you change it.';
@override
String get readStatusUnread => 'Unread';
@@ -11009,8 +10644,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get cardButtonFill => 'Button background';
@override
- String get cardButtonFillSubtitle =>
- 'How the buttons on the player card are filled';
+ String get cardButtonFillSubtitle => 'How the buttons on the player card are filled';
@override
String get cardButtonFillClear => 'Clear';
@@ -11022,15 +10656,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get cardButtonFillSolid => 'Solid';
@override
- String get loginBookOrbitPreview =>
- 'BookOrbit support is new. Playback, downloads and browsing work, but some screens may still look or act like Audiobookshelf. Follow the progress on GitHub, and let us know if something seems off.';
+ String get loginBookOrbitPreview => 'BookOrbit support is new. Playback, downloads and browsing work, but some screens may still look or act like Audiobookshelf. Follow the progress on GitHub, and let us know if something seems off.';
@override
String get signedOutTapToSignIn => 'Signed out. Tap to sign in again.';
@override
- String get authSignedOutKeepListening =>
- 'You\'ve been signed out. Downloads still play. Tap the red cloud to sign in again.';
+ String get authSignedOutKeepListening => 'You\'ve been signed out. Downloads still play. Tap the red cloud to sign in again.';
@override
String signedOutSyncNote(String username, String server) {
@@ -11046,8 +10678,7 @@ class AppLocalizationsRu extends AppLocalizations {
}
@override
- String get comicBookmarkRemoveFailed =>
- 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+ String get comicBookmarkRemoveFailed => 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
@override
String get comicLeftToRight => 'Left to right';
@@ -11056,8 +10687,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get comicRightToLeft => 'Right to left (manga)';
@override
- String get comicNeedsConnection =>
- 'This comic opens page by page from your server, so it needs a connection.';
+ String get comicNeedsConnection => 'This comic opens page by page from your server, so it needs a connection.';
@override
String get comicNoPages => 'No pages found in this comic.';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index c5bf62d7..d822e1c1 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -9825,6 +9825,82 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get readerTopBarProgressBoth => 'Both';
+ @override
+ String get readerSectionText => 'Text';
+
+ @override
+ String get readerSectionPage => 'Page';
+
+ @override
+ String get readerSectionTopBar => 'Top bar and screen';
+
+ @override
+ String get readerSectionControls => 'Controls';
+
+ @override
+ String get readerSectionStats => 'Stats';
+
+ @override
+ String get readerParagraphSpacing => 'Paragraph spacing';
+
+ @override
+ String get readerParagraphSpacingBook => 'Book\'s own';
+
+ @override
+ String get readerTapZones => 'Tap zones';
+
+ @override
+ String get readerTapZonesHint =>
+ 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';
+
+ @override
+ String get readerTapPrev => 'Previous page';
+
+ @override
+ String get readerTapNext => 'Next page';
+
+ @override
+ String get readerTapMenu => 'Show controls';
+
+ @override
+ String get readerTapNothing => 'Nothing';
+
+ @override
+ String get readerTapKeepMenu => 'One square has to show the controls';
+
+ @override
+ String get readerHideControls => 'Hide controls after';
+
+ @override
+ String get readerHideControlsNever => 'Never';
+
+ @override
+ String get readerBarNotes => 'Notes and highlights';
+
+ @override
+ String readerHideControlsAfter(int seconds) {
+ return '${seconds}s';
+ }
+
+ @override
+ String get playerDownloadStreamingInstead =>
+ 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';
+
+ @override
+ String get readerPageTurn => 'Page turn';
+
+ @override
+ String get readerPageTurnNone => 'None';
+
+ @override
+ String get readerPageTurnSlide => 'Slide';
+
+ @override
+ String get readerPageTurnCurl => 'Curl';
+
+ @override
+ String get readerPageTurnRipple => 'Ripple';
+
@override
String get readerScrollMode => 'Scroll mode';
diff --git a/lib/widgets/ebook_reader_view.dart b/lib/widgets/ebook_reader_view.dart
index 97d672bb..94e4240f 100644
--- a/lib/widgets/ebook_reader_view.dart
+++ b/lib/widgets/ebook_reader_view.dart
@@ -1,10 +1,12 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
-import 'dart:math' show min;
+import 'dart:math' show max, min;
+import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_epub_viewer/flutter_epub_viewer.dart';
+import 'package:flutter_inappwebview/flutter_inappwebview.dart' show CompressFormat, ScreenshotConfiguration;
import 'package:url_launcher/url_launcher.dart';
import 'dictionary_sheet.dart';
import '../services/dictionary_service.dart';
@@ -42,6 +44,8 @@ import '../services/transcription_service.dart';
import '../services/volume_key_service.dart';
import '../utils/chapter_title_match.dart';
import 'overlay_toast.dart';
+import 'page_curl.dart';
+import 'reader_tap_zones.dart';
import 'transcription_download_prompt.dart';
import 'narration_download_dialog.dart';
import 'progress_dialog.dart';
@@ -325,6 +329,39 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
EpubSpread _spread = EpubSpread.auto;
// Scroll down through the book instead of turning pages.
bool _scroll = false;
+ // How a page turns: 'none', 'slide' or one of the drawn turns.
+ String _turnStyle = 'slide';
+ ReaderTapZones _tapZones = const ReaderTapZones();
+ bool _editingTapZones = false;
+ // Space after each paragraph in em; below zero keeps the book's own.
+ double _paragraphSpacing = -1;
+ // Seconds before shown controls fade again; 0 keeps them until a tap.
+ int _controlsHideAfter = 5;
+ Timer? _controlsHideTimer;
+ // The curl is drawn here over pictures of the page, taken ahead of time so
+ // a turn can start at once.
+ final PageCurlController _curl = PageCurlController();
+ ui.Image? _curlShot;
+ String? _curlShotCfi;
+ Timer? _curlShotTimer;
+ bool _curling = false;
+ // Turns asked for while one plays, each played after it.
+ final List<bool> _pendingTurns = [];
+ int _curlRun = 0; // a newer turn makes an older one stop where it is
+ Completer<bool>? _curlLanded;
+ EdgeInsets _curlInset = EdgeInsets.zero;
+ // A sideways drag curling the page.
+ int? _curlPointer;
+ Offset? _curlDownAt;
+ DateTime _curlDownTime = DateTime.fromMillisecondsSinceEpoch(0);
+ bool? _curlDragForward;
+ bool _curlDragReady = false;
+ bool? _curlDragDecision;
+ Offset _curlDragLast = Offset.zero;
+ Offset _curlDragStart = Offset.zero;
+ Offset? _lastPointerAt;
+ DateTime _lastPointerTime = DateTime.fromMillisecondsSinceEpoch(0);
+ final List<(Duration, double)> _curlDragTrack = [];
// Keep the title and progress bar on screen above the page instead of
// fading them in over it. The page gets shorter, never covered.
bool _pinTop = false;
@@ -359,6 +396,9 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
static const _kKeepAwake = 'ereader_keep_awake';
// App-wide, not per account: one switch for every server's books.
static const _kScroll = 'ereader_scroll_mode';
+ static const _kTurnStyle = 'ereader_page_turn';
+ static const _kParagraphSpacing = 'ereader_paragraph_spacing';
+ static const _kControlsHide = 'ereader_controls_hide';
static const _kBarAction = 'ereader_bar_action';
// Gates the WebView mount until the entering route animation completes, so
@@ -426,12 +466,12 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
onPrev: () {
if (_autoScroll) return;
_userMoved('volume key');
- _epubController?.prev();
+ _turnPage(false);
},
onNext: () {
if (_autoScroll) return;
_userMoved('volume key');
- _epubController?.next();
+ _turnPage(true);
},
);
@@ -573,7 +613,13 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
_marginV = await ScopedPrefs.getInt(_kMarginV) ?? legacyMargin;
final si = (await ScopedPrefs.getInt(_kSpread) ?? 0).clamp(0, 2);
_spread = _spreadModes[si];
- _scroll = (await SharedPreferences.getInstance()).getBool(_kScroll) ?? false;
+ final prefs = await SharedPreferences.getInstance();
+ _scroll = prefs.getBool(_kScroll) ?? false;
+ final turn = prefs.getString(_kTurnStyle);
+ if (turn == 'none' || kDrawnTurnStyles.contains(turn)) _turnStyle = turn!;
+ _controlsHideAfter = prefs.getInt(_kControlsHide) ?? 5;
+ _tapZones = await ReaderTapZones.load();
+ _paragraphSpacing = await ScopedPrefs.getDouble(_kParagraphSpacing) ?? -1;
_themeId = await ScopedPrefs.getString(_kTheme) ?? '';
_fontId = await ScopedPrefs.getString(_kFont) ?? 'original';
_pinTop = await ScopedPrefs.getBool(_kPinTop) ?? false;
@@ -706,6 +752,148 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
await (await SharedPreferences.getInstance()).setBool(_kScroll, on);
}
+ // E-ink screens smear anything that moves, so pages turn at once there.
+ String get _turnNow => PlayerSettings.einkMode ? 'none' : _turnStyle;
+ // "Curl" in names here covers every turn drawn over pictures of the page.
+ bool get _curlOn => kDrawnTurnStyles.contains(_turnNow) && !_scroll && !_autoScroll;
+
+ // A ripple shows the new page coming through either way, so going back
+ // needs no picture of the earlier page first; only a curl plays backward.
+ bool get _revealsUnder => _turnNow != 'curl';
+
+ // The page itself only knows that the app draws these turns.
+ void _applyTurnStyle() =>
+ unawaited(_epubController?.setTurnStyle(kDrawnTurnStyles.contains(_turnNow) ? 'curl' : _turnNow));
+
+ String _turnStyleLabel(AppLocalizations l, String style) => switch (style) {
+ 'none' => l.readerPageTurnNone,
+ 'slide' => l.readerPageTurnSlide,
+ 'curl' => l.readerPageTurnCurl,
+ _ => l.readerPageTurnRipple,
+ };
+
+ /// Where a turn starts: the finger that asked for it, or the side the page
+ /// is going to.
+ Offset _turnOrigin(bool forward) {
+ final at = _lastPointerAt;
+ if (at != null && DateTime.now().difference(_lastPointerTime) < const Duration(milliseconds: 800)) {
+ return at;
+ }
+ final size = _curl.size;
+ return Offset(size.width * (forward ? 0.85 : 0.15), size.height * 0.55);
+ }
+
+ Future<void> _updateParagraphSpacing(double em) async {
+ setState(() => _paragraphSpacing = em);
+ _applySettings();
+ await ScopedPrefs.setDouble(_kParagraphSpacing, em);
+ }
+
+ static String _emLabel(double v) =>
+ v == v.roundToDouble() ? v.toStringAsFixed(0) : v.toStringAsFixed(2).replaceAll(RegExp(r'0$'), '');
+
+ Future<void> _updateControlsHideAfter(int seconds) async {
+ setState(() => _controlsHideAfter = seconds);
+ _armControlsHide();
+ await (await SharedPreferences.getInstance()).setInt(_kControlsHide, seconds);
+ }
+
+ /// Shown controls fade on their own after a while. A finger on them, a
+ /// sheet open over the reader or the tap zone editor keeps them up.
+ void _armControlsHide() {
+ _controlsHideTimer?.cancel();
+ if (!_showControls || _controlsHideAfter <= 0) return;
+ _controlsHideTimer = Timer(Duration(seconds: _controlsHideAfter), () {
+ if (!mounted || !_showControls) return;
+ if (_editingTapZones || !(ModalRoute.of(context)?.isCurrent ?? true)) {
+ _armControlsHide();
+ return;
+ }
+ setState(() => _showControls = false);
+ });
+ }
+
+ Widget _controlsTouchGuard(Widget child) => Listener(
+ onPointerDown: (_) => _controlsHideTimer?.cancel(),
+ onPointerUp: (_) => _armControlsHide(),
+ onPointerCancel: (_) => _armControlsHide(),
+ child: child,
+ );
+
+ void _editTapZones() {
+ setState(() {
+ _editingTapZones = true;
+ _showControls = false;
+ });
+ }
+
+ bool _barButtonShown(String id) => switch (id) {
+ 'readalong' => _transcriptionOn || _useNarration,
+ 'chapters' => _chapters.isNotEmpty,
+ _ => true,
+ };
+
+ bool _barButtonLit(String id) => switch (id) {
+ 'bookmark' => _hasBookmarkAtCurrent,
+ 'readalong' => _readAlongOn,
+ 'autoscroll' => _autoScroll,
+ _ => false,
+ };
+
+ IconData _barButtonIcon(String id) => switch (id) {
+ 'bookmark' => _hasBookmarkAtCurrent ? Icons.bookmark_rounded : Icons.bookmark_border_rounded,
+ 'readalong' => Icons.graphic_eq_rounded,
+ 'notes' => Icons.sticky_note_2_outlined,
+ 'autoscroll' => Icons.swap_vert_rounded,
+ 'chapters' => Icons.list_rounded,
+ _ => Icons.text_fields_rounded,
+ };
+
+ String _barButtonLabel(AppLocalizations l, String id) => switch (id) {
+ 'bookmark' => l.bookmark,
+ 'readalong' => l.readAlong,
+ 'notes' => l.readerBarNotes,
+ 'autoscroll' => l.readerAutoScroll,
+ 'chapters' => l.chapters,
+ _ => l.readerSettings,
+ };
+
+ void _runBarButton(String id) {
+ switch (id) {
+ case 'chapters':
+ _showChapterList();
+ case 'bookmark':
+ _toggleBookmark();
+ case 'readalong':
+ _toggleReadAlong();
+ case 'notes':
+ _showAnnotationsSheet();
+ case 'autoscroll':
+ _toggleAutoScroll();
+ default:
+ _showSettingsSheet();
+ }
+ }
+
+ Widget _barButton(String id, Color fg, Color accent) {
+ final button = IconButton(
+ icon: Icon(_barButtonIcon(id), color: _barButtonLit(id) ? accent : fg),
+ // No tooltip on auto scroll: its long press opens the sleep timer.
+ tooltip: id == 'autoscroll' ? null : _barButtonLabel(AppLocalizations.of(context)!, id),
+ onPressed: () => _runBarButton(id),
+ );
+ if (id != 'autoscroll') return button;
+ return GestureDetector(onLongPress: _showAutoScrollSleepSheet, child: button);
+ }
+
+ Future<void> _updateTurnStyle(String style) async {
+ if (style == _turnStyle) return;
+ setState(() => _turnStyle = style);
+ _applyTurnStyle();
+ _refreshCurlShot();
+ await (await SharedPreferences.getInstance()).setString(_kTurnStyle, style);
+ }
+
EpubTheme _buildTheme(_ReaderPalette p) {
// No foregroundColor on purpose: all colors live in customCss. The
// plugin's loadBook ends with updateTheme(background, foreground) WITHOUT
@@ -754,6 +942,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// Contain keeps a narrowed picture's shape without resizing small
// inline ones.
'img': {'max-width': '100% !important', 'object-fit': 'contain'},
+ if (_paragraphSpacing >= 0)
+ 'p': {'margin-top': '0 !important', 'margin-bottom': '${_paragraphSpacing}em !important'},
},
);
}
@@ -859,6 +1049,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
_routeAnim?.removeStatusListener(_onRouteAnim);
PlayerSettings.settingsChanged.removeListener(_loadSkipSettings);
_pendingTapAction?.cancel();
+ _curlShotTimer?.cancel();
+ _controlsHideTimer?.cancel();
// Restore system UI when leaving
_setFullscreen(false);
super.dispose();
@@ -880,6 +1072,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
void _toggleControls() {
_wakeScreenAgain();
setState(() => _showControls = !_showControls);
+ _armControlsHide();
}
DateTime _lastReaderTap = DateTime.fromMillisecondsSinceEpoch(0);
@@ -887,13 +1080,14 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
DateTime? _highlightTapAt;
/// Shared tap handler: left quarter = previous page, right quarter = next,
- /// center = toggle controls. [frac] is the tap's x position 0..1 across the
- /// page. Debounced so the touch and injected-click paths can't double-fire.
+ /// center = toggle controls, or whatever the tap grid says. [frac] and [fy]
+ /// are the tap's position 0..1 across and down the page. Debounced so the
+ /// touch and injected-click paths can't double-fire.
/// A tap on a highlight lands here too, and the markClicked event only
/// arrives from the WebView a beat later - so when the book has highlights
/// the action commits after a short grace window that the highlight tap can
/// cancel. No highlights, no added latency.
- void _readerTapAt(double frac, String source) {
+ void _readerTapAt(double frac, double fy, String source) {
_wakeScreenAgain();
// While auto scroll runs, the in-WebView pad owns taps: pause, resume and
// press-and-hold to stop. This Listener sees raw pointers regardless of the
@@ -909,10 +1103,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// In scroll mode the finger moves the page, so a tap only shows or hides
// the controls. Edge taps turn pages during read along too; the page then
// stops following the narration until you go back to it.
- final action = _scroll
- ? 'menu'
- : (frac < 0.25 ? 'prev' : (frac > 0.75 ? 'next' : 'menu'));
- debugPrint('[ReaderTap] frac=${frac.toStringAsFixed(2)} src=$source -> $action ctrl=${_epubController != null}');
+ final action = _scroll ? 'menu' : _tapZones.actionAt(frac, fy);
+ debugPrint('[ReaderTap] frac=${frac.toStringAsFixed(2)},${fy.toStringAsFixed(2)} src=$source -> $action ctrl=${_epubController != null}');
final hasHighlights =
_annotations.any((a) => a.type == AnnotationType.highlight);
if (!hasHighlights) {
@@ -933,15 +1125,279 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
void _commitReaderTap(String action) {
if (action == 'prev') {
_userMoved('tap');
- _epubController?.prev();
+ _turnPage(false);
} else if (action == 'next') {
_userMoved('tap');
- _epubController?.next();
- } else {
+ _turnPage(true);
+ } else if (action == 'menu') {
_toggleControls();
}
}
+ /// Turns the page the way the reader has chosen. The slide plays inside
+ /// the page itself; the curl is drawn here, over pictures of the page.
+ /// [fresh] pictures the page as it is right now rather than trusting the
+ /// one taken when it came up (read along recolors it as it goes).
+ Future<void> _turnPage(bool forward, {bool fresh = false}) async {
+ final c = _epubController;
+ if (c == null) return;
+ if (_curlOn && _curling && _curlDragForward == null && !_curlDragReady) {
+ // Quick taps each get their own turn: this one hurries along, and the
+ // next plays right after it rather than jumping the page.
+ if (_pendingTurns.length < 3) _pendingTurns.add(forward);
+ _curl.hurry();
+ return;
+ }
+ if (!_curlOn || _curling) {
+ // A turn in the middle of a drag stops it and turns at once.
+ if (_curling) _stopCurl();
+ forward ? c.next() : c.prev();
+ return;
+ }
+ final run = ++_curlRun;
+ _curling = true;
+ try {
+ final shot = (fresh ? null : _readyCurlShot) ?? await _pictureOfPage();
+ if (run != _curlRun) return;
+ if (shot == null) {
+ forward ? c.next() : c.prev();
+ return;
+ }
+ final origin = _turnOrigin(forward);
+ if (forward || _revealsUnder) {
+ _curl.show(shot, origin: origin, grabY: origin.dy);
+ // A curl lifts the page where it was touched.
+ if (_turnNow == 'curl') _curl.follow(Offset(max(origin.dx, _curl.size.width * 0.75), origin.dy));
+ await WidgetsBinding.instance.endOfFrame;
+ if (run != _curlRun) return;
+ forward ? c.next() : c.prev();
+ await _settleCurl(away: true);
+ } else {
+ final prev = await _turnUnderCurl(c, forward: false, cover: shot, run: run);
+ if (prev == null || run != _curlRun) return;
+ _curl.show(prev, under: shot, away: 1, origin: origin, grabY: origin.dy);
+ await _settleCurl(away: false);
+ }
+ } finally {
+ if (run == _curlRun) _endCurl();
+ }
+ }
+
+ /// Plays a turn out, quickly when more are waiting behind it.
+ Future<void> _settleCurl({required bool away}) {
+ final settling = _curl.settle(away: away);
+ if (_pendingTurns.isNotEmpty) _curl.hurry();
+ return settling;
+ }
+
+ void _stopCurl() {
+ _curlRun++;
+ _pendingTurns.clear();
+ _endCurl();
+ }
+
+ void _endCurl() {
+ _curling = false;
+ _curlDragReady = false;
+ _curl.hide();
+ _queueCurlShot();
+ if (_pendingTurns.isNotEmpty) unawaited(_turnPage(_pendingTurns.removeAt(0), fresh: true));
+ }
+
+ /// Turns the real page under a picture of this one, then pictures the page
+ /// it came to. Null when the page didn't move (the start or end of the
+ /// book).
+ Future<ui.Image?> _turnUnderCurl(EpubController c,
+ {required bool forward, required ui.Image cover, required int run}) async {
+ _curl.show(cover);
+ await WidgetsBinding.instance.endOfFrame;
+ if (run != _curlRun) return null;
+ if (!await _turnUnderCover(c, forward, run)) return null;
+ return _pictureOfPage();
+ }
+
+ /// Turns the real page while a picture covers it, and waits for it to land.
+ Future<bool> _turnUnderCover(EpubController c, bool forward, int run) async {
+ final landed = _curlLanded = Completer<bool>();
+ forward ? c.next() : c.prev();
+ final moved = await landed.future.timeout(const Duration(milliseconds: 700), onTimeout: () => false);
+ if (identical(_curlLanded, landed)) _curlLanded = null;
+ if (!moved || run != _curlRun) return false;
+ // Let the page paint before it is pictured.
+ await Future.delayed(const Duration(milliseconds: 40));
+ return run == _curlRun;
+ }
+
+ Future<ui.Image?> _pictureOfPage() async {
+ final wc = _epubController?.webViewController;
+ if (wc == null) return null;
+ final started = DateTime.now();
+ try {
+ final bytes = await wc.takeScreenshot(
+ screenshotConfiguration: ScreenshotConfiguration(compressFormat: CompressFormat.JPEG, quality: 92));
+ if (bytes == null || bytes.isEmpty) return null;
+ final codec = await ui.instantiateImageCodec(bytes);
+ final image = (await codec.getNextFrame()).image;
+ debugPrint('[PageCurl] pictured the page in ${DateTime.now().difference(started).inMilliseconds}ms '
+ '(${image.width}x${image.height})');
+ return image;
+ } catch (e) {
+ debugPrint('[PageCurl] could not picture the page: $e');
+ return null;
+ }
+ }
+
+ ui.Image? get _readyCurlShot => _curlShotCfi != null && _curlShotCfi == _currentCfi ? _curlShot : null;
+
+ /// Pictures the page once it has settled, so the next curl starts at once.
+ void _queueCurlShot() {
+ if (!_curlOn) return;
+ _curlShotTimer?.cancel();
+ _curlShotTimer = Timer(const Duration(milliseconds: 300), () async {
+ if (!mounted || _curling || !_curlOn) return;
+ final cfi = _currentCfi;
+ final shot = await _pictureOfPage();
+ if (shot == null || !mounted || _curling || _currentCfi != cfi) return;
+ _curlShot = shot;
+ _curlShotCfi = cfi;
+ });
+ }
+
+ /// The page looks different now (a highlight, the theme, the font).
+ void _refreshCurlShot() {
+ _curlShotCfi = null;
+ _curlShot = null;
+ _queueCurlShot();
+ }
+
+ void _curlDragDown(PointerDownEvent e) {
+ if (_curlPointer != null) {
+ // A second finger: a pinch or a slip, not a turn.
+ if (_curlDragForward == null) _curlDownAt = null;
+ return;
+ }
+ _curlPointer = e.pointer;
+ _lastPointerAt = e.localPosition + _curlInset.topLeft;
+ _lastPointerTime = DateTime.now();
+ _curlDownAt = _curlOn && !_curling && _selectionText == null ? e.localPosition : null;
+ _curlDownTime = DateTime.now();
+ _curlDragForward = null;
+ _curlDragDecision = null;
+ _curlDragTrack.clear();
+ }
+
+ void _curlDragMove(PointerMoveEvent e) {
+ final down = _curlDownAt;
+ if (down == null || e.pointer != _curlPointer) return;
+ final d = e.localPosition - down;
+ final at = e.localPosition + _curlInset.topLeft;
+ if (_curlDragForward == null) {
+ if (d.dx.abs() < 14 || d.dx.abs() < d.dy.abs() * 1.2) {
+ if (d.dy.abs() > 14) _curlDownAt = null;
+ return;
+ }
+ // A finger that rested before moving was pressing to select text.
+ if (_selectionText != null || DateTime.now().difference(_curlDownTime) > const Duration(milliseconds: 400)) {
+ _curlDownAt = null;
+ return;
+ }
+ _curlDragForward = d.dx < 0;
+ _curlDragLast = at;
+ _curlDragStart = down + _curlInset.topLeft;
+ unawaited(_startCurlDrag(_curlDragForward!, down + _curlInset.topLeft));
+ }
+ _curlDragLast = at;
+ _curlDragTrack.add((e.timeStamp, at.dx));
+ if (_curlDragTrack.length > 6) _curlDragTrack.removeAt(0);
+ if (_curlDragReady) _curl.follow(_curlDragPoint(_curlDragForward!, at));
+ }
+
+ /// Pulling back, the fold follows the finger rather than the page's edge,
+ /// so the page comes in from the left instead of half of it at once. The
+ /// other drawn turns go by how far across the page the finger has come.
+ Offset _curlDragPoint(bool forward, Offset at) {
+ final w = _curl.size.width;
+ if (_turnNow == 'curl') return forward ? at : Offset(2 * at.dx - w, at.dy);
+ final away =
+ ((forward ? _curlDragStart.dx - at.dx : at.dx - _curlDragStart.dx) / (w * 0.8)).clamp(0.0, 1.0);
+ return Offset(w - 2 * w * away, at.dy);
+ }
+
+ Future<void> _startCurlDrag(bool forward, Offset start) async {
+ final c = _epubController;
+ if (c == null) return;
+ final run = ++_curlRun;
+ _curling = true;
+ _curlDragReady = false;
+ final shot = _readyCurlShot ?? await _pictureOfPage();
+ if (run != _curlRun) return;
+ if (shot == null) {
+ _endCurl();
+ forward ? c.next() : c.prev();
+ return;
+ }
+ if (forward || _revealsUnder) {
+ _curl.show(shot, grabY: start.dy, origin: start);
+ await WidgetsBinding.instance.endOfFrame;
+ if (run != _curlRun) return;
+ forward ? c.next() : c.prev();
+ } else {
+ final prev = await _turnUnderCurl(c, forward: false, cover: shot, run: run);
+ if (run != _curlRun) return;
+ if (prev == null) {
+ _endCurl();
+ return;
+ }
+ _curl.show(prev, under: shot, away: 1, grabY: start.dy, origin: start);
+ }
+ _curlDragReady = true;
+ final decided = _curlDragDecision;
+ if (decided != null) {
+ unawaited(_endCurlDrag(forward, decided, run));
+ } else {
+ _curl.follow(_curlDragPoint(forward, _curlDragLast));
+ }
+ }
+
+ /// True when the finger was curling the page, so it isn't also a tap.
+ bool _curlDragUp(PointerEvent e, {bool cancelled = false}) {
+ if (e.pointer == _curlPointer) _curlPointer = null;
+ final forward = _curlDragForward;
+ final down = _curlDownAt;
+ _curlDownAt = null;
+ if (forward == null || down == null) return false;
+ _curlDragForward = null;
+ final w = _curl.size.width;
+ final moved = _curlDragLast.dx - (down.dx + _curlInset.left);
+ var speed = 0.0;
+ if (_curlDragTrack.length > 1) {
+ final (t0, x0) = _curlDragTrack.first;
+ final (t1, x1) = _curlDragTrack.last;
+ final ms = (t1 - t0).inMicroseconds / 1000.0;
+ if (ms > 0) speed = (x1 - x0) / ms * 1000;
+ }
+ final complete = !cancelled &&
+ (forward ? (moved < -w * 0.18 || speed < -500) : (moved > w * 0.18 || speed > 500));
+ _curlDragDecision = complete;
+ if (_curlDragReady) unawaited(_endCurlDrag(forward, complete, _curlRun));
+ return true;
+ }
+
+ Future<void> _endCurlDrag(bool forward, bool complete, int run) async {
+ final c = _epubController;
+ _curlDragReady = false;
+ try {
+ // The picture is this page with the real page turned under it, except
+ // for a curl going back: then it is the page before, and the real page
+ // is already on it.
+ await _curl.settle(away: forward || _revealsUnder ? complete : !complete);
+ if (run != _curlRun || complete || c == null) return;
+ await _turnUnderCover(c, !forward, run);
+ } finally {
+ if (run == _curlRun) _endCurl();
+ }
+ }
+
/// epub.js touch callbacks don't fire on iOS, so inject our own click
/// listener into each rendered section and route it to a handler we register
/// (the same callHandler bridge the selection menu uses). Skips taps while
@@ -952,16 +1408,17 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
callback: (args) {
final frac = args.isNotEmpty ? (args[0] as num?)?.toDouble() : null;
final src = args.length > 1 ? '${args[1]}' : 'js';
- if (frac != null) _readerTapAt(frac.clamp(0.0, 1.0), 'js:$src');
+ final fy = args.length > 2 ? (args[2] as num?)?.toDouble() : null;
+ if (frac != null) _readerTapAt(frac.clamp(0.0, 1.0), (fy ?? 0.5).clamp(0.0, 1.0), 'js:$src');
},
);
_epubController?.webViewController?.evaluateJavascript(source: '''
(function(){
if (window.__absorbTapInit) return;
window.__absorbTapInit = true;
- function send(frac, kind){
- try { if(window.flutter_inappwebview){ window.flutter_inappwebview.callHandler('absorbReaderTap', frac, kind); return; } } catch(e){}
- try { if(window.parent && window.parent.flutter_inappwebview){ window.parent.flutter_inappwebview.callHandler('absorbReaderTap', frac, kind); } } catch(e){}
+ function send(frac, kind, fy){
+ try { if(window.flutter_inappwebview){ window.flutter_inappwebview.callHandler('absorbReaderTap', frac, kind, fy); return; } } catch(e){}
+ try { if(window.parent && window.parent.flutter_inappwebview){ window.parent.flutter_inappwebview.callHandler('absorbReaderTap', frac, kind, fy); } } catch(e){}
}
function onTap(e, kind){
try {
@@ -973,7 +1430,10 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
var cx = (e.clientX != null) ? e.clientX
: (e.changedTouches && e.changedTouches[0] ? e.changedTouches[0].clientX : null);
if (cx == null) return;
- send(cx / w, kind);
+ var h = win.innerHeight || window.innerHeight;
+ var cy = (e.clientY != null) ? e.clientY
+ : (e.changedTouches && e.changedTouches[0] ? e.changedTouches[0].clientY : null);
+ send(cx / w, kind, h && cy != null ? cy / h : 0.5);
} catch(err){}
}
function attach(doc){
@@ -985,13 +1445,16 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
if(e.touches.length===1){_tsx=e.touches[0].clientX;_tsy=e.touches[0].clientY;_dragged=false;}
else{_tsx=null;}
},{passive:true});
+ // In scroll mode nothing moves sideways, and a listener that can
+ // cancel makes every scroll wait on this script.
+ var scrolled=document.body.classList.contains('absorb-scrolled');
doc.addEventListener('touchmove',function(e){
if(_tsx==null)return;
var dx=Math.abs(e.touches[0].clientX-_tsx),dy=Math.abs(e.touches[0].clientY-_tsy);
if(dx>10||dy>10)_dragged=true;
// Swallow horizontal drags so epub.js can't partially scroll the column.
- if(dx>dy)e.preventDefault();
- },{passive:false});
+ if(dx>dy&&!scrolled)e.preventDefault();
+ },{passive:scrolled});
function onTapGuarded(e,kind){
if(_dragged){ if(kind==='touchend')_dragged=false; return; }
onTap(e,kind);
@@ -1289,6 +1752,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
/// painted synced highlights a few lines away from their own text. The marks
/// keep live DOM ranges, so re-rendering the panes puts every box back.
void _repaintHighlightMarks() {
+ _refreshCurlShot();
if (!_annotations.any((a) => a.type == AnnotationType.highlight)) return;
_epubController?.webViewController?.evaluateJavascript(source: '''
try {
@@ -1792,6 +2256,11 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// Live preview for the side-margin slider so the WebView only re-paginates
// when the drag ends, not on every step.
int hPreview = _marginH;
+ var paraPreview = _paragraphSpacing;
+ Widget section(String title) => Padding(
+ padding: const EdgeInsets.only(top: 16, bottom: 8),
+ child: Text(title, style: tt.labelLarge?.copyWith(color: cs.primary, fontWeight: FontWeight.w600)),
+ );
var sheetRaMode = LyricsService.instance.readAlongMode;
var sheetRaColor = LyricsService.instance.readAlongColor;
showModalBottomSheet(
@@ -1833,7 +2302,31 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
),
const SizedBox(height: 16),
Text(l.readerSettings, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),
- const SizedBox(height: 20),
+ const SizedBox(height: 4),
+
+ section(l.readerSectionText),
+ // Font — opens a picker with built-in + downloadable fonts.
+ InkWell(
+ borderRadius: BorderRadius.circular(8),
+ onTap: () async {
+ await _showFontSheet();
+ setSheetState(() {});
+ },
+ child: Padding(
+ padding: const EdgeInsets.symmetric(vertical: 8),
+ child: Row(children: [
+ Icon(Icons.font_download_outlined, size: 20, color: cs.onSurfaceVariant),
+ const SizedBox(width: 12),
+ Text(l.readerFont, style: tt.bodyMedium),
+ const Spacer(),
+ Text(_font.label,
+ style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),
+ const SizedBox(width: 4),
+ Icon(Icons.chevron_right_rounded, size: 20, color: cs.onSurfaceVariant),
+ ]),
+ ),
+ ),
+ const SizedBox(height: 4),
// Font size
Row(children: [
@@ -1879,6 +2372,25 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
),
const SizedBox(height: 8),
+ // Paragraph spacing; all the way left keeps the book's own.
+ Row(children: [
+ Icon(Icons.segment_rounded, size: 20, color: cs.onSurfaceVariant),
+ const SizedBox(width: 12),
+ Text(l.readerParagraphSpacing, style: tt.bodyMedium),
+ const Spacer(),
+ Text(paraPreview < 0 ? l.readerParagraphSpacingBook : _emLabel(paraPreview),
+ style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),
+ ]),
+ Slider(
+ value: paraPreview < 0 ? -0.25 : paraPreview,
+ min: -0.25,
+ max: 2.0,
+ divisions: 9,
+ onChanged: (v) => setSheetState(() => paraPreview = v < 0 ? -1 : v),
+ onChangeEnd: (v) => _updateParagraphSpacing(v < 0 ? -1 : v),
+ ),
+ const SizedBox(height: 8),
+
// Text alignment
Row(children: [
Icon(Icons.format_align_left_rounded, size: 20, color: cs.onSurfaceVariant),
@@ -1901,6 +2413,29 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
]),
const SizedBox(height: 8),
+ // Theme (background + text colors)
+ Row(children: [
+ Icon(Icons.palette_outlined, size: 20, color: cs.onSurfaceVariant),
+ const SizedBox(width: 12),
+ Text(l.readerTheme, style: tt.bodyMedium),
+ ]),
+ const SizedBox(height: 10),
+ Row(
+ children: [
+ for (final p in _kReaderPalettes) ...[
+ _themeSwatch(
+ p,
+ (_themeId.isEmpty ? _resolvePalette(context).id : _themeId) == p.id,
+ () { setSheetState(() {}); _updateReaderTheme(p.id); },
+ cs,
+ ),
+ const SizedBox(width: 12),
+ ],
+ ],
+ ),
+ const SizedBox(height: 16),
+
+ section(l.readerSectionPage),
// Side margins (left + right)
Row(children: [
Icon(Icons.padding_rounded, size: 20, color: cs.onSurfaceVariant),
@@ -1950,19 +2485,6 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
_updateScroll(v);
},
),
- SwitchListTile(
- contentPadding: EdgeInsets.zero,
- title: Text(l.readerLogReading, style: tt.bodyMedium),
- subtitle: Text(l.readerLogReadingHint,
- style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
- value: _logReading,
- onChanged: (v) {
- _setLogReading(v);
- setSheetState(() {});
- },
- ),
- const SizedBox(height: 4),
-
// Page layout — Auto shows two pages on wide screens (tablets).
Row(children: [
Icon(Icons.auto_stories_rounded, size: 20, color: cs.onSurfaceVariant),
@@ -1989,6 +2511,57 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
},
),
),
+ const SizedBox(height: 12),
+ Row(children: [
+ Icon(Icons.swipe_left_rounded, size: 20, color: cs.onSurfaceVariant),
+ const SizedBox(width: 12),
+ Text(l.readerPageTurn, style: tt.bodyMedium),
+ ]),
+ const SizedBox(height: 8),
+ Wrap(
+ spacing: 8,
+ runSpacing: 8,
+ children: [
+ for (final style in const ['none', 'slide', ...kDrawnTurnStyles])
+ ChoiceChip(
+ label: Text(_turnStyleLabel(l, style)),
+ selected: _turnStyle == style,
+ showCheckmark: false,
+ // A scrolling book has no pages to turn.
+ onSelected: _scroll
+ ? null
+ : (_) {
+ setSheetState(() {});
+ _updateTurnStyle(style);
+ },
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ InkWell(
+ borderRadius: BorderRadius.circular(8),
+ // A scrolling book shows the controls on any tap.
+ onTap: _scroll
+ ? null
+ : () {
+ Navigator.pop(ctx);
+ _editTapZones();
+ },
+ child: Padding(
+ padding: const EdgeInsets.symmetric(vertical: 8),
+ child: Row(children: [
+ Icon(Icons.touch_app_outlined, size: 20, color: cs.onSurfaceVariant),
+ const SizedBox(width: 12),
+ Text(l.readerTapZones,
+ style: tt.bodyMedium?.copyWith(
+ color: _scroll ? cs.onSurface.withValues(alpha: 0.38) : null)),
+ const Spacer(),
+ Icon(Icons.chevron_right_rounded, size: 20, color: cs.onSurfaceVariant),
+ ]),
+ ),
+ ),
+
+ section(l.readerSectionTopBar),
SwitchListTile(
contentPadding: EdgeInsets.zero,
title: Text(l.readerPinTopBar, style: tt.bodyMedium),
@@ -2036,60 +2609,75 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
),
const SizedBox(height: 8),
- // Theme (background + text colors)
+ const SizedBox(height: 8),
Row(children: [
- Icon(Icons.palette_outlined, size: 20, color: cs.onSurfaceVariant),
+ Icon(Icons.timer_outlined, size: 20, color: cs.onSurfaceVariant),
const SizedBox(width: 12),
- Text(l.readerTheme, style: tt.bodyMedium),
+ Text(l.readerHideControls, style: tt.bodyMedium),
]),
- const SizedBox(height: 10),
- Row(
- children: [
- for (final p in _kReaderPalettes) ...[
- _themeSwatch(
- p,
- (_themeId.isEmpty ? _resolvePalette(context).id : _themeId) == p.id,
- () { setSheetState(() {}); _updateReaderTheme(p.id); },
- cs,
- ),
- const SizedBox(width: 12),
+ const SizedBox(height: 8),
+ SizedBox(
+ width: double.infinity,
+ child: SegmentedButton<int>(
+ segments: [
+ ButtonSegment(value: 0, label: Text(l.readerHideControlsNever)),
+ for (final secs in const [3, 5, 10])
+ ButtonSegment(value: secs, label: Text(l.readerHideControlsAfter(secs))),
],
- ],
+ selected: {_controlsHideAfter},
+ showSelectedIcon: false,
+ onSelectionChanged: (sel) {
+ setSheetState(() {});
+ _updateControlsHideAfter(sel.first);
+ },
+ ),
),
- const SizedBox(height: 16),
+ const SizedBox(height: 8),
- // Font — opens a picker with built-in + downloadable fonts.
- InkWell(
- borderRadius: BorderRadius.circular(8),
- onTap: () async {
- await _showFontSheet();
- setSheetState(() {});
- },
- child: Padding(
- padding: const EdgeInsets.symmetric(vertical: 8),
- child: Row(children: [
- Icon(Icons.font_download_outlined, size: 20, color: cs.onSurfaceVariant),
- const SizedBox(width: 12),
- Text(l.readerFont, style: tt.bodyMedium),
- const Spacer(),
- Text(_font.label,
- style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),
- const SizedBox(width: 4),
- Icon(Icons.chevron_right_rounded, size: 20, color: cs.onSurfaceVariant),
- ]),
+ section(l.readerSectionControls),
+
+ // Volume keys turn pages (normal: up = previous, down = next)
+ Row(children: [
+ Icon(Icons.swap_vert_rounded, size: 20, color: cs.onSurfaceVariant),
+ const SizedBox(width: 12),
+ Expanded(child: Text(l.readerVolumeNav, style: tt.bodyMedium)),
+ ]),
+ const SizedBox(height: 8),
+ SizedBox(
+ width: double.infinity,
+ child: SegmentedButton<String>(
+ showSelectedIcon: false,
+ segments: [
+ ButtonSegment(value: 'off', label: Text(l.readerVolumeNavOff)),
+ ButtonSegment(value: 'normal', label: Text(l.readerVolumeNavNormal)),
+ ButtonSegment(value: 'mirrored', label: Text(l.readerVolumeNavMirrored)),
+ ],
+ selected: {_volumeNavMode},
+ onSelectionChanged: (sel) {
+ final v = sel.first;
+ setSheetState(() {});
+ setState(() => _volumeNavMode = v);
+ PlayerSettings.setEreaderVolumeNav(v);
+ },
+ style: const ButtonStyle(visualDensity: VisualDensity.compact),
),
),
- const SizedBox(height: 16),
+ if (_volumeNavMode != 'off')
+ SwitchListTile(
+ contentPadding: EdgeInsets.zero,
+ title: Text(l.readerVolumeNavWhilePlaying, style: tt.bodyMedium),
+ value: _volumeNavWhilePlaying,
+ onChanged: (v) {
+ setSheetState(() {});
+ setState(() => _volumeNavWhilePlaying = v);
+ PlayerSettings.setEreaderVolumeNavWhilePlaying(v);
+ },
+ ),
// Read along, mirrored from the transcription settings so the
// reader can change them without leaving the book.
if (_transcriptionOn || _useNarration) ...[
- Row(children: [
- Icon(Icons.graphic_eq_rounded, size: 20, color: cs.onSurfaceVariant),
- const SizedBox(width: 12),
- Expanded(child: Text(l.readAlong, style: tt.bodyMedium)),
- ]),
- const SizedBox(height: 8),
+ section(l.readAlong),
// E-ink always follows by sentence, and an EPUB's own
// narration is timed by the sentence, so the choice is hidden.
if (!PlayerSettings.einkMode && !_useNarration) ...[
@@ -2136,43 +2724,19 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
const SizedBox(height: 16),
],
- // Volume keys turn pages (normal: up = previous, down = next)
- Row(children: [
- Icon(Icons.swap_vert_rounded, size: 20, color: cs.onSurfaceVariant),
- const SizedBox(width: 12),
- Expanded(child: Text(l.readerVolumeNav, style: tt.bodyMedium)),
- ]),
- const SizedBox(height: 8),
- SizedBox(
- width: double.infinity,
- child: SegmentedButton<String>(
- showSelectedIcon: false,
- segments: [
- ButtonSegment(value: 'off', label: Text(l.readerVolumeNavOff)),
- ButtonSegment(value: 'normal', label: Text(l.readerVolumeNavNormal)),
- ButtonSegment(value: 'mirrored', label: Text(l.readerVolumeNavMirrored)),
- ],
- selected: {_volumeNavMode},
- onSelectionChanged: (sel) {
- final v = sel.first;
- setSheetState(() {});
- setState(() => _volumeNavMode = v);
- PlayerSettings.setEreaderVolumeNav(v);
- },
- style: const ButtonStyle(visualDensity: VisualDensity.compact),
- ),
+ section(l.readerSectionStats),
+ SwitchListTile(
+ contentPadding: EdgeInsets.zero,
+ title: Text(l.readerLogReading, style: tt.bodyMedium),
+ subtitle: Text(l.readerLogReadingHint,
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ value: _logReading,
+ onChanged: (v) {
+ _setLogReading(v);
+ setSheetState(() {});
+ },
),
- if (_volumeNavMode != 'off')
- SwitchListTile(
- contentPadding: EdgeInsets.zero,
- title: Text(l.readerVolumeNavWhilePlaying, style: tt.bodyMedium),
- value: _volumeNavWhilePlaying,
- onChanged: (v) {
- setSheetState(() {});
- setState(() => _volumeNavWhilePlaying = v);
- PlayerSettings.setEreaderVolumeNavWhilePlaying(v);
- },
- ),
+
],
),
),
@@ -2181,7 +2745,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
);
},
),
- );
+ ).whenComplete(_refreshCurlShot);
}
static const double _autoScrollMin = 6;
@@ -3976,11 +4540,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
} else if (where == 'after' || where == 'before') {
_narrationTurnAt = now;
_readAlongTurnPending = now;
- if (where == 'after') {
- _epubController?.next();
- } else {
- _epubController?.prev();
- }
+ unawaited(_turnPage(where == 'after', fresh: true));
} else if (where == 'missing' && !identical(_narrationWentTo, clip)) {
_narrationWentTo = clip;
_narrationTurnAt = now;
@@ -4860,11 +5420,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// position jump silently did nothing on some devices, and a target more
// than a page away simply takes another step on the next tick.
debugPrint('[ReadAlong] turning ${back ? 'back' : 'forward'}: $why');
- if (back) {
- _epubController?.prev();
- } else {
- _epubController?.next();
- }
+ unawaited(_turnPage(!back, fresh: true));
}
/// Find the line's text in the rendered pages and move the follow-coloring
@@ -5508,32 +6064,74 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
? (_chapterPageTotal > 0 ? '${(chapterProgress * 100).round()}%' : '')
: '${(bookProgress * 100).toStringAsFixed(1)}%';
return Padding(
- padding: const EdgeInsets.fromLTRB(20, 8, 20, 12),
+ padding: const EdgeInsets.fromLTRB(8, 4, 8, 12),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
- Text(
- widget.title,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- textAlign: TextAlign.center,
- style: TextStyle(
- color: fg,
- fontWeight: FontWeight.w600,
- fontSize: 16,
- ),
+ Row(
+ children: [
+ SizedBox(
+ width: 40,
+ height: 36,
+ child: IconButton(
+ padding: EdgeInsets.zero,
+ iconSize: 22,
+ tooltip: MaterialLocalizations.of(context).backButtonTooltip,
+ icon: Icon(Icons.arrow_back_rounded, color: fg),
+ onPressed: _handleClose,
+ ),
+ ),
+ Expanded(
+ child: Text(
+ widget.title,
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: fg,
+ fontWeight: FontWeight.w600,
+ fontSize: 16,
+ ),
+ ),
+ ),
+ SizedBox(
+ width: 40,
+ height: 36,
+ child: IconButton(
+ padding: EdgeInsets.zero,
+ iconSize: 22,
+ tooltip: AppLocalizations.of(context)!.readerTooltipSearch,
+ icon: Icon(Icons.search_rounded, color: fg),
+ onPressed: _openSearchScreen,
+ ),
+ ),
+ ],
),
// Both bars fit in the height one bar takes, so a pinned page
// doesn't change size and re-paginate when this is switched.
- SizedBox(height: both ? 4 : 8),
- if (both) ...[
- bar(chapterProgress, 3),
- const SizedBox(height: 2),
- bar(bookProgress, 2),
- ] else
- bar(chapterOnly ? chapterProgress : bookProgress, 3),
- const SizedBox(height: 4),
- Row(
+ SizedBox(height: both ? 2 : 6),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ child: Column(
+ children: [
+ if (both) ...[
+ bar(chapterProgress, 3),
+ const SizedBox(height: 2),
+ bar(bookProgress, 2),
+ ] else
+ bar(chapterOnly ? chapterProgress : bookProgress, 3),
+ const SizedBox(height: 4),
+ _topBarDetails(fgDim, percent),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _topBarDetails(Color fgDim, String percent) {
+ return Row(
children: [
if (_chapterPageTotal > 0)
Text(
@@ -5557,10 +6155,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
style: TextStyle(color: fgDim, fontSize: 11),
),
],
- ),
- ],
- ),
- );
+ );
}
/// The page on its own, or under the always-visible bar when pinned. The
@@ -5616,30 +6211,64 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
final frozen = _frozenViewerPadding();
// With the bar pinned above the page, the bar already clears the cutout.
final padding = _pinTop ? frozen.copyWith(top: 0) : frozen;
- return Padding(
- padding: padding,
- child: Padding(
- padding: EdgeInsets.symmetric(horizontal: _marginH.toDouble()),
- child: LayoutBuilder(
- builder: (ctx, cons) => Listener(
- behavior: HitTestBehavior.translucent,
- onPointerDown: (e) {
- _ptrDownX = e.localPosition.dx;
- _ptrDownY = e.localPosition.dy;
- },
- onPointerUp: (e) {
- final w = cons.maxWidth;
- final dx = _ptrDownX != null ? (e.localPosition.dx - _ptrDownX!).abs() : 0.0;
- final dy = _ptrDownY != null ? (e.localPosition.dy - _ptrDownY!).abs() : 0.0;
- _ptrDownX = null;
- _ptrDownY = null;
- if (dx > 16 || dy > 16 || w <= 0) return;
- _readerTapAt(e.localPosition.dx / w, 'flutterPtr');
- },
- child: SizedBox.expand(child: viewer),
+ // The curl covers the whole page, margins too; the picture sits where
+ // the web view does.
+ _curlInset = padding + EdgeInsets.symmetric(horizontal: _marginH.toDouble());
+ return Stack(
+ children: [
+ Padding(
+ padding: padding,
+ child: Padding(
+ padding: EdgeInsets.symmetric(horizontal: _marginH.toDouble()),
+ child: LayoutBuilder(
+ builder: (ctx, cons) => Listener(
+ behavior: HitTestBehavior.translucent,
+ onPointerDown: (e) {
+ _ptrDownX = e.localPosition.dx;
+ _ptrDownY = e.localPosition.dy;
+ _curlDragDown(e);
+ },
+ onPointerMove: _curlDragMove,
+ onPointerCancel: (e) => _curlDragUp(e, cancelled: true),
+ onPointerUp: (e) {
+ final w = cons.maxWidth;
+ final dx = _ptrDownX != null ? (e.localPosition.dx - _ptrDownX!).abs() : 0.0;
+ final dy = _ptrDownY != null ? (e.localPosition.dy - _ptrDownY!).abs() : 0.0;
+ _ptrDownX = null;
+ _ptrDownY = null;
+ if (_curlDragUp(e)) return;
+ if (dx > 16 || dy > 16 || w <= 0) return;
+ final h = cons.maxHeight;
+ _readerTapAt(e.localPosition.dx / w, h > 0 ? e.localPosition.dy / h : 0.5, 'flutterPtr');
+ },
+ child: SizedBox.expand(child: viewer),
+ ),
+ ),
),
),
- ),
+ Positioned.fill(
+ child: PageCurlLayer(
+ controller: _curl,
+ pageColor: _resolvePalette(context).bgColor,
+ style: kDrawnTurnStyles.contains(_turnNow) ? _turnNow : 'curl',
+ inset: _curlInset,
+ ),
+ ),
+ if (_editingTapZones)
+ Positioned.fill(
+ child: Padding(
+ padding: _curlInset,
+ child: TapZonesEditor(
+ zones: _tapZones,
+ onChanged: (z) {
+ setState(() => _tapZones = z);
+ unawaited(z.save());
+ },
+ onDone: () => setState(() => _editingTapZones = false),
+ ),
+ ),
+ ),
+ ],
);
}
@@ -6451,6 +7080,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
_loadAnnotations().then((_) => _restoreHighlights());
_setupPageInfoHandler();
_setupTapHandler();
+ _applyTurnStyle();
+ _queueCurlShot();
_setupAutoScrollHandlers();
_setupFontInjector();
_applyFontFace();
@@ -6481,6 +7112,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
},
onRelocated: (value) {
if (!mounted) return;
+ final landed = _curlLanded;
+ if (landed != null && !landed.isCompleted) landed.complete(true);
_readAlongTurnPending = null;
// Ignore relocations while backgrounded: the recents/resize
// re-paginate fires a stray one that would save the wrong page.
@@ -6491,6 +7124,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
}
_currentCfi = value.startCfi;
_firstShownCfi ??= value.startCfi;
+ _queueCurlShot();
_updateBookmarkState();
_repaintHighlightMarks();
// The start page shown while waiting to jump to another app's
@@ -6540,7 +7174,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
}
return;
}
- _readerTapAt(x, 'touch');
+ _readerTapAt(x, y, 'touch');
},
))),
@@ -6553,7 +7187,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
duration: const Duration(milliseconds: 200),
child: IgnorePointer(
ignoring: !_showControls,
- child: Container(
+ child: _controlsTouchGuard(Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
@@ -6570,7 +7204,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
bottom: false,
child: _buildTopBarContent(fg, fgDim, accent),
),
- ),
+ )),
),
),
@@ -6582,7 +7216,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
duration: const Duration(milliseconds: 200),
child: IgnorePointer(
ignoring: !_showControls,
- child: Container(
+ child: _controlsTouchGuard(Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.bottomCenter,
@@ -6624,79 +7258,15 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// the buttons' 48dp instead of overflowing the row.
Row(
children: [
- Expanded(
- child: IconButton(
- icon: Icon(Icons.arrow_back_rounded, color: fg),
- onPressed: _handleClose,
- ),
- ),
- Expanded(
- child: IconButton(
- icon: Icon(
- _hasBookmarkAtCurrent
- ? Icons.bookmark_rounded
- : Icons.bookmark_border_rounded,
- color: _hasBookmarkAtCurrent ? accent : fg,
- ),
- onPressed: _toggleBookmark,
- ),
- ),
- Expanded(
- child: IconButton(
- icon: Icon(Icons.search_rounded, color: fg),
- tooltip: AppLocalizations.of(context)!.readerTooltipSearch,
- onPressed: _openSearchScreen,
- ),
- ),
- if (_transcriptionOn || _useNarration)
- Expanded(
- child: IconButton(
- icon: Icon(Icons.graphic_eq_rounded,
- color: _readAlongOn ? accent : fg),
- tooltip: AppLocalizations.of(context)!.readAlong,
- onPressed: _toggleReadAlong,
- ),
- ),
- Expanded(
- child: IconButton(
- icon: Icon(Icons.sticky_note_2_outlined, color: fg),
- onPressed: _showAnnotationsSheet,
- ),
- ),
- // No tooltip here: its long press would take the
- // gesture the sleep timer sheet needs.
- Expanded(
- child: GestureDetector(
- onLongPress: _showAutoScrollSleepSheet,
- child: IconButton(
- icon: Icon(
- Icons.swap_vert_rounded,
- color: _autoScroll ? accent : fg,
- ),
- onPressed: _toggleAutoScroll,
- ),
- ),
- ),
- Expanded(
- child: IconButton(
- icon: Icon(Icons.text_fields_rounded, color: fg),
- onPressed: _showSettingsSheet,
- ),
- ),
- if (_chapters.isNotEmpty)
- Expanded(
- child: IconButton(
- icon: Icon(Icons.list_rounded, color: fg),
- onPressed: _showChapterList,
- ),
- ),
+ for (final id in const ['bookmark', 'readalong', 'notes', 'autoscroll', 'settings', 'chapters'])
+ if (_barButtonShown(id)) Expanded(child: _barButton(id, fg, accent)),
],
),
],
),
),
),
- ),
+ )),
),
),
),
diff --git a/lib/widgets/page_curl.dart b/lib/widgets/page_curl.dart
new file mode 100644
index 00000000..0f4fa133
--- /dev/null
+++ b/lib/widgets/page_curl.dart
@@ -0,0 +1,410 @@
+import 'dart:async';
+import 'dart:math';
+import 'dart:ui' as ui;
+
+import 'package:flutter/material.dart';
+
+/// Page turns drawn over pictures of the page.
+const kDrawnTurnStyles = ['curl', 'ripple'];
+
+/// Drives a [PageCurlLayer]: the reader hands it pictures of pages and the
+/// finger's position, and the layer draws and animates the turn.
+class PageCurlController {
+ _PageCurlLayerState? _layer;
+
+ bool get showing => _layer?._top != null;
+ Size get size => _layer?._size ?? Size.zero;
+
+ /// Lays [top] over the page, with [under] beneath it (the live page shows
+ /// through when null). [away] is how far it has turned: 0 whole, 1 gone.
+ /// [grabY] is the height a curl is held at; [origin] is where the other
+ /// turns start from.
+ void show(ui.Image top, {ui.Image? under, double away = 0, double? grabY, Offset? origin}) =>
+ _layer?._show(top, under, away, grabY, origin);
+
+ /// Moves the turn to [point]: the edge in hand for a curl, and for the
+ /// others how far across the page it has come.
+ void follow(Offset point) => _layer?._follow(point);
+
+ /// Turns the page the rest of the way off, or lays it back down.
+ Future<void> settle({required bool away}) => _layer?._settle(away) ?? Future.value();
+
+ /// Plays the rest of the running turn quickly.
+ void hurry() => _layer?._hurry();
+
+ void hide() => _layer?._hide();
+}
+
+/// A page turn drawn over the reader. The page itself is a web view that
+/// can't be bent or dissolved, so a picture of it turns while the real page
+/// has already turned underneath.
+class PageCurlLayer extends StatefulWidget {
+ const PageCurlLayer({
+ super.key,
+ required this.controller,
+ required this.pageColor,
+ this.style = 'curl',
+ this.inset = EdgeInsets.zero,
+ });
+
+ final PageCurlController controller;
+ final Color pageColor;
+
+ /// One of [kDrawnTurnStyles].
+ final String style;
+
+ /// Where the pictured page sits inside this layer; the rest is plain page.
+ final EdgeInsets inset;
+
+ @override
+ State<PageCurlLayer> createState() => _PageCurlLayerState();
+}
+
+class _Shaders {
+ static ui.FragmentProgram? ripple;
+ static Future<void>? _loading;
+
+ static Future<void> load() => _loading ??= () async {
+ try {
+ ripple = await ui.FragmentProgram.fromAsset('shaders/page_ripple.frag');
+ } catch (e) {
+ debugPrint('[PageTurn] the ripple shader did not load: $e');
+ }
+ }();
+}
+
+class _PageCurlLayerState extends State<PageCurlLayer> with SingleTickerProviderStateMixin {
+ late final AnimationController _anim = AnimationController(vsync: this);
+ ui.Image? _top;
+ ui.Image? _under;
+ Size _size = Size.zero;
+ double _grabY = 0;
+ Offset _origin = Offset.zero;
+ Offset _finger = Offset.zero;
+ bool _settling = false;
+ Offset _from = Offset.zero;
+ Offset _to = Offset.zero;
+ double _arc = 0;
+ ui.FragmentShader? _ripple;
+ Completer<void>? _settled;
+
+ @override
+ void initState() {
+ super.initState();
+ widget.controller._layer = this;
+ _Shaders.load().then((_) {
+ if (mounted) setState(() {});
+ });
+ }
+
+ @override
+ void didUpdateWidget(PageCurlLayer old) {
+ super.didUpdateWidget(old);
+ if (old.controller != widget.controller) {
+ if (old.controller._layer == this) old.controller._layer = null;
+ widget.controller._layer = this;
+ }
+ }
+
+ @override
+ void dispose() {
+ if (widget.controller._layer == this) widget.controller._layer = null;
+ _anim.dispose();
+ _ripple?.dispose();
+ super.dispose();
+ }
+
+ Offset _at(double away) => Offset(_size.width - 2 * _size.width * away, _grabY);
+
+ void _show(ui.Image top, ui.Image? under, double away, double? grabY, Offset? origin) {
+ _anim.stop();
+ _finishSettle();
+ setState(() {
+ _top = top;
+ _under = under;
+ _settling = false;
+ _grabY = (grabY ?? _size.height * 0.88).clamp(0.0, _size.height);
+ _origin = origin ?? Offset(_size.width * 0.8, _size.height * 0.5);
+ _finger = _at(away);
+ });
+ }
+
+ void _follow(Offset point) {
+ if (_top == null) return;
+ _anim.stop();
+ _finishSettle();
+ setState(() {
+ _settling = false;
+ _finger = point;
+ });
+ }
+
+ Future<void> _settle(bool away) {
+ if (_top == null || _size.isEmpty) return Future.value();
+ _finishSettle();
+ _from = _finger;
+ _to = _at(away ? 1 : 0);
+ final span = ((_to.dx - _from.dx).abs() / (2 * _size.width)).clamp(0.0, 1.0);
+ final curl = widget.style == 'curl';
+ // A longer trip lifts a curling page a little on the way, like a hand
+ // turning it. The others take their time so the effect can be seen.
+ _arc = curl ? _size.height * 0.08 * span : 0;
+ final full = curl ? 340 : 1150;
+ _anim.duration = Duration(milliseconds: (150 + full * span).round());
+ _anim.value = 0;
+ setState(() => _settling = true);
+ final done = _settled = Completer<void>();
+ unawaited(_anim.animateTo(1, curve: curl ? Curves.easeInOut : Curves.easeInOutSine).then((_) => _landed(done)));
+ return done.future;
+ }
+
+ void _landed(Completer<void> done) {
+ if (done.isCompleted) return;
+ if (mounted && identical(done, _settled)) {
+ _settling = false;
+ _finger = _to;
+ }
+ done.complete();
+ }
+
+ void _hurry() {
+ final done = _settled;
+ if (done == null || done.isCompleted || !_anim.isAnimating) return;
+ final left = 1 - _anim.value;
+ unawaited(_anim
+ .animateTo(1, duration: Duration(milliseconds: (40 + 180 * left).round()), curve: Curves.easeOut)
+ .then((_) => _landed(done)));
+ }
+
+ /// Lets whoever waits on a settle go when something else cuts it short.
+ void _finishSettle() {
+ final done = _settled;
+ _settled = null;
+ if (done != null && !done.isCompleted) done.complete();
+ }
+
+ void _hide() {
+ _anim.stop();
+ _finishSettle();
+ if (_top == null) return;
+ setState(() {
+ _top = null;
+ _under = null;
+ _settling = false;
+ });
+ }
+
+ CustomPainter _painter(ui.Image top, Offset finger) {
+ final away = ((_size.width - finger.dx) / (2 * _size.width)).clamp(0.0, 1.0);
+ final page = _Page(widget.pageColor, widget.inset);
+ final ripple = _Shaders.ripple;
+ if (widget.style == 'ripple' && ripple != null) {
+ return _ShaderPainter(_ripple ??= ripple.fragmentShader(), page, top, _under, away, _origin);
+ }
+ return _CurlPainter(
+ page: page,
+ top: top,
+ under: _under,
+ edge: Offset(_size.width, _grabY),
+ finger: finger,
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return LayoutBuilder(builder: (context, constraints) {
+ _size = constraints.biggest;
+ final top = _top;
+ if (top == null) return const SizedBox.shrink();
+ return IgnorePointer(
+ child: AnimatedBuilder(
+ animation: _anim,
+ builder: (context, _) {
+ final t = _anim.value;
+ final finger = _settling ? Offset.lerp(_from, _to, t)! - Offset(0, _arc * sin(pi * t)) : _finger;
+ return CustomPaint(size: _size, painter: _painter(top, finger));
+ },
+ ),
+ );
+ });
+ }
+}
+
+/// A picture of the page laid where the web view sits, page color around it.
+class _Page {
+ const _Page(this.color, this.inset);
+
+ final Color color;
+ final EdgeInsets inset;
+
+ Rect pictureRect(Rect area) => inset.deflateRect(area);
+
+ void paint(Canvas canvas, Rect area, ui.Image image) {
+ canvas.drawRect(area, Paint()..color = color);
+ final src = Rect.fromLTWH(0, 0, image.width.toDouble(), image.height.toDouble());
+ canvas.drawImageRect(image, src, pictureRect(area), Paint()..filterQuality = FilterQuality.medium);
+ }
+}
+
+/// The page folded along the line halfway between the edge being held and
+/// the finger: the part beyond it flips over, showing its back.
+class _CurlPainter extends CustomPainter {
+ _CurlPainter({
+ required this.page,
+ required this.top,
+ required this.under,
+ required this.edge,
+ required this.finger,
+ });
+
+ final _Page page;
+ final ui.Image top;
+ final ui.Image? under;
+ final Offset edge;
+ final Offset finger;
+
+ @override
+ void paint(Canvas canvas, Size size) {
+ final area = Offset.zero & size;
+ canvas.clipRect(area);
+ final under = this.under;
+ if (under != null) page.paint(canvas, area, under);
+
+ // The page turns on its spine, so the edge in hand can't be pulled
+ // further from it than the page is wide.
+ final spine = Offset(0, edge.dy);
+ var f = finger;
+ final reach = (f - spine).distance;
+ if (reach > size.width) f = spine + (f - spine) * (size.width / reach);
+ final pull = edge - f;
+ final length = pull.distance;
+ if (length < 0.5) {
+ page.paint(canvas, area, top);
+ return;
+ }
+ final n = pull / length;
+ final fold = (edge + f) / 2;
+ final corners = [area.topLeft, area.topRight, area.bottomRight, area.bottomLeft];
+ final flat = _polygon(_side(corners, fold, n, lifted: false));
+ final lifted = _polygon(_side(corners, fold, n, lifted: true));
+ final mirror = _mirror(fold, n);
+ final flap = lifted.transform(mirror.storage);
+
+ // The page coming into view, darker where the lifted page still hangs
+ // over it.
+ canvas.save();
+ canvas.clipPath(lifted);
+ canvas.drawRect(
+ area,
+ Paint()
+ ..shader = ui.Gradient.linear(fold, fold + n * min(48.0, length * 0.5 + 8), [
+ Colors.black.withValues(alpha: 0.3),
+ Colors.black.withValues(alpha: 0),
+ ]),
+ );
+ canvas.restore();
+
+ // The part still lying flat, with the shadow the flap throws on it.
+ canvas.save();
+ canvas.clipPath(flat);
+ page.paint(canvas, area, top);
+ canvas.drawPath(
+ flap.shift(n * -3),
+ Paint()
+ ..color = Colors.black.withValues(alpha: 0.22)
+ ..maskFilter = const MaskFilter.blur(BlurStyle.normal, 10),
+ );
+ canvas.restore();
+
+ // The back of the flap: the print shows through faintly, mirrored.
+ canvas.save();
+ canvas.clipPath(flap);
+ canvas.save();
+ canvas.transform(mirror.storage);
+ page.paint(canvas, area, top);
+ canvas.restore();
+ canvas.drawRect(area, Paint()..color = page.color.withValues(alpha: 0.88));
+ canvas.drawRect(
+ area,
+ Paint()
+ ..shader = ui.Gradient.linear(fold, f, [
+ Colors.black.withValues(alpha: 0.16),
+ Colors.black.withValues(alpha: 0),
+ Colors.black.withValues(alpha: 0.05),
+ ], [0, 0.4, 1]),
+ );
+ canvas.restore();
+ }
+
+ /// The part of the convex polygon [points] on one side of the line through
+ /// [fold] with normal [n]; [lifted] is the side [n] points to.
+ static List<Offset> _side(List<Offset> points, Offset fold, Offset n, {required bool lifted}) {
+ double side(Offset p) => (p.dx - fold.dx) * n.dx + (p.dy - fold.dy) * n.dy;
+ bool keep(Offset p) => lifted ? side(p) > 0 : side(p) <= 0;
+ final out = <Offset>[];
+ for (var i = 0; i < points.length; i++) {
+ final a = points[i];
+ final b = points[(i + 1) % points.length];
+ if (keep(a)) out.add(a);
+ if (keep(a) != keep(b)) {
+ final sa = side(a);
+ final sb = side(b);
+ out.add(Offset.lerp(a, b, sa / (sa - sb))!);
+ }
+ }
+ return out;
+ }
+
+ static Path _polygon(List<Offset> points) {
+ final path = Path();
+ if (points.length >= 3) path.addPolygon(points, true);
+ return path;
+ }
+
+ /// Reflection across the line through [fold] with unit normal [n].
+ static Matrix4 _mirror(Offset fold, Offset n) {
+ final d = 2 * (fold.dx * n.dx + fold.dy * n.dy);
+ final xx = 1 - 2 * n.dx * n.dx;
+ final xy = -2 * n.dx * n.dy;
+ final yy = 1 - 2 * n.dy * n.dy;
+ return Matrix4(xx, xy, 0, 0, xy, yy, 0, 0, 0, 0, 1, 0, d * n.dx, d * n.dy, 0, 1);
+ }
+
+ @override
+ bool shouldRepaint(_CurlPainter old) => true;
+}
+
+/// Ripple: a shader blends the two pages, starting at [origin].
+class _ShaderPainter extends CustomPainter {
+ _ShaderPainter(this.shader, this.page, this.top, this.under, this.away, this.origin);
+
+ final ui.FragmentShader shader;
+ final _Page page;
+ final ui.Image top;
+ final ui.Image? under;
+ final double away;
+ final Offset origin;
+
+ @override
+ void paint(Canvas canvas, Size size) {
+ final area = Offset.zero & size;
+ final rect = page.pictureRect(area);
+ final values = [
+ size.width, size.height,
+ rect.left, rect.top, rect.right, rect.bottom,
+ page.color.r, page.color.g, page.color.b, 1.0,
+ origin.dx, origin.dy,
+ away,
+ under != null ? 1.0 : 0.0,
+ ];
+ for (var i = 0; i < values.length; i++) {
+ shader.setFloat(i, values[i]);
+ }
+ shader.setImageSampler(0, top);
+ shader.setImageSampler(1, under ?? top);
+ canvas.drawRect(area, Paint()..shader = shader);
+ }
+
+ @override
+ bool shouldRepaint(_ShaderPainter old) => true;
+}
diff --git a/lib/widgets/reader_tap_zones.dart b/lib/widgets/reader_tap_zones.dart
new file mode 100644
index 00000000..29f28fb2
--- /dev/null
+++ b/lib/widgets/reader_tap_zones.dart
@@ -0,0 +1,362 @@
+import 'dart:convert';
+
+import 'package:flutter/foundation.dart';
+import 'package:flutter/material.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+import '../l10n/app_localizations.dart';
+import 'overlay_toast.dart';
+
+/// Where a tap on the page goes: a 3x3 grid whose lines can be moved, each
+/// square turning a page, showing the controls or doing nothing. App-wide,
+/// like the rest of how the reader is held.
+class ReaderTapZones {
+ const ReaderTapZones({
+ this.xs = const [0.25, 0.75],
+ this.ys = const [1 / 3, 2 / 3],
+ this.cells = const ['prev', 'menu', 'next', 'prev', 'menu', 'next', 'prev', 'menu', 'next'],
+ });
+
+ /// The two lines down the page and the two across it, as fractions.
+ final List<double> xs;
+ final List<double> ys;
+
+ /// What each square does, row by row: 'prev', 'next', 'menu' or 'none'.
+ final List<String> cells;
+
+ static const actions = ['prev', 'next', 'menu', 'none'];
+ static const minCell = 0.1;
+ static const _kGrid = 'ereader_tap_grid';
+
+ /// Layouts to start from, after Moon+ Reader's.
+ static const presets = [
+ ReaderTapZones(),
+ ReaderTapZones(
+ ys: [0.3, 0.6],
+ cells: ['prev', 'prev', 'prev', 'next', 'menu', 'next', 'next', 'next', 'next'],
+ ),
+ ReaderTapZones(
+ ys: [0.3, 0.6],
+ cells: ['prev', 'prev', 'prev', 'prev', 'menu', 'next', 'prev', 'next', 'next'],
+ ),
+ ReaderTapZones(
+ ys: [0.4, 0.6],
+ cells: ['prev', 'prev', 'prev', 'prev', 'menu', 'next', 'next', 'next', 'next'],
+ ),
+ ];
+
+ String actionAt(double fx, double fy) {
+ final c = fx < xs[0] ? 0 : (fx < xs[1] ? 1 : 2);
+ final r = fy < ys[0] ? 0 : (fy < ys[1] ? 1 : 2);
+ return cells[r * 3 + c];
+ }
+
+ bool sameAs(ReaderTapZones o) =>
+ listEquals(cells, o.cells) &&
+ (xs[0] - o.xs[0]).abs() < 0.005 &&
+ (xs[1] - o.xs[1]).abs() < 0.005 &&
+ (ys[0] - o.ys[0]).abs() < 0.005 &&
+ (ys[1] - o.ys[1]).abs() < 0.005;
+
+ ReaderTapZones copyWith({List<double>? xs, List<double>? ys, List<String>? cells}) =>
+ ReaderTapZones(xs: xs ?? this.xs, ys: ys ?? this.ys, cells: cells ?? this.cells);
+
+ static Future<ReaderTapZones> load() async {
+ final raw = (await SharedPreferences.getInstance()).getString(_kGrid);
+ if (raw == null) return const ReaderTapZones();
+ try {
+ final j = jsonDecode(raw) as Map<String, dynamic>;
+ final xs = [for (final v in j['xs'] as List) (v as num).toDouble()];
+ final ys = [for (final v in j['ys'] as List) (v as num).toDouble()];
+ final cells = [for (final v in j['cells'] as List) '$v'];
+ if (xs.length != 2 || ys.length != 2 || cells.length != 9) return const ReaderTapZones();
+ if (cells.any((c) => !actions.contains(c)) || !cells.contains('menu')) return const ReaderTapZones();
+ return ReaderTapZones(xs: xs, ys: ys, cells: cells);
+ } catch (_) {
+ return const ReaderTapZones();
+ }
+ }
+
+ Future<void> save() async => (await SharedPreferences.getInstance())
+ .setString(_kGrid, jsonEncode({'xs': xs, 'ys': ys, 'cells': cells}));
+}
+
+String tapActionLabel(AppLocalizations l, String action) => switch (action) {
+ 'prev' => l.readerTapPrev,
+ 'next' => l.readerTapNext,
+ 'menu' => l.readerTapMenu,
+ _ => l.readerTapNothing,
+ };
+
+// Fixed colors rather than the theme's, which can sit too close together
+// to tell apart. Orange and blue also stay apart for most color blindness.
+Color _tint(String action) => switch (action) {
+ 'prev' => const Color(0xFFF57C00),
+ 'next' => const Color(0xFF1E88E5),
+ 'menu' => const Color(0xFF8D8D8D),
+ _ => const Color(0xFF263238),
+ };
+
+IconData _actionIcon(String action) => switch (action) {
+ 'prev' => Icons.arrow_back_rounded,
+ 'next' => Icons.arrow_forward_rounded,
+ 'menu' => Icons.menu_rounded,
+ _ => Icons.block_rounded,
+ };
+
+/// Shows the tap grid over the page. Drag its lines to resize the squares,
+/// tap a square to change what it does, or start from a layout.
+class TapZonesEditor extends StatefulWidget {
+ const TapZonesEditor({
+ super.key,
+ required this.zones,
+ required this.onChanged,
+ required this.onDone,
+ });
+
+ final ReaderTapZones zones;
+ final ValueChanged<ReaderTapZones> onChanged;
+ final VoidCallback onDone;
+
+ @override
+ State<TapZonesEditor> createState() => _TapZonesEditorState();
+}
+
+class _TapZonesEditorState extends State<TapZonesEditor> {
+ late ReaderTapZones _zones = widget.zones;
+
+ void _set(ReaderTapZones z) {
+ setState(() => _zones = z);
+ widget.onChanged(z);
+ }
+
+ void _cycle(int i) {
+ final cells = List.of(_zones.cells);
+ final now = cells[i];
+ // One square always shows the controls, or there would be no way back.
+ if (now == 'menu' && cells.where((c) => c == 'menu').length == 1) {
+ showOverlayToast(context, AppLocalizations.of(context)!.readerTapKeepMenu, icon: Icons.touch_app_outlined);
+ return;
+ }
+ cells[i] = ReaderTapZones.actions[(ReaderTapZones.actions.indexOf(now) + 1) % ReaderTapZones.actions.length];
+ _set(_zones.copyWith(cells: cells));
+ }
+
+ void _moveLine(bool across, int i, double delta) {
+ final lines = List.of(across ? _zones.ys : _zones.xs);
+ const m = ReaderTapZones.minCell;
+ final lo = i == 0 ? m : lines[0] + m;
+ final hi = i == 0 ? lines[1] - m : 1 - m;
+ lines[i] = (lines[i] + delta).clamp(lo, hi);
+ _set(across ? _zones.copyWith(ys: lines) : _zones.copyWith(xs: lines));
+ }
+
+ Widget _grip(ColorScheme cs, {required bool across}) => Container(
+ width: across ? 44 : 22,
+ height: across ? 22 : 44,
+ decoration: BoxDecoration(
+ color: cs.surface,
+ borderRadius: BorderRadius.circular(11),
+ boxShadow: const [BoxShadow(blurRadius: 4, color: Colors.black38)],
+ ),
+ child: RotatedBox(
+ quarterTurns: across ? 1 : 0,
+ child: Icon(Icons.drag_indicator_rounded, size: 18, color: cs.onSurface),
+ ),
+ );
+
+ @override
+ Widget build(BuildContext context) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final l = AppLocalizations.of(context)!;
+ return GestureDetector(
+ behavior: HitTestBehavior.opaque,
+ child: ColoredBox(
+ color: Colors.black.withValues(alpha: 0.4),
+ child: LayoutBuilder(builder: (context, constraints) {
+ final w = constraints.maxWidth;
+ final h = constraints.maxHeight;
+ final xs = [0.0, _zones.xs[0] * w, _zones.xs[1] * w, w];
+ final ys = [0.0, _zones.ys[0] * h, _zones.ys[1] * h, h];
+ return Stack(
+ children: [
+ for (var r = 0; r < 3; r++)
+ for (var c = 0; c < 3; c++)
+ Positioned(
+ left: xs[c],
+ top: ys[r],
+ width: xs[c + 1] - xs[c],
+ height: ys[r + 1] - ys[r],
+ child: GestureDetector(
+ behavior: HitTestBehavior.opaque,
+ onTap: () => _cycle(r * 3 + c),
+ child: Container(
+ decoration: BoxDecoration(
+ color: _tint(_zones.cells[r * 3 + c]).withValues(alpha: 0.7),
+ border: Border.all(color: Colors.white.withValues(alpha: 0.35), width: 0.5),
+ ),
+ alignment: Alignment.center,
+ padding: const EdgeInsets.all(4),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Icon(_actionIcon(_zones.cells[r * 3 + c]), color: Colors.white, size: 22),
+ const SizedBox(height: 2),
+ Text(
+ tapActionLabel(l, _zones.cells[r * 3 + c]),
+ textAlign: TextAlign.center,
+ style: tt.labelMedium?.copyWith(
+ color: Colors.white,
+ fontWeight: FontWeight.w700,
+ shadows: const [Shadow(blurRadius: 3, color: Colors.black54)],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ for (var i = 0; i < 2; i++) ...[
+ Positioned(
+ left: xs[i + 1] - 1,
+ top: 0,
+ bottom: 0,
+ width: 2,
+ child: IgnorePointer(child: ColoredBox(color: Colors.white.withValues(alpha: 0.9))),
+ ),
+ Positioned(
+ top: ys[i + 1] - 1,
+ left: 0,
+ right: 0,
+ height: 2,
+ child: IgnorePointer(child: ColoredBox(color: Colors.white.withValues(alpha: 0.9))),
+ ),
+ Positioned(
+ left: xs[i + 1] - 16,
+ top: (ys[1] + ys[2]) / 2 - 26,
+ width: 32,
+ height: 52,
+ child: GestureDetector(
+ behavior: HitTestBehavior.opaque,
+ onHorizontalDragUpdate: (d) => _moveLine(false, i, d.delta.dx / w),
+ child: Center(child: _grip(cs, across: false)),
+ ),
+ ),
+ Positioned(
+ left: (xs[1] + xs[2]) / 2 - 26,
+ top: ys[i + 1] - 16,
+ width: 52,
+ height: 32,
+ child: GestureDetector(
+ behavior: HitTestBehavior.opaque,
+ onVerticalDragUpdate: (d) => _moveLine(true, i, d.delta.dy / h),
+ child: Center(child: _grip(cs, across: true)),
+ ),
+ ),
+ ],
+ Positioned(
+ left: 12,
+ right: 12,
+ bottom: 16,
+ child: Material(
+ color: cs.surface,
+ elevation: 6,
+ borderRadius: BorderRadius.circular(16),
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(14, 12, 8, 4),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(l.readerTapZones, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),
+ const SizedBox(height: 2),
+ Text(l.readerTapZonesHint, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 10),
+ Row(
+ children: [
+ for (final preset in ReaderTapZones.presets)
+ Padding(
+ padding: const EdgeInsets.only(right: 10),
+ child: GestureDetector(
+ onTap: () => _set(preset),
+ child: _PresetThumb(preset, selected: _zones.sameAs(preset)),
+ ),
+ ),
+ ],
+ ),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ TextButton(
+ onPressed: () => _set(const ReaderTapZones()),
+ child: Text(l.reset),
+ ),
+ FilledButton(onPressed: widget.onDone, child: Text(l.done)),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ],
+ );
+ }),
+ ),
+ );
+ }
+}
+
+/// A small picture of a layout, colored by what each square does.
+class _PresetThumb extends StatelessWidget {
+ const _PresetThumb(this.zones, {required this.selected});
+
+ final ReaderTapZones zones;
+ final bool selected;
+
+ @override
+ Widget build(BuildContext context) {
+ final cs = Theme.of(context).colorScheme;
+ return Container(
+ width: 40,
+ height: 60,
+ decoration: BoxDecoration(
+ border: Border.all(color: selected ? cs.primary : cs.outlineVariant, width: selected ? 2.5 : 1),
+ borderRadius: BorderRadius.circular(6),
+ ),
+ clipBehavior: Clip.antiAlias,
+ child: CustomPaint(painter: _ThumbPainter(zones)),
+ );
+ }
+}
+
+class _ThumbPainter extends CustomPainter {
+ _ThumbPainter(this.zones);
+
+ final ReaderTapZones zones;
+
+ @override
+ void paint(Canvas canvas, Size size) {
+ final xs = [0.0, zones.xs[0] * size.width, zones.xs[1] * size.width, size.width];
+ final ys = [0.0, zones.ys[0] * size.height, zones.ys[1] * size.height, size.height];
+ for (var r = 0; r < 3; r++) {
+ for (var c = 0; c < 3; c++) {
+ final rect = Rect.fromLTRB(xs[c], ys[r], xs[c + 1], ys[r + 1]);
+ canvas.drawRect(rect, Paint()..color = _tint(zones.cells[r * 3 + c]));
+ }
+ }
+ final line = Paint()
+ ..color = Colors.white
+ ..strokeWidth = 1;
+ for (final x in [xs[1], xs[2]]) {
+ canvas.drawLine(Offset(x, 0), Offset(x, size.height), line);
+ }
+ for (final y in [ys[1], ys[2]]) {
+ canvas.drawLine(Offset(0, y), Offset(size.width, y), line);
+ }
+ }
+
+ @override
+ bool shouldRepaint(_ThumbPainter old) => !old.zones.sameAs(zones);
+}
diff --git a/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js b/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js
index 9767b4ef..96c3ed03 100644
--- a/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js
+++ b/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js
@@ -66,6 +66,8 @@ function snapToPageBoundary() {
var container = manager.container;
var step = (manager.layout && manager.layout.delta) || container.clientWidth;
if (!step || step <= 0) return;
+ // A page being dragged or sliding is between pages on purpose.
+ if (turnDragActive || turnSlide) return;
var off = container.scrollLeft;
var mis = off % step;
if (mis < 2 || step - mis < 2) return; // already aligned (within rounding)
@@ -173,7 +175,21 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
lastTheme.fg = foregroundColor;
lastTheme.css = customCss;
lastTheme.fontSize = fontSize;
+ // Absorb patch: scroll mode lays out the chapters ahead two screens early,
+ // so reaching them doesn't wait on the layout, and keeps those it passed
+ // as long.
+ if (String(flow || "").indexOf("scrolled") === 0) {
+ lastRenderOpts.offset = Math.round((window.innerHeight || 800) * 2);
+ }
rendition = book.renderTo("viewer", lastRenderOpts);
+ var turnsFor = rendition;
+ rendition.started.then(function () {
+ setupTurns(turnsFor);
+ setupSmoothScroll(turnsFor);
+ });
+ rendition.hooks.content.register(function (contents) {
+ attachTurnDrag(contents.document);
+ });
// Absorb patch: scroll mode only moves up and down, down to each chapter's
// own page, so a drag that drifts sideways can't nudge the text aside.
@@ -1478,7 +1494,7 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
};
// Attach to iframe document
- doc.addEventListener('touchstart', touchStartHandler, { capture: true, passive: false });
+ doc.addEventListener('touchstart', touchStartHandler, { capture: true, passive: true });
// Also attach to parent window as fallback for iOS
// On iOS, touch events in iframes may not fire, so we also listen on the parent window
@@ -1509,7 +1525,7 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
} catch (err) {
// Ignore errors in event handler
}
- }, { capture: true, passive: false });
+ }, { capture: true, passive: true });
}
}
} catch (err) {
@@ -1552,7 +1568,7 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
currentTouchY = e.touches[0].clientY;
}
}
- }, { capture: true, passive: false }); // Use options object with passive: false
+ }, { capture: true, passive: scrolledFlow() });
var touchEndHandler = function (e) {
// Fire onTouchUp callback with normalized coordinates
@@ -1644,32 +1660,8 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
// Ignore errors when accessing parent window (cross-origin restrictions)
}
- if (useCustomSwipe) {
- const el = contents.document.documentElement;
-
- if (el) {
- detectSwipe(el, function (el, direction) {
- // Block swipes if there's an active selection
- if (hasActiveSelection()) {
- console.log('Blocked swipe - selection active, direction:', direction);
- return;
- }
-
- if (direction == 'l') {
- // Double-check before calling
- if (!hasActiveSelection()) {
- rendition.next();
- }
- }
- if (direction == 'r') {
- // Double-check before calling
- if (!hasActiveSelection()) {
- rendition.prev();
- }
- }
- });
- }
- }
+ // Absorb patch: sideways swipes turn pages through attachTurnDrag, on
+ // every platform, so the package's own swipe turn is left out.
// Block epub.js built-in click/tap navigation when there's a selection
// epub.js typically handles clicks on the left/right sides of the page
@@ -2106,6 +2098,8 @@ function next() {
return;
}
if (rendition) {
+ finishTurnSlide();
+ turnAnimate = true;
rendition.next();
}
}
@@ -2118,10 +2112,224 @@ function previous() {
return;
}
if (rendition) {
+ finishTurnSlide();
+ turnAnimate = true;
rendition.prev();
}
}
+// Absorb patch: page turns. "slide" moves the page sideways and follows a
+// finger dragging it; "none" turns at once. "curl" is drawn by the app over
+// pictures of the page, so here the page turns at once and sideways drags are
+// left to the app.
+var turnStyle = "slide";
+var turnAnimate = false; // the next turn was asked for by the reader, not auto scroll
+var turnSlide = null; // the slide in flight
+var turnFromDrag = null; // where a released drag left the page: {base, from}
+var turnDragActive = false; // a finger is holding the page between pages
+var TURN_MS = 280;
+
+function setTurnStyle(style) {
+ turnStyle = style === "none" || style === "curl" ? style : "slide";
+}
+
+function finishTurnSlide() {
+ if (turnSlide) turnSlide.finish();
+}
+
+function turnSlides(m) {
+ return turnStyle === "slide" && !!m && m.isPaginated && m.settings.axis === "horizontal" &&
+ !m.settings.fullsize && !scrolledFlow();
+}
+
+function setupTurns(r) {
+ var m = r && r.manager;
+ if (!m || m.__absorbTurns) return;
+ m.__absorbTurns = true;
+ var next = m.next;
+ var prev = m.prev;
+ m.next = function () { return slideTurn(m, next); };
+ m.prev = function () { return slideTurn(m, prev); };
+}
+
+// epub.js turns by jumping a page width. The jump is still made, so the page
+// lands exactly where it always did, and is then played as a slide from where
+// the page was, or from where a finger let go of it.
+function slideTurn(m, turn) {
+ var drag = turnFromDrag;
+ turnFromDrag = null;
+ var animate = turnAnimate || !!drag;
+ turnAnimate = false;
+ var c = m.container;
+ if (drag) {
+ m.ignore = true;
+ c.scrollLeft = drag.base;
+ }
+ if (!animate || !turnSlides(m)) return turn.call(m);
+ var from = drag ? drag.from : c.scrollLeft;
+ var result = turn.call(m);
+ var to = c.scrollLeft;
+ if (Math.abs(to - from) < 1) return result;
+ m.ignore = true;
+ c.scrollLeft = from;
+ var page = (m.layout && m.layout.delta) || c.clientWidth || 1;
+ return playSlide(m, from, to, TURN_MS * Math.max(0.4, Math.min(1, Math.abs(to - from) / page)));
+}
+
+function playSlide(m, from, to, ms) {
+ finishTurnSlide();
+ return new Promise(function (resolve) {
+ var c = m.container;
+ var start = null;
+ var shift = 0; // epub.js dropping a chapter on the left moves everything
+ var last = from;
+ var done = false;
+ var slide = {
+ finish: function () {
+ if (done) return;
+ done = true;
+ if (turnSlide === slide) turnSlide = null;
+ m.ignore = true;
+ c.scrollLeft = to + shift;
+ resolve();
+ }
+ };
+ turnSlide = slide;
+ function frame(ts) {
+ if (done) return;
+ if (start === null) start = ts;
+ var now = c.scrollLeft;
+ if (Math.abs(now - last) > 2) shift += now - last;
+ var t = Math.min(1, (ts - start) / ms);
+ if (t >= 1) {
+ slide.finish();
+ return;
+ }
+ last = from + shift + (to - from) * (1 - Math.pow(1 - t, 3));
+ m.ignore = true;
+ c.scrollLeft = last;
+ requestAnimationFrame(frame);
+ }
+ requestAnimationFrame(frame);
+ });
+}
+
+// A sideways drag turns the page: in "slide" the page follows the finger and
+// settles on whichever page it was pulled toward; in "none" it turns once the
+// finger lifts. Selecting text, auto scroll and scroll mode keep their touches.
+function attachTurnDrag(doc) {
+ if (!doc || doc.__absorbTurnDrag) return;
+ doc.__absorbTurnDrag = true;
+ var d = null;
+ doc.addEventListener("touchstart", function (e) {
+ d = null;
+ if (turnStyle === "curl" || scrolledFlow() || blindRendition || glideActive) return;
+ if (!e.touches || e.touches.length !== 1 || !rendition || !rendition.manager) return;
+ var t = e.touches[0];
+ d = { x0: t.screenX, y0: t.screenY, at: e.timeStamp, moving: false, track: [] };
+ }, { capture: true, passive: true });
+ doc.addEventListener("touchmove", function (e) {
+ if (!d) return;
+ if (!e.touches || e.touches.length !== 1) {
+ release(null, true);
+ return;
+ }
+ var t = e.touches[0];
+ if (!d.moving) {
+ var dx = t.screenX - d.x0;
+ var dy = t.screenY - d.y0;
+ if (Math.abs(dx) < 12 && Math.abs(dy) < 12) return;
+ // A finger that rested before moving was pressing to select text.
+ if (Math.abs(dx) <= Math.abs(dy) * 1.2 || isSelecting || hasActiveSelection() || e.timeStamp - d.at > 400) {
+ d = null;
+ return;
+ }
+ finishTurnSlide();
+ var m = rendition.manager;
+ d.moving = true;
+ d.m = m;
+ d.x = t.screenX; // the page moves from here, without a jump
+ d.base = m.container.scrollLeft;
+ d.page = (m.layout && m.layout.delta) || m.container.clientWidth || 1;
+ turnDragActive = turnStyle === "slide";
+ }
+ d.track.push({ x: t.screenX, at: e.timeStamp });
+ if (d.track.length > 5) d.track.shift();
+ if (turnStyle === "slide") {
+ var off = Math.max(-d.page, Math.min(d.page, t.screenX - d.x));
+ d.m.ignore = true;
+ d.m.container.scrollLeft = d.base - off;
+ }
+ }, { capture: true, passive: true });
+ function release(e, cancelled) {
+ var g = d;
+ d = null;
+ turnDragActive = false;
+ if (!g || !g.moving) return;
+ var m = g.m;
+ var c = m.container;
+ var t = e && e.changedTouches && e.changedTouches[0];
+ var dx = t ? t.screenX - g.x0 : 0;
+ var v = 0;
+ if (g.track.length > 1) {
+ var a = g.track[0];
+ var b = g.track[g.track.length - 1];
+ if (b.at > a.at) v = (b.x - a.x) / (b.at - a.at);
+ }
+ var forward = m.settings.direction === "rtl" ? dx > 0 : dx < 0;
+ var go = !cancelled && dx !== 0 &&
+ (Math.abs(dx) > g.page * 0.2 || (Math.abs(v) > 0.3 && (v < 0) === (dx < 0)));
+ if (!go) {
+ if (turnStyle === "slide") playSlide(m, c.scrollLeft, g.base, 180);
+ return;
+ }
+ var pending = null;
+ if (turnStyle === "slide") {
+ pending = { base: g.base, from: c.scrollLeft };
+ turnFromDrag = pending;
+ }
+ if (forward) rendition.next(); else rendition.prev();
+ // A turn that never picked the drag up (a selection blocked it) leaves
+ // the page between pages: put it back.
+ if (pending) {
+ setTimeout(function () {
+ if (turnFromDrag !== pending) return;
+ turnFromDrag = null;
+ playSlide(m, c.scrollLeft, pending.base, 180);
+ }, 600);
+ }
+ }
+ doc.addEventListener("touchend", function (e) { release(e, false); }, { capture: true, passive: true });
+ doc.addEventListener("touchcancel", function (e) { release(e, true); }, { capture: true, passive: true });
+}
+
+// Absorb patch: in scroll mode epub.js drops chapters far behind, and moves
+// the scroll to make up for the height it took away. Moving the scroll stops
+// a fling dead, so chapters are dropped only once the page has been still for
+// a moment.
+function setupSmoothScroll(r) {
+ var m = r && r.manager;
+ if (!m || m.__absorbSmooth || !scrolledFlow()) return;
+ m.__absorbSmooth = true;
+ var lastScrollAt = 0;
+ m.container.addEventListener("scroll", function () {
+ lastScrollAt = Date.now();
+ }, { passive: true });
+ var trim = m.trim;
+ var later = null;
+ m.trim = function () {
+ var wait = 700 - (Date.now() - lastScrollAt);
+ if (wait > 0) {
+ clearTimeout(later);
+ later = setTimeout(function () {
+ m.q.enqueue(m.trim.bind(m));
+ }, wait + 50);
+ return Promise.resolve();
+ }
+ return trim.call(m);
+ };
+}
+
//move to given cfi location or xpath
function toCfi(cfiOrXPath) {
// Check if it looks like an XPath (starts with /)
diff --git a/packages/flutter_epub_viewer/lib/src/epub_controller.dart b/packages/flutter_epub_viewer/lib/src/epub_controller.dart
index a69f19ce..a92fc0c9 100644
--- a/packages/flutter_epub_viewer/lib/src/epub_controller.dart
+++ b/packages/flutter_epub_viewer/lib/src/epub_controller.dart
@@ -1,4 +1,5 @@
import 'dart:async';
+import 'dart:convert';
import 'package:flutter_epub_viewer/src/epub_metadata.dart';
import 'package:flutter_epub_viewer/src/models/epub_display_settings.dart';
@@ -39,6 +40,14 @@ class EpubController {
webViewController?.evaluateJavascript(source: 'next()');
}
+ /// How a page turns: "none", "slide" (the page moves sideways and follows
+ /// a finger dragging it) or "curl" (the app draws it; the page turns at
+ /// once and leaves sideways drags alone).
+ Future<void> setTurnStyle(String style) async {
+ await webViewController?.evaluateJavascript(
+ source: 'window.setTurnStyle && setTurnStyle(${jsonEncode(style)})');
+ }
+
///Moves to previous page in epub view
prev() {
checkEpubLoaded();
diff --git a/pubspec.yaml b/pubspec.yaml
index 84067ed9..4acc17ba 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -147,6 +147,8 @@ flutter:
- assets/foliate/
- assets/foliate/foliate-js/
- assets/foliate/foliate-js/vendor/
+ shaders:
+ - shaders/page_ripple.frag
fonts:
- family: NotoSansJP
fonts:
diff --git a/shaders/page_ripple.frag b/shaders/page_ripple.frag
new file mode 100644
index 00000000..227313f8
--- /dev/null
+++ b/shaders/page_ripple.frag
@@ -0,0 +1,52 @@
+#version 460 core
+
+#include <flutter/runtime_effect.glsl>
+
+// A ripple spreads from where the page was touched, like a drop in still
+// water. The old page wobbles at the wave and the new one surfaces behind it.
+
+uniform vec2 uSize;
+uniform vec4 uRect; // where the picture sits: left, top, right, bottom
+uniform vec4 uPaper; // the page color around the picture
+uniform vec2 uOrigin;
+uniform float uProgress; // 0 the old page whole, 1 the new page everywhere
+uniform float uHasUnder;
+uniform sampler2D uTop;
+uniform sampler2D uUnder;
+
+out vec4 fragColor;
+
+bool onPicture(vec2 p) {
+ return p.x >= uRect.x && p.y >= uRect.y && p.x <= uRect.z && p.y <= uRect.w;
+}
+
+vec2 pictureUv(vec2 p) {
+ return (p - uRect.xy) / (uRect.zw - uRect.xy);
+}
+
+vec4 topAt(vec2 p) {
+ return onPicture(p) ? texture(uTop, pictureUv(p)) : uPaper;
+}
+
+vec4 underAt(vec2 p) {
+ if (uHasUnder < 0.5) return vec4(0.0);
+ return onPicture(p) ? texture(uUnder, pictureUv(p)) : uPaper;
+}
+
+void main() {
+ vec2 p = FlutterFragCoord().xy;
+ vec2 away = p - uOrigin;
+ float dist = length(away);
+ float band = 90.0;
+ float front = uProgress * (length(uSize) * 1.1 + band * 2.0) - band;
+ float near = exp(-pow((dist - front) / band, 2.0));
+ float wave = sin((dist - front) * 0.09) * 12.0 * near;
+ vec2 shift = dist > 0.001 ? away / dist * wave : vec2(0.0);
+
+ vec4 top = topAt(p + shift);
+ vec4 under = underAt(p + shift * 0.5);
+ vec4 color = mix(top, under, smoothstep(-band * 0.4, band * 0.4, front - dist));
+ // Light catching the crest.
+ color.rgb += vec3(0.07) * max(0.0, sin((dist - front) * 0.09)) * near * color.a;
+ fragColor = color;
+}