Community
Participate
Working Groups
The table captions are not handled. See the example from: http://www.mediawiki.org/wiki/Help:Tables#Caption {| |+Food complements |- |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} The line "|+Food complements" is supposed to be a table caption. Instead, the "+" appears in the html text, and the caption is not centered.
Thanks for the bug. Table captions have not yet been implemented. Feel free to submit a patch.
Created attachment 203273 [details] mylyn/context/zip
Other Help page (on wikipedia): http://en.wikipedia.org/wiki/Help:Table_caption
Patch proposal: https://git.eclipse.org/r/8220
Jeremie, thanks for the review. Do we expect to see block content, images, spans etc. in table captions? It seems odd to include caption as a block type (though I know that the HTML spec supports it). It's unclear to me how this should translate to other implementations of DocumentBuilder. Looking around at table captions on the web the most common use seems to be to have a text caption. Would it make more sense to add a String field "caption" to @TableAttributes@ instead?
(In reply to comment #5) > Looking around at table captions on the web the most common use seems > to be to have a text caption. In my opinion WikiText should handle at least styled text (bold, italic, ...) in caption. My current implementation is based on what MediaWiki can and target Builder is HTML. Let see what other Builder could do. I a do not know where the reference specification are, this is just the result of a google search: == XSL-FO: == http://www.schemacentral.com/sc/fo11/e-fo_table-and-caption.html <fo:table-and-caption> <fo:table-caption> <fo:block>Any text, intermingled with: <fo:block>Any text, intermingled with:... </fo:block> </fo:block> </fo:table-caption> <fo:table> ... </fo:table> </fo:table-and-caption> == Docbook: == http://www.docbook.org/tdg/en/html/caption.html Seems also to be a bloc. == Dita: == http://docs.oasis-open.org/dita/v1.0/langspec/table.html Seems that the caption is a <title> or <desc> tag as child of <table> (both can be styled with bold, italic...). == LaTeX: == (I am more and more thinking in writing a builder for basic LaTeX) http://en.wikibooks.org/wiki/LaTeX/Tables#The_table_environment_-_captioning_etc \begin{table} \caption{Performance at peak F-measure} \begin{tabular}{| r | r || c | c | c |} ... \end{tabular} \end{table} => Also a bloc == Markup Builder == Textile doesn't seem to support caption: http://forum.textpattern.com/viewtopic.php?pid=154112 Trac WikiFormatting doesn't seem to support caption: http://trac.edgewall.org/wiki/WikiFormatting#Tables Confluence Wiki Markup doesn't seem to support caption: https://confluence.atlassian.com/display/DOC/Confluence+Wiki+Markup#ConfluenceWikiMarkup-Tables In my opinion a caption block is correct... Maybe I am missing something.
Closed as part of backlog clean-up. Please re-open if you'd like to see this revisited, perhaps with a contribution.
In my opinion supporting table caption is important. Please reopen.
reopening per comment #8
Mylyn has been restructured, and our issue tracking has moved to GitHub [1]. We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub. [1] https://github.com/orgs/eclipse-mylyn