Hello community, here is the log from the commit of package perl-XML-Entities for openSUSE:Factory checked in at 2012-10-18 22:02:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-XML-Entities (Old) and /work/SRC/openSUSE:Factory/.perl-XML-Entities.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-XML-Entities", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-XML-Entities/perl-XML-Entities.changes 2011-09-23 12:39:26.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-XML-Entities.new/perl-XML-Entities.changes 2012-10-18 22:02:12.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Oct 16 20:32:13 UTC 2012 - greg.freem...@gmail.com + +- update to 1.0001 + * Added docs about encoding entities. + +------------------------------------------------------------------- Old: ---- XML-Entities-1.0000.tar.gz New: ---- XML-Entities-1.0001.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-XML-Entities.spec ++++++ --- /var/tmp/diff_new_pack.7MyV9N/_old 2012-10-18 22:02:14.000000000 +0200 +++ /var/tmp/diff_new_pack.7MyV9N/_new 2012-10-18 22:02:14.000000000 +0200 @@ -1,7 +1,8 @@ +# vim: set sw=3 ts=3 noet: # # spec file for package perl-XML-Entities # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,13 +16,13 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-XML-Entities -Version: 1.0000 -Release: 1 +Version: 1.0001 +Release: 0 Summary: Perl Module to decode Strings with XML Entities +License: Artistic-1.0 or GPL-1.0+ +Group: Development/Libraries/Perl Source: http://search.cpan.org/CPAN/authors/id/S/SI/SIXTEASE/XML-Entities-%{version}.tar.gz Patch1: perl-XML-Entities-local_files.patch Source10: http://www.w3.org/2003/entities/iso9573-2003doc/overview.html @@ -48,11 +49,12 @@ Source31: http://www.w3.org/2003/entities/iso9573-2003doc/../iso9573-2003/isomscr.ent Source32: http://www.w3.org/2003/entities/iso9573-2003doc/../iso9573-2003/isotech.ent Url: http://search.cpan.org/dist/XML-Entities/ -Group: Development/Libraries/Perl -License: Artistic-1.0 or GPL-1.0+ BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: perl = %{perl_version} -BuildRequires: make perl perl-libwww-perl perl-macros +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-libwww-perl +BuildRequires: perl-macros %description This module deals with decoding of strings with XML character entities. @@ -97,6 +99,4 @@ %doc %{perl_man3dir}/XML::Entities*.%{perl_man3ext}%{ext_man} %exclude %{perl_man3dir}/download-entities.pl.%{perl_man3ext}%{ext_man} -# vim: set sw=3 ts=3 noet: - %changelog ++++++ XML-Entities-1.0000.tar.gz -> XML-Entities-1.0001.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/Changes new/XML-Entities/Changes --- old/XML-Entities/Changes 2010-08-26 19:45:40.000000000 +0200 +++ new/XML-Entities/Changes 2012-08-03 13:36:24.000000000 +0200 @@ -1,5 +1,8 @@ Revision history for XML-Entities +1.0001 2012-08-03 13:32 + Added docs about encoding entities. + 1.0000 2010-08-24 19:24 Abandoned the download-on-build policy. Entities are now shipped with the module itself. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/MANIFEST new/XML-Entities/MANIFEST --- old/XML-Entities/MANIFEST 2010-08-26 19:45:40.000000000 +0200 +++ new/XML-Entities/MANIFEST 2012-08-03 13:36:24.000000000 +0200 @@ -1,8 +1,10 @@ +Build.PL Changes MANIFEST Makefile.PL META.yml README +ignore.txt lib/XML/Entities.pm lib/XML/Entities/Data.pm lib/XML/Entities/Data.pod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/META.yml new/XML-Entities/META.yml --- old/XML-Entities/META.yml 2010-08-26 19:45:40.000000000 +0200 +++ new/XML-Entities/META.yml 2012-08-03 13:36:24.000000000 +0200 @@ -1,9 +1,9 @@ --- #YAML:1.0 name: XML-Entities abstract: Mapping of XML entities to Unicode -version: 0.0307 +version: 1.0001 author: - - Oldrich Kruza <sixte...@cpan.org> + - Jan Oldrich Kruza <sixte...@cpan.org> license: perl distribution_type: module requires: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/README new/XML-Entities/README --- old/XML-Entities/README 2010-08-26 19:45:40.000000000 +0200 +++ new/XML-Entities/README 2012-08-03 13:36:24.000000000 +0200 @@ -48,7 +48,7 @@ COPYRIGHT AND LICENCE -Copyright (C) 2007 Oldřich Krůza <oldrich.kr...@sixtease.net> +Copyright (C) 2012 Jan Oldřich Krůza <sixte...@cpan.org> This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/ignore.txt new/XML-Entities/ignore.txt --- old/XML-Entities/ignore.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/XML-Entities/ignore.txt 2012-08-03 13:36:24.000000000 +0200 @@ -0,0 +1,12 @@ +blib* +Makefile +Makefile.old +Build +Build.bat +_build* +pm_to_blib* +*.tar.gz +.lwpcookies +cover_db +pod2htm*.tmp +XML::Entities-* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/lib/XML/Entities.pm new/XML-Entities/lib/XML/Entities.pm --- old/XML-Entities/lib/XML/Entities.pm 2010-08-26 19:45:40.000000000 +0200 +++ new/XML-Entities/lib/XML/Entities.pm 2012-08-03 13:36:24.000000000 +0200 @@ -5,7 +5,7 @@ use Carp; use XML::Entities::Data; -our $VERSION = '1.0000'; +our $VERSION = '1.0001'; eval { require HTML::Parser }; # for fast XS implemented _decode_entities @@ -153,13 +153,27 @@ The list can be generated from the w3.org definition (or any other). Check C<perldoc XML::Entities::Data> for more details. +=head2 Encoding entities + +The HTML::Entities module provides a function for encoding entities. You just +have to assign the right mapping to the C<%HTML::Entities::char2entity> hash. +So, to encode everything that XML::Entities knows about, you'd say: + + use XML::Entities; + use HTML::Entities; + %HTML::Entities::char2entity = %{ + XML::Entities::Data::char2entity('all'); + }; + my $encoded = encode_entities('tom&jerry'); + # now $encoded is 'tom&jerry' + =head1 SEE ALSO HTML::Entities, XML::Entities::Data =head1 COPYRIGHT -Copyright 2010 Jan Oldrich Kruza E<lt>sixte...@cpan.orge<gt>. All rights reserved. +Copyright 2012 Jan Oldrich Kruza E<lt>sixte...@cpan.orge<gt>. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/lib/XML/md new/XML-Entities/lib/XML/md --- old/XML-Entities/lib/XML/md 1970-01-01 01:00:00.000000000 +0100 +++ new/XML-Entities/lib/XML/md 2012-08-03 13:36:24.000000000 +0200 @@ -0,0 +1,68 @@ +# NAME + +XML::Entities - Decode strings with XML entities + +# SYNOPSIS + + use XML::Entities; + + $a = "Tom & Jerry © Warner Bros."; + $b = XML::Entities::decode('all', $a); + $c = XML::Entities::numify('all', $a); + # now $b is "Tom & Jerry © Warner Bros. + # and $c is "Tom & Jerry © Warner Bros." + + # void context modifies the arguments + XML::Entities::numify('all', $a); + XML::Entities::decode('all', $a, $c); + # Now $a, $b and $c all contain the decoded string + +# DESCRIPTION + +Based upon the HTML::Entities module by Gisle Aas + +This module deals with decoding of strings with XML +character entities. The module provides two functions: + +- decode( $entity\_set, $string, ... ) + +This routine replaces XML entities from $entity\_set found in the +$string with the corresponding Unicode character. Unrecognized +entities are left alone. + +The $entity\_set can either be a name of an entity set - the selection +of which can be obtained by XML::Entities::Data::names(), or "all" for +a union, or alternatively a hashref which maps entity names (without +leading &'s) to the corresponding Unicode characters (or strings). + +If multiple strings are provided as argument they are each decoded +separately and the same number of strings are returned. + +If called in void context the arguments are decoded in-place. + +Note: If your version of `HTML::Parser` was built without Unicode support, then +`XML::Entities` uses a regular expression to do the decoding, which is slower. + +- numify( $entity\_set, $string, ... ) + +This functions converts named XML entities to numeric XML entities. It is less +robust than the `decode` function in the sense that it doesn't capture +improperly terminated entities. It behaves like `decode` in treating parameters +and returning values. + +## XML::Entities::Data + +The list of entities is defined in the XML::Entities::Data module. +The list can be generated from the w3.org definition (or any other). +Check `perldoc XML::Entities::Data` for more details. + +# SEE ALSO + +HTML::Entities, XML::Entities::Data + +# COPYRIGHT + +Copyright 2010 Jan Oldrich Kruza <sixte...@cpan.org>. All rights reserved. + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-Entities/lib/XML/md.html new/XML-Entities/lib/XML/md.html --- old/XML-Entities/lib/XML/md.html 1970-01-01 01:00:00.000000000 +0100 +++ new/XML-Entities/lib/XML/md.html 2012-08-03 13:36:24.000000000 +0200 @@ -0,0 +1,73 @@ +<h1>NAME</h1> + +<p>XML::Entities - Decode strings with XML entities</p> + +<h1>SYNOPSIS</h1> + +<pre><code>use XML::Entities; + +$a = "Tom &amp; Jerry &copy; Warner Bros&period;"; +$b = XML::Entities::decode('all', $a); +$c = XML::Entities::numify('all', $a); +# now $b is "Tom & Jerry © Warner Bros. +# and $c is "Tom &#38; Jerry &#169; Warner Bros&#46;" + +# void context modifies the arguments +XML::Entities::numify('all', $a); +XML::Entities::decode('all', $a, $c); +# Now $a, $b and $c all contain the decoded string +</code></pre> + +<h1>DESCRIPTION</h1> + +<p>Based upon the HTML::Entities module by Gisle Aas</p> + +<p>This module deals with decoding of strings with XML +character entities. The module provides two functions:</p> + +<ul> +<li>decode( $entity_set, $string, ... )</li> +</ul> + +<p>This routine replaces XML entities from $entity_set found in the +$string with the corresponding Unicode character. Unrecognized +entities are left alone.</p> + +<p>The $entity_set can either be a name of an entity set - the selection +of which can be obtained by XML::Entities::Data::names(), or "all" for +a union, or alternatively a hashref which maps entity names (without +leading &'s) to the corresponding Unicode characters (or strings).</p> + +<p>If multiple strings are provided as argument they are each decoded +separately and the same number of strings are returned.</p> + +<p>If called in void context the arguments are decoded in-place.</p> + +<p>Note: If your version of <code>HTML::Parser</code> was built without Unicode support, then +<code>XML::Entities</code> uses a regular expression to do the decoding, which is slower.</p> + +<ul> +<li>numify( $entity_set, $string, ... )</li> +</ul> + +<p>This functions converts named XML entities to numeric XML entities. It is less +robust than the <code>decode</code> function in the sense that it doesn't capture +improperly terminated entities. It behaves like <code>decode</code> in treating parameters +and returning values.</p> + +<h2>XML::Entities::Data</h2> + +<p>The list of entities is defined in the XML::Entities::Data module. +The list can be generated from the w3.org definition (or any other). +Check <code>perldoc XML::Entities::Data</code> for more details.</p> + +<h1>SEE ALSO</h1> + +<p>HTML::Entities, XML::Entities::Data</p> + +<h1>COPYRIGHT</h1> + +<p>Copyright 2010 Jan Oldrich Kruza <a href="mailto:sixtease@cpan.org">sixtease@cpan.org</a>. All rights reserved.</p> + +<p>This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself.</p> -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org