Update of /cvsroot/mhonarc/mhonarc/MHonArc/examples
In directory subversions:/tmp/cvs-serv18499/examples
Modified Files:
mhonarc.vim utf-8.mrc
Log Message:
* Added TEXTCLIPFUNC resource: Defines the text clipping function
that should be used by MHonArc. This function is mainly used
in resource variable expansion where clipping has been specified,
for example, "$SUBJECT:72$".
* Added clip() function in MHonArc::UTF8 that can be registed via
TEXTCLIPFUNC resource to handling clipping of UTF-8 text.
* Example utf-8.mrc updated to include some corrections and to
define TEXTCLIPFUNC resource.
* Improved navigation links to resource reference pages which should
help their usability.
Index: mhonarc.vim
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/examples/mhonarc.vim,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** mhonarc.vim 29 Jun 2002 00:57:08 -0000 1.12
--- mhonarc.vim 27 Jul 2002 05:13:13 -0000 1.13
***************
*** 181,184 ****
--- 181,185 ----
syn keyword mhaTagName contained tcontbegin
syn keyword mhaTagName contained tcontend
+ syn keyword mhaTagName contained textclipfunc
syn keyword mhaTagName contained tfirstpglink
syn keyword mhaTagName contained tfoot
Index: utf-8.mrc
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/examples/utf-8.mrc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** utf-8.mrc 20 Jul 2002 02:53:29 -0000 1.2
--- utf-8.mrc 27 Jul 2002 05:13:13 -0000 1.3
***************
*** 10,19 ****
Dependencies:
! Requires that the Unicode::MapUTF8 module is installed
! and the 'use utf8' pragma is available.
Notes:
! MHonArc is not UTF-8 aware internally, so the following
! should be noted:
* When defining text-oriented resources, try to stick
--- 10,19 ----
Dependencies:
! Requires that the Unicode::String and Unicode::MapUTF8 modules are
! installed and the 'use utf8' Perl pragma is supported.
Notes:
! The following is worth noting if you plan to generate UTF-8
! archives:
* When defining text-oriented resources, try to stick
***************
*** 25,47 ****
byte).
- However, is most cases, it should be okay to use raw
- non-ASCII characters without problems. Make sure to test
- your settings if you do use raw non-ASCII characters encoded
- in UTF-8.
-
- * Resource variable text clipping should not be used.
- For example, $SUBJECTNA:72$, will expand to the subject
- text of message, clipped to 72 characters if text is
- longer than 72 characters. However, with UTF-8, the
- clipping may clip in the middle of character since the
- operation is not UTF-8 aware.
-
* Auto URL detection in text/plain messages could possibly
! munge characters since it a non-UTF-8 operation. However,
the probability should be low. If the problem becomes
visible in messages, disable URL detection by specifying
the "nourl" argument to m2h_text_plain::filter.
-->
! <!-- ================================================================== -->
<!-- MHonArc::UTF8 uses the Unicode::MapUTF8 module to translate
--- 25,39 ----
byte).
* Auto URL detection in text/plain messages could possibly
! munge characters since it is a non-UTF-8 operation. However,
the probability should be low. If the problem becomes
visible in messages, disable URL detection by specifying
the "nourl" argument to m2h_text_plain::filter.
+
+ * If using a search engine with MHonArc, make sure it
+ supports UTF-8.
-->
! <!-- ==================================================================
! -->
<!-- MHonArc::UTF8 uses the Unicode::MapUTF8 module to translate
***************
*** 57,60 ****
--- 49,61 ----
default; MHonArc::UTF8::str2sgml; MHonArc/UTF8.pm
</CharsetConverters>
+
+ <!-- MHonArc v2.5.10 introduced the following resource to control
+ how text clipping is performed, mainly for resource variables
+ (e.g. $SUBJECTNA:72$).
+ -->
+
+ <TextClipFunc>
+ MHonArc::UTF8::clip; MHonArc/UTF8.pm
+ </TextClipFunc>
<!-- The beginning page markup of MHonArc pages need to be modified
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV