Search found 136 matches

by martindholmes
Sat Apr 06, 2019 2:41 am
Forum: SDK-API, Frameworks - Document Types
Topic: JSOperation API issues
Replies: 3
Views: 126

Re: JSOperation API issues

You're absolutely right. But with the JS I can write code and test it on any old machine, whereas I need a Java build environment to use Java. I always find it painful to get Eclipse set up for Java work and I tend to avoid it if I can. It would be neat if there were a docker container all pre-confi...
by martindholmes
Sat Apr 06, 2019 12:35 am
Forum: SDK-API, Frameworks - Document Types
Topic: Author mode CSS: any way to do this?
Replies: 5
Views: 163

Re: Author mode CSS: any way to do this?

Looking at the AuthorCaretListener, I'm going to have to instantiate it when the editor is activated, of course. Is there any way to do this through a Document Type configuration in JavaScript, as I can do with regular Author actions, or will this have to be done through a plugin? It looks as though...
by martindholmes
Fri Apr 05, 2019 10:54 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Author mode CSS: any way to do this?
Replies: 5
Views: 163

Re: Author mode CSS: any way to do this?

Ah! I hadn't noticed that. I guess I should be able to use it with a caret listener to highlight ranges when the caret hits an anchor.

Thanks indeed,
Martin
by martindholmes
Fri Apr 05, 2019 1:15 am
Forum: SDK-API, Frameworks - Document Types
Topic: JSOperation API issues
Replies: 3
Views: 126

Re: JSOperation API issues

Figured it out. I don't need to cast the findNodesByXPath result to an array.
by martindholmes
Fri Apr 05, 2019 1:05 am
Forum: SDK-API, Frameworks - Document Types
Topic: JSOperation API issues
Replies: 3
Views: 126

JSOperation API issues

HI there, I'm working on creating actions using the JSOperation functionality, and encountering some problems calling API functions. Here's some example code: function doOperation() { var selText = authorAccess.getEditorAccess().getSelectedText(); var documentController = authorAccess.getDocumentCon...
by martindholmes
Thu Apr 04, 2019 8:32 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Author mode CSS: any way to do this?
Replies: 5
Views: 163

Author mode CSS: any way to do this?

Hi all, This may be an impossible goal, but it's worth asking: I have documents which are tagged in stand-off mode, using anchor elements, like this: ...This discussion covers <anchor next="#v2j_ht4_1hb" ana="e:institution" />institutional repositories<anchor xml:id="v2j_ht4_1hb"/> and library suppo...
by martindholmes
Wed Apr 03, 2019 6:53 pm
Forum: SDK-API, Frameworks - Document Types
Topic: JavaScript doOperation() in Doc type action
Replies: 3
Views: 119

Re: JavaScript doOperation() in Doc type action

Works perfectly! Thank you so much.

Cheers,
Martin
by martindholmes
Wed Apr 03, 2019 2:07 am
Forum: SDK-API, Frameworks - Document Types
Topic: JavaScript doOperation() in Doc type action
Replies: 3
Views: 119

Re: JavaScript doOperation() in Doc type action

If I use surroundInFragment I get the same result: an extra space before the closing tag.
by martindholmes
Wed Apr 03, 2019 1:41 am
Forum: SDK-API, Frameworks - Document Types
Topic: JavaScript doOperation() in Doc type action
Replies: 3
Views: 119

JavaScript doOperation() in Doc type action

Hi there, I'm writing Author actions using the Document Type Author Action configuration, and finding a couple of oddities. First, an extra space is inserted following the closing tag of the element I insert; and secondly, the compound edit functionality seems to be failing (nothing happens when I u...
by martindholmes
Tue Apr 02, 2019 2:49 am
Forum: SDK-API, Frameworks - Document Types
Topic: Add-ons packager plugin?
Replies: 2
Views: 114

Re: Add-ons packager plugin?

The second page URL should be: https://www.oxygenxml.com/doc/versions/21.0/ug-editor/topics/packing-and-deploying-addons.html These pages: https://www.oxygenxml.com/doc/versions/21.0/ug-editor/topics/packing-and-deploying-plugins-as-addons.html https://www.oxygenxml.com/doc/versions/21.0/ug-editor/t...
by martindholmes
Tue Apr 02, 2019 2:48 am
Forum: SDK-API, Frameworks - Document Types
Topic: Add-ons packager plugin?
Replies: 2
Views: 114

Add-ons packager plugin?

These pages: https://www.oxygenxml.com/doc/versions/21.0/ug-editor/topics/packing-and-deploying-plugins-as-addons.html https://www.oxygenxml.com/doc/versions/21.0/ug-editor/topics/packing-and-deploying-plugins-as-addons.html refer to an Add-ons Packager Plugin, but it doesn't seem to be available wh...
by martindholmes
Tue Mar 26, 2019 6:13 pm
Forum: Common Problems
Topic: Has Saxon changed in the Oxygen lib dir, breaking plugins?
Replies: 3
Views: 145

Re: Has Saxon changed in the Oxygen lib dir, breaking plugins?

Hi Radu,

I'll let Council know and ask them again what they want to do about the plugin and support for older versions.

Cheers,
Martin
by martindholmes
Mon Mar 25, 2019 7:47 pm
Forum: Common Problems
Topic: Has Saxon changed in the Oxygen lib dir, breaking plugins?
Replies: 3
Views: 145

Has Saxon changed in the Oxygen lib dir, breaking plugins?

Hi there, I noticed today that the bleeding-edge (testing) version of the TEI plugin cannot do its normal TEI ODD to RNG transformation in Oxygen 21.0. I think this is because the transformation as configured is expecting to find saxon9ee.jar in the Oxygen lib directory, but it no longer seems to be...
by martindholmes
Fri Mar 15, 2019 2:04 am
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Re: Simplest approach to an Author-mode customization

Just for completeness I'd like to try one more time with JS -- could I get a hint as to the process of using the MenusAndToolbarsContributorCustomizer approach in JS?

Meanwhile, I'll download the SDK and start getting comfortable with the Java.

Cheers,
Martin
by martindholmes
Thu Mar 14, 2019 6:21 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Re: Simplest approach to an Author-mode customization

Thanks Radu! I'll have a go at figuring out the MenusAndToolbarsContributorCustomizer thing. I'm increasingly wondering if it would make sense to move this work to Java, but the JS approach is very convenient (no need for the SDK etc).

All the best,
Martin
by martindholmes
Thu Mar 14, 2019 3:16 am
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Re: Simplest approach to an Author-mode customization

I think I've figured out the problem with regard to some files getting the new menu item and some not; but I'm not sure how to solve it. If a document is opened in Author mode, then it gets the item. If it's opened in Text mode (which is the default for most of our projects), then it doesn't get the...
by martindholmes
Wed Mar 13, 2019 11:15 pm
Forum: Common Problems
Topic: Open file at cursor: image in Oxygen Image Preview
Replies: 1
Views: 128

Open file at cursor: image in Oxygen Image Preview

Hi there, When I right-click (in Editor mode) on the path to an image, I have the option to Open File at Cursor, and Open File at Cursor in System Application. In both cases, an image (JPG) is opened in the system application. Is it possible to configure Oxygen so that the first of these would open ...
by martindholmes
Wed Mar 13, 2019 11:05 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Re: Simplest approach to an Author-mode customization

One more thing I'm trying to figure out: At the moment, the operation (which inserts two elements and adds an attribute) is carried out in three steps; that means that if the user wants to undo it, they need to undo three times, which is a little confusing for them. Is there a way to wrap a sequence...
by martindholmes
Wed Mar 13, 2019 7:22 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Re: Simplest approach to an Author-mode customization

The symptom is that the menu item appears when I have no project open and just open a random XML document; but when I open a project which has a defined document type, along with code templates and so on, the menu item often fails to appear. I can get it to appear if I re-copy the plugin content int...
by martindholmes
Wed Mar 13, 2019 12:47 am
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Re: Simplest approach to an Author-mode customization

Hi there, This is working nicely so far, but I'm having a problem getting my plugin's right-click menu item to show up when the project itself has a document type defined, with its own Author Mode CSS. Is there something special I have to do in the Document Type configuration to make my plugin avail...
by martindholmes
Tue Feb 26, 2019 8:56 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Re: Simplest approach to an Author-mode customization

Thanks indeed for this really detailed and helpful answer!
by martindholmes
Sat Feb 23, 2019 3:49 am
Forum: SDK-API, Frameworks - Document Types
Topic: Simplest approach to an Author-mode customization
Replies: 13
Views: 686

Simplest approach to an Author-mode customization

Hi there, I'd like to ask what the most effective approach will be to providing the following simple sequence of actions in Author mode, through a plugin. I'd like to use JavaScript rather than Java, but if Java is required, I can live with it. This is the sequence of actions: 1. User selects text, ...
by martindholmes
Wed Nov 21, 2018 10:59 pm
Forum: Common Problems
Topic: How to turn off a built-in quickfix
Replies: 1
Views: 381

How to turn off a built-in quickfix

Hi there, One of the built-in Oxygen QuickFixes (which offers to delete text which is a child of an element that doesn't allow text children) conflicts with a custom QuickFix I've added to my schema (which offers to tag up the text automatically). I'd like to turn off the default quickfix, leaving o...
by martindholmes
Wed Nov 21, 2018 7:06 pm
Forum: Common Problems
Topic: What's wrong with my quickfix?
Replies: 3
Views: 529

Re: What's wrong with my quickfix?

Doh! Thanks indeed. I'd given up and done it a different way, which also works fine: <pattern xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" id="dvpp-noTextInDivOrLg-constra...
by martindholmes
Wed Nov 21, 2018 12:31 am
Forum: Common Problems
Topic: What's wrong with my quickfix?
Replies: 3
Views: 529

Re: What's wrong with my quickfix?

Slightly tweaked version that has the same result, except that I get a linebreak inside the <lg> , which suggests that the regex is failing to match anything: <pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="dvpp-noTextInDivOrLg-constraint-rule-15"> <sch:rule xmlns="http://www.tei-c.org/ns/...
by martindholmes
Tue Nov 20, 2018 9:30 pm
Forum: Common Problems
Topic: What's wrong with my quickfix?
Replies: 3
Views: 529

What's wrong with my quickfix?

Hi there, I'm trying to write a Schematron Quick Fix that will tag a block of untagged text as a verse stanza in TEI, using a block of XSLT. This is what I have, based on an example from this forum: <pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="dvpp-noTextInDivOrLg-constraint-rule-15"> <...
by martindholmes
Tue Oct 30, 2018 8:07 pm
Forum: Feature Request
Topic: Could Author mode find and use CSS in an attribute?
Replies: 3
Views: 695

Re: Could Author mode find and use CSS in an attribute?

Thanks Radu, that's exactly what I need! I must have missed it in the documentation. I don't know if it belongs in the TEI framework or not; generally @style is used for describing the appearance of an original text rather than styling something for rendering purposes, and it would only be a subset ...
by martindholmes
Tue Oct 23, 2018 9:28 pm
Forum: Feature Request
Topic: Could Author mode find and use CSS in an attribute?
Replies: 3
Views: 695

Could Author mode find and use CSS in an attribute?

Hi there, Would it be possible to have a configuration in Author Mode whereby, in addition to the supplied CSS stylesheet, the renderer looked for CSS rules in an attribute on XML elements? I'm thinking particularly of the TEI @style attribute, whose contents are CSS. It would be nice if this: <p st...
by martindholmes
Fri Mar 23, 2018 6:12 pm
Forum: Common Problems
Topic: GUI oddity in Oxygen 20.0
Replies: 5
Views: 1173

Re: GUI oddity in Oxygen 20.0

I just tested the new version, and unfortunately it seems to be worse; the popup menu never appears at all -- I waited for several minutes.

Cheers,
Martin