TBLFM remote ref indirection: Fix start
[org-mode.git] / contrib / lisp / org-license.el
blob44a1ea743bcd8599b03f6d6cab84e81b157af7d2
1 ;;; org-license.el --- Add a license to your org files
3 ;; Copyright (C) 2013 Free Software Foundation, Inc.
5 ;; Author: David Arroyo Menéndez <davidam@es.gnu.org>
6 ;; Keywords: licenses, creative commons
7 ;; Homepage: http://orgmode.org
8 ;;
9 ;; This file is not part of GNU Emacs, yet.
11 ;; GNU Emacs is free software: you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation, either version 3 of the License, or
14 ;; (at your option) any later version.
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
25 ;;; Commentary:
27 ;; This file implements functions to add a license fast in org files.
28 ;; Org-mode doesn't load this module by default - if this is not what
29 ;; you want, configure the variable `org-modules'. Thanks to #emacs-es
30 ;; irc channel for your support.
32 ;;; Code:
34 ;;
36 ;; You can download the images from http://www.davidam/img/licenses.tar.gz
38 ;;; CHANGELOG:
39 ;; v 0.2 - add public domain functions
40 ;; v 0.1 - Initial release
43 (defvar org-license-images-directory "")
45 (defun org-license-cc-by (language)
46 (interactive "MLanguage ( br | ca | de | en | es | eo | eu | fi | fr | gl | it | jp | nl | pt ): " language)
47 (cond ((equal language "br")
48 (setq org-license-cc-url "https://creativecommons.org/licenses/by-sa/3.0/br/deed.pt_BR")
49 (insert (concat "* Licença
50 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição 3.0 Brasil]]\n")))
51 ((equal language "ca")
52 (setq org-license-cc-url "https://creativecommons.org/licenses/by-sa/3.0/es/deed.ca")
53 (insert (concat "* Licència
54 El text està disponible sota la [[" org-license-cc-url "][Reconeixement 3.0 Espanya]]\n")))
55 ((equal language "de")
56 (setq org-license-cc-url "https://creativecommons.org/licenses/by-sa/3.0/de/deed.de")
57 (insert (concat "* Lizenz
58 Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Lizenz Creative Commons Namensnennung 3.0 Deutschland]]\n")))
59 ((equal language "eo")
60 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/eo/deed.eo")
61 (insert (concat "* Licenco
62 Ĉi tiu verko estas disponebla laŭ la permesilo [[" org-license-cc-url "][Krea Komunaĵo Atribuite 3.0 Neadaptita]]\n")))
63 ((equal language "es")
64 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/es/deed.es")
65 (insert (concat "* Licencia
66 Este documento está bajo una [[" org-license-cc-url "][Licencia Creative Commons Atribución 3.0 España]]\n")))
67 ((equal language "eu")
68 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/es/deed.eu")
69 (insert (concat "* Licenzua
70 Testua [[" org-license-cc-url "][Aitortu 3.0 Espainia]] lizentziari jarraituz erabil daiteke\n")))
71 ((equal language "fi")
72 (setq org-license-cc-url "http://creativecommons.org/licenses/by/1.0/fi/deed.fi")
73 (insert (concat "* Lisenssi
74 Teksti on saatavilla [[" org-license-cc-url "][Nimeä 1.0 Suomi]] lisenssillä\n")))
75 ((equal language "fr")
76 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/fr/deed.fr")
77 (insert (concat "* Licence
78 Ce(tte) œuvre est mise à disposition selon les termes de la [[" org-license-cc-url "][Licence Creative Commons Attribution 3.0 France]]\n")))
79 ((equal language "gl")
80 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/es/deed.gl")
81 (insert (concat "* Licenza
82 Todo o texto está dispoñible baixo a [[" org-license-cc-url "][licenza Creative Commons recoñecemento compartir igual 3.0]].\n")))
83 ((equal language "it")
84 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/it/deed.it")
85 (insert (concat "* Licenza
86 Quest'opera e distribuita con Licenza [[" org-license-cc-url "][Licenza Creative Commons Attribuzione 3.0 Italia]]\n")))
87 ((equal language "jp")
88 (setq org-license-cc-url "http://creativecommons.org/licenses/by/2.1/jp/deed.en")
89 (insert (concat "* ライセンス
90 この文書は [[" org-license-cc-url "][Creative Commons Attribution 2.1 ]] ライセンスの下である\n")))
91 ((equal language "nl")
92 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/nl/deed.nl")
93 (insert (concat "* Licentie
94 Dit werk is valt onder een [[" org-license-cc-url "][Creative Commons Naamsvermelding 3.0 Nederland]]\n")))
95 ((equal language "pt")
96 (setq org-license-cc-url "http://creativecommons.org/licenses/by/3.0/pt/deed.pt")
97 (insert (concat "* Licença
98 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição 3.0 Portugal]]\n")))
99 (t (concat (insert "* License
100 This document is under a [[" org-license-cc-url "][Creative Commons Attribution 3.0]]\n"))))
101 (if (string= "" org-license-images-directory)
102 (insert (concat "\n[[" org-license-cc-url "][file:http://i.creativecommons.org/l/by/3.0/80x15.png]]\n"))
103 (insert (concat "\n[[" org-license-cc-url "][file:" org-license-images-directory "/by/3.0/80x15.png]]\n"))))
105 (defun org-license-cc-by-sa (language)
106 (interactive "MLanguage ( br | ca | de | en | es | eu | fi | fr | it | jp | nl | pt ): " language)
107 (cond ((equal language "br")
108 (setq org-license-cc-url "https://creativecommons.org/licenses/by-sa/3.0/br/deed.pt_BR")
109 (concat (insert "* Licença
110 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Compartil ha Igual 3.0 Brasil]]\n")))
111 ((equal language "ca")
112 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/es/deed.ca")
113 (insert (concat "* Licència
114 El text està disponible sota la [[" org-license-cc-url "][Reconeixement-CompartirIgual 3.0 Espanya]]\n")))
115 ((equal language "de")
116 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/de/deed.de")
117 (insert (concat "* Lizenz
118 Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Deutschland]]\n")))
119 ((equal language "es")
120 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/es/deed.es")
121 (concat (insert "* Licencia
122 Este documento está bajo una [[" org-license-cc-url "][Licencia Creative Commons Atribución Compartir por Igual 3.0 España]]\n")))
123 ((equal language "eu")
124 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/es/deed.eu")
125 (concat (insert "* Licenzua
126 Testua [[" org-license-cc-url "][Aitortu-PartekatuBerdin 3.0 Espainia]] lizentziari jarraituz erabil daiteke\n")))
127 ((equal language "fi")
128 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/1.0/fi/deed.fi")
129 (insert (concat "* Lisenssi
130 Teksti on saatavilla [[" org-license-cc-url "][Nimeä-JaaSamoin 1.0 Suomi]] lisenssillä\n")))
131 ((equal language "fr")
132 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/fr/deed.fr")
133 (concat (insert "* Licence
134 Ce(tte) œuvre est mise à disposition selon les termes de la [[" org-license-cc-url "][Licence Creative Commons Attribution - Partage dans les Mêmes Conditions 3.0 France]]\n")))
135 ((equal language "gl")
136 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/es/deed.gl")
137 (insert (concat "* Licenza
138 Todo o texto está dispoñible baixo a [[" org-license-cc-url "][licenza Creative Commons recoñecemento compartir igual 3.0]].\n")))
139 ((equal language "it")
140 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/it/deed.it")
141 (insert (concat "* Licenza
142 Quest'opera e distribuita con Licenza [[" org-license-cc-url "][Licenza Creative Commons Attribuzione - Condividi allo stesso modo 3.0 Italia]]\n")))
143 ((equal language "jp")
144 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/2.1/jp/deed.en")
145 (insert (concat "* ライセンス
146 この文書は、[[" org-license-cc-url "][Creative Commons Attribution 2.1 ]] ライセンスの下である\n")))
147 ((equal language "nl")
148 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/nl/deed.nl")
149 (insert (concat "* Licentie
150 Dit werk is valt onder een [[" org-license-cc-url "][Creative Commons Naamsvermelding Gelijk Delen 3.0 Nederland]]\n")))
151 ((equal language "pt")
152 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/pt/deed.pt")
153 (insert (concat "* Licença
154 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição-CompartilhaIgual 3.0 Portugal]]\n")))
156 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/deed")
157 (insert (concat "* License
158 This document is under a [[" org-license-cc-url "][Creative Commons Attribution-ShareAlike Unported 3.0]]\n"))))
159 (if (string= "" org-license-images-directory)
160 (insert (concat "\n[[" org-license-cc-url "][file:http://i.creativecommons.org/l/by-sa/3.0/80x15.png]]\n"))
161 (insert (concat "\n[[" org-license-cc-url "][file:" org-license-images-directory "/by-sa/3.0/80x15.png]]\n"))))
163 (defun org-license-cc-by-nd (language)
164 (interactive "MLanguage ( br | ca | de | en | es | eu | fi | fr | it | pt ): " language)
165 (cond ((equal language "br")
166 (setq org-license-cc-url "https://creativecommons.org/licenses/by-nd/3.0/br/deed.pt_BR")
167 (insert (concat "* Licença
168 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Compartil ha Igual 3.0 Brasil]]\n")))
169 ((equal language "ca")
170 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/es/deed.ca")
171 (insert (concat "* Licència
172 El text està disponible sota la [[" org-license-cc-url "][Reconeixement-SenseObraDerivada 3.0 Espanya]]\n")))
173 ((equal language "de")
174 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/de/deed.de")
175 (insert (concat "* Lizenz
176 Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung-Keine Bearbeitung 3.0 Deutschland]]\n")))
177 ((equal language "es")
178 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/es/deed.es")
179 (insert (concat "* Licencia
180 Este documento está bajo una [[" org-license-cc-url "][Licencia Creative Commons Atribución-SinDerivadas 3.0]]\n")))
181 ((equal language "eu")
182 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/3.0/es/deed.eu")
183 (insert (concat "* Licenzua
184 Testua [[" org-license-cc-url "][Aitortu-LanEratorririkGabe 3.0 Espainia]] lizentziari jarraituz erabil daiteke\n")))
185 ((equal language "fi")
186 (setq org-license-cc-url "http://creativecommons.org/licenses/by-sa/1.0/fi/deed.fi")
187 (insert (concat "* Lisenssi
188 Teksti on saatavilla [[" org-license-cc-url "][Nimeä-JaaSamoin 1.0 Suomi]] lisenssillä\n")))
189 ((equal language "fr")
190 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/fr/deed.fr")
191 (insert (concat "* Licence
192 Ce(tte) œuvre est mise à disposition selon les termes de la [[" org-license-cc-url "][Licence Creative Commons Attribution - Pas de Modification 3.0 France]]\n")))
193 ((equal language "gl")
194 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/es/deed.gl")
195 (insert (concat "* Licenza
196 Todo o texto está dispoñible baixo a [[" org-license-cc-url "][licenza Creative Commons recoñecemento compartir igual 3.0]].\n")))
197 ((equal language "it")
198 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/it/deed.it")
199 (insert (concat "* Licenza
200 Quest'opera e distribuita con Licenza [[" org-license-cc-url "][Licenza Creative Commons Attribuzione - Non opere derivate 3.0 Italia]]\n")))
201 ((equal language "jp")
202 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/2.1/jp/deed.en")
203 (insert (concat "* ライセンス
204 この文書は、[[" org-license-cc-url "][Creative Commons No Derivatives 2.1]] ライセンスの下である\n")))
205 ((equal language "nl")
206 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/nl/deed.nl")
207 (insert (concat "* Licentie
208 Dit werk is valt onder een [[" org-license-cc-url "][Creative Commons Naamsvermelding GeenAfgeleideWerken 3.0 Nederland]]\n")))
209 ((equal language "pt")
210 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/pt/deed.pt")
211 (insert (concat "* Licença
212 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Sem Derivados 3.0 Portugal]]\n")))
214 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nd/3.0/deed")
215 (insert (concat "* License
216 This document is under a [[" org-license-cc-url "][Creative Commons No Derivatives Unported 3.0]]\n"))))
217 (if (string= "" org-license-images-directory)
218 (insert (concat "\n[[" org-license-cc-url "][file:http://i.creativecommons.org/l/by-nd/3.0/80x15.png]]\n"))
219 (insert (concat "\n[[" org-license-cc-url "][file:" org-license-images-directory "/by-nd/3.0/80x15.png]]\n"))))
222 (defun org-license-cc-by-nc (language)
223 (interactive "MLanguage ( br | ca | de | en | es | eu | fi | fr | it | jp | nl | pt ): " language)
224 (cond ((equal language "br")
225 (setq org-license-cc-url "https://creativecommons.org/licenses/by-nc/3.0/br/deed.pt_BR")
226 (insert (concat "* Licença
227 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Não Comercial 3.0 Brasil]]\n")))
228 ((equal language "ca")
229 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/es/deed.ca")
230 (insert (concat "* Licència
231 El text està disponible sota la [[" org-license-cc-url "][Reconeixement-NoComercial 3.0 Espanya]]\n")))
232 ((equal language "de")
233 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/de/deed.de")
234 (insert (concat "* Lizenz
235 Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung-Nicht-kommerziell 3.0 Deutschland]]\n")))
236 ((equal language "es")
237 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/es/deed.es")
238 (insert (concat "* Licencia
239 Este documento está bajo una [[" org-license-cc-url "][Licencia Creative Commons Reconocimiento-NoComercial 3.0]]\n")))
240 ((equal language "eu")
241 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/es/deed.eu")
242 (insert "* Licenzua
243 Testua [[" org-license-cc-url "][Aitortu-EzKomertziala 3.0 Espainia]] lizentziari jarraituz erabil daiteke\n"))
244 ((equal language "fi")
245 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/1.0/fi/deed.fi")
246 (insert (concat "* Lisenssi
247 Teksti on saatavilla [[" org-license-cc-url "][Nimeä-Epäkaupallinen 1.0 Suomi]] lisenssillä\n")))
248 ((equal language "fr")
249 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/fr/deed.fr")
250 (insert (concat "* Licence
251 Ce(tte) œuvre est mise à disposition selon les termes de la [[" org-license-cc-url "][Licence Creative Commons Attribution - Pas d'Utilisation Commerciale 3.0 France]]\n")))
252 ((equal language "gl")
253 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/es/deed.gl")
254 (insert (concat "* Licenza
255 Todo o texto está dispoñible baixo a [[" org-license-cc-url "][licenza Creative Commons recoñecemento compartir igual 3.0]].\n")))
256 ((equal language "it")
257 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/it/deed.it")
258 (insert (concat "* Licenza
259 Quest'opera e distribuita con Licenza [[" org-license-cc-url "][Licenza Creative Commons Attribuzione - Non commerciale 3.0 Italia]]\n")))
260 ((equal language "jp")
261 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/2.1/jp/deed.en")
262 (insert (concat "* ライセンス
263 この文書は、[[" org-license-cc-url "][Creative Commons Attribution-NonCommercial 2.1 ]] ライセンスの下である\n")))
264 ((equal language "nl")
265 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/nl/deed.nl")
266 (insert (concat "* Licentie
267 Dit werk is valt onder een [[" org-license-cc-url "][Creative Commons Naamsvermelding NietCommercieel 3.0 Nederland 3.0 Nederland]]\n")))
268 ((equal language "pt")
269 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/pt/deed.pt")
270 (insert (concat "* Licença
271 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Não Comercial 3.0 Portugal]]\n")))
273 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/deed")
274 (insert (concat "* License
275 This document is under a [[" org-license-cc-url "][Creative Commons Attribution-NonCommercial 3.0 Unported]]\n"))))
276 (if (string= "" org-license-images-directory)
277 (insert (concat "\n[[" org-license-cc-url "][file:http://i.creativecommons.org/l/by-nc/3.0/80x15.png]]\n"))
278 (insert (concat "\n[[" org-license-cc-url "][file:" org-license-images-directory "/by-nc/3.0/80x15.png]]\n"))))
280 (defun org-license-cc-by-nc-sa (language)
281 (interactive "MLanguage ( br | ca | de | en | es | eu | fi | fr | gl | it | jp | nl | pt ): " language)
282 (cond ((equal language "br")
283 (setq org-license-cc-url "https://creativecommons.org/licenses/by-nc-sa/3.0/br/deed.pt_BR")
284 (insert (concat "* Licença
285 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Não Comercial - Compartil ha Igual 3.0 Brasil]]\n")))
286 ((equal language "ca")
287 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/es/deed.ca")
288 (insert (concat "* Licència
289 El text està disponible sota la [[" org-license-cc-url "][Reconeixement-NoComercial 3.0 Espanya]]\n")))
290 ((equal language "de")
291 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/de/deed.de")
292 (insert (concat "* Lizenz
293 Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Deutschland]]\n")))
294 ((equal language "es")
295 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/es/deed.es")
296 (insert (concat "* Licencia
297 Este documento está bajo una [[" org-license-cc-url "][Licencia Creative Commons Reconocimiento-NoComercial 3.0]]\n")))
298 ((equal language "eu")
299 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/es/deed.eu")
300 (insert "* Licenzua
301 Testua [[" org-license-cc-url "][Aitortu-EzKomertziala-PartekatuBerdin 3.0 Espainia]] lizentziari jarraituz erabil daiteke\n"))
302 ((equal language "fi")
303 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/1.0/fi/deed.fi")
304 (insert (concat "* Lisenssi
305 Teksti on saatavilla [[" org-license-cc-url "][Nimeä-Epäkaupallinen-JaaSamoin 1.0 Suomi]] lisenssillä\n")))
306 ((equal language "fr")
307 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/fr/deed.fr")
308 (insert (concat "* Licence
309 Ce(tte) œuvre est mise à disposition selon les termes de la [[" org-license-cc-url "][Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 3.0 France]]\n")))
310 ((equal language "gl")
311 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/es/deed.gl")
312 (insert (concat "* Licenza
313 Todo o texto está dispoñible baixo a [[" org-license-cc-url "][licenza Creative Commons recoñecemento compartir igual 3.0]].\n")))
314 ((equal language "it")
315 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/it/deed.it")
316 (insert (concat "* Licenza
317 Quest'opera e distribuita con Licenza [[" org-license-cc-url "][Licenza Creative Commons Attribuzione - Non opere derivate 3.0 Italia]]\n")))
318 ((equal language "jp")
319 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/2.1/jp/deed.en")
320 (insert (concat "* ライセンス
321 この文書は、[[" org-license-cc-url "][License Creative Commons Attribution Non Commercial Share Alike 2.1 ]] ライセンスの下である\n")))
322 ((equal language "nl")
323 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/nl/deed.nl")
324 (insert (concat "* Licentie
325 Dit werk is valt onder een [[" org-license-cc-url "][Creative Commons Naamsvermelding NietCommercieel GelijkDelen 3.0 Nederland]]\n")))
326 ((equal language "pt")
327 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc/3.0/pt/deed.pt")
328 (insert (concat "* Licença
329 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição NãoComercial Compartil ha Igual 3.0 Portugal]]\n")))
331 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-sa/3.0/deed")
332 (insert (concat "* License
333 This document is under a [[" org-license-cc-url "][License Creative Commons Attribution Non Commercial Share Alike 3.0 Unported]]\n"))))
334 (if (string= "" org-license-images-directory)
335 (insert (concat "\n[[" org-license-cc-url "][file:http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png]]\n"))
336 (insert (concat "\n[[" org-license-cc-url "][file:" org-license-images-directory "/by-nc-sa/3.0/80x15.png]]\n"))))
338 (defun org-license-cc-by-nc-nd (language)
339 (interactive "MLanguage ( br | ca | de | en | es | eu | fi | fr | gl | it | pt ): " language)
340 (cond ((equal language "br")
341 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/pt/deed.pt")
342 (insert (concat "* Licença
343 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Não Comercial Sem Derivados 3.0 Brasil]]\n")))
344 ((equal language "ca")
345 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/es/deed.ca")
346 (insert (concat "* Licència
347 El text està disponible sota la [[" org-license-cc-url "][Reconeixement-NoComercial-SenseObraDerivada 3.0 Espanya]]\n")))
348 ((equal language "de")
349 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/de/deed.de")
350 (insert (concat "* Lizenz
351 Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung-NichtKommerziell-KeineBearbeitung 3.0 Deutschland]]\n")))
352 ((equal language "es")
353 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/es/deed.es")
354 (insert (concat "* Licencia
355 Este documento está bajo una [[" org-license-cc-url "][Licencia Creative Commons Reconocimiento-NoComercial-SinObraDerivada 3.0]]\n")))
356 ((equal language "eu")
357 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/es/deed.eu")
358 (insert (concat "* Licenzua
359 Testua [[" org-license-cc-url "][Aitortu-LanEratorririkGabe 3.0 Espainia]] lizentziari jarraituz erabil daiteke\n")))
360 ((equal language "fi")
361 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/1.0/fi/deed.fi")
362 (insert (concat "* Lisenssi
363 Teksti on saatavilla [[" org-license-cc-url "][Nimeä-Ei muutoksia-Epäkaupallinen 1.0 Suomi]] lisenssillä\n")))
364 ((equal language "fr")
365 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/fr/deed.fr")
366 (insert (concat "* Licence
367 Ce(tte) œuvre est mise à disposition selon les termes de la [[" org-license-cc-url "][Licence Creative Commons Attribution - Pas de Modification 3.0 France]]\n")))
368 ((equal language "gl")
369 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/es/deed.gl")
370 (insert (concat "* Licenza
371 Todo o texto está dispoñible baixo a [[" org-license-cc-url "][licenza Creative Commons recoñecemento compartir igual 3.0]].\n")))
372 ((equal language "it")
373 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/it/deed.it")
374 (insert (concat "* Licenza
375 Quest'opera e distribuita con Licenza [[" org-license-cc-url "][Licenza Creative Commons Attribuzione - Non opere derivate 3.0 Italia]]\n")))
376 ((equal language "jp")
377 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/2.1/jp/deed.en")
378 (insert (concat "* ライセンス
379 この文書は [[" org-license-cc-url "][License Creative Commons Attribution Non Commercial - No Derivs 2.1]] ライセンスの下である\n")))
380 ((equal language "nl")
381 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.nl")
382 (insert (concat "* Licentie
383 Dit werk is valt onder een [[" org-license-cc-url "][Creative Commons Naamsvermelding NietCommercieel GeenAfgeleideWerken 3.0 Nederland]]\n")))
384 ((equal language "pt")
385 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/pt/deed.pt")
386 (insert (concat "* Licença
387 Este texto é disponibilizado nos termos da licença [[" org-license-cc-url "][Atribuição Não Comercial Sem Derivados 3.0 Portugal]]\n")))
389 (setq org-license-cc-url "http://creativecommons.org/licenses/by-nc-nd/3.0/deed")
390 (insert (concat "* License
391 This document is under a [[" org-license-cc-url "][License Creative Commons
392 Reconocimiento-NoComercial-SinObraDerivada 3.0 Unported]]\n"))))
393 (if (string= "" org-license-images-directory)
394 (insert (concat "\n[[" org-license-cc-url "][file:http://i.creativecommons.org/l/by-nc-nd/3.0/80x15.png]]\n"))
395 (insert (concat "\n[[" org-license-cc-url "][file:" org-license-images-directory "/by-nc-nd/3.0/80x15.png]]\n"))))
397 (defun org-license-gfdl (language)
398 (interactive "MLanguage (es | en): " language)
399 (cond ((equal language "es")
400 (insert "* Licencia
401 Copyright (C) 2013 " user-full-name
402 "\n Se permite copiar, distribuir y/o modificar este documento
403 bajo los términos de la GNU Free Documentation License, Version 1.3
404 o cualquier versión publicada por la Free Software Foundation;
405 sin Secciones Invariantes y sin Textos de Portada o Contraportada.
406 Una copia de la licencia está incluida en [[https://www.gnu.org/copyleft/fdl.html][GNU Free Documentation License]].\n"))
407 (t (insert (concat "* License
408 Copyright (C) 2013 " user-full-name
409 "\n Permission is granted to copy, distribute and/or modify this document
410 under the terms of the GNU Free Documentation License, Version 1.3
411 or any later version published by the Free Software Foundation;
412 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
413 A copy of the license is included in [[https://www.gnu.org/copyleft/fdl.html][GNU Free Documentation License]].\n"))))
414 (if (string= "" org-license-images-directory)
415 (insert "\n[[https://www.gnu.org/copyleft/fdl.html][file:https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/GFDL_Logo.svg/200px-GFDL_Logo.svg.png]]\n")
416 (insert (concat "\n[[https://www.gnu.org/copyleft/fdl.html][file:" org-license-images-directory "/gfdl/gfdl.png]]\n"))))
418 (defun org-license-publicdomain-zero (language)
419 (interactive "MLanguage ( en | es ): " language)
420 (setq org-license-pd-url "http://creativecommons.org/publicdomain/zero/1.0/")
421 (setq org-license-pd-file "zero/1.0/80x15.png")
422 (if (equal language "es")
423 (insert (concat "* Licencia
424 Este documento está bajo una licencia [[" org-license-pd-url "][Public Domain Zero]]\n"))
425 (insert (concat "* License
426 This documento is under a [[" org-license-pd-url "][Public Domain Zero]] license\n")))
427 (if (string= "" org-license-images-directory)
428 (insert (concat "\n[[" org-license-pd-url "][file:http://i.creativecommons.org/p/zero/1.0/80x15.png]]\n"))
429 (insert (concat "\n[[" org-license-pd-url "][file:" org-license-images-directory org-license-pd-file "]]\n"))))
431 (defun org-license-publicdomain-mark (language)
432 (interactive "MLanguage ( en | es ): " language)
433 (setq org-license-pd-url "http://creativecommons.org/publicdomain/mark/1.0/")
434 (setq org-license-pd-file "mark/1.0/80x15.png")
435 (if (equal language "es")
436 (insert (concat "* Licencia
437 Este documento está bajo una licencia [[" org-license-pd-url "][Etiqueta de Dominio Público 1.0]]\n"))
438 (insert (concat "* License
439 This documento is under a [[" org-license-pd-url "][Public Domain Mark]] license\n")))
440 (if (string= "" org-license-images-directory)
441 (insert (concat "\n[[" org-license-pd-url "][file:http://i.creativecommons.org/p/mark/1.0/80x15.png]]\n"))
442 (insert (concat "\n[[" org-license-pd-url "][file:" org-license-images-directory org-license-pd-file "]]\n"))))
444 (defun org-license-print-all ()
445 "Print all combinations of licenses and languages, it's useful to find bugs"
446 (interactive)
447 (org-license-gfdl "es")
448 (org-license-gfdl "en")
449 (org-license-publicdomain-mark "es")
450 (org-license-publicdomain-mark "en")
451 (org-license-publicdomain-zero "es")
452 (org-license-publicdomain-zero "en")
453 (org-license-cc-by "br")
454 (org-license-cc-by "ca")
455 (org-license-cc-by "de")
456 (org-license-cc-by "es")
457 (org-license-cc-by "en")
458 (org-license-cc-by "eo")
459 (org-license-cc-by "eu")
460 (org-license-cc-by "fi")
461 (org-license-cc-by "fr")
462 (org-license-cc-by "gl")
463 (org-license-cc-by "it")
464 (org-license-cc-by "jp")
465 (org-license-cc-by "nl")
466 (org-license-cc-by "pt")
467 (org-license-cc-by-sa "br")
468 (org-license-cc-by-sa "ca")
469 (org-license-cc-by-sa "de")
470 (org-license-cc-by-sa "es")
471 (org-license-cc-by-sa "en")
472 ;; (org-license-cc-by-sa "eo")
473 (org-license-cc-by-sa "eu")
474 (org-license-cc-by-sa "fi")
475 (org-license-cc-by-sa "fr")
476 (org-license-cc-by-sa "gl")
477 (org-license-cc-by-sa "it")
478 (org-license-cc-by-sa "jp")
479 (org-license-cc-by-sa "nl")
480 (org-license-cc-by-sa "pt")
481 (org-license-cc-by-nd "br")
482 (org-license-cc-by-nd "ca")
483 (org-license-cc-by-nd "de")
484 (org-license-cc-by-nd "es")
485 (org-license-cc-by-nd "en")
486 ;; (org-license-cc-by-nd "eo")
487 (org-license-cc-by-nd "eu")
488 (org-license-cc-by-nd "fi")
489 (org-license-cc-by-nd "fr")
490 (org-license-cc-by-nd "gl")
491 (org-license-cc-by-nd "it")
492 (org-license-cc-by-nd "jp")
493 (org-license-cc-by-nd "nl")
494 (org-license-cc-by-nd "pt")
495 (org-license-cc-by-nc "br")
496 (org-license-cc-by-nc "ca")
497 (org-license-cc-by-nc "de")
498 (org-license-cc-by-nc "es")
499 (org-license-cc-by-nc "en")
500 ;; (org-license-cc-by-nc "eo")
501 (org-license-cc-by-nc "eu")
502 (org-license-cc-by-nc "fi")
503 (org-license-cc-by-nc "fr")
504 (org-license-cc-by-nc "gl")
505 (org-license-cc-by-nc "it")
506 (org-license-cc-by-nc "jp")
507 (org-license-cc-by-nc "nl")
508 (org-license-cc-by-nc "pt")
509 (org-license-cc-by-nc-sa "br")
510 (org-license-cc-by-nc-sa "ca")
511 (org-license-cc-by-nc-sa "de")
512 (org-license-cc-by-nc-sa "es")
513 (org-license-cc-by-nc-sa "en")
514 ;; (org-license-cc-by-nc-sa "eo")
515 (org-license-cc-by-nc-sa "eu")
516 (org-license-cc-by-nc-sa "fi")
517 (org-license-cc-by-nc-sa "fr")
518 (org-license-cc-by-nc-sa "gl")
519 (org-license-cc-by-nc-sa "it")
520 (org-license-cc-by-nc-sa "jp")
521 (org-license-cc-by-nc-sa "nl")
522 (org-license-cc-by-nc-sa "pt")
523 (org-license-cc-by-nc-nd "br")
524 (org-license-cc-by-nc-nd "ca")
525 (org-license-cc-by-nc-nd "de")
526 (org-license-cc-by-nc-nd "es")
527 (org-license-cc-by-nc-nd "en")
528 ;; (org-license-cc-by-nc-nd "eo")
529 (org-license-cc-by-nc-nd "eu")
530 (org-license-cc-by-nc-nd "fi")
531 (org-license-cc-by-nc-nd "fr")
532 (org-license-cc-by-nc-nd "gl")
533 (org-license-cc-by-nc-nd "it")
534 (org-license-cc-by-nc-nd "jp")
535 (org-license-cc-by-nc-nd "nl")
536 (org-license-cc-by-nc-nd "pt")