diff --git a/English.md b/English.md index 9e4785b72..9cc6b9800 100644 --- a/English.md +++ b/English.md @@ -1,149 +1,149 @@ -# [English](English.md) [中文](README.md) - -[![icon_android](https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/icon_android.png)](https://play.google.com/store/apps/details?id=io.legado.play.release) - -idea - -
-legado - -Legado / 开源阅读 -
-gedoor.github.io / legado.top -
-Legado is a free and open source novel reader for Android. -
- -[![](https://img.shields.io/badge/-Contents:-696969.svg)](#contents) [![](https://img.shields.io/badge/-Function-F5F5F5.svg)](#Function-) [![](https://img.shields.io/badge/-Download-F5F5F5.svg)](#Download-) [![](https://img.shields.io/badge/-Community-F5F5F5.svg)](#Community-) [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-) [![](https://img.shields.io/badge/-Other-F5F5F5.svg)](#Other-) [![](https://img.shields.io/badge/-Grateful-F5F5F5.svg)](#Grateful-) [![](https://img.shields.io/badge/-Interface-F5F5F5.svg)](#Interface-) - ->New user? -> ->The software does not provide content, you need to add it manually, such as importing book sources, etc. ->Take a look at [official help documentation](https://www.yuque.com/legado/wiki),Maybe there's an answer you need inside. - -# Function [![](https://img.shields.io/badge/-Function-F5F5F5.svg)](#Function-) - -You can customize the book source, set your own rules, and capture web page data. The rules are simple and easy to understand. There are rules in the software. List bookshelf, grid bookshelf switch freely. The book source rules support search and discovery, and all the functions of finding books and reading books are all customized, making it easier to find books. -* Custom ebook sources, set your own rules to capture web data, the rules are simple and easy to understand, the software has a rule description. -* eBook sources rules support search and discovery, all find books and read books function all custom, find books more convenient. -* Schedule updating your library for new chapters. -* Online reading from web sources that can be imported in bulk -* Local reading of Auto-download episodes. -* Local reading of TXT or EPUB files -* ebook Wishlist -* Big text viewer. You can open eBook and txt in 1GB size -* Automatic text replacement for removing ad in content -* List bookshelf, grid bookshelf free to switch. -* Subscription content, you can subscribe to any content you want to see, see what you want to see -* A configurable reader with fonts, background, page transitions mode and other settings -* Timer. Set interval time to listen ebook, time up, ebook turn off completely. -* TTS book reader. tts can optionally be install“smartvoice-4.1.0” or ”Speech Services by Google“ Give your baby a storybook to listen to and teach your baby to talk, -* Dark mode and E-Ink mode support and Web service support -* Create backups to local or WebDav server -* Decentralization web3 -* Support replacement purification, it is very convenient to remove the content of advertisement replacement. -* Support local TXT, EPUB reading, manual browsing, intelligent scanning. -* Support highly customized reading interface, switch font, color, background, line spacing, paragraph spacing, bold, simplified and traditional conversion. -* Support multiple page turning modes, covering, emulating, sliding, scrolling, etc. - - - - # - - -# Download [![](https://img.shields.io/badge/-Download-F5F5F5.svg)](#Download-) - -#### Android - -* [Releases](https://github.com/gedoor/legado/releases/latest) -* [Google play - $1.99](https://play.google.com/store/apps/details?id=io.legado.play.release) -* [Coolapk](https://www.coolapk.com/apk/io.legado.app.release) -* [\#Beta](https://kunfei.lanzoui.com/b0f810h4b) -* [IzzyOnDroid F-Droid Repository](https://apt.izzysoft.de/fdroid/index/apk/io.legado.app.release) - - -#### IOS - -* Stopped(No release) - [Github](https://github.com/gedoor/YueDuFlutter) - - - # - - -# Community [![](https://img.shields.io/badge/-Community-F5F5F5.svg)](#Community-) - -#### Telegram - -[![Telegram-group](https://img.shields.io/badge/Telegram-group-blue)](https://t.me/yueduguanfang) [![Telegram-channel](https://img.shields.io/badge/Telegram-channel-blue)](https://t.me/legado_channels) - -#### Discord - -[![Discord](https://img.shields.io/discord/560731361414086666?color=%235865f2&label=Discord)](https://discord.gg/VtUfRyzRXn) - -#### Other - -https://www.yuque.com/legado/wiki/community - - - # - - -# API [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-) - -* Legado 3.0 The API is provided in 2 ways: `Web way` and `Content Provider way`. You can call it yourself as needed in [here](api.md). -* One-click import by url recall reading, url format: legado://import/{path}?src={url} -* Path Type: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf -* path type explanation: Book source, subscription source, replacement rules, local txt novel directory rules, online reading engine, theme, reading layout, add to bookshelf - - - # - - -# Other [![](https://img.shields.io/badge/-Other-F5F5F5.svg)](#Other-) - -##### Disclaimers - -https://gedoor.github.io/Disclaimer - -##### Legado 3.0 - -* [eBook sources rules](https://mgz0227.github.io/The-tutorial-of-Legado/) -* [Update Log](/app/src/main/assets/updateLog.md) -* [Help Documentation](/app/src/main/assets/web/help/md/appHelp.md) -* [web bookshelf](https://github.com/gedoor/legado_web_bookshelf) -* [web source editor](https://github.com/gedoor/legado_web_source_editor) - - - # - - -# Grateful [![](https://img.shields.io/badge/-Grateful-F5F5F5.svg)](#Grateful-) - -> * org.jsoup:jsoup -> * cn.wanghaomiao:JsoupXpath -> * com.jayway.jsonpath:json-path -> * com.github.gedoor:rhino-android -> * com.squareup.okhttp3:okhttp -> * com.github.bumptech.glide:glide -> * org.nanohttpd:nanohttpd -> * org.nanohttpd:nanohttpd-websocket -> * cn.bingoogolapple:bga-qrcode-zxing -> * com.jaredrummler:colorpicker -> * org.apache.commons:commons-text -> * io.noties.markwon:core -> * io.noties.markwon:image-glide -> * com.hankcs:hanlp -> * com.positiondev.epublib:epublib-core - - - # - - -# Interface [![](https://img.shields.io/badge/-Interface-F5F5F5.svg)](#Interface-) - - - - - - # - +# [English](English.md) [中文](README.md) + +[![icon_android](https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/icon_android.png)](https://play.google.com/store/apps/details?id=io.legado.play.release) + +idea + +
+legado + +Legado / 开源阅读 +
+gedoor.github.io / legado.top +
+Legado is a free and open source novel reader for Android. +
+ +[![](https://img.shields.io/badge/-Contents:-696969.svg)](#contents) [![](https://img.shields.io/badge/-Function-F5F5F5.svg)](#Function-) [![](https://img.shields.io/badge/-Download-F5F5F5.svg)](#Download-) [![](https://img.shields.io/badge/-Community-F5F5F5.svg)](#Community-) [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-) [![](https://img.shields.io/badge/-Other-F5F5F5.svg)](#Other-) [![](https://img.shields.io/badge/-Grateful-F5F5F5.svg)](#Grateful-) [![](https://img.shields.io/badge/-Interface-F5F5F5.svg)](#Interface-) + +>New user? +> +>The software does not provide content, you need to add it manually, such as importing book sources, etc. +>Take a look at [official help documentation](https://www.yuque.com/legado/wiki),Maybe there's an answer you need inside. + +# Function [![](https://img.shields.io/badge/-Function-F5F5F5.svg)](#Function-) + +You can customize the book source, set your own rules, and capture web page data. The rules are simple and easy to understand. There are rules in the software. List bookshelf, grid bookshelf switch freely. The book source rules support search and discovery, and all the functions of finding books and reading books are all customized, making it easier to find books. +* Custom ebook sources, set your own rules to capture web data, the rules are simple and easy to understand, the software has a rule description. +* eBook sources rules support search and discovery, all find books and read books function all custom, find books more convenient. +* Schedule updating your library for new chapters. +* Online reading from web sources that can be imported in bulk +* Local reading of Auto-download episodes. +* Local reading of TXT or EPUB files +* ebook Wishlist +* Big text viewer. You can open eBook and txt in 1GB size +* Automatic text replacement for removing ad in content +* List bookshelf, grid bookshelf free to switch. +* Subscription content, you can subscribe to any content you want to see, see what you want to see +* A configurable reader with fonts, background, page transitions mode and other settings +* Timer. Set interval time to listen ebook, time up, ebook turn off completely. +* TTS book reader. tts can optionally be install“smartvoice-4.1.0” or ”Speech Services by Google“ Give your baby a storybook to listen to and teach your baby to talk, +* Dark mode and E-Ink mode support and Web service support +* Create backups to local or WebDav server +* Decentralization web3 +* Support replacement purification, it is very convenient to remove the content of advertisement replacement. +* Support local TXT, EPUB reading, manual browsing, intelligent scanning. +* Support highly customized reading interface, switch font, color, background, line spacing, paragraph spacing, bold, simplified and traditional conversion. +* Support multiple page turning modes, covering, emulating, sliding, scrolling, etc. + + + + # + + +# Download [![](https://img.shields.io/badge/-Download-F5F5F5.svg)](#Download-) + +#### Android + +* [Releases](https://github.com/gedoor/legado/releases/latest) +* [Google play - $1.99](https://play.google.com/store/apps/details?id=io.legado.play.release) +* [Coolapk](https://www.coolapk.com/apk/io.legado.app.release) +* [\#Beta](https://kunfei.lanzoui.com/b0f810h4b) +* [IzzyOnDroid F-Droid Repository](https://apt.izzysoft.de/fdroid/index/apk/io.legado.app.release) + + +#### IOS + +* Stopped(No release) - [Github](https://github.com/gedoor/YueDuFlutter) + + + # + + +# Community [![](https://img.shields.io/badge/-Community-F5F5F5.svg)](#Community-) + +#### Telegram + +[![Telegram-group](https://img.shields.io/badge/Telegram-group-blue)](https://t.me/yueduguanfang) [![Telegram-channel](https://img.shields.io/badge/Telegram-channel-blue)](https://t.me/legado_channels) + +#### Discord + +[![Discord](https://img.shields.io/discord/560731361414086666?color=%235865f2&label=Discord)](https://discord.gg/VtUfRyzRXn) + +#### Other + +https://www.yuque.com/legado/wiki/community + + + # + + +# API [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-) + +* Legado 3.0 The API is provided in 2 ways: `Web way` and `Content Provider way`. You can call it yourself as needed in [here](api.md). +* One-click import by url recall reading, url format: legado://import/{path}?src={url} +* Path Type: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf +* path type explanation: Book source, subscription source, replacement rules, local txt novel directory rules, online reading engine, theme, reading layout, [add to bookshelf](/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt) + + + # + + +# Other [![](https://img.shields.io/badge/-Other-F5F5F5.svg)](#Other-) + +##### Disclaimers + +https://gedoor.github.io/Disclaimer + +##### Legado 3.0 + +* [eBook sources rules](https://mgz0227.github.io/The-tutorial-of-Legado/) +* [Update Log](/app/src/main/assets/updateLog.md) +* [Help Documentation](/app/src/main/assets/web/help/md/appHelp.md) +* [web bookshelf](https://github.com/gedoor/legado_web_bookshelf) +* [web source editor](https://github.com/gedoor/legado_web_source_editor) + + + # + + +# Grateful [![](https://img.shields.io/badge/-Grateful-F5F5F5.svg)](#Grateful-) + +> * org.jsoup:jsoup +> * cn.wanghaomiao:JsoupXpath +> * com.jayway.jsonpath:json-path +> * com.github.gedoor:rhino-android +> * com.squareup.okhttp3:okhttp +> * com.github.bumptech.glide:glide +> * org.nanohttpd:nanohttpd +> * org.nanohttpd:nanohttpd-websocket +> * cn.bingoogolapple:bga-qrcode-zxing +> * com.jaredrummler:colorpicker +> * org.apache.commons:commons-text +> * io.noties.markwon:core +> * io.noties.markwon:image-glide +> * com.hankcs:hanlp +> * com.positiondev.epublib:epublib-core + + + # + + +# Interface [![](https://img.shields.io/badge/-Interface-F5F5F5.svg)](#Interface-) + + + + + + # + diff --git a/README.md b/README.md index d95854a79..08375523e 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ https://www.yuque.com/legado/wiki/community # API [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-) * 阅读3.0 提供了2种方式的API:`Web方式`和`Content Provider方式`。您可以在[这里](api.md)根据需要自行调用。 * 可通过url唤起阅读进行一键导入,url格式: legado://import/{path}?src={url} -* path类型: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf +* path类型: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,[addToBookshelf](/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt) * path类型解释: 书源,订阅源,替换规则,本地txt小说目录规则,在线朗读引擎,主题,阅读排版,添加到书架 diff --git a/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt b/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt index 01b38faa5..63ac72c97 100644 --- a/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt @@ -23,6 +23,14 @@ import io.legado.app.ui.book.read.ReadBookActivity import io.legado.app.utils.* import io.legado.app.utils.viewbindingdelegate.viewBinding +/** + * 添加书籍链接到书架,需要对应网站书源 + * ${origin}/${path}, {origin: bookSourceUrl} + * 按以下顺序尝试匹配书源并添加网址 + * - UrlOption中的指定的书源网址bookSourceUrl + * - 在所有启用的书源中匹配orgin + * - 在所有启用的书源中使用详情页正则匹配${origin}/${path}, {origin: bookSourceUrl} + */ class AddToBookshelfDialog() : BaseDialogFragment(R.layout.dialog_add_to_bookshelf) { constructor(bookUrl: String, finishOnDismiss: Boolean = false) : this() {