Combining unicode chars in headings
like à with varia
and simple tables lead to warnings and errors, as they contribute to the string lenght.
test case (tables and headings with combining chars)
Fixed for section headings.
The fix for tables is nontrivial, as both stringlist.get_2D_block() in statemachine.py and
SimpleTableParser.check_columns() in tableparser.py must be made to account for
zero-width combining chars.
Fixed for headings and simple tables.
Fixing grid tables is an open task. Tools are in docutils.utils
but the grid table parser is rather complex.
Edvard d'auvergne pointed to https://pypi.python.org/pypi/wcwidth, a Python implementation of the wcswidth C function.
We already similar functions in docutils.utils, used for section headings and simple tables.
However, currently these do not treat zero-width characters.
Fix grid tables (difficult, see attachment for a try).
Consider additional zero-width characters (ZWSP, WJ, ZWNBSP
...) in table parsing and section heading recognition.
According to David, this "Seems like more trouble than it's worth."
That was me adding weight, as the SF voting buttons are not visible for docutils tickets for non-members.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.