Hi Jean-Marc!

I send this to you because I know that you are one of the core developers;-)
I've picked the new pre1 source and have compiled the sources. So what?:

    LyX1.1.5pre1 now is available under Win32! You can pick it here:
    http://www.fh-hannover.de/mbau/tim/hentschel/lyx/index.htm

Congratulations to the whole team: Now there are only two things to fix to
make LyX run under Win32! I will append my patch file - maybe you are
interested in what is missing to compile it out of the box under CygWin.

One error - I never told before (shame on me ;) is that the lyxrc.example
has an error since 1.1.4fix2 release. In that file the option
\view_dvi_paper_option is described but as an example you only have written
\view_dvi_paper "". This results in an error message when starting LyX (in
the shell window) and after this results in error when yap.exe tries to open
a4.dvi from anywhere! The correction can be found in the appended patch!

BTW: I've got many messages from users interested in LyX on Win32 who wonder
why only Steven van Dijk's link is on your page with 1.0.4 release. It seems
that it is very hard to find my page! Maybe there is some space to include
the above link, too?

Best Regards
Claus

Patchfile begins here:
Created 2000-04-27 by Claus Hentschel
==========================================
File: intl/loadmsgcat.c
diff -u -p /tmp/pre1/intl/loadmsgcat.c /tmp/lyx-1.1.5pre1/intl/loadmsgcat.c
--- /tmp/pre1/intl/loadmsgcat.c Sat Jan 08 20:49:42 2000
+++ /tmp/lyx-1.1.5pre1/intl/loadmsgcat.c Thu Apr 27 15:28:26 2000
@@ -85,7 +85,11 @@ _nl_load_domain (domain_file)
     return;

   /* Try to open the addressed file.  */
+#ifdef CYGWIN32
+  fd = open (domain_file->filename, O_RDONLY | O_BINARY);
+#else
   fd = open (domain_file->filename, O_RDONLY);
+#endif
   if (fd == -1)
     return;

==========================================
File: src/buffer.C
diff -u -p /tmp/pre1/src/buffer.C /tmp/lyx-1.1.5pre1/src/buffer.C
--- /tmp/pre1/src/buffer.C Wed Apr 26 06:50:28 2000
+++ /tmp/lyx-1.1.5pre1/src/buffer.C Thu Apr 27 14:16:12 2000
@@ -1655,10 +1655,24 @@ void Buffer::makeLaTeXFile(string const
    texrow.newline();
   }
   if (!original_path.empty()) {
+#ifdef CYGWIN32
+   string dos_path = original_path;
+
+   if( dos_path.compare(0,2,"//") == 0 ) {
+    dos_path.erase(0,2);
+    dos_path.insert(1,":");
+   } else
+    dos_path.insert(0,"c:");
+   ofs << "\\makeatletter\n"
+       << "\\def\\input@path{{"
+       << dos_path << "/}}\n"
+       << "\\makeatother\n";
+#else
    ofs << "\\makeatletter\n"
        << "\\def\\input@path{{"
        << original_path << "/}}\n"
        << "\\makeatother\n";
+#endif
    texrow.newline();
    texrow.newline();
    texrow.newline();
==========================================
File: lib/lyxrc.example
diff -u -p /tmp/pre1/lib/lyxrc.example /tmp/lyx-1.1.5pre1/lib/lyxrc.example
--- /tmp/pre1/lib/lyxrc.example Thu Apr 27 15:23:52 2000
+++ /tmp/lyx-1.1.5pre1/lib/lyxrc.example Thu Apr 27 15:34:08 2000
@@ -100,7 +100,7 @@
 # not append the -paper option to the dvi command at all. This case is
 # especially useful when viewing your documents on Windows with yap,
 # because yap does not allow a command line option for the paper size.
-#\view_dvi_paper ""
+#\view_dvi_paper_option ""

 # LyX assumes that the default papersize should be usletter.  If this is
not
 # true for your site, use the next line to specify usletter, legal,


Reply via email to