1. 17 10月, 2013 5 次提交
    • B
      [indic] Improve clusters in presence of reph · 6b2abdcd
      Behdad Esfahbod 提交于
      6b2abdcd
    • B
      [indic] Apply calt,clig in the same stage as presentation features · 42d0f55c
      Behdad Esfahbod 提交于
      Whic means these twp are applied per-syllable now.  Apparently
      in some Khmer fonts the clig interacts with presentation features.
      
      Test case: U+1781,U+17D2,U+1789,U+17BB,U+17C6 with Mondulkiri-R.ttf
      should produce one big ligature.
      42d0f55c
    • B
      [indic] Fix pref vs blwf interaction · ae9a5834
      Behdad Esfahbod 提交于
      If a glyph can be both blwf and pref, we were wrongly sorting it
      in the post position instead of below position.
      ae9a5834
    • B
      [indic] Don't apply blwf before base under old-spec mode · c7dacac0
      Behdad Esfahbod 提交于
      Test case: U+09AC,U+09CD,U+09A6 with Lohit-Bengali 2.5.3.
      c7dacac0
    • B
      [indic] Misc harmless fixes! · 3756efaf
      Behdad Esfahbod 提交于
      First, we were abusing OT_VD instead of OT_A.  Fix that
      but moving OT_A in the grammar where it belongs (which
      is different from what the spec says).
      
      Also, only allow medial consonants after all other
      consonants.  This doesn't affect any current character.
      
      Finally, fix Halant attachment in presence of medial
      consonants.  Again, this currently doesn't affect any
      sequence.
      
      I lied.  There's Gurmukhi U+0A75 which is Consonant_Medial.
      Uniscribe allows one of those in each of these positions:
      before matras, after matras and before syllable modifiers,
      and after syllable modifiers!  We currently just allow
      unlimited numbers of it, before matras.
      3756efaf
  2. 16 10月, 2013 8 次提交
  3. 15 10月, 2013 2 次提交
    • B
      [indic] Handle Avagraha · 3c7b3641
      Behdad Esfahbod 提交于
      It can come either at the end(ish!) of the syllable, or independently.
      When independent, it accepts a few bits and pieces.
      3c7b3641
    • B
      [indic] Some scripts like blwf applied to pre-base characters · 8acbb6be
      Behdad Esfahbod 提交于
      ...while some don't!
      
      Improved Bengali, Devanagari, Gurmukhi, Malayalam.
      
      Updated numbers:
      
      BENGALI: 353732 out of 354188 tests passed. 456 failed (0.128745%)
      DEVANAGARI: 707307 out of 707394 tests passed. 87 failed (0.0122987%)
      GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%)
      GURMUKHI: 60732 out of 60747 tests passed. 15 failed (0.0246926%)
      KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%)
      KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%)
      MALAYALAM: 1048134 out of 1048334 tests passed. 200 failed (0.0190779%)
      ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
      SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
      TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
      TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
      8acbb6be
  4. 08 8月, 2013 1 次提交
  5. 06 8月, 2013 1 次提交
  6. 27 6月, 2013 1 次提交
  7. 19 3月, 2013 1 次提交
    • B
      [Indic] Futher adjust ZWJ handling in Indic-like shapers · a8cf7b43
      Behdad Esfahbod 提交于
      After the Ngapi hackfest work, we were assuming that fonts
      won't use presentation features to choose specific forms
      (eg. conjuncts).  As such, we were using auto-joiner behavior
      for such features.  It proved to be troublesome as many fonts
      used presentation forms ('pres') for example to form conjuncts,
      which need to be disabled when a ZWJ is inserted.
      
      Two examples:
      
      	U+0D2F,U+200D,U+0D4D,U+0D2F with kartika.ttf
      	U+0995,U+09CD,U+200D,U+09B7 with vrinda.ttf
      
      What we do now is to never do magic to ZWJ during GSUB's main input
      match for Indic-style shapers.  Note that backtrack/lookahead are still
      matched liberally, as is GPOS.  This seems to be an acceptable
      compromise.
      
      As to the bug that initially started this work, that one needs to
      be fixed differently:
      
        Bug 58714 - Kannada u+0cb0 u+200d u+0ccd u+0c95 u+0cbe does not
        provide same results as Windows8
        https://bugs.freedesktop.org/show_bug.cgi?id=58714
      
      New numbers:
      
      BENGALI: 353689 out of 354188 tests passed. 499 failed (0.140886%)
      DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
      GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%)
      GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
      KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%)
      KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%)
      LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
      MALAYALAM: 1048102 out of 1048334 tests passed. 232 failed (0.0221304%)
      ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
      SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
      TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
      TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
      TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
      a8cf7b43
  8. 06 3月, 2013 2 次提交
  9. 28 2月, 2013 1 次提交
  10. 27 2月, 2013 1 次提交
    • B
      [Indic] Sort pre-base reordering consonants with post-forms · 94789fd6
      Behdad Esfahbod 提交于
      Before, we were marking them as below-form for initial reordering.
      However, there is a rule that says "post consonants should follow
      below consonsnts" for base determination purposes.  Malayalam has
      port-form YA/VA, and RA is pre-base.  As such, for a sequence like
      YA,Virama,YA,Virama,RA, the correct base is at index 0.  But
      because the code was seeing RA as a below-base, it was stopping at
      the second YA as base, instead of jumping it as a post-base.
      
      By treating prebase-reordering consonants like post-forms, this
      is fixed.
      
      MALAYALAM went down from 351 to 265.  Other numbers didn't change:
      
      BENGALI: 353686 out of 354188 tests passed. 502 failed (0.141733%)
      DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
      GUJARATI: 366262 out of 366457 tests passed. 195 failed (0.0532122%)
      GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
      KANNADA: 950680 out of 951913 tests passed. 1233 failed (0.129529%)
      KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
      LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
      MALAYALAM: 1048069 out of 1048334 tests passed. 265 failed (0.0252782%)
      ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
      SINHALA: 271539 out of 271847 tests passed. 308 failed (0.113299%)
      TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
      TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
      TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
      94789fd6
  11. 15 2月, 2013 3 次提交
    • B
      [Indic-like] Disable automatic joiner handling for basic shaping features · cfc507c5
      Behdad Esfahbod 提交于
      Not for Arabic, but for Indic-like scripts.  ZWJ/ZWNJ have special
      meanings in those scripts, so let font lookups take full control.
      
      This undoes the regression caused by automatic-joiners handling
      introduced two commits ago.
      
      We only disable automatic joiner handling for the "basic shaping
      features" of Indic, Myanmar, and SEAsian shapers.  The "presentation
      forms" and other features are still applied with automatic-joiner
      handling.
      
      This change also changes the test suite failure statistics, such that
      a few scripts show more "failures".  The most affected is Kannada.
      However, upon inspection, we believe that in most, if not all, of the
      new failures, we are producing results superior to Uniscribe.  Hard to
      count those!
      
      Here's an example of what is fixed by the recent joiner-handling
      changes:
      
        https://bugs.freedesktop.org/show_bug.cgi?id=58714
      
      New numbers, for future reference:
      
      BENGALI: 353892 out of 354188 tests passed. 296 failed (0.0835714%)
      DEVANAGARI: 707336 out of 707394 tests passed. 58 failed (0.00819911%)
      GUJARATI: 366262 out of 366457 tests passed. 195 failed (0.0532122%)
      GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
      KANNADA: 950680 out of 951913 tests passed. 1233 failed (0.129529%)
      KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
      LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
      MALAYALAM: 1047983 out of 1048334 tests passed. 351 failed (0.0334817%)
      ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
      SINHALA: 271539 out of 271847 tests passed. 308 failed (0.113299%)
      TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
      TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
      TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
      cfc507c5
    • B
      Add hb_ot_map_feature_flags_t · ec544866
      Behdad Esfahbod 提交于
      Code cleanup.  No (intended) functional change.
      ec544866
    • B
      Clean-up add_bool_feature · e7ffcfaf
      Behdad Esfahbod 提交于
      e7ffcfaf
  12. 13 2月, 2013 8 次提交
  13. 12 2月, 2013 4 次提交
    • B
      Adjust mark advance-width zeroing logic for Myanmar · 56800027
      Behdad Esfahbod 提交于
      Before, we were zeroing advance width of attached marks for
      non-Indic scripts, and not doing it for Indic.
      
      We have now three different behaviors, which seem to better
      reflect what Uniscribe is doing:
      
        - For Indic, no explicit zeroing happens whatsoever, which
          is the same as before,
      
        - For Myanmar, zero advance width of glyphs marked as marks
          *in GDEF*, and do that *before* applying GPOS.  This seems
          to be what the new Win8 Myanmar shaper does,
      
        - For everything else, zero advance width of glyphs that are
          from General_Category=Mn Unicode characters, and do so
          before applying GPOS.  This seems to be what Uniscribe does
          for Latin at least.
      
      With these changes, positioning of all tests matches for Myanmar,
      except for the glitch in Uniscribe not applying 'mark'.  See preivous
      commit.
      56800027
    • B
      Add Win8-style Myanmar shaper · 98628cac
      Behdad Esfahbod 提交于
      Myanmar failures down from 51% to 0.00204648%!
      
      MYANMAR: 1123860 out of 1123883 tests passed. 23 failed (0.00204648%)
      98628cac
    • B
      Minor · 1df56449
      Behdad Esfahbod 提交于
      1df56449
    • B
      [Indic] Fix bug introduced in 8b217f5a · 9621e0ba
      Behdad Esfahbod 提交于
      Was breaking reph formation logic when the Ra is the only consonant.
      Devanagari regression fixed.  Down to 57 failures again.  Ouch.
      9621e0ba
  14. 09 1月, 2013 1 次提交
  15. 22 12月, 2012 1 次提交