FreeBSD Ports

textproc/p5-TeX-Encode 2.010

Encode/decode Perl utf-8 strings into TeX

Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
textproc, perl5
Package size
27.4 KiB, 96.2 KiB installed

Description

This module provides encoding to LaTeX escapes from utf8 using mapping tables in Pod::LaTeX and HTML::Entities. This covers only a subset of the Unicode character table (undef warnings will occur for non-mapped chars).

Mileage will vary when decoding (converting TeX to utf8), as TeX is in essence a programming language, and this module does not implement TeX.

I use this module to encode author names in BibTeX and to do a rough job at presenting LaTeX abstracts in HTML. Using decode rather than seeing $\sqrt{\Omega^2\zeta_n}$ you get something that looks like the formula.

The next logical step for this module is to integrate some level of TeX grammar to improve the decoding, in particular to handle fractions and font changes (which should probably be dropped).

Install

As a binary package — by origin, or by package name:

pkg install textproc/p5-TeX-Encode
pkg install p5-TeX-Encode

From the ports tree:

cd /usr/ports/textproc/p5-TeX-Encode/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-TeX-Encode>0:textproc/p5-TeX-Encode

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.0102.0102.0102.0102.010
FreeBSD:14:quarterly2.0102.010n/a2.0102.010
FreeBSD:15:latest2.0102.010n/a2.0102.010
FreeBSD:15:quarterly2.0102.010n/an/an/a
FreeBSD:16:latest2.0102.010n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

The full lists below include those, and their dependencies in turn.

All build dependencies 14
All run dependencies 14

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 6
  • %%SITE_PERL%%/TeX/Encode.pm
  • %%SITE_PERL%%/TeX/Encode/BibTeX.pm
  • %%SITE_PERL%%/TeX/Encode/charmap.pm
  • %%PERL5_MAN3%%/TeX::Encode.3.gz
  • %%PERL5_MAN3%%/TeX::Encode::BibTeX.3.gz
  • %%PERL5_MAN3%%/TeX::Encode::charmap.3.gz
distinfo 1
FileSizeSHA256
TeX-Encode-2.010.tar.gz358653f58f908ee272b4438cf338646941cb7d5201e4ebf5e7bf335d70d6fbb7399cf
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.