+ if (language()->lang() == "farsi") {
+ os << "\\textFR{";
+ count += 8;
+ } else if (!isRightToLeft() &&
+ base.language()->lang() == "farsi") {
+ os << "\\textLR{";
+ count += 8;
+ } else if (language()->lang() == "arabic_arabi") {
+ os << "\\textAR{";
+ count += 8;
+ } else if (!isRightToLeft() &&
+ base.language()->lang() == "arabic_arabi") {
+ os << "\\textLR{";
+ count += 8;
+ // currently the remaining RTL languages are arabic_arabtex and hebrew
+ } else if (isRightToLeft() != prev.isRightToLeft()) {