Biber:...Recode(3pm)
π¦ Biber::LaTeX::Recode β the manual, but make it cute
okay bestie, so this is a page from the User Contributed Perl Documentation for a little Perl module called Biber::LaTeX::Recode, and honestly? it's giving translator-energy. π
β¨ NAME β¨
Biber::LaTeX::Recode β it encodes and decodes chars to and from UTF-8 / lacros in LaTeX. that's the whole job. no cap.
πΈ SYNOPSIS πΈ
here's how you actually use it, bestie:
use Biber::LaTeX:Recode
my $string = 'MuαΈ₯ammad ibn MΕ«sΔ al-KhwΔrizmΔ«';
my $latex_string = latex_encode($string);
# => 'Mu\d{h}ammad ibn M\=us\=a al-Khw\=arizm\={\i}'
my $string = 'Mu\d{h}ammad ibn M\=us\=a al-Khw\=arizm\={\i}';
my $utf8_string = latex_decode($string);
# => 'MuαΈ₯ammad ibn MΕ«sΔ al-KhwΔrizmΔ«'
likeβ¦ she goes both ways and she does it flawlessly. π«Ά (and yes, use Biber::LaTeX:Recode is written exactly like that in the original β not me being chaotic, I promise. copy it as-is, iykyk.)
π DESCRIPTION π
Allows conversion between Unicode chars and LaTeX macros. that's it. that's the vibe. Unicode in, LaTeX out; LaTeX in, Unicode out. iconic behaviour honestly.
π GLOBAL OPTIONS π
so there are encoding/decoding sets you can pick from, and the possible values are 'null', 'base' and 'full'. the default? 'base'. periodt.
nullβ No conversion. literally nothing happens. she's off duty. πbaseβ Most common macros and diacritics (sufficient for Western languages and common symbols). this is the default, so it's what you get if you don't say anything.fullβ Also converts punctuation, larger range of diacritics and macros (e.g. for IPA, Latin Extended Additional, etc.), symbols, Greek letters, dingbats, negated symbols, and superscript characters and symbols ... the overachiever of the group. π
π init_sets(<decode set>, <encode_set>)
Initialise recoding sets. We can't do this on loading the module as we don't have the config information to do this yet. so likeβ¦ she needs her info first, bestie. don't rush her. π
π¦ latex_decode($text, @options)
Converts LaTeX macros in the $text to Unicode characters. reverse-uno card, slay.
The function accepts a number of options:
normalize => $bool(default1) β whether the output string should be normalized withUnicode::Normalizenormalization => <normalization form>(default'NFD') β and if yes, the normalization form to use (see theUnicode::Normalizedocumentation)
β latex_encode($text, @options)
Converts UTF-8 to LaTeX. yeah. that's the description. short and confident, we respect it. β¨
π AUTHOR π
Philip Kime "<philip at kime.org.uk>" β the legend herself. π
π BUGS π
Please report any bugs or feature requests on our Github tracker at <https://github.com/plk/biber/issues>.
bestie if something's broken, tell the tracker, not the group chat. fr fr.
πΈ COPYRIGHT & LICENSE πΈ
Copyright 2009-2012 FranΓ§ois Charette and Philip Kime, all rights reserved. Copyright 2012-2026 Philip Kime, all rights reserved.
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
okay that's the whole page, no notes. π this was Biber:...Recode(3pm) on perl v5.42.3, dated 2026-08-14 β mwah, go forth and recode, main character. ππ
π¦ where this page comes from
- fedora 43: biber 2.22-1.fc43 Β· Artistic-2.0
- fedora 44: biber 2.22-2.fc44 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms