[Libreoffice-bugs] [Bug 128519] New: [NEWHELP] Automate icon replacement table for Help build

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Oct 31 20:58:30 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=128519

            Bug ID: 128519
           Summary: [NEWHELP] Automate icon replacement table for Help
                    build
           Product: LibreOffice
           Version: 6.3.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Documentation
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: olivier.hallot at libreoffice.org
                CC: olivier.hallot at libreoffice.org
            Blocks: 97629

Created attachment 155435
  --> https://bugs.documentfoundation.org/attachment.cgi?id=155435&action=edit
python script to generate the icon include file

When a Help page call a missing icon in the icon theme set, a replacement icon
must be available.

The list of replacement icons exist in core/icon-theme/<theme>/links.txt. This
list is updated each time an icon is added or deleted.

The list must also be used in the Help pages build phase, where missing icons
must be replaced with the right icon from the list above.

The current approach is to generate a XSL transform and include it in the main
XSL transform online_transform.xsl. The auxiliary XSL is named
helpcontent2/help3xsl/links.txt.xsl

The Python script attached here generates link.xtx.xsl based on the link.txt of
the colibre icon theme. However the script is not inserted in the build system
in CustomTarget_html.mk

The task is to add the script in the build process or, do an equivalent shell
script, to produce links.txt.xsl.

That way, it will prevent to update manually list.txt.xsl and update it in git.

Notes:
1) The list.txt.xsl transform is included in online_transform.xsl
2) the xsl:include href= attribute cannot be computed by xsltproc v.1.0 and
must be statically defined. 
3) usually the intermediate files are placed in workdir/ folder. However, the
workdir path is a LibreOffice build parameter. It cannot be used to define the
xsl:include href=


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=97629
[Bug 97629] [META] Help Content Modernization
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191031/7cf4814f/attachment-0001.html>


More information about the Libreoffice-bugs mailing list