diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-08-09 18:15:12 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-08-09 18:15:12 +0200 |
commit | 8af986212f7c9e1df236ebc0659d08a54cf6b40b (patch) | |
tree | eeb3ea754b5f7fd10dff8ec7c69ad6159d72d92e /help3xsl | |
parent | 70ea38c53437f42e7e966e5411b5db75e8a5fa48 (diff) |
Update the README.txt.
Change-Id: Id493d2d1fa21a160b4fc7d2bb160e6cb6a38c93b
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/HELP-IN-BROWSER-README.txt | 74 | ||||
-rw-r--r-- | help3xsl/README.txt | 83 |
2 files changed, 40 insertions, 117 deletions
diff --git a/help3xsl/HELP-IN-BROWSER-README.txt b/help3xsl/HELP-IN-BROWSER-README.txt deleted file mode 100644 index 680f433c7d..0000000000 --- a/help3xsl/HELP-IN-BROWSER-README.txt +++ /dev/null @@ -1,74 +0,0 @@ ------------------------------------------------------------------ -Helpcontent displayed in a browser directly from XML ------------------------------------------------------------------ - -This README shows how to display Helpcontent2 XML pages (XHP) directly rendered in a modern browser. - ------------------------------------------------------------------ -Background ------------------------------------------------------------------ - -The XML files must be transformed into HTML files with the help of a style sheet file (XSL). - -In the current helpcontent2, the processing is done in xmlhelp/ module, an ancient XSLT processor developed circa 2005 (OpenOffice.org 1.5) - -Modern browsers such as Firefox, Chrome and Rekonq are capable to execute the transformation direcly in the client, by getting an URL that returns a XML file that contains the reference of the necessary XSL style sheet. - -How to display Helpcontent2 in a browser - -1. Open the browser -2. Open the file index.html in source/ folder -3. Navigate in pages - ------------------------------------------------------------------ -File descriptions ------------------------------------------------------------------ - -default.css: -------------- -the cascading style sheet for HTML formatting. - -online_transform.xsl: --------------------- -the XSL transform file. Transform XHP files into HTML files. - -This file is a modification of xmlhelper/util/main_transform.xsl, which was designed for xmlhelp XSL processor. - -help.js -------- -This javascript file: -1. modifies href attributes in <a> of #DisplayArea to handle &DbPAR and &System params -2. picks the bookmarks file and displays in #BottomLeft <div> area. -3. Reads URL params. - ------------------------------------------------------------------ -New ‘Object’ tag ------------------------------------------------------------------ - -The filter online_transform.xsl now support the <object> tag defined for XHP files to allow a generic object in the browser. The <object> tag now maps to the folowing HTML5 tags: -Maps to HTML5 <video> tag: - -<section id="video"> - <object id="1232312" type ="video/ogg" data="movies/testvideo.ogv" height="480px" width="640px"/> -</section> - -Maps to HTML5 <audio> tag: -<section id="audio"> - <object id="1232312" type ="audio/ogg" data="audio/testaudio.wav" height="" width=""/> -</section> - -Maps to HTML5 <object> tag: - - <object id="1232312" type ="{mimetype}" data="object/testobject.swf" height="" width=""/> - ------------------------------------------------------------------ -How to build the LibreOffice Browser help ------------------------------------------------------------------ - -1) run help-to-html.sh in helpcontent2/source/ folder. A previous language build must exist in workdir/HelpTranslatePartHelp/ . -The script will build all existing languages available in this folder. See help-to-html.sh script and adjust path. - - -2) copy folder html/ to your root web server. - - diff --git a/help3xsl/README.txt b/help3xsl/README.txt index c26d9152f7..5501891079 100644 --- a/help3xsl/README.txt +++ b/help3xsl/README.txt @@ -1,49 +1,58 @@ ------------------------------------------------------------------ -Helpcontent displayed in a browser directly from XML ------------------------------------------------------------------ +Helpcontent displayed in a browser +================================== -This README shows how to display Helpcontent2 XML pages (XHP) directly rendered in a modern browser. +This directory contains files needed to convert the XHP files to html, and +also the html and css files needed for the actual rendering in the web +browser. ------------------------------------------------------------------ -Background ------------------------------------------------------------------ +Building and translation of the XHP files is now integrated into the +LibreOffice build process based on gbuild. If you want to use it, configure +LibreOffice with one of the: -The XML files must be transformed into HTML files with the help of a style sheet file (XSL). + --with-help=html (for the local html files) + --with-help=online (for the html files that can be uploaded to a webserver) -In the current helpcontent2, the processing is done in xmlhelp/ module, an ancient XSLT processor developed circa 2005 (OpenOffice.org 1.5) +Using the online version +------------------------ -Modern browsers such as Firefox, Chrome and Rekonq are capable to execute the transformation direcly in the client, by getting an URL that returns a XML file that contains the reference of the necessary XSL style sheet. +When you have configured with --with-help=online, the result of the build is +in -How to display Helpcontent2 in a browser + instdir/help -1. Open the browser -2. Open the file index.html in source/ folder -3. Navigate in pages +You want to upload to your webserver like: + + rsync -avz instdir/help/ username@webserver:/srv/www/htdocs/ + +Then you also need to setup a link 'latest' on the server, like + + ln -s 6.1 latest + +and make sure that symlinks are allowed in the webserver configuration. ------------------------------------------------------------------ File descriptions ------------------------------------------------------------------ +----------------- + +* default.css: + + the cascading style sheet for HTML formatting. + +* online_transform.xsl: -default.css: -------------- -the cascading style sheet for HTML formatting. + the XSL transform file. Transform XHP files into HTML files. -online_transform.xsl: --------------------- -the XSL transform file. Transform XHP files into HTML files. + This file is a modification of xmlhelper/util/main_transform.xsl, which was designed for xmlhelp XSL processor. -This file is a modification of xmlhelper/util/main_transform.xsl, which was designed for xmlhelp XSL processor. +* help.js -help.js -------- -This javascript file: -1. modifies href attributes in <a> of #DisplayArea to handle &DbPAR and &System params -2. picks the bookmarks file and displays in #BottomLeft <div> area. -3. Reads URL params. + This javascript file: + + 1. modifies href attributes in <a> of #DisplayArea to handle &DbPAR and &System params + 2. picks the bookmarks file and displays in #BottomLeft <div> area. + 3. Reads URL params. ------------------------------------------------------------------ New ‘Object’ tag ------------------------------------------------------------------ +---------------- The filter online_transform.xsl now support the <object> tag defined for XHP files to allow a generic object in the browser. The <object> tag now maps to the folowing HTML5 tags: Maps to HTML5 <video> tag: @@ -60,15 +69,3 @@ Maps to HTML5 <audio> tag: Maps to HTML5 <object> tag: <object id="1232312" type ="{mimetype}" data="object/testobject.swf" height="" width=""/> - ------------------------------------------------------------------ -How to build the LibreOffice Browser help ------------------------------------------------------------------ - -1) run help-to-html.sh in helpcontent2/help3xsl/ folder. A previous language build must exist in workdir/HelpTranslatePartHelp/ . -The script will build all existing languages available in this folder. See help-to-html.sh script and adjust path. - - -2) copy folder html/ to your root web server. - - |