mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
parent
85c390efde
commit
a13d4637bf
46
PowerEditor/Test/FunctionList/latex/unitTest
Normal file
46
PowerEditor/Test/FunctionList/latex/unitTest
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
\documentclass[12pt]{article}
|
||||||
|
\usepackage{lingmacros}
|
||||||
|
\usepackage{tree-dvips}
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\section*{Notes for My Paper}
|
||||||
|
|
||||||
|
Don't forget to include examples of topicalization.
|
||||||
|
They look like this:
|
||||||
|
|
||||||
|
{\small
|
||||||
|
\enumsentence{Topicalization from sentential subject:\\
|
||||||
|
\shortex{7}{a John$_i$ [a & kltukl & [el &
|
||||||
|
{\bf l-}oltoir & er & ngii$_i$ & a Mary]]}
|
||||||
|
{ & {\bf R-}clear & {\sc comp} &
|
||||||
|
{\bf IR}.{\sc 3s}-love & P & him & }
|
||||||
|
{John, (it's) clear that Mary loves (him).}}
|
||||||
|
}
|
||||||
|
|
||||||
|
\subsection*{How to handle topicalization}
|
||||||
|
|
||||||
|
I'll just assume a tree structure like (\ex{1}).
|
||||||
|
|
||||||
|
{\small
|
||||||
|
\enumsentence{Structure of A$'$ Projections:\\ [2ex]
|
||||||
|
\begin{tabular}[t]{cccc}
|
||||||
|
& \node{i}{CP}\\ [2ex]
|
||||||
|
\node{ii}{Spec} & &\node{iii}{C$'$}\\ [2ex]
|
||||||
|
&\node{iv}{C} & & \node{v}{SAgrP}
|
||||||
|
\end{tabular}
|
||||||
|
\nodeconnect{i}{ii}
|
||||||
|
\nodeconnect{i}{iii}
|
||||||
|
\nodeconnect{iii}{iv}
|
||||||
|
\nodeconnect{iii}{v}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
\subsection*{Mood}
|
||||||
|
|
||||||
|
Mood changes when there is a topic, as well as when
|
||||||
|
there is WH-movement. \emph{Irrealis} is the mood when
|
||||||
|
there is a non-subject topic or WH-phrase in Comp.
|
||||||
|
\emph{Realis} is the mood when there is a subject topic
|
||||||
|
or WH-phrase.
|
||||||
|
|
||||||
|
\end{document}
|
@ -0,0 +1 @@
|
|||||||
|
{"leaves":["\\begin{document}","\\section*{Notes for My Paper}","\\subsection*{How to handle topicalization}","\\begin{tabular}[t]{cccc}","\\subsection*{Mood}"],"root":"unitTest"}
|
46
PowerEditor/Test/FunctionList/tex/unitTest
Normal file
46
PowerEditor/Test/FunctionList/tex/unitTest
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
\documentclass[12pt]{article}
|
||||||
|
\usepackage{lingmacros}
|
||||||
|
\usepackage{tree-dvips}
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\section*{Notes for My Paper}
|
||||||
|
|
||||||
|
Don't forget to include examples of topicalization.
|
||||||
|
They look like this:
|
||||||
|
|
||||||
|
{\small
|
||||||
|
\enumsentence{Topicalization from sentential subject:\\
|
||||||
|
\shortex{7}{a John$_i$ [a & kltukl & [el &
|
||||||
|
{\bf l-}oltoir & er & ngii$_i$ & a Mary]]}
|
||||||
|
{ & {\bf R-}clear & {\sc comp} &
|
||||||
|
{\bf IR}.{\sc 3s}-love & P & him & }
|
||||||
|
{John, (it's) clear that Mary loves (him).}}
|
||||||
|
}
|
||||||
|
|
||||||
|
\subsection*{How to handle topicalization}
|
||||||
|
|
||||||
|
I'll just assume a tree structure like (\ex{1}).
|
||||||
|
|
||||||
|
{\small
|
||||||
|
\enumsentence{Structure of A$'$ Projections:\\ [2ex]
|
||||||
|
\begin{tabular}[t]{cccc}
|
||||||
|
& \node{i}{CP}\\ [2ex]
|
||||||
|
\node{ii}{Spec} & &\node{iii}{C$'$}\\ [2ex]
|
||||||
|
&\node{iv}{C} & & \node{v}{SAgrP}
|
||||||
|
\end{tabular}
|
||||||
|
\nodeconnect{i}{ii}
|
||||||
|
\nodeconnect{i}{iii}
|
||||||
|
\nodeconnect{iii}{iv}
|
||||||
|
\nodeconnect{iii}{v}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
\subsection*{Mood}
|
||||||
|
|
||||||
|
Mood changes when there is a topic, as well as when
|
||||||
|
there is WH-movement. \emph{Irrealis} is the mood when
|
||||||
|
there is a non-subject topic or WH-phrase in Comp.
|
||||||
|
\emph{Realis} is the mood when there is a subject topic
|
||||||
|
or WH-phrase.
|
||||||
|
|
||||||
|
\end{document}
|
@ -0,0 +1 @@
|
|||||||
|
{"leaves":["\\begin{document}","\\section*{Notes for My Paper}","\\subsection*{How to handle topicalization}","\\begin{tabular}[t]{cccc}","\\subsection*{Mood}"],"root":"unitTest"}
|
32
PowerEditor/installer/functionList/latex.xml
Normal file
32
PowerEditor/installer/functionList/latex.xml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!-- ==========================================================================\
|
||||||
|
| To learn how to make your own language parser, please check the following
|
||||||
|
| link: https://npp-user-manual.org/docs/function-list/
|
||||||
|
\=========================================================================== -->
|
||||||
|
<NotepadPlus>
|
||||||
|
<functionList>
|
||||||
|
<parser
|
||||||
|
displayName="LaTeX Syntax"
|
||||||
|
id ="latex_function"
|
||||||
|
commentExpr="(?x)
|
||||||
|
(%.*?$) # Comment
|
||||||
|
"
|
||||||
|
|
||||||
|
>
|
||||||
|
<function
|
||||||
|
mainExpr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`)
|
||||||
|
(?im-s) # ignore case, ^ and $ match start/end of line, dot doesn't match newline
|
||||||
|
\\(begin|
|
||||||
|
part\*?|
|
||||||
|
chapter\*?|
|
||||||
|
section\*?|
|
||||||
|
subsection\*?|
|
||||||
|
subsubsection\*?|
|
||||||
|
paragraph\*?|
|
||||||
|
subparagraph\*?)
|
||||||
|
{.*}"
|
||||||
|
>
|
||||||
|
</function>
|
||||||
|
</parser>
|
||||||
|
</functionList>
|
||||||
|
</NotepadPlus>
|
32
PowerEditor/installer/functionList/tex.xml
Normal file
32
PowerEditor/installer/functionList/tex.xml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!-- ==========================================================================\
|
||||||
|
| To learn how to make your own language parser, please check the following
|
||||||
|
| link: https://npp-user-manual.org/docs/function-list/
|
||||||
|
\=========================================================================== -->
|
||||||
|
<NotepadPlus>
|
||||||
|
<functionList>
|
||||||
|
<parser
|
||||||
|
displayName="TeX Syntax"
|
||||||
|
id ="tex_function"
|
||||||
|
commentExpr="(?x)
|
||||||
|
(%.*?$) # Comment
|
||||||
|
"
|
||||||
|
|
||||||
|
>
|
||||||
|
<function
|
||||||
|
mainExpr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`)
|
||||||
|
(?im-s) # ignore case, ^ and $ match start/end of line, dot doesn't match newline
|
||||||
|
\\(begin|
|
||||||
|
part\*?|
|
||||||
|
chapter\*?|
|
||||||
|
section\*?|
|
||||||
|
subsection\*?|
|
||||||
|
subsubsection\*?|
|
||||||
|
paragraph\*?|
|
||||||
|
subparagraph\*?)
|
||||||
|
{.*}"
|
||||||
|
>
|
||||||
|
</function>
|
||||||
|
</parser>
|
||||||
|
</functionList>
|
||||||
|
</NotepadPlus>
|
@ -203,11 +203,26 @@ SectionGroup "Function List Files" functionListComponent
|
|||||||
File ".\functionList\hollywood.xml"
|
File ".\functionList\hollywood.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
|
${MementoSection} "Toml" Toml_FL
|
||||||
|
SetOutPath "$INSTDIR\functionList"
|
||||||
|
File ".\functionList\toml.xml"
|
||||||
|
${MementoSectionEnd}
|
||||||
|
|
||||||
|
${MementoSection} "TeX" Tex_FL
|
||||||
|
SetOutPath "$INSTDIR\functionList"
|
||||||
|
File ".\functionList\tex.xml"
|
||||||
|
${MementoSectionEnd}
|
||||||
|
|
||||||
|
${MementoSection} "LaTeX" Latex_FL
|
||||||
|
SetOutPath "$INSTDIR\functionList"
|
||||||
|
File ".\functionList\latex.xml"
|
||||||
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "NppExecScript" NppExecScript_FL
|
${MementoSection} "NppExecScript" NppExecScript_FL
|
||||||
SetOutPath "$INSTDIR\functionList"
|
SetOutPath "$INSTDIR\functionList"
|
||||||
File ".\functionList\nppexec.xml"
|
File ".\functionList\nppexec.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
SetOverwrite off
|
SetOverwrite off
|
||||||
${MementoSection} "Override Map" OverrideMap_FL
|
${MementoSection} "Override Map" OverrideMap_FL
|
||||||
SetOutPath "$INSTDIR\functionList"
|
SetOutPath "$INSTDIR\functionList"
|
||||||
@ -368,7 +383,19 @@ SectionGroup un.functionListComponent
|
|||||||
|
|
||||||
Section un.Hollywood_FL
|
Section un.Hollywood_FL
|
||||||
Delete "$INSTDIR\functionList\hollywood.xml"
|
Delete "$INSTDIR\functionList\hollywood.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
Section un.Toml_FL
|
||||||
|
Delete "$INSTDIR\functionList\toml.xml"
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section un.Tex_FL
|
||||||
|
Delete "$INSTDIR\functionList\tex.xml"
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section un.Latex_FL
|
||||||
|
Delete "$INSTDIR\functionList\latex.xml"
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
Section un.NppExecScript_FL
|
Section un.NppExecScript_FL
|
||||||
Delete "$INSTDIR\functionList\nppexec.xml"
|
Delete "$INSTDIR\functionList\nppexec.xml"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user