Re: lug-bg: latex2html - re-edit generated .html's
- Subject: Re: lug-bg: latex2html - re-edit generated .html's
- From: danchev@xxxxxxxxx (George Danchev)
- Date: Sat, 22 Sep 2001 12:35:47 +0300
dopylvam vyprosa si s oste edin problem :
On Thursday 20 September 2001 21:56, you wrote:
> zdravejte,
> imam slednoto procedurno pitane:
>
> This is LaTeX2HTML Version 2K.1beta (1.48).
> Kolkoto i da se opitvam da generiram .html files s
> <META ........ charset=windows-1251">
> vse mi gi generira s charset=iso-8859-1...
> Syvsem kulturno v /etc/latex2html.config sym slozhil :
> $CHARSET = 'windows-1251';
> zastoto v man-a taka pishe:
> $CHARSET = 'iso_8859_1';
> This specifies the character set used within the
> HTML pages produced by LaTeX2HTML. If no value is
> set in a configuration or initialisation file, the
> default value will be assumed. The lowercase form
> $charset is also recognised, but this is overridden
> by the uppercase form.
> nqma efekt ako go slozha i v local initialisation file :
> .latex2html-init
Izqsni mi se 4e po normalniq na4in nqma da stane , prosto Latex2HTML ne mozhe
da go razbere tova , vse edno da kirilizirash formite na Netscape4
> Ostava grubo da se promeni default charset-a , no kato poglednah perl
> scrit-a 'latex2html' ne e dostatu4no prosto da se zameni string s string
> ... Ako nqkoj znae kak, pls da se obadi ....
a da se edit-va perl koda na Latex2HTML e malyk ad, ako nqkoj iska mozhe da
se probva :)
> Drugiq _grub_ na4in e da se ponapishe sh/bash/awk/grep/i t.n. script kojto
> da parse-va vsi4ki *.html files da namira "loshiq red" <META charset=...>
> i da go podmeni s podhodqshtiq ...
Ostava da se reshat problemite s vunshen script (Perl , Python, sed, awk i
t.n. vsi4ko e acceptable :)
Ta vtoriq problem e 4e NE mozhe da se ukazhe na Latex2HTML kato generira
.html's da slaga otnositelen path v <IMG SRC=relative_path_to_pics/ >
stoto sega "hvashta" absolutniq path na mojta directory hierarchy po4vajki ot
/ , i tova vuzprepqtstva ka4waneto my da WEB folder estestveno . Icons
kartinkite koito sa za NEXT, PREVIOUS i t.n. butonite uspqh da gi napravq s
relative path s opciqta -local_icons . Vsustnost eto kakvo podavam:
latex2html -scalable_fonts -local_icons -iso_language BG linux-book.tex
i generira v diretoriq linux-book *.html's + buttons.png (s relative path
kym tqh)
Ostava problema s podmqnata na CHARSET-a:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
s:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
i path za "vunshnite" kartinki (ne buttons, te se OK):
<IMG
ALIGN="BOTTOM" BORDER="0"
SRC="/absolute/path/against/my/dir_hierarchy/linux-book/images/xfce1.jpg"
ALT="/absolute/path/against/my/dir_hierarchy/linux-book/images/xfce1.jpg">
<IMG
ALIGN="BOTTOM" BORDER="0"
SRC="images/xfce1.jpg"
ALT="images/xfce1.jpg">
ALT mozhe i da se iz4isti da go nqma. Files kojto trqbwa da se parse-vat i da
im se podmenqt gornoto sa v dir linux-book/ , i obstoto mezhdu tqh e 4e sa
*.html , neopredelen broj . Ako nqkoj ima nqkakvo reshenie na situaciqta pls
da kazva. Nadqvam se 4e sym zadal qsno vuprosa, ako trqbva nesto ste
douto4nq. Reshenieto na takava zada4ka ne e prosto, no ako nqkoj ima na ideq
kak mozhe da se prebori ste sym my blagodaren .
10x
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|