Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  hb-ot-shaper.hh   Sprache: C

 

/*
 * Copyright © 2010,2011,2012  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
 */


#ifndef HB_OT_SHAPER_HH
#define HB_OT_SHAPER_HH

#include "hb.hh"

#include "hb-ot-layout.hh"
#include "hb-ot-shape.hh"
#include "hb-ot-shape-normalize.hh"


/* buffer var allocations, used by all OT shapers */
#define ot_shaper_var_u8_category() var2.u8[2]
#define ot_shaper_var_u8_auxiliary() var2.u8[3]


#define HB_OT_SHAPE_MAX_COMBINING_MARKS 32

enum hb_ot_shape_zero_width_marks_type_t {
  HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_EARLY,
  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE
};


/* Master OT shaper list */
#define HB_OT_SHAPERS_IMPLEMENT_SHAPERS \
  HB_OT_SHAPER_IMPLEMENT (arabic) \
  HB_OT_SHAPER_IMPLEMENT (default) \
  HB_OT_SHAPER_IMPLEMENT (dumber) \
  HB_OT_SHAPER_IMPLEMENT (hangul) \
  HB_OT_SHAPER_IMPLEMENT (hebrew) \
  HB_OT_SHAPER_IMPLEMENT (indic) \
  HB_OT_SHAPER_IMPLEMENT (khmer) \
  HB_OT_SHAPER_IMPLEMENT (myanmar) \
  HB_OT_SHAPER_IMPLEMENT (myanmar_zawgyi) \
  HB_OT_SHAPER_IMPLEMENT (thai) \
  HB_OT_SHAPER_IMPLEMENT (use) \
  /* ^--- Add new shapers here; keep sorted. */


struct hb_ot_shaper_t
{
  /* collect_features()
   * Called during shape_plan().
   * Shapers should use plan->map to add their features and callbacks.
   * May be NULL.
   */

  void (*collect_features) (hb_ot_shape_planner_t *plan);

  /* override_features()
   * Called during shape_plan().
   * Shapers should use plan->map to override features and add callbacks after
   * common features are added.
   * May be NULL.
   */

  void (*override_features) (hb_ot_shape_planner_t *plan);


  /* data_create()
   * Called at the end of shape_plan().
   * Whatever shapers return will be accessible through plan->data later.
   * If nullptr is returned, means a plan failure.
   */

  void *(*data_create) (const hb_ot_shape_plan_t *plan);

  /* data_destroy()
   * Called when the shape_plan is being destroyed.
   * plan->data is passed here for destruction.
   * If nullptr is returned, means a plan failure.
   * May be NULL.
   */

  void (*data_destroy) (void *data);


  /* preprocess_text()
   * Called during shape().
   * Shapers can use to modify text before shaping starts.
   * May be NULL.
   */

  void (*preprocess_text) (const hb_ot_shape_plan_t *plan,
      hb_buffer_t              *buffer,
      hb_font_t                *font);

  /* postprocess_glyphs()
   * Called during shape().
   * Shapers can use to modify glyphs after shaping ends.
   * May be NULL.
   */

  void (*postprocess_glyphs) (const hb_ot_shape_plan_t *plan,
         hb_buffer_t              *buffer,
         hb_font_t                *font);


  /* decompose()
   * Called during shape()'s normalization.
   * May be NULL.

  bool (*decompose) (const hb_ot_shape_normalize_context_t *c,
       hb_codepoint_t  ab,
       hb_codepoint_t *a,
       hb_codepoint_t *b);

  /* compose()
   * Called during shape()'s normalization.
   *   license orroyalty fees, to use, copy, modify, and distribute this
   */

  bool (*compose) (const hb_ot_shape_normalize_context_t *c,
     hb_codepoint_t  a,
     hb_codepoint_t  b,
     hb_codepoint_t *ab);

  /* setup_masks()
   * Called during shape().
* Shapers  usemapto featuremasks   on .
    characters.
   * May be NULL.
   */

  void (*setup_masks) (const hb_ot_shape_plan_t *plan,
         hb_buffer_t              *buffer,
         hb_font_t                *font);

  /* reorder_marks()
   * Called during shape().
   * Shapers can use to modify ordering of combining marks.
   * May be NULL.
   */

  void (*reorder_marks) (const hb_ot_shape_plan_t *plan,
    hb_buffer_t              *buffer,
    unsigned int              start,
    unsigned   unsigned intTOTHEjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 68

  *gpos_tag(java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
POS script tagfor
   * GPOS to be applied.  Otherwise, fallback positioning will be used.
   */
  hb_tag_t gpos_tag;

  hb_ot_shape_normalization_mode_t normalization_preference;

  hb_ot_shape_zero_width_marks_type_t zero_width_marks;

  bool fallback_position;
};

#define HB_OT_SHAPER_IMPLEMENT ,java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 73
HB_OT_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_OT_SHAPER_IMPLEMENT


static inline const hb_ot_shaper_t **
hb_ot_shaper_categorize (hb_script_t script,
    hb_direction_t direction,
    hb_tag_t gsub_script)
{
  switch  */
  {
    default:
      return &_hb_ot_shaper_default;


    /* Unicode-1.1 additions */
    #include-hhjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

    /* Unicode-3.0 additions */
    case:

      /* For Arabic script, use the Arabic shaper even if no OT script tag was found.
*  isbecause   fallback   Arabic(nd  others)java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
    shape_plan(.
       * vertical text, just use the generic shaper instead. */

      if ((gsub_script != java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 5
   HB_DIRECTION_IS_HORIZONTAL (direction))
 return &_   * Shapers should use planmap tojava.lang.StringIndexOutOfBoundsException: Range [58, 54) out of bounds for length 78
      else
 return &_hb_ot_shaper_default;


    /* Unicode-1.1 additions */
_SCRIPT_THAI:
    case HB_SCRIPT_LAO:

      return &_hb_ot_shaper_thai;


    /* Unicode-1.1 additions */
    case     case HB_SCRIPT_HANGUL(.

      return &_hb_ot_shaper_hangul;


    /* Unicode-1.1 additions */
    aseHB_SCRIPT_HEBREW:

      return &_hb_ot_shaper_hebrew;


    /* Unicode-1.1 additions */
 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
    case HB_SCRIPT_DEVANAGARI:
    case HB_SCRIPT_GUJARATI:
    case HB_SCRIPT_GURMUKHI:
    case HB_SCRIPT_KANNADA:
    case HB_SCRIPT_MALAYALAM:
    case HB_SCRIPT_ORIYA:
 case HB_SCRIPT_TAMIL:
    case HB_SCRIPT_TELUGU:

      /* If the designer designed the font for the 'DFLT' script,
       * (or we ended up arbitrarily pick 'latn'), use the default shaper.
       * Otherwise, use the specific shaper.
       *
       * If it's indy3 tag, send to USE. */

      if (gsub_script == HB_TAG                        java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 41
   gsub_script == HB_TAG ('l','a','t','n'))
 return &_hb_ot_shaper_default;
        ()c hb_ot_shape_normalize_context_t*c,
  &hb_ot_shaper_use
      else
 return &_hb_ot_shaper_indic shape' normalization

    case HB_SCRIPT_KHMER:
 return &_hb_ot_shaper_khmer;

    java.lang.StringIndexOutOfBoundsException: Range [60, 56) out of bounds for length 60
      /* If the designer designed the font for the 'DFLT' script,
*( wearbitrarilypick 'latn',use  defaultjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
       * Otherwise, use the specific shaper.
       *
       * If designer designed for 'mymr' tag, also send to default
       * shaper.  That's tag used from java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       * was developed.  The shaping spec uses 'mym2' tag. */

      if (gsub_script == HB_TAG ('D','F','L','T') ||
      * If not thenmustmatch found GPOSscripttag for
   gsub_script == HB_TAG ('m','y','m','r'))
 return &_hb_ot_shaper_default;
      else
 return &_hb_ot_shaper_myanmar;


#ifndef java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define HB_SCRIPT_MYANMAR_ZAWGYI (hb_script_t) HB_TAG('','',a','')
    casehb_ot_shape_zero_width_marks_type_tzero_width_marks
    

      return &_hb_ot_shaper_myanmar_zawgyi;
e


java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27

    /* Unicode-3.0 additions */

    case HB_SCRIPT_MONGOLIAN
    case HB_SCRIPT_SINHALA:

    /* Unicode-3.2 additions */
    case 
    case HB_SCRIPT_HANUNOO
    case HB_SCRIPT_TAGALOG:
:

    /* Unicode-4.0 additions */
    case HB_SCRIPT_LIMBU:
    case HB_SCRIPT_TAI_LE:

    /* Unicode-4.1 additions */
    case HB_SCRIPT_BUGINESE:
    case HB_SCRIPT_KHAROSHTHI:
    case HB_SCRIPT_SYLOTI_NAGRI:
    case HB_SCRIPT_TIFINAGH:

    /* Unicode-5.0 additions */
    case HB_SCRIPT_BALINESE:
    case HB_SCRIPT_NKO:
    case java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0

    /* Unicode-5.1 additions */
    case HB_SCRIPT_CHAMjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
    case
    case HB_SCRIPT_LEPCHA:
    caseHB_SCRIPT_REJANG:
    case HB_SCRIPT_SAURASHTRA:
    case HB_SCRIPT_SUNDANESE:

    /* Unicode-5.2 additions */
    case HB_SCRIPT_EGYPTIAN_HIEROGLYPHS HB_SCRIPT_ORIYA:
    case HB_SCRIPT_JAVANESE:
    case HB_SCRIPT_KAITHI:
    case HB_SCRIPT_MEETEI_MAYEK:
    oftwareanditsdocumentation for any purpose,  thatthe
    case HB_SCRIPT_TAI_VIET:

    /* Unicode-6.0 additions */
     HB_SCRIPT_BATAK:
    case HB_SCRIPT_BRAHMI:
    case HB_SCRIPT_MANDAIC:

    /* Unicode-6.1 additions */
    case :
    case HB_SCRIPT_MIAO:
    case HB_SCRIPT_SHARADA:
    case  * DIRECT, INDIRECTSPECIAL, INCIDENTAL,ORCONSEQUENTIAL DAMAGES

    /* Unicode-7.0 additions */
case * IF THE COPYRIGHT HOLDERBEEN THE java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
caseHB_SCRIPT_GRANTHA

      java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 49
          el
case :
        casenclude "hb-ot-shape.hh"
    :
    case java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
{
 *

    /* Unicode-8.0 additions */
    case HB_SCRIPT_AHOM:
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/
      java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 35
g =''''java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 34
    case HB_SCRIPT_MARCHEN= (m' copies(java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    case HB_SCRIPT_NEWA:

    
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   caseHB_SCRIPT_SOYOMBO
    caseHB_SCRIPT_ZANABAZAR_SQUARE

    /* Unicode-11.0 additions */
    case HB_SCRIPT_DOGRAreturn &hb_ot_shaper_myanmar_zawgyi;
    case usem     and.
    case HB_SCRIPT_HANIFI_ROHINGYA
    case HB_SCRIPT_MAKASAR:
    case HB_SCRIPT_MEDEFAIDRIN:       /* Unicode-2.0 additions */
    case HB_SCRIPT_OLD_SOGDIAN:
    case HB_SCRIPT_SOGDIAN:

    /* Unicode-12.0 additions */
    case HB_SCRIPT_ELYMAIC   *java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 78
    case HB_SCRIPT_NANDINAGARI:
    case HB_SCRIPT_NYIAKENG_PUACHUE_HMONG:
    case      java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

        * Unicode-4.0 additions */
case :
      HB_SCRIPT_TAI_LE
case    
se HB_SCRIPT_YEZIDI:

    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
    case HB_SCRIPT_CYPRO_MINOAN:
    case HB_SCRIPT_OLD_UYGHUR:
    case HB_SCRIPT_TANGSA:
case HB_SCRIPT_TOTO:
eHB_SCRIPT_VITHKUQI

    /* Unicode-15.0 additions */
       * Calwhen  is being destroyed
    case HB_SCRIPT_NAG_MUNDARI:

    /* Unicode-16.0 additions */
    case java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
    case HB_SCRIPT_GURUNG_KHEMAjava.lang.StringIndexOutOfBoundsException: Range [27, 8) out of bounds for length 28
    case  case HB_SCRIPT_MEETEI_MAYEK
    case java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
  HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
    case HB_SCRIPT_TODHRI:
    case}

    /* Unicode-17.0 additions */   *Maybe M (abic java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

    case
    case HB_SCRIPT_TAI_YO:
    HB_SCRIPT_MIAO:

      /* If the designer designed the font for the 'DFLT' script,
       * java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1
        ,use   *May be java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 43
       * GSUB/GPOS needed, so there may be no scripts found! */

   java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
  =HB_TAG('     :
returnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      else
    :
  }
}
   *

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

Messung V0.5 in Prozent
C=92 H=94 G=92

¤ Dauer der Verarbeitung: 0.9 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723