Hello, It seems tex4ht's ConTeXt support is in the very early infancy, but I was able to convert a simple ConTeXt file into acceptable html using "htcontext" command. The only problem is encoding. Is there any way to get the same utf-8 encoding as in the source file? Piotr
Hi, I have never used tex4ht. Maybe I should: I don't know what it is and so I'm converting conTeXt 2 html with my hand-cooked python script. I'm using html as a middle step from conTeXt to rtf/doc in case I' have to share documents. Actually I'm having no problem saving .tex source as UTF-8, and declaring utf-8 in the html. (I'm using TeXShop on Macosx) Here's an example: http://www.semiotiche.it/andrea/membrana/testUTF.zip -a- On 12 Jun 2006, at 13:45, Piotr Kopszak wrote:
Hello,
It seems tex4ht's ConTeXt support is in the very early infancy, but I was able to convert a simple ConTeXt file into acceptable html using "htcontext" command. The only problem is encoding. Is there any way to get the same utf-8 encoding as in the source file?
Piotr
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea andrea.valle@unito.it
Here's your file coverted by my Champollion script. Doesn't display correctly on my browser but source seems to be ok (but Polish is a bit complex for me...) Best -a- On 16 Jun 2006, at 10:37, andrea valle wrote:
Hi, I have never used tex4ht. Maybe I should: I don't know what it is and so I'm converting conTeXt 2 html with my hand-cooked python script. I'm using html as a middle step from conTeXt to rtf/doc in case I' have to share documents. Actually I'm having no problem saving .tex source as UTF-8, and declaring utf-8 in the html.
(I'm using TeXShop on Macosx)
Here's an example:
http://www.semiotiche.it/andrea/membrana/testUTF.zip
-a-
On 12 Jun 2006, at 13:45, Piotr Kopszak wrote:
Hello,
It seems tex4ht's ConTeXt support is in the very early infancy, but I was able to convert a simple ConTeXt file into acceptable html using "htcontext" command. The only problem is encoding. Is there any way to get the same utf-8 encoding as in the source file?
Piotr
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea andrea.valle@unito.it
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea andrea.valle@unito.it
On 6/12/06, Piotr Kopszak wrote:
Hello,
It seems tex4ht's ConTeXt support is in the very early infancy, but I was able to convert a simple ConTeXt file into acceptable html using "htcontext" command. The only problem is encoding. Is there any way to get the same utf-8 encoding as in the source file?
Piotr
Do the following three things: - update your ConTeXt - make sure that (recent!) LM fonts are installed - (I might have an old 4ht on my half-broken MikTeX, so please excuse me if this is not the case: if you don't have the file tex4ht/ht-fonts/unicode/lm/ec-.htf, rename tex4ht/ht-fonts/unicode/lm/cork-.htf into it and replace all the strings "cork" with "ec") I created the file without playing with style or whatever, just using texexec --dvip filename.tex tex4hf -t filename.dvi but at least the encoding seems OK to me (it would be better to use literal characters, but the output in browser looks OK). Thanks for the question. I never thought that tex4ht worked on the basis of dvi files. But then again: if you take a closer look to how context.4ht looks like, you might loose the hope that you just gained a couple of moments before. (If someone would maintain it, it would be doable, but without a serious maintainer it's difficult to get anywhere beyond the very basic support.) Although your tex4ht might be the latest one, context.4ht dates back to the times of Dutch interface, so it's not really useful for anything [yet]. Mojca
participants (3)
-
andrea valle
-
Mojca Miklavec
-
Piotr Kopszak