2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-02-06 07:01:19 +00:00
|
|
|
* (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONTEXTUALGLYPHSUBSTITUTION_H
|
|
|
|
#define __CONTEXTUALGLYPHSUBSTITUTION_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "LayoutTables.h"
|
|
|
|
#include "StateTables.h"
|
|
|
|
#include "MorphTables.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
struct ContextualGlyphSubstitutionHeader : MorphStateTableHeader
|
|
|
|
{
|
|
|
|
ByteOffset substitutionTableOffset;
|
|
|
|
};
|
|
|
|
|
2013-02-06 07:01:19 +00:00
|
|
|
struct ContextualGlyphHeader2 : MorphStateTableHeader2
|
|
|
|
{
|
|
|
|
le_uint32 perGlyphTableOffset; // no more substitution tables
|
|
|
|
};
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
enum ContextualGlyphSubstitutionFlags
|
|
|
|
{
|
|
|
|
cgsSetMark = 0x8000,
|
|
|
|
cgsDontAdvance = 0x4000,
|
|
|
|
cgsReserved = 0x3FFF
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ContextualGlyphSubstitutionStateEntry : StateEntry
|
|
|
|
{
|
|
|
|
WordOffset markOffset;
|
|
|
|
WordOffset currOffset;
|
|
|
|
};
|
|
|
|
|
2013-02-06 07:01:19 +00:00
|
|
|
struct ContextualGlyphStateEntry2 : StateEntry2
|
|
|
|
{
|
|
|
|
le_uint16 markIndex;
|
|
|
|
le_uint16 currIndex;
|
|
|
|
};
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|
2000-11-28 20:56:52 +00:00
|
|
|
#endif
|