Re: [oXygen-user] Table formatting: style attribute

2022-10-18 Thread Oxygen XML Editor Support (Radu Coravu)

Hello Michael,

Great, I'm glad this works for you for editing.

Probably such styling also depends on how you publish the JATS document 
further, if you produce an HTML document from it, that may work but for 
producing a PDF having HTML-related styles in the JATS file will 
probably not produce results in the PDF.


Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 10/17/22 18:09, Michael Boudreau wrote:


Thanks, Radu. That produced the change I need, though I limited the 
selector to th[style] and td[style].


I’m assuming that CSS declarations are acceptable content for the 
‘style’ attribute based on the example in 
https://jats.nlm.nih.gov/archiving/tag-library/1.2/attribute/style.html:




Preschool



--

Michael R. Boudreau

Electronic Publishing Technology Manager

The University of Chicago Press

1427 E. 60^th Street

Chicago, IL 60637

www.journals.uchicago.edu

*From: *oXygen-user  on behalf of 
Oxygen XML Editor Support (Radu Coravu) 

*Date: *Monday, October 17, 2022 at 12:22 AM
*To: *oxygen-user@oxygenxml.com 
*Subject: *Re: [oXygen-user] Table formatting: style attribute

Hi Michael,

We (the Oxygen XML developers) are not very familiar with the JATS format.

Oxygen uses CSS to render the JATS content in the Author visual 
editing mode. If for example you open the CSS 
"OXYGEN_INSTALL_DIR/frameworks/jats/lib/author-css/authoring-extension.css" 
CSS and add this selector to it:


*[style]{
    -oxy-style:attr(style);
}

then save your CSS and re-open your JATS file, Oxygen's visual editing 
should interpret the small CSS snippet value from any element which 
has a "style" attribute.


But is this correct according to the standard?

https://jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html 
<https://urldefense.com/v3/__https:/jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVSl8mcSD$>


with many of the elements within a NISO JATS table(

<https://urldefense.com/v3/__https:/jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-by90.html__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVdf-bzfM$>),
records the name of the style to be applied to the element;

The value of the @style attribute seems in the standard to indicate 
more a style name which should indicate the styling.


Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 10/16/22 04:45, Michael Boudreau wrote:

Is Oxygen supposed to heed the ‘style’ attribute on  and 
elements in the JATS table model when it’s rendering tables? It
doesn’t appear to be doing so.

I’m using Oxygen 25.0 on macOS X 12.6. I’m creating tables using
the JATS table model in a framework that uses CSS files copied
from the JATSKit framework. When I add a style attribute like this—

X

—the rules I hope to see on the cell don’t appear.

(For background: I’m creating tables in the JATS model by
converting tables from the OASIS model. In the OASIS model, the
 element has ‘colsep’ and ‘rowsep’ attributes to make a
rule appear on the right or bottom edge of the table cell. Since
there are no direct analogues of those attributes in the JATS
model  and  elements, I’m using the ‘style’ attribute
instead.)

-- 


Michael R. Boudreau

Electronic Publishing Technology Manager

The University of Chicago Press

1427 E. 60^th Street

Chicago, IL 60637

www.journals.uchicago.edu <http://www.journals.uchicago.edu>



___

oXygen-user mailing list

oXygen-user@oxygenxml.com

https://www.oxygenxml.com/mailman/listinfo/oxygen-user  
<https://urldefense.com/v3/__https:/www.oxygenxml.com/mailman/listinfo/oxygen-user__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVV1SQ3yo$>


___
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


Re: [oXygen-user] Table formatting: style attribute

2022-10-17 Thread Michael Boudreau
Thanks, Radu. That produced the change I need, though I limited the selector to 
th[style] and td[style].

I’m assuming that CSS declarations are acceptable content for the ‘style’ 
attribute based on the example in 
https://jats.nlm.nih.gov/archiving/tag-library/1.2/attribute/style.html:


Preschool


--
Michael R. Boudreau
Electronic Publishing Technology Manager
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637
www.journals.uchicago.edu


From: oXygen-user  on behalf of Oxygen XML 
Editor Support (Radu Coravu) 
Date: Monday, October 17, 2022 at 12:22 AM
To: oxygen-user@oxygenxml.com 
Subject: Re: [oXygen-user] Table formatting: style attribute

Hi Michael,

We (the Oxygen XML developers) are not very familiar with the JATS format.

Oxygen uses CSS to render the JATS content in the Author visual editing mode. 
If for example you open the CSS 
"OXYGEN_INSTALL_DIR/frameworks/jats/lib/author-css/authoring-extension.css" CSS 
and add this selector to it:
*[style]{
-oxy-style:attr(style);
}
then save your CSS and re-open your JATS file, Oxygen's visual editing should 
interpret the small CSS snippet value from any element which has a "style" 
attribute.

But is this correct according to the standard?

https://jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html<https://urldefense.com/v3/__https:/jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVSl8mcSD$>
with many of the elements within a NISO JATS 
table(<https://urldefense.com/v3/__https:/jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-by90.html__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVdf-bzfM$>),
 records the name of the style to be applied to the element;
The value of the @style attribute seems in the standard to indicate more a 
style name which should indicate the styling.

Regards,

Radu

Radu Coravu

Oxygen XML Editor
On 10/16/22 04:45, Michael Boudreau wrote:
Is Oxygen supposed to heed the ‘style’ attribute on  and  elements in 
the JATS table model when it’s rendering tables? It doesn’t appear to be doing 
so.

I’m using Oxygen 25.0 on macOS X 12.6. I’m creating tables using the JATS table 
model in a framework that uses CSS files copied from the JATSKit framework. 
When I add a style attribute like this—

X

—the rules I hope to see on the cell don’t appear.

(For background: I’m creating tables in the JATS model by converting tables 
from the OASIS model. In the OASIS model, the  element has ‘colsep’ and 
‘rowsep’ attributes to make a rule appear on the right or bottom edge of the 
table cell. Since there are no direct analogues of those attributes in the JATS 
model  and  elements, I’m using the ‘style’ attribute instead.)

--
Michael R. Boudreau
Electronic Publishing Technology Manager
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637
www.journals.uchicago.edu<http://www.journals.uchicago.edu>




___

oXygen-user mailing list

oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com>

https://www.oxygenxml.com/mailman/listinfo/oxygen-user<https://urldefense.com/v3/__https:/www.oxygenxml.com/mailman/listinfo/oxygen-user__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVV1SQ3yo$>


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


Re: [oXygen-user] Table formatting: style attribute

2022-10-16 Thread Oxygen XML Editor Support (Radu Coravu)

Hi Michael,

We (the Oxygen XML developers) are not very familiar with the JATS format.

Oxygen uses CSS to render the JATS content in the Author visual editing 
mode. If for example you open the CSS 
"OXYGEN_INSTALL_DIR/frameworks/jats/lib/author-css/authoring-extension.css" 
CSS and add this selector to it:



*[style]{
    -oxy-style:attr(style);
}
then save your CSS and re-open your JATS file, Oxygen's visual editing 
should interpret the small CSS snippet value from any element which has 
a "style" attribute.


But is this correct according to the standard?

https://jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html

with many of the elements within a NISO JATS table( 
), 
records the name of the style to be applied to the element; 
The value of the @style attribute seems in the standard to indicate more 
a style name which should indicate the styling.


Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 10/16/22 04:45, Michael Boudreau wrote:


Is Oxygen supposed to heed the ‘style’ attribute on  and  
elements in the JATS table model when it’s rendering tables? It 
doesn’t appear to be doing so.


I’m using Oxygen 25.0 on macOS X 12.6. I’m creating tables using the 
JATS table model in a framework that uses CSS files copied from the 
JATSKit framework. When I add a style attribute like this—


  style="border-bottom: solid thin black; border-right: solid thin 
black">X


—the rules I hope to see on the cell don’t appear.

(For background: I’m creating tables in the JATS model by converting 
tables from the OASIS model. In the OASIS model, the  element 
has ‘colsep’ and ‘rowsep’ attributes to make a rule appear on the 
right or bottom edge of the table cell. Since there are no direct 
analogues of those attributes in the JATS model  and  
elements, I’m using the ‘style’ attribute instead.)


--

Michael R. Boudreau

Electronic Publishing Technology Manager

The University of Chicago Press

1427 E. 60^th Street

Chicago, IL 60637

www.journals.uchicago.edu 


___
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] Table formatting: style attribute

2022-10-16 Thread Michael Boudreau
Is Oxygen supposed to heed the ‘style’ attribute on  and  elements in 
the JATS table model when it’s rendering tables? It doesn’t appear to be doing 
so.

I’m using Oxygen 25.0 on macOS X 12.6. I’m creating tables using the JATS table 
model in a framework that uses CSS files copied from the JATSKit framework. 
When I add a style attribute like this—

X

—the rules I hope to see on the cell don’t appear.

(For background: I’m creating tables in the JATS model by converting tables 
from the OASIS model. In the OASIS model, the  element has ‘colsep’ and 
‘rowsep’ attributes to make a rule appear on the right or bottom edge of the 
table cell. Since there are no direct analogues of those attributes in the JATS 
model  and  elements, I’m using the ‘style’ attribute instead.)

--
Michael R. Boudreau
Electronic Publishing Technology Manager
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637
www.journals.uchicago.edu

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