Pressbooks 3.9.7

Pressbooks 3.9.7 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:

NOTICE: Pressbooks now requires WordPress 4.7.2.

  • Feature: Added support for Canadian Indigenous syllabics, which are used for the Chipewyan, Inuktitut, Plains Cree, Cree, Moose Cree, Slave, Northern Cree, Naskapi, Swampy Cree, Southern East Cree, and Ojibwa languages (props to @bdolor; see #635).
  • Feature: Part numbers are now displayed consistently across all formats (see #341).
  • Enhancement: SCSS maps are now used to provide variables for different export formats.
  • Enhancement: The global _titles.scss partial for SCSS v2 themes has been split into _pages.scss and _section-titles.scss for better separation of concerns.
  • Enhancement: Added the pb_add_latex_renderer_optionpb_require_latexpb_latex_renderers, and pb_add_latex_config_scripts filters and the pb_enqueue_latex_scripts action to support custom LaTeX renderers (props to @monkecheese; see #583).
  • Enhancement: Added the pb_root_description filter to allow the default root blog description to be changed.
  • Enhancement: Custom theme options can now be registered, either on an existing tab or on a new tab (see #470 and #618).
  • Enhancement: Added the pb_publisher_catalog_query_args filter to allow customizing the query for books on the front page of Pressbooks Publisher (see #619).
  • Enhancement: Added the \Pressbooks\Metadata::getJsonMetadata() function and the pb_json_metadata filter to support returning book information as JSON data for posting to an API endpoint (see #637).
  • Enhancement: Added the pb_add_bisac_subjects_field filter, which allows those with a licensed copy of the BISAC subject headers to display a multiple select instead of Pressbooks’ default text input (see #637).
  • Enhancement: Added the pb_audience field to the Book Information page to allow setting a book’s target audience (see #638).
  • Enhancement: The export metadata settings for all book contents are now fetched in a single query within \Pressbooks\Book::getBookStructure() (props to @monkecheese; see #633).
  • Enhancement: The book language will now be set to the language selected when the book is registered (see #595).
  • Enhancement: The Comments column on the Organize page will now be hidden if comments are disabled (see #644).
  • Enhancement: Core textbox styles now apply to the equivalent .bcc-* selectors for improved compatibility with Pressbooks Textbook.
  • Enhancement: Imported content can optionally be set to published status instead of draft(see #593).
  • Enhancement: Front matter, chapter, and back matter types will now be imported from Pressbooks WXR files (see #601).
  • Enhancement: Empty front matter, chapters, and back matter will now be imported from Pressbooks WXR files (see #592).
  • Enhancement: Title display and export metadata will now be imported from Pressbooks WXR files (see #606).
  • Enhancement: Completing an import from a Pressbooks WXR file will now correctly enumerate different content types instead of labelling all as chapters.
  • Enhancement: Bold, italic, superscript, and subscript text is now properly imported from Word documents (props to @crism; see #629).
  • Enhancement: Inline language attributes are now properly imported from Word documents (props to @crism; see #630 and #639).
  • Enhancement: Removed the Postmark-specific wp_mail() override (see #587).
  • Enhancement: Export dependency errors are now grouped intelligently into a single alert (see #646).
  • Enhancement: Javascript and SCSS files are now validated on pull requests using Hound (see #617).
  • Enhancement: The sender address and name used for emails from a Pressbooks instance can now be customized by defining constants for WP_MAIL_FROM and WP_MAIL_FROM_NAME (see #663).
  • Fix: To prevent an erroneous reversion to the WordPress < 3.5 uploads directory structure, \Pressbooks\Utility\get_media_prefix() now checks for the ms_files_rewriting site option instead of for the blogs.dir directory.
  • Fix: The custom CSS file URL scheme is now relative, which should prevent mixed content errors under some circumstances (see #599).
  • Fix: Fixed an undefined index error in mPDF theme options (props to @monkecheese; see #613).
  • Fix: Fixed a database max key length error when creating the catalog tables (see #589).
  • Fix: Removed the Pressbooks plugin installer tab, which was preventing plugin searching from being conducted (see #596).
  • Fix: Deleted books will now be removed from user catalogs (see #412).
  • Fix: Fixed an issue where hyphenation would be enabled in Prince exports even if it was disabled in theme options (see #645).
  • Fix: Fixed an issue where custom running content was being displayed in the wrong place (see #623).
  • Fix: Fixed an issue where OpenOffice files would not be properly exposed for download (see #649).
  • Fix: The time allowed for an mPDF export to complete has been conditionally increased to account for certain edge cases (props to @bdolor; see #652).
  • Fix: Added between section numbers and titles in the mPDF TOC (props to @bdolor; see #653).
  • Fix: We now use the https endpoint for the Automattic LaTeX server to avoid mixed content errors (props to @bdolor; see #651).
  • Fix: Publisher logos inserted via add_theme_support( 'pressbooks_publisher_logo' ) hook are now properly copied into EPUB outputs (see #666).

Pressbooks 3.9.6

Pressbooks 3.9.6 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:*

NOTICE: Pressbooks now requires WordPress 4.7 “Vaughan”.
NOTICE: Pressbooks now requires PrinceXML 11 for PDF exports.

  • Feature: If you select a language on the book information page and the WordPress language pack for that language is available but not installed, Pressbooks will try to install it for you (and politely inform you if it can’t).
  • Feature: Added Hindi language support using Noto Sans Devanagari and Noto Serif Devanagari.
  • Enhancement: The whitelist-based theme filtering behaviour of Pressbooks =< 3.9.5.1 has been removed; all book themes are now available for use in all books (if network enabled), and all non-book themes are now available for use on the root blog (if network enabled). If you wish to restrict theme availability further, you can do so by adding additional filters to the allowed_themes filter hook.
  • Enhancement: Added the ability to retry asset fetching during EPUB export in the event of server errors (props to @nathanielks, see 7344674)
  • Enhancement: Added filter and action hooks to support the addition of import modules via third-party plugins (props to @monkecheese, see 4d7ca64).
  • Enhancement: Added the pb_disable_root_comments filter hook for control over comment display on the root blog (defaults to true — disable comments — as Pressbooks Publisher does not support comments).
  • Enhancement: Added a link from the user’s catalog logo or profile image to their profile URL, if set.
  • Enhancement: Added variables for textbox header font size and text alignment to book theme partials.
  • Enhancement: Removed our custom user_interface_lang setting in favour of WordPress 4.7’s user locale.
  • Enhancement: Removed \Pressbooks\utility\multi_sort() in favour of WordPress 4.7’s shiny new wp_list_sort().
  • Enhancement: Removed our last remaining use of get_blog_details, which will be deprecated in a forthcoming WordPress release.
  • Fix: Fixed an issue which prevented the Pressbooks admin color scheme from being applied upon manual plugin activation.
  • Fix: Fixed an issue which prevented the book name from properly updating under some circumstances.
  • Fix: Fixed some styles on the registration screen in the Pressbooks Publisher theme (now at v3.0.1).

Pressbooks 3.9.5.1

Pressbooks 3.9.5.1 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:*

  • Enhancement: Added pb_cover_image filter to improve support for networks which host uploaded content on a third-party server (props to @monkecheese).
  • Fix: Fixed a discrepancy in the line height of PrinceXML PDF exports of books using Cardo as the body font which resulted from an invalid descender value.
  • Fix: Fixed an issue where the Network Sharing & Privacy page would not update the associated site option value.
  • Fix: Fixed the vertical alignment of the Facebook share button in the webbook theme (props to @colomet).

Pressbooks 3.9.4.2

Pressbooks 3.9.4.2 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:

  • Feature: It is now possibled to modify the default session configuration via the pressbooks_session_configuration filter hook (props to @monkecheese).
  • Feature: The pb_append_chapter_content is now available in the mPDF exporter (props to @monkecheese).
  • Enhancement: The generator meta property has been added to XHTML exports.
  • Fix: A bug which resulted in anchors being added to internal links twice in EPUB exports has been resolved.

Pressbooks 3.9.4.1

Pressbooks 3.9.4.1 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:

  • Feature: The copyright string in the Pressbooks Publisher theme footer can now be customized via the pressbooks_publisher_content_info filter.
  • Feature: The text that is displayed when there are no books in a Pressbooks Publisher catalog can now be customized via the pressbooks_publisher_empty_catalog filter.
  • Fix: Updated a component of the Diagnostics page to remove a deprecation notice (props to @thomasdumm for the report).
  • Fix: Fixed a glitch in the Pressbooks colour scheme.

Pressbooks 3.9.4

Pressbooks 3.9.4 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:

  • Feature: Pressbooks + Hypothesis: Version 0.4.8 of the Hypothesis WordPress plugin now supports custom post types, and Pressbooks 3.9.4 adds Hypothesis support to all of ours (parts, chapters, front and back matter).
  • Feature: Having a problem with Pressbooks? We’ve added a diagnostics page which is accessible from the ‘Diagnostics’ link in the footer of every dashboard screen. If you need to report a bug, copy your system configuration info from your Diagnostics page to help us help you resolve the issue more efficiently.
  • Enhancement: check_epubcheck_install can now be overridden using the pb_epub_has_dependencies hook for use cases where EPUB validation is not required (props to @monkecheese for the PR).
  • Enhancement: Some adjustments were made to the PDF output stylesheets for running headers and footers.
  • Fix: Fixed a visual glitch by hiding the TinyMCE table editor’s inline toolbar.

Pressbooks 3.9.3

Pressbooks 3.9.3 just went live on Pressbooks.com and all of our other production networks. Here’s what changed:

  • NOTE: Saxon-HE 9.7.0-10 is no longer bundled with Pressbooks and must be installed separately for ODT export support (see Installation).
  • Feature: The copy on the publish page can now be replaced by adding a filter to the pressbooks_publish_page filter hook.
  • Feature: If registration is enabled, a ‘Register’ button now appears on the front page of the Pressbooks Publisher theme.
  • Enhancement: A URL sanitization routine has been added to the \Pressbooks\Options class.
  • Enhancement: The methods of \Pressbooks\Options which list the options of various types (bool, string, float, etc.) are now optional, and the sanitize function now checks for each type before trying to sanitize it.
  • Enhancement: The publish page has been refactored using the \Pressbooks\Options class.
  • Fix: Unwanted validation warning emails will no longer be sent.