4 changed files with 149 additions and 0 deletions
@ -0,0 +1,39 @@
|
||||
diff -Naur docbook2odf-0.244.orig/utils/docbook2odf docbook2odf-0.244/utils/docbook2odf
|
||||
--- docbook2odf-0.244.orig/utils/docbook2odf 2007-05-19 12:55:08.000000000 +0200
|
||||
+++ docbook2odf-0.244/utils/docbook2odf 2010-09-19 01:13:18.248345351 +0200
|
||||
@@ -364,9 +364,6 @@
|
||||
#751mm=284px*2.644 196mm=74px
|
||||
$content=~s|<!TMP!>||;
|
||||
}
|
||||
-
|
||||
- # convert alternative nbsp character to ODF spaces
|
||||
- $content=~s|([\xC2\x82]+)|'<text:s text:c="'.length($1).'"/>'|eg;
|
||||
};
|
||||
print "\n" if $debug;
|
||||
|
||||
@@ -533,4 +530,4 @@
|
||||
}
|
||||
|
||||
|
||||
-1;
|
||||
\ No newline at end of file
|
||||
+1;
|
||||
diff -Naur docbook2odf-0.244.orig/xsl/document-content/verbatim.xsl docbook2odf-0.244/xsl/document-content/verbatim.xsl
|
||||
--- docbook2odf-0.244.orig/xsl/document-content/verbatim.xsl 2007-05-06 14:28:08.000000000 +0200
|
||||
+++ docbook2odf-0.244/xsl/document-content/verbatim.xsl 2010-09-19 01:13:31.476200026 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE xsl:stylesheet [
|
||||
<!ENTITY RE " ">
|
||||
<!ENTITY nbsp " ">
|
||||
-<!ENTITY nbsp2 "‚">
|
||||
+<!ENTITY nbsp2 " ">
|
||||
]>
|
||||
<!--
|
||||
|
||||
@@ -122,4 +122,4 @@
|
||||
|
||||
|
||||
|
||||
-</xsl:stylesheet>
|
||||
\ No newline at end of file
|
||||
+</xsl:stylesheet>
|
@ -0,0 +1 @@
|
||||
299388451c53d135c8f9bbde6f99c7b861d9efad docbook2odf-0.244.tar.gz |
@ -0,0 +1,97 @@
|
||||
#!/bin/bash |
||||
# Build script for Slackware |
||||
# Copyright (C) 2010 Damien Goutte-Gattat |
||||
# |
||||
# Redistribution and use of this script, with or without modifications, |
||||
# is permitted provided that the following conditions are met: |
||||
# |
||||
# 1. Redistributions of this script must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR |
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
||||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||||
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, |
||||
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
||||
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
||||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
||||
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||||
# POSSIBILITY OF SUCH DAMAGE. |
||||
# |
||||
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org> |
||||
# |
||||
# Latest docbook2odf sourcecode is available at: |
||||
# <http://open.comsultia.com/docbook2odf/>. |
||||
|
||||
# Source package infos |
||||
NAMESRC=${NAMESRC:-docbook2odf} |
||||
VERSION=${VERSION:-0.244} |
||||
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
||||
WGET=${WGET:-http://open.comsultia.com/docbook2odf/dwn/$ARCHIVE} |
||||
|
||||
# Build infos |
||||
NAMEPKG=${NAMEPKG:-docbook2odf} |
||||
BUILD=${BUILD:-1GGD} |
||||
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
||||
EXT=${EXT:-txz} |
||||
|
||||
# Directories |
||||
TMP=${TMP:-/tmp} |
||||
OUT=${OUT:-$TMP/build} |
||||
PKG=${PKG:-$OUT/$NAMEPKG} |
||||
CWD=$(pwd) |
||||
|
||||
set -e # Quit if a command returns non-zero |
||||
|
||||
# Sanity checks |
||||
if [ $UID -eq 0 ]; then |
||||
echo "You should NOT run this script as ROOT!" |
||||
exit 1 |
||||
fi |
||||
if [ ! -d $TMP ]; then |
||||
echo "$TMP does not exist or is not a directory!" |
||||
exit 1 |
||||
fi |
||||
|
||||
# Get and verify the source archive |
||||
if [ ! -r $ARCHIVE ]; then |
||||
wget -c -O $ARCHIVE.part "$WGET" |
||||
mv $ARCHIVE.part $ARCHIVE |
||||
fi |
||||
sha1sum -c $ARCHIVE.sha1 |
||||
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
||||
|
||||
# Extract and install |
||||
cd $TMP |
||||
echo "Building $ARCHIVE..." |
||||
tar xf $CWD/$ARCHIVE |
||||
cd $NAME |
||||
patch -p 1 < $CWD/docbook2odf-0.244-fix-spaces.diff |
||||
install -D -m 755 utils/docbook2odf $PKG/usr/bin/docbook2odf |
||||
install -D -m 644 docs/docbook2odf.1 $PKG/usr/man/man1/docbook2odf.1 |
||||
gzip -9 $PKG/usr/man/man1/docbook2odf.1 |
||||
mkdir -p $PKG/usr/share/{applications,docbook2odf} |
||||
cp -a xsl $PKG/usr/share/docbook2odf/ |
||||
install -m 644 bindings/desktop/docbook2odf.desktop \ |
||||
$PKG/usr/share/applications/ |
||||
install -D -m 644 license $PKG/usr/doc/$NAME/license |
||||
|
||||
# Copy slack-desc file |
||||
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
||||
|
||||
# Package the tree |
||||
cd $PKG |
||||
mkdir -p $OUT |
||||
PACKAGING=" |
||||
chown root:root . -R |
||||
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT |
||||
rm -rf $PKG |
||||
rm -rf $TMP/$NAME |
||||
" |
||||
if type -p fakeroot ; then |
||||
echo "$PACKAGING" | fakeroot |
||||
else |
||||
su -c "$PACKAGING" |
||||
fi |
@ -0,0 +1,12 @@
|
||||
|-----handy-ruler--------------------------------------------------| |
||||
docbook2odf: docbook2odf (DocBook to OpenDocument converter) |
||||
docbook2odf: |
||||
docbook2odf: Docbook2odf is a toolkit that automatically converts DocBook to |
||||
docbook2odf: OASIS OpenDocument. Conversion is based on a XSLT which makes it |
||||
docbook2odf: easy to convert DocBook to ODF, ODT, ODS and ODP as all these |
||||
docbook2odf: documents are XML based. |
||||
docbook2odf: |
||||
docbook2odf: |
||||
docbook2odf: |
||||
docbook2odf: |
||||
docbook2odf: |
Loading…
Reference in new issue