From b99fc9bcd99350d137859b59895c5dcecf4e6a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 11 Jan 2009 08:31:52 +0000 Subject: [PATCH] * LaTeXFeatures.cpp: * InsetSpecialChar.cpp: - make the menu separator direction-aware [only in LaTeX output] (bug 3560). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28085 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeXFeatures.cpp | 5 ++++- src/insets/InsetSpecialChar.cpp | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index fc3ef3c6bc..e52087c3dc 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -60,7 +60,10 @@ static string const lyxline_def = static string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}"; static string const lyxarrow_def = - "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}"; + "\\newcommand{\\lyxarrow}{%\n" + "\\@ifstar\n" + "{\\leavevmode\\,$\\triangleleft$\\,\\allowbreak}\n" + "{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}}"; // for quotes without babel. This does not give perfect results, but // anybody serious about non-english quotes should use babel (JMarc). diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index 8e107d4c0d..0750187c65 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -15,6 +15,7 @@ #include "InsetSpecialChar.h" #include "Dimension.h" +#include "Font.h" #include "LaTeXFeatures.h" #include "Lexer.h" #include "MetricsInfo.h" @@ -220,7 +221,10 @@ int InsetSpecialChar::latex(odocstream & os, os << "\\ldots{}"; break; case MENU_SEPARATOR: - os << "\\lyxarrow{}"; + if (rp.local_font->isRightToLeft()) + os << "\\lyxarrow*{}"; + else + os << "\\lyxarrow{}"; break; case SLASH: os << "\\slash{}";