From 23b4da05696ec0c3a4c48083209ae37facd09acc Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 2 Jan 2014 21:28:37 +0100 Subject: [*] remove tests directory Testing has been done using the test repo exclusively for quite some time now: https://bitbucket.org/phg/lua-la-tex-tests. Also, the ``mktests`` script partially automates testing of the font management. This changeset is just codifying the facts. If any of the tests deserves preservation please file an issue for inclusion into the test repo. Thanks! --- tests/alternate_sub.tex | 15 --- tests/anum.tex | 17 ---- tests/caseinsensitive.tex | 6 -- tests/color.tex | 10 -- tests/fallback.tex | 6 -- tests/featurefiles.tex | 5 - tests/font_patch.tex | 28 ------ tests/fontconfig_conf_reading.tex | 8 -- tests/fontencoding.tex | 4 - tests/fonts.conf.test | 25 ----- tests/fontspec_lookup.ltx | 41 --------- tests/frac.tex | 4 - tests/fullname.tex | 15 --- tests/itlc.tex | 5 - tests/lookups.tex | 20 ---- tests/marks.tex | 10 -- tests/math.tex | 56 ------------ tests/microtypography.tex | 36 -------- tests/opbd.fea | 187 -------------------------------------- tests/opbd.tex | 35 ------- tests/opticalsize.tex | 13 --- tests/pln-aux-1.tex | 55 ----------- tests/pln-aux-2.tex | 102 --------------------- tests/pln-aux-3.tex | 39 -------- tests/pln-aux-4.tex | 41 --------- tests/pln-request-4-slashed.tex | 12 --- tests/pln-request-5-cached.tex | 18 ---- tests/pln-subfont-1.tex | 12 --- tests/pln-tfm.tex | 10 -- tests/sanitize_color.tex | 8 -- tests/systemfonts.tex | 50 ---------- tests/texligatures.tex | 7 -- tests/tfmofm.ltx | 6 -- tests/tkrn.fea | 8 -- tests/weirdfonts.tex | 15 --- tests/zero_width_marks_lig.tex | 16 ---- 36 files changed, 945 deletions(-) delete mode 100644 tests/alternate_sub.tex delete mode 100644 tests/anum.tex delete mode 100644 tests/caseinsensitive.tex delete mode 100644 tests/color.tex delete mode 100644 tests/fallback.tex delete mode 100644 tests/featurefiles.tex delete mode 100644 tests/font_patch.tex delete mode 100644 tests/fontconfig_conf_reading.tex delete mode 100644 tests/fontencoding.tex delete mode 100644 tests/fonts.conf.test delete mode 100644 tests/fontspec_lookup.ltx delete mode 100644 tests/frac.tex delete mode 100644 tests/fullname.tex delete mode 100644 tests/itlc.tex delete mode 100644 tests/lookups.tex delete mode 100644 tests/marks.tex delete mode 100644 tests/math.tex delete mode 100644 tests/microtypography.tex delete mode 100644 tests/opbd.fea delete mode 100644 tests/opbd.tex delete mode 100644 tests/opticalsize.tex delete mode 100644 tests/pln-aux-1.tex delete mode 100644 tests/pln-aux-2.tex delete mode 100644 tests/pln-aux-3.tex delete mode 100644 tests/pln-aux-4.tex delete mode 100644 tests/pln-request-4-slashed.tex delete mode 100644 tests/pln-request-5-cached.tex delete mode 100644 tests/pln-subfont-1.tex delete mode 100644 tests/pln-tfm.tex delete mode 100644 tests/sanitize_color.tex delete mode 100644 tests/systemfonts.tex delete mode 100644 tests/texligatures.tex delete mode 100644 tests/tfmofm.ltx delete mode 100644 tests/tkrn.fea delete mode 100644 tests/weirdfonts.tex delete mode 100644 tests/zero_width_marks_lig.tex diff --git a/tests/alternate_sub.tex b/tests/alternate_sub.tex deleted file mode 100644 index 862c665..0000000 --- a/tests/alternate_sub.tex +++ /dev/null @@ -1,15 +0,0 @@ -\input luaotfload.sty -\font\0=name:Scheherazade:mode=node;script=arab;salt=0 at 10pt -\font\1=name:Scheherazade:mode=node;script=arab;salt=1 at 10pt -\font\2=name:Scheherazade:mode=node;script=arab;salt=2 at 10pt -\0 \char"06DD -\1 \char"06DD -\2 \char"06DD - -\font\0=name:Scheherazade:mode=base;script=arab;salt=0 at 10pt -\font\1=name:Scheherazade:mode=base;script=arab;salt=1 at 10pt -\font\2=name:Scheherazade:mode=base;script=arab;salt=2 at 10pt -\0 \char"06DD -\1 \char"06DD -\2 \char"06DD -\bye diff --git a/tests/anum.tex b/tests/anum.tex deleted file mode 100644 index 773955f..0000000 --- a/tests/anum.tex +++ /dev/null @@ -1,17 +0,0 @@ -\input luaotfload.sty - -\font\testd={name:amiri:script=arab;language=dflt;+anum} -\font\testa={name:amiri:script=arab;language=ara;+anum} -\font\testp={name:amiri:script=arab;language=far;+anum} -\font\tests={name:amiri:script=arab;language=snd;+anum} -\font\testu={name:amiri:script=arab;language=urd;+anum} -\font\testx={name:amiri:script=arab;language=xxx;+anum} - -\def\test{\luatextextdir TRT ضرب 0123456789} -\testd \test\par -\testa \test\par -\testp \test\par -\tests \test\par -\testu \test\par -\testx \test\par -\bye diff --git a/tests/caseinsensitive.tex b/tests/caseinsensitive.tex deleted file mode 100644 index 0e9fb5f..0000000 --- a/tests/caseinsensitive.tex +++ /dev/null @@ -1,6 +0,0 @@ -\input luaotfload.sty - -\font\termesr ={tex gyre termes:+liga} at 10pt - -\termesr fi fl ffi ffl ff\par -\bye diff --git a/tests/color.tex b/tests/color.tex deleted file mode 100644 index 188889c..0000000 --- a/tests/color.tex +++ /dev/null @@ -1,10 +0,0 @@ -\input luaotfload.sty - -\font\testa=file:lmroman10-regular.otf:color=FF0000BB;+trep at 10pt -\font\testb=file:lmroman10-regular.otf:color=FFFF0099;+trep at 10pt -\font\testc=file:lmroman10-regular.otf:color=559922;+trep at 12pt - -\testa FF0000BB \par -\testb FFFF0099 \par -\testc 559922 \par -\bye diff --git a/tests/fallback.tex b/tests/fallback.tex deleted file mode 100644 index 71baea9..0000000 --- a/tests/fallback.tex +++ /dev/null @@ -1,6 +0,0 @@ -\input luaotfload.sty -\font\testa={XITS Math} -\font\testb={XITS Math/B} -\testa text\par -\testb text\par -\bye diff --git a/tests/featurefiles.tex b/tests/featurefiles.tex deleted file mode 100644 index c1a3044..0000000 --- a/tests/featurefiles.tex +++ /dev/null @@ -1,5 +0,0 @@ -\input luaotfload.sty -\font\pagella=texgyrepagella-regular:mode=node;featurefile=tkrn.fea;+tkrn - -\pagella TEX -\bye diff --git a/tests/font_patch.tex b/tests/font_patch.tex deleted file mode 100644 index d3bba07..0000000 --- a/tests/font_patch.tex +++ /dev/null @@ -1,28 +0,0 @@ -\input{luaotfload.sty} -\directlua { - local function patch(fontdata) - local mc = fontdata.MathConstants - local em = fontdata.parameters.units - local sz = fontdata.parameters.size - if fontdata.psname == "CambriaMath" and mc then - mc.DisplayOperatorMinHeight = 2800 / em * sz - end - end - %% part of luaotfload-auxiliary - %luatexbase.add_to_callback( - %"luaotfload.patch_font", - %patch, - %"luaotfload.aux.patch_cambria_domh") -} - -\font\4={name:Cambria Math:mode=base;script=math} at 10pt -\font\5={name:Cambria Math:mode=base;script=math;ssty=1} at 7pt -\font\6={name:Cambria Math:mode=node;script=math;ssty=2} at 5pt -\textfont4=\4 \scriptfont4=\5 \scriptscriptfont4=\6 - -$$ -\Umathchar"1"4`∫ -\Umathchar"1"4`∑ -$$ -\bye - diff --git a/tests/fontconfig_conf_reading.tex b/tests/fontconfig_conf_reading.tex deleted file mode 100644 index 66ab377..0000000 --- a/tests/fontconfig_conf_reading.tex +++ /dev/null @@ -1,8 +0,0 @@ -\directlua{ - config = { lualibs = { load_extended = false } } - require"lualibs" - require"luaotfload-database" - local results = fonts.names.read_fonts_conf{"fonts.conf.test"} - inspect(results) -} -\bye diff --git a/tests/fontencoding.tex b/tests/fontencoding.tex deleted file mode 100644 index bbbbac6..0000000 --- a/tests/fontencoding.tex +++ /dev/null @@ -1,4 +0,0 @@ -\input luaotfload.sty -\font\tenrm=ec-lmr10 -\tenrm -\bye diff --git a/tests/fonts.conf.test b/tests/fonts.conf.test deleted file mode 100644 index 3c3e132..0000000 --- a/tests/fonts.conf.test +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - fontconfig/fonts.conf - test 1 ok - test 2 oktest 3 ok - test 4 oktest 5 ok - - /etc/fonts/conf.d - /etc/fonts/fonts.conf - /etc/fonts/conf.d/69-unifont.conf - diff --git a/tests/fontspec_lookup.ltx b/tests/fontspec_lookup.ltx deleted file mode 100644 index 6645427..0000000 --- a/tests/fontspec_lookup.ltx +++ /dev/null @@ -1,41 +0,0 @@ -\documentclass[a5paper,12pt]{scrartcl} -\usepackage{fontspec} -%% -------------------------------------------------------------------- -%% weirdness ahead -%% -------------------------------------------------------------------- -\setmainfont - [Numbers=Lining, - BoldFont={TeX Gyre Pagella Bold}, - BoldItalicFont={TeX Gyre Termes BoldItalic}] - {EB Garamond} -%% -------------------------------------------------------------------- - -%% -------------------------------------------------------------------- -%% excerpt from samples/knuth.tex -%% -------------------------------------------------------------------- -\def\knuth{% - Thus, I came to the conclusion that the designer of a new - system must not only be the implementer and first - large--scale user; the designer should also write the first - user manual. - - The separation of any of these four components would have - hurt \TeX\ significantly. If I had not participated fully in - all these activities, literally hundreds of improvements - would never have been made, because I would never have - thought of them or perceived why they were important. - -} - -%% -------------------------------------------------------------------- -%% main -%% -------------------------------------------------------------------- -\begin{document} - - \section{regular} {\rmfamily\upshape\knuth} - \section{bold face} {\rmfamily\bfseries\knuth} - \section{italic} {\rmfamily\itshape\knuth} - \section{slanted} {\rmfamily\slshape\knuth} - \section{bold italic} {\rmfamily\bfseries\itshape\knuth} - -\end{document} diff --git a/tests/frac.tex b/tests/frac.tex deleted file mode 100644 index c6a4868..0000000 --- a/tests/frac.tex +++ /dev/null @@ -1,4 +0,0 @@ -\input luaotfload.sty -\font\testa={name:Linux Libertine O:script=latn;+frac} at 10pt -\testa 1/8 -\bye diff --git a/tests/fullname.tex b/tests/fullname.tex deleted file mode 100644 index 78cf4d0..0000000 --- a/tests/fullname.tex +++ /dev/null @@ -1,15 +0,0 @@ -\input luaotfload.sty - -\font\testa={LM Roman Slanted 10 Regular} at 10pt -\font\testb={LM Roman 9 Italic} at 10pt -\font\testc={TeX Gyre Termes Bold} at 25pt -% Also testing with absolute filename, please change the path according to your -% system -\font\testd=file:/usr/share/texmf/fonts/opentype/public/lm/lmmono10-italic.otf - -\testa abcd ABCD\par -\testb abcd ABCD\par -\testc abcd ABCD\par -\testd abcd ABCD\par - -\bye diff --git a/tests/itlc.tex b/tests/itlc.tex deleted file mode 100644 index bff0c39..0000000 --- a/tests/itlc.tex +++ /dev/null @@ -1,5 +0,0 @@ -\input luaotfload.sty -\font\testa={Latin Modern Roman:script=latn} at 10pt -\font\testb={Latin Modern Roman/I:script=latn} at 10pt -\testa ({\testb f\/}) -\bye diff --git a/tests/lookups.tex b/tests/lookups.tex deleted file mode 100644 index 8b03d8e..0000000 --- a/tests/lookups.tex +++ /dev/null @@ -1,20 +0,0 @@ -\input luaotfload.sty -%% lookup font by name (involving database) -\font\first=name:iwonaregular at 42pt -%% lookup font by file name (kpse) -\font\second=file:antpoltltsemiexpd-bolditalic.otf at 42pt -%% lookup font by name, with style in slash notation -\font\third={name:Antykwa torunska/I} at 42pt -%% unspecified lookup; in definers.read: -%% - first it falls back to “file” -%% - empty “method” field triggers fallback to “name” -%% - names.resolve -> kpse.lookup -> hit! -\font\fourth=iwona at 42pt - -{\first foo \endgraf} -{\second bar \endgraf} -{\third baz \endgraf} -{\fourth xyzzy \endgraf} - -\bye - diff --git a/tests/marks.tex b/tests/marks.tex deleted file mode 100644 index 9dcf460..0000000 --- a/tests/marks.tex +++ /dev/null @@ -1,10 +0,0 @@ -\input luaotfload.sty -\font\test={file:GenBasR.ttf:script=latn} -%font\test={name:AntykwaTorunska:script=latn} -\test ä\quad Ä - -\test a\char"0308 %% -> combining dihaeresis -\quad A\char"0308 %% -> combining dihaeresis -\quad j\char"0323 %% -> combining dot below - -\bye diff --git a/tests/math.tex b/tests/math.tex deleted file mode 100644 index a2615f1..0000000 --- a/tests/math.tex +++ /dev/null @@ -1,56 +0,0 @@ -% start out with plain.tex, -% having TFM-based CM fonts preloaded in \fam 0...3 - -% load OT math font in \fam 4 -\input luaotfload.sty -\font\4={name:XITS Math:mode=base;script=math} at 10pt -\font\5={name:XITS Math:mode=base;script=math;ssty=1} at 7pt -\font\6={name:XITS Math:mode=node;script=math;ssty=2} at 5pt -\textfont4=\4 \scriptfont4=\5 \scriptscriptfont4=\6 - -\Umathcode`a="7"4"1D44E -\Umathcode`b="7"4"1D44F -\Umathcode`x="7"4"1D465 -\Umathcode`y="7"4"1D466 -\Umathcode`A="7"4"1D434 -\Umathcode`B="7"4"1D435 -\Umathcode`C="7"4"1D436 -\Umathcode`P="7"4"1D443 -\Umathcode`3="7"4`3 -\Umathcode`+="2"4`+ -\Umathcode`=="3"4`= -\Umathcode`(="4"4`( -\Umathcode`)="5"4`) - -\Udelcode`(="4`( -\Udelcode`)="4`) - -$$\Uradical "4 "221A {x}$$ -$$\Uroot "4 "221A {3}{x^3+y^3}$$ - -$$ - \Udelimiterover "4 "23DE {a+b} -+ \Udelimiterunder "4 "23DF {a+b} = C -$$ - -$$ - \Umathaccent "0 "4 "23DE {a+b} -$$ - -$$ -A \mathrel{\Uoverdelimiter "4 "2192 {a+b}} -B \mathrel{\Uunderdelimiter "4 "2192 {a+b}} -$$ - -$$ -{a \overwithdelims() b} -$$ - - -\centerline{$ a \overwithdelims() b $} - -$$ -P(a) -$$ - -\bye diff --git a/tests/microtypography.tex b/tests/microtypography.tex deleted file mode 100644 index 99deb5f..0000000 --- a/tests/microtypography.tex +++ /dev/null @@ -1,36 +0,0 @@ -\input luaotfload.sty - -\pdfprotrudechars2 \pdfadjustspacing2 - -\font\testa=file:texgyretermes-regular:script=latn at 12pt -\font\testb=file:texgyretermes-regular:script=latn;protrusion=default at 12pt - -\testa We thrive in information thick worlds because of our -marvelous and everyday capacity to select, edit, -single out, structure, highlight, group, pair, merge, -harmonize, synthesize, focus, organize, condense, -reduce, boil down, choose, categorize, catalog, classify, -list, abstract, scan, look into, idealize, isolate, -discriminate, distinguish, screen, pigeonhole, pick over, -sort, integrate, blend, inspect, filter, lump, skip, -smooth, chunk, average, approximate, cluster, aggregate, -outline, summarize, itemize, review, dip into, -flip through, browse, glance into, leaf through, skim, -refine, enumerate, glean, synopsize, winnow the wheat -from the chaff and separate the sheep from the goats.\par - -\testb We thrive in information thick worlds because of our -marvelous and everyday capacity to select, edit, -single out, structure, highlight, group, pair, merge, -harmonize, synthesize, focus, organize, condense, -reduce, boil down, choose, categorize, catalog, classify, -list, abstract, scan, look into, idealize, isolate, -discriminate, distinguish, screen, pigeonhole, pick over, -sort, integrate, blend, inspect, filter, lump, skip, -smooth, chunk, average, approximate, cluster, aggregate, -outline, summarize, itemize, review, dip into, -flip through, browse, glance into, leaf through, skim, -refine, enumerate, glean, synopsize, winnow the wheat -from the chaff and separate the sheep from the goats.\par - -\bye diff --git a/tests/opbd.fea b/tests/opbd.fea deleted file mode 100644 index 54f687a..0000000 --- a/tests/opbd.fea +++ /dev/null @@ -1,187 +0,0 @@ -languagesystem DFLT dlft; -languagesystem grek dflt; -languagesystem latn dflt; -languagesystem latn AZE; -languagesystem latn CRT; -languagesystem latn MOL; -languagesystem latn NLD; -languagesystem latn PLK; -languagesystem latn ROM; -languagesystem latn TRK; - -feature rtbd { - lookupflag 0; - pos \exclam <100 0 0 0>; - pos \percent <100 0 0 0>; - pos \ampersand <100 0 0 0>; - pos \parenright <300 0 0 0>; - pos \asterisk <200 0 0 0>; - pos \plus <250 0 0 0>; - pos \comma <500 0 0 0>; - pos \hyphen <500 0 0 0>; - pos \period <700 0 0 0>; - pos \slash <300 0 0 0>; - pos \one <100 0 0 0>; - pos \seven <50 0 0 0>; - pos \colon <500 0 0 0>; - pos \semicolon <500 0 0 0>; - pos \question <200 0 0 0>; - pos \at <50 0 0 0>; - pos \A <50 0 0 0>; - pos \K <50 0 0 0>; - pos \L <50 0 0 0>; - pos \T <50 0 0 0>; - pos \V <50 0 0 0>; - pos \W <50 0 0 0>; - pos \X <50 0 0 0>; - pos \Y <50 0 0 0>; - pos \k <50 0 0 0>; - pos \p <50 0 0 0>; - pos \r <50 0 0 0>; - pos \v <50 0 0 0>; - pos \w <50 0 0 0>; - pos \x <50 0 0 0>; - pos \y <70 0 0 0>; - pos \asciitilde <250 0 0 0>; - pos \Agrave <50 0 0 0>; - pos \Aacute <50 0 0 0>; - pos \Acircumflex <50 0 0 0>; - pos \Atilde <50 0 0 0>; - pos \Adieresis <50 0 0 0>; - pos \Aring <50 0 0 0>; - pos \Amacron <50 0 0 0>; - pos \Abreve <50 0 0 0>; - pos \Aogonek <50 0 0 0>; - pos \Kcommaaccent <50 0 0 0>; - pos \kcommaaccent <50 0 0 0>; - pos \Lacute <50 0 0 0>; - pos \Lcommaaccent <50 0 0 0>; - pos \Lcaron <50 0 0 0>; - pos \Ldot <50 0 0 0>; - pos \Lslash <50 0 0 0>; - pos \racute <50 0 0 0>; - pos \rcommaaccent <50 0 0 0>; - pos \rcaron <50 0 0 0>; - pos \wcircumflex <50 0 0 0>; - pos \ycircumflex <70 0 0 0>; - pos \Acaron <50 0 0 0>; - pos \Aringacute <50 0 0 0>; - pos \Adblgrave <50 0 0 0>; - pos \rdblgrave <50 0 0 0>; - pos \uni021A <50 0 0 0>; - pos \Alpha <50 0 0 0>; - pos \Kappa <50 0 0 0>; - pos \Lambda <50 0 0 0>; - pos \Tau <50 0 0 0>; - pos \Ldotbelow <50 0 0 0>; - pos \Ldotbelowmacron <50 0 0 0>; - pos \rdotaccent <50 0 0 0>; - pos \rdotbelow <50 0 0 0>; - pos \rdotbelowmacron <50 0 0 0>; - pos \Tdotbelow <50 0 0 0>; - pos \Tlinebelow <50 0 0 0>; - pos \wgrave <50 0 0 0>; - pos \wacute <50 0 0 0>; - pos \wdieresis <50 0 0 0>; - pos \Ahookabove <50 0 0 0>; - pos \Acircumflexacute <50 0 0 0>; - pos \Acircumflexgrave <50 0 0 0>; - pos \Acircumflexhookabove <50 0 0 0>; - pos \Acircumflextilde <50 0 0 0>; - pos \Acircumflexdotbelow <50 0 0 0>; - pos \Abreveacute <50 0 0 0>; - pos \Abrevegrave <50 0 0 0>; - pos \Abrevehookabove <50 0 0 0>; - pos \Abrevetilde <50 0 0 0>; - pos \Abrevedotbelow <50 0 0 0>; - pos \ygrave <70 0 0 0>; - pos \ydotbelow <70 0 0 0>; - pos \yhookabove <70 0 0 0>; - pos \ytilde <70 0 0 0>; - pos \endash <300 0 0 0>; - pos \emdash <200 0 0 0>; - pos \quoteleft <700 0 0 0>; - pos \quoteright <700 0 0 0>; - pos \quotedblleft <400 0 0 0>; - pos \quotedblright <400 0 0 0>; - pos \Aogonekacute <50 0 0 0>; - pos \L_uni0303 <50 0 0 0>; - pos \T_uni0303 <50 0 0 0>; - pos \T_uni0308 <50 0 0 0>; -} rtbd; - -feature lfbd { - lookupflag 0; - pos \percent <-100 0 -100 0>; - pos \ampersand <-50 0 -50 0>; - pos \parenleft <-100 0 -100 0>; - pos \asterisk <-200 0 -200 0>; - pos \plus <-250 0 -250 0>; - pos \hyphen <-400 0 -400 0>; - pos \slash <-200 0 -200 0>; - pos \one <-100 0 -100 0>; - pos \at <-50 0 -50 0>; - pos \A <-50 0 -50 0>; - pos \J <-50 0 -50 0>; - pos \T <-50 0 -50 0>; - pos \V <-50 0 -50 0>; - pos \W <-50 0 -50 0>; - pos \X <-50 0 -50 0>; - pos \Y <-50 0 -50 0>; - pos \p <-50 0 -50 0>; - pos \q <-50 0 -50 0>; - pos \v <-50 0 -50 0>; - pos \w <-50 0 -50 0>; - pos \x <-50 0 -50 0>; - pos \y <-50 0 -50 0>; - pos \asciitilde <-200 0 -200 0>; - pos \Agrave <-50 0 -50 0>; - pos \Aacute <-50 0 -50 0>; - pos \Acircumflex <-50 0 -50 0>; - pos \Atilde <-50 0 -50 0>; - pos \Adieresis <-50 0 -50 0>; - pos \Aring <-50 0 -50 0>; - pos \Amacron <-50 0 -50 0>; - pos \Abreve <-50 0 -50 0>; - pos \Aogonek <-50 0 -50 0>; - pos \Jcircumflex <-50 0 -50 0>; - pos \wcircumflex <-50 0 -50 0>; - pos \ycircumflex <-50 0 -50 0>; - pos \Acaron <-50 0 -50 0>; - pos \Aringacute <-50 0 -50 0>; - pos \Adblgrave <-50 0 -50 0>; - pos \uni021A <-50 0 -50 0>; - pos \Alpha <-50 0 -50 0>; - pos \Lambda <-50 0 -50 0>; - pos \Tau <-50 0 -50 0>; - pos \Tdotbelow <-50 0 -50 0>; - pos \Tlinebelow <-50 0 -50 0>; - pos \wgrave <-50 0 -50 0>; - pos \wacute <-50 0 -50 0>; - pos \wdieresis <-50 0 -50 0>; - pos \Ahookabove <-50 0 -50 0>; - pos \Acircumflexacute <-50 0 -50 0>; - pos \Acircumflexgrave <-50 0 -50 0>; - pos \Acircumflexhookabove <-50 0 -50 0>; - pos \Acircumflextilde <-50 0 -50 0>; - pos \Acircumflexdotbelow <-50 0 -50 0>; - pos \Abreveacute <-50 0 -50 0>; - pos \Abrevegrave <-50 0 -50 0>; - pos \Abrevehookabove <-50 0 -50 0>; - pos \Abrevetilde <-50 0 -50 0>; - pos \Abrevedotbelow <-50 0 -50 0>; - pos \ygrave <-50 0 -50 0>; - pos \ydotbelow <-50 0 -50 0>; - pos \yhookabove <-50 0 -50 0>; - pos \ytilde <-50 0 -50 0>; - pos \endash <-300 0 -300 0>; - pos \emdash <-200 0 -200 0>; - pos \quoteleft <-500 0 -500 0>; - pos \quoteright <-500 0 -500 0>; - pos \quotedblleft <-300 0 -300 0>; - pos \quotedblright <-300 0 -300 0>; - pos \Aogonekacute <-50 0 -50 0>; - pos \J_uni030C.cap <-50 0 -50 0>; - pos \T_uni0303 <-50 0 -50 0>; - pos \T_uni0308 <-50 0 -50 0>; -} lfbd; diff --git a/tests/opbd.tex b/tests/opbd.tex deleted file mode 100644 index 1a838cd..0000000 --- a/tests/opbd.tex +++ /dev/null @@ -1,35 +0,0 @@ -\input luaotfload.sty - -\pdfprotrudechars2 \pdfadjustspacing2 - -\font\testa=file:texgyrepagella-regular:script=latn at 12pt -\font\testb=file:texgyrepagella-regular:mode=node;script=latn;protrusion=yes;featurefile=opbd.fea;+opbd at 12pt - -\testa We thrive in information thick worlds because of our -marvelous and everyday capacity to select, edit, -single out, structure, highlight, group, pair, merge, -harmonize, synthesize, focus, organize, condense, -reduce, boil down, choose, categorize, catalog, classify, -list, abstract, scan, look into, idealize, isolate, -discriminate, distinguish, screen, pigeonhole, pick over, -sort, integrate, blend, inspect, filter, lump, skip, -smooth, chunk, average, approximate, cluster, aggregate, -outline, summarize, itemize, review, dip into, -flip through, browse, glance into, leaf through, skim, -refine, enumerate, glean, synopsize, winnow the wheat -from the chaff and separate the sheep from the goats.\par - -\testb We thrive in information thick worlds because of our -marvelous and everyday capacity to select, edit, -single out, structure, highlight, group, pair, merge, -harmonize, synthesize, focus, organize, condense, -reduce, boil down, choose, categorize, catalog, classify, -list, abstract, scan, look into, idealize, isolate, -discriminate, distinguish, screen, pigeonhole, pick over, -sort, integrate, blend, inspect, filter, lump, skip, -smooth, chunk, average, approximate, cluster, aggregate, -outline, summarize, itemize, review, dip into, -flip through, browse, glance into, leaf through, skim, -refine, enumerate, glean, synopsize, winnow the wheat -from the chaff and separate the sheep from the goats.\par -\bye diff --git a/tests/opticalsize.tex b/tests/opticalsize.tex deleted file mode 100644 index 53b1bb8..0000000 --- a/tests/opticalsize.tex +++ /dev/null @@ -1,13 +0,0 @@ -\input luaotfload.sty - -\font\testa={Latin Modern Roman/S=12} at 10pt -\font\testb={Latin Modern Roman} at 5pt -\font\testc={Latin Modern Roman} at 10pt -\font\testd={Latin Modern Roman/S=15} at 10pt -\font\teste={Latin Modern Roman/S=3} at 10pt -\testa abcd ABCD \par -\testb abcd ABCD \par -\testc abcd ABCD \par -\testd abcd ABCD \par -\teste abcd ABCD \par -\bye diff --git a/tests/pln-aux-1.tex b/tests/pln-aux-1.tex deleted file mode 100644 index a228be0..0000000 --- a/tests/pln-aux-1.tex +++ /dev/null @@ -1,55 +0,0 @@ -\input luaotfload.sty - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% usage for glyph tests -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\baselineskip=17.28pt - -\font\iwonaregular=name:iwona at 14.4pt -\font\lmromanten=file:lmroman10-regular.otf at 14.4pt -\font\cmuregular=file:cmunrm.otf at 14.4pt - -%% wrap tests in macros (could move to style file) -\def\doifglyphelse#1#2#3{% - \directlua{ - local codepoint = tonumber('\string#1') - if not codepoint then codepoint = unicode.utf8.byte('\string#1') end - if luaotfload.aux.font_has_glyph(font.current(), codepoint) then - tex.sprint('\string#2') - else - tex.sprint('\string#3') - end - }% -} - -\def\doifglyph#1#2{\doifglyphelse{#1}{#2}{}} - -%% no otf font loaded yet, so both fail: -first: -\doifglyphelse{a}{true}{false} -\doifglyph {a}{yep} - -%% load lm and try repeat: -\lmromanten -second: -\doifglyphelse{a}{true}{false} -\doifglyph {a}{yep} - -%% let’s test some more free fonts -\def\checkglyphset{% - \doifglyphelse ö{ö}{nope} - \doifglyphelse п{п}{nope} - \doifglyphelse α{α}{nope} - \doifglyphelse Æ{Æ}{nope} - \doifglyphelse ą{ą}{nope} - \doifglyphelse ř{ř}{nope} - \doifglyphelse ˝{˝}{nope} - \doifglyphelse ѩ{ѩ}{nope} - \endgraf -} - -\iwonaregular \checkglyphset -\lmromanten \checkglyphset -\cmuregular \checkglyphset - -\bye diff --git a/tests/pln-aux-2.tex b/tests/pln-aux-2.tex deleted file mode 100644 index 62192a5..0000000 --- a/tests/pln-aux-2.tex +++ /dev/null @@ -1,102 +0,0 @@ -\input luaotfload.sty -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% script, features, and language -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\font\minionregular=file:MinionPro_Regular.otf at 9pt -\font\biolinum=file:LinBiolinum_R.otf at 9pt -\font\cmuregular=file:cmunrm.otf at 9pt - -%% (1) luaotfload.aux.provides_script(font_id, script) -%% #1 defined font; #2 OT script tag -\def\providesscript[#1][#2]{% - \bgroup#1% - let’s see whether \detokenize{#1} has script #2: - \directlua{ - local aux = luaotfload.aux - local succ = aux.provides_script(font.current(), [[#2]]) - if succ then tex.sprint"true" else tex.sprint"false" end - }% - \egroup - \endgraf% -} - -\providesscript [\minionregular][latn]%% Latin -\providesscript [\biolinum][latn] -\providesscript [\cmuregular][latn] -\providesscript [\minionregular][cyrl]%% Cyrillic -\providesscript [\biolinum][cyrl] -\providesscript [\cmuregular][cyrl] -\providesscript [\minionregular][tibt]%% Tibetan -\providesscript [\biolinum][tibt] -\providesscript [\cmuregular][tibt] - -\hrule % -------------------------------------------------------------- - -%% (2) luaotfload.aux.provides_language(font_id, script, language) -%% #1 defined font; #2 OT script tag; #3 OT language tag -\def\provideslanguage[#1][#2][#3]{% - \bgroup#1% - let’s see whether \detokenize{#1} supports language #3 for script #2: - \directlua{ - local aux = luaotfload.aux - local succ = aux.provides_language(font.current(), [[#2]], [[#3]]) - if succ then tex.sprint"true" else tex.sprint"false" end - }% - \egroup - \endgraf% -} - -\provideslanguage [\minionregular][latn][nld]%% Latin/Dutch -\provideslanguage [\biolinum][latn][nld] -\provideslanguage [\cmuregular][latn][nld] -\provideslanguage [\minionregular][latn][deu]%% Latin/German -\provideslanguage [\biolinum][latn][deu] -\provideslanguage [\cmuregular][latn][deu] -\provideslanguage [\minionregular][cyrl][rus]%% Cyrillic/Russian -\provideslanguage [\biolinum][cyrl][rus] -\provideslanguage [\cmuregular][cyrl][rus] -\provideslanguage [\minionregular][cyrl][klm]%% Cyrillic/Kalmyk -\provideslanguage [\biolinum][cyrl][klm] -\provideslanguage [\cmuregular][cyrl][klm] -\provideslanguage [\minionregular][cyrl][srb]%% Cyrillic/Serbian -\provideslanguage [\biolinum][cyrl][srb] -\provideslanguage [\cmuregular][cyrl][srb] -\provideslanguage [\minionregular][tibt][tib]%% Tibetan -\provideslanguage [\biolinum][tibt][tib] -\provideslanguage [\cmuregular][tibt][tib] - -\hrule % -------------------------------------------------------------- - -%% (3) luaotfload.aux.provides_feature( -%% font_id, script, language, feature) -%% #1 defined font; #2 OT script tag; -%% #3 OT language tag; #4 OT feature -\def\providesfeature[#1][#2][#3][#4]{%this is getting ridiculous - \bgroup#1% - let’s see whether \detokenize{#1} supports feature #4 for the - combination of script #2 with language #3: - \directlua{ - local aux = luaotfload.aux - local succ = aux.provides_feature( - font.current(), [[#2]], [[#3]], [[#4]]) - if succ then tex.sprint"true" else tex.sprint"false" end - }% - \egroup - \endgraf% -} - -\providesfeature [\minionregular][latn][nld][liga]%% Latin/Dutch -\providesfeature [\biolinum][latn][nld][liga] -\providesfeature [\cmuregular][latn][nld][liga] -\providesfeature [\minionregular][latn][deu][liga]%% Latin/German -\providesfeature [\biolinum][latn][deu][liga] -\providesfeature [\cmuregular][latn][deu][liga] -\providesfeature [\minionregular][cyrl][srb][liga]%% Cyrillic/Serbian -\providesfeature [\biolinum][cyrl][srb][liga] -\providesfeature [\cmuregular][cyrl][srb][liga] -\providesfeature [\minionregular][tibt][tib][liga]%% Tibetan -\providesfeature [\biolinum][tibt][tib][liga] -\providesfeature [\cmuregular][tibt][tib][liga] - -\bye diff --git a/tests/pln-aux-3.tex b/tests/pln-aux-3.tex deleted file mode 100644 index 12a80cf..0000000 --- a/tests/pln-aux-3.tex +++ /dev/null @@ -1,39 +0,0 @@ -\input luaotfload.sty - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% math dimension getter -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\font\xitsmath=file:xits-math.otf -\font\cambriamath=file:cambria.ttc(1) - -\font\main=file:Iwona-Regular.otf at 12pt\main - -\directlua{ - local aux = luaotfload.aux - local test_a = function (fontname, dimension) - tex.sprint( - "(", fontname, " (", dimension, " ", - aux.get_math_dimension(fontname, dimension), - [[))\endgraf ]]) - end - - local test_b = function (fontname, dimension) - aux.sprint_math_dimension(fontname, dimension) - tex.print[[\endgraf ]] - end - - test_a("xitsmath", "AxisHeight") - test_a("xitsmath", "RadicalVerticalGap") - test_a("cambriamath", "StackTopShiftUp") - test_a("cambriamath", "FractionNumeratorGapMin") - - test_b("xitsmath", "AxisHeight") - test_b("xitsmath", "RadicalVerticalGap") - test_b("cambriamath", "StackTopShiftUp") - test_b("cambriamath", "FractionNumeratorGapMin") -} - -foo bar baz - -\bye diff --git a/tests/pln-aux-4.tex b/tests/pln-aux-4.tex deleted file mode 100644 index 80ffc0b..0000000 --- a/tests/pln-aux-4.tex +++ /dev/null @@ -1,41 +0,0 @@ -\input luaotfload.sty - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% unicode character mappings -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\font\ptserifregular = file:PTF55F.ttf \ptserifregular - -%% here we map the function luaotfload.aux.name_of_slot -%% on a short text, printing a list of letters, their -%% code points and names (as specified in the Adobe -%% Glyph List). - -\directlua{ - local aux = luaotfload.aux - local cbk = function (str) - if string.match(str, "^EOF") then - luatexbase.remove_from_callback("process_input_buffer", "weird") - return [[the end!]] - end - local res = { } - for chr in string.utfcharacters(str) do - local val = unicode.utf8.byte(chr) - local line = chr .. " <> " .. tostring(val) - line = line .. " <> " .. (aux.name_of_slot(val) or "") - res[\string#res+1] = line - end - return table.concat(res, [[\endgraf]]) - end - - luatexbase.add_to_callback("process_input_buffer", cbk, "weird") -} - -Я узнал что у меня -Есть огромная семья -И тропинка и лесок -В поле каждый колосок - -EOF - -\bye diff --git a/tests/pln-request-4-slashed.tex b/tests/pln-request-4-slashed.tex deleted file mode 100644 index 5e7d99e..0000000 --- a/tests/pln-request-4-slashed.tex +++ /dev/null @@ -1,12 +0,0 @@ -\ifdefined\directlua\input luaotfload.sty\fi -\font\iwona =iwona at 20pt -\font\iwonabold =iwona/b at 20pt -\font\iwonaitalic =iwona/i at 20pt -\font\iwonabolditalic =iwona/bi at 20pt - -\def\test{foo bar baz \endgraf} -{\iwona \test} -{\iwonabold \test} -{\iwonaitalic \test} -{\iwonabolditalic \test} -\bye diff --git a/tests/pln-request-5-cached.tex b/tests/pln-request-5-cached.tex deleted file mode 100644 index 8ba4a5e..0000000 --- a/tests/pln-request-5-cached.tex +++ /dev/null @@ -1,18 +0,0 @@ -\ifdefined\directlua - \directlua{config = config or { luaotfload = { } } - config.luaotfload.resolver = "cached" - config.luaotfload.loglevel = 5 } - \input luaotfload.sty -\fi - -\font\iwona =name:iwona at 20pt -\font\iwonabold =name:iwona/b at 20pt -\font\iwonaitalic =name:iwona/i at 20pt -\font\iwonabolditalic =name:iwona/bi at 20pt - -\def\test{foo bar baz \endgraf} -{\iwona \test} -{\iwonabold \test} -{\iwonaitalic \test} -{\iwonabolditalic \test} -\bye diff --git a/tests/pln-subfont-1.tex b/tests/pln-subfont-1.tex deleted file mode 100644 index fb8e1e7..0000000 --- a/tests/pln-subfont-1.tex +++ /dev/null @@ -1,12 +0,0 @@ -\ifdefined\directlua\input luaotfload.sty\fi -%% This requires the Cambria fonts from MS. -\directlua{ - inspect(fontloader.info"cambria.ttc") -} -%% Here we load both subfonts in the collection -%% with the not-quite documented subfont syntax. -\font\subfontone="file:cambria.ttc(0)" at 42pt -\font\subfonttwo="file:cambria.ttc(1)" at 42pt -\subfontone foo bar baz \endgraf -\subfonttwo foo bar baz \endgraf -\bye diff --git a/tests/pln-tfm.tex b/tests/pln-tfm.tex deleted file mode 100644 index 16ae41a..0000000 --- a/tests/pln-tfm.tex +++ /dev/null @@ -1,10 +0,0 @@ -\ifdefined\directlua\input luaotfload.sty \fi -%% TFM’s can be loaded with a file: request ... -\font\antykwatorunska="file:rm-anttr" -%% or with an anonymous request, like in þe olde TeX: -\font\antykwatorunskabcap=ec-anttbcap -\font\lmromanten={file:ec-lmr10} at 10pt -\antykwatorunska foo bar -\antykwatorunskabcap baz xyzzy -\lmromanten Donde, está, la biblioteca. Me llamo T-Bone La araña discoteca. -\bye diff --git a/tests/sanitize_color.tex b/tests/sanitize_color.tex deleted file mode 100644 index fe95d37..0000000 --- a/tests/sanitize_color.tex +++ /dev/null @@ -1,8 +0,0 @@ -\input luaotfload.sty -\font\testa={name:Latin Modern Roman:color=0000ff99f} at 10pt -\font\testb={name:Latin Modern Roman:color=0000ff9} at 10pt -\font\testc={name:Latin Modern Roman:color=0000f} at 10pt -\testa test\par -\testb test\par -\testc test\par -\bye diff --git a/tests/systemfonts.tex b/tests/systemfonts.tex deleted file mode 100644 index af08509..0000000 --- a/tests/systemfonts.tex +++ /dev/null @@ -1,50 +0,0 @@ -\input luaotfload.sty - -\font\termesr ={TeX Gyre Termes:+liga} at 10pt -\font\termesb ={TeX Gyre Termes/B:+liga} at 10pt -\font\termesi ={TeX Gyre Termes/I:+liga} at 10pt -\font\termesbi ={TeX Gyre Termes/BI:+liga} at 10pt -\font\termesib ={TeX Gyre Termes/IB:+liga} at 10pt -\font\termesicu={TeX Gyre Termes/ICU/B:+liga} at 10pt -\font\termesaat={TeX Gyre Termes/AAT/IB:+liga} at 10pt -\font\termess ={TeX Gyre Termes/ICU/S=10:+liga} at 10pt -\font\dsans ={DejaVu Sans:+liga} at 10pt -\font\dsansi ={DejaVu Sans/I:+liga} at 10pt -\font\dsansb ={DejaVu Sans/B:+liga} at 10pt -\font\dsansib ={DejaVu Sans/IB:+liga} at 10pt -\font\dsansextr={DejaVu Sans/Extra Light:+liga} at 10pt -\font\dsansecnd={DejaVu Sans/Condensed:+liga} at 10pt -\font\lmr ={Latin Modern Roman:+liga} at 10pt -\font\lmf ={Latin Modern Roman/S=5:+liga} at 10pt -\font\lmb ={Latin Modern Roman/B:+liga} at 10pt -\font\lmi ={Latin Modern Roman/I:+liga} at 10pt -\font\lmbi ={Latin Modern Roman/BI:+liga} at 10pt -\font\lms ={Latin Modern Roman Slanted:+liga} at 10pt -\font\lmltn ={Latin Modern Roman:script=latn} at 10pt -%% get this font here: -%% http://sourceforge.net/projects/arabeyes/files/kacst_fonts/kacst_one_5.0.tar.bz2/download -\font\arab ={KacstOne:mode=node;script=arab} at 10pt - -\termesr fi fl ffi ffl ff\par -\termesb fi fl ffi ffl ff\par -\termesi fi fl ffi ffl ff\par -\termesbi fi fl ffi ffl ff\par -\termesib fi fl ffi ffl ff\par -\termesicu fi fl ffi ffl ff\par -\termesaat fi fl ffi ffl ff\par -\termess fi fl ffi ffl ff\par -\dsans fi fl ffi ffl ff\par -\dsansi fi fl ffi ffl ff\par -\dsansb fi fl ffi ffl ff\par -\dsansib fi fl ffi ffl ff\par -\dsansextr fi fl ffi ffl ff\par -\dsansecnd fi fl ffi ffl ff\par -\lmr fi fl ffi ffl ff\par -\lmf fi fl ffi ffl ff\par -\lmb fi fl ffi ffl ff\par -\lmi fi fl ffi ffl ff\par -\lmbi fi fl ffi ffl ff\par -\lms fi fl ffi ffl ff\par -\lmltn fi fl ffi ffl ff\par -\leavevmode\arab\luatextextdir TRT بِسْمِ الله الرَّحْمنِ الرحيم\par -\bye diff --git a/tests/texligatures.tex b/tests/texligatures.tex deleted file mode 100644 index 8317ee1..0000000 --- a/tests/texligatures.tex +++ /dev/null @@ -1,7 +0,0 @@ -\input luaotfload.sty - -\font\testa={file:lmroman10-regular:mode=base;script=latn;+tlig} at 10pt -\font\testb={file:lmroman10-regular:mode=node;script=latn;+tlig} at 10pt -\testa ``fi `fl' ffi--ffl---ff'' !` ?` "\par -\testb ``fi `fl' ffi--ffl---ff'' !` ?` "\par -\bye diff --git a/tests/tfmofm.ltx b/tests/tfmofm.ltx deleted file mode 100644 index 0f9f904..0000000 --- a/tests/tfmofm.ltx +++ /dev/null @@ -1,6 +0,0 @@ -\documentclass{article} -\usepackage{luaotfload} - -\begin{document} -Hello \(1+1=\sqrt{4}\) -\end{document} diff --git a/tests/tkrn.fea b/tests/tkrn.fea deleted file mode 100644 index c83927d..0000000 --- a/tests/tkrn.fea +++ /dev/null @@ -1,8 +0,0 @@ -languagesystem DFLT dflt; -languagesystem latn dflt; - -feature tkrn { - lookupflag 0; - pos E X -125; - pos T <0 0 -166 0> E <0 -235 0 0>; -} tkrn; diff --git a/tests/weirdfonts.tex b/tests/weirdfonts.tex deleted file mode 100644 index 9cbf8ac..0000000 --- a/tests/weirdfonts.tex +++ /dev/null @@ -1,15 +0,0 @@ -%% non-standard fonts deserve an extra test file -\documentclass{scrartcl} -\usepackage{fontspec} -%% ···································································· -%% libertine monospace -%% ------------------- -%% real-world example from: http://tex.stackexchange.com/q/110566 -%% causing database lookups to fail; addressed in luaotfload since -%% https://github.com/phi-gamma/luaotfload/commit/4d0d2c19ab36d4918a72041a087fbcb451ac8c52 -\setmonofont{Linux Libertine Mono O} -%% ···································································· - -\begin{document} - foo {\ttfamily bar} baz -\end{document} diff --git a/tests/zero_width_marks_lig.tex b/tests/zero_width_marks_lig.tex deleted file mode 100644 index 2c6dba9..0000000 --- a/tests/zero_width_marks_lig.tex +++ /dev/null @@ -1,16 +0,0 @@ -\input luaotfload.sty - -% https://bugs.freedesktop.org/attachment.cgi?id=72363 -\font\testa=file:TestLig.ttf:script=tibt;+ccmp+abvs+blws+kern at 10pt - -\testa གཚོའི་ཁིའུ་ཨཱཿཀ - -% good result for the first part: -% https://bugs.freedesktop.org/attachment.cgi?id=72365 -% for the second part, the two circles shoud appear clearlybefore the last -% letter, not mixed with it - -% see http://lists.freedesktop.org/archives/harfbuzz/2013-April/003101.html -% for some technical details. - -\bye -- cgit v1.2.3