diff options
| author | Älven <alven@FreeBSD.org> | 2025-11-01 02:33:44 +0400 |
|---|---|---|
| committer | Älven <alven@FreeBSD.org> | 2025-11-10 17:39:30 +0400 |
| commit | 8b3978e0517cb16fdf68f5894a52fc9988d80dbb (patch) | |
| tree | 90c82b531d2df9585ac9740b91dc2554f0638720 /textproc | |
| parent | textproc/gladtex: Update 1.3 => 1.4.2, take maintainership (diff) | |
textproc/py-gladtex: [NEW PORT] LaTeX formula preprocessor for HTML files
Reworked following upstream switch from Perl to Python in version 1.6.
GladTeX is a preprocessor that enables the use of LaTeX maths within HTML
files. The maths, embedded in <EQ>...</EQ> tags, as if within \(..\) in
LaTeX (or $...$ in TeX), is fed through latex and replaced by images.
WWW: https://humenda.github.io/GladTeX/
PR: 280914
Approved by: yuri@ (Mentor)
Diffstat (limited to 'textproc')
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/gladtex/Makefile | 2 | ||||
| -rw-r--r-- | textproc/py-gladtex/Makefile | 35 | ||||
| -rw-r--r-- | textproc/py-gladtex/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-gladtex/pkg-descr | 24 |
5 files changed, 65 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 825bbf8f0c4d..936434ffbc55 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1405,6 +1405,7 @@ SUBDIR += py-genshi SUBDIR += py-gensim SUBDIR += py-gi-docgen + SUBDIR += py-gladtex SUBDIR += py-graphemeu SUBDIR += py-grep-ast SUBDIR += py-griffe diff --git a/textproc/gladtex/Makefile b/textproc/gladtex/Makefile index 2dd3c8cdb992..3b1b80a71eb3 100644 --- a/textproc/gladtex/Makefile +++ b/textproc/gladtex/Makefile @@ -18,4 +18,6 @@ USE_TEX= dvipsk:run latex:run SHEBANG_FILES= gladtex +CONFLICTS_INSTALL= py-gladtex + .include <bsd.port.mk> diff --git a/textproc/py-gladtex/Makefile b/textproc/py-gladtex/Makefile new file mode 100644 index 000000000000..a8cba82d6396 --- /dev/null +++ b/textproc/py-gladtex/Makefile @@ -0,0 +1,35 @@ +PORTNAME= gladtex +DISTVERSIONPREFIX= v +DISTVERSION= 3.1 +CATEGORIES= textproc math www +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= alven@FreeBSD.org +COMMENT= LaTeX formula preprocessor for HTML files +WWW= https://humenda.github.io/GladTeX/ \ + https://github.com/humenda/GladTeX/ + +LICENSE= LGPL3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= go-md2man:textproc/go-md2man + +USES= python tex +USE_GITHUB= yes +GH_ACCOUNT= humenda +GH_PROJECT= GladTeX +USE_PYTHON= autoplist distutils +USE_TEX= dvipsk:run latex:run + +CONFLICTS_INSTALL= gladtex + +NO_ARCH= yes + +PLIST_FILES= share/man/man1/${PORTNAME}.1.gz + +post-install: + go-md2man -in ${WRKSRC}/manpage.md -out ${TMPDIR}/${PORTNAME}.1 + ${INSTALL_MAN} ${TMPDIR}/${PORTNAME}.1 \ + ${STAGEDIR}${PREFIX}/share/man/man1 + +.include <bsd.port.mk> diff --git a/textproc/py-gladtex/distinfo b/textproc/py-gladtex/distinfo new file mode 100644 index 000000000000..9fa716116743 --- /dev/null +++ b/textproc/py-gladtex/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1761952702 +SHA256 (humenda-GladTeX-v3.1_GH0.tar.gz) = d12dd28a4440302f9013a8710cd8169f89d16e622494130975cc587316080da3 +SIZE (humenda-GladTeX-v3.1_GH0.tar.gz) = 74902 diff --git a/textproc/py-gladtex/pkg-descr b/textproc/py-gladtex/pkg-descr new file mode 100644 index 000000000000..4dbed04e0c5b --- /dev/null +++ b/textproc/py-gladtex/pkg-descr @@ -0,0 +1,24 @@ +GladTeX is a preprocessor that enables the use of LaTeX maths within HTML +files. The maths, embedded in <EQ>...</EQ> tags, as if within \(..\) in +LaTeX (or $...$ in TeX), is fed through latex and replaced by images. + +Additionally all images get an alt-tag for alternative texts that contains +the LaTeX-equivalent of the image. This is handy for text-mode browsers or +blind people. + +* GladTeX supports caching of formulas in order to enable incremental + document editing or simply to share formulas across web pages. + +* GladTeX can be used with Pandoc in order to convert MarkDown to HTML with + LaTeX formulas. + +* It also contains a library GleeTeX to custom tailor the generation and + conversion process to your needs and to embedd it into your (web) + application. + +* It allows the usage of umlauts and other non-ASCII characters within + formulas, by replacing these characters through LaTeX sequences. + +* It is cross-platform, written in Python. + +* Its source code is documented and tested. |
