LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

enc2xs

Perl utility for creating custom Encode modules

TLDR

Create Encode module from UCM file
$ enc2xs -M [ModuleName] [encoding.ucm]
copy
Build and install
$ enc2xs -C [encoding.ucm]
copy
Generate for specific Perl version
$ enc2xs --perl [/usr/bin/perl] [encoding.ucm]
copy

SYNOPSIS

enc2xs [options] ucm-files

DESCRIPTION

enc2xs is a Perl utility for creating custom Encode modules from UCM (Unicode Character Map) files. It compiles character encoding definitions into Perl modules.The tool is used to add support for non-standard or proprietary character encodings to Perl's Encode system. UCM files define the mapping between byte sequences and Unicode code points.enc2xs generates XS code that can be compiled into a loadable Perl module.

PARAMETERS

UCM-FILES

UCM (Unicode Character Map) file(s).
-M NAME
Module name.
-C
Compile and install.
-o FILE
Output file.
--perl PATH
Perl interpreter path.
--help
Display help information.

INSTALL

sudo apt install perl
copy
sudo dnf install perl
copy
sudo pacman -S perl
copy
sudo apk add perl-dev
copy
sudo zypper install perl
copy
brew install perl
copy
nix profile install nixpkgs#perl
copy

CAVEATS

Requires Perl development environment. UCM format must be correct. XS compilation needs C compiler. Primarily for encoding developers.

HISTORY

enc2xs is part of the Encode module in Perl core, supporting the creation of custom character encoding support. It enables Perl to handle encodings not built into the standard distribution.

SEE ALSO

perl(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid