diff --git a/bin/rtf b/bin/rtf index 909a1e3..9fe4d74 100755 --- a/bin/rtf +++ b/bin/rtf @@ -2,7 +2,7 @@ # # Foswiki Enterprise Collaboration Platform, http://foswiki.org/ # -# Copyright (C) 2007-2014 Michael Daum http://michaeldaumconsulting.com +# Copyright (C) 2007-2016 Michael Daum http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/data/System/RtfContrib.txt b/data/System/RtfContrib.txt index a6869fa..b96bcbf 100644 --- a/data/System/RtfContrib.txt +++ b/data/System/RtfContrib.txt @@ -1,8 +1,6 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1418734112" format="1.1" version="1"}% ---+!! RtfContrib - -%SHORTDESCRIPTION% +%FORMFIELD{"Description"}% %TOC% @@ -54,18 +52,21 @@ generate while translating Foswiki markup to RTF. %$INSTALL_INSTRUCTIONS% ----++ Plugin Info +---++ Dependencies +%$DEPENDENCIES% -| Plugin Author(s): | Foswiki:Main/MichaelDaum | -| Copyright: | © 2007-2014 Michael Daum http://michaeldaumconsulting.com | -| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] | -| Release: | %$RELEASE% | -| Version: | %$VERSION% | -| Change History: |   | +---++ Change History +| 09 Sep 2016: | added missing Config.spec file | | 29 Aug 2014: | fully specify rest security | | 12 Feb 2010: | language support in RTF templates | -| Dependencies: | %$DEPENDENCIES% | -| Plugin Home: | Foswiki:Extensions/RtfContrib | -| Support: | Foswiki:Support/RtfContrib | - +%META:FORM{name="PackageForm"}% +%META:FIELD{name="Author" title="Author" value="Foswiki:Main/MichaelDaum"}% +%META:FIELD{name="Copyright" title="Copyright" value="© 2007-2016 Michael Daum http://michaeldaumconsulting.com"}% +%META:FIELD{name="Description" title="Description" value="%25$SHORTDESCRIPTION%25"}% +%META:FIELD{name="Home" title="Home" value="Foswiki:Extensions/RtfContrib"}% +%META:FIELD{name="License" title="License" value="[[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]]"}% +%META:FIELD{name="Release" title="Release" value="%$RELEASE%"}% +%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/%TOPIC%"}% +%META:FIELD{name="Support" title="Support" value="Foswiki:Support/RtfContrib"}% +%META:FIELD{name="Version" title="Version" value="%$VERSION%"}% diff --git a/lib/Foswiki/Contrib/RtfContrib.pm b/lib/Foswiki/Contrib/RtfContrib.pm index 6f65f21..a4a7dda 100644 --- a/lib/Foswiki/Contrib/RtfContrib.pm +++ b/lib/Foswiki/Contrib/RtfContrib.pm @@ -1,6 +1,6 @@ # Plugin for Foswiki Collaboration Platform, http://foswiki.org/ # -# Copyright (C) 2007-2014 MichaelDaum http://michaeldaumconsulting.com +# Copyright (C) 2007-2016 MichaelDaum http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,8 +16,9 @@ package Foswiki::Contrib::RtfContrib; use strict; use warnings; -our $VERSION = '2.10'; -our $RELEASE = '2.10'; +our $VERSION = '2.11'; +our $RELEASE = '09 Sep 2016'; +our $SHORTDESCRIPTION = 'Extension to translate Foswiki markup to RTF'; ################################################################################ sub export { diff --git a/lib/Foswiki/Contrib/RtfContrib/Config.spec b/lib/Foswiki/Contrib/RtfContrib/Config.spec new file mode 100644 index 0000000..dd0c729 --- /dev/null +++ b/lib/Foswiki/Contrib/RtfContrib/Config.spec @@ -0,0 +1,11 @@ +# ---+ Extensions +# ---++ RtfContrib +# **PERL H LABEL="SwitchBoard - rtf"** +# This setting is required to enable executing rtf from the commandline +$Foswiki::cfg{SwitchBoard}{rtf} = { + package => 'Foswiki::Contrib::RtfContrib', + function => 'export', + contextg => {rtf => 1} +}; + +1; diff --git a/lib/Foswiki/Contrib/RtfContrib/Converter.pm b/lib/Foswiki/Contrib/RtfContrib/Converter.pm index 5236546..b6fd7f3 100644 --- a/lib/Foswiki/Contrib/RtfContrib/Converter.pm +++ b/lib/Foswiki/Contrib/RtfContrib/Converter.pm @@ -1,6 +1,6 @@ # Plugin for Foswiki Collaboration Platform, http://foswiki.org/ # -# Copyright (C) 2007-2014 MichaelDaum http://michaeldaumconsulting.com +# Copyright (C) 2007-2016 MichaelDaum http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/lib/Foswiki/Contrib/RtfContrib/MANIFEST b/lib/Foswiki/Contrib/RtfContrib/MANIFEST index efcf20d..50bfb93 100644 --- a/lib/Foswiki/Contrib/RtfContrib/MANIFEST +++ b/lib/Foswiki/Contrib/RtfContrib/MANIFEST @@ -1,6 +1,8 @@ bin/rtf 0755 data/System/RtfContrib.txt 0644 +lib/Foswiki/Contrib/RtfContrib/Config.spec 0644 lib/Foswiki/Contrib/RtfContrib/Converter.pm 0644 +lib/Foswiki/Contrib/RtfContrib/DEPENDENCIES 0644 lib/Foswiki/Contrib/RtfContrib.pm 0644 lib/Foswiki/Contrib/RtfContrib/TriConverter.pm 0644 templates/oopsrtfbase.tmpl 0644 diff --git a/lib/Foswiki/Contrib/RtfContrib/TriConverter.pm b/lib/Foswiki/Contrib/RtfContrib/TriConverter.pm index 2a2afed..7d248ee 100644 --- a/lib/Foswiki/Contrib/RtfContrib/TriConverter.pm +++ b/lib/Foswiki/Contrib/RtfContrib/TriConverter.pm @@ -1,6 +1,6 @@ # Plugin for Foswiki Collaboration Platform, http://foswiki.org/ # -# Copyright (C) 2007-2014 MichaelDaum http://michaeldaumconsulting.com +# Copyright (C) 2007-2016 MichaelDaum http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License