Skip to content
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

0.12.31 #191

Merged
merged 32 commits into from
Jul 20, 2023
Merged

0.12.31 #191

merged 32 commits into from
Jul 20, 2023

Conversation

eshellman
Copy link
Collaborator

@eshellman eshellman commented Jul 13, 2023

0.12.32 July 19, 2023

  • Updated a deprecated constant in ImageParser for compatibility with Pillow 10.0
  • to facilitate use of their by other applications, boilerplate strings are now exposed as strings in the writers.TemplateStrings module.
  • to improve accessibility in the backfile, ebookmaker now recognizes figures and captions which use class names like 'figcenter' and 'caption'. role='figure' and aria-labelledby attributes are added to the element used as a figure. New source files should not use this markup, the HTML5 figure and figcaption elements are preferred. Addresses fixes many figures in backfile books could be upgraded to HTML5 figure elements #178.
  • ebookmaker was not adding boilerplate (including metadata) when the source file was txt. Now it does.
  • added font-variant-numeric to the custom PG css profile. CSS Utils implemented CSS3-fonts before it was finalized, so it was missing font-variant-numeric. Fixes Add css-fonts-3 to accepted CSS #188
  • removed polyfill css for figure in deprecated to EPUB2. The added CSS just caused problems. Fixes <figure> margin settings are overridden in Epub2 #151
  • the HTML5 element article has been added to the down-conversion list for EPUB2 output. Fixes add article to down-conversion list  #172.
  • when ebookmaker transforms a[name] attributes into id attributes, whitespace or non-alphanumeric characters in the name result in invalid identifiers. These are dropped in the transformation to EPUB. Code has been added to transform these name attributes into valid xml identifiers. Fixes name -> id transformation for EPUB leads to bad ids #173
  • title='' has been added to the h2 element of the boilerplate header. This suppresses an awkward TOC entry in EPUB. fixes clean up problematic style elements #117
  • CSS for the boilerplate headeer has been tweaked to better protect its format from the document CSS, and to better match the fomatting used by the workflow tool.
  • Ebookmaker's parser no longer crashes when fed a document with SCRIPT elements containing bare "&" characters. Script elements are still removed. This was a problem exhibited when trying to convert HTML from PG Australia.
  • Ebookmaker has been normalizing case in css selectors for EPUB. However, the regexp being used was overbroad and didn't exclude text in selectors that used attribute value comparisons. At the same time, the regep was missing selectors that used , ~ + and > expressions. This regexp and the lower casing code has been fixed. In addition, we now also normalize element selector case in generated HTML, since we are normalizing the the HTML element case.
  • add ' | Project Gutenberg' to title element for uniformity. fixes Revised guidance for title element #183
  • add helpful comment in by-heading warning message
  • in metadata header, omit role label for all but first when multiple creators have the same role. Fixes Treatment of multiple authors #181.
  • when there is no pg header or pg-footer recognized, an INFO message is logged instead of a warning. The message indicates that it is an error for white-washed files. Fixes modify boilerplate warning #184.
  • Ebookmaker no longer inserts generated boilerplate when none is recognized in an html source file.
    When the source file is plain text only, boilerplate IS inserted. The only things needed to trigger boilerplate insertion are the strings *** START OF THE PROJECT GUTENBERG EBOOK *** and *** END OF THE PROJECT GUTENBERG EBOOK *** in a pre, div, or p element.

eshellman and others added 24 commits May 11, 2023 14:42
 #b2a2e6463247b3ae7fb440bac3f15ebd05b0ba50
h2 in header caused funny outlines. replaced with p styled to match header from workflow.
added font-variant-numeric to the custom PG css profile. CSS Utils implemented CSS3-fonts before it was finalized, so it was missing font-variant-numeric. Fixes #188
ebookmaker was not adding boilerplate (including metadata) when the source file was txt. Now it does.
Added new stub file; will populate with strings from HtmlTemplates.py that are referenced there.
@eshellman
Copy link
Collaborator Author

@gbnewby I intend to release tomorrow - let me know if there are any last things to add.

@gbnewby
Copy link
Collaborator

gbnewby commented Jul 14, 2023 via email

@eshellman eshellman merged commit 97bf45e into master Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment