diff --git a/README.md b/README.md index c145d23..7463490 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ pep-ebook upgrade - [x] 高中-第一册-选择性必修-数学B版 书签已更新完成可下载 - [x] 高中-第一册-选择性必修-数学A版 书签已更新完成可下载 - [x] 高中-第二册-选择性必修-数学B版 书签已更新完成可下载 + - [x] 高中-第二册-选择性必修-数学A版 书签已更新完成可下载 - [ ] 并发请求用户选择选课url,加快生成pdf文件 - [ ] 书签的自动更新算法 diff --git a/internal/bookmark/bookmark.go b/internal/bookmark/bookmark.go index 5ab5d9e..564b833 100644 --- a/internal/bookmark/bookmark.go +++ b/internal/bookmark/bookmark.go @@ -27,4 +27,5 @@ var Bookmark = map[string][]pdfcpu.Bookmark{ "高中/选择性必修/数学/第一册/B版": math_selective_compulsory.MathSelectiveCompulsoryFirstB, "高中/选择性必修/数学/第一册/A版": math_selective_compulsory.MathSelectiveCompulsoryFirstA, "高中/选择性必修/数学/第二册/B版": math_selective_compulsory.MathSelectiveCompulsorySecondB, + "高中/选择性必修/数学/第二册/A版": math_selective_compulsory.MathSelectiveCompulsorySecondA, } diff --git a/internal/bookmark/high_school/selective_compulsory/math_selective_compulsory/math_selective_compulsory.go b/internal/bookmark/high_school/selective_compulsory/math_selective_compulsory/math_selective_compulsory.go index 0677e97..bc49182 100644 --- a/internal/bookmark/high_school/selective_compulsory/math_selective_compulsory/math_selective_compulsory.go +++ b/internal/bookmark/high_school/selective_compulsory/math_selective_compulsory/math_selective_compulsory.go @@ -141,3 +141,33 @@ var MathSelectiveCompulsorySecondB = []pdfcpu.Bookmark{ {PageFrom: 138, Title: "后记", Bold: true, Italic: true}, {PageFrom: 140, Title: "尾部封面", Bold: true, Italic: true}, } + +var MathSelectiveCompulsorySecondA = []pdfcpu.Bookmark{ + {PageFrom: 1, Title: "封面"}, + {PageFrom: 5, Title: "本章引导"}, + {PageFrom: 6, Title: "目录"}, + {PageFrom: 7, Title: "第四章: 数列", Children: []pdfcpu.Bookmark{ + {PageFrom: 8, Title: "4.1 数列的概念"}, + {PageFrom: 16, Title: "阅读与思考 斐波拉数列"}, + {PageFrom: 18, Title: "4.2 等差数列"}, + {PageFrom: 33, Title: "4.3 等比数列"}, + {PageFrom: 48, Title: "阅读与思考 中国古代数学家求数列和的方法"}, + {PageFrom: 50, Title: "4.4 数学归纳法"}, + {PageFrom: 59, Title: "本章小结4"}, + {PageFrom: 60, Title: "复习参考题4"}, + }}, + {PageFrom: 64, Title: "第五章: 一元函数的导数及其应用", Children: []pdfcpu.Bookmark{ + {PageFrom: 65, Title: "5.1 导数的概念及其意义"}, + {PageFrom: 78, Title: "5.2 导数的运算"}, + {PageFrom: 88, Title: "数学探究活动: 牛顿法---用导数方法求方程的近似解"}, + {PageFrom: 90, Title: "5.3 导数在研究函数中的应用"}, + {PageFrom: 106, Title: "信息技术应用 图形技术与函数性质"}, + {PageFrom: 107, Title: "文献阅读与数学写作 微积分的创立与发展"}, + {PageFrom: 108, Title: "本章小结5"}, + {PageFrom: 109, Title: "复习参考题5"}, + }}, + + {PageFrom: 111, Title: "部分中英文词汇索引", Bold: true, Italic: true}, + {PageFrom: 112, Title: "后记", Bold: true, Italic: true}, + {PageFrom: 114, Title: "尾部封面", Bold: true, Italic: true}, +} diff --git a/internal/classification/catalog.go b/internal/classification/catalog.go index 701f21c..fa39aa9 100644 --- a/internal/classification/catalog.go +++ b/internal/classification/catalog.go @@ -174,6 +174,11 @@ var Paths = map[string][]UrlPath{ Pages: 140, Remark: "B版", }, + { + QueryUrl: "https://book.pep.com.cn/1421001128201/files/mobile/%d.jpg?%d", + Pages: 114, + Remark: "A版", + }, }, "高中-必修-数学-第二册": { { diff --git a/internal/constant/constant.go b/internal/constant/constant.go index 4604daa..71fa213 100644 --- a/internal/constant/constant.go +++ b/internal/constant/constant.go @@ -8,12 +8,12 @@ const Logo = ` | |_) | | __/ | |_) | | __/ | |_) | | .__/ \___| | .__/ \___| |_.__/ | | | | - |_| |_| Version:v1.0.9 + |_| |_| Version:v1.0.10 ` const ( - Version = "v1.0.9" + Version = "v1.0.10" DefaultConfigPath = "./config/pep-ebook.yaml" GithubRepo = "github.com/maogou/pep-ebook@latest" GO111MODULE = "on"