about HTML conversion with hevea and hacha

2002-06-08 Thread Fabrice F-T

Hevea (hevea + hacha) is a great tool (at least for me) to convert latex
into html. It's very fast and produces very little html files.
But as you have to run two differents commands to do the complete
conversion, the autodetected configuration didn't do exactly what I wanted
(it did only run hevea), and setting it up is not documented in the LyX
documentation or on the LyX help website.

2 questions:

1- Is there a simplest way to configure it, as the way I have found and
explain here?

2- Would it be possible to have more explanations somewhere about using
converters, and in particular this one? I found it was particularly bad
documented for a novice user like me. For months I have run hacha in a
console every time...

***

First, we have to run hevea. It will convert the document in one html
file. After that, we have to run hacha. It will split the html file in
several ones and everything will be nicer (one file for each section and
so on).

I don't know if there is one solution to run hacha with one lyx command.
As I remember, I tried but it worked only if hevea had everything clear
with just one run (and sometimes it needs to run many times). I finally
got runnig it by declaring two new HTML formats: 

(Menus are in french because I don't know how it looks like in another
language)

* The two formats

Menu Edition- Préférence -Convertisseurs- Format

** The first format:

Format: htmlhevea
Nom d'interface: HTML (hevea)
Raccourci: v
Extension: html
Visionneuse: dillo

(dillo because it is very fast)

** The second format:

Format: htmlhacha
Nom d'interface: HTML (hacha)
Raccourci: c
Extension: html
Visionneuse: dillo 'index.html' | dillo

(Dillo must be run twice in order to see the index.html file, or Lyx has
problems. Is there another way to see this index.html file?)

* After that: Two conversions

Menu Edition -Préférences- Convertisseurs- Convertisseurs

** The first one. To create the big html file

Depuis: Latex
Vers: HTML (hevea)
Convertisseur: hevea -fix -français -noiso -nosymb -pedantic $$i
Options: originaldir,needaux

(hevea-options: fix: hevea runs as many times as needed to have correct
output; francais: because I write in french; other options so that old
netscape is happy)(I don't really know what these originaldir and needaux
options are and if other ones exist, but without it it doesn't work)

** The second one. To create the entire site.

Depuis: HTML (hevea)
Vers: HTML (hacha)
Convertisseur: hacha -français -tocbis $$i
Options: originaldir,needaux

(hacha-options: francais: for french; tocbis: to have a little toc in each
file)


For the converter to run well, I had to deactivate the /tmp directory. If
it is not deactivated, ps images are not converted.

Editer- Préférences- Entrées- Répertoires- Répertoire temporaire
(is not activated)

After that, to see the html file produced by hacha:
Voir- HTML (hacha)

***

Sorry for the bad english.

--

Fabrice Flore-Thébault



about HTML conversion with hevea and hacha

2002-06-08 Thread Fabrice F-T

Hevea (hevea + hacha) is a great tool (at least for me) to convert latex
into html. It's very fast and produces very little html files.
But as you have to run two differents commands to do the complete
conversion, the autodetected configuration didn't do exactly what I wanted
(it did only run hevea), and setting it up is not documented in the LyX
documentation or on the LyX help website.

2 questions:

1- Is there a simplest way to configure it, as the way I have found and
explain here?

2- Would it be possible to have more explanations somewhere about using
converters, and in particular this one? I found it was particularly bad
documented for a novice user like me. For months I have run hacha in a
console every time...

***

First, we have to run hevea. It will convert the document in one html
file. After that, we have to run hacha. It will split the html file in
several ones and everything will be nicer (one file for each section and
so on).

I don't know if there is one solution to run hacha with one lyx command.
As I remember, I tried but it worked only if hevea had everything clear
with just one run (and sometimes it needs to run many times). I finally
got runnig it by declaring two new HTML formats: 

(Menus are in french because I don't know how it looks like in another
language)

* The two formats

Menu Edition- Préférence -Convertisseurs- Format

** The first format:

Format: htmlhevea
Nom d'interface: HTML (hevea)
Raccourci: v
Extension: html
Visionneuse: dillo

(dillo because it is very fast)

** The second format:

Format: htmlhacha
Nom d'interface: HTML (hacha)
Raccourci: c
Extension: html
Visionneuse: dillo 'index.html' | dillo

(Dillo must be run twice in order to see the index.html file, or Lyx has
problems. Is there another way to see this index.html file?)

* After that: Two conversions

Menu Edition -Préférences- Convertisseurs- Convertisseurs

** The first one. To create the big html file

Depuis: Latex
Vers: HTML (hevea)
Convertisseur: hevea -fix -français -noiso -nosymb -pedantic $$i
Options: originaldir,needaux

(hevea-options: fix: hevea runs as many times as needed to have correct
output; francais: because I write in french; other options so that old
netscape is happy)(I don't really know what these originaldir and needaux
options are and if other ones exist, but without it it doesn't work)

** The second one. To create the entire site.

Depuis: HTML (hevea)
Vers: HTML (hacha)
Convertisseur: hacha -français -tocbis $$i
Options: originaldir,needaux

(hacha-options: francais: for french; tocbis: to have a little toc in each
file)


For the converter to run well, I had to deactivate the /tmp directory. If
it is not deactivated, ps images are not converted.

Editer- Préférences- Entrées- Répertoires- Répertoire temporaire
(is not activated)

After that, to see the html file produced by hacha:
Voir- HTML (hacha)

***

Sorry for the bad english.

--

Fabrice Flore-Thébault



about HTML conversion with hevea and hacha

2002-06-08 Thread Fabrice F-T

Hevea (hevea + hacha) is a great tool (at least for me) to convert latex
into html. It's very fast and produces very little html files.
But as you have to run two differents commands to do the complete
conversion, the autodetected configuration didn't do exactly what I wanted
(it did only run hevea), and setting it up is not documented in the LyX
documentation or on the LyX help website.

2 questions:

1- Is there a simplest way to configure it, as the way I have found and
explain here?

2- Would it be possible to have more explanations somewhere about using
converters, and in particular this one? I found it was particularly bad
documented for a novice user like me. For months I have run hacha in a
console every time...

***

First, we have to run hevea. It will convert the document in one html
file. After that, we have to run hacha. It will split the html file in
several ones and everything will be nicer (one file for each section and
so on).

I don't know if there is one solution to run hacha with one lyx command.
As I remember, I tried but it worked only if hevea had everything clear
with just one run (and sometimes it needs to run many times). I finally
got runnig it by declaring two new HTML formats: 

(Menus are in french because I don't know how it looks like in another
language)

* The two formats

Menu Edition-> Préférence ->Convertisseurs-> Format

** The first format:

Format: htmlhevea
Nom d'interface: HTML (hevea)
Raccourci: v
Extension: html
Visionneuse: dillo

(dillo because it is very fast)

** The second format:

Format: htmlhacha
Nom d'interface: HTML (hacha)
Raccourci: c
Extension: html
Visionneuse: dillo 'index.html' | dillo

(Dillo must be run twice in order to see the index.html file, or Lyx has
problems. Is there another way to see this index.html file?)

* After that: Two conversions

Menu Edition ->Préférences-> Convertisseurs-> Convertisseurs

** The first one. To create the big html file

Depuis: Latex
Vers: HTML (hevea)
Convertisseur: hevea -fix -français -noiso -nosymb -pedantic $$i
Options: originaldir,needaux

(hevea-options: fix: hevea runs as many times as needed to have correct
output; francais: because I write in french; other options so that old
netscape is happy)(I don't really know what these originaldir and needaux
options are and if other ones exist, but without it it doesn't work)

** The second one. To create the entire site.

Depuis: HTML (hevea)
Vers: HTML (hacha)
Convertisseur: hacha -français -tocbis $$i
Options: originaldir,needaux

(hacha-options: francais: for french; tocbis: to have a little toc in each
file)


For the converter to run well, I had to deactivate the /tmp directory. If
it is not deactivated, ps images are not converted.

Editer-> Préférences-> Entrées-> Répertoires-> Répertoire temporaire
(is not activated)

After that, to see the html file produced by hacha:
Voir-> HTML (hacha)

***

Sorry for the bad english.

--

Fabrice Flore-Thébault



Re: Quote and spaces (OT)

2002-06-07 Thread Fabrice F-T

Jan Warnking a écrit (Fri, 7 Jun 2002 18:40:15 +0100 (WET DST)):

 
 Talking about quotes and spaces in French, I have an offtopic question:
 Are spaces after opening  and before closing  really good typography
 in French? I know about the spaces (thin protected ones) before :;?! but
 am just not sure about the . I wrote a text in french (not frenchb,
 what's the difference?) and left out all such typographic spaces.
 Babel put them in for me before :;?!, but not between the guillemets and
 the following (preceding) word. The text looks fine to me but then,
 I'm not french...
 

As a french guy i would say: yes of course this spaces after  and before
 are necessary! I think it's because they are double punctuation signs,
just as :;?!



Re: Quote and spaces (OT)

2002-06-07 Thread Fabrice F-T

Jan Warnking a écrit (Fri, 7 Jun 2002 18:40:15 +0100 (WET DST)):

 
 Talking about quotes and spaces in French, I have an offtopic question:
 Are spaces after opening  and before closing  really good typography
 in French? I know about the spaces (thin protected ones) before :;?! but
 am just not sure about the . I wrote a text in french (not frenchb,
 what's the difference?) and left out all such typographic spaces.
 Babel put them in for me before :;?!, but not between the guillemets and
 the following (preceding) word. The text looks fine to me but then,
 I'm not french...
 

As a french guy i would say: yes of course this spaces after  and before
 are necessary! I think it's because they are double punctuation signs,
just as :;?!



Re: Quote and spaces (OT)

2002-06-07 Thread Fabrice F-T

Jan Warnking a écrit (Fri, 7 Jun 2002 18:40:15 +0100 (WET DST)):

> 
> Talking about quotes and spaces in French, I have an offtopic question:
> Are spaces after opening << and before closing >> really good typography
> in French? I know about the spaces (thin protected ones) before :;?! but
> am just not sure about the <<>>. I wrote a text in french (not frenchb,
> what's the difference?) and left out all such "typographic" spaces.
> Babel put them in for me before :;?!, but not between the guillemets and
> the following (preceding) word. The text "looks" fine to me but then,
> I'm not french...
> 

As a french guy i would say: yes of course this spaces after << and before
>> are necessary! I think it's because they are double punctuation signs,
just as :;?!