@gongfpp/dsh-novel-fish 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +34 -12
  2. package/docs/community-markets.md +17 -0
  3. package/docs/ebook-tests.md +99 -0
  4. package/docs/evidence/reading-demo-110.png +0 -0
  5. package/docs/evidence/reading-two-expansions-110.gif +0 -0
  6. package/docs/evidence/reading-two-expansions-110.json +89 -0
  7. package/docs/evidence/samples-110-capture.json +49 -0
  8. package/docs/evidence/settings-110.png +0 -0
  9. package/docs/release.md +12 -0
  10. package/index.json +12 -0
  11. package/lib/client.js +523 -95
  12. package/locale/en.json +6 -0
  13. package/locale/zh.json +6 -0
  14. package/package.json +2 -1
  15. package/samples/ebooks/LICENSE.md +355 -0
  16. package/samples/ebooks/NOTICE.md +33 -0
  17. package/samples/ebooks/aq-zheng-zhuan-wikisource.md +998 -0
  18. package/samples/ebooks/million-pound-bank-note-pg61522.txt +6970 -0
  19. package/samples/ebooks/sources.json +58 -0
  20. package/scripts/build.mjs +1 -0
  21. package/scripts/check-host-contracts.mjs +3 -2
  22. package/scripts/make-readme-gif.mjs +69 -0
  23. package/scripts/test-browser-samples.mjs +665 -0
  24. package/scripts/test-candidate-books.mjs +71 -0
  25. package/scripts/test-ebook-corpus.mjs +161 -0
  26. package/src/bundled-books.js +42 -0
  27. package/src/chat-adapter.js +34 -9
  28. package/src/client.js +8 -2
  29. package/src/novel-content.js +8 -0
  30. package/src/persistence.js +144 -3
  31. package/src/pg-notice.js +19 -0
  32. package/src/segments.js +115 -65
  33. package/src/settings.js +32 -8
  34. package/src/store.js +61 -3
  35. package/test/bundled-library.test.js +526 -0
  36. package/test/chat-adapter.test.js +87 -2
  37. package/test/client.test.js +49 -7
  38. package/test/ebooks.test.js +192 -0
  39. package/test/pg-notice.test.js +109 -0
  40. package/test/release.test.js +5 -3
  41. package/test/segments.test.js +136 -2
  42. package/test/settings.test.js +42 -1
package/locale/en.json CHANGED
@@ -38,6 +38,12 @@
38
38
  "continueOnReopenHint": "When on, collapsing and actively reopening the same region reads the next passage; when off, reopening only shows the passage already there.",
39
39
  "books": "Books",
40
40
  "importBook": "Import book",
41
+ "bookInfo": "Book information",
42
+ "close": "Close",
43
+ "readingProgress": "Reading progress",
44
+ "sampleLicense": "Full offline licenses and attribution notices (TXT)",
45
+ "sampleSources": "Sources, authors and licenses:",
46
+ "samplePgNotice": "The following Project Gutenberg statement applies only to the English collection The Million Pound Bank Note and Other New Stories, not to the other bundled books:",
41
47
  "reading": "Reading in chat",
42
48
  "appearance": "Titles",
43
49
  "cancel": "Cancel",
package/locale/zh.json CHANGED
@@ -38,6 +38,12 @@
38
38
  "continueOnReopenHint": "开启后,收起再主动展开同一区域会接着读下一段;关闭时重复展开只显示这一段。",
39
39
  "books": "书籍",
40
40
  "importBook": "导入书籍",
41
+ "bookInfo": "书籍信息",
42
+ "close": "关闭",
43
+ "readingProgress": "阅读进度",
44
+ "sampleLicense": "离线完整许可与署名声明(TXT)",
45
+ "sampleSources": "书源、作者与许可:",
46
+ "samplePgNotice": "以下 Project Gutenberg 声明仅适用于英文书籍《百万英镑及其他新故事》,不适用于其他内置书籍:",
41
47
  "reading": "聊天内阅读",
42
48
  "appearance": "标题显示",
43
49
  "cancel": "取消",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gongfpp/dsh-novel-fish",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/gongfpp/dsh-novel-fish.git"
@@ -38,6 +38,7 @@
38
38
  "assets/icon.png",
39
39
  "locale/*.json",
40
40
  "docs/**",
41
+ "samples/ebooks/**",
41
42
  "pnpm-lock.yaml",
42
43
  "pnpm-workspace.yaml",
43
44
  "README.md",
@@ -0,0 +1,355 @@
1
+ # Bundled ebook licenses and attributions
2
+
3
+ These two ebooks are NOT covered by the plugin's MIT software license. They are separate works with the following permissions and obligations. The English TXT retains its complete original notices and credits; the AQ Markdown retains the complete unchanged official TXT export after one added heading. Checked 2026-11-06. This is source/edition evidence, not a worldwide legal warranty.
4
+
5
+ ## 1. The £1,000,000 bank-note, and other new stories
6
+
7
+ Author: Mark Twain (1835–1910). Original English collection published 1893, including the complete title story and eight other stories. This is an unchanged Project Gutenberg #61522 download, NOT a standalone file containing only the title story.
8
+
9
+ Source: https://www.gutenberg.org/ebooks/61522
10
+ Download: https://www.gutenberg.org/cache/epub/61522/pg61522.txt
11
+ License: https://www.gutenberg.org/policy/license.html
12
+
13
+ The original is public domain in the USA according to Project Gutenberg. Keep the original file, PG name, credits and complete license. Free sharing is subject to §§1.C and 1.E.1–1.E.7; fee-bearing use/distribution has additional conditions under §§1.E.8–1.E.9. Check destination laws. Do not imply Project Gutenberg endorsement. The full PG license copied verbatim from the unchanged TXT is appended below.
14
+
15
+ Required §1.E.1 notice (applies to this English Project Gutenberg ebook, not the other book):
16
+
17
+ This eBook is for the use of anyone anywhere in the United States and most other parts of the world at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the Project Gutenberg License included with this eBook or online at www.gutenberg.org. If you are not located in the United States, you will have to check the laws of the country where you are located before using this eBook.
18
+
19
+ ## 2. 阿Q正傳
20
+
21
+ Author: 魯迅 / Lu Xun (1881–1936). Original serialized 1921-12-04 through 1922-02-12. Complete nine chapters in traditional Chinese, not a modern translation. Source marks the original public domain in China/Taiwan and the USA. This local Markdown derivative prefixes only `# 阿Q正傳` and two newlines to the official Wikisource TXT export dated 2026-11-06. The complete original export remains unchanged after that UTF-8 prefix, including source copyright notices, its digital-edition license and complete contributor list. Removing the documented prefix recovers all 68156 original bytes (SHA-256 15a60f2d6e105c0869c4a11516eaba0d6726e6df68a91c40836dad51c1016b51). This is not a downloaded native Markdown edition.
22
+ Source: https://zh.wikisource.org/wiki/阿Q正傳
23
+ Contributor history: https://zh.wikisource.org/w/index.php?title=阿Q正傳&action=history
24
+ Official export: https://ws-export.wmcloud.org/?lang=zh&format=txt&page=%E9%98%BFQ%E6%AD%A3%E5%82%B3
25
+
26
+ The export explicitly states Creative Commons Attribution-ShareAlike 3.0 Unported or GNU Free Documentation License. Preserve the export's complete attribution/license statements and applicable ShareAlike terms; current source-site CC BY-SA 4.0 terms may additionally apply. No DRM or additional restrictions. Modification: one Markdown title heading only; no added translation, abridgment or commentary. The contributor list in its final “About this digital edition” section is part of the distributed file and must not be discarded.
27
+ CC BY-SA 3.0: https://creativecommons.org/licenses/by-sa/3.0/ and https://creativecommons.org/licenses/by-sa/3.0/legalcode
28
+ GFDL: https://www.gnu.org/copyleft/fdl.html
29
+ Current source-site license: https://creativecommons.org/licenses/by-sa/4.0/
30
+
31
+ ## Full Project Gutenberg license from the unchanged English TXT
32
+
33
+ START: FULL LICENSE
34
+
35
+ THE FULL PROJECT GUTENBERG™ LICENSE
36
+
37
+ PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK
38
+
39
+ To protect the Project Gutenberg™ mission of promoting the free
40
+ distribution of electronic works, by using or distributing this work
41
+ (or any other work associated in any way with the phrase “Project
42
+ Gutenberg”), you agree to comply with all the terms of the Full
43
+ Project Gutenberg License available with this file or online at
44
+ www.gutenberg.org/license.
45
+
46
+ Section 1. General Terms of Use and Redistributing Project Gutenberg
47
+ electronic works
48
+
49
+ 1.A. By reading or using any part of this Project Gutenberg
50
+ electronic work, you indicate that you have read, understand, agree to
51
+ and accept all the terms of this license and intellectual property
52
+ (trademark/copyright) agreement. If you do not agree to abide by all
53
+ the terms of this agreement, you must cease using and return or
54
+ destroy all copies of Project Gutenberg electronic works in your
55
+ possession. If you paid a fee for obtaining a copy of or access to a
56
+ Project Gutenberg electronic work and you do not agree to be bound
57
+ by the terms of this agreement, you may obtain a refund from the person
58
+ or entity to whom you paid the fee as set forth in paragraph 1.E.8.
59
+
60
+ 1.B. “Project Gutenberg” is a registered trademark. It may only be
61
+ used on or associated in any way with an electronic work by people who
62
+ agree to be bound by the terms of this agreement. There are a few
63
+ things that you can do with most Project Gutenberg electronic works
64
+ even without complying with the full terms of this agreement. See
65
+ paragraph 1.C below. There are a lot of things you can do with Project
66
+ Gutenberg electronic works if you follow the terms of this
67
+ agreement and help preserve free future access to Project Gutenberg
68
+ electronic works. See paragraph 1.E below.
69
+
70
+ 1.C. The Project Gutenberg Literary Archive Foundation (“the
71
+ Foundation” or PGLAF), owns a compilation copyright in the collection
72
+ of Project Gutenberg electronic works. Nearly all the individual
73
+ works in the collection are in the public domain in the United
74
+ States. If an individual work is unprotected by copyright law in the
75
+ United States and you are located in the United States, we do not
76
+ claim a right to prevent you from copying, distributing, performing,
77
+ displaying or creating derivative works based on the work as long as
78
+ all references to Project Gutenberg are removed. Of course, we hope
79
+ that you will support the Project Gutenberg mission of promoting
80
+ free access to electronic works by freely sharing Project Gutenberg
81
+ works in compliance with the terms of this agreement for keeping the
82
+ Project Gutenberg name associated with the work. You can easily
83
+ comply with the terms of this agreement by keeping this work in the
84
+ same format with its attached full Project Gutenberg License when
85
+ you share it without charge with others.
86
+
87
+ 1.D. The copyright laws of the place where you are located also govern
88
+ what you can do with this work. Copyright laws in most countries are
89
+ in a constant state of change. If you are outside the United States,
90
+ check the laws of your country in addition to the terms of this
91
+ agreement before downloading, copying, displaying, performing,
92
+ distributing or creating derivative works based on this work or any
93
+ other Project Gutenberg work. The Foundation makes no
94
+ representations concerning the copyright status of any work in any
95
+ country other than the United States.
96
+
97
+ 1.E. Unless you have removed all references to Project Gutenberg:
98
+
99
+ 1.E.1. The following sentence, with active links to, or other
100
+ immediate access to, the full Project Gutenberg License must appear
101
+ prominently whenever any copy of a Project Gutenberg work (any work
102
+ on which the phrase “Project Gutenberg” appears, or with which the
103
+ phrase “Project Gutenberg” is associated) is accessed, displayed,
104
+ performed, viewed, copied or distributed:
105
+
106
+ This eBook is for the use of anyone anywhere in the United States and most
107
+ other parts of the world at no cost and with almost no restrictions
108
+ whatsoever. You may copy it, give it away or re-use it under the terms
109
+ of the Project Gutenberg™ License included with this eBook or online
110
+ at www.gutenberg.org. If you
111
+ are not located in the United States, you will have to check the laws
112
+ of the country where you are located before using this eBook.
113
+
114
+ 1.E.2. If an individual Project Gutenberg electronic work is
115
+ derived from texts not protected by U.S. copyright law (does not
116
+ contain a notice indicating that it is posted with permission of the
117
+ copyright holder), the work can be copied and distributed to anyone in
118
+ the United States without paying any fees or charges. If you are
119
+ redistributing or providing access to a work with the phrase “Project
120
+ Gutenberg” associated with or appearing on the work, you must comply
121
+ either with the requirements of paragraphs 1.E.1 through 1.E.7 or
122
+ obtain permission for the use of the work and the Project Gutenberg
123
+ trademark as set forth in paragraphs 1.E.8 or 1.E.9.
124
+
125
+ 1.E.3. If an individual Project Gutenberg electronic work is posted
126
+ with the permission of the copyright holder, your use and distribution
127
+ must comply with both paragraphs 1.E.1 through 1.E.7 and any
128
+ additional terms imposed by the copyright holder. Additional terms
129
+ will be linked to the Project Gutenberg License for all works
130
+ posted with the permission of the copyright holder found at the
131
+ beginning of this work.
132
+
133
+ 1.E.4. Do not unlink or detach or remove the full Project Gutenberg
134
+ License terms from this work, or any files containing a part of this
135
+ work or any other work associated with Project Gutenberg.
136
+
137
+ 1.E.5. Do not copy, display, perform, distribute or redistribute this
138
+ electronic work, or any part of this electronic work, without
139
+ prominently displaying the sentence set forth in paragraph 1.E.1 with
140
+ active links or immediate access to the full terms of the Project
141
+ Gutenberg License.
142
+
143
+ 1.E.6. You may convert to and distribute this work in any binary,
144
+ compressed, marked up, nonproprietary or proprietary form, including
145
+ any word processing or hypertext form. However, if you provide access
146
+ to or distribute copies of a Project Gutenberg work in a format
147
+ other than “Plain Vanilla ASCII” or other format used in the official
148
+ version posted on the official Project Gutenberg website
149
+ (www.gutenberg.org), you must, at no additional cost, fee or expense
150
+ to the user, provide a copy, a means of exporting a copy, or a means
151
+ of obtaining a copy upon request, of the work in its original “Plain
152
+ Vanilla ASCII” or other form. Any alternate format must include the
153
+ full Project Gutenberg License as specified in paragraph 1.E.1.
154
+
155
+ 1.E.7. Do not charge a fee for access to, viewing, displaying,
156
+ performing, copying or distributing any Project Gutenberg works
157
+ unless you comply with paragraph 1.E.8 or 1.E.9.
158
+
159
+ 1.E.8. You may charge a reasonable fee for copies of or providing
160
+ access to or distributing Project Gutenberg electronic works
161
+ provided that:
162
+
163
+ • You pay a royalty fee of 20% of the gross profits you derive from
164
+ the use of Project Gutenberg works calculated using the method
165
+ you already use to calculate your applicable taxes. The fee is owed
166
+ to the owner of the Project Gutenberg trademark, but he has
167
+ agreed to donate royalties under this paragraph to the Project
168
+ Gutenberg Literary Archive Foundation. Royalty payments must be paid
169
+ within 60 days following each date on which you prepare (or are
170
+ legally required to prepare) your periodic tax returns. Royalty
171
+ payments should be clearly marked as such and sent to the Project
172
+ Gutenberg Literary Archive Foundation at the address specified in
173
+ Section 4, “Information about donations to the Project Gutenberg
174
+ Literary Archive Foundation.”
175
+
176
+ • You provide a full refund of any money paid by a user who notifies
177
+ you in writing (or by e-mail) within 30 days of receipt that s/he
178
+ does not agree to the terms of the full Project Gutenberg™
179
+ License. You must require such a user to return or destroy all
180
+ copies of the works possessed in a physical medium and discontinue
181
+ all use of and all access to other copies of Project Gutenberg™
182
+ works.
183
+
184
+ • You provide, in accordance with paragraph 1.F.3, a full refund of
185
+ any money paid for a work or a replacement copy, if a defect in the
186
+ electronic work is discovered and reported to you within 90 days of
187
+ receipt of the work.
188
+
189
+ • You comply with all other terms of this agreement for free
190
+ distribution of Project Gutenberg™ works.
191
+
192
+
193
+ 1.E.9. If you wish to charge a fee or distribute a Project
194
+ Gutenberg™ electronic work or group of works on different terms than
195
+ are set forth in this agreement, you must obtain permission in writing
196
+ from the Project Gutenberg Literary Archive Foundation, the manager of
197
+ the Project Gutenberg™ trademark. Contact the Foundation as set
198
+ forth in Section 3 below.
199
+
200
+ 1.F.
201
+
202
+ 1.F.1. Project Gutenberg volunteers and employees expend considerable
203
+ effort to identify, do copyright research on, transcribe and proofread
204
+ works not protected by U.S. copyright law in creating the Project
205
+ Gutenberg™ collection. Despite these efforts, Project Gutenberg™
206
+ electronic works, and the medium on which they may be stored, may
207
+ contain “Defects,” such as, but not limited to, incomplete, inaccurate
208
+ or corrupt data, transcription errors, a copyright or other
209
+ intellectual property infringement, a defective or damaged disk or
210
+ other medium, a computer virus, or computer codes that damage or
211
+ cannot be read by your equipment.
212
+
213
+ 1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for the “Right
214
+ of Replacement or Refund” described in paragraph 1.F.3, the Project
215
+ Gutenberg Literary Archive Foundation, the owner of the Project
216
+ Gutenberg™ trademark, and any other party distributing a Project
217
+ Gutenberg™ electronic work under this agreement, disclaim all
218
+ liability to you for damages, costs and expenses, including legal
219
+ fees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
220
+ LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE
221
+ PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE FOUNDATION, THE
222
+ TRADEMARK OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE
223
+ LIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE OR
224
+ INCIDENTAL DAMAGES EVEN IF YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH
225
+ DAMAGE.
226
+
227
+ 1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you discover a
228
+ defect in this electronic work within 90 days of receiving it, you can
229
+ receive a refund of the money (if any) you paid for it by sending a
230
+ written explanation to the person you received the work from. If you
231
+ received the work on a physical medium, you must return the medium
232
+ with your written explanation. The person or entity that provided you
233
+ with the defective work may elect to provide a replacement copy in
234
+ lieu of a refund. If you received the work electronically, the person
235
+ or entity providing it to you may choose to give you a second
236
+ opportunity to receive the work electronically in lieu of a refund. If
237
+ the second copy is also defective, you may demand a refund in writing
238
+ without further opportunities to fix the problem.
239
+
240
+ 1.F.4. Except for the limited right of replacement or refund set forth
241
+ in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
242
+ OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
243
+ LIMITED TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
244
+
245
+ 1.F.5. Some states do not allow disclaimers of certain implied
246
+ warranties or the exclusion or limitation of certain types of
247
+ damages. If any disclaimer or limitation set forth in this agreement
248
+ violates the law of the state applicable to this agreement, the
249
+ agreement shall be interpreted to make the maximum disclaimer or
250
+ limitation permitted by the applicable state law. The invalidity or
251
+ unenforceability of any provision of this agreement shall not void the
252
+ remaining provisions.
253
+
254
+ 1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation, the
255
+ trademark owner, any agent or employee of the Foundation, anyone
256
+ providing copies of Project Gutenberg™ electronic works in
257
+ accordance with this agreement, and any volunteers associated with the
258
+ production, promotion and distribution of Project Gutenberg™
259
+ electronic works, harmless from all liability, costs and expenses,
260
+ including legal fees, that arise directly or indirectly from any of
261
+ the following which you do or cause to occur: (a) distribution of this
262
+ or any Project Gutenberg work, (b) alteration, modification, or
263
+ additions or deletions to any Project Gutenberg work, and (c) any
264
+ Defect you cause.
265
+
266
+ Section 2. Information about the Mission of Project Gutenberg
267
+
268
+ Project Gutenberg is synonymous with the free distribution of
269
+ electronic works in formats readable by the widest variety of
270
+ computers including obsolete, old, middle-aged and new computers. It
271
+ exists because of the efforts of hundreds of volunteers and donations
272
+ from people in all walks of life.
273
+
274
+ Volunteers and financial support to provide volunteers with the
275
+ assistance they need are critical to reaching Project Gutenberg’s
276
+ goals and ensuring that the Project Gutenberg collection will
277
+ remain freely available for generations to come. In 2001, the Project
278
+ Gutenberg Literary Archive Foundation was created to provide a secure
279
+ and permanent future for Project Gutenberg and future
280
+ generations. To learn more about the Project Gutenberg Literary
281
+ Archive Foundation and how your efforts and donations can help, see
282
+ Sections 3 and 4 and the Foundation information page at www.gutenberg.org.
283
+
284
+ Section 3. Information about the Project Gutenberg Literary Archive Foundation
285
+
286
+ The Project Gutenberg Literary Archive Foundation is a non-profit
287
+ 501(c)(3) educational corporation organized under the laws of the
288
+ state of Mississippi and granted tax exempt status by the Internal
289
+ Revenue Service. The Foundation’s EIN or federal tax identification
290
+ number is 64-6221541. Contributions to the Project Gutenberg Literary
291
+ Archive Foundation are tax deductible to the full extent permitted by
292
+ U.S. federal laws and your state’s laws.
293
+
294
+ The Foundation’s business office is located at 41 Watchung Plaza #516,
295
+ Montclair NJ 07042, USA, +1 (862) 621-9288. Email contact links and up
296
+ to date contact information can be found at the Foundation’s website
297
+ and official page at www.gutenberg.org/contact
298
+
299
+ Section 4. Information about Donations to the Project Gutenberg
300
+ Literary Archive Foundation
301
+
302
+ Project Gutenberg™ depends upon and cannot survive without widespread
303
+ public support and donations to carry out its mission of
304
+ increasing the number of public domain and licensed works that can be
305
+ freely distributed in machine-readable form accessible by the widest
306
+ array of equipment including outdated equipment. Many small donations
307
+ ($1 to $5,000) are particularly important to maintaining tax exempt
308
+ status with the IRS.
309
+
310
+ The Foundation is committed to complying with the laws regulating
311
+ charities and charitable donations in all 50 states of the United
312
+ States. Compliance requirements are not uniform and it takes a
313
+ considerable effort, much paperwork and many fees to meet and keep up
314
+ with these requirements. We do not solicit donations in locations
315
+ where we have not received written confirmation of compliance. To SEND
316
+ DONATIONS or determine the status of compliance for any particular state
317
+ visit www.gutenberg.org/donate.
318
+
319
+ While we cannot and do not solicit contributions from states where we
320
+ have not met the solicitation requirements, we know of no prohibition
321
+ against accepting unsolicited donations from donors in such states who
322
+ approach us with offers to donate.
323
+
324
+ International donations are gratefully accepted, but we cannot make
325
+ any statements concerning tax treatment of donations received from
326
+ outside the United States. U.S. laws alone swamp our small staff.
327
+
328
+ Please check the Project Gutenberg web pages for current donation
329
+ methods and addresses. Donations are accepted in a number of other
330
+ ways including checks, online payments and credit card donations. To
331
+ donate, please visit: www.gutenberg.org/donate.
332
+
333
+ Section 5. General Information About Project Gutenberg electronic works
334
+
335
+ Professor Michael S. Hart was the originator of the Project
336
+ Gutenberg concept of a library of electronic works that could be
337
+ freely shared with anyone. For forty years, he produced and
338
+ distributed Project Gutenberg eBooks with only a loose network of
339
+ volunteer support.
340
+
341
+ Project Gutenberg eBooks are often created from several printed
342
+ editions, all of which are confirmed as not protected by copyright in
343
+ the U.S. unless a copyright notice is included. Thus, we do not
344
+ necessarily keep eBooks in compliance with any particular paper
345
+ edition.
346
+
347
+ Most people start at our website which has the main PG search
348
+ facility: www.gutenberg.org.
349
+
350
+ This website includes information about Project Gutenberg,
351
+ including how to make donations to the Project Gutenberg Literary
352
+ Archive Foundation, how to help produce our new eBooks, and how to
353
+ subscribe to our email newsletter to hear about new eBooks.
354
+
355
+
@@ -0,0 +1,33 @@
1
+ # 内置两本样书的来源、范围与许可
2
+
3
+ 书源核对日期:2026-11-06;目录调整日期:2026-11-07。此目录只选择下面两本作为 1.1.0 内置样书。未选候选、版权地区受限的《骆驼祥子》以及已移除的《山海经》及制作材料均不随当前包分发。
4
+
5
+ | 书名 / 范围 | 作者 | 格式 | 大小 |
6
+ | --- | --- | --- | ---: |
7
+ | [《百万英镑及其他新故事》英文原文](<million-pound-bank-note-pg61522.txt>) | Mark Twain / 马克·吐温(1835–1910) | UTF-8 TXT | 394538 bytes |
8
+ | [《阿Q正传》完整九章繁体原文](<aq-zheng-zhuan-wikisource.md>) | 鲁迅(1881–1936) | UTF-8 MD | 68170 bytes |
9
+
10
+ 两个图书文件合计 **462708 bytes(约 451.9 KiB)**。文件 URL、精确 SHA-256、数字版来源和分发条件见[来源清单](<sources.json>)。
11
+
12
+ ## 真实版本边界
13
+
14
+ - 《百万英镑》使用 Project Gutenberg #61522 原样下载,实际是 1893 年英文合集,包含完整同名故事及另外八篇,不冒称独立单篇版。完整 PG 头尾、制作署名和全部许可证保留。
15
+ - 《阿Q正传》是维基文库官方 TXT 完整导出的本地 Markdown 衍生版,只在文件前增加 `# 阿Q正傳` 标题及空行。移除这个 14 字节 UTF-8 前缀即可恢复原始 68156 字节 TXT;第一章“序”至第九章“大團圓”、小说结尾、数字版全部贡献者与许可逐字节保留。不冒称原站原生 MD,不包含现代译注或改写。
16
+ - EPUB 导入功能保留,但当前包没有 EPUB 样书;测试专用衍生 EPUB 和四种真实拒绝负例只留在本地测试输出,不随包分发。
17
+
18
+ ## 不将“可免费阅读”等同于“可再分发”
19
+
20
+ 图书不继承插件的 MIT 软件许可证。[LICENSE.md](<LICENSE.md>) 是可立即离线访问的完整综合声明,包含两书署名、来源/贡献历史、适用许可链接、修改范围和逐字复制的完整 Project Gutenberg License;原书内各自声明仍须保留。
21
+
22
+ 1. 英文原作发表于 1893 年,作者卒于 1910 年;PG 标注美国公版。保留 PG 标识时仍须遵守 PG 分发条款,收费分发另有条件,非 PG 背书。
23
+ 2. 鲁迅原作 1921–1922 年连载,作者卒于 1936 年;来源明确说明中国/台湾及美国公版。数字导出声明 CC BY-SA 3.0 Unported 或 GFDL,保留原导出贡献者和声明;当前站点 CC BY-SA 4.0 条款也可能适用。MD 衍生版应保留署名、来源、修改说明和适用的相同方式共享条款,不加 DRM 或额外限制。历史原作公版不自动豁免现代转录、译注或图片的单独条件。
24
+
25
+ 其他地区须自行适用当地法律,不作全球一概合法的保证。
26
+
27
+ ## 英文 Project Gutenberg 文件的显著声明
28
+
29
+ 下述 §1.E.1 声明**仅适用于英文 PG 样书**,不是 AQ 的许可证:
30
+
31
+ > This eBook is for the use of anyone anywhere in the United States and most other parts of the world at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the Project Gutenberg™ License included with this eBook or online at [www.gutenberg.org](https://www.gutenberg.org/policy/license.html). If you are not located in the United States, you will have to check the laws of the country where you are located before using this eBook.
32
+
33
+ 完整许可可立即读取 [LICENSE.md](<LICENSE.md>),同时保留 [PG 官方许可页](https://www.gutenberg.org/policy/license.html) 链接。原选书菜单的「书籍信息」提供署名/来源和完整离线声明下载,不能因只显示小说片段而删除署名或许可可达性。