- Language() : rightToLeft_(false), translated_(false) {}
+ Language() : rightToLeft_(false), encoding_(0), internal_enc_(false),
+ as_babel_options_(false), has_gui_support_(false) {}
- std::string const & polyglossiaOpts() const { return polyglossia_opts_; }
+ std::string const polyglossiaOpts() const { return polyglossia_opts_; }
+ /// Is this language only supported by polyglossia?
+ bool isPolyglossiaExclusive() const;
/**
* Translate a string from the layout files that appears in the output.
* It takes the translations from lib/layouttranslations instead of
/**
* Translate a string from the layout files that appears in the output.
* It takes the translations from lib/layouttranslations instead of
/// This language internally sets a font encoding
bool internalFontEncoding() const { return internal_enc_; }
/// This language internally sets a font encoding
bool internalFontEncoding() const { return internal_enc_; }
/// This language needs to be passed to babel itself (not the class)
bool asBabelOptions() const { return as_babel_options_; }
/// This language needs to be passed to babel itself (not the class)
bool asBabelOptions() const { return as_babel_options_; }
///
void readLayoutTranslations(TranslationMap const & trans, bool replace);
// for the use in std::map
friend bool operator<(Language const & p, Language const & q);
private:
///
///
void readLayoutTranslations(TranslationMap const & trans, bool replace);
// for the use in std::map
friend bool operator<(Language const & p, Language const & q);
private:
///
const_iterator begin() const { return languagelist.begin(); }
///
const_iterator end() const { return languagelist.end(); }
const_iterator begin() const { return languagelist.begin(); }
///
const_iterator end() const { return languagelist.end(); }