Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to the "jc" table property for table centring #155

Open
gkholman opened this issue Aug 26, 2024 · 2 comments
Open

Access to the "jc" table property for table centring #155

gkholman opened this issue Aug 26, 2024 · 2 comments
Assignees

Comments

@gkholman
Copy link

Per the ECMA specification

17.4.26 jc (Table Alignment Exception)

[Example: Consider the following WordprocessingML fragment for a table in a document:
  <w:tblPr>
    <w:jc w:val="center" />
</w:tblPr>
This table is now centered on the page. end example]````

Is there SWPX vocabulary available for us to specify that a table is centred?

@gkholman
Copy link
Author

I am attaching a DOCX file

table-centred-hacked.docx

... where I have hacked the second table to include the above <w:jc w:val="center"/> element and it creates the desired result:

image

It looks like what is needed is to describe the appropriate semantic in SWPX, add it to the schema, and have it engaged in the code.

@larsga
Copy link
Collaborator

larsga commented Sep 23, 2024

Pull request #156 implements this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants