Update of /cvsroot/mhonarc/mhonarc/MHonArc/lib
In directory subversions:/tmp/cvs-serv26830/lib
Modified Files:
mhtxtplain.pl
Log Message:
* Added MHonArc::UTF8 CHARSETCONVERTER module as recommended at
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=131512&repeatmerged=yes>.
However, module redone to use utf8 pragma in Perl where appropriate
and to remove unnecessary code. Use of module does require that
the Unicode::MapUTF8 module is installed and the utf8 pragma is
supported in the version of Perl you are using.
A example resource file, "utf-8.mrc", has been added to the
resource file example appendix section on how UTF-8 output can
be done in MHonArc.
NOTE: The MHonArc core is still not UTF-8-aware, so some text
processing may not work as expected on UTF-8 data.
Possible problem points:
. Auto-URL hyperlinking in text/plain messages in
mhtxtplain.pl.
. Auto-message-id detection in messages.
. Resource variable text clipping.
There may be others, but in general, if there is a problem,
it should be uncommon and should not affect the overall
functionality of MHonArc. Problems can be avoided by
not using, or disabling, various resources.
* mhtxtplain.pl:
. Removed exception case of iso-2022-jp character data since it
does not allow alternative iso-2022-jp character set conversion
functions via CHARSETCONVERTERS.
NOTE: This does eliminate the smart handling of URL detection
for the variable-width character set. Hence, the URL
detection could technically match non-URLs, or munge
a character at URL boundaries, but it is unknown on how
likely this is. If it is a problem, the "nourl" argument
should be specified to this filter.
NOTE: The old-style "smart" URL functionality can be re-enabled by
writing a custom CHARSETCONVERTER for iso-2022-jp that
just calls iso_2022_jp::jp2022_to_html in iso2022jp.pl.
. Minor modification to flowed text/plain formatting that hopefully
makes quoted text look better than before.
* FAQ changes:
+ Added, "Does MHonArc support Unicode?"
* Changed, "Can MHonArc create non-English archives?"
+ Added, "Can MHonArc process Evolution folders?"
Index: mhtxtplain.pl
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/lib/mhtxtplain.pl,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -r2.20 -r2.21
*** mhtxtplain.pl 18 Jul 2002 21:52:34 -0000 2.20
--- mhtxtplain.pl 20 Jul 2002 00:48:48 -0000 2.21
***************
*** 276,292 ****
## Convert data according to charset
if (!$asis{$charset}) {
- # Japanese we have to handle directly to support nourl flag
- if ($charset =~ /iso-2022-jp/) {
- require "iso2022jp.pl";
- if ($nonfixed) {
- return (&iso_2022_jp::jp2022_to_html($$data, $nourl));
- } else {
- return ('<pre>' .
- &iso_2022_jp::jp2022_to_html($$data, $nourl).
- '</pre>');
- }
-
# Registered in CHARSETCONVERTERS
! } elsif (defined($charcnv) && defined(&$charcnv)) {
$$data = &$charcnv($$data, $charset);
--- 276,281 ----
## Convert data according to charset
if (!$asis{$charset}) {
# Registered in CHARSETCONVERTERS
! if (defined($charcnv) && defined(&$charcnv)) {
$$data = &$charcnv($$data, $charset);
***************
*** 378,382 ****
## Check for quoting
if ($doquote) {
! $$data =~ s(_at_)^( ?${HQuoteChars})(.*)$(_at_)$1<I>$2</I>@gom;
}
--- 367,371 ----
## Check for quoting
if ($doquote) {
! $$data =~ s(_at_)^( ?${HQuoteChars})(.*)$(_at_)$1<i>$2</i>@gom;
}
***************
*** 393,397 ****
## Convert URLs to hyperlinks
! $$data =~ s@($HUrlExp)@<A $target HREF="$1">$1</A>@gio
unless $nourl;
--- 382,386 ----
## Convert URLs to hyperlinks
! $$data =~ s@($HUrlExp)@<a $target href="$1">$1</a>@gio
unless $nourl;
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV