Skip to content

Commit

Permalink
Cwls (#3912)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertucci47 authored Dec 16, 2024
1 parent 50fcb90 commit 011fb1a
Show file tree
Hide file tree
Showing 43 changed files with 819 additions and 97 deletions.
3 changes: 3 additions & 0 deletions completion.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -2267,6 +2267,7 @@
<file>completion/luatexja-zhfonts.cwl</file>
<file>completion/luatexko.cwl</file>
<file>completion/luatextra.cwl</file>
<file>completion/luatikz.cwl</file>
<file>completion/luatodonotes.cwl</file>
<file>completion/luatruthtable.cwl</file>
<file>completion/lua-typo.cwl</file>
Expand Down Expand Up @@ -3813,6 +3814,7 @@
<file>completion/tikzlibraryzx-calculus.cwl</file>
<file>completion/tikzlings-addons.cwl</file>
<file>completion/tikzlings-anteaters.cwl</file>
<file>completion/tikzlings-apes.cwl</file>
<file>completion/tikzlings-bats.cwl</file>
<file>completion/tikzlings-bears.cwl</file>
<file>completion/tikzlings-bees.cwl</file>
Expand All @@ -3825,6 +3827,7 @@
<file>completion/tikzlings-hippos.cwl</file>
<file>completion/tikzlings-koalas.cwl</file>
<file>completion/tikzlings-marmots.cwl</file>
<file>completion/tikzlings-meerkats.cwl</file>
<file>completion/tikzlings-mice.cwl</file>
<file>completion/tikzlings-moles.cwl</file>
<file>completion/tikzlings-owls.cwl</file>
Expand Down
31 changes: 29 additions & 2 deletions completion/babel.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ SuppressWarning#true,false
#repl:"! ¡
#endif

### germanb.ldf v2.14 (and associated austrian.ldf and swissgerman.ldf) ###
### germanb.ldf v2.15 (and associated austrian.ldf and swissgerman.ldf) ###
#ifOption:german
\captionsgerman#*
\dategerman#*
Expand All @@ -1806,6 +1806,9 @@ SuppressWarning#true,false
\ifcapsz#*
\capsztrue#S
\capszfalse#S
\ifnocapsz#*
\nocapsztrue#S
\nocapszfalse#S
\mkngender#*
#repl:"a ä
#repl:"e ë
Expand Down Expand Up @@ -1872,6 +1875,9 @@ SuppressWarning#true,false
\ifcapsz#*
\capsztrue#S
\capszfalse#S
\ifnocapsz#*
\nocapsztrue#S
\nocapszfalse#S
\mkngender#*
#repl:"a ä
#repl:"e ë
Expand Down Expand Up @@ -1938,6 +1944,9 @@ SuppressWarning#true,false
\ifcapsz#*
\capsztrue#S
\capszfalse#S
\ifnocapsz#*
\nocapsztrue#S
\nocapszfalse#S
\mkngender#*
#repl:"a ä
#repl:"e ë
Expand Down Expand Up @@ -1979,7 +1988,7 @@ SuppressWarning#true,false
#repl:"> »
#endif

### ngermanb.ldf v2.13 (and associated naustrian.ldf and nswissgerman.ldf) ###
### ngermanb.ldf v2.15 (and associated naustrian.ldf and nswissgerman.ldf) ###
#ifOption:ngerman
\captionsngerman#*
\datengerman#*
Expand All @@ -2001,6 +2010,12 @@ SuppressWarning#true,false
\glossaryname#*
\mdqon#*
\mdqoff#*
\ifcapsz#*
\capsztrue#S
\capszfalse#S
\ifnocapsz#*
\nocapsztrue#S
\nocapszfalse#S
#repl:"a ä
#repl:"e ë
#repl:"i ï
Expand Down Expand Up @@ -2047,6 +2062,12 @@ SuppressWarning#true,false
\glossaryname#*
\mdqon#*
\mdqoff#*
\ifcapsz#*
\capsztrue#S
\capszfalse#S
\ifnocapsz#*
\nocapsztrue#S
\nocapszfalse#S
#repl:"a ä
#repl:"e ë
#repl:"i ï
Expand Down Expand Up @@ -2093,6 +2114,12 @@ SuppressWarning#true,false
\glossaryname#*
\mdqon#*
\mdqoff#*
\ifcapsz#*
\capsztrue#S
\capszfalse#S
\ifnocapsz#*
\nocapsztrue#S
\nocapszfalse#S
#repl:"a ä
#repl:"e ë
#repl:"i ï
Expand Down
12 changes: 10 additions & 2 deletions completion/class-anima.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# anima class
# Matthew Bertucci 2024/11/21 for v1.0
# Matthew Bertucci 2024/12/15 for v1.1

#include:class-standalone
#include:tikz
Expand All @@ -12,6 +12,11 @@
\zero
\um
\uns{a}{b}{c}
\uns[r]{a}{b}{c}
\uns[r][s]{a}{b}{c}
\uns*{a}{b}{c}
\uns*[r]{a}{b}{c}
\uns*[r][s]{a}{b}{c}
\zeros{a}{b}{c}

\begin{block}{title%text}
Expand Down Expand Up @@ -56,12 +61,15 @@
\animaFrameTitle{t}{n}{c}{y}
\animaBoardDimension{width}{height}
\nFrame
\animaStyle{style}
\animaColor{palette}
\animaTheme{theme}

# not documented
\animaBackgroud#S
\animaColorThemeI#S
\animaColorThemeII#S
\animaExemplo#S
\begin{anima}#S
\begin{anima}[n]#S
\end{anima}#S
\grade#S
8 changes: 5 additions & 3 deletions completion/crimson.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# crimson package
# Matthew Bertucci 9/1/2021
# Matthew Bertucci 2024/12/08

#include:ifxetex
#include:ifluatex
Expand All @@ -9,13 +9,15 @@
#include:mweights

#keyvals:\usepackage/crimson#c
scale=%<factor%>
scaled=%<factor%>
type1
semibold
sb
bold
lining
oldstyle
#endkeyvals

\crimson
\crimsonsemibold
\crimsonoldstyle
\crimsonlining
6 changes: 4 additions & 2 deletions completion/extramarks.cwl
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# extramarks package
# Matthew Bertucci 2022-02-10 for v4.0.1
# Matthew Bertucci 2024/12/15 for v4.5

\firstleftmark
\lastrightmark
\firstrightmark
\lastleftmark
\extramarks{left-mark%text}{right-mark%text}
\extramarksleft{left-mark%text}
\extramarksright{right-mark%text}
\firstleftxmark
\firstrightxmark
\topleftxmark
Expand All @@ -14,4 +16,4 @@
\lastrightxmark
\firstxmark
\lastxmark
\topxmark
\topxmark
3 changes: 2 additions & 1 deletion completion/functional.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# functional package
# Matthew Bertucci 2023/01/07 for v2023A
# Matthew Bertucci 2024/12/14 for v2024B

# Note on cwl: the package author Jianrui Lyu encourages use of spaces between
# args which along with the need to have proper "\newcommand" completion
Expand Down Expand Up @@ -1132,6 +1132,7 @@ tracing#true,false
\clistMapBreak#*
\clistVarSort{arg1}{arg2}#*
\cNoValueTl#*
\colorFromSpec{arg1}{arg2}#*
\expOnce{arg}#*
\expPartial{arg}#*
\fileInputStop#*
Expand Down
13 changes: 10 additions & 3 deletions completion/iftex.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# doncherry/2013-05-11 for iftex v0.2
# Matthew Bertucci 2022-02-06 for v1.0f
# Matthew Bertucci 2024-12-14 for v1.0g

\ifpdftex#*
\ifPDFTeX
\ifxetex#*
Expand All @@ -10,6 +11,8 @@
\ifeTeX
\ifluahbtex#*
\ifLuaHBTeX
\ifluametatex#*
\ifLuaMetaTeX
\ifptex#*
\ifpTeX
\ifuptex#*
Expand All @@ -26,13 +29,15 @@
\ifTexpadTeX
\ifhint#*
\ifHINT
\else
\fi
\ifprote#*
\ifProte

\RequireeTeX
\RequirePDFTeX
\RequireXeTeX
\RequireLuaTeX
\RequireLuaHBTeX
\RequireLuaMetaTeX
\RequirepTeX
\RequireupTeX
\RequirepTeXng
Expand All @@ -41,6 +46,8 @@
\RequireTUTeX
\RequireTexpadTeX
\RequireHINT
\RequireProte

\ifpdf
\pdftrue
\pdffalse
6 changes: 4 additions & 2 deletions completion/linearregression.cwl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# linearregression package
# Matthew Bertucci 2024/06/12
# Matthew Bertucci 2024/12/14

#include:pict2e

\lrfilename{file}
\lraskfilename
\lrcomputation
\lrprint
\lrplot{width}{key1}{key2}{key3}{key4}
\lrnumdigit{number}
\lrplot{width}{key1}{key2}{key3}{key4}
\lrplotparameters{diameter}{height}
4 changes: 4 additions & 0 deletions completion/luatikz.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# luatikz package
# Matthew Bertucci 2024/12/09 for v2.12.0

#include:luacode
3 changes: 1 addition & 2 deletions completion/lucida-otf.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# lucida-otf package
# Matthew Bertucci 2023/01/06 for v0.09
# Matthew Bertucci 2024/12/15 for v0.10

#include:ifxetex
#include:ifluatex
Expand All @@ -8,7 +8,6 @@
#include:luacode

#keyvals:\usepackage/lucida-otf#c
usefilenames#true,false
RM={%<fontspec options%>}
SS={%<fontspec options%>}
TT={%<fontspec options%>}
Expand Down
3 changes: 2 additions & 1 deletion completion/microtype.cwl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# microtype.cwl
# Edson 27-12-2010
# doncherry/2014-10-03 for microtype v. 2.5a
# Matthew Bertucci 2023/03/07 for microtype v3.1
# Matthew Bertucci 2024/12/14 for microtype v3.2

#include:keyval
#include:etoolbox
Expand Down Expand Up @@ -86,6 +86,7 @@ spacing=
outer spacing=
outer kerning=
no ligatures=
features=%<fontspec ligature option%>
#endkeyvals

\SetExtraKerning{fonts}{settings}
Expand Down
12 changes: 9 additions & 3 deletions completion/optex.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# opTeX commands
# Matthew Bertucci 2024/06/29 for v1.15
# Matthew Bertucci 2024/12/13 for v1.16

#include:plaintex
#include:luatex
Expand Down Expand Up @@ -388,6 +388,8 @@
\addto%<\macro%>{%<text%>}
\adef%<⟨char⟩%>{%<body%>}
\afterfi{text}
\afterxfi{text}
\xfipoint
\aheadto%<\macro%>{%<text%>}
\basefilename %<⟨filename⟩%>
\bp{dimen expression}
Expand Down Expand Up @@ -458,6 +460,7 @@
\wterm{text}
\xargs %<⟨what⟩ ⟨token1⟩ ⟨token2⟩ ...%>
\xcasesof %<⟨list of pairs⟩%>
\xloop

## Compatibility with Plain TEX ##
\oldaccents#*
Expand Down Expand Up @@ -715,8 +718,8 @@
\mathclap{formula}#*
\mathrlap{formula}#*
\mathllap{formula}#*
\mathset{options%keyvals}#*
#keyvals:\mathset
\mathsetup{options%keyvals}#*
#keyvals:\mathsetup
dots
interval
vert
Expand Down Expand Up @@ -793,6 +796,7 @@ enablefic
\Merriweather#S
\mono#S
\Montserrat#S
\Neohellenic#S
\NewCM#S
\nocaps#S
\nocond#S
Expand All @@ -804,7 +808,9 @@ enablefic
\osize#S
\Overlock#S
\Pagella#S
\Plex#S
\Poltawski#S
\Raleway#S
\Roboto#S
\sanssemi#S
\Schola#S
Expand Down
3 changes: 1 addition & 2 deletions completion/pageslts.cwl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# pageslts package
# Matthew Bertucci 2024/11/20 for v2.0a
# Matthew Bertucci 2024/12/07 for v2.0b

#include:kvoptions
#include:undolabl

#keyvals:\usepackage/pageslts#c
Expand Down
Loading

0 comments on commit 011fb1a

Please sign in to comment.