Moodle
  1. Moodle
  2. MDL-10704

CSS letter-spacing or text-align: justify; break rendering for Khmer

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Rank:
      33295

      Description

      Hello all,

      P.S. This is just the copy of my topic at http://moodle.org/mod/forum/discuss.php?d=76930

      As you can see in the discussion at http://www.khmeros.info/drupal/?q=en/node/743#comment-1467, using letter-spacing (or text-align: justify) in CSS will break Khmer rendering. I have observed there is the use of letter-spacing in /theme/standard/styles_fonts.css. Other themes might use this CSS option as well.

      I am not sure about the benefits behind this CSS option, but I suggest not to use it if it is just for the nice-looking purpose.

      I have included some screenshots:

      <img src=http://farm2.static.flickr.com/1048/944927979_93c9d44913_o.jpg>
      <em>The more value the letter-spacing is, the more it breaks Khmer rendering.</em>

      <img src=http://farm2.static.flickr.com/1199/944925035_d4e13de664_o.jpg>
      <em>After commenting out the letter-spacing, I got this fine rendering.</em>

      Related issue: http://moodle.org/mod/forum/discuss.php?d=68330#p327016

      Soben

        Issue Links

          Activity

          Hide
          Urs Hunkler added a comment -

          I commented letter-spacing out in styles_fonts.css in Moodle 1.8 and 1.9. Please check if Khmer renders correctly now.

          Show
          Urs Hunkler added a comment - I commented letter-spacing out in styles_fonts.css in Moodle 1.8 and 1.9. Please check if Khmer renders correctly now.
          Hide
          Leang Chumsoben added a comment -

          I downloaded styles-fonts.css (revision 1.134) from http://moodle.cvs.sourceforge.net/moodle/moodle/theme/standard/styles_fonts.css?view=log and Khmer renders fine now.

          So basically, there are only two occurences of letter-spacing and they all are in /thems/standard folder.

          Thanks you very much Urs for your modifying.

          Show
          Leang Chumsoben added a comment - I downloaded styles-fonts.css (revision 1.134) from http://moodle.cvs.sourceforge.net/moodle/moodle/theme/standard/styles_fonts.css?view=log and Khmer renders fine now. So basically, there are only two occurences of letter-spacing and they all are in /thems/standard folder. Thanks you very much Urs for your modifying.
          Hide
          Leang Chumsoben added a comment -

          The problem with ''text-align:justify'' occurs only in Firefox and now it has been fixed in Firefox 3.0 Beta1. For more information, refer to http://www.khmeros.info/drupal/?q=en/node/2309

          Show
          Leang Chumsoben added a comment - The problem with ''text-align:justify'' occurs only in Firefox and now it has been fixed in Firefox 3.0 Beta1. For more information, refer to http://www.khmeros.info/drupal/?q=en/node/2309

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: