Search found 140 matches

by martindholmes
Tue Sep 17, 2019 7:20 pm
Forum: Common Problems
Topic: NVDL validation
Replies: 1
Views: 105

NVDL validation

Hi there, Using recent releases of the Jing jar file, we're finding that NVDL validation fails with error messages related to parsing of Schematron and namespaces. However, when we do the same validation in Oxygen, we don't see those errors, so it seems likely that Oxygen is passing some flag to Jin...
by martindholmes
Fri May 24, 2019 6:15 pm
Forum: Common Problems
Topic: Code template no longer working after update to 21.1
Replies: 3
Views: 452

Re: Code template no longer working after update to 21.1

Hi Alex,

If it's as simple as dropping a new version of a jar file in the lib folder, then please do send it along (mholmes@uvic.ca). Otherwise, I'm happy to wait for the next release.

All the best,
Martin
by martindholmes
Thu May 23, 2019 7:59 pm
Forum: Common Problems
Topic: Code template no longer working after update to 21.1
Replies: 3
Views: 452

Code template no longer working after update to 21.1

Hi there, I have a bunch of code templates that look like this: <title level="a">${xpath_eval(replace('${selection}', '[“”]+', ''))}</title> which were working OK, but having just upgraded to 21.1, they don't seem to be working; nothing happens when I hit the keystroke sequence defined for the templ...
by martindholmes
Mon May 06, 2019 1:47 am
Forum: Common Problems
Topic: Has Saxon changed in the Oxygen lib dir, breaking plugins?
Replies: 4
Views: 579

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

Hi Radu, Our problem is that the schemas and stylesheets are all interdependent, so both validation and transformation scenarios would have to be updated. The whole thing is a bit difficult to disentangle. I think we're going to stop supporting versions before 18.1, and use the wildcard approach. Th...
by martindholmes
Sat Apr 06, 2019 2:41 am
Forum: SDK-API, Frameworks - Document Types
Topic: JSOperation API issues
Replies: 3
Views: 573

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: 734

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: 734

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: 573

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: 573

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: 734

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: 572

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: 572

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: 572

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: 508

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: 508

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: 4
Views: 579

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: 4
Views: 579

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: 1853

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: 1853

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: 1853

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: 326

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: 1853

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: 1853

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: 1853

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: 1853

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: 1853

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: 577

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: 884

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: 884

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