mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Adding port textproc/p5-TeX-Encode, Encode/decode Perl utf-8 strings into TeX
Approved by: tobez (implicit)
This commit is contained in:
parent
fe4eb5c6cd
commit
449d06989f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162462
5 changed files with 61 additions and 0 deletions
|
@ -425,6 +425,7 @@
|
|||
SUBDIR += p5-String-Strip
|
||||
SUBDIR += p5-String-Tokenizer
|
||||
SUBDIR += p5-Syntax-Highlight-Perl-Improved
|
||||
SUBDIR += p5-TeX-Encode
|
||||
SUBDIR += p5-TeX-Hyphen
|
||||
SUBDIR += p5-Template-Extract
|
||||
SUBDIR += p5-Template-Magic
|
||||
|
|
32
textproc/p5-TeX-Encode/Makefile
Normal file
32
textproc/p5-TeX-Encode/Makefile
Normal file
|
@ -0,0 +1,32 @@
|
|||
# New ports collection makefile for: TeX-Encode
|
||||
# Date created: 15 May2006
|
||||
# Whom: Aaron Dalton <aaron@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= TeX-Encode
|
||||
PORTVERSION= 0.4
|
||||
CATEGORIES= textproc perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= ../../authors/id/T/TI/TIMBRODY
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= aaron@FreeBSD.org
|
||||
COMMENT= Encode/decode Perl utf-8 strings into TeX
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/Pod/LaTeX.pm:${PORTSDIR}/textproc/p5-Pod-LaTeX \
|
||||
${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
MAN3= TeX::Encode.3
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500800
|
||||
IGNORE= requires at least Perl 5.8 due to dependencies. Please install lang/perl5.8 and try again
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
textproc/p5-TeX-Encode/distinfo
Normal file
3
textproc/p5-TeX-Encode/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (TeX-Encode-0.4.tar.gz) = 1f77d612ccaf5c48a68d52bd406dfb28
|
||||
SHA256 (TeX-Encode-0.4.tar.gz) = 749f0414e843f9b5976859754d70e47a0518003b29e7479ad608189aced51a57
|
||||
SIZE (TeX-Encode-0.4.tar.gz) = 4824
|
17
textproc/p5-TeX-Encode/pkg-descr
Normal file
17
textproc/p5-TeX-Encode/pkg-descr
Normal file
|
@ -0,0 +1,17 @@
|
|||
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).
|
||||
|
||||
WWW: http://search.cpan.org/dist/TeX-Encode
|
||||
Author: Timothy D Brody <tdb01r@ecs.soton.ac.uk>
|
8
textproc/p5-TeX-Encode/pkg-plist
Normal file
8
textproc/p5-TeX-Encode/pkg-plist
Normal file
|
@ -0,0 +1,8 @@
|
|||
%%SITE_PERL%%/TeX/Encode.pm
|
||||
%%SITE_PERL%%/auto/TeX/Encode/autosplit.ix
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/TeX/Encode/.packlist
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/TeX/Encode
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/TeX
|
||||
@dirrm %%SITE_PERL%%/auto/TeX/Encode
|
||||
@dirrmtry %%SITE_PERL%%/auto/TeX
|
||||
@dirrmtry %%SITE_PERL%%/TeX
|
Loading…
Add table
Reference in a new issue