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

Tabular module should support merged cells in HTML and XLS #215

Closed
blcham opened this issue Sep 13, 2023 · 1 comment · Fixed by #226
Closed

Tabular module should support merged cells in HTML and XLS #215

blcham opened this issue Sep 13, 2023 · 1 comment · Fixed by #226
Assignees

Comments

@blcham
Copy link
Contributor

blcham commented Sep 13, 2023

  • Investigate how it is possible to merge columns in HTML (maybe span column property?)

A/C:

  • it is possible to query output of the module to find out which cells were merged (from HTML and XLS formats)
@blcham
Copy link
Contributor Author

blcham commented Sep 13, 2023

I just started to think about it :

  • it does not make sense to merge whole rows or whole columns (as it just became single row/column), thus we are not really merging columns or rows but cells
  • we can consider one cell as master cell in merged group of cell -- i.e. the most top-left cell we can call master and other can be said that are just "duplicates"
  • most of the cases for having merged cells is to provide hierarchies in header

My first idea is to represent cells using csvw extension namespace kbss-csvw:

ex:some-master-cell a kbss-csvw:Cell;
  ex:row ex:row1;
  ex:column ex:coll1;
  kbss-csvw:same-value-as ex:cell-2 ;
  kbss-csvw:same-value-as ex:cell-3 ;
.

ex:cell-2  a kbss-csvw:Cell;
   ex:row ex:row1;
   ex:column ex:coll2;
.

ex:cell-3  a kbss-csvw:Cell;
   ex:row ex:row1;
   ex:column ex:coll3;
.

kbss-csvw:same-value-as should be transitive and symetric relation but we for us it is sufficient to assert it from "master" cell to "slave" cells.

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