mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Take into account that '\' is always part of a LaTeX command and also
that entries in the unicodesymbols file may not start with '\'. Maybe the method should be renamed as fromLaTeXCode? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27957 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
030e249d91
commit
98114f5a82
@ -496,7 +496,8 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, docstring & rem)
|
||||
// If this is an exact match, we found a (longer)
|
||||
// matching command in the unicodesymbols file
|
||||
if ((math == tmp || text == tmp)
|
||||
&& ((tmp.size() == 1 && !isAlphaASCII(tmp[0]))
|
||||
&& (tmp[0] != '\\'
|
||||
|| (tmp.size() == 2 && !isAlphaASCII(tmp[1]))
|
||||
|| k == cmdend || !isAlphaASCII(cmd[k]))) {
|
||||
c = it->first;
|
||||
j = k - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user