MAKE_ENCMAP(1p)
π MAKE_ENCMAP(1p) π
okay bestie, pull up a chair, because today we're talking about make_encmap β a little script from the User Contributed Perl Documentation corner of the universe that turns a Unicode mapping file into a whole XML encmap file. it's giving tiny-tool-big-destiny. β¨
π NAME π
make_encmap β create an XML representation from an Unicode mapping file. no cap, that's literally the whole job description and she does it flawlessly. π
πΈ SYNOPSIS πΈ
make_encmap <name> <file>
two arguments, that's it, that's the whole vibe. β¨
π¦ DESCRIPTION π¦
so here's the tea: make_encmap creates a XML encmap file with a given name, built from an Unicode mapping file β the kind you'd receive e.g. from <ftp://ftp.unicode.org>. iconic source, honestly. π«Ά
and where does the result go? by default it's output to stdout, so if you want it in an actual file you're gonna have to redirect it yourself. main character energy requires a little effort, bestie. π
β¨ ARGUMENTS β¨
<name>β the name to set in the XML encmap file created. that's her name, her identity, her brand. π<file>β the Unicode mapping file to create the XML encmap file from. this is the raw material, the clay, the slime before the glow-up. π
π OPTIONS π
None. literally none. zero. not a single flag. she said "I don't need options, I need results" and honestly? respect. π
π₯ EXAMPLES π₯
here's how you'd use make_encmap for the ISO/IEC 8859-15 table, and yes it's giving "two lines and done":
wget ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-15.TXT
make_encmap 8859-15 8859-15.TXT E<gt> 8859-15.encmap
quick heads up bestie: thatE<gt>is just pod-speak for a literal>β it's how the original page writes the redirect. the shell wants the real thing, iykyk. π
grab the mapping file, feed it in, redirect the output, boom: 8859-15.encmap. ate and left no crumbs. β
π EXIT STATUS π
0β the script exited normally. slay, everything worked. π₯³2β invalid command-line arguments. you typed something cursed, bestie. π>2β an error occurred. it's not you, it's the run. π
π KNOWN BUGS π
None. not a single one. she's flawless and she knows it. β¨
π§ SEE ALSO π§
compile_encoding(1p), XML::Encoding(3pm).
go read those too, they're her besties. π«Ά
π AUTHOR π
Clark Cooper <coopercc@netheaven.com <mailto:coopercc@netheaven.com>>.
Steve Hay <shay@cpan.org <mailto:shay@cpan.org>> is now maintaining XML::Encoding as of version 2.00. passing the torch, iconic behaviour. π₯
This manual page was written by Daniel Leidert <daniel.leidert@wgdd.de <mailto:daniel.leidert@wgdd.de>> for the Debian project (but may be used by others). queen behaviour, honestly. π
π COPYRIGHT π
Copyright (C) 1998 Clark Cooper. All rights reserved. Copyright (C) 2008-2009, 2014 Steve Hay. All rights reserved.
π LICENCE π
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e. under the terms of either the GNU General Public License or the Artistic License, as specified in the LICENCE file.
(that's the whole legal tea, bestie β free to remix, just follow the rules in that file.) π
β VERSION β
Version 2.11
πΈ DATE πΈ
08 Dec 2020
π¦ HISTORY π¦
See the Changes file. π
okay and for the cute sign-off: this whole page lives in the perl v5.32.0 era, dated 2020-12-10, filed under MAKE_ENCMAP(1p). that's the vibe check, and it passed. bye bestie, go make some encmaps π
β¨π«Ά
π¦ where this page comes from
- debian bookworm: libxml-encoding-perl 2.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxml-encoding-perl 2.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libxml-encoding-perl 2.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxml-encoding-perl 2.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxml-encoding-perl 2.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxml-encoding-perl 2.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms