From 8fc3039c82d48605b5ca8b2eda3f4fdd755681e1 Mon Sep 17 00:00:00 2001 From: Taco Hoekwater Date: Sun, 23 Aug 2009 11:11:32 +0000 Subject: this is context 2009.08.19 17:10 git-svn-id: svn://tug.org/texlive/trunk@14827 c570f23f-e606-0410-a88d-b1316a301751 --- .../context/data/texworks/TUG/texworks.ini | 45 ++++++++++++++++++++++ .../data/texworks/completion/tw-context.txt | 1 + .../configuration/auto-indent-patterns.txt | 14 +++++++ .../texworks/configuration/delimiter-pairs.txt | 12 ++++++ .../texworks/configuration/smart-quotes-modes.txt | 21 ++++++++++ .../texworks/configuration/syntax-patterns.txt | 42 ++++++++++++++++++++ .../data/texworks/configuration/tag-patterns.txt | 33 ++++++++++++++++ .../texworks/configuration/texworks-config.txt | 22 +++++++++++ .../context/data/texworks/texworks-context.rme | 2 + .../context/data/texworks/texworks-setup.ini | 2 + 10 files changed, 194 insertions(+) create mode 100644 Master/texmf-dist/context/data/texworks/TUG/texworks.ini create mode 100644 Master/texmf-dist/context/data/texworks/completion/tw-context.txt create mode 100644 Master/texmf-dist/context/data/texworks/configuration/auto-indent-patterns.txt create mode 100644 Master/texmf-dist/context/data/texworks/configuration/delimiter-pairs.txt create mode 100644 Master/texmf-dist/context/data/texworks/configuration/smart-quotes-modes.txt create mode 100644 Master/texmf-dist/context/data/texworks/configuration/syntax-patterns.txt create mode 100644 Master/texmf-dist/context/data/texworks/configuration/tag-patterns.txt create mode 100644 Master/texmf-dist/context/data/texworks/configuration/texworks-config.txt create mode 100644 Master/texmf-dist/context/data/texworks/texworks-context.rme create mode 100644 Master/texmf-dist/context/data/texworks/texworks-setup.ini (limited to 'Master/texmf-dist/context/data/texworks') diff --git a/Master/texmf-dist/context/data/texworks/TUG/texworks.ini b/Master/texmf-dist/context/data/texworks/TUG/texworks.ini new file mode 100644 index 00000000000..8ef43433ed1 --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/TUG/texworks.ini @@ -0,0 +1,45 @@ +[General] +launchOption=1 +locale=en +syntaxColoring=ConTeXt TeX +autoIndent=None +wrapLines=false +tabWidth=32 +font="Lucida Console,10,-1,5,50,0,0,0,0,0" +language=None +scaleOption=1 +previewScale=200 +magnifierSize=2 +circularMagnifier=true +defaultEngine=ConTeXt MkIV +binaryPaths= +autoHideConsole=false +openDialogDir= +recentFileList= + +[engines] +size=6 +1\arguments=--autogenerate, --script, context, $fullname +1\name=ConTeXt MkIV +1\program=mtxrun.cmd +1\showPdf=true +2\arguments=--autogenerate, --script, check, $fullname +2\name=ConTeXt MkIV Check +2\program=mtxrun.cmd +2\showPdf=false +3\arguments=--autogenerate, --script, context, --purgeall +3\name=ConTeXt MkIV Purge +3\program=mtxrun.cmd +3\showPdf=false +4\arguments=/c, start, mtxrun.cmd, --autogenerate, --script, server, --auto +4\name=ConTeXt MkIV Server +4\program=cmd.exe +4\showPdf=false +5\name=ConTeXt MkIV Update +5\program=mtxrun.cmd +5\arguments=--autogenerate, --script, update, --force, --make +5\showPdf=false +6\name=ConTeXt MkIV Make +6\program=mtxrun.cmd +6\arguments=--autogenerate, --script, context, --generate, --make +6\showPdf=false diff --git a/Master/texmf-dist/context/data/texworks/completion/tw-context.txt b/Master/texmf-dist/context/data/texworks/completion/tw-context.txt new file mode 100644 index 00000000000..59f52c87057 --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/completion/tw-context.txt @@ -0,0 +1 @@ +%%!TEX encoding = UTF-8 Unicode diff --git a/Master/texmf-dist/context/data/texworks/configuration/auto-indent-patterns.txt b/Master/texmf-dist/context/data/texworks/configuration/auto-indent-patterns.txt new file mode 100644 index 00000000000..e0e331dac0a --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/configuration/auto-indent-patterns.txt @@ -0,0 +1,14 @@ +# TeXworks: Patterns for auto-indent modes + +# Each entry consists of two fields: +# "name" + +# "name" is a name for the mode, which will appear in the Auto-Indent submenu. +# This is enclosed in "double quotes", and followed by whitespace to separate it from . + +# is the regular expression; if this matches the start of the current line when +# is pressed, then the new line will be given the same prefix. The regex is not quoted. +# (Using ^ at the start of the pattern is not strictly necessary, but improves efficiency.) + +# "Whitespace only" ^\s+ +# "TeX comments" ^(\s+|\s*%+\s*) diff --git a/Master/texmf-dist/context/data/texworks/configuration/delimiter-pairs.txt b/Master/texmf-dist/context/data/texworks/configuration/delimiter-pairs.txt new file mode 100644 index 00000000000..1ee56dcd69a --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/configuration/delimiter-pairs.txt @@ -0,0 +1,12 @@ +# TeXworks: Paired delimiters for matching/balancing + +# Each line gives a pair opening and closing delimiters (a single Unicode character each), +# separated by whitespace. + +( ) +[ ] +{ } +« » +‹ › +“ ” +‘ ’ diff --git a/Master/texmf-dist/context/data/texworks/configuration/smart-quotes-modes.txt b/Master/texmf-dist/context/data/texworks/configuration/smart-quotes-modes.txt new file mode 100644 index 00000000000..9f7f95d69bd --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/configuration/smart-quotes-modes.txt @@ -0,0 +1,21 @@ +# TeXworks: "Smart Quotes" modes + +# Each mode has a label (in [square brackets]), followed by lines specifying the +# behavior for each quote keystroke. These lines have three fields: +# +# +# +# separated by whitespace. + +# [TeX ligatures] +# ' ` ' +# " `` '' +# + +[TeX commands] +' \quote{ } +" \quotation{ } + +# [Unicode characters] +# ' ‘ ’ +# " “ ” diff --git a/Master/texmf-dist/context/data/texworks/configuration/syntax-patterns.txt b/Master/texmf-dist/context/data/texworks/configuration/syntax-patterns.txt new file mode 100644 index 00000000000..687fae88723 --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/configuration/syntax-patterns.txt @@ -0,0 +1,42 @@ +# TeXworks: Patterns for syntax coloring + +# Each entry consists of three whitespace-separated fields: +# + +# is a color name from the list defined in the SVG standard; +# see http://www.w3.org/TR/SVG/types.html#ColorKeywords + +# is a flag controlling whether this style is subject to spell-checking; +# "Y" or "y" for yes, "N" (or anything else, actually) for no. + +# is the regular expression to match. + +# Note that order of rules may be important if several rules could match at the same position; +# this is why the generic "control sequence" rule comes AFTER the specific \begin/\end one. + +[ConTeXt TeX] + +darkred N [\$\{\}] + +darkblue N [\<\>\"\'\[\]\=\#] +goldenrod N [\~\`\%\^\&\-\+\|] +darkgreen N \\(?:[\w\@\?\!]+|.) +darkgray N %.* + +[ConTeXt XML] + +# todo: attributes + +darkred N \<\?xml.*\?\> +darkblue N \<\!\-\-.*\-\-\> +darkblue N [\"\'] +goldenrod N \<\?.*\?\> +darkgreen N \<\/*[a-zA-Z\_\-]*\:*[a-zA-Z\_\-]+ +darkgreen N \/\> +darkgreen N \> +darkred N \&[a-zA-Z\_\-]+\; + +# other possibilities to be added.... +# [BibTeX] +# [Metapost] +# etc diff --git a/Master/texmf-dist/context/data/texworks/configuration/tag-patterns.txt b/Master/texmf-dist/context/data/texworks/configuration/tag-patterns.txt new file mode 100644 index 00000000000..7e3837da249 --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/configuration/tag-patterns.txt @@ -0,0 +1,33 @@ +# TeXworks: Patterns for tag recognition + +# Each entry consists of two whitespace-separated fields: +# + +# is the position in the document structure hierarchy, with 1 being the top level. +# is the regular expression to match. + +# If there is a (capture group) in the regex, this is the fragment that will be used +# as the actual tag text; if there is no group, the entire match will be used. + +# Patterns for ConTeXt sectioning commands: + +1 ^\s*\\part\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +2 ^\s*\\chapter\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +2 ^\s*\\title\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +3 ^\s*\\section\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +3 ^\s*\\subject\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +4 ^\s*\\subsection\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +4 ^\s*\\subsubject\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +5 ^\s*\\subsubsection\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +5 ^\s*\\subsubsubject\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +6 ^\s*\\subsubsubsection\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +6 ^\s*\\subsubsubsubject\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +6 ^\s*\\subsubsubsubsection\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} +6 ^\s*\\subsubsubsubsubject\s*(?:\[[^]]*\]\s*)?\{([^}]*)\} + +# Tags with level = 0 are special bookmarks that are separate from the hierarchy +# and collected in a separate flat list. +0 ^\s*\\environment\s+([\S]+) +0 ^\s*\\component\s+([\S]+) +0 ^\s*\\project\s+([\S]+) +0 ^\s*\\product\s+([\S]+) diff --git a/Master/texmf-dist/context/data/texworks/configuration/texworks-config.txt b/Master/texmf-dist/context/data/texworks/configuration/texworks-config.txt new file mode 100644 index 00000000000..b925b28011c --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/configuration/texworks-config.txt @@ -0,0 +1,22 @@ +# TeXworks: Miscellaneous configuration options that don't show up in the Preferences + +# Template commands to insert for files dragged into the editor window +# Note that %1 represents the filename; #RET# represents a newline + +include-text: \include{%1}#RET# + +include-postscript: \includegraphics[]{%1}#RET# +include-pdf: \includegraphics[]{%1}#RET# +include-image: \includegraphics[]{%1}#RET# + +# Patterns for the Remove Aux Files command; entries are cumulative +# (any occurrence of $jobname will be replaced by the root file name) + +cleanup-patterns: *.aux +cleanup-patterns: $jobname.blg $jobname.brf $jobname.ccs $jobname.ent $jobname.fff +cleanup-patterns: $jobname.glo $jobname.idx $jobname.idv $jobname.ilg $jobname.ind $jobname.ioa +cleanup-patterns: $jobname.lg $jobname.lof $jobname.log $jobname.lot +cleanup-patterns: $jobname.mte $jobname.mlf $jobname.out $jobname.pdfsync +cleanup-patterns: $jobname.toc $jobname.ttt $jobname.wrm $jobname.xref +cleanup-patterns: $jobname.4ct $jobname.4tc + diff --git a/Master/texmf-dist/context/data/texworks/texworks-context.rme b/Master/texmf-dist/context/data/texworks/texworks-context.rme new file mode 100644 index 00000000000..7019cb78ee5 --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/texworks-context.rme @@ -0,0 +1,2 @@ +This is just a placeholder. We need to make sure that we end +up here in case of multiple texworks ini files. diff --git a/Master/texmf-dist/context/data/texworks/texworks-setup.ini b/Master/texmf-dist/context/data/texworks/texworks-setup.ini new file mode 100644 index 00000000000..6357e775bc4 --- /dev/null +++ b/Master/texmf-dist/context/data/texworks/texworks-setup.ini @@ -0,0 +1,2 @@ +inipath=. +libpath=. -- cgit v1.2.3