odocstream & os, TexRow & texrow,
OutputParams const & runparams) const
{
- lyxerr[Debug::LATEX] << "SimpleTeXOnePar... " << this << endl;
+ LYXERR(Debug::LATEX) << "SimpleTeXOnePar... " << this << endl;
bool return_value = false;
runparams.moving_arg);
}
- // Computed only once per paragraph since bparams.encoding() is expensive
- Encoding const & doc_encoding = bparams.encoding();
-
for (pos_type i = 0; i < size(); ++i) {
// First char in paragraph or after label?
if (i == body_pos) {
// Switch file encoding if necessary
int const count = switchEncoding(os, bparams,
- *(runparams.encoding),
+ runparams.moving_arg, *(runparams.encoding),
*(font.language()->encoding()));
if (count > 0) {
column += count;
// simpleTeXSpecialChars ignores spaces if
// style->pass_thru is false.
if (i != body_pos - 1) {
- if (pimpl_->simpleTeXBlanks(bparams,
- doc_encoding, os, texrow,
+ if (pimpl_->simpleTeXBlanks(
+ *(runparams.encoding), os, texrow,
i, column, font, *style))
// A surrogate pair was output. We
// must not call simpleTeXSpecialChars
rp.free_spacing = style->free_spacing;
rp.local_font = &font;
rp.intitle = style->intitle;
- pimpl_->simpleTeXSpecialChars(buf, bparams, doc_encoding, os,
+ pimpl_->simpleTeXSpecialChars(buf, bparams, os,
texrow, rp, running_font,
basefont, outerfont, open_font,
runningChangeType, *style, i, column, c);
runparams.moving_arg);
}
- lyxerr[Debug::LATEX] << "SimpleTeXOnePar...done " << this << endl;
+ LYXERR(Debug::LATEX) << "SimpleTeXOnePar...done " << this << endl;
return return_value;
}
char_type Paragraph::transformChar(char_type c, pos_type pos) const
{
if (!Encodings::is_arabic(c))
- if (lyxrc.font_norm_type == LyXRC::ISO_8859_6_8 && isDigit(c))
- // FIXME UNICODE What does this do?
- return c + (0xb0 - '0');
- else
- return c;
+ return c;
value_type const prev_char = pos > 0 ? getChar(pos - 1) : ' ';
value_type next_char = ' ';