Re: [oXygen-user] How to manage citations?

2017-10-19 Thread Alex Jitianu

Hi Bernard,

I'm not sure I understand it correctly. You had to start Oxygen in Admin 
mode? I know I advised you to copy the framework inside 
{OxygenInstallDir}/frameworks but if Oxygen is installed inside a 
location with certain restrictions (like the Program Files directory on 
Windows) then you might not be able to edit the framework. Here is what 
you can do if you are in this situation:


1. Close Oxygen

2. Move the framework inside a directory that doesn't have any write 
restrictions


3. Start Oxygen and go to *Options->Preferences...* on page*Document 
Type Association / Locations* . On the *Additional frameworks 
directories* add an entry to the directory in which you moved the framework.


4. Click Apply

5. Go to page *Document Type Association* . You should be able to see 
the framework. Now you can edit it.


Please let me know if this is the actual situation or if I've missed 
anything.


Best regards,
Alex
--
Alex Jitianu
  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 10/19/2017 1:07 PM, Bernhard Kleine wrote:

Thanks Alex
Am 18.10.2017 um 12:59 schrieb Alex Jitianu:
Afterwards, go to the tab *Toolbar* and add the new action on the 
toolbar.
now I have two actions, but the Toolbar in Admin mode does offer the 
Action citationt to be added. What is that I miss?


Regards

--
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com,www.urseetal.net
-
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


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] How to manage citations?

2017-10-19 Thread Bernhard Kleine
Thanks Alex
Am 18.10.2017 um 12:59 schrieb Alex Jitianu:
> Afterwards, go to the tab *Toolbar* and add the new action on the toolbar.
now I have two actions, but the Toolbar in Admin mode does offer the
Action citationt to be added. What is that I miss?

Regards

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
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



signature.asc
Description: OpenPGP digital signature
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] How to manage citations?

2017-10-18 Thread Alex Jitianu

Hi,

I see. If that's the case then you should create 2 actions (*citation* 
and *citationT*) in the document type configuration. Go to 
*Options->Preferences...* on page *Document Type Association* . Edit 
*DocBook 5 - Extension* and go to the *Author *tab, on the *Actions* 
subtab. On the bottom of the table you should find the action named 
*citation*. Duplicate it to a another one named *citationT* and change 
the invoked script. Afterwards, go to the tab *Toolbar* and add the new 
action on the toolbar.


Best regards,
Alex
--
Alex Jitianu
  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 10/18/2017 11:27 AM, Bernhard Kleine wrote:


Thank you for the answer.

First of all, Ben's message never reached me???. It was not in the GMX 
spam folder, too. I have an mailfilter to

Betreff ist: oXygen-user post acknowledgement -> Trash , and another one
An ist: oxygen-user@oxygenxml.com -> Oxygen folder,

but nothing more. Strange.

Your proposal I could manage, but I want: *citation* without 
role="text" and *citationT* with role=text". The respective scripts 
are clear to me. What is not clear is how to call them?


Regards
Bernhard

Am 18.10.2017 um 09:46 schrieb oXygen XML Editor Support - Alex Jitianu:


Hi,

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].


2. Just edit the script behind the action (found inside 
docbook5-ext/actions/insertBiblioref.xsl) and change the inserted 
fragment:


http://www.w3.org/1999/XSL/Transform;
    xmlns="http://docbook.org/ns/docbook;
    xmlns:jop="java:javax.swing.JOptionPane"
xmlns:prov="ro.sync.exml.workspace.api.PluginWorkspaceProvider"
xmlns:pw="ro.sync.exml.workspace.api.PluginWorkspace"
    exclude-result-prefixes="#all"
    version="2.0">
    

        


    select="jop:showInputDialog(pw:getParentFrame(prov:getPluginWorkspace()), 
'Input target:', '')"/>


    linkend="{$target}"/>

    




[1] 
https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/the-action-dialog.html


Best regards,
Alex
--
Alex Jitianu
  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com  
On 10/17/2017 10:59 PM, Ben McGinnes wrote:

On Tue, Oct 17, 2017 at 03:40:02PM +, Bernhard Kleine wrote:

Alex, thanks a lot.

Two further questions:

  1. Is it possible to assign a keyboard shortcut to "Citation"?

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.


  2. I destinguish citation running with the text (role="text") and
 others? how could that be included?

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


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


--
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com,www.urseetal.net
-
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


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] How to manage citations?

2017-10-18 Thread oXygen XML Editor Support - Alex Jitianu

Hi,

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].


2. Just edit the script behind the action (found inside 
docbook5-ext/actions/insertBiblioref.xsl) and change the inserted fragment:


http://www.w3.org/1999/XSL/Transform;
    xmlns="http://docbook.org/ns/docbook;
    xmlns:jop="java:javax.swing.JOptionPane"
xmlns:prov="ro.sync.exml.workspace.api.PluginWorkspaceProvider"
    xmlns:pw="ro.sync.exml.workspace.api.PluginWorkspace"
    exclude-result-prefixes="#all"
    version="2.0">
    

        


    select="jop:showInputDialog(pw:getParentFrame(prov:getPluginWorkspace()), 
'Input target:', '')"/>


    
    




[1] 
https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/the-action-dialog.html


Best regards,
Alex
--
Alex Jitianu
  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 10/17/2017 10:59 PM, Ben McGinnes wrote:

On Tue, Oct 17, 2017 at 03:40:02PM +, Bernhard Kleine wrote:

Alex, thanks a lot.

Two further questions:

  1. Is it possible to assign a keyboard shortcut to "Citation"?

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.


  2. I destinguish citation running with the text (role="text") and
 others? how could that be included?

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


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] How to manage citations?

2017-10-17 Thread Ben McGinnes
On Tue, Oct 17, 2017 at 03:40:02PM +, Bernhard Kleine wrote:
> Alex, thanks a lot.
> 
> Two further questions:
> 
>  1. Is it possible to assign a keyboard shortcut to "Citation"?

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.

>  2. I destinguish citation running with the text (role="text") and
> others? how could that be included?

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


signature.asc
Description: PGP signature
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] How to manage citations?

2017-10-17 Thread Bernhard Kleine
Alex, thanks a lot.

Two further questions:

 1. Is it possible to assign a keyboard shortcut to "Citation"?
 2. I destinguish citation running with the text (role="text") and
others? how could that be included?

Kind regards

Bernhard


Am 17.10.2017 um 14:30 schrieb Alex Jitianu:
>
> Hello,
>
> In Oxygen you can create different types of actions [1] that can alter
> the document in different ways (inserting fragments, changing
> attributes etc). For this particular situation I would recommend an
> XSLT action that will use a bit of Java reflection to get input from
> the user (the *Gei04* ID).
>
> Unzip the attached framework (it is an extension of the built-in
> Docbook5 framework) into {OxygenInstallDir}/frameworks (please make
> sure you don't create any additional directory structure). Restart
> Oxygen and open a Docbook5 file. On the toolbar, there is a *Citation*
> action.
>
> The script behind the action is found inside
> docbook5-ext/actions/insertBiblioref.xsl :
>
>      xmlns:xsl="http://www.w3.org/1999/XSL/Transform;
>     xmlns="http://docbook.org/ns/docbook;
>     xmlns:jop="java:javax.swing.JOptionPane"
>     xmlns:prov="ro.sync.exml.workspace.api.PluginWorkspaceProvider"
>     xmlns:pw="ro.sync.exml.workspace.api.PluginWorkspace"
>     exclude-result-prefixes="#all"
>     version="2.0">
>     
>
>         
>
>      select="jop:showInputDialog(pw:getParentFrame(prov:getPluginWorkspace()),
> 'Input target:', '')"/>
>    
>     
>     
> 
>
>
> [1]
> https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/the-action-dialog.html
>
> Best regards,
> Alex
> -- 
> Alex Jitianu
>   XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com 
> On 10/17/2017 12:06 PM, Bernhard Kleine wrote:
>>
>> You are right. But it is still a lot of typing. Has there been any
>> effort to develop a macro language for Oxygen?
>>
>> Nice day, Bernhard
>>
>>
>> Am 17.10.2017 um 10:52 schrieb Franz-Josef Knelangen:
>>>
>>> No macro needed. In Author mode, you type:
>>>
>>>  
>>>
>>> Enter
>>>
>>> citation*
>>>
>>> Enter
>>>
>>> biblioref*
>>>
>>> Alt+Enter
>>>
>>> linkend*
>>>
>>> Gei04
>>>
>>>  
>>>
>>> * You only have to type 1 or 2 characters and Enter afterwards. Easy.
>>>
>>>  
>>>
>>> Cheers,
>>>
>>> Franz-Josef
>>>
>>>  
>>>
>>>
>>> 
>>>
>>> *AKG Software Consulting GmbH
>>> Franz-Josef Knelangen*
>>>
>>>
>>> Uhlandstraße 12
>>> 79423 Heitersheim
>>> Germany
>>>
>>> Tel.: +49 (0)7634 5612-611
>>> Fax: +49 (0)7634 5612-300
>>> E-Mail: _fjk@akgsoftware.de_
>>> Internet: www.akgsoftware.de 
>>>
>>> Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno
>>> Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
>>> Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)
>>>
>>> *Von:*oXygen-user [mailto:oxygen-user-boun...@oxygenxml.com] *Im
>>> Auftrag von *Bernhard Kleine
>>> *Gesendet:* Dienstag, 17. Oktober 2017 10:18
>>> *An:* oxygen-user@oxygenxml.com
>>> *Betreff:* [oXygen-user] How to manage citations?
>>>
>>>  
>>>
>>> When entering a citation key e.g. Gei04 in author mode, I have to type
>>>
>>>  1. Gei04
>>>  2. Shift-left (to mark the entry)
>>>  3. Ctrl-E biblioref
>>>  4. Ctrl-X
>>>  5. Alt-Enter
>>>  6. l (letter L for linkend)
>>>  7. Enter
>>>  8. Ctrl-V
>>>  9. Shift-left
>>> 10. Ctrl-E citation
>>>
>>> Is there a other way which would not involve so many different steps
>>> like a macro?
>>>
>>> Regards
>>>
>>> Bernhard
>>>
>>> -- 
>>> spitzhalde9
>>> D-79853 lenzkirch
>>> bernhard.kle...@gmx.net 
>>> www.b-kleine.com , www.urseetal.net 
>>> 
>>> -
>>> 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
>>
>> -- 
>> spitzhalde9
>> D-79853 lenzkirch
>> bernhard.kle...@gmx.net
>> www.b-kleine.com, www.urseetal.net
>> -
>> 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
>>
>>
>> ___
>> oXygen-user mailing list
>> oXygen-user@oxygenxml.com
>> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>
>
> ___
> oXygen-user mailing list
> oXygen-user@oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
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



signature.asc
Description: OpenPGP digital signature
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] How to manage citations?

2017-10-17 Thread Bernhard Kleine
You are right. But it is still a lot of typing. Has there been any
effort to develop a macro language for Oxygen?

Nice day, Bernhard


Am 17.10.2017 um 10:52 schrieb Franz-Josef Knelangen:
>
> No macro needed. In Author mode, you type:
>
>  
>
> Enter
>
> citation*
>
> Enter
>
> biblioref*
>
> Alt+Enter
>
> linkend*
>
> Gei04
>
>  
>
> * You only have to type 1 or 2 characters and Enter afterwards. Easy.
>
>  
>
> Cheers,
>
> Franz-Josef
>
>  
>
>
> 
>
> *AKG Software Consulting GmbH
> Franz-Josef Knelangen*
>
>
> Uhlandstraße 12
> 79423 Heitersheim
> Germany
>
> Tel.: +49 (0)7634 5612-611
> Fax: +49 (0)7634 5612-300
> E-Mail: _fjk@akgsoftware.de_
> Internet: www.akgsoftware.de 
>
> Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno
> Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
> Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)
>
> *Von:*oXygen-user [mailto:oxygen-user-boun...@oxygenxml.com] *Im
> Auftrag von *Bernhard Kleine
> *Gesendet:* Dienstag, 17. Oktober 2017 10:18
> *An:* oxygen-user@oxygenxml.com
> *Betreff:* [oXygen-user] How to manage citations?
>
>  
>
> When entering a citation key e.g. Gei04 in author mode, I have to type
>
>  1. Gei04
>  2. Shift-left (to mark the entry)
>  3. Ctrl-E biblioref
>  4. Ctrl-X
>  5. Alt-Enter
>  6. l (letter L for linkend)
>  7. Enter
>  8. Ctrl-V
>  9. Shift-left
> 10. Ctrl-E citation
>
> Is there a other way which would not involve so many different steps
> like a macro?
>
> Regards
>
> Bernhard
>
> -- 
> spitzhalde9
> D-79853 lenzkirch
> bernhard.kle...@gmx.net 
> www.b-kleine.com , www.urseetal.net 
> 
> -
> 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

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
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



signature.asc
Description: OpenPGP digital signature
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] How to manage citations?

2017-10-17 Thread Franz-Josef Knelangen
No macro needed. In Author mode, you type:

Enter
citation*
Enter
biblioref*
Alt+Enter
linkend*
Gei04

* You only have to type 1 or 2 characters and Enter afterwards. Easy.

Cheers,
Franz-Josef





AKG Software Consulting GmbH
Franz-Josef Knelangen


Uhlandstraße 12
79423 Heitersheim
Germany

Tel.: +49 (0)7634 5612-611
Fax: +49 (0)7634 5612-300
E-Mail: f...@akgsoftware.de
Internet: www.akgsoftware.de

Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno Brüggemann, 
Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)

Von: oXygen-user [mailto:oxygen-user-boun...@oxygenxml.com] Im Auftrag von 
Bernhard Kleine
Gesendet: Dienstag, 17. Oktober 2017 10:18
An: oxygen-user@oxygenxml.com
Betreff: [oXygen-user] How to manage citations?


When entering a citation key e.g. Gei04 in author mode, I have to type

 1.  Gei04
 2.  Shift-left (to mark the entry)
 3.  Ctrl-E biblioref
 4.  Ctrl-X
 5.  Alt-Enter
 6.  l (letter L for linkend)
 7.  Enter
 8.  Ctrl-V
 9.  Shift-left
 10. Ctrl-E citation

Is there a other way which would not involve so many different steps like a 
macro?

Regards

Bernhard

--

spitzhalde9

D-79853 lenzkirch

bernhard.kle...@gmx.net

www.b-kleine.com, 
www.urseetal.net

-

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
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user