Skip to content

Commit

Permalink
updated cwls (#3357)
Browse files Browse the repository at this point in the history
* Update tagpdf.cwl

* add commands from 2023-11-1 release

* Update hyperref.cwl

* Update pst-solides3d.cwl

* Update class-mitthesis.cwl

* Update class-llncs.cwl

* Add files via upload

* Update completion.qrc
  • Loading branch information
mbertucci47 authored Nov 3, 2023
1 parent ffb9cca commit 195dc42
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 35 deletions.
1 change: 1 addition & 0 deletions completion.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
<file>completion/auto-pst-pdf.cwl</file>
<file>completion/auto-pst-pdf-lua.cwl</file>
<file>completion/autopuncitems.cwl</file>
<file>completion/autotype.cwl</file>
<file>completion/auxhook.cwl</file>
<file>completion/avremu.cwl</file>
<file>completion/awesomebox.cwl</file>
Expand Down
25 changes: 25 additions & 0 deletions completion/autotype.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# autotype package
# Matthew Bertucci 2023/10/31 for v0.4

#include:luatex

\autotypelangoptions{language}{options%keyvals}

#keyvals:\autotypelangoptions
hyphenation=#default,primary,weighted
mark-hyph=#on,off
ligbreak=#on,off
long-s=#on,off
#endkeyvals

\autotypefontoptions{font}{options%keyvals}

#keyvals:\autotypefontoptions
long-s-codepoint=%<codepoint%>
round-s-codepoint=%<codepoint%>
final-round-s-codepoint=%<codepoint%>
#endkeyvals

\noligbreak{text}
\autotypelongs
\autotyperounds
8 changes: 6 additions & 2 deletions completion/class-llncs.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# llncs class
# Matthew Bertucci 3/27/2022 for v2.21
# Matthew Bertucci 2023/11/03 for v2.23

#include:aliascnt
#include:multicol
Expand Down Expand Up @@ -99,6 +99,9 @@ fleqn
\spnewtheorem{envname}[numbered like]{caption}{cap font}{body font}#N
\spnewtheorem*{envname}{caption}{cap font}{body font}#N

\begin{credits}
\end{credits}

#keyvals:\bibliographystyle#c
splncs04
#endkeyvals
Expand Down Expand Up @@ -128,6 +131,7 @@ splncs04
\contriblistname#*
\corollaryname#*
\definitionname#*
\discintname#*
\examplename#*
\exercisename#*
\fnindent#*
Expand Down Expand Up @@ -184,4 +188,4 @@ splncs04

#ifOption:oribibl
\oribibl#*
#endif
#endif
6 changes: 5 additions & 1 deletion completion/class-mitthesis.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# mitthesis class
# Matthew Bertucci 2023/09/23 for v1.09
# Matthew Bertucci 2023/11/03 for v1.11

#include:class-report
#include:etoolbox
Expand Down Expand Up @@ -30,9 +30,13 @@ twoside
\Acceptor{name}{title%text}{thesis-related position}
\DegreeDate{month}{year}
\ThesisDate{date}
\Tighten
\SignatureBlockSize{fontsize cmd}
\AuthorNameSize{fontsize cmd}
\Squash
\CClicense{license type}{URL}#U
\PDFRightsText#*
\SuppressMonthError#*
\SuppressAcceptorError#*

\begin{nomenclature}
Expand Down
15 changes: 8 additions & 7 deletions completion/hyperref.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#modified Edson 30-12-2010
#modified Denis Bitouz\'e 14-06-2014
#modified muzimuzhi 18 Jan 2020, 8 May 2020, 8 Jul 2020
#modified Matthew Bertucci 4 April 2023 for v7.00w
#modified Matthew Bertucci 31 October 2023 for v7.01d

#include:iftex
#include:keyval
Expand Down Expand Up @@ -207,12 +207,13 @@ nextactionraw={%<PDF code%>}
\AddToDocumentProperties[category]{property}{value}#*
\GetDocumentProperties{property}#*

\MakeLinkTarget{counter}
\MakeLinkTarget[prefix]{counter}
\MakeLinkTarget*{target name}
\NextLinkTarget{target name}
\LinkTargetOn
\LinkTargetOff
## these are now in the format
# \MakeLinkTarget{counter}
# \MakeLinkTarget[prefix]{counter}
# \MakeLinkTarget*{target name}
# \NextLinkTarget{target name}
# \LinkTargetOn
# \LinkTargetOff
\SetLinkTargetFilter{filter code}

\url{URL}#U
Expand Down
72 changes: 57 additions & 15 deletions completion/latex-dev.cwl
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
# latex mode: LaTeX commands (package level)
# dani/2006-02-18
# muzimuzhi/8 Jul 2019
# Matthew Bertucci 2023/06/08 for 2023/06/01 release
# Matthew Bertucci 2023/11/01 release

# commands with big Letters and others
\ActivateGenericHook{hook}#*
\AddToHook{hook}{code}#*
\AddToHook{hook}[label]{code}#*
\AddToHook{hook}{code}#*
\AddToHookNext{hook}{code}#*
\AddToHookNextWithArguments{hook}{code}#*
\AddToHookWithArguments{hook}{code}#*
\AddToHookWithArguments{hook}[label]{code}#*
\AddToHookWithArguments{hook}{code}#*
\AddToNoCaseChangeList{command}#*
\AfterEndEnvironment[label]{environment}{code}#*
\AfterEndEnvironment{environment}{code}#*
\AtBeginDocument{code}#*
\AssignSocketPlug{socket}{socket plug}#*
\AtBeginDocument[label]{code}#*
\AtBeginDocument{code}#*
\AtBeginDvi{code}#*
\AtBeginEnvironment[label]{environment}{code}#*
\AtBeginEnvironment{environment}{code}#*
\AtEndDocument{code}#*
\AtEndDocument[label]{code}#*
\AtEndDocument{code}#*
\AtEndDvi{code}#*
\AtEndEnvironment[label]{environment}{code}#*
\AtEndEnvironment{environment}{code}#*
Expand Down Expand Up @@ -58,6 +59,8 @@
\DebugMarksOn#*
\DebugShipoutsOff#*
\DebugShipoutsOn#*
\DebugSocketsOff#*
\DebugSocketsOn#*
\DeclareCaseChangeEquivalent{cmd}{replacement text}#*d
\DeclareCommandCopy{cmd}{copied cmd%definition}#d
\DeclareCurrentRelease{name}{date}#*
Expand All @@ -81,10 +84,10 @@
\DeclareFontShapeChangeRule{shape1}{shape2}{result1}{result2}#*
\DeclareFontSubstitution{encoding}{family}{series}{shape}#*
\DeclareHookRule{hook}{label1}{relation}{label2}#*
\DeclareKeys{declarations}#*
\DeclareKeys[family]{declarations}#*
\DeclareLowercaseMapping{codepoint}{output}#*
\DeclareKeys{declarations}#*
\DeclareLowercaseMapping[locale]{codepoint}{output}#*
\DeclareLowercaseMapping{codepoint}{output}#*
\DeclareMathAccent{cmd}{type}{sym-font}{slot}#*d
\DeclareMathAlphabet{math-alph%cmd}{encoding}{family}{series}{shape}#*d
\DeclareMathDelimiter{cmd}{type}{sym-font-1}{slot-1}{sym-font-2}{slot-2}#*d
Expand Down Expand Up @@ -118,13 +121,13 @@
\DeclareTextFontCommand{cmd}{font-switches%definition}#*d
\DeclareTextSymbol{cmd}{encoding}{slot}#*d
\DeclareTextSymbolDefault{cmd}{encoding}#*
\DeclareTitlecaseMapping{codepoint}{output}#*
\DeclareTitlecaseMapping[locale]{codepoint}{output}#*
\DeclareTitlecaseMapping{codepoint}{output}#*
\DeclareUnicodeCharacter{hexadecimal}{definition}#*
\DeclareUnknownKeyHandler{code}#*
\DeclareUnknownKeyHandler[family]{code}#*
\DeclareUppercaseMapping{codepoint}{output}#*
\DeclareUnknownKeyHandler{code}#*
\DeclareUppercaseMapping[locale]{codepoint}{output}#*
\DeclareUppercaseMapping{codepoint}{output}#*
\DisableGenericHook{hook}#*
\DisableHook{hook}#*
\DiscardShipoutBox#*
Expand All @@ -134,8 +137,8 @@
\ExpandArgs{spec}#*
\ExplSyntaxOff#*
\ExplSyntaxOn#*
\FirstMark{class%plain}#*
\FirstMark[region]{class%plain}#*
\FirstMark{class%plain}#*
\GenericError{continuation}{message%text}{help location%text}{help info%text}#*
\GenericInfo{continuation}{message%text}#*
\GenericWarning{continuation}{message%text}#*
Expand All @@ -148,20 +151,24 @@
\IfClassAtLeastTF{class}{date}{true code}{false code}#*
\IfClassLoadedTF{class}{true code}{false code}#*
\IfClassLoadedWithOptionsTF{class}{options}{true code}{false code}#*
\IfExplAtLeastTF{date}{true code}{false code}#*
\IfFileAtLeastTF{file}{date}{true code}{false code}#*
\IfFileExists{file}{true code}{false code}#*
\IfFontSeriesContextTF{face}{true code}{false code}#*
\IfFormatAtLeastTF{date}{true code}{false code}#*
\IfHookEmptyTF{hook}{true code}{false code}#*
\IfMarksEqualTF{class%plain}{pos1}{pos2}{true code}{false code}#*
\IfLabelExistTF{label}{true code}{false code}#*
\IfMarksEqualTF[region]{class%plain}{pos1}{pos2}{true code}{false code}#*
\IfMarksEqualTF{class%plain}{pos1}{pos2}{true code}{false code}#*
\IfNoValueF{arg}{ValueCode}
\IfNoValueT{arg}{-NoValue-Code}
\IfNoValueTF{arg}{-NoValue-Code}{ValueCode}
\IfPackageAtLeastTF{package}{date}{true code}{false code}#*
\IfPackageLoadedTF{package}{true code}{false code}#*
\IfPackageLoadedWithOptionsTF{package}{options}{true code}{false code}#*
\IfPDFManagementActiveTF{true code}{false code}#*
\IfPropertyExistTF{property}{true code}{false code}#*
\IfPropertyRecordedTF{label}{property}{true code}{false code}#*
\IfTargetDateBefore{date}{before code}{after code}#*
\IfValueF{arg}{-NoValue-Code}#*
\IfValueT{arg}{ValueCode}#*
Expand All @@ -171,9 +178,11 @@
\InputIfFileExists{file}{true code}{false code}#*i
\InsertMark{class%plain}{text}#*
\LastDeclaredEncoding#*
\LastMark{class%plain}#*
\LastMark[region]{class%plain}#*
\LastMark{class%plain}#*
\LaTeXReleaseInfo#*
\LinkTargetOff#*
\LinkTargetOn#*
\LoadClass[optionlist]{class}#*u
\LoadClass[optionlist]{class}[release]#*u
\LoadClass{class}#*u
Expand All @@ -182,6 +191,10 @@
\LoadClassWithOptions{class}[release]#*u
\LoadFontDefinitionFile{encoding}{family}#*
\LogHook{hook}#*
\LogSocket{socket}#*
\MakeLinkTarget*{target name}#*
\MakeLinkTarget[prefix]{counter}#*
\MakeLinkTarget{counter}#*
\MakeRobust{cmd}#*
\MessageBreak#*
\NeedsTeXFormat{format}#*
Expand All @@ -197,8 +210,12 @@
\NewMirroredHookPair{hook1}{hook2}#*
\NewMirroredHookPairWithArguments{hook1}{hook2}{number}#*
\NewModuleRelease{date}{name}#*
\NewProperty{property%specialDef}{setpoint}{default}{code}#*s#%latexproperties
\NewReversedHook{hook}#*
\NewReversedHookWithArguments{hook}{number}#*
\NewSocket{socket}{number of inputs}#*
\NewSocketPlug{socket}{socket plug}{code}#*
\NextLinkTarget{target name}#*
\OmitIndent#*
\OptionNotUsed#*
\PackageError{package name}{error text%text}{help text%text}#*
Expand Down Expand Up @@ -239,6 +256,10 @@
\RawParEnd#*
\RawShipout#*
\ReadonlyShipoutCounter#*
\RecordProperties{label}{properties%keyvals}#*l
\RefProperty[local default]{label}{property%keyvals}#*r
\RefProperty{label}{property%keyvals}#*r
\RefUndefinedWarn{label}{property%keyvals}#*
\RemoveFromHook{hook}#*
\RemoveFromHook{hook}[label]#*
\RenewCommandCopy{cmd}{copied cmd%definition}
Expand All @@ -254,9 +275,10 @@
\RequirePackageWithOptions{package}[release]#*u
\ReverseBoolean#*
\SetDefaultHookLabel{default label}#*
\SetKeys{keyvals}#*
\SetKeys[family]{keyvals}#*
\SetKeys{keyvals}#*
\SetMathAlphabet{math-alph%cmd}{version}{encoding}{family}{series}{shape}#*d
\SetProperty{property}{setpoint}{default}{code}#*
\SetSymbolFont{sym-font}{version}{encoding}{family}{series}{shape}#*
\ShipoutBox#*
\ShipoutBoxDepth#*
Expand All @@ -266,11 +288,12 @@
\ShowEnvironment{envname}#*
\ShowFloat{identifier}#*
\ShowHook{hook}#*
\ShowSocket{socket}#*
\SplitArgument{number}{tokens}#*
\SplitList{tokens}#*
\TextSymbolUnavailable{arg}#*
\TopMark{class%plain}#*
\TopMark[region]{class%plain}#*
\TopMark{class%plain}#*
\TrimSpaces#*
\UndeclareTextCommand{cmd}{encoding}#*
\UseHook{hook}#*
Expand All @@ -280,9 +303,24 @@
\UseOneTimeHook{hook}#*
\UseOneTimeHookWithArguments{%<hook%>}{%<number%>}{%<arg1%>}%<{arg2}...%>#*
\UseRawInputEncoding#*
\UseSocket{socket}#*
\UseTextAccent{encoding}{cmd}{text}#*
\UseTextSymbol{encoding}{cmd}#*

#keyvals:\RecordProperties#c,\RefProperty#c,\RefUndefinedWarn#c
abspage
page
pagenum
label
title
target
pagetarget
counter
xpos
ypos
%latexproperties
#endkeyvals

# expl3 commands
\ExplFileDate#S
\ExplLoaderFileDate#S
Expand Down Expand Up @@ -626,8 +664,12 @@ debug={%<options%>}
\ltmetaversion#S
\ltparadate#S
\ltparaversion#S
\ltpropertiesdate#S
\ltpropertiesversion#S
\ltshipoutdate#S
\ltshipoutversion#S
\ltsocketsdate#S
\ltsocketsversion#S
\mathalpha#*
\mathgroup#*
\mathhexbox#*
Expand Down
18 changes: 9 additions & 9 deletions completion/pst-solides3d.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pst-solides3d package
# Matthew Bertucci 2/23/2022 for v4.34a
# Matthew Bertucci 2023/11/03 for v4.35

#include:pstricks
#include:pst-node
Expand Down Expand Up @@ -38,10 +38,10 @@
\psResetSolidKeys#*
\gridIIID(x1,y1)(x2,y2)
\gridIIID[options%keyvals](x1,y1)(x2,y2)
\psImage[file=%<imagefile%>]
\psImage[file=%<imagefile%>,%<options%>]
\psImage[file=%<imagefile%>](x,y)
\psImage[file=%<imagefile%>,%<options%>](x,y)
\psImage[filename=%<imagefile%>]
\psImage[filename=%<imagefile%>,%<options%>]
\psImage[filename=%<imagefile%>](x,y)
\psImage[filename=%<imagefile%>,%<options%>](x,y)
\psImage[options%keyvals](x,y)#S
\Normale(radius,longitude,latitude)#*
\addtosolideslistobject{name}
Expand All @@ -60,7 +60,7 @@ showOrigin#true,false
#endkeyvals

#keyvals:\psSolid#c
object=#point,line,vector,plan,grille,cube,cylindre,cylindrecreux,cone,conecreux,tronccone,troncconecreux,sphere,calottesphere,calottespherecreuse,tore,tetrahedron,octahedron,dodecahedron,icosahedron,anneau,prisme,prismecreux,parallelepiped,face,polygonregulier,ruban,surface,surface*,surfaceparametree,pie,fusion,geode,load,offfile,objfile,datfile,new,courbe,vecteur,vecteur3d
object=#point,line,vector,plan,grille,cube,cylindre,cylindrecreux,cone,conecreux,tronccone,troncconecreux,sphere,ellipsoid,calottesphere,calottespherecreuse,tore,tetrahedron,octahedron,dodecahedron,icosahedron,anneau,prisme,prismecreux,parallelepiped,face,polygonregulier,ruban,surface,surface*,surfaceparametree,pie,fusion,geode,load,offfile,objfile,datfile,new,courbe,vecteur,vecteur3d
a=%<length%>
action=#none,draw,draw*,draw**,writesolid,writeobj,writeoff
affinage=#0,1,2,3,all
Expand All @@ -85,7 +85,7 @@ dualreg#true,false
faces={%<faces spec%>}
fcol=%<n1 (col1) n2 (col2) ...%>
fcolor=#%color
file=%<file name%>
filename=%<file name%>
fillcolor=#%color
fontsize=##L
function=#%pstsolides3dfunc
Expand Down Expand Up @@ -244,7 +244,7 @@ Zmin=%<number%>

#keyvals:\psImage#c
divisions=%<integer%>
file=%<imagefile%>
filename=%<imagefile%>
normal=%<x y z%>
origine=%<x y z%>
phi=%<degrees%>
Expand Down Expand Up @@ -319,4 +319,4 @@ Brown#B
Tan#B
Gray#B
Black#B
White#B
White#B
Loading

0 comments on commit 195dc42

Please sign in to comment.