Hi Jan,
Jan Holesovsky schrieb:
Hi,
Olivier recently resurrected the HelpAuthoring.oxt extension that makes
it much easier to edit help files, and I've pushed that to git now:
http://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/helpauthoring
I don't want to announce it too widely yet, tough; it has a bug that
from some reason, the new edits appear in bold when saved (they appear
enclosed in <emph> / </emph>).
Olivier, anybody - can you please have a look why that happens? Cannot
do myself ATM :-(
I think, that it is this place
--- soffice2xmlhelp.xsl 2015-07-09 23:02:23.724930000 +0200
+++ soffice2xmlhelp.xsl.new 2015-07-09 23:00:43.900355900 +0200
@@ -1141,7 +1141,7 @@
<xsl:when test="starts-with($masterstyle,'hlp_aux_')">
<xsl:apply-templates />
</xsl:when>
- <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><emph><xsl:apply-templates/></emph></xsl:when>
+ <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><xsl:apply-templates/></xsl:when>
<xsl:when test="$masterstyle =
'hlp_emph'"><emph><xsl:apply-templates/></emph></xsl:when>
<xsl:otherwise>
<xsl:variable name="spanstyle"><xsl:value-of
select="substring-after($masterstyle,'hlp_')"/></xsl:variable><item
type="{$spanstyle}"><xsl:apply-templates /></item></xsl:otherwise>
At least, this removes the wrong <emph>-tags. But it might have side
effects. Therefore a review is needed.
Kind regards
Regina
--- soffice2xmlhelp.xsl 2015-07-09 23:02:23.724930000 +0200
+++ soffice2xmlhelp.xsl.new 2015-07-09 23:00:43.900355900 +0200
@@ -1141,7 +1141,7 @@
<xsl:when test="starts-with($masterstyle,'hlp_aux_')">
<xsl:apply-templates />
</xsl:when>
- <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><emph><xsl:apply-templates/></emph></xsl:when>
+ <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><xsl:apply-templates/></xsl:when>
<xsl:when test="$masterstyle =
'hlp_emph'"><emph><xsl:apply-templates/></emph></xsl:when>
<xsl:otherwise>
<xsl:variable name="spanstyle"><xsl:value-of
select="substring-after($masterstyle,'hlp_')"/></xsl:variable><item
type="{$spanstyle}"><xsl:apply-templates /></item></xsl:otherwise>
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.