From c4261e0f9cc4153b83b4a9c51bbeb2cdfa9e5c90 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Mon, 10 Nov 2008 19:41:02 +0100 Subject: [PATCH] Instrumenting extensions with GPL and copyright notes. --- resources/extensions/arrowheads.shext | 18 ++++++++++++++++++ resources/extensions/blockdraw_wfo.shext | 18 ++++++++++++++++++ resources/extensions/bondgraph.shext | 18 ++++++++++++++++++ resources/extensions/braces.shext | 18 ++++++++++++++++++ resources/extensions/centering.shext | 18 ++++++++++++++++++ resources/extensions/circle.shext | 18 ++++++++++++++++++ resources/extensions/circuitparts.shext | 18 ++++++++++++++++++ resources/extensions/conssupport.shext | 18 ++++++++++++++++++ resources/extensions/golden.shext | 18 ++++++++++++++++++ resources/extensions/linkpaths.shext | 18 ++++++++++++++++++ resources/extensions/newline.shext | 18 ++++++++++++++++++ resources/extensions/no-utf-8.shext | 18 ++++++++++++++++++ resources/extensions/pathmapping.shext | 18 ++++++++++++++++++ resources/extensions/revolutionbody.shext | 18 ++++++++++++++++++ resources/extensions/shapes2D.shext | 18 ++++++++++++++++++ resources/extensions/shapes3D.shext | 18 ++++++++++++++++++ resources/extensions/shiftoff.shext | 18 ++++++++++++++++++ 17 files changed, 306 insertions(+) diff --git a/resources/extensions/arrowheads.shext b/resources/extensions/arrowheads.shext index 86699217..6c17b884 100644 --- a/resources/extensions/arrowheads.shext +++ b/resources/extensions/arrowheads.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + MetaPostArrow: \ p ahLength:void ahAngle:30° fillAsStroking:true .> (@blend:BLEND_NORMAL | diff --git a/resources/extensions/blockdraw_wfo.shext b/resources/extensions/blockdraw_wfo.shext index 426ab46a..8684e62a 100644 --- a/resources/extensions/blockdraw_wfo.shext +++ b/resources/extensions/blockdraw_wfo.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + |** This is "blockdraw, Waiting For Object oriented programming ##needs shiftoff diff --git a/resources/extensions/bondgraph.shext b/resources/extensions/bondgraph.shext index 2c16a38b..35eb7b9e 100644 --- a/resources/extensions/bondgraph.shext +++ b/resources/extensions/bondgraph.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + ##needs blockdraw_wfo ##needs centering ##needs shiftoff diff --git a/resources/extensions/braces.shext b/resources/extensions/braces.shext index d1dc53b5..0586f8f3 100644 --- a/resources/extensions/braces.shext +++ b/resources/extensions/braces.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + genericBrace: \ p0 p1 height aEnd rEndFactor aMid rMidFactor extendLimitFactor .> { rEnd: height * rEndFactor diff --git a/resources/extensions/centering.shext b/resources/extensions/centering.shext index 054e2649..405ed6c3 100644 --- a/resources/extensions/centering.shext +++ b/resources/extensions/centering.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + xmax: \ p .> [maximizer p (1,0)].p.x xmin: \ p .> [maximizer p (~1,0)].p.x ymax: \ p .> [maximizer p (0,1)].p.y diff --git a/resources/extensions/circle.shext b/resources/extensions/circle.shext index e64759a9..cfb8c4a4 100644 --- a/resources/extensions/circle.shext +++ b/resources/extensions/circle.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + circle: { p1cm: @defaultunit:1%c diff --git a/resources/extensions/circuitparts.shext b/resources/extensions/circuitparts.shext index d8601107..073a6e8d 100644 --- a/resources/extensions/circuitparts.shext +++ b/resources/extensions/circuitparts.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + resistance: \ .> ( @width:@connectionlw & @cap:CAP_SQUARE diff --git a/resources/extensions/conssupport.shext b/resources/extensions/conssupport.shext index 276ad81d..69eb36a8 100644 --- a/resources/extensions/conssupport.shext +++ b/resources/extensions/conssupport.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + foldl: \ op nullRes lst .> [if [null? lst] nullRes [foldl op [op nullRes lst.car] lst.cdr]] foldr: \ op nullRes lst .> [if [null? lst] nullRes [op [foldr op nullRes lst.cdr] lst.car]] diff --git a/resources/extensions/golden.shext b/resources/extensions/golden.shext index 9f8e5f90..8eace6a9 100644 --- a/resources/extensions/golden.shext +++ b/resources/extensions/golden.shext @@ -1,2 +1,20 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + golden: ( [sqrt 5] + 1 ) / 2 Golden: 1 / golden diff --git a/resources/extensions/linkpaths.shext b/resources/extensions/linkpaths.shext index 36846884..450f5c6a 100644 --- a/resources/extensions/linkpaths.shext +++ b/resources/extensions/linkpaths.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + ##needs conssupport linkpaths: \ p1 p2 .> diff --git a/resources/extensions/newline.shext b/resources/extensions/newline.shext index 03663429..942939b8 100644 --- a/resources/extensions/newline.shext +++ b/resources/extensions/newline.shext @@ -1 +1,19 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + newline: `¢n´ diff --git a/resources/extensions/no-utf-8.shext b/resources/extensions/no-utf-8.shext index cf018691..0e15e43a 100644 --- a/resources/extensions/no-utf-8.shext +++ b/resources/extensions/no-utf-8.shext @@ -1,2 +1,20 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + pi: 180° oo: ∞ diff --git a/resources/extensions/pathmapping.shext b/resources/extensions/pathmapping.shext index 286d381d..685f94e4 100644 --- a/resources/extensions/pathmapping.shext +++ b/resources/extensions/pathmapping.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + pathmap: { meeter: \ p1 p2 .> diff --git a/resources/extensions/revolutionbody.shext b/resources/extensions/revolutionbody.shext index 741754fc..8e2d73ba 100644 --- a/resources/extensions/revolutionbody.shext +++ b/resources/extensions/revolutionbody.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + makeSectionThreeNormals: \ profile phiSteps thetaSteps .> { stepLength: [abs profile] / phiSteps diff --git a/resources/extensions/shapes2D.shext b/resources/extensions/shapes2D.shext index 6ebb7820..ea116a06 100644 --- a/resources/extensions/shapes2D.shext +++ b/resources/extensions/shapes2D.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + polyDisc: \ radius sides .> { deltaAngle: 360° / sides diff --git a/resources/extensions/shapes3D.shext b/resources/extensions/shapes3D.shext index ff74b58f..5d5fd425 100644 --- a/resources/extensions/shapes3D.shext +++ b/resources/extensions/shapes3D.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + cylinderWall: \ radius height sides .> { deltaAngle: 360° / sides diff --git a/resources/extensions/shiftoff.shext b/resources/extensions/shiftoff.shext index b24aeb61..746eaf88 100644 --- a/resources/extensions/shiftoff.shext +++ b/resources/extensions/shiftoff.shext @@ -1,3 +1,21 @@ +/** This file is part of Shapes. + ** + ** Shapes is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** any later version. + ** + ** Shapes is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Shapes. If not, see . + ** + ** Copyright 2008 Henrik Tidefelt + **/ + ##needs centering to_lft: 0 -- 2.11.4.GIT