[NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
I another thread I talked about my problems with converting my ConTeXt file
to an editable format. In principal going the xhtml way seemed best.

But yesterday I got talking with someone in the train. He told me that it
was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This
could solve my problem. Was this person correct? If yes, how would I do
this?

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Martin Schröder
2011/7/19 Cecil Westerhof cldwester...@gmail.com:
 was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This

LaTeX - ODT: tex4ht

Best
   Martin
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Hans Hagen

On 19-7-2011 10:47, Cecil Westerhof wrote:

I another thread I talked about my problems with converting my ConTeXt file
to an editable format. In principal going the xhtml way seemed best.

But yesterday I got talking with someone in the train. He told me that it
was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This
could solve my problem. Was this person correct? If yes, how would I do
this?


context - latex sounds like a no-go to me

At some point if could be interesting to see if we could go from the 
context xml export (structure makeup) to odt (office makeup) but it's 
not something that I'll do for fun (I have no need for it anyway).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Hans Hagen pra...@wxs.nl

 On 19-7-2011 10:47, Cecil Westerhof wrote:

 I another thread I talked about my problems with converting my ConTeXt
 file
 to an editable format. In principal going the xhtml way seemed best.

 But yesterday I got talking with someone in the train. He told me that it
 was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This
 could solve my problem. Was this person correct? If yes, how would I do
 this?


 context - latex sounds like a no-go to me


Okay, I'll discard this option then. (Or someone else must have a way to do
the ConTeXt - LaTeXt part.)


At some point if could be interesting to see if we could go from the context
 xml export (structure makeup) to odt (office makeup) but it's not something
 that I'll do for fun (I have no need for it anyway).


If I could help in a way …

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Mojca Miklavec
On Tue, Jul 19, 2011 at 11:41, Cecil Westerhof wrote:

 Okay, I'll discard this option then. (Or someone else must have a way to do
 the ConTeXt - LaTeXt part.)

Keep in mind that ConTeXt - ODT should in theory be doable as well,
but the author of tex4ht died and it is very unlikely that the
conversion would work without any problems and even more unlikely that
anyone would know how to fix it.

If you can throw away any formatting you did and if you didn't use too
many ConTeXt specific tricks, you can simply rewrite your code to
LaTeX with a few regular expressions etc. But in the same spirit it
might be way easier to just convert the document straight to ODT
using copy-paste and applying some formatting there.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Martin Schröder
2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com:
 If you can throw away any formatting you did and if you didn't use too
 many ConTeXt specific tricks, you can simply rewrite your code to
 LaTeX with a few regular expressions etc. But in the same spirit it
 might be way easier to just convert the document straight to ODT
 using copy-paste and applying some formatting there.

Or, if you know up front that you need multiple output formats,
you could use Markdown/Pandoc etc. and let it generate ConTeXt
as needed.

Best
   Martin
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Martin Schröder mar...@oneiros.de

 2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com:
  If you can throw away any formatting you did and if you didn't use too
  many ConTeXt specific tricks, you can simply rewrite your code to
  LaTeX with a few regular expressions etc. But in the same spirit it
  might be way easier to just convert the document straight to ODT
  using copy-paste and applying some formatting there.

 Or, if you know up front that you need multiple output formats,
 you could use Markdown/Pandoc etc. and let it generate ConTeXt
 as needed.


I did not know. They where happy with PDF's all the time, but when the
project was almost finished, they changed the requirements. But maybe good
to keep in mind for the next project.

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Hans Hagen pra...@wxs.nl

 Concerning OTD: if you need to be roundtrip, then you also need to be able
 to convert back, which might be non trivial.


Roundtrip is not necessary I think (in this case). As I understand it: after
delivery we do not have to change the document anymore. And if we have, well
we just use Open Office. (Or Libre.)

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Mojca Miklavec
On Tue, Jul 19, 2011 at 12:50, Cecil Westerhof wrote:

 As I understand it: after
 delivery we do not have to change the document anymore. And if we have, well
 we just use Open Office. (Or Libre.)

I wonder why someone would want to hire third-party to create them a
document in OpenOffice if they:
- know how to use OpenOffice
- don't need proffessional typography
- have to provide input/text in some form anyway

What was their input? Was it a database at least?

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com

  As I understand it: after
  delivery we do not have to change the document anymore. And if we have,
 well
  we just use Open Office. (Or Libre.)

 I wonder why someone would want to hire third-party to create them a
 document in OpenOffice if they:
 - know how to use OpenOffice
 - don't need proffessional typography
 - have to provide input/text in some form anyway

 What was their input? Was it a database at least?


They use a program that is been made by the company I am working for. It was
used for ten years, but never documented. First it was they wanted
documentation because they did not want to be lost if our company stops
working on the application. Now they want to further develop the application
themselves.(They have the rights on the sources.) And then it is handy that
you can change the documentation. ;-}

It was quite a learning experience altogether.

-- 
Cecil Westerhof
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Khaled Hosny
On Tue, Jul 19, 2011 at 12:15:46PM +0200, Mojca Miklavec wrote:
 On Tue, Jul 19, 2011 at 11:41, Cecil Westerhof wrote:
 
  Okay, I'll discard this option then. (Or someone else must have a way to do
  the ConTeXt - LaTeXt part.)
 
 Keep in mind that ConTeXt - ODT should in theory be doable as well,
 but the author of tex4ht died and it is very unlikely that the
 conversion would work without any problems and even more unlikely that
 anyone would know how to fix it.

ODT is just another XML format, so it shouldn't be hard to do with the
current export code (and IIRC they have even a flat xml ODT that gets
the whole document in one xml file instead of the common multi-file in a
zip archive format).

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Hans Hagen

On 19-7-2011 2:58, Khaled Hosny wrote:

On Tue, Jul 19, 2011 at 12:15:46PM +0200, Mojca Miklavec wrote:

On Tue, Jul 19, 2011 at 11:41, Cecil Westerhof wrote:


Okay, I'll discard this option then. (Or someone else must have a way to do
the ConTeXt -  LaTeXt part.)


Keep in mind that ConTeXt -  ODT should in theory be doable as well,
but the author of tex4ht died and it is very unlikely that the
conversion would work without any problems and even more unlikely that
anyone would know how to fix it.


ODT is just another XML format, so it shouldn't be hard to do with the
current export code (and IIRC they have even a flat xml ODT that gets
the whole document in one xml file instead of the common multi-file in a
zip archive format).


So then it's mostly a matter of someone writing an xslt script.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___