]> git.lyx.org Git - features.git/commit
Make the output of \inputencoding commands (and the change of output
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 9 Jan 2007 19:25:40 +0000 (19:25 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 9 Jan 2007 19:25:40 +0000 (19:25 +0000)
commitbcb1654b15ee0a1efe8e4e1f7ddde4faeeae1cf4
tree197c5909fe9e5ca39a5af4b71e2fe6a0bc0d0201
parent6ca4bd03e0dffa3780fdbe16281d587214bc4862
Make the output of \inputencoding commands (and the change of output
encodings) more fine grained: From paragraph level to individual character
level. The inputenc package supports that since at least 2000.

* src/insets/insetbase.h
(latex): Document the differences between output to a string stream
and a file stream

* src/buffer.h
(writeLaTeXSource): ditto

* src/output_latex.h
(latexParagraphs): ditto
(switchEncoding): new function to change the encoding of a stream
(and output \inputencoding commands)

* src/paragraph_pimpl.C
(Paragraph::Pimpl::simpleTeXSpecialC): Adjust to latexWriteEndChanges
changes

* src/support/docstream.[Ch]
(setEncoding, operator<<): New stream modifier that changes the
encoding of file streams

* src/lyxfont.[Ch]
(LyXFont::latexWriteStartChanges): Change stream encoding if needed
(LyXFont::latexWriteEndChanges): Change stream encoding if needed

* src/lyxfont.h
(public:):

* src/paragraph.C
(Paragraph::simpleTeXOnePar): Adjust to latexWriteStartChanges and latexWriteEndChanges changes
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):

* src/output_latex.C
(TeXOnePar): Remove the ugly hack to for wencoding changes and use
switchEncoding instead. A nice side effect is that the old hack would
not work if the main language encoding is latin1 and a character
would be mapped to a cedilla in the "fake ucs4" encoding, because
iconv refuses to convert such a character to latin1, although it
exists in latin1 (it wants to attach it to a base character).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16633 a592a061-630c-0410-9148-cb99ea01b6c8
src/buffer.h
src/insets/insetbase.h
src/lyxfont.C
src/lyxfont.h
src/output_latex.C
src/output_latex.h
src/paragraph.C
src/paragraph_pimpl.C
src/support/docstream.C
src/support/docstream.h