[NTG-context] ConTeXt to XML or HTML
Hello all, I have been looking for a way to convert from ConTeXt to HTML. I asked for God Google and also I have visited http://wiki.contextgarden.net, and read many times almost all articles. Maybe, I have not undestood the process very well. I could not figure out how to make such conversion yet. I saw many different forms of converting XML to ConTeXt, but I did not see nothing from typing in ConTeXt syntax and get a XML output file. The only program I have noticed that do that is tex4ht. This programs bases its conversion in both .tex and .dvi files. The result is not so exact as the desired. Is there another way to do that? Regards, Betoes ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to XML or HTML
On Tue, Sep 30, 2008 at 3:40 PM, betoes wrote: Hello all, I have been looking for a way to convert from ConTeXt to HTML. ... The only program I have noticed that do that is tex4ht. This programs bases its conversion in both .tex and .dvi files. The result is not so exact as the desired. Is there another way to do that? You may try sending feature requests to the author of tex4ht. It has some potential to work better than it currently does. But the general answer is: there's no satisfying solution for tex-html. The other way around is possible though. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to XML or HTML
Mojca Miklavec wrote: On Tue, Sep 30, 2008 at 3:40 PM, betoes wrote: Hello all, I have been looking for a way to convert from ConTeXt to HTML. The only program I have noticed that do that is tex4ht. This programs bases its conversion in both .tex and .dvi files. The result is not so exact as the desired. Is there another way to do that? You may try sending feature requests to the author of tex4ht. It has some potential to work better than it currently does. But the general answer is: there's no satisfying solution for tex-html. The other way around is possible though. or just code your documents in xml and then use context to make pdf and xslt to make html - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context to xml
On Mon, Apr 21, 2008 at 12:02 PM, Olivier Guéry wrote: Hello, Reading to the xml documentation, I see in the « basic workflow » section that it's possible to have a TeX - style - Xml flow. Is this flow availaible ? I can't see it in the doc. I just need a few simple test : Title, author, paragraph. Since Context is the best way to produce pdf, i don't want to do Xml - Contex - Pdf but Contex - pdf (various size) - xml (- html ?) Is this possible or just a todo thing ? None of this, I'm afraid, even though it's a FAQ. tex4ht comes close in some aspects (but works much better for LaTeX than for ConTeXt), and the author is willing to fix and improve things on user requests. Try running htcontext on your document and keep your fingers crossed that it would work. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Context to xml
Hello, Reading to the xml documentation, I see in the « basic workflow » section that it's possible to have a TeX - style - Xml flow. Is this flow availaible ? I can't see it in the doc. I just need a few simple test : Title, author, paragraph. Since Context is the best way to produce pdf, i don't want to do Xml - Contex - Pdf but Contex - pdf (various size) - xml (- html ?) Is this possible or just a todo thing ? Regards, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context to xml
On Mon, Apr 21, 2008 at 12:42 PM, Mojca Miklavec [EMAIL PROTECTED] wrote: On Mon, Apr 21, 2008 at 12:02 PM, Olivier Guéry wrote: Hello, Reading to the xml documentation, I see in the « basic workflow » section that it's possible to have a TeX - style - Xml flow. Is this flow availaible ? I can't see it in the doc. I just need a few simple test : Title, author, paragraph. Since Context is the best way to produce pdf, i don't want to do Xml - Contex - Pdf but Contex - pdf (various size) - xml (- html ?) Is this possible or just a todo thing ? None of this, I'm afraid, even though it's a FAQ. Maybe one day… I think more and more people gonne need this (even a very simple). Try running htcontext on your document and keep your fingers crossed that it would work. I can't find anything that look like htcontext in my context tree. Must I install something else ? Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context to xml
On Mon, Apr 21, 2008 at 1:18 PM, Olivier Guéry wrote: Try running htcontext on your document and keep your fingers crossed that it would work. I can't find anything that look like htcontext in my context tree. Must I install something else ? If you have standalone ConTeXt, than it's not included in the distribution, but on my TODO list (I don't really manage to figure out how to set some variables to make it work properly, and I need to set auto-updates as well). You might need TeX Live or MikTeX or some other distribution. It's also possible to set it up manually, but way too painful. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context to xml
On Mon, Apr 21, 2008 at 1:18 PM, Olivier Guéry [EMAIL PROTECTED] wrote: On Mon, Apr 21, 2008 at 12:42 PM, Mojca Miklavec [EMAIL PROTECTED] wrote: On Mon, Apr 21, 2008 at 12:02 PM, Olivier Guéry wrote: Hello, Reading to the xml documentation, I see in the « basic workflow » section that it's possible to have a TeX - style - Xml flow. Is this flow availaible ? I can't see it in the doc. I just need a few simple test : Title, author, paragraph. Since Context is the best way to produce pdf, i don't want to do Xml - Contex - Pdf but Contex - pdf (various size) - xml (- html ?) Is this possible or just a todo thing ? None of this, I'm afraid, even though it's a FAQ. Maybe one day… I think more and more people gonne need this (even a very simple). This is a point where you should consider useing xml as input format. Try running htcontext on your document and keep your fingers crossed that it would work. I can't find anything that look like htcontext in my context tree. Must I install something else ? It's part of tex4ht. http://www.cse.ohio-state.edu/~gurari/TeX4ht/ Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to XML?
Brooks Moses wrote: At 01:40 PM 7/19/2005, you wrote: Brooks Moses wrote: The other alternative I know of for doing math in XML is embedding bits of LaTeX code within the XML. Since most conversion to non-PDF formats involves converting the math to bitmap images anyway (or, at least, any conversion to HTML for the web does!), I don't think that's really complicating things much. It's certainly possible in theory to embed LaTeX-coded equations in ConTeXt, and there's a small bit of comment on this on the Wiki. In practice, it may take a bit of coding to make work, but the amount won't be excessive. there is a math module (m-math) and a new implementation of that (m-newmat) which does quite some ams math; It does some, yes, though not (yet) the multiline alignment parts that I need. ok, so just isolate the code that you want to be included i have no problem with adding more code but each time i ask for specs, nothing comes up -) Yeah, I know. The specs for what I need are I've got this pile of equations written in LaTeX with the AMSmath package, and I'd like to be able to copy them back and forth between LaTeX and ConTeXt without needing to edit them. I'm slowly working on reducing that to something that's actually useful as specifications (and as some code), and I hope to get some of that to you within the next few months or so. Ok, maybe we can also make a small manual then -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to XML?
Brooks Moses wrote: On a different note, it may be worth pointing out that ConTeXt's support for typesetting of complicated equations -- that is, the sort of stuff for which one really wants the AMSmath package in LaTeX -- really isn't especially great; it's pretty much limited to the capabilities of Plain TeX. I'm currently working (very slowly) on trying to improve this by doing a port of AMSmath to ConTeXt, but I have no idea how compatible that will be with ConTeXt's MathML/XML support, nor when I'd have it to a point where it would be ready for production work. The other alternative I know of for doing math in XML is embedding bits of LaTeX code within the XML. Since most conversion to non-PDF formats involves converting the math to bitmap images anyway (or, at least, any conversion to HTML for the web does!), I don't think that's really complicating things much. It's certainly possible in theory to embed LaTeX-coded equations in ConTeXt, and there's a small bit of comment on this on the Wiki. In practice, it may take a bit of coding to make work, but the amount won't be excessive. there is a math module (m-math) and a new implementation of that (m-newmat) which does quite some ams math; i have no problem with adding more code but each time i ask for specs, nothing comes up -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to XML?
Elena Fraboschi wrote: So, I have been delving into ConTeXt, and I like its syntax: far cleaner than LaTeX. I have also read that there is work in progress to convert XML to ConTeXt --- my question is, any thoughts, hints, recommendations about reverse-engineering, that is, from ConTeXt to XML? If the IUMJ switched production to ConTeXt, we would still want to preserve on archival copy in XML. (As of now we translate LaTeX to XML using hermes, but it would not work with ConTeXt.) If nothing is contemplated in the area of *from ConTeXt to XML, might this strategy work There are several things involved in such a translation - the general structure, this is not that hard and can easily be scripted - special characters, also easy to script - special markup, like math, chemistry etc concerning math, one can use: - content mathml, which is very structured and configurable - presentation mathml, which looks like tex, and does not always lead to nice looking output - embedded tex, which is ok as a start one can consider structure in xml and embedded tex for formulas, its not that hard to generate web pages from that i'm considering adding open math support (needed for a project) ConTeXt - pdf - pdf to XML ? the best way is: xml - context xml - html xml - anything normally magazines are not that complex so oen can use context's direct mapping; depending on the amount of manipulations, one can xml - context reading xml - pdf xml - xslt - xml - context reading xml - pdf xml - xslt - context code - context reading tex - pdf in any case, try to cut the problem into small parts and find solutions for that; so far i never ran into things/demands that could not be solved I apologize if the topic is off bounds, and will be grateful if anyone decides to think outloud on this subject. Best, elena no problem, if you want to know more you can either use this list (it could also be a nice thread for those who want to do similar things) if you don't want to bother the list., you may also mail me directly pdf is pages while xml is structured markup, so converting pdf into xml is non trivial, (btw, the dutch math societies journal is made up in context, i.e. non standard layout (2/3 columns, grayscales, two non cm font sets, graphics, pictures etc; the main reason why we now have the columnsets mechanism-) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to XML?
Hi Elena Concerning the math and xml, it all depends on what kind of math is used. In most cases some tex - presentation mathml results in sub optimal results. One of the advantages of context is that one can easilly modulate on layouts, so for publishing on the web one can as well use pdf in a more screen/navigation friendly layout. It's no real problem to generate multiple instances from one document using processing modes. That way you get quality on paper and on screen. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to XML?
At 01:40 PM 7/19/2005, you wrote: Brooks Moses wrote: The other alternative I know of for doing math in XML is embedding bits of LaTeX code within the XML. Since most conversion to non-PDF formats involves converting the math to bitmap images anyway (or, at least, any conversion to HTML for the web does!), I don't think that's really complicating things much. It's certainly possible in theory to embed LaTeX-coded equations in ConTeXt, and there's a small bit of comment on this on the Wiki. In practice, it may take a bit of coding to make work, but the amount won't be excessive. there is a math module (m-math) and a new implementation of that (m-newmat) which does quite some ams math; It does some, yes, though not (yet) the multiline alignment parts that I need. i have no problem with adding more code but each time i ask for specs, nothing comes up -) Yeah, I know. The specs for what I need are I've got this pile of equations written in LaTeX with the AMSmath package, and I'd like to be able to copy them back and forth between LaTeX and ConTeXt without needing to edit them. I'm slowly working on reducing that to something that's actually useful as specifications (and as some code), and I hope to get some of that to you within the next few months or so. - Brooks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context