Re: [oXygen-user] Image and table width in Author mode

2023-02-09 Thread Oxygen XML Editor Support (Radu Coravu)

Hi Frank,


Please see some remarks below:

All my images have PNG format and an "otherprops="fmdpi:xxx" attribute 
where xxx is usually 150, in some cases 140, 160 or similar. 
FrameMaker, my previous XML editor, honors this attribute and scales 
the images appropriately.


Well it honors its own Frame specific custom attributes which are not 
defined in the DITA specification.


Are you still publishing to PDF using Frame?

I notice that oXygen displays images bigger in its editor compared to 
150 dpi images in FrameMaker.



Oxygen's default DPI is about 96 which is closer to the Web output.

We have some CSS settings to change the DPI when publishing DITA to PDF 
using our CSS based engine:


https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dcpp_images.html

but we do not have settings to change the DPI in the visual editor on a 
per-image base.


I would need to reduce all images to about 66% of their size (= by 
factor 1.5). Unfortunately I do not know of any CSS style which scales 
images based on their own pixel size. Percentage values in CSS apply 
to the widht or height of the viewport.


Yes, I also do not see a possible way to do this with CSS. DITA  
elements allow setting the width or scale attributes on them. Like:




and Oxygen takes this into account. But we take it into account because 
we know it's DITA, not because of a certain CSS rule which could be 
modified to cover another attribute.



Likewise, I would  like to make sure that table columns are not too 
narrow on the PDF pages.


Most XML editors are not what you see is what you get especially because 
XML can be published to multiple formats. The PDF may have a different 
font, it splits into pages, it has a certain page width... best you can 
do is to try and make things look more like the published content in the 
visual editor and check the PDF from time to time.



Regards,

Radu

Radu Coravu
Oxygen XML Editor


On 2/9/23 15:08, Frank Dissinger wrote:


Hi list,


I publish DITA content as online help and PDF. In oXygen's Author mode 
I would like to make sure that images do not exceed the width of the 
A4-sized PDF pages. Sometimes I also place two or more inline images 
side by side in a paragraph and want to make sure if all of them fit 
on the line or if there is a line break between them.



All my images have PNG format and an "otherprops="fmdpi:xxx" attribute 
where xxx is usually 150, in some cases 140, 160 or similar. 
FrameMaker, my previous XML editor, honors this attribute and scales 
the images appropriately.



I notice that oXygen displays images bigger in its editor compared to 
150 dpi images in FrameMaker. I would need to reduce all images to 
about 66% of their size (= by factor 1.5). Unfortunately I do not know 
of any CSS style which scales images based on their own pixel size. 
Percentage values in CSS apply to the widht or height of the viewport.



Likewise, I would  like to make sure that table columns are not too 
narrow on the PDF pages.



What can I do? Any ideas are welcome.


Regards,

Frank

--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


https://www.cgs-oris.com/Signatur.png 

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] Image and table width in Author mode

2023-02-09 Thread Frank Dissinger

Hi list,


I publish DITA content as online help and PDF. In oXygen's Author mode I 
would like to make sure that images do not exceed the width of the 
A4-sized PDF pages. Sometimes I also place two or more inline images 
side by side in a paragraph and want to make sure if all of them fit on 
the line or if there is a line break between them.



All my images have PNG format and an "otherprops="fmdpi:xxx" attribute 
where xxx is usually 150, in some cases 140, 160 or similar. FrameMaker, 
my previous XML editor, honors this attribute and scales the images 
appropriately.



I notice that oXygen displays images bigger in its editor compared to 
150 dpi images in FrameMaker. I would need to reduce all images to about 
66% of their size (= by factor 1.5). Unfortunately I do not know of any 
CSS style which scales images based on their own pixel size. Percentage 
values in CSS apply to the widht or height of the viewport.



Likewise, I would  like to make sure that table columns are not too 
narrow on the PDF pages.



What can I do? Any ideas are welcome.


Regards,

Frank

--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


https://www.cgs-oris.com/Signatur.png ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] DITA footnotes in Author mode

2023-02-09 Thread George Bina

Hi Frank,

I did something for a variant of TEI vocabulary used for articles, you 
can find the project

https://github.com/georgebina/jteiPlus
The notes are numbered and set on the right side as callouts and 
collapesed by default, with an inline action to be expanded.

The relevant CSS is
https://github.com/georgebina/jteiPlus/blob/master/frameworks/tei-custom/css/sideNotes.css

and you can try it online using the web author at
https://www.oxygenxml.com/oxygen-xml-web-author/app/oxygen.html?url=webdav-https%3A%2F%2Fwww.oxygenxml.com%2Foxygen-xml-web-author%2Fplugins-dispatcher%2Fwebdav-server%2Fjtei%2FDEMOjtei-8-eide-source.xml=Footnotes=Anonymous=%5B%7B%22id%22%3A%22Author%2FShareSession%22%7D%5D

I used z-index to bring the note you have the mouse over to the front :).

Hope this example helps!

Best Regards,
George
--
George Cristian Bina
 XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 2/9/23 11:11 AM, Frank Dissinger wrote:

Hi list,


oXygen does not seem to have any special styling for DITA footnotes in 
Author mode. They are just shown as inline elements in italics.



Has anybody managed to style footnots with CSS in a way similar to how 
they would like on a page, i.e. on the bottom of the page with ascending 
numbers and a superscript number at the location where the footnote is 
referenced?



I made some attempts with "fn {position: absolute; bottom: -2em}", but 
was not CSS-skilled enough to prevent the footnotes all being placed on 
top of each other. And I don't know how to implement a counter for 
elements that are scattered over the element tree (not children of the 
same element).



Any ideas?


Regards,

Frank

--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


https://www.cgs-oris.com/Signatur.png 

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] DITA footnotes in Author mode

2023-02-09 Thread Frank Dissinger

Hi list,


oXygen does not seem to have any special styling for DITA footnotes in 
Author mode. They are just shown as inline elements in italics.



Has anybody managed to style footnots with CSS in a way similar to how 
they would like on a page, i.e. on the bottom of the page with ascending 
numbers and a superscript number at the location where the footnote is 
referenced?



I made some attempts with "fn {position: absolute; bottom: -2em}", but 
was not CSS-skilled enough to prevent the footnotes all being placed on 
top of each other. And I don't know how to implement a counter for 
elements that are scattered over the element tree (not children of the 
same element).



Any ideas?


Regards,

Frank

--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


https://www.cgs-oris.com/Signatur.png ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user