Language specific hyphenation

The xml:lang attribute specifies the language for a given context. If an element is declared with an xml:lang=ID attribute, then the value of ID may influence the hyphenation method used by TopLeaf to process content within that element. The value of xml:lang can be defined as an ISO 639 language code (usually a two or three character code), followed by an optional ISO country code. Note that in most cases, the country code will be the main factor that determines the hyphenation language rules. You can control how TopLeaf interprets the value of xml:lang by including a <topleaf-properties/> directive in the custom content for a tag mapping.

You can use the <text-properties/> directive to assign an ISO 639 language code if your XML markup uses a different attribute to declare the current language.

TopLeaf includes an embedded Dashes™ hyphenation module (developed by Circle Noetics Services Inc). Language specific hyphenation is supported for the following languages:

xml:lang Language xml:lang Language
alb, sqi Albanian it, ita Italian
be, bel Belorussian lv, lav Latvian
bg, bul Bulgarian lt, lit Lithuanian
ca, cat Catalan nob, nb, no, nno, nor Norwegian
hr Croatian pl, pol Polish
cs, cse, cze Czech pt, por Portuguese
da, dan Danish ro, ron, rum Romanian
nl, nla, dut Dutch ru, rus Russian
en, en-US, eng English (US) sk, slo, slk Slovak
fi, fin Finnish sl, slv Slovenian
fr, fra, fre French es, esl, esa Spanish
de, deu, ger German sw, swa Swahili
de-1901 German (1901) sv, sve, swe Swedish
el, ell, gre Greek de-CH, ger-ch Swiss-German
hu, hun Hungarian tr, tur Turkish
is, isl, ice Icelandic uk, ukr Ukrainian