if (this.cyrillic() && !(languages.contains("ukrainian") ||
languages.contains("ukrainian") || languages.contains("ukrainian"))) {
languages.add("russian");
}
// Load babel with the used languages
CSVList babelopt = new CSVList(",");
Enumeration langenum = languages.elements();
while (langenum.hasMoreElements()) {
String sLang = (String) langenum.nextElement();
if (!sLang.equals(sDefaultLanguage)) {
if ("greek".equals(sLang) && this.polytonicGreek()) {
sLang = "polutonikogreek";
}
babelopt.addValue(sLang);
}
}
// The default language must be the last one
if (sDefaultLanguage!=null) {
if ("greek".equals(sDefaultLanguage) && this.polytonicGreek()) {
babelopt.addValue("polutonikogreek");
}
else {
babelopt.addValue(sDefaultLanguage);
}
}
if (!babelopt.isEmpty()) {
ldp.append("\\usepackage[")
.append(babelopt.toString())
.append("]{babel}").nl();
}
}