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
boost.cpp
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
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
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