- string doclang =
- current_view->buffer()->GetLanguage();
- int quoteind = quote_index[side][language];
- string qstr;
-
- if (lyxrc->fontenc == "T1") {
- qstr = latex_quote_t1[times][quoteind];
- }
- else if (doclang == "default") {
- qstr = latex_quote_ot1[times][quoteind];
- }
- else if (language == InsetQuotes::FrenchQ
- && times == InsetQuotes::DoubleQ
- && doclang == "frenchb") {
- if (side == InsetQuotes::LeftQ)
- qstr = "\\og{}";
- else
- qstr = " \\fg{}";
- }
- else
- qstr = latex_quote_babel[times][quoteind];
-
- // protect against !` and ?` ligatures.
- if ((suffixIs(file, '?') || suffixIs(file, '!'))
- && qstr[0] == '`')
- qstr = "{}" + qstr;
-
- file += qstr;