/* * Copyright © 2013 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copyright notice and the following two paragraphs appear in * all copies of this software. * * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. * * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb.hh" #ifndef HB_NO_OT_SHAPE #include "hb-ot-shaper.hh" /* Hangul shaper */ /* Same order as the feature array below */ enum { … }; static const hb_tag_t hangul_features[HANGUL_FEATURE_COUNT] = …; static void collect_features_hangul (hb_ot_shape_planner_t *plan) { … } static void override_features_hangul (hb_ot_shape_planner_t *plan) { … } struct hangul_shape_plan_t { … }; static void * data_create_hangul (const hb_ot_shape_plan_t *plan) { … } static void data_destroy_hangul (void *data) { … } /* Constants for algorithmic hangul syllable [de]composition. */ #define LBase … #define VBase … #define TBase … #define LCount … #define VCount … #define TCount … #define SBase … #define NCount … #define SCount … #define isCombiningL(u) … #define isCombiningV(u) … #define isCombiningT(u) … #define isCombinedS(u) … #define isL(u) … #define isV(u) … #define isT(u) … #define isHangulTone(u) … /* buffer var allocations */ #define hangul_shaping_feature() … static bool is_zero_width_char (hb_font_t *font, hb_codepoint_t unicode) { … } static void preprocess_text_hangul (const hb_ot_shape_plan_t *plan HB_UNUSED, hb_buffer_t *buffer, hb_font_t *font) { … } static void setup_masks_hangul (const hb_ot_shape_plan_t *plan, hb_buffer_t *buffer, hb_font_t *font HB_UNUSED) { … } const hb_ot_shaper_t _hb_ot_shaper_hangul = …; #endif