Skip to content

Commit 73a27d2

Browse files
committed
[skip ci] add comments and use LF
1 parent 03dce08 commit 73a27d2

File tree

3 files changed

+158
-150
lines changed

3 files changed

+158
-150
lines changed

Diff for: English.md

+149-149
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,149 @@
1-
# [English](English.md) [中文](README.md)
2-
3-
[![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)
4-
<a href="https://jb.gg/OpenSourceSupport" target="_blank">
5-
<img width="24" height="24" src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg?_gl=1*135yekd*_ga*OTY4Mjg4NDYzLjE2Mzk0NTE3MzQ.*_ga_9J976DJZ68*MTY2OTE2MzM5Ny4xMy4wLjE2NjkxNjMzOTcuNjAuMC4w&_ga=2.257292110.451256242.1669085120-968288463.1639451734" alt="idea"/>
6-
</a>
7-
<div align="center">
8-
<img width="125" height="125" src="https://github.com/gedoor/legado/raw/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" alt="legado"/>
9-
10-
Legado / 开源阅读
11-
<br>
12-
<a href="https://gedoor.github.io" target="_blank">gedoor.github.io</a> / <a href="https://www.legado.top/" target="_blank">legado.top</a>
13-
<br>
14-
Legado is a free and open source novel reader for Android.
15-
</div>
16-
17-
[![](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-)
18-
19-
>New user?
20-
>
21-
>The software does not provide content, you need to add it manually, such as importing book sources, etc.
22-
>Take a look at [official help documentation](https://www.yuque.com/legado/wiki),Maybe there's an answer you need inside.
23-
24-
# Function [![](https://img.shields.io/badge/-Function-F5F5F5.svg)](#Function-)
25-
26-
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.
27-
* 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.
28-
* eBook sources rules support search and discovery, all find books and read books function all custom, find books more convenient.
29-
* Schedule updating your library for new chapters.
30-
* Online reading from web sources that can be imported in bulk
31-
* Local reading of Auto-download episodes.
32-
* Local reading of TXT or EPUB files
33-
* ebook Wishlist
34-
* Big text viewer. You can open eBook and txt in 1GB size
35-
* Automatic text replacement for removing ad in content
36-
* List bookshelf, grid bookshelf free to switch.
37-
* Subscription content, you can subscribe to any content you want to see, see what you want to see
38-
* A configurable reader with fonts, background, page transitions mode and other settings
39-
* Timer. Set interval time to listen ebook, time up, ebook turn off completely.
40-
* 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,
41-
* Dark mode and E-Ink mode support and Web service support
42-
* Create backups to local or WebDav server
43-
* Decentralization web3
44-
* Support replacement purification, it is very convenient to remove the content of advertisement replacement.
45-
* Support local TXT, EPUB reading, manual browsing, intelligent scanning.
46-
* Support highly customized reading interface, switch font, color, background, line spacing, paragraph spacing, bold, simplified and traditional conversion.
47-
* Support multiple page turning modes, covering, emulating, sliding, scrolling, etc.
48-
49-
50-
<a href="#readme">
51-
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
52-
</a>
53-
54-
# Download [![](https://img.shields.io/badge/-Download-F5F5F5.svg)](#Download-)
55-
56-
#### Android
57-
58-
* [Releases](https://github.com/gedoor/legado/releases/latest)
59-
* [Google play - $1.99](https://play.google.com/store/apps/details?id=io.legado.play.release)
60-
* [Coolapk](https://www.coolapk.com/apk/io.legado.app.release)
61-
* [\#Beta](https://kunfei.lanzoui.com/b0f810h4b)
62-
* [IzzyOnDroid F-Droid Repository](https://apt.izzysoft.de/fdroid/index/apk/io.legado.app.release)
63-
64-
65-
#### IOS
66-
67-
* Stopped(No release) - [Github](https://github.com/gedoor/YueDuFlutter)
68-
69-
<a href="#readme">
70-
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
71-
</a>
72-
73-
# Community [![](https://img.shields.io/badge/-Community-F5F5F5.svg)](#Community-)
74-
75-
#### Telegram
76-
77-
[![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)
78-
79-
#### Discord
80-
81-
[![Discord](https://img.shields.io/discord/560731361414086666?color=%235865f2&label=Discord)](https://discord.gg/VtUfRyzRXn)
82-
83-
#### Other
84-
85-
https://www.yuque.com/legado/wiki/community
86-
87-
<a href="#readme">
88-
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
89-
</a>
90-
91-
# API [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-)
92-
93-
* 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).
94-
* One-click import by url recall reading, url format: legado://import/{path}?src={url}
95-
* Path Type: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf
96-
* path type explanation: Book source, subscription source, replacement rules, local txt novel directory rules, online reading engine, theme, reading layout, add to bookshelf
97-
98-
<a href="#readme">
99-
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
100-
</a>
101-
102-
# Other [![](https://img.shields.io/badge/-Other-F5F5F5.svg)](#Other-)
103-
104-
##### Disclaimers
105-
106-
https://gedoor.github.io/Disclaimer
107-
108-
##### Legado 3.0
109-
110-
* [eBook sources rules](https://mgz0227.github.io/The-tutorial-of-Legado/)
111-
* [Update Log](/app/src/main/assets/updateLog.md)
112-
* [Help Documentation](/app/src/main/assets/web/help/md/appHelp.md)
113-
* [web bookshelf](https://github.com/gedoor/legado_web_bookshelf)
114-
* [web source editor](https://github.com/gedoor/legado_web_source_editor)
115-
116-
<a href="#readme">
117-
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
118-
</a>
119-
120-
# Grateful [![](https://img.shields.io/badge/-Grateful-F5F5F5.svg)](#Grateful-)
121-
122-
> * org.jsoup:jsoup
123-
> * cn.wanghaomiao:JsoupXpath
124-
> * com.jayway.jsonpath:json-path
125-
> * com.github.gedoor:rhino-android
126-
> * com.squareup.okhttp3:okhttp
127-
> * com.github.bumptech.glide:glide
128-
> * org.nanohttpd:nanohttpd
129-
> * org.nanohttpd:nanohttpd-websocket
130-
> * cn.bingoogolapple:bga-qrcode-zxing
131-
> * com.jaredrummler:colorpicker
132-
> * org.apache.commons:commons-text
133-
> * io.noties.markwon:core
134-
> * io.noties.markwon:image-glide
135-
> * com.hankcs:hanlp
136-
> * com.positiondev.epublib:epublib-core
137-
138-
<a href="#readme">
139-
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
140-
</a>
141-
142-
# Interface [![](https://img.shields.io/badge/-Interface-F5F5F5.svg)](#Interface-)
143-
144-
<img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B1.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B2.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B3.jpg" width="270">
145-
<img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B4.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B5.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B6.jpg" width="270">
146-
147-
<a href="#readme">
148-
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
149-
</a>
1+
# [English](English.md) [中文](README.md)
2+
3+
[![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)
4+
<a href="https://jb.gg/OpenSourceSupport" target="_blank">
5+
<img width="24" height="24" src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg?_gl=1*135yekd*_ga*OTY4Mjg4NDYzLjE2Mzk0NTE3MzQ.*_ga_9J976DJZ68*MTY2OTE2MzM5Ny4xMy4wLjE2NjkxNjMzOTcuNjAuMC4w&_ga=2.257292110.451256242.1669085120-968288463.1639451734" alt="idea"/>
6+
</a>
7+
<div align="center">
8+
<img width="125" height="125" src="https://github.com/gedoor/legado/raw/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" alt="legado"/>
9+
10+
Legado / 开源阅读
11+
<br>
12+
<a href="https://gedoor.github.io" target="_blank">gedoor.github.io</a> / <a href="https://www.legado.top/" target="_blank">legado.top</a>
13+
<br>
14+
Legado is a free and open source novel reader for Android.
15+
</div>
16+
17+
[![](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-)
18+
19+
>New user?
20+
>
21+
>The software does not provide content, you need to add it manually, such as importing book sources, etc.
22+
>Take a look at [official help documentation](https://www.yuque.com/legado/wiki),Maybe there's an answer you need inside.
23+
24+
# Function [![](https://img.shields.io/badge/-Function-F5F5F5.svg)](#Function-)
25+
26+
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.
27+
* 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.
28+
* eBook sources rules support search and discovery, all find books and read books function all custom, find books more convenient.
29+
* Schedule updating your library for new chapters.
30+
* Online reading from web sources that can be imported in bulk
31+
* Local reading of Auto-download episodes.
32+
* Local reading of TXT or EPUB files
33+
* ebook Wishlist
34+
* Big text viewer. You can open eBook and txt in 1GB size
35+
* Automatic text replacement for removing ad in content
36+
* List bookshelf, grid bookshelf free to switch.
37+
* Subscription content, you can subscribe to any content you want to see, see what you want to see
38+
* A configurable reader with fonts, background, page transitions mode and other settings
39+
* Timer. Set interval time to listen ebook, time up, ebook turn off completely.
40+
* 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,
41+
* Dark mode and E-Ink mode support and Web service support
42+
* Create backups to local or WebDav server
43+
* Decentralization web3
44+
* Support replacement purification, it is very convenient to remove the content of advertisement replacement.
45+
* Support local TXT, EPUB reading, manual browsing, intelligent scanning.
46+
* Support highly customized reading interface, switch font, color, background, line spacing, paragraph spacing, bold, simplified and traditional conversion.
47+
* Support multiple page turning modes, covering, emulating, sliding, scrolling, etc.
48+
49+
50+
<a href="#readme">
51+
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
52+
</a>
53+
54+
# Download [![](https://img.shields.io/badge/-Download-F5F5F5.svg)](#Download-)
55+
56+
#### Android
57+
58+
* [Releases](https://github.com/gedoor/legado/releases/latest)
59+
* [Google play - $1.99](https://play.google.com/store/apps/details?id=io.legado.play.release)
60+
* [Coolapk](https://www.coolapk.com/apk/io.legado.app.release)
61+
* [\#Beta](https://kunfei.lanzoui.com/b0f810h4b)
62+
* [IzzyOnDroid F-Droid Repository](https://apt.izzysoft.de/fdroid/index/apk/io.legado.app.release)
63+
64+
65+
#### IOS
66+
67+
* Stopped(No release) - [Github](https://github.com/gedoor/YueDuFlutter)
68+
69+
<a href="#readme">
70+
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
71+
</a>
72+
73+
# Community [![](https://img.shields.io/badge/-Community-F5F5F5.svg)](#Community-)
74+
75+
#### Telegram
76+
77+
[![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)
78+
79+
#### Discord
80+
81+
[![Discord](https://img.shields.io/discord/560731361414086666?color=%235865f2&label=Discord)](https://discord.gg/VtUfRyzRXn)
82+
83+
#### Other
84+
85+
https://www.yuque.com/legado/wiki/community
86+
87+
<a href="#readme">
88+
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
89+
</a>
90+
91+
# API [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-)
92+
93+
* 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).
94+
* One-click import by url recall reading, url format: legado://import/{path}?src={url}
95+
* Path Type: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf
96+
* 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)
97+
98+
<a href="#readme">
99+
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
100+
</a>
101+
102+
# Other [![](https://img.shields.io/badge/-Other-F5F5F5.svg)](#Other-)
103+
104+
##### Disclaimers
105+
106+
https://gedoor.github.io/Disclaimer
107+
108+
##### Legado 3.0
109+
110+
* [eBook sources rules](https://mgz0227.github.io/The-tutorial-of-Legado/)
111+
* [Update Log](/app/src/main/assets/updateLog.md)
112+
* [Help Documentation](/app/src/main/assets/web/help/md/appHelp.md)
113+
* [web bookshelf](https://github.com/gedoor/legado_web_bookshelf)
114+
* [web source editor](https://github.com/gedoor/legado_web_source_editor)
115+
116+
<a href="#readme">
117+
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
118+
</a>
119+
120+
# Grateful [![](https://img.shields.io/badge/-Grateful-F5F5F5.svg)](#Grateful-)
121+
122+
> * org.jsoup:jsoup
123+
> * cn.wanghaomiao:JsoupXpath
124+
> * com.jayway.jsonpath:json-path
125+
> * com.github.gedoor:rhino-android
126+
> * com.squareup.okhttp3:okhttp
127+
> * com.github.bumptech.glide:glide
128+
> * org.nanohttpd:nanohttpd
129+
> * org.nanohttpd:nanohttpd-websocket
130+
> * cn.bingoogolapple:bga-qrcode-zxing
131+
> * com.jaredrummler:colorpicker
132+
> * org.apache.commons:commons-text
133+
> * io.noties.markwon:core
134+
> * io.noties.markwon:image-glide
135+
> * com.hankcs:hanlp
136+
> * com.positiondev.epublib:epublib-core
137+
138+
<a href="#readme">
139+
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
140+
</a>
141+
142+
# Interface [![](https://img.shields.io/badge/-Interface-F5F5F5.svg)](#Interface-)
143+
144+
<img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B1.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B2.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B3.jpg" width="270">
145+
<img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B4.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B5.jpg" width="270"><img src="https://github.com/gedoor/gedoor.github.io/blob/master/static/img/legado/%E9%98%85%E8%AF%BB%E7%AE%80%E4%BB%8B6.jpg" width="270">
146+
147+
<a href="#readme">
148+
<img src="https://img.shields.io/badge/-Top-orange.svg" alt="#" align="right">
149+
</a>

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ https://www.yuque.com/legado/wiki/community
5959
# API [![](https://img.shields.io/badge/-API-F5F5F5.svg)](#API-)
6060
* 阅读3.0 提供了2种方式的API:`Web方式``Content Provider方式`。您可以在[这里](api.md)根据需要自行调用。
6161
* 可通过url唤起阅读进行一键导入,url格式: legado://import/{path}?src={url}
62-
* path类型: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,addToBookshelf
62+
* path类型: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig,dictRule,[addToBookshelf](/app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt)
6363
* path类型解释: 书源,订阅源,替换规则,本地txt小说目录规则,在线朗读引擎,主题,阅读排版,添加到书架
6464

6565
<a href="#readme">

Diff for: app/src/main/java/io/legado/app/ui/association/AddToBookshelfDialog.kt

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ import io.legado.app.ui.book.read.ReadBookActivity
2323
import io.legado.app.utils.*
2424
import io.legado.app.utils.viewbindingdelegate.viewBinding
2525

26+
/**
27+
* 添加书籍链接到书架,需要对应网站书源
28+
* ${origin}/${path}, {origin: bookSourceUrl}
29+
* 按以下顺序尝试匹配书源并添加网址
30+
* - UrlOption中的指定的书源网址bookSourceUrl
31+
* - 在所有启用的书源中匹配orgin
32+
* - 在所有启用的书源中使用详情页正则匹配${origin}/${path}, {origin: bookSourceUrl}
33+
*/
2634
class AddToBookshelfDialog() : BaseDialogFragment(R.layout.dialog_add_to_bookshelf) {
2735

2836
constructor(bookUrl: String, finishOnDismiss: Boolean = false) : this() {

0 commit comments

Comments
 (0)