Search found 58 matches

by xsaero00
Fri Jul 01, 2011 11:27 pm
Forum: Other Issues
Topic: Custom ID auto generation pattern.
Replies: 10
Views: 3849

Re: Custom ID auto generation pattern.

I found it. Options > Reset Global Options.
by xsaero00
Fri Jul 01, 2011 10:34 pm
Forum: Other Issues
Topic: Custom ID auto generation pattern.
Replies: 10
Views: 3849

Re: Custom ID auto generation pattern.

How do I reset OptionsStorage? I don't need a programmatic way. Just tell me where can I find the settings file so I can remove it.
by xsaero00
Fri Jul 01, 2011 7:58 pm
Forum: Other Issues
Topic: Working with xinclude in Author
Replies: 5
Views: 2251

Re: Working with xinclude in Author

We also had requests for automatically inserting xi:includes when dropping external files in the Author page for Docbook (right now an <ulink/> is inserted). Would you also consider this a good feature to have? Or do you think that the current behavior is better? Automatic xi:includes on drop sound...
by xsaero00
Fri Jul 01, 2011 7:45 pm
Forum: Other Issues
Topic: Custom ID auto generation pattern.
Replies: 10
Views: 3849

Re: Custom ID auto generation pattern.

I prefer to leave provided code along for easier upgrading later and to keep jar down in size. All I see protected String generateUniqueIDFor(String idGenerationPattern, AuthorElement element) inside DefaultUniqueAttributesRecognizer but it uses GenerateIDElementsInfo class that is also used by Docb...
by xsaero00
Fri Jul 01, 2011 1:34 am
Forum: Other Issues
Topic: Custom ID auto generation pattern.
Replies: 10
Views: 3849

Custom ID auto generation pattern.

I want to change ID auto generation features of DocBook. I want to support m a format like ${ancestorID}.${localName}${position} ${ancestorID} - is the id of closest ancestor that have auto id generation enabled ${position} - is the position of the element within context of closest ancestor I would ...
by xsaero00
Thu Jun 30, 2011 8:39 pm
Forum: Other Issues
Topic: Working with xinclude in Author
Replies: 5
Views: 2251

Working with xinclude in Author

Oxygen has good support for xincludes, but I could not find any way to add xincludes using author view. I can create my own operation in Java but it seems like a general functionality that can be used with any framework. I imagine an operation like this would work as follows. It opens a dialog simil...
by xsaero00
Thu Jun 30, 2011 6:19 pm
Forum: Other Issues
Topic: Copy paste strips xml:id
Replies: 5
Views: 2761

Re: Copy paste strips xml:id

Thank you very much. That was easier than I expected. :oops:
by xsaero00
Wed Jun 29, 2011 9:06 pm
Forum: Other Issues
Topic: Copy paste strips xml:id
Replies: 5
Views: 2761

Re: Copy paste strips xml:id

Thanks. Yes I saw that code. What I don't know is how do I change the condition fragmentInformation.getFragmentOriginalLocation().equals(authorAccess.getEditorAccess().getEditorLocation().toString()) in such a way so it returns true when copying from the same file and false when copying from another...
by xsaero00
Tue Jun 28, 2011 9:32 pm
Forum: Other Issues
Topic: Copy paste strips xml:id
Replies: 5
Views: 2761

Re: Copy paste strips xml:id

I found the code responsible for this. I want to override it but still keep some of the behaviour. Basically, if I am copying from the same file I want ids to be stripped but if I copy from other file then I want to keep IDs. I got something working but its not quite what I want. @Override public Cl...
by xsaero00
Tue Jun 28, 2011 7:51 pm
Forum: Other Issues
Topic: Copy paste strips xml:id
Replies: 5
Views: 2761

Copy paste strips xml:id

When I copy/paste from one file to other in Author view it strips the xml:id. How do I modify that behavior?
by xsaero00
Fri Jun 24, 2011 11:08 pm
Forum: Other Issues
Topic: Debug Oxygen Java Plugin
Replies: 17
Views: 9222

Re: Debug Oxygen Java Plugin

Thank you. That did the trick.
by xsaero00
Fri Jun 24, 2011 7:34 pm
Forum: Other Issues
Topic: Debug Oxygen Java Plugin
Replies: 17
Views: 9222

Re: Debug Oxygen Java Plugin

Sorry to resurrect the old thread but I am having bit of problems with setting debugging. I don't have Editor, I just have Author. So I used author.jar instead of oxygen.jar. But when I started it, it asked me for a license. The author license I have did not work so I had to get a trial license for ...
by xsaero00
Fri Jun 24, 2011 7:06 pm
Forum: Other Issues
Topic: Set table size to image size.
Replies: 2
Views: 1457

Re: Set table size to image size.

Thank you. It works now. I am using SimpleImageInfo class I found on the web http://jaimonmathew.wordpress.com/2011/ ... imageinfo/. It supposed to be faster than ImageIO. To get the file object of the image I am using AuthorUtilAccess.locateFile()
by xsaero00
Thu Jun 23, 2011 10:35 pm
Forum: Other Issues
Topic: Set table size to image size.
Replies: 2
Views: 1457

Set table size to image size.

I am currently modifying DocBook InsertTable operation. One of the common tables to insert is a table that has mediaobject with imagedata as the body instead of the tgroup. I want to set the table width to the width of the image. I am having trouble getting the image width in Java. Currently I have:...
by xsaero00
Tue Jun 21, 2011 7:45 pm
Forum: Other Issues
Topic: Autoconvert text to element
Replies: 2
Views: 1279

Re: Autoconvert text to element

Thank you. This seems very promising. Will try to implement it and let you know how it went.
by xsaero00
Tue Jun 21, 2011 7:40 pm
Forum: Other Issues
Topic: Processing instruction style does not show up in DocBook cus
Replies: 5
Views: 2223

Re: Processing instruction style does not show up in DocBook cus

Thanks. Hopefully this will not be a "show stopper".
by xsaero00
Mon Jun 20, 2011 7:15 pm
Forum: Other Issues
Topic: Processing instruction style does not show up in DocBook cus
Replies: 5
Views: 2223

Re: Processing instruction style does not show up in DocBook cus

So the relative xpath does not work for processing instructions? It returns document node for current node. I have something working by doing this: oxy|processing-instruction { display: inline !important; visibility: visible; } oxy|processing-instruction:after { content: "\A"; } Another th...
by xsaero00
Fri Jun 17, 2011 11:34 pm
Forum: Other Issues
Topic: Autoconvert text to element
Replies: 2
Views: 1279

Autoconvert text to element

I have this idea that I would like to implement using oXygen customizations. It is for a custom DocBook framework. The user basically types something like "[1]" or "[1,3]", which represents links to reference section, and the editor will automatically detect such text and turn it...
by xsaero00
Fri Jun 17, 2011 9:19 pm
Forum: Other Issues
Topic: Processing instruction style does not show up in DocBook cus
Replies: 5
Views: 2223

Processing instruction style does not show up in DocBook cus

I am trying to apply certain style to some professing instructions in my DocBook customization. It does not work. I copied the style directly from Developer's guide. @namespace oxy url('http://www.oxygenxml.com/extensions/author'); oxy|processing-instruction { display:block; color:purple; background...
by xsaero00
Thu Aug 27, 2009 6:07 pm
Forum: Other Issues
Topic: Format for auto ids.
Replies: 5
Views: 2271

Re: Format for auto ids.

Thanks. It seems like I'll have to override the docbook ExtensionBundle. Any idea on how to do something like this: Original Document <book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"> <chapter xml:id="chapter.1&qu...
by xsaero00
Thu Aug 27, 2009 5:50 pm
Forum: Other Issues
Topic: Display xreflabel attribute contents in link text
Replies: 9
Views: 3640

Re: Display xreflabel attribute contents in link text

Thanks I think that will work. StyleFilter seems to be more suited for my purpose.
by xsaero00
Wed Aug 26, 2009 6:30 pm
Forum: Other Issues
Topic: Display xreflabel attribute contents in link text
Replies: 9
Views: 3640

Re: Display xreflabel attribute contents in link text

I was reading the development docs and it seems like I should be able to do this by implementing AuthorReferenceResolver interface. It seems suited exactly for that purpose.
by xsaero00
Wed Aug 26, 2009 6:24 pm
Forum: Other Issues
Topic: Format for auto ids.
Replies: 5
Views: 2271

Re: Format for auto ids.

In the mean time can I just override the behavior of the classes that do the id generation?
by xsaero00
Tue Aug 25, 2009 9:22 pm
Forum: Other Issues
Topic: Format for auto ids.
Replies: 5
Views: 2271

Format for auto ids.

I am looking at the auto generation of xml:id attribute in DocBook 5. The only documented variables for "ID Pattern" are ${localName} and ${uuid}. Is these more supported variables? I am shooting for something like: ${localName}.${elemPosition} so my xml will be like <?xml version="1....
by xsaero00
Tue Aug 04, 2009 5:46 pm
Forum: Other Issues
Topic: Display xreflabel attribute contents in link text
Replies: 9
Views: 3640

Re: Display xreflabel attribute contents in link text

I guess we'll just wait for that feature. It is not a show stopper, but it is highly desired. Any idea on when you will work on it.
by xsaero00
Mon Aug 03, 2009 5:49 pm
Forum: Other Issues
Topic: Display xreflabel attribute contents in link text
Replies: 9
Views: 3640

Re: Display xreflabel attribute contents in link text

OK. Thanks for reply.

Is there some sort of substring function in CSS. Using function like those i could format my xref links to look like xreflabel.
by xsaero00
Sat Aug 01, 2009 1:18 am
Forum: Other Issues
Topic: Display xreflabel attribute contents in link text
Replies: 9
Views: 3640

Display xreflabel attribute contents in link text

According to DocBook docs, (http://www.docbook.org/tdg5/en/html/xref.html) when a link (xref, link, ... ) is pointing to an element that has xreflabel attribute defined, the link text should match the content of the xreflabel attribute. I cannot seem to find a way to do that in Author view. The CSS ...
by xsaero00
Sat Aug 01, 2009 1:08 am
Forum: Common Problems
Topic: xml:base="." causes "Access is denied" error
Replies: 1
Views: 1201

xml:base="." causes "Access is denied" error

In xml like this <?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" type="xml"?> <article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" ve...