Search found 151 matches

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

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

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: 2
Views: 676

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

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

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

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

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

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

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

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

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

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

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

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

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
by martindholmes
Wed Mar 21, 2018 9:33 pm
Forum: Common Problems
Topic: GUI oddity in Oxygen 20.0
Replies: 5
Views: 1762

Re: GUI oddity in Oxygen 20.0

It's the 64-bit version. I think I've discovered the cause, though: I only see this slowdown in a large project which is hosted on GitHub, when I have the Git plugin installed. I've now removed that plugin and I'm no longer seeing the issue. Is it possible that the Git plugin is doing a lot of proce...
by martindholmes
Wed Mar 21, 2018 1:00 am
Forum: Common Problems
Topic: GUI oddity in Oxygen 20.0
Replies: 5
Views: 1762

GUI oddity in Oxygen 20.0

Hi there, I upgraded to Oxygen 20.0 yesterday, and every since, I've been noticing painfully slow behaviour in the Project view. If I right-click on (for example) an image file, it can take up to 20 seconds for the right-click menu to appear. It's also slow to appear for HTML files; a bit quicker fo...
by martindholmes
Fri Aug 18, 2017 7:54 pm
Forum: Common Problems
Topic: Oxygen telling me a file doesn't exist when it does
Replies: 2
Views: 1087

Re: Oxygen telling me a file doesn't exist when it does

Figured it out! I need ${frameworkDir(TEI P5)} instead of ${framework()TEI P5)}.
by martindholmes
Fri Aug 18, 2017 7:46 pm
Forum: Common Problems
Topic: Oxygen telling me a file doesn't exist when it does
Replies: 2
Views: 1087

Oxygen telling me a file doesn't exist when it does

Hi there, I'm adapting an existing transformation from the TEI Plugin for use in a new context, and I've set it up using the ${framework(TEI P5)} variable to make it portable. When I try to run the transformation, I get this error: Buildfile: file:/home/mholmes/.com.oxygenxml/extensions/v19.0/framew...
by martindholmes
Fri Apr 07, 2017 3:48 pm
Forum: General XML Questions
Topic: How to set up validation with vnu.jar
Replies: 6
Views: 3741

Re: How to set up validation with vnu.jar

Any XHTML5 document using the meta/@property attribute will fail to validate -- here's a simple one: http://jenkins.hcmc.uvic.ca/job/Mariage/lastSuccessfulBuild/artifact/static/tinysite/articles.html and any HTML5 document that makes use of the <template> element will fail: <?xml version="1.0" encod...
by martindholmes
Wed Apr 05, 2017 9:31 pm
Forum: General XML Questions
Topic: How to set up validation with vnu.jar
Replies: 6
Views: 3741

Re: How to set up validation with vnu.jar

Sorry Radu, I hadn't seen your request for more info. The use-case is that the validator built into Oxygen will mark as invalid a bunch of things which are perfectly OK in XHTML5 (such as the <template> element). All my HTML5 documents are well-formed XHTML5, and VNU is a fast and reliable validator...
by martindholmes
Sat Mar 11, 2017 12:01 am
Forum: Common Problems
Topic: ${ask} for a folder rather than a file
Replies: 6
Views: 2013

Re: ${ask} for a folder rather than a file

Update on this: it works fine in Oxygen on Windows, but fails if I run ant from the command line, with:" C:\Users\mholmes\Documents\diagnostics\build.xml:107: org.mozilla.javascript.EcmaError: ReferenceError: "javax" is not defined. at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntim...
by martindholmes
Fri Mar 10, 2017 2:53 am
Forum: Common Problems
Topic: ${ask} for a folder rather than a file
Replies: 6
Views: 2013

Re: ${ask} for a folder rather than a file

For anyone else trying to do this, this works both inside and outside Oxygen (tested only on Linux so far, but I'll report back if it fails when tested on other platforms): <target name="getDirectory"> <script language="javascript"> <![CDATA[ var chooser = new javax.swing.JFileChooser(); chooser.set...
by martindholmes
Thu Mar 09, 2017 8:18 pm
Forum: Common Problems
Topic: ${ask} for a folder rather than a file
Replies: 6
Views: 2013

Re: ${ask} for a folder rather than a file

Thanks Radu, that's a good suggestion; I've used Java dialogs and JS in ant before.

Re Joey's post in the other thread: we're actually both working on the same project and hacking at the same problem, but we didn't realize we'd both posted on it. :-)

Cheers,
Martin
by martindholmes
Thu Mar 09, 2017 1:55 am
Forum: Common Problems
Topic: ${ask} for a folder rather than a file
Replies: 6
Views: 2013

Re: ${ask} for a folder rather than a file

I hadn't realized that Ron had already asked this: https://www.oxygenxml.com/forum/topic11034.html and the response (from 2014) was that an improvement request would be added. Did anything happen with that? I'd like to avoid the necessity for users to install a plugin just for this functionality if ...
by martindholmes
Wed Mar 08, 2017 8:23 pm
Forum: Common Problems
Topic: ${ask} for a folder rather than a file
Replies: 6
Views: 2013

${ask} for a folder rather than a file

Hi there, We have an ant scenario which requires as input a folder whose contents will be processed. We're using ${ask} to have the user specify that folder, with the param 'url', which enables the user to choose a local file; but we don't actually want a file, we want a folder. Of course if the use...
by martindholmes
Wed Feb 22, 2017 9:29 pm
Forum: Other Issues
Topic: Edit PHP as XHTML?
Replies: 1
Views: 1354

Edit PHP as XHTML?

Using the latest 18.1 editor: I often have to edit PHP documents which are in fact well-formed XHTML5, and I'd like to be able to do that in Oxygen. I've tried two approaches: defining a new document type for *.php, and specifying that it's XML, and modifying the current XHTML document profile so th...
by martindholmes
Mon Dec 19, 2016 11:53 pm
Forum: TEI
Topic: Error when running transformation in Oxy 18.1, but not outside Oxygen
Replies: 4
Views: 4270

Re: Error when running transformation in Oxy 18.1, but not outside Oxygen

It might be related to this: https://saxonica.plan.io/issues/3069 but I still can't see how it only happens when running from within Oxygen, not when running exactly the same command in bash directly. I've tried updating the Saxon in Oxygen to 9.7 using the add-on method, but it makes no difference;...
by martindholmes
Mon Dec 19, 2016 10:20 pm
Forum: TEI
Topic: Error when running transformation in Oxy 18.1, but not outside Oxygen
Replies: 4
Views: 4270

Error when running transformation in Oxy 18.1, but not outside Oxygen

Hi there, We have a very weird situation with the latest release of the TEI plugin (which we've had to roll back as a result). Doing a transformation which builds an ODD file to RelaxNG, I get an error when we run the process inside Oxygen, but if I copy/paste the entire command line from the Oxygen...
by martindholmes
Mon Dec 05, 2016 8:06 pm
Forum: General XML Questions
Topic: How to set up validation with vnu.jar
Replies: 6
Views: 3741

How to set up validation with vnu.jar

Hi there, The epub3 validation Oxygen uses for validating (X)HTML5 files isn't working for us, but vnu.jar works great, so we use it as part of all our build processes. But I'd like to be able to use it to validate HTML5 documents in Oxygen. I'm having some trouble getting this set up. I can create ...