HXTABLETRANS(1)
β¨ hxtabletrans β¨
okay bestie, so this is hxtabletrans, and it lives in the HTML-XML-utils family π it's the little icon that flips your tables so you don't have to do it by hand like a Victorian child. sit down, grab a strawberry π, let's go.
πΈ SYNOPSIS πΈ
hxtabletrans [ -c ] [ -x ] [ -v ] [ file-or-URL ]
π¦ DESCRIPTION π¦
so here's the vibe. hxtabletrans reads an HTML or XHTML file β and yes, a fragment counts too, we're not picky β finds the first <table> element in there, and then prints that element back out with the rows and columns transposed. rows become columns. columns become rows. it's giving rotation. it's giving main character geometry β¨
now the sad part π any grouping of rows you had going on with <thead>, <tbody> or <tfoot>? lost. gone. not surviving the flip. also, any comments that live outside the cells get dropped too. rip to those, fr fr π
π OPTIONS π
here's what you can hand her:
-cβ this one's lowkey the cutest. it also tries to transpose the contents of the cells. so if a cell is made up of nothing but horizontal or vertical arrows and ellipses (mark-up and whitespace don't count, they're just vibing in the background), then those arrows and ellipses get swapped for their transposed counterparts. like, a right arrow becomes a down arrow. obsessed π«Ά-xβ XML syntax mode, bestie. empty elements get written with a slash (/) at the end, e.g.:<br/>-vβ prints the version number and then dips. exit, stage left π
π BUGS π
okay so we have to be honest here, no cap. hxtabletrans should check for rows that have fewer cells than the longest row β and yes, that means taking into account the effect of the colspan and rowspan attributes β and it should create the omitted cells. but it currently doesn't. so tables with rows of unequal length may not get transposed correctly. that's just the reality of it π
also: nested tables are not transposed. not even a little. periodt.
π SEE ALSO π
(nothing extra here, she's an independent queen π)
and that's the whole page, bestie! this one's from the HTML-XML-utils crew, running version 7.x, dated 10 Jul 2011 π β oldie but a goodie, and honestly? iconic. go transpose something. slay π β¨
π¦ where this page comes from
- alpine 3.24: html-xml-utils-doc 8.7-r0 Β· W3C
- arch rolling: html-xml-utils 8.8-1 Β· W3C
- debian bookworm: html-xml-utils 7.7-1.1 Β· W3C
- debian trixie: html-xml-utils 7.7-1.1+b1 Β· W3C
- fedora 43: html-xml-utils 8.6-2.fc41 Β· W3C AND BSD-3-Clause
- fedora 44: html-xml-utils 8.7-1.fc44 Β· W3C AND BSD-3-Clause
- nixos 26.05: html-xml-utils 8.7
- nixpkgs unstable: html-xml-utils 8.7
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- ubuntu jammy: html-xml-utils 7.7-1.1 Β· W3C
- ubuntu noble: html-xml-utils 7.7-1.1build2 Β· W3C
- ubuntu questing: html-xml-utils 7.7-1.1build2
- ubuntu resolute: html-xml-utils 7.7-1.3 Β· W3C
- ubuntu stonking: html-xml-utils 7.7-1.3 Β· W3C
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms