-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Put <description> in fifth field of json output, <title> in seventh
We're now actually parsing <description> from XML :) Also, allow <description> alongside <label> in pipespec <option>'s (under prefs) + add a schemas.xml for editor
- Loading branch information
Showing
10 changed files
with
107 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!-- Copyright (C) 2016-2017, Kevin Brubeck Unhammer <[email protected]> --> | ||
<!-- Copyright (C) 2016-2019, Kevin Brubeck Unhammer <[email protected]> --> | ||
|
||
<!-- This program is free software: you can redistribute it and/or modify --> | ||
<!-- it under the terms of the GNU General Public License as published by --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright (C) 2016-2017, Kevin Brubeck Unhammer <[email protected]> | ||
# THIS IS A GENERATED FILE, DO NOT EDIT! | ||
# Copyright (C) 2016-2019, Kevin Brubeck Unhammer <[email protected]> | ||
|
||
# This program is free software: you can redistribute it and/or modify | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!-- Copyright (C) 2017, Kevin Brubeck Unhammer <[email protected]> --> | ||
<!-- Copyright (C) 2017–2019, Kevin Brubeck Unhammer <[email protected]> --> | ||
|
||
<!-- This program is free software: you can redistribute it and/or modify --> | ||
<!-- it under the terms of the GNU General Public License as published by --> | ||
|
@@ -57,7 +57,7 @@ | |
<!-- type and name are *not* unique here; several pipelines may have a pref for e.g. "Oxford comma" --> | ||
|
||
|
||
<!ELEMENT option (label+)> | ||
<!ELEMENT option ((label|description)+)> | ||
<!ATTLIST option | ||
err-id CDATA #REQUIRED | ||
> | ||
|
@@ -69,6 +69,11 @@ | |
xml:lang CDATA #REQUIRED | ||
> | ||
|
||
<!ELEMENT description %Text;> | ||
<!ATTLIST description | ||
xml:lang CDATA #REQUIRED | ||
> | ||
|
||
<!-- General "system" command – pipelines with this can only be used | ||
in settings where we can open processes: --> | ||
<!ELEMENT sh (arg*)> <!-- NOT IMPLEMENTED YET --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# THIS IS A GENERATED FILE, DO NOT EDIT! | ||
# Copyright (C) 2017, Kevin Brubeck Unhammer <[email protected]> | ||
# Copyright (C) 2017–2019, Kevin Brubeck Unhammer <[email protected]> | ||
|
||
# This program is free software: you can redistribute it and/or modify | ||
|
||
|
@@ -72,13 +72,16 @@ attlist.pref &= | |
attribute type { text }, | ||
attribute name { text } | ||
# type and name are *not* unique here; several pipelines may have a pref for e.g. "Oxford comma" | ||
option = element option { attlist.option, label+ } | ||
option = element option { attlist.option, (label | description)+ } | ||
attlist.option &= attribute err-id { text } | ||
|
||
Text = (text | em)* | ||
label = element label { attlist.label, Text } | ||
attlist.label &= attribute xml:lang { text } | ||
|
||
description = element description { attlist.description, Text } | ||
attlist.description &= attribute xml:lang { text } | ||
|
||
# General "system" command – pipelines with this can only be used | ||
# in settings where we can open processes: | ||
sh = element sh { attlist.sh, arg* } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0"?> | ||
<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> | ||
|
||
<!-- | ||
Having this file in the same dir as your XML's | ||
lets Emacs show validation errors. | ||
More information at: | ||
https://www.gnu.org/software/emacs/manual/html_node/nxml-mode/Schema-locating-files.html#Schema-locating-files | ||
--> | ||
|
||
<typeId id="errors" uri="../../src/errors.rnc"/> | ||
<documentElement localName="errors" typeId="errors"/> | ||
<uri pattern="errors.xml" typeId="errors"/> | ||
|
||
<typeId id="pipespec" uri="../../src/pipespec.rnc"/> | ||
<documentElement localName="pipespec" typeId="pipespec"/> | ||
<uri pattern="pipespec.xml" typeId="pipespec"/> | ||
|
||
</locatingRules> |