Skip to content

Releases: vivliostyle/vivliostyle.js

2019.1.101

27 Feb 07:56
Compare
Choose a tag to compare

See https://vivliostyle.org/docs/ for documentation.

Vivliostyle Viewer UI: vivliostyle-ui 2019.1.101

Added

  • TOC (Table of Contents) navigation is now enabled
    • #498, #511
    • TOC box generation is enabled when #b= Viewer parameter (= Viewer.loadPublication() function) is used, and the publication has TOC data. In HTML documents, TOC is marked up with e.g. <nav role="doc-toc">. Vivliostyle recognizes element that is selected with CSS selector [role=doc-toc], [role=directory], nav li, .toc, #toc as a TOC element.
    • [Viewer UI] vivliostyle/vivliostyle-ui#62
  • Support Web Publications and similar multi-HTML documents
    • #511
    • Supported document types with #b= Viewer parameter (= Viewer.loadPublication() function):
      • Unzipped EPUB
        • URL of the OPF file can be specified as well as the top directory of the unzipped EPUB files.
      • Web publication (a collection of HTML documents with reading order)
      • (X)HTML document
        • When (X)HTML document URL is specified, the URL is treated as primary entry page's, and a series of HTML files are automatically loaded.
          • When the web publication manifest is specified in the primary entry page (X)HTML document, the readingOrder in the manifest is used.
          • If manifest is not specified or "readingOrder" is not in the manifest, the (X)HTML documents linked from the TOC element that is selected with CSS selector [role=doc-toc], [role=directory], nav li, .toc, #toc are loaded.
  • Support loading documents from GitHub and some specific URLs
    • #499, #505, 3424d965
    • GitHub and Gist URLs can be directly specified. Vivliostyle loads raw github/gist content when github/gist URL is specified.
    • Aozorabunko (青空文庫) (X)HTML URL can be specified. Vivliostyle loads Aozorabunko's raw github content when Aozorabunko (X)HTML URL is specified.
    • JS Bin URL is converted to JS Bin output URL and can be loaded. This is useful for testing Vivliostyle output from small HTML + CSS code, as well as Gist.
  • Publication title and individual HTML document title are now passed to viewer UI
  • env(pub-title) and env(doc-title) environment variables for page headers with publication/document titles
    • #512
    • Spec: CSS Environment Variables Module Level 1 defines env() function, but env(pub-title) and env(doc-title) are not yet defined so far.
    • env(pub-title): publication title = EPUB, Web publication, or primary entry page HTML title. Enabled when #b= Viewer parameter (= Viewer.loadPublication() function) is used.
    • env(doc-title): document title = HTML title, which may be chapter or section title in a publication composed of multiple HTML documents
    • When title data are not found, i.e. no <title> element in HTML, or env(pub-title) with #x= Viewer parameter (= Viewer.loadDocument() function), the empty string "" is returned.
  • Viewport-percentage length units: vw, vh, vi, vb, vmin, vmax, and page-size-percentage units pvw, pvh, pvi, pvb, pvmin, pvmax
    • #507
    • Spec: CSS Values and Units - Viewport-percentage lengths, but page-size-percentage units are not defined so far.
    • Note: On paged media context, the viewport-percentage units vw, vh, vi, vb, vmin, vmax are relative to the size of the page area, i.e., the content area of a page box and not including margin, border and padding specified on @page rule. This makes a lot of sense, but page size relative units may also be necessary. The pvw, pvh, pvi, pvb, pvmin, pvmax units are similar to the vw, vh, vi, vb, vmin, vmax but the reference size is the page size including page margins.
  • Support CSS calc() function
  • [Viewer UI] New "User Style Preferences" in the Settings panel
    • vivliostyle/vivliostyle-ui#64
    • New settings: Page Margins, Page Breaks (widows/orphans), Images, Text (base font-size, line-height, font-family)
    • User style CSS code is shown and editable in "CSS Details" box
    • User style CSS is saved in the URL parameter userStyle=data:,/*<viewer>*//*</viewer>*/ and not disappear when reloading, and can be bookmarked in browser.
    • "Font size (%)" reflects the ViewerOptions.fontSize that can be increase/decrease with "Text: larger/smaller" buttons, and this setting is saved in the new URL parameter fontSize=.
  • [Viewer UI] Vivliostyle Viewer start page with document URL input and usage description
    • vivliostyle/vivliostyle-ui#65
    • When document URL parameter (#b= or #x=) is not specified, the start page is now displayed.
    • Document URL entered by user is reflected in the URL parameter #b=, and when the Enter key is pressed, the document is loaded.

Changed

  • Render All Pages (On/Off) setting
    • #497
    • On: for Print (all pages printable, page count works as expected)
    • Off: for Read (quick loading with rough page count) -- This mode is necessary for viewing large publication composed of a lot of HTML documents.
    • [Viewer UI] vivliostyle/vivliostyle-ui#60, vivliostyle/vivliostyle-ui#61
      • This setting can be specified in setting panel and URL parameter renderAllPages=[true|false].
      • The default setting is renderAllPages=false for #b= (Book view) and renderAllPages=true for #x= (individual (X)HTML document).
  • Enabled 'vivliostyle' media type by default
    • #500
    • This can be used like 'print' media type, and useful for distinguish Vivliostyle specific style sheets from general print style sheets.
  • Added style rule h1,h2,h3,h4,h5,h6 { break-after: avoid; } to the default style sheet to avoid page/column breaks after headings by default.
  • Removed the workaround for Microsoft Edge's text-justify: inter-ideograph problem
  • Improved error messages when document loading failed.
  • Renamed the function corresponding the #b= Viewer parameter, loadEPUB() to loadPublication(), that is now not only for EPUB.

Fixed

  • Fix bug that media attribute is not honored on <style> element.

Acknowledgements

  • Development of this version is supported by Japan Business Press Co., Ltd.

2018.12.103

02 Jan 18:15
Compare
Choose a tag to compare

See https://vivliostyle.org/docs/ for documentation.

Vivliostyle Viewer UI: vivliostyle-ui 2018.12.103

Fixed

  • Fix bug that ruby causes incorrect pagination
  • Fix bug on epubcfi failing to navigate to beginning of a spine item
  • Fix error occurring when inline-table is nested in another table

Changed

  • [Viewer UI] UI adjustment
    • Setting panel "Apply" button now closes the panel
    • Enable "Previous Page", "Next Page", and "Text: Default Size" buttons when window is wide enough

2018.10.100

31 Oct 04:31
Compare
Choose a tag to compare

See https://vivliostyle.org/docs/ for documentation.

Vivliostyle Viewer UI: vivliostyle-ui 2018.10.100

Added

Changed

  • [Viewer UI] Navigation UI adjustment
    • Removed "Move: Previous/Next" navigation buttons
    • Hide "Zoom: Actual Size/Fit to screen" buttons when screen is narrow
    • Page left/right navigation UI color
  • [Viewer UI] Disable page swipe when pinch-zoomed or horizontal scrollable
  • Prevent unexpected page resizing (viewport-height change due to soft keyboard etc.) on Android/iOS

Fixed

  • Fix bug that EPUB internal link does not work

Acknowledgements

  • Development of this version is supported by Japan Business Press Co., Ltd.

2018.8.100

10 Sep 09:11
Compare
Choose a tag to compare

See https://vivliostyle.org/docs/ for documentation.

Vivliostyle Viewer UI: vivliostyle-ui 2018.8.100

Added

Changed

Fixed

  • Fix a bug that page spread view becomes incorrect when content doc's writing mode does not match the page-progression-direction in OPF
  • Fix a bug that stylesheet link element is ignored when class attribute exists
  • Fix a bug that writing mode specified on body didn't determine the root writing mode
  • Fix a bug that page spread view is weird when viewport width/height is specified
  • Fix a bug that clear: both on page floats causes "Error: Unexpected side: both".
  • Workaround for Microsoft Edge's text-justify: inter-ideograph problem
  • [Viewer UI] Fix sticky hover effect on touch devices

2018.2 (Unreleased)

10 Sep 08:37
7b2d80e
Compare
Choose a tag to compare
2018.2 (Unreleased) Pre-release
Pre-release

Added

Changed

  • Avoid text wrapping around fragmented page floats

Fixed

  • Fix a bug that a bottom margin on a page float is not taken into account when the float has a bottom padding or border
  • Fix a bug that box-decoration-break: clone makes a block incorrectly overflow
  • Avoid invalid fragmentation occurring between an edge of a block container and its child
  • Fix a bug that a table is not fragmented correctly
  • Fix a bug that a float inside an element with position:relative is positioned incorrectly
  • Fix a bug that a table is occasionally fragmented immediately before the end of it
  • Avoid printing bug on Gecko
  • Avoid printing bug on Blink
  • Fix incorrect justification when a positive text-indent is specified
  • Fix display of mglyph element of MathML
  • Fix a bug that order of page floats is sometimes incorrect

2017.6

22 Jun 00:30
Compare
Choose a tag to compare

See http://vivliostyle.com/en/documentation/supported-features/ for supported features.

Added

Changed

  • Place footnotes at the bottom of pages (or regions) rather than columns #343
  • Disable hyphenation by default #363

Fixed

  • Fix footnote layout bugs #332
  • Fix justification bugs #356 #357 #358
  • Fix problem that content sometimes overflows a partition instead of being deferred to the next partition #361 #362

2017.2

22 Feb 07:04
Compare
Choose a tag to compare

See http://vivliostyle.com/en/documentation/supported-features/ for supported features.

Added

Changed

  • Change license to AGPL 3.0 #329

Fixed

  • Fix incorrect page breaking at boundaries of inline-block boxes #309
  • Improve page/column breaking inside tables #311
    • Following issues are resolved:
      • Table cell with rowspan disappears after page break #85
      • Table (column) width should not change over page breaks #157
      • Table breaks occur between the colgroup and the first row #279
  • Fix incorrect treatment of percentage value for line-height property #312
  • Support repeating table header/footer across pages #319
  • Fix incorrect widows behavior with footnote call close to the end of the page #328

2016.10

25 Oct 07:16
Compare
Choose a tag to compare

See http://vivliostyle.com/en/documentation/supported-features/ for supported features.

Added

Changed

  • Introduce background layout and change event model #292
  • Improve zoom behavior #292
  • Add very simple 'auto spread' page view mode #300

Fixed

  • Fix bug that pages occasionally disappear when resolving cross references #268
  • Respect target="_blank" on links to external URLs #269
  • Fix incorrect page breaks with cross references #271
  • Fix image-resolution behavior when max/min-width/height is specified in length (not percentage) #275
  • Fix image-resolution to take box-sizing into account #276
  • Fix cross reference bug with name attribute #278
  • Avoid error when inherit value is used #283
  • Avoid error when rem unit is used #283
  • Fix rem unit inside position: relative elements #242
  • Fix internally generated IDs on elements to conform to the XML specification #295

2016.7

04 Jul 11:02
Compare
Choose a tag to compare

See http://vivliostyle.com/en/documentation/supported-features/ for supported features.

Added

Changed

  • counter-reset and counter-increment specified in a page master (@-epubx-page-master) are now effective to page-based counters #251
    • Note that these values, if specified, always override values specified in page contexts.

Fixed

  • Fix a bug that clear is ignored when white-space property is used before the element #222
  • Fix incorrect float positioning #192
  • Fix incorrect float clearance #223
  • Fix incorrect text offset caused by float #226
  • Fix improper rendering of floats with relative width/height #37
  • Fix positioning when a float is specified position: relative or a float is inside an positioned element #240
  • Fix positioning when a float has a writing-mode value different from its container #192
  • Fix issue with floats inside an element with an overflow value other than visible #224
  • Fix issue that a display value was always set to block for a float, ignoring the original value #232
  • Fix layout when a float is wider than its containing block #233
  • Avoid error when an element with pseudoelements overflows its container #241
  • Fix handling of padding and border of a block fragmented by a page/column break #250
  • Fix layout of floats inside flex containers #253
  • Fix page break bug in vertical text on Firefox (partially) #263

2016.4

08 Apr 02:39
Compare
Choose a tag to compare

See http://vivliostyle.com/en/documentation/supported-features/ for supported features.

Added

Fixed