From f6aba0a218c3b19afb4ff78799e8f0760e584397 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 30 Apr 2019 22:36:21 +0000 Subject: addliga (30apr19) git-svn-id: svn://tug.org/texlive/trunk@50912 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/lualatex/addliga/README | 6 ++++ Master/texmf-dist/doc/lualatex/addliga/addliga.pdf | Bin 0 -> 18477 bytes Master/texmf-dist/doc/lualatex/addliga/addliga.tex | 33 +++++++++++++++++++++ Master/texmf-dist/tex/lualatex/addliga/addliga.sty | 22 ++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/addliga.tlpsrc | 0 Master/tlpkg/tlpsrc/collection-luatex.tlpsrc | 1 + 7 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/lualatex/addliga/README create mode 100644 Master/texmf-dist/doc/lualatex/addliga/addliga.pdf create mode 100644 Master/texmf-dist/doc/lualatex/addliga/addliga.tex create mode 100644 Master/texmf-dist/tex/lualatex/addliga/addliga.sty create mode 100644 Master/tlpkg/tlpsrc/addliga.tlpsrc diff --git a/Master/texmf-dist/doc/lualatex/addliga/README b/Master/texmf-dist/doc/lualatex/addliga/README new file mode 100644 index 00000000000..cab7bd12a69 --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/addliga/README @@ -0,0 +1,6 @@ +The addliga package allows LuaLaTeX users to access basic ligatures (ff, fi, ffi, fl, ffl) in legacy TrueType fonts accessed via fontspec. + +This package was written by Daniel Benjamin Miller, 2019, and is contributed to the public domain. + +Version History: +April 30, 2019: 1.0 diff --git a/Master/texmf-dist/doc/lualatex/addliga/addliga.pdf b/Master/texmf-dist/doc/lualatex/addliga/addliga.pdf new file mode 100644 index 00000000000..31b2d9e1d8a Binary files /dev/null and b/Master/texmf-dist/doc/lualatex/addliga/addliga.pdf differ diff --git a/Master/texmf-dist/doc/lualatex/addliga/addliga.tex b/Master/texmf-dist/doc/lualatex/addliga/addliga.tex new file mode 100644 index 00000000000..04681272237 --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/addliga/addliga.tex @@ -0,0 +1,33 @@ +% !TEX TS-program = lualatex +\documentclass{scrartcl} +\setkomafont{disposition}{\bfseries} +\KOMAoptions{fontsize=12pt} +\usepackage[letterpaper]{geometry} +\usepackage{addliga} +\usepackage{fontspec} +\setmainfont[Numbers={OldStyle}]{Domitian} +\setmonofont[Scale=1.05]{CMU Typewriter Text Variable Width} +\usepackage[protrusion=true,expansion=true]{microtype} +\usepackage{realscripts} +\usepackage[main=english,,latin.classical,nil]{babel} +\newcommand{\laterm}[1]{\foreignlanguage{latin}{\textit{#1}}} +\deffootnote[1.5em]{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark.}} +\usepackage[pdfusetitle,pdfa,hidelinks]{hyperref}\hypersetup{pdfencoding=unicode} +\usepackage{hologo} +\title{\normalfont\texttt{addliga}\\\large (version 1.0)} +%\date{} +\author{Daniel~Benjamin Miller\\\large(\texttt{dbmiller@dbmiller.org})} +\begin{document} +\maketitle +The \texttt{fontspec}\footnote{\url{https://ctan.org/pkg/fontspec}} package enables use of OpenType and TrueType fonts in \hologo{LuaLaTeX} and \hologo{XeLaTeX}. Though legacy TrueType fonts often include at least a partial set of ligatures, these, unlike those of OpenType fonts, are not accessible through \texttt{fontspec}'s usual mechanisms. The \texttt{addliga} package is designed to allow easy use of basic TrueType font ligatures in \hologo{LuaLaTeX} by adding an OpenType \texttt{liga} lookup table to the loaded font. (\laterm{Nota bene}: not all fonts will contain ligature support; \texttt{addliga} only adds support for existing ligatures.) The ligatures supported are ff, fi, ffi, fl and ffl. This package has been contributed to the public domain. +\section*{Basic Usage} +\begin{verbatim} +\documentclass{…} +\usepackage{addliga} +\usepackage{fontspec} +\setmainfont{…} +\begin{document} +… +\end{document} +\end{verbatim} +\end{document} \ No newline at end of file diff --git a/Master/texmf-dist/tex/lualatex/addliga/addliga.sty b/Master/texmf-dist/tex/lualatex/addliga/addliga.sty new file mode 100644 index 00000000000..e9a3d0892db --- /dev/null +++ b/Master/texmf-dist/tex/lualatex/addliga/addliga.sty @@ -0,0 +1,22 @@ +% !TEX TS-program = lualatex +% addliga.sty +% Version 1.0 +% Adds ligatures to TrueType fonts in LuaLaTeX +% Written 2019 by Daniel Benjamin Miller +% Contributed to the Public Domain +% No Rights Reserved +\ProvidesPackage{addliga}[2019/04/30 addliga 1.0] +\directlua{ + fonts.handlers.otf.addfeature{ + name = "liga", + type = "ligature", + data = { + ['ff']={"f","f"}, + ['fi']={"f","i"}, + ['ffi']={"f","f","i"}, + ['fl']={"f","l"}, + ['ffl']={"f","f","l"}, + }, + } +} +\endinput \ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 0f2be5dbc02..f8743311191 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -27,7 +27,7 @@ my @TLP_working = qw( academicons accanthis accfonts achemso acmart acmconf acro acronym acroterm active-conf actuarialangle actuarialsymbol - addfont addlines adfathesis adforn adhocfilelist adigraph + addfont addliga addlines adfathesis adforn adhocfilelist adigraph adjmulticol adfsymbols adjustbox adobemapping adrconv adtrees advdate ae aecc aeguill afparticle afthesis diff --git a/Master/tlpkg/tlpsrc/addliga.tlpsrc b/Master/tlpkg/tlpsrc/addliga.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc b/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc index efa7a5cce72..eabf8444315 100644 --- a/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc @@ -5,6 +5,7 @@ longdesc as an embedded scripting and extension language. http://luatex.org/ # depend collection-basic # +depend addliga depend auto-pst-pdf-lua depend bezierplot depend checkcites -- cgit v1.2.3