lyx_mirror/src/tex2lyx
Georg Baum de3e5280f6 Open tex2lyx input files with correct encoding
We open the input file now twice: The first time in latin1 encoding to read
the document encoding from the preamble. This does always work, since
traditional TeX does not allow non-ASCII contents without an encoding changing
command (except for comments, but we do not need them, and using latin1 rather
than utf8 ensures that they do not produce an iconv exception, but are simply
recored with wrong characters), and we do detect the utf8 based TeX engines
XeTeX and LuaTeX as well. The second time we open the file directly with the
document encoding.

This fixes a few tex2lyx tests on OS X, since changing the encoding of an
open file steam does not work with clang on OS X. Files using more than one
encoding are still broken, but all single-encoding files are fixed now.
2016-01-31 12:54:59 +01:00
..
test tex2lyx testfiles: update fileformat 2016-01-30 02:17:45 +01:00
.gitignore Setup .gitignore for generated files 2012-03-22 02:16:12 +01:00
boost.cpp tex2lyx does not use LYXERR, but basic cerr stream 2013-05-31 11:38:41 +02:00
CMakeLists.txt remove unused minizip include; avoid putting zlib include dir before others, this causes use of external boost headers if they are at the same location 2016-01-10 18:06:15 +01:00
Context.cpp Fix plaintext output of dashes (bug #3647) 2015-02-24 22:06:12 +01:00
Context.h Fix plaintext output of dashes (bug #3647) 2015-02-24 22:06:12 +01:00
dummy_impl.cpp Fix tex2lyx linker error on windows 2015-04-08 22:06:51 +02:00
Makefile.am pass values for @executable_path and @loader_path to instruct the dyld where to find the Qt frameworks 2016-01-23 07:16:09 +01:00
math.cpp tex2lyx: support further TIPA characters 2013-02-19 00:07:24 +01:00
Parser.cpp Fix parsing of verbatim options (bug #9113) 2015-01-03 20:45:06 +01:00
Parser.h Use macro LYX_USE_CXX11 in one more location 2015-05-22 12:41:30 +02:00
Preamble.cpp Open tex2lyx input files with correct encoding 2016-01-31 12:54:59 +01:00
Preamble.h Open tex2lyx input files with correct encoding 2016-01-31 12:54:59 +01:00
table.cpp Inset files: add includes to compile with cxx11 2015-12-10 01:15:16 +01:00
tex2lyx.1in Fix encoding for copying LaTeX from clipboard 2013-11-11 21:52:14 +01:00
tex2lyx.cpp Open tex2lyx input files with correct encoding 2016-01-31 12:54:59 +01:00
tex2lyx.h Remove unused declaration 2015-01-14 21:44:28 +01:00
text.cpp Improve \AA and \aa tex2lyx import 2016-01-08 21:06:24 +01:00
TODO.txt tex2lyx/text.cpp: add support for box alignment 2015-05-19 02:19:24 +02:00