Triangles indicating nodes

<oXygen/> general issues.
yoonsen
Posts: 4

Triangles indicating nodes

Wed Aug 24, 2016 9:54 am

In oXygen v18 it seems that the triangles indicating nodes come in two types (on a Win10 machine), one where two opposing triangles are aligned with the rest of the text, and another where one triangle resides a little bit under the baseline pointing in the direction of the text. Is it possible to control the appearance of triangles? Our case is that we have two alternate CSSs, one which uses -oxy-collapse-text, where the collapsed nodes appear nicer with the sub baseline triangles.

Best,
Lars G B Johnsen
Radu
Posts: 5507

Re: Triangles indicating nodes

Wed Aug 24, 2016 10:41 am

Hi Lars,

Could I get a screenshot for this problem?
We use small triangles in the Author editing mode to represent inline element tags.
What you could try in order to take a little bit of control over the triangles would be to first hide them completely:

Code: Select all

elementName{
    -oxy-display-tags:none;
}


and then add :before and :after selectors for the element which add custom images before and after the element like:

Code: Select all

elementName:before{
  content : uri(relative/path/to/startImage.png);
}


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yoonsen
Posts: 4

Re: Triangles indicating nodes

Wed Aug 24, 2016 11:38 am

Brilliant! Thanks for the CSS property, it works well also in v16 as in v18. I will provide screen shots of the two types of triangles.

Best,
Lars
yoonsen
Posts: 4

Re: Triangles indicating nodes

Wed Aug 24, 2016 12:09 pm

For your information, here is an image displaying the two types of triangles. The documents are almost the same, though, although one is connected to a TEI-schema.

https://drive.google.com/file/d/0B_pZaSxjIshJNTVKdm5zaXByZG8/view?usp=sharing

Thanks again for helpful reply!

Best,
Lars
Radu
Posts: 5507

Re: Triangles indicating nodes

Wed Aug 24, 2016 12:22 pm

Hi Lars,

The first triangle type (filled with color) looks like our fold triangle but I'm not sure if it is, maybe it is set by a custom CSS stylesheet that you are using, if you click it does it expand/collapse an element?
The second triangle type (not filled, only has a contour) is the triangle we use to symbolize element tags.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yoonsen
Posts: 4

Re: Triangles indicating nodes

Wed Aug 24, 2016 1:59 pm

Maybe there is some leftover display options from when I tried to fold inline elements, until I discovered only block type elements fold (guess this is still the case?). Anyway, the solution with two CSSs and the styling of triangles work nicely.

Lars
Radu
Posts: 5507

Re: Triangles indicating nodes

Wed Aug 24, 2016 2:05 pm

Hi Lars,

Right, this is probably it, indeed inline elements cannot be folded, we have an issue for allowing this and I added your vote for it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 1 guest