C# 클래스 SIL.CoreImpl.PalasoWritingSystem

A writing system implementation based on the Palaso writing system library.
상속: WritingSystemDefinition, IWritingSystem
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BuildVariant string
ClearRenderers void
GetPartsOfVariant string
NthPartOfVariant string
PalasoWritingSystem System
PalasoWritingSystem System
SameString bool
SetupRenderEngine void
TryGetRealFontName bool
UpdateVariantPart string

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Clone() 공개 메소드

Clones this instance.
public Clone ( ) : WritingSystemDefinition
리턴 WritingSystemDefinition

Combine() 공개 정적인 메소드

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
리턴 string

Copy() 공개 메소드

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.
리턴 void

InterpretChrp() 공개 메소드

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
리턴 void

ToString() 공개 메소드

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

ValidateCollationRules() 공개 메소드

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

WriteLdml() 공개 메소드

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

get_Renderer() 공개 메소드

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
리턴 IRenderEngine