From 4950bb5ebc029b91f32369adcaa7703d5debf319 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 8 Aug 2012 17:23:02 +0200 Subject: [PATCH] Comments --- src/LaTeXFeatures.cpp | 3 +++ src/LaTeXFeatures.h | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 718896ef2f..b25332f775 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -310,6 +310,9 @@ LaTeXFeatures::LangPackage LaTeXFeatures::langPackage(bool englishbabel) const * If babel is selected (either directly or via the "auto" * mechanism), we really do only require it if we have * a language that needs it. + * English alone normally does not require babel (since it is + * the default language of LaTeX). However, in some cases we + * need to surpass this exception (see Font::validate). */ bool const polyglossia_required = isRequired("polyglossia") diff --git a/src/LaTeXFeatures.h b/src/LaTeXFeatures.h index 32b03b3d15..9bbc247d89 100644 --- a/src/LaTeXFeatures.h +++ b/src/LaTeXFeatures.h @@ -101,9 +101,9 @@ public: static bool isAvailable(std::string const & name); /// Has the package been required? bool isRequired(std::string const & name) const; - /* Is it necessary to load the package? This is true if - isRequired is true and the feature is not provided by the - textclass. + /** Is it necessary to load the package? This is true if + isRequired is true and the feature is not provided by the + textclass. */ bool mustProvide(std::string const & name) const; /// @@ -132,8 +132,8 @@ public: void setBuffer(Buffer const &); /// BufferParams const & bufferParams() const; - /* Which language package do we require? \p englishbabel determines - * if we require babel even if English is the only language. + /** Which language package do we require? \p englishbabel determines + * if we require babel even if English is the only language. */ LangPackage langPackage(bool englishbabel = false) const; /// Convenience function to test if we use babel