// unicodesymbols has things in the form: \"{u},
// whereas we may see things like: \"u. So we'll
// look for that and change it, if necessary.
+ // FIXME: This is a sort of mini-tex2lyx.
+ // Use the real tex2lyx instead!
static lyx::regex const reg("^\\\\\\W\\w");
if (lyx::regex_search(to_utf8(val), reg)) {
val.insert(3, from_ascii("}"));
val.insert(2, from_ascii("{"));
}
+ bool termination;
docstring rem;
docstring const cnvtd = Encodings::fromLaTeXCommand(val,
- Encodings::TEXT_CMD, rem);
+ Encodings::TEXT_CMD, termination, rem);
if (!cnvtd.empty()) {
// it did, so we'll take that bit and proceed with what's left
ret += cnvtd;
Buffer const & buf, string const & format, bool richtext,
docstring before, docstring after, docstring dialog, bool next) const
{
- docstring loclabel_;
+ docstring loclabel;
/*
if (!is_bibtex_) {
*/
int counter = 0;
- loclabel_ = expandFormat(format, xref, counter, buf, richtext,
+ loclabel = expandFormat(format, xref, counter, buf, richtext,
before, after, dialog, next);
- if (!loclabel_.empty())
- loclabel_ = convertLaTeXCommands(loclabel_);
- return loclabel_;
+ if (!loclabel.empty())
+ loclabel = convertLaTeXCommands(loclabel);
+ return loclabel;
}