-
Notifications
You must be signed in to change notification settings - Fork 45
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
'Print PDF' output using AH Formatter #604
Open
tgraham-antenna
wants to merge
96
commits into
electricbookworks:master
Choose a base branch
from
tgraham-antenna:ahf
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❌ Deploy Preview for electric-book failed.
|
Thanks, @tgraham-antenna, this is amazing! I'm going to need some time to go through everything here, and will get to it as soon as I can. |
'-ah-flush-zone' nudges the last line of justified text to fill the line if unadjusted end of the line is within the 'flush zone'. '-ah-adjust-last-line-spacing' adjusts the spacing of the last line of justified text so there's less visual difference between a possible widely-space second last line and an unjustified last line with normal spacing between words.
Add notes on debugging the Windows app
…monetization Add monetization meta tag to head.html
We were setting the listener on the bookmarks icon multiple times. This is a fix.
…ookmark-listener Avoid initialising multiple times
…mage-script-check Make check for image script more robust
Current version formatted with AH Formatter V7.2 MR3. |
This allows us to use site.export.format as a flag in markdown and includes for testing whether we are outputting HTML for Word export. For example, if we need to modify the question include to show which MCQ answers are correct in Word outputs for authors.
…export-flag Add flag for docx export
…act-title-page-logo Don't hard-code publisher-logo image on title page
…ll_svg-check Check for book folder before all_svg
…n-page-nav-links Fix: hide menu when clicking in in-page nav link
'-ah-flush-zone' nudges the last line of justified text to fill the line if unadjusted end of the line is within the 'flush zone'. '-ah-adjust-last-line-spacing' adjusts the spacing of the last line of justified text so there's less visual difference between a possible widely-space second last line and an unjustified last line with normal spacing between words.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a '1a' option to
run-windows.bat
to demonstrate generating "Print PDF" using AH Formatter V7.2 (https://www.antennahouse.com/formatter-v7). It has been tested with the 'sample' document. I didn't have a sample PDF to compare against (#594).Many of the style changes are grouped into
samples/styles/print-pdf.scss
just for ease of comprehension.run-windows.bat
runs the Saxon XSLT 3.0 processor Node module to merge the XHTML files into one file (#588).gulpfile.js
has extrapipe()
stages when running MathJax to get XHTML output because I couldn't find a MathJax option to make it generate XHTML itself. MathJax is configured to generate MathML that is rendered using AH Formatter's custom MathML 3.0 engine.samples-print.pdf