-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed font size in epub #184
Comments
Also wonder if it is possible that if the command didn't specify the output filename, percollate would use the title as the output filename? |
Thanks for reporting. This is the default CSS that ships with the EPUB, I don’t notice anything in there that could prevent the text from scaling in EPUB readers. In any case, you can either add to it with the touch empty-style.css && percollate epub --style empty-style.css https://stratechery.com/2024/enterprise-philosophy-and-the-first-wave-of-ai/ It would give us an idea if the issue is with the CSS or the XHTML markup.
It should use the simplified title (spaces replaced with dashes, etc.) as the output filename when using the percollate command on a single item. |
Using the command provided I can adjust the font size. I guess it is caused by the CSS. Then I tried to edit percollate/templates/default.css Line 17 in e9992a7
Thanks |
Thanks for investigated! If that’s the case, this command should help producing EPUBs until the issue is resolved: percollate epub --css "html { font-size: initial }" https://article It remains to be investigated whether having a font-size on the |
Thanks I also checked the EPUB Spec. Here is my finding:
Not sure if that help narrow down |
percollate/templates/default.css Line 17 in e9992a7
@danburzo Just wonder if it is a good idea to replace |
Environment
node --version
: v20.17.0npm --version
: 10.8.2yarn --version
, if using Yarn:percollate --version
: 4.2.3Description
I first ran the following command to generate the epub file:
percollate epub https://stratechery.com/2024/enterprise-philosophy-and-the-first-wave-of-ai/ -o "Enterprise Philosophy and The First Wave of AI.epub"
Then open the generated epub in Foliate and KOReader. But when I tried to adjust the font size in both app didn't change the font size.
Upload the epub file for checking (I just convert the image in the epub file, other things untouched). Please rename the file into
.epub
extension and open with your favorite EPUB reader.The text was updated successfully, but these errors were encountered: