Pressbooks 3.9.1 just went live on [Pressbooks.com](https://pressbooks.com and all of our other production networks. Here’s what changed:
Fix: Fixed an issue where the htmLawed and PrinceXMLPHP dependencies were not being loaded properly.
Pressbooks 3.9.0 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:
Feature: Added a web theme option to display the title of the current part in the webbook (props to @bdolor).
Feature: Noto CJK fonts (required for Chinese, Japanese and Korean PDF output) are now downloaded only when needed from within Pressbooks, reducing the overall size of the Pressbooks download.
Feature: Added a recompile routine for webbook stylesheets to allow more straightforward development (only enabled when
WP_ENV is defined and set to
Enhancement: Applied our coding standards across the board and added PHP_CodeSniffer to our CI routines.
Enhancement: Added some unit tests.
Enhancement: Moved the Pressbooks API to /vendor.
Enhancement: Changed some colour variables for clarity.
Enhancement: Added initial support for SVG LaTeX images in PDF exports (requires QuickLaTex).
Enhancement: Added some scaffolding to allow option defaults to be filtered in pages built using the new options class.
Enhancement: The book information post is now created when a book is registered.
Fix: Added missing methods which were triggering fatal errors in the Export Options page (props to @bdolor).
Fix: Fixed in issue which prevented the Ebook paragraph separation theme option from being applied in Clarke.
Fix: Fixed an issue where internal links from within part content were broken in EPUB.
Fix: Fixed an issue where backslashes would be erroneously stripped when replacements were applied in the Search and Replace utility (props to @rootl for the bug report).
Fix: Fixed an issue where the book title would not be updated on the first save.
Why We Removed Pressbooks from the WordPress Plugin Repository
A couple weeks ago, we removed Pressbooks from the WordPress Plugin Repository. We want to offer an explanation for this decision to our users, and give some insight into our plans for the distribution of Pressbooks moving forward.
Pressbooks has never been a typical WordPress plugin. It is a platform, not a plugin, and as such it completely transforms the WordPress interface into a content management system for book authoring and formatting. Furthermore, it requires WordPress Multisite and it also requires a number of third-party libraries to support its export routines (epubcheck, KindleGen, PrinceXML and xmllint to name a few) which cannot be installed on shared hosting environments. As such, Pressbooks is not a WordPress plugin that is particularly useful without:
- A virtual private server (VPS) environment;
- An advanced knowledge of WordPress configuration, especially multisite;
- Some devops experience.
Over the years, we have encountered many WordPress users who installed Pressbooks from the WordPress Plugin Repository on their existing blogs1 and were frustrated by the experience. After much consideration, we have decided that the best way to support all users of the Pressbooks plugin is to remove it from the WordPress Plugin Repository and distribute it via GitHub.
For those who don’t want to run their own Pressbooks infrastructure, we offer the following options:
For those who are interested in running their own networks, we are working to improve the installation documentation and provide several methods to keep Pressbooks updated.
Pressbooks’ first meeting on accessibility with our Open Source partners took place today. Hugh and I were joined by Jess Mitchell and Jonathan Hung from the Inclusive Design Research Centre at OCAD and Brad Payne and Josie Gray from BCcampus. We identified and discussed four initial tasks to begin work on making Pressbooks more accessible and inclusive for authors and readers alike:
- Conducting an audit of the Pressbooks administration interface for accessibility and inclusivity (see pressbooks/pressbooks#487);
- Conducting an audit of the Pressbooks web book theme and root theme interfaces for accessibility and inclusivity (see pressbooks/pressbooks#488);
- Integrating the IDRC Fluid Project’s display preferences tool into the Pressbooks web book theme and root theme interfaces (see pressbooks/pressbooks#489);
- Assessing potential tools to help authors review their books’ content for accessibility and inclusivity (see pressbooks/pressbooks#490).
In our discussion of the fourth point, we heard from Josie, who in her work at BCcampus has been using a combination of tools (including Total Validator and AChecker) and manual review against to the W3C’s Web Content Accessibility Guidelines to assess the accessibility and inclusivity of their OERs. Jess and Jonathan also recommended WAVE for this.
We plan to have a second meeting of the accessibility group within one month (tentatively on Wednesday, October 26, 2016) and in the meantime, I will be working with Jess and Jonathan to get a development instance of Pressbooks running at the IDRC for auditing purposes, working on the integration of the Fluid display preferences module, and continuing discussions with Jess and Jonathan on the IDRC’s metadata tools. Brad and Josie will work on compiling a matrix of problem patterns that Josie has identified in her content review work, and Jess and Jonathan will walk through their audit process and results with the accessibility group at our next meeting so that we can all get a sense of best practices. Thanks to everyone who could join us today! It was an exciting first meeting, and we’re looking forward to continued collaboration on this important component of the Pressbooks project.
Pressbooks 3.8.1 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:
- Fix: Internal links are now actually fixed in EPUB exports.
Pressbooks 3.8.0 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:
- Feature: The redistribution option from Pressbooks Textbook, which allows a book administrator to share the latest export files of their book on the webbook cover page, has been migrated into Pressbooks and can be found under (Network) Settings -> Sharing and Privacy. Many thanks to @bdolor for developing this feature (and fixing a display bug in our implementation of it).
- Feature: Luther and all child themes now support searching within webbooks.
- Feature: The Pressbooks.com promotion on book covers can now be hidden using the
- Enhancement: Hypothesis has been added to the supported plugins list, and the supported plugins list is now built more intelligently.
- Enhancement: The hard-coded default theme for new books has been replaced by the following logic: 1. Use
PB_BOOK_THEME (if set); 2. Use
WP_DEFAULT_THEME (if set); 3. Use Luther.
- Enhancement: Added the
pressbooks_register_theme_directory action to support the registration of custom theme directores by third-party developers (props to @bdolor).
- Enhancement: Added support for testing PrinceXML’s built-in PDF profile support by setting the
PB_PDF_PROFILE constant to the desired profile.
- Enhancement: Refactored generic shortcodes to allow testing and test were written for them.
- Enhancement: Switched from internal fork to dev-master of gridonic/princexmlphp and switched to versioned copy of pressbooks/saxonhe.
- Enhancement: The
\Pressbooks\Modules\ThemeOptions class now supports the registration of custom tags by third-party developers.
- Fix: Removed a leftover conditional check for the
accessibility_fontsize option in webbooks (props to @bdolor for the bug report).
- Fix: Internal links to parts now work in XHTML, PDF and EPUB exports.
- Fix: Fixed some incorrect color values in the mobile admin bar.
- Fix: Fixed a misplaced comment in the conditional check for IE 9 in Pressbooks Book (props to @chrillep).
- Fix: Fixed a bug where protocol-relative images would not be exported properly in EPUB (props to @bdolor).
WordPress 4.6.1 Maintenance and Security Release came out on September 7. After ensuring its compatibility with Pressbooks, we upgraded Pressbooks.com and all other production networks to WordPress 4.6.1 on September 8.
Pressbooks 3.7.1 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:
- Fix: Fixed a bug where increased font size would be applied to all PDF exports.
Pressbooks 3.7.0 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:
- Feature: Introduced
\Pressbooks\Options class and rebuilt theme options using on this class.
- Feature: Introduced
\Pressbooks\Taxonomy class and rebuilt front matter, chapter and back matter types using this class.
- Feature: Added support for custom base font size, line height, page margins, image resolution and running content in SCSS v2 themes for PDF.
- Feature: Enabled webbook collapsible TOC by default (as needed).
- Feature: Enabled webbook font size control by default.
- Feature: Added custom sidebar color for catalog (props to @monkecheese).
- Enhancement: Prince will now ignore self-signed certificates in a development environment.
- Fix: Fixed an admin style inconsistency introduced with WordPress 4.6.
- Fix: Fixed an error where SCSS v2 themes could not be imported into the Custom CSS editor.
- Fix: Added user feedback to allow recovery from JPEG errors (props to @bdolor).
- Fix: Added a call to
wp_flush_cache() to fix an error during book creation.
Pressbooks 3.6.3 went live on Pressbooks.com and all of our other production networks on August 19. Here’s what changed:
- Fix: Fixed an error caused by the change to get_sites().