Click or drag to resize

HtmlToRtfSpellingLanguage Enumeration

Specifies the default language for the output document. Usually the language is used to spell checking.

Namespace: SautinSoft
Assembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 2024.12.12
Syntax
public enum SpellingLanguage
Members
Member nameValueDescription
Arabic_Saudi_Arabia1,025 Arabic Saudi Arabia
Bulgarian1,026 Bulgarian
Catalan1,027 Catalan
Chinese_Taiwan1,028 Chinese Taiwan
Czech1,029 Czech
Danish1,030 Danish
German_Germany1,031 German Germany
Greek1,032 Greek
English_United_States1,033 English United States
Spanish_Traditional_Sort1,034 Spanish Traditional Sort
Finnish1,035 Finnish
French_France1,036 French France
Hebrew1,037 Hebrew
Hungarian1,038 Hungarian
Icelandic1,039 Icelandic
Italian_Italy1,040 Italian Italy
Japanese1,041 Japanese
Korean1,042 Korean
Dutch_Netherlands1,043 Dutch Netherlands
Norwegian_Bokmal1,044 Norwegian Bokmal
Polish1,045 Polish
Portuguese_Brazil1,046 Portuguese Brazil
Romansh1,047 Romansh
Romanian_Romania1,048 Romanian Romania
Russian_Russia1,049 Russian Russia
Croatian1,050 Croatian
Slovak1,051 Slovak
Albanian1,052 Albanian
Swedish_Sweden1,053 Swedish Sweden
Thai1,054 Thai
Turkish1,055 Turkish
Urdu_Islamic_Republic_of_Pakistan1,056 Urdu Islamic Republic of Pakistan
Indonesian1,057 Indonesian
Ukrainian1,058 Ukrainian
Belarusian1,059 Belarusian
Slovenian1,060 Slovenian
Estonian1,061 Estonian
Latvian1,062 Latvian
Lithuanian1,063 Lithuanian
Tajik1,064 Tajik
Persian1,065 Persian
Vietnamese1,066 Vietnamese
Armenian1,067 Armenian
Azeri_Latin_Azerbaijan1,068 Azeri Latin Azerbaijan
Basque1,069 Basque
Upper_Sorbian1,070 Upper Sorbian
Macedonian1,071 Macedonian
Sutu_South_Africa1,072 Sutu South Africa
Tsonga1,073 Tsonga
Setswana1,074 Setswana
Venda1,075 Venda
Xhosa1,076 Xhosa
Afrikaans_South_Africa1,078 Afrikaans South Africa
Georgian1,079 Georgian
Faroese1,080 Faroese
Hindi1,081 Hindi
Maltese1,082 Maltese
Sami_Northern_Norway1,083 Sami Northern Norway
Yiddish1,085 Yiddish
Malay_Malaysia1,086 Malay Malaysia
Kazakh1,087 Kazakh
Kyrgyz1,088 Kyrgyz
Kiswahili1,089 Kiswahili
Turkmen1,090 Turkmen
Uzbek_Latin_Uzbekistan1,091 Uzbek Latin Uzbekistan
Tatar_Russia1,092 Tatar Russia
Bengali_India1,093 Bengali India
Punjabi_India1,094 Punjabi India
Gujarati1,095 Gujarati
Tamil1,097 Tamil
Telugu_India1,098 Telugu India
Kannada1,099 Kannada
Malayalam1,100 Malayalam
Assamese1,101 Assamese
Marathi1,102 Marathi
Sanskrit1,103 Sanskrit
Mongolian_Cyrillic1,104 Mongolian Cyrillic
Tibetan1,105 Tibetan
Welsh1,106 Welsh
Khmer1,107 Khmer
Lao1,108 Lao
Burmese1,109 Burmese
Galician1,110 Galician
Konkani1,111 Konkani
Manipuri1,112 Manipuri
Sindhi_Devanagari1,113 Sindhi Devanagari
Syriac1,114 Syriac
Sinhala1,115 Sinhala
Cherokee1,116 Cherokee
Inuktitut_Syllabics_Canada1,117 Inuktitut Syllabics Canada
Amharic_Ethiopia1,118 Amharic Ethiopia
Tamazight_Arabic_Morocco1,119 Tamazight Arabic Morocco
Kashmiri_Arabic1,120 Kashmiri Arabic
Nepali_Nepal1,121 Nepali Nepal
Frisian1,122 Frisian
Pashto1,123 Pashto
Filipino1,124 Filipino
Hausa1,128 Hausa
Yoruba1,130 Yoruba
Quechua_Bolivia1,131 Quechua Bolivia
Sesotho_sa_Leboa_South_Africa1,132 Sesotho sa Leboa South Africa
Bashkir_Russia1,133 Bashkir Russia
Luxembourgish1,134 Luxembourgish
Greenlandic1,135 Greenlandic
Kanuri1,137 Kanuri
Oromo1,138 Oromo
Tigrigna_Ethiopia1,139 Tigrigna Ethiopia
Guarani1,140 Guarani
Hawaiian1,141 Hawaiian
Latin1,142 Latin
Somali1,143 Somali
Yi_PRC1,144 Yi PRC
Mapudungun1,146 Mapudungun
Mohawk1,148 Mohawk
Breton_France1,150 Breton France
Uighur1,152 Uighur
Maori1,153 Maori
Occitan1,154 Occitan
Corsican1,155 Corsican
Alsatian_France1,156 Alsatian France
Kiche1,158 Kiche
Kinyarwanda1,159 Kinyarwanda
Wolof1,160 Wolof
Dari1,164 Dari
Arabic_Iraq2,049 Arabic Iraq
Chinese_PRC2,052 Chinese PRC
German_Switzerland2,055 German Switzerland
English_United_Kingdom2,057 English United Kingdom
Spanish_Mexico2,058 Spanish Mexico
French_Belgium2,060 French Belgium
Italian_Switzerland2,064 Italian Switzerland
Dutch_Belgium2,067 Dutch Belgium
Norwegian_Nynorsk2,068 Norwegian Nynorsk
Portuguese_Portugal2,070 Portuguese Portugal
Romanian_Moldova2,072 Romanian Moldova
Russian_Moldova2,073 Russian Moldova
Serbian_Latin_Serbia2,074 Serbian Latin Serbia
Swedish_Finland2,077 Swedish Finland
Urdu_India2,080 Urdu India
LithuanianTrad2,087 Lithuanian Traditional
Azeri_Cyrillic_Azerbaijan2,092 Azeri Cyrillic Azerbaijan
Lower_Sorbian2,094 Lower Sorbian
Sami_Northern_Sweden2,107 Sami Northern Sweden
Malay_Brunei_Darussalam2,110 Malay Brunei Darussalam
Uzbek_Cyrillic_Uzbekistan2,115 Uzbek Cyrillic Uzbekistan
Bengali_Bangladesh2,117 Bengali Bangladesh
Punjabi_Pakistan2,118 Punjabi Pakistan
Mongolian_Traditional2,128 Mongolian Traditional
Dzongkha2,129 Dzongkha
Sindhi_Arabic2,137 Sindhi Arabic
Inuktitut_Latin_Canada2,141 Inuktitut Latin Canada
Tamazight_Latin_Algeria2,143 Tamazight Latin Algeria
Kashmiri2,144 Kashmiri
Nepali_India2,145 Nepali India
Quechua_Ecuador2,155 Quechua Ecuador
Tigrigna_Eritrea2,163 Tigrigna Eritrea
Arabic_Egypt3,073 Arabic Egypt
Chinese_Hong_Kong3,076 Chinese Hong Kong
German_Austria3,079 German Austria
English_Australia3,081 English Australia
Spanish_Spain3,082 Spanish Spain
French_Canada3,084 French Canada
Serbian_Cyrillic_Serbia3,098 Serbian Cyrillic Serbia
Sami_Northern_Finland3,131 Sami Northern Finland
Quechua_Peru3,179 Quechua Peru
Arabic_Libya4,097 Arabic Libya
Chinese_Singapore4,100 Chinese Singapore
German_Luxembourg4,103 German Luxembourg
English_Canada4,105 English Canada
Spanish_Guatemala4,106 Spanish Guatemala
French_Switzerland4,108 French Switzerland
BosniaHerzegovina4,122 BosniaHerzegovina
Sami_Lule_Norway4,155 Sami Lule Norway
Arabic_Algeria5,121 Arabic Algeria
Chinese_Macao5,124 Chinese Macao
German_Liechtenstein5,127 German Liechtenstein
English_New_Zealand5,129 English New Zealand
Spanish_Costa_Rica5,130 Spanish Costa Rica
French_Luxembourg5,132 French Luxembourg
Bosnian_Latin5,146 Bosnian Latin
Sami_Lule_Sweden5,179 Sami Lule Sweden
Arabic_Morocco6,145 Arabic Morocco
English_Ireland6,153 English Ireland
Spanish_Panama6,154 Spanish Panama
French_Monaco6,156 French Monaco
Serbian_Latin_Bosnia_Herzegovina6,170 Serbian Latin Bosnia Herzegovina
Sami_Southern_Norway6,203 Sami Southern Norway
Arabic_Tunisia7,169 Arabic Tunisia
English_South_Africa7,177 English South Africa
Spanish_Dominican_Republic7,178 Spanish Dominican Republic
Serbian_Cyrillic_BosniaHerzegovina7,194 Serbian Cyrillic BosniaHerzegovina
Sami_Southern_Sweden7,227 Sami Southern Sweden
Arabic_Oman8,193 Arabic Oman
English_Jamaica8,201 English Jamaica
Spanish_Venezuela8,202 Spanish Venezuela
French_Reunion8,204 French Reunion
Bosnian_Cyrillic8,218 Bosnian Cyrillic
Sami_Skolt_Finland8,251 Sami Skolt Finland
Arabic_Yemen9,217 Arabic Yemen
English_Caribbean9,225 English Caribbean
Spanish_Colombia9,226 Spanish Colombia
French_Congo9,228 French Congo
Sami_Inari_Finland9,275 Sami Inari Finland
Arabic_Syria10,241 Arabic Syria
English_Belize10,249 English Belize
Spanish_Peru10,250 Spanish Peru
French_Senegal10,252 French Senegal
Arabic_Jordan11,265 Arabic Jordan
English_Trinidad_and_Tobago11,273 English Trinidad and Tobago
Spanish_Argentina11,274 Spanish Argentina
French_Cameroon11,276 French Cameroon
Arabic_Lebanon12,289 Arabic Lebanon
English_Zimbabwe12,297 English Zimbabwe
Spanish_Ecuador12,298 Spanish Ecuador
French_Cote_d_Ivoire12,300 French Cote d Ivoire
Arabic_Kuwait13,313 Arabic Kuwait
English_Philippines13,321 English Philippines
Spanish_Chile13,322 Spanish Chile
French_Mali13,324 French Mali
Arabic_UAE14,337 Arabic UAE
Spanish_Uruguay14,346 Spanish Uruguay
French_Morocco14,348 French Morocco
Arabic_Bahrain15,361 Arabic Bahrain
English_Hong_Kong15,369 English Hong Kong
Spanish_Paraguay15,370 Spanish Paraguay
French_Haiti15,372 French Haiti
Arabic_Qatar16,385 Arabic Qatar
English_India16,393 English India
Spanish_Bolivia16,394 Spanish Bolivia
English_Malaysia17,417 English Malaysia
Spanish_El_Salvador17,418 Spanish El Salvador
English_Singapore18,441 English Singapore
Spanish_Honduras18,442 Spanish Honduras
Spanish_Nicaragua19,466 Spanish Nicaragua
Spanish_Puerto_Rico20,490 Spanish Puerto Rico
Spanish_United_States21,514 Spanish United States
Remarks
This language will be used by application which opens RTF (for example MS Word) for spell checking.

Example
Set language for spelling tools using C#
using System;
using System.IO;
using SautinSoft;

namespace Sample
{
    class Test
    {
        static void Main(string[] args)
        {
            // Get your free 30-day key here:   
            // https://sautinsoft.com/start-for-free/

            // Set a language for a spelling tools.
            // If you need more information about "HTML to RTF .Net" email us at:
            // support@sautinsoft.com        
            ConvertHtmlToRtfFile();
        }

        public static void ConvertHtmlToRtfFile()
        {
            SautinSoft.HtmlToRtf h = new SautinSoft.HtmlToRtf();
            HtmlToRtf.HtmlConvertOptions opt = new HtmlToRtf.HtmlConvertOptions();
            opt.OutputFormat = HtmlToRtf.OutputFormat.Rtf;

            string inpFile = @"..\..\..\sample.html";
            string outFile = Path.ChangeExtension(inpFile, ".rtf");

            // Set a language for a spelling tools.
            opt.SpellingLanguage = HtmlToRtf.SpellingLanguage.English_Singapore;

            if (h.Convert(inpFile, outFile, opt))
            {
                // Open the result for demonstration purposes.
                System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(outFile) { UseShellExecute = true });
            }
        }
    }
}
Set language for spelling tools using VB.Net
Imports System
Imports System.IO
Imports SautinSoft

Namespace Sample
    Friend Class Test
        Shared Sub Main(ByVal args() As String)
            ' Get your free 30-day key here:   
            ' https://sautinsoft.com/start-for-free/

            ' Set a language for a spelling tools.
            ' If you need more information about "HTML to RTF .Net" email us at:
            ' support@sautinsoft.com        
            ConvertHtmlToRtfFile()
        End Sub

        Public Shared Sub ConvertHtmlToRtfFile()
            Dim h As New SautinSoft.HtmlToRtf()
            Dim opt As New HtmlToRtf.HtmlConvertOptions()
            opt.OutputFormat = HtmlToRtf.OutputFormat.Rtf

            Dim inpFile As String = "..\..\..\sample.html"
            Dim outFile As String = Path.ChangeExtension(inpFile, ".rtf")

            ' Set a language for a spelling tools.
            opt.SpellingLanguage = HtmlToRtf.SpellingLanguage.English_Singapore

            If h.Convert(inpFile, outFile, opt) Then
                ' Open the result for demonstration purposes.
                System.Diagnostics.Process.Start(New System.Diagnostics.ProcessStartInfo(outFile) With {.UseShellExecute = True})
            End If
        End Sub
    End Class
End Namespace
See Also