Search found 403 matches

by Dan
Wed Feb 21, 2018 5:33 pm
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 2512

Re: Add page break to topicref at map level

Maybe you can use conrefs? Create a shell topic that has the outputclass set on it that includes the content of the real topic? But maybe dita-users is a better place to find out an answer.
by Dan
Wed Feb 21, 2018 10:05 am
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 2512

Re: Add page break to topicref at map level

You should move the outputclass attribute to the "topic" element, and change your XSL match to <xsl:template match="*[contains(@class, ' topic/topic ')]">. Avoid matching topicrefs, these go into the TOC section of the publication. Another way is to use the technique discussed here: http://blog.oxyg...
by Dan
Tue Mar 07, 2017 10:07 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add javascript to a WYSIWYG pdf transform with Prince?
Replies: 5
Views: 1147

Re: Add javascript to a WYSIWYG pdf transform with Prince?

Please add a white-space property to the "zebra" div, like:

Code: Select all


div[class ~= "zebra"] {
...
white-space:pre-wrap;
...
}
You can read more about this property here:
https://developer.mozilla.org/en/docs/W ... hite-space

Regards,
Dan
by Dan
Fri Feb 17, 2017 10:25 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add javascript to a WYSIWYG pdf transform with Prince?
Replies: 5
Views: 1147

Re: Add javascript to a WYSIWYG pdf transform with Prince?

Ok, there are two ways of doing that zebra type of codeblock styling: 1. Modify the index-pass2.js file from the "com.oxygenxml.pdf.css" plugin, adding your JavaScript code. The Prince XML processor is invoked from the build.xml file, in the target with name="prince". You can modfify this target if ...
by Dan
Thu Feb 16, 2017 3:19 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to get pdf bookmarks in Prince pdf-WYSIWYG transformation?
Replies: 2
Views: 708

Re: How to get pdf bookmarks in Prince pdf-WYSIWYG transformation?

Hello Justine, You can use the following CSS snippet (it will be included in oXygen 19): @media print { *[class~="topic/topic"] > *[class~="topic/title"] { prince-bookmark-level: 1; -ah-bookmark-level: 1; } *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] { prince-bookmark-l...
by Dan
Tue Jan 03, 2017 4:57 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Documentation on Prince + CSS
Replies: 4
Views: 1041

Re: Documentation on Prince + CSS

Hello, We do not have yet such a documentation, but here are some hints: I would start by creating a CSS file that imports two other CSS files: 1. the one from the Oxygen installation that gives styling for common DITA elements, for example: OXYGEN_INSTALL_DIR/frameworks/dita/css/edit/dita.css 2. th...
by Dan
Tue Jan 03, 2017 12:49 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Documentation on Prince + CSS
Replies: 4
Views: 1041

Re: Documentation on Prince + CSS

You can modify this behavior by changing the "dita.css.list" parameter of the "DITA Map PDF - WYSIWYG" transformation scenario. The documentation for this parameter states the following: The files must have URL syntax and be separated using semicolons. If the value is empty, then the DITA topics/map...
by Dan
Tue Nov 22, 2016 1:43 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CALS Table colspec and PrinceXML
Replies: 5
Views: 1193

Re: CALS Table colspec and PrinceXML

Another approach is to set an @outputclass attribute on your table, then match it and style it from the CSS. This works specially if you have all entries from a column styled the same. For example to add row separators for the first column (I use element names, not DITA classes values for simplicity...
by Dan
Tue Nov 22, 2016 1:30 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CALS Table colspec and PrinceXML
Replies: 5
Views: 1193

Re: CALS Table colspec and PrinceXML

Hello, Here are some details and workarounds: About the column width : Since 18.1 oXygen converts the DITA colspec @colwidth attribute to a @style attribute. For example: colwidth = 0.3* -> style = 'width:33%' colwidth = 20 -> style = 'width:20' This width property is interpreted by Prince, so it sh...
by Dan
Fri Nov 18, 2016 12:27 pm
Forum: XSLT and FOP
Topic: Keep <title> and <image> together in <fig> element
Replies: 3
Views: 1689

Re: Keep <title> and <image> together in <fig> element

Please read the topic topic12552.html, it is the same problem, but it refers to tables.
I think you could use:

Code: Select all


<xsl:attribute-set name="fig" .......... >
<xsl:attribute name="keep-together.within-page">1</xsl:attribute>
</xsl:attribute-set>
by Dan
Wed Nov 16, 2016 12:14 pm
Forum: XSLT and FOP
Topic: Keep <title> and <image> together in <fig> element
Replies: 3
Views: 1689

Re: Keep <title> and <image> together in <fig> element

Hello,

Try using: page-break-inside="avoid" on the fig element.

Regards,
Dan
by Dan
Tue Jun 07, 2016 12:24 pm
Forum: Common Problems
Topic: Attributes being discarded
Replies: 13
Views: 2342

Re: Attributes being discarded

The problem was caused by the "xlink:type" attribute (having a fixed value set in the associated XML Schema) conflicting with the specified "type" attribute from the XML document. The problem is now resolved and the fix will enter the next hot fixes build. I expect this to be available at the end of...
by Dan
Mon Jun 06, 2016 4:50 pm
Forum: Common Problems
Topic: Attributes being discarded
Replies: 13
Views: 2342

Re: Attributes being discarded

Thank you for the samples! We reproduced the problem, and we are in the process of fixing it. I will come back with details.

Regards,
Dan Caprioara
by Dan
Tue May 10, 2016 10:58 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 6562

Re: Error loading hunspell library on windows

We migrated the fix into the SDK.
Make sure you use version 18.0.0.1 in your pom.xml file if you are using Maven, or download the entire set of libraries from: https://www.oxygenxml.com/maven/com/oxy ... .1-all.zip

Many regards,
Dan
by Dan
Tue May 10, 2016 10:48 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 6562

Re: Error loading hunspell library on windows

Ok, no problem. I think this code was developed for Java 6 on Mac.
by Dan
Mon May 09, 2016 9:59 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 6562

Re: Error loading hunspell library on windows

It is executed on the Mac. If you remove it it will simply not find the library.
by Dan
Thu May 05, 2016 12:15 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 6562

Re: Error loading hunspell library on windows

Until we release a new SDK with the fix, please use this code in your app (it works also on the Mac ): String os = System.getProperty("os.name").toLowerCase(); String arch = System.getProperty("os.arch").toLowerCase(); System.out.println("Loading Hunspell for OS:" + os + " on arch:" + arch); String ...
by Dan
Wed May 04, 2016 4:40 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 6562

Re: Error loading hunspell library on windows

Hello Scott,

We reproduced the problem on our side, with the latest JRE, and I can confirm that the code you posted loads hunspell DLL correctly on Windows. On Mac it fails.
We will take a closer look and keep you updated.

Regards,
Dan
by Dan
Tue May 03, 2016 10:11 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 6562

Re: Error loading hunspell library on windows

Hello Scott, It works fine for us to switch to the text page. This is how it looks: http://www.oxygenxml.com/forum/files/reviewer-text-page.png Try this: create a "main" method in the class that is refered by the JNLP and run it directly, from your IDE. If it gives a different result, then your JNLP...
by Dan
Thu Apr 28, 2016 2:14 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 6562

Re: Error loading hunspell library on windows

In a previous message you said that our sample reviewer worked for you when using the SDK version 17.1. Just changing the version in the POM file to 17.0 makes Hunspell fail for that specific sample?

By the way, I tested with a sample containing just the Text page, and it works ok.
by Dan
Wed Mar 30, 2016 12:25 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Tiny font and tool bar in Windows 10
Replies: 7
Views: 2885

Re: Tiny font and tool bar in Windows 10

The problem is caused by oXygen applet not detecting properly the HiDPI settings on Windows - it misses a native library for doing it. As a workaround you could alter the pom.xml file from the sample applet project, adding: <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId...
by Dan
Mon Mar 28, 2016 2:12 pm
Forum: Common Problems
Topic: fold-left signature wrong in tooltip
Replies: 1
Views: 829

Re: fold-left signature wrong in tooltip

Hello Frank,
Thank you for the feedback! I corrected the documentation for both the fold-left and fold-right functions. The fix will enter the next oXygen release.

Best regards,
Dan Caprioara
by Dan
Tue Mar 08, 2016 11:41 am
Forum: SDK-API, Frameworks - Document Types
Topic: ro.sync.ecss.css.Styles getPseudoLevel() only returns 0 or 1
Replies: 3
Views: 1588

Re: ro.sync.ecss.css.Styles getPseudoLevel() only returns 0 or 1

Hi Johann, We changed the way the StylesFilter.filter() gets called for pseudo elements. Now it works also for higher level pseudo elements but only if they have been defined in the CSS (i.e. they have a ' content ' property). You can change this content from the filter method. The level is accessib...
by Dan
Wed Jan 27, 2016 1:39 pm
Forum: Common Problems
Topic: Removing White Spaces added in text mode
Replies: 1
Views: 1273

Re: Removing White Spaces added in text mode

Hello, When saving from Author editing mode, the content gets formatted according to the rules defined in the options from: Options/Preferecens/Editor/Format Options/Preferecens/Editor/Format/XML To make the Author serialize long lines without breaking them you can use the option: Compatibility with...
by Dan
Wed Jan 20, 2016 10:40 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Controlling bi-directional text output in PDF publishing
Replies: 8
Views: 4604

Re: Controlling bi-directional text output in PDF publishing

Hi, I still cannot reproduce your problem with the oXygen default settings. This is my setup: 1. I used the 'samples/dita/it-book/taskbook.ditamap' 2. I opened the map, then I opened the 'installing.dita' topic. I switched to 'Text mode' and pasted your paragraph before the first one from the topic....
by Dan
Fri Jan 15, 2016 11:42 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: SVG ArialMT Unicode issue
Replies: 7
Views: 2286

Re: SVG ArialMT Unicode issue

Sorry, my mistake, the font-family attribute is more important in this case and Batik is using it. However, it seems that Batik looks only into the AWT(JRE) and system fonts, so it skips the substitutions from fop.xconf. http://osdir.com/ml/fop-users-xmlgraphics.apache.org/2012-06/msg00045.html http...
by Dan
Fri Jan 15, 2016 10:47 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: SVG ArialMT Unicode issue
Replies: 7
Views: 2286

Re: SVG ArialMT Unicode issue

But even if you map the fonts to other ones using the FOP config, it will not solve the problem.
The Batik SVG processor will ignore all the properties following "-inkscape-font-specification", and will abort all other styling of the text, so it won't even interpret the font name attribute.
by Dan
Fri Jan 15, 2016 10:43 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Controlling bi-directional text output in PDF publishing
Replies: 8
Views: 4604

Re: Controlling bi-directional text output in PDF publishing

Hard to tell without seeing the generated markup... Maybe you can provide an fragment of DITA and FO markup, so we can get a clearer picture. I tried to put the company name in the middle of an Arabic text and it reads ".Amazing Widgets Inc" (the dot is BIDI neutral and it goes to the first position...
by Dan
Wed Jan 13, 2016 11:12 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: SVG ArialMT Unicode issue
Replies: 7
Views: 2286

Re: SVG ArialMT Unicode issue

There is a problem in the Apache Batik SVG renderer with files created from Inkscape. I removed the "-inkscape-font-specification:'Arial Unicode MS, Normal'" from the style attribute and it started to work, without any change to the font mappings. I understand you have no control on how the SVG file...
by Dan
Mon Jan 11, 2016 11:05 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Controlling bi-directional text output in PDF publishing
Replies: 8
Views: 4604

Re: Controlling bi-directional text output in PDF publishing

Yes, you need to control the direction of the static content you generate using the fo:bidi-override elements. But I would use "embed" instead of "bidi-override", it works better in case you have city names or other meta information in Arabic or/and English. (The "bidi-override" is so strong it will...