#include "support/lyxlib.h"
#include "support/os.h"
#include "support/package.h"
+#include "support/unicode.h"
#include <boost/function.hpp>
#include <boost/filesystem/operations.hpp>
#include <vector>
#include <map>
+
+namespace lyx {
+
using std::endl;
using std::cout;
using std::cerr;
namespace fs = boost::filesystem;
+IconvProcessor & utf8ToUcs4()
+{
+ static IconvProcessor iconv(ucs4_codeset, "UTF-8");
+ return iconv;
+}
+
+
// Hacks to allow the thing to link in the lyxlayout stuff
LyXErr lyxerr(std::cerr.rdbuf());
return tex2lyx(infilename, os);
}
+} // namespace lyx
+
int main(int argc, char * argv[])
{
+ using namespace lyx;
fs::path::default_name_check(fs::no_check);
easyParse(argc, argv);