#include "support/debug.h"
#include "support/FileName.h"
+#include "support/lstrings.h"
using namespace std;
using namespace lyx::support;
lex >> display_;
lex >> rightToLeft_;
lex >> encodingStr_;
- lex >> code_;
+ lex >> codeStr_;
lex >> latex_options_;
if (!lex)
return false;
+ variety_ = split(codeStr_, code_, '-');
+
encoding_ = encodings.fromLyXName(encodingStr_);
if (!encoding_ && !encodingStr_.empty()) {
encoding_ = encodings.fromLyXName("iso8859-1");
return true;
}
+bool Language::internalFontEncoding() const
+{
+ // FIXME: list incomplete
+ // FIXME: instead of hardcoding, this
+ // should go to the languages file
+ return lang_ == "hebrew"
+ || lang_ == "greek"
+ || lang_ == "polutonikogreek";
+}
+
void Languages::read(FileName const & filename)
{