C# Class PurplePen.Textifier

Mostra file Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
CreateTextForControl ( Id controlId, string distanceText ) : string

Create the text version of a particular control point. The distanceText parameter is used for finish, marked route end, and other similar features, and be the distance, already rounded with "m" suffix. Use "" if none. Custom text for the control or for symbols are taken into account.

CreateTextForDirective ( string symbolId, string distanceText ) : string
Textifier ( EventDB eventDB, SymbolDB symbolDB, string language ) : System

Private Methods

Method Description
AddColumnHString ( string current, Symbol symbol ) : string
AddSymbolToCurrent ( string current, string gender, Symbol symbol ) : string
ApplyNounCase ( Symbol symbol, string currentNounCase ) : string
CapitalizeFirstLetter ( string s ) : string
CombineSymbols ( Symbol comboSymbol, string mainFeature, string mainFeaturePlural, string secondaryFeature, string &pluralCombo, string &gender ) : string
CreateTextForNormalControl ( ControlPoint controlPoint ) : string
CreateTextForStartControl ( ControlPoint controlPoint ) : string
GetMainFeatureText ( ControlPoint controlPoint, Symbol symbols, string &mainFeatureGender ) : string
GetNounCase ( ControlPoint controlPoint, bool ignoreBetween, bool ignoreCrossJunction, bool ignoreColumnE ) : string
GetSingleVersionOfComboSymbol ( Symbol comboSymbol ) : Symbol
GetSymbolGender ( Symbol symbol ) : string
GetSymbolModifiedCase ( Symbol symbol ) : string
GetSymbolPluralText ( Symbol symbol, string gender, string nounCase = "" ) : string
GetSymbolText ( Symbol symbol, string gender, string nounCase = "" ) : string
GetSymbols ( ControlPoint controlPoint ) : PurplePen.Symbol[]
GetTextFromColumnF ( string columnFText, Symbol symbols, Symbol &symbolControllingNounCase ) : string
GetTextFromSize ( string size, bool useDeepOrHigh, bool firstIsDeep, string genderFirst, bool secondIsDeep, string genderSecond ) : string
GetTextFromSize ( string size, bool useDeepOrHigh, bool firstIsDeep, string genderFirst, bool secondIsDeep, string genderSecond, Symbol &symbolControllingNounCase ) : string
IsDualMainSymbol ( Symbol symbols ) : bool

Method Details

CreateTextForControl() public method

Create the text version of a particular control point. The distanceText parameter is used for finish, marked route end, and other similar features, and be the distance, already rounded with "m" suffix. Use "" if none. Custom text for the control or for symbols are taken into account.
public CreateTextForControl ( Id controlId, string distanceText ) : string
controlId Id
distanceText string
return string

CreateTextForDirective() public method

public CreateTextForDirective ( string symbolId, string distanceText ) : string
symbolId string
distanceText string
return string

Textifier() public method

public Textifier ( EventDB eventDB, SymbolDB symbolDB, string language ) : System
eventDB EventDB
symbolDB SymbolDB
language string
return System