Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Add Smart Scopes, reader scroll mode and new list buttons, and fix a batch of BookOrbit, reader and read along bugs

Barnabas1cd9b527838a
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index f1e60e73..3fc6977f 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -9,6 +9,9 @@
"listsNoneHint": "Collections and playlists are made on your Audiobookshelf server, and show up here.",
"listsLoadFailed": "Couldn't load your lists",
"listsLoadFailedHint": "Absorb couldn't reach your server for collections and playlists.",
+ "listsNoneBookOrbit": "No collections or Smart Scopes",
+ "listsNoneHintBookOrbit": "Collections and Smart Scopes are made on your BookOrbit server, and show up here.",
+ "listsLoadFailedHintBookOrbit": "Absorb couldn't reach your server for collections and Smart Scopes.",
"cancel": "Cancel",
"delete": "Delete",
"remove": "Remove",
@@ -2431,6 +2434,14 @@
"failedToAdd": "Failed to add",
"newCollection": "New Collection",
"collectionNameHint": "Collection name",
+ "listsNewCollectionSubtitle": "Group books into a list you keep",
+ "listsNewCollectionNeedsBookSubtitle": "Start it with at least one book",
+ "listsNewPlaylistSubtitle": "Line up books to listen to in order",
+ "listsAddBooksNow": "Add books now",
+ "listsPickBooksNext": "You'll pick books next. A collection on this server needs at least one.",
+ "listsCreate": "Create",
+ "listsCollectionNeedsBook": "A collection needs at least one book, so nothing was created.",
+ "listsCreateFailed": "Couldn't create it",
"castToDevice": "Cast to Device",
"searchingForCastDevices": "Searching for Cast devices...",
"castDevice": "Cast Device",
@@ -4134,6 +4145,120 @@
}
},
"collectionDetailDefaultName": "Collection",
+ "smartScopeBookCount": "Smart Scope · {count} books",
+ "@smartScopeBookCount": {"placeholders": {"count": {"type": "int"}}},
+ "smartScopeNew": "New Smart Scope",
+ "smartScopeNewSubtitle": "Save a set of filters as a list that keeps itself up to date",
+ "smartScopeEditTitle": "Edit Smart Scope",
+ "smartScopeIcon": "Icon",
+ "smartScopePublic": "Visible to all users",
+ "smartScopeKobo": "Sync to Kobo",
+ "smartScopeRules": "Rules",
+ "smartScopeMatchAll": "Match all",
+ "smartScopeMatchAny": "Match any",
+ "smartScopeAddRule": "Add rule",
+ "smartScopeAddGroup": "Add group",
+ "smartScopeGroup": "Group",
+ "smartScopeStartFrom": "Start from",
+ "smartScopeFromScratch": "Build from scratch",
+ "smartScopeTplHasSeries": "Has a series",
+ "smartScopeTplRecent": "Added recently",
+ "smartScopeTplPdf": "PDF only",
+ "smartScopeTplNoGenres": "No genres",
+ "smartScopeTplEpub": "EPUB only",
+ "smartScopeCounting": "Counting...",
+ "smartScopeSort": "Default sort",
+ "smartScopeAddSort": "Add sort level",
+ "smartScopeSortNone": "No sort set, so books sort by title.",
+ "smartScopeAscending": "Ascending",
+ "smartScopeDescending": "Descending",
+ "smartScopeDelete": "Delete Smart Scope",
+ "smartScopeSaveFailed": "Couldn't save the Smart Scope",
+ "smartScopeDeleteFailed": "Couldn't delete the Smart Scope",
+ "smartScopeLoadFailed": "Couldn't load the Smart Scope",
+ "smartScopeUnsupportedRule": "This rule can only be changed on the BookOrbit web. It's kept as it is.",
+ "smartScopeAnd": "and",
+ "smartScopeDays": "days",
+ "smartScopeWeeks": "weeks",
+ "smartScopeMonths": "months",
+ "smartScopePickDate": "Pick a date",
+ "smartScopeAddValue": "Add a value",
+ "smartScopeValue": "Value",
+ "smartScopeCustomFields": "Custom fields",
+ "smartScopeAnyProvider": "Any provider",
+ "smartScopeScoreOutstanding": "Outstanding",
+ "smartScopeScoreGood": "Good",
+ "smartScopeScoreFair": "Fair",
+ "smartScopeScorePoor": "Poor",
+ "smartScopeMb": "MB",
+ "smartScopeMaxValues": "Up to 20 values",
+ "scopeFieldTitle": "Title",
+ "scopeFieldAuthor": "Author",
+ "scopeFieldSeries": "Series",
+ "scopeFieldSeriesIndex": "Series number",
+ "scopeFieldGenre": "Genre",
+ "scopeFieldTag": "Tag",
+ "scopeFieldReadStatus": "Read status",
+ "scopeFieldReadProgress": "Reading progress",
+ "scopeFieldRating": "Your rating",
+ "scopeFieldFormat": "Format",
+ "scopeFieldLibrary": "Library",
+ "scopeFieldCollection": "Collection",
+ "scopeFieldPublisher": "Publisher",
+ "scopeFieldLanguage": "Language",
+ "scopeFieldPublishedDate": "Published date",
+ "scopeFieldPublishedYear": "Published year",
+ "scopeFieldAddedAt": "Date added",
+ "scopeFieldStartedAt": "Date started",
+ "scopeFieldFinishedAt": "Date finished",
+ "scopeFieldPageCount": "Page count",
+ "scopeFieldFileSize": "File size",
+ "scopeFieldCommunityRating": "Community rating",
+ "scopeFieldCommunityRatingCount": "Community review count",
+ "scopeFieldMetadataScore": "Metadata score",
+ "scopeFieldIsbn": "ISBN",
+ "scopeFieldDescription": "Description",
+ "scopeFieldCover": "Cover",
+ "scopeFieldAudioCover": "Audiobook cover",
+ "scopeFieldFileAvailability": "File availability",
+ "scopeFieldLockStatus": "Lock status",
+ "scopeFieldSeriesStatus": "Series status",
+ "scopeSortUpdatedAt": "Date updated",
+ "scopeSortLastReadAt": "Last read",
+ "scopeSortRandom": "Random",
+ "scopeOpContains": "contains",
+ "scopeOpNotContains": "does not contain",
+ "scopeOpStartsWith": "starts with",
+ "scopeOpEndsWith": "ends with",
+ "scopeOpEq": "is",
+ "scopeOpNotEq": "is not",
+ "scopeOpIsEmpty": "is empty",
+ "scopeOpIsNotEmpty": "is not empty",
+ "scopeOpGt": "greater than",
+ "scopeOpGte": "at least",
+ "scopeOpLt": "less than",
+ "scopeOpLte": "at most",
+ "scopeOpBetween": "between",
+ "scopeOpIncludesAny": "includes any of",
+ "scopeOpIncludesAll": "includes all of",
+ "scopeOpExcludesAll": "excludes all of",
+ "scopeOpBefore": "before",
+ "scopeOpAfter": "after",
+ "scopeOpWithinLast": "within the last",
+ "scopeOpIsMissing": "is missing",
+ "scopeOpIsPresent": "is present",
+ "scopeOpIsUnread": "is unread",
+ "scopeOpIsInProgress": "is in progress",
+ "scopeOpIsFinished": "is finished",
+ "scopeOpIsLocked": "is locked",
+ "scopeOpIsUnlocked": "is unlocked",
+ "scopeOpIsUpNext": "is up next",
+ "scopeOpIsTrue": "is yes",
+ "scopeOpIsFalse": "is no",
+ "smartScopeMatchCount": "{count, plural, =0{No books match} =1{1 book matches} other{{count} books match}}",
+ "@smartScopeMatchCount": {"placeholders": {"count": {"type": "int"}}},
+ "smartScopeDeleteConfirm": "Delete \"{name}\"? This can't be undone.",
+ "@smartScopeDeleteConfirm": {"placeholders": {"name": {"type": "String"}}},
"collectionDetailBookCount": "{count} books",
"@collectionDetailBookCount": {
"placeholders": {
@@ -5422,6 +5547,7 @@
"ebookSaveToDeviceTitle": "Save to device?",
"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.",
"readerFormatUnsupported": "This ebook format can't be opened in the reader yet",
+ "readerCouldNotOpen": "This ebook couldn't be opened. The file may be damaged.",
"moreActions": "More",
"readerChapters": "Chapters",
"readerSettings": "Reader Settings",
@@ -5435,6 +5561,8 @@
"readerPageLayout": "Page layout",
"readerPinTopBar": "Keep the title and progress bar on screen",
"readerPinTopBarHint": "Pins them above the page instead of showing them on tap. The page gets a little shorter so no text is covered.",
+ "readerScrollMode": "Scroll mode",
+ "readerScrollModeHint": "Scroll down through the book instead of turning pages. Applies to every book.",
"readerKeepAwake": "Keep the screen on",
"readerKeepAwakeHint": "Stops the screen timing out while you read at your own pace. Auto scroll and read along always keep it on.",
"readerLayoutAuto": "Auto",
@@ -5748,6 +5876,10 @@
"@readAlongLost": {
"description": "Read along pill after 45s of narration that matches nothing on the page"
},
+ "readAlongBackToNarration": "Back to narration",
+ "@readAlongBackToNarration": {
+ "description": "Ebook reader button that returns the page to the sentence being narrated after the reader moved away during read along"
+ },
"findInEbook": "Find in ebook",
"findInEbookSearching": "Finding this spot in the ebook...",
"findInEbookNotFound": "Couldn't find this spot in the ebook.",
@@ -5834,6 +5966,9 @@
}
},
"comicReadingDirection": "Reading direction",
+ "comicPageNumber": "Page {page}",
+ "@comicPageNumber": {"placeholders": {"page": {"type": "int"}}},
+ "comicBookmarkRemoveFailed": "Couldn't remove the bookmark from the server. Try again when you're online.",
"comicLeftToRight": "Left to right",
"comicRightToLeft": "Right to left (manga)",
"comicNeedsConnection": "This comic opens page by page from your server, so it needs a connection.",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index 4abbe0c0..1ab01d2b 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -172,6 +172,24 @@ abstract class AppLocalizations {
/// **'Absorb couldn\'t reach your server for collections and playlists.'**
String get listsLoadFailedHint;
+ /// No description provided for @listsNoneBookOrbit.
+ ///
+ /// In en, this message translates to:
+ /// **'No collections or Smart Scopes'**
+ String get listsNoneBookOrbit;
+
+ /// No description provided for @listsNoneHintBookOrbit.
+ ///
+ /// In en, this message translates to:
+ /// **'Collections and Smart Scopes are made on your BookOrbit server, and show up here.'**
+ String get listsNoneHintBookOrbit;
+
+ /// No description provided for @listsLoadFailedHintBookOrbit.
+ ///
+ /// In en, this message translates to:
+ /// **'Absorb couldn\'t reach your server for collections and Smart Scopes.'**
+ String get listsLoadFailedHintBookOrbit;
+
/// No description provided for @cancel.
///
/// In en, this message translates to:
@@ -8368,6 +8386,54 @@ abstract class AppLocalizations {
/// **'Collection name'**
String get collectionNameHint;
+ /// No description provided for @listsNewCollectionSubtitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Group books into a list you keep'**
+ String get listsNewCollectionSubtitle;
+
+ /// No description provided for @listsNewCollectionNeedsBookSubtitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Start it with at least one book'**
+ String get listsNewCollectionNeedsBookSubtitle;
+
+ /// No description provided for @listsNewPlaylistSubtitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Line up books to listen to in order'**
+ String get listsNewPlaylistSubtitle;
+
+ /// No description provided for @listsAddBooksNow.
+ ///
+ /// In en, this message translates to:
+ /// **'Add books now'**
+ String get listsAddBooksNow;
+
+ /// No description provided for @listsPickBooksNext.
+ ///
+ /// In en, this message translates to:
+ /// **'You\'ll pick books next. A collection on this server needs at least one.'**
+ String get listsPickBooksNext;
+
+ /// No description provided for @listsCreate.
+ ///
+ /// In en, this message translates to:
+ /// **'Create'**
+ String get listsCreate;
+
+ /// No description provided for @listsCollectionNeedsBook.
+ ///
+ /// In en, this message translates to:
+ /// **'A collection needs at least one book, so nothing was created.'**
+ String get listsCollectionNeedsBook;
+
+ /// No description provided for @listsCreateFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t create it'**
+ String get listsCreateFailed;
+
/// No description provided for @castToDevice.
///
/// In en, this message translates to:
@@ -12261,6 +12327,672 @@ abstract class AppLocalizations {
/// **'Collection'**
String get collectionDetailDefaultName;
+ /// No description provided for @smartScopeBookCount.
+ ///
+ /// In en, this message translates to:
+ /// **'Smart Scope · {count} books'**
+ String smartScopeBookCount(int count);
+
+ /// No description provided for @smartScopeNew.
+ ///
+ /// In en, this message translates to:
+ /// **'New Smart Scope'**
+ String get smartScopeNew;
+
+ /// No description provided for @smartScopeNewSubtitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Save a set of filters as a list that keeps itself up to date'**
+ String get smartScopeNewSubtitle;
+
+ /// No description provided for @smartScopeEditTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Edit Smart Scope'**
+ String get smartScopeEditTitle;
+
+ /// No description provided for @smartScopeIcon.
+ ///
+ /// In en, this message translates to:
+ /// **'Icon'**
+ String get smartScopeIcon;
+
+ /// No description provided for @smartScopePublic.
+ ///
+ /// In en, this message translates to:
+ /// **'Visible to all users'**
+ String get smartScopePublic;
+
+ /// No description provided for @smartScopeKobo.
+ ///
+ /// In en, this message translates to:
+ /// **'Sync to Kobo'**
+ String get smartScopeKobo;
+
+ /// No description provided for @smartScopeRules.
+ ///
+ /// In en, this message translates to:
+ /// **'Rules'**
+ String get smartScopeRules;
+
+ /// No description provided for @smartScopeMatchAll.
+ ///
+ /// In en, this message translates to:
+ /// **'Match all'**
+ String get smartScopeMatchAll;
+
+ /// No description provided for @smartScopeMatchAny.
+ ///
+ /// In en, this message translates to:
+ /// **'Match any'**
+ String get smartScopeMatchAny;
+
+ /// No description provided for @smartScopeAddRule.
+ ///
+ /// In en, this message translates to:
+ /// **'Add rule'**
+ String get smartScopeAddRule;
+
+ /// No description provided for @smartScopeAddGroup.
+ ///
+ /// In en, this message translates to:
+ /// **'Add group'**
+ String get smartScopeAddGroup;
+
+ /// No description provided for @smartScopeGroup.
+ ///
+ /// In en, this message translates to:
+ /// **'Group'**
+ String get smartScopeGroup;
+
+ /// No description provided for @smartScopeStartFrom.
+ ///
+ /// In en, this message translates to:
+ /// **'Start from'**
+ String get smartScopeStartFrom;
+
+ /// No description provided for @smartScopeFromScratch.
+ ///
+ /// In en, this message translates to:
+ /// **'Build from scratch'**
+ String get smartScopeFromScratch;
+
+ /// No description provided for @smartScopeTplHasSeries.
+ ///
+ /// In en, this message translates to:
+ /// **'Has a series'**
+ String get smartScopeTplHasSeries;
+
+ /// No description provided for @smartScopeTplRecent.
+ ///
+ /// In en, this message translates to:
+ /// **'Added recently'**
+ String get smartScopeTplRecent;
+
+ /// No description provided for @smartScopeTplPdf.
+ ///
+ /// In en, this message translates to:
+ /// **'PDF only'**
+ String get smartScopeTplPdf;
+
+ /// No description provided for @smartScopeTplNoGenres.
+ ///
+ /// In en, this message translates to:
+ /// **'No genres'**
+ String get smartScopeTplNoGenres;
+
+ /// No description provided for @smartScopeTplEpub.
+ ///
+ /// In en, this message translates to:
+ /// **'EPUB only'**
+ String get smartScopeTplEpub;
+
+ /// No description provided for @smartScopeCounting.
+ ///
+ /// In en, this message translates to:
+ /// **'Counting...'**
+ String get smartScopeCounting;
+
+ /// No description provided for @smartScopeSort.
+ ///
+ /// In en, this message translates to:
+ /// **'Default sort'**
+ String get smartScopeSort;
+
+ /// No description provided for @smartScopeAddSort.
+ ///
+ /// In en, this message translates to:
+ /// **'Add sort level'**
+ String get smartScopeAddSort;
+
+ /// No description provided for @smartScopeSortNone.
+ ///
+ /// In en, this message translates to:
+ /// **'No sort set, so books sort by title.'**
+ String get smartScopeSortNone;
+
+ /// No description provided for @smartScopeAscending.
+ ///
+ /// In en, this message translates to:
+ /// **'Ascending'**
+ String get smartScopeAscending;
+
+ /// No description provided for @smartScopeDescending.
+ ///
+ /// In en, this message translates to:
+ /// **'Descending'**
+ String get smartScopeDescending;
+
+ /// No description provided for @smartScopeDelete.
+ ///
+ /// In en, this message translates to:
+ /// **'Delete Smart Scope'**
+ String get smartScopeDelete;
+
+ /// No description provided for @smartScopeSaveFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t save the Smart Scope'**
+ String get smartScopeSaveFailed;
+
+ /// No description provided for @smartScopeDeleteFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t delete the Smart Scope'**
+ String get smartScopeDeleteFailed;
+
+ /// No description provided for @smartScopeLoadFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t load the Smart Scope'**
+ String get smartScopeLoadFailed;
+
+ /// No description provided for @smartScopeUnsupportedRule.
+ ///
+ /// In en, this message translates to:
+ /// **'This rule can only be changed on the BookOrbit web. It\'s kept as it is.'**
+ String get smartScopeUnsupportedRule;
+
+ /// No description provided for @smartScopeAnd.
+ ///
+ /// In en, this message translates to:
+ /// **'and'**
+ String get smartScopeAnd;
+
+ /// No description provided for @smartScopeDays.
+ ///
+ /// In en, this message translates to:
+ /// **'days'**
+ String get smartScopeDays;
+
+ /// No description provided for @smartScopeWeeks.
+ ///
+ /// In en, this message translates to:
+ /// **'weeks'**
+ String get smartScopeWeeks;
+
+ /// No description provided for @smartScopeMonths.
+ ///
+ /// In en, this message translates to:
+ /// **'months'**
+ String get smartScopeMonths;
+
+ /// No description provided for @smartScopePickDate.
+ ///
+ /// In en, this message translates to:
+ /// **'Pick a date'**
+ String get smartScopePickDate;
+
+ /// No description provided for @smartScopeAddValue.
+ ///
+ /// In en, this message translates to:
+ /// **'Add a value'**
+ String get smartScopeAddValue;
+
+ /// No description provided for @smartScopeValue.
+ ///
+ /// In en, this message translates to:
+ /// **'Value'**
+ String get smartScopeValue;
+
+ /// No description provided for @smartScopeCustomFields.
+ ///
+ /// In en, this message translates to:
+ /// **'Custom fields'**
+ String get smartScopeCustomFields;
+
+ /// No description provided for @smartScopeAnyProvider.
+ ///
+ /// In en, this message translates to:
+ /// **'Any provider'**
+ String get smartScopeAnyProvider;
+
+ /// No description provided for @smartScopeScoreOutstanding.
+ ///
+ /// In en, this message translates to:
+ /// **'Outstanding'**
+ String get smartScopeScoreOutstanding;
+
+ /// No description provided for @smartScopeScoreGood.
+ ///
+ /// In en, this message translates to:
+ /// **'Good'**
+ String get smartScopeScoreGood;
+
+ /// No description provided for @smartScopeScoreFair.
+ ///
+ /// In en, this message translates to:
+ /// **'Fair'**
+ String get smartScopeScoreFair;
+
+ /// No description provided for @smartScopeScorePoor.
+ ///
+ /// In en, this message translates to:
+ /// **'Poor'**
+ String get smartScopeScorePoor;
+
+ /// No description provided for @smartScopeMb.
+ ///
+ /// In en, this message translates to:
+ /// **'MB'**
+ String get smartScopeMb;
+
+ /// No description provided for @smartScopeMaxValues.
+ ///
+ /// In en, this message translates to:
+ /// **'Up to 20 values'**
+ String get smartScopeMaxValues;
+
+ /// No description provided for @scopeFieldTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Title'**
+ String get scopeFieldTitle;
+
+ /// No description provided for @scopeFieldAuthor.
+ ///
+ /// In en, this message translates to:
+ /// **'Author'**
+ String get scopeFieldAuthor;
+
+ /// No description provided for @scopeFieldSeries.
+ ///
+ /// In en, this message translates to:
+ /// **'Series'**
+ String get scopeFieldSeries;
+
+ /// No description provided for @scopeFieldSeriesIndex.
+ ///
+ /// In en, this message translates to:
+ /// **'Series number'**
+ String get scopeFieldSeriesIndex;
+
+ /// No description provided for @scopeFieldGenre.
+ ///
+ /// In en, this message translates to:
+ /// **'Genre'**
+ String get scopeFieldGenre;
+
+ /// No description provided for @scopeFieldTag.
+ ///
+ /// In en, this message translates to:
+ /// **'Tag'**
+ String get scopeFieldTag;
+
+ /// No description provided for @scopeFieldReadStatus.
+ ///
+ /// In en, this message translates to:
+ /// **'Read status'**
+ String get scopeFieldReadStatus;
+
+ /// No description provided for @scopeFieldReadProgress.
+ ///
+ /// In en, this message translates to:
+ /// **'Reading progress'**
+ String get scopeFieldReadProgress;
+
+ /// No description provided for @scopeFieldRating.
+ ///
+ /// In en, this message translates to:
+ /// **'Your rating'**
+ String get scopeFieldRating;
+
+ /// No description provided for @scopeFieldFormat.
+ ///
+ /// In en, this message translates to:
+ /// **'Format'**
+ String get scopeFieldFormat;
+
+ /// No description provided for @scopeFieldLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'Library'**
+ String get scopeFieldLibrary;
+
+ /// No description provided for @scopeFieldCollection.
+ ///
+ /// In en, this message translates to:
+ /// **'Collection'**
+ String get scopeFieldCollection;
+
+ /// No description provided for @scopeFieldPublisher.
+ ///
+ /// In en, this message translates to:
+ /// **'Publisher'**
+ String get scopeFieldPublisher;
+
+ /// No description provided for @scopeFieldLanguage.
+ ///
+ /// In en, this message translates to:
+ /// **'Language'**
+ String get scopeFieldLanguage;
+
+ /// No description provided for @scopeFieldPublishedDate.
+ ///
+ /// In en, this message translates to:
+ /// **'Published date'**
+ String get scopeFieldPublishedDate;
+
+ /// No description provided for @scopeFieldPublishedYear.
+ ///
+ /// In en, this message translates to:
+ /// **'Published year'**
+ String get scopeFieldPublishedYear;
+
+ /// No description provided for @scopeFieldAddedAt.
+ ///
+ /// In en, this message translates to:
+ /// **'Date added'**
+ String get scopeFieldAddedAt;
+
+ /// No description provided for @scopeFieldStartedAt.
+ ///
+ /// In en, this message translates to:
+ /// **'Date started'**
+ String get scopeFieldStartedAt;
+
+ /// No description provided for @scopeFieldFinishedAt.
+ ///
+ /// In en, this message translates to:
+ /// **'Date finished'**
+ String get scopeFieldFinishedAt;
+
+ /// No description provided for @scopeFieldPageCount.
+ ///
+ /// In en, this message translates to:
+ /// **'Page count'**
+ String get scopeFieldPageCount;
+
+ /// No description provided for @scopeFieldFileSize.
+ ///
+ /// In en, this message translates to:
+ /// **'File size'**
+ String get scopeFieldFileSize;
+
+ /// No description provided for @scopeFieldCommunityRating.
+ ///
+ /// In en, this message translates to:
+ /// **'Community rating'**
+ String get scopeFieldCommunityRating;
+
+ /// No description provided for @scopeFieldCommunityRatingCount.
+ ///
+ /// In en, this message translates to:
+ /// **'Community review count'**
+ String get scopeFieldCommunityRatingCount;
+
+ /// No description provided for @scopeFieldMetadataScore.
+ ///
+ /// In en, this message translates to:
+ /// **'Metadata score'**
+ String get scopeFieldMetadataScore;
+
+ /// No description provided for @scopeFieldIsbn.
+ ///
+ /// In en, this message translates to:
+ /// **'ISBN'**
+ String get scopeFieldIsbn;
+
+ /// No description provided for @scopeFieldDescription.
+ ///
+ /// In en, this message translates to:
+ /// **'Description'**
+ String get scopeFieldDescription;
+
+ /// No description provided for @scopeFieldCover.
+ ///
+ /// In en, this message translates to:
+ /// **'Cover'**
+ String get scopeFieldCover;
+
+ /// No description provided for @scopeFieldAudioCover.
+ ///
+ /// In en, this message translates to:
+ /// **'Audiobook cover'**
+ String get scopeFieldAudioCover;
+
+ /// No description provided for @scopeFieldFileAvailability.
+ ///
+ /// In en, this message translates to:
+ /// **'File availability'**
+ String get scopeFieldFileAvailability;
+
+ /// No description provided for @scopeFieldLockStatus.
+ ///
+ /// In en, this message translates to:
+ /// **'Lock status'**
+ String get scopeFieldLockStatus;
+
+ /// No description provided for @scopeFieldSeriesStatus.
+ ///
+ /// In en, this message translates to:
+ /// **'Series status'**
+ String get scopeFieldSeriesStatus;
+
+ /// No description provided for @scopeSortUpdatedAt.
+ ///
+ /// In en, this message translates to:
+ /// **'Date updated'**
+ String get scopeSortUpdatedAt;
+
+ /// No description provided for @scopeSortLastReadAt.
+ ///
+ /// In en, this message translates to:
+ /// **'Last read'**
+ String get scopeSortLastReadAt;
+
+ /// No description provided for @scopeSortRandom.
+ ///
+ /// In en, this message translates to:
+ /// **'Random'**
+ String get scopeSortRandom;
+
+ /// No description provided for @scopeOpContains.
+ ///
+ /// In en, this message translates to:
+ /// **'contains'**
+ String get scopeOpContains;
+
+ /// No description provided for @scopeOpNotContains.
+ ///
+ /// In en, this message translates to:
+ /// **'does not contain'**
+ String get scopeOpNotContains;
+
+ /// No description provided for @scopeOpStartsWith.
+ ///
+ /// In en, this message translates to:
+ /// **'starts with'**
+ String get scopeOpStartsWith;
+
+ /// No description provided for @scopeOpEndsWith.
+ ///
+ /// In en, this message translates to:
+ /// **'ends with'**
+ String get scopeOpEndsWith;
+
+ /// No description provided for @scopeOpEq.
+ ///
+ /// In en, this message translates to:
+ /// **'is'**
+ String get scopeOpEq;
+
+ /// No description provided for @scopeOpNotEq.
+ ///
+ /// In en, this message translates to:
+ /// **'is not'**
+ String get scopeOpNotEq;
+
+ /// No description provided for @scopeOpIsEmpty.
+ ///
+ /// In en, this message translates to:
+ /// **'is empty'**
+ String get scopeOpIsEmpty;
+
+ /// No description provided for @scopeOpIsNotEmpty.
+ ///
+ /// In en, this message translates to:
+ /// **'is not empty'**
+ String get scopeOpIsNotEmpty;
+
+ /// No description provided for @scopeOpGt.
+ ///
+ /// In en, this message translates to:
+ /// **'greater than'**
+ String get scopeOpGt;
+
+ /// No description provided for @scopeOpGte.
+ ///
+ /// In en, this message translates to:
+ /// **'at least'**
+ String get scopeOpGte;
+
+ /// No description provided for @scopeOpLt.
+ ///
+ /// In en, this message translates to:
+ /// **'less than'**
+ String get scopeOpLt;
+
+ /// No description provided for @scopeOpLte.
+ ///
+ /// In en, this message translates to:
+ /// **'at most'**
+ String get scopeOpLte;
+
+ /// No description provided for @scopeOpBetween.
+ ///
+ /// In en, this message translates to:
+ /// **'between'**
+ String get scopeOpBetween;
+
+ /// No description provided for @scopeOpIncludesAny.
+ ///
+ /// In en, this message translates to:
+ /// **'includes any of'**
+ String get scopeOpIncludesAny;
+
+ /// No description provided for @scopeOpIncludesAll.
+ ///
+ /// In en, this message translates to:
+ /// **'includes all of'**
+ String get scopeOpIncludesAll;
+
+ /// No description provided for @scopeOpExcludesAll.
+ ///
+ /// In en, this message translates to:
+ /// **'excludes all of'**
+ String get scopeOpExcludesAll;
+
+ /// No description provided for @scopeOpBefore.
+ ///
+ /// In en, this message translates to:
+ /// **'before'**
+ String get scopeOpBefore;
+
+ /// No description provided for @scopeOpAfter.
+ ///
+ /// In en, this message translates to:
+ /// **'after'**
+ String get scopeOpAfter;
+
+ /// No description provided for @scopeOpWithinLast.
+ ///
+ /// In en, this message translates to:
+ /// **'within the last'**
+ String get scopeOpWithinLast;
+
+ /// No description provided for @scopeOpIsMissing.
+ ///
+ /// In en, this message translates to:
+ /// **'is missing'**
+ String get scopeOpIsMissing;
+
+ /// No description provided for @scopeOpIsPresent.
+ ///
+ /// In en, this message translates to:
+ /// **'is present'**
+ String get scopeOpIsPresent;
+
+ /// No description provided for @scopeOpIsUnread.
+ ///
+ /// In en, this message translates to:
+ /// **'is unread'**
+ String get scopeOpIsUnread;
+
+ /// No description provided for @scopeOpIsInProgress.
+ ///
+ /// In en, this message translates to:
+ /// **'is in progress'**
+ String get scopeOpIsInProgress;
+
+ /// No description provided for @scopeOpIsFinished.
+ ///
+ /// In en, this message translates to:
+ /// **'is finished'**
+ String get scopeOpIsFinished;
+
+ /// No description provided for @scopeOpIsLocked.
+ ///
+ /// In en, this message translates to:
+ /// **'is locked'**
+ String get scopeOpIsLocked;
+
+ /// No description provided for @scopeOpIsUnlocked.
+ ///
+ /// In en, this message translates to:
+ /// **'is unlocked'**
+ String get scopeOpIsUnlocked;
+
+ /// No description provided for @scopeOpIsUpNext.
+ ///
+ /// In en, this message translates to:
+ /// **'is up next'**
+ String get scopeOpIsUpNext;
+
+ /// No description provided for @scopeOpIsTrue.
+ ///
+ /// In en, this message translates to:
+ /// **'is yes'**
+ String get scopeOpIsTrue;
+
+ /// No description provided for @scopeOpIsFalse.
+ ///
+ /// In en, this message translates to:
+ /// **'is no'**
+ String get scopeOpIsFalse;
+
+ /// No description provided for @smartScopeMatchCount.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =0{No books match} =1{1 book matches} other{{count} books match}}'**
+ String smartScopeMatchCount(int count);
+
+ /// No description provided for @smartScopeDeleteConfirm.
+ ///
+ /// In en, this message translates to:
+ /// **'Delete \"{name}\"? This can\'t be undone.'**
+ String smartScopeDeleteConfirm(String name);
+
/// No description provided for @collectionDetailBookCount.
///
/// In en, this message translates to:
@@ -16161,6 +16893,12 @@ abstract class AppLocalizations {
/// **'This ebook format can\'t be opened in the reader yet'**
String get readerFormatUnsupported;
+ /// No description provided for @readerCouldNotOpen.
+ ///
+ /// In en, this message translates to:
+ /// **'This ebook couldn\'t be opened. The file may be damaged.'**
+ String get readerCouldNotOpen;
+
/// No description provided for @moreActions.
///
/// In en, this message translates to:
@@ -16239,6 +16977,18 @@ abstract class AppLocalizations {
/// **'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;
+ /// No description provided for @readerScrollMode.
+ ///
+ /// In en, this message translates to:
+ /// **'Scroll mode'**
+ String get readerScrollMode;
+
+ /// No description provided for @readerScrollModeHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Scroll down through the book instead of turning pages. Applies to every book.'**
+ String get readerScrollModeHint;
+
/// No description provided for @readerKeepAwake.
///
/// In en, this message translates to:
@@ -17547,6 +18297,12 @@ abstract class AppLocalizations {
/// **'Can\'t find the narration on the page'**
String get readAlongLost;
+ /// Ebook reader button that returns the page to the sentence being narrated after the reader moved away during read along
+ ///
+ /// In en, this message translates to:
+ /// **'Back to narration'**
+ String get readAlongBackToNarration;
+
/// No description provided for @findInEbook.
///
/// In en, this message translates to:
@@ -17961,6 +18717,18 @@ abstract class AppLocalizations {
/// **'Reading direction'**
String get comicReadingDirection;
+ /// No description provided for @comicPageNumber.
+ ///
+ /// In en, this message translates to:
+ /// **'Page {page}'**
+ String comicPageNumber(int page);
+
+ /// No description provided for @comicBookmarkRemoveFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t remove the bookmark from the server. Try again when you\'re online.'**
+ String get comicBookmarkRemoveFailed;
+
/// No description provided for @comicLeftToRight.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index b974c609..c663dc3a 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -38,6 +38,17 @@ class AppLocalizationsDe extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Abbrechen';
@@ -4758,6 +4769,33 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get collectionNameHint => 'Name der Sammlung';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'An Gerät casten';
@@ -7196,6 +7234,354 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Sammlung';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count Bücher';
@@ -9543,6 +9929,10 @@ class AppLocalizationsDe extends AppLocalizations {
String get readerFormatUnsupported =>
'Dieses eBook-Format kann noch nicht im Reader geöffnet werden';
+ @override
+ String get readerCouldNotOpen =>
+ 'This ebook couldn\'t be opened. The file may be damaged.';
+
@override
String get moreActions => 'Mehr';
@@ -9583,6 +9973,13 @@ class AppLocalizationsDe extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10357,6 +10754,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10592,6 +10992,15 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_el.dart b/lib/l10n/app_localizations_el.dart
index c3a5e1a0..7d2db394 100644
--- a/lib/l10n/app_localizations_el.dart
+++ b/lib/l10n/app_localizations_el.dart
@@ -37,6 +37,17 @@ class AppLocalizationsEl extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancel';
@@ -4705,6 +4716,33 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7112,6 +7150,354 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9426,6 +9812,10 @@ class AppLocalizationsEl extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9466,6 +9856,13 @@ class AppLocalizationsEl extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10236,6 +10633,9 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10471,6 +10871,15 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index e66fc1d3..d18a83ec 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -37,6 +37,17 @@ class AppLocalizationsEn extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancel';
@@ -4705,6 +4716,33 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7112,6 +7150,354 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9426,6 +9812,10 @@ class AppLocalizationsEn extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9466,6 +9856,13 @@ class AppLocalizationsEn extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10236,6 +10633,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10471,6 +10871,15 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index d8ec6774..79c38d2d 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -37,6 +37,17 @@ class AppLocalizationsEs extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancelar';
@@ -4707,6 +4718,33 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7114,6 +7152,354 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9428,6 +9814,10 @@ class AppLocalizationsEs extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9468,6 +9858,13 @@ class AppLocalizationsEs extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10238,6 +10635,9 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10473,6 +10873,15 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index edce1cf0..44c57ae8 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -38,6 +38,17 @@ class AppLocalizationsFr extends AppLocalizations {
String get listsLoadFailedHint =>
'Absorb n\'a pas pu accéder à votre serveur pour les collections et les 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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Annuler';
@@ -4756,6 +4767,33 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get collectionNameHint => 'Nom de la collection';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Diffuser sur un appareil';
@@ -7163,6 +7201,354 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count livres';
@@ -9477,6 +9863,10 @@ class AppLocalizationsFr extends AppLocalizations {
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.';
+
@override
String get moreActions => 'Plus';
@@ -9517,6 +9907,13 @@ class AppLocalizationsFr extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10289,6 +10686,9 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10524,6 +10924,15 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index ef875b66..2188674d 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -37,6 +37,17 @@ class AppLocalizationsIt extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancel';
@@ -4705,6 +4716,33 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7112,6 +7150,354 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9426,6 +9812,10 @@ class AppLocalizationsIt extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9466,6 +9856,13 @@ class AppLocalizationsIt extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10236,6 +10633,9 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10471,6 +10871,15 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index ab39da7c..124e915b 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -37,6 +37,17 @@ class AppLocalizationsJa extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancel';
@@ -4705,6 +4716,33 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7112,6 +7150,354 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9426,6 +9812,10 @@ class AppLocalizationsJa extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9466,6 +9856,13 @@ class AppLocalizationsJa extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10236,6 +10633,9 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10471,6 +10871,15 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_no.dart b/lib/l10n/app_localizations_no.dart
index 70176d7f..24f8f4e7 100644
--- a/lib/l10n/app_localizations_no.dart
+++ b/lib/l10n/app_localizations_no.dart
@@ -37,6 +37,17 @@ class AppLocalizationsNo extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancel';
@@ -4705,6 +4716,33 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7112,6 +7150,354 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9426,6 +9812,10 @@ class AppLocalizationsNo extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9466,6 +9856,13 @@ class AppLocalizationsNo extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10236,6 +10633,9 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10471,6 +10871,15 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index 5a573771..714b92cf 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -37,6 +37,17 @@ class AppLocalizationsPt extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancel';
@@ -4705,6 +4716,33 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7112,6 +7150,354 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9426,6 +9812,10 @@ class AppLocalizationsPt extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9466,6 +9856,13 @@ class AppLocalizationsPt extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10236,6 +10633,9 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10471,6 +10871,15 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_ro.dart b/lib/l10n/app_localizations_ro.dart
index 07ebe5c8..3d884768 100644
--- a/lib/l10n/app_localizations_ro.dart
+++ b/lib/l10n/app_localizations_ro.dart
@@ -37,6 +37,17 @@ class AppLocalizationsRo extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Cancel';
@@ -4705,6 +4716,33 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7112,6 +7150,354 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9426,6 +9812,10 @@ class AppLocalizationsRo extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9466,6 +9856,13 @@ class AppLocalizationsRo extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10236,6 +10633,9 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10471,6 +10871,15 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index 4170eefc..7a548d58 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -38,6 +38,17 @@ class AppLocalizationsRu extends AppLocalizations {
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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+
@override
String get cancel => 'Отменить';
@@ -4709,6 +4720,33 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get collectionNameHint => 'Collection name';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => 'Cast to Device';
@@ -7116,6 +7154,354 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count books';
@@ -9431,6 +9817,10 @@ class AppLocalizationsRu extends AppLocalizations {
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.';
+
@override
String get moreActions => 'More';
@@ -9471,6 +9861,13 @@ class AppLocalizationsRu extends AppLocalizations {
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 readerScrollMode => 'Scroll mode';
+
+ @override
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
+
@override
String get readerKeepAwake => 'Keep the screen on';
@@ -10241,6 +10638,9 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10476,6 +10876,15 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index c84f8437..3f3345fd 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -27,15 +27,22 @@ class AppLocalizationsZh 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.';
+
+ @override
+ String get listsLoadFailedHintBookOrbit => 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
@override
String get cancel => '取消';
@@ -178,8 +185,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get loginCustomHttpHeaders => '自定义 HTTP 请求头';
@override
- String get loginCustomHeadersDescription =>
- '用于需要额外请求头的 Cloudflare 隧道或反向代理。请在输入服务器 URL 之前添加请求头。';
+ String get loginCustomHeadersDescription => '用于需要额外请求头的 Cloudflare 隧道或反向代理。请在输入服务器 URL 之前添加请求头。';
@override
String get loginHeaderName => '请求头名称';
@@ -200,8 +206,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get loginApiKey => 'API 密钥';
@override
- String get loginApiKeyDescription =>
- '使用管理员生成的 API 密钥代替用户名/密码。当账号的令牌刷新失败时很有用。';
+ String get loginApiKeyDescription => '使用管理员生成的 API 密钥代替用户名/密码。当账号的令牌刷新失败时很有用。';
@override
String get loginWaitingForSso => '正在等待单点登录(SSO)...';
@@ -249,12 +254,10 @@ class AppLocalizationsZh 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';
@@ -263,8 +266,7 @@ class AppLocalizationsZh 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) {
@@ -302,8 +304,7 @@ class AppLocalizationsZh 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) {
@@ -336,8 +337,7 @@ class AppLocalizationsZh 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 => '登录失败';
@@ -433,8 +433,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get libraryNoBooksWithEbooks => '暂无包含电子书的书籍';
@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';
@@ -1152,8 +1151,7 @@ class AppLocalizationsZh 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';
@@ -1224,22 +1222,19 @@ class AppLocalizationsZh 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 => '关闭';
@@ -1261,8 +1256,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get settingsBatteryUnrestricted => '允许不受限制地使用电池';
@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 => '再按一次返回键退出';
@@ -1319,8 +1313,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get colorSourceManual => '手动';
@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 => '自定义';
@@ -1329,26 +1322,22 @@ class AppLocalizationsZh 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';
@@ -1474,8 +1463,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get whenAbsorbedInfoTitle => '当收听完成时';
@override
- String get whenAbsorbedInfoContent =>
- '控制当您完成一本书或一集后收听卡片的行为。\n\n已完成的卡片会自动从从您的“正在收听”屏幕中移除。';
+ String get whenAbsorbedInfoContent => '控制当您完成一本书或一集后收听卡片的行为。\n\n已完成的卡片会自动从从您的“正在收听”屏幕中移除。';
@override
String get whenAbsorbedSubtitle => '听完一本书或或一集后收听卡片的处理方式';
@@ -1493,8 +1481,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get mergeLibrariesInfoTitle => '合并媒体库';
@override
- String get mergeLibrariesInfoContent =>
- '启用后,“正在收听”界面会将您所有媒体库中正在进行的书籍和播客集中显示在一个视图中。禁用时,仅显示您当前所选媒体库中的项目。';
+ String get mergeLibrariesInfoContent => '启用后,“正在收听”界面会将您所有媒体库中正在进行的书籍和播客集中显示在一个视图中。禁用时,仅显示您当前所选媒体库中的项目。';
@override
String get mergeLibrariesOnSubtitle => '正在收听页面显示来自所有媒体库的项目';
@@ -1518,8 +1505,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get queueModeInfoManual => '手动队列';
@override
- String get queueModeInfoManualDesc =>
- '你的收听卡片将作为播放列表使用。当一个播放完成时,会自动播放下一个未完成的卡片。通过书籍或单集详情页的\"添加至正在收听\"按钮添加项目,并在收听界面重新排序。';
+ String get queueModeInfoManualDesc => '你的收听卡片将作为播放列表使用。当一个播放完成时,会自动播放下一个未完成的卡片。通过书籍或单集详情页的\"添加至正在收听\"按钮添加项目,并在收听界面重新排序。';
@override
String get queueModeOff => '关闭';
@@ -1554,8 +1540,7 @@ class AppLocalizationsZh extends AppLocalizations {
}
@override
- String get queueModePlaylistHint =>
- 'Start a playlist queue by opening a playlist on the home page.';
+ String get queueModePlaylistHint => 'Start a playlist queue by opening a playlist on the home page.';
@override
String get exit => '退出';
@@ -1634,19 +1619,16 @@ class AppLocalizationsZh 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';
@@ -1670,12 +1652,10 @@ class AppLocalizationsZh 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';
@@ -1698,12 +1678,10 @@ class AppLocalizationsZh 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';
@@ -1721,19 +1699,16 @@ class AppLocalizationsZh extends AppLocalizations {
String get chapterProgressOffSubtitle => '关闭 - 锁屏显示全书进度';
@override
- String get chapterProgressInNotificationIos =>
- 'Chapter progress on lock screen & CarPlay';
+ String get chapterProgressInNotificationIos => 'Chapter progress on lock screen & CarPlay';
@override
- String get chapterProgressOnSubtitleIos =>
- 'On - lock screen & CarPlay show chapter progress';
+ String get chapterProgressOnSubtitleIos => 'On - lock screen & CarPlay show chapter progress';
@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';
@@ -1745,8 +1720,7 @@ class AppLocalizationsZh 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';
@@ -1927,15 +1901,13 @@ class AppLocalizationsZh 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';
@@ -1975,8 +1947,7 @@ class AppLocalizationsZh 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';
@@ -2130,8 +2101,7 @@ class AppLocalizationsZh 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';
@@ -2155,12 +2125,10 @@ class AppLocalizationsZh 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';
@@ -2313,8 +2281,7 @@ class AppLocalizationsZh 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.';
@@ -2329,8 +2296,7 @@ class AppLocalizationsZh 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';
@@ -2381,8 +2347,7 @@ class AppLocalizationsZh 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';
@@ -2460,15 +2425,13 @@ class AppLocalizationsZh 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';
@@ -2495,16 +2458,13 @@ class AppLocalizationsZh 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...';
@@ -2519,8 +2479,7 @@ class AppLocalizationsZh 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.';
@@ -2529,12 +2488,10 @@ class AppLocalizationsZh 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.';
@@ -2612,12 +2569,10 @@ class AppLocalizationsZh 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) {
@@ -2744,37 +2699,31 @@ class AppLocalizationsZh 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 => 'Speed & bookmark in media controls';
@override
- String get speedBookmarkOnSubtitle =>
- 'On - notification shows speed & bookmark; chapter skip stays in Android Auto';
+ String get speedBookmarkOnSubtitle => 'On - notification shows speed & bookmark; chapter skip stays in Android Auto';
@override
- String get speedBookmarkOffSubtitle =>
- 'Off - notification shows chapter skip; speed & bookmark stay in Android Auto';
+ String get speedBookmarkOffSubtitle => 'Off - notification shows chapter skip; speed & bookmark stay in Android Auto';
@override
String get lockSeekBar => '锁定搜索栏';
@override
- String get lockSeekBarOnSubtitle =>
- 'On - the scrubber in the notification, lockscreen and car shows progress but can\'t be dragged';
+ String get lockSeekBarOnSubtitle => 'On - the scrubber in the notification, lockscreen and car shows progress but can\'t be dragged';
@override
- String get lockSeekBarOffSubtitle =>
- 'Off - drag the scrubber in the notification, lockscreen and car to jump around';
+ String get lockSeekBarOffSubtitle => 'Off - drag the scrubber in the notification, lockscreen and car to jump around';
@override
String get autoRewindOnResume => '恢复播放时自动倒退';
@@ -2883,8 +2832,7 @@ class AppLocalizationsZh 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 => '暂停时重置定时器';
@@ -2970,8 +2918,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get autoDownloadOnWifiInfoTitle => 'Wi-Fi 下自动下载';
@override
- String get autoDownloadOnWifiInfoContent =>
- '当您开始在线播放书籍时,系统会在后台同步下载完整内容,无需手动操作即可实现离线收听。后台下载将严格遵循上方的“下载网络设置”,若您希望在移动网络下也能自动下载,请将其设置为“任意网络”。';
+ String get autoDownloadOnWifiInfoContent => '当您开始在线播放书籍时,系统会在后台同步下载完整内容,无需手动操作即可实现离线收听。后台下载将严格遵循上方的“下载网络设置”,若您希望在移动网络下也能自动下载,请将其设置为“任意网络”。';
@override
String get autoDownloadOnWifiOnSubtitle => '在 Wi-Fi 下开始流式播放时,书籍将在后台下载';
@@ -3004,8 +2951,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get keepNextInfoTitle => '保留接下来';
@override
- String get keepNextInfoContent =>
- '要保留下载的项目数量,包括你当前正在收听的项目。例如,\"保留接下来3个\"意味着当前书籍加上系列或播客中的下2本将保持下载状态。';
+ String get keepNextInfoContent => '要保留下载的项目数量,包括你当前正在收听的项目。例如,\"保留接下来3个\"意味着当前书籍加上系列或播客中的下2本将保持下载状态。';
@override
String get deleteAbsorbedDownloads => '删除已完成的下载';
@@ -3014,8 +2960,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get deleteAbsorbedDownloadsInfoTitle => '删除已完成的下载';
@override
- String get deleteAbsorbedDownloadsInfoContent =>
- '启用后,在 Absorb 中听完的已下载书籍或剧集会自动从此设备删除。如果你在网页端或其他设备上听完,保存在此设备上的下载不会被删除。';
+ String get deleteAbsorbedDownloadsInfoContent => '启用后,在 Absorb 中听完的已下载书籍或剧集会自动从此设备删除。如果你在网页端或其他设备上听完,保存在此设备上的下载不会被删除。';
@override
String get deleteAbsorbedOnSubtitle => '已完成项目将被移除以节省空间';
@@ -3049,8 +2994,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get streamingCacheInfoTitle => '流式缓存';
@override
- String get streamingCacheInfoContent =>
- '将流式播放的音频缓存到磁盘,以便在快退或重复收听时无需重新下载。缓存会自动管理 - 达到大小限制时,最旧的文件会被移除。这与完全下载的书籍是分开的';
+ String get streamingCacheInfoContent => '将流式播放的音频缓存到磁盘,以便在快退或重复收听时无需重新下载。缓存会自动管理 - 达到大小限制时,最旧的文件会被移除。这与完全下载的书籍是分开的';
@override
String get streamingCacheOff => '关闭';
@@ -3168,8 +3112,7 @@ class AppLocalizationsZh 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 => '高级';
@@ -3181,8 +3124,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get localServerInfoTitle => '本地服务器';
@override
- String get localServerInfoContent =>
- '如果你在家运行 Audiobookshelf 服务器,可以在此设置本地/局域网 URL。Absorb 在检测到您处于家庭网络时会自动切换到更快的本地连接,而在外出时则回退到远程 URL。';
+ String get localServerInfoContent => '如果你在家运行 Audiobookshelf 服务器,可以在此设置本地/局域网 URL。Absorb 在检测到您处于家庭网络时会自动切换到更快的本地连接,而在外出时则回退到远程 URL。';
@override
String get localServerOnConnectedSubtitle => '已通过本地服务器连接';
@@ -3209,8 +3151,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get disableAudioFocusInfoTitle => '音频焦点';
@override
- String get disableAudioFocusInfoContent =>
- '默认情况下,Android 一次只给一个应用音频“焦点” - 当 Absorb 播放时,其他音频(音乐、视频)会暂停。禁用音频焦点可让 Absorb 与其他应用同时播放。无论此设置如何,来电时始终会暂停播放。';
+ String get disableAudioFocusInfoContent => '默认情况下,Android 一次只给一个应用音频“焦点” - 当 Absorb 播放时,其他音频(音乐、视频)会暂停。禁用音频焦点可让 Absorb 与其他应用同时播放。无论此设置如何,来电时始终会暂停播放。';
@override
String get disableAudioFocusOnSubtitle => '开启 - 与其他音频同时播放(来电时仍会暂停)';
@@ -3240,19 +3181,16 @@ class AppLocalizationsZh 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 =>
- '如果你的 Audiobookshelf 服务器使用自签名证书或自定义根 CA,请启用此选项。启用后,Absorb 将跳过所有连接的 TLS 证书验证。仅在您信任当前网络环境时启用。';
+ String get trustAllCertificatesInfoContent => '如果你的 Audiobookshelf 服务器使用自签名证书或自定义根 CA,请启用此选项。启用后,Absorb 将跳过所有连接的 TLS 证书验证。仅在您信任当前网络环境时启用。';
@override
String get trustAllCertificatesOnSubtitle => '开启 - 接受所有证书';
@@ -3312,8 +3250,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get includeLoginInfoTitle => '包含登录信息?';
@override
- String get includeLoginInfoContent =>
- '你是否希望在备份中包含所有已保存账号的登录凭据?\n\n这会让在新设备上恢复变得容易,但文件中将包含您的身份验证令牌。';
+ String get includeLoginInfoContent => '你是否希望在备份中包含所有已保存账号的登录凭据?\n\n这会让在新设备上恢复变得容易,但文件中将包含您的身份验证令牌。';
@override
String get noSettingsOnly => '否,仅设置';
@@ -3380,8 +3317,7 @@ class AppLocalizationsZh 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';
@@ -3393,8 +3329,7 @@ class AppLocalizationsZh 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';
@@ -3403,29 +3338,25 @@ class AppLocalizationsZh 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';
@@ -3445,15 +3376,13 @@ class AppLocalizationsZh 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';
@@ -3462,8 +3391,7 @@ class AppLocalizationsZh 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';
@@ -3478,8 +3406,7 @@ class AppLocalizationsZh 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) {
@@ -3527,8 +3454,7 @@ class AppLocalizationsZh 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';
@@ -3598,10 +3524,8 @@ class AppLocalizationsZh 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';
}
@@ -3755,23 +3679,19 @@ class AppLocalizationsZh extends AppLocalizations {
String get adminRmabAskAdmin => '请向您的服务器管理员获取登录 URL';
@override
- String get adminRmabUrlHelpUser =>
- '请向您的服务器管理员获取登录 URL,管理员可在 RMAB 的管理 -> 用户中生成。';
+ String get adminRmabUrlHelpUser => '请向您的服务器管理员获取登录 URL,管理员可在 RMAB 的管理 -> 用户中生成。';
@override
- String get adminRmabSettingsInfo =>
- 'ReadMeABook 是一个用于请求和下载有声书的自托管服务,需要由您的服务器管理员安装和设置。';
+ String get adminRmabSettingsInfo => 'ReadMeABook 是一个用于请求和下载有声书的自托管服务,需要由您的服务器管理员安装和设置。';
@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';
@@ -3795,12 +3715,10 @@ class AppLocalizationsZh 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';
@@ -3826,8 +3744,7 @@ class AppLocalizationsZh 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.';
@@ -3868,8 +3785,7 @@ class AppLocalizationsZh 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';
@@ -3896,8 +3812,7 @@ class AppLocalizationsZh 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';
@@ -3906,8 +3821,7 @@ class AppLocalizationsZh 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';
@@ -3992,8 +3906,7 @@ class AppLocalizationsZh 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 => '已完成';
@@ -4120,8 +4033,7 @@ class AppLocalizationsZh 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 => '关于';
@@ -4463,8 +4375,7 @@ class AppLocalizationsZh 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';
@@ -4569,19 +4480,16 @@ class AppLocalizationsZh extends AppLocalizations {
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';
@@ -4600,8 +4508,7 @@ class AppLocalizationsZh 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 => '未找到播放列表';
@@ -4632,6 +4539,30 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get collectionNameHint => '收藏集名称';
+ @override
+ String get listsNewCollectionSubtitle => 'Group books into a list you keep';
+
+ @override
+ String get listsNewCollectionNeedsBookSubtitle => 'Start it with at least one book';
+
+ @override
+ String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
+
+ @override
+ String get listsAddBooksNow => 'Add books now';
+
+ @override
+ 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.';
+
+ @override
+ String get listsCreateFailed => 'Couldn\'t create it';
+
@override
String get castToDevice => '投屏到设备';
@@ -4678,15 +4609,13 @@ class AppLocalizationsZh extends AppLocalizations {
String get welcomeGettingAroundTitle => '界面操作';
@override
- String get welcomeGettingAroundBody =>
- '点击任意封面打开详情。继续收听卡片不一样 - 点击立即播放,长按打开详情。';
+ String get welcomeGettingAroundBody => '点击任意封面打开详情。继续收听卡片不一样 - 点击立即播放,长按打开详情。';
@override
String get welcomeMakeItYoursTitle => '个性化设置';
@override
- String get welcomeMakeItYoursBody =>
- '在设置中自定义 Absorb 以符合你的喜好。其中的「技巧与隐藏功能」区块值得一看。';
+ String get welcomeMakeItYoursBody => '在设置中自定义 Absorb 以符合你的喜好。其中的「技巧与隐藏功能」区块值得一看。';
@override
String get getStarted => '开始使用';
@@ -4832,16 +4761,13 @@ class AppLocalizationsZh 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) {
@@ -4852,8 +4778,7 @@ class AppLocalizationsZh 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) {
@@ -4926,11 +4851,7 @@ class AppLocalizationsZh extends AppLocalizations {
}
@override
- String autoSleepTimerEnabledSubtitle(
- String start,
- String end,
- String duration,
- ) {
+ String autoSleepTimerEnabledSubtitle(String start, String end, String duration) {
return '$start – $end · $duration';
}
@@ -4956,8 +4877,7 @@ class AppLocalizationsZh 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';
@@ -4969,15 +4889,13 @@ class AppLocalizationsZh 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';
@@ -5018,8 +4936,7 @@ class AppLocalizationsZh 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';
@@ -5173,8 +5090,7 @@ class AppLocalizationsZh 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) {
@@ -5248,8 +5164,7 @@ class AppLocalizationsZh 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) {
@@ -5257,8 +5172,7 @@ class AppLocalizationsZh 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) {
@@ -5626,12 +5540,10 @@ class AppLocalizationsZh 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';
@@ -5906,8 +5818,7 @@ class AppLocalizationsZh 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';
@@ -5916,31 +5827,25 @@ class AppLocalizationsZh 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';
@@ -6043,8 +5948,7 @@ class AppLocalizationsZh 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';
@@ -6087,8 +5991,7 @@ class AppLocalizationsZh 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';
@@ -6097,8 +6000,7 @@ class AppLocalizationsZh 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';
@@ -6191,12 +6093,10 @@ class AppLocalizationsZh 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';
@@ -6257,20 +6157,17 @@ class AppLocalizationsZh extends AppLocalizations {
String get seriesBooksFindMissingTitle => '扫描缺失书籍';
@override
- String get seriesBooksFindMissingContent =>
- '此功能将检索 Audible以查找该系列中你的媒体库可能缺失的书籍。\n\n系统会优先通过 ASIN 进行匹配(取决于你的服务器中书籍是否包含 ASIN),若无则通过书名进行匹配。搜索结果可能不会完全准确。';
+ String get seriesBooksFindMissingContent => '此功能将检索 Audible以查找该系列中你的媒体库可能缺失的书籍。\n\n系统会优先通过 ASIN 进行匹配(取决于你的服务器中书籍是否包含 ASIN),若无则通过书名进行匹配。搜索结果可能不会完全准确。';
@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';
@@ -6422,8 +6319,7 @@ class AppLocalizationsZh 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';
@@ -6434,8 +6330,7 @@ class AppLocalizationsZh 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';
@@ -6450,8 +6345,7 @@ class AppLocalizationsZh 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';
@@ -6520,14 +6414,7 @@ class AppLocalizationsZh 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';
}
@@ -6675,12 +6562,10 @@ class AppLocalizationsZh 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) {
@@ -6726,8 +6611,7 @@ class AppLocalizationsZh 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';
@@ -6749,8 +6633,7 @@ class AppLocalizationsZh 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';
@@ -6777,19 +6660,16 @@ class AppLocalizationsZh 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';
@@ -6820,11 +6700,7 @@ class AppLocalizationsZh 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';
}
@@ -6846,8 +6722,7 @@ class AppLocalizationsZh 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';
@@ -6876,20 +6751,16 @@ class AppLocalizationsZh 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';
@@ -6915,8 +6786,7 @@ class AppLocalizationsZh 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) {
@@ -7030,6 +6900,352 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get collectionDetailDefaultName => 'Collection';
+ @override
+ String smartScopeBookCount(int count) {
+ return 'Smart Scope · $count books';
+ }
+
+ @override
+ String get smartScopeNew => 'New Smart Scope';
+
+ @override
+ String get smartScopeNewSubtitle => 'Save a set of filters as a list that keeps itself up to date';
+
+ @override
+ String get smartScopeEditTitle => 'Edit Smart Scope';
+
+ @override
+ String get smartScopeIcon => 'Icon';
+
+ @override
+ String get smartScopePublic => 'Visible to all users';
+
+ @override
+ String get smartScopeKobo => 'Sync to Kobo';
+
+ @override
+ String get smartScopeRules => 'Rules';
+
+ @override
+ String get smartScopeMatchAll => 'Match all';
+
+ @override
+ String get smartScopeMatchAny => 'Match any';
+
+ @override
+ String get smartScopeAddRule => 'Add rule';
+
+ @override
+ String get smartScopeAddGroup => 'Add group';
+
+ @override
+ String get smartScopeGroup => 'Group';
+
+ @override
+ String get smartScopeStartFrom => 'Start from';
+
+ @override
+ String get smartScopeFromScratch => 'Build from scratch';
+
+ @override
+ String get smartScopeTplHasSeries => 'Has a series';
+
+ @override
+ String get smartScopeTplRecent => 'Added recently';
+
+ @override
+ String get smartScopeTplPdf => 'PDF only';
+
+ @override
+ String get smartScopeTplNoGenres => 'No genres';
+
+ @override
+ String get smartScopeTplEpub => 'EPUB only';
+
+ @override
+ String get smartScopeCounting => 'Counting...';
+
+ @override
+ String get smartScopeSort => 'Default sort';
+
+ @override
+ String get smartScopeAddSort => 'Add sort level';
+
+ @override
+ String get smartScopeSortNone => 'No sort set, so books sort by title.';
+
+ @override
+ String get smartScopeAscending => 'Ascending';
+
+ @override
+ String get smartScopeDescending => 'Descending';
+
+ @override
+ String get smartScopeDelete => 'Delete Smart Scope';
+
+ @override
+ String get smartScopeSaveFailed => 'Couldn\'t save the Smart Scope';
+
+ @override
+ String get smartScopeDeleteFailed => 'Couldn\'t delete the Smart Scope';
+
+ @override
+ 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.';
+
+ @override
+ String get smartScopeAnd => 'and';
+
+ @override
+ String get smartScopeDays => 'days';
+
+ @override
+ String get smartScopeWeeks => 'weeks';
+
+ @override
+ String get smartScopeMonths => 'months';
+
+ @override
+ String get smartScopePickDate => 'Pick a date';
+
+ @override
+ String get smartScopeAddValue => 'Add a value';
+
+ @override
+ String get smartScopeValue => 'Value';
+
+ @override
+ String get smartScopeCustomFields => 'Custom fields';
+
+ @override
+ String get smartScopeAnyProvider => 'Any provider';
+
+ @override
+ String get smartScopeScoreOutstanding => 'Outstanding';
+
+ @override
+ String get smartScopeScoreGood => 'Good';
+
+ @override
+ String get smartScopeScoreFair => 'Fair';
+
+ @override
+ String get smartScopeScorePoor => 'Poor';
+
+ @override
+ String get smartScopeMb => 'MB';
+
+ @override
+ String get smartScopeMaxValues => 'Up to 20 values';
+
+ @override
+ String get scopeFieldTitle => 'Title';
+
+ @override
+ String get scopeFieldAuthor => 'Author';
+
+ @override
+ String get scopeFieldSeries => 'Series';
+
+ @override
+ String get scopeFieldSeriesIndex => 'Series number';
+
+ @override
+ String get scopeFieldGenre => 'Genre';
+
+ @override
+ String get scopeFieldTag => 'Tag';
+
+ @override
+ String get scopeFieldReadStatus => 'Read status';
+
+ @override
+ String get scopeFieldReadProgress => 'Reading progress';
+
+ @override
+ String get scopeFieldRating => 'Your rating';
+
+ @override
+ String get scopeFieldFormat => 'Format';
+
+ @override
+ String get scopeFieldLibrary => 'Library';
+
+ @override
+ String get scopeFieldCollection => 'Collection';
+
+ @override
+ String get scopeFieldPublisher => 'Publisher';
+
+ @override
+ String get scopeFieldLanguage => 'Language';
+
+ @override
+ String get scopeFieldPublishedDate => 'Published date';
+
+ @override
+ String get scopeFieldPublishedYear => 'Published year';
+
+ @override
+ String get scopeFieldAddedAt => 'Date added';
+
+ @override
+ String get scopeFieldStartedAt => 'Date started';
+
+ @override
+ String get scopeFieldFinishedAt => 'Date finished';
+
+ @override
+ String get scopeFieldPageCount => 'Page count';
+
+ @override
+ String get scopeFieldFileSize => 'File size';
+
+ @override
+ String get scopeFieldCommunityRating => 'Community rating';
+
+ @override
+ String get scopeFieldCommunityRatingCount => 'Community review count';
+
+ @override
+ String get scopeFieldMetadataScore => 'Metadata score';
+
+ @override
+ String get scopeFieldIsbn => 'ISBN';
+
+ @override
+ String get scopeFieldDescription => 'Description';
+
+ @override
+ String get scopeFieldCover => 'Cover';
+
+ @override
+ String get scopeFieldAudioCover => 'Audiobook cover';
+
+ @override
+ String get scopeFieldFileAvailability => 'File availability';
+
+ @override
+ String get scopeFieldLockStatus => 'Lock status';
+
+ @override
+ String get scopeFieldSeriesStatus => 'Series status';
+
+ @override
+ String get scopeSortUpdatedAt => 'Date updated';
+
+ @override
+ String get scopeSortLastReadAt => 'Last read';
+
+ @override
+ String get scopeSortRandom => 'Random';
+
+ @override
+ String get scopeOpContains => 'contains';
+
+ @override
+ String get scopeOpNotContains => 'does not contain';
+
+ @override
+ String get scopeOpStartsWith => 'starts with';
+
+ @override
+ String get scopeOpEndsWith => 'ends with';
+
+ @override
+ String get scopeOpEq => 'is';
+
+ @override
+ String get scopeOpNotEq => 'is not';
+
+ @override
+ String get scopeOpIsEmpty => 'is empty';
+
+ @override
+ String get scopeOpIsNotEmpty => 'is not empty';
+
+ @override
+ String get scopeOpGt => 'greater than';
+
+ @override
+ String get scopeOpGte => 'at least';
+
+ @override
+ String get scopeOpLt => 'less than';
+
+ @override
+ String get scopeOpLte => 'at most';
+
+ @override
+ String get scopeOpBetween => 'between';
+
+ @override
+ String get scopeOpIncludesAny => 'includes any of';
+
+ @override
+ String get scopeOpIncludesAll => 'includes all of';
+
+ @override
+ String get scopeOpExcludesAll => 'excludes all of';
+
+ @override
+ String get scopeOpBefore => 'before';
+
+ @override
+ String get scopeOpAfter => 'after';
+
+ @override
+ String get scopeOpWithinLast => 'within the last';
+
+ @override
+ String get scopeOpIsMissing => 'is missing';
+
+ @override
+ String get scopeOpIsPresent => 'is present';
+
+ @override
+ String get scopeOpIsUnread => 'is unread';
+
+ @override
+ String get scopeOpIsInProgress => 'is in progress';
+
+ @override
+ String get scopeOpIsFinished => 'is finished';
+
+ @override
+ String get scopeOpIsLocked => 'is locked';
+
+ @override
+ String get scopeOpIsUnlocked => 'is unlocked';
+
+ @override
+ String get scopeOpIsUpNext => 'is up next';
+
+ @override
+ String get scopeOpIsTrue => 'is yes';
+
+ @override
+ String get scopeOpIsFalse => 'is no';
+
+ @override
+ String smartScopeMatchCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count books match',
+ one: '1 book matches',
+ zero: 'No books match',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String smartScopeDeleteConfirm(String name) {
+ return 'Delete \"$name\"? This can\'t be undone.';
+ }
+
@override
String collectionDetailBookCount(int count) {
return '$count本书';
@@ -7055,11 +7271,7 @@ class AppLocalizationsZh 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';
}
@@ -7208,8 +7420,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get librarySortFilterUpcomingReleases => '即将发布';
@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 => 'Audible 中检查系列新书';
@@ -7424,8 +7635,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get tipsSheetCoverPlayPauseTitle => '点击封面播放/暂停';
@override
- String get tipsSheetCoverPlayPauseDesc =>
- '点击任意卡片的封面即可播放或暂停。可在设置的“收听卡片”中切换此功能。播放时会显示淡淡的暂停图标,提示封面可点击。';
+ String get tipsSheetCoverPlayPauseDesc => '点击任意卡片的封面即可播放或暂停。可在设置的“收听卡片”中切换此功能。播放时会显示淡淡的暂停图标,提示封面可点击。';
@override
String get tipsSheetFullScreenPlayerTitle => '全屏播放器';
@@ -7437,92 +7647,79 @@ class AppLocalizationsZh extends AppLocalizations {
String get tipsSheetQuickAddAbsorbingTitle => '快速加入收听卡片';
@override
- String get tipsSheetQuickAddAbsorbingDesc =>
- '在列表页(系列、作者、搜索结果)中向右滑动任意书籍,即可将其立即加入收听队列。';
+ String get tipsSheetQuickAddAbsorbingDesc => '在列表页(系列、作者、搜索结果)中向右滑动任意书籍,即可将其立即加入收听队列。';
@override
String get tipsSheetShakeExtendSleepTitle => '摇一摇延长睡眠定时';
@override
- String get tipsSheetShakeExtendSleepDesc =>
- '如果睡眠定时器正在运行,摇动手机即可延长时间。可在设置中的“睡眠定时器”调整延长的分钟数。';
+ String get tipsSheetShakeExtendSleepDesc => '如果睡眠定时器正在运行,摇动手机即可延长时间。可在设置中的“睡眠定时器”调整延长的分钟数。';
@override
String get tipsSheetSeriesNavigationTitle => '系列导航';
@override
- String get tipsSheetSeriesNavigationDesc =>
- '在任意书籍的详情弹窗中点击系列名称,即可查看该系列的所有书籍,并按阅读顺序排序,每本书的封面都会显示序号徽章。';
+ String get tipsSheetSeriesNavigationDesc => '在任意书籍的详情弹窗中点击系列名称,即可查看该系列的所有书籍,并按阅读顺序排序,每本书的封面都会显示序号徽章。';
@override
String get tipsSheetSwipeBetweenBooksTitle => '滑动切换书籍';
@override
- String get tipsSheetSwipeBetweenBooksDesc =>
- '在收听界面左右滑动即可切换你正在收听的书籍。开启手动队列模式后,卡片也会作为你的队列使用,因此当前书籍播放结束时会自动播放下一本。';
+ String get tipsSheetSwipeBetweenBooksDesc => '在收听界面左右滑动即可切换你正在收听的书籍。开启手动队列模式后,卡片也会作为你的队列使用,因此当前书籍播放结束时会自动播放下一本。';
@override
String get tipsSheetTapToSeekTitle => '点击跳转';
@override
- String get tipsSheetTapToSeekDesc =>
- '点击章节或书籍进度条的任意位置即可直接跳转到对应进度。你也可以拖动进度条以进行更精细的控制。';
+ String get tipsSheetTapToSeekDesc => '点击章节或书籍进度条的任意位置即可直接跳转到对应进度。你也可以拖动进度条以进行更精细的控制。';
@override
String get tipsSheetSpeedAdjustedTimeTitle => '实际播放时长';
@override
- String get tipsSheetSpeedAdjustedTimeDesc =>
- '剩余时间和章节时长会根据你的播放速度自动调整。用 1.5×倍播放?界面显示的时间就是你实际需要的时长。';
+ String get tipsSheetSpeedAdjustedTimeDesc => '剩余时间和章节时长会根据你的播放速度自动调整。用 1.5×倍播放?界面显示的时间就是你实际需要的时长。';
@override
String get tipsSheetPlaybackHistoryTitle => '播放历史';
@override
- String get tipsSheetPlaybackHistoryDesc =>
- '点击任意卡片上的历史按钮即可查看所有播放、暂停、跳转和倍速调整的时间线。点击任意事件即可跳回对应位置。';
+ String get tipsSheetPlaybackHistoryDesc => '点击任意卡片上的历史按钮即可查看所有播放、暂停、跳转和倍速调整的时间线。点击任意事件即可跳回对应位置。';
@override
String get tipsSheetAutoRewindTitle => '自动回退';
@override
- String get tipsSheetAutoRewindDesc =>
- '暂停后恢复播放时,Absorb 会自动回退几秒,确保你不会错过内容。回退时长会根据你离开的时间自动调整。你可以在设置中进行修改。';
+ String get tipsSheetAutoRewindDesc => '暂停后恢复播放时,Absorb 会自动回退几秒,确保你不会错过内容。回退时长会根据你离开的时间自动调整。你可以在设置中进行修改。';
@override
String get tipsSheetSeriesQueueModeTitle => '系列连播模式';
@override
- String get tipsSheetSeriesQueueModeDesc =>
- '当你听完某个系列中的一本书时,Absorb 可以自动播放下一本书。请在“设置”中将队列模式更改为“系列”。';
+ String get tipsSheetSeriesQueueModeDesc => '当你听完某个系列中的一本书时,Absorb 可以自动播放下一本书。请在“设置”中将队列模式更改为“系列”。';
@override
String get tipsSheetOfflineModeTitle => '离线模式';
@override
- String get tipsSheetOfflineModeDesc =>
- '点击“正在收听”界面上的同步图标即可进入离线模式。这将暂停同步并节省流量,且仅显示你已下载的书籍。非常适合在飞机上或信号较弱的区域使用。';
+ String get tipsSheetOfflineModeDesc => '点击“正在收听”界面上的同步图标即可进入离线模式。这将暂停同步并节省流量,且仅显示你已下载的书籍。非常适合在飞机上或信号较弱的区域使用。';
@override
String get tipsSheetUpcomingReleasesTitle => '即将上架';
@override
- String get tipsSheetUpcomingReleasesDesc =>
- '在“系列”标签页中,再次点击该标签即可打开其排序与筛选面板,然后选择“即将上架”,即可按出版日期查看当前系列中已推出和即将推出的新书。';
+ String get tipsSheetUpcomingReleasesDesc => '在“系列”标签页中,再次点击该标签即可打开其排序与筛选面板,然后选择“即将上架”,即可按出版日期查看当前系列中已推出和即将推出的新书。';
@override
String get tipsSheetPerBookEqTitle => '为每本书单独配置均衡器';
@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 => '针对单本有声书的语速设置';
@override
- String get tipsSheetPerBookSpeedDesc =>
- '播放速度支持书籍单独配置。非虚构内容 1.5x 效率拉满,有声剧 1.0x 原汁原味,省去频繁调整的麻烦。';
+ String get tipsSheetPerBookSpeedDesc => '播放速度支持书籍单独配置。非虚构内容 1.5x 效率拉满,有声剧 1.0x 原汁原味,省去频繁调整的麻烦。';
@override
String get tipsSheetAutoSleepWindowTitle => '自动睡眠时间段';
@@ -7534,8 +7731,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get tipsSheetSleepFadeChimeTitle => '睡眠淡出与提示音';
@override
- String get tipsSheetSleepFadeChimeDesc =>
- '睡眠定时结束时,音频将逐渐淡出并伴有可选提示音,避免在听书时突然中断。';
+ String get tipsSheetSleepFadeChimeDesc => '睡眠定时结束时,音频将逐渐淡出并伴有可选提示音,避免在听书时突然中断。';
@override
String get tipsSheetCarModeTitle => '车载模式';
@@ -7547,65 +7743,55 @@ class AppLocalizationsZh extends AppLocalizations {
String get tipsSheetAudibleSeriesTitle => '获取 Audible 系列信息';
@override
- String get tipsSheetAudibleSeriesDesc =>
- '打开任意系列,点击右上角的“更多”图标(三个点),即可从 Audible 获取完整的系列清单,包含缺失以及您尚未开始阅读的书籍。';
+ String get tipsSheetAudibleSeriesDesc => '打开任意系列,点击右上角的“更多”图标(三个点),即可从 Audible 获取完整的系列清单,包含缺失以及您尚未开始阅读的书籍。';
@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';
@@ -7758,8 +7944,7 @@ class AppLocalizationsZh 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';
@@ -7870,15 +8055,13 @@ class AppLocalizationsZh 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…';
@@ -7926,11 +8109,7 @@ class AppLocalizationsZh 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)';
}
@@ -7970,12 +8149,10 @@ class AppLocalizationsZh 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';
@@ -7999,8 +8176,7 @@ class AppLocalizationsZh 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';
@@ -8051,8 +8227,7 @@ class AppLocalizationsZh 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';
@@ -8078,8 +8253,7 @@ class AppLocalizationsZh 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';
@@ -8106,8 +8280,7 @@ class AppLocalizationsZh 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';
@@ -8182,8 +8355,7 @@ class AppLocalizationsZh 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';
@@ -8242,8 +8414,7 @@ class AppLocalizationsZh 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';
@@ -8262,8 +8433,7 @@ class AppLocalizationsZh 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';
@@ -8277,8 +8447,7 @@ class AppLocalizationsZh 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';
@@ -8310,8 +8479,7 @@ class AppLocalizationsZh 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';
@@ -8336,12 +8504,10 @@ class AppLocalizationsZh extends AppLocalizations {
}
@override
- String get chapterAudibleLonger =>
- 'The Audible version is longer than your file - later chapters may not line up.';
+ String get chapterAudibleLonger => 'The Audible version is longer than your file - later chapters may not line up.';
@override
- String get chapterAudibleShorter =>
- 'The Audible version is shorter than your file - chapters may not line up.';
+ String get chapterAudibleShorter => 'The Audible version is shorter than your file - chapters may not line up.';
@override
String get chapterTitlesOnly => 'Titles only';
@@ -8353,8 +8519,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get coverSearchTitle => 'Search for a cover';
@override
- String get coverSearchRefineHint =>
- 'Refine the title/author to clean up results - this does not change the book.';
+ String get coverSearchRefineHint => 'Refine the title/author to clean up results - this does not change the book.';
@override
String get coverNoneFound => 'No covers found';
@@ -8375,23 +8540,19 @@ class AppLocalizationsZh extends AppLocalizations {
String get coverUnknownResolution => 'Unknown resolution';
@override
- String get embedIntro =>
- 'Embed metadata into audio files including cover image and chapters.';
+ String get embedIntro => 'Embed metadata into audio files including cover image and chapters.';
@override
String get embedBackupOption => 'Back up audio files first';
@override
- String get embedNoteInFolder =>
- 'Metadata will be embedded in the audio tracks inside your audiobook folder.';
+ String get embedNoteInFolder => 'Metadata will be embedded in the audio tracks inside your audiobook folder.';
@override
- String get embedNoteMultiTrack =>
- 'Chapters are not embedded in multi-track audiobooks.';
+ String get embedNoteMultiTrack => 'Chapters are not embedded in multi-track audiobooks.';
@override
- String get embedNoteNavigateAway =>
- 'Once the task is started you can navigate away from this page.';
+ String get embedNoteNavigateAway => 'Once the task is started you can navigate away from this page.';
@override
String get embedStartButton => 'Start Metadata Embed';
@@ -8413,8 +8574,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get taskStarting => 'Starting...';
@override
- String get embedBackupNoteIntro =>
- 'A backup of your original audio files will be stored on the server in ';
+ String get embedBackupNoteIntro => 'A backup of your original audio files will be stored on the server in ';
@override
String embedBackupNotePath(String itemId) {
@@ -8422,8 +8582,7 @@ class AppLocalizationsZh extends AppLocalizations {
}
@override
- String get embedBackupNoteOutro =>
- '. Make sure to periodically purge the items cache.';
+ String get embedBackupNoteOutro => '. Make sure to periodically purge the items cache.';
@override
String get embedDialogTitle => 'Embed metadata';
@@ -8514,8 +8673,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get adminApiKeysTokenLabel => 'Your new API key';
@override
- String get adminApiKeysCopyWarning =>
- 'Copy this key now. For security it won\'t be shown again.';
+ String get adminApiKeysCopyWarning => 'Copy this key now. For security it won\'t be shown again.';
@override
String get adminApiKeysCopy => 'Copy';
@@ -8554,8 +8712,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get adminApiKeysEmpty => 'No API keys yet';
@override
- String get adminApiKeysEmptySub =>
- 'Create one to let apps and scripts reach your server';
+ String get adminApiKeysEmptySub => 'Create one to let apps and scripts reach your server';
@override
String get adminApiKeysNeverUsed => 'Never used';
@@ -8644,15 +8801,13 @@ class AppLocalizationsZh 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';
@@ -8679,8 +8834,7 @@ class AppLocalizationsZh 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';
@@ -8698,8 +8852,7 @@ class AppLocalizationsZh 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';
@@ -8708,12 +8861,10 @@ class AppLocalizationsZh 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';
@@ -8739,20 +8890,16 @@ class AppLocalizationsZh 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';
@@ -8767,20 +8914,16 @@ class AppLocalizationsZh 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) {
@@ -8796,8 +8939,7 @@ class AppLocalizationsZh 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';
@@ -8819,8 +8961,7 @@ class AppLocalizationsZh 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) {
@@ -8852,8 +8993,7 @@ class AppLocalizationsZh 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';
@@ -8865,8 +9005,7 @@ class AppLocalizationsZh 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';
@@ -8878,8 +9017,7 @@ class AppLocalizationsZh 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';
@@ -9062,8 +9200,7 @@ class AppLocalizationsZh 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';
@@ -9078,8 +9215,7 @@ class AppLocalizationsZh 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';
@@ -9097,44 +9233,37 @@ class AppLocalizationsZh 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';
@@ -9153,8 +9282,7 @@ class AppLocalizationsZh 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) {
@@ -9176,8 +9304,7 @@ class AppLocalizationsZh 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';
@@ -9299,8 +9426,7 @@ class AppLocalizationsZh 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';
@@ -9327,12 +9453,13 @@ class AppLocalizationsZh 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';
@override
- String get readerFormatUnsupported =>
- 'This ebook format can\'t be opened in the reader yet';
+ String get readerCouldNotOpen => 'This ebook couldn\'t be opened. The file may be damaged.';
@override
String get moreActions => 'More';
@@ -9371,15 +9498,19 @@ class AppLocalizationsZh 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 readerScrollMode => 'Scroll mode';
+
+ @override
+ 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';
@@ -9412,8 +9543,7 @@ class AppLocalizationsZh 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';
@@ -9442,8 +9572,7 @@ class AppLocalizationsZh 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) {
@@ -9577,22 +9706,19 @@ class AppLocalizationsZh 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';
@@ -9604,12 +9730,10 @@ class AppLocalizationsZh 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';
@@ -9627,12 +9751,10 @@ class AppLocalizationsZh 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';
@@ -9641,8 +9763,7 @@ class AppLocalizationsZh 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';
@@ -9654,8 +9775,7 @@ class AppLocalizationsZh 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';
@@ -9682,8 +9802,7 @@ class AppLocalizationsZh 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';
@@ -9722,8 +9841,7 @@ class AppLocalizationsZh 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';
@@ -9819,8 +9937,7 @@ class AppLocalizationsZh 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) {
@@ -9870,8 +9987,7 @@ class AppLocalizationsZh 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';
@@ -9880,16 +9996,13 @@ class AppLocalizationsZh 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';
@@ -9901,8 +10014,7 @@ class AppLocalizationsZh 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';
@@ -9945,23 +10057,19 @@ class AppLocalizationsZh 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';
@@ -9970,8 +10078,7 @@ class AppLocalizationsZh 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';
@@ -9983,19 +10090,16 @@ class AppLocalizationsZh 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';
@@ -10013,31 +10117,25 @@ class AppLocalizationsZh 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';
@@ -10046,12 +10144,10 @@ class AppLocalizationsZh 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';
@@ -10072,12 +10168,10 @@ class AppLocalizationsZh 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';
@@ -10088,15 +10182,13 @@ class AppLocalizationsZh 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) {
@@ -10118,19 +10210,16 @@ class AppLocalizationsZh extends AppLocalizations {
String get readAlongNeedsPlaying => 'Play this book\'s audiobook first';
@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';
@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';
@@ -10144,6 +10233,9 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get readAlongLost => 'Can\'t find the narration on the page';
+ @override
+ String get readAlongBackToNarration => 'Back to narration';
+
@override
String get findInEbook => 'Find in ebook';
@@ -10163,31 +10255,25 @@ class AppLocalizationsZh 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';
@@ -10202,12 +10288,10 @@ class AppLocalizationsZh 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';
@@ -10219,66 +10303,55 @@ class AppLocalizationsZh 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) {
@@ -10292,15 +10365,13 @@ class AppLocalizationsZh 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';
@@ -10348,8 +10419,7 @@ class AppLocalizationsZh 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';
@@ -10361,15 +10431,13 @@ class AppLocalizationsZh 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) {
@@ -10379,6 +10447,14 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get comicReadingDirection => 'Reading direction';
+ @override
+ String comicPageNumber(int page) {
+ return 'Page $page';
+ }
+
+ @override
+ String get comicBookmarkRemoveFailed => 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+
@override
String get comicLeftToRight => 'Left to right';
@@ -10386,8 +10462,7 @@ class AppLocalizationsZh 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/providers/_lp_absorbing.dart b/lib/providers/_lp_absorbing.dart
index 5541c801..b8f740e7 100644
--- a/lib/providers/_lp_absorbing.dart
+++ b/lib/providers/_lp_absorbing.dart
@@ -669,7 +669,8 @@ mixin _AbsorbingMixin on ChangeNotifier, _StateMixin, _CoreMixin {
if (itemId.length > 36 && existing['isFinished'] != true) {
nudgeUnfinishedEpisodeCount(itemId.substring(0, 36), -1);
}
- _progressMap[itemId] = {...existing, 'isFinished': true};
+ // Finished from here is BookOrbit's "read", not "skimmed".
+ _progressMap[itemId] = {...existing, 'isFinished': true, if (!fromRemote) 'skimmed': false};
_localProgressOverrides[itemId] = 1.0;
_lastFinishedItemId = itemId;
_locallyFinishedItems.add(itemId);
diff --git a/lib/providers/_lp_core.dart b/lib/providers/_lp_core.dart
index 07d2572d..11fb7403 100644
--- a/lib/providers/_lp_core.dart
+++ b/lib/providers/_lp_core.dart
@@ -712,6 +712,10 @@ mixin _CoreMixin on ChangeNotifier, _StateMixin {
mp['ebookProgress'] = progress.clamp(0.0, 1.0);
if (finished) mp['isFinished'] = true;
_progressMap[itemId] = mp;
+ // Reading again after a reset or "not finished" is new progress; while
+ // the item stayed marked reset, the reader couldn't see its own saved
+ // page and started over on every open.
+ _resetItems.remove(itemId);
notifyListeners();
}
@@ -2259,6 +2263,47 @@ mixin _CoreMixin on ChangeNotifier, _StateMixin {
unawaited(_catchUpQueueAutoDownloads());
}
+ /// A BookOrbit collection or Smart Scope that holds more books than the
+ /// Lists tab loaded.
+ bool collectionHasMore(String collectionId) {
+ final c = _collections
+ .whereType<Map<String, dynamic>>()
+ .where((c) => c['id'] == collectionId)
+ .firstOrNull;
+ if (c == null) return false;
+ final total = ((c['bookOrbit'] as Map?)?['total'] as num?)?.toInt();
+ return total != null && ((c['books'] as List<dynamic>?)?.length ?? 0) < total;
+ }
+
+ /// Loads the next page of such a collection's books. False when the page
+ /// could not be fetched.
+ Future<bool> loadMoreCollectionBooks(String collectionId) async {
+ final api = _api;
+ if (api == null || !collectionHasMore(collectionId)) return true;
+ final before = _collections
+ .whereType<Map<String, dynamic>>()
+ .firstWhere((c) => c['id'] == collectionId);
+ final have = (before['books'] as List<dynamic>?)?.length ?? 0;
+ final page = await api.collectionBooksPage(collectionId, page: have ~/ 100);
+ if (page == null) return false;
+ final at = _collections.indexWhere((c) => c is Map && c['id'] == collectionId);
+ if (at < 0) return true;
+ final current = _collections[at] as Map<String, dynamic>;
+ final books = [...(current['books'] as List<dynamic>? ?? const [])];
+ final seen = books.map((b) => (b as Map)['id']).toSet();
+ for (final b in page) {
+ if (seen.add(b['id'])) books.add(b);
+ }
+ final bo = Map<String, dynamic>.from(current['bookOrbit'] as Map? ?? const {});
+ // Rules can match fewer books than when the list loaded; stop at the end.
+ if (books.length == (current['books'] as List<dynamic>? ?? const []).length) {
+ bo['total'] = books.length;
+ }
+ _collections = [..._collections]..[at] = {...current, 'books': books, 'bookOrbit': bo};
+ notifyListeners();
+ return true;
+ }
+
Future<Map<String, dynamic>?> createCollection(String name, {List<String> books = const []}) async {
if (_api == null || _selectedLibraryId == null) return null;
final result = await _api!.createCollection(_selectedLibraryId!, name, books: books);
diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart
index a3540713..ad5dd818 100644
--- a/lib/screens/home_screen.dart
+++ b/lib/screens/home_screen.dart
@@ -11,6 +11,9 @@ import '../providers/auth_provider.dart';
import '../providers/library_provider.dart';
import '../services/audio_player_service.dart';
import '../services/download_service.dart';
+import '../services/ebook_cache.dart';
+import '../widgets/ebook_router.dart';
+import '../widgets/overlay_toast.dart';
import '../widgets/desktop_batch_actions.dart';
import '../widgets/home_section.dart';
import '../widgets/absorb_page_header.dart';
@@ -1008,6 +1011,11 @@ class _ContinueListeningCardState extends State<_ContinueListeningCard> {
void resume() {
if (_isLoading) return;
+ // Nothing to play: an ebook-only book continues in the reader.
+ if (recentEpisode == null && PlayerSettings.isEbookOnly(item)) {
+ _openEbook(context, itemId, title);
+ return;
+ }
if (isCurrentItem) {
if (player.isPlaying) {
player.pause();
@@ -1232,6 +1240,27 @@ class _ContinueListeningCardState extends State<_ContinueListeningCard> {
);
}
+ Future<void> _openEbook(BuildContext context, String itemId, String title) async {
+ final l = AppLocalizations.of(context)!;
+ setState(() => _isLoading = true);
+ var ebookFile = resolveEbookFile(widget.item) ?? await cachedEbookFileFor(itemId);
+ if (ebookFile == null && context.mounted) {
+ final api = context.read<AuthProvider>().apiService;
+ if (api != null) {
+ try {
+ ebookFile = resolveEbookFile(await api.getLibraryItem(itemId));
+ } catch (_) {}
+ }
+ }
+ if (!mounted) return;
+ setState(() => _isLoading = false);
+ if (ebookFile == null) {
+ showOverlayToast(context, l.noEbookFileFound, icon: Icons.menu_book_outlined);
+ return;
+ }
+ await openEbookReader(context, itemId: itemId, title: title, ebookFile: ebookFile);
+ }
+
Future<void> _startBook(BuildContext context, String itemId) async {
setState(() => _isLoading = true);
final auth = context.read<AuthProvider>();
diff --git a/lib/screens/library_screen.dart b/lib/screens/library_screen.dart
index f8874ee6..44d2893d 100644
--- a/lib/screens/library_screen.dart
+++ b/lib/screens/library_screen.dart
@@ -44,6 +44,8 @@ import '../services/scoped_prefs.dart';
import '../services/server_backend.dart';
import '../services/user_account_service.dart';
import '../l10n/app_localizations.dart';
+import 'smart_scope_editor_screen.dart';
+import '../widgets/new_list_flow.dart';
/// Responsive grid column count based on available width and the cover size
/// setting; scales up on tablets/iPads.
@@ -111,6 +113,8 @@ enum LibraryFilter {
missingMetadata,
genre,
tag,
+ // BookOrbit only: one reading status, carried as the filter value.
+ readStatus,
}
extension LibraryFilterProgressValue on LibraryFilter {
@@ -222,6 +226,8 @@ String? buildLibraryFilterQuery(
LibraryFilter.genre when genre != null =>
_encodedLibraryFilter('genres', genre),
LibraryFilter.tag when tag != null => _encodedLibraryFilter('tags', tag),
+ LibraryFilter.readStatus when filterValue != null =>
+ _encodedLibraryFilter('readStatus', filterValue),
LibraryFilter.missingMetadata when missingMetadata != null =>
_encodedLibraryFilter('missing', missingMetadata.filterValue),
_ => null,
@@ -262,9 +268,11 @@ LibrarySort librarySortForServer(LibrarySort sort) {
}
/// BookOrbit has no supplementary ebooks, track counts, abridged or explicit
-/// flags, or RSS feeds to filter on.
+/// flags, or RSS feeds to filter on. Audiobookshelf has no reading statuses.
bool libraryFilterSupportedOnServer(LibraryFilter filter) {
- if (!ServerBackend.active.isBookOrbit) return true;
+ if (!ServerBackend.active.isBookOrbit) {
+ return filter != LibraryFilter.readStatus;
+ }
return switch (filter) {
LibraryFilter.hasSupplementaryEbook ||
LibraryFilter.noSupplementaryEbook ||
@@ -294,7 +302,8 @@ bool libraryFilterRequiresValue(LibraryFilter filter) => switch (filter) {
LibraryFilter.narrator ||
LibraryFilter.language ||
LibraryFilter.publisher ||
- LibraryFilter.publishedDecade => true,
+ LibraryFilter.publishedDecade ||
+ LibraryFilter.readStatus => true,
_ => false,
};
@@ -2501,6 +2510,7 @@ class LibraryScreenState extends State<LibraryScreen>
: missingMetadataFieldLabel(l, _missingMetadataFilter!),
LibraryFilter.genre => _genreFilter ?? l.genre,
LibraryFilter.tag => _tagFilter ?? l.tag,
+ LibraryFilter.readStatus => _filterValueLabel ?? l.readStatusTitle,
LibraryFilter.none => '',
};
@@ -2682,6 +2692,29 @@ class LibraryScreenState extends State<LibraryScreen>
_openUpcomingReleases();
}
: null,
+ // Audiobookshelf only lets users with update permission make
+ // collections, and they hold books only; BookOrbit has no playlists.
+ onNewCollection: tab == LibraryTab.lists &&
+ !context.read<LibraryProvider>().isOffline &&
+ !context.read<LibraryProvider>().isPodcastLibrary &&
+ (ServerBackend.active.isBookOrbit || context.read<AuthProvider>().canUpdateMetadata)
+ ? () {
+ Navigator.pop(ctx);
+ startNewList(context, playlist: false);
+ }
+ : null,
+ onNewPlaylist: tab == LibraryTab.lists && !context.read<LibraryProvider>().isOffline && !ServerBackend.active.isBookOrbit
+ ? () {
+ Navigator.pop(ctx);
+ startNewList(context, playlist: true);
+ }
+ : null,
+ onNewSmartScope: tab == LibraryTab.lists && !context.read<LibraryProvider>().isOffline && ServerBackend.active.isBookOrbit
+ ? () {
+ Navigator.pop(ctx);
+ SmartScopeEditorScreen.open(context);
+ }
+ : null,
currentSeriesFilter: _seriesFilter,
onSeriesFilterChanged: tab == LibraryTab.series
? (sf) {
diff --git a/lib/screens/smart_scope_editor_screen.dart b/lib/screens/smart_scope_editor_screen.dart
new file mode 100644
index 00000000..4d35887f
--- /dev/null
+++ b/lib/screens/smart_scope_editor_screen.dart
@@ -0,0 +1,984 @@
+import 'dart:async';
+
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+
+import '../l10n/app_localizations.dart';
+import '../providers/auth_provider.dart';
+import '../providers/library_provider.dart';
+import '../services/api_service.dart';
+import '../services/smart_scope_rules.dart';
+import '../utils/read_status.dart';
+import '../widgets/overlay_toast.dart';
+
+/// Lucide icon names BookOrbit's web draws, with the closest Material icon
+/// for showing them here.
+const scopeIcons = <String, IconData>{
+ 'Funnel': Icons.filter_alt_rounded,
+ 'BookOpen': Icons.menu_book_rounded,
+ 'Library': Icons.local_library_rounded,
+ 'Bookmark': Icons.bookmark_rounded,
+ 'Star': Icons.star_rounded,
+ 'Heart': Icons.favorite_rounded,
+ 'Clock': Icons.schedule_rounded,
+ 'Calendar': Icons.calendar_month_rounded,
+ 'Sparkles': Icons.auto_awesome_rounded,
+ 'Flame': Icons.local_fire_department_rounded,
+ 'Headphones': Icons.headphones_rounded,
+ 'Tag': Icons.sell_rounded,
+ 'CircleCheck': Icons.check_circle_rounded,
+ 'Moon': Icons.nightlight_round,
+ 'Sun': Icons.wb_sunny_rounded,
+ 'Rocket': Icons.rocket_launch_rounded,
+ 'Trophy': Icons.emoji_events_rounded,
+ 'Brain': Icons.psychology_rounded,
+ 'Baby': Icons.child_care_rounded,
+ 'Leaf': Icons.eco_rounded,
+};
+
+IconData scopeIconData(String? name) => scopeIcons[name] ?? Icons.filter_alt_rounded;
+
+String scopeOpLabel(AppLocalizations l, String op) => switch (op) {
+ 'contains' => l.scopeOpContains,
+ 'notContains' => l.scopeOpNotContains,
+ 'startsWith' => l.scopeOpStartsWith,
+ 'endsWith' => l.scopeOpEndsWith,
+ 'eq' => l.scopeOpEq,
+ 'notEq' => l.scopeOpNotEq,
+ 'isEmpty' => l.scopeOpIsEmpty,
+ 'isNotEmpty' => l.scopeOpIsNotEmpty,
+ 'gt' => l.scopeOpGt,
+ 'gte' => l.scopeOpGte,
+ 'lt' => l.scopeOpLt,
+ 'lte' => l.scopeOpLte,
+ 'between' => l.scopeOpBetween,
+ 'includesAny' => l.scopeOpIncludesAny,
+ 'includesAll' => l.scopeOpIncludesAll,
+ 'excludesAll' => l.scopeOpExcludesAll,
+ 'before' => l.scopeOpBefore,
+ 'after' => l.scopeOpAfter,
+ 'withinLast' => l.scopeOpWithinLast,
+ 'isMissing' => l.scopeOpIsMissing,
+ 'isPresent' => l.scopeOpIsPresent,
+ 'isUnread' => l.scopeOpIsUnread,
+ 'isInProgress' => l.scopeOpIsInProgress,
+ 'isFinished' => l.scopeOpIsFinished,
+ 'isLocked' => l.scopeOpIsLocked,
+ 'isUnlocked' => l.scopeOpIsUnlocked,
+ 'isUpNext' => l.scopeOpIsUpNext,
+ 'isTrue' => l.scopeOpIsTrue,
+ 'isFalse' => l.scopeOpIsFalse,
+ _ => op,
+ };
+
+String scopeFieldLabel(AppLocalizations l, String field, Map<String, String> customLabels) {
+ if (scopeIsCustom(field)) return customLabels[field] ?? field;
+ return switch (field) {
+ 'title' => l.scopeFieldTitle,
+ 'author' => l.scopeFieldAuthor,
+ 'series' => l.scopeFieldSeries,
+ 'seriesIndex' => l.scopeFieldSeriesIndex,
+ 'genre' => l.scopeFieldGenre,
+ 'tag' => l.scopeFieldTag,
+ 'readStatus' => l.scopeFieldReadStatus,
+ 'readProgress' => l.scopeFieldReadProgress,
+ 'rating' => l.scopeFieldRating,
+ 'format' => l.scopeFieldFormat,
+ 'library' => l.scopeFieldLibrary,
+ 'collection' => l.scopeFieldCollection,
+ 'publisher' => l.scopeFieldPublisher,
+ 'language' => l.scopeFieldLanguage,
+ 'publishedDate' => l.scopeFieldPublishedDate,
+ 'publishedYear' => l.scopeFieldPublishedYear,
+ 'addedAt' => l.scopeFieldAddedAt,
+ 'startedAt' => l.scopeFieldStartedAt,
+ 'finishedAt' => l.scopeFieldFinishedAt,
+ 'pageCount' => l.scopeFieldPageCount,
+ 'fileSize' => l.scopeFieldFileSize,
+ 'communityRating' => l.scopeFieldCommunityRating,
+ 'communityRatingCount' => l.scopeFieldCommunityRatingCount,
+ 'metadataScore' => l.scopeFieldMetadataScore,
+ 'isbn' => l.scopeFieldIsbn,
+ 'description' => l.scopeFieldDescription,
+ 'cover' => l.scopeFieldCover,
+ 'audioCover' => l.scopeFieldAudioCover,
+ 'fileAvailability' => l.scopeFieldFileAvailability,
+ 'lockStatus' => l.scopeFieldLockStatus,
+ 'seriesStatus' => l.scopeFieldSeriesStatus,
+ 'updatedAt' => l.scopeSortUpdatedAt,
+ 'lastReadAt' => l.scopeSortLastReadAt,
+ 'random' => l.scopeSortRandom,
+ _ => field,
+ };
+}
+
+String _providerLabel(AppLocalizations l, String p) => switch (p) {
+ 'any' => l.smartScopeAnyProvider,
+ 'hardcover' => 'Hardcover',
+ 'goodreads' => 'Goodreads',
+ 'google' => 'Google Books',
+ 'openLibrary' => 'Open Library',
+ 'itunes' => 'iTunes',
+ 'ranobedb' => 'RanobeDB',
+ 'amazon' => 'Amazon',
+ 'audible' => 'Audible',
+ _ => p,
+ };
+
+/// Creates or edits a BookOrbit Smart Scope: a name and icon, a tree of
+/// rules like the web's builder, and a default sort.
+class SmartScopeEditorScreen extends StatefulWidget {
+ /// The scope's BookOrbit id; null makes a new one.
+ final String? scopeId;
+
+ const SmartScopeEditorScreen({super.key, this.scopeId});
+
+ /// What happened: [SmartScopeEdit.saved], [SmartScopeEdit.deleted], or
+ /// null when the editor was closed without either.
+ static Future<SmartScopeEdit?> open(BuildContext context, {String? scopeId}) {
+ return Navigator.of(context, rootNavigator: true).push<SmartScopeEdit>(
+ MaterialPageRoute(builder: (_) => SmartScopeEditorScreen(scopeId: scopeId)),
+ );
+ }
+
+ @override
+ State<SmartScopeEditorScreen> createState() => _SmartScopeEditorScreenState();
+}
+
+enum SmartScopeEdit { saved, deleted }
+
+class _SmartScopeEditorScreenState extends State<SmartScopeEditorScreen> {
+ BookOrbitApiService? _api;
+ bool _loading = true;
+ String? _loadError;
+ bool _saving = false;
+
+ final _name = TextEditingController();
+ String _icon = 'Funnel';
+ bool _public = false;
+ bool _kobo = false;
+ ScopeGroup? _root;
+ final List<({String field, String dir})> _sort = [];
+
+ final ScopeCustomTypes _customTypes = {};
+ final Map<String, String> _customLabels = {};
+ List<String> _libraryNames = const [];
+
+ // Per-rule "within the last" unit (1, 7 or 30 days), shown only.
+ final Map<ScopeRule, int> _dayUnits = {};
+
+ int? _count;
+ bool _counting = false;
+ Timer? _countTimer;
+ int _countGen = 0;
+
+ bool get _isNew => widget.scopeId == null;
+
+ @override
+ void initState() {
+ super.initState();
+ final api = context.read<AuthProvider>().apiService;
+ _api = api is BookOrbitApiService ? api : null;
+ _name.addListener(() => setState(() {}));
+ _load();
+ }
+
+ @override
+ void dispose() {
+ _countTimer?.cancel();
+ _name.dispose();
+ super.dispose();
+ }
+
+ Future<void> _load() async {
+ final api = _api;
+ if (api == null) {
+ setState(() => _loading = false);
+ return;
+ }
+ try {
+ final results = await Future.wait([
+ api.customMetadataFields(),
+ api.libraryNames(),
+ if (!_isNew) api.smartScope(widget.scopeId!),
+ ]);
+ for (final f in results[0] as List<Map<String, String>>) {
+ _customTypes[f['key']!] = f['type']!;
+ _customLabels[f['key']!] = f['label']!;
+ }
+ _libraryNames = results[1] as List<String>;
+ if (!_isNew) {
+ final s = results[2] as Map<String, dynamic>;
+ _name.text = '${s['name'] ?? ''}';
+ _icon = '${s['icon'] ?? 'Funnel'}';
+ _public = s['isPublic'] == true;
+ _kobo = s['syncToKobo'] == true;
+ final filter = s['filter'];
+ _root = filter is Map ? ScopeGroup.fromJson(filter, _customTypes) : null;
+ for (final spec in (s['defaultSort'] as List<dynamic>? ?? const [])) {
+ if (spec is Map && spec['field'] is String) {
+ _sort.add((field: spec['field'] as String, dir: spec['dir'] == 'desc' ? 'desc' : 'asc'));
+ }
+ }
+ }
+ } catch (e) {
+ debugPrint('[SmartScope] load failed: $e');
+ _loadError = '$e';
+ }
+ if (!mounted) return;
+ setState(() => _loading = false);
+ _scheduleCount();
+ }
+
+ void _changed() {
+ setState(() {});
+ _scheduleCount();
+ }
+
+ List<Map<String, dynamic>> get _sortJson => [
+ for (final s in _sort) {'field': s.field, 'dir': s.dir},
+ ];
+
+ void _scheduleCount() {
+ _countTimer?.cancel();
+ _countTimer = Timer(const Duration(milliseconds: 450), () async {
+ final api = _api;
+ if (api == null || !mounted) return;
+ final gen = ++_countGen;
+ setState(() => _counting = true);
+ final count = await api.smartScopeMatchCount(_root?.toJson(_customTypes), _sortJson);
+ if (!mounted || gen != _countGen) return;
+ setState(() {
+ _count = count;
+ _counting = false;
+ });
+ });
+ }
+
+ Future<void> _save() async {
+ final api = _api;
+ final name = _name.text.trim();
+ if (api == null || name.isEmpty || _saving) return;
+ final l = AppLocalizations.of(context)!;
+ setState(() => _saving = true);
+ // A scope with no finished rule clears its filter: null, not a missing
+ // key, which the server would read as "keep the old one".
+ final body = <String, dynamic>{
+ 'name': name,
+ 'icon': _icon,
+ 'filter': _root?.toJson(_customTypes),
+ 'defaultSort': _sortJson,
+ 'isPublic': _public,
+ 'syncToKobo': _kobo,
+ };
+ try {
+ if (_isNew) {
+ await api.createSmartScope(body);
+ } else {
+ await api.updateSmartScope(widget.scopeId!, body);
+ }
+ if (!mounted) return;
+ unawaited(context.read<LibraryProvider>().loadCollections(force: true));
+ Navigator.of(context).pop(SmartScopeEdit.saved);
+ } catch (e) {
+ debugPrint('[SmartScope] save failed: $e');
+ if (!mounted) return;
+ setState(() => _saving = false);
+ showOverlayToast(context, l.smartScopeSaveFailed, icon: Icons.error_outline_rounded);
+ }
+ }
+
+ Future<void> _delete() async {
+ final api = _api;
+ if (api == null || _isNew) return;
+ final l = AppLocalizations.of(context)!;
+ final ok = await showDialog<bool>(
+ context: context,
+ builder: (ctx) => AlertDialog(
+ title: Text(l.smartScopeDelete),
+ content: Text(l.smartScopeDeleteConfirm(_name.text.trim())),
+ actions: [
+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),
+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.delete)),
+ ],
+ ),
+ );
+ if (ok != true || !mounted) return;
+ setState(() => _saving = true);
+ try {
+ await api.deleteSmartScope(widget.scopeId!);
+ if (!mounted) return;
+ unawaited(context.read<LibraryProvider>().loadCollections(force: true));
+ Navigator.of(context).pop(SmartScopeEdit.deleted);
+ } catch (e) {
+ debugPrint('[SmartScope] delete failed: $e');
+ if (!mounted) return;
+ setState(() => _saving = false);
+ showOverlayToast(context, l.smartScopeDeleteFailed, icon: Icons.error_outline_rounded);
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final canSave = !_loading && _loadError == null && _name.text.trim().isNotEmpty && !_saving;
+ return Scaffold(
+ appBar: AppBar(
+ title: Text(_isNew ? l.smartScopeNew : l.smartScopeEditTitle),
+ actions: [
+ if (!_isNew && !_loading && _loadError == null)
+ IconButton(
+ tooltip: l.smartScopeDelete,
+ icon: Icon(Icons.delete_outline_rounded, color: cs.error),
+ onPressed: _saving ? null : _delete,
+ ),
+ TextButton(onPressed: canSave ? _save : null, child: Text(l.save)),
+ ],
+ ),
+ body: _loading
+ ? const Center(child: CircularProgressIndicator(strokeWidth: 2))
+ : _loadError != null
+ ? Center(
+ child: Padding(
+ padding: const EdgeInsets.all(24),
+ child: Text(l.smartScopeLoadFailed, textAlign: TextAlign.center),
+ ),
+ )
+ : ListView(
+ padding: const EdgeInsets.fromLTRB(16, 8, 16, 48),
+ children: [
+ TextField(
+ controller: _name,
+ textCapitalization: TextCapitalization.sentences,
+ decoration: InputDecoration(labelText: l.name, border: const OutlineInputBorder()),
+ ),
+ const SizedBox(height: 16),
+ _section(l.smartScopeIcon),
+ _iconPicker(cs),
+ SwitchListTile(
+ contentPadding: EdgeInsets.zero,
+ title: Text(l.smartScopePublic),
+ value: _public,
+ onChanged: (v) => setState(() => _public = v),
+ ),
+ SwitchListTile(
+ contentPadding: EdgeInsets.zero,
+ title: Text(l.smartScopeKobo),
+ value: _kobo,
+ onChanged: (v) => setState(() => _kobo = v),
+ ),
+ const SizedBox(height: 8),
+ Row(children: [
+ Expanded(child: _section(l.smartScopeRules)),
+ _countChip(l, cs),
+ ]),
+ const SizedBox(height: 4),
+ if (_root == null) _templates(l) else _group(_root!, 0, l, cs),
+ const SizedBox(height: 20),
+ _section(l.smartScopeSort),
+ _sortEditor(l, cs),
+ ],
+ ),
+ );
+ }
+
+ Widget _section(String title) => Padding(
+ padding: const EdgeInsets.only(bottom: 6),
+ child: Text(title, style: Theme.of(context).textTheme.titleSmall?.copyWith(fontWeight: FontWeight.w600)),
+ );
+
+ Widget _countChip(AppLocalizations l, ColorScheme cs) {
+ final text = _counting || _count == null ? l.smartScopeCounting : l.smartScopeMatchCount(_count!);
+ return Chip(
+ visualDensity: VisualDensity.compact,
+ avatar: Icon(Icons.filter_alt_rounded, size: 16, color: cs.primary),
+ label: Text(text),
+ );
+ }
+
+ Widget _iconPicker(ColorScheme cs) {
+ final names = scopeIcons.keys.toList();
+ // A scope made on the web may use any icon; keep it selectable as is.
+ if (!scopeIcons.containsKey(_icon)) names.insert(0, _icon);
+ return Wrap(
+ spacing: 6,
+ runSpacing: 6,
+ children: [
+ for (final name in names)
+ ChoiceChip(
+ label: Icon(scopeIconData(name), size: 20),
+ selected: _icon == name,
+ showCheckmark: false,
+ tooltip: name,
+ onSelected: (_) => setState(() => _icon = name),
+ ),
+ ],
+ );
+ }
+
+ Widget _templates(AppLocalizations l) {
+ String label(String id) => switch (id) {
+ 'hasSeries' => l.smartScopeTplHasSeries,
+ 'recent' => l.smartScopeTplRecent,
+ 'pdf' => l.smartScopeTplPdf,
+ 'noGenres' => l.smartScopeTplNoGenres,
+ 'epub' => l.smartScopeTplEpub,
+ _ => id,
+ };
+ return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(l.smartScopeStartFrom, style: Theme.of(context).textTheme.bodySmall),
+ const SizedBox(height: 6),
+ Wrap(spacing: 6, runSpacing: 6, children: [
+ for (final id in scopeTemplateIds)
+ ActionChip(
+ label: Text(label(id)),
+ onPressed: () {
+ _root = scopeTemplate(id);
+ _changed();
+ },
+ ),
+ ]),
+ const SizedBox(height: 8),
+ OutlinedButton.icon(
+ icon: const Icon(Icons.add_rounded),
+ label: Text(l.smartScopeFromScratch),
+ onPressed: () {
+ _root = scopeTemplate('scratch');
+ _changed();
+ },
+ ),
+ ]);
+ }
+
+ Widget _group(ScopeGroup g, int depth, AppLocalizations l, ColorScheme cs, {ScopeGroup? parent}) {
+ final showJoin = depth > 0 || g.children.length > 1;
+ final content = Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
+ if (showJoin || parent != null)
+ Row(children: [
+ if (showJoin)
+ SegmentedButton<String>(
+ segments: [
+ ButtonSegment(value: 'AND', label: Text(l.smartScopeMatchAll)),
+ ButtonSegment(value: 'OR', label: Text(l.smartScopeMatchAny)),
+ ],
+ selected: {g.join},
+ showSelectedIcon: false,
+ style: const ButtonStyle(visualDensity: VisualDensity.compact),
+ onSelectionChanged: (s) {
+ g.join = s.first;
+ _changed();
+ },
+ ),
+ const Spacer(),
+ if (parent != null)
+ IconButton(
+ tooltip: l.remove,
+ icon: const Icon(Icons.close_rounded),
+ onPressed: () {
+ parent.children.remove(g);
+ _changed();
+ },
+ ),
+ ]),
+ for (final child in g.children)
+ Padding(
+ padding: const EdgeInsets.only(top: 8),
+ child: child is ScopeGroup
+ ? _group(child, depth + 1, l, cs, parent: g)
+ : _rule(child as ScopeRule, g, l, cs),
+ ),
+ const SizedBox(height: 8),
+ Wrap(spacing: 8, children: [
+ TextButton.icon(
+ icon: const Icon(Icons.add_rounded),
+ label: Text(l.smartScopeAddRule),
+ onPressed: () {
+ g.children.add(ScopeRule.blank('title', _customTypes));
+ _changed();
+ },
+ ),
+ if (depth < scopeMaxNesting)
+ TextButton.icon(
+ icon: const Icon(Icons.account_tree_outlined),
+ label: Text(l.smartScopeAddGroup),
+ onPressed: () {
+ g.children.add(ScopeGroup(children: [ScopeRule.blank('title', _customTypes)]));
+ _changed();
+ },
+ ),
+ ]),
+ ]);
+ if (depth == 0) return content;
+ return Container(
+ padding: const EdgeInsets.fromLTRB(10, 6, 6, 4),
+ decoration: BoxDecoration(
+ border: Border(left: BorderSide(color: cs.primary.withValues(alpha: 0.5), width: 3)),
+ color: cs.primary.withValues(alpha: 0.04),
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: content,
+ );
+ }
+
+ List<String> get _fieldChoices => [
+ ...scopeFieldOperators.keys,
+ ..._customTypes.keys,
+ ];
+
+ Widget _rule(ScopeRule r, ScopeGroup parent, AppLocalizations l, ColorScheme cs) {
+ final remove = IconButton(
+ tooltip: l.remove,
+ icon: const Icon(Icons.close_rounded),
+ onPressed: () {
+ parent.children.remove(r);
+ _dayUnits.remove(r);
+ _changed();
+ },
+ );
+ if (r.isUnsupported) {
+ return Card(
+ margin: EdgeInsets.zero,
+ child: ListTile(
+ leading: Icon(Icons.lock_outline_rounded, color: cs.onSurfaceVariant),
+ title: Text('${r.field} ${r.op}'),
+ subtitle: Text(l.smartScopeUnsupportedRule),
+ trailing: remove,
+ ),
+ );
+ }
+ final ops = scopeOperatorsFor(r.field, _customTypes);
+ final fieldItems = <DropdownMenuItem<String>>[
+ for (final f in scopeFieldOperators.keys)
+ DropdownMenuItem(value: f, child: Text(scopeFieldLabel(l, f, _customLabels))),
+ for (final f in _customTypes.keys)
+ DropdownMenuItem(value: f, child: Text('${scopeFieldLabel(l, f, _customLabels)} (${l.smartScopeCustomFields})')),
+ ];
+ return Card(
+ margin: EdgeInsets.zero,
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(12, 4, 4, 12),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
+ Row(children: [
+ Expanded(
+ child: DropdownButton<String>(
+ value: _fieldChoices.contains(r.field) ? r.field : null,
+ isExpanded: true,
+ underline: const SizedBox.shrink(),
+ items: fieldItems,
+ onChanged: (f) {
+ if (f == null || f == r.field) return;
+ // A new field starts over, like the web: its first operator, no value.
+ final blank = ScopeRule.blank(f, _customTypes);
+ r
+ ..field = blank.field
+ ..op = blank.op
+ ..value = null
+ ..valueTo = null
+ ..provider = blank.provider;
+ _dayUnits.remove(r);
+ _changed();
+ },
+ ),
+ ),
+ remove,
+ ]),
+ Padding(
+ padding: const EdgeInsets.only(right: 8),
+ child: DropdownButton<String>(
+ value: ops.contains(r.op) ? r.op : null,
+ isExpanded: true,
+ items: [for (final o in ops) DropdownMenuItem(value: o, child: Text(scopeOpLabel(l, o)))],
+ onChanged: (o) {
+ if (o == null || o == r.op) return;
+ final before = scopeInputFor(r.field, r.op, _customTypes);
+ r.op = o;
+ // Keep what was typed when the kind of value stays the same.
+ if (scopeInputFor(r.field, o, _customTypes) != before) {
+ r.value = null;
+ r.valueTo = null;
+ }
+ if (o != 'between') r.valueTo = null;
+ _changed();
+ },
+ ),
+ ),
+ if (scopeHasProvider(r.field))
+ Padding(
+ padding: const EdgeInsets.only(right: 8),
+ child: DropdownButton<String>(
+ value: r.provider ?? 'any',
+ isExpanded: true,
+ items: [
+ for (final p in scopeRatingProviders)
+ DropdownMenuItem(value: p, child: Text(_providerLabel(l, p))),
+ ],
+ onChanged: (p) {
+ r.provider = p;
+ _changed();
+ },
+ ),
+ ),
+ if (r.field == 'metadataScore') _scorePresets(r, l),
+ Padding(
+ padding: const EdgeInsets.only(right: 8),
+ child: _valueInput(r, l, cs),
+ ),
+ ]),
+ ),
+ );
+ }
+
+ Widget _scorePresets(ScopeRule r, AppLocalizations l) {
+ ActionChip chip(String label, String op, int v) => ActionChip(
+ label: Text(label),
+ onPressed: () {
+ r
+ ..op = op
+ ..value = v
+ ..valueTo = null;
+ _changed();
+ },
+ );
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 4),
+ child: Wrap(spacing: 6, children: [
+ chip(l.smartScopeScoreOutstanding, 'gte', 90),
+ chip(l.smartScopeScoreGood, 'gte', 70),
+ chip(l.smartScopeScoreFair, 'gte', 50),
+ chip(l.smartScopeScorePoor, 'lt', 50),
+ ]),
+ );
+ }
+
+ Widget _valueInput(ScopeRule r, AppLocalizations l, ColorScheme cs) {
+ final input = scopeInputFor(r.field, r.op, _customTypes);
+ if (input == ScopeInput.none) return const SizedBox.shrink();
+ Widget one(bool to) => _singleInput(r, input, to, l, cs);
+ if (r.op == 'between' && input != ScopeInput.suggestList && input != ScopeInput.options) {
+ return Row(children: [
+ Expanded(child: one(false)),
+ Padding(padding: const EdgeInsets.symmetric(horizontal: 8), child: Text(l.smartScopeAnd)),
+ Expanded(child: one(true)),
+ ]);
+ }
+ return one(false);
+ }
+
+ Key _key(ScopeRule r, String part) => ValueKey('${identityHashCode(r)}-${r.field}-${r.op}-$part');
+
+ Widget _singleInput(ScopeRule r, ScopeInput input, bool to, AppLocalizations l, ColorScheme cs) {
+ Object? get() => to ? r.valueTo : r.value;
+ void set(Object? v) {
+ if (to) {
+ r.valueTo = v;
+ } else {
+ r.value = v;
+ }
+ _changed();
+ }
+
+ switch (input) {
+ case ScopeInput.none:
+ return const SizedBox.shrink();
+ case ScopeInput.text:
+ case ScopeInput.seriesIndex:
+ return TextFormField(
+ key: _key(r, to ? 'to' : 'v'),
+ initialValue: get() == null ? '' : '${get()}',
+ decoration: InputDecoration(hintText: l.smartScopeValue, isDense: true),
+ onChanged: (v) => set(v),
+ );
+ case ScopeInput.number:
+ final integer = const {'publishedYear', 'pageCount', 'rating', 'communityRatingCount'}.contains(r.field);
+ return TextFormField(
+ key: _key(r, to ? 'to' : 'v'),
+ initialValue: get() == null ? '' : '${get()}',
+ keyboardType: TextInputType.numberWithOptions(decimal: !integer, signed: false),
+ decoration: InputDecoration(hintText: l.smartScopeValue, isDense: true),
+ onChanged: (v) {
+ final n = num.tryParse(v.trim());
+ set(n == null ? null : (integer ? n.round() : n));
+ },
+ );
+ case ScopeInput.sizeMb:
+ final bytes = get();
+ return TextFormField(
+ key: _key(r, to ? 'to' : 'v'),
+ initialValue: bytes is num ? _trimNum(scopeBytesToMb(bytes)) : '',
+ keyboardType: const TextInputType.numberWithOptions(decimal: true),
+ decoration: InputDecoration(hintText: l.smartScopeValue, suffixText: l.smartScopeMb, isDense: true),
+ onChanged: (v) {
+ final mb = num.tryParse(v.trim());
+ set(mb == null || mb < 0 ? null : scopeMbToBytes(mb));
+ },
+ );
+ case ScopeInput.date:
+ final v = get();
+ return Align(
+ alignment: Alignment.centerLeft,
+ child: OutlinedButton.icon(
+ icon: const Icon(Icons.event_rounded, size: 18),
+ label: Text(v is String && v.isNotEmpty ? v.split('T').first : l.smartScopePickDate),
+ onPressed: () async {
+ final initial = DateTime.tryParse(v is String ? v : '') ?? DateTime.now();
+ final picked = await showDatePicker(
+ context: context,
+ initialDate: initial,
+ firstDate: DateTime(1000),
+ lastDate: DateTime(DateTime.now().year + 50),
+ );
+ if (picked == null) return;
+ set('${picked.year.toString().padLeft(4, '0')}-'
+ '${picked.month.toString().padLeft(2, '0')}-'
+ '${picked.day.toString().padLeft(2, '0')}');
+ },
+ ),
+ );
+ case ScopeInput.days:
+ final unit = _dayUnits[r] ?? 1;
+ final days = get();
+ final shown = days is num ? _trimNum(days / unit) : '';
+ return Row(children: [
+ Expanded(
+ child: TextFormField(
+ key: _key(r, 'days$unit'),
+ initialValue: shown,
+ keyboardType: const TextInputType.numberWithOptions(decimal: false),
+ decoration: InputDecoration(hintText: l.smartScopeValue, isDense: true),
+ onChanged: (v) {
+ final n = int.tryParse(v.trim());
+ set(n == null || n < 0 ? null : n * unit);
+ },
+ ),
+ ),
+ const SizedBox(width: 8),
+ DropdownButton<int>(
+ value: unit,
+ items: [
+ DropdownMenuItem(value: 1, child: Text(l.smartScopeDays)),
+ DropdownMenuItem(value: 7, child: Text(l.smartScopeWeeks)),
+ DropdownMenuItem(value: 30, child: Text(l.smartScopeMonths)),
+ ],
+ onChanged: (u) {
+ if (u == null) return;
+ final current = r.value is num ? (r.value as num) / unit : null;
+ _dayUnits[r] = u;
+ r.value = current == null ? null : (current * u).round();
+ _changed();
+ },
+ ),
+ ]);
+ case ScopeInput.suggest:
+ return _SuggestField(
+ key: _key(r, 'suggest'),
+ initial: get() is String ? get() as String : '',
+ hint: l.smartScopeValue,
+ suggest: (q) => _api?.metadataSuggestions(scopeSuggestSource[r.field]!, q) ?? Future.value(const []),
+ onChanged: (v) => set(v),
+ );
+ case ScopeInput.suggestList:
+ final values = (r.value is List ? (r.value as List).map((e) => '$e').toList() : <String>[]);
+ return _ChipList(
+ key: _key(r, 'chips'),
+ values: values,
+ hint: values.length >= 20 ? l.smartScopeMaxValues : l.smartScopeAddValue,
+ canAdd: values.length < 20,
+ suggest: (q) => _api?.metadataSuggestions(scopeSuggestSource[r.field] ?? '', q) ?? Future.value(const []),
+ onChanged: (list) => set(list.isEmpty ? null : list),
+ );
+ case ScopeInput.options:
+ final options = switch (r.field) {
+ 'format' => scopeBookFormats,
+ 'readStatus' => bookOrbitReadStatuses,
+ _ => _libraryNames,
+ };
+ String label(String o) => switch (r.field) {
+ 'format' => o.toUpperCase(),
+ 'readStatus' => readStatusLabel(l, o),
+ _ => o,
+ };
+ final selected = (r.value is List ? (r.value as List).map((e) => '$e').toSet() : <String>{});
+ return Wrap(spacing: 6, runSpacing: 4, children: [
+ for (final o in options)
+ FilterChip(
+ label: Text(label(o)),
+ selected: selected.contains(o),
+ onSelected: (on) {
+ final next = {...selected};
+ if (on) {
+ next.add(o);
+ } else {
+ next.remove(o);
+ }
+ set(next.isEmpty ? null : [for (final x in options) if (next.contains(x)) x]);
+ },
+ ),
+ ]);
+ }
+ }
+
+ static String _trimNum(num v) {
+ final s = v.toStringAsFixed(2);
+ return s.contains('.') ? s.replaceFirst(RegExp(r'\.?0+$'), '') : s;
+ }
+
+ Widget _sortEditor(AppLocalizations l, ColorScheme cs) {
+ final all = [...scopeSortFields, ..._customTypes.keys];
+ return Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
+ if (_sort.isEmpty)
+ Text(l.smartScopeSortNone, style: Theme.of(context).textTheme.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ for (var i = 0; i < _sort.length; i++)
+ Row(children: [
+ Expanded(
+ child: DropdownButton<String>(
+ value: all.contains(_sort[i].field) ? _sort[i].field : null,
+ isExpanded: true,
+ items: [
+ for (final f in all)
+ if (f == _sort[i].field || !_sort.any((s) => s.field == f))
+ DropdownMenuItem(value: f, child: Text(scopeFieldLabel(l, f, _customLabels))),
+ ],
+ onChanged: (f) {
+ if (f == null) return;
+ _sort[i] = (field: f, dir: _sort[i].dir);
+ _changed();
+ },
+ ),
+ ),
+ IconButton(
+ tooltip: _sort[i].dir == 'asc' ? l.smartScopeAscending : l.smartScopeDescending,
+ icon: Icon(_sort[i].dir == 'asc' ? Icons.arrow_upward_rounded : Icons.arrow_downward_rounded),
+ onPressed: () {
+ _sort[i] = (field: _sort[i].field, dir: _sort[i].dir == 'asc' ? 'desc' : 'asc');
+ _changed();
+ },
+ ),
+ IconButton(
+ icon: const Icon(Icons.keyboard_arrow_up_rounded),
+ onPressed: i == 0
+ ? null
+ : () {
+ final s = _sort.removeAt(i);
+ _sort.insert(i - 1, s);
+ _changed();
+ },
+ ),
+ IconButton(
+ tooltip: l.remove,
+ icon: const Icon(Icons.close_rounded),
+ onPressed: () {
+ _sort.removeAt(i);
+ _changed();
+ },
+ ),
+ ]),
+ Align(
+ alignment: Alignment.centerLeft,
+ child: TextButton.icon(
+ icon: const Icon(Icons.add_rounded),
+ label: Text(l.smartScopeAddSort),
+ onPressed: _sort.length >= all.length
+ ? null
+ : () {
+ final next = all.firstWhere((f) => !_sort.any((s) => s.field == f));
+ _sort.add((field: next, dir: 'asc'));
+ _changed();
+ },
+ ),
+ ),
+ ]);
+ }
+}
+
+/// One name, typed or picked from the server's suggestions.
+class _SuggestField extends StatelessWidget {
+ final String initial;
+ final String hint;
+ final Future<List<String>> Function(String q) suggest;
+ final ValueChanged<String> onChanged;
+
+ const _SuggestField({
+ super.key,
+ required this.initial,
+ required this.hint,
+ required this.suggest,
+ required this.onChanged,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return Autocomplete<String>(
+ initialValue: TextEditingValue(text: initial),
+ optionsBuilder: (v) => suggest(v.text),
+ onSelected: onChanged,
+ fieldViewBuilder: (context, controller, focus, onSubmit) => TextField(
+ controller: controller,
+ focusNode: focus,
+ decoration: InputDecoration(hintText: hint, isDense: true),
+ onChanged: onChanged,
+ ),
+ );
+ }
+}
+
+/// Several names: chips for what's chosen and a field that suggests more.
+/// Anything typed can be added too, as on the web.
+class _ChipList extends StatefulWidget {
+ final List<String> values;
+ final String hint;
+ final bool canAdd;
+ final Future<List<String>> Function(String q) suggest;
+ final ValueChanged<List<String>> onChanged;
+
+ const _ChipList({
+ super.key,
+ required this.values,
+ required this.hint,
+ required this.canAdd,
+ required this.suggest,
+ required this.onChanged,
+ });
+
+ @override
+ State<_ChipList> createState() => _ChipListState();
+}
+
+class _ChipListState extends State<_ChipList> {
+ TextEditingController? _field;
+
+ void _add(String v) {
+ final t = v.trim();
+ if (t.isEmpty || !widget.canAdd) return;
+ if (!widget.values.contains(t)) widget.onChanged([...widget.values, t]);
+ _field?.clear();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
+ if (widget.values.isNotEmpty)
+ Wrap(spacing: 6, runSpacing: 4, children: [
+ for (final v in widget.values)
+ InputChip(
+ label: Text(v),
+ onDeleted: () => widget.onChanged([...widget.values]..remove(v)),
+ ),
+ ]),
+ Autocomplete<String>(
+ optionsBuilder: (v) => widget.canAdd ? widget.suggest(v.text) : Future.value(const <String>[]),
+ onSelected: _add,
+ fieldViewBuilder: (context, controller, focus, onSubmit) {
+ _field = controller;
+ return TextField(
+ controller: controller,
+ focusNode: focus,
+ enabled: widget.canAdd,
+ decoration: InputDecoration(hintText: widget.hint, isDense: true),
+ onSubmitted: _add,
+ );
+ },
+ ),
+ ]);
+ }
+}
diff --git a/lib/screens/upcoming_releases_screen.dart b/lib/screens/upcoming_releases_screen.dart
index db28a93d..e42d74c4 100644
--- a/lib/screens/upcoming_releases_screen.dart
+++ b/lib/screens/upcoming_releases_screen.dart
@@ -9,6 +9,8 @@ import '../services/audio_player_service.dart';
import '../services/rmab_service.dart';
import '../services/scoped_prefs.dart';
import '../services/upcoming_releases_service.dart';
+import '../utils/series_number_match.dart';
+
import '../widgets/absorb_page_header.dart';
import '../widgets/audible_series_sheet.dart';
import '../widgets/overlay_toast.dart';
@@ -1868,6 +1870,7 @@ class _SkippedSeriesSheetState extends State<_SkippedSeriesSheet> {
setState(() => _busySeriesId = null);
final ownedTitles = <String>{};
final ownedAsins = <String>{};
+ final ownedNumbers = SeriesNumberOwnership();
for (final b in books) {
if (b is! Map<String, dynamic>) continue;
final media = b['media'] as Map<String, dynamic>? ?? {};
@@ -1876,6 +1879,7 @@ class _SkippedSeriesSheetState extends State<_SkippedSeriesSheet> {
final asin = metadata['asin'] as String? ?? '';
if (title.isNotEmpty) ownedTitles.add(title);
if (asin.isNotEmpty) ownedAsins.add(asin);
+ ownedNumbers.add(librarySeriesNumber(metadata, s.seriesId), title, asin);
}
if (!mounted) return;
showAudibleSeriesSheet(context,
@@ -1883,6 +1887,7 @@ class _SkippedSeriesSheetState extends State<_SkippedSeriesSheet> {
seriesAsin: s.audibleAsin,
ownedTitles: ownedTitles,
ownedAsins: ownedAsins,
+ ownedNumbers: ownedNumbers,
);
}
diff --git a/lib/services/api_service.dart b/lib/services/api_service.dart
index 59ae7e41..b4a35f11 100644
--- a/lib/services/api_service.dart
+++ b/lib/services/api_service.dart
@@ -373,6 +373,23 @@ class ApiService {
/// Image of comic page [index] (from 0), when [comicPageCount] answered.
String? comicPageUrl(String fileId, int index) => null;
+ /// The server's ebook bookmarks for an item, as {id, cfi, title, note},
+ /// or null when the server keeps none (Audiobookshelf) or can't be reached.
+ Future<List<Map<String, dynamic>>?> ebookBookmarks(String itemId) async => null;
+
+ /// One page of a collection's books, for a server whose collection listing
+ /// holds only the first ones. Audiobookshelf sends every book up front.
+ Future<List<Map<String, dynamic>>?> collectionBooksPage(String collectionId,
+ {required int page, int size = 100}) async =>
+ null;
+
+ /// Saves an ebook bookmark at [cfi] on the server. Returns its server id,
+ /// or null when the server keeps none or the save failed.
+ Future<String?> addEbookBookmark(String itemId, {required String cfi, required String title}) async => null;
+
+ /// Removes a server ebook bookmark. True when it's gone (or never existed).
+ Future<bool> deleteEbookBookmark(String itemId, String bookmarkId) async => false;
+
/// The cover slots a book uses on BookOrbit ('audio', 'ebook'). Empty on
/// Audiobookshelf, which has one cover per item.
Future<List<String>> coverSlots(String itemId) async => const [];
diff --git a/lib/services/audio_player_service.dart b/lib/services/audio_player_service.dart
index 77791db0..fc471d80 100644
--- a/lib/services/audio_player_service.dart
+++ b/lib/services/audio_player_service.dart
@@ -7270,24 +7270,64 @@ class AudioPlayerService extends ChangeNotifier {
return;
}
}
+ // Android: a player left paused past the pause timeout comes back with
+ // the position moving and nothing audible, and only a rebuilt player
+ // sounds again. One whose decoder failed while paused is rebuilt too.
+ // Decided before any seek: seeking a player that is about to be replaced
+ // is wasted, and on a failed decoder the seek can wait forever.
+ final pausedFor = _lastPauseTime == null
+ ? null
+ : DateTime.now().difference(_lastPauseTime!);
+ final longPause = pausedFor != null && pausedFor >= _pauseStopTimeout;
+ bool canRebuild() =>
+ _player?.processingState != ProcessingState.idle &&
+ _currentItemId != null &&
+ _api != null;
+ String? rebuildWhy = _playerBroken
+ ? 'Player failed while paused'
+ : Platform.isAndroid && longPause
+ ? 'Long pause (${pausedFor.inSeconds}s)'
+ : null;
+ var rebuild = rebuildWhy != null && canRebuild();
+ // Where the resume lands: the live player follows it when it is kept,
+ // the rebuild starts there otherwise.
+ var resumeAt = position.inMilliseconds / 1000.0;
+ Future<void> moveTo(double s, [Future<void> Function()? seek]) async {
+ resumeAt = s;
+ if (rebuild) return;
+ if (!await _resumeSeekFinished(seek ?? () => _seekAbsolute(s), s)) {
+ rebuildWhy = 'Seek on resume never finished';
+ rebuild = canRebuild();
+ }
+ }
+
// A seek while paused (user, or the socket adopting another device's
// position) is the position the user expects to hear next - don't let
// the server check below override it.
final seekedWhilePaused = _seekedWhilePaused;
_seekedWhilePaused = false;
- final adoptedServerPos = fromUi && !seekedWhilePaused
- ? await _adoptServerPositionBeforeResume()
- : false;
+ final serverPos = fromUi && !seekedWhilePaused
+ ? await _serverPositionBeforeResume()
+ : null;
+ final adoptedServerPos = serverPos != null;
+ if (serverPos != null) {
+ await moveTo(serverPos);
+ _logEvent(
+ PlaybackEventType.seek,
+ detail: 'adopted server position ${serverPos.toStringAsFixed(1)}s before resume',
+ );
+ }
// Coming back within a few minutes of the sleep timer firing means you were
// awake for it, so put back what its rewind took. Done before the ordinary
// auto-rewind below so that still applies from the restored position.
// Moot when we just jumped to another device's position; consume the undo
// anyway so it can't fire on a later resume.
if (_player != null) {
- final undoTo = SleepTimerService()
- .takeSleepRewindUndo(_currentItemId, position);
+ final undoTo = SleepTimerService().takeSleepRewindUndo(
+ _currentItemId, Duration(milliseconds: (resumeAt * 1000).round()));
if (undoTo != null && !adoptedServerPos) {
- await seekTo(undoTo, logDetail: 'sleep rewind undone');
+ await moveTo(undoTo.inMilliseconds / 1000.0,
+ () => seekTo(undoTo, logDetail: 'sleep rewind undone'));
// seekTo flags a paused seek; this one is ours, not the user's, and
// the server check has already run, so don't carry it to next resume.
_seekedWhilePaused = false;
@@ -7307,8 +7347,8 @@ class AudioPlayerService extends ChangeNotifier {
// A player sitting at zero has lost its place (an error reset it);
// rewinding from there would only seek to the start on top of
// whatever the server check just restored.
- if (rewindSeconds > 0.5 && position > Duration.zero) {
- final currentAbsolutePos = position.inMilliseconds / 1000.0;
+ if (rewindSeconds > 0.5 && resumeAt > 0) {
+ final currentAbsolutePos = resumeAt;
final currentSpeed = _player!.speed;
var newPosSeconds =
currentAbsolutePos - (rewindSeconds * currentSpeed);
@@ -7324,7 +7364,7 @@ class AudioPlayerService extends ChangeNotifier {
}
}
}
- await _seekAbsolute(newPosSeconds);
+ await moveTo(newPosSeconds);
// Log the actual book-time delta: at speed>1.0 it's larger than
// rewindSeconds, and the chapter barrier may cap it smaller.
final actualDelta = currentAbsolutePos - newPosSeconds;
@@ -7339,9 +7379,6 @@ class AudioPlayerService extends ChangeNotifier {
}
}
}
- final pausedFor = _lastPauseTime == null
- ? null
- : DateTime.now().difference(_lastPauseTime!);
_lastPauseTime = null;
// Reset server sync clock so the first sync after resume doesn't
// include pause duration as timeListened
@@ -7358,22 +7395,14 @@ class AudioPlayerService extends ChangeNotifier {
} catch (e) {
debugPrint('[Player] Resume setActive(true) failed: $e');
}
- // Android: a player left paused past the pause timeout comes back with
- // the position moving and nothing audible, and only a rebuilt player
- // sounds again. Rebuild it at the position the resume settled on, which
- // already includes the auto rewind, so nothing seeks once audio starts.
- final longPause = pausedFor != null && pausedFor >= _pauseStopTimeout;
- if ((Platform.isAndroid && longPause || _playerBroken) &&
- _player?.processingState != ProcessingState.idle &&
- _currentItemId != null &&
- _api != null) {
- final why = _playerBroken
- ? 'Player failed while paused'
- : 'Long pause (${pausedFor!.inSeconds}s)';
+ // Rebuild at the position the resume settled on, which already includes
+ // the auto rewind, so nothing seeks once audio starts.
+ if ((rebuild || _playerBroken) && canRebuild()) {
+ final why = rebuildWhy ?? 'Player failed while paused';
_playerBroken = false;
// A position of zero means the player lost its place; the start then
// comes from the saved progress instead of being forced to the top.
- final startS = position.inMilliseconds / 1000.0;
+ final startS = resumeAt;
debugPrint(
'[Player] $why - rebuilding the player '
'${startS > 0 ? "at ${startS.toStringAsFixed(1)}s" : "from the saved position"} '
@@ -7490,17 +7519,45 @@ class AudioPlayerService extends ChangeNotifier {
/// the phone left off. A late answer is dropped, never seeked to.
static const _serverPositionCheckCap = Duration(seconds: 2);
+ /// Resume seeks on a player whose decoder died while paused can wait
+ /// forever, which held play() - and every tap after it - for the whole
+ /// in-flight cap. On Android, a plain seek that hasn't finished within
+ /// [_resumeSeekCap] marks the player broken and the resume rebuilds it.
+ /// A pending source swap is left to finish, however long it takes.
+ static const _resumeSeekCap = Duration(seconds: 3);
+
+ Future<bool> _resumeSeekFinished(Future<void> Function() seek, double target) async {
+ if (!Platform.isAndroid ||
+ _pendingLocalSwapKey != null ||
+ _pendingSessionUpgrade != null) {
+ await seek();
+ return true;
+ }
+ try {
+ await seek().timeout(_resumeSeekCap);
+ return true;
+ } on TimeoutException {
+ debugPrint(
+ '[Player] Seek to ${target.toStringAsFixed(1)}s on resume did not finish '
+ 'within ${_resumeSeekCap.inSeconds}s - treating the player as broken',
+ );
+ _playerBroken = true;
+ return false;
+ }
+ }
+
/// Before an app-screen resume, look at the server's saved progress and,
- /// if another device genuinely moved it ahead, start there. Returns true
- /// when the position was adopted. Runs only before audio, capped, and only
- /// after a pause long enough to matter; anything slower starts local.
- Future<bool> _adoptServerPositionBeforeResume() async {
- if (_api == null || _currentItemId == null || _player == null) return false;
+ /// if another device genuinely moved it ahead, return that position for
+ /// the resume to start at; null keeps the phone's. Runs only before audio,
+ /// capped, and only after a pause long enough to matter; anything slower
+ /// starts local.
+ Future<double?> _serverPositionBeforeResume() async {
+ if (_api == null || _currentItemId == null || _player == null) return null;
// An idle player is about to be re-initialised through playItem, which
// reconciles the start position itself.
- if (_player!.processingState == ProcessingState.idle) return false;
- if (_knownOffline || _isOfflineMode) return false;
- if (ChromecastService().isCasting) return false;
+ if (_player!.processingState == ProcessingState.idle) return null;
+ if (_knownOffline || _isOfflineMode) return null;
+ if (ChromecastService().isCasting) return null;
final lastPause = _lastPauseTime;
// BookOrbit has no live progress push to cover a short pause, so check
// after any pause long enough for someone to have listened elsewhere.
@@ -7508,14 +7565,14 @@ class AudioPlayerService extends ChangeNotifier {
? const Duration(seconds: 10)
: _serverPositionCheckMinPause;
if (lastPause == null || DateTime.now().difference(lastPause) < minPause) {
- return false;
+ return null;
}
final manualOffline =
(_prefs ?? await SharedPreferences.getInstance()).getBool(
'manual_offline_mode',
) ??
false;
- if (manualOffline) return false;
+ if (manualOffline) return null;
final pKey = _currentEpisodeId != null
? '$_currentItemId-$_currentEpisodeId'
: _currentItemId!;
@@ -7528,7 +7585,7 @@ class AudioPlayerService extends ChangeNotifier {
debugPrint(
'[Player] Resume server-check (pre-start): no answer within ${_serverPositionCheckCap.inMilliseconds}ms - starting local',
);
- return false;
+ return null;
}
final serverPos = (serverProgress['currentTime'] as num?)?.toDouble() ?? 0;
final serverTs = (serverProgress['lastUpdate'] as num?)?.toInt() ?? 0;
@@ -7540,16 +7597,10 @@ class AudioPlayerService extends ChangeNotifier {
debugPrint(
'[Player] Resume server-check (pre-start): server=${serverPos}s(ts=$serverTs) vs local=${localPos}s(ts=$localTs) -> ${ahead ? "SEEKING" : "keep local"}',
);
- if (!ahead) return false;
- await _seekAbsolute(serverPos);
- _logEvent(
- PlaybackEventType.seek,
- detail: 'adopted server position ${serverPos.toStringAsFixed(1)}s before resume',
- );
- return true;
+ return ahead ? serverPos : null;
} catch (e) {
debugPrint('[Player] Resume server-check (pre-start) failed: $e');
- return false;
+ return null;
}
}
diff --git a/lib/services/bookorbit_api_service.dart b/lib/services/bookorbit_api_service.dart
index bb132d1f..d212dcde 100644
--- a/lib/services/bookorbit_api_service.dart
+++ b/lib/services/bookorbit_api_service.dart
@@ -1211,6 +1211,8 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
case 'not-finished':
rules.add(_rule('readStatus', 'excludesAll', ['read', 'skimmed']));
}
+ case 'readStatus':
+ rules.add(_rule('readStatus', 'includesAny', [value]));
case 'series':
if (int.tryParse(value) != null) {
return (rules: rules, q: null, unsupported: false, seriesId: value);
@@ -1543,7 +1545,8 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
await add('listen-again', () async {
final cards = await _libraryQueryCards(
libId,
- rules: [_rule('readStatus', 'includesAny', ['read'])],
+ // Skimmed counts as finished everywhere else, here too.
+ rules: [_rule('readStatus', 'includesAny', ['read', 'skimmed'])],
sort: [{'field': 'finishedAt', 'dir': 'desc'}],
size: limit,
);
@@ -1880,18 +1883,43 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
};
}
- Future<Map<String, dynamic>> _collection(Map<String, dynamic> c, {bool withBooks = true, int maxBooks = 2000}) async {
- final id = '${c['id']}';
+ /// Up to [maxBooks] of a collection's or scope's books, plus how many it
+ /// holds in all.
+ Future<({List<Map<String, dynamic>> books, int total})> _pagedBooks(String path, int maxBooks) async {
final books = <Map<String, dynamic>>[];
- if (withBooks) {
- for (var page = 0; page < 40 && books.length < maxBooks; page++) {
- final res = await _boGet('/collections/$id/books', {'page': page, 'size': 100}) as Map<String, dynamic>;
- final items = (res['items'] as List<dynamic>? ?? const []).whereType<Map<String, dynamic>>().toList();
- books.addAll(items.map((card) => _cardItem(card)));
- final total = (res['total'] as num?)?.toInt() ?? books.length;
- if (items.length < 100 || books.length >= total) break;
- }
+ var total = 0;
+ for (var page = 0; page < 40 && books.length < maxBooks; page++) {
+ final res = await _boGet(path, {'page': page, 'size': 100}) as Map<String, dynamic>;
+ final items = (res['items'] as List<dynamic>? ?? const []).whereType<Map<String, dynamic>>().toList();
+ books.addAll(items.map((card) => _cardItem(card)));
+ total = (res['total'] as num?)?.toInt() ?? books.length;
+ if (items.length < 100 || books.length >= total) break;
}
+ return (books: books, total: math.max(total, books.length));
+ }
+
+ @override
+ Future<List<Map<String, dynamic>>?> collectionBooksPage(String collectionId,
+ {required int page, int size = 100}) async {
+ final path = collectionId.startsWith(_scopeIdPrefix)
+ ? '/smart-scopes/${collectionId.substring(_scopeIdPrefix.length)}/books'
+ : '/collections/$collectionId/books';
+ try {
+ final res = await _boGet(path, {'page': page, 'size': size}) as Map<String, dynamic>;
+ return (res['items'] as List<dynamic>? ?? const [])
+ .whereType<Map<String, dynamic>>()
+ .map((card) => _cardItem(card))
+ .toList();
+ } catch (e) {
+ debugPrint('[BookOrbit] $path page $page failed: $e');
+ return null;
+ }
+ }
+
+ Future<Map<String, dynamic>> _collection(Map<String, dynamic> c, {bool withBooks = true, int maxBooks = 2000}) async {
+ final id = '${c['id']}';
+ final paged = withBooks ? await _pagedBooks('/collections/$id/books', maxBooks) : null;
+ final books = paged?.books ?? <Map<String, dynamic>>[];
return {
'id': id,
'name': c['name'] ?? '',
@@ -1901,19 +1929,165 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
'books': books,
'lastUpdate': BookOrbitMapper.ms(c['updatedAt']),
'createdAt': BookOrbitMapper.ms(c['createdAt']),
- 'bookOrbit': {'isOwner': c['isOwner'], 'isPublic': c['isPublic'], 'bookCount': c['bookCount']},
+ 'bookOrbit': {
+ 'isOwner': c['isOwner'],
+ 'isPublic': c['isPublic'],
+ 'bookCount': c['bookCount'],
+ 'total': ?paged?.total,
+ },
};
}
+ static const _scopeIdPrefix = 'scope-';
+
+ /// The user's book Smart Scopes, listed after the collections as read-only
+ /// ones. A server from before Smart Scopes has none.
+ Future<List<Map<String, dynamic>>> _bookScopes() async {
+ try {
+ final raw = await _boGet('/smart-scopes');
+ final list = raw is List ? raw : ((raw as Map?)?['items'] as List<dynamic>? ?? const []);
+ return list
+ .whereType<Map<String, dynamic>>()
+ .where((s) => (s['mediaType'] ?? 'books') == 'books')
+ .toList();
+ } on _BoHttpError catch (e) {
+ if (e.status == 404) return const [];
+ rethrow;
+ }
+ }
+
+ /// A Smart Scope in collection shape. Its books are whatever its rules
+ /// match right now; a scope whose rules the server can't run has none.
+ Future<Map<String, dynamic>> _scopeCollection(Map<String, dynamic> s, {int maxBooks = 2000}) async {
+ final id = '${s['id']}';
+ var books = <Map<String, dynamic>>[];
+ int? total;
+ try {
+ final paged = await _pagedBooks('/smart-scopes/$id/books', maxBooks);
+ books = paged.books;
+ total = paged.total;
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] smart scope $id books failed: ${e.status}');
+ }
+ return {
+ 'id': '$_scopeIdPrefix$id',
+ 'name': s['name'] ?? '',
+ 'description': null,
+ 'libraryId': '',
+ 'userId': '${s['userId'] ?? ''}',
+ 'books': books,
+ 'lastUpdate': BookOrbitMapper.ms(s['updatedAt']),
+ 'createdAt': BookOrbitMapper.ms(s['createdAt']),
+ 'bookOrbit': {
+ 'smartScope': true,
+ 'scopeId': id,
+ 'isOwner': s['isOwner'] == true,
+ 'isPublic': s['isPublic'],
+ 'bookCount': s['bookCount'],
+ 'total': ?total,
+ 'icon': s['icon'],
+ },
+ };
+ }
+
+ /// A Smart Scope as BookOrbit keeps it, rules and sort included.
+ Future<Map<String, dynamic>> smartScope(String id) async =>
+ await _boGet('/smart-scopes/$id') as Map<String, dynamic>;
+
+ Future<Map<String, dynamic>> createSmartScope(Map<String, dynamic> body) async =>
+ await _boPost('/smart-scopes', body) as Map<String, dynamic>;
+
+ Future<Map<String, dynamic>> updateSmartScope(String id, Map<String, dynamic> body) async =>
+ await _boPatch('/smart-scopes/$id', body) as Map<String, dynamic>;
+
+ Future<void> deleteSmartScope(String id) => _boDelete('/smart-scopes/$id');
+
+ /// How many books [filter] matches right now, the count the web shows
+ /// while a scope is edited. Null when the server can't say.
+ Future<int?> smartScopeMatchCount(Map<String, dynamic>? filter, List<Map<String, dynamic>> sort) async {
+ try {
+ final res = await _boPost('/books/query', {
+ if (sort.isNotEmpty) 'sort': sort.take(5).toList(),
+ 'pagination': {'page': 0, 'size': 1},
+ if (filter != null) 'filter': filter,
+ }) as Map<String, dynamic>;
+ return (res['total'] as num?)?.toInt();
+ } catch (e) {
+ debugPrint('[BookOrbit] smart scope count: $e');
+ return null;
+ }
+ }
+
+ /// Names starting or containing [q] for a rule value: [source] is one of
+ /// authors, genres, tags, series, publishers, languages, collections.
+ Future<List<String>> metadataSuggestions(String source, String q) async {
+ final text = q.trim();
+ if (text.isEmpty) return const [];
+ try {
+ final list = await _boGet('/metadata/$source', {'q': text}) as List<dynamic>;
+ return [
+ for (final e in list.whereType<Map<String, dynamic>>())
+ if ('${e['name'] ?? ''}'.isNotEmpty) '${e['name']}',
+ ];
+ } catch (e) {
+ debugPrint('[BookOrbit] $source suggestions: $e');
+ return const [];
+ }
+ }
+
+ /// The user's custom metadata fields a rule can test: {key, label, type}
+ /// with key `custom:<id>` and type text, url, number, date or boolean.
+ Future<List<Map<String, String>>> customMetadataFields() async {
+ try {
+ final list = (await _boGet('/custom-metadata/fields/active') as List<dynamic>)
+ .whereType<Map<String, dynamic>>()
+ .where((f) => f['archivedAt'] == null && f['id'] != null)
+ .toList()
+ ..sort((a, b) {
+ final byOrder = ((a['displayOrder'] as num?) ?? 0).compareTo((b['displayOrder'] as num?) ?? 0);
+ return byOrder != 0 ? byOrder : '${a['label']}'.compareTo('${b['label']}');
+ });
+ return [
+ for (final f in list) {'key': 'custom:${f['id']}', 'label': '${f['label'] ?? ''}', 'type': '${f['type'] ?? 'text'}'},
+ ];
+ } catch (e) {
+ debugPrint('[BookOrbit] custom fields: $e');
+ return const [];
+ }
+ }
+
+ /// Library names, which is what a library rule matches on.
+ Future<List<String>> libraryNames() async {
+ try {
+ final list = await _boGet('/libraries') as List<dynamic>;
+ return [
+ for (final l in list.whereType<Map<String, dynamic>>())
+ if ('${l['name'] ?? ''}'.isNotEmpty) '${l['name']}',
+ ];
+ } catch (e) {
+ debugPrint('[BookOrbit] library names: $e');
+ return const [];
+ }
+ }
+
Future<Map<String, dynamic>> _libraryCollections(String libId, Map<String, String> q) async {
final page = int.tryParse(q['page'] ?? '') ?? 0;
final limit = (int.tryParse(q['limit'] ?? '') ?? 25).clamp(1, 200);
- final all = (await _boGet('/collections') as List<dynamic>)
+ final collections = (await _boGet('/collections') as List<dynamic>)
.whereType<Map<String, dynamic>>()
- .where((c) => (c['mediaType'] ?? 'books') == 'books')
- .toList();
+ .where((c) => (c['mediaType'] ?? 'books') == 'books');
+ final all = [
+ for (final c in collections) (entry: c, scope: false),
+ for (final s in await _bookScopes()) (entry: s, scope: true),
+ ];
final slice = all.skip(page * limit).take(limit).toList();
- final results = await _pool(slice.map((c) => () => _collection(c, maxBooks: 500)).toList(), width: 4);
+ final results = await _pool(
+ slice
+ .map((e) => () => e.scope
+ ? _scopeCollection(e.entry, maxBooks: 500)
+ : _collection(e.entry, maxBooks: 500))
+ .toList(),
+ width: 4);
for (final r in results) {
r['libraryId'] = libId;
}
@@ -1934,6 +2108,13 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
return _json(await _collection(created)..['libraryId'] = body['libraryId'] ?? '');
}
final id = at(2);
+ if (id.startsWith(_scopeIdPrefix)) {
+ final scopeId = id.substring(_scopeIdPrefix.length);
+ if (n == 3 && method == 'GET') {
+ return _json(await _scopeCollection(await _boGet('/smart-scopes/$scopeId') as Map<String, dynamic>));
+ }
+ return _status(403, 'Smart Scopes are read-only');
+ }
if (n == 3) {
switch (method) {
case 'GET':
@@ -1995,6 +2176,45 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
return BookOrbitMediaProxy.instance.urlFor('/api/v1/books/$itemId/$kind?medium=$slot$t');
}
+ @override
+ Future<List<Map<String, dynamic>>?> ebookBookmarks(String itemId) async {
+ try {
+ final list = await _boGet('/books/$itemId/bookmarks') as List<dynamic>;
+ return [
+ for (final b in list.whereType<Map<String, dynamic>>())
+ if (b['cfi'] is String && (b['cfi'] as String).isNotEmpty)
+ {'id': '${b['id']}', 'cfi': b['cfi'], 'title': b['title'], 'note': b['note']},
+ ];
+ } catch (e) {
+ debugPrint('[BookOrbit] ebook bookmarks for $itemId: $e');
+ return null;
+ }
+ }
+
+ @override
+ Future<String?> addEbookBookmark(String itemId, {required String cfi, required String title}) async {
+ try {
+ final created = await _boPost('/books/$itemId/bookmarks', {'cfi': cfi, 'title': title}) as Map<String, dynamic>;
+ return created['id'] == null ? null : '${created['id']}';
+ } catch (e) {
+ debugPrint('[BookOrbit] add ebook bookmark for $itemId: $e');
+ return null;
+ }
+ }
+
+ @override
+ Future<bool> deleteEbookBookmark(String itemId, String bookmarkId) async {
+ try {
+ await _boDelete('/books/$itemId/bookmarks/$bookmarkId');
+ return true;
+ } on _BoHttpError catch (e) {
+ return e.status == 404;
+ } catch (e) {
+ debugPrint('[BookOrbit] delete ebook bookmark $bookmarkId: $e');
+ return false;
+ }
+ }
+
@override
Future<int?> comicPageCount(String fileId) async {
try {
diff --git a/lib/services/bookorbit_mapper.dart b/lib/services/bookorbit_mapper.dart
index 2ba66082..6af92096 100644
--- a/lib/services/bookorbit_mapper.dart
+++ b/lib/services/bookorbit_mapper.dart
@@ -730,6 +730,7 @@ class BookOrbitMapper {
'progress': finished ? 1.0 : (pct / 100.0).clamp(0.0, 1.0),
'currentTime': current,
'isFinished': finished,
+ 'skimmed': readStatus?['status'] == 'skimmed',
'hideFromContinueListening': false,
'ebookLocation': ebookLocation,
'ebookProgress': ebookPercent == null ? null : (ebookPercent / 100.0).clamp(0.0, 1.0),
@@ -758,6 +759,7 @@ class BookOrbitMapper {
'progress': finished ? 1.0 : (pct / 100.0).clamp(0.0, 1.0),
'currentTime': 0,
'isFinished': finished,
+ 'skimmed': readStatus?['status'] == 'skimmed',
'hideFromContinueListening': false,
'lastUpdate': ms(readStatus?['updatedAt']) ?? 0,
'startedAt': ms(readStatus?['startedAt']),
diff --git a/lib/services/ebook_annotation_service.dart b/lib/services/ebook_annotation_service.dart
index 9b11fe09..cf97a2ea 100644
--- a/lib/services/ebook_annotation_service.dart
+++ b/lib/services/ebook_annotation_service.dart
@@ -31,6 +31,9 @@ class EbookAnnotation {
/// reopening the book.
final String? chapter;
final DateTime createdAt;
+ /// The bookmark's id on the server, for the readers that also keep it
+ /// there (a picture EPUB on BookOrbit). Null when it lives only here.
+ String? serverId;
EbookAnnotation({
required this.id,
@@ -40,6 +43,7 @@ class EbookAnnotation {
this.color,
this.note,
this.chapter,
+ this.serverId,
DateTime? createdAt,
}) : createdAt = createdAt ?? DateTime.now();
@@ -51,6 +55,7 @@ class EbookAnnotation {
if (color != null) 'color': color!.name,
if (note != null && note!.isNotEmpty) 'note': note,
if (chapter != null && chapter!.isNotEmpty) 'ch': chapter,
+ if (serverId != null) 'sid': serverId,
'ts': createdAt.millisecondsSinceEpoch,
};
@@ -65,6 +70,7 @@ class EbookAnnotation {
: null,
note: json['note'] as String?,
chapter: json['ch'] as String?,
+ serverId: json['sid'] as String?,
createdAt: DateTime.fromMillisecondsSinceEpoch(json['ts'] as int),
);
}
@@ -189,6 +195,7 @@ class EbookAnnotationService {
required String cfi,
String? note,
String? chapter,
+ String? serverId,
}) async {
final annotation = EbookAnnotation(
id: _newId(),
@@ -196,6 +203,7 @@ class EbookAnnotationService {
cfi: cfi,
note: note,
chapter: chapter,
+ serverId: serverId,
);
final annotations = await getAnnotations(itemId);
annotations.insert(0, annotation);
@@ -229,6 +237,18 @@ class EbookAnnotationService {
await _save(itemId, annotations);
}
+ Future<void> setServerId({
+ required String itemId,
+ required String annotationId,
+ required String serverId,
+ }) async {
+ final annotations = await getAnnotations(itemId);
+ final idx = annotations.indexWhere((a) => a.id == annotationId);
+ if (idx == -1) return;
+ annotations[idx].serverId = serverId;
+ await _save(itemId, annotations);
+ }
+
/// Delete an annotation.
Future<void> delete({
required String itemId,
diff --git a/lib/services/image_epub.dart b/lib/services/image_epub.dart
new file mode 100644
index 00000000..01a6025b
--- /dev/null
+++ b/lib/services/image_epub.dart
@@ -0,0 +1,256 @@
+import 'dart:convert';
+import 'dart:io';
+
+import 'package:archive/archive_io.dart';
+import 'package:flutter/foundation.dart' show compute, debugPrint;
+
+/// EPUBs whose pages are pictures (scanned or comic-style books) carry no
+/// text for the EPUB reader to lay out or index, so they read better in the
+/// comic reader. This finds their page images in reading order.
+
+class ImageEpubPage {
+ /// The picture's path inside the zip.
+ final String entry;
+
+ /// The picture's EPUB position, so the page can be saved where any EPUB
+ /// reader finds it.
+ final String cfi;
+ const ImageEpubPage(this.entry, this.cfi);
+}
+
+final _attr = RegExp(r'''([\w:-]+)\s*=\s*("([^"]*)"|'([^']*)')''');
+final _itemTag = RegExp(r'<(?:\w+:)?item\b[^>]*>', caseSensitive: false);
+final _itemrefTag = RegExp(r'<(?:\w+:)?itemref\b[^>]*>', caseSensitive: false);
+final _rootfileTag = RegExp(r'<(?:\w+:)?rootfile\b[^>]*>', caseSensitive: false);
+final _markup = RegExp(
+ r'''<!--.*?-->|<!\[CDATA\[.*?\]\]>|<[!?][^>]*>|<(/?)([\w:.-]+)((?:[^>"']|"[^"]*"|'[^']*')*?)(/?)>''',
+ dotAll: true);
+final _head = RegExp(r'<head\b.*?</head>', caseSensitive: false, dotAll: true);
+final _tags = RegExp(r'<[^>]*>');
+final _entities = RegExp(r'&#?\w+;');
+final _space = RegExp(r'\s+');
+const _voidTags = {'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr'};
+
+Map<String, String> _attrs(String tag) => {
+ for (final m in _attr.allMatches(tag)) m.group(1)!.toLowerCase(): m.group(3) ?? m.group(4) ?? '',
+ };
+
+String _dir(String path) {
+ final i = path.lastIndexOf('/');
+ return i < 0 ? '' : path.substring(0, i + 1);
+}
+
+/// [href] relative to [base]'s folder, as a path inside the zip.
+String _resolve(String base, String href) {
+ final clean = Uri.decodeFull(href.split('#').first.split('?').first);
+ final parts = <String>[];
+ for (final p in '${_dir(base)}$clean'.split('/')) {
+ if (p.isEmpty || p == '.') continue;
+ if (p == '..') {
+ if (parts.isNotEmpty) parts.removeLast();
+ } else {
+ parts.add(p);
+ }
+ }
+ return parts.join('/');
+}
+
+String? _text(Archive archive, String name) {
+ final f = archive.findFile(name);
+ if (f == null) return null;
+ return utf8.decode(f.content as List<int>, allowMalformed: true);
+}
+
+/// Every picture in an XHTML page, in document order, with the EPUB path
+/// steps to it from the root element.
+List<({String src, List<int> steps})> _pictures(String doc) {
+ final out = <({String src, List<int> steps})>[];
+ final counts = <int>[0];
+ final path = <int>[];
+ for (final m in _markup.allMatches(doc)) {
+ final name = m.group(2);
+ if (name == null) continue;
+ if (m.group(1) == '/') {
+ if (path.isNotEmpty) {
+ path.removeLast();
+ counts.removeLast();
+ }
+ continue;
+ }
+ counts[counts.length - 1]++;
+ final step = counts.last * 2;
+ final local = name.substring(name.indexOf(':') + 1).toLowerCase();
+ if (local == 'img' || local == 'image') {
+ final a = _attrs(m.group(3) ?? '');
+ final src = a['src'] ?? a['xlink:href'] ?? a['href'];
+ if (src != null && src.isNotEmpty) out.add((src: src, steps: [...path, step]));
+ }
+ if (m.group(4) != '/' && !_voidTags.contains(local)) {
+ path.add(step);
+ counts.add(0);
+ }
+ }
+ return out;
+}
+
+/// The page images in reading order when the book is pictures with next to
+/// no text, one per page or many on one long page; null for an ordinary EPUB.
+///
+/// [why], when given, gets a line saying what decided it, for the log.
+List<ImageEpubPage>? imageEpubPages(Archive archive, {void Function(String)? why}) {
+ List<ImageEpubPage>? no(String reason) {
+ why?.call(reason);
+ return null;
+ }
+
+ final container = _text(archive, 'META-INF/container.xml');
+ if (container == null) return no('no META-INF/container.xml');
+ final rootTag = _rootfileTag.firstMatch(container)?.group(0);
+ final opfPath = rootTag == null ? null : _attrs(rootTag)['full-path'];
+ if (opfPath == null || opfPath.isEmpty) return no('no package file named');
+ final opf = _text(archive, opfPath);
+ if (opf == null) return no('package file $opfPath missing');
+
+ final hrefById = <String, String>{};
+ for (final m in _itemTag.allMatches(opf)) {
+ final a = _attrs(m.group(0)!);
+ final id = a['id'], href = a['href'];
+ if (id != null && href != null) hrefById[id] = _resolve(opfPath, href);
+ }
+ final spine = [
+ for (final m in _itemrefTag.allMatches(opf)) _attrs(m.group(0)!)['idref'] ?? '',
+ ];
+ if (spine.isEmpty) return no('empty spine');
+
+ // A cover, title page or copyright notice is allowed, a book of text isn't.
+ final allowedTextPages = spine.length ~/ 10 < 2 ? 2 : spine.length ~/ 10;
+ final pages = <ImageEpubPage>[];
+ var textPages = 0;
+ for (var i = 0; i < spine.length; i++) {
+ final docPath = hrefById[spine[i]];
+ final doc = docPath == null ? null : _text(archive, docPath);
+ if (doc == null) continue;
+ final words = doc
+ .replaceAll(_head, ' ')
+ .replaceAll(_tags, ' ')
+ .replaceAll(_entities, ' ')
+ .replaceAll(_space, ' ')
+ .trim();
+ final pictures = _pictures(doc);
+ // A page number or a caption per picture is fine; prose isn't.
+ if (pictures.isNotEmpty && words.length <= 40 * pictures.length) {
+ for (final p in pictures) {
+ final entry = _resolve(docPath!, p.src);
+ if (archive.findFile(entry) == null || p.steps.length < 2) continue;
+ pages.add(ImageEpubPage(entry, 'epubcfi(/6/${(i + 1) * 2}!/${p.steps.skip(1).join('/')})'));
+ }
+ } else if (words.isNotEmpty) {
+ if (++textPages > allowedTextPages) {
+ return no('text on more than $allowedTextPages of ${spine.length} spine items');
+ }
+ }
+ }
+ if (pages.length < 3) return no('only ${pages.length} pictures in ${spine.length} spine items');
+ why?.call('${pages.length} pictures in ${spine.length} spine items');
+ return pages;
+}
+
+/// The whole-number steps of an EPUB position, in a form that orders
+/// positions: character offsets, ranges and id assertions are dropped.
+List<int>? cfiSteps(String? cfi) {
+ final m = RegExp(r'^epubcfi\((.*)\)$').firstMatch(cfi?.trim() ?? '');
+ if (m == null) return null;
+ var body = m.group(1)!;
+ final comma = body.indexOf(',');
+ if (comma >= 0) body = body.substring(0, comma);
+ body = body.replaceAll(RegExp(r'\[[^\]]*\]'), '').replaceAll(RegExp(r':\d+.*$'), '');
+ final steps = [for (final s in RegExp(r'/(\d+)').allMatches(body)) int.parse(s.group(1)!)];
+ return steps.isEmpty ? null : steps;
+}
+
+int _compareSteps(List<int> a, List<int> b) {
+ for (var i = 0; i < a.length && i < b.length; i++) {
+ if (a[i] != b[i]) return a[i].compareTo(b[i]);
+ }
+ return a.length.compareTo(b.length);
+}
+
+/// The index of the page a saved EPUB position falls on: the last page that
+/// starts at or before it. Null when [cfi] isn't an EPUB position.
+int? pageIndexForCfi(List<String> pageCfis, String? cfi) {
+ final target = cfiSteps(cfi);
+ if (target == null) return null;
+ var index = 0;
+ for (var i = 0; i < pageCfis.length; i++) {
+ final steps = cfiSteps(pageCfis[i]);
+ if (steps == null) continue;
+ if (_compareSteps(steps, target) > 0) break;
+ index = i;
+ }
+ return index;
+}
+
+/// Pages in an image-only EPUB (0 for an ordinary one) and what decided it.
+/// Runs in an isolate.
+List<Object> countImageEpubPages(String path) {
+ final input = InputFileStream(path);
+ try {
+ var reason = '';
+ final pages = imageEpubPages(ZipDecoder().decodeStream(input), why: (r) => reason = r);
+ return [pages?.length ?? 0, reason];
+ } catch (e) {
+ return [0, 'unreadable: $e'];
+ } finally {
+ input.closeSync();
+ }
+}
+
+/// Writes an image-only EPUB's pages into [args][1] as 00000.jpg, ... with
+/// their EPUB positions in `.cfis`, one per line. Runs in an isolate. Returns the paths.
+List<String> extractImageEpubPages(List<String> args) {
+ final src = args[0], dest = args[1];
+ final input = InputFileStream(src);
+ try {
+ final archive = ZipDecoder().decodeStream(input);
+ final pages = imageEpubPages(archive) ?? const <ImageEpubPage>[];
+ Directory(dest).createSync(recursive: true);
+ final paths = <String>[];
+ for (var i = 0; i < pages.length; i++) {
+ final name = pages[i].entry;
+ final ext = name.substring(name.lastIndexOf('.') + 1).toLowerCase();
+ final path = '$dest${Platform.pathSeparator}${i.toString().padLeft(5, '0')}.$ext';
+ final out = OutputFileStream(path);
+ archive.findFile(name)!.writeContent(out);
+ out.closeSync();
+ paths.add(path);
+ }
+ File('$dest${Platform.pathSeparator}.cfis').writeAsStringSync(pages.map((p) => p.cfi).join('\n'));
+ File('$dest${Platform.pathSeparator}.done').writeAsStringSync('${paths.length}');
+ return paths;
+ } finally {
+ input.closeSync();
+ }
+}
+
+/// Page count when [file] is an image-only EPUB, 0 otherwise. The answer is
+/// kept beside the file, so each version of a book is only looked at once.
+Future<int> imageEpubPageCount(File file) async {
+ final marker = File('${file.path}.imagepages');
+ final key = 'v$imageEpubScanVersion:${await file.length()}';
+ try {
+ final saved = marker.existsSync() ? marker.readAsStringSync() : '';
+ if (saved.startsWith('$key:')) return int.tryParse(saved.substring(key.length + 1)) ?? 0;
+ } catch (_) {}
+ final result = await compute(countImageEpubPages, file.path);
+ final count = result[0] as int;
+ debugPrint('[ImageEpub] ${file.uri.pathSegments.last}: '
+ '${count > 0 ? 'picture book' : 'regular EPUB'} - ${result[1]}');
+ try {
+ marker.writeAsStringSync('$key:$count');
+ } catch (_) {}
+ return count;
+}
+
+/// Bumped whenever the picture-book check changes, so a book an older check
+/// turned down gets looked at again.
+const imageEpubScanVersion = 2;
diff --git a/lib/services/read_along_script.dart b/lib/services/read_along_script.dart
index 37046255..9905633a 100644
--- a/lib/services/read_along_script.dart
+++ b/lib/services/read_along_script.dart
@@ -241,11 +241,16 @@ const String _body = r'''
/// flow lays pages out sideways, scrolled flow downwards; whichever axis
/// the page actually overflows on decides.
RA.visibleEl = function(el) {
+ try {
+ if (!el) return { v: true, dir: 0 };
+ return RA.visibleRect(el.ownerDocument, el.getBoundingClientRect());
+ } catch (e) { return { v: true, dir: 0 }; }
+ };
+
+ RA.visibleRect = function(doc, rect) {
var out = { v: true, dir: 0 };
try {
- if (!el) return out;
- var doc = el.ownerDocument, win = doc.defaultView;
- var rect = el.getBoundingClientRect();
+ var win = doc.defaultView;
if (!rect || (rect.width === 0 && rect.height === 0)) return out;
// The section's iframe holds every page of the section side by side
// (or the whole scroll), so a rect inside it says nothing on its own.
@@ -303,6 +308,7 @@ const String _body = r'''
var vis = RA.visibleEl(group[0]);
out.visible = vis.v;
out.dir = vis.dir;
+ out.seen = true;
out.x = vis.x; out.w = vis.w;
if (!vis.v) out.cfi = RA.cfiFor(st.contents, group[0], group[group.length - 1]);
}
@@ -352,6 +358,46 @@ const String _body = r'''
}
};
+ /// A CFI for the sentence lit now, when its section is still loaded.
+ RA.curCfi = function() {
+ try {
+ var st = RA.cur;
+ if (!st || !st.spans.length) return '';
+ var first = null, last = null;
+ for (var a = 0; a < st.spans.length; a++) {
+ var g = st.spans[a];
+ if (!g || !g.length) continue;
+ if (!first) first = g[0];
+ last = g[g.length - 1];
+ }
+ if (!first || !first.isConnected) return '';
+ return RA.cfiFor(st.contents, first, last);
+ } catch (e) { return ''; }
+ };
+
+ /// Whether the last text of the lit sentence's section is on screen or
+ /// already behind it, so the next page belongs to the next section.
+ RA.atSectionEnd = function() {
+ try {
+ if (!RA.cur || !RA.cur.doc || !RA.cur.doc.body) return true;
+ var doc = RA.cur.doc;
+ var tw = doc.createTreeWalker(doc.body, NodeFilter.SHOW_TEXT, null, false);
+ var last = null, n;
+ while ((n = tw.nextNode())) {
+ var pe = n.parentElement, tag = pe && pe.tagName ? pe.tagName.toLowerCase() : '';
+ if (tag === 'script' || tag === 'style') continue;
+ if (/\S/.test(n.textContent)) last = n;
+ }
+ if (!last) return true;
+ var t = last.textContent, e = t.length;
+ while (e > 0 && /\s/.test(t[e - 1])) e--;
+ var r = doc.createRange();
+ r.setStart(last, Math.max(0, e - 1));
+ r.setEnd(last, e);
+ return RA.visibleRect(doc, r.getBoundingClientRect()).dir <= 0;
+ } catch (e2) { return true; }
+ };
+
/// Find [needle] in the rendered pages, snap it out to sentence bounds, and
/// paint it. Returns whether it was found, whether it sits on the visible
/// page (and which way it lies otherwise), and how many words the matched
@@ -386,8 +432,30 @@ const String _body = r'''
}
}
if (pos === -1) pos = hay.indexOf(q);
- if (pos === -1) continue;
- var rs = idx[pos], reEnd = idx[pos + q.length - 1] + 1;
+ var rs = -1, reEnd = -1;
+ if (pos !== -1) {
+ rs = idx[pos];
+ reEnd = idx[pos + q.length - 1] + 1;
+ } else {
+ // Book text can carry a space where a tag sat ("Kermit .”" for
+ // <i>Kermit</i>.”), so look again with the spaces taken out.
+ var sq = q.replace(/ /g, '');
+ if (sq.length < 8) continue;
+ var sh = [], sIdx = [];
+ for (var z = 0; z < hay.length; z++) {
+ if (hay[z] !== ' ') { sh.push(hay[z]); sIdx.push(idx[z]); }
+ }
+ var sHay = sh.join(''), spos = -1;
+ if (typeof minOffset === 'number' && minOffset >= 0) {
+ for (var y = 0; y < sIdx.length; y++) {
+ if (sIdx[y] >= minOffset) { spos = sHay.indexOf(sq, y); break; }
+ }
+ }
+ if (spos === -1) spos = sHay.indexOf(sq);
+ if (spos === -1) continue;
+ rs = sIdx[spos];
+ reEnd = sIdx[spos + sq.length - 1] + 1;
+ }
// Snap the span to full sentence boundaries: Whisper segments cut
// wherever they like, and mid-sentence spans read as glitches. A whole
// sentence is also stable - consecutive segments inside one sentence
@@ -463,6 +531,7 @@ const String _body = r'''
var vis = RA.visibleEl(flat[0]);
out.visible = vis.v;
out.dir = vis.dir;
+ out.seen = true;
out.cfi = vis.v ? '' : RA.cfiFor(c, flat[0], flat[flat.length - 1]);
}
} catch (e1) {}
diff --git a/lib/services/smart_scope_rules.dart b/lib/services/smart_scope_rules.dart
new file mode 100644
index 00000000..e7c816c4
--- /dev/null
+++ b/lib/services/smart_scope_rules.dart
@@ -0,0 +1,315 @@
+// The rule tree behind a BookOrbit Smart Scope, kept to what the server
+// accepts (packages/types/src/query.ts and its group rule validator):
+// a group joins rules and groups with AND or OR, groups nest at most four
+// levels below the top, every group needs at least one rule, and list
+// values hold 1 to 20 items.
+
+/// How a rule's value is entered.
+enum ScopeInput {
+ /// The operator needs no value (is empty, is finished, ...).
+ none,
+ text,
+ /// One name, with suggestions from the server.
+ suggest,
+ /// Several names, with suggestions from the server.
+ suggestList,
+ /// Several values from a fixed set (formats, statuses, library names).
+ options,
+ number,
+ /// A file size typed in MB and sent in bytes.
+ sizeMb,
+ /// A calendar date, sent as YYYY-MM-DD.
+ date,
+ /// A number of days, typed with a days / weeks / months unit.
+ days,
+ /// A series number, sent as text ("3", "1.5-2").
+ seriesIndex,
+}
+
+const scopeValuelessOperators = {
+ 'isEmpty', 'isNotEmpty', 'isMissing', 'isPresent', 'isUnread', 'isInProgress',
+ 'isFinished', 'isLocked', 'isUnlocked', 'isUpNext', 'isTrue', 'isFalse',
+};
+
+const _textOps = ['contains', 'notContains', 'startsWith', 'endsWith', 'eq', 'notEq', 'isEmpty', 'isNotEmpty'];
+
+/// Operators per built-in field, in the order the web lists them.
+const scopeFieldOperators = <String, List<String>>{
+ 'title': _textOps,
+ 'author': ['includesAny', 'includesAll', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'series': ['contains', 'notContains', 'eq', 'notEq', 'includesAny', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'seriesIndex': ['eq', 'notEq', 'gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'genre': ['includesAny', 'includesAll', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'tag': ['includesAny', 'includesAll', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'readStatus': ['includesAny', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'readProgress': ['isUnread', 'isInProgress', 'isFinished'],
+ 'rating': ['eq', 'gt', 'gte', 'lt', 'lte', 'isEmpty', 'isNotEmpty'],
+ 'format': ['includesAny', 'excludesAll'],
+ 'library': ['includesAny', 'excludesAll'],
+ 'collection': ['includesAny', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'publisher': ['contains', 'notContains', 'eq', 'notEq', 'includesAny', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'language': ['eq', 'notEq', 'includesAny', 'excludesAll', 'isEmpty', 'isNotEmpty'],
+ 'publishedDate': ['before', 'after', 'between', 'withinLast', 'isEmpty', 'isNotEmpty'],
+ 'publishedYear': ['eq', 'notEq', 'gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'addedAt': ['before', 'after', 'between', 'withinLast'],
+ 'startedAt': ['before', 'after', 'between', 'withinLast', 'isEmpty', 'isNotEmpty'],
+ 'finishedAt': ['before', 'after', 'between', 'withinLast', 'isEmpty', 'isNotEmpty'],
+ 'pageCount': ['gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'fileSize': ['eq', 'notEq', 'gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'communityRating': ['eq', 'notEq', 'gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'communityRatingCount': ['eq', 'notEq', 'gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'metadataScore': ['gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'isbn': ['isEmpty', 'isNotEmpty', 'eq'],
+ 'description': ['isEmpty', 'isNotEmpty'],
+ 'cover': ['isMissing', 'isPresent'],
+ 'audioCover': ['isMissing', 'isPresent'],
+ 'fileAvailability': ['isMissing', 'isPresent'],
+ 'lockStatus': ['isLocked', 'isUnlocked'],
+ 'seriesStatus': ['isUpNext'],
+};
+
+/// Operators for a custom metadata field of [type] (text, url, number,
+/// date, boolean).
+List<String> scopeCustomOperators(String type) => switch (type) {
+ 'number' => const ['eq', 'notEq', 'gt', 'gte', 'lt', 'lte', 'between', 'isEmpty', 'isNotEmpty'],
+ 'date' => const ['before', 'after', 'between', 'withinLast', 'isEmpty', 'isNotEmpty'],
+ 'boolean' => const ['isTrue', 'isFalse', 'isEmpty', 'isNotEmpty'],
+ _ => _textOps,
+ };
+
+/// Where a field's name suggestions come from: GET /metadata/<source>.
+const scopeSuggestSource = <String, String>{
+ 'author': 'authors',
+ 'genre': 'genres',
+ 'tag': 'tags',
+ 'series': 'series',
+ 'publisher': 'publishers',
+ 'language': 'languages',
+ 'collection': 'collections',
+};
+
+const scopeBookFormats = [
+ 'epub', 'kepub', 'pdf', 'cbz', 'cbr', 'cb7', 'mobi', 'azw3', 'azw', 'fb2',
+ 'm4b', 'mp3', 'm4a', 'opus', 'ogg', 'flac',
+];
+
+const scopeRatingProviders = [
+ 'any', 'hardcover', 'goodreads', 'google', 'openLibrary', 'itunes', 'ranobedb', 'amazon', 'audible',
+];
+
+/// Sort fields a scope can order by, as the web offers them.
+const scopeSortFields = [
+ 'author', 'title', 'series', 'seriesIndex', 'addedAt', 'updatedAt', 'publishedDate',
+ 'publishedYear', 'pageCount', 'rating', 'publisher', 'fileSize', 'readProgress',
+ 'readStatus', 'format', 'lastReadAt', 'startedAt', 'finishedAt', 'random', 'language',
+ 'metadataScore',
+];
+
+/// Groups can sit this many levels below the top group.
+const scopeMaxNesting = 4;
+
+/// The value types of the user's custom metadata fields, by rule field key
+/// (`custom:<id>`).
+typedef ScopeCustomTypes = Map<String, String>;
+
+bool scopeIsCustom(String field) => field.startsWith('custom:');
+
+List<String> scopeOperatorsFor(String field, ScopeCustomTypes custom) {
+ if (scopeIsCustom(field)) {
+ final type = custom[field];
+ return type == null ? const [] : scopeCustomOperators(type);
+ }
+ return scopeFieldOperators[field] ?? const [];
+}
+
+ScopeInput scopeInputFor(String field, String op, ScopeCustomTypes custom) {
+ if (scopeValuelessOperators.contains(op)) return ScopeInput.none;
+ if (scopeIsCustom(field)) {
+ return switch (custom[field]) {
+ 'number' => ScopeInput.number,
+ 'date' => op == 'withinLast' ? ScopeInput.days : ScopeInput.date,
+ 'boolean' => ScopeInput.none,
+ _ => ScopeInput.text,
+ };
+ }
+ final list = op == 'includesAny' || op == 'includesAll' || op == 'excludesAll';
+ switch (field) {
+ case 'title':
+ case 'isbn':
+ return ScopeInput.text;
+ case 'publisher':
+ case 'language':
+ case 'series':
+ return list ? ScopeInput.suggestList : ScopeInput.suggest;
+ case 'author':
+ case 'genre':
+ case 'tag':
+ case 'collection':
+ return ScopeInput.suggestList;
+ case 'library':
+ case 'format':
+ case 'readStatus':
+ return ScopeInput.options;
+ case 'seriesIndex':
+ return ScopeInput.seriesIndex;
+ case 'fileSize':
+ return ScopeInput.sizeMb;
+ case 'publishedDate':
+ case 'addedAt':
+ case 'startedAt':
+ case 'finishedAt':
+ return op == 'withinLast' ? ScopeInput.days : ScopeInput.date;
+ default:
+ return ScopeInput.number;
+ }
+}
+
+bool scopeHasProvider(String field) => field == 'communityRating' || field == 'communityRatingCount';
+
+sealed class ScopeNode {
+ Map<String, dynamic>? toJson(ScopeCustomTypes custom);
+}
+
+class ScopeRule extends ScopeNode {
+ String field;
+ String op;
+ Object? value;
+ Object? valueTo;
+ String? provider;
+
+ /// A rule this version can't edit (an unknown field or operator). It is
+ /// sent back exactly as it came.
+ final Map<String, dynamic>? raw;
+
+ ScopeRule({required this.field, required this.op, this.value, this.valueTo, this.provider})
+ : raw = null;
+
+ ScopeRule._raw(Map<String, dynamic> json)
+ : raw = json,
+ field = '${json['field']}',
+ op = '${json['operator']}';
+
+ bool get isUnsupported => raw != null;
+
+ /// A blank rule on [field], with its first operator.
+ factory ScopeRule.blank(String field, ScopeCustomTypes custom) {
+ final ops = scopeOperatorsFor(field, custom);
+ return ScopeRule(
+ field: field,
+ op: ops.isEmpty ? 'eq' : ops.first,
+ provider: scopeHasProvider(field) ? 'any' : null,
+ );
+ }
+
+ bool get needsValueTo => op == 'between';
+
+ bool isComplete(ScopeCustomTypes custom) {
+ if (raw != null) return true;
+ if (!scopeOperatorsFor(field, custom).contains(op)) return false;
+ final input = scopeInputFor(field, op, custom);
+ if (input == ScopeInput.none) return true;
+ if (!_filled(value)) return false;
+ return !needsValueTo || _filled(valueTo);
+ }
+
+ static bool _filled(Object? v) {
+ if (v == null) return false;
+ if (v is String) return v.trim().isNotEmpty;
+ if (v is num) return v.isFinite;
+ if (v is List) return v.isNotEmpty && v.length <= 20;
+ return false;
+ }
+
+ @override
+ Map<String, dynamic>? toJson(ScopeCustomTypes custom) {
+ final r = raw;
+ if (r != null) return r;
+ if (!isComplete(custom)) return null;
+ final input = scopeInputFor(field, op, custom);
+ Object? clean(Object? v) => v is String ? v.trim() : v;
+ return {
+ 'type': 'rule',
+ 'field': field,
+ 'operator': op,
+ if (input != ScopeInput.none) 'value': clean(value),
+ if (input != ScopeInput.none && needsValueTo) 'valueTo': clean(valueTo),
+ if (scopeHasProvider(field)) 'provider': provider ?? 'any',
+ };
+ }
+}
+
+class ScopeGroup extends ScopeNode {
+ String join;
+ final List<ScopeNode> children;
+
+ ScopeGroup({this.join = 'AND', List<ScopeNode>? children}) : children = children ?? [];
+
+ /// Null when nothing in the group is complete: the server refuses empty
+ /// groups, so they and half-filled rules are left out.
+ @override
+ Map<String, dynamic>? toJson(ScopeCustomTypes custom) {
+ final rules = [
+ for (final c in children) c.toJson(custom),
+ ].whereType<Map<String, dynamic>>().toList();
+ if (rules.isEmpty) return null;
+ return {'type': 'group', 'join': join == 'OR' ? 'OR' : 'AND', 'rules': rules};
+ }
+
+ /// How many groups deep the deepest group under this one sits.
+ int get depth {
+ var deepest = 0;
+ for (final c in children) {
+ if (c is ScopeGroup) {
+ final d = c.depth + 1;
+ if (d > deepest) deepest = d;
+ }
+ }
+ return deepest;
+ }
+
+ static ScopeGroup fromJson(Object? json, ScopeCustomTypes custom) {
+ if (json is! Map) return ScopeGroup();
+ final group = ScopeGroup(join: json['join'] == 'OR' ? 'OR' : 'AND');
+ for (final r in (json['rules'] as List<dynamic>? ?? const [])) {
+ if (r is! Map) continue;
+ final m = Map<String, dynamic>.from(r);
+ if (m['type'] == 'group') {
+ group.children.add(fromJson(m, custom));
+ continue;
+ }
+ final field = '${m['field']}';
+ final op = '${m['operator']}';
+ if (!scopeOperatorsFor(field, custom).contains(op)) {
+ group.children.add(ScopeRule._raw(m));
+ continue;
+ }
+ group.children.add(ScopeRule(
+ field: field,
+ op: op,
+ value: _copy(m['value']),
+ valueTo: _copy(m['valueTo']),
+ provider: m['provider'] as String? ?? (scopeHasProvider(field) ? 'any' : null),
+ ));
+ }
+ return group;
+ }
+
+ static Object? _copy(Object? v) => v is List ? List<Object?>.from(v) : v;
+}
+
+/// Starting points the web offers for an empty scope.
+ScopeGroup scopeTemplate(String id) => switch (id) {
+ 'hasSeries' => ScopeGroup(children: [ScopeRule(field: 'series', op: 'isNotEmpty')]),
+ 'recent' => ScopeGroup(children: [ScopeRule(field: 'addedAt', op: 'withinLast', value: 30)]),
+ 'pdf' => ScopeGroup(children: [ScopeRule(field: 'format', op: 'includesAny', value: ['pdf'])]),
+ 'noGenres' => ScopeGroup(children: [ScopeRule(field: 'genre', op: 'isEmpty')]),
+ 'epub' => ScopeGroup(children: [ScopeRule(field: 'format', op: 'includesAny', value: ['epub'])]),
+ _ => ScopeGroup(children: [ScopeRule(field: 'title', op: 'contains')]),
+ };
+
+const scopeTemplateIds = ['hasSeries', 'recent', 'pdf', 'noGenres', 'epub'];
+
+/// A file size in MB as the bytes the server compares against.
+int scopeMbToBytes(num mb) => (mb * 1024 * 1024).round();
+
+double scopeBytesToMb(num bytes) => bytes / (1024 * 1024);
diff --git a/lib/services/upcoming_releases_service.dart b/lib/services/upcoming_releases_service.dart
index ee23510f..04fee88a 100644
--- a/lib/services/upcoming_releases_service.dart
+++ b/lib/services/upcoming_releases_service.dart
@@ -5,7 +5,9 @@ import 'package:shared_preferences/shared_preferences.dart';
import 'api_service.dart';
import 'player_settings.dart';
import 'scoped_prefs.dart';
+import 'server_backend.dart';
import '../l10n/app_localizations.dart';
+import '../utils/series_number_match.dart';
import '../main.dart' show rootNavigatorKey;
/// Result for a single series that has upcoming or recently released books.
@@ -439,6 +441,9 @@ class UpcomingReleasesService extends ChangeNotifier {
static const _cacheTimeKey = 'upcomingReleasesCacheTime';
static const _cacheRegionKey = 'upcomingReleasesCacheRegion';
static const _scanStateKey = 'upcomingReleasesScanState';
+ // Bumped when series ASIN resolution changes enough that parked series
+ // deserve another try (2: BookOrbit book records).
+ static const _resolverVersion = 2;
static const _missingCacheKey = 'upcomingReleasesMissingCache';
static const _missingCacheTimeKey = 'upcomingReleasesMissingCacheTime';
static const _missingCacheRegionKey = 'upcomingReleasesMissingCacheRegion';
@@ -494,9 +499,15 @@ class UpcomingReleasesService extends ChangeNotifier {
if ((data['region'] as String? ?? '') != _region) return;
_scanStateLibraryId = data['libraryId'] as String? ?? '';
final series = data['series'] as Map<String, dynamic>? ?? {};
+ // Before BookOrbit book records were read for ASINs, every BookOrbit
+ // series failed to match and got parked. Forget those once so the next
+ // scan tries them again.
+ final dropUnmatched = ServerBackend.active.isBookOrbit &&
+ ((data['resolverVersion'] as num?)?.toInt() ?? 1) < _resolverVersion;
for (final e in series.entries) {
final entry = _SeriesScanEntry.fromJson(
Map<String, dynamic>.from(e.value as Map));
+ if (dropUnmatched && entry.asin.isEmpty) continue;
_scanState[e.key] = entry;
// Only seed resolved ASINs - unresolvable series get another
// resolution attempt once their recheck interval elapses.
@@ -518,6 +529,7 @@ class UpcomingReleasesService extends ChangeNotifier {
try {
final data = {
'region': _region,
+ 'resolverVersion': _resolverVersion,
'libraryId': _scanStateLibraryId,
'skipped': _persistedSkipped.map((s) => s.toJson()).toList(),
if (_lastReport != null) 'lastReport': _lastReport!.toJson(),
@@ -823,7 +835,7 @@ class UpcomingReleasesService extends ChangeNotifier {
if (cachedAsin != null) {
audibleAsin = cachedAsin;
} else {
- final (resolved, concluded) = await _resolveSeriesAsin(books, seriesName, gen);
+ final (resolved, concluded) = await _resolveSeriesAsin(api, books, seriesName, gen);
if (_generation != gen) return null;
audibleAsin = resolved;
_asinCache[seriesId] = audibleAsin ?? '';
@@ -852,16 +864,19 @@ class UpcomingReleasesService extends ChangeNotifier {
if (audibleAsin == null || audibleAsin.isEmpty) return null;
- // Collect owned title variants and ASINs from library books
+ // Collect owned title variants, ASINs and series numbers from library books
final ownedTitles = <String>{};
final ownedAsins = <String>{};
+ final ownedNumbers = SeriesNumberOwnership();
for (final b in books) {
if (b is! Map<String, dynamic>) continue;
final media = b['media'] as Map<String, dynamic>? ?? {};
final metadata = media['metadata'] as Map<String, dynamic>? ?? {};
- ownedTitles.addAll(_titleVariants(metadata['title'] as String? ?? ''));
+ final title = metadata['title'] as String? ?? '';
+ ownedTitles.addAll(_titleVariants(title));
final asin = metadata['asin'] as String? ?? '';
if (asin.isNotEmpty) ownedAsins.add(asin);
+ ownedNumbers.add(librarySeriesNumber(metadata, seriesId), title, asin);
}
// Get all books in the series from Audible
@@ -904,7 +919,8 @@ class UpcomingReleasesService extends ChangeNotifier {
.where((b) =>
!_ignoredAsins.contains(b['asin'] as String? ?? '') &&
!_isUpcoming(b) &&
- !_isOwnedBook(b, ownedTitles, ownedAsins))
+ !_isOwnedBook(b, ownedTitles, ownedAsins,
+ numbers: ownedNumbers, listing: allBooks))
.map((b) => {...b, if (_isNewBook(b)) '_new': true})
.toList();
entry.missingComplete = missing.isEmpty;
@@ -934,7 +950,10 @@ class UpcomingReleasesService extends ChangeNotifier {
for (final book in allBooks) {
if (_isRecentRelease(book) || _isNewSinceLastScan(book, prevNewest)) {
if (_ignoredAsins.contains(book['asin'] as String? ?? '')) continue;
- if (_isOwnedBook(book, ownedTitles, ownedAsins)) continue;
+ if (_isOwnedBook(book, ownedTitles, ownedAsins,
+ numbers: ownedNumbers, listing: allBooks)) {
+ continue;
+ }
recent.add({...book, '_owned': false, if (_isNewBook(book)) '_new': true});
}
}
@@ -1495,8 +1514,10 @@ class UpcomingReleasesService extends ChangeNotifier {
/// Audnexus answered (even with no series info) or there was nothing to
/// try, false when every attempt died on a network error - only a
/// concluded "no match" may be remembered as unresolvable.
- Future<(String?, bool)> _resolveSeriesAsin(List<dynamic> books, String seriesName, int gen) async {
+ Future<(String?, bool)> _resolveSeriesAsin(
+ ApiService api, List<dynamic> books, String seriesName, int gen) async {
int audnexusAttempts = 0;
+ int recordFetches = 0;
var concluded = true;
for (final book in books) {
if (_generation != gen) return (null, false);
@@ -1504,7 +1525,22 @@ class UpcomingReleasesService extends ChangeNotifier {
final media = book['media'] as Map<String, dynamic>? ?? {};
final metadata = media['metadata'] as Map<String, dynamic>? ?? {};
- final bookAsin = metadata['asin'] as String? ?? '';
+ var bookAsin = metadata['asin'] as String? ?? '';
+ // BookOrbit's series listings carry no ASIN, only the full book record
+ // does. A failed fetch leaves the series unconcluded so it isn't parked.
+ if (bookAsin.isEmpty && api.isBookOrbit && recordFetches < _maxAsinAttempts) {
+ recordFetches++;
+ final id = book['id']?.toString() ?? '';
+ final full = id.isEmpty ? null : await api.getLibraryItem(id);
+ if (_generation != gen) return (null, false);
+ if (full == null) {
+ concluded = false;
+ continue;
+ }
+ final fullMeta = (full['media'] as Map<String, dynamic>?)?['metadata'] as Map<String, dynamic>?;
+ bookAsin = fullMeta?['asin'] as String? ?? '';
+ if (bookAsin.isNotEmpty) metadata['asin'] = bookAsin;
+ }
if (bookAsin.isEmpty) continue;
if (audnexusAttempts >= _maxAsinAttempts) break;
audnexusAttempts++;
@@ -1559,18 +1595,7 @@ class UpcomingReleasesService extends ChangeNotifier {
return now.difference(date).inDays <= 30;
}
- static final _parenthetical = RegExp(r'\s*\([^)]*\)\s*');
- static final _nonAlphaNum = RegExp(r'[^a-z0-9 ]');
- static final _multiSpace = RegExp(r'\s+');
-
- String _normalizeTitle(String title) {
- return title
- .toLowerCase()
- .replaceAll(_parenthetical, ' ')
- .replaceAll(_nonAlphaNum, ' ')
- .replaceAll(_multiSpace, ' ')
- .trim();
- }
+ String _normalizeTitle(String title) => normalizeSeriesTitle(title);
/// First author only - both sides join multiple authors with ', '.
String _normalizeAuthor(String authors) => _normalizeTitle(authors.split(',').first);
@@ -1596,7 +1621,11 @@ class UpcomingReleasesService extends ChangeNotifier {
/// from the series' own books; the library-wide index catches books owned
/// outside that series bucket. Besides the plain title, the title+subtitle
/// concatenation is tried, in case the library baked the subtitle in.
- bool _isOwnedBook(Map<String, dynamic> book, Set<String> ownedTitles, Set<String> ownedAsins) {
+ /// Last, a series book can be owned by its number (see
+ /// [SeriesNumberOwnership]) when the series' books and its Audible
+ /// [listing] are given.
+ bool _isOwnedBook(Map<String, dynamic> book, Set<String> ownedTitles, Set<String> ownedAsins,
+ {SeriesNumberOwnership? numbers, List<Map<String, dynamic>>? listing}) {
final asin = book['asin'] as String? ?? '';
if (asin.isNotEmpty &&
(ownedAsins.contains(asin) || _libraryOwnedAsins.contains(asin))) {
@@ -1607,20 +1636,22 @@ class UpcomingReleasesService extends ChangeNotifier {
if (ownedAsins.contains(a) || _libraryOwnedAsins.contains(a)) return true;
}
final title = _normalizeTitle(book['title'] as String? ?? '');
- if (title.isEmpty) return false;
- final subtitle = book['subtitle'] as String? ?? '';
- final withSub =
- subtitle.isEmpty ? '' : _normalizeTitle('${book['title']} $subtitle');
- if (ownedTitles.contains(title)) return true;
- if (withSub.isNotEmpty && ownedTitles.contains(withSub)) return true;
- final author = _normalizeAuthor(book['authors'] as String? ?? '');
- if (author.isNotEmpty) {
- if (_libraryOwnedTitleAuthor.contains('$title|$author')) return true;
- if (withSub.isNotEmpty &&
- _libraryOwnedTitleAuthor.contains('$withSub|$author')) {
- return true;
+ if (title.isNotEmpty) {
+ final subtitle = book['subtitle'] as String? ?? '';
+ final withSub =
+ subtitle.isEmpty ? '' : _normalizeTitle('${book['title']} $subtitle');
+ if (ownedTitles.contains(title)) return true;
+ if (withSub.isNotEmpty && ownedTitles.contains(withSub)) return true;
+ final author = _normalizeAuthor(book['authors'] as String? ?? '');
+ if (author.isNotEmpty) {
+ if (_libraryOwnedTitleAuthor.contains('$title|$author')) return true;
+ if (withSub.isNotEmpty &&
+ _libraryOwnedTitleAuthor.contains('$withSub|$author')) {
+ return true;
+ }
}
}
+ if (numbers != null && listing != null) return numbers.owns(book, listing);
return false;
}
diff --git a/lib/utils/passage_match.dart b/lib/utils/passage_match.dart
index 9cbb9847..d9d5bd39 100644
--- a/lib/utils/passage_match.dart
+++ b/lib/utils/passage_match.dart
@@ -199,6 +199,12 @@ String _stripHtml(String html) {
.replaceAll(RegExp(r'<(script|style)[\s\S]*?</\1>', caseSensitive: false), ' ')
.replaceAll(RegExp(r'</(p|div|h[1-6]|li|blockquote)>', caseSensitive: false), '\n')
.replaceAll(RegExp(r'<br\s*/?>', caseSensitive: false), '\n')
+ // Inline tags add no space on the page: "<i>Kermit</i>." reads
+ // "Kermit.", and a space there kept read along from finding it.
+ .replaceAll(
+ RegExp(r'</?(a|abbr|b|bdi|bdo|cite|code|em|font|i|kbd|mark|q|s|samp|small|span|strong|sub|sup|u|var)\b[^>]*>',
+ caseSensitive: false),
+ '')
.replaceAll(RegExp(r'<[^>]+>'), ' ');
s = s
.replaceAll('&amp;', '&')
diff --git a/lib/utils/read_status.dart b/lib/utils/read_status.dart
new file mode 100644
index 00000000..0af8bf2c
--- /dev/null
+++ b/lib/utils/read_status.dart
@@ -0,0 +1,24 @@
+import '../l10n/app_localizations.dart';
+
+/// BookOrbit's reading statuses, in the server's order.
+const bookOrbitReadStatuses = [
+ 'unread',
+ 'want_to_read',
+ 'reading',
+ 'on_hold',
+ 'rereading',
+ 'read',
+ 'skimmed',
+ 'abandoned',
+];
+
+String readStatusLabel(AppLocalizations l, String s) => switch (s) {
+ 'want_to_read' => l.readStatusWantToRead,
+ 'reading' => l.readStatusReading,
+ 'on_hold' => l.readStatusOnHold,
+ 'rereading' => l.readStatusRereading,
+ 'read' => l.readStatusRead,
+ 'skimmed' => l.readStatusSkimmed,
+ 'abandoned' => l.readStatusAbandoned,
+ _ => l.readStatusUnread,
+ };
diff --git a/lib/utils/series_number_match.dart b/lib/utils/series_number_match.dart
new file mode 100644
index 00000000..9faed8dc
--- /dev/null
+++ b/lib/utils/series_number_match.dart
@@ -0,0 +1,79 @@
+final _parenthetical = RegExp(r'\s*\([^)]*\)\s*');
+final _nonAlphaNum = RegExp(r'[^a-z0-9 ]');
+final _multiSpace = RegExp(r'\s+');
+
+/// Lowercase, no parentheticals or punctuation - how library and Audible
+/// titles are compared when checking which series books are owned.
+String normalizeSeriesTitle(String title) {
+ return title
+ .toLowerCase()
+ .replaceAll(_parenthetical, ' ')
+ .replaceAll(_nonAlphaNum, ' ')
+ .replaceAll(_multiSpace, ' ')
+ .trim();
+}
+
+/// A series number in one comparable form ("2.0" and "2" agree), or '' when
+/// there is none.
+String normalizeSeriesNumber(Object? raw) {
+ final s = raw?.toString().trim() ?? '';
+ if (s.isEmpty) return '';
+ final n = double.tryParse(s);
+ if (n == null) return s.toLowerCase();
+ return n == n.truncateToDouble() ? n.toInt().toString() : n.toString();
+}
+
+/// A library book's number in [seriesId]: series listings name it in a
+/// single map, full items list every series the book is in.
+String? librarySeriesNumber(Map<String, dynamic> metadata, String seriesId) {
+ final raw = metadata['series'];
+ if (raw is Map) return raw['sequence']?.toString();
+ if (raw is List) {
+ for (final s in raw) {
+ if (s is Map && s['id'] == seriesId) return s['sequence']?.toString();
+ }
+ }
+ return null;
+}
+
+/// The library side of matching an Audible series listing by number, for
+/// books whose title and ASIN don't match: another region's or language's
+/// edition, a reworded title, or a server whose listings carry no ASINs.
+class SeriesNumberOwnership {
+ final _byNumber = <String, List<({List<String> titles, String asin})>>{};
+
+ void add(Object? number, String title, String asin) {
+ final n = normalizeSeriesNumber(number);
+ if (n.isEmpty) return;
+ final titles = <String>[normalizeSeriesTitle(title)];
+ final colon = title.indexOf(':');
+ if (colon > 0) titles.add(normalizeSeriesTitle(title.substring(0, colon)));
+ _byNumber.putIfAbsent(n, () => []).add((titles: titles, asin: asin));
+ }
+
+ /// Whether the library has a book numbered like [book], an entry of the
+ /// Audible [listing], that no listing entry already matches by ASIN or
+ /// title. That last part keeps one library book from owning two entries
+ /// when the library and Audible number the series differently.
+ bool owns(Map<String, dynamic> book, List<Map<String, dynamic>> listing) {
+ final n = normalizeSeriesNumber(book['sequence']);
+ if (n.isEmpty) return false;
+ final owned = _byNumber[n];
+ if (owned == null) return false;
+ return owned.any((o) => !listing.any((entry) => _matches(entry, o.titles, o.asin)));
+ }
+
+ static bool _matches(Map<String, dynamic> entry, List<String> titles, String asin) {
+ if (asin.isNotEmpty) {
+ if (entry['asin'] == asin) return true;
+ final all = entry['allAsins'] as List<dynamic>? ?? const [];
+ if (all.contains(asin)) return true;
+ }
+ final title = normalizeSeriesTitle(entry['title'] as String? ?? '');
+ if (title.isEmpty) return false;
+ if (titles.contains(title)) return true;
+ final subtitle = entry['subtitle'] as String? ?? '';
+ return subtitle.isNotEmpty &&
+ titles.contains(normalizeSeriesTitle('${entry['title']} $subtitle'));
+ }
+}
diff --git a/lib/widgets/add_books_search_sheet.dart b/lib/widgets/add_books_search_sheet.dart
index edf7e7fb..d91ac06b 100644
--- a/lib/widgets/add_books_search_sheet.dart
+++ b/lib/widgets/add_books_search_sheet.dart
@@ -32,15 +32,16 @@ class AddBooksSearchSheet extends StatefulWidget {
required this.onRemove,
});
- static void show(
+ /// Completes when the sheet is closed.
+ static Future<void> show(
BuildContext context, {
required String title,
required String libraryId,
required Set<String> initialMemberIds,
required Future<bool> Function(String libraryItemId) onAdd,
required Future<bool> Function(String libraryItemId) onRemove,
- }) {
- showStackableSheet(
+ }) async {
+ await showStackableSheet<void>(
context: context,
showHandle: true,
useSafeArea: true,
diff --git a/lib/widgets/audible_series_sheet.dart b/lib/widgets/audible_series_sheet.dart
index e78f906b..4d564991 100644
--- a/lib/widgets/audible_series_sheet.dart
+++ b/lib/widgets/audible_series_sheet.dart
@@ -8,6 +8,7 @@ import '../services/player_settings.dart';
import '../services/rmab_service.dart';
import '../services/scoped_prefs.dart';
import '../services/upcoming_releases_service.dart';
+import '../utils/series_number_match.dart';
import 'overlay_toast.dart';
import 'rmab_book_detail_sheet.dart';
import 'rmab_config_sheet.dart' show kRmabBaseUrlKey, kRmabApiTokenKey;
@@ -20,6 +21,7 @@ void showAudibleSeriesSheet(BuildContext context, {
required String seriesAsin,
required Set<String> ownedTitles,
required Set<String> ownedAsins,
+ SeriesNumberOwnership? ownedNumbers,
}) {
showStackableSheet(
context: context,
@@ -29,6 +31,7 @@ void showAudibleSeriesSheet(BuildContext context, {
seriesAsin: seriesAsin,
ownedTitles: ownedTitles,
ownedAsins: ownedAsins,
+ ownedNumbers: ownedNumbers,
scrollController: scrollController,
),
);
@@ -39,6 +42,9 @@ class AudibleSeriesSheet extends StatefulWidget {
final String seriesAsin;
final Set<String> ownedTitles;
final Set<String> ownedAsins;
+ /// The series' library books by number, for owning an entry whose title
+ /// and ASIN don't match (another edition, or no ASINs from the server).
+ final SeriesNumberOwnership? ownedNumbers;
final ScrollController scrollController;
const AudibleSeriesSheet({
@@ -47,6 +53,7 @@ class AudibleSeriesSheet extends StatefulWidget {
required this.seriesAsin,
required this.ownedTitles,
required this.ownedAsins,
+ this.ownedNumbers,
required this.scrollController,
});
@@ -116,18 +123,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {
}
}
- static final _parenthetical = RegExp(r'\s*\([^)]*\)\s*');
- static final _nonAlphaNum = RegExp(r'[^a-z0-9 ]');
- static final _multiSpace = RegExp(r'\s+');
-
- String _normalizeTitle(String title) {
- return title
- .toLowerCase()
- .replaceAll(_parenthetical, ' ')
- .replaceAll(_nonAlphaNum, ' ')
- .replaceAll(_multiSpace, ' ')
- .trim();
- }
+ String _normalizeTitle(String title) => normalizeSeriesTitle(title);
bool _isOwned(Map<String, dynamic> book) {
final asin = book['asin'] as String? ?? '';
@@ -153,7 +149,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {
return true;
}
}
- return false;
+ return widget.ownedNumbers?.owns(book, _allBooks) ?? false;
}
bool _isUpcoming(Map<String, dynamic> book) {
diff --git a/lib/widgets/book_card.dart b/lib/widgets/book_card.dart
index 0080e401..85f3c036 100644
--- a/lib/widgets/book_card.dart
+++ b/lib/widgets/book_card.dart
@@ -61,6 +61,7 @@ class BookCard extends StatelessWidget {
// Progress from LibraryProvider (fetched via /api/me, same source as book detail)
final progress = lib.getProgress(itemId);
final isFinished = lib.getProgressData(itemId)?['isFinished'] == true;
+ final isSkimmed = lib.getProgressData(itemId)?['skimmed'] == true;
final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;
final isDownloaded = DownloadService().isDownloaded(itemId ?? '');
final hasEbook = PlayerSettings.showEbookBadge && hasEbookFile(item);
@@ -74,7 +75,7 @@ class BookCard extends StatelessWidget {
final card = isWide
? _buildWideCard(context, cs, tt, l, title, authorName, coverUrl, progress, headers, isExplicit: isExplicit, hasEbook: hasEbook)
- : _buildCompactCard(context, cs, tt, l, title, subtitle, authorName, coverUrl, progress, headers, isFinished: isFinished, isDownloaded: isDownloaded, isExplicit: isExplicit, unfinishedCount: unfinishedCount, hasEbook: hasEbook);
+ : _buildCompactCard(context, cs, tt, l, title, subtitle, authorName, coverUrl, progress, headers, isFinished: isFinished, isSkimmed: isSkimmed, isDownloaded: isDownloaded, isExplicit: isExplicit, unfinishedCount: unfinishedCount, hasEbook: hasEbook);
if (!selectionMode) return card;
// Selection sits on top of the finished card rather than inside both
// layouts: the overlay swallows the tap, so nothing below it can open a
@@ -321,6 +322,7 @@ class BookCard extends StatelessWidget {
double progress,
Map<String, String> headers, {
bool isFinished = false,
+ bool isSkimmed = false,
bool isDownloaded = false,
bool isExplicit = false,
int unfinishedCount = 0,
@@ -408,6 +410,7 @@ class BookCard extends StatelessWidget {
child: CoverStateBadges(
isDownloaded: isDownloaded,
isFinished: isFinished,
+ isSkimmed: isSkimmed,
borderRadius: const BorderRadius.vertical(bottom: Radius.circular(12)),
),
),
diff --git a/lib/widgets/book_detail_sheet.dart b/lib/widgets/book_detail_sheet.dart
index 24a10d7b..dea75c25 100644
--- a/lib/widgets/book_detail_sheet.dart
+++ b/lib/widgets/book_detail_sheet.dart
@@ -23,6 +23,7 @@ import 'package:url_launcher/url_launcher.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'package:intl/intl.dart';
import '../l10n/app_localizations.dart';
+import '../utils/read_status.dart';
import 'book_stats_sheet.dart';
import '../services/book_stats_service.dart';
import '../services/wording.dart';
@@ -254,7 +255,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
_loadBookmarks();
_warmStats();
SocketService().addItemUpdatedListener(_onSocketItemUpdated);
- PlayerSettings.getRectangleCovers().then((v) { if (mounted) setState(() => _squareCovers = !v); });
+ _loadCoverShape();
PlayerSettings.getShowGoodreadsButton().then((v) { if (mounted) setState(() => _showGoodreads = v); });
PlayerSettings.getSpeedAdjustedTime().then((v) { if (mounted && v != _speedAdjustedTime) setState(() => _speedAdjustedTime = v); });
PlayerSettings.getBookSpeed(widget.itemId).then((s) async {
@@ -456,6 +457,16 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
if (mounted) setState(() => _bookmarks = bm);
}
+ /// The cover shape set for the book's own library (or the one being
+ /// browsed until the book has loaded), the same lookup the cards use.
+ void _loadCoverShape() {
+ final libraryId = _item?['libraryId'] as String? ??
+ context.read<LibraryProvider>().selectedLibraryId;
+ PlayerSettings.getRectangleCoversFor(libraryId).then((rect) {
+ if (mounted && _squareCovers == rect) setState(() => _squareCovers = !rect);
+ });
+ }
+
Future<void> _loadItem() async {
debugPrint('[BookDetail] _loadItem start item=${widget.itemId}');
final loadStart = DateTime.now();
@@ -481,6 +492,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
}
setState(() { _item = finalItem; _isLoading = false; });
+ _loadCoverShape();
if (BookDockInfo.of(finalItem)?.isWorking ?? false) {
_dockPoll?.cancel();
_dockPoll = Timer(const Duration(seconds: 3), () {
@@ -551,6 +563,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
final localItem = session['libraryItem'] as Map<String, dynamic>?;
if (localItem != null && mounted) {
setState(() { _item = localItem; _isLoading = false; });
+ _loadCoverShape();
_deriveCoverScheme();
return;
}
@@ -1429,16 +1442,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
return s;
}
- static String _readStatusLabel(AppLocalizations l, String s) => switch (s) {
- 'want_to_read' => l.readStatusWantToRead,
- 'reading' => l.readStatusReading,
- 'on_hold' => l.readStatusOnHold,
- 'rereading' => l.readStatusRereading,
- 'read' => l.readStatusRead,
- 'skimmed' => l.readStatusSkimmed,
- 'abandoned' => l.readStatusAbandoned,
- _ => l.readStatusUnread,
- };
+ static String _readStatusLabel(AppLocalizations l, String s) => readStatusLabel(l, s);
static IconData _readStatusIcon(String s) => switch (s) {
'want_to_read' => Icons.bookmark_add_outlined,
diff --git a/lib/widgets/collection_detail_sheet.dart b/lib/widgets/collection_detail_sheet.dart
index ec0f4a7c..cb16aad5 100644
--- a/lib/widgets/collection_detail_sheet.dart
+++ b/lib/widgets/collection_detail_sheet.dart
@@ -21,6 +21,7 @@ import 'editable_sheet_item.dart';
import 'stackable_sheet.dart';
import 'swipe_action.dart';
import '../screens/app_shell.dart';
+import '../screens/smart_scope_editor_screen.dart';
class CollectionDetailSheet extends StatefulWidget {
final String collectionId;
@@ -68,6 +69,24 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
final Set<String> _selectedItemIds = {};
bool _isRemovingSelected = false;
+ bool _loadingMore = false;
+ DateTime? _loadMoreFailedAt;
+
+ /// Big BookOrbit lists come with their first books; the rest load as you
+ /// near the bottom.
+ Future<void> _loadMore(LibraryProvider lib) async {
+ if (_loadingMore || _editing || !lib.collectionHasMore(widget.collectionId)) return;
+ final failed = _loadMoreFailedAt;
+ if (failed != null && DateTime.now().difference(failed) < const Duration(seconds: 5)) return;
+ setState(() => _loadingMore = true);
+ final ok = await lib.loadMoreCollectionBooks(widget.collectionId);
+ if (!mounted) return;
+ setState(() {
+ _loadingMore = false;
+ _loadMoreFailedAt = ok ? null : DateTime.now();
+ });
+ }
+
@override
void initState() {
super.initState();
@@ -133,6 +152,14 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
);
}
+ /// A Smart Scope's rules are edited in the scope editor, not in place.
+ Future<void> _editScope(Map<String, dynamic> collection) async {
+ final id = (collection['bookOrbit'] as Map?)?['scopeId'] as String?;
+ if (id == null) return;
+ final result = await SmartScopeEditorScreen.open(context, scopeId: id);
+ if (mounted && result == SmartScopeEdit.deleted) Navigator.of(context).pop();
+ }
+
Future<void> _deleteCollection(BuildContext context, LibraryProvider lib) async {
final l = AppLocalizations.of(context)!;
final confirmed = await showDialog<bool>(
@@ -225,6 +252,11 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
}
}
+ /// How many books a BookOrbit collection or scope holds, which can be more
+ /// than are loaded.
+ int? _bookTotal(Map<String, dynamic> collection) =>
+ ((collection['bookOrbit'] as Map?)?['total'] as num?)?.toInt();
+
@override
Widget build(BuildContext context) {
final cs = Theme.of(context).colorScheme;
@@ -245,8 +277,10 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
// BookOrbit collection belongs to whoever made it.
final ownsBookOrbitCollection = auth.isBookOrbit &&
(collection['bookOrbit'] as Map?)?['isOwner'] == true;
- final canEditCollection = auth.isAdmin || ownsBookOrbitCollection;
- final canDeleteCollection = auth.isAdmin || ownsBookOrbitCollection;
+ // A BookOrbit Smart Scope is its rules' live result: read-only here.
+ final isSmartScope = (collection['bookOrbit'] as Map?)?['smartScope'] == true;
+ final canEditCollection = !isSmartScope && (auth.isAdmin || ownsBookOrbitCollection);
+ final canDeleteCollection = canEditCollection;
final name = collection['name'] as String? ?? l.collectionDetailDefaultName;
final description = collection['description'] as String? ?? '';
@@ -277,14 +311,18 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
color: cs.primary,
),
] else ...[
- Icon(Icons.collections_bookmark_rounded, size: 20, color: cs.primary),
+ Icon(
+ isSmartScope
+ ? scopeIconData((collection['bookOrbit'] as Map?)?['icon'] as String?)
+ : Icons.collections_bookmark_rounded,
+ size: 20, color: cs.primary),
const SizedBox(width: 8),
Expanded(
child: Text(name, style: tt.titleMedium?.copyWith(
fontWeight: FontWeight.w600, color: cs.onSurface,
)),
),
- Text(l.collectionDetailBookCount(books.length),
+ Text(l.collectionDetailBookCount(_bookTotal(collection) ?? books.length),
style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant),
),
if (canEditCollection)
@@ -305,6 +343,9 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
if (canEditCollection)
_headerIconButton(cs, Icons.edit_rounded, () => _startEdit(books),
tooltip: l.edit),
+ if (isSmartScope && (collection['bookOrbit'] as Map?)?['isOwner'] == true)
+ _headerIconButton(cs, Icons.edit_rounded, () => _editScope(collection),
+ tooltip: l.edit),
],
]),
),
@@ -336,17 +377,40 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
Expanded(
child: _editing
? _buildEditList(cs, tt, lib, l)
- : _gridView
- ? _buildGrid(cs, tt, lib, books, name, l)
- : _buildItemList(
- cs,
- tt,
- lib,
- books,
- name,
- l,
- canEditCollection: canEditCollection,
- ),
+ : NotificationListener<ScrollNotification>(
+ onNotification: (n) {
+ if (n.metrics.axis == Axis.vertical && n.metrics.extentAfter < 1200) {
+ _loadMore(lib);
+ }
+ return false;
+ },
+ child: Stack(children: [
+ _gridView
+ ? _buildGrid(cs, tt, lib, books, name, l)
+ : _buildItemList(
+ cs,
+ tt,
+ lib,
+ books,
+ name,
+ l,
+ canEditCollection: canEditCollection,
+ ),
+ if (_loadingMore)
+ Positioned(
+ left: 0,
+ right: 0,
+ bottom: 10,
+ child: Center(
+ child: SizedBox(
+ width: 18,
+ height: 18,
+ child: CircularProgressIndicator(strokeWidth: 2, color: cs.primary),
+ ),
+ ),
+ ),
+ ]),
+ ),
),
if (_editing && canDeleteCollection)
Container(
@@ -495,6 +559,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;
final progress = lib.getProgress(itemId);
final isFinished = lib.getProgressData(itemId)?['isFinished'] == true;
+ final isSkimmed = lib.getProgressData(itemId)?['skimmed'] == true;
final isDownloaded = DownloadService().isDownloaded(itemId);
final card = Padding(
@@ -556,7 +621,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
if (isFinished || isDownloaded)
Positioned(
left: 0, right: 0, bottom: 0,
- child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished),
+ child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished, isSkimmed: isSkimmed),
),
]),
),
@@ -637,6 +702,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;
final progress = lib.getProgress(itemId);
final isFinished = lib.getProgressData(itemId)?['isFinished'] == true;
+ final isSkimmed = lib.getProgressData(itemId)?['skimmed'] == true;
final isDownloaded = DownloadService().isDownloaded(itemId);
return GestureDetector(
@@ -692,7 +758,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {
if (isFinished || isDownloaded)
Positioned(
left: 0, right: 0, bottom: 0,
- child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished),
+ child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished, isSkimmed: isSkimmed),
),
]),
),
diff --git a/lib/widgets/collection_picker_sheet.dart b/lib/widgets/collection_picker_sheet.dart
index 0b8a4159..80debabd 100644
--- a/lib/widgets/collection_picker_sheet.dart
+++ b/lib/widgets/collection_picker_sheet.dart
@@ -76,11 +76,13 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {
Widget build(BuildContext context) {
final cs = Theme.of(context).colorScheme;
final lib = context.watch<LibraryProvider>();
- // A BookOrbit collection only takes books from its owner.
+ // A BookOrbit collection only takes books from its owner, and a Smart
+ // Scope takes none: its rules pick its books.
final collections = context.read<AuthProvider>().isBookOrbit
- ? lib.collections
- .where((c) => ((c as Map)['bookOrbit'] as Map?)?['isOwner'] == true)
- .toList()
+ ? lib.collections.where((c) {
+ final bo = (c as Map)['bookOrbit'] as Map?;
+ return bo?['isOwner'] == true && bo?['smartScope'] != true;
+ }).toList()
: lib.collections;
final l = AppLocalizations.of(context)!;
diff --git a/lib/widgets/comic_reader_view.dart b/lib/widgets/comic_reader_view.dart
index 2e2add83..a20245ca 100644
--- a/lib/widgets/comic_reader_view.dart
+++ b/lib/widgets/comic_reader_view.dart
@@ -1,3 +1,5 @@
+import 'dart:async';
+import 'dart:convert';
import 'dart:io';
import 'package:archive/archive_io.dart';
@@ -13,10 +15,13 @@ import '../providers/auth_provider.dart';
import '../providers/library_provider.dart';
import '../services/api_service.dart';
import '../services/ebook_cache.dart';
+import '../services/image_epub.dart';
import '../services/progress_sync_service.dart';
import '../services/scoped_prefs.dart';
+import '../services/ebook_annotation_service.dart';
import '../services/volume_key_service.dart';
import 'ebook_router.dart' show ebookExt;
+import 'overlay_toast.dart';
const _imageExts = {'jpg', 'jpeg', 'png', 'webp', 'gif', 'bmp'};
@@ -106,11 +111,17 @@ class ComicReaderView extends StatefulWidget {
final String title;
final Map<String, dynamic> ebookFile;
+ /// An EPUB made of page pictures, read here instead of the EPUB reader.
+ /// Its position is saved as an EPUB location, so the book still opens at
+ /// the same page wherever it's read as an EPUB.
+ final File? imageEpub;
+
const ComicReaderView({
super.key,
required this.itemId,
required this.title,
required this.ebookFile,
+ this.imageEpub,
});
@override
@@ -121,6 +132,13 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
ApiService? _api;
LibraryProvider? _lib;
_ComicPages? _pages;
+ // Image EPUB only: each page's EPUB position.
+ List<String>? _cfis;
+
+ // Bookmarks live on the phone for every comic. A picture EPUB on BookOrbit
+ // also keeps them on the server, at each page's EPUB position.
+ final _annotationService = EbookAnnotationService();
+ List<EbookAnnotation> _bookmarks = [];
PageController? _controller;
String? _error;
bool _loading = true;
@@ -184,6 +202,11 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
/// progress fraction (a CBZ last read in the old reader saved neither).
int _savedPage(int count) {
final data = _lib?.getProgressData(widget.itemId);
+ final cfis = _cfis;
+ if (cfis != null) {
+ final index = pageIndexForCfi(cfis, data?['ebookLocation'] as String?);
+ if (index != null) return (index + 1).clamp(1, count);
+ }
final loc = int.tryParse((data?['ebookLocation'] as String?)?.trim() ?? '');
if (loc != null && loc >= 1) return loc.clamp(1, count);
final frac = (data?['ebookProgress'] as num?)?.toDouble() ?? 0;
@@ -198,11 +221,14 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
final offline = _lib?.isOffline ?? true;
try {
_ComicPages? pages;
- if (ext == 'cbz' && await isEbookCached(widget.itemId, widget.ebookFile)) {
+ final imageEpub = widget.imageEpub;
+ if (imageEpub != null) {
+ pages = await _unpack(imageEpub, epub: true);
+ } else if (ext == 'cbz' && await isEbookCached(widget.itemId, widget.ebookFile)) {
pages = await _unpack(await ebookCacheFileFor(widget.itemId, widget.ebookFile));
}
final fileId = widget.ebookFile['ino'] as String?;
- if (pages == null && api != null && fileId != null && !offline) {
+ if (pages == null && imageEpub == null && api != null && fileId != null && !offline) {
final count = await api.comicPageCount(fileId);
if (count != null && count > 0) pages = _ServerPages(api, fileId, count);
}
@@ -224,6 +250,8 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
});
return;
}
+ await _pullServerPosition();
+ if (!mounted) return;
final start = _savedPage(pages.count);
setState(() {
_pages = pages;
@@ -232,6 +260,7 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
_loading = false;
});
_precacheAround(start - 1);
+ unawaited(_loadBookmarks());
} catch (e) {
debugPrint('[Comic] open failed: $e');
if (mounted) setState(() { _error = '$e'; _loading = false; });
@@ -240,9 +269,9 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
/// Unpacks a CBZ into a scratch folder once per file version, keeping the
/// three most recent comics so the cache doesn't grow without end.
- Future<_ComicPages> _unpack(File archive) async {
+ Future<_ComicPages> _unpack(File archive, {bool epub = false}) async {
final root = Directory('${(await getTemporaryDirectory()).path}/comic_pages');
- final dest = Directory('${root.path}/${widget.itemId}_${await archive.length()}');
+ final dest = Directory('${root.path}/${widget.itemId}_${await archive.length()}${epub ? '_epub$imageEpubScanVersion' : ''}');
final done = File('${dest.path}/.done');
List<String> paths;
if (done.existsSync()) {
@@ -250,12 +279,18 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
.listSync()
.whereType<File>()
.map((f) => f.path)
- .where((p) => !p.endsWith('.done'))
+ .where((p) => !p.endsWith('.done') && !p.endsWith('.cfis'))
.toList()
..sort();
} else {
if (dest.existsSync()) dest.deleteSync(recursive: true);
- paths = await compute(extractComicPages, [archive.path, dest.path]);
+ paths = await compute(epub ? extractImageEpubPages : extractComicPages, [archive.path, dest.path]);
+ }
+ if (epub) {
+ final cfiFile = File('${dest.path}/.cfis');
+ final raw = cfiFile.existsSync() ? cfiFile.readAsStringSync().trim() : '';
+ final cfis = raw.isEmpty ? <String>[] : const LineSplitter().convert(raw);
+ _cfis = cfis.length == paths.length ? cfis : null;
}
try {
done.setLastModifiedSync(DateTime.now());
@@ -272,6 +307,212 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
return _FilePages(paths);
}
+ /// Takes the server's page when it differs from the phone's (read on the
+ /// web or another device; a BookOrbit library refresh carries no page). A
+ /// page this phone hasn't sent yet wins, and a slow server keeps the phone's.
+ Future<void> _pullServerPosition() async {
+ final api = _api;
+ final lib = _lib;
+ if (api == null || lib == null || lib.isOffline) return;
+ try {
+ final pending = await ProgressSyncService().getPendingEbookProgress();
+ if (pending.containsKey(widget.itemId)) return;
+ final server = await api
+ .getItemProgress(widget.itemId)
+ .timeout(const Duration(seconds: 3), onTimeout: () => null);
+ final loc = server?['ebookLocation'] as String?;
+ if (loc == null || loc.isEmpty) return;
+ final local = lib.getProgressData(widget.itemId);
+ if (local?['ebookLocation'] == loc) return;
+ final progress = (server!['ebookProgress'] as num?)?.toDouble() ??
+ (local?['ebookProgress'] as num?)?.toDouble() ??
+ 0;
+ debugPrint('[Comic] taking the server position item=${widget.itemId}');
+ lib.applyLocalEbookProgress(widget.itemId, location: loc, progress: progress);
+ } catch (e) {
+ debugPrint('[Comic] server position check failed: $e');
+ }
+ }
+
+ bool get _serverBookmarks => _cfis != null && (_api?.isBookOrbit ?? false);
+
+ /// What a bookmark on [page] is saved as: the page's EPUB position for a
+ /// picture EPUB, otherwise the page number.
+ String _pageKey(int page) {
+ final cfis = _cfis;
+ return cfis != null && page <= cfis.length ? cfis[page - 1] : 'page:$page';
+ }
+
+ /// The page a bookmark is on. A picture EPUB's bookmarks can come from any
+ /// EPUB reader, so they're matched by position, not by exact text.
+ int? _pageOf(EbookAnnotation b) {
+ if (b.cfi.startsWith('page:')) return int.tryParse(b.cfi.substring(5));
+ final cfis = _cfis;
+ if (cfis == null) return null;
+ final index = pageIndexForCfi(cfis, b.cfi);
+ return index == null ? null : index + 1;
+ }
+
+ List<EbookAnnotation> _bookmarksOn(int page) => _bookmarks.where((b) => _pageOf(b) == page).toList();
+
+ Future<void> _loadBookmarks() async {
+ final local = await _annotationService.getBookmarks(widget.itemId);
+ if (mounted) setState(() => _bookmarks = local);
+ if (_serverBookmarks && !(_lib?.isOffline ?? true)) await _syncBookmarks();
+ }
+
+ /// Squares the phone's bookmarks with BookOrbit's: ones deleted elsewhere
+ /// go, ones made here offline are sent, ones made elsewhere arrive.
+ Future<void> _syncBookmarks() async {
+ final api = _api;
+ if (api == null) return;
+ final server = await api.ebookBookmarks(widget.itemId);
+ if (server == null) return;
+ final serverIds = {for (final s in server) s['id'] as String};
+ var local = await _annotationService.getBookmarks(widget.itemId);
+ for (final b in local) {
+ final sid = b.serverId;
+ if (sid != null && !serverIds.contains(sid)) {
+ await _annotationService.delete(itemId: widget.itemId, annotationId: b.id);
+ } else if (sid == null && b.cfi.startsWith('epubcfi(')) {
+ final page = _pageOf(b);
+ final id = await api.addEbookBookmark(widget.itemId,
+ cfi: b.cfi, title: _bookmarkTitle(page ?? 1));
+ if (id != null) {
+ await _annotationService.setServerId(itemId: widget.itemId, annotationId: b.id, serverId: id);
+ }
+ }
+ }
+ local = await _annotationService.getBookmarks(widget.itemId);
+ final known = {for (final b in local) b.serverId};
+ for (final s in server) {
+ if (known.contains(s['id'])) continue;
+ await _annotationService.addBookmark(
+ itemId: widget.itemId,
+ cfi: s['cfi'] as String,
+ note: s['note'] as String?,
+ chapter: s['title'] as String?,
+ serverId: s['id'] as String,
+ );
+ }
+ final fresh = await _annotationService.getBookmarks(widget.itemId);
+ if (mounted) setState(() => _bookmarks = fresh);
+ }
+
+ String _bookmarkTitle(int page) => AppLocalizations.of(context)!.comicPageNumber(page);
+
+ /// Removes [b] here and, when the server keeps it, there first: a bookmark
+ /// only removed here would come back with the next sync.
+ Future<bool> _removeBookmark(EbookAnnotation b) async {
+ final sid = b.serverId;
+ final api = _api;
+ if (sid != null && api != null && _serverBookmarks) {
+ if (!await api.deleteEbookBookmark(widget.itemId, sid)) {
+ if (mounted) {
+ showOverlayToast(context, AppLocalizations.of(context)!.comicBookmarkRemoveFailed,
+ icon: Icons.cloud_off_rounded);
+ }
+ return false;
+ }
+ }
+ await _annotationService.delete(itemId: widget.itemId, annotationId: b.id);
+ _bookmarks.removeWhere((x) => x.id == b.id);
+ return true;
+ }
+
+ Future<void> _toggleBookmark() async {
+ final l = AppLocalizations.of(context)!;
+ final page = _page;
+ final here = _bookmarksOn(page);
+ if (here.isNotEmpty) {
+ for (final b in here) {
+ await _removeBookmark(b);
+ }
+ } else {
+ final key = _pageKey(page);
+ final api = _api;
+ final serverId = _serverBookmarks && api != null
+ ? await api.addEbookBookmark(widget.itemId, cfi: key, title: _bookmarkTitle(page))
+ : null;
+ final added = await _annotationService.addBookmark(itemId: widget.itemId, cfi: key, serverId: serverId);
+ _bookmarks.insert(0, added);
+ if (mounted) showOverlayToast(context, l.bookmarkAdded, icon: Icons.bookmark_rounded);
+ }
+ if (mounted) setState(() {});
+ }
+
+ void _showBookmarks() {
+ final l = AppLocalizations.of(context)!;
+ showModalBottomSheet(
+ context: context,
+ showDragHandle: true,
+ isScrollControlled: true,
+ builder: (ctx) => StatefulBuilder(builder: (ctx, setSheet) {
+ final cs = Theme.of(ctx).colorScheme;
+ final tt = Theme.of(ctx).textTheme;
+ final marks = [
+ for (final b in _bookmarks)
+ if (_pageOf(b) != null) (bookmark: b, page: _pageOf(b)!),
+ ]..sort((a, b) => a.page.compareTo(b.page));
+ return SafeArea(
+ child: ConstrainedBox(
+ constraints: BoxConstraints(maxHeight: MediaQuery.of(ctx).size.height * 0.6),
+ child: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 0, 24, 8),
+ child: Text(l.readerBookmarks(marks.length),
+ style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),
+ ),
+ if (marks.isEmpty)
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 8, 24, 24),
+ child: Text(l.readerNoBookmarks, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ )
+ else
+ Flexible(
+ child: ListView(
+ shrinkWrap: true,
+ children: [
+ for (final m in marks)
+ Dismissible(
+ key: ValueKey(m.bookmark.id),
+ direction: DismissDirection.endToStart,
+ background: Container(
+ alignment: Alignment.centerRight,
+ padding: const EdgeInsets.only(right: 16),
+ color: cs.error,
+ child: Icon(Icons.delete_rounded, color: cs.onError),
+ ),
+ confirmDismiss: (_) => _removeBookmark(m.bookmark),
+ onDismissed: (_) {
+ setSheet(() {});
+ if (mounted) setState(() {});
+ },
+ child: ListTile(
+ leading: Icon(Icons.bookmark_rounded, color: cs.primary),
+ title: Text(m.bookmark.note ?? _bookmarkTitle(m.page),
+ maxLines: 1, overflow: TextOverflow.ellipsis),
+ subtitle: m.bookmark.note != null
+ ? Text(_bookmarkTitle(m.page),
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant))
+ : null,
+ dense: true,
+ onTap: () {
+ Navigator.pop(ctx);
+ _controller?.jumpToPage(m.page - 1);
+ },
+ ),
+ ),
+ ],
+ ),
+ ),
+ ]),
+ ),
+ );
+ }),
+ );
+ }
+
void _precacheAround(int index) {
final pages = _pages;
if (pages == null || !mounted) return;
@@ -295,8 +536,10 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
final count = _pages?.count ?? 0;
if (page == null || api == null || count <= 0 || page == _lastSyncedPage) return;
final frac = (page / count).clamp(0.0, 1.0);
- ProgressSyncService().pushEbookProgress(api, widget.itemId, location: '$page', progress: frac);
- _lib?.applyLocalEbookProgress(widget.itemId, location: '$page', progress: frac);
+ final cfis = _cfis;
+ final location = cfis != null && page <= cfis.length ? cfis[page - 1] : '$page';
+ ProgressSyncService().pushEbookProgress(api, widget.itemId, location: location, progress: frac);
+ _lib?.applyLocalEbookProgress(widget.itemId, location: location, progress: frac);
_lastSync = DateTime.now();
_lastSyncedPage = page;
_pendingPage = null;
@@ -404,6 +647,19 @@ class _ComicReaderViewState extends State<ComicReaderView> with WidgetsBindingOb
child: Text(widget.title,
maxLines: 1, overflow: TextOverflow.ellipsis, style: tt.titleSmall?.copyWith(color: Colors.white)),
),
+ IconButton(
+ tooltip: l.addBookmark,
+ icon: Icon(
+ _bookmarksOn(_page).isNotEmpty ? Icons.bookmark_rounded : Icons.bookmark_border_rounded,
+ color: Colors.white,
+ ),
+ onPressed: _toggleBookmark,
+ ),
+ IconButton(
+ tooltip: l.bookmarks,
+ icon: const Icon(Icons.bookmarks_outlined, color: Colors.white),
+ onPressed: _showBookmarks,
+ ),
IconButton(
tooltip: l.comicReadingDirection,
icon: Icon(
diff --git a/lib/widgets/cover_badges.dart b/lib/widgets/cover_badges.dart
index ae5de456..903c0a5d 100644
--- a/lib/widgets/cover_badges.dart
+++ b/lib/widgets/cover_badges.dart
@@ -2,13 +2,15 @@ import 'package:flutter/material.dart';
import '../l10n/app_localizations.dart';
/// State banner across the bottom of cover art: a finished check + "Finished"
-/// (green) and a downloaded arrow + "Downloaded" (white), stacked, over a strong
+/// (green, or "Skimmed" in amber for a BookOrbit book marked skimmed) and a
+/// downloaded arrow + "Downloaded" (white), stacked, over a strong
/// dark scrim so they stay legible on any artwork. Place across the bottom of a
/// cover Stack:
/// Positioned(left: 0, right: 0, bottom: 0, child: CoverStateBadges(...))
class CoverStateBadges extends StatelessWidget {
final bool isDownloaded;
final bool isFinished;
+ final bool isSkimmed;
final double iconSize;
/// Shows just the icons (no text labels), for covers too small to fit the
@@ -23,6 +25,7 @@ class CoverStateBadges extends StatelessWidget {
super.key,
required this.isDownloaded,
required this.isFinished,
+ this.isSkimmed = false,
this.iconSize = 13,
this.iconOnly = false,
this.borderRadius,
@@ -33,7 +36,10 @@ class CoverStateBadges extends StatelessWidget {
if (!isDownloaded && !isFinished) return const SizedBox.shrink();
final l = AppLocalizations.of(context)!;
final green = Colors.greenAccent.shade400;
- if (iconOnly) return _iconOnly(green);
+ final skimmed = isFinished && isSkimmed;
+ final doneIcon = skimmed ? Icons.fast_forward_rounded : Icons.check_circle_rounded;
+ final doneColor = skimmed ? Colors.amberAccent.shade200 : green;
+ if (iconOnly) return _iconOnly(doneIcon, doneColor);
return Container(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 5),
decoration: BoxDecoration(
@@ -53,7 +59,8 @@ class CoverStateBadges extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
- if (isFinished) _row(Icons.check_circle_rounded, l.finished, green),
+ if (isFinished)
+ _row(doneIcon, skimmed ? l.readStatusSkimmed : l.finished, doneColor),
if (isFinished && isDownloaded) const SizedBox(height: 2),
if (isDownloaded) _row(Icons.download_rounded, l.saved, Colors.white),
],
@@ -61,7 +68,7 @@ class CoverStateBadges extends StatelessWidget {
);
}
- Widget _iconOnly(Color green) {
+ Widget _iconOnly(IconData doneIcon, Color doneColor) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 3),
decoration: BoxDecoration(
@@ -79,7 +86,7 @@ class CoverStateBadges extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
- if (isFinished) Icon(Icons.check_circle_rounded, size: iconSize, color: green),
+ if (isFinished) Icon(doneIcon, size: iconSize, color: doneColor),
if (isFinished && isDownloaded) const SizedBox(width: 3),
if (isDownloaded) Icon(Icons.download_rounded, size: iconSize, color: Colors.white),
],
diff --git a/lib/widgets/ebook_reader_view.dart b/lib/widgets/ebook_reader_view.dart
index 774d07a5..041cdd74 100644
--- a/lib/widgets/ebook_reader_view.dart
+++ b/lib/widgets/ebook_reader_view.dart
@@ -9,6 +9,7 @@ import 'package:url_launcher/url_launcher.dart';
import 'dictionary_sheet.dart';
import '../services/dictionary_service.dart';
import 'package:provider/provider.dart';
+import 'package:shared_preferences/shared_preferences.dart';
import '../l10n/app_localizations.dart';
import '../providers/auth_provider.dart';
import '../providers/library_provider.dart';
@@ -127,6 +128,11 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
String? _bgCfi;
bool _bgDrifted = false;
String? _initialCfi;
+ // Set when the saved spot is another app's format (AudioBooth saves a JSON
+ // locator): the reader opens at the start and moves to this percentage once
+ // epub.js can map percentages to pages.
+ double? _pendingPercentJump;
+ String? _firstShownCfi;
bool _showControls = false;
List<EpubChapter> _chapters = [];
double _progress = 0;
@@ -158,6 +164,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// Track touch start position to distinguish taps from swipes
double? _touchDownX;
double? _touchDownY;
+ DateTime? _touchDownAt;
double? _ptrDownX;
double? _ptrDownY;
@@ -227,6 +234,12 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
DateTime? _readAlongSeekAt;
DateTime? _readAlongLastMatch;
bool _readAlongLost = false;
+ // You moved the page yourself while read along runs. The narration keeps
+ // its coloring wherever it is, but the page stops following it until you
+ // tap Back to narration or the narration reaches the page you are on.
+ bool _readAlongBrowsing = false;
+ DateTime _readAlongBrowseAt = DateTime.fromMillisecondsSinceEpoch(0);
+ DateTime? _readAlongSeenSince;
DateTime _readAlongOffPageLog = DateTime.fromMillisecondsSinceEpoch(0);
// Reader settings
@@ -249,6 +262,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// Page layout: auto shows two pages on wide screens (tablets), single forces
// one page, two forces a spread. Stored as index 0=auto/1=single/2=two.
EpubSpread _spread = EpubSpread.auto;
+ // Scroll down through the book instead of turning pages.
+ bool _scroll = false;
// 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;
@@ -278,6 +293,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
static const _kFont = 'ereader_font';
static const _kPinTop = 'ereader_pin_top';
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 _kBarAction = 'ereader_bar_action';
// Gates the WebView mount until the entering route animation completes, so
@@ -330,8 +347,16 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// Volume-key turns are ignored while auto scroll runs: the blind is already
// showing the next page, and a turn underneath it leaves that page unread.
late final EreaderVolumeNav _volumeNav = EreaderVolumeNav(
- onPrev: () { if (!_autoScroll && !_readAlongOn) _epubController?.prev(); },
- onNext: () { if (!_autoScroll && !_readAlongOn) _epubController?.next(); },
+ onPrev: () {
+ if (_autoScroll) return;
+ _readAlongUserMoved('volume key');
+ _epubController?.prev();
+ },
+ onNext: () {
+ if (_autoScroll) return;
+ _readAlongUserMoved('volume key');
+ _epubController?.next();
+ },
);
@override
@@ -465,6 +490,7 @@ 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;
_themeId = await ScopedPrefs.getString(_kTheme) ?? '';
_fontId = await ScopedPrefs.getString(_kFont) ?? 'original';
_pinTop = await ScopedPrefs.getBool(_kPinTop) ?? false;
@@ -563,6 +589,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
setState(() {
// Re-open at the current page after the layout rebuild.
_initialCfi = _currentCfi ?? _initialCfi;
+ _pendingPercentJump = null;
_spread = mode;
_locationsReady = false;
_viewerKey++; // force the viewer to remount with the new spread
@@ -572,6 +599,28 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
await ScopedPrefs.setInt(_kSpread, index);
}
+ Future<void> _updateScroll(bool on) async {
+ if (on == _scroll) return;
+ // The rolling blind and the gliding page are different machinery, and
+ // read along follows the page, so both stop rather than carry over.
+ if (_autoScroll) await _toggleAutoScroll();
+ if (_readAlongOn) _stopReadAlong();
+ if (!mounted) return;
+ setState(() {
+ // Re-open at the current page after the layout rebuild.
+ _initialCfi = _currentCfi ?? _initialCfi;
+ _pendingPercentJump = null;
+ _scroll = on;
+ _locationsReady = false;
+ _chapterPage = 0;
+ _chapterPageTotal = 0;
+ _viewerKey++;
+ _didLoadRescue = false;
+ _didInitViewer = false;
+ });
+ await (await SharedPreferences.getInstance()).setBool(_kScroll, on);
+ }
+
EpubTheme _buildTheme(_ReaderPalette p) {
// No foregroundColor on purpose: all colors live in customCss. The
// plugin's loadBook ends with updateTheme(background, foreground) WITHOUT
@@ -615,6 +664,11 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
'html': {'background': '${p.bg} !important'},
'body': body,
'p, div, span, h1, h2, h3, h4, h5, h6, li, td, th, a, em, strong, blockquote': textRule,
+ // A picture with a fixed width wider than the page spilled past its
+ // column and showed on the next page as a strip down the left edge.
+ // Contain keeps a narrowed picture's shape without resizing small
+ // inline ones.
+ 'img': {'max-width': '100% !important', 'object-fit': 'contain'},
},
);
}
@@ -755,10 +809,10 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
return;
}
_lastReaderTap = now;
- // Read along owns the page: a turn underneath it would only be pulled
- // back to the narration. Every tap reaches the controls instead, so the
- // button to switch it off is always one tap away.
- final action = _readAlongOn
+ // 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}');
@@ -781,8 +835,10 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
void _commitReaderTap(String action) {
if (action == 'prev') {
+ _readAlongUserMoved('tap');
_epubController?.prev();
} else if (action == 'next') {
+ _readAlongUserMoved('tap');
_epubController?.next();
} else {
_toggleControls();
@@ -866,14 +922,29 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
}
final progressData = lib.getProgressData(widget.itemId);
final loc = progressData?['ebookLocation'] as String?;
- if (_initialCfi == null && loc != null && loc.isNotEmpty) {
- _initialCfi = loc;
- }
// Seed the displayed percent from saved progress so the bar shows the
// resume position until epub.js's location index is ready, and so the
// pre-index save keeps this value instead of regressing to 0.
final savedProgress = (progressData?['ebookProgress'] as num?)?.toDouble();
if (savedProgress != null) _progress = savedProgress.clamp(0.0, 1.0);
+ if (_initialCfi == null && loc != null && loc.isNotEmpty) {
+ // Only an epub CFI can be opened directly, the same check the ABS web
+ // reader makes. Anything else in this field came from another app.
+ if (loc.startsWith('epubcfi(')) {
+ _initialCfi = loc;
+ } else {
+ debugPrint('[EbookReader] saved location is not a CFI '
+ '(${loc.length} chars, starts "${loc.substring(0, min(10, loc.length))}") '
+ 'item=${widget.itemId} - opening at saved percent=$savedProgress');
+ if (savedProgress != null && savedProgress > 0) {
+ _pendingPercentJump = savedProgress.clamp(0.0, 1.0);
+ }
+ }
+ } else if (_initialCfi == null && savedProgress != null && savedProgress > 0 && savedProgress < 1) {
+ // A percent with no place to go with it: open there rather than at
+ // the start, which would then be saved over the real spot.
+ _pendingPercentJump = savedProgress;
+ }
}
/// The file is on the device now, but the offline lists only know records.
@@ -892,6 +963,40 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
await downloads.keepEbook(api: api, itemId: widget.itemId);
}
+ /// Takes the server's place in the book when it differs from the phone's:
+ /// the web reader or another device may have moved on, and a BookOrbit
+ /// library refresh carries no ebook position at all, which left the reader
+ /// starting over and then saving the start on top of the real spot. A place
+ /// this phone hasn't sent yet wins, and a slow server keeps the phone's.
+ Future<void> _pullServerPosition(ApiService api) async {
+ if (widget.openAtCfi != null || !mounted) return;
+ final lib = context.read<LibraryProvider>();
+ if (lib.isOffline) return;
+ try {
+ final pending = await ProgressSyncService().getPendingEbookProgress();
+ if (pending.containsKey(widget.itemId)) return;
+ final server = await api
+ .getItemProgress(widget.itemId)
+ .timeout(const Duration(seconds: 3), onTimeout: () => null);
+ if (!mounted) return;
+ final loc = server?['ebookLocation'] as String?;
+ if (loc == null || !loc.startsWith('epubcfi(')) return;
+ final local = lib.getProgressData(widget.itemId);
+ if (local?['ebookLocation'] == loc) return;
+ final progress = (server!['ebookProgress'] as num?)?.toDouble() ??
+ (local?['ebookProgress'] as num?)?.toDouble() ??
+ 0;
+ debugPrint('[EbookReader] taking the server position item=${widget.itemId} '
+ '(phone had ${local?['ebookLocation'] == null ? 'none' : 'another'})');
+ lib.applyLocalEbookProgress(widget.itemId, location: loc, progress: progress);
+ _initialCfi = null;
+ _pendingPercentJump = null;
+ _loadInitialLocation();
+ } catch (e) {
+ debugPrint('[EbookReader] server position check failed: $e');
+ }
+ }
+
Future<void> _downloadAndOpen() async {
try {
final auth = context.read<AuthProvider>();
@@ -907,6 +1012,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
'cached=${await isEbookCached(widget.itemId, widget.ebookFile)} playing=$playing');
final file = await fetchEbookToCache(api, widget.itemId, widget.ebookFile, widget.title);
unawaited(_rememberForOffline(api));
+ await _pullServerPosition(api);
final len = file.existsSync() ? await file.length() : 0;
final locations = await loadCachedLocations(file);
debugPrint('[EbookReader] file ready item=${widget.itemId} bytes=$len '
@@ -1438,6 +1544,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
}
void _navigateToChapter(String href) {
+ _readAlongUserMoved('chapter');
final escaped = href.replaceAll("'", "\\'");
_epubController?.webViewController?.evaluateJavascript(
source: '''
@@ -1676,6 +1783,19 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
),
const SizedBox(height: 12),
+ SwitchListTile(
+ contentPadding: EdgeInsets.zero,
+ title: Text(l.readerScrollMode, style: tt.bodyMedium),
+ subtitle: Text(l.readerScrollModeHint,
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ value: _scroll,
+ onChanged: (v) {
+ setSheetState(() {});
+ _updateScroll(v);
+ },
+ ),
+ 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),
@@ -1693,10 +1813,13 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
],
selected: {_spreadModes.indexOf(_spread)},
showSelectedIcon: false,
- onSelectionChanged: (s) {
- setSheetState(() {});
- _updateSpread(s.first);
- },
+ // Pages side by side don't apply to a scrolling book.
+ onSelectionChanged: _scroll
+ ? null
+ : (s) {
+ setSheetState(() {});
+ _updateSpread(s.first);
+ },
),
),
SwitchListTile(
@@ -2672,9 +2795,16 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
var hay = normChars.join('');
var needle = excerpt.toLowerCase().replace(/\s+/g,' ').trim();
var pos = hay.indexOf(needle);
+ var rawStart = -1, rawEnd = -1;
+ if (pos !== -1) { rawStart = map[pos]; rawEnd = map[pos + needle.length - 1] + 1; }
+ else {
+ var sq = needle.replace(/ /g, ''), sh = [], smap = [];
+ for (var z = 0; z < hay.length; z++) { if (hay[z] !== ' ') { sh.push(hay[z]); smap.push(map[z]); } }
+ var spos = sq.length >= 8 ? sh.join('').indexOf(sq) : -1;
+ if (spos !== -1) { pos = spos; rawStart = smap[spos]; rawEnd = smap[spos + sq.length - 1] + 1; dbg.squeezed = true; }
+ }
dbg.pos = pos; dbg.hayLen = hay.length;
if (pos !== -1 && nodes.length) {
- var rawStart = map[pos], rawEnd = map[pos + needle.length - 1] + 1;
var locate = function(off){
for (var q=0;q<nodes.length;q++){ var e2=nodes[q]; if (off < e2.start + e2.len) return {node:e2.node, offset:off - e2.start}; }
var last = nodes[nodes.length-1]; return {node:last.node, offset:last.len};
@@ -3994,6 +4124,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
_readAlongAllowBack = true;
_readAlongLastMatch = DateTime.now();
_readAlongLost = false;
+ _readAlongBrowsing = false;
_readAlongSeekAt = null;
ScreenWake.hold('reader', true);
_readAlongTimer?.cancel();
@@ -4190,6 +4321,19 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
/// The same transcript sync adjuster the player overlay has, for tuning
/// read along against Bluetooth latency without leaving the reader. Lives
/// in the bottom chrome, so it is there whenever the controls are.
+ Widget _backToNarrationButton(Color accent) {
+ return FilledButton.tonalIcon(
+ onPressed: _backToNarration,
+ icon: const Icon(Icons.my_location_rounded, size: 16),
+ label: Text(AppLocalizations.of(context)!.readAlongBackToNarration),
+ style: FilledButton.styleFrom(
+ visualDensity: VisualDensity.compact,
+ backgroundColor: accent.withValues(alpha: 0.18),
+ foregroundColor: accent,
+ ),
+ );
+ }
+
Widget _readAlongSyncPill(Color fg) {
final svc = LyricsService.instance;
// The start-up card already says what the pill would, in the middle of
@@ -4332,6 +4476,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
_readAlongSeekAt = null;
_readAlongLastMatch = null;
_readAlongLost = false;
+ _readAlongBrowsing = false;
_readAlongGateArmed = false;
_readAlongGateWaiting = false;
if (_readAlongPrep != null) {
@@ -4452,6 +4597,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// locating carries on, and the next hit clears the message.
final lastMatch = _readAlongLastMatch;
if (!_readAlongLost &&
+ !_readAlongBrowsing &&
lastMatch != null &&
player.isPlaying &&
DateTime.now().difference(lastMatch) > const Duration(seconds: 45)) {
@@ -4579,15 +4725,92 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
'x=${d['x']} of ${d['w']}');
}
_readAlongTurn(d['cfi'], d['dir'], why: 'word $wordIndex is off the page');
+ } else if (d['seen'] == true) {
+ _readAlongCaughtUp();
}
}
+ void _readAlongUserMoved(String how) {
+ if (!_readAlongOn) return;
+ _readAlongBrowseAt = DateTime.now();
+ _readAlongSeenSince = null;
+ if (_readAlongBrowsing) return;
+ debugPrint('[ReadAlong] browsing ($how) - not following the narration');
+ if (mounted) setState(() => _readAlongBrowsing = true);
+ }
+
+ /// Following picks back up once the narration has stayed on screen for a
+ /// moment with the page at rest. Judged straight after a tap, the old page
+ /// is still showing and the turn would be pulled back.
+ void _readAlongCaughtUp() {
+ if (!_readAlongBrowsing) return;
+ final now = DateTime.now();
+ final seen = _readAlongSeenSince ??= now;
+ if (now.difference(_readAlongBrowseAt) < const Duration(seconds: 2) ||
+ now.difference(seen) < const Duration(seconds: 1)) {
+ return;
+ }
+ debugPrint('[ReadAlong] the narration is on this page - following again');
+ if (mounted) setState(() => _readAlongBrowsing = false);
+ }
+
+ /// Back from browsing: show the sentence being read now. Straight there
+ /// when it is still lit in a loaded section; otherwise the same way a seek
+ /// finds it again.
+ Future<void> _backToNarration() async {
+ if (!_readAlongOn) return;
+ setState(() {
+ _readAlongBrowsing = false;
+ _showControls = false;
+ });
+ _readAlongAllowBack = true;
+ _readAlongTurnPending = null;
+ _readAlongStepped = false;
+ _readAlongMissSince = null;
+ _readAlongLastMatch = DateTime.now();
+ final wc = _epubController?.webViewController;
+ final raw = await wc?.evaluateJavascript(
+ source: 'window.__absorbRA ? __absorbRA.curCfi() : ""');
+ if (!mounted || !_readAlongOn) return;
+ if (raw is String && raw.startsWith('epubcfi(')) {
+ debugPrint('[ReadAlong] back to narration: showing the lit sentence');
+ _readAlongLastTurn = DateTime.now();
+ _epubController?.display(cfi: raw);
+ return;
+ }
+ debugPrint('[ReadAlong] back to narration: finding the sentence again');
+ await wc?.evaluateJavascript(source: 'window.__absorbRA && __absorbRA.clear()');
+ _readAlongAt = -1;
+ _readAlongLineStart = null;
+ _readAlongPageWords = 0;
+ _readAlongLastScan = DateTime.fromMillisecondsSinceEpoch(0);
+ }
+
+ /// Whether the section the narration was last found in ends on the page on
+ /// screen, so the next page starts the next section.
+ Future<bool> _readAlongSectionEndsHere() async {
+ final raw = await _epubController?.webViewController?.evaluateJavascript(
+ source: 'window.__absorbRA ? __absorbRA.atSectionEnd() : true');
+ return raw != false;
+ }
+
/// Every read-along page turn goes through here. Narration only moves
/// forward, so a turn backwards is refused unless a seek or a fresh start
/// re-anchored things - otherwise a sentence found earlier on the page and
/// a word on the next page take turns dragging the spread back and forth.
void _readAlongTurn(Object? cfi, Object? dir, {required String why}) {
if (dir is! num || dir == 0) return;
+ if (_readAlongBrowsing) {
+ _readAlongSeenSince = null;
+ return;
+ }
+ // A finger on a scrolling page is moving it; it is yours until you let go.
+ final down = _touchDownAt;
+ if (_scroll &&
+ down != null &&
+ DateTime.now().difference(down) < const Duration(seconds: 10)) {
+ return;
+ }
final back = dir < 0;
if (back && !_readAlongAllowBack) {
debugPrint('[ReadAlong] not turning back: $why');
@@ -4682,6 +4905,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
}
if (d['visible'] == false) {
_readAlongTurn(d['cfi'], d['dir'], why: 'sentence is off the page');
+ } else if (d['seen'] == true) {
+ _readAlongCaughtUp();
}
return;
}
@@ -4690,6 +4915,9 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// Not in the rendered pages: an exact line can be found globally (chapter
// crossings land here); a whisper line just waits for the next one.
if (!exact) return;
+ // While you read elsewhere the narration moving into a section that isn't
+ // loaded is expected, and the step or scan below would move your page.
+ if (_readAlongBrowsing) return;
// That scan loads every section of the book, which takes seconds and
// stalls the page while it runs, and it lands on the section start, not
// the sentence. One miss is usually a sentence sitting off the current
@@ -4704,10 +4932,17 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// Narration runs forward, and the next sentence not being in the rendered
// pages usually means it starts the next section - which is simply the
// next page. Step once and look again before paying for a scan.
+ // Only when the section really ends on this page, though: mid-section
+ // the miss is a sentence that didn't match the page text, and stepping
+ // turned the page away and straight back again on the next sentence.
if (!unanchored && !_readAlongStepped) {
_readAlongStepped = true;
- _readAlongTurn(null, 1, why: 'sentence is not on this page, trying the next');
- return;
+ if (await _readAlongSectionEndsHere()) {
+ if (!mounted || !_readAlongOn) return;
+ _readAlongTurn(null, 1, why: 'sentence is not on this page, trying the next');
+ return;
+ }
+ debugPrint('[ReadAlong] not turning: the section goes on past this page');
}
final missing = now.difference(_readAlongMissSince!);
final sinceTurn = now.difference(_readAlongLastTurn);
@@ -4730,6 +4965,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
window.__absorbSearchBook = sb;
}
var q = needle.toLowerCase().replace(/\s+/g,' ').trim();
+ var sq = q.replace(/ /g, '');
var items = (sb.spine && sb.spine.spineItems) ? sb.spine.spineItems : [];
var found = '';
for (var i = 0; i < items.length; i++) {
@@ -4742,7 +4978,9 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
finally { try { item.unload(); } catch(e2){} }
await new Promise(function(r) { setTimeout(r, 0); });
if (!text) continue;
- if (text.toLowerCase().replace(/\s+/g,' ').indexOf(q) !== -1) { found = item.href || ''; break; }
+ var low = text.toLowerCase();
+ if (low.replace(/\s+/g,' ').indexOf(q) !== -1 ||
+ (sq.length >= 8 && low.replace(/\s+/g,'').indexOf(sq) !== -1)) { found = item.href || ''; break; }
}
return JSON.stringify({href: found});
''', arguments: {'needle': needle});
@@ -4990,6 +5228,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
dense: true,
onTap: () {
Navigator.pop(ctx);
+ _readAlongUserMoved('highlight');
_epubController?.display(cfi: pointCfi(h.cfi));
},
onLongPress: () => _addNoteToAnnotation(h),
@@ -5038,6 +5277,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
dense: true,
onTap: () {
Navigator.pop(ctx);
+ _readAlongUserMoved('bookmark');
_epubController?.display(cfi: pointCfi(bm.cfi));
},
onLongPress: () => _addNoteToAnnotation(bm),
@@ -5936,8 +6176,8 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
if (file != null) saveCachedLocations(file, json);
},
displaySettings: EpubDisplaySettings(
- flow: EpubFlow.paginated,
- spread: _spread,
+ flow: _scroll ? EpubFlow.scrolled : EpubFlow.paginated,
+ spread: _scroll ? EpubSpread.none : _spread,
// Swipe-to-turn via epub.js's snap manager is janky inside the
// WebView and never fires on iOS, so it's off. Page turns come
// from edge taps; horizontal drags are swallowed below.
@@ -5962,6 +6202,19 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
// so its refresh got page/chapter but percentage=0 - and no
// relocated fires until a page turn. Recompute now it can.
if (_didStartFind) _refreshLocationAfterJump();
+ // Index built after the first paint: make the percent jump now.
+ // A cached index lands before the first paint, and the load
+ // rescue below makes the jump instead, so its start re-display
+ // can't undo it.
+ final jump = _pendingPercentJump;
+ if (jump != null && _didLoadRescue) {
+ _pendingPercentJump = null;
+ _epubController?.toProgressPercentage(jump);
+ }
+ },
+ onLoadError: (message) {
+ if (!mounted) return;
+ setState(() => _error = AppLocalizations.of(context)!.readerCouldNotOpen);
},
suppressNativeContextMenu: true,
onSelection: _onSelection,
@@ -5979,7 +6232,9 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
if (!_didLoadRescue) {
_didLoadRescue = true;
final once = _initialCfi;
+ var rescue = 'start';
if (once != null && once.isNotEmpty) {
+ rescue = 'cfi';
_initialCfi = null;
_epubController?.display(cfi: once);
// Safe to re-display: _didLoadRescue is already set, so the
@@ -5991,6 +6246,10 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
if (mounted) _epubController?.display(cfi: settle);
});
}
+ } else if (_pendingPercentJump != null && _locationsReady) {
+ rescue = 'percent';
+ _epubController?.toProgressPercentage(_pendingPercentJump!);
+ _pendingPercentJump = null;
} else {
// First open (no saved position) - the same blank-first-paint
// can happen here, but display(cfi:) needs a target, so force
@@ -5998,8 +6257,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
_epubController?.webViewController?.evaluateJavascript(
source: 'try{rendition.display();}catch(e){}');
}
- debugPrint('[EbookReader] onEpubLoaded item=${widget.itemId} '
- 'rescue=${once != null && once.isNotEmpty ? "cfi" : "start"}');
+ debugPrint('[EbookReader] onEpubLoaded item=${widget.itemId} rescue=$rescue');
}
if (!_didInitViewer) {
_didInitViewer = true;
@@ -6044,8 +6302,16 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
return;
}
_currentCfi = value.startCfi;
+ _firstShownCfi ??= value.startCfi;
_updateBookmarkState();
_repaintHighlightMarks();
+ // The start page shown while waiting to jump to another app's
+ // saved percentage isn't the reader's spot - don't save it.
+ // Turning off it (or a find / read along move) drops the jump.
+ if (_pendingPercentJump != null) {
+ if (value.startCfi == _firstShownCfi) return;
+ _pendingPercentJump = null;
+ }
if (_locationsReady) {
// Trust the percentage only once epub.js has built its
// location index. Before that it reports a bogus spine
@@ -6063,6 +6329,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
onTouchDown: (x, y) {
_touchDownX = x;
_touchDownY = y;
+ _touchDownAt = DateTime.now();
},
onTouchUp: (x, y) {
// onTouchDown doesn't fire reliably on iOS; if we never got a
@@ -6072,7 +6339,15 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
final dy = _touchDownY != null ? (y - _touchDownY!).abs() : 0.0;
_touchDownX = null;
_touchDownY = null;
- if (dx > 0.05 || dy > 0.05) return;
+ _touchDownAt = null;
+ if (dx > 0.05 || dy > 0.05) {
+ // A swipe turns the page on Android, and a drag scrolls it
+ // in scroll mode.
+ if (_scroll ? dy > 0.05 : dx > dy) {
+ _readAlongUserMoved(_scroll ? 'scroll' : 'swipe');
+ }
+ return;
+ }
_readerTapAt(x, 'touch');
},
))),
@@ -6138,7 +6413,11 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
if (_readAlongOn)
Padding(
padding: const EdgeInsets.only(bottom: 6),
- child: Center(child: _readAlongSyncPill(fg)),
+ child: Center(
+ child: _readAlongBrowsing
+ ? _backToNarrationButton(accent)
+ : _readAlongSyncPill(fg),
+ ),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
diff --git a/lib/widgets/ebook_router.dart b/lib/widgets/ebook_router.dart
index 36eef047..36fa4402 100644
--- a/lib/widgets/ebook_router.dart
+++ b/lib/widgets/ebook_router.dart
@@ -1,6 +1,11 @@
+import 'dart:io';
+
import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
import '../l10n/app_localizations.dart';
+import '../providers/auth_provider.dart';
import '../services/ebook_cache.dart';
+import '../services/image_epub.dart';
import '../services/server_backend.dart';
import 'comic_reader_view.dart';
import 'ebook_reader_view.dart';
@@ -44,10 +49,15 @@ Future<void> openEbookReader(
final ext = ebookExt(ebookFile);
final Widget viewer;
if (ext == 'epub') {
- viewer = EbookReaderView(
- itemId: itemId, title: title, ebookFile: ebookFile, openAtCfi: openAtCfi,
- findText: findText, findChapterHint: findChapterHint,
- findPositionSeconds: findPositionSeconds, startReadAlong: startReadAlong);
+ viewer = _EpubGate(
+ itemId: itemId,
+ title: title,
+ ebookFile: ebookFile,
+ epubReader: () => EbookReaderView(
+ itemId: itemId, title: title, ebookFile: ebookFile, openAtCfi: openAtCfi,
+ findText: findText, findChapterHint: findChapterHint,
+ findPositionSeconds: findPositionSeconds, startReadAlong: startReadAlong),
+ );
} else if (comicEbookFormats.contains(ext)) {
viewer = ComicReaderView(itemId: itemId, title: title, ebookFile: ebookFile);
} else if (ext == 'pdf') {
@@ -63,3 +73,74 @@ Future<void> openEbookReader(
MaterialPageRoute(builder: (_) => viewer),
);
}
+
+/// Gets an EPUB onto the phone, then opens it in the EPUB reader, or in the
+/// comic reader when its pages are all pictures (a scanned or comic-style
+/// book has no text to lay out, so the EPUB reader can only shrink it).
+class _EpubGate extends StatefulWidget {
+ final String itemId;
+ final String title;
+ final Map<String, dynamic> ebookFile;
+ final Widget Function() epubReader;
+
+ const _EpubGate({
+ required this.itemId,
+ required this.title,
+ required this.ebookFile,
+ required this.epubReader,
+ });
+
+ @override
+ State<_EpubGate> createState() => _EpubGateState();
+}
+
+class _EpubGateState extends State<_EpubGate> {
+ bool _decided = false;
+ File? _imageEpub;
+
+ @override
+ void initState() {
+ super.initState();
+ _decide();
+ }
+
+ // Any failure here falls through to the EPUB reader, which fetches the
+ // file again and shows its own error.
+ Future<void> _decide() async {
+ File? imageEpub;
+ try {
+ final api = context.read<AuthProvider>().apiService;
+ if (api != null) {
+ final file = await fetchEbookToCache(api, widget.itemId, widget.ebookFile, widget.title);
+ final pages = await imageEpubPageCount(file);
+ if (pages > 0) {
+ debugPrint('[EbookRouter] ${widget.itemId} is $pages page pictures - opening as a comic');
+ imageEpub = file;
+ }
+ }
+ } catch (e) {
+ debugPrint('[EbookRouter] image check skipped for ${widget.itemId}: $e');
+ }
+ if (mounted) setState(() { _imageEpub = imageEpub; _decided = true; });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ if (!_decided) {
+ return Scaffold(
+ appBar: AppBar(title: Text(widget.title, maxLines: 1, overflow: TextOverflow.ellipsis)),
+ body: const Center(child: CircularProgressIndicator(strokeWidth: 2)),
+ );
+ }
+ final imageEpub = _imageEpub;
+ if (imageEpub != null) {
+ return ComicReaderView(
+ itemId: widget.itemId,
+ title: widget.title,
+ ebookFile: widget.ebookFile,
+ imageEpub: imageEpub,
+ );
+ }
+ return widget.epubReader();
+ }
+}
diff --git a/lib/widgets/library_books_tab.dart b/lib/widgets/library_books_tab.dart
index 1be8a7c5..9146c77b 100644
--- a/lib/widgets/library_books_tab.dart
+++ b/lib/widgets/library_books_tab.dart
@@ -144,7 +144,8 @@ class LibraryBooksTab extends StatelessWidget {
LibraryFilter.abridged ||
LibraryFilter.issues ||
LibraryFilter.feedOpen ||
- LibraryFilter.explicit => l.libraryNoItemsMatchingFilter,
+ LibraryFilter.explicit ||
+ LibraryFilter.readStatus => l.libraryNoItemsMatchingFilter,
LibraryFilter.missingMetadata => l.libraryNoBooksMissingMetadata,
LibraryFilter.genre => l.libraryNoBooksInGenre(genreFilter ?? l.genre.toLowerCase()),
LibraryFilter.tag => l.libraryNoBooksWithTag(tagFilter ?? l.tag.toLowerCase()),
diff --git a/lib/widgets/library_grid_tiles.dart b/lib/widgets/library_grid_tiles.dart
index 19d9803b..9a50775c 100644
--- a/lib/widgets/library_grid_tiles.dart
+++ b/lib/widgets/library_grid_tiles.dart
@@ -82,6 +82,7 @@ class _GridBookTileState extends State<GridBookTile> {
final isDownloaded = _dl.isDownloaded(itemId);
final hasEbook = PlayerSettings.showEbookBadge && hasEbookFile(widget.item);
final isFinished = lib.getProgressData(itemId)?['isFinished'] == true;
+ final isSkimmed = lib.getProgressData(itemId)?['skimmed'] == true;
final isSubscribed = lib.isPodcastLibrary && lib.isPodcastSubscribed(itemId);
final unfinishedCount =
lib.isPodcastLibrary ? lib.getUnfinishedEpisodeCount(widget.item) : 0;
@@ -224,6 +225,7 @@ class _GridBookTileState extends State<GridBookTile> {
child: CoverStateBadges(
isDownloaded: isDownloaded,
isFinished: isFinished,
+ isSkimmed: isSkimmed,
),
),
@@ -743,6 +745,8 @@ class GridListTile extends StatelessWidget {
final List<String> bookIds;
final int count;
final bool isPlaylist;
+ /// A BookOrbit Smart Scope: its books come from saved rules, not picks.
+ final bool isSmartScope;
final double coverAspectRatio;
final VoidCallback onTap;
@@ -753,6 +757,7 @@ class GridListTile extends StatelessWidget {
required this.count,
required this.isPlaylist,
required this.onTap,
+ this.isSmartScope = false,
this.coverAspectRatio = 1.0,
});
@@ -784,22 +789,40 @@ class GridListTile extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- _StackedCovers(
- coverUrls: coverUrls.isEmpty ? const [null] : coverUrls,
- numBooks: count,
- mediaHeaders: lib.mediaHeaders,
- cs: cs,
- seriesProgress: progress,
- booksFinished: finished,
- coverAspectRatio: coverAspectRatio,
- ),
+ Stack(children: [
+ _StackedCovers(
+ coverUrls: coverUrls.isEmpty ? const [null] : coverUrls,
+ numBooks: count,
+ mediaHeaders: lib.mediaHeaders,
+ cs: cs,
+ seriesProgress: progress,
+ booksFinished: finished,
+ coverAspectRatio: coverAspectRatio,
+ ),
+ if (isSmartScope)
+ Positioned(
+ top: 6,
+ left: 6,
+ child: Container(
+ padding: const EdgeInsets.all(4),
+ decoration: BoxDecoration(
+ color: cs.primaryContainer,
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Icon(Icons.filter_alt_rounded,
+ size: 14 * coverGridTextScale(context), color: cs.onPrimaryContainer),
+ ),
+ ),
+ ]),
const SizedBox(height: 5),
Row(
children: [
Icon(
isPlaylist
? Icons.playlist_play_rounded
- : Icons.collections_bookmark_rounded,
+ : isSmartScope
+ ? Icons.filter_alt_rounded
+ : Icons.collections_bookmark_rounded,
size: 12 * coverGridTextScale(context),
color: cs.onSurfaceVariant),
const SizedBox(width: 3),
@@ -820,7 +843,9 @@ class GridListTile extends StatelessWidget {
Text(
isPlaylist
? l.playlistDetailItemCount(count)
- : l.collectionDetailBookCount(count),
+ : isSmartScope
+ ? l.smartScopeBookCount(count)
+ : l.collectionDetailBookCount(count),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: tt.labelSmall?.copyWith(
diff --git a/lib/widgets/library_lists_tab.dart b/lib/widgets/library_lists_tab.dart
index 8bc49830..2e6e872f 100644
--- a/lib/widgets/library_lists_tab.dart
+++ b/lib/widgets/library_lists_tab.dart
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import '../l10n/app_localizations.dart';
import '../screens/library_screen.dart';
+import '../services/server_backend.dart';
import 'library_grid_tiles.dart';
/// Library "Lists" tab: a stacked-cover grid of all collections and playlists
@@ -60,6 +61,8 @@ class LibraryListsTab extends StatelessWidget {
final cs = Theme.of(context).colorScheme;
final tt = Theme.of(context).textTheme;
final l = AppLocalizations.of(context)!;
+ // BookOrbit has collections and Smart Scopes, no playlists.
+ final bookOrbit = ServerBackend.active.isBookOrbit;
final headers = <Widget>[if (headerSliver != null) headerSliver!];
Widget body;
@@ -84,7 +87,12 @@ class LibraryListsTab extends StatelessWidget {
size: 56,
color: cs.onSurfaceVariant.withValues(alpha: 0.3)),
const SizedBox(height: 12),
- Text(hasError ? l.listsLoadFailed : l.listsNone,
+ Text(
+ hasError
+ ? l.listsLoadFailed
+ : bookOrbit
+ ? l.listsNoneBookOrbit
+ : l.listsNone,
style: tt.bodyLarge
?.copyWith(color: cs.onSurfaceVariant)),
const SizedBox(height: 6),
@@ -93,8 +101,12 @@ class LibraryListsTab extends StatelessWidget {
const EdgeInsets.symmetric(horizontal: 40),
child: Text(
hasError
- ? l.listsLoadFailedHint
- : l.listsNoneHint,
+ ? bookOrbit
+ ? l.listsLoadFailedHintBookOrbit
+ : l.listsLoadFailedHint
+ : bookOrbit
+ ? l.listsNoneHintBookOrbit
+ : l.listsNoneHint,
textAlign: TextAlign.center,
style: tt.bodySmall?.copyWith(
color: cs.onSurfaceVariant
@@ -139,12 +151,15 @@ class LibraryListsTab extends StatelessWidget {
: _collectionBookIds(entry);
final count = isPlaylist
? (entry['items'] as List<dynamic>?)?.length ?? ids.length
- : (entry['books'] as List<dynamic>?)?.length ?? ids.length;
+ : ((entry['bookOrbit'] as Map?)?['total'] as num?)?.toInt() ??
+ (entry['books'] as List<dynamic>?)?.length ??
+ ids.length;
return GridListTile(
name: name,
bookIds: ids,
count: count,
isPlaylist: isPlaylist,
+ isSmartScope: (entry['bookOrbit'] as Map?)?['smartScope'] == true,
coverAspectRatio: coverAspectRatio,
onTap: () =>
isPlaylist ? onOpenPlaylist(entry) : onOpenCollection(entry),
diff --git a/lib/widgets/library_search_results.dart b/lib/widgets/library_search_results.dart
index 7b4fccfd..7376ba65 100644
--- a/lib/widgets/library_search_results.dart
+++ b/lib/widgets/library_search_results.dart
@@ -44,6 +44,7 @@ class BookResultTile extends StatelessWidget {
final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;
final isDownloaded = itemId != null && DownloadService().isDownloaded(itemId);
final isFinished = itemId != null && lib.getProgressData(itemId)?['isFinished'] == true;
+ final isSkimmed = itemId != null && lib.getProgressData(itemId)?['skimmed'] == true;
String? coverUrl;
final bookOrbitApi = context.read<AuthProvider>().apiService;
@@ -126,6 +127,7 @@ class BookResultTile extends StatelessWidget {
child: CoverStateBadges(
isDownloaded: isDownloaded,
isFinished: isFinished,
+ isSkimmed: isSkimmed,
iconOnly: true,
iconSize: 14,
),
diff --git a/lib/widgets/library_sort_filter_sheet.dart b/lib/widgets/library_sort_filter_sheet.dart
index ff19c24b..f621cad7 100644
--- a/lib/widgets/library_sort_filter_sheet.dart
+++ b/lib/widgets/library_sort_filter_sheet.dart
@@ -2,6 +2,8 @@ import 'dart:async';
import 'package:flutter/material.dart';
import '../l10n/app_localizations.dart';
import '../screens/library_screen.dart';
+import '../utils/read_status.dart';
+import '../services/server_backend.dart';
/// Which library tab the sort/filter sheet is being shown for.
enum LibraryTab { library, series, authors, narrators, lists }
@@ -45,6 +47,11 @@ class SortFilterSheet extends StatefulWidget {
final bool canAccessExplicitContent;
final LibraryTab libraryTab;
final VoidCallback? onUpcomingReleases;
+ /// Lists tab: start a new collection, playlist or BookOrbit Smart Scope.
+ /// Null hides the row (no permission, or the server has no such list).
+ final VoidCallback? onNewCollection;
+ final VoidCallback? onNewPlaylist;
+ final VoidCallback? onNewSmartScope;
/// Authors tab only, and only when the user may write metadata - the sheet
/// hides the row entirely when this is null.
final VoidCallback? onMatchAllAuthors;
@@ -76,6 +83,9 @@ class SortFilterSheet extends StatefulWidget {
this.libraryTab = LibraryTab.library,
this.onMatchAllAuthors,
this.onUpcomingReleases,
+ this.onNewCollection,
+ this.onNewPlaylist,
+ this.onNewSmartScope,
this.currentSeriesFilter = SeriesFilter.none,
this.onSeriesFilterChanged,
});
@@ -87,6 +97,7 @@ class SortFilterSheet extends StatefulWidget {
class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProviderStateMixin {
late TabController _tabCtrl;
bool _genreExpanded = false;
+ bool _readStatusExpanded = false;
bool _tagExpanded = false;
bool _missingMetadataExpanded = false;
bool _seriesExpanded = false;
@@ -121,6 +132,9 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv
if (mounted) setState(() {});
});
if (widget.currentFilter == LibraryFilter.genre) _genreExpanded = true;
+ if (widget.currentFilter == LibraryFilter.readStatus) {
+ _readStatusExpanded = true;
+ }
if (widget.currentFilter == LibraryFilter.tag) _tagExpanded = true;
if (widget.currentFilter == LibraryFilter.missingMetadata) {
_missingMetadataExpanded = true;
@@ -210,8 +224,9 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv
return widget.onMatchAllAuthors != null ? 330 : 230;
}
if (widget.libraryTab == LibraryTab.narrators) return 180;
- if (widget.libraryTab == LibraryTab.lists) return 230;
+ if (widget.libraryTab == LibraryTab.lists) return 230 + _newListRows * 76;
if (_genreExpanded ||
+ _readStatusExpanded ||
_tagExpanded ||
_missingMetadataExpanded ||
_seriesExpanded ||
@@ -315,6 +330,25 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv
),
),
],
+ if (widget.libraryTab == LibraryTab.lists && _newListRows > 0) ...[
+ const Divider(height: 24),
+ if (widget.onNewCollection != null)
+ _actionRow(
+ cs,
+ Icons.collections_bookmark_rounded,
+ l.newCollection,
+ ServerBackend.active.isBookOrbit
+ ? l.listsNewCollectionSubtitle
+ : l.listsNewCollectionNeedsBookSubtitle,
+ widget.onNewCollection!,
+ ),
+ if (widget.onNewPlaylist != null)
+ _actionRow(cs, Icons.playlist_add_rounded, l.newPlaylist, l.listsNewPlaylistSubtitle,
+ widget.onNewPlaylist!),
+ if (widget.onNewSmartScope != null)
+ _actionRow(cs, Icons.filter_alt_rounded, l.smartScopeNew, l.smartScopeNewSubtitle,
+ widget.onNewSmartScope!),
+ ],
if (widget.libraryTab == LibraryTab.series && widget.onUpcomingReleases != null) ...[
const Divider(height: 24),
GestureDetector(
@@ -349,6 +383,41 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv
);
}
+ int get _newListRows => [widget.onNewCollection, widget.onNewPlaylist, widget.onNewSmartScope]
+ .where((c) => c != null)
+ .length;
+
+ Widget _actionRow(ColorScheme cs, IconData icon, String title, String subtitle, VoidCallback onTap) {
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 8),
+ child: GestureDetector(
+ onTap: onTap,
+ child: Container(
+ padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
+ decoration: BoxDecoration(
+ color: cs.primary.withValues(alpha: 0.08),
+ borderRadius: BorderRadius.circular(14),
+ border: Border.all(color: cs.primary.withValues(alpha: 0.15)),
+ ),
+ child: Row(children: [
+ Icon(icon, size: 20, color: cs.primary),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(title, style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: cs.primary)),
+ Text(subtitle, style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant)),
+ ],
+ ),
+ ),
+ Icon(Icons.chevron_right_rounded, size: 20, color: cs.primary),
+ ]),
+ ),
+ ),
+ );
+ }
+
List<(LibrarySort, String, IconData)> _getSortOptions(AppLocalizations l) {
switch (widget.libraryTab) {
case LibraryTab.series:
@@ -483,6 +552,20 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv
onTap: () => widget.onFilterChanged(filter),
);
}),
+ if (libraryFilterSupportedOnServer(LibraryFilter.readStatus))
+ ..._buildStringFilterSection(
+ cs: cs,
+ label: l.readStatusTitle,
+ icon: Icons.bookmark_rounded,
+ filter: LibraryFilter.readStatus,
+ values: bookOrbitReadStatuses,
+ expanded: _readStatusExpanded,
+ onToggle: () => setState(
+ () => _readStatusExpanded = !_readStatusExpanded,
+ ),
+ optionIcon: Icons.bookmark_outline_rounded,
+ valueLabel: (value) => readStatusLabel(l, value),
+ ),
..._buildSeriesFilterSection(cs, l),
..._buildNamedFilterSection(
cs: cs,
diff --git a/lib/widgets/new_list_flow.dart b/lib/widgets/new_list_flow.dart
new file mode 100644
index 00000000..71976501
--- /dev/null
+++ b/lib/widgets/new_list_flow.dart
@@ -0,0 +1,156 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+
+import '../l10n/app_localizations.dart';
+import '../providers/auth_provider.dart';
+import '../providers/library_provider.dart';
+import 'add_books_search_sheet.dart';
+import 'overlay_toast.dart';
+
+/// Starts a new collection or playlist from the Lists tab. Audiobookshelf
+/// refuses an empty collection, so there the books are picked first and the
+/// collection is made with them; a playlist, or a BookOrbit collection, can
+/// start empty with adding books offered as an option.
+Future<void> startNewList(BuildContext context, {required bool playlist}) async {
+ final l = AppLocalizations.of(context)!;
+ final lib = context.read<LibraryProvider>();
+ final auth = context.read<AuthProvider>();
+ final libraryId = lib.selectedLibraryId;
+ if (libraryId == null) return;
+ final needsBook = !playlist && !auth.isBookOrbit;
+ // The picker searches books; a podcast library's playlist starts empty.
+ final canPickBooks = !lib.isPodcastLibrary;
+
+ final choice = await showDialog<({String name, bool addBooks})>(
+ context: context,
+ builder: (_) => _NewListDialog(
+ title: playlist ? l.newPlaylist : l.newCollection,
+ hint: playlist ? l.playlistNameHint : l.collectionNameHint,
+ offerAddBooks: canPickBooks && !needsBook,
+ needsBook: needsBook,
+ ),
+ );
+ if (choice == null || !context.mounted) return;
+
+ if (needsBook) {
+ final picked = <String>[];
+ await AddBooksSearchSheet.show(
+ context,
+ title: choice.name,
+ libraryId: libraryId,
+ initialMemberIds: const {},
+ onAdd: (id) async {
+ if (!picked.contains(id)) picked.add(id);
+ return true;
+ },
+ onRemove: (id) async {
+ picked.remove(id);
+ return true;
+ },
+ );
+ if (!context.mounted) return;
+ if (picked.isEmpty) {
+ showOverlayToast(context, l.listsCollectionNeedsBook, icon: Icons.info_outline_rounded);
+ return;
+ }
+ final created = await lib.createCollection(choice.name, books: picked);
+ if (created == null && context.mounted) {
+ showOverlayToast(context, l.listsCreateFailed, icon: Icons.error_outline_rounded);
+ }
+ return;
+ }
+
+ final created = playlist ? await lib.createPlaylist(choice.name) : await lib.createCollection(choice.name);
+ if (!context.mounted) return;
+ if (created == null) {
+ showOverlayToast(context, l.listsCreateFailed, icon: Icons.error_outline_rounded);
+ return;
+ }
+ if (!choice.addBooks) return;
+ final id = '${created['id']}';
+ await AddBooksSearchSheet.show(
+ context,
+ title: choice.name,
+ libraryId: libraryId,
+ initialMemberIds: const {},
+ onAdd: (itemId) => playlist ? lib.addToPlaylist(id, itemId) : lib.addToCollection(id, itemId),
+ onRemove: (itemId) => playlist ? lib.removeFromPlaylist(id, itemId) : lib.removeFromCollection(id, itemId),
+ );
+}
+
+class _NewListDialog extends StatefulWidget {
+ final String title;
+ final String hint;
+ final bool offerAddBooks;
+ final bool needsBook;
+
+ const _NewListDialog({
+ required this.title,
+ required this.hint,
+ required this.offerAddBooks,
+ required this.needsBook,
+ });
+
+ @override
+ State<_NewListDialog> createState() => _NewListDialogState();
+}
+
+class _NewListDialogState extends State<_NewListDialog> {
+ final _name = TextEditingController();
+ bool _addBooks = true;
+
+ @override
+ void initState() {
+ super.initState();
+ _name.addListener(() => setState(() {}));
+ }
+
+ @override
+ void dispose() {
+ _name.dispose();
+ super.dispose();
+ }
+
+ void _submit() {
+ final name = _name.text.trim();
+ if (name.isEmpty) return;
+ Navigator.of(context).pop((name: name, addBooks: widget.offerAddBooks && _addBooks));
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final l = AppLocalizations.of(context)!;
+ final tt = Theme.of(context).textTheme;
+ return AlertDialog(
+ title: Text(widget.title),
+ content: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
+ TextField(
+ controller: _name,
+ autofocus: true,
+ textCapitalization: TextCapitalization.sentences,
+ decoration: InputDecoration(hintText: widget.hint),
+ onSubmitted: (_) => _submit(),
+ ),
+ if (widget.offerAddBooks)
+ SwitchListTile(
+ contentPadding: EdgeInsets.zero,
+ title: Text(l.listsAddBooksNow),
+ value: _addBooks,
+ onChanged: (v) => setState(() => _addBooks = v),
+ ),
+ if (widget.needsBook)
+ Padding(
+ padding: const EdgeInsets.only(top: 12),
+ child: Text(l.listsPickBooksNext, style: tt.bodySmall),
+ ),
+ ]),
+ actions: [
+ TextButton(onPressed: () => Navigator.of(context).pop(), child: Text(l.cancel)),
+ TextButton(
+ onPressed: _name.text.trim().isEmpty ? null : _submit,
+ child: Text(l.listsCreate),
+ ),
+ ],
+ );
+ }
+}
diff --git a/lib/widgets/playlist_detail_sheet.dart b/lib/widgets/playlist_detail_sheet.dart
index 2513d8ea..74d6a223 100644
--- a/lib/widgets/playlist_detail_sheet.dart
+++ b/lib/widgets/playlist_detail_sheet.dart
@@ -620,6 +620,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {
final progressKey = episodeId != null ? '$libraryItemId-$episodeId' : libraryItemId;
final progress = lib.getProgress(progressKey);
final isFinished = lib.getProgressData(progressKey)?['isFinished'] == true;
+ final isSkimmed = lib.getProgressData(progressKey)?['skimmed'] == true;
final isDownloaded = DownloadService().isDownloaded(progressKey);
String? episodeTitle;
@@ -685,7 +686,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {
if (isFinished || isDownloaded)
Positioned(
left: 0, right: 0, bottom: 0,
- child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished),
+ child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished, isSkimmed: isSkimmed),
),
]),
),
@@ -745,6 +746,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {
final progressKey = episodeId != null ? '$libraryItemId-$episodeId' : libraryItemId;
final progress = lib.getProgress(progressKey);
final isFinished = lib.getProgressData(progressKey)?['isFinished'] == true;
+ final isSkimmed = lib.getProgressData(progressKey)?['skimmed'] == true;
final isDownloaded = DownloadService().isDownloaded(progressKey);
String? episodeTitle;
@@ -800,7 +802,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {
if (isFinished || isDownloaded)
Positioned(
left: 0, right: 0, bottom: 0,
- child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished),
+ child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished, isSkimmed: isSkimmed),
),
]),
),
diff --git a/lib/widgets/section_detail_sheet.dart b/lib/widgets/section_detail_sheet.dart
index a0f5674f..6ba5969a 100644
--- a/lib/widgets/section_detail_sheet.dart
+++ b/lib/widgets/section_detail_sheet.dart
@@ -158,6 +158,8 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {
final isFinished = episodeId != null
? (lib.getEpisodeProgressData(itemId, episodeId)?['isFinished'] == true)
: (lib.getProgressData(itemId)?['isFinished'] == true);
+ final isSkimmed =
+ episodeId == null && lib.getProgressData(itemId)?['skimmed'] == true;
final isDownloaded = DownloadService()
.isDownloaded(episodeId != null ? '$itemId-$episodeId' : itemId);
final isOnAbsorbing = lib.isOnAbsorbingList(itemId);
@@ -185,7 +187,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {
if (isFinished || isDownloaded)
Positioned(
left: 0, right: 0, bottom: 0,
- child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished),
+ child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished, isSkimmed: isSkimmed),
),
]),
),
@@ -275,6 +277,8 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {
final isFinished = episodeId != null
? (lib.getEpisodeProgressData(itemId, episodeId)?['isFinished'] == true)
: (lib.getProgressData(itemId)?['isFinished'] == true);
+ final isSkimmed =
+ episodeId == null && lib.getProgressData(itemId)?['skimmed'] == true;
final isDownloaded = DownloadService()
.isDownloaded(episodeId != null ? '$itemId-$episodeId' : itemId);
@@ -295,7 +299,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {
if (isFinished || isDownloaded)
Positioned(
left: 0, right: 0, bottom: 0,
- child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished),
+ child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished, isSkimmed: isSkimmed),
),
]),
),
diff --git a/lib/widgets/series_books_sheet.dart b/lib/widgets/series_books_sheet.dart
index be960657..66a06455 100644
--- a/lib/widgets/series_books_sheet.dart
+++ b/lib/widgets/series_books_sheet.dart
@@ -28,6 +28,7 @@ import 'action_pill.dart';
import 'books_sheet_shared.dart';
import '../services/api_service.dart';
import '../utils/duration_format.dart';
+import '../utils/series_number_match.dart';
/// Show a bottom sheet with all books in a series, sorted by sequence.
/// Can be called from any screen.
@@ -894,9 +895,10 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {
);
if (proceed != true || !mounted) return;
- // Collect owned titles and ASINs for cross-referencing
+ // Collect owned titles, ASINs and series numbers for cross-referencing
final ownedTitles = <String>{};
final ownedAsins = <String>{};
+ final ownedNumbers = SeriesNumberOwnership();
for (final book in _books) {
final media = book['media'] as Map<String, dynamic>? ?? {};
final metadata = media['metadata'] as Map<String, dynamic>? ?? {};
@@ -904,6 +906,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {
final asin = metadata['asin'] as String? ?? '';
if (title.isNotEmpty) ownedTitles.add(title);
if (asin.isNotEmpty) ownedAsins.add(asin);
+ ownedNumbers.add(_getRawSequence(book), title, asin);
}
// Try to get a series ASIN from one of the books via Audnexus
@@ -970,6 +973,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {
seriesAsin: seriesAsin,
ownedTitles: ownedTitles,
ownedAsins: ownedAsins,
+ ownedNumbers: ownedNumbers,
);
}
@@ -1555,6 +1559,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {
final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;
final progress = lib.getProgress(bookId);
final isFinished = lib.getProgressData(bookId)?['isFinished'] == true;
+ final isSkimmed = lib.getProgressData(bookId)?['skimmed'] == true;
final isDownloaded = DownloadService().isDownloaded(bookId);
final isDownloading = DownloadService().isDownloading(bookId);
final downloadPct = (DownloadService().downloadProgress(bookId) * 100).clamp(0, 100).round();
@@ -1642,7 +1647,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {
),
if (isFinished || isDownloaded)
Positioned(left: 0, right: 0, bottom: 0,
- child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished),
+ child: CoverStateBadges(isDownloaded: isDownloaded, isFinished: isFinished, isSkimmed: isSkimmed),
),
]),
),
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 8520f351..56a815cc 100644
--- a/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js
+++ b/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js
@@ -11,6 +11,13 @@ var cachedLocations = null;
function setCachedLocations(json) {
cachedLocations = json;
}
+function reportLoadError(e) {
+ try {
+ window.flutter_inappwebview.callHandler('loadError', String((e && e.message) || e));
+ } catch (err) {
+ console.error('Error reporting load failure:', err);
+ }
+}
function handBackLocations() {
try {
window.flutter_inappwebview.callHandler('locationsGenerated', book.locations.save());
@@ -133,7 +140,7 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
if (bookUrl) {
var url = bookUrl;
bookUrl = null;
- book.open(url);
+ book.open(url).catch(reportLoadError);
} else {
var uint8Array;
if (data) {
@@ -149,7 +156,7 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
bookParts = [];
bookPartsLen = 0;
}
- book.open(uint8Array,)
+ book.open(uint8Array,).catch(reportLoadError)
}
lastRenderOpts = {
manager: manager,
@@ -185,7 +192,12 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
} catch (e) {
console.error('Error calling initialPositionLoading callback:', e);
}
- displayed = rendition.display(cfi)
+ // A saved spot this file doesn't have (another edition of the book)
+ // rejects with no "displayed" event; open at the start instead of a blank page.
+ displayed = rendition.display(cfi).catch(function (e) {
+ console.error('Initial cfi not found, showing the start:', e);
+ return rendition.display();
+ })
} else {
displayed = rendition.display()
}
@@ -997,6 +1009,13 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
}
var percent = location.start.percentage;
+ // Absorb patch: a book with no text (all page pictures) gets an empty
+ // location index, and epub.js then works -1 / -1 out to 100% on every
+ // page, which marked such a book finished the moment it opened. Use how
+ // far through the spine the page is instead.
+ if (!(book.locations.length() > 0)) {
+ percent = spinePercent(location.start);
+ }
// Convert CFIs to XPath
Promise.all([
@@ -1027,7 +1046,13 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScr
});
rendition.on('displayError', function (e) {
- window.flutter_inappwebview.callHandler('displayError');
+ window.flutter_inappwebview.callHandler('displayError', String((e && e.message) || e));
+ // The first page never painting is the blank-reader case: fall back to
+ // the start once rather than leaving nothing on screen.
+ if (initialPositionLoading) {
+ initialPositionLoading = false;
+ rendition.display();
+ }
})
rendition.on('markClicked', function (cfiRange) {
@@ -2265,7 +2290,22 @@ function clearSelection() {
// Explicitly attach to window for global access
window.clearSelection = clearSelection;
+function spinePercent(at) {
+ var count = book.spine.spineItems.length;
+ if (!at || !(count > 0) || !(at.index >= 0)) return 0;
+ var shown = at.displayed || {};
+ var within = shown.total > 0 ? (shown.page || 1) / shown.total : 1;
+ return Math.min(1, (at.index + within) / count);
+}
+
function toProgress(progress) {
+ // Absorb patch: no location index (a book with no text) - go by spine item.
+ if (!(book.locations.length() > 0)) {
+ var count = book.spine.spineItems.length;
+ var item = count > 0 ? book.spine.get(Math.min(count - 1, Math.floor(progress * count))) : null;
+ if (item) rendition.display(item.href);
+ return;
+ }
var cfi = book.locations.cfiFromPercentage(progress);
rendition.display(cfi);
}
@@ -2318,6 +2358,11 @@ var blindLastTs = 0;
var blindSwapping = false;
var blindPaused = false; // the reader asked for it, survives touches
var blindTouchHold = false; // finger is down, transient
+// Absorb patch: in scroll mode auto scroll glides the page itself instead of
+// running the blind. Speed, pause, the touch pad and stopping are shared.
+var glideActive = false;
+var glideCarry = 0; // sub-pixel distance owed to the next frame
+var glideStuckFor = 0; // seconds the page has refused to move
function blindHeight() {
var host = document.getElementById("viewerNext");
@@ -2404,6 +2449,7 @@ function blindLineColor(paused) {
}
function blindApply() {
+ if (glideActive) return;
var host = document.getElementById("viewerNext");
if (!host) return;
var h = blindHeight();
@@ -2741,6 +2787,28 @@ function readerPageInfo() {
try {
var m = rendition.manager;
var c = m.container.getBoundingClientRect();
+ // Absorb patch: scroll mode has no pages, so count screenfuls down the
+ // chapter under the top of the screen.
+ if (scrolledFlow()) {
+ var probeY = c.top + 1;
+ var screen = c.height || 1;
+ var all = m.views.all();
+ for (var j = 0; j < all.length; j++) {
+ var sv = all[j];
+ if (!sv || !sv.element || !sv.section) continue;
+ var sb = sv.element.getBoundingClientRect();
+ if (sb.top <= probeY && sb.bottom > probeY) {
+ var screens = Math.max(1, Math.ceil(sb.height / screen));
+ return {
+ page: Math.min(screens, Math.floor((probeY - sb.top) / screen) + 1),
+ total: screens,
+ href: sv.section.href || '',
+ index: sv.section.index
+ };
+ }
+ }
+ return null;
+ }
var rtl = m.settings && m.settings.direction === "rtl";
var probe = rtl ? c.right - 1 : c.left + 1;
var views = m.views.all();
@@ -2823,9 +2891,60 @@ function blindLiveAtEnd() {
// Returns whether the blind started. It can't before the book is displayed,
// and Flutter must not flag auto scroll on for a blind that never appeared.
+function scrolledFlow() {
+ try {
+ return String((lastRenderOpts && lastRenderOpts.flow) || "").indexOf("scrolled") === 0;
+ } catch (e) {
+ return false;
+ }
+}
+
+function glideTick(ts) {
+ if (!glideActive) return;
+ if (!blindLastTs) blindLastTs = ts;
+ var dt = (ts - blindLastTs) / 1000;
+ blindLastTs = ts;
+ // rAF stops while the app is away; the first frame back carries the whole gap
+ if (dt > 0.25) dt = 0;
+ if (!blindPaused && !blindTouchHold) {
+ var c = rendition.manager.container;
+ glideCarry += blindSpeed * dt;
+ var step = Math.floor(glideCarry);
+ if (step >= 1) {
+ glideCarry -= step;
+ var before = c.scrollTop;
+ c.scrollTop = before + step;
+ // The next chapter loads as the end comes near, so a short stall is
+ // normal. A long one at the end of the book is the end.
+ if (c.scrollTop <= before) {
+ glideStuckFor += dt;
+ if (glideStuckFor > 3) {
+ autoScrollStop("end");
+ return;
+ }
+ } else {
+ glideStuckFor = 0;
+ }
+ }
+ }
+ blindRaf = requestAnimationFrame(glideTick);
+}
+
function autoScrollStart(speed) {
- if (!rendition || blindRendition) return false;
+ if (!rendition || blindRendition || glideActive) return false;
if (typeof speed === "number" && speed > 0) blindSpeed = speed;
+ if (scrolledFlow()) {
+ try { clearSelection(); } catch (e) {}
+ glideActive = true;
+ glideCarry = 0;
+ glideStuckFor = 0;
+ blindPaused = false;
+ blindLastTs = 0;
+ blindTouchAttach();
+ blindLog("start glide");
+ blindRaf = requestAnimationFrame(glideTick);
+ return true;
+ }
var host = document.getElementById("viewerNext");
if (!host) return false;
host.style.display = "block";
@@ -2949,7 +3068,8 @@ function autoScrollResync() {
}
function autoScrollStop(reason) {
- var wasRunning = blindRendition !== null;
+ var wasRunning = blindRendition !== null || glideActive;
+ glideActive = false;
blindTouchHold = false;
if (blindRaf) cancelAnimationFrame(blindRaf);
blindRaf = null;
@@ -2980,7 +3100,7 @@ function autoScrollStop(reason) {
}
function autoScrollActive() {
- return blindRendition !== null;
+ return blindRendition !== null || glideActive;
}
function setFontSize(fontSize) {
diff --git a/packages/flutter_epub_viewer/lib/assets/webpage/html/swipe.html b/packages/flutter_epub_viewer/lib/assets/webpage/html/swipe.html
index 27ad717c..3bc078ee 100644
--- a/packages/flutter_epub_viewer/lib/assets/webpage/html/swipe.html
+++ b/packages/flutter_epub_viewer/lib/assets/webpage/html/swipe.html
@@ -30,6 +30,14 @@
background: white;
}
+ /* Absorb patch: in scroll mode epub.js shifts the scroll itself when it
+ adds the chapter above (manager counter()). Chrome's scroll anchoring
+ made the same shift on top, so scrolling up across a chapter jumped
+ the page down by that chapter's height. */
+ .epub-container {
+ overflow-anchor: none;
+ }
+
#viewerNext {
display: none;
position: fixed;
diff --git a/packages/flutter_epub_viewer/lib/src/epub_viewer.dart b/packages/flutter_epub_viewer/lib/src/epub_viewer.dart
index c68618bd..d776b809 100644
--- a/packages/flutter_epub_viewer/lib/src/epub_viewer.dart
+++ b/packages/flutter_epub_viewer/lib/src/epub_viewer.dart
@@ -51,6 +51,7 @@ class EpubViewer extends StatefulWidget {
this.onInitialPositionLoaded,
this.cachedLocations,
this.onLocationsGenerated,
+ this.onLoadError,
this.onTouchDown,
this.onTouchUp,
this.suppressNativeContextMenu = false,
@@ -87,6 +88,10 @@ class EpubViewer extends StatefulWidget {
/// supplied, so the caller can keep it for next time.
final ValueChanged<String>? onLocationsGenerated;
+ /// Fires when epub.js can't open the book at all (a damaged or unreadable
+ /// file), which otherwise leaves the page blank with no other callback.
+ final ValueChanged<String>? onLoadError;
+
///Call back when chapters are loaded
final ValueChanged<List<EpubChapter>>? onChaptersLoaded;
@@ -462,6 +467,22 @@ class _EpubViewerState extends State<EpubViewer> {
},
);
+ webViewController?.addJavaScriptHandler(
+ handlerName: 'loadError',
+ callback: (data) {
+ final message = data.isNotEmpty ? '${data[0]}' : 'unknown error';
+ debugPrint('[EpubViewer] book failed to open: $message');
+ widget.onLoadError?.call(message);
+ },
+ );
+
+ webViewController?.addJavaScriptHandler(
+ handlerName: 'displayError',
+ callback: (data) {
+ debugPrint('[EpubViewer] display error: ${data.isNotEmpty ? data[0] : ''}');
+ },
+ );
+
webViewController?.addJavaScriptHandler(
handlerName: 'initialPositionLoading',
callback: (data) {
@@ -610,8 +631,10 @@ class _EpubViewerState extends State<EpubViewer> {
EpubDefaultDirection.ltr.name;
int fontSize = displaySettings.fontSize;
- bool useCustomSwipe =
- Platform.isAndroid && !displaySettings.useSnapAnimationAndroid;
+ // Sideways swipes turn pages; a scrolling book has none to turn.
+ bool useCustomSwipe = Platform.isAndroid &&
+ !displaySettings.useSnapAnimationAndroid &&
+ displaySettings.flow == EpubFlow.paginated;
String? foregroundColor = widget.displaySettings?.theme?.foregroundColor
?.toHex();
@@ -621,7 +644,11 @@ class _EpubViewerState extends State<EpubViewer> {
bool clearSelectionOnPageChange = widget.clearSelectionOnPageChange;
- String xpathParam = initialXPath != null ? '"$initialXPath"' : 'null';
+ // JSON-encoded so a saved position with quotes or backslashes in it (other
+ // apps store their own formats in the same field) can't break the call
+ // and leave the page blank.
+ String cfiParam = jsonEncode(cfi);
+ String xpathParam = initialXPath != null ? jsonEncode(initialXPath) : 'null';
final sourceFile = widget.epubSource.file;
final started = DateTime.now();
@@ -665,7 +692,7 @@ class _EpubViewerState extends State<EpubViewer> {
}
webViewController?.evaluateJavascript(
source:
- 'loadBook(null, "$cfi", $xpathParam, "$manager", "$flow", "$spread", $snap, $allowScripted, "$direction", $useCustomSwipe, "${null}", "$foregroundColor", "$fontSize", $clearSelectionOnPageChange, ${widget.selectAnnotationRange}, $customCss)',
+ 'loadBook(null, $cfiParam, $xpathParam, "$manager", "$flow", "$spread", $snap, $allowScripted, "$direction", $useCustomSwipe, "${null}", "$foregroundColor", "$fontSize", $clearSelectionOnPageChange, ${widget.selectAnnotationRange}, $customCss)',
);
}