Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Download EPUB3 narration in the background with notifications and into the custom folder, use the book's own words instead of transcribing on EPUB3 books, and add a Sync position button plus a warning when a sync can't find your place

Barnabas42dcc3c59d99
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index 969369b9..96db50e7 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -5898,6 +5898,8 @@
"narrationDownloadTitle": "Download to listen",
"narrationDownloadBody": "This book is an EPUB3 that reads itself aloud. Audiobookshelf can't stream its narration, so the audio needs to be downloaded before it plays.",
"narrationDownloadStarted": "Downloading the narration. Tap Absorb when it finishes.",
+ "narrationTextBody": "This book's EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark's note.",
+ "narrationTextLoading": "Getting the words from the book",
"downloadToAbsorb": "Download to Absorb",
"narrationUpNextTitle": "Download what's up next",
"narrationUpNextBody": "{title} is next in your queue. It's an EPUB3 that reads itself aloud, so it needs to be downloaded before it can play.",
@@ -5922,6 +5924,9 @@
"syncAudioOffer": "Tap to jump to where you stopped reading",
"syncFindingAudio": "Finding your page in the audiobook",
"syncFindingEbook": "Finding your spot in the ebook",
+ "syncFailed": "Couldn't sync your place",
+ "syncAlreadyTogether": "Already in sync",
+ "syncPosition": "Sync position",
"readAlongFollowHint": "Word timing is worked out between the transcript's timestamps, so it can drift slightly inside a sentence.",
"readAlongFollowWord": "Word",
"readAlongFollowSentence": "Sentence",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index eb1bb787..89af9d2c 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -18447,6 +18447,18 @@ abstract class AppLocalizations {
/// **'Downloading the narration. Tap Absorb when it finishes.'**
String get narrationDownloadStarted;
+ /// No description provided for @narrationTextBody.
+ ///
+ /// In en, this message translates to:
+ /// **'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.'**
+ String get narrationTextBody;
+
+ /// No description provided for @narrationTextLoading.
+ ///
+ /// In en, this message translates to:
+ /// **'Getting the words from the book'**
+ String get narrationTextLoading;
+
/// No description provided for @downloadToAbsorb.
///
/// In en, this message translates to:
@@ -18531,6 +18543,24 @@ abstract class AppLocalizations {
/// **'Finding your spot in the ebook'**
String get syncFindingEbook;
+ /// No description provided for @syncFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t sync your place'**
+ String get syncFailed;
+
+ /// No description provided for @syncAlreadyTogether.
+ ///
+ /// In en, this message translates to:
+ /// **'Already in sync'**
+ String get syncAlreadyTogether;
+
+ /// No description provided for @syncPosition.
+ ///
+ /// In en, this message translates to:
+ /// **'Sync position'**
+ String get syncPosition;
+
/// No description provided for @readAlongFollowHint.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index 02bc0f76..322ac67c 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -10837,6 +10837,13 @@ class AppLocalizationsDe extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10886,6 +10893,15 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_el.dart b/lib/l10n/app_localizations_el.dart
index c0e43259..d9780838 100644
--- a/lib/l10n/app_localizations_el.dart
+++ b/lib/l10n/app_localizations_el.dart
@@ -10716,6 +10716,13 @@ class AppLocalizationsEl extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10765,6 +10772,15 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index 99783646..d1442689 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -10716,6 +10716,13 @@ class AppLocalizationsEn extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10765,6 +10772,15 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index 36ec8964..b3d95db5 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -10718,6 +10718,13 @@ class AppLocalizationsEs extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10767,6 +10774,15 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index 57c45e5a..36c6c12e 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -10769,6 +10769,13 @@ class AppLocalizationsFr extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10818,6 +10825,15 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index acab530e..438b807b 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -10716,6 +10716,13 @@ class AppLocalizationsIt extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10765,6 +10772,15 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index 4cfbf32a..23c0a2c6 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -10716,6 +10716,13 @@ class AppLocalizationsJa extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10765,6 +10772,15 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_no.dart b/lib/l10n/app_localizations_no.dart
index b8080f58..0648fb11 100644
--- a/lib/l10n/app_localizations_no.dart
+++ b/lib/l10n/app_localizations_no.dart
@@ -10716,6 +10716,13 @@ class AppLocalizationsNo extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10765,6 +10772,15 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index da87dc37..273863fd 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -10716,6 +10716,13 @@ class AppLocalizationsPt extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10765,6 +10772,15 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_ro.dart b/lib/l10n/app_localizations_ro.dart
index 0f309f6b..a4f6d668 100644
--- a/lib/l10n/app_localizations_ro.dart
+++ b/lib/l10n/app_localizations_ro.dart
@@ -10716,6 +10716,13 @@ class AppLocalizationsRo extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10765,6 +10772,15 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index 66ac3e60..1901ab81 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -10721,6 +10721,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get narrationDownloadStarted =>
'Downloading the narration. Tap Absorb when it finishes.';
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
+
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10770,6 +10777,15 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get syncFindingEbook => 'Finding your spot in the ebook';
+ @override
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
@override
String get readAlongFollowHint =>
'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index a3f1e174..c5bf62d7 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -27,22 +27,26 @@ 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.';
+ String get listsNoneHintBookOrbit =>
+ 'Collections and Smart Scopes are made on your BookOrbit server, and show up here.';
@override
- String get listsLoadFailedHintBookOrbit => 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
+ String get listsLoadFailedHintBookOrbit =>
+ 'Absorb couldn\'t reach your server for collections and Smart Scopes.';
@override
String get cancel => '取消';
@@ -188,7 +192,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get loginCustomHttpHeaders => '自定义 HTTP 请求头';
@override
- String get loginCustomHeadersDescription => '用于需要额外请求头的 Cloudflare 隧道或反向代理。请在输入服务器 URL 之前添加请求头。';
+ String get loginCustomHeadersDescription =>
+ '用于需要额外请求头的 Cloudflare 隧道或反向代理。请在输入服务器 URL 之前添加请求头。';
@override
String get loginHeaderName => '请求头名称';
@@ -209,7 +214,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get loginApiKey => 'API 密钥';
@override
- String get loginApiKeyDescription => '使用管理员生成的 API 密钥代替用户名/密码。当账号的令牌刷新失败时很有用。';
+ String get loginApiKeyDescription =>
+ '使用管理员生成的 API 密钥代替用户名/密码。当账号的令牌刷新失败时很有用。';
@override
String get loginWaitingForSso => '正在等待单点登录(SSO)...';
@@ -257,10 +263,12 @@ 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';
@@ -269,7 +277,8 @@ 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) {
@@ -307,7 +316,8 @@ 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) {
@@ -340,7 +350,8 @@ 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 => '登录失败';
@@ -436,7 +447,8 @@ 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';
@@ -1154,7 +1166,8 @@ 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';
@@ -1225,19 +1238,22 @@ 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 => '关闭';
@@ -1259,7 +1275,8 @@ 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 => '再按一次返回键退出';
@@ -1316,7 +1333,8 @@ 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 => '自定义';
@@ -1325,22 +1343,26 @@ 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';
@@ -1466,7 +1488,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get whenAbsorbedInfoTitle => '当收听完成时';
@override
- String get whenAbsorbedInfoContent => '控制当您完成一本书或一集后收听卡片的行为。\n\n已完成的卡片会自动从从您的“正在收听”屏幕中移除。';
+ String get whenAbsorbedInfoContent =>
+ '控制当您完成一本书或一集后收听卡片的行为。\n\n已完成的卡片会自动从从您的“正在收听”屏幕中移除。';
@override
String get whenAbsorbedSubtitle => '听完一本书或或一集后收听卡片的处理方式';
@@ -1484,7 +1507,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get mergeLibrariesInfoTitle => '合并媒体库';
@override
- String get mergeLibrariesInfoContent => '启用后,“正在收听”界面会将您所有媒体库中正在进行的书籍和播客集中显示在一个视图中。禁用时,仅显示您当前所选媒体库中的项目。';
+ String get mergeLibrariesInfoContent =>
+ '启用后,“正在收听”界面会将您所有媒体库中正在进行的书籍和播客集中显示在一个视图中。禁用时,仅显示您当前所选媒体库中的项目。';
@override
String get mergeLibrariesOnSubtitle => '正在收听页面显示来自所有媒体库的项目';
@@ -1508,7 +1532,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get queueModeInfoManual => '手动队列';
@override
- String get queueModeInfoManualDesc => '你的收听卡片将作为播放列表使用。当一个播放完成时,会自动播放下一个未完成的卡片。通过书籍或单集详情页的\"添加至正在收听\"按钮添加项目,并在收听界面重新排序。';
+ String get queueModeInfoManualDesc =>
+ '你的收听卡片将作为播放列表使用。当一个播放完成时,会自动播放下一个未完成的卡片。通过书籍或单集详情页的\"添加至正在收听\"按钮添加项目,并在收听界面重新排序。';
@override
String get queueModeOff => '关闭';
@@ -1543,7 +1568,8 @@ 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 => '退出';
@@ -1622,16 +1648,19 @@ 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';
@@ -1655,10 +1684,12 @@ 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';
@@ -1681,10 +1712,12 @@ 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';
@@ -1702,16 +1735,19 @@ 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';
@@ -1723,7 +1759,8 @@ 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';
@@ -1904,13 +1941,15 @@ 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';
@@ -1950,7 +1989,8 @@ 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';
@@ -2104,7 +2144,8 @@ 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';
@@ -2128,10 +2169,12 @@ 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';
@@ -2284,7 +2327,8 @@ 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.';
@@ -2299,7 +2343,8 @@ 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';
@@ -2350,7 +2395,8 @@ 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';
@@ -2428,13 +2474,15 @@ 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';
@@ -2461,13 +2509,16 @@ 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...';
@@ -2482,7 +2533,8 @@ 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.';
@@ -2491,10 +2543,12 @@ 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.';
@@ -2572,10 +2626,12 @@ 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) {
@@ -2702,31 +2758,37 @@ 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 => '恢复播放时自动倒退';
@@ -2835,7 +2897,8 @@ 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 => '暂停时重置定时器';
@@ -2921,7 +2984,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get autoDownloadOnWifiInfoTitle => 'Wi-Fi 下自动下载';
@override
- String get autoDownloadOnWifiInfoContent => '当您开始在线播放书籍时,系统会在后台同步下载完整内容,无需手动操作即可实现离线收听。后台下载将严格遵循上方的“下载网络设置”,若您希望在移动网络下也能自动下载,请将其设置为“任意网络”。';
+ String get autoDownloadOnWifiInfoContent =>
+ '当您开始在线播放书籍时,系统会在后台同步下载完整内容,无需手动操作即可实现离线收听。后台下载将严格遵循上方的“下载网络设置”,若您希望在移动网络下也能自动下载,请将其设置为“任意网络”。';
@override
String get autoDownloadOnWifiOnSubtitle => '在 Wi-Fi 下开始流式播放时,书籍将在后台下载';
@@ -2954,7 +3018,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get keepNextInfoTitle => '保留接下来';
@override
- String get keepNextInfoContent => '要保留下载的项目数量,包括你当前正在收听的项目。例如,\"保留接下来3个\"意味着当前书籍加上系列或播客中的下2本将保持下载状态。';
+ String get keepNextInfoContent =>
+ '要保留下载的项目数量,包括你当前正在收听的项目。例如,\"保留接下来3个\"意味着当前书籍加上系列或播客中的下2本将保持下载状态。';
@override
String get deleteAbsorbedDownloads => '删除已完成的下载';
@@ -2963,7 +3028,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get deleteAbsorbedDownloadsInfoTitle => '删除已完成的下载';
@override
- String get deleteAbsorbedDownloadsInfoContent => '启用后,在 Absorb 中听完的已下载书籍或剧集会自动从此设备删除。如果你在网页端或其他设备上听完,保存在此设备上的下载不会被删除。';
+ String get deleteAbsorbedDownloadsInfoContent =>
+ '启用后,在 Absorb 中听完的已下载书籍或剧集会自动从此设备删除。如果你在网页端或其他设备上听完,保存在此设备上的下载不会被删除。';
@override
String get deleteAbsorbedOnSubtitle => '已完成项目将被移除以节省空间';
@@ -2997,7 +3063,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get streamingCacheInfoTitle => '流式缓存';
@override
- String get streamingCacheInfoContent => '将流式播放的音频缓存到磁盘,以便在快退或重复收听时无需重新下载。缓存会自动管理 - 达到大小限制时,最旧的文件会被移除。这与完全下载的书籍是分开的';
+ String get streamingCacheInfoContent =>
+ '将流式播放的音频缓存到磁盘,以便在快退或重复收听时无需重新下载。缓存会自动管理 - 达到大小限制时,最旧的文件会被移除。这与完全下载的书籍是分开的';
@override
String get streamingCacheOff => '关闭';
@@ -3032,10 +3099,12 @@ class AppLocalizationsZh extends AppLocalizations {
String get homeCardsOpenDetails => 'Open details from Home';
@override
- String get homeCardsOpenDetailsOnSubtitle => 'Tapping a Continue Listening or Continue Reading card opens its details';
+ String get homeCardsOpenDetailsOnSubtitle =>
+ 'Tapping a Continue Listening or Continue Reading card opens its details';
@override
- String get homeCardsOpenDetailsOffSubtitle => 'Tapping a Continue Listening or Continue Reading card picks up where you left off';
+ String get homeCardsOpenDetailsOffSubtitle =>
+ 'Tapping a Continue Listening or Continue Reading card picks up where you left off';
@override
String get showGoodreadsButton => '显示 Goodreads 按钮';
@@ -3124,7 +3193,8 @@ 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 => '高级';
@@ -3136,7 +3206,8 @@ 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 => '已通过本地服务器连接';
@@ -3163,7 +3234,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get disableAudioFocusInfoTitle => '音频焦点';
@override
- String get disableAudioFocusInfoContent => '默认情况下,Android 一次只给一个应用音频“焦点” - 当 Absorb 播放时,其他音频(音乐、视频)会暂停。禁用音频焦点可让 Absorb 与其他应用同时播放。无论此设置如何,来电时始终会暂停播放。';
+ String get disableAudioFocusInfoContent =>
+ '默认情况下,Android 一次只给一个应用音频“焦点” - 当 Absorb 播放时,其他音频(音乐、视频)会暂停。禁用音频焦点可让 Absorb 与其他应用同时播放。无论此设置如何,来电时始终会暂停播放。';
@override
String get disableAudioFocusOnSubtitle => '开启 - 与其他音频同时播放(来电时仍会暂停)';
@@ -3193,16 +3265,19 @@ 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 => '开启 - 接受所有证书';
@@ -3262,7 +3337,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get includeLoginInfoTitle => '包含登录信息?';
@override
- String get includeLoginInfoContent => '你是否希望在备份中包含所有已保存账号的登录凭据?\n\n这会让在新设备上恢复变得容易,但文件中将包含您的身份验证令牌。';
+ String get includeLoginInfoContent =>
+ '你是否希望在备份中包含所有已保存账号的登录凭据?\n\n这会让在新设备上恢复变得容易,但文件中将包含您的身份验证令牌。';
@override
String get noSettingsOnly => '否,仅设置';
@@ -3329,7 +3405,8 @@ 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';
@@ -3341,7 +3418,8 @@ 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';
@@ -3350,25 +3428,29 @@ 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';
@@ -3388,13 +3470,15 @@ 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';
@@ -3403,7 +3487,8 @@ 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';
@@ -3418,7 +3503,8 @@ 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) {
@@ -3466,7 +3552,8 @@ 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';
@@ -3536,8 +3623,10 @@ 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';
}
@@ -3691,19 +3780,23 @@ 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';
@@ -3727,10 +3820,12 @@ 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';
@@ -3756,7 +3851,8 @@ 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.';
@@ -3797,7 +3893,8 @@ 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';
@@ -3824,7 +3921,8 @@ 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';
@@ -3833,7 +3931,8 @@ 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';
@@ -3918,7 +4017,8 @@ 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 => '已完成';
@@ -4045,7 +4145,8 @@ 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 => '关于';
@@ -4387,7 +4488,8 @@ 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';
@@ -4492,16 +4594,19 @@ 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';
@@ -4520,7 +4625,8 @@ 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 => '未找到播放列表';
@@ -4555,7 +4661,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get listsNewCollectionSubtitle => 'Group books into a list you keep';
@override
- String get listsNewCollectionNeedsBookSubtitle => 'Start it with at least one book';
+ String get listsNewCollectionNeedsBookSubtitle =>
+ 'Start it with at least one book';
@override
String get listsNewPlaylistSubtitle => 'Line up books to listen to in order';
@@ -4564,13 +4671,15 @@ class AppLocalizationsZh extends AppLocalizations {
String get listsAddBooksNow => 'Add books now';
@override
- String get listsPickBooksNext => 'You\'ll pick books next. A collection on this server needs at least one.';
+ String get listsPickBooksNext =>
+ 'You\'ll pick books next. A collection on this server needs at least one.';
@override
String get listsCreate => 'Create';
@override
- String get listsCollectionNeedsBook => 'A collection needs at least one book, so nothing was created.';
+ String get listsCollectionNeedsBook =>
+ 'A collection needs at least one book, so nothing was created.';
@override
String get listsCreateFailed => 'Couldn\'t create it';
@@ -4621,13 +4730,15 @@ 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 => '开始使用';
@@ -4773,13 +4884,16 @@ 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) {
@@ -4790,7 +4904,8 @@ 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) {
@@ -4863,7 +4978,11 @@ 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';
}
@@ -4889,7 +5008,8 @@ 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';
@@ -4901,13 +5021,15 @@ 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';
@@ -4948,7 +5070,8 @@ 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';
@@ -5102,7 +5225,8 @@ 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) {
@@ -5176,7 +5300,8 @@ 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) {
@@ -5184,7 +5309,8 @@ 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) {
@@ -5552,10 +5678,12 @@ 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';
@@ -5830,7 +5958,8 @@ 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';
@@ -5839,25 +5968,31 @@ 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';
@@ -5960,7 +6095,8 @@ 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';
@@ -6003,7 +6139,8 @@ 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';
@@ -6012,7 +6149,8 @@ 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';
@@ -6105,10 +6243,12 @@ 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';
@@ -6169,17 +6309,20 @@ 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';
@@ -6331,7 +6474,8 @@ 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';
@@ -6342,7 +6486,8 @@ 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';
@@ -6357,7 +6502,8 @@ 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';
@@ -6426,7 +6572,14 @@ 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';
}
@@ -6574,10 +6727,12 @@ 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) {
@@ -6623,7 +6778,8 @@ 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';
@@ -6645,7 +6801,8 @@ 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';
@@ -6672,16 +6829,19 @@ 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';
@@ -6712,7 +6872,11 @@ 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';
}
@@ -6734,7 +6898,8 @@ 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';
@@ -6763,16 +6928,20 @@ 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';
@@ -6798,7 +6967,8 @@ 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) {
@@ -6921,7 +7091,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get smartScopeNew => 'New Smart Scope';
@override
- String get smartScopeNewSubtitle => 'Save a set of filters as a list that keeps itself up to date';
+ String get smartScopeNewSubtitle =>
+ 'Save a set of filters as a list that keeps itself up to date';
@override
String get smartScopeEditTitle => 'Edit Smart Scope';
@@ -7005,7 +7176,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get smartScopeLoadFailed => 'Couldn\'t load the Smart Scope';
@override
- String get smartScopeUnsupportedRule => 'This rule can only be changed on the BookOrbit web. It\'s kept as it is.';
+ String get smartScopeUnsupportedRule =>
+ 'This rule can only be changed on the BookOrbit web. It\'s kept as it is.';
@override
String get smartScopeAnd => 'and';
@@ -7283,7 +7455,11 @@ 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';
}
@@ -7432,7 +7608,8 @@ 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 中检查系列新书';
@@ -7647,7 +7824,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get tipsSheetCoverPlayPauseTitle => '点击封面播放/暂停';
@override
- String get tipsSheetCoverPlayPauseDesc => '点击任意卡片的封面即可播放或暂停。可在设置的“收听卡片”中切换此功能。播放时会显示淡淡的暂停图标,提示封面可点击。';
+ String get tipsSheetCoverPlayPauseDesc =>
+ '点击任意卡片的封面即可播放或暂停。可在设置的“收听卡片”中切换此功能。播放时会显示淡淡的暂停图标,提示封面可点击。';
@override
String get tipsSheetFullScreenPlayerTitle => '全屏播放器';
@@ -7659,79 +7837,92 @@ 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 => '自动睡眠时间段';
@@ -7743,7 +7934,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get tipsSheetSleepFadeChimeTitle => '睡眠淡出与提示音';
@override
- String get tipsSheetSleepFadeChimeDesc => '睡眠定时结束时,音频将逐渐淡出并伴有可选提示音,避免在听书时突然中断。';
+ String get tipsSheetSleepFadeChimeDesc =>
+ '睡眠定时结束时,音频将逐渐淡出并伴有可选提示音,避免在听书时突然中断。';
@override
String get tipsSheetCarModeTitle => '车载模式';
@@ -7755,55 +7947,65 @@ 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';
@@ -7956,7 +8158,8 @@ 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';
@@ -8067,13 +8270,15 @@ 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…';
@@ -8121,7 +8326,11 @@ 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)';
}
@@ -8161,10 +8370,12 @@ 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';
@@ -8179,13 +8390,16 @@ class AppLocalizationsZh extends AppLocalizations {
String get siriUseWithSiri => 'Use with Siri';
@override
- String get siriStatusOn => 'On. Siri can find and play your books and podcasts by name.';
+ String get siriStatusOn =>
+ 'On. Siri can find and play your books and podcasts by name.';
@override
- String get siriStatusAsk => 'Let Siri find and play your books and podcasts by name.';
+ String get siriStatusAsk =>
+ 'Let Siri find and play your books and podcasts by name.';
@override
- String get siriStatusOff => 'Siri is turned off for Absorb. Turn it on in iOS Settings.';
+ String get siriStatusOff =>
+ 'Siri is turned off for Absorb. Turn it on in iOS Settings.';
@override
String get siriAllow => 'Allow';
@@ -8197,10 +8411,12 @@ class AppLocalizationsZh extends AppLocalizations {
String get siriThingsToSay => 'Things to say';
@override
- String get siriExamples => '\"Play [book title] on Absorb\"\n\"Play [series name] on Absorb\"\n\"Play something by [author] on Absorb\"\n\"Play the latest episode of [podcast] on Absorb\"\n\"Resume Absorb\"\n\"Skip back in Absorb\"\n\"Next chapter in Absorb\"\n\"Set a sleep timer in Absorb\"\n\"Add a bookmark in Absorb\"\n\"What am I listening to in Absorb\"';
+ String get siriExamples =>
+ '\"Play [book title] on Absorb\"\n\"Play [series name] on Absorb\"\n\"Play something by [author] on Absorb\"\n\"Play the latest episode of [podcast] on Absorb\"\n\"Resume Absorb\"\n\"Skip back in Absorb\"\n\"Next chapter in Absorb\"\n\"Set a sleep timer in Absorb\"\n\"Add a bookmark in Absorb\"\n\"What am I listening to in Absorb\"';
@override
- String get siriShortcutsNote => 'Resume, pause, skips, chapters, the sleep timer, bookmarks and what\'s playing work even without this permission. They are also in the Shortcuts app for automations and the Action button.';
+ String get siriShortcutsNote =>
+ 'Resume, pause, skips, chapters, the sleep timer, bookmarks and what\'s playing work even without this permission. They are also in the Shortcuts app for automations and the Action button.';
@override
String get carBookOrder => 'Book order in the car';
@@ -8218,7 +8434,8 @@ 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';
@@ -8269,7 +8486,8 @@ 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';
@@ -8295,7 +8513,8 @@ 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';
@@ -8322,7 +8541,8 @@ 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';
@@ -8397,7 +8617,8 @@ 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';
@@ -8456,7 +8677,8 @@ 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';
@@ -8475,7 +8697,8 @@ 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';
@@ -8489,7 +8712,8 @@ 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';
@@ -8521,7 +8745,8 @@ 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';
@@ -8546,10 +8771,12 @@ 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';
@@ -8561,7 +8788,8 @@ 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';
@@ -8582,19 +8810,23 @@ 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';
@@ -8616,7 +8848,8 @@ 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) {
@@ -8624,7 +8857,8 @@ 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';
@@ -8715,7 +8949,8 @@ 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';
@@ -8754,7 +8989,8 @@ 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';
@@ -8843,13 +9079,15 @@ 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';
@@ -8876,7 +9114,8 @@ 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';
@@ -8894,7 +9133,8 @@ 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';
@@ -8903,10 +9143,12 @@ 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';
@@ -8932,16 +9174,20 @@ 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';
@@ -8956,16 +9202,20 @@ 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) {
@@ -8981,7 +9231,8 @@ 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';
@@ -9003,7 +9254,8 @@ 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) {
@@ -9035,7 +9287,8 @@ 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';
@@ -9047,7 +9300,8 @@ 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';
@@ -9059,7 +9313,8 @@ 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';
@@ -9242,7 +9497,8 @@ 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';
@@ -9257,7 +9513,8 @@ 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';
@@ -9275,37 +9532,44 @@ 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';
@@ -9324,7 +9588,8 @@ 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) {
@@ -9346,7 +9611,8 @@ 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';
@@ -9468,7 +9734,8 @@ 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';
@@ -9495,13 +9762,16 @@ 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';
+ String get readerFormatUnsupported =>
+ 'This ebook format can\'t be opened in the reader yet';
@override
- String get readerCouldNotOpen => 'This ebook couldn\'t be opened. The file may be damaged.';
+ String get readerCouldNotOpen =>
+ 'This ebook couldn\'t be opened. The file may be damaged.';
@override
String get moreActions => 'More';
@@ -9540,7 +9810,8 @@ 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 readerTopBarProgress => 'Top bar progress';
@@ -9558,13 +9829,15 @@ class AppLocalizationsZh extends AppLocalizations {
String get readerScrollMode => 'Scroll mode';
@override
- String get readerScrollModeHint => 'Scroll down through the book instead of turning pages. Applies to every book.';
+ String get readerScrollModeHint =>
+ 'Scroll down through the book instead of turning pages. Applies to every book.';
@override
String get readerKeepAwake => 'Keep the screen on';
@override
- String get readerKeepAwakeHint => 'Stops the screen timing out while you read at your own pace. Auto scroll and read along always keep it on.';
+ String get readerKeepAwakeHint =>
+ 'Stops the screen timing out while you read at your own pace. Auto scroll and read along always keep it on.';
@override
String get readerLayoutAuto => 'Auto';
@@ -9597,7 +9870,8 @@ 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';
@@ -9626,7 +9900,8 @@ 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) {
@@ -9751,7 +10026,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get sessionReading => 'Reading';
@override
- String get readerHistoryEmpty => 'Pages you leave are listed here, so you can always get back to them.';
+ String get readerHistoryEmpty =>
+ 'Pages you leave are listed here, so you can always get back to them.';
@override
String get readerHistoryClosed => 'Closed the book';
@@ -9766,7 +10042,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get readerLogReading => 'Count reading time in stats';
@override
- String get readerLogReadingHint => 'Logs your time in the reader as a session so it shows in your stats. On Audiobookshelf it counts as listening time.';
+ String get readerLogReadingHint =>
+ 'Logs your time in the reader as a session so it shows in your stats. On Audiobookshelf it counts as listening time.';
@override
String get readerNoBookmarks => 'No bookmarks yet';
@@ -9784,19 +10061,22 @@ 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';
@@ -9808,10 +10088,12 @@ 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';
@@ -9829,10 +10111,12 @@ 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';
@@ -9841,7 +10125,8 @@ 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';
@@ -9853,7 +10138,8 @@ 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';
@@ -9880,7 +10166,8 @@ 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';
@@ -9919,7 +10206,8 @@ 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';
@@ -10015,7 +10303,8 @@ 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) {
@@ -10065,7 +10354,8 @@ 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';
@@ -10074,13 +10364,16 @@ 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';
@@ -10092,7 +10385,8 @@ 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';
@@ -10135,19 +10429,23 @@ 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';
@@ -10156,7 +10454,8 @@ 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';
@@ -10168,16 +10467,19 @@ 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';
@@ -10195,25 +10497,31 @@ 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';
@@ -10222,10 +10530,12 @@ 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';
@@ -10246,10 +10556,12 @@ 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';
@@ -10260,13 +10572,15 @@ 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) {
@@ -10303,10 +10617,19 @@ class AppLocalizationsZh extends AppLocalizations {
String get narrationDownloadTitle => 'Download to listen';
@override
- String get narrationDownloadBody => 'This book is an EPUB3 that reads itself aloud. Audiobookshelf can\'t stream its narration, so the audio needs to be downloaded before it plays.';
+ String get narrationDownloadBody =>
+ 'This book is an EPUB3 that reads itself aloud. Audiobookshelf can\'t stream its narration, so the audio needs to be downloaded before it plays.';
@override
- String get narrationDownloadStarted => 'Downloading the narration. Tap Absorb when it finishes.';
+ String get narrationDownloadStarted =>
+ 'Downloading the narration. Tap Absorb when it finishes.';
+
+ @override
+ String get narrationTextBody =>
+ 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';
+
+ @override
+ String get narrationTextLoading => 'Getting the words from the book';
@override
String get downloadToAbsorb => 'Download to Absorb';
@@ -10325,10 +10648,12 @@ class AppLocalizationsZh extends AppLocalizations {
}
@override
- String get transcriptionNeedsDownload => 'This needs the audio on your phone. Download it now?';
+ String get transcriptionNeedsDownload =>
+ 'This needs the audio on your phone. Download it now?';
@override
- String get transcriptionDownloadStarted => 'Downloading. Turn this on again when it finishes';
+ String get transcriptionDownloadStarted =>
+ 'Downloading. Turn this on again when it finishes';
@override
String get readAlongFollow => 'Read along follows';
@@ -10337,7 +10662,8 @@ class AppLocalizationsZh extends AppLocalizations {
String get syncReadingListening => 'Keep reading and listening in sync';
@override
- String get syncReadingListeningHint => 'For books with an audiobook and an ebook. When you stop listening, the ebook moves to where you stopped. When you leave the reader, the audiobook moves to your page. Only moves forward.';
+ String get syncReadingListeningHint =>
+ 'For books with an audiobook and an ebook. When you stop listening, the ebook moves to where you stopped. When you leave the reader, the audiobook moves to your page. Only moves forward.';
@override
String get syncEbookMoved => 'Ebook moved to where you stopped listening';
@@ -10355,7 +10681,17 @@ class AppLocalizationsZh extends AppLocalizations {
String get syncFindingEbook => 'Finding your spot in the ebook';
@override
- String get readAlongFollowHint => 'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
+ String get syncFailed => 'Couldn\'t sync your place';
+
+ @override
+ String get syncAlreadyTogether => 'Already in sync';
+
+ @override
+ String get syncPosition => 'Sync position';
+
+ @override
+ String get readAlongFollowHint =>
+ 'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';
@override
String get readAlongFollowWord => 'Word';
@@ -10391,25 +10727,31 @@ 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';
@@ -10424,10 +10766,12 @@ 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';
@@ -10439,55 +10783,66 @@ 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) {
@@ -10501,13 +10856,15 @@ 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';
@@ -10555,7 +10912,8 @@ 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';
@@ -10567,13 +10925,15 @@ 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) {
@@ -10589,7 +10949,8 @@ class AppLocalizationsZh extends AppLocalizations {
}
@override
- String get comicBookmarkRemoveFailed => 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
+ String get comicBookmarkRemoveFailed =>
+ 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';
@override
String get comicLeftToRight => 'Left to right';
@@ -10598,7 +10959,8 @@ 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/services/download_service.dart b/lib/services/download_service.dart
index ec7db85d..a23e15b1 100644
--- a/lib/services/download_service.dart
+++ b/lib/services/download_service.dart
@@ -153,6 +153,9 @@ class _PendingBook {
/// (e.g. "Author/Title") on completion. Null for internal / iOS downloads.
final String? safTreeUri;
final String? safSubfolder;
+ /// An Audiobookshelf EPUB that reads itself aloud: the one task downloads
+ /// the whole EPUB, and its audio is taken out when it lands.
+ final bool narration;
/// True once the user cancels, so terminal handling cleans up instead of
/// surfacing an error.
@@ -196,6 +199,7 @@ class _PendingBook {
this.slimSessionJson,
this.safTreeUri,
this.safSubfolder,
+ this.narration = false,
}) {
// Start the no-progress watchdog clock at creation (fresh or restored).
lastUpdate = DateTime.now();
@@ -225,6 +229,7 @@ class _PendingBook {
'slimSessionJson': slimSessionJson,
if (safTreeUri != null) 'safTreeUri': safTreeUri,
if (safSubfolder != null) 'safSubfolder': safSubfolder,
+ if (narration) 'narration': true,
};
factory _PendingBook.fromJson(Map<String, dynamic> j) => _PendingBook(
@@ -245,6 +250,7 @@ class _PendingBook {
slimSessionJson: j['slimSessionJson'] as String?,
safTreeUri: j['safTreeUri'] as String?,
safSubfolder: j['safSubfolder'] as String?,
+ narration: j['narration'] == true,
);
}
@@ -754,7 +760,8 @@ class DownloadService extends ChangeNotifier {
/// download so it plays like any downloaded audiobook. Replaces an
/// ebook-only record for the same book.
Future<void> registerNarration({
- required ApiService api,
+ ApiService? api,
+ String? localCoverPath,
required String itemId,
required Map<String, dynamic> item,
required String dirPath,
@@ -770,15 +777,42 @@ class DownloadService extends ChangeNotifier {
media['tracks'] = audioTracks;
media['narration'] = {'duration': duration, 'local': true};
final stored = {...item, 'media': media};
- final localCoverPath = await _cacheCover(api, itemId, api.getCoverUrl(itemId, width: 800));
- for (final p in paths) {
- await _excludeFromBackup(p);
+ final cover = localCoverPath ??
+ (api == null ? null : await _cacheCover(api, itemId, api.getCoverUrl(itemId, width: 800)));
+ var finalPaths = paths;
+ var finalDir = dirPath;
+ // A custom download folder gets the narration too, moved in under
+ // "Author/Title" the way a finished download is. If the move fails the
+ // book stays usable from its internal copy.
+ final tree = Platform.isAndroid ? _customDownloadUri : null;
+ if (tree != null && tree.isNotEmpty) {
+ final author = metadata?['authorName'] as String?;
+ final title = metadata?['title'] as String? ?? itemId;
+ var nested = (author != null && author.isNotEmpty)
+ ? '${_sanitizePath(author)}/${_sanitizePath(title)}'
+ : _sanitizePath(title);
+ if (_folderTakenByOther(nested, itemId)) {
+ nested = '$nested (${itemId.substring(itemId.length - 8)})';
+ }
+ final moved = await _moveBookToSaf(tree, nested, [for (final p in paths) p.split('/').last], paths);
+ if (moved != null) {
+ finalPaths = moved.fileUris;
+ finalDir = moved.dirUri;
+ await _cleanupBookDir(dirPath, itemId);
+ debugPrint('[Download] narration for $itemId moved into the custom folder under "$nested"');
+ } else {
+ debugPrint('[Download] narration for $itemId kept in app storage: the move into the custom folder failed');
+ }
+ } else {
+ for (final p in paths) {
+ await _excludeFromBackup(p);
+ }
}
_noteOrigin(itemId);
_downloads[itemId] = DownloadInfo(
itemId: itemId,
status: DownloadStatus.downloaded,
- localPaths: paths,
+ localPaths: finalPaths,
sessionData: jsonEncode({
'libraryItem': stored,
'mediaMetadata': metadata,
@@ -790,8 +824,8 @@ class DownloadService extends ChangeNotifier {
}),
title: metadata?['title'] as String?,
author: metadata?['authorName'] as String?,
- localCoverPath: localCoverPath,
- localDirPath: dirPath,
+ localCoverPath: cover,
+ localDirPath: finalDir,
libraryId: item['libraryId'] as String?,
);
await _save();
@@ -1657,15 +1691,6 @@ class DownloadService extends ChangeNotifier {
return null;
}
- // An Audiobookshelf narrated EPUB: its audio comes out of the EPUB here in
- // the app, a file at a time, rather than through the background downloader.
- if (episodeId == null && !api.isBookOrbit && NarratedBooks.contains(itemId)) {
- if (shouldStart?.call() == false) return null;
- unawaited(_downloadNarration(api, itemId,
- title: title, author: author, coverUrl: coverUrl, libraryId: libraryId));
- return null;
- }
-
// If at capacity, queue this one
if (_activeDownloadIds.length >= maxConcurrent) {
if (shouldStart?.call() == false) return null;
@@ -1706,58 +1731,6 @@ class DownloadService extends ChangeNotifier {
return null;
}
- Future<void> _downloadNarration(
- ApiService api,
- String itemId, {
- required String title,
- String? author,
- String? coverUrl,
- String? libraryId,
- }) async {
- _activeDownloadIds.add(itemId);
- _cancelledIds.remove(itemId);
- DownloadInfo running(double progress) => DownloadInfo(
- itemId: itemId,
- status: DownloadStatus.downloading,
- progress: progress,
- title: title,
- author: author,
- coverUrl: coverUrl,
- libraryId: libraryId,
- );
- _downloads[itemId] = running(0);
- notifyListeners();
- debugPrint('[Download] Starting "$title" ($itemId): the narration out of its EPUB');
- var shown = DateTime(0);
- var ok = false;
- try {
- final item = await api.getLibraryItem(itemId);
- if (item != null) {
- ok = await NarrationService.instance.prepareLocal(api, item, onProgress: (p) {
- if (_cancelledIds.contains(itemId)) throw const NarrationCancelled();
- final now = DateTime.now();
- if (now.difference(shown) < const Duration(milliseconds: 500)) return;
- shown = now;
- _downloads[itemId] = running(p.clamp(0.0, 1.0));
- notifyListeners();
- });
- }
- } on NarrationCancelled {
- debugPrint('[Download] "$title" ($itemId) cancelled');
- } catch (e) {
- debugPrint('[Download] "$title" ($itemId) failed: $e');
- } finally {
- _activeDownloadIds.remove(itemId);
- }
- if (ok || _downloads[itemId]?.status == DownloadStatus.downloaded) return;
- if (_downloads[itemId]?.status == DownloadStatus.downloading) _downloads.remove(itemId);
- try {
- final dir = Directory('${await downloadBasePath}/$itemId');
- if (dir.existsSync()) await dir.delete(recursive: true);
- } catch (_) {}
- notifyListeners();
- }
-
/// Download entry point for short-lived background isolates (the episode
/// notification job). Same guards as [downloadItem], but awaits the enqueue
/// (the isolate dies as soon as the task returns, which would cut off a
@@ -1936,6 +1909,12 @@ class DownloadService extends ChangeNotifier {
);
notifyListeners();
+ if (episodeId == null && !api.isBookOrbit && NarratedBooks.contains(itemId)) {
+ await _executeNarrationDownload(
+ api: api, itemId: itemId, title: title, author: author, coverUrl: coverUrl, libraryId: libraryId);
+ return;
+ }
+
// SAF custom folder (Android only): files go to a flat per-book folder
// under the user-granted tree via content URIs, no storage permission.
final useSaf = Platform.isAndroid &&
@@ -2189,6 +2168,192 @@ class DownloadService extends ChangeNotifier {
}
}
+ /// An Audiobookshelf EPUB that reads itself aloud downloads whole, as one
+ /// background task with the usual notifications, so it carries on with the
+ /// app in the background or closed. Its audio is taken out once it lands
+ /// ([_finishNarration]).
+ Future<void> _executeNarrationDownload({
+ required ApiService api,
+ required String itemId,
+ required String title,
+ String? author,
+ String? coverUrl,
+ String? libraryId,
+ }) async {
+ final useSaf = Platform.isAndroid && _customDownloadUri != null && _customDownloadUri!.isNotEmpty;
+ String? bookDirRef;
+ try {
+ final item = await api.getLibraryItem(itemId);
+ final ebookFile = resolveEbookFile(item);
+ final ino = ebookFile?['ino'] as String?;
+ if (item == null || ebookFile == null || ino == null || ino.isEmpty) {
+ throw Exception('No EPUB to download');
+ }
+ final metadata = (item['media'] as Map?)?['metadata'] as Map?;
+ final serverTitle = (metadata?['title'] as String?)?.trim() ?? '';
+ final serverAuthor = (metadata?['authorName'] as String?)?.trim() ?? '';
+ if (serverTitle.isNotEmpty) title = serverTitle;
+ if (serverAuthor.isNotEmpty) author = serverAuthor;
+
+ var nestedName = (author != null && author.isNotEmpty)
+ ? '${_sanitizePath(author)}/${_sanitizePath(title)}'
+ : _sanitizePath(title);
+ if (_folderTakenByOther(nestedName, itemId)) {
+ nestedName = '$nestedName (${itemId.substring(itemId.length - 8)})';
+ }
+ final Directory bookDir;
+ String? relDir;
+ if (Platform.isIOS) {
+ bookDir = Directory('${await downloadBasePath}/$nestedName');
+ } else {
+ final appDir = await getApplicationDocumentsDirectory();
+ relDir = 'downloads/$nestedName';
+ bookDir = Directory('${appDir.path}/$relDir');
+ }
+ if (!bookDir.existsSync()) bookDir.createSync(recursive: true);
+ bookDirRef = bookDir.path;
+
+ final localCoverPath = await _cacheCover(api, itemId, coverUrl);
+ // What taking the audio out needs later, even with the app restarted
+ // offline: the item, without its bulky file lists.
+ final slimItem = Map<String, dynamic>.from(item)..remove('userMediaProgress');
+ slimItem['media'] = Map<String, dynamic>.from(slimItem['media'] as Map? ?? const {})
+ ..remove('audioFiles');
+ slimItem['libraryFiles'] = [ebookFile];
+
+ if (_cancelledIds.remove(itemId)) {
+ await _cleanupBookDir(bookDirRef, itemId);
+ _activeDownloadIds.remove(itemId);
+ _downloads.remove(itemId);
+ notifyListeners();
+ unawaited(_processQueue());
+ return;
+ }
+
+ final fileMeta = ebookFile['metadata'] as Map?;
+ final filename = _sanitizePath(fileMeta?['filename'] as String? ?? 'book.epub');
+ final size = (fileMeta?['size'] as num?)?.toInt();
+ final url = api.buildDownloadFileUrl(itemId, ino);
+ final wifiOnly = await PlayerSettings.getWifiOnlyDownloads();
+
+ _pending[itemId] = _PendingBook(
+ itemId: itemId,
+ apiItemId: itemId,
+ title: title,
+ author: author,
+ coverUrl: coverUrl,
+ localCoverPath: localCoverPath,
+ libraryId: libraryId,
+ bookDir: bookDirRef,
+ trackCount: 1,
+ expectedPaths: ['${bookDir.path}/$filename'],
+ slimSessionJson: jsonEncode({'libraryItem': slimItem}),
+ narration: true,
+ );
+ await _persistPending();
+
+ final l = _l();
+ final runningNotif = Platform.isIOS
+ ? TaskNotification(title, l?.downloadNotifDownloadingTitle ?? 'Downloading')
+ : TaskNotification(title, '{progress}');
+ final completeNotif = TaskNotification(
+ l?.downloadNotifCompleteTitle ?? 'Download Complete',
+ l?.downloadNotifCompleteBody(title) ?? '$title is ready to listen offline',
+ );
+ final errorNotif = TaskNotification(l?.downloadNotifFailedTitle ?? 'Download Failed', title);
+ final meta = jsonEncode({'itemId': itemId, 'i': 0, 'n': 1});
+ final DownloadTask task;
+ if (Platform.isIOS) {
+ task = DownloadTask(
+ taskId: _taskId(itemId, 0),
+ url: url,
+ headers: api.downloadHeadersFor(url),
+ filename: filename,
+ baseDirectory: BaseDirectory.root,
+ directory: bookDir.path,
+ group: _dlGroup,
+ metaData: meta,
+ updates: Updates.statusAndProgress,
+ requiresWiFi: wifiOnly,
+ retries: 3,
+ allowPause: true,
+ );
+ } else {
+ task = DownloadTask(
+ taskId: _taskId(itemId, 0),
+ url: url,
+ headers: api.downloadHeadersFor(url),
+ filename: filename,
+ baseDirectory: BaseDirectory.applicationDocuments,
+ directory: relDir!,
+ group: _dlGroup,
+ metaData: meta,
+ updates: Updates.statusAndProgress,
+ requiresWiFi: wifiOnly,
+ retries: 3,
+ allowPause: true,
+ );
+ }
+ FileDownloader().configureNotificationForTask(
+ task,
+ running: runningNotif,
+ complete: completeNotif,
+ error: errorNotif,
+ progressBar: true,
+ );
+ final ok = await FileDownloader().enqueue(task);
+ debugPrint('[Download] narration EPUB for "$title" ($itemId) enqueued ok=$ok: $filename, '
+ '${size ?? '?'} bytes, dir=${bookDir.path}, '
+ 'audio goes to ${useSaf ? 'the custom folder' : 'app storage'} once it lands');
+ if (!ok) throw Exception('Failed to enqueue the EPUB');
+ } catch (e) {
+ await _failBook(itemId,
+ cause: e, bookDirRef: bookDirRef, title: title, author: author, coverUrl: coverUrl);
+ }
+ }
+
+ /// A narrated EPUB landed: its audio is taken out and kept as the book's
+ /// download, the reader gets a copy without the audio, and the EPUB is
+ /// deleted. Runs when the download finishes, or as the app starts when it
+ /// finished while the app was closed, so it never holds the caller up.
+ Future<void> _finishNarration(String itemId, _PendingBook p, String epubPath) async {
+ final started = DateTime.now();
+ var bytes = 0;
+ try {
+ bytes = File(epubPath).lengthSync();
+ } catch (_) {}
+ debugPrint('[Download] narration EPUB for "${p.title}" ($itemId) landed ($bytes bytes) - taking its audio out');
+ Map<String, dynamic>? item;
+ try {
+ item = (jsonDecode(p.slimSessionJson ?? '{}') as Map<String, dynamic>)['libraryItem']
+ as Map<String, dynamic>?;
+ } catch (_) {}
+ var ok = false;
+ try {
+ if (item != null) {
+ ok = await NarrationService.instance
+ .keepFromEpub(item, itemId, epubPath, p.bookDir, localCoverPath: p.localCoverPath);
+ } else {
+ debugPrint('[Download] narration for $itemId has no saved item to keep it with');
+ }
+ } catch (e) {
+ debugPrint('[Download] taking the narration out of "${p.title}" ($itemId) failed: $e');
+ }
+ if (!ok) {
+ p.finalizing = false; // let _failBook proceed
+ await _failBook(itemId, cause: 'The narration could not be taken out of the EPUB');
+ return;
+ }
+ _activeDownloadIds.remove(itemId);
+ _pending.remove(itemId);
+ await _persistPending();
+ await _deleteDbRecords(itemId, p.trackCount);
+ notifyListeners();
+ debugPrint('[Download] Complete: ${p.title} (narration, kept '
+ '${DateTime.now().difference(started).inMilliseconds}ms after the EPUB landed)');
+ unawaited(_processQueue());
+ }
+
/// Rebuild forced-direct-play track URLs against the current server/token so
/// native tasks can outlive the playback session that supplied the metadata.
/// What a download needs from a play session - tracks, chapters, duration
@@ -2622,6 +2787,11 @@ class DownloadService extends ChangeNotifier {
return;
}
+ if (p.narration) {
+ unawaited(_finishNarration(itemId, p, localPaths.first));
+ return;
+ }
+
var finalPaths = localPaths;
String? finalDirPath = p.bookDir;
diff --git a/lib/services/epub_book_text.dart b/lib/services/epub_book_text.dart
index 3c360010..4a0c73d6 100644
--- a/lib/services/epub_book_text.dart
+++ b/lib/services/epub_book_text.dart
@@ -5,6 +5,8 @@ import 'package:html/dom.dart' as html;
import 'package:html/parser.dart' as html_parser;
import 'package:xml/xml.dart';
+import 'media_overlay.dart';
+
/// A spot found in a book's text: the spine section, where the words start
/// and end in its text, and how well they matched (0 to 1).
typedef TextMatch = ({int si, int s, int e, double fine});
@@ -280,6 +282,34 @@ class EpubBookText {
int sectionLength(int si) => sectionText(si).length;
+ /// The spine index of the document [href] names, as a media overlay or the
+ /// package names it, or -1.
+ int sectionOf(String href) {
+ for (var i = 0; i < spine.length; i++) {
+ if (MediaOverlay.sameDoc(spine[i], href)) return i;
+ if (i < _paths.length && MediaOverlay.sameDoc(_paths[i], href)) return i;
+ }
+ return -1;
+ }
+
+ /// The text of the element [id] in section [si], spaces tidied. Null when
+ /// the section has no such element.
+ String? elementText(int si, String id) {
+ final s = _section(si);
+ if (s == null) return null;
+ html.Element? find(html.Element e) {
+ if (e.id == id) return e;
+ for (final c in e.children) {
+ final hit = find(c);
+ if (hit != null) return hit;
+ }
+ return null;
+ }
+
+ final el = find(s.root);
+ return el == null ? null : _flat(el.text);
+ }
+
/// The TOC title for a spine href, matched the way the reader matches it:
/// by file name first, then by the end of the path.
String? chapterForHref(String href) {
diff --git a/lib/services/find_in_ebook.dart b/lib/services/find_in_ebook.dart
index aaaa6d3a..f76e2593 100644
--- a/lib/services/find_in_ebook.dart
+++ b/lib/services/find_in_ebook.dart
@@ -2,12 +2,15 @@ import 'dart:convert';
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/api_service.dart';
import '../services/audio_player_service.dart';
import '../services/chapter_lookup.dart';
import '../services/download_service.dart';
+import '../services/narration_service.dart';
import '../services/progress_sync_service.dart';
import '../services/transcription_service.dart';
import '../widgets/ebook_router.dart';
@@ -71,6 +74,27 @@ Future<void> launchFindInEbook(
showOverlayToast(context, l.findInEbookNeedsEpub, icon: Icons.menu_book_outlined);
return;
}
+
+ // A book whose audio is its EPUB's narration knows the sentence at every
+ // moment: the reader opens on it, with nothing transcribed.
+ final narration = await NarrationService.instance
+ .audioNarration(context.read<AuthProvider>().apiService, itemId);
+ if (!context.mounted) return;
+ if (narration != null) {
+ final player = AudioPlayerService();
+ final double at;
+ if (player.currentItemId == itemId && player.currentEpisodeId == null) {
+ if (player.isPlaying) player.pause();
+ at = player.position.inMilliseconds / 1000.0;
+ } else {
+ at = await ProgressSyncService().getSavedPosition(itemId);
+ if (!context.mounted) return;
+ }
+ debugPrint('[FindEbook] $itemId is narrated - opening at ${at.toStringAsFixed(1)}s, nothing transcribed');
+ await openEbookReader(context,
+ itemId: itemId, title: title, ebookFile: ebookFile, openAtAudioSeconds: at);
+ return;
+ }
if (!await PlayerSettings.getTranscriptionEnabled()) {
if (context.mounted) {
showOverlayToast(context, l.transcriptionDisabledHint,
diff --git a/lib/services/narration_service.dart b/lib/services/narration_service.dart
index 82ae7f1b..f088600b 100644
--- a/lib/services/narration_service.dart
+++ b/lib/services/narration_service.dart
@@ -11,6 +11,7 @@ import 'audio_file_duration.dart';
import 'audio_player_service.dart';
import 'download_service.dart';
import 'ebook_cache.dart';
+import 'epub_book_text.dart';
import 'media_overlay.dart';
import 'narrated_books.dart';
import 'remote_zip.dart';
@@ -55,6 +56,31 @@ List<String> _extract(({String epub, String dir, List<String> hrefs, List<String
}
}
+/// A copy of the EPUB at [from] without the files in [skip], written to [to]:
+/// the narrated book as the reader opens it, light enough to load.
+void _copyWithout(({String from, String to, List<String> skip}) job) {
+ final input = InputFileStream(job.from);
+ final part = '${job.to}.part';
+ try {
+ File(job.to).parent.createSync(recursive: true);
+ final archive = ZipDecoder().decodeStream(input);
+ final skip = job.skip.toSet();
+ final out = ZipFileEncoder()..create(part);
+ try {
+ for (final f in archive.files) {
+ if (!skip.contains(f.name)) out.addArchiveFile(f);
+ }
+ } finally {
+ out.closeSync();
+ }
+ File(part).renameSync(job.to);
+ } finally {
+ input.closeSync();
+ final left = File(part);
+ if (left.existsSync()) left.deleteSync();
+ }
+}
+
/// Downloading the narration was called off.
class NarrationCancelled implements Exception {
const NarrationCancelled();
@@ -383,6 +409,17 @@ class NarrationService {
bool hasLocalAudio(String itemId) =>
(DownloadService().getLocalPaths(itemId)?.isNotEmpty ?? false);
+ /// The narration when it is the book's audio: an Audiobookshelf EPUB with
+ /// no audiobook of its own, or a book BookOrbit plays from its EPUB. Its
+ /// timings say which sentence is being read at every moment, so nothing
+ /// needs transcribing. Null for any other book, or when the timings aren't
+ /// on this phone yet.
+ Future<MediaOverlay?> audioNarration(ApiService? api, String itemId) async {
+ if (api is BookOrbitApiService) return api.narrationFor(itemId);
+ if (!NarratedBooks.contains(itemId)) return null;
+ return localOverlay(itemId);
+ }
+
/// Puts an Audiobookshelf book's narration on the phone as its audio:
/// just the audio files, fetched out of the EPUB on the server. Servers
/// without range requests fall back to the whole EPUB. False when the EPUB
@@ -418,13 +455,14 @@ class NarrationService {
/// The narration laid on the audio files' real lengths, saved, and kept as
/// the book's download.
Future<void> _keep(
- ApiService api,
+ ApiService? api,
Map<String, dynamic> item,
String itemId,
MediaOverlay o,
String dir,
- List<String> paths,
- ) async {
+ List<String> paths, {
+ String? localCoverPath,
+ }) async {
final measured = <double?>[];
for (final p in paths) {
measured.add(await audioFileDuration(p));
@@ -438,6 +476,7 @@ class NarrationService {
if (measured.every((m) => m != null)) await ScopedPrefs.setBool(_timedKey(itemId), true);
await DownloadService().registerNarration(
api: api,
+ localCoverPath: localCoverPath,
itemId: itemId,
item: item,
dirPath: dir,
@@ -515,6 +554,54 @@ class NarrationService {
return true;
}
+ /// A narrated EPUB downloaded whole to [epubPath]: its audio files are taken
+ /// out into [dir] and kept as the book's download, the reader gets a copy
+ /// without the audio when it has none yet, and the EPUB is deleted. False
+ /// when it holds no narration after all.
+ Future<bool> keepFromEpub(
+ Map<String, dynamic> item,
+ String itemId,
+ String epubPath,
+ String dir, {
+ String? localCoverPath,
+ }) async {
+ final started = DateTime.now();
+ final o = await compute(_parseEpub, epubPath);
+ if (o == null || o.isEmpty) {
+ debugPrint('[Narration] the downloaded EPUB for $itemId holds no narration');
+ await _remember(itemId, null);
+ return false;
+ }
+ final hrefs = o.tracks.map((t) => t.href).toList();
+ final names = _trackNames(o.audioTracks((t) => t.href));
+ final paths = await compute(_extract, (epub: epubPath, dir: dir, hrefs: hrefs, names: names));
+ debugPrint('[Narration] took ${paths.length} audio files out of the downloaded EPUB for $itemId '
+ 'in ${DateTime.now().difference(started).inMilliseconds}ms');
+ final ebookFile = resolveEbookFile(item);
+ if (ebookFile != null) {
+ try {
+ final reader = await ebookCacheFileFor(itemId, ebookFile);
+ if (reader.existsSync() && reader.lengthSync() > 0) {
+ debugPrint('[EbookCache] $itemId already has a reader copy (${reader.lengthSync()} bytes)');
+ } else {
+ final at = DateTime.now();
+ await compute(_copyWithout, (from: epubPath, to: reader.path, skip: hrefs));
+ debugPrint('[EbookCache] narrated EPUB $itemId kept for the reader without its audio: '
+ '${reader.lengthSync()} bytes in ${DateTime.now().difference(at).inMilliseconds}ms');
+ }
+ } catch (e) {
+ debugPrint('[EbookCache] reader copy of $itemId not made from the download: $e');
+ }
+ }
+ try {
+ File(epubPath).deleteSync();
+ } catch (e) {
+ debugPrint('[Narration] the downloaded EPUB for $itemId was not deleted: $e');
+ }
+ await _keep(null, item, itemId, o, dir, paths, localCoverPath: localCoverPath);
+ return true;
+ }
+
/// Plays the narration, from the sentence [from] when given (read along
/// starting at the page in view, "play from here"). An Audiobookshelf book
/// plays it once downloaded: false until then.
@@ -553,3 +640,30 @@ class NarrationService {
return error == null;
}
}
+
+/// The book's own words narrated between [from] and [to] seconds: each
+/// sentence read in that stretch, in order, from the EPUB at [epubPath].
+/// Runs through [compute], so the EPUB is read off the main isolate.
+String narratedTextIn(({String epubPath, MediaOverlay overlay, double from, double to}) a) {
+ final book = EpubBookText.open(a.epubPath);
+ if (book == null) return '';
+ try {
+ final out = <String>[];
+ final seen = <String>{};
+ for (final c in a.overlay.clips) {
+ final id = c.fragment;
+ if (id == null) continue;
+ final start = a.overlay.startOf(c);
+ final end = start + (c.end - c.begin);
+ if (end <= a.from || start >= a.to) continue;
+ if (!seen.add('${c.textHref}#$id')) continue;
+ final si = book.sectionOf(c.textHref);
+ if (si < 0) continue;
+ final text = book.elementText(si, id);
+ if (text != null && text.isNotEmpty) out.add(text);
+ }
+ return out.join(' ');
+ } finally {
+ book.close();
+ }
+}
diff --git a/lib/services/read_listen_sync.dart b/lib/services/read_listen_sync.dart
index 611b9ea6..b5474539 100644
--- a/lib/services/read_listen_sync.dart
+++ b/lib/services/read_listen_sync.dart
@@ -146,6 +146,22 @@ class ReadListenSync {
/// sheet to show.
final ValueNotifier<Map<String, SyncTarget>> syncing = ValueNotifier(const {});
+ /// Books whose last sync couldn't find the spot, and which side it was
+ /// moving, for the details sheet to say so. Cleared by the next look at the
+ /// book that finds its place, or finds nothing to move.
+ final ValueNotifier<Map<String, SyncTarget>> failed = ValueNotifier(const {});
+
+ void _setFailed(String itemId, SyncTarget? to) {
+ final now = Map<String, SyncTarget>.from(failed.value);
+ if (to == null) {
+ if (now.remove(itemId) == null) return;
+ } else {
+ if (now[itemId] == to) return;
+ now[itemId] = to;
+ }
+ failed.value = now;
+ }
+
void _setSyncing(String itemId, SyncTarget? to) {
final now = Map<String, SyncTarget>.from(syncing.value);
if (to == null) {
@@ -234,7 +250,14 @@ class ReadListenSync {
/// the words last heard, or null when it stays put.
Future<String?> ebookSpotForReader(String itemId) {
final done = Completer<String?>();
- _run(() async => done.complete(await _audioToEbook(itemId, fromReader: true)));
+ _run(() async {
+ String? spot;
+ try {
+ spot = await _audioToEbook(itemId, fromReader: true);
+ } finally {
+ done.complete(spot);
+ }
+ });
return done.future;
}
@@ -252,22 +275,28 @@ class ReadListenSync {
if (l != null) showOverlayToast(ctx, text(l), icon: icon, onTap: onTap);
}
- static Future<bool> _canListen(String itemId) async {
- if (!await PlayerSettings.getSyncReadingListening()) return false;
+ static Future<bool> _canListen(String itemId, {bool manual = false}) async {
+ if (!manual && !await PlayerSettings.getSyncReadingListening()) return false;
+ final why = await _whyNot(itemId);
+ if (why == null) return true;
+ debugPrint('[SyncSpot] $itemId: ${why.log} - not syncing');
+ return false;
+ }
+
+ /// Why [itemId] can't be synced by transcribing right now, for the log and
+ /// to say on screen, or null when it can.
+ static Future<({String log, String Function(AppLocalizations l) say})?> _whyNot(String itemId) async {
if (!await PlayerSettings.getTranscriptionEnabled()) {
- debugPrint('[SyncSpot] $itemId: transcription is off - not syncing');
- return false;
+ return (log: 'transcription is off', say: (AppLocalizations l) => l.transcriptionDisabledHint);
}
final t = TranscriptionService.instance;
if (!t.canTranscribeBook(itemId)) {
- debugPrint('[SyncSpot] $itemId: this book can not be transcribed - not syncing');
- return false;
+ return (log: 'this book can not be transcribed', say: (AppLocalizations l) => l.transcriptionNotDownloadedBook);
}
for (final size in TranscriptionModelSize.values) {
- if (await t.isModelDownloaded(size)) return true;
+ if (await t.isModelDownloaded(size)) return null;
}
- debugPrint('[SyncSpot] $itemId: no transcription model downloaded - not syncing');
- return false;
+ return (log: 'no transcription model downloaded', say: (AppLocalizations l) => l.transcriptionNoModelDownloaded);
}
/// The audiobook and ebook of [itemId], when it has both and isn't done.
@@ -307,21 +336,26 @@ class ReadListenSync {
}
/// Listening stopped: the ebook spot moves to the words last heard, when
- /// those are past it. Returns the new spot.
- Future<String?> _audioToEbook(String itemId, {bool fromReader = false}) async {
+ /// those are past it. Returns the new spot. [manual] is the Sync position
+ /// button: the setting isn't needed, and it looks again even when nothing
+ /// was heard since the last look.
+ Future<String?> _audioToEbook(String itemId, {bool fromReader = false, bool manual = false}) async {
+ // Whether the words heard were placed in the ebook, once a look started.
+ bool? found;
try {
if (!fromReader && _readerOpen.contains(itemId)) return null;
- if (!await _canListen(itemId)) return null;
+ if (!await _canListen(itemId, manual: manual)) return null;
final api = _api;
if (api == null) return null;
final heard = await _heardAt(itemId);
if (heard == null || heard < 30) return null;
final last = await ScopedPrefs.getDouble(_heardKey(itemId));
- if (last != null && (heard - last).abs() < 20) return null;
+ if (!manual && last != null && (heard - last).abs() < 20) return null;
final book = await _book(api, itemId);
if (book == null) return null;
final started = DateTime.now();
_setSyncing(itemId, SyncTarget.ebook);
+ found = false;
final title = ((book.item['media'] as Map?)?['metadata'] as Map?)?['title'] as String? ?? '';
final epub = await NarrationService.instance.readerFile(api, itemId, book.ebook, title);
final from = max(0.0, heard - 15);
@@ -332,7 +366,10 @@ class ReadListenSync {
preferAccuracy: false,
);
final transcript = segs.map((s) => s.text).join(' ').trim();
- if (transcript.split(RegExp(r'\s+')).length < 5) return null;
+ if (transcript.split(RegExp(r'\s+')).length < 5) {
+ debugPrint('[SyncSpot] $itemId: too few words heard at ${heard.toStringAsFixed(0)}s to place them');
+ return null;
+ }
final current = await _ebookSpot(api, itemId);
final near = (heard / book.duration).clamp(0.0, 1.0);
final placed = await _placeAsync(epub.path, transcript, near, current);
@@ -341,6 +378,7 @@ class ReadListenSync {
debugPrint('[SyncSpot] $itemId: the words at ${heard.toStringAsFixed(0)}s are not in the ebook');
return null;
}
+ found = true;
// BookOrbit moves a narrated EPUB along with the audiobook itself.
if (placed.narrated && api.isBookOrbit) return null;
final cs = placed.currentSi, co = placed.currentOffset;
@@ -373,27 +411,40 @@ class ReadListenSync {
return placed.cfi;
} finally {
_setSyncing(itemId, null);
+ if (found != null) _setFailed(itemId, found ? null : SyncTarget.ebook);
}
}
/// The reader closed after reading: the audiobook moves to the page, when
- /// the page is past it. Returns the new spot.
- Future<double?> _ebookToAudio(String itemId, String cfi) async {
+ /// the page is past it. Returns the new spot. [manual] is the Sync position
+ /// button: the setting isn't needed, it looks again at a page it has seen,
+ /// and it moves the audio even while it plays, since that was asked for.
+ Future<double?> _ebookToAudio(String itemId, String cfi, {bool manual = false}) async {
+ // Whether the page was found in the audio, once a look started.
+ bool? found;
try {
final began = DateTime.now();
- if (!await _canListen(itemId)) return null;
- if (await ScopedPrefs.getString(_readKey(itemId)) == cfi) return null;
+ if (!await _canListen(itemId, manual: manual)) return null;
+ if (!manual && await ScopedPrefs.getString(_readKey(itemId)) == cfi) return null;
final api = _api;
if (api == null) return null;
final player = AudioPlayerService();
- if (player.currentItemId == itemId && player.currentEpisodeId == null && player.isPlaying) return null;
+ if (!manual && player.currentItemId == itemId && player.currentEpisodeId == null && player.isPlaying) {
+ return null;
+ }
final heard = await _heardAt(itemId) ?? 0;
final book = await _book(api, itemId);
if (book == null) return null;
- final file = await ebookCacheFileFor(itemId, book.ebook);
+ final title = ((book.item['media'] as Map?)?['metadata'] as Map?)?['title'] as String? ?? '';
+ final file = await NarrationService.instance.readerFile(api, itemId, book.ebook, title);
if (!file.existsSync()) return null;
final spot = await _spotAsync(file.path, cfi);
- if (spot == null || (spot.narrated && api.isBookOrbit)) return null;
+ if (spot == null) {
+ debugPrint('[SyncSpot] $itemId: the saved page is not in this ebook');
+ found = false;
+ return null;
+ }
+ if (spot.narrated && api.isBookOrbit) return null;
final text = EpubBookText.open(file.path);
if (text == null) return null;
try {
@@ -412,17 +463,24 @@ class ReadListenSync {
if (guess <= heard + 60) {
debugPrint('[SyncSpot] $itemId: the page (about ${guess.toStringAsFixed(0)}s) '
'is not ahead of the audio (${heard.toStringAsFixed(0)}s)');
+ found = true;
return null;
}
final started = DateTime.now();
_setSyncing(itemId, SyncTarget.audio);
+ found = false;
final t = await locator.locate(info, api);
- if (t == null || t <= heard + 15) return null;
+ if (t == null) {
+ debugPrint('[SyncSpot] $itemId: the page was not found in the audio');
+ return null;
+ }
+ found = true;
+ if (t <= heard + 15) return null;
final now = AudioPlayerService();
final inPlayer = now.currentItemId == itemId && now.currentEpisodeId == null;
// Playback started while this was being found: the audio is never moved
// under it. The spot is offered instead.
- if ((_playedAt[itemId]?.isAfter(began) ?? false) || (inPlayer && now.isPlaying)) {
+ if (!manual && ((_playedAt[itemId]?.isAfter(began) ?? false) || (inPlayer && now.isPlaying))) {
debugPrint('[SyncSpot] $itemId: found ${t.toStringAsFixed(0)}s after playback started - offering it');
_toast((l) => l.syncAudioOffer, Icons.headphones_rounded, onTap: () {
final p = AudioPlayerService();
@@ -456,6 +514,45 @@ class ReadListenSync {
}
} finally {
_setSyncing(itemId, null);
+ if (found != null) _setFailed(itemId, found ? null : SyncTarget.audio);
+ }
+ }
+
+ /// The Sync position button, for when the automatic sync is off: whichever
+ /// of the audio and the ebook is behind moves up to the other, and a toast
+ /// says how it went.
+ Future<void> syncNow(String itemId) {
+ final done = Completer<void>();
+ _run(() async {
+ try {
+ await _syncNow(itemId);
+ } finally {
+ done.complete();
+ }
+ });
+ return done.future;
+ }
+
+ Future<void> _syncNow(String itemId) async {
+ final why = await _whyNot(itemId);
+ if (why != null) {
+ debugPrint('[SyncSpot] $itemId: sync asked for, but ${why.log}');
+ _toast(why.say, Icons.record_voice_over_rounded);
+ return;
}
+ final api = _api;
+ if (api == null) return;
+ debugPrint('[SyncSpot] $itemId: sync asked for');
+ _setFailed(itemId, null);
+ // The page first: when it is ahead, the audio moves up to it.
+ final cfi = await _ebookSpot(api, itemId);
+ if (cfi != null && await _ebookToAudio(itemId, cfi, manual: true) != null) return;
+ if (!failed.value.containsKey(itemId) && await _audioToEbook(itemId, manual: true) != null) return;
+ if (failed.value.containsKey(itemId)) {
+ _toast((l) => l.syncFailed, Icons.sync_problem_rounded);
+ return;
+ }
+ _toast((l) => l.syncAlreadyTogether, Icons.check_rounded);
}
+
}
diff --git a/lib/widgets/book_detail_sheet.dart b/lib/widgets/book_detail_sheet.dart
index 5a7cf2cc..0c692556 100644
--- a/lib/widgets/book_detail_sheet.dart
+++ b/lib/widgets/book_detail_sheet.dart
@@ -41,6 +41,7 @@ import '../services/bookmark_preview_player.dart';
import '../services/bookmark_service.dart';
import '../services/download_service.dart';
import '../services/narrated_books.dart';
+import '../services/transcription_service.dart';
import '../services/ebook_cache.dart';
import '../services/progress_sync_service.dart';
import '../services/metadata_override_service.dart';
@@ -256,6 +257,11 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
// button waits for the answer rather than showing Read and then switching
// to Absorb.
bool _lookingForNarration = false;
+ // Whether the automatic reading and listening sync is on; with it off, an
+ // audiobook with an EPUB gets a Sync position button.
+ bool _autoSync = true;
+ // Transcription on with a model downloaded, which Sync position needs.
+ bool _transcriptionReady = false;
/// Looks into an Audiobookshelf ebook-only EPUB on the server (its index
/// and timings only) to see whether it reads itself aloud.
@@ -300,6 +306,16 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
});
}
+ Future<void> _checkTranscriptionReady() async {
+ if (!await PlayerSettings.getTranscriptionEnabled()) return;
+ for (final size in TranscriptionModelSize.values) {
+ if (await TranscriptionService.instance.isModelDownloaded(size)) {
+ if (mounted) setState(() => _transcriptionReady = true);
+ return;
+ }
+ }
+ }
+
/// An Audiobookshelf EPUB that reads itself aloud plays from the phone, so
/// until its narration is downloaded the Absorb button offers that instead.
bool _needsNarrationDownload(AuthProvider auth) =>
@@ -396,6 +412,10 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
NarrationService.instance.knownNarrated(widget.itemId).then((known) {
if (known != null && mounted) setState(() => _knownNarrated = known);
});
+ PlayerSettings.getSyncReadingListening().then((on) {
+ if (mounted && on != _autoSync) setState(() => _autoSync = on);
+ });
+ _checkTranscriptionReady();
SocketService().addItemUpdatedListener(_onSocketItemUpdated);
_loadCoverShape();
PlayerSettings.getShowGoodreadsButton().then((v) { if (mounted) setState(() => _showGoodreads = v); });
@@ -1254,14 +1274,40 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
},
),
),
- ValueListenableBuilder<Map<String, SyncTarget>>(
- valueListenable: ReadListenSync.instance.syncing,
- builder: (context, syncing, _) {
- final to = syncing[widget.itemId];
+ ListenableBuilder(
+ listenable: Listenable.merge([ReadListenSync.instance.syncing, ReadListenSync.instance.failed]),
+ builder: (context, _) {
+ final to = ReadListenSync.instance.syncing.value[widget.itemId];
+ final failed = to == null && ReadListenSync.instance.failed.value.containsKey(widget.itemId);
return AnimatedSize(
duration: const Duration(milliseconds: 200),
- child: to == null
+ child: to == null && !failed
? const SizedBox(width: double.infinity)
+ : failed
+ ? Padding(
+ padding: const EdgeInsets.only(top: 6),
+ child: InkWell(
+ borderRadius: BorderRadius.circular(10),
+ onTap: () => ReadListenSync.instance.syncNow(widget.itemId),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
+ child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
+ Icon(Icons.sync_problem_rounded, size: 16, color: cs.error),
+ const SizedBox(width: 8),
+ Flexible(
+ child: Text(
+ l.syncFailed,
+ style: tt.labelMedium?.copyWith(color: cs.error),
+ overflow: TextOverflow.ellipsis,
+ ),
+ ),
+ const SizedBox(width: 10),
+ Text(l.retry,
+ style: tt.labelMedium?.copyWith(fontWeight: FontWeight.w600, color: accent)),
+ ]),
+ ),
+ ),
+ )
: Padding(
padding: const EdgeInsets.only(top: 10),
child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
@@ -1365,6 +1411,46 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
);
}),
],
+ // With the automatic sync off, an audiobook and its separate EPUB come
+ // together by hand: whichever is behind moves up to the other.
+ if (!_autoSync &&
+ _transcriptionReady &&
+ !isEbookOnly &&
+ ebookFile != null &&
+ ebookExtFromFile(ebookFile) == '.epub' &&
+ media['narration'] == null &&
+ !NarratedBooks.contains(widget.itemId)) ...[
+ const SizedBox(height: 8),
+ ValueListenableBuilder<Map<String, SyncTarget>>(
+ valueListenable: ReadListenSync.instance.syncing,
+ builder: (context, syncing, _) {
+ final busy = syncing.containsKey(widget.itemId);
+ return SizedBox(
+ height: 36,
+ child: Material(
+ color: Colors.transparent,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(14),
+ side: BorderSide(color: accent.withValues(alpha: 0.3)),
+ ),
+ clipBehavior: Clip.antiAlias,
+ child: InkWell(
+ onTap: busy ? null : () => ReadListenSync.instance.syncNow(widget.itemId),
+ child: Center(
+ child: Row(mainAxisSize: MainAxisSize.min, children: [
+ Icon(Icons.sync_rounded, size: 16, color: accent.withValues(alpha: busy ? 0.4 : 1)),
+ const SizedBox(width: 8),
+ Text(l.syncPosition,
+ style: tt.labelLarge?.copyWith(
+ fontWeight: FontWeight.w600, color: accent.withValues(alpha: busy ? 0.4 : 1))),
+ ]),
+ ),
+ ),
+ ),
+ );
+ },
+ ),
+ ],
// Primary action row: Download | Fully Absorb | ebook download (ebook-only)
const SizedBox(height: 12),
Row(children: [
diff --git a/lib/widgets/bookmark_detail_dialog.dart b/lib/widgets/bookmark_detail_dialog.dart
index dbe89aba..765377b8 100644
--- a/lib/widgets/bookmark_detail_dialog.dart
+++ b/lib/widgets/bookmark_detail_dialog.dart
@@ -14,6 +14,7 @@ import '../services/bookmark_preview_player.dart';
import '../services/chapter_lookup.dart';
import '../services/download_service.dart';
import '../services/ebook_cache.dart';
+import '../services/media_overlay.dart';
import '../services/narration_service.dart';
import '../services/transcription_service.dart';
import '../utils/episode_key.dart';
@@ -65,6 +66,9 @@ class _BookmarkDetailSheetState extends State<BookmarkDetailSheet> {
bool _transcriptionOn = false;
// Non-null when the book has an EPUB to cross-reference transcripts against.
Map<String, dynamic>? _epubForCrossRef;
+ // The EPUB's own narration when it is this book's audio: the words then
+ // come straight from the book, with nothing transcribed.
+ MediaOverlay? _narration;
// Display-only speed division (speed-adjusted-time setting). _seconds stays
// raw book time throughout - preview, clip export, jump and save all use it.
double _displaySpeed = 1.0;
@@ -90,8 +94,15 @@ class _BookmarkDetailSheetState extends State<BookmarkDetailSheet> {
if (mounted && on) setState(() => _transcriptionOn = true);
});
_resolveEpubForCrossRef();
+ if (widget.episodeId == null) {
+ NarrationService.instance.audioNarration(widget.api, widget.itemId).then((n) {
+ if (mounted && n != null) setState(() => _narration = n);
+ });
+ }
}
+ bool get _fromNarration => _narration != null && _epubForCrossRef != null;
+
/// Whether this book has an EPUB the transcript can be corrected against -
/// the cached copy first, then the item's metadata (fetched lazily at
/// transcribe time when it isn't cached yet).
@@ -252,22 +263,29 @@ class _BookmarkDetailSheetState extends State<BookmarkDetailSheet> {
/// the passage confidently matched. Null keeps the raw transcript - a
/// failed fetch or an unconfident match must never block the transcription.
Future<String?> _ebookExactText(String transcript) async {
- final ebookFile = _epubForCrossRef;
- if (ebookFile == null) return null;
try {
- var f = await ebookCacheFileFor(widget.itemId, ebookFile);
- if (!f.existsSync() || await f.length() <= 0) {
- final api = widget.api;
- if (api == null) return null;
- f = await NarrationService.instance.readerFile(api, widget.itemId, ebookFile, '');
- }
- return await compute(correctFromEpub, (epubPath: f.path, transcript: transcript));
+ final path = await _epubPath();
+ if (path == null) return null;
+ return await compute(correctFromEpub, (epubPath: path, transcript: transcript));
} catch (e) {
debugPrint('[Transcribe] ebook cross-reference failed: $e');
return null;
}
}
+ /// This book's EPUB on the phone, fetched when it isn't cached yet.
+ Future<String?> _epubPath() async {
+ final ebookFile = _epubForCrossRef;
+ if (ebookFile == null) return null;
+ var f = await ebookCacheFileFor(widget.itemId, ebookFile);
+ if (!f.existsSync() || await f.length() <= 0) {
+ final api = widget.api;
+ if (api == null) return null;
+ f = await NarrationService.instance.readerFile(api, widget.itemId, ebookFile, '');
+ }
+ return f.path;
+ }
+
String _mapTranscriptionError(AppLocalizations l, TranscriptionError kind) {
switch (kind) {
case TranscriptionError.disabled:
@@ -295,6 +313,11 @@ class _BookmarkDetailSheetState extends State<BookmarkDetailSheet> {
final l = AppLocalizations.of(context)!;
await _preview.stop();
if (!mounted) return;
+ final narration = _narration;
+ if (narration != null && _epubForCrossRef != null) {
+ await _textFromNarration(narration);
+ return;
+ }
if (!TranscriptionService.instance.canTranscribeBook(widget._key)) {
showOverlayToast(context, l.transcriptionNotDownloadedBook,
icon: Icons.download_rounded);
@@ -304,50 +327,8 @@ class _BookmarkDetailSheetState extends State<BookmarkDetailSheet> {
// Set expectations before burning CPU (it takes a while, the text needs a
// once-over, the result lands in the note) and let the user pick how much
// audio to transcribe. The choice is remembered for next time.
- var window = await PlayerSettings.getTranscriptionWindowSeconds();
- if (!mounted) return;
- final go = await showDialog<bool>(
- context: context,
- builder: (ctx) => StatefulBuilder(
- builder: (ctx, setDialogState) => AlertDialog(
- icon: const Icon(Icons.record_voice_over_rounded),
- title: Text(l.transcribe),
- content: Column(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(l.transcriptionIntroBody),
- const SizedBox(height: 16),
- SegmentedButton<int>(
- segments: [
- for (final s in const [15, 30, 60, 120])
- ButtonSegment(
- value: s,
- label: Text(s < 60 ? '${s}s' : '${s ~/ 60} min')),
- ],
- selected: {window},
- showSelectedIcon: false,
- onSelectionChanged: (sel) =>
- setDialogState(() => window = sel.first),
- ),
- ],
- ),
- actions: [
- TextButton(
- onPressed: () => Navigator.pop(ctx, false),
- child: Text(l.cancel),
- ),
- FilledButton(
- onPressed: () => Navigator.pop(ctx, true),
- child: Text(l.transcribe),
- ),
- ],
- ),
- ),
- );
- if (go != true || !mounted) return;
- await PlayerSettings.setTranscriptionWindowSeconds(window);
- if (!mounted) return;
+ final window = await _pickWindow(l.transcriptionIntroBody);
+ if (window == null || !mounted) return;
showProgressDialog(context, l.transcribing);
@@ -387,10 +368,95 @@ class _BookmarkDetailSheetState extends State<BookmarkDetailSheet> {
return;
}
- // Save straight into the note - a Share-then-back must never lose the
- // text. Fixing mistakes and sharing both happen right here in the sheet.
final trimmed = (text ?? '').trim();
if (trimmed.isEmpty) return;
+ await _saveToNote(trimmed);
+ }
+
+ /// A book whose audio is its EPUB's narration knows the words at every
+ /// moment: the sentences read from just before the bookmark come straight
+ /// from the book and go into the note, with nothing transcribed.
+ Future<void> _textFromNarration(MediaOverlay narration) async {
+ final l = AppLocalizations.of(context)!;
+ final window = await _pickWindow(l.narrationTextBody);
+ if (window == null || !mounted) return;
+ showProgressDialog(context, l.narrationTextLoading);
+ var text = '';
+ try {
+ final path = await _epubPath();
+ if (path != null) {
+ final from = (_seconds - 3).clamp(0.0, double.infinity);
+ text = await compute(
+ narratedTextIn, (epubPath: path, overlay: narration, from: from, to: from + window));
+ }
+ } catch (e) {
+ debugPrint('[Transcribe] reading the narrated words failed: $e');
+ }
+ if (!mounted) return;
+ Navigator.pop(context); // dismiss the progress dialog
+ final trimmed = text.trim();
+ if (trimmed.isEmpty) {
+ showOverlayToast(context, l.transcriptionEmptyMsg, icon: Icons.error_outline_rounded);
+ return;
+ }
+ debugPrint('[Transcribe] ${widget._key}: ${trimmed.length} characters from the narration, nothing transcribed');
+ await _saveToNote(trimmed);
+ }
+
+ /// How many seconds from the bookmark to put in the note, with [body]
+ /// saying what happens. Remembered for next time; null when cancelled.
+ Future<int?> _pickWindow(String body) async {
+ final l = AppLocalizations.of(context)!;
+ var window = await PlayerSettings.getTranscriptionWindowSeconds();
+ if (!mounted) return null;
+ final go = await showDialog<bool>(
+ context: context,
+ builder: (ctx) => StatefulBuilder(
+ builder: (ctx, setDialogState) => AlertDialog(
+ icon: const Icon(Icons.record_voice_over_rounded),
+ title: Text(l.transcribe),
+ content: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(body),
+ const SizedBox(height: 16),
+ SegmentedButton<int>(
+ segments: [
+ for (final s in const [15, 30, 60, 120])
+ ButtonSegment(
+ value: s,
+ label: Text(s < 60 ? '${s}s' : '${s ~/ 60} min')),
+ ],
+ selected: {window},
+ showSelectedIcon: false,
+ onSelectionChanged: (sel) =>
+ setDialogState(() => window = sel.first),
+ ),
+ ],
+ ),
+ actions: [
+ TextButton(
+ onPressed: () => Navigator.pop(ctx, false),
+ child: Text(l.cancel),
+ ),
+ FilledButton(
+ onPressed: () => Navigator.pop(ctx, true),
+ child: Text(l.transcribe),
+ ),
+ ],
+ ),
+ ),
+ );
+ if (go != true) return null;
+ await PlayerSettings.setTranscriptionWindowSeconds(window);
+ return window;
+ }
+
+ /// Save straight into the note - a Share-then-back must never lose the
+ /// text. Fixing mistakes and sharing both happen right here in the sheet.
+ Future<void> _saveToNote(String trimmed) async {
+ final l = AppLocalizations.of(context)!;
setState(() {
_noteC.text =
_noteC.text.trim().isEmpty ? trimmed : '${_noteC.text.trim()}\n\n$trimmed';
@@ -615,7 +681,7 @@ class _BookmarkDetailSheetState extends State<BookmarkDetailSheet> {
onPressed: _saving ? null : _openClipEditor,
),
),
- if (_transcriptionOn) ...[
+ if (_transcriptionOn || _fromNarration) ...[
const SizedBox(height: 8),
SizedBox(
width: double.infinity,
diff --git a/lib/widgets/card_buttons.dart b/lib/widgets/card_buttons.dart
index caed0a5f..6e9a2740 100644
--- a/lib/widgets/card_buttons.dart
+++ b/lib/widgets/card_buttons.dart
@@ -17,6 +17,7 @@ import '../services/lyrics_service.dart';
import '../services/transcription_service.dart';
import '../services/equalizer_service.dart';
import '../services/playback_history_service.dart';
+import '../services/narrated_books.dart';
import '../services/scoped_prefs.dart';
import '../services/screen_wake.dart';
import '../services/sleep_timer_service.dart';
@@ -1604,6 +1605,15 @@ class CardActionDelegate {
Map<String, dynamic> get _media => item['media'] as Map<String, dynamic>? ?? {};
+ /// A book whose audio is its EPUB's narration: Read already opens on the
+ /// sentence being heard, so Find in ebook would be the same button twice.
+ bool get _narratedEbook =>
+ episodeId == null && (NarratedBooks.contains(itemId) || _media['narration'] != null);
+
+ /// The saved button order, less what this book has no use for.
+ List<String> get _shownOrder =>
+ _narratedEbook ? buttonOrder.where((id) => id != 'findinebook').toList() : buttonOrder;
+
/// Which episode the bookmark surfaces belong to. A card that knows its own
/// episode wins; an active podcast card falls back to what is playing.
String? get _bookmarkEpisodeId =>
@@ -1705,7 +1715,7 @@ class CardActionDelegate {
List<Widget> buildButtonGrid(Color accent, TextTheme tt) {
final count = visibleButtonCount;
- final ids = buttonOrder.take(count).toList();
+ final ids = _shownOrder.take(count).toList();
final n = ids.length;
if (n == 0) return [];
@@ -2183,7 +2193,7 @@ class CardActionDelegate {
void showMoreMenu(Color accent, TextTheme tt) {
final count = visibleButtonCount;
- final overflowIds = buttonOrder.skip(count).where((id) => id != '_more').toList();
+ final overflowIds = _shownOrder.skip(count).where((id) => id != '_more').toList();
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
diff --git a/lib/widgets/ebook_reader_view.dart b/lib/widgets/ebook_reader_view.dart
index 89061c50..8ace4a14 100644
--- a/lib/widgets/ebook_reader_view.dart
+++ b/lib/widgets/ebook_reader_view.dart
@@ -100,6 +100,9 @@ class EbookReaderView extends StatefulWidget {
/// The audio position [findText] was transcribed at, so a not-confident
/// first pass can transcribe a longer window and retry.
final double? findPositionSeconds;
+ /// Find in ebook on a book whose audio is its EPUB's narration: the book
+ /// time to open at, on the sentence read then.
+ final double? openAtAudioSeconds;
/// Turn read along on as soon as the book is displayed, for the card's
/// Read along button.
final bool startReadAlong;
@@ -113,6 +116,7 @@ class EbookReaderView extends StatefulWidget {
this.findText,
this.findChapterHint,
this.findPositionSeconds,
+ this.openAtAudioSeconds,
this.startReadAlong = false,
});
@@ -3777,19 +3781,19 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
bool _narrationOpenedAtAudio = false;
/// Opening the reader on a narrated book: go to the sentence the audio is
- /// on when the book is in the player, or when the listening has got
- /// further than the reading. Reading follows listening, as listening
- /// follows reading ahead.
+ /// on. Reading ahead moved the audio along when the reader closed, so this
+ /// is where both left off; Read stands in for Find in ebook on these.
Future<void> _narrationOpenAtAudio() async {
final n = _narration;
if (_narrationOpenedAtAudio || n == null || !_useNarration || !_didLoadRescue) return;
if (widget.openAtCfi != null || widget.findText != null || widget.startReadAlong) return;
_narrationOpenedAtAudio = true;
final player = AudioPlayerService();
- double? at;
- if (player.currentItemId == widget.itemId && player.currentEpisodeId == null) {
+ // Find in ebook names the spot, whether or not it is ahead of the page.
+ double? at = widget.openAtAudioSeconds;
+ if (at == null && player.currentItemId == widget.itemId && player.currentEpisodeId == null) {
at = player.position.inMilliseconds / 1000.0;
- } else {
+ } else if (at == null) {
final local = await ProgressSyncService().getLocal(widget.itemId);
final saved = _narrationLib?.getProgressData(widget.itemId);
final localAt = (local?['timestamp'] as num?)?.toInt() ?? 0;
@@ -3801,15 +3805,9 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs
: (localAt >= savedAt ? local : saved);
final heard = (newer?['currentTime'] as num?)?.toDouble() ?? 0;
if (heard <= 0) return;
- // Measured in narration time against the page's first sentence, so a
- // long front matter can't make the audio look ahead when it isn't.
+ // Already on the sentence the audio stopped at: nothing moves.
final readAt = await _narrationTimeOnPage();
- if (readAt != null) {
- if (heard <= readAt + 1) return;
- } else {
- final read = (saved?['ebookProgress'] as num?)?.toDouble() ?? _progress;
- if (n.duration <= 0 || heard / n.duration <= read + 0.005) return;
- }
+ if (readAt != null && (heard - readAt).abs() <= 1) return;
at = heard;
}
if (!mounted) return;
diff --git a/lib/widgets/ebook_router.dart b/lib/widgets/ebook_router.dart
index b661e741..722b21fc 100644
--- a/lib/widgets/ebook_router.dart
+++ b/lib/widgets/ebook_router.dart
@@ -45,6 +45,7 @@ Future<void> openEbookReader(
String? findText,
String? findChapterHint,
double? findPositionSeconds,
+ double? openAtAudioSeconds,
bool startReadAlong = false,
}) async {
final ext = ebookExt(ebookFile);
@@ -57,7 +58,8 @@ Future<void> openEbookReader(
epubReader: () => EbookReaderView(
itemId: itemId, title: title, ebookFile: ebookFile, openAtCfi: openAtCfi,
findText: findText, findChapterHint: findChapterHint,
- findPositionSeconds: findPositionSeconds, startReadAlong: startReadAlong),
+ findPositionSeconds: findPositionSeconds, openAtAudioSeconds: openAtAudioSeconds,
+ startReadAlong: startReadAlong),
);
} else if (comicEbookFormats.contains(ext)) {
viewer = ComicReaderView(itemId: itemId, title: title, ebookFile: ebookFile);