Table of Contents

Class CzechHelper

Namespace
SunamoLang.SunamoI18N
Assembly
SunamoLang.dll

Helper class for Czech language text processing and transformations.

public class CzechHelper
Inheritance
CzechHelper
Inherited Members
Extension Methods

Methods

Dear(bool)

Returns the Czech greeting "Dear" in the appropriate gender form.

public static string Dear(bool isFemale)

Parameters

isFemale bool

True for female form, false for male form.

Returns

string

The gendered greeting word.

Esteemed(bool)

Returns the Czech greeting "Esteemed" in the appropriate gender form.

public static string Esteemed(bool isFemale)

Parameters

isFemale bool

True for female form, false for male form.

Returns

string

The gendered greeting word.

GetSexFromSurname(string)

Determines gender from a Czech surname.

public static bool GetSexFromSurname(string surname)

Parameters

surname string

The surname to analyze.

Returns

bool

True if the surname indicates female gender, false otherwise.

Honorable(bool, string, string)

Creates a formal honorable greeting with name.

public static string Honorable(bool isFemale, string greetingWord, string name)

Parameters

isFemale bool

True for female form, false for male form.

greetingWord string

The greeting word to use (e.g., "Dear", "Esteemed").

name string

The person's name.

Returns

string

A formatted honorable greeting.

Init(CzechEncodings, bool)

Initializes the encoding conversion tables.

public static void Init(CzechEncodings encoding, bool isHex)

Parameters

encoding CzechEncodings

The Czech encoding to initialize.

isHex bool

Whether the encoding is in hexadecimal format.

ReplaceInHtmlFrom(CzechEncodings, bool, string)

Replaces characters in HTML content from the specified encoding.

public static string ReplaceInHtmlFrom(CzechEncodings encoding, bool isHex, string input)

Parameters

encoding CzechEncodings

The Czech encoding to use.

isHex bool

Whether the encoding is in hexadecimal format.

input string

The input HTML string to process.

Returns

string

The processed HTML string.

ReplaceInHtmlFrom_UTF_8_Hex(string)

Replaces characters in HTML content from UTF-8 hex encoding to Czech characters.

public static string ReplaceInHtmlFrom_UTF_8_Hex(string input)

Parameters

input string

The input HTML string to process.

Returns

string

The processed HTML string with Czech characters.