<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Thank you for the answer.</p>
<p>First of all, Ben's message never reached me???. It was not in
the GMX spam folder, too. I have an mailfilter to <br>
Betreff ist: oXygen-user post acknowledgement -> Trash , and
another one <br>
An ist: <a class="moz-txt-link-abbreviated" href="mailto:oxygen-user@oxygenxml.com">oxygen-user@oxygenxml.com</a> -> Oxygen folder, <br>
</p>
<p>but nothing more. Strange.</p>
<p>Your proposal I could manage, but I want: <b>citation</b>
without role="text" and <b>citationT</b> with role=text". The
respective scripts are clear to me. What is not clear is how to
call them?<br>
</p>
Regards<br>
Bernhard<br>
<br>
<div class="moz-cite-prefix">Am 18.10.2017 um 09:46 schrieb oXygen
XML Editor Support - Alex Jitianu:<br>
</div>
<blockquote type="cite"
cite="mid:d6ff4fa2-03fe-04cc-344c-0391c33044ec@oxygenxml.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Hi,</p>
<p>1. Yes, as Ben mentioned, you can indeed set a shortcut from
the "Menu Shortcut Keys" page. You can use the filter to
identify the action. if you do it like this, though, the
shortcut wont be saved in the framework configuration so if you
intend to distribute the framework it is better to edit the
framework and set the shortcut on the action there [1].</p>
<p>2. Just edit the script behind the action (found inside <tt>docbook5-ext/actions/insertBiblioref.xsl)
</tt>and change the inserted fragment:</p>
<p><tt><xsl:stylesheet </tt><tt><br>
</tt><tt> xmlns:xsl=<a class="moz-txt-link-rfc2396E"
href="http://www.w3.org/1999/XSL/Transform"
moz-do-not-send="true">"http://www.w3.org/1999/XSL/Transform"</a></tt><tt><br>
</tt><tt> xmlns=<a class="moz-txt-link-rfc2396E"
href="http://docbook.org/ns/docbook" moz-do-not-send="true">"http://docbook.org/ns/docbook"</a></tt><tt><br>
</tt><tt> xmlns:jop="java:javax.swing.JOptionPane"</tt><tt><br>
</tt><tt>
xmlns:prov="ro.sync.exml.workspace.api.PluginWorkspaceProvider"</tt><tt><br>
</tt><tt>
xmlns:pw="ro.sync.exml.workspace.api.PluginWorkspace"</tt><tt><br>
</tt><tt> exclude-result-prefixes="#all"</tt><tt><br>
</tt><tt> version="2.0"></tt><tt><br>
</tt><tt> <xsl:template match="*"></tt></p>
<p><tt> <!-- Java reflection to get input from the user.
We intend to make it easier than this in a next version.
--><br>
</tt></p>
<tt> <xsl:variable name="target"
select="jop:showInputDialog(pw:getParentFrame(prov:getPluginWorkspace()),
'Input target:', '')"/> </tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> <citation <font color="#ff0000"><b>role="text"</b></font>><biblioref
linkend="{$target}"/></citation></tt><tt><br>
</tt><tt> </xsl:template></tt><tt><br>
</tt><tt></xsl:stylesheet></tt>
<p><br>
</p>
<p><br>
</p>
<p>[1] <a class="moz-txt-link-freetext"
href="https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/the-action-dialog.html"
moz-do-not-send="true">https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/the-action-dialog.html</a></p>
<pre class="moz-signature" cols="72">Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com" moz-do-not-send="true">http://www.oxygenxml.com</a> </pre>
<div class="moz-cite-prefix">On 10/17/2017 10:59 PM, Ben McGinnes
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20171017195943.n6v26s47elpnwfw3@adversary.org">
<pre wrap="">On Tue, Oct 17, 2017 at 03:40:02PM +0000, Bernhard Kleine wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Alex, thanks a lot.
Two further questions:
1. Is it possible to assign a keyboard shortcut to "Citation"?
</pre>
</blockquote>
<pre wrap="">You should be able to. You can add a shortcut for anything in the
"Menu Shortcut Keys" in Preferences (I'm assuming that's called
Options in Windows and Linux). I'm pretty sure that panel lists
anything in the menus and which is added to the toolbars because I
added external functions to load an open file in an external text
editor and I was able to add hotkeys for that.
</pre>
<blockquote type="cite">
<pre wrap=""> 2. I destinguish citation running with the text (role="text") and
others? how could that be included?
</pre>
</blockquote>
<pre wrap="">Not sure, I don't actually do that much with Docbook except when it's
generated by something else, so it either works out of the box or it
doesn't. Presumably Alex will be able to answer.
Regards,
Ben
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
spitzhalde9
D-79853 lenzkirch
<a class="moz-txt-link-abbreviated" href="mailto:bernhard.kleine@gmx.net">bernhard.kleine@gmx.net</a>
<a class="moz-txt-link-abbreviated" href="http://www.b-kleine.com">www.b-kleine.com</a>, <a class="moz-txt-link-abbreviated" href="http://www.urseetal.net">www.urseetal.net</a>
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09</pre>
</body>
</html>