mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-28 15:21:34 +12:00
Flesch Reading Ease is now enabled by default!
This commit is contained in:
parent
6a461904d4
commit
2763eda443
3 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ Features
|
||||||
* Option to not add a title heading for chapters (in case the story has its own)
|
* Option to not add a title heading for chapters (in case the story has its own)
|
||||||
* Tweak paragraph style from double-spaced to indented (similar to book typesetting, may not look good on every story)
|
* Tweak paragraph style from double-spaced to indented (similar to book typesetting, may not look good on every story)
|
||||||
* Emoji, icon and webp support (webp images gets converted to png)
|
* Emoji, icon and webp support (webp images gets converted to png)
|
||||||
* Calculation the story's Flesch reading ease (disabled by default because it's a slow process)
|
* Calculate the story's Flesch reading ease
|
||||||
* Customize metadata of the generated ebook, such as title, author, subjects and description
|
* Customize metadata of the generated ebook, such as title, author, subjects and description
|
||||||
* Command line tool with same features as the web extension
|
* Command line tool with same features as the web extension
|
||||||
|
|
||||||
|
@ -55,12 +55,12 @@ By default the EPUB will be saved in the current working directory with the file
|
||||||
-a, --author <value> Set the author of the story
|
-a, --author <value> Set the author of the story
|
||||||
-c, --no-comments-link Don't add link to online comments
|
-c, --no-comments-link Don't add link to online comments
|
||||||
-H, --no-headings Don't add headings to chapters
|
-H, --no-headings Don't add headings to chapters
|
||||||
|
-r, --no-reading-ease Don't calculate Flesch reading ease
|
||||||
-e, --no-external Don't embed external resources, such as images (breaks EPUB spec)
|
-e, --no-external Don't embed external resources, such as images (breaks EPUB spec)
|
||||||
-n, --no-notes Don't include author notes
|
-n, --no-notes Don't include author notes
|
||||||
-i, --notes-index Create an index with all author notes at the end of the ebook
|
-i, --notes-index Create an index with all author notes at the end of the ebook
|
||||||
-p, --paragraphs <style> Select a paragraph style <spaced|indented|indentedall|both> (default: spaced)
|
-p, --paragraphs <style> Select a paragraph style <spaced|indented|indentedall|both> (default: spaced)
|
||||||
-j, --join-subjects Join dc:subjects to a single value
|
-j, --join-subjects Join dc:subjects to a single value
|
||||||
-r, --reading-ease Calculate Flesch reading ease
|
|
||||||
-C, --cover <url> Set cover image url
|
-C, --cover <url> Set cover image url
|
||||||
-h, --help output usage information
|
-h, --help output usage information
|
||||||
```
|
```
|
||||||
|
@ -69,7 +69,7 @@ Examples
|
||||||
--------
|
--------
|
||||||
```
|
```
|
||||||
Download with automatic filename:
|
Download with automatic filename:
|
||||||
$ fimfic2epub --paragraphs indented --reading-ease 289663
|
$ fimfic2epub 289663
|
||||||
$ fimfic2epub https://www.fimfiction.net/story/289663/summer-island
|
$ fimfic2epub https://www.fimfiction.net/story/289663/summer-island
|
||||||
|
|
||||||
Download and save to a specified dir/filename:
|
Download and save to a specified dir/filename:
|
||||||
|
|
|
@ -9,12 +9,12 @@ const args = require('commander')
|
||||||
.option('-a, --author <value>', 'Set the author of the story')
|
.option('-a, --author <value>', 'Set the author of the story')
|
||||||
.option('-c, --no-comments-link', 'Don\'t add link to online comments')
|
.option('-c, --no-comments-link', 'Don\'t add link to online comments')
|
||||||
.option('-H, --no-headings', 'Don\'t add headings to chapters')
|
.option('-H, --no-headings', 'Don\'t add headings to chapters')
|
||||||
|
.option('-r, --no-reading-ease', 'Don\'t calculate Flesch reading ease')
|
||||||
.option('-e, --no-external', 'Don\'t embed external resources, such as images (breaks EPUB spec)')
|
.option('-e, --no-external', 'Don\'t embed external resources, such as images (breaks EPUB spec)')
|
||||||
.option('-n, --no-notes', 'Don\'t include author notes')
|
.option('-n, --no-notes', 'Don\'t include author notes')
|
||||||
.option('-i, --notes-index', 'Create an index with all author notes at the end of the ebook')
|
.option('-i, --notes-index', 'Create an index with all author notes at the end of the ebook')
|
||||||
.option('-p, --paragraphs <style>', 'Select a paragraph style <spaced|indented|indentedall|both>', 'spaced')
|
.option('-p, --paragraphs <style>', 'Select a paragraph style <spaced|indented|indentedall|both>', 'spaced')
|
||||||
.option('-j, --join-subjects', 'Join dc:subjects to a single value')
|
.option('-j, --join-subjects', 'Join dc:subjects to a single value')
|
||||||
.option('-r, --reading-ease', 'Calculate Flesch reading ease')
|
|
||||||
.option('-C, --cover <url>', 'Set cover image url')
|
.option('-C, --cover <url>', 'Set cover image url')
|
||||||
.parse(process.argv)
|
.parse(process.argv)
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ class FimFic2Epub extends Emitter {
|
||||||
includeExternal: true,
|
includeExternal: true,
|
||||||
paragraphStyle: 'spaced',
|
paragraphStyle: 'spaced',
|
||||||
joinSubjects: false,
|
joinSubjects: false,
|
||||||
calculateReadingEase: false,
|
calculateReadingEase: true,
|
||||||
readingEaseWakeupInterval: isNode ? 50 : 200 // lower for node, to not slow down thread
|
readingEaseWakeupInterval: isNode ? 50 : 200 // lower for node, to not slow down thread
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue