mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* src/Language{.cpp,h}:
- new member internalFontEncoding() that indicates if a language switches the font encoding internally. * src/Paragraph.cpp (latexSpecialChar): - don't call latexSpecialT1 if the internal font encoding isn't T1. This fixes the output of straight quotation marks in Hebrew and Greek. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27660 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e838268e3e
commit
6b64fc8ca6
@ -57,6 +57,16 @@ bool Language::read(Lexer & lex)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Language::internalFontEncoding() const
|
||||
{
|
||||
// FIXME: list incomplete
|
||||
// FIXME: instead of hardcoding, this
|
||||
// should go to the languages file
|
||||
return lang_ == "hebrew"
|
||||
|| lang_ == "greek"
|
||||
|| lang_ == "polutonikogreek";
|
||||
}
|
||||
|
||||
|
||||
void Languages::read(FileName const & filename)
|
||||
{
|
||||
|
@ -48,6 +48,8 @@ public:
|
||||
///
|
||||
std::string const & latex_options() const { return latex_options_; }
|
||||
///
|
||||
bool internalFontEncoding() const;
|
||||
///
|
||||
bool read(Lexer & lex);
|
||||
private:
|
||||
///
|
||||
|
@ -864,9 +864,15 @@ void Paragraph::Private::latexSpecialChar(
|
||||
return;
|
||||
}
|
||||
|
||||
if (lyxrc.fontenc == "T1" && latexSpecialT1(c, os, i, column))
|
||||
// If T1 font encoding is used, use the special
|
||||
// characters it provides.
|
||||
// NOTE: some languages reset the font encoding
|
||||
// internally
|
||||
if (!running_font.language()->internalFontEncoding()
|
||||
&& lyxrc.fontenc == "T1" && latexSpecialT1(c, os, i, column))
|
||||
return;
|
||||
|
||||
// \tt font needs special treatment
|
||||
if (running_font.fontInfo().family() == TYPEWRITER_FAMILY
|
||||
&& latexSpecialTypewriter(c, os, i, column))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user