debian/0000755000000000000000000000000012226346426007175 5ustar debian/patches/0000755000000000000000000000000012226346426010624 5ustar debian/patches/README0000644000000000000000000000021111671745216011501 0ustar 0xxx: Grabbed from upstream development. 1xxx: Possibly relevant for upstream adoption. 2xxx: Only relevant for official Debian release. debian/patches/1013-pod-note-about-split-dialects.patch0000644000000000000000000000073112226346426020004 0ustar Description: refer to separate dialect packages in POD Author: Jonas Smedegaard --- a/lib/HTML/WikiConverter.pm +++ b/lib/HTML/WikiConverter.pm @@ -67,6 +67,9 @@ dialects' documentation for details of s for improvements, especially in the form of patches, are very much appreciated. +Since version 0.50 all dialects were separated out from HTML:WikiConverter. +Please install the independent dialect packages as needed. + =head1 METHODS =head2 new debian/patches/series0000644000000000000000000000022512226346426012040 0ustar 1012-Allow-and-use-rules-for-text-nodes-as-an-alternative-to-escaping-in-preprocessing.patch 1013-pod-note-about-split-dialects.patch spelling.patch ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootdebian/patches/1012-Allow-and-use-rules-for-text-nodes-as-an-alternative-to-escaping-in-preprocessing.patchdebian/patches/1012-Allow-and-use-rules-for-text-nodes-as-an-alternative-to-escaping-in-preprocessin0000644000000000000000000000276612226346426030415 0ustar Description: Allow and use rules for ~text nodes as an alternative to excaping in preprocessing Author: Jamey Sharp --- a/lib/HTML/WikiConverter.pm +++ b/lib/HTML/WikiConverter.pm @@ -272,13 +272,8 @@ # Concatenate adjacent text nodes $node->normalize_content(); - if( $node->tag eq '~text' ) { - return $node->attr('text'); - } elsif( $node->tag eq '~comment' ) { - return ''; - } else { - my $rules = $self->rules_for_tag( $node->tag ); - + my $rules = $self->rules_for_tag($node->tag); + if ( keys(%$rules) ) { return $self->__subst($rules->{replace}, $node, $rules) if exists $rules->{replace}; # Set private preserve rules @@ -332,7 +327,12 @@ $output = "\n$output" if $rules->{block} and $node->parent->look_up( _tag => $node->tag ) and $trim ne 'none'; return $output; + } elsif ( $node->tag eq '~text' ) { + return $node->attr('text'); + } elsif( $node->tag eq '~comment' ) { + return ''; } + return $self->get_elem_contents($node); } # Deprecated. Instead use elem_search_lineage( $node, { block => 1 } ). @@ -766,7 +766,7 @@ sub __rules_for_tag { my( $self, $tag ) = @_; return $self->__rules->{$tag} if $self->__rules->{$tag}; - return $self->__rules->{UNKNOWN} if $self->__rules->{UNKNOWN} and !$isKnownTag{$tag}; + return $self->__rules->{UNKNOWN} if $self->__rules->{UNKNOWN} and !$isKnownTag{$tag} and $tag ne "~text"; return { }; } debian/patches/spelling.patch0000644000000000000000000000107712226346426013467 0ustar Description: fix a POD typo Author: Florian Schlichting --- a/bin/html2wiki +++ b/bin/html2wiki @@ -220,7 +220,7 @@ Attributes that take boolean values may be enabled by default. The C attribute is one such example. Because of this, C will effectively behave by default as if -C<--wrap-in-html> had been specified in every invokation. If this is +C<--wrap-in-html> had been specified in every invocation. If this is not desired, the option name may be prefixed with C to disable the option, as in C<--no-wrap-in-html>. debian/watch0000644000000000000000000000042111671745216010226 0ustar # Run the "uscan" command to check for upstream updates and more. version=3 #http://www.cpan.org/modules/by-module/HTML/HTML-WikiConverter-([0-9\.]+).tar.gz http://search.cpan.org/dist/HTML-WikiConverter/ .*/HTML-WikiConverter-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) debian/copyright0000644000000000000000000000244512226342767011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/HTML-WikiConverter Upstream-Contact: David J. Iberri Upstream-Name: HTML-WikiConverter Files: * Copyright: 2004-2006, David J. Iberri License: Artistic or GPL-1+ Files: debian/* Copyright: 2005, 2006, Jonas Genannt 2007, 2008, Jonas Smedegaard 2009, Krzysztof Krzyżaniak (eloy) 2009, Nathan Handler 2009, Rene Mayorga 2013, Florian Schlichting License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ 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 the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/control0000644000000000000000000000277612226346426010614 0ustar Source: libhtml-wikiconverter-perl Maintainer: Debian Perl Group Uploaders: Jonas Smedegaard , Rene Mayorga , Krzysztof Krzyżaniak (eloy) , Florian Schlichting Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: libclass-data-accessor-perl, libcss-perl, libhtml-parser-perl, libhtml-tagset-perl, libhtml-tree-perl, libparams-validate-perl, libtest-pod-perl, liburi-perl, perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libhtml-wikiconverter-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libhtml-wikiconverter-perl.git Homepage: http://diberri.dyndns.org/wikipedia/html2wiki/ Package: libhtml-wikiconverter-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libclass-data-accessor-perl, libcss-perl, libhtml-parser-perl, libhtml-tagset-perl, libhtml-tree-perl, libparams-validate-perl, liburi-perl Recommends: libhtml-wikiconverter-dialect, libfile-slurp-perl Description: HTML to wiki markup converter HTML::WikiConverter is an HTML to wiki converter. It can convert HTML source into a variety of wiki markups, called wiki "dialects". . This package contains the core modules. You will need at least one of the dialect packages for this package to be of any real use. debian/compat0000644000000000000000000000000212226341775010375 0ustar 8 debian/changelog0000644000000000000000000001640112226346426011051 0ustar libhtml-wikiconverter-perl (0.68-2) unstable; urgency=low [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). * Change Vcs-Git to canonical URI (git://anonscm.debian.org) [ gregor herrmann ] * debian/NEWS: fix version; thanks lintian. * debian/control: update {versioned,alternative} (build) dependencies. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Florian Schlichting ] * Delete build-dependency on libtest-pod-coverage-perl, coverage testing is for authors only (closes: #720019) * Switch to source format 3.0 (quilt) * Switch to short-form debian/rules * Bump dh compatibility to level 8 (no changes necessary) * Split build dependencies into B-D and B-D-I * Convert debian/copyright to machine-readable format * Declare compliance with Debian Policy 3.9.4 * Remove obsolete / starkly outdated files * Brush up short and long description * Stop recommending all the dialect packages, as was planned for lenny+1 * Refresh patches, adding headers * Add spelling.patch to fix a POD typo * Add myself to uploaders -- Florian Schlichting Sun, 13 Oct 2013 00:15:43 +0200 libhtml-wikiconverter-perl (0.68-1) unstable; urgency=low * New upstream release * debian/control: update Standards-Version to 3.8.1, add me to Uploaders * drop cdbs support, use debhelper 7 instead * debian/copyright: update dates -- Krzysztof Krzyżaniak (eloy) Tue, 12 May 2009 12:40:57 +0200 libhtml-wikiconverter-perl (0.63-1) UNRELEASED; urgency=low [ gregor herrmann ] * Add debian/README.source to document quilt usage, as required by Debian Policy since 3.8.0. * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Ryan Niebur ] * New upstream release [ Rene Mayorga ] * debian/control: update my email address. -- Rene Mayorga Tue, 20 Jan 2009 01:27:31 -0600 libhtml-wikiconverter-perl (0.62-1) unstable; urgency=medium [ Jonas Smedegaard ] * Update debian/copyright: Debian Perl Team holds copyright for Debian packaging in 2008. * Use svn-upgrade (not default uupdate) in watch file. * Update local cdbs tweaks: + Various updates to copyright-check.mk, most importantly relaxing to only warn by default. This fixes a possible FTBFS bug. + Fix update-tarball.mk wget options to work with recent wget. + Update dependency cleanup to strip cdbs 0.4.27 (not 0.4.27-1). * Update debian/copyright-hints. * Bump debhelper compatibility level to 6. * Semi-auto-update debian/control to update build-dependencies: DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean * Bump to urgency=medium due to possible FTBFS bugfix. * Duplicate below changes to build-dependencies and uploaders in control.in. * Recommend dialect packages formerly part of main package: + libhtml-wikiconverter-dokuwiki-perl + libhtml-wikiconverter-kwiki-perl + libhtml-wikiconverter-mediawiki-perl + libhtml-wikiconverter-moinmoin-perl + libhtml-wikiconverter-oddmuse-perl + libhtml-wikiconverter-phpwiki-perl + libhtml-wikiconverter-pmwiki-perl + libhtml-wikiconverter-snipsnap-perl + libhtml-wikiconverter-tikiwiki-perl + libhtml-wikiconverter-usemod-perl + libhtml-wikiconverter-wakkawiki-perl + libhtml-wikiconverter-wikkawiki-perl This (and the upload of libhtml-wikiconverter-mediawiki-perl) closes: bug#473304, thanks to Rowan Rodrik van der Molen. * Add tarball md5sum. * Rewrite NEWS entry to include recommendations as discussed in bug#473304 (with the bonus of fixing syntax, thanks to lintian). [ Rene Mayorga ] * New upstream release * debian/control + add ${misc:Depends} field + add myself to uploaders * debian/copyright + Use GPL-any to license debian/* files * refresh 1012-Allow-and-use-rules-for-text-nodes-as-an-alternative-\ to-escaping-in-preprocessing.patch patch * Update debian/watch with the current model used by pkg-perl * Add 1013-pod-note-about-split-dialects.patch Patch * Add debian/NEWS telling that this package was split from Upstream -- Jonas Smedegaard Sat, 28 Jun 2008 22:03:41 +0200 libhtml-wikiconverter-perl (0.61-3) unstable; urgency=low * Update copyright-check cdbs snippet to parse licensecheck using perl: + No longer randomly drops newlines + More compact hint file (and ordered more like wiki-proposed new copyright syntax). + No longer ignore files without copyright. * Update copyright_hints. -- Jonas Smedegaard Wed, 19 Mar 2008 02:13:30 +0100 libhtml-wikiconverter-perl (0.61-2) unstable; urgency=low * Pass over maintenance of the package to the Perl group: Change Maintainer, and add myself to Uploaders. * Change debian/watch to use svn-upgrade (not uupdate). * Bump up standards-version to 3.7.3 (no changes needed). * Update local cdbs snippets: + Major improvements to update-tarball (but none of them affecting this current packaging). + Major improvements to copyright-check, including new versioned build-dependency on devscripts. Update debian/copyright_hints. + Drop buildcore.mk override. Set DEB_AUTO_UPDATE_DEBIAN_CONTROL directly instead when needed. + Update debian/README.cdbs-tweaks to no longer mention buildcore.mk override. * Semi-auto-update debian/control to apply changes contained in the above: DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean -- Jonas Smedegaard Thu, 21 Feb 2008 04:25:56 +0100 libhtml-wikiconverter-perl (0.61-1) unstable; urgency=low * New upstream source. * Frienly takeover of packaging. Thanks for your work on this, Jonas Genannt. * Repackage using CDBS. * Tighten and extend build-dependencies to reflect new upstream needs. * Recommend libfile-slurp-perl. * Recommend virtual package libhtml-wikiconverter-dialect as they are now packaged separately. * Bump up standards-version to 3.7.2 (no changes needed). * Bump up debhelper compatibility level to 5. * Add watch file. * Build-conflict with libwww-perl to avoid build tests failing. Add note about this problem in debian/TODO. * Add Homepage field to debian/control. * Rewrite debian/copyright to conform to proposed new format at http://wiki.debian.org/Proposals/CopyrightFormat . * Apply patch 1001 to "Allow and use rules for ~text nodes, as an alternative to escaping in preprocessing." Patch found at http://svcs.cs.pdx.edu/~jamey/wikiconverter/ and discussed at http://ikiwiki.info/index/discussion/#index4h1 and at http://www.bddebian.com/~wiki/AboutTheTWikiToIkiwikiConversion/ . -- Jonas Smedegaard Sat, 27 Oct 2007 01:53:40 +0200 libhtml-wikiconverter-perl (0.40-1) unstable; urgency=low * New Upstream Release -- Jonas Genannt Mon, 9 Jan 2006 20:19:12 +0000 libhtml-wikiconverter-perl (0.30-1) unstable; urgency=low * Initial Release. (Closes: #337777) -- Jonas Genannt Mon, 26 Dec 2005 23:42:31 +0100 debian/source/0000755000000000000000000000000012226341510010462 5ustar debian/source/format0000644000000000000000000000001412226342161011673 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000003612226342164010247 0ustar #!/usr/bin/make -f %: dh $@