Index: third_party/harfbuzz-ng/src/indic.cc |
diff --git a/third_party/harfbuzz-ng/src/hb-fallback-shape-private.hh b/third_party/harfbuzz-ng/src/indic.cc |
similarity index 67% |
copy from third_party/harfbuzz-ng/src/hb-fallback-shape-private.hh |
copy to third_party/harfbuzz-ng/src/indic.cc |
index d0beb16dec680c23dcc51aef983bcff398555aa6..e00311d8d6eb3470120f0832612a49a1ced87205 100644 |
--- a/third_party/harfbuzz-ng/src/hb-fallback-shape-private.hh |
+++ b/third_party/harfbuzz-ng/src/indic.cc |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright © 2011 Google, Inc. |
+ * Copyright © 2012 Google, Inc. |
* |
* This is part of HarfBuzz, a text shaping library. |
* |
@@ -24,25 +24,23 @@ |
* Google Author(s): Behdad Esfahbod |
*/ |
-#ifndef HB_FALLBACK_SHAPE_PRIVATE_HH |
-#define HB_FALLBACK_SHAPE_PRIVATE_HH |
+#include "hb-ot-shape-complex-indic-private.hh" |
-#include "hb-private.hh" |
+int |
+main (void) |
+{ |
+ hb_unicode_funcs_t *funcs = hb_unicode_funcs_get_default (); |
-#include "hb-shape.h" |
+ printf ("There are split matras without a Unicode decomposition:\n"); |
+ for (hb_codepoint_t u = 0; u < 0x110000; u++) |
+ { |
+ unsigned int type = get_indic_categories (u); |
+ unsigned int category = type & 0x0F; |
+ unsigned int position = type >> 4; |
-HB_BEGIN_DECLS |
- |
- |
-HB_INTERNAL hb_bool_t |
-hb_fallback_shape (hb_font_t *font, |
- hb_buffer_t *buffer, |
- const hb_feature_t *features, |
- unsigned int num_features, |
- const char * const *shaper_options); |
- |
- |
-HB_END_DECLS |
- |
-#endif /* HB_FALLBACK_SHAPE_PRIVATE_HH */ |
+ hb_codepoint_t a, b; |
+ if (!hb_unicode_decompose (funcs, u, &a, &b)) |
+ printf ("U+%04X\n", u); |
+ } |
+} |