linux user group brescia

immagine del castello

Archivio della mailing list

[LugBS] qualcuno sa usare mhonarc?

Francesco Rmp atomikramp a gmail.com
Gio 6 Mar 2014 13:57:51 UTC
per la cronaca ce l'ho fatta :)

ho utilizzato questo resource file come spunto per l'encoding:

e poi ho personalizzato i css etc..



<TextEncode>
utf-8; MHonArc::UTF8::to_utf8; MHonArc/UTF8.pm
</TextEncode>

<-- With data translated to UTF-8, it simplifies CHARSETCONVERTERS -->
<CharsetConverters override>
default; mhonarc::htmlize
</CharsetConverters>

<-- Need to also register UTF-8-aware text clipping function -->
<TextClipFunc>
MHonArc::UTF8::clip; MHonArc/UTF8.pm
</TextClipFunc>

<!-- The beginning page markup of MHonArc pages need to be modified
     to tell clients that the pages are in UTF-8 by using a
     <meta http-equiv> tag.

     The following resource settings are just the default settings
     for each resource but with the appropriate <meta http-equiv>
     tag added.
  -->

<IdxPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$IDXTITLE$</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>$IDXTITLE$</h1>
</IdxPgBegin>

<TIdxPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$TIDXTITLE$</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>$TIDXTITLE$</h1>
</TIdxPgBegin>


<MsgPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$SUBJECTNA$</title>
<link rev="made" href="mailto:$FROMADDR$">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
</MsgPgBegin>



2014-03-06 11:57 GMT+01:00 Francesco Rmp <atomikramp a gmail.com>:

> perchè io ho provato ad attivare dentro mhonarc quella cosa dell'UTF-8
> encoding, ma non sembra sortire effetto
>
> ho usato questi tag nel resource file:
>
> <TextEncode>
> utf-8; MHonArc::UTF8::to_utf8; MHonArc/UTF8.pm
> </TextEncode>
>
> <-- With data translated to UTF-8, it simplifies CHARSETCONVERTERS -->
> <CharsetConverters override>
> default; mhonarc::htmlize
> </CharsetConverters>
>
> <-- Need to also register UTF-8-aware text clipping function -->
> <TextClipFunc>
> MHonArc::UTF8::clip; MHonArc/UTF8.pm
> </TextClipFunc>
>
>
> speravo che htmlize facesse il suo sporco lavoro.. ma non mi sembra
> proprio :(
>
>
> 2014-03-06 11:52 GMT+01:00 Andrea Gelmini <andrea.gelmini a gmail.com>:
>
> Il 06 marzo 2014 11:34, Francesco Rmp <atomikramp a gmail.com> ha scritto:
>> > sto riscontrando un problema:  in pratica se ho delle email che
>> contengono
>> > dei caratteri accentati, quando queste vengono esportate in HTML da
>> mhonarc,
>> > il risultato è aberrante.
>>
>> Ci sono alcune mailing list a riguardo dove girano delle patch.
>> All'epoca, quando mi era servito, l'unica maniera era stato forzare in
>> un secondo tempo la conversione del coding, convertendo i file
>> generati dallo stesso.
>>
>> Ciao,
>> Gelma
>>
>> --
>> Info/Lamentele/Segnalazioni: andrea.gelmini a gmail.com
>>
>
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lugbs.linux.it/pipermail/lug/attachments/20140306/30df3adc/attachment.html>


Maggiori informazioni sulla lista Lug