MHonArc::CharEnt(3)
πΈ NAME πΈ
okay so bestie, this page is MHonArc::CharEnt(3) from the User Contributed Perl Documentation collection, and the module is MHonArc::CharEnt β HTML Character routines for MHonArc. π
β¨
β¨ SYNOPSIS β¨
here's the vibe check for loading it:
use MHonArc::CharEnt;
MHonArc resource file:
<CharsetConverters>
...
iso-8859-15; MHonArc::CharEnt::str2sgml; MHonArc/CharEnt.pm
...
</CharsetConverters>
π¦ DESCRIPTION π¦
MHonArc::CharEnt is literally the module that provides the main character conversion routine used by MHonArc for converting non-ASCII encoded message header data and text/plain character data into HTML. π This module was initially written to just support 8-bit only charsets β lowkey humble beginnings β however, it has been extended to support multibyte charsets. growth era, periodt. π±
All characters are mapped to HTML 4.0 character entity references (e.g. < >) or to Unicode numeric character entity references (e.g. ‾). Most modern browsers will support the Unicode references directly. iconic. π
π NOTES π
- This module relies on MHonArc's
CHARSETALIASESresource for defining alternate names for charset supported. π«Ά - Most character conversion is done through mapping tables that are dynamically loaded on an as-needed basis. There is probably room for optimization by trying to replace tables for charsets with algorithmic conversion solutions.
UTF-8 conversion is done algorithmically. β‘
- A main goal of this module is to convert raw non-ASCII data of various character sets to ASCII data using entity references for non-ASCII characters. This way, archive files will all be in ASCII, with modern compliant HTML browsers being able to handle the rendering of non-ASCII characters from the standard named and numeric character entity references.
This does make reading the raw HTML source for non-English languages difficult, but this may be a non-issue with most users. π
π VERSION π
version check, no cap: $Id: CharEnt.pm,v 1.17 2010/12/31 18:23:02 ehood Exp $ π
π AUTHOR π
Earl Hood, earl@earlhood.com π
MHonArc comes with ABSOLUTELY NO WARRANTY and MHonArc may be copied only under the terms of the GNU General Public License, which may be found in the MHonArc distribution. read that twice, bestie β it's the real deal. π₯
mwah π β this manual-page moment was brought to you by perl v5.42.3, dated 2020-11-16, and the manual name MHonArc::CharEnt(3). β¨π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-MHonArc 2.6.24
- nixpkgs unstable: perl5.42.3-MHonArc 2.6.24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms