From 181b72469b27cc2f711525838463e98a0920161c Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Tue, 20 Jun 2017 00:04:54 -0300 Subject: Help-in-browser: several improvements * tabs for Contents/Index/Search * product version (6.0, 5.3, 5.2, etc...) * capable to receive URL from LibreOffice help call (need to change help url in sfx2/: protocol:///index.html? Change-Id: I2244336ea47cdb923884ae97b9f4a586d85ec706 Reviewed-on: https://gerrit.libreoffice.org/39227 Reviewed-by: Olivier Hallot Tested-by: Olivier Hallot --- help3xsl/get_bookmark.sh | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 help3xsl/get_bookmark.sh (limited to 'help3xsl/get_bookmark.sh') diff --git a/help3xsl/get_bookmark.sh b/help3xsl/get_bookmark.sh new file mode 100755 index 0000000000..d926787da4 --- /dev/null +++ b/help3xsl/get_bookmark.sh @@ -0,0 +1,64 @@ +#/bin/bash + +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# $1 is html/productversion/ +# $2 is Language +# $3 is productversion + +outdir=$1$2 +mkdir -p $outdir +sourcedir=`pwd`/ +ffile=$outdir'/bookmarks.js' +rm -f $ffile +ffile2=temp.html +stub2=\' +xslfile=$outdir/../../../get_bookmark.xsl + +# bookmarks for modules + +for i in CALC CHART WRITER DRAW IMPRESS MATH BASIC +do +stub1='document.getElementById("bookmark'$i'").innerHTML='\'\\ +sfind=$sourcedir`echo 'text/s'$i | tr '[:upper:]' '[:lower:]'` +param='--stringparam app '$i +param=$param' --stringparam Language '$2 +param=$param' --stringparam productversion '$3 +rm -f $ffile2 +find $sfind -type f -name "*.xhp" -exec xsltproc $param $xslfile {} + >> $ffile2 +echo $stub1 >> $ffile +sort -k3b -t\> -s -o $ffile2 $ffile2 +awk 'NF' $ffile2 >> $ffile +echo $stub2 >> $ffile +done + +# Case of SHARED + +stub1='document.getElementById("bookmarkSHARED").innerHTML='\'\\ +rm -f $ffile2 +param='--stringparam app SHARED' +param=$param' --stringparam Language '$2 +param=$param' --stringparam productversion '$3 +find $sourcedir'text/shared' -type f -name "*.xhp" -exec xsltproc $param $xslfile {} + >> $ffile2 +echo $stub1 >> $ffile +sort -k3b -t\> -s -o $ffile2 $ffile2 +awk 'NF' $ffile2 >> $ffile +echo $stub2 >> $ffile + +# Case of Explorer (BASE) + +stub1='document.getElementById("bookmarkBASE").innerHTML='\'\\ +rm -f $ffile2 +param='--stringparam app BASE' +param=$param' --stringparam Language '$2 +param=$param' --stringparam productversion '$3 +find $sourcedir'text/shared/explorer/database' -type f -name "*.xhp" -exec xsltproc $param $xslfile {} + >> $ffile2 +echo $stub1 >> $ffile +sort -k3b -t\> -s -o $ffile2 $ffile2 +awk 'NF' $ffile2 >> $ffile +echo $stub2 >> $ffile +rm -f $ffile2 -- cgit llabora/lov-5.1 LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-10-19 13:24:14 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-10-19 13:50:14 +0200
commitdedc237384aa088b21796e0eb6d23501e00aaf89 (patch)
tree7beebacfb4d3bc93727d23f08ac55f03c848af1e /source/nr/officecfg
parent639342ecb83334102cb3659a5894643ac64d7327 (diff)
update templates for 6.0.0 alpha1
Change-Id: Ie5bf8ab575cb94b341c277daa0cd9f6f2f6871f0
Diffstat (limited to 'source/nr/officecfg')