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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.010 | 2.010 | 2.010 | 2.010 | 2.010 |
| FreeBSD:14:quarterly | 2.010 | 2.010 | n/a | 2.010 | 2.010 |
| FreeBSD:15:latest | 2.010 | 2.010 | n/a | 2.010 | 2.010 |
| FreeBSD:15:quarterly | 2.010 | 2.010 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.010 | 2.010 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
p5-HTML-Parser>=3.35: www/p5-HTML-Parserp5-Pod-LaTeX>=0.56: textproc/p5-Pod-LaTeX
Runtime 2
p5-HTML-Parser>=3.35: www/p5-HTML-Parserp5-Pod-LaTeX>=0.56: textproc/p5-Pod-LaTeX
The full lists below include those, and their dependencies in turn.
All build dependencies 14
All run dependencies 14
Required by 1
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
| File | Size | SHA256 |
|---|---|---|
| TeX-Encode-2.010.tar.gz | 35865 | 3f58f908ee272b4438cf338646941cb7d5201e4ebf5e7bf335d70d6fbb7399cf |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.