aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle18
-rw-r--r--license.md660
-rw-r--r--license.txt674
-rw-r--r--readme.md12
-rw-r--r--settings.gradle19
-rw-r--r--src/main/kotlin/org/pacien/pandoc/filter/plantuml/Filter.kt18
-rw-r--r--src/main/kotlin/org/pacien/pandoc/filter/plantuml/Latex.kt18
-rw-r--r--src/main/kotlin/org/pacien/pandoc/filter/plantuml/Main.kt18
-rw-r--r--src/main/kotlin/org/pacien/pandoc/filter/plantuml/PandocNode.kt18
-rw-r--r--src/main/kotlin/org/pacien/pandoc/filter/plantuml/PlantUml.kt18
-rw-r--r--src/test/kotlin/org/pacien/pandoc/filter/plantuml/FilterTest.kt18
11 files changed, 814 insertions, 677 deletions
diff --git a/build.gradle b/build.gradle
index c7a64f4..f1476db 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,21 @@
1/*
2 * pandoc-filter-plantuml, a Pandoc AST filter rendering PlantUML diagrams
3 * Copyright (C) 2018 Pacien TRAN-GIRARD
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
1group 'org.pacien.pandoc.filter.plantuml' 19group 'org.pacien.pandoc.filter.plantuml'
2version '1.0-SNAPSHOT' 20version '1.0-SNAPSHOT'
3 21
diff --git a/license.md b/license.md
new file mode 100644
index 0000000..cba6f6a
--- /dev/null
+++ b/license.md
@@ -0,0 +1,660 @@
1### GNU AFFERO GENERAL PUBLIC LICENSE
2
3Version 3, 19 November 2007
4
5Copyright (C) 2007 Free Software Foundation, Inc.
6<https://fsf.org/>
7
8Everyone is permitted to copy and distribute verbatim copies of this
9license document, but changing it is not allowed.
10
11### Preamble
12
13The GNU Affero General Public License is a free, copyleft license for
14software and other kinds of works, specifically designed to ensure
15cooperation with the community in the case of network server software.
16
17The licenses for most software and other practical works are designed
18to take away your freedom to share and change the works. By contrast,
19our General Public Licenses are intended to guarantee your freedom to
20share and change all versions of a program--to make sure it remains
21free software for all its users.
22
23When we speak of free software, we are referring to freedom, not
24price. Our General Public Licenses are designed to make sure that you
25have the freedom to distribute copies of free software (and charge for
26them if you wish), that you receive source code or can get it if you
27want it, that you can change the software or use pieces of it in new
28free programs, and that you know you can do these things.
29
30Developers that use our General Public Licenses protect your rights
31with two steps: (1) assert copyright on the software, and (2) offer
32you this License which gives you legal permission to copy, distribute
33and/or modify the software.
34
35A secondary benefit of defending all users' freedom is that
36improvements made in alternate versions of the program, if they
37receive widespread use, become available for other developers to
38incorporate. Many developers of free software are heartened and
39encouraged by the resulting cooperation. However, in the case of
40software used on network servers, this result may fail to come about.
41The GNU General Public License permits making a modified version and
42letting the public access it on a server without ever releasing its
43source code to the public.
44
45The GNU Affero General Public License is designed specifically to
46ensure that, in such cases, the modified source code becomes available
47to the community. It requires the operator of a network server to
48provide the source code of the modified version running there to the
49users of that server. Therefore, public use of a modified version, on
50a publicly accessible server, gives the public access to the source
51code of the modified version.
52
53An older license, called the Affero General Public License and
54published by Affero, was designed to accomplish similar goals. This is
55a different license, not a version of the Affero GPL, but Affero has
56released a new version of the Affero GPL which permits relicensing
57under this license.
58
59The precise terms and conditions for copying, distribution and
60modification follow.
61
62### TERMS AND CONDITIONS
63
64#### 0. Definitions.
65
66"This License" refers to version 3 of the GNU Affero General Public
67License.
68
69"Copyright" also means copyright-like laws that apply to other kinds
70of works, such as semiconductor masks.
71
72"The Program" refers to any copyrightable work licensed under this
73License. Each licensee is addressed as "you". "Licensees" and
74"recipients" may be individuals or organizations.
75
76To "modify" a work means to copy from or adapt all or part of the work
77in a fashion requiring copyright permission, other than the making of
78an exact copy. The resulting work is called a "modified version" of
79the earlier work or a work "based on" the earlier work.
80
81A "covered work" means either the unmodified Program or a work based
82on the Program.
83
84To "propagate" a work means to do anything with it that, without
85permission, would make you directly or secondarily liable for
86infringement under applicable copyright law, except executing it on a
87computer or modifying a private copy. Propagation includes copying,
88distribution (with or without modification), making available to the
89public, and in some countries other activities as well.
90
91To "convey" a work means any kind of propagation that enables other
92parties to make or receive copies. Mere interaction with a user
93through a computer network, with no transfer of a copy, is not
94conveying.
95
96An interactive user interface displays "Appropriate Legal Notices" to
97the extent that it includes a convenient and prominently visible
98feature that (1) displays an appropriate copyright notice, and (2)
99tells the user that there is no warranty for the work (except to the
100extent that warranties are provided), that licensees may convey the
101work under this License, and how to view a copy of this License. If
102the interface presents a list of user commands or options, such as a
103menu, a prominent item in the list meets this criterion.
104
105#### 1. Source Code.
106
107The "source code" for a work means the preferred form of the work for
108making modifications to it. "Object code" means any non-source form of
109a work.
110
111A "Standard Interface" means an interface that either is an official
112standard defined by a recognized standards body, or, in the case of
113interfaces specified for a particular programming language, one that
114is widely used among developers working in that language.
115
116The "System Libraries" of an executable work include anything, other
117than the work as a whole, that (a) is included in the normal form of
118packaging a Major Component, but which is not part of that Major
119Component, and (b) serves only to enable use of the work with that
120Major Component, or to implement a Standard Interface for which an
121implementation is available to the public in source code form. A
122"Major Component", in this context, means a major essential component
123(kernel, window system, and so on) of the specific operating system
124(if any) on which the executable work runs, or a compiler used to
125produce the work, or an object code interpreter used to run it.
126
127The "Corresponding Source" for a work in object code form means all
128the source code needed to generate, install, and (for an executable
129work) run the object code and to modify the work, including scripts to
130control those activities. However, it does not include the work's
131System Libraries, or general-purpose tools or generally available free
132programs which are used unmodified in performing those activities but
133which are not part of the work. For example, Corresponding Source
134includes interface definition files associated with source files for
135the work, and the source code for shared libraries and dynamically
136linked subprograms that the work is specifically designed to require,
137such as by intimate data communication or control flow between those
138subprograms and other parts of the work.
139
140The Corresponding Source need not include anything that users can
141regenerate automatically from other parts of the Corresponding Source.
142
143The Corresponding Source for a work in source code form is that same
144work.
145
146#### 2. Basic Permissions.
147
148All rights granted under this License are granted for the term of
149copyright on the Program, and are irrevocable provided the stated
150conditions are met. This License explicitly affirms your unlimited
151permission to run the unmodified Program. The output from running a
152covered work is covered by this License only if the output, given its
153content, constitutes a covered work. This License acknowledges your
154rights of fair use or other equivalent, as provided by copyright law.
155
156You may make, run and propagate covered works that you do not convey,
157without conditions so long as your license otherwise remains in force.
158You may convey covered works to others for the sole purpose of having
159them make modifications exclusively for you, or provide you with
160facilities for running those works, provided that you comply with the
161terms of this License in conveying all material for which you do not
162control copyright. Those thus making or running the covered works for
163you must do so exclusively on your behalf, under your direction and
164control, on terms that prohibit them from making any copies of your
165copyrighted material outside their relationship with you.
166
167Conveying under any other circumstances is permitted solely under the
168conditions stated below. Sublicensing is not allowed; section 10 makes
169it unnecessary.
170
171#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
172
173No covered work shall be deemed part of an effective technological
174measure under any applicable law fulfilling obligations under article
17511 of the WIPO copyright treaty adopted on 20 December 1996, or
176similar laws prohibiting or restricting circumvention of such
177measures.
178
179When you convey a covered work, you waive any legal power to forbid
180circumvention of technological measures to the extent such
181circumvention is effected by exercising rights under this License with
182respect to the covered work, and you disclaim any intention to limit
183operation or modification of the work as a means of enforcing, against
184the work's users, your or third parties' legal rights to forbid
185circumvention of technological measures.
186
187#### 4. Conveying Verbatim Copies.
188
189You may convey verbatim copies of the Program's source code as you
190receive it, in any medium, provided that you conspicuously and