Debian Codegraph @

texmf-dist/doc/lualatex/selnolig/selnolig-english-test.tex

raw
1 % !TEX TS-program = lualatex
2 \documentclass[english]{article}
3
4 % Test program: Apply the 'selnolig' package, with
5 % 'english' language option set, to a list of English
6 % words which contain various character pairs that
7 % should not be ligated. The list of English words is
8 % in the companion file 'selnolig-english-wordlist.tex'.
9 %
10 % Author: Mico Loretan (loretan dot mico at gmail dot com)
11 % Date: 2015/10/26
12
13 % Check first that we're running Lua(La)TeX.
14 \usepackage{ifluatex}
15 \ifluatex\else
16 \typeout{===============================================}
17 \typeout{The file selnolig-english-test.tex must be }
18 \typeout{compile using lualatex. Exiting immediately. }
19 \typeout{===============================================}
20 \endinput
21 \fi
22
23 \usepackage[margin=1in]{geometry}
24
25
26
27 \usepackage{fancyvrb}
28
29 \usepackage{fontspec}
30
31 \defaultfontfeatures{%
32 Ligatures={TeX,Common,Rare},
33 Numbers = OldStyle}
34
35 \setmainfont[ FeatureFile= gpp-ft.fea,
36 ItalicFont = {Garamond Premier Pro Italic},
37 BoldItalicFont = {Garamond Premier Pro Italic},
38 BoldFont = {Garamond Premier Pro}]
39 {Garamond Premier Pro}
40
41 \setmonofont[Scale=MatchLowercase,
42 Ligatures=NoCommon]
43 {Consolas}
44
45 \newfontfamily\ebg[
46 Ligatures = {TeX,Common,Rare,Historic},
47 ItalicFont = {EB Garamond 12 Italic}]
48 {EB Garamond 12 Regular}
49
50 \usepackage[document]{ragged2e}
51 \usepackage{babel}
52 \usepackage[hdlig,broadf]{selnolig}
53 \debugon
54
55 %%%\usepackage{showhyphens}
56
57 \setlength\parindent{0pt}
58 \parskip=0.3\baselineskip
59 \usepackage{multicol}
60 \setlength\columnseprule{.4pt}
61 \title{selnolig-english-test\\ (Package version: \selnoligpackageversion; \selnoligpackagedate)}
62 \author{\null}
63 \date{}
64
65 \righthyphenmin=2 % set this to either 3 (normal) or 2
66
67
68 \begin{document}
69 \maketitle
70
71 \begin{tabular}{@{}*{10}{l}}
72 Appearance of ``common'' ligatures
73 &ff &fi &fl &ffi &ffl &ft & \mbox{fj} & {\ebg\mbox{fk}}
74 & \emph{fr}\\
75 Sample words with these ligatures
76 &off &fit &fly &office &baffle &often & fjord
77 &{\ebg Kafka} &\emph{from}\\
78 \end{tabular}
79
80 \bigskip
81
82 \begin{tabular}{@{}*{15}{l}}
83 Appearance of ``discretionary'' (``rare'') ligatures
84 & st & ct & sp
85 & \emph{as} & {\ebg\em es} & \emph{is, th, us}
86 & \emph{at} & \emph{et} & {\ebg\emph{sk}}& \emph{ll} & \emph{\uselig{ij}, st, ta}\\
87 Sample words with these ligatures
88 & stay & act & spy
89 & \emph{was} & {\ebg\em sees}& \emph{\uselig{isthmus}} & \emph{cat} & \emph{net}
90 & {\ebg\emph{ask}} & \emph{ill} & \emph{rijsttafel}\\
91 \end{tabular}
92
93
94 \bigskip
95
96 \makeatletter
97 \begin{tabular}{@{}ll}
98 Package options and other parameters:\\
99 \ \ \ \ \ Extent of suppressing f-ligatures: basic or broadf? & \if@broadfset broadf \else basic \fi \\
100 \ \ \ \ \ Value of \texttt{\textbackslash righthyphenmin} parameter & \the\righthyphenmin\\
101 \end{tabular}
102 \makeatother
103
104 \bigskip
105
106 \begin{multicols}{2}
107 \input selnolig-english-wordlist
108 \end{multicols}
109 \end{document}