Menu

#176 CSS hyphenate: none - broken

All platforms
open
Core (54)
7
2012-04-23
2012-04-18
martinr
No

Hyphenation can not be switched off by means of epub.css.

The following /crengine/epub.css directives do not switch off hyphenation:

@ Import "/ root/crengine/epub.css";
body {
text-align: right;
hyphenate: none;
}

I could verify that the css file is read, because epub text is formatted right aligned, but hyphenation did not switch off.
(Is there another way to switch off hyphenation entirely?)

This problem was spotted in Cool Reader version: 3.0.51-28 running on a BeBook Club S (Boox X60S).

Discussion

  • martinr

    martinr - 2012-04-18
    • summary: CSS Hyphenation: none - broken --> CSS Hyphenate: none - broken
     
  • martinr

    martinr - 2012-04-18
    • summary: CSS Hyphenate: none - broken --> CSS hyphenate: none - broken
     
  • Vadim Lopatin

    Vadim Lopatin - 2012-04-23
    • priority: 5 --> 7
    • assigned_to: nobody --> buggins
     
  • Olexandr

    Olexandr - 2012-04-25

    My observation: If remove last symbol ";" from first string, then all work fine,
    If in *.css present any non-valid element, then all css ignored. (Example: "@ import", ""@Im port")

     
  • martinr

    martinr - 2012-04-28

    Thanks for your reaction. I corrected the ";" and re-tested extensively and came to the conclusion that my epub.css file probably is not read and therefor hyphenation is not switched off. Is there a way to enable logging? (I used the W3C checker to validate the .css file).

    For your information I tried storing the epub.css in the following directories:
    /cre/epub.css
    /crengine/epub.css
    (SD-root) /crengine/epub.css

    I also took the epub.css contained in the source code repository as a template, but no effect. Hyphenation is still active.

     

Log in to post a comment.