diff --git a/src/Counters.cpp b/src/Counters.cpp index 20654b7e8e..61a4a239c8 100644 --- a/src/Counters.cpp +++ b/src/Counters.cpp @@ -231,9 +231,9 @@ char alphaCounter(int const n) char hebrewCounter(int const n) { static const char hebrew[22] = { - 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', - 'é', 'ë', 'ì', 'î', 'ð', 'ñ', 'ò', 'ô', 'ö', - '÷', 'ø', 'ù', 'ú' + '\xe0', '\xe1', '\xe2', '\xe3', '\xe4', '\xe5', '\xe6', '\xe7', '\xe8', + '\xe9', '\xeb', '\xec', '\xee', '\xf0', '\xf1', '\xf2', '\xf4', '\xf6', + '\xf7', '\xf8', '\xf9', '\xfa' }; if (n < 1 || n > 22) diff --git a/src/Font.cpp b/src/Font.cpp index ccbc937e79..ccaa923cab 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -674,7 +674,7 @@ Font & Font::lyxRead(Lexer & lex) } else if (ttok == "noun") { setNoun(ON); } else { - lex.printError("Illegal misc type `$$Token´"); + lex.printError("Illegal misc type `$$Token'"); } } else if (tok == "color") { lex.next(); diff --git a/src/support/environment.h b/src/support/environment.h index d312bffe63..296ebc15fb 100644 --- a/src/support/environment.h +++ b/src/support/environment.h @@ -28,7 +28,7 @@ std::string const getEnv(std::string const & envname); * guarantee that it is in the form of a unix-style path. * If the environment variable is not set, then the function returns * an empty vector. - */ + */ std::vector const getEnvPath(std::string const & name); /** Set the contents of the environment variable @c name to @c value. diff --git a/src/tex2lyx/math.cpp b/src/tex2lyx/math.cpp index c2af18f009..30af6a6cb2 100644 --- a/src/tex2lyx/math.cpp +++ b/src/tex2lyx/math.cpp @@ -207,17 +207,17 @@ void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode) else if (t.cs() == "\"") { string const name = p.verbatim_item(); - if (name == "a") os << 'ä'; - else if (name == "o") os << 'ö'; - else if (name == "u") os << 'ü'; - else if (name == "A") os << 'Ä'; - else if (name == "O") os << 'Ö'; - else if (name == "U") os << 'Ü'; + if (name == "a") os << '\xe4'; + else if (name == "o") os << '\xf6'; + else if (name == "u") os << '\xfc'; + else if (name == "A") os << '\xc4'; + else if (name == "O") os << '\xd6'; + else if (name == "U") os << '\xdc'; else os << "\"{" << name << "}"; } else if (t.cs() == "ss") - os << "ß"; + os << "\xdf"; else if (t.cs() == "cr") { // lyx can't handle \\cr diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 7ca211e3f5..a013208f57 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * \author Jean-Marc Lasgouttes * * Full author contact details are available in file CREDITS. @@ -1647,7 +1647,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, p.skip_spaces(); context.check_layout(os); string const s = p.verbatim_item(); - if (s == "±" || s == "³" || s == "²" || s == "µ") + if (s == "\xb1" || s == "\xb3" || s == "\xb2" || s == "\xb5") os << s; else handle_ert(os, "\\ensuremath{" + s + "}", @@ -2081,12 +2081,12 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, else if (t.cs() == "\"") { context.check_layout(os); string const name = p.verbatim_item(); - if (name == "a") os << 'ä'; - else if (name == "o") os << 'ö'; - else if (name == "u") os << 'ü'; - else if (name == "A") os << 'Ä'; - else if (name == "O") os << 'Ö'; - else if (name == "U") os << 'Ü'; + if (name == "a") os << '\xe4'; + else if (name == "o") os << '\xf6'; + else if (name == "u") os << '\xfc'; + else if (name == "A") os << '\xc4'; + else if (name == "O") os << '\xd6'; + else if (name == "U") os << '\xdc'; else handle_ert(os, "\"{" + name + "}", context); } @@ -2104,7 +2104,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, // subset of LaTeX, so don't parse anything here, // but use the raw argument. // Otherwise we would convert \~{\i} wrongly. - // This will of course not translate \~{\ss} to \~{ß}, + // This will of course not translate \~{\ss} to \~{ß}, // but that does at least compile and does only look // strange on screen. context.check_layout(os); @@ -2115,7 +2115,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, else if (t.cs() == "ss") { context.check_layout(os); - os << "ß"; + os << "\xdf"; skip_braces(p); // eat {} }