Search found 154 matches

by dcramer
Thu Feb 24, 2011 1:28 am
Forum: Common Problems
Topic: Display less detail in the Outline view
Replies: 6
Views: 2080

Re: Display less detail in the Outline view

Ok, I just figured out that if I switch the wrapper doc to my new toc view, then tile the windows, I can drag them around and put the toc view on the left and stack the others on the right and get what I want.

David
by dcramer
Wed Feb 23, 2011 5:51 pm
Forum: Common Problems
Topic: Display less detail in the Outline view
Replies: 6
Views: 2080

Re: Display less detail in the Outline view

Ok, thanks. I'll look into that one of these days. In the mean time, I've come up with a solution that is closer to what my users really want. I've added another css file to the list of alternative csses. Now in the main wrapper document that xincludes all chapters etc, I switch to that css (pasted ...
by dcramer
Tue Feb 22, 2011 7:36 pm
Forum: Common Problems
Topic: Display less detail in the Outline view
Replies: 6
Views: 2080

Display less detail in the Outline view

Hi there, Is there anyway to suppress certain elements in the outline view to reduce the amount of noise? For example, I might like to suppress all <indexterm> and <para> elements. It would also be nice to flatten out xincluded content so you see only the xincluded thing and not two additional level...
by dcramer
Mon Feb 21, 2011 8:11 pm
Forum: Feature Request
Topic: Auto save on window change
Replies: 1
Views: 1082

Auto save on window change

Hi there,
A user has requested that Oxygen be made to automatically save the file(s) when you switch from Oxygen to another application (apparently this is the way IntelliJ behaves). It would be fine if this were a configurable thing.

Thanks,
David
by dcramer
Wed Feb 16, 2011 9:45 pm
Forum: Common Problems
Topic: Styling xincluded inline elements with css
Replies: 4
Views: 1627

Re: Styling xincluded inline elements with css

Yes, that did it. I guess the "url()" part kept the xi from being recognized? Anyway, below is what I ended up with (I've modified DocBook to allow xincludes anywhere, so I want included content in paras, entrys and titles, to be inline and less obtrusive. I've kept the little icon before the oxy|re...
by dcramer
Tue Feb 15, 2011 11:09 pm
Forum: Common Problems
Topic: Styling xincluded inline elements with css
Replies: 4
Views: 1627

Re: Styling xincluded inline elements with css

Actually, I figured out I just need to leave off the namespace prefix: include { display:inline !important; } That prevents the include element itself from being rendered as a block element, which gets me part of the way there. Is there a way to suppress the link icon and the value of the href attri...
by dcramer
Mon Feb 14, 2011 10:08 pm
Forum: Common Problems
Topic: Reloading operations in classpath
Replies: 2
Views: 872

Re: Reloading operations in classpath

As far as I can tell, quitting and restarting Oxygen is the only way to pick up a changed class (quitting the docs doesn't do it). It does seem to notice a newly added class however.

Thanks,
David
by dcramer
Mon Feb 14, 2011 8:24 pm
Forum: Common Problems
Topic: Styling xincluded inline elements with css
Replies: 4
Views: 1627

Styling xincluded inline elements with css

Hi there, I was inspired by something in this thread, http://www.oxygenxml.com/forum/topic3240.html, to try to change the styling of xincluded content. I can see that oxy|reference also applies to xinclude, but nothing I try affects the include element itself. My goal is to make xincluded inlines le...
by dcramer
Mon Feb 14, 2011 8:00 pm
Forum: Feature Request
Topic: Insert indexterm action
Replies: 4
Views: 1334

Re: Insert indexterm action

Thanks Radu. That gives me something to work with. I'll have to handle some other situations (like when the word in question is in a <title> or <entry>). I'll let you know if I need more help with that.

David
by dcramer
Mon Feb 14, 2011 5:06 am
Forum: Feature Request
Topic: Insert indexterm action
Replies: 4
Views: 1334

Insert indexterm action

Hi there, I would like to create an "Insert indexterm" action that operates on the current selected text. Say the user has highlighted the word "whatever" in the editor. This action would insert <indexterm><primary>whatever</primary></indexterm> at the end of the nearest ancestor block element (e.g....
by dcramer
Sun Feb 13, 2011 2:14 am
Forum: Common Problems
Topic: Reloading operations in classpath
Replies: 2
Views: 872

Reloading operations in classpath

Hi there,
Say I've written and compiled an AuthorOperation, associated it with an Action in Oxygen and tested it out. Then I modify the operation and recompile. Is there a way to reload the class to test the change without restarting Oxygen?

Thanks,
David
by dcramer
Sat Feb 12, 2011 8:16 am
Forum: Common Problems
Topic: Modifying docbook.sch
Replies: 2
Views: 733

Re: Modifying docbook.sch

Ah, I see them now in docbookxi.rng. Commenting out from there works.

Thanks,
David
by dcramer
Sat Feb 12, 2011 2:30 am
Forum: Common Problems
Topic: Inserting an informalfigure in DocBook
Replies: 7
Views: 1882

Re: Inserting an informalfigure in DocBook

cbr, Since you're interested in the DocBook framework, I made a little movie of some other customizations that I did and think should be candidates for the docbook framework: http://www.thingbag.net/docbook/oxygen.ogv I made dropdown buttons out of Bold, Italic, and added one for Monospace, and made...
by dcramer
Sat Feb 12, 2011 1:47 am
Forum: Common Problems
Topic: Inserting an informalfigure in DocBook
Replies: 7
Views: 1882

Re: Inserting an informalfigure in DocBook

Doesn't look like I can attach a zip to this forum, so here's the code for the informalfigure one (just a tweak of the existing Oxygen one). The figure and inlinemediaobject ones are almost identical with only the element names changed. I've also written a similar one for inserting xincludes, so you...
by dcramer
Fri Feb 11, 2011 5:30 pm
Forum: Common Problems
Topic: Modifying docbook.sch
Replies: 2
Views: 733

Modifying docbook.sch

Hi there, I've created a framework based on the DocBook framework for my DocBook variant. In my version of the framework, I've commented out some rules from docbook.sch, but I still get messages for those rules. I've restarted Oxygen to be sure it's not a caching thing. As far as I can tell, Oxygen ...
by dcramer
Wed Feb 09, 2011 2:12 am
Forum: Common Problems
Topic: Associating a RelaxNG schema with a framework by version
Replies: 5
Views: 1592

Re: Associating a RelaxNG schema with a framework by version

Btw., I ended up implementing this as you suggested and it turned out to be pretty simple to do.

Thanks,
David
by dcramer
Mon Jan 31, 2011 11:27 pm
Forum: Common Problems
Topic: Author complains if processing instructions are displayed an
Replies: 13
Views: 2808

Re: Author complains if processing instructions are displayed an

That workaround does the trick.

Thanks,
David
by dcramer
Mon Jan 31, 2011 10:01 pm
Forum: Other Issues
Topic: API for customizing olinik insertion
Replies: 4
Views: 1275

Re: API for customizing olinik insertion

Hi Radu,
I picked method 2 and it works beautifully.

Thanks!
David
by dcramer
Mon Jan 31, 2011 4:02 am
Forum: Other Issues
Topic: API for customizing olinik insertion
Replies: 4
Views: 1275

Re: API for customizing olinik insertion

Ok, I've taken a look at ro.sync.ecss.extensions.docbook.olink.InsertOLinkOperation and it seems that there's not much going on in that class. Most of the logic must be in ro.sync.ecss.docbook.DocbookAccess, but that's in oxygen.jar. The modification I need to make for our situation is that if the t...
by dcramer
Mon Jan 31, 2011 3:51 am
Forum: Common Problems
Topic: Inserting an informalfigure in DocBook
Replies: 7
Views: 1882

Re: Inserting an informalfigure in DocBook

I ended up creating four classes based on InsertImageDataOperation: InsertFigureOperation, InsertInformalfigureOperation, InsertScreenshotOperatoin and InsertInlinemediaobjectOperation. I then created one action for each of these named figure, informalfigure, screenshot, and inlinemediaobject. I cre...
by dcramer
Sat Jan 29, 2011 8:22 pm
Forum: Feature Request
Topic: Automatically (re)open olink db in olink dialog
Replies: 4
Views: 1584

Re: Automatically (re)open olink db in olink dialog

Thanks ${pdu}/olink.db does the trick for us.

David
by dcramer
Fri Jan 28, 2011 6:49 am
Forum: Feature Request
Topic: Helpful error messages for Actions
Replies: 1
Views: 896

Helpful error messages for Actions

Hi there, Actions are very flexible and useful and I'm creating bunches of them. I do sometimes find myself wanting to be able to specify a helpful error message sometimes. E.g. Say I write the xpath such that a PI can only be the child of an entry (because this PI controls the rotation of text in t...
by dcramer
Thu Jan 27, 2011 3:20 pm
Forum: Common Problems
Topic: Author complains if processing instructions are displayed an
Replies: 13
Views: 2808

Re: Author complains if processing instructions are displayed an

Btw., in the case of my example, Author displays the PI just fine, but complains about it.

David
by dcramer
Thu Jan 27, 2011 3:19 pm
Forum: Common Problems
Topic: Author complains if processing instructions are displayed an
Replies: 13
Views: 2808

Re: Author complains if processing instructions are displayed an

Sure, here's an example:

Code: Select all


<table frame="all" pgwide="1" xml:id="bgbcechd">
<info>
<title>Detected problems summary</title></info>
<?bjfo keep-together?>
<tgroup cols="14">
...
I use that PI if I have a short table and I don't want ever to be split across pages.

David
by dcramer
Thu Jan 27, 2011 3:13 pm
Forum: Common Problems
Topic: content:attr(id) rule in docbook.css
Replies: 2
Views: 911

Re: content:attr(id) rule in docbook.css

Thanks Radu. I'll keep an eye on the rss feed.

David
by dcramer
Thu Jan 27, 2011 2:42 pm
Forum: Other Issues
Topic: Displaying processing instructions inline
Replies: 11
Views: 3210

Re: Displaying processing instructions inline

Yes, I was thinking of the PITarget (that part that's emitted by the name attr in the xsl:processing-instruction). Then I could display <?sbr?> inline and most others as block. But if you do that, won't people then want to match based on the text content of the PI too? I suppose so, but css is too a...
by dcramer
Wed Jan 26, 2011 10:24 pm
Forum: Common Problems
Topic: Author complains if processing instructions are displayed an
Replies: 13
Views: 2808

Author complains if processing instructions are displayed an

Hi there, Using DocBook 5.x, if I change the css so that processing instructions are displayed: oxy|processing-instruction { display:inline !important; } And I have a document in which processing instructions occur as children of <table> elements, then Oxygen complains: SystemID: /home/dcramer/workh...
by dcramer
Wed Jan 26, 2011 9:32 pm
Forum: Common Problems
Topic: content:attr(id) rule in docbook.css
Replies: 2
Views: 911

content:attr(id) rule in docbook.css

I notice that the rule for the <co/> element in docbook.css is to show the value of the id attribute before the element, yet I don't see the id displayed. However, for other elements, the same function "attr()" does work. I've tried changing the rule for co:before to "content:attr(xml|id);" but that...
by dcramer
Wed Jan 26, 2011 8:19 pm
Forum: Other Issues
Topic: Displaying processing instructions inline
Replies: 11
Views: 3210

Re: Displaying processing instructions inline

It would be cool if you could select the PI based on its name so you could style different pis in different ways:

Code: Select all

oxy|processing-instruction['sbr']{
display: inline !important;
}

oxy|processing-instruction{
display: block !important;
}
by dcramer
Tue Jan 25, 2011 10:58 pm
Forum: Common Problems
Topic: Associating a RelaxNG schema with a framework by version
Replies: 5
Views: 1592

Re: Associating a RelaxNG schema with a framework by version

I haven't gotten around to trying this yet, but it occurs to me that it would be useful if in the Preferences , Document Type , in the Rules tab, in addition to Namespace, Root local name, etc, there were an "XPath Expression" field which let you put in something like "/*[@version = '5.0-extension B...