C# Class SIL.CoreImpl.PalasoWritingSystem

A writing system implementation based on the Palaso writing system library.
Inheritance: WritingSystemDefinition, IWritingSystem
Exibir arquivo Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
BuildVariant string
ClearRenderers void
GetPartsOfVariant string
NthPartOfVariant string
PalasoWritingSystem System
PalasoWritingSystem System
SameString bool
SetupRenderEngine void
TryGetRealFontName bool
UpdateVariantPart string

Public Methods

Method Description
Clone ( ) : WritingSystemDefinition

Clones this instance.

Combine ( string left, string sep, string right ) : string

Combine left and right using the specified separator, unless one of them is null or empty; then just return the non-empty one.

Copy ( IWritingSystem source ) : void

Copies all of the properties from the source writing system to this writing system.

InterpretChrp ( LgCharRenderProps &chrp ) : void

Apply any changes to the chrp before it is used for real: currently, interpret the magic font names.

ToString ( ) : string

Returns a T:System.String that represents this instance.

ValidateCollationRules ( string &message ) : bool

Validates the collation rules.

WriteLdml ( XmlWriter writer ) : void

Writes an LDML representation of this writing system to the specified writer.

get_Renderer ( IVwGraphics vg ) : IRenderEngine

Get the engine used to render text with the specified properties. At present only font, bold, and italic properties are significant. Font name may be '<default serif>' which produces a renderer suitable for the default serif font.

Private Methods

Method Description
BuildVariant ( string standardVariant, string privateUse ) : string
ClearRenderers ( ) : void
GetPartsOfVariant ( int position, string &leadIn, string &variant ) : string

Split up the variant into the true (standard) variant(s), returned in variant; the part the comes (or should come) before the position'th custom item, where position is 0 for language, 1 for script, 2 for region, 4 for variant, returned as the main output; and the private use part before the indicated item, in leadIn.

NthPartOfVariant ( int position ) : string
PalasoWritingSystem ( ) : System
PalasoWritingSystem ( PalasoWritingSystem ws ) : System
SameString ( string arg1, string arg2 ) : bool

Tests whether two strings are equal. Differs from normal equality in treating null as equal to ""

SetupRenderEngine ( IRenderEngine renderEngine ) : void
TryGetRealFontName ( string fontName, string &realFontName ) : bool
UpdateVariantPart ( int position, string oldValue, string newValue, string markerValue, bool isNewCustom ) : string

Method Details

Clone() public method

Clones this instance.
public Clone ( ) : WritingSystemDefinition
return WritingSystemDefinition

Combine() public static method

Combine left and right using the specified separator, unless one of them is null or empty; then just return the non-empty one.
public static Combine ( string left, string sep, string right ) : string
left string
sep string
right string
return string

Copy() public method

Copies all of the properties from the source writing system to this writing system.
public Copy ( IWritingSystem source ) : void
source IWritingSystem The source writing system.
return void

InterpretChrp() public method

Apply any changes to the chrp before it is used for real: currently, interpret the magic font names.
public InterpretChrp ( LgCharRenderProps &chrp ) : void
chrp LgCharRenderProps
return void

ToString() public method

Returns a T:System.String that represents this instance.
public ToString ( ) : string
return string

ValidateCollationRules() public method

Validates the collation rules.
public ValidateCollationRules ( string &message ) : bool
message string The message.
return bool

WriteLdml() public method

Writes an LDML representation of this writing system to the specified writer.
public WriteLdml ( XmlWriter writer ) : void
writer XmlWriter The writer.
return void

get_Renderer() public method

Get the engine used to render text with the specified properties. At present only font, bold, and italic properties are significant. Font name may be '<default serif>' which produces a renderer suitable for the default serif font.
public get_Renderer ( IVwGraphics vg ) : IRenderEngine
vg IVwGraphics
return IRenderEngine