summaryrefslogtreecommitdiff
path: root/help3xsl/xhp2html.sh
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-08-02 00:49:11 -0300
committerOlivier Hallot <olivier.hallot@edx.srv.br>2017-08-02 06:01:42 +0200
commit9f9cebab254146cbae0a093626ed78801e85b98f (patch)
tree2a6e56904450fe3d88ad2d21e561a5c83d7c9dd8 /help3xsl/xhp2html.sh
parent4d6f86d203814a211eae9dfacd4baf195ca4ff1d (diff)
tdf#97745 Handle offline browser help
* Rename index.html to LOHelp.html. index.html is a bad name, too generic. LOHelp.html is invoked by LibreOffice and is not a popular file name. * Clean the XSLT transform, add suport for local help. * reposition bookmark2file.js in the target tree. * remove obsolete files * page tree now capable to be opened by file:// protocol, passing 'online' parameter and folder address to the bash script. Change-Id: I2cf9f69de7896bd74074745993ef033bef5c3503 Reviewed-on: https://gerrit.libreoffice.org/40661 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'help3xsl/xhp2html.sh')
-rwxr-xr-xhelp3xsl/xhp2html.sh41
1 files changed, 38 insertions, 3 deletions
diff --git a/help3xsl/xhp2html.sh b/help3xsl/xhp2html.sh
index eb2696a6e4..7ba59588fa 100755
--- a/help3xsl/xhp2html.sh
+++ b/help3xsl/xhp2html.sh
@@ -16,14 +16,24 @@
#
# Note: change rootHelpex variable to your local git build
#
+# convert2HTML $outDirLang $outDirHTML $lang $productversion $online $fileTree &
function convert2HTML() {
#outDirLang =1
#outDirHTML =2
#lang =3
#productversion =4
+#online=5
+#filetree=6
+
+###########################################
+#
+# Process translated XHP files
+#
+###########################################
+
+xsltparm='--stringparam fileTree '$6' --stringparam local '$5' --stringparam Language '$3' --stringparam productversion '$4' --stringparam root '$1'/'
-xsltparm='--stringparam Language '$3' --stringparam productversion '$4' --stringparam root '$1'/'
echo 'Conversion to HTML started for '$3
for filep in `find $1/text -name "*.xhp"`
do
@@ -33,7 +43,11 @@ outFile=$2'/text/'$name'html'
xsltproc $xsltparm -o $outFile online_transform.xsl $filep
done
+###########################################
+#
# Process tree files
+#
+###########################################
treePOFile=`mktemp`
echo $root/translations/source/$3/helpcontent2/source/auxiliary.po > $treePOFile
@@ -69,8 +83,17 @@ rm -f $treePOFile
echo 'Conversion to HTML finished for '$3
}
+###########################################
+#
+# Start Main Process
+#
+###########################################
+
# Change root of git core
productversion='6.0'
+local='no'
+fileTree='/home/tdf/git/core/helpcontent2/help3xsl/html/'
+
rootHelpex=/home/tdf/git/core
ALL_LANGS='en-US am ar ast bg bn bn-IN bo bs ca ca-valencia cs da de dz el en-GB en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko lo lt lv mk nb ne nl nn om pl pt-BR pt ro ru sid si sk sl sq sv ta tg tr ug uk vi zh-CN zh-TW'
@@ -87,6 +110,8 @@ mkdir -p $here'/html/'$productversion
echo 'copy global service files'
cp index.html $here'/html/'
+cp LOHelp.html $here'/html/'
+cp index2.html $here'/html/'$productversion'/index.html'
cp help.js $here'/html/'$productversion'/'
cp jquery-3.1.1.min.js $here'/html/'$productversion'/'
cp normalize.css $here'/html/'$productversion'/'
@@ -117,10 +142,14 @@ echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}"
echo "setting search path to: ${LD_LIBRARY_PATH}"
echo "execing: ${exedir}/helpex"
+###########################################
+#
# Create the bookmark2file map
+#
+###########################################
stub1='var map={'
stub2='};'
-ffile='html/bookmark2file.js'
+ffile='html/'$productversion'/bookmark2file.js'
ffile2=/tmp/tmpbkm.txt
rm -f $ffile2 $ffile
find $helpfiles -type f -name "*.xhp" -exec xsltproc get_url.xsl {} + > $ffile2
@@ -128,6 +157,12 @@ echo $stub1 >> $ffile
awk 'NF' $ffile2 >> $ffile
echo $stub2 >> $ffile
+###########################################
+#
+# Process languages
+#
+###########################################
+
for lang in $ALL_LANGS
do
@@ -178,7 +213,7 @@ echo 'Extracting bookmarks'
./get_bookmark.sh $lang $productversion &
# converting to HTML
-convert2HTML $outDirLang $outDirHTML $lang $productversion &
+convert2HTML $outDirLang $outDirHTML $lang $productversion $local $fileTree &
rm -f $pofiles $xhpfiles
done
ffice-4-4-7 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLLegendContext.cxx
AgeCommit message (Expand)Author
2024-05-15loplugin:ostr in xmloffNoel Grandin
2024-03-12tdf#146619 Recheck xmloff/*cxx with IWYUGabor Kelemen
2022-05-03Just use Any ctor instead of makeAny in xmloffStephan Bergmann
2020-12-15use views to parse rather than allocating OUStringNoel
2020-11-19fastparser in SchXMLLegendContextNoel Grandin
2020-11-17fastparser in SchXMLChartContextNoel Grandin
2020-08-14rename xmlnmspe -> xmlnamespaceNoel Grandin
2020-08-14rename nmspmap.hxx -> namespacemap.hxxNoel Grandin
2020-03-05tdf#75330 chart: implement ODF import/export of legend overlay featureTünde Tóth
2019-09-30tdf#42949 Fix IWYU warnings in xmloff/source/[c-m]*/*cxxGabor Kelemen
2019-09-24tdf#42949 Fix IWYU warnings in xmloff/source/*/*hxxGabor Kelemen
2019-07-21loplugin:referencecasting in xmloffNoel Grandin
2019-01-22tdf#42949 Fix IWYU warnings in include/xmloff/*Gabor Kelemen
2018-07-12Add missing sal/log.hxx headersGabor Kelemen
2016-06-23Introduce FillAutoStyle() method to reduce copy'n'paste.Jan Holesovsky
2016-04-20loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann
2016-04-12cleanup: remove unused com/sun/star/uno includesJochen Nitschke
2015-09-29tdf#94559: first step to remove rtti.hxxOliver Specht
2015-05-02it works if we first set the size and then the position, tdf#86624Markus Mohrhard
2014-10-01loplugin: cstylecastNoel Grandin
2014-06-13loplugin:staticcallStephan Bergmann
2013-09-29Mark as const / staticTakeshi Abe
2013-08-10fdo#62475 removed pointless commentsJelle van der Waa
2013-06-29remove OUString wrap for string literalsThomas Arnhold
2013-04-22fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2013-02-24remove RTL_CONSTASCII_(U)STRINGPARAM in xmloffChr. Rossmanith
2012-11-15re-base on ALv2 code. Includes:Michael Meeks
2012-01-06Removed unnecessary tools/debug.hxx includes.Marcel Metz
2011-11-27remove include of pch header from xmloffNorbert Thiebaud
2011-10-11#i108468#: clean up xmluconv code duplication, measured approach:Michael Stahl
2011-09-30add mode-lines to .m files and last round of merged files, etc.Caolán McNamara
2011-06-16catch by const referenceCaolán McNamara
2011-04-06use RTL_CONSTASCII_USTRINGPARAMXisco Fauli
2011-03-29drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito
2011-03-18Merge remote-tracking branch 'origin/integration/dev300_m101'Jan Holesovsky
2011-02-15chart52: merge with DEV300_m100Ingrid Halama [iha]
2011-01-25chart52: merge with DEV300_m98Ingrid Halama [iha]
2011-01-24chart52: #28670# make the legend within charts resizeable - part 2Ingrid Halama [iha]