Re: [NTG-context] tex4ht and utf-8

2006-06-16 Thread andrea valle
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
[EMAIL PROTECTED]

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Beta Bibliography module

2006-06-16 Thread Taco Hoekwater
Hi all,


I've just released a beta of the bibliography module for testing.
It can be downloaded from http://modules.contextgarden.net/bib
as usual, and the version is now 2006.06.16

News, compared to the previous (April 11) version that is in the
core distribution:

* Better support for per-chapter bibliographic lists
   (citations now repeat in each chapter)

* The \lang (LANGUAGE) database field is now honoured
   (if the content is a valid ConTeXt language, that is)

* \biburl fields are now typeset using \hyphenatedurl

* \month field conversion can now be controlled through
   \setuppublication[monthconversion=]

* The module now uses \undefinedreference for undefined references

* \usemodule[bibltx] provides \newcommand for legacy databases

* Documentation updated (\nocite is documented now)

Have fun,

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tex4ht and utf-8

2006-06-16 Thread andrea valle

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 Title: testgu





	

  

Ładnie

 tufte

 Nieładnie 

Francuski dziennik Le Monde wczorajszy występ Polaków opisuje
konkludując, że polskie niezdecydowanie skontrastowało z uporem i
konsekwencją Ekwadorczyków. Hiszpański El Pais też nie pozostaje nam
dłużny pisząc, że Ekwador wywiódł w pole słabą reprezentację
Polski. Frankfurter Allgemeine Zeitung pisze, Ĺźe "jeszcze polska nie
zginęła, ale już przed drugim meczem Mundialu przeciwko Niemcom polska
drużyna znalazła się pod wielką presją".

  


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
[EMAIL PROTECTED]

___
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
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-16 Thread Uwe Koloska
Am Mittwoch, 14. Juni 2006 09:35 schrieb Hans Hagen:
>
> if data =~ /output files* written\:\s*(.*)$/mois then

I am no ruby programmer, but although the above works, it should be
  if data =~ /output files? written ...

Uwe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using metapost figures in context (offlist)

2006-06-16 Thread Hans Hagen
Uwe Koloska wrote:
> Am Mittwoch, 14. Juni 2006 09:35 schrieb Hans Hagen:
>   
>> if data =~ /output files* written\:\s*(.*)$/mois then
>> 
>
> I am no ruby programmer, but although the above works, it should be
>   if data =~ /output files? written ...
>
>   
well, s* means zero or more s's so we also catch future typos in metapost, i.e. 
output files -) 

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] Beta Bibliography module

2006-06-16 Thread Aditya Mahajan
Hi Taco,
  Thanks for the update. There is a small typo in the manual. The 
documentation of the manual is now 14 pages and not 12 pages as stated 
by in the references ;)

Aditya


On Fri, 16 Jun 2006, Taco Hoekwater wrote:

> Hi all,
>
>
> I've just released a beta of the bibliography module for testing.
> It can be downloaded from http://modules.contextgarden.net/bib
> as usual, and the version is now 2006.06.16
>
> News, compared to the previous (April 11) version that is in the
> core distribution:
>
> * Better support for per-chapter bibliographic lists
>   (citations now repeat in each chapter)
>
> * The \lang (LANGUAGE) database field is now honoured
>   (if the content is a valid ConTeXt language, that is)
>
> * \biburl fields are now typeset using \hyphenatedurl
>
> * \month field conversion can now be controlled through
>   \setuppublication[monthconversion=]
>
> * The module now uses \undefinedreference for undefined references
>
> * \usemodule[bibltx] provides \newcommand for legacy databases
>
> * Documentation updated (\nocite is documented now)
>
> Have fun,
>
> Taco
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] color names

2006-06-16 Thread andrea valle
Hi to all,

Is it possible to show a list of the predefined names for colors?

Thanks

-a-

Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] color names

2006-06-16 Thread Hans Hagen
andrea valle wrote:
> Hi to all,
>
> Is it possible to show a list of the predefined names for colors?
>   
\starttext \setupcolors[state=start] \showcolor \stoptext 


-
  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


[NTG-context] How to make this section header in ConTeXt?

2006-06-16 Thread Jeroen Heijmans
Hi,

I'm new to ConTeXt, but so far most things I wanted to do turned out  
to be quite easy. However, now I'm trying to make a particular  
section heading, but I can't get it right:

|-|
|  SECTION HEADINGKey 1  Value 1  |
| Key 2  Value 2  |
| Key 3  Value 3  |
| Key 4  Value 4  |
|  Text   Key 5  Value 5  |
|-|

Or in text, a box containing a section heading in the left top, some  
additional text in the left bottom, and a table with pairs of values  
on the right side of the box.

Getting a box with a section heading and some text was easy enough,  
but I couldn't get the table where and how I wanted it. I also tried  
to do all of it in a table, but I got errors when trying to put a  
\section in the table. Any suggestion on how to do this will be  
highly appreciated.

thanks,

Jeroen Heijmans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] keeping output

2006-06-16 Thread gnwiii
On 6/14/06, Hans van der Meer <[EMAIL PROTECTED]> wrote:
>
> This question must have been asked before, but I cannot find it.
>
> Running texexec a number of messages flash by:
>
>   error in metapost run : syllabus-s-mpgraph.mp:397
>
> Alas, al the intermediate results disappear, especially the mpgraph files.
> And of the metapost logs also one only survives.

In such cases I find it helpful to run texexec in an emacs shell window.
Some unix/linux terminals can save a complete log of a session, e.g.,
"xterm -l".

> How does one preserve all these for debugging purposes?

Once you know where the problems occur you can make simpler documents
to debug one problem at a time (also helpful when you need to post an
example for others to examine).

-- 
George N. White III <[EMAIL PROTECTED]>
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] color names

2006-06-16 Thread andrea valle
Ah, sorry for the noise, I have done it before asking but now I realize 
my font was too big (it's a presentation) and names were displayed out 
of the paper.

Thanks

-a-

On 16 Jun 2006, at 20:26, Hans Hagen wrote:

> andrea valle wrote:
>> Hi to all,
>>
>> Is it possible to show a list of the predefined names for colors?
>>
> \starttext \setupcolors[state=start] \showcolor \stoptext
>
>
> -
>   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
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] color names

2006-06-16 Thread Hans Hagen
andrea valle wrote:
> Ah, sorry for the noise, I have done it before asking but now I realize 
> my font was too big (it's a presentation) and names were displayed out 
> of the paper.
>   
in such cases, \setuppapersize[A4][A2] helps identifying the problem 

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] color names

2006-06-16 Thread andrea valle
Thanks Hans, in my case probably a bit more attention would have been 
enough :)

Let me say that this year I started using ConTeXt for presentations, 
I've already made hundreds of slides and I'm having great time. Wow.

-a-


On 16 Jun 2006, at 22:56, Hans Hagen wrote:

> andrea valle wrote:
>> Ah, sorry for the noise, I have done it before asking but now I 
>> realize
>> my font was too big (it's a presentation) and names were displayed out
>> of the paper.
>>
> in such cases, \setuppapersize[A4][A2] helps identifying the problem
>
> 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
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] splitting tables

2006-06-16 Thread Hans Hagen
Hi,

I will upload an alpha release with a cleaned up table (float) split 
mechanism. The splitter works for all three table types, either or not 
in floats with repeated head (and tail) sections, optionally with 
automatic (may become default) caption height detection etc. It works ok 
on some simple test files, but I have no time to test more obscure 
situations.

I'm not that sure if everything is downward compatible, but splitting is 
always tricky (and demanded some intervention) anyway. So, if you are 
using this kind of functionality, go ahead, download and test ..

\setupTABLE[split=repeat]

\input tufte \endgraf
\splitfloat[lines=11]
  {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}}
  {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE}
\input tufte \page

\input tufte \endgraf
\splitfloat[lines=0]
  {}
  {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE}
\input tufte \endgraf \page

\input tufte \endgraf
\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE
\input tufte \page

\setuptabulate[split=yes]

\input tufte \endgraf
\splitfloat[lines=11]
  {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}}
  {\starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate}
\input tufte \page

\input tufte \endgraf
\splitfloat[lines=0]
  {}
  {\starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate}
\input tufte \page

\input tufte \endgraf
\starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate
\input tufte \page

\setuptables[split=yes]

\newtoks\TestToks

\TestToks\emptytoks
\appendtoks\starttablehead\to\TestToks
\dorecurse{3}{\appendtoks\VL head \VL head \VL \SR\to\TestToks}
\appendtoks\stoptablehead\to\TestToks
\appendtoks\starttabletail\to\TestToks
\dorecurse{3}{\appendtoks\VL tail \VL tail \VL \SR\to\TestToks}
\appendtoks\stoptabletail\to\TestToks
\appendtoks\starttables[|c|c|]\to\TestToks
\dorecurse{100}{\appendtoks\VL test \VL test \VL \SR\to\TestToks}
\appendtoks\stoptables\to\TestToks

\input tufte \endgraf
\splitfloat[lines=auto] % [lines=11]
  {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}}
  {\the\TestToks}
\input tufte \page

\input tufte \endgraf
\splitfloat[lines=0]
  {}
  {\the\TestToks}
\input tufte \page

\input tufte \endgraf
\the\TestToks
\input tufte \page

Watch the lines=auto option! Mechanisms like this will never be perfect, 
but I think that the cleanup is not that bad. Especially the \startable 
bits and pieces needs some more testing, but then, i need to cleanup up 
that code anyway (write a cleaner version of that whole table 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] texmfstart trouble

2006-06-16 Thread Hans van der Meer
On Jun 14, 2006, at 12:35, Hans van der Meer wrote:Recently I reported 2 problems related to metapost usage:1. the loss of transparent color handling2. textext not being able to handle %'s as in textext("15\%")The first problem seems to be solved by Taco's remark:Believe it or not, but this is a known problem within web2c.It is triggered by an interaction between the new texexecand having two different entries in texmf.cnf for Metapostsmemory size, for example like this:   main_memory.mpost        = 50   main_memory.metafun      = 300Now, the metafun format is generated as "mpost", but thegraphics are created as "metafun", and the different memorysizes make the specials go disappear.I checked my texmf.cnf in teTeX's main directory ../teTeX/share/texmf (the one I use) and to my surprise found the complete absence there of main_memory.metafun although context itself is present. Addding and regenerating metafun repared the "broken transparency" problem. I have further to investigate why apparently context.cnf seems not to have been read or being effective, because there main_memory.metafun is present!Thanks Taco for your remark, although it took some time before I realised that this remark of yours could be the key to the problem.However the breaking of the handling of "\%"'s in textext was not solved by this repair.Will there be a fix in the forseeable future?Taco wrote in reply to my first signalling the problem:Hans van der Meer wrote:I am afraid a serious error has been introduced into textext in the lastupdate(s).This used to work in metapost for typesetting text with a %-sign:label(textext("66\%"), origin);Now the % somewhere ends a line prematurely because the job aborts with:! mpx file ended unexpectedly.Can Hans please repair this, suddenly a lot of my typesetting is broken.Verified.Thanks for analizing this, I was wondering where those   ! mpx file ended unexpectedly.messages came from in a document Mojca sent me.Taco Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make this section header in ConTeXt?

2006-06-16 Thread Hans Hagen
Jeroen Heijmans wrote:
> Hi,
>
> I'm new to ConTeXt, but so far most things I wanted to do turned out  
> to be quite easy. However, now I'm trying to make a particular  
> section heading, but I can't get it right:
>
> |-|
> |  SECTION HEADINGKey 1  Value 1  |
> | Key 2  Value 2  |
> | Key 3  Value 3  |
> | Key 4  Value 4  |
> |  Text   Key 5  Value 5  |
> |-|
>
> Or in text, a box containing a section heading in the left top, some  
> additional text in the left bottom, and a table with pairs of values  
> on the right side of the box.
>
> Getting a box with a section heading and some text was easy enough,  
> but I couldn't get the table where and how I wanted it. I also tried  
> to do all of it in a table, but I got errors when trying to put a  
> \section in the table. Any suggestion on how to do this will be  
> highly appreciated.
>   
rough approach

\setvariables
  [chapter]
  [title=,
   text=]

\startsetups chapter:reset

\dorecurse {10} {
\setvariables[chapter][key-\recurselevel=,value-\recurselevel=]
}

\stopsetups

\startsetups chapter:make

\setbox 0 = \vbox {
\framed [align=normal,offset=overlay,frame=off] {
\setuptabulate[before=,after=]
\starttabulate[|l|l|]
\dorecurse {10} {
\doifsomething{\getvariable{chapter}{key-\recurselevel}} {
\expanded { % first one not expanded anyway
  \NC 
\getvariable{chapter}{key-\recurselevel}
\noexpand \NC 
\getvariable{chapter}{value-\recurselevel}
\noexpand \NC \NR
}
}
}
\stoptabulate
}
}

\setbox 2 = \hbox {
\framed [align=normal,offset=overlay,frame=off] {
\strut \getvariable{chapter}{title}
}
}

\setbox 4 = \hbox {
\framed [align=normal,offset=overlay,frame=off] {
\strut \getvariable{chapter}{text}
}
}

\ifdim \dimexpr\ht2+\ht4+\lineheight\relax < \ht0
\edef\ChapterHeight{\the\ht0}
\else
\edef\ChapterHeight{\the\dimexpr\ht2+\ht4+\lineheight\relax}
\fi

\definelayer[chapter]
\setuplayer[chapter][width=\textwidth,height=\ChapterHeight,offset=.5ex]
\setlayer[chapter][preset=righttop]  {\box0}
\setlayer[chapter][preset=lefttop]   {\box2}
\setlayer[chapter][preset=leftbottom]{\box4}

\framed[offset=overlay]{\tightlayer[chapter]}

\setups[chapter:reset]

\stopsetups

\setups[chapter:reset]

\starttext

\setvariables
  [chapter]
  [title={some title},
   text={some text},
   key-1=bla,
   value-1=whow,
   key-2=more bla,
   value-2=more whow]

\setups[chapter:make]

\input tufte

\setvariables
  [chapter]
  [title={another title},
   text={another text},
   key-1=bla bla,
   value-1=whow whow,
   key-2=less bla,
   value-2=less whow]

\setups[chapter:make]

\input tufte

\setvariables
  [chapter]
  [title={another title},
   text={another text},
   key-1=bla bla,
   value-1=whow whow,
   key-2=less bla,
   value-2=less whow,
   key-3=bla bla,
   value-3=whow whow,
   key-4=less bla,
   value-4=less whow]

\setups[chapter:make]

\input tufte

\stoptext



-
  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] texmfstart trouble

2006-06-16 Thread Hans Hagen
Hans van der Meer wrote:
> However the breaking of the handling of "\%"'s in textext was not 
> solved by this repair.
> Will there be a fix in the forseeable future?
i'll check it, for the moment use: \percent\

-
  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


[NTG-context] How to hyperlink pdf?

2006-06-16 Thread Johannes Graumann
Hello,

How do I get the entries in TOC/LOF/LOT, t-bib bibliographic references and
in-text references to other text parts (paragraphs, figures, tables)
hyperlinked so that clicking on the respective references will lead me to
the object referred to?

Thanks for your help,

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to hyperlink pdf?

2006-06-16 Thread Aditya Mahajan
On Fri, 16 Jun 2006, Johannes Graumann wrote:

> Hello,
>
> How do I get the entries in TOC/LOF/LOT, t-bib bibliographic references and
> in-text references to other text parts (paragraphs, figures, tables)
> hyperlinked so that clicking on the respective references will lead me to
> the object referred to?
>

\setupinteraction[state=start]

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tex4ht and utf-8

2006-06-16 Thread Mojca Miklavec

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
1
1  Ładnie
We thrive in information--thick worlds because of our marvelous and everyday ca-
pacity to select, edit, single out, structure, highlight, group, pair, merge, harmo-
nize, synthesize, focus, organize, condense, reduce, boil down, choose, categorize,
catalog, classify, list, abstract, scan, look into, idealize, isolate, discriminate, dis-
tinguish, screen, pigeonhole, pick over, sort, integrate, blend, inspect, filter, lump,
skip, smooth, chunk, average, approximate, cluster, aggregate, outline, summarize,
itemize, review, dip into, flip through, browse, glance into, leaf through, skim, re-
fine, enumerate, glean, synopsize, winnow the wheat from the chaff and separate the
sheep from the goats.
Nieładnie
Francuski dziennik Le Monde wczorajszy występ Polaków opisuje konkludując, że
polskie niezdecydowanie skontrastowało z uporem i konsekwencją Ekwadorczyków.
Hiszpański El Pais też nie pozostaje nam dłużny pisząc, że Ekwador wywiódł w pole
słabą reprezentację Polski. Frankfurter Allgemeine Zeitung pisze, że ’jeszcze polska
nie zginęła,  ale już przed drugim meczem Mundialu przeciwko Niemcom polska
drużyna znalazła się pod wielką presją’.


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context