Replacing old XSLT transform for math with MathJax
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@161 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
3dff4f20b4
commit
fbd7e66412
39 changed files with 128 additions and 1794 deletions
|
@ -2,6 +2,10 @@ Changelog for Writer2LaTeX version 1.2 -> 1.4
|
|||
|
||||
---------- version 1.3.1 alpha ----------
|
||||
|
||||
[w2x] Support for the obsolete output format XHTML+MahtML+XSL has been removed (replaced by MathJax). As a consequence
|
||||
the option xslt_path has been removed. Also the vacant spot in the export dialog is now used for the option use_mathjax
|
||||
(only active for XHTML+MathML and HTML5)
|
||||
|
||||
[w2l] Added support for TexMaths equations in LaTeX, XHTML+MathML and HTML5 (the last two only if use_mathjax=true)
|
||||
|
||||
[all] The command line application now gives an explanation if the source file is not in ODF format
|
||||
|
|
Binary file not shown.
|
@ -1,612 +0,0 @@
|
|||
<xsl:stylesheet
|
||||
version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:mml="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
|
||||
xmlns:fns="http://www.w3.org/2002/Math/preference"
|
||||
xmlns:doc="http://www.dcarlisle.demon.co.uk/xsldoc"
|
||||
xmlns:ie5="http://www.w3.org/TR/WD-xsl"
|
||||
exclude-result-prefixes="h ie5 fns msxsl fns doc"
|
||||
extension-element-prefixes="msxsl fns doc"
|
||||
>
|
||||
|
||||
<!--
|
||||
$Id: pmathml.xsl,v 1.8 2003/06/23 14:46:44 davidc Exp $
|
||||
|
||||
Copyright David Carlisle 2001, 2002.
|
||||
|
||||
Use and distribution of this code are permitted under the terms of the <a
|
||||
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720"
|
||||
>W3C Software Notice and License</a>.
|
||||
-->
|
||||
|
||||
<!-- MathPlayer mpdialog code for contributed by
|
||||
Jack Dignan and Robert Miner, both of Design Science.
|
||||
-->
|
||||
|
||||
<xsl:output method="xml" omit-xml-declaration="yes" />
|
||||
|
||||
<ie5:if doc:id="iehack" test=".">
|
||||
<ie5:eval no-entities="t">'<!--'</ie5:eval>
|
||||
</ie5:if>
|
||||
|
||||
|
||||
<fns:x name="mathplayer" o="MathPlayer.Factory.1">
|
||||
<object id="mmlFactory"
|
||||
classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987">
|
||||
</object>
|
||||
<?import namespace="mml" implementation="#mmlFactory"?>
|
||||
</fns:x>
|
||||
|
||||
<fns:x name="techexplorer" o="techexplorer.AxTchExpCtrl.1">
|
||||
<object id="mmlFactory" classid="clsid:0E76D59A-C088-11D4-9920-002035EFB1A4">
|
||||
</object>
|
||||
<?import namespace="mml" implementation="#mmlFactory"?>
|
||||
</fns:x>
|
||||
|
||||
|
||||
<!-- SCRIPT not script due to weird mozilla bug
|
||||
http://bugzilla.mozilla.org/show_bug.cgi?id=158457
|
||||
-->
|
||||
|
||||
<fns:x name="css" o="Microsoft.FreeThreadedXMLDOM">
|
||||
<SCRIPT for="window" event="onload">
|
||||
var xsl = new ActiveXObject("Microsoft.FreeThreadedXMLDOM");
|
||||
xsl.async = false;
|
||||
xsl.validateOnParse = false;
|
||||
xsl.load("pmathmlcss.xsl");
|
||||
var xslTemplate = new ActiveXObject("MSXML2.XSLTemplate.3.0");
|
||||
xslTemplate.stylesheet=xsl.documentElement;
|
||||
var xslProc = xslTemplate.createProcessor();
|
||||
xslProc.input = document.XMLDocument;
|
||||
xslProc.transform();
|
||||
var str = xslProc.output;
|
||||
<!-- work around bug in IE6 under Win XP, RM 6/5/2002 -->
|
||||
var repl = "replace";
|
||||
if (window.navigator.appVersion.match(/Windows NT 5.1/)) { repl = ""; }
|
||||
var newDoc = document.open("text/html", repl);
|
||||
newDoc.write(str);
|
||||
</SCRIPT>
|
||||
</fns:x>
|
||||
|
||||
|
||||
<h:p>
|
||||
in mpdialog mode, we just write out some JavaScript to display
|
||||
dialog to the reader asking whether they want to install MathPlayer
|
||||
Depending on the response we get, we then instantiate an XSL processor
|
||||
and reprocess the doc, passing $secondpass according to the
|
||||
reader response.
|
||||
</h:p>
|
||||
<h:p>Using d-o-e is fairly horrible, but this code is only for IE
|
||||
anyway, and we need to force HTML semantics in this case.</h:p>
|
||||
|
||||
<xsl:variable name="mpdialog">
|
||||
var cookieName = "MathPlayerInstall=";
|
||||
function MPInstall(){
|
||||
var showDialog=true;
|
||||
var c = document.cookie;
|
||||
var i = c.indexOf(cookieName);
|
||||
if (i >= 0) {
|
||||
if ( c.substr(i + cookieName.length, 1) >= 2) { showDialog=false; }
|
||||
}
|
||||
if (showDialog) {
|
||||
MPDialog();
|
||||
c = document.cookie;
|
||||
i = c.indexOf(cookieName);
|
||||
}
|
||||
if (i >= 0) return c.substr(i + cookieName.length, 1);
|
||||
else return null;
|
||||
}
|
||||
|
||||
function MPDialog() {
|
||||
var vArgs="";
|
||||
var sFeatures="dialogWidth:410px;dialogHeight:190px;help:off;status:no";
|
||||
var text = "";
|
||||
text += "javascript:document.write('"
|
||||
text += '<script>'
|
||||
text += 'function fnClose(v) { '
|
||||
text += 'var exp = new Date();'
|
||||
text += 'var thirtyDays = exp.getTime() + (30 * 24 * 60 * 60 * 1000);'
|
||||
text += 'exp.setTime(thirtyDays);'
|
||||
text += 'var cookieProps = ";expires=" + exp.toGMTString();'
|
||||
text += 'if (document.forms[0].dontask.checked) v+=2;'
|
||||
text += 'document.cookie="' + cookieName + '"+v+cookieProps;'
|
||||
text += 'window.close();'
|
||||
text += '}'
|
||||
text += '</' + 'script>'
|
||||
text += '<head><title>Install MathPlayer?</title></head>'
|
||||
text += '<body bgcolor="#D4D0C8"><form>'
|
||||
text += '<table cellpadding=10 style="font-family:Arial;font-size:10pt" border=0 width=100%>'
|
||||
text += '<tr><td align=left>This page requires Design Science\\\'s MathPlayer&trade;.<br>'
|
||||
text += 'Do you want to download and install MathPlayer?</td></tr>';
|
||||
text += '<tr><td align=center><input type="checkbox" name="dontask">'
|
||||
text += 'Don\\\'t ask me again</td></tr>'
|
||||
text += '<tr><td align=center><input id=yes type="button" value=" Yes "'
|
||||
text += ' onClick="fnClose(1)">&nbsp;&nbsp;&nbsp;'
|
||||
text += '<input type="button" value=" No " onClick="fnClose(0)"></td></tr>'
|
||||
text += '</table></form>';
|
||||
text += '</body>'
|
||||
text += "')"
|
||||
window.showModalDialog( text , vArgs, sFeatures );
|
||||
}
|
||||
|
||||
function WaitDialog() {
|
||||
var vArgs="";
|
||||
var sFeatures="dialogWidth:510px;dialogHeight:150px;help:off;status:no";
|
||||
var text = "";
|
||||
text += "javascript:document.write('"
|
||||
text += '<script>'
|
||||
text += 'window.onload=fnLoad;'
|
||||
text += 'function fnLoad() {document.forms[0].yes.focus();}'
|
||||
text += 'function fnClose(v) { '
|
||||
text += 'window.returnValue=v;'
|
||||
text += 'window.close();'
|
||||
text += '}'
|
||||
text += '</' + 'script>'
|
||||
text += '<head><title>Wait for Installation?</title></head>'
|
||||
text += '<body bgcolor="#D4D0C8" onload="fnLoad()"><form><'
|
||||
text += 'table cellpadding=10 style="font-family:Arial;font-size:10pt" border=0 width=100%>'
|
||||
text += '<tr><td align=left>Click OK once MathPlayer is installed '
|
||||
text += 'to refresh the page.<br>'
|
||||
text += 'Click Cancel to view the page immediately without MathPlayer.</td></tr>';
|
||||
text += '<tr><td align=center><input id=yes type="button" '
|
||||
text += 'value=" OK " onClick="fnClose(1)">&nbsp;&nbsp;&nbsp;'
|
||||
text += '<input type="button" value="Cancel" onClick="fnClose(0)"></td></tr>'
|
||||
text += '</table></form>';
|
||||
text += '</body>'
|
||||
text += "')"
|
||||
return window.showModalDialog( text , vArgs, sFeatures );
|
||||
}
|
||||
|
||||
var result = MPInstall();
|
||||
|
||||
var action = "fallthrough";
|
||||
if (result == 1 || result == 3) {
|
||||
window.open("http://www.dessci.com/webmath/mathplayer");
|
||||
var wait = WaitDialog();
|
||||
if ( wait == 1) {
|
||||
action = "install";
|
||||
document.location.reload();
|
||||
|
||||
}
|
||||
}
|
||||
if (action == "fallthrough") {
|
||||
var xsl = new ActiveXObject("Microsoft.FreeThreadedXMLDOM");
|
||||
xsl.async = false;
|
||||
xsl.validateOnParse = false;
|
||||
xsl.load("pmathmlcss.xsl");
|
||||
var xslTemplate = new ActiveXObject("MSXML2.XSLTemplate.3.0");
|
||||
xslTemplate.stylesheet=xsl.documentElement;
|
||||
var xslProc = xslTemplate.createProcessor();
|
||||
xslProc.input = document.XMLDocument;
|
||||
|
||||
xslProc.transform();
|
||||
var str = xslProc.output;
|
||||
<!-- work around bug in IE6 under Win XP, RM 6/5/2002 -->
|
||||
var repl = "replace";
|
||||
if (window.navigator.appVersion.match(/Windows NT 5.1/)) { repl = ""; }
|
||||
var newDoc = document.open("text/html", repl);
|
||||
newDoc.write(str);
|
||||
document.close();
|
||||
}
|
||||
</xsl:variable>
|
||||
|
||||
<fns:x name="mathplayer-dl" >mathplayer-dl</fns:x>
|
||||
|
||||
<fns:x name="techexplorer-plugin" >techexplorer-plugin</fns:x>
|
||||
|
||||
<xsl:variable name="root" select="/"/>
|
||||
|
||||
|
||||
|
||||
<xsl:param name="activex">
|
||||
<xsl:choose>
|
||||
<xsl:when test="/*/@fns:renderer='techexplorer-plugin'">techexplorer-plugin</xsl:when>
|
||||
<xsl:when test="system-property('xsl:vendor')!='Microsoft'"/>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="docpref" select="document('')/*/fns:x[@name=$root/*/@fns:renderer][1]"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$docpref='mathplayer-dl'">mathplayer-dl</xsl:when>
|
||||
<xsl:when test="$docpref and fns:isinstalled(string($docpref/@o))='true'">
|
||||
<xsl:copy-of select="$docpref/node()"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:copy-of select="(document('')/*/fns:x[fns:isinstalled(string(@o))='true'])[1]/node()"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:param>
|
||||
|
||||
<h:div doc:ref="iehack">
|
||||
<h:h3>IE5 hacks</h:h3>
|
||||
<h:p>This code will be ignored by an XSLT engine as a top level
|
||||
element in a foreign namespace. It will be executed by an IE5XSL
|
||||
engine and insert <!-- into the output stream, ie the start of a
|
||||
comment. This will comment out all the XSLT code which will be copied
|
||||
to the output. A similar clause below will close this comment, it is
|
||||
then followed by the IE5XSL templates to be executed.</h:p>
|
||||
<h:p>This trick is due to Jonathan Marsh of Microsoft, and used in
|
||||
<h:a href="http://www.w3.org/TR/2001/WD-query-datamodel-20010607/xmlspec-ie-dm.xsl">the stylesheet for
|
||||
the XPath 2 data model draft</h:a>.</h:p>
|
||||
</h:div>
|
||||
|
||||
<h:h2>XSLT stylesheet</h:h2>
|
||||
<h:h3>MSXSL script block</h:h3>
|
||||
|
||||
<h:p>The following script block implements an extension function that
|
||||
tests whether a specified ActiveX component is known to the client.
|
||||
This is used below to test for the existence of MathML rendering
|
||||
components.</h:p>
|
||||
<msxsl:script language="JScript" implements-prefix="fns">
|
||||
function isinstalled(ax)
|
||||
{
|
||||
try {
|
||||
var ActiveX = new ActiveXObject(ax);
|
||||
return "true";
|
||||
} catch (e) {
|
||||
return "false";
|
||||
}
|
||||
}
|
||||
</msxsl:script>
|
||||
|
||||
<h:p>The main bulk of this stylesheet is an identity transformation so...</h:p>
|
||||
<xsl:template match="*|comment()">
|
||||
<xsl:copy>
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<h:p>XHTML elements are copied sans prefix (XHTML is default namespace
|
||||
here, so these elements will still be in XHTML namespace</h:p>
|
||||
<xsl:template match="h:*">
|
||||
<xsl:element name="{local-name(.)}">
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>IE's treatment of XHTML as HTML needs a little help here...</h:p>
|
||||
<xsl:template match="h:br|h:hr">
|
||||
<xsl:choose>
|
||||
<xsl:when test="system-property('xsl:vendor')='Microsoft'">
|
||||
<xsl:value-of disable-output-escaping="yes" select="concat('<',local-name(.))"/>
|
||||
<xsl:apply-templates mode="verb" select="@*"/>
|
||||
<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="{local-name(.)}">
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>This just ensures the mathml prefix declaration isn't copied from
|
||||
the source at this stage, so that the system will use the mml prefix
|
||||
coming from this stylesheet</h:p>
|
||||
<xsl:template match="h:html|html">
|
||||
<html>
|
||||
<xsl:copy-of select="@*[not(namespace-uri(.)='http://www.w3.org/2002/Math/preference')]"/>
|
||||
<xsl:apply-templates/>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>We modify the head element to add code to specify a Microsoft
|
||||
"Behaviour" if the behaviour component is known to the system.</h:p>
|
||||
<h:span doc:ref="mp">Test for MathPlayer (Design Science)</h:span>
|
||||
<h:span doc:ref="te">Test for Techexplorer (IBM)</h:span>
|
||||
<h:span doc:ref="ms"><h:div>Test for Microsoft. In this case we just
|
||||
output a small HTML file that executes a script that will re-process
|
||||
the source docuument with a different stylesheet. Doing things this
|
||||
way avoids the need to xsl:import the second stylesheet, which would
|
||||
very much increase the processing overhead of running this
|
||||
stylesheet.</h:div></h:span>
|
||||
<h:span doc:ref="other">Further tests (eg for netscape/mozilla) could
|
||||
be added here if necessary</h:span>
|
||||
<xsl:template match="h:head|head">
|
||||
<head>
|
||||
|
||||
<!-- new if for IE frames bug -->
|
||||
<xsl:if test="system-property('xsl:vendor')='Microsoft'">
|
||||
<xsl:if test="name(msxsl:node-set($activex)/*)=''">
|
||||
<object id="mmlFactory"
|
||||
classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987">
|
||||
</object>
|
||||
<xsl:processing-instruction name="import">
|
||||
namespace="mml" implementation="#mmlFactory"
|
||||
</xsl:processing-instruction>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when doc:id="mp" test="$activex='mathplayer-dl'">
|
||||
<xsl:if test="fns:isinstalled('MathPlayer.Factory.1')='false'">
|
||||
<SCRIPT for="window" event="onload">
|
||||
<xsl:value-of select="$mpdialog" disable-output-escaping="yes"/>
|
||||
</SCRIPT>
|
||||
</xsl:if>
|
||||
<xsl:copy-of select="document('')/*/fns:x[@name='mathplayer']"/>
|
||||
</xsl:when>
|
||||
<xsl:when doc:id="mp" test="not($activex='techexplorer-plugin') and system-property('xsl:vendor')='Microsoft'">
|
||||
<xsl:copy-of select="$activex"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise doc:id="other">
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:apply-templates/>
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="mml:math" priority="22">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$activex='techexplorer-plugin'">
|
||||
<embed type="text/mathml" height="75" width="300">
|
||||
<xsl:attribute name="mmldata">
|
||||
<xsl:apply-templates mode="verb" select="."/>
|
||||
</xsl:attribute>
|
||||
</embed>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="mml:{local-name(.)}">
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- squash annotation elements -->
|
||||
|
||||
|
||||
|
||||
<h:p>Somewhat bizarrely in an otherwise namespace aware system,
|
||||
Microsoft behaviours are defined to trigger off the
|
||||
<h:em>prefix</h:em> not the <h:em>Namespace</h:em>. In the code above
|
||||
we associated a MathML rendering behaviour (if one was found) with the
|
||||
prefix <h:code>mml:</h:code> so here we ensure that this is the prefix
|
||||
that actually gets used in the output.</h:p>
|
||||
<xsl:template match="mml:*">
|
||||
<xsl:element name="mml:{local-name(.)}">
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>Copy semantics element through in IE (so mathplayer gets to see
|
||||
mathplayer annotations, otherwise use first child or a presentation annotation.</h:p>
|
||||
<xsl:template match="mml:semantics">
|
||||
<xsl:choose>
|
||||
<xsl:when test="system-property('xsl:vendor')='Microsoft'">
|
||||
<xsl:element name="mml:{local-name(.)}">
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:when test="mml:annotation-xml[@encoding='MathML-Presentation']">
|
||||
<xsl:apply-templates select="mml:annotation-xml[@encoding='MathML-Presentation']/node()"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- a version of my old verb.xsl -->
|
||||
|
||||
<!-- non empty elements and other nodes. -->
|
||||
<xsl:template mode="verb" match="*[*]|*[text()]|*[comment()]|*[processing-instruction()]">
|
||||
<xsl:value-of select="concat('<',local-name(.))"/>
|
||||
<xsl:apply-templates mode="verb" select="@*"/>
|
||||
<xsl:text>></xsl:text>
|
||||
<xsl:apply-templates mode="verb"/>
|
||||
<xsl:value-of select="concat('</',local-name(.),'>')"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- empty elements -->
|
||||
<xsl:template mode="verb" match="*">
|
||||
<xsl:value-of select="concat('<',local-name(.))"/>
|
||||
<xsl:apply-templates mode="verb" select="@*"/>
|
||||
<xsl:text>/></xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<!-- attributes
|
||||
Output always surrounds attribute value by "
|
||||
so we need to make sure no literal " appear in the value -->
|
||||
<xsl:template mode="verb" match="@*">
|
||||
<xsl:value-of select="concat(' ',local-name(.),'=')"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:call-template name="string-replace">
|
||||
<xsl:with-param name="from" select="'"'"/>
|
||||
<xsl:with-param name="to" select="'&quot;'"/>
|
||||
<xsl:with-param name="string" select="."/>
|
||||
</xsl:call-template>
|
||||
<xsl:text>"</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<!-- pis -->
|
||||
<xsl:template mode="verb" match="processing-instruction()"/>
|
||||
|
||||
<!-- only works if parser passes on comment nodes -->
|
||||
<xsl:template mode="verb" match="comment()"/>
|
||||
|
||||
|
||||
<!-- text elements
|
||||
need to replace & and < by entity references-->
|
||||
<xsl:template mode="verb" match="text()">
|
||||
<a name="{generate-id(.)}"/>
|
||||
<xsl:call-template name="string-replace">
|
||||
<xsl:with-param name="to" select="'&gt;'"/>
|
||||
<xsl:with-param name="from" select="'>'"/>
|
||||
<xsl:with-param name="string">
|
||||
<xsl:call-template name="string-replace">
|
||||
<xsl:with-param name="to" select="'&lt;'"/>
|
||||
<xsl:with-param name="from" select="'<'"/>
|
||||
<xsl:with-param name="string">
|
||||
<xsl:call-template name="string-replace">
|
||||
<xsl:with-param name="to" select="'&amp;'"/>
|
||||
<xsl:with-param name="from" select="'&'"/>
|
||||
<xsl:with-param name="string" select="."/>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- end verb mode -->
|
||||
|
||||
<!-- replace all occurences of the character(s) `from'
|
||||
by the string `to' in the string `string'.-->
|
||||
<xsl:template name="string-replace" >
|
||||
<xsl:param name="string"/>
|
||||
<xsl:param name="from"/>
|
||||
<xsl:param name="to"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($string,$from)">
|
||||
<xsl:value-of select="substring-before($string,$from)"/>
|
||||
<xsl:value-of select="$to"/>
|
||||
<xsl:call-template name="string-replace">
|
||||
<xsl:with-param name="string" select="substring-after($string,$from)"/>
|
||||
<xsl:with-param name="from" select="$from"/>
|
||||
<xsl:with-param name="to" select="$to"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$string"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- end of verb.xsl -->
|
||||
|
||||
|
||||
|
||||
<h:h2>IE5XSL stylesheet</h:h2>
|
||||
<h:p>In a rare fit of sympathy for users of
|
||||
<h:em>the-language-known-as-XSL-in-IE5</h:em> this file incorporates a
|
||||
version of the above code designed to work in the Microsoft dialect.
|
||||
This is needed otherwise users of a MathML rendering behaviour would
|
||||
have to make a choice whether they wanted to use this stylesheet
|
||||
(keeping their source documents conforming XHTML+MathML) or to use
|
||||
the explicit Microsoft Object code, which is less portable, but would
|
||||
work in at least IE5.5.</h:p>
|
||||
|
||||
<h:p>This entire section of code, down to the end of the stylesheet is
|
||||
contained within this ie5:if. Thus XSLT sees it as a top level element
|
||||
from a foreign namespace and silently ignores it. IE5XSL sees it as
|
||||
"if true" and so executes the code.</h:p>
|
||||
|
||||
|
||||
<h:p doc:ref="closecomment">First close the comment started at the beginning. This ensures
|
||||
that the bulk of the XSLT code, while being copied to the result tree
|
||||
by the IE5XSL engine, will not be rendered in the browser.</h:p>
|
||||
|
||||
<h:span doc:ref="eval">Lacking attribute value templates in
|
||||
xsl:element, and the local-name() function, we resort to constructing
|
||||
the start and end tags in strings in javascript, then using
|
||||
no-entities attribute which is the IE5XSL equivalent of disable-output-encoding</h:span>
|
||||
<ie5:if test=".">
|
||||
|
||||
<ie5:eval doc:id="closecomment" no-entities="t">'-->'</ie5:eval>
|
||||
|
||||
<ie5:apply-templates select=".">
|
||||
|
||||
|
||||
<ie5:script>
|
||||
function mpisinstalled()
|
||||
{
|
||||
try {
|
||||
var ActiveX = new ActiveXObject("MathPlayer.Factory.1");
|
||||
return "true";
|
||||
} catch (e) {
|
||||
return "false";
|
||||
}
|
||||
}
|
||||
</ie5:script>
|
||||
|
||||
<ie5:template match="/">
|
||||
<ie5:apply-templates/>
|
||||
</ie5:template>
|
||||
|
||||
<ie5:template match="head|h:head"/>
|
||||
|
||||
<ie5:template match="text()">
|
||||
<ie5:value-of select="."/>
|
||||
</ie5:template>
|
||||
|
||||
<ie5:template match="*|@*">
|
||||
<ie5:copy>
|
||||
<ie5:apply-templates select="*|text()|@*"/>
|
||||
</ie5:copy>
|
||||
</ie5:template>
|
||||
|
||||
|
||||
<ie5:template match="mml:*">
|
||||
<ie5:eval no-entities="t" doc:id="eval">'<mml:' + this.nodeName.substring(this.nodeName.indexOf(":")+1)</ie5:eval>
|
||||
<ie5:for-each select="@*">
|
||||
<ie5:eval no-entities="t">' ' + this.nodeName</ie5:eval>="<ie5:value-of select="."/>"
|
||||
</ie5:for-each>
|
||||
<ie5:eval no-entities="t">'>'</ie5:eval>
|
||||
<ie5:apply-templates select="*|text()"/>
|
||||
<ie5:eval no-entities="t">'</mml:' + this.nodeName.substring(this.nodeName.indexOf(":")+1) + '>'</ie5:eval>
|
||||
</ie5:template>
|
||||
|
||||
|
||||
<ie5:template match="mml:math">
|
||||
<ie5:if expr="mpisinstalled()=='false'">
|
||||
<embed type="text/mathml" height="75" width="300">
|
||||
<ie5:attribute name="mmldata">
|
||||
<ie5:eval doc:id="eval" no-entities="t">'<math>'</ie5:eval>
|
||||
<ie5:apply-templates/>
|
||||
<ie5:eval doc:id="eval" no-entities="t">'</math>'</ie5:eval>
|
||||
</ie5:attribute>
|
||||
</embed>
|
||||
</ie5:if>
|
||||
<ie5:if expr="mpisinstalled()=='true'">
|
||||
<ie5:eval doc:id="eval" no-entities="t">'<mml:' + this.nodeName.substring(this.nodeName.indexOf(":")+1)</ie5:eval>
|
||||
<ie5:for-each select="@*">
|
||||
<ie5:eval no-entities="t">' ' + this.nodeName</ie5:eval>="<ie5:value-of select="."/>"
|
||||
</ie5:for-each>
|
||||
<ie5:eval no-entities="t">'>'</ie5:eval>
|
||||
<ie5:apply-templates select="*|text()"/>
|
||||
<ie5:eval no-entities="t">'</mml:' + this.nodeName.substring(this.nodeName.indexOf(":")+1) + '>'</ie5:eval>
|
||||
</ie5:if>
|
||||
</ie5:template>
|
||||
|
||||
<ie5:template match="html|h:html">
|
||||
<html xmlns:mml="http://www.w3.org/1998/Math/MathML">
|
||||
<head>
|
||||
<ie5:if expr="mpisinstalled()=='true'">
|
||||
<object id="mmlFactory"
|
||||
classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987">
|
||||
</object>
|
||||
<ie5:pi name="IMPORT">
|
||||
namespace="mml" implementation="#mmlFactory"
|
||||
</ie5:pi>
|
||||
</ie5:if>
|
||||
<ie5:apply-templates select="h:head/*|head/*"/>
|
||||
</head>
|
||||
<body>
|
||||
<ie5:apply-templates select="body|h:body"/>
|
||||
</body>
|
||||
</html>
|
||||
</ie5:template>
|
||||
|
||||
</ie5:apply-templates>
|
||||
|
||||
|
||||
</ie5:if>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -1,872 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!--
|
||||
Presentation MathML Stylesheet
|
||||
-->
|
||||
|
||||
<!--
|
||||
$Id: pmathmlcss.xsl,v 1.1 2002/03/20 12:20:57 mf Exp $
|
||||
|
||||
Copyright David Carlisle 2001, 2002.
|
||||
|
||||
Use and distribution of this code are permitted under the terms of the <a
|
||||
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720"
|
||||
>W3C Software Notice and License</a>.
|
||||
-->
|
||||
|
||||
<xsl:stylesheet
|
||||
version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
xmlns:m="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:doc="http://www.dcarlisle.demon.co.uk/xsldoc"
|
||||
xmlns:x="data:,x"
|
||||
exclude-result-prefixes="x h doc"
|
||||
>
|
||||
|
||||
<h:h2>Dictionary</h:h2>
|
||||
|
||||
<h:p> The following elements in the x: namespace form an
|
||||
implementation of an "Operator Dictionary" for this MathML
|
||||
Implementation. In the case of stretch operators, the element
|
||||
specifies the symbol parts via the latin-1 equivalent character based
|
||||
on the encoding in the symbol font. It is a clear "failure to comply
|
||||
to the spec" that using latin 1 characters (or numeric character
|
||||
references) in the latin 1 range access glyphs in teh symbol font via
|
||||
font position, however most of these character parts are not in
|
||||
Unicode (until 3.2), so there is no standard way to access these characters.</h:p>
|
||||
|
||||
<x:x x="{" m="0em" stretch="true" top="ì" middle="í" extend="ï" bottom="î">{</x:x>
|
||||
<x:x x="}" m="0em" stretch="true" top="ü" middle="ý" extend="ú" bottom="þ">{</x:x>
|
||||
|
||||
<x:x x="(" m="0em" stretch="true" top="æ" middle="ç" extend="ç" bottom="è">(</x:x>
|
||||
<x:x x=")" m="0em" stretch="true" top="ö" middle="÷" extend="÷" bottom="ø">)</x:x>
|
||||
|
||||
<x:x x="[" m="0em" stretch="true" top="é" middle="ê" extend="ê" bottom="ë">[</x:x>
|
||||
<x:x x="]" m="0em" stretch="true" top="ù" middle="ú" extend="ú" bottom="û">]</x:x>
|
||||
|
||||
<x:x x="〚" m="0em" stretch="true" top="éé" middle="êê" extend="êê" bottom="ëë">[[</x:x>
|
||||
<x:x x="〛" m="0em" stretch="true" top="ùù" middle="úú" extend="úú" bottom="ûû">]]</x:x>
|
||||
|
||||
<x:x x="|" m="0em" stretch="true" top="ç" middle="ç" extend="ç" bottom="ç">|</x:x>
|
||||
<x:x x="||" m="0em" stretch="true" top="çç" middle="çç" extend="çç" bottom="çç">||</x:x>
|
||||
|
||||
<x:x x="⁡" m="0em"></x:x><!-- applyfunction -->
|
||||
<x:x x="⁢" m="0em"></x:x><!-- invisibletimes -->
|
||||
<x:x x="-">−</x:x>
|
||||
<x:x x="≃"><span style="position:
|
||||
relative; top: +.1em;">−</span><span style="position:
|
||||
relative; left: -.55em; top: -.2em; margin: 0em;">~</span></x:x>
|
||||
<x:x x="︸" m="0em">_v_</x:x>
|
||||
|
||||
|
||||
<h:p>Remove these for now, as XML parser in IE6 is broken and doesn't
|
||||
accept plane 1 characters.</h:p>
|
||||
<!--
|
||||
<x:x x="𝔸" v="doublestruck">A</x:x>
|
||||
<x:x x="𝔹" v="doublestruck">B</x:x>
|
||||
<x:x x="ℂ" v="doublestruck">C</x:x>
|
||||
<x:x x="𝔻" v="doublestruck">D</x:x>
|
||||
|
||||
<x:x x="𝕒" v="doublestruck">a</x:x>
|
||||
<x:x x="𝕓" v="doublestruck">b</x:x>
|
||||
<x:x x="𝕔" v="doublestruck">c</x:x>
|
||||
<x:x x="𝕕" v="doublestruck">d</x:x>
|
||||
|
||||
<x:x x="𝔄" v="fraktur">A</x:x>
|
||||
<x:x x="𝔅" v="fraktur">B</x:x>
|
||||
<x:x x="ℭ" v="fraktur">C</x:x>
|
||||
<x:x x="𝔇" v="fraktur">D</x:x>
|
||||
|
||||
<x:x x="𝔞" v="fraktur">a</x:x>
|
||||
<x:x x="𝔟" v="fraktur">b</x:x>
|
||||
<x:x x="𝔠" v="fraktur">c</x:x>
|
||||
<x:x x="𝔡" v="fraktur">d</x:x>
|
||||
-->
|
||||
|
||||
<h:p>Grab all of the above into a variable.</h:p>
|
||||
<xsl:variable name="opdict" select="document('')/*/x:x"/>
|
||||
|
||||
<h:h2>HTML elements</h:h2>
|
||||
|
||||
<h:p>
|
||||
XHTML elements get passed straight through, sans namespace prefix.
|
||||
</h:p>
|
||||
<xsl:template match="h:*">
|
||||
<xsl:element name="{local-name(.)}">
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<h:p>
|
||||
Template for the head element copies the original content, aand in
|
||||
addition adds a script element and CSS style element that implement
|
||||
the core of the MathML renderer.
|
||||
</h:p>
|
||||
|
||||
<h:p doc:ref="malign">
|
||||
The malign function first finds the left most item in the aligngroup, and
|
||||
then modifies the left margin of each item to make them
|
||||
align. (Currently only left alignment is supported.)
|
||||
</h:p>
|
||||
|
||||
<h:p doc:ref="mrowStretch">
|
||||
The mrowStretch function implements stretchy brackets. It is called
|
||||
repeatedly, once for each mo child,after a span corresponding to an
|
||||
mrow. The arguments are the id of teh span and the characters to use
|
||||
for the parts of the stretch operator.
|
||||
constructed fence. The
|
||||
</h:p>
|
||||
|
||||
<h:p doc:ref="css">
|
||||
Inline CSS style block handles all font and size specification for the
|
||||
various MathML operators.
|
||||
</h:p>
|
||||
|
||||
<xsl:template match="h:head">
|
||||
|
||||
<xsl:element name="{local-name(.)}">
|
||||
<xsl:copy-of select="@*"/>
|
||||
<xsl:apply-templates/>
|
||||
|
||||
<script>
|
||||
|
||||
<xsl:text doc:id="malign">
|
||||
function malign (l)
|
||||
{
|
||||
var m = 0;
|
||||
for ( i = 0; i < l.length ; i++)
|
||||
{
|
||||
m = Math.max(m,l[i].offsetLeft);
|
||||
}
|
||||
for ( i = 0; i < l.length ; i++)
|
||||
{
|
||||
l[i].style.marginLeft=m - l[i].offsetLeft;
|
||||
}
|
||||
}
|
||||
</xsl:text>
|
||||
|
||||
<xsl:text doc:id="mrowStretch">
|
||||
function mrowStretch (opid,opt,ope,opm,opb){
|
||||
opH = opid.offsetHeight;
|
||||
var opH;
|
||||
var i;
|
||||
var es;
|
||||
if (mrowH > opH * 2) {
|
||||
m= "<font size='+1' face='symbol'>" + opm + "</font><br/>" ;
|
||||
if ((mrowH < opH * 3) &&(opm == ope) ) m="";
|
||||
es="";
|
||||
for ( i = 3; i <= mrowH / (2*opH) ; i += 1) es += "<font size='+1' face='symbol'>" + ope + "</font><br/>" ;
|
||||
opid.innerHTML="<table class='lr'><tr><td><font size='+1' face='symbol'>" +
|
||||
opt + "</font><br/>" +
|
||||
es +
|
||||
m +
|
||||
es +
|
||||
"<font size='+1' face='symbol'>" + opb + "</font></td></tr></table>";
|
||||
}
|
||||
}
|
||||
</xsl:text>
|
||||
|
||||
<xsl:text doc:id="msubsup">
|
||||
function msubsup (bs,bbs,x,b,p){
|
||||
<!--
|
||||
p.style.setExpression("top",bs +" .offsetTop - " + (p.offsetHeight/2 +(bbs.offsetHeight - Math.max(bbs.offsetHeight, b.offsetHeight + p.offsetHeight)*.5)));
|
||||
-->
|
||||
p.style.setExpression("top",bs +" .offsetTop -" + (p.offsetHeight/2));
|
||||
b.style.setExpression("top",bs + ".offsetTop + " + (bbs.offsetHeight - b.offsetHeight*.5));
|
||||
x.style.setExpression("marginLeft",Math.max(p.offsetWidth,b.offsetWidth));
|
||||
document.recalc(true);
|
||||
}
|
||||
</xsl:text>
|
||||
|
||||
<!--
|
||||
function msubsupzz (bs,x,b,p){
|
||||
p.style.setExpression("top",bs +" .offsetTop - " + bs +
|
||||
"p.offsetHeight/2 +(" + bs + ".offsetHeight - Math.max(" + bs + ".offsetHeight, (" + bs + "b.offsetHeight + " + bs + "p.offsetHeight)*.5))");
|
||||
b.style.setExpression("top",bs + ".offsetTop + " + bs + ".offsetHeight - " + bs + "b.offsetHeight/2");
|
||||
x.style.setExpression("marginLeft","Math.max(" + bs +"p.offsetWidth,"
|
||||
+ bs +"b.offsetWidth)");
|
||||
}
|
||||
-->
|
||||
|
||||
<xsl:text doc:id="msup">
|
||||
function msup (bs,x,p){
|
||||
p.style.setExpression("top",bs +" .offsetTop -" + (p.offsetHeight/2));
|
||||
x.style.setExpression("marginLeft", bs +"p.offsetWidth");
|
||||
x.style.setExpression("height", bs + ".offsetHeight + " + p.offsetHeight);
|
||||
document.recalc(true);
|
||||
}
|
||||
</xsl:text>
|
||||
|
||||
<xsl:text doc:id="msub">
|
||||
function msub (bs,x,p){
|
||||
p.style.setExpression("top",bs +" .offsetTop +" + (p.offsetHeight/2));
|
||||
x.style.setExpression("marginLeft", bs +"p.offsetWidth");
|
||||
x.style.setExpression("height", bs + ".offsetHeight + " + p.offsetHeight);
|
||||
document.recalc(true);
|
||||
}
|
||||
</xsl:text>
|
||||
|
||||
<xsl:text doc:id="toggle">
|
||||
function toggle (x) {
|
||||
for ( i = 0 ; i < x.childNodes.length ; i++) {
|
||||
if (x.childNodes.item(i).style.display=='inline') {
|
||||
x.childNodes.item(i).style.display='none';
|
||||
if ( i+1 == x.childNodes.length) {
|
||||
x.childNodes.item(0).style.display='inline';
|
||||
} else {
|
||||
x.childNodes.item(i+1).style.display='inline';
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
</xsl:text>
|
||||
</script>
|
||||
|
||||
|
||||
<style>
|
||||
<xsl:text doc:id="css">
|
||||
|
||||
.msubsup {
|
||||
<!--background-color: red;-->
|
||||
font-size: 80%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.munderover {
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.lr {
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.mi {
|
||||
font-style: serif;
|
||||
}
|
||||
|
||||
|
||||
.mspace{
|
||||
display: inline;
|
||||
}
|
||||
.mtext {
|
||||
font-style: serif;
|
||||
}
|
||||
.ms {
|
||||
font-style: monospace;
|
||||
}
|
||||
|
||||
.mi1 {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.doublestruck {
|
||||
font-family: castellar, algerian,niagara engraved;
|
||||
}
|
||||
.mo {
|
||||
padding-right: .3em;
|
||||
padding-left: .3em;
|
||||
}
|
||||
|
||||
.mn {
|
||||
}
|
||||
|
||||
.msqrt {
|
||||
border-style: solid;
|
||||
border-color: black;
|
||||
border-width: .1em 0pt 0pt .1em;
|
||||
padding-left: .2em;
|
||||
margin-left: 0em;
|
||||
margin-top: .2em;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.actuarial {
|
||||
border-style: solid;
|
||||
border-color: black;
|
||||
border-width: .1em .1em 0pt 0pt ;
|
||||
padding-right: .2em;
|
||||
margin-right: 0em;
|
||||
margin-top: .2em;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.ssa {
|
||||
position:relative; top:+0.5ex;
|
||||
width: 0pt;
|
||||
color: red;
|
||||
}
|
||||
|
||||
|
||||
.mover {
|
||||
margin: 0pt;
|
||||
padding: 0pt;
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mtable {
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.mfrac {
|
||||
text-align: center;
|
||||
display:inline;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.mfraca {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.mfracaa {
|
||||
border-width: 0em 0em .2ex 0em ; border-style: solid;
|
||||
border-color: black;
|
||||
}
|
||||
|
||||
|
||||
.mfracb {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.merror{
|
||||
background-color: white ;
|
||||
border-style: solid;
|
||||
border-color: #FF0000;
|
||||
color: #FF0000;
|
||||
}
|
||||
.mphantom{
|
||||
visibility: hidden;
|
||||
}
|
||||
</xsl:text>
|
||||
</style>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>
|
||||
Unimplemented MathML elements get copied literally, in red, mainly as
|
||||
a debugging aid.
|
||||
</h:p>
|
||||
<xsl:template match="m:*">
|
||||
<span style="color: red;"><<xsl:value-of select="local-name(.)"/>></span>
|
||||
<xsl:apply-templates/>
|
||||
<span style="color: red;"></<xsl:value-of select="local-name(.)"/>></span>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>
|
||||
mi: set default font based on string length, otherwise behaviour based
|
||||
on entries in the operator dictionary if one exists, or content is
|
||||
copied through to the output unchanged.
|
||||
</h:p>
|
||||
<xsl:template match="m:mi">
|
||||
<span class="mi">
|
||||
<xsl:if test="1=string-length(normalize-space(.))">
|
||||
<xsl:attribute name="class">mi1</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select="@mathvariant"/>
|
||||
<xsl:variable name="x" select="normalize-space(.)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$opdict[@x=$x and @v]">
|
||||
<xsl:attribute name="class"><xsl:value-of select="$opdict[@x=$x]/@v"/></xsl:attribute>
|
||||
<xsl:value-of select="$opdict[@x=$x and @v]"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$x"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>
|
||||
Handling of mathvariant attribute.
|
||||
The choice of font families here (currently) avoids math-specific
|
||||
fonts but does use several fionts coming with windows 9.x and/or
|
||||
office 2000.
|
||||
</h:p>
|
||||
<xsl:template match="@mathvariant[.='bold']">
|
||||
<xsl:attribute name="style">font-weight: bold; font-style: upright</xsl:attribute>
|
||||
</xsl:template>
|
||||
<xsl:template match="@mathvariant[.='bold-italic']">
|
||||
<xsl:attribute name="style">font-style: upright; font-weight: bold; font-style: italic;</xsl:attribute>
|
||||
</xsl:template>
|
||||
<xsl:template match="@mathvariant[.='italic']">
|
||||
<xsl:attribute name="style">font-style: italic; </xsl:attribute>
|
||||
</xsl:template>
|
||||
<xsl:template match="@mathvariant[.='monospace']">
|
||||
<xsl:attribute name="style">font-family: monospace; </xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@mathvariant[.='sans-serif']">
|
||||
<xsl:attribute name="style">font-family: sans-serif; </xsl:attribute>
|
||||
</xsl:template>
|
||||
<xsl:template match="@mathvariant[.='bold-sans-serif']">
|
||||
<xsl:attribute name="style">font-family: sans-serif; font-weight: bold; </xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@mathvariant[.='fraktur']">
|
||||
<xsl:attribute name="style">font-family: old english text mt</xsl:attribute>
|
||||
<xsl:attribute name="class"></xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@mathvariant[.='double-struck']">
|
||||
<xsl:attribute name="class">doublestruck</xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="@mathvariant[.='script']">
|
||||
<xsl:attribute name="style">font-family: brush script mt italic</xsl:attribute>
|
||||
<xsl:attribute name="class"></xsl:attribute>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<h:p>mo: Generate a unique ID so that a script at the end of any
|
||||
surrounding mrow may replace the conent by a suitably stretched
|
||||
operator if need be.</h:p>
|
||||
<xsl:template match="m:mo">
|
||||
<span id="{generate-id()}" class="mo">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>mn: a simple span</h:p>
|
||||
<xsl:template match="m:mn">
|
||||
<span class="mn">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>munder: currently only supports underline, with a bottom border</h:p>
|
||||
<xsl:template match="m:munder">
|
||||
<span class="munder">
|
||||
<xsl:if test="normalize-space(*[2])='̲'">
|
||||
<xsl:attribute
|
||||
name="style">border-width: 0pt 0pt .1em 0pt; border-style: solid;"</xsl:attribute>
|
||||
</xsl:if>
|
||||
<span><xsl:apply-templates select="*[1]"/></span>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>mover: currently only supports overline, with a top border</h:p>
|
||||
<xsl:template match="m:mover">
|
||||
<span class="munder">
|
||||
<xsl:if test="normalize-space(*[2])='¯'">
|
||||
<xsl:attribute
|
||||
name="style">border-width: .1em 0pt 0pt 0pt; border-style: solid;"</xsl:attribute>
|
||||
</xsl:if>
|
||||
<span><xsl:apply-templates select="*[1]"/></span>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>munderover: </h:p>
|
||||
<xsl:template match="m:munderover">
|
||||
<table class="munderover">
|
||||
<tr><td><xsl:apply-templates select="*[3]"/></td></tr>
|
||||
<tr><td><xsl:apply-templates select="*[1]"/></td></tr>
|
||||
<tr><td><xsl:apply-templates select="*[2]"/></td></tr>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>mtext: a simple span</h:p>
|
||||
<xsl:template match="m:mtext">
|
||||
<span class="mtext">
|
||||
<xsl:value-of select="normalize-space(.)"/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>mstyle: not many attributes currently supported</h:p>
|
||||
<xsl:template match="m:mstyle">
|
||||
<span>
|
||||
<xsl:attribute name="style">
|
||||
<xsl:if test="@color">color: <xsl:value-of select="@color"/>; </xsl:if>
|
||||
<xsl:if test="@background">background-color: <xsl:value-of select="@background"/>; </xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<h:p>mglyph: Uses disable output escaping to construct a numeric
|
||||
character reference. Uses IE's non conforming behaviour of using this
|
||||
number to access the font encoding rather than unicode.</h:p>
|
||||
<xsl:template match="m:mglyph">
|
||||
<font face="{@fontfamily}"><xsl:value-of
|
||||
disable-output-escaping="yes" select="'&#'"/>
|
||||
<xsl:value-of select="@index"/>;<xsl:text/>
|
||||
</font>
|
||||
</xsl:template>
|
||||
|
||||
<h:p>ms: a simple span with left and right character added to the content.</h:p>
|
||||
<xsl:template match="m:ms">
|
||||
<span class="ms">
|
||||
<xsl:value-of select="@lquote"/><xsl:if test="not(@lquote)">"</xsl:if>
|
||||
<xsl:value-of select="normalize-space(.)"/>
|
||||
<xsl:value-of select="@rquote"/><xsl:if test="not(@rquote)">"</xsl:if>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:math">
|
||||
<xsl:call-template name="mrow"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template match="m:mfenced">
|
||||
<xsl:variable name="l">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@open"><xsl:value-of select="@open"/></xsl:when>
|
||||
<xsl:otherwise>(</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="r">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@close"><xsl:value-of select="@close"/></xsl:when>
|
||||
<xsl:otherwise>)</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="s">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@sep">
|
||||
<xsl:call-template name="text">
|
||||
<xsl:with-param name="x" select="@sep"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>,</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<span id="{generate-id()}L"><xsl:value-of select="$l"/></span>
|
||||
<span id="{generate-id()}M">
|
||||
<xsl:for-each select="*">
|
||||
<xsl:apply-templates select="."/>
|
||||
<xsl:if test="position() != last()"><span id="{generate-id()}X{position()}"><xsl:value-of select="$s"/></span></xsl:if>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
<span id="{generate-id()}R"><xsl:value-of select="$r"/></span>
|
||||
<script>
|
||||
|
||||
<xsl:if test="$s=$opdict[@stretch='true']/@x">
|
||||
<xsl:for-each select="*[position()<last()]">
|
||||
<xsl:variable name="opdictentry" select="$opdict[@x=$s]"/>
|
||||
mrowStretch(<xsl:value-of select="concat(generate-id(),'X',position())"/>,"<xsl:value-of
|
||||
select="$opdictentry/@top"/>","<xsl:value-of
|
||||
select="$opdictentry/@extend"/>","<xsl:value-of
|
||||
select="$opdictentry/@middle"/>","<xsl:value-of
|
||||
select="$opdictentry/@bottom"/>");</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:variable name="opdictentry" select="$opdict[@x=$l]"/>
|
||||
var mrowH = <xsl:value-of select="generate-id()"/>M.offsetHeight;
|
||||
mrowStretch(<xsl:value-of select="generate-id()"/>L,"<xsl:value-of
|
||||
select="$opdictentry/@top"/>","<xsl:value-of
|
||||
select="$opdictentry/@extend"/>","<xsl:value-of
|
||||
select="$opdictentry/@middle"/>","<xsl:value-of
|
||||
select="$opdictentry/@bottom"/>");<xsl:text/>
|
||||
|
||||
<xsl:variable name="opdictentry2" select="$opdict[@x=$r]"/>
|
||||
mrowStretch(<xsl:value-of select="generate-id()"/>R,"<xsl:value-of
|
||||
select="$opdictentry2/@top"/>","<xsl:value-of
|
||||
select="$opdictentry2/@extend"/>","<xsl:value-of
|
||||
select="$opdictentry2/@middle"/>","<xsl:value-of
|
||||
select="$opdictentry2/@bottom"/>");<xsl:text/>
|
||||
</script>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template match="m:mmultiscripts">
|
||||
<table style="display:inline; vertical-align: middle;">
|
||||
<tr>
|
||||
<xsl:for-each select="*[preceding-sibling::m:mprescripts and position() mod 2 = 0]">
|
||||
<td><xsl:apply-templates select="."/></td>
|
||||
</xsl:for-each>
|
||||
<td rowspan="2"><xsl:apply-templates select="*[1]"/></td>
|
||||
<xsl:for-each select="*[not(preceding-sibling::m:mprescripts) and position() !=1 and position() mod 2 = 1]">
|
||||
<td><xsl:apply-templates select="."/></td>
|
||||
</xsl:for-each>
|
||||
</tr>
|
||||
<tr>
|
||||
<xsl:for-each select="*[preceding-sibling::m:mprescripts and position() mod 2 = 1]">
|
||||
<td><xsl:apply-templates select="."/></td>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="*[not(preceding-sibling::m:mprescripts) and
|
||||
not(self::m:mprescripts) and position() mod 2 = 0]">
|
||||
<td><xsl:apply-templates select="."/></td>
|
||||
</xsl:for-each>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:none"></xsl:template>
|
||||
|
||||
<xsl:template match="m:merror">
|
||||
<span class="merror"><xsl:call-template name="mrow"/></span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:mphantom">
|
||||
<span class="mphantom"><xsl:apply-templates/></span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:maction[@type='tooltip']">
|
||||
<span title="{*[2]}"><xsl:apply-templates select="*[1]"/></span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:maction[@type='toggle']">
|
||||
<span id="{generate-id()}" onclick="toggle({generate-id()})">
|
||||
<span style="display:inline;"><xsl:apply-templates select="*[1]"/></span>
|
||||
<xsl:for-each select="*[position() > 1]">
|
||||
<span style="display:none;"><xsl:apply-templates select="."/></span>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:maction[@type='statusline']">
|
||||
<span id="{generate-id()}"
|
||||
onmouseover="window.status='{*[2]}';"
|
||||
onmouseout="window.status='';"
|
||||
>
|
||||
<xsl:apply-templates select="*[1]"/></span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:maction[@type='highlight']">
|
||||
<span id="{generate-id()}"
|
||||
onmouseover="{generate-id()}.style.backgroundColor='yellow';"
|
||||
onmouseout="{generate-id()}.style.backgroundColor='white';"><xsl:apply-templates/></span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template match="m:mrow" name="mrow">
|
||||
<span id="{generate-id()}" class="mrow">
|
||||
<xsl:apply-templates select="*"/>
|
||||
</span>
|
||||
<xsl:if test="m:mo[@stretch='true' or normalize-space(.)=$opdict[@stretch='true']/@x]">
|
||||
<script>
|
||||
var mrowH = <xsl:value-of select="generate-id()"/>.offsetHeight;
|
||||
<xsl:for-each select="m:mo[@stretch='true' or
|
||||
normalize-space(.)=$opdict[@stretch='true']/@x]">
|
||||
|
||||
<xsl:variable name="o" select="normalize-space(.)"/>
|
||||
<xsl:variable name="opdictentry" select="$opdict[@x=$o]"/>
|
||||
mrowStretch(<xsl:value-of select="generate-id()"/>,"<xsl:value-of
|
||||
select="$opdictentry/@top"/>","<xsl:value-of
|
||||
select="$opdictentry/@extend"/>","<xsl:value-of
|
||||
select="$opdictentry/@middle"/>","<xsl:value-of
|
||||
select="$opdictentry/@bottom"/>");</xsl:for-each>
|
||||
</script>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:msubsup">
|
||||
<span id="{generate-id()}" >
|
||||
<xsl:apply-templates select="*[1]"/></span
|
||||
><span id="{generate-id()}b" class="msubsup"><xsl:apply-templates
|
||||
select="*[2]"/></span
|
||||
><span id="{generate-id()}p" class="msubsup"><xsl:apply-templates
|
||||
select="*[3]"/></span
|
||||
><span id="{generate-id()}x"></span>
|
||||
<script>
|
||||
msubsup("<xsl:value-of select="concat(generate-id(),'",',generate-id(),',',generate-id(),'x,',generate-id(),'b,',generate-id())"/>p);
|
||||
</script>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="h:table//m:msubsup|m:mtable//m:msubsup|m:msubsup"
|
||||
priority="2">
|
||||
<span>
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</span
|
||||
><sub><xsl:apply-templates
|
||||
select="*[2]"/></sub>
|
||||
<sup><xsl:apply-templates
|
||||
select="*[3]"/></sup>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:msup
|
||||
">
|
||||
<span id="{generate-id()}">
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</span
|
||||
><span id="{generate-id()}p" class="msubsup"><xsl:apply-templates
|
||||
select="*[2]"/></span
|
||||
><span id="{generate-id()}x"></span>
|
||||
<script>
|
||||
msup("<xsl:value-of select="concat(generate-id(),'",',generate-id(),'x,',generate-id())"/>p);
|
||||
</script>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="h:table//m:msup|m:mtable//m:msup|m:msup"
|
||||
priority="2">
|
||||
<span>
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</span
|
||||
><sup><xsl:apply-templates
|
||||
select="*[2]"/></sup>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:msub
|
||||
">
|
||||
<span id="{generate-id()}">
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</span
|
||||
><span id="{generate-id()}p" class="msubsup"><xsl:apply-templates
|
||||
select="*[2]"/></span
|
||||
><span id="{generate-id()}x"></span>
|
||||
<script>
|
||||
msub("<xsl:value-of select="concat(generate-id(),'",',generate-id(),'x,',generate-id())"/>p);
|
||||
</script>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="h:table//m:msub|m:mtable//m:msub|m:msub"
|
||||
priority="2">
|
||||
<span>
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</span
|
||||
><sub><xsl:apply-templates
|
||||
select="*[2]"/></sub>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:*/text()" name="text">
|
||||
<xsl:param name="x" select="normalize-space(.)"/>
|
||||
<xsl:variable name="mo" select="document('')/*/x:x[@x=$x]"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$mo"><xsl:copy-of select="$mo/node()"/></xsl:when>
|
||||
<xsl:otherwise><xsl:copy-of select="$x"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:msqrt">
|
||||
<span class="msqrtx">\</span><span class="msqrt">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:menclose[@notation='radical']">
|
||||
<span class="msqrtx">\</span><span class="msqrt">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:menclose[@notation='actuarial']">
|
||||
<span class="actuarial">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:menclose">
|
||||
<span class="msqrt">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:mroot">
|
||||
<span class="msqrtx"><sup><xsl:apply-templates select="*[2]"/></sup>\</span><span class="msqrt">
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:mfrac">
|
||||
<xsl:param name="full" select="not(ancestor::m:mfrac)"/>
|
||||
<table class="mfrac">
|
||||
<xsl:if test="$full">
|
||||
<xsl:attribute name="style">font-size: 75% ;</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="not($full)">
|
||||
<xsl:attribute name="style">font-size: 100% ;</xsl:attribute>
|
||||
</xsl:if>
|
||||
<tr id="a{generate-id()}" class="mfraca"><td class="mfracaa">
|
||||
<xsl:apply-templates select="*[1]"/>
|
||||
</td></tr>
|
||||
<tr id="b{generate-id()}" class="mfracb"><td>
|
||||
<xsl:apply-templates select="*[2]"/>
|
||||
</td></tr>
|
||||
</table><xsl:if test="$full"><script>
|
||||
if ( a<xsl:value-of select="generate-id()"
|
||||
/>.offsetHeight > b<xsl:value-of select="generate-id()"
|
||||
/>.offsetHeight ) b<xsl:value-of select="generate-id()
|
||||
"/>.style.setExpression("height",a<xsl:value-of select="generate-id()"/>.offsetHeight );
|
||||
else a<xsl:value-of
|
||||
select="generate-id()"/>.style.setExpression("height",b<xsl:value-of
|
||||
select="generate-id()"/>.offsetHeight );
|
||||
</script></xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:padded">
|
||||
<span>
|
||||
<xsl:attribute name="display">
|
||||
</xsl:attribute>
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:mspace">
|
||||
<span style="padding-left: {@width};"></span>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:mtable">
|
||||
<table class="mtable">
|
||||
<xsl:apply-templates/>
|
||||
</table>
|
||||
<script>
|
||||
<xsl:variable name="t" select="."/>
|
||||
<xsl:for-each select="m:mtr[1]/m:mtd">
|
||||
<xsl:variable name="c" select="position()"/>
|
||||
<xsl:for-each select="descendant::m:maligngroup">
|
||||
<xsl:variable name="g" select="position()"/>
|
||||
malign([<xsl:for-each
|
||||
select="$t/m:mtr/m:mtd[$c]/descendant::m:maligngroup[$g]">
|
||||
<xsl:value-of select="generate-id()"/>
|
||||
<xsl:if test="position()<last()">,</xsl:if>
|
||||
</xsl:for-each>]);</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</script>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:mtr">
|
||||
<tr>
|
||||
<xsl:apply-templates/>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="m:mtd">
|
||||
<td>
|
||||
<xsl:apply-templates/>
|
||||
</td>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="m:maligngroup">
|
||||
<xsl:variable name="g">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@groupalign">
|
||||
</xsl:when>
|
||||
<xsl:when test="ancestor::td/@groupalign">
|
||||
</xsl:when>
|
||||
<xsl:when test="ancestor::tr/@groupalign">
|
||||
</xsl:when>
|
||||
<xsl:when test="ancestor::table/@groupalign">
|
||||
</xsl:when>
|
||||
|
||||
<xsl:otherwise>left</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<span id="{generate-id()}"></span>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2011 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2011-02-21)
|
||||
* Version 1.4 (2014-08-13)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -78,12 +78,6 @@ public class W2XRegistration {
|
|||
multiFactory,
|
||||
regKey);
|
||||
}
|
||||
else if (implName.equals(XhtmlOptionsDialogXsl.__implementationName)) {
|
||||
xSingleServiceFactory = FactoryHelper.getServiceFactory(XhtmlOptionsDialogXsl.class,
|
||||
XhtmlOptionsDialogXsl.__serviceName,
|
||||
multiFactory,
|
||||
regKey);
|
||||
}
|
||||
else if (implName.equals(XhtmlOptionsDialogCalc.__implementationName)) {
|
||||
xSingleServiceFactory = FactoryHelper.getServiceFactory(XhtmlOptionsDialogCalc.class,
|
||||
XhtmlOptionsDialogCalc.__serviceName,
|
||||
|
@ -128,8 +122,6 @@ public class W2XRegistration {
|
|||
W2XExportFilter.__serviceName, regKey) &
|
||||
FactoryHelper.writeRegistryServiceInfo(XhtmlOptionsDialog.__implementationName,
|
||||
XhtmlOptionsDialog.__serviceName, regKey) &
|
||||
FactoryHelper.writeRegistryServiceInfo(XhtmlOptionsDialogXsl.__implementationName,
|
||||
XhtmlOptionsDialogXsl.__serviceName, regKey) &
|
||||
FactoryHelper.writeRegistryServiceInfo(XhtmlOptionsDialogCalc.__implementationName,
|
||||
XhtmlOptionsDialogCalc.__serviceName, regKey) &
|
||||
FactoryHelper.writeRegistryServiceInfo(EpubOptionsDialog.__implementationName,
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2011 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2011-03-21)
|
||||
* Version 1.4 (2014-08-14)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -87,7 +87,7 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
|
|||
loadListBoxOption(xProps, "SplitLevel");
|
||||
loadListBoxOption(xProps, "RepeatLevels");
|
||||
loadCheckBoxOption(xProps, "SaveImagesInSubdir");
|
||||
loadTextFieldOption(xProps, "XsltPath");
|
||||
loadCheckBoxOption(xProps, "UseMathjax");
|
||||
|
||||
updateLockedOptions();
|
||||
enableControls();
|
||||
|
@ -148,7 +148,7 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
|
|||
}
|
||||
|
||||
saveCheckBoxOption(xProps, helper, "SaveImagesInSubdir", "save_images_in_subdir");
|
||||
saveTextFieldOption(xProps, helper, "XsltPath", "xslt_path");
|
||||
saveCheckBoxOption(xProps, helper, "UseMathjax", "use_mathjax");
|
||||
|
||||
}
|
||||
|
||||
|
@ -196,8 +196,7 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
|
|||
setControlEnabled("RepeatLevelsLabel",!isLocked("repeat_levels") && !isLocked("split_level") && bSplit);
|
||||
setControlEnabled("RepeatLevels",!isLocked("repeat_levels") && !isLocked("split_level") && bSplit);
|
||||
setControlEnabled("SaveImagesInSubdir",!isLocked("save_images_in_subdir"));
|
||||
setControlEnabled("XsltPathLabel",(this instanceof XhtmlOptionsDialogXsl) && !isLocked("xslt_path"));
|
||||
setControlEnabled("XsltPath",(this instanceof XhtmlOptionsDialogXsl) && !isLocked("xslt_path"));
|
||||
setControlEnabled("UseMathjax",!isLocked("use_mathjax"));
|
||||
}
|
||||
|
||||
private void enableSplitLevel() {
|
||||
|
@ -214,6 +213,3 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,52 +0,0 @@
|
|||
/************************************************************************
|
||||
*
|
||||
* XhtmlOptionsDialogXsl.java
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2008 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.0 (2008-09-11)
|
||||
*
|
||||
*/
|
||||
|
||||
package org.openoffice.da.comp.writer2xhtml;
|
||||
|
||||
import com.sun.star.uno.XComponentContext;
|
||||
|
||||
/** This class provides a uno component which implements a filter ui for the
|
||||
* Xhtml export (xsl variant)
|
||||
* This variant of the dialog has the XsltPath setting enabled
|
||||
*/
|
||||
public class XhtmlOptionsDialogXsl extends XhtmlOptionsDialog {
|
||||
/** The component will be registered under this name.
|
||||
*/
|
||||
public static String __serviceName = "org.openoffice.da.writer2xhtml.XhtmlOptionsDialogXsl";
|
||||
|
||||
/** The component should also have an implementation name.
|
||||
*/
|
||||
public static String __implementationName = "org.openoffice.da.comp.writer2xhtml.XhtmlOptionsDialogXsl";
|
||||
|
||||
/** Create a new XhtmlOptionsDialogXsl */
|
||||
public XhtmlOptionsDialogXsl(XComponentContext xContext) {
|
||||
super(xContext);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.4 (2014-08-05)
|
||||
* Version 1.4 (2014-08-13)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -54,7 +54,7 @@ import writer2latex.util.Misc;
|
|||
* <p>Where the available options are
|
||||
* <ul>
|
||||
* <li><code>-latex</code>, <code>-bibtex</code>, <code>-html5</code>, <code>-xhtml</code>,
|
||||
<code>-xhtml+mathml</code>, <code>-xhtml+mathml+xsl</code>, <code>-epub</code>
|
||||
<code>-xhtml+mathml</code>, <code>-epub</code>
|
||||
* <li><code>-recurse</code>
|
||||
* <li><code>-ultraclean</code>, <code>-clean</code>, <code>-pdfscreen</code>,
|
||||
* <code>-pdfprint</code>, <code>-cleanxhtml</code>
|
||||
|
@ -328,7 +328,6 @@ public final class Application {
|
|||
System.out.println(" -xhtml");
|
||||
System.out.println(" -xhtml11");
|
||||
System.out.println(" -xhtml+mathml");
|
||||
System.out.println(" -xhtml+mathml+xsl");
|
||||
System.out.println(" -html5");
|
||||
System.out.println(" -epub");
|
||||
System.out.println(" -recurse");
|
||||
|
@ -366,7 +365,6 @@ public final class Application {
|
|||
else if ("-xhtml".equals(sArg)) { sTargetMIME = MIMETypes.XHTML; }
|
||||
else if ("-xhtml11".equals(sArg)) { sTargetMIME = MIMETypes.XHTML11; }
|
||||
else if ("-xhtml+mathml".equals(sArg)) { sTargetMIME = MIMETypes.XHTML_MATHML; }
|
||||
else if ("-xhtml+mathml+xsl".equals(sArg)) { sTargetMIME = MIMETypes.XHTML_MATHML_XSL; }
|
||||
else if ("-epub".equals(sArg)) { sTargetMIME = MIMETypes.EPUB; }
|
||||
else if ("-recurse".equals(sArg)) { bRecurse = true; }
|
||||
else if ("-ultraclean".equals(sArg)) { configFileNames.add("*ultraclean.xml"); }
|
||||
|
|
|
@ -89,9 +89,6 @@ public class ConverterFactory {
|
|||
else if (MIMETypes.XHTML_MATHML.equals(sMIME)) {
|
||||
converter = createInstance("writer2latex.xhtml.XhtmlMathMLConverter");
|
||||
}
|
||||
else if (MIMETypes.XHTML_MATHML_XSL.equals(sMIME)) {
|
||||
converter = createInstance("writer2latex.xhtml.XhtmlMathMLXSLConverter");
|
||||
}
|
||||
else if (MIMETypes.HTML5.equals(sMIME)) {
|
||||
converter = createInstance("writer2latex.xhtml.Html5Converter");
|
||||
}
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2012 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.4 (2012-04-01)
|
||||
* Version 1.4 (2014-08-13)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -51,7 +51,6 @@ public class MIMETypes {
|
|||
/** This is a fake MIME type, for internal use only */
|
||||
public static final String XHTML11="application/xhtml11";
|
||||
public static final String XHTML_MATHML="application/xhtml+xml";
|
||||
public static final String XHTML_MATHML_XSL="application/xml";
|
||||
/** This is a fake MIME type, for internal use only */
|
||||
public static final String HTML5="text/html5";
|
||||
public static final String EPUB="application/epub+zip";
|
||||
|
|
|
@ -269,7 +269,7 @@ public final class MathConverter extends ConverterHelper {
|
|||
* @param node the paragraph
|
||||
* @return true if this is a display equation
|
||||
*/
|
||||
public boolean parseDisplayEquation(Node node) {
|
||||
private boolean parseDisplayEquation(Node node) {
|
||||
theEquation = null;
|
||||
theSequence = null;
|
||||
return doParseDisplayEquation(node);
|
||||
|
@ -346,7 +346,7 @@ public final class MathConverter extends ConverterHelper {
|
|||
* @param node the draw:frame
|
||||
* @return the MathML element, or null if this is not a MathML formula
|
||||
*/
|
||||
public Element getMathmlEquation(Element node) {
|
||||
private Element getMathmlEquation(Element node) {
|
||||
if (node.getTagName().equals(XMLString.DRAW_FRAME)) {
|
||||
node=Misc.getFirstChildElement(node);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.4 (2014-08-05)
|
||||
* Version 1.4 (2014-08-13)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -69,7 +69,6 @@ public final class MIMETypes extends writer2latex.api.MIMETypes {
|
|||
public static final String BIBTEX_EXT = ".bib";
|
||||
public static final String XHTML_EXT = ".html";
|
||||
public static final String XHTML_MATHML_EXT = ".xhtml";
|
||||
public static final String XHTML_MATHML_XSL_EXT = ".xml";
|
||||
public static final String PNG_EXT = ".png";
|
||||
public static final String JPEG_EXT = ".jpg"; // this is the default in graphicx.sty
|
||||
public static final String GIF_EXT = ".gif";
|
||||
|
@ -142,7 +141,6 @@ public final class MIMETypes extends writer2latex.api.MIMETypes {
|
|||
if (BIBTEX.equals(sMIME)) { return BIBTEX_EXT; }
|
||||
if (XHTML.equals(sMIME)) { return XHTML_EXT; }
|
||||
if (XHTML_MATHML.equals(sMIME)) { return XHTML_MATHML_EXT; }
|
||||
if (XHTML_MATHML_XSL.equals(sMIME)) { return XHTML_MATHML_XSL_EXT; }
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2012 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.4 (2012-04-12)
|
||||
* Version 1.4 (2014-08-13)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -41,7 +41,7 @@ import writer2latex.util.Misc;
|
|||
|
||||
public class XhtmlConfig extends writer2latex.base.ConfigBase {
|
||||
// Implement configuration methods
|
||||
protected int getOptionCount() { return 58; }
|
||||
protected int getOptionCount() { return 57; }
|
||||
protected String getDefaultConfigPath() { return "/writer2latex/xhtml/config/"; }
|
||||
|
||||
// Override setOption: To be backwards compatible, we must accept options
|
||||
|
@ -152,12 +152,11 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
|
|||
private static final int APPLY_PRINT_RANGES = 49;
|
||||
private static final int USE_TITLE_AS_HEADING = 50;
|
||||
private static final int USE_SHEET_NAMES_AS_HEADINGS = 51;
|
||||
private static final int XSLT_PATH = 52;
|
||||
private static final int SAVE_IMAGES_IN_SUBDIR = 53;
|
||||
private static final int UPLINK = 54;
|
||||
private static final int DIRECTORY_ICON = 55;
|
||||
private static final int DOCUMENT_ICON = 56;
|
||||
private static final int ZEN_HACK = 57; // temporary hack for ePub Zen Garden styles
|
||||
private static final int SAVE_IMAGES_IN_SUBDIR = 52;
|
||||
private static final int UPLINK = 53;
|
||||
private static final int DIRECTORY_ICON = 54;
|
||||
private static final int DOCUMENT_ICON = 55;
|
||||
private static final int ZEN_HACK = 56; // temporary hack for ePub Zen Garden styles
|
||||
|
||||
protected ComplexOption xheading = addComplexOption("heading-map");
|
||||
protected ComplexOption xpar = addComplexOption("paragraph-map");
|
||||
|
@ -284,7 +283,6 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
|
|||
options[APPLY_PRINT_RANGES] = new BooleanOption("apply_print_ranges","false");
|
||||
options[USE_TITLE_AS_HEADING] = new BooleanOption("use_title_as_heading","true");
|
||||
options[USE_SHEET_NAMES_AS_HEADINGS] = new BooleanOption("use_sheet_names_as_headings","true");
|
||||
options[XSLT_PATH] = new Option("xslt_path","");
|
||||
options[SAVE_IMAGES_IN_SUBDIR] = new BooleanOption("save_images_in_subdir","false");
|
||||
options[UPLINK] = new Option("uplink","");
|
||||
options[DIRECTORY_ICON] = new Option("directory_icon","");
|
||||
|
@ -412,7 +410,6 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
|
|||
public boolean applyPrintRanges() { return ((BooleanOption) options[APPLY_PRINT_RANGES]).getValue(); }
|
||||
public boolean xhtmlUseTitleAsHeading() { return ((BooleanOption) options[USE_TITLE_AS_HEADING]).getValue(); }
|
||||
public boolean xhtmlUseSheetNamesAsHeadings() { return ((BooleanOption) options[USE_SHEET_NAMES_AS_HEADINGS]).getValue(); }
|
||||
public String getXsltPath() { return options[XSLT_PATH].getString(); }
|
||||
public boolean saveImagesInSubdir() { return ((BooleanOption) options[SAVE_IMAGES_IN_SUBDIR]).getValue(); }
|
||||
public String getXhtmlUplink() { return options[UPLINK].getString(); }
|
||||
public String getXhtmlDirectoryIcon() { return options[DIRECTORY_ICON].getString(); }
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2012 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.4 (2012-04-07)
|
||||
* Version 1.4 (2014-08-13)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -69,16 +69,11 @@ public class XhtmlDocument extends DOMDocument {
|
|||
/** Constant to identify XHTML + MathML documents */
|
||||
public static final int XHTML_MATHML = 2;
|
||||
|
||||
/** Constant to identify XHTML + MathML documents using the XSL transformations
|
||||
* from w3c's math working group (http://www.w3.org/Math/XSL/)
|
||||
*/
|
||||
public static final int XHTML_MATHML_XSL = 3;
|
||||
|
||||
/** Constant to identify HTML5 documents */
|
||||
public static final int HTML5 = 4;
|
||||
public static final int HTML5 = 3;
|
||||
|
||||
// Some static data
|
||||
private static final String[] sExtension = { ".html", ".xhtml", ".xhtml", ".xml", ".html" };
|
||||
private static final String[] sExtension = { ".html", ".xhtml", ".xhtml", ".html" };
|
||||
|
||||
private static Set<String> blockPrettyPrint;
|
||||
private static Set<String> conditionalBlockPrettyPrint;
|
||||
|
@ -97,7 +92,6 @@ public class XhtmlDocument extends DOMDocument {
|
|||
private boolean bNoDoctype = false;
|
||||
private boolean bAddBOM = false;
|
||||
private boolean bPrettyPrint = true;
|
||||
private String sXsltPath = "";
|
||||
private String sContentId = "content";
|
||||
private String sHeaderId = "header";
|
||||
private String sFooterId = "footer";
|
||||
|
@ -309,7 +303,6 @@ public class XhtmlDocument extends DOMDocument {
|
|||
case XHTML10: return MIMETypes.XHTML;
|
||||
case XHTML11: return MIMETypes.XHTML_MATHML; // TODO: Change the constant names in MIMETypes, this is a bit confusing...
|
||||
case XHTML_MATHML: return MIMETypes.XHTML_MATHML;
|
||||
case XHTML_MATHML_XSL: return MIMETypes.XHTML_MATHML_XSL;
|
||||
case HTML5: return MIMETypes.HTML5;
|
||||
}
|
||||
return "";
|
||||
|
@ -436,7 +429,6 @@ public class XhtmlDocument extends DOMDocument {
|
|||
sSystemId = "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";
|
||||
break;
|
||||
case XHTML_MATHML :
|
||||
case XHTML_MATHML_XSL :
|
||||
sPublicId = "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN";
|
||||
sSystemId = "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";
|
||||
//sSystemId = "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"; (old version)
|
||||
|
@ -514,7 +506,6 @@ public class XhtmlDocument extends DOMDocument {
|
|||
bPrettyPrint = config.prettyPrint();
|
||||
bUseNamedEntities = config.useNamedEntities();
|
||||
bHexadecimalEntities = config.hexadecimalEntities();
|
||||
sXsltPath = config.getXsltPath();
|
||||
|
||||
String[] sTemplateIds = config.templateIds().split(",");
|
||||
int nIdCount = sTemplateIds.length;
|
||||
|
@ -575,15 +566,9 @@ public class XhtmlDocument extends DOMDocument {
|
|||
if (nType!=XHTML10 && nType!=HTML5) {
|
||||
osw.write("<?xml version=\"1.0\" encoding=\""+sEncoding+"\" ?>\n");
|
||||
}
|
||||
// Either specify doctype or xsl transformation (the user may require
|
||||
// that no doctype is used; this may be desirable for further transformations)
|
||||
if (nType==XHTML_MATHML_XSL) {
|
||||
// Original url: http://www.w3.org/Math/XSL/pmathml.xsl
|
||||
// Add trailing slash if needed
|
||||
String sSlash = sXsltPath.length()>0 && !sXsltPath.endsWith("/") ? "/" : "";
|
||||
osw.write("<?xml-stylesheet type=\"text/xsl\" href=\""+sXsltPath+sSlash+"pmathml.xsl\"?>\n");
|
||||
}
|
||||
else if (!bNoDoctype) {
|
||||
// Specify DOCTYPE (the user may require that no DOCTYPE is used;
|
||||
// this may be desirable for further transformations)
|
||||
if (!bNoDoctype) {
|
||||
if (nType==HTML5) {
|
||||
osw.write("<!DOCTYPE html>\n");
|
||||
}
|
||||
|
@ -763,7 +748,7 @@ public class XhtmlDocument extends DOMDocument {
|
|||
return;
|
||||
}
|
||||
String s=getMathMLEntity(c);
|
||||
if (s!=null && (nType==XHTML_MATHML || nType==XHTML_MATHML_XSL)) {
|
||||
if (s!=null && (nType==XHTML_MATHML)) {
|
||||
// There's a MathML entity to use
|
||||
osw.write(s);
|
||||
return;
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
/************************************************************************
|
||||
*
|
||||
* XhtmlMathMLXSLConverter.java
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2008 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.0 (2008-09-09)
|
||||
*
|
||||
*/
|
||||
|
||||
package writer2latex.xhtml;
|
||||
|
||||
public class XhtmlMathMLXSLConverter extends Converter {
|
||||
|
||||
public XhtmlMathMLXSLConverter() {
|
||||
super(XhtmlDocument.XHTML_MATHML_XSL);
|
||||
}
|
||||
|
||||
}
|
|
@ -45,7 +45,7 @@
|
|||
<prop oor:name="SplitLevel" oor:type="xs:short" />
|
||||
<prop oor:name="RepeatLevels" oor:type="xs:short" />
|
||||
<prop oor:name="SaveImagesInSubdir" oor:type="xs:boolean" />
|
||||
<prop oor:name="XsltPath" oor:type="xs:string" />
|
||||
<prop oor:name="UseMathjax" oor:type="xs:boolean" />
|
||||
<!-- Configurations -->
|
||||
<set oor:name="Configurations" oor:node-type="Configuration" />
|
||||
<set oor:name="Templates" oor:node-type="Template" />
|
||||
|
|
|
@ -50,8 +50,8 @@
|
|||
<prop oor:name="SaveImagesInSubdir" oor:type="xs:boolean">
|
||||
<value>false</value>
|
||||
</prop>
|
||||
<prop oor:name="XsltPath" oor:type="xs:string">
|
||||
<value></value>
|
||||
<prop oor:name="UseMathjax" oor:type="xs:boolean">
|
||||
<value>true</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name="EpubOptions">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Catal\u00e0
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=Opcions XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Desa les imatges en un subdirectori
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=Cam\u00ed XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Exporta
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Personalitzat
|
||||
140.Config.StringItemList=Format original
|
||||
141.Config.StringItemList=Personalitzat
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Czech
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=Mo\u017enosti pro XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Ulo\u017eit obr\u00e1zky do podadres\u00e1\u0159e
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=Cesta pro XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Exportovat
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Vlastn\u00ed
|
||||
140.Config.StringItemList=P\u016fvodn\u00ed form\u00e1tov\u00e1n\u00ed
|
||||
141.Config.StringItemList=Vlastn\u00ed
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Gem billeder i undermappe
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=XSLT-sti
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Eksporter
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Brugerdefineret
|
||||
140.Config.StringItemList=Oprindelig formatering
|
||||
141.Config.StringItemList=Brugerdefineret
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Brug MathJax
|
||||
|
|
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Bilder in Unterverzeichnis speichern
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=XSLT path
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Exportieren
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Benutzerdefiniert
|
||||
140.Config.StringItemList=Original formatting
|
||||
141.Config.StringItemList=Benutzerdefiniert
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=MathJax verwenden
|
||||
|
|
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Save images in subdirectory
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=XSLT path
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Export
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Custom
|
||||
140.Config.StringItemList=Original formatting
|
||||
141.Config.StringItemList=Custom
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=Opciones para XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Salvar im\u00e1genes en subdirectorio
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=Direcci\u00F3n XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Exportar
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Personalizado
|
||||
140.Config.StringItemList=Formato original
|
||||
141.Config.StringItemList=Personalizado
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Persian
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=\u062a\u0646\u0638\u06cc\u0645\u0627\u062a XHTML
|
||||
1.XhtmlOptions.Title=
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=\u0630\u062e\u06cc\u0631\u0647 \u0634\u06a9\u0644\u0647\u0627 \u062f\u0631 \u06cc\u06a9 \u0632\u06cc\u0631\u067e\u0648\u0634\u0647
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=\u0645\u0633\u06cc\u0631 XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=\u0635\u0627\u062f\u0631 \u06a9\u0631\u062f\u0646
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=\u062f\u0644\u062e\u0648\u0627\u0647
|
||||
140.Config.StringItemList=\u0642\u0627\u0644\u0628 \u0628\u0646\u062f\u06cc \u0627\u0635\u0644\u06cc
|
||||
141.Config.StringItemList=\u062f\u0644\u062e\u0648\u0627\u0647
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Your language
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=XHTML asetukset (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Tallenna kuva alakansioon
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=XSLT polku
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Vie
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Custom
|
||||
140.Config.StringItemList=Alkuper\u00e4inen muotoilu
|
||||
141.Config.StringItemList=Custom
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=Options XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Sauver les images dans un sous-r\u00e9pertoire
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=Chemin XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Exporter
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Personnalis\u00e9
|
||||
140.Config.StringItemList=Format d'origine
|
||||
141.Config.StringItemList=Personnalis\u00e9
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Utiliser MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Your language
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=Opzioni XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Salva le immagini in una sottocartella
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=Percorso XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Esporta
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Personalizzato
|
||||
140.Config.StringItemList=Formattazione originale
|
||||
141.Config.StringItemList=Personalizzato
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs in dutch
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=XHTML-opties (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Sla plaatjes op in subdirectory
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=XSLT-pad
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Exporteer
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Aangepast
|
||||
140.Config.StringItemList=Origineel formaat
|
||||
141.Config.StringItemList=Aangepast
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Gebruik MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Your language
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=XHTML-val (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Lagre bilete i undermappe
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=XSLT-sti
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Eksporter
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Eigendefinert
|
||||
140.Config.StringItemList=Opphavleg formatering
|
||||
141.Config.StringItemList=Eigendefinert
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Polish (Polski)
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=Opcje XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Zapisz rysunki w podkatalogu
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=\u015acie\u017cka XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Eksportuj
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=U\u017cytkownika
|
||||
140.Config.StringItemList=Formatowanie oryginalne
|
||||
141.Config.StringItemList=U\u017cytkownika
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Brazilian Portugeuse
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=Op\u00e7\u00f5es de XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Salvar imagens em subdiret\u00f3rio
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=Caminho XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=Exportar
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=Padr\u00e3o
|
||||
140.Config.StringItemList=Formata\u00e7\u00e3o original
|
||||
141.Config.StringItemList=Padr\u00e3o
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=(Russian)
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=\u041f\u0443\u0442\u044c \u043a XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=\u0412\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u044b\u0439
|
||||
140.Config.StringItemList=\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435
|
||||
141.Config.StringItemList=\u0412\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u044b\u0439
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs=Your language
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=XHTML Se\u00e7enekleri (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=Resimleri altklas\u00f6re kaydet
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=XSLT yolu
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=\u0130hra\u00e7 et
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=\u00d6zel i\u00e7erik
|
||||
140.Config.StringItemList=Orjinal formatlama
|
||||
141.Config.StringItemList=\u00d6zel
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Strings for Dialog Library W2XDialogs (Ukrainian)
|
||||
# Strings for Dialog Library W2XDialogs
|
||||
0.XhtmlOptions.HelpText=
|
||||
1.XhtmlOptions.Title=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b XHTML (Writer2xhtml)
|
||||
2.XhtmlOptions.StyleLabel.HelpText=
|
||||
|
@ -58,10 +58,6 @@
|
|||
66.RepeatLevels.StringItemList=5
|
||||
67.XhtmlOptions.SaveImagesInSubdir.HelpText=
|
||||
68.XhtmlOptions.SaveImagesInSubdir.Label=\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0443 \u043f\u0456\u0434\u0442\u0435\u043a\u0443
|
||||
69.XhtmlOptions.XsltPathLabel.HelpText=
|
||||
70.XhtmlOptions.XsltPathLabel.Label=\u0428\u043b\u044f\u0445 \u0434\u043e XSLT
|
||||
71.XhtmlOptions.XsltPath.HelpText=
|
||||
72.XhtmlOptions.XsltPath.Text=
|
||||
73.XhtmlOptions.ExportButton.HelpText=
|
||||
74.XhtmlOptions.ExportButton.Label=\u0415\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438
|
||||
75.XhtmlOptions.CancelButton.HelpText=
|
||||
|
@ -129,3 +125,5 @@
|
|||
139.Config.StringItemList=\u0412\u0438\u0431\u0456\u0440\u043a\u043e\u0432\u0438\u0439
|
||||
140.Config.StringItemList=\u0410\u0432\u0442\u0435\u043d\u0442\u0438\u0447\u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f
|
||||
141.Config.StringItemList=\u0412\u0438\u0431\u0456\u0440\u043a\u043e\u0432\u0438\u0439
|
||||
144.XhtmlOptions.UseMathjax.HelpText=
|
||||
145.XhtmlOptions.UseMathjax.Label=Use MathJax
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<dlg:bulletinboard>
|
||||
<dlg:text dlg:id="StyleLabel" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="183" dlg:height="12" dlg:help-text="&2.XhtmlOptions.StyleLabel.HelpText" dlg:value="&3.XhtmlOptions.StyleLabel.Label"/>
|
||||
<dlg:text dlg:id="ConfigLabel" dlg:tab-index="1" dlg:left="10" dlg:top="22" dlg:width="76" dlg:height="12" dlg:help-text="&4.XhtmlOptions.ConfigLabel.HelpText" dlg:value="&5.XhtmlOptions.ConfigLabel.Label"/>
|
||||
<dlg:menulist dlg:id="Config" dlg:tab-index="2" dlg:left="97" dlg:top="20" dlg:width="92" dlg:height="12" dlg:help-text="&6.XhtmlOptions.Config.HelpText" dlg:spin="true" dlg:linecount="10" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsConfig">
|
||||
<dlg:menulist dlg:id="Config" dlg:tab-index="2" dlg:left="97" dlg:top="20" dlg:width="92" dlg:height="12" dlg:help-text="&6.XhtmlOptions.Config.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsConfig" dlg:spin="true" dlg:linecount="10">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="&130.Config.StringItemList"/>
|
||||
<dlg:menuitem dlg:value="&131.Config.StringItemList"/>
|
||||
|
@ -20,26 +20,26 @@
|
|||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:ConfigChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="ScalingLabel" dlg:tab-index="3" dlg:left="10" dlg:top="36" dlg:width="76" dlg:height="12" dlg:help-text="&17.XhtmlOptions.ScalingLabel.HelpText" dlg:value="&18.XhtmlOptions.ScalingLabel.Label"/>
|
||||
<dlg:numericfield dlg:id="Scaling" dlg:tab-index="4" dlg:left="144" dlg:top="34" dlg:width="30" dlg:height="12" dlg:help-text="&19.XhtmlOptions.Scaling.HelpText" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsScaling"/>
|
||||
<dlg:numericfield dlg:id="Scaling" dlg:tab-index="4" dlg:left="144" dlg:top="34" dlg:width="30" dlg:height="12" dlg:help-text="&19.XhtmlOptions.Scaling.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsScaling" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
|
||||
<dlg:text dlg:id="ScalingPercentLabel" dlg:tab-index="5" dlg:left="179" dlg:top="36" dlg:width="10" dlg:height="12" dlg:help-text="&20.XhtmlOptions.ScalingPercentLabel.HelpText" dlg:value="&21.XhtmlOptions.ScalingPercentLabel.Label"/>
|
||||
<dlg:text dlg:id="ColumnScalingLabel" dlg:tab-index="6" dlg:left="10" dlg:top="50" dlg:width="76" dlg:height="12" dlg:help-text="&22.XhtmlOptions.ColumnScalingLabel.HelpText" dlg:value="&23.XhtmlOptions.ColumnScalingLabel.Label"/>
|
||||
<dlg:numericfield dlg:id="ColumnScaling" dlg:tab-index="7" dlg:left="144" dlg:top="48" dlg:width="30" dlg:height="12" dlg:help-text="&24.XhtmlOptions.ColumnScaling.HelpText" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsColumnScaling"/>
|
||||
<dlg:numericfield dlg:id="ColumnScaling" dlg:tab-index="7" dlg:left="144" dlg:top="48" dlg:width="30" dlg:height="12" dlg:help-text="&24.XhtmlOptions.ColumnScaling.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsColumnScaling" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
|
||||
<dlg:text dlg:id="ColumnScalingPercentLabel" dlg:tab-index="8" dlg:left="179" dlg:top="50" dlg:width="10" dlg:height="12" dlg:help-text="&25.XhtmlOptions.ColumnScalingPercentLabel.HelpText" dlg:value="&26.XhtmlOptions.ColumnScalingPercentLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="ConvertToPx" dlg:tab-index="9" dlg:left="10" dlg:top="64" dlg:width="177" dlg:height="12" dlg:help-text="&27.XhtmlOptions.ConvertToPx.HelpText" dlg:value="&28.XhtmlOptions.ConvertToPx.Label" dlg:checked="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsConvertToPx"/>
|
||||
<dlg:checkbox dlg:id="OriginalImageSize" dlg:tab-index="10" dlg:left="10" dlg:top="78" dlg:width="177" dlg:height="12" dlg:help-text="&29.XhtmlOptions.OriginalImageSize.HelpText" dlg:value="&30.XhtmlOptions.OriginalImageSize.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsOriginalImageSize"/>
|
||||
<dlg:checkbox dlg:id="ConvertToPx" dlg:tab-index="9" dlg:left="10" dlg:top="64" dlg:width="177" dlg:height="12" dlg:help-text="&27.XhtmlOptions.ConvertToPx.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsConvertToPx" dlg:value="&28.XhtmlOptions.ConvertToPx.Label" dlg:checked="true"/>
|
||||
<dlg:checkbox dlg:id="OriginalImageSize" dlg:tab-index="10" dlg:left="10" dlg:top="78" dlg:width="177" dlg:height="12" dlg:help-text="&29.XhtmlOptions.OriginalImageSize.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsOriginalImageSize" dlg:value="&30.XhtmlOptions.OriginalImageSize.Label" dlg:checked="false"/>
|
||||
<dlg:text dlg:id="SpecialContentLabel" dlg:tab-index="11" dlg:left="5" dlg:top="92" dlg:width="184" dlg:height="12" dlg:help-text="&31.XhtmlOptions.SpecialContentLabel.HelpText" dlg:value="&32.XhtmlOptions.SpecialContentLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="Notes" dlg:tab-index="12" dlg:left="10" dlg:top="106" dlg:width="179" dlg:height="12" dlg:help-text="&33.XhtmlOptions.Notes.HelpText" dlg:value="&34.XhtmlOptions.Notes.Label" dlg:checked="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsNotes"/>
|
||||
<dlg:checkbox dlg:id="UseDublinCore" dlg:tab-index="13" dlg:left="10" dlg:top="120" dlg:width="179" dlg:height="12" dlg:help-text="&35.XhtmlOptions.UseDublinCore.HelpText" dlg:value="&36.XhtmlOptions.UseDublinCore.Label" dlg:checked="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsUseDublinCore"/>
|
||||
<dlg:checkbox dlg:id="Notes" dlg:tab-index="12" dlg:left="10" dlg:top="106" dlg:width="179" dlg:height="12" dlg:help-text="&33.XhtmlOptions.Notes.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsNotes" dlg:value="&34.XhtmlOptions.Notes.Label" dlg:checked="true"/>
|
||||
<dlg:checkbox dlg:id="UseDublinCore" dlg:tab-index="13" dlg:left="10" dlg:top="120" dlg:width="179" dlg:height="12" dlg:help-text="&35.XhtmlOptions.UseDublinCore.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsUseDublinCore" dlg:value="&36.XhtmlOptions.UseDublinCore.Label" dlg:checked="true"/>
|
||||
<dlg:text dlg:id="AutoCorrectLabel" dlg:tab-index="14" dlg:left="5" dlg:top="134" dlg:width="184" dlg:height="12" dlg:help-text="&37.XhtmlOptions.AutoCorrectLabel.HelpText" dlg:value="&38.XhtmlOptions.AutoCorrectLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="IgnoreHardLineBreaks" dlg:tab-index="15" dlg:left="10" dlg:top="148" dlg:width="175" dlg:height="12" dlg:help-text="&39.XhtmlOptions.IgnoreHardLineBreaks.HelpText" dlg:value="&40.XhtmlOptions.IgnoreHardLineBreaks.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsIgnoreHardLineBreaks"/>
|
||||
<dlg:checkbox dlg:id="IgnoreEmptyParagraphs" dlg:tab-index="16" dlg:left="10" dlg:top="162" dlg:width="175" dlg:height="12" dlg:help-text="&41.XhtmlOptions.IgnoreEmptyParagraphs.HelpText" dlg:value="&42.XhtmlOptions.IgnoreEmptyParagraphs.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsIgnoreEmptyParagraphs"/>
|
||||
<dlg:checkbox dlg:id="IgnoreDoubleSpaces" dlg:tab-index="17" dlg:left="10" dlg:top="176" dlg:width="175" dlg:height="12" dlg:help-text="&43.XhtmlOptions.IgnoreDoubleSpaces.HelpText" dlg:value="&44.XhtmlOptions.IgnoreDoubleSpaces.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsIgnoreDoubleSpaces"/>
|
||||
<dlg:checkbox dlg:id="IgnoreHardLineBreaks" dlg:tab-index="15" dlg:left="10" dlg:top="148" dlg:width="175" dlg:height="12" dlg:help-text="&39.XhtmlOptions.IgnoreHardLineBreaks.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsIgnoreHardLineBreaks" dlg:value="&40.XhtmlOptions.IgnoreHardLineBreaks.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="IgnoreEmptyParagraphs" dlg:tab-index="16" dlg:left="10" dlg:top="162" dlg:width="175" dlg:height="12" dlg:help-text="&41.XhtmlOptions.IgnoreEmptyParagraphs.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsIgnoreEmptyParagraphs" dlg:value="&42.XhtmlOptions.IgnoreEmptyParagraphs.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="IgnoreDoubleSpaces" dlg:tab-index="17" dlg:left="10" dlg:top="176" dlg:width="175" dlg:height="12" dlg:help-text="&43.XhtmlOptions.IgnoreDoubleSpaces.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsIgnoreDoubleSpaces" dlg:value="&44.XhtmlOptions.IgnoreDoubleSpaces.Label" dlg:checked="false"/>
|
||||
<dlg:text dlg:id="FilesLabel" dlg:tab-index="18" dlg:left="5" dlg:top="190" dlg:width="184" dlg:height="12" dlg:help-text="&45.XhtmlOptions.FilesLabel.HelpText" dlg:value="&46.XhtmlOptions.FilesLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="Split" dlg:tab-index="19" dlg:left="10" dlg:top="204" dlg:width="180" dlg:height="12" dlg:help-text="&47.XhtmlOptions.Split.HelpText" dlg:value="&48.XhtmlOptions.Split.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsSplit">
|
||||
<dlg:checkbox dlg:id="Split" dlg:tab-index="19" dlg:left="10" dlg:top="204" dlg:width="180" dlg:height="12" dlg:help-text="&47.XhtmlOptions.Split.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsSplit" dlg:value="&48.XhtmlOptions.Split.Label" dlg:checked="false">
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:SplitChange" script:language="UNO"/>
|
||||
</dlg:checkbox>
|
||||
<dlg:text dlg:id="SplitLevelLabel" dlg:tab-index="20" dlg:left="20" dlg:top="218" dlg:width="76" dlg:height="12" dlg:help-text="&49.XhtmlOptions.SplitLevelLabel.HelpText" dlg:value="&50.XhtmlOptions.SplitLevelLabel.Label"/>
|
||||
<dlg:menulist dlg:id="SplitLevel" dlg:tab-index="21" dlg:left="152" dlg:top="216" dlg:width="37" dlg:height="12" dlg:help-text="&51.XhtmlOptions.SplitLevel.HelpText" dlg:spin="true" dlg:linecount="6" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsSplitLevel">
|
||||
<dlg:menulist dlg:id="SplitLevel" dlg:tab-index="21" dlg:left="152" dlg:top="216" dlg:width="37" dlg:height="12" dlg:help-text="&51.XhtmlOptions.SplitLevel.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsSplitLevel" dlg:spin="true" dlg:linecount="6">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="&52.SplitLevel.StringItemList"/>
|
||||
<dlg:menuitem dlg:value="&53.SplitLevel.StringItemList"/>
|
||||
|
@ -50,7 +50,7 @@
|
|||
</dlg:menupopup>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="RepeatLevelsLabel" dlg:tab-index="22" dlg:left="20" dlg:top="232" dlg:width="122" dlg:height="12" dlg:help-text="&58.XhtmlOptions.RepeatLevelsLabel.HelpText" dlg:value="&59.XhtmlOptions.RepeatLevelsLabel.Label"/>
|
||||
<dlg:menulist dlg:id="RepeatLevels" dlg:tab-index="23" dlg:left="152" dlg:top="230" dlg:width="37" dlg:height="12" dlg:help-text="&60.XhtmlOptions.RepeatLevels.HelpText" dlg:spin="true" dlg:linecount="6" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsRepeatLevels">
|
||||
<dlg:menulist dlg:id="RepeatLevels" dlg:tab-index="23" dlg:left="152" dlg:top="230" dlg:width="37" dlg:height="12" dlg:help-text="&60.XhtmlOptions.RepeatLevels.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsRepeatLevels" dlg:spin="true" dlg:linecount="6">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="&61.RepeatLevels.StringItemList"/>
|
||||
<dlg:menuitem dlg:value="&62.RepeatLevels.StringItemList"/>
|
||||
|
@ -60,12 +60,10 @@
|
|||
<dlg:menuitem dlg:value="&66.RepeatLevels.StringItemList"/>
|
||||
</dlg:menupopup>
|
||||
</dlg:menulist>
|
||||
<dlg:checkbox dlg:id="SaveImagesInSubdir" dlg:tab-index="24" dlg:left="10" dlg:top="246" dlg:width="177" dlg:height="12" dlg:help-text="&67.XhtmlOptions.SaveImagesInSubdir.HelpText" dlg:value="&68.XhtmlOptions.SaveImagesInSubdir.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsSaveImagesInSubdir"/>
|
||||
<dlg:text dlg:id="XsltPathLabel" dlg:tab-index="25" dlg:left="10" dlg:top="260" dlg:width="42" dlg:height="12" dlg:help-text="&69.XhtmlOptions.XsltPathLabel.HelpText" dlg:value="&70.XhtmlOptions.XsltPathLabel.Label"/>
|
||||
<dlg:textfield dlg:id="XsltPath" dlg:tab-index="26" dlg:left="57" dlg:top="258" dlg:width="132" dlg:height="12" dlg:help-text="&71.XhtmlOptions.XsltPath.HelpText" dlg:value="&72.XhtmlOptions.XsltPath.Text" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsXsltPath"/>
|
||||
<dlg:button dlg:id="ExportButton" dlg:tab-index="27" dlg:left="5" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="&73.XhtmlOptions.ExportButton.HelpText" dlg:value="&74.XhtmlOptions.ExportButton.Label" dlg:button-type="ok"/>
|
||||
<dlg:button dlg:id="CancelButton" dlg:tab-index="28" dlg:left="70" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="&75.XhtmlOptions.CancelButton.HelpText" dlg:value="&76.XhtmlOptions.CancelButton.Label" dlg:button-type="cancel"/>
|
||||
<dlg:button dlg:id="HelpButton" dlg:tab-index="29" dlg:left="135" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="" dlg:value="?" dlg:button-type="help" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:Options"/>
|
||||
|
||||
<dlg:checkbox dlg:id="SaveImagesInSubdir" dlg:tab-index="24" dlg:left="10" dlg:top="246" dlg:width="180" dlg:height="12" dlg:help-text="&67.XhtmlOptions.SaveImagesInSubdir.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsSaveImagesInSubdir" dlg:value="&68.XhtmlOptions.SaveImagesInSubdir.Label" dlg:checked="false"/>
|
||||
<dlg:button dlg:id="ExportButton" dlg:tab-index="26" dlg:left="5" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="&73.XhtmlOptions.ExportButton.HelpText" dlg:value="&74.XhtmlOptions.ExportButton.Label" dlg:button-type="ok"/>
|
||||
<dlg:button dlg:id="CancelButton" dlg:tab-index="27" dlg:left="70" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="&75.XhtmlOptions.CancelButton.HelpText" dlg:value="&76.XhtmlOptions.CancelButton.Label" dlg:button-type="cancel"/>
|
||||
<dlg:button dlg:id="HelpButton" dlg:tab-index="28" dlg:left="135" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:Options" dlg:value="Hjælp" dlg:button-type="help"/>
|
||||
<dlg:checkbox dlg:id="UseMathjax" dlg:tab-index="25" dlg:left="10" dlg:top="260" dlg:width="180" dlg:height="11" dlg:help-text="&144.XhtmlOptions.UseMathjax.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsUseMathjax" dlg:value="&145.XhtmlOptions.UseMathjax.Label" dlg:checked="false"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -4,7 +4,7 @@
|
|||
<dlg:bulletinboard>
|
||||
<dlg:text dlg:id="StyleLabel" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="183" dlg:height="12" dlg:help-text="&79.XhtmlOptionsCalc.StyleLabel.HelpText" dlg:value="&80.XhtmlOptionsCalc.StyleLabel.Label"/>
|
||||
<dlg:text dlg:id="ConfigLabel" dlg:tab-index="1" dlg:left="10" dlg:top="22" dlg:width="76" dlg:height="12" dlg:help-text="&81.XhtmlOptionsCalc.ConfigLabel.HelpText" dlg:value="&82.XhtmlOptionsCalc.ConfigLabel.Label"/>
|
||||
<dlg:menulist dlg:id="Config" dlg:tab-index="2" dlg:left="98" dlg:top="20" dlg:width="92" dlg:height="12" dlg:help-text="&83.XhtmlOptionsCalc.Config.HelpText" dlg:spin="true" dlg:linecount="2" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcConfig">
|
||||
<dlg:menulist dlg:id="Config" dlg:tab-index="2" dlg:left="98" dlg:top="20" dlg:width="92" dlg:height="12" dlg:help-text="&83.XhtmlOptionsCalc.Config.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcConfig" dlg:spin="true" dlg:linecount="2">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="&140.Config.StringItemList"/>
|
||||
<dlg:menuitem dlg:value="&141.Config.StringItemList"/>
|
||||
|
@ -12,28 +12,28 @@
|
|||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:ConfigChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="ScalingLabel" dlg:tab-index="3" dlg:left="10" dlg:top="36" dlg:width="76" dlg:height="12" dlg:help-text="&86.XhtmlOptionsCalc.ScalingLabel.HelpText" dlg:value="&87.XhtmlOptionsCalc.ScalingLabel.Label"/>
|
||||
<dlg:numericfield dlg:id="Scaling" dlg:tab-index="4" dlg:left="144" dlg:top="34" dlg:width="30" dlg:height="12" dlg:help-text="&88.XhtmlOptionsCalc.Scaling.HelpText" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcScaling"/>
|
||||
<dlg:numericfield dlg:id="Scaling" dlg:tab-index="4" dlg:left="144" dlg:top="34" dlg:width="30" dlg:height="12" dlg:help-text="&88.XhtmlOptionsCalc.Scaling.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcScaling" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
|
||||
<dlg:text dlg:id="ScalingPercentLabel" dlg:tab-index="5" dlg:left="179" dlg:top="36" dlg:width="10" dlg:height="12" dlg:help-text="&89.XhtmlOptionsCalc.ScalingPercentLabel.HelpText" dlg:value="&90.XhtmlOptionsCalc.ScalingPercentLabel.Label"/>
|
||||
<dlg:text dlg:id="ColumnScalingLabel" dlg:tab-index="6" dlg:left="10" dlg:top="50" dlg:width="76" dlg:height="12" dlg:help-text="&91.XhtmlOptionsCalc.ColumnScalingLabel.HelpText" dlg:value="&92.XhtmlOptionsCalc.ColumnScalingLabel.Label"/>
|
||||
<dlg:numericfield dlg:id="ColumnScaling" dlg:tab-index="7" dlg:left="144" dlg:top="48" dlg:width="30" dlg:height="12" dlg:help-text="&93.XhtmlOptionsCalc.ColumnScaling.HelpText" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcColumnScaling"/>
|
||||
<dlg:numericfield dlg:id="ColumnScaling" dlg:tab-index="7" dlg:left="144" dlg:top="48" dlg:width="30" dlg:height="12" dlg:help-text="&93.XhtmlOptionsCalc.ColumnScaling.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcColumnScaling" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
|
||||
<dlg:text dlg:id="ColumnScalingPercentLabel" dlg:tab-index="8" dlg:left="179" dlg:top="50" dlg:width="10" dlg:height="12" dlg:help-text="&94.XhtmlOptionsCalc.ColumnScalingPercentLabel.HelpText" dlg:value="&95.XhtmlOptionsCalc.ColumnScalingPercentLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="ConvertToPx" dlg:tab-index="9" dlg:left="10" dlg:top="64" dlg:width="177" dlg:height="12" dlg:help-text="&96.XhtmlOptionsCalc.ConvertToPx.HelpText" dlg:value="&97.XhtmlOptionsCalc.ConvertToPx.Label" dlg:checked="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcConvertToPx"/>
|
||||
<dlg:checkbox dlg:id="OriginalImageSize" dlg:tab-index="10" dlg:left="10" dlg:top="78" dlg:width="177" dlg:height="12" dlg:help-text="&98.XhtmlOptionsCalc.OriginalImageSize.HelpText" dlg:value="&99.XhtmlOptionsCalc.OriginalImageSize.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcOriginalImageSize"/>
|
||||
<dlg:checkbox dlg:id="ConvertToPx" dlg:tab-index="9" dlg:left="10" dlg:top="64" dlg:width="177" dlg:height="12" dlg:help-text="&96.XhtmlOptionsCalc.ConvertToPx.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcConvertToPx" dlg:value="&97.XhtmlOptionsCalc.ConvertToPx.Label" dlg:checked="true"/>
|
||||
<dlg:checkbox dlg:id="OriginalImageSize" dlg:tab-index="10" dlg:left="10" dlg:top="78" dlg:width="177" dlg:height="12" dlg:help-text="&98.XhtmlOptionsCalc.OriginalImageSize.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcOriginalImageSize" dlg:value="&99.XhtmlOptionsCalc.OriginalImageSize.Label" dlg:checked="false"/>
|
||||
<dlg:text dlg:id="SpecialContentLabel" dlg:tab-index="11" dlg:left="5" dlg:top="92" dlg:width="184" dlg:height="12" dlg:help-text="&100.XhtmlOptionsCalc.SpecialContentLabel.HelpText" dlg:value="&101.XhtmlOptionsCalc.SpecialContentLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="Notes" dlg:tab-index="12" dlg:left="10" dlg:top="106" dlg:width="179" dlg:height="12" dlg:help-text="&102.XhtmlOptionsCalc.Notes.HelpText" dlg:value="&103.XhtmlOptionsCalc.Notes.Label" dlg:checked="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcNotes"/>
|
||||
<dlg:checkbox dlg:id="UseDublinCore" dlg:tab-index="13" dlg:left="10" dlg:top="120" dlg:width="179" dlg:height="12" dlg:help-text="&104.XhtmlOptionsCalc.UseDublinCore.HelpText" dlg:value="&105.XhtmlOptionsCalc.UseDublinCore.Label" dlg:checked="true" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcUseDublinCore"/>
|
||||
<dlg:checkbox dlg:id="Notes" dlg:tab-index="12" dlg:left="10" dlg:top="106" dlg:width="179" dlg:height="12" dlg:help-text="&102.XhtmlOptionsCalc.Notes.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcNotes" dlg:value="&103.XhtmlOptionsCalc.Notes.Label" dlg:checked="true"/>
|
||||
<dlg:checkbox dlg:id="UseDublinCore" dlg:tab-index="13" dlg:left="10" dlg:top="120" dlg:width="179" dlg:height="12" dlg:help-text="&104.XhtmlOptionsCalc.UseDublinCore.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcUseDublinCore" dlg:value="&105.XhtmlOptionsCalc.UseDublinCore.Label" dlg:checked="true"/>
|
||||
<dlg:text dlg:id="SheetsLabel" dlg:tab-index="14" dlg:left="5" dlg:top="134" dlg:width="184" dlg:height="12" dlg:help-text="&106.XhtmlOptionsCalc.SheetsLabel.HelpText" dlg:value="&107.XhtmlOptionsCalc.SheetsLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="DisplayHiddenSheets" dlg:tab-index="15" dlg:left="10" dlg:top="148" dlg:width="175" dlg:height="12" dlg:help-text="&108.XhtmlOptionsCalc.DisplayHiddenSheets.HelpText" dlg:value="&109.XhtmlOptionsCalc.DisplayHiddenSheets.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcDisplayHiddenSheets"/>
|
||||
<dlg:checkbox dlg:id="DisplayHiddenRowsCols" dlg:tab-index="16" dlg:left="10" dlg:top="162" dlg:width="175" dlg:height="12" dlg:help-text="&110.XhtmlOptionsCalc.DisplayHiddenRowsCols.HelpText" dlg:value="&111.XhtmlOptionsCalc.DisplayHiddenRowsCols.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcDisplayHiddenRowsCols"/>
|
||||
<dlg:checkbox dlg:id="DisplayFilteredRowsCols" dlg:tab-index="17" dlg:left="10" dlg:top="176" dlg:width="175" dlg:height="12" dlg:help-text="&112.XhtmlOptionsCalc.DisplayFilteredRowsCols.HelpText" dlg:value="&113.XhtmlOptionsCalc.DisplayFilteredRowsCols.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcDisplayFilteredRowsCols"/>
|
||||
<dlg:checkbox dlg:id="ApplyPrintRanges" dlg:tab-index="18" dlg:left="10" dlg:top="190" dlg:width="175" dlg:height="12" dlg:help-text="&114.XhtmlOptionsCalc.ApplyPrintRanges.HelpText" dlg:value="&115.XhtmlOptionsCalc.ApplyPrintRanges.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcApplyPrintRanges"/>
|
||||
<dlg:checkbox dlg:id="UseTitleAsHeading" dlg:tab-index="19" dlg:left="10" dlg:top="204" dlg:width="175" dlg:height="12" dlg:help-text="&116.XhtmlOptionsCalc.UseTitleAsHeading.HelpText" dlg:value="&117.XhtmlOptionsCalc.UseTitleAsHeading.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcUseTitleAsHeading"/>
|
||||
<dlg:checkbox dlg:id="UseSheetNamesAsHeadings" dlg:tab-index="20" dlg:left="10" dlg:top="218" dlg:width="175" dlg:height="12" dlg:help-text="&118.XhtmlOptionsCalc.UseSheetNamesAsHeadings.HelpText" dlg:value="&119.XhtmlOptionsCalc.UseSheetNamesAsHeadings.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcUseSheetNamesAsHeadings"/>
|
||||
<dlg:checkbox dlg:id="DisplayHiddenSheets" dlg:tab-index="15" dlg:left="10" dlg:top="148" dlg:width="175" dlg:height="12" dlg:help-text="&108.XhtmlOptionsCalc.DisplayHiddenSheets.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcDisplayHiddenSheets" dlg:value="&109.XhtmlOptionsCalc.DisplayHiddenSheets.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="DisplayHiddenRowsCols" dlg:tab-index="16" dlg:left="10" dlg:top="162" dlg:width="175" dlg:height="12" dlg:help-text="&110.XhtmlOptionsCalc.DisplayHiddenRowsCols.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcDisplayHiddenRowsCols" dlg:value="&111.XhtmlOptionsCalc.DisplayHiddenRowsCols.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="DisplayFilteredRowsCols" dlg:tab-index="17" dlg:left="10" dlg:top="176" dlg:width="175" dlg:height="12" dlg:help-text="&112.XhtmlOptionsCalc.DisplayFilteredRowsCols.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcDisplayFilteredRowsCols" dlg:value="&113.XhtmlOptionsCalc.DisplayFilteredRowsCols.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="ApplyPrintRanges" dlg:tab-index="18" dlg:left="10" dlg:top="190" dlg:width="175" dlg:height="12" dlg:help-text="&114.XhtmlOptionsCalc.ApplyPrintRanges.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcApplyPrintRanges" dlg:value="&115.XhtmlOptionsCalc.ApplyPrintRanges.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="UseTitleAsHeading" dlg:tab-index="19" dlg:left="10" dlg:top="204" dlg:width="175" dlg:height="12" dlg:help-text="&116.XhtmlOptionsCalc.UseTitleAsHeading.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcUseTitleAsHeading" dlg:value="&117.XhtmlOptionsCalc.UseTitleAsHeading.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="UseSheetNamesAsHeadings" dlg:tab-index="20" dlg:left="10" dlg:top="218" dlg:width="175" dlg:height="12" dlg:help-text="&118.XhtmlOptionsCalc.UseSheetNamesAsHeadings.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcUseSheetNamesAsHeadings" dlg:value="&119.XhtmlOptionsCalc.UseSheetNamesAsHeadings.Label" dlg:checked="false"/>
|
||||
<dlg:text dlg:id="FilesLabel" dlg:tab-index="21" dlg:left="5" dlg:top="232" dlg:width="175" dlg:height="12" dlg:help-text="&120.XhtmlOptionsCalc.FilesLabel.HelpText" dlg:value="&121.XhtmlOptionsCalc.FilesLabel.Label"/>
|
||||
<dlg:checkbox dlg:id="CalcSplit" dlg:tab-index="22" dlg:left="10" dlg:top="246" dlg:width="175" dlg:height="12" dlg:help-text="&122.XhtmlOptionsCalc.CalcSplit.HelpText" dlg:value="&123.XhtmlOptionsCalc.CalcSplit.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcSplit"/>
|
||||
<dlg:checkbox dlg:id="SaveImagesInSubdir" dlg:tab-index="23" dlg:left="10" dlg:top="260" dlg:width="175" dlg:height="12" dlg:help-text="&124.XhtmlOptionsCalc.SaveImagesInSubdir.HelpText" dlg:value="&125.XhtmlOptionsCalc.SaveImagesInSubdir.Label" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcSaveImagesInSubdir"/>
|
||||
<dlg:checkbox dlg:id="CalcSplit" dlg:tab-index="22" dlg:left="10" dlg:top="246" dlg:width="175" dlg:height="12" dlg:help-text="&122.XhtmlOptionsCalc.CalcSplit.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcSplit" dlg:value="&123.XhtmlOptionsCalc.CalcSplit.Label" dlg:checked="false"/>
|
||||
<dlg:checkbox dlg:id="SaveImagesInSubdir" dlg:tab-index="23" dlg:left="10" dlg:top="260" dlg:width="175" dlg:height="12" dlg:help-text="&124.XhtmlOptionsCalc.SaveImagesInSubdir.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalcSaveImagesInSubdir" dlg:value="&125.XhtmlOptionsCalc.SaveImagesInSubdir.Label" dlg:checked="false"/>
|
||||
<dlg:button dlg:id="ExportButton" dlg:tab-index="24" dlg:left="5" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="&126.XhtmlOptionsCalc.ExportButton.HelpText" dlg:value="&127.XhtmlOptionsCalc.ExportButton.Label" dlg:button-type="ok"/>
|
||||
<dlg:button dlg:id="CancelButton" dlg:tab-index="25" dlg:left="70" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="&128.XhtmlOptionsCalc.CancelButton.HelpText" dlg:value="&129.XhtmlOptionsCalc.CancelButton.Label" dlg:button-type="cancel"/>
|
||||
<dlg:button dlg:id="HelpButton" dlg:tab-index="26" dlg:left="135" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-text="" dlg:value="?" dlg:button-type="help" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalc"/>
|
||||
<dlg:button dlg:id="HelpButton" dlg:tab-index="26" dlg:left="135" dlg:top="286" dlg:width="55" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsCalc" dlg:value="?" dlg:button-type="help"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -14,7 +14,6 @@
|
|||
Choose <emph>File - Export - XHTML 1.0 strict</emph><br/>
|
||||
or <emph>File - Export - XHTML 1.1</emph><br/>
|
||||
or <emph>File - Export - XHTML 1.1 + MathML 2.0</emph><br/>
|
||||
or <emph>File - Export - XHTML 1.1 + MathML 2.0 (xsl)</emph>
|
||||
or <emph>File - Export - HTML5</emph>
|
||||
</section>
|
||||
|
||||
|
@ -195,12 +194,14 @@
|
|||
store the images.</paragraph>
|
||||
</section>
|
||||
|
||||
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2xhtml.oxt:OptionsXsltPath" id="bm_options_xsltpath"/>
|
||||
<paragraph role="heading" level="3" xml-lang="en-US">XSLT path</paragraph>
|
||||
<paragraph role="paragraph" xml-lang="en-US"><ahelp hid="org.openoffice.da.writer2xhtml.oxt:OptionsXsltPath" visibility="hidden">Enter the path to pmathml.xsl and pmathmlcss.xsl</ahelp></paragraph>
|
||||
<paragraph role="paragraph" xml-lang="en-US">If you choose the export filter
|
||||
<emph>XHTML 1.1 + MathML 2.0 (xsl)</emph>, two XSLT style sheets provided by the World Wide Web Consortium are required.
|
||||
If they are not available in the same directory as the exported document, you can give the path here.</paragraph>
|
||||
|
||||
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2xhtml.oxt:OptionsUseMathjax" id="bm_options_usemathjax"/>
|
||||
<paragraph role="paragraph" xml-lang="en-US"><ahelp hid="org.openoffice.da.writer2xhtml.oxt:OptionsUseMathjax" visibility="hidden">Check this to load the JavaScript library MathJax for viewing mathematical content</ahelp></paragraph>
|
||||
<section id="usemathjax">
|
||||
<paragraph role="heading" level="3" xml-lang="en-US">Use MathJax</paragraph>
|
||||
<paragraph role="paragraph" xml-lang="en-US">MathJax is a JavaScript library for displaying mathematical content in web pages.
|
||||
Using MathJax ensures that your mathematical content will display correctly in most browsers.
|
||||
This includes formulas created with the extension TexMaths.
|
||||
This option is only available if you export to XHTML 1.1+MathML 2.0 or HTML5.</paragraph>
|
||||
</section>
|
||||
</body>
|
||||
</helpdocument>
|
|
@ -101,20 +101,6 @@
|
|||
<prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER</value></prop>
|
||||
</node>
|
||||
|
||||
<node oor:name="org.openoffice.da.writer2xhtml.mathml.xsl" oor:op="replace" oor:finalized="true" oor:mandatory="true">
|
||||
<prop oor:name="FileFormatVersion"><value>0</value></prop>
|
||||
<prop oor:name="Type"><value>writer_xhtml_mathml_xsl_File</value></prop>
|
||||
<prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop>
|
||||
<prop oor:name="UIComponent"><value>org.openoffice.da.comp.writer2xhtml.XhtmlOptionsDialogXsl</value></prop>
|
||||
<prop oor:name="UserData"><value>org.openoffice.da.comp.writer2xhtml.W2XExportFilter unused com.sun.star.comp.Writer.XMLOasisImporter com.sun.star.comp.Writer.XMLOasisExporter staroffice/sxw application/xml</value></prop>
|
||||
<prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop>
|
||||
<prop oor:name="TemplateName"/>
|
||||
<prop oor:name="UIName">
|
||||
<value>XHTML 1.1 + MathML 2.0 (xsl)</value>
|
||||
</prop>
|
||||
<prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER</value></prop>
|
||||
</node>
|
||||
|
||||
<node oor:name="org.openoffice.da.writer2xhtml.epub" oor:op="replace" oor:finalized="true" oor:mandatory="true">
|
||||
<prop oor:name="FileFormatVersion"><value>0</value></prop>
|
||||
<prop oor:name="Type"><value>writer_epub_File</value></prop>
|
||||
|
|
|
@ -51,18 +51,6 @@
|
|||
<prop oor:name="ClipboardFormat"/>
|
||||
</node>
|
||||
|
||||
<node oor:name="writer_xhtml_mathml_xsl_File" oor:op="replace" oor:finalized="true" oor:mandatory="true">
|
||||
<prop oor:name="DetectService"/>
|
||||
<prop oor:name="URLPattern"/>
|
||||
<prop oor:name="Extensions"><value>xml</value></prop>
|
||||
<prop oor:name="MediaType"/>
|
||||
<prop oor:name="Preferred"><value>false</value></prop>
|
||||
<prop oor:name="UIName">
|
||||
<value>XHTML 1.1 + MathML 2.0 (xsl)</value>
|
||||
</prop>
|
||||
<prop oor:name="ClipboardFormat"/>
|
||||
</node>
|
||||
|
||||
<node oor:name="writer_epub_File" oor:op="replace" oor:finalized="true" oor:mandatory="true">
|
||||
<prop oor:name="DetectService"/>
|
||||
<prop oor:name="URLPattern"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue