Search found 395 matches

by Dan
Wed Oct 24, 2018 4:25 pm
Forum: XSLT and FOP
Topic: How to publish a PDF Document with two flow data in parallel
Replies: 3
Views: 1383

Re: How to publish a PDF Document with two flow data in parallel

Hello David,

As far as I know, the XSL-FO supports only one flow declaration. Please try to contact a commercial XSL-FO processor vendor, like Antenna House or Xep, they may have the needed extensions and expertise.

Many regards,
Dan
by Dan
Tue Oct 16, 2018 10:39 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Adding page numbers to links in DITA PDFs generated with CSS?
Replies: 2
Views: 687

Re: Adding page numbers to links in DITA PDFs generated with CSS?

When applying the DITA Map to PDF (WYSIWIG or HTML5 based) transformation scenario, (having Chemistry as CSS processor ) you should automatically get links with a "(on page NN)" text following them. Are the links working (i.e. are clickable and navigate correctly)? What oXygen version are you using?...
by Dan
Mon Oct 08, 2018 8:31 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF Table of Contents formatting
Replies: 3
Views: 805

Re: PDF Table of Contents formatting

Hello Victoria,

What transformation scenario are you using? Is it based on XSL-FO or CSS?

Many Regards,
Dan
by Dan
Thu Oct 04, 2018 2:26 pm
Forum: Common Problems
Topic: HTML Styled Correctly But PDF Isn't
Replies: 2
Views: 806

Re: HTML Styled Correctly But PDF Isn't

There are differences in the CSS support from Chemistry and a full Web Browser. For Chemistry, the column-count should be set on the @page, not on the matching element. Please use the following technique: 1. Define an outputclass on the topic root element. (as you already did) <topic outputclass="tw...
by Dan
Thu Oct 04, 2018 12:19 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF: footnote
Replies: 3
Views: 877

Re: CSS-Based PDF: footnote

The @footnote part of a @page declaration controls the style of the separator between the page content and the footnotes. As content you should set a leader. The leader uses a letter or a line style to fill the entire width of the page. @page { margin:0.5in; .... @footnote { content: leader(solid); ...
by Dan
Mon Sep 24, 2018 12:27 pm
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 3579

Re: support text rotation

The recommended way is to set a width and optionally a height to rotated block. Negative paddings or margins should be used as last resort. If you are using the HTML based transformation try: *[outputclass ~= "rotated"] > *[class ~= "topic/p"] { display: block; transform: rotate(-90deg) !important; ...
by Dan
Mon Sep 17, 2018 10:27 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Avoid Chapter numbering of some topics
Replies: 8
Views: 1767

Re: Avoid Chapter numbering of some topics

Can you send us your CSS to our support email address?
Thank you, Dan
by Dan
Fri Sep 14, 2018 3:18 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF question about footers
Replies: 1
Views: 637

Re: CSS-Based PDF question about footers

Hello, This can be done using an SVG image that contains the text "Part Number" with a color, like this: <?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" width="60pt" height="10pt" font-size="10pt" alignment-baseline="after-edge" font-family="SansSerif" > <!-- The heigh...
by Dan
Thu Sep 13, 2018 10:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hazard Statement Styling
Replies: 12
Views: 1951

Re: Hazard Statement Styling

You should save the image for notice next to the customization CSS file. After this, add in you CSS: *[class ~= "hazard-d/hazardstatement"][type = "notice"]:before { content: url("other_notice_icon.png") " NOTICE"; } In this way you are changing the icon and label of the notice hazardstatements with...
by Dan
Wed Sep 12, 2018 11:53 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Avoid Chapter numbering of some topics
Replies: 8
Views: 1767

Re: Avoid Chapter numbering of some topics

Hello Stanislav,

Please check this topic from the urser-guide: https://www.oxygenxml.com/doc/versions/ ... ntent.html

Many regards,
Dan
by Dan
Wed Sep 12, 2018 11:50 am
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 1464

Re: merged2html5 -- Modifying xref elems

Maybe a CSS rule to hide the desc element could work as well.
I am glad you worked it out!

Best regards,
Dan
by Dan
Tue Sep 11, 2018 2:16 pm
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 1464

Re: merged2html5 -- Modifying xref elems

I do not understand exactly what happens, can you post here the fragments corresponding to the xref link as it appears in the .merged.xml and merged.html files from the output folder? Are you modifying the merged2merged or merged2html5 XSL processing? Let's take a look at how the plugin works: 1. A ...
by Dan
Mon Sep 10, 2018 2:54 pm
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 1464

Re: merged2html5 -- Modifying xref elems

Probably you need something like:

Code: Select all


<xsl:value-of select="node() except *[contains(@class, 'topic/shortdesc')]"/>
I have not tested it yet. Take a look at the merged file and modify the selector accordingly.

Many regards,
Dan
by Dan
Fri Sep 07, 2018 2:34 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-based PDF: Question about Avoid rules
Replies: 2
Views: 685

Re: CSS-based PDF: Question about Avoid rules

Hello,

Indeed, the property controls the break on columns and pages at the same time, and there is no workaround for this.
We will take a look to see if this can be implemented to ignore by default the column breaks.

Thank you,
Dan
by Dan
Fri Sep 07, 2018 10:00 am
Forum: Common Problems
Topic: Chapter First Page -- Big Logo and Big Top Margin
Replies: 2
Views: 1062

Re: Chapter First Page -- Big Logo and Big Top Margin

The "top-left-corner", "top-left", "top-center", "top-right", "top-right-corner" are all placed in the top margin of your page. (See https://www.oxygenxml.com/doc/versions/20.1/ug-chemistry/topics/ch_page_formatting.html, the "Page Margin Boxes" section.) You should increase the top margin of your p...
by Dan
Thu Sep 06, 2018 4:27 pm
Forum: Common Problems
Topic: Chemistry chokes on extended-ISO entity
Replies: 3
Views: 1106

Re: Chemistry chokes on extended-ISO entity

I checked with Arial Unicode MS font and it works better. The correct version (the above selector works only for the DITA and CSS direct transformation, not the one that uses HTML as intermediate format): *[class ~= "topic/dl"], .dl { font-family: "Times New Roman", "Arial Unicode MS"; } Regards, Dan
by Dan
Thu Sep 06, 2018 9:56 am
Forum: Common Problems
Topic: Chemistry chokes on extended-ISO entity
Replies: 3
Views: 1106

Re: Chemistry chokes on extended-ISO entity

To fix this you will need to use a fallback font. If you are using Times New Roman for the entire publication, you may consider adding Symbol as a fallback. In your customization CSS add: *[class ~= "topic/dlentry"] { font-family: "Times New Roman", Symbol; } Or other font that can render the charac...
by Dan
Wed Sep 05, 2018 2:57 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 3977

Re: Chemistry: Omit Cover Page and TOC?

I am glad it worked! I added more info about your usecase to the userguide of the DITA CSS PDF plugin, it will be available when we release the next version. The built-in CSS rules contain something like: *[class~='topic/topic'][is-chapter] { -oxy-page-group : start; } The "start" value makes the ch...
by Dan
Tue Sep 04, 2018 3:13 pm
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1481

Re: format-date(current-date()) problem

It looks like Saxon HE is limited by design: https://sourceforge.net/p/saxon/mailman/message/26849522/ The only workaround is to format the date like this: ... content: oxy_xpath("let $cm:= format-date(current-date(), '[MNn]') \ return concat( \ if ($cm= 'January') then 'JAN' else \ if ($cm= 'Februa...
by Dan
Tue Sep 04, 2018 2:52 pm
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1481

Re: format-date(current-date()) problem

Yes, indeed, I tested the expression using the Saxon SA XPath processor, while the Chemistry distribution contains Saxon HE. I will check what happens.

Thank you for the feedback!
Dan
by Dan
Tue Sep 04, 2018 2:14 pm
Forum: Common Problems
Topic: Create a copyright page in PDF output from Chemistry
Replies: 3
Views: 1892

Re: Create a copyright page in PDF output from Chemistry

Yes, it was an incomplete post. Now the details are here: post49050.html#p49050

Dan
by Dan
Tue Sep 04, 2018 12:52 pm
Forum: Common Problems
Topic: Create copyright page
Replies: 8
Views: 3250

Re: Create copyright page

Regular DITA maps do not have the concept of a copyright notice. This is available only in the DITA bookmap structure. If you are constrained to using a regular map and you need to add a copyright page between the front cover and the TOC, use the following technique: In your customization CSS, decla...
by Dan
Tue Sep 04, 2018 12:43 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 3977

Re: Chemistry: Omit Cover Page and TOC?

I tested again a snippet from a previous post, and the empty page dissapears if adding the last selector: *[class ~= 'map/map'] > *[class ~= 'toc/toc'] { display:none !important; } *[class ~= 'map/map'] > *[class ~= 'front-page/front-page']{ display:none !important; } *[class~='topic/topic'][is-chap...
by Dan
Tue Sep 04, 2018 12:38 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 3977

Re: Chemistry: Omit Cover Page and TOC?

Please add to your customization CSS the following snippet: *[class~='topic/topic'][is-chapter] { -oxy-page-group : auto; } This should fix the page breaking problem. The customization CSS can be referred from the template descriptor, or passed as the args.css parameter to the transformation scenari...
by Dan
Tue Sep 04, 2018 10:39 am
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1481

Re: format-date(current-date()) problem

There is a syntax error in your XPath expression, it misses a comma and you should use singe quotes around the 'ru' token, since the entire expression is already enclosed in double quotes: The correct form is: ... content: oxy_xpath("format-date(current-date(), '[MNn] [Y0001]', 'ru', (), ())"); ... ...
by Dan
Fri Aug 24, 2018 9:04 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-based PDF: Table font size
Replies: 2
Views: 735

Re: CSS-based PDF: Table font size

Hello,

This is caused by a compatibility mode that sets the HTML tables font size to "medium". In fact this should not apply, as the format is HTML 5. I will log a bug about this. Meantime, you should add also this selector:

Code: Select all


*[class ~= "topic/table"] {
font-size: 13px;
}
Many regards,
Dan
by Dan
Thu Aug 23, 2018 12:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: SVG files not scaling properly in PDF publishing
Replies: 3
Views: 786

Re: SVG files not scaling properly in PDF publishing

What scenario are you using to transform your documents? Your SVGs have information about their size? A small sample would be good to determine the fix.

Many regards,
Dan
by Dan
Thu Aug 16, 2018 3:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hazard Statement Styling
Replies: 12
Views: 1951

Re: Hazard Statement Styling

Hello Mr. Kim, I think you should write your CSS customization rules as: *[class~="hazard-d/hazardstatement"][type="notice"]:before { content: oxy_uppercase(attr(type)); } *[class~="hazard-d/hazardstatement"][type="notice"] { display:block; background-color:blue; border-bottom: 2pt solid; padding:0....
by Dan
Thu Aug 16, 2018 3:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF: Uppercase/lowercase CAUTION vs Warning
Replies: 3
Views: 838

Re: CSS-Based PDF: Uppercase/lowercase CAUTION vs Warning

The selectors you pointed to apply to the WYSYWIG PDF transformation only. In the HTML based transformation, the intermediate merged DITA map is transformed to HTML5 using the DITA-OT built-in support, so the generation of the static strings (the labels for chapters, parts, figures, tables, notes, e...