summaryrefslogtreecommitdiff
path: root/context/data/texworks
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-07-04 15:32:09 +0300
committerMarius <mariausol@gmail.com>2010-07-04 15:32:09 +0300
commit85b7bc695629926641c7cb752fd478adfdf374f3 (patch)
tree80293f5aaa7b95a500a78392c39688d8ee7a32fc /context/data/texworks
downloadcontext-85b7bc695629926641c7cb752fd478adfdf374f3.tar.gz
stable 2010-05-24 13:10
Diffstat (limited to 'context/data/texworks')
-rw-r--r--context/data/texworks/TUG/TeXworks.ini18
-rw-r--r--context/data/texworks/completion/tw-context.txt1
-rw-r--r--context/data/texworks/configuration/auto-indent-patterns.txt14
-rw-r--r--context/data/texworks/configuration/delimiter-pairs.txt12
-rw-r--r--context/data/texworks/configuration/smart-quotes-modes.txt21
-rw-r--r--context/data/texworks/configuration/syntax-patterns.txt42
-rw-r--r--context/data/texworks/configuration/tag-patterns.txt33
-rw-r--r--context/data/texworks/configuration/texworks-config.txt22
-rw-r--r--context/data/texworks/configuration/tools.ini35
-rw-r--r--context/data/texworks/texworks-context.rme2
-rw-r--r--context/data/texworks/texworks-setup.ini2
11 files changed, 202 insertions, 0 deletions
diff --git a/context/data/texworks/TUG/TeXworks.ini b/context/data/texworks/TUG/TeXworks.ini
new file mode 100644
index 000000000..8c0a4a43d
--- /dev/null
+++ b/context/data/texworks/TUG/TeXworks.ini
@@ -0,0 +1,18 @@
+[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=
diff --git a/context/data/texworks/completion/tw-context.txt b/context/data/texworks/completion/tw-context.txt
new file mode 100644
index 000000000..59f52c870
--- /dev/null
+++ b/context/data/texworks/completion/tw-context.txt
@@ -0,0 +1 @@
+%%!TEX encoding = UTF-8 Unicode
diff --git a/context/data/texworks/configuration/auto-indent-patterns.txt b/context/data/texworks/configuration/auto-indent-patterns.txt
new file mode 100644
index 000000000..e0e331dac
--- /dev/null
+++ b/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" <regex>
+
+# "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 <regex>.
+
+# <regex> is the regular expression; if this matches the start of the current line when <return>
+# 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/context/data/texworks/configuration/delimiter-pairs.txt b/context/data/texworks/configuration/delimiter-pairs.txt
new file mode 100644
index 000000000..1ee56dcd6
--- /dev/null
+++ b/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/context/data/texworks/configuration/smart-quotes-modes.txt b/context/data/texworks/configuration/smart-quotes-modes.txt
new file mode 100644
index 000000000..9f7f95d69
--- /dev/null
+++ b/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:
+#
+# <keystroke> <open-form> <close-form>
+#
+# separated by whitespace.
+
+# [TeX ligatures]
+# ' ` '
+# " `` ''
+#
+
+[TeX commands]
+' \quote{ }
+" \quotation{ }
+
+# [Unicode characters]
+# ' ‘ ’
+# " “ ”
diff --git a/context/data/texworks/configuration/syntax-patterns.txt b/context/data/texworks/configuration/syntax-patterns.txt
new file mode 100644
index 000000000..687fae887
--- /dev/null
+++ b/context/data/texworks/configuration/syntax-patterns.txt
@@ -0,0 +1,42 @@
+# TeXworks: Patterns for syntax coloring
+
+# Each entry consists of three whitespace-separated fields:
+# <color> <spell?> <regex>
+
+# <color> is a color name from the list defined in the SVG standard;
+# see http://www.w3.org/TR/SVG/types.html#ColorKeywords
+
+# <spell> is a flag controlling whether this style is subject to spell-checking;
+# "Y" or "y" for yes, "N" (or anything else, actually) for no.
+
+# <regex> 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/context/data/texworks/configuration/tag-patterns.txt b/context/data/texworks/configuration/tag-patterns.txt
new file mode 100644
index 000000000..7e3837da2
--- /dev/null
+++ b/context/data/texworks/configuration/tag-patterns.txt
@@ -0,0 +1,33 @@
+# TeXworks: Patterns for tag recognition
+
+# Each entry consists of two whitespace-separated fields:
+# <level> <regex>
+
+# <level> is the position in the document structure hierarchy, with 1 being the top level.
+# <regex> 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/context/data/texworks/configuration/texworks-config.txt b/context/data/texworks/configuration/texworks-config.txt
new file mode 100644
index 000000000..b925b2801
--- /dev/null
+++ b/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/context/data/texworks/configuration/tools.ini b/context/data/texworks/configuration/tools.ini
new file mode 100644
index 000000000..73071028b
--- /dev/null
+++ b/context/data/texworks/configuration/tools.ini
@@ -0,0 +1,35 @@
+[001]
+name=ConTeXt MkIV
+program=mtxrun
+arguments=--autogenerate, --script, context, $fullname
+showPdf=true
+
+[002]
+name=ConTeXt MkIV Check
+program=mtxrun
+arguments=--autogenerate, --script, check, $fullname
+showPdf=false
+
+[003]
+name=ConTeXt MkIV Purge
+program=mtxrun
+arguments=--autogenerate, --script, context, --purgeall
+showPdf=false
+
+[004]
+name=ConTeXt MkIV Server
+program=cmd.exe
+arguments=/c, start, mtxrun, --autogenerate, --script, server, --auto
+showPdf=false
+
+[005]
+name=ConTeXt MkIV Update
+program=mtxrun
+arguments=--autogenerate, --script, update, --force, --make
+showPdf=false
+
+[006]
+name=ConTeXt MkIV Make
+program=mtxrun
+arguments=--autogenerate, --script, context, --generate, --make
+showPdf=false
diff --git a/context/data/texworks/texworks-context.rme b/context/data/texworks/texworks-context.rme
new file mode 100644
index 000000000..7019cb78e
--- /dev/null
+++ b/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/context/data/texworks/texworks-setup.ini b/context/data/texworks/texworks-setup.ini
new file mode 100644
index 000000000..6357e775b
--- /dev/null
+++ b/context/data/texworks/texworks-setup.ini
@@ -0,0 +1,2 @@
+inipath=.
+libpath=.