Re: Word won't open simplest LyXHTML file
On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote: Hi Jerry, I am the primary author of eLyXer. On Thu, Jan 17, 2013 at 4:49 AM, Jerry lancebo...@qwest.net wrote: Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. Yes, I can confirm that OS X is fully supported. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: The XML file bla bla bla cannot be opened... etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. Word does not like XHTML very much; you need to export to HTML 4, using the --html option. http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are doing the conversion inside LyX, instead of on the command line, you have to add the --html in the conversion interface. I checked the HTML file that eLyXer made with the W3C page and got: The uploaded document - was successfully checked as XHTML 1.0 Transitional. Yes, eLyXer outputs pure XHTML. Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) eLyXer has several options for Math output: http://elyxer.nongnu.org/userguide.html#sub:Math Sadly, none of them is MathML, since at the time eLyXer was conceived it was not very widely supported, and I have not found the time to add it. Hope this helps, Alex Fernández. Hi, Alex, Thanks for the comments and for the great tool. It does what it claims to to, convert LyX to HTML, with lots of math options. The default conversion looks great in a browser. I tried your --html suggestion and indeed Word opens it, and displays it much as a browser does. Unfortunately, the HTML limitations are apparent; this is probably as good as a HTML-only conversion can get. In my slow-witted way, I'm starting to understand why Word will not open the various XML formats that I'm throwing at it. (I also played with TeXht today (and the Mac GUI over it, SimpleTeXht. This method also makes XML in some variations, and .odt.) So Word isn't broken—it's just not made to recognize this particular kind of XML. (I want to use the word schema but don't really know what I'm talking about.) So What is missing, as has been stated in previous threads, is a converter from the XML that we're seeing to .docx, it seems. Jerry
Re: Word won't open simplest LyXHTML file
Hello, Rob has some work on word2lyx conversion (using .docx). [1] I remember he was mulling a round-trip conversion, but I guess he never got to implementing it. [1] http://www.oak-tree.us/2012/03/07/word2lyx01-2/ Regards, Liviu On Fri, Jan 18, 2013 at 5:17 AM, Jerry lancebo...@qwest.net wrote: On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote: Hi Jerry, I am the primary author of eLyXer. On Thu, Jan 17, 2013 at 4:49 AM, Jerry lancebo...@qwest.net wrote: Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. Yes, I can confirm that OS X is fully supported. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: The XML file bla bla bla cannot be opened... etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. Word does not like XHTML very much; you need to export to HTML 4, using the --html option. http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are doing the conversion inside LyX, instead of on the command line, you have to add the --html in the conversion interface. I checked the HTML file that eLyXer made with the W3C page and got: The uploaded document - was successfully checked as XHTML 1.0 Transitional. Yes, eLyXer outputs pure XHTML. Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) eLyXer has several options for Math output: http://elyxer.nongnu.org/userguide.html#sub:Math Sadly, none of them is MathML, since at the time eLyXer was conceived it was not very widely supported, and I have not found the time to add it. Hope this helps, Alex Fernández. Hi, Alex, Thanks for the comments and for the great tool. It does what it claims to to, convert LyX to HTML, with lots of math options. The default conversion looks great in a browser. I tried your --html suggestion and indeed Word opens it, and displays it much as a browser does. Unfortunately, the HTML limitations are apparent; this is probably as good as a HTML-only conversion can get. In my slow-witted way, I'm starting to understand why Word will not open the various XML formats that I'm throwing at it. (I also played with TeXht today (and the Mac GUI over it, SimpleTeXht. This method also makes XML in some variations, and .odt.) So Word isn't broken—it's just not made to recognize this particular kind of XML. (I want to use the word schema but don't really know what I'm talking about.) So What is missing, as has been stated in previous threads, is a converter from the XML that we're seeing to .docx, it seems. Jerry -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Word won't open simplest LyXHTML file
Hi Jerry, I am the primary author of eLyXer. On Thu, Jan 17, 2013 at 4:49 AM, Jerry lancebo...@qwest.net wrote: Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. Yes, I can confirm that OS X is fully supported. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: The XML file bla bla bla cannot be opened... etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. Word does not like XHTML very much; you need to export to HTML 4, using the --html option. http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are doing the conversion inside LyX, instead of on the command line, you have to add the --html in the conversion interface. I checked the HTML file that eLyXer made with the W3C page and got: The uploaded document - was successfully checked as XHTML 1.0 Transitional. Yes, eLyXer outputs pure XHTML. Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) eLyXer has several options for Math output: http://elyxer.nongnu.org/userguide.html#sub:Math Sadly, none of them is MathML, since at the time eLyXer was conceived it was not very widely supported, and I have not found the time to add it. Hope this helps, Alex Fernández.
Re: Word won't open simplest LyXHTML file
On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote: Hi Jerry, I am the primary author of eLyXer. On Thu, Jan 17, 2013 at 4:49 AM, Jerry lancebo...@qwest.net wrote: Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. Yes, I can confirm that OS X is fully supported. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: The XML file bla bla bla cannot be opened... etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. Word does not like XHTML very much; you need to export to HTML 4, using the --html option. http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are doing the conversion inside LyX, instead of on the command line, you have to add the --html in the conversion interface. I checked the HTML file that eLyXer made with the W3C page and got: The uploaded document - was successfully checked as XHTML 1.0 Transitional. Yes, eLyXer outputs pure XHTML. Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) eLyXer has several options for Math output: http://elyxer.nongnu.org/userguide.html#sub:Math Sadly, none of them is MathML, since at the time eLyXer was conceived it was not very widely supported, and I have not found the time to add it. Hope this helps, Alex Fernández. Hi, Alex, Thanks for the comments and for the great tool. It does what it claims to to, convert LyX to HTML, with lots of math options. The default conversion looks great in a browser. I tried your --html suggestion and indeed Word opens it, and displays it much as a browser does. Unfortunately, the HTML limitations are apparent; this is probably as good as a HTML-only conversion can get. In my slow-witted way, I'm starting to understand why Word will not open the various XML formats that I'm throwing at it. (I also played with TeXht today (and the Mac GUI over it, SimpleTeXht. This method also makes XML in some variations, and .odt.) So Word isn't broken—it's just not made to recognize this particular kind of XML. (I want to use the word schema but don't really know what I'm talking about.) So What is missing, as has been stated in previous threads, is a converter from the XML that we're seeing to .docx, it seems. Jerry
Re: Word won't open simplest LyXHTML file
Hello, Rob has some work on word2lyx conversion (using .docx). [1] I remember he was mulling a round-trip conversion, but I guess he never got to implementing it. [1] http://www.oak-tree.us/2012/03/07/word2lyx01-2/ Regards, Liviu On Fri, Jan 18, 2013 at 5:17 AM, Jerry lancebo...@qwest.net wrote: On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote: Hi Jerry, I am the primary author of eLyXer. On Thu, Jan 17, 2013 at 4:49 AM, Jerry lancebo...@qwest.net wrote: Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. Yes, I can confirm that OS X is fully supported. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: The XML file bla bla bla cannot be opened... etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. Word does not like XHTML very much; you need to export to HTML 4, using the --html option. http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are doing the conversion inside LyX, instead of on the command line, you have to add the --html in the conversion interface. I checked the HTML file that eLyXer made with the W3C page and got: The uploaded document - was successfully checked as XHTML 1.0 Transitional. Yes, eLyXer outputs pure XHTML. Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) eLyXer has several options for Math output: http://elyxer.nongnu.org/userguide.html#sub:Math Sadly, none of them is MathML, since at the time eLyXer was conceived it was not very widely supported, and I have not found the time to add it. Hope this helps, Alex Fernández. Hi, Alex, Thanks for the comments and for the great tool. It does what it claims to to, convert LyX to HTML, with lots of math options. The default conversion looks great in a browser. I tried your --html suggestion and indeed Word opens it, and displays it much as a browser does. Unfortunately, the HTML limitations are apparent; this is probably as good as a HTML-only conversion can get. In my slow-witted way, I'm starting to understand why Word will not open the various XML formats that I'm throwing at it. (I also played with TeXht today (and the Mac GUI over it, SimpleTeXht. This method also makes XML in some variations, and .odt.) So Word isn't broken—it's just not made to recognize this particular kind of XML. (I want to use the word schema but don't really know what I'm talking about.) So What is missing, as has been stated in previous threads, is a converter from the XML that we're seeing to .docx, it seems. Jerry -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Word won't open simplest LyXHTML file
Hi Jerry, I am the primary author of eLyXer. On Thu, Jan 17, 2013 at 4:49 AM, Jerrywrote: > Thanks for that tip. I checked it out. It's just a Python thing so it > works fine on OS X, and LyX picked it up as advertised. > Yes, I can confirm that OS X is fully supported. > The output on my simple test case does look nice in a browser, but I get > the same error opening with Word as I first described: "The XML file bla > bla bla cannot be opened..." etc. I thought maybe my copy of Word was > broken but it reads other HTML files fine--I'm guessing they don't have the > XML stuff in them, however. > Word does not like XHTML very much; you need to export to HTML 4, using the --html option. http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are doing the conversion inside LyX, instead of on the command line, you have to add the --html in the conversion interface. > I checked the HTML file that eLyXer made with the W3C page and got: "The > uploaded document "-" was successfully checked as XHTML 1.0 Transitional." > Yes, eLyXer outputs pure XHTML. > Also--eLyXer does not appear to use MathML so I don't think there is any > hope of getting editable math into Word using this method. (But I haven't > read all of the eLyXer docs.) > eLyXer has several options for Math output: http://elyxer.nongnu.org/userguide.html#sub:Math Sadly, none of them is MathML, since at the time eLyXer was conceived it was not very widely supported, and I have not found the time to add it. Hope this helps, Alex Fernández.
Re: Word won't open simplest LyXHTML file
On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote: > Hi Jerry, > > I am the primary author of eLyXer. > > On Thu, Jan 17, 2013 at 4:49 AM, Jerrywrote: > Thanks for that tip. I checked it out. It's just a Python thing so it works > fine on OS X, and LyX picked it up as advertised. > > Yes, I can confirm that OS X is fully supported. > > The output on my simple test case does look nice in a browser, but I get the > same error opening with Word as I first described: "The XML file bla bla bla > cannot be opened..." etc. I thought maybe my copy of Word was broken but it > reads other HTML files fine--I'm guessing they don't have the XML stuff in > them, however. > > Word does not like XHTML very much; you need to export to HTML 4, using the > --html option. > http://elyxer.nongnu.org/userguide.html#sub:HTML-Code > If you are doing the conversion inside LyX, instead of on the command line, > you have to add the --html in the conversion interface. > > I checked the HTML file that eLyXer made with the W3C page and got: "The > uploaded document "-" was successfully checked as XHTML 1.0 Transitional." > > Yes, eLyXer outputs pure XHTML. > > Also--eLyXer does not appear to use MathML so I don't think there is any hope > of getting editable math into Word using this method. (But I haven't read all > of the eLyXer docs.) > > eLyXer has several options for Math output: > http://elyxer.nongnu.org/userguide.html#sub:Math > Sadly, none of them is MathML, since at the time eLyXer was conceived it was > not very widely supported, and I have not found the time to add it. > > Hope this helps, > > Alex Fernández. > Hi, Alex, Thanks for the comments and for the great tool. It does what it claims to to, convert LyX to HTML, with lots of math options. The default conversion looks great in a browser. I tried your --html suggestion and indeed Word opens it, and displays it much as a browser does. Unfortunately, the HTML limitations are apparent; this is probably as good as a HTML-only conversion can get. In my slow-witted way, I'm starting to understand why Word will not open the various XML formats that I'm throwing at it. (I also played with TeXht today (and the Mac GUI over it, SimpleTeXht. This method also makes XML in some variations, and .odt.) So Word isn't broken—it's just not made to recognize this particular kind of XML. (I want to use the word "schema" but don't really know what I'm talking about.) So What is missing, as has been stated in previous threads, is a converter from the XML that we're seeing to .docx, it seems. Jerry
Re: Word won't open simplest LyXHTML file
Hello, Rob has some work on word2lyx conversion (using .docx). [1] I remember he was mulling a round-trip conversion, but I guess he never got to implementing it. [1] http://www.oak-tree.us/2012/03/07/word2lyx01-2/ Regards, Liviu On Fri, Jan 18, 2013 at 5:17 AM, Jerrywrote: > > On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote: > > Hi Jerry, > > I am the primary author of eLyXer. > > On Thu, Jan 17, 2013 at 4:49 AM, Jerry wrote: >> >> Thanks for that tip. I checked it out. It's just a Python thing so it >> works fine on OS X, and LyX picked it up as advertised. > > > Yes, I can confirm that OS X is fully supported. > >> >> The output on my simple test case does look nice in a browser, but I get >> the same error opening with Word as I first described: "The XML file bla bla >> bla cannot be opened..." etc. I thought maybe my copy of Word was broken but >> it reads other HTML files fine--I'm guessing they don't have the XML stuff >> in them, however. > > > Word does not like XHTML very much; you need to export to HTML 4, using the > --html option. > http://elyxer.nongnu.org/userguide.html#sub:HTML-Code > If you are doing the conversion inside LyX, instead of on the command line, > you have to add the --html in the conversion interface. > >> >> I checked the HTML file that eLyXer made with the W3C page and got: "The >> uploaded document "-" was successfully checked as XHTML 1.0 Transitional." > > > Yes, eLyXer outputs pure XHTML. > >> >> Also--eLyXer does not appear to use MathML so I don't think there is any >> hope of getting editable math into Word using this method. (But I haven't >> read all of the eLyXer docs.) > > > eLyXer has several options for Math output: > http://elyxer.nongnu.org/userguide.html#sub:Math > Sadly, none of them is MathML, since at the time eLyXer was conceived it was > not very widely supported, and I have not found the time to add it. > > Hope this helps, > > Alex Fernández. > > Hi, Alex, > > Thanks for the comments and for the great tool. It does what it claims to > to, convert LyX to HTML, with lots of math options. The default conversion > looks great in a browser. > > I tried your --html suggestion and indeed Word opens it, and displays it > much as a browser does. Unfortunately, the HTML limitations are apparent; > this is probably as good as a HTML-only conversion can get. > > In my slow-witted way, I'm starting to understand why Word will not open the > various XML formats that I'm throwing at it. (I also played with TeXht today > (and the Mac GUI over it, SimpleTeXht. This method also makes XML in some > variations, and .odt.) So Word isn't broken—it's just not made to recognize > this particular kind of XML. (I want to use the word "schema" but don't > really know what I'm talking about.) So What is missing, as has been stated > in previous threads, is a converter from the XML that we're seeing to .docx, > it seems. > > Jerry -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Word won't open simplest LyXHTML file
Jerry wrote: It has frequently been suggested on this list that, currently, the best way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and then to open that XHTML file with Word. I have Word 2011 for OS X and this fails because Word will not open the XHTML file, with the message The XML file bla bla bla cannot be opened because there are problems with the contents. Details No error detail available Location: 2 This happens even for the simplest LyX file with only one sentence and no fancy stuff--the entire contents of one test file is simply Test sentence. However, the exported XHTML files doe open OK in Firefox and displays math in acceptable, if not perfect, form. (Firefox renders MathML out of the box--why can't other browsers join the 20th century.) On the same Test sentence file exported via LyXHTML, I opened it in TextMate, a very popular and extensible text editor on OS X, and applied the Validate syntax command that is available therein, resulting in this output: xmllint output error: colon are forbidden from PI names 'IS10744:arch' ?IS10744:arch xhtml ^ Test sentence. I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in the past so I don't know why I can't do it now. I am preparing to start a major writing project and I want to understand as much as I can about this--I'm pretty sure that there will be a huge incentive later to have a usable if not perfect version of my LyX work available in Word; this will include math. I know that LyX - Word is a frequent topic on this list so I'm not necessarily looking for a complete rehashing of the topic--only why LyXHTML - Word fails. Jerry I used eLyxer (http://elyxer.nongnu.org/) to export from Linux to HTML then to epub, but it may not support the Mac. HTH Doug.
Re: Word won't open simplest LyXHTML file
On Jan 16, 2013, at 5:28 PM, Doug Laidlaw wrote: Jerry wrote: It has frequently been suggested on this list that, currently, the best way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and then to open that XHTML file with Word. I have Word 2011 for OS X and this fails because Word will not open the XHTML file, with the message The XML file bla bla bla cannot be opened because there are problems with the contents. Details No error detail available Location: 2 This happens even for the simplest LyX file with only one sentence and no fancy stuff--the entire contents of one test file is simply Test sentence. However, the exported XHTML files doe open OK in Firefox and displays math in acceptable, if not perfect, form. (Firefox renders MathML out of the box--why can't other browsers join the 20th century.) On the same Test sentence file exported via LyXHTML, I opened it in TextMate, a very popular and extensible text editor on OS X, and applied the Validate syntax command that is available therein, resulting in this output: xmllint output error: colon are forbidden from PI names 'IS10744:arch' ?IS10744:arch xhtml ^ Test sentence. I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in the past so I don't know why I can't do it now. I am preparing to start a major writing project and I want to understand as much as I can about this--I'm pretty sure that there will be a huge incentive later to have a usable if not perfect version of my LyX work available in Word; this will include math. I know that LyX - Word is a frequent topic on this list so I'm not necessarily looking for a complete rehashing of the topic--only why LyXHTML - Word fails. Jerry I used eLyxer (http://elyxer.nongnu.org/) to export from Linux to HTML then to epub, but it may not support the Mac. HTH Doug. Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: The XML file bla bla bla cannot be opened... etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. I checked the HTML file that eLyXer made with the W3C page and got: The uploaded document - was successfully checked as XHTML 1.0 Transitional. How does your method, LyX - HTML - epub, get me into Word? I don't think Word reads epub, does it? Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) Jerry
Re: Word won't open simplest LyXHTML file
On Wed, 16 Jan 2013 14:13:42 -0700, Jerry said: It has frequently been suggested on this list that, currently, the best way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and then to open that XHTML file with Word. I have Word 2011 for OS X and this fails because Word will not open the XHTML file, with the message The XML file bla bla bla cannot be opened because there are problems with the contents. Details No error detail available Location: 2 This happens even for the simplest LyX file with only one sentence and no fancy stuff--the entire contents of one test file is simply Test sentence. However, the exported XHTML files doe open OK in Firefox and displays math in acceptable, if not perfect, form. (Firefox renders MathML out of the box--why can't other browsers join the 20th century.) On the same Test sentence file exported via LyXHTML, I opened it in TextMate, a very popular and extensible text editor on OS X, and applied the Validate syntax command that is available therein, resulting in this output: xmllint output error: colon are forbidden from PI names 'IS10744:arch' ?IS10744:arch xhtml ^ Test sentence. I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in the past so I don't know why I can't do it now. I am preparing to start a major writing project and I want to understand as much as I can about this--I'm pretty sure that there will be a huge incentive later to have a usable if not perfect version of my LyX work available in Word; this will include math. I know that LyX - Word is a frequent topic on this list so I'm not necessarily looking for a complete rehashing of the topic--only why LyXHTML - Word fails. Jerry Hi Jerry, Your creating a tiny case of the problem is productive and rare. I looked up your error message and got several promising prospects: http://lists.w3.org/Archives/Public/www-html-editor/2009JulSep/0011.html I also saw some sources saying that namespaces could not be on if the name contained a colon. I don't know what that means because I'm not an XML hound. SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: Word won't open simplest LyXHTML file
Jerry wrote: It has frequently been suggested on this list that, currently, the best way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and then to open that XHTML file with Word. I have Word 2011 for OS X and this fails because Word will not open the XHTML file, with the message The XML file bla bla bla cannot be opened because there are problems with the contents. Details No error detail available Location: 2 This happens even for the simplest LyX file with only one sentence and no fancy stuff--the entire contents of one test file is simply Test sentence. However, the exported XHTML files doe open OK in Firefox and displays math in acceptable, if not perfect, form. (Firefox renders MathML out of the box--why can't other browsers join the 20th century.) On the same Test sentence file exported via LyXHTML, I opened it in TextMate, a very popular and extensible text editor on OS X, and applied the Validate syntax command that is available therein, resulting in this output: xmllint output error: colon are forbidden from PI names 'IS10744:arch' ?IS10744:arch xhtml ^ Test sentence. I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in the past so I don't know why I can't do it now. I am preparing to start a major writing project and I want to understand as much as I can about this--I'm pretty sure that there will be a huge incentive later to have a usable if not perfect version of my LyX work available in Word; this will include math. I know that LyX - Word is a frequent topic on this list so I'm not necessarily looking for a complete rehashing of the topic--only why LyXHTML - Word fails. Jerry I used eLyxer (http://elyxer.nongnu.org/) to export from Linux to HTML then to epub, but it may not support the Mac. HTH Doug.
Re: Word won't open simplest LyXHTML file
On Jan 16, 2013, at 5:28 PM, Doug Laidlaw wrote: Jerry wrote: It has frequently been suggested on this list that, currently, the best way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and then to open that XHTML file with Word. I have Word 2011 for OS X and this fails because Word will not open the XHTML file, with the message The XML file bla bla bla cannot be opened because there are problems with the contents. Details No error detail available Location: 2 This happens even for the simplest LyX file with only one sentence and no fancy stuff--the entire contents of one test file is simply Test sentence. However, the exported XHTML files doe open OK in Firefox and displays math in acceptable, if not perfect, form. (Firefox renders MathML out of the box--why can't other browsers join the 20th century.) On the same Test sentence file exported via LyXHTML, I opened it in TextMate, a very popular and extensible text editor on OS X, and applied the Validate syntax command that is available therein, resulting in this output: xmllint output error: colon are forbidden from PI names 'IS10744:arch' ?IS10744:arch xhtml ^ Test sentence. I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in the past so I don't know why I can't do it now. I am preparing to start a major writing project and I want to understand as much as I can about this--I'm pretty sure that there will be a huge incentive later to have a usable if not perfect version of my LyX work available in Word; this will include math. I know that LyX - Word is a frequent topic on this list so I'm not necessarily looking for a complete rehashing of the topic--only why LyXHTML - Word fails. Jerry I used eLyxer (http://elyxer.nongnu.org/) to export from Linux to HTML then to epub, but it may not support the Mac. HTH Doug. Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: The XML file bla bla bla cannot be opened... etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. I checked the HTML file that eLyXer made with the W3C page and got: The uploaded document - was successfully checked as XHTML 1.0 Transitional. How does your method, LyX - HTML - epub, get me into Word? I don't think Word reads epub, does it? Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) Jerry
Re: Word won't open simplest LyXHTML file
On Wed, 16 Jan 2013 14:13:42 -0700, Jerry said: It has frequently been suggested on this list that, currently, the best way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and then to open that XHTML file with Word. I have Word 2011 for OS X and this fails because Word will not open the XHTML file, with the message The XML file bla bla bla cannot be opened because there are problems with the contents. Details No error detail available Location: 2 This happens even for the simplest LyX file with only one sentence and no fancy stuff--the entire contents of one test file is simply Test sentence. However, the exported XHTML files doe open OK in Firefox and displays math in acceptable, if not perfect, form. (Firefox renders MathML out of the box--why can't other browsers join the 20th century.) On the same Test sentence file exported via LyXHTML, I opened it in TextMate, a very popular and extensible text editor on OS X, and applied the Validate syntax command that is available therein, resulting in this output: xmllint output error: colon are forbidden from PI names 'IS10744:arch' ?IS10744:arch xhtml ^ Test sentence. I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in the past so I don't know why I can't do it now. I am preparing to start a major writing project and I want to understand as much as I can about this--I'm pretty sure that there will be a huge incentive later to have a usable if not perfect version of my LyX work available in Word; this will include math. I know that LyX - Word is a frequent topic on this list so I'm not necessarily looking for a complete rehashing of the topic--only why LyXHTML - Word fails. Jerry Hi Jerry, Your creating a tiny case of the problem is productive and rare. I looked up your error message and got several promising prospects: http://lists.w3.org/Archives/Public/www-html-editor/2009JulSep/0011.html I also saw some sources saying that namespaces could not be on if the name contained a colon. I don't know what that means because I'm not an XML hound. SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance
Re: Word won't open simplest LyXHTML file
Jerry wrote: > It has frequently been suggested on this list that, currently, the best > way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM > and then to open that XHTML file with Word. I have Word 2011 for OS X and > this fails because Word will not open the XHTML file, with the message > > > The XML file bla bla bla cannot be opened because there are problems with > the contents. Details > No error detail available > Location: 2 > > > This happens even for the simplest LyX file with only one sentence and no > fancy stuff--the entire contents of one test file is simply "Test > sentence". However, the exported XHTML files doe open OK in Firefox and > displays math in acceptable, if not perfect, form. (Firefox renders MathML > out of the box--why can't other browsers join the 20th century.) > > On the same "Test sentence" file exported via LyXHTML, I opened it in > TextMate, a very popular and extensible text editor on OS X, and applied > the "Validate syntax" command that is available therein, resulting in this > output: > > > xmllint output > error: colon are forbidden from PI names 'IS10744:arch' >^ > Test sentence. > > > I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in > the past so I don't know why I can't do it now. > > I am preparing to start a major writing project and I want to understand > as much as I can about this--I'm pretty sure that there will be a huge > incentive later to have a usable if not perfect version of my LyX work > available in Word; this will include math. > > I know that LyX -> Word is a frequent topic on this list so I'm not > necessarily looking for a complete rehashing of the topic--only why > LyXHTML -> Word fails. > > Jerry I used eLyxer (http://elyxer.nongnu.org/) to export from Linux to HTML then to epub, but it may not support the Mac. HTH Doug.
Re: Word won't open simplest LyXHTML file
On Jan 16, 2013, at 5:28 PM, Doug Laidlaw wrote: > Jerry wrote: > >> It has frequently been suggested on this list that, currently, the best >> way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM >> and then to open that XHTML file with Word. I have Word 2011 for OS X and >> this fails because Word will not open the XHTML file, with the message >> >> >> The XML file bla bla bla cannot be opened because there are problems with >> the contents. Details >> No error detail available >> Location: 2 >> >> >> This happens even for the simplest LyX file with only one sentence and no >> fancy stuff--the entire contents of one test file is simply "Test >> sentence". However, the exported XHTML files doe open OK in Firefox and >> displays math in acceptable, if not perfect, form. (Firefox renders MathML >> out of the box--why can't other browsers join the 20th century.) >> >> On the same "Test sentence" file exported via LyXHTML, I opened it in >> TextMate, a very popular and extensible text editor on OS X, and applied >> the "Validate syntax" command that is available therein, resulting in this >> output: >> >> >> xmllint output >> error: colon are forbidden from PI names 'IS10744:arch' >> > ^ >> Test sentence. >> >> >> I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in >> the past so I don't know why I can't do it now. >> >> I am preparing to start a major writing project and I want to understand >> as much as I can about this--I'm pretty sure that there will be a huge >> incentive later to have a usable if not perfect version of my LyX work >> available in Word; this will include math. >> >> I know that LyX -> Word is a frequent topic on this list so I'm not >> necessarily looking for a complete rehashing of the topic--only why >> LyXHTML -> Word fails. >> >> Jerry > > I used eLyxer (http://elyxer.nongnu.org/) to export from Linux to HTML then > to epub, but it may not support the Mac. > > HTH > > Doug. > Thanks for that tip. I checked it out. It's just a Python thing so it works fine on OS X, and LyX picked it up as advertised. The output on my simple test case does look nice in a browser, but I get the same error opening with Word as I first described: "The XML file bla bla bla cannot be opened..." etc. I thought maybe my copy of Word was broken but it reads other HTML files fine--I'm guessing they don't have the XML stuff in them, however. I checked the HTML file that eLyXer made with the W3C page and got: "The uploaded document "-" was successfully checked as XHTML 1.0 Transitional." How does your method, LyX -> HTML -> epub, get me into Word? I don't think Word reads epub, does it? Also--eLyXer does not appear to use MathML so I don't think there is any hope of getting editable math into Word using this method. (But I haven't read all of the eLyXer docs.) Jerry
Re: Word won't open simplest LyXHTML file
On Wed, 16 Jan 2013 14:13:42 -0700, Jerry said: > It has frequently been suggested on this list that, currently, the > best way to get a LyX file into Microsoft Word is to export from LyX > to LyXHMTM and then to open that XHTML file with Word. I have Word > 2011 for OS X and this fails because Word will not open the XHTML > file, with the message > > > The XML file bla bla bla cannot be opened because there are problems > with the contents. Details > No error detail available > Location: 2 > > > This happens even for the simplest LyX file with only one sentence > and no fancy stuff--the entire contents of one test file is simply > "Test sentence". However, the exported XHTML files doe open OK in > Firefox and displays math in acceptable, if not perfect, form. > (Firefox renders MathML out of the box--why can't other browsers join > the 20th century.) > > On the same "Test sentence" file exported via LyXHTML, I opened it in > TextMate, a very popular and extensible text editor on OS X, and > applied the "Validate syntax" command that is available therein, > resulting in this output: > > > xmllint output > error: colon are forbidden from PI names 'IS10744:arch' >^ > Test sentence. > > > I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this > in the past so I don't know why I can't do it now. > > I am preparing to start a major writing project and I want to > understand as much as I can about this--I'm pretty sure that there > will be a huge incentive later to have a usable if not perfect > version of my LyX work available in Word; this will include math. > > I know that LyX -> Word is a frequent topic on this list so I'm not > necessarily looking for a complete rehashing of the topic--only why > LyXHTML -> Word fails. > > Jerry Hi Jerry, Your creating a tiny case of the problem is productive and rare. I looked up your error message and got several promising prospects: http://lists.w3.org/Archives/Public/www-html-editor/2009JulSep/0011.html I also saw some sources saying that namespaces could not be on if the name contained a colon. I don't know what that means because I'm not an XML hound. SteveT Steve Litt* http://www.troubleshooters.com/ * http://twitter.com/stevelitt Troubleshooting Training * Human Performance