Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhabacker:branches:windows:mingw:win32
mingw32-gnumeric
gnumeric-1.10.7-add_dbhh.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnumeric-1.10.7-add_dbhh.patch of Package mingw32-gnumeric
--- /dev/null 2010-07-05 08:19:10.373264024 +0200 +++ doc/add_dbhh.pl 2009-11-20 16:51:44.000000000 +0100 @@ -0,0 +1,78 @@ +#!/usr/bin/perl +use strict; +use warnings; + +use Data::Dumper; +use HTML::Parser (); +use HTML::Entities (); + +use Getopt::Long; + +my $indent = 2; +my $out_dir = 'output'; +my $map_file = 'hhmap'; + +binmode(STDOUT, ":utf8"); + +GetOptions( + 'indent=s' => \$indent, + 'out-dir=s' => \$out_dir, + 'map-file=s' => \$map_file, +); + +my @list; + +sub start { + my ($tagname, $attr, $offset_end, $column) = @_; + + if ($tagname =~ /\Asect[0-9]\Z/i) { + my %attr; + + while (my ($k, $v) = each %$attr) { + $attr{lc($k)} = $v; + } + + push @list, [$offset_end, $column, $attr{id}]; + } +} + +my $id = 10; + +mkdir $out_dir; +open MAP, '>:utf8', "$map_file"; + +foreach my $file (<*.xml>) { + open FH, "<:utf8", $file; + my $xml = do { local $/; <FH>; }; + close FH; + + @list = (); + + my $p = HTML::Parser->new( + api_version => 3, + start_h => [\&start, "tagname, attr, offset_end, column"], + marked_sections => 1, + ); + + $p->parse($xml); + + my $last = 0; + + open FH, '>:utf8', "$out_dir/$file"; + + foreach my $sect (@list) { + my ($offset, $column, $name) = @$sect; + print FH substr($xml, $last, ($offset - $last)); + print FH "\n" . (' ' x ($column + $indent)) . "<?dbhh topicname=\"$name\" topicid=\"$id\"?>\n"; + print MAP "$id\t$name\n"; + $last = $offset; + ++$id; + } + + print FH substr($xml, $last); + + close FH; +} +close MAP; + +# vi: set autoindent shiftwidth=4 tabstop=8 softtabstop=4 expandtab: --- doc/C/gnumeric-docbook-2-htmlhelp.xsl 2009-05-19 04:04:09.000000000 +0200 +++ doc/C/gnumeric-docbook-2-htmlhelp.xsl 2010-07-05 13:39:30.000000000 +0200 @@ -15,7 +15,7 @@ --> - <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/htmlhelp/htmlhelp.xsl"/> + <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/current/htmlhelp/htmlhelp.xsl"/> <!-- <xsl:param name="" select=""/> --- doc/C/Makefile.am 2010-06-05 05:49:20.000000000 +0200 +++ doc/C/Makefile.am 2010-07-05 14:19:39.000000000 +0200 @@ -91,17 +91,17 @@ winhelp_DATA = winhelpdir=$(gnumeric_datadir)/$(subdir) -if WITH_WIN32 -winhelp_DATA += gnumeric.chm gnumeric.hhmap - -gnumeric.hhmap: chm-stamp - -(cd chm && wine 'C:\Program Files\HTML Help Workshop\hhc.exe' gnumeric.hhp) - cp chm/gnumeric.hhmap . - -gnumeric.chm: gnumeric.hhmap - cp chm/gnumeric.chm . - -endif +#if WITH_WIN32 +#winhelp_DATA += gnumeric.chm gnumeric.hhmap +# +#gnumeric.hhmap: chm-stamp +# -(cd chm && wine 'C:\Program Files\HTML Help Workshop\hhc.exe' gnumeric.hhp) +# cp chm/gnumeric.hhmap . +# +#gnumeric.chm: gnumeric.hhmap +# cp chm/gnumeric.chm . +# +#endif # from gnumeric-doc.make dist-hook: validate --- icons/Makefile.am 2010-07-05 14:17:53.000000000 +0200 +++ icons/Makefile.am 2010-07-05 14:28:13.000000000 +0200 @@ -28,7 +28,7 @@ fake_index_theme_target += install-fake-index-theme install-fake-index-theme: fake-index-theme - install -m 0644 fake-index-theme $(datadir)/icons/hicolor/index.theme +# install -m 0644 fake-index-theme $(DESTDIR)$(datadir)/icons/hicolor/index.theme endif install-data-hook: update-icon-cache $(fake_index_theme_target)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor