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

Magic Table generate 'Malformed Table' error with CJK characters. #83

Open
haje01 opened this issue Jun 25, 2015 · 1 comment
Open

Magic Table generate 'Malformed Table' error with CJK characters. #83

haje01 opened this issue Jun 25, 2015 · 1 comment

Comments

@haje01
Copy link
Contributor

haje01 commented Jun 25, 2015

Magic Table feature has a flaw with CJK(Chinese, Japanese, Korean) characters. Following text:

aa  b.b.
가  나

will be converted into:

+----+----+
| aa | bb |
+====+====+
| 가  | 나  |
+----+----+

which generates 'Malformed Table' error with Sphinx. Right conversion will be:

+----+----+
| aa | bb |
+====+====+
| 가 | 나 |
+----+----+

I guess you should count a CJK character takes two-spaces.
Vim's RST table plugin also has same issue. So, there are specific plugin to solve this:

https://github.com/vim-scripts/RST-Tables-CJK

Following python package might be handy for you:

https://pypi.python.org/pypi/wcwidth/

I hope you can fix it without much trouble.
Thank you.

@mgaitan
Copy link
Owner

mgaitan commented Jun 25, 2015

Thanks Kim, I'll dive into it shortly

On Thu, Jun 25, 2015 at 6:43 AM, Kim Jeong Ju [email protected]
wrote:

Magic Table feature has a flaw with CJK(Chinese, Japanese, Korean)
characters. Following text:

aa b.b.
가 나

will be converted into:

+----+----+
| aa | bb |
+====+====+
| 가 | 나 |
+----+----+

which generates 'Malformed Table' error with Sphinx. Right conversion will
be:

+----+----+
| aa | bb |
+====+====+
| 가 | 나 |
+----+----+

I guess you should count a CJK character takes two-spaces.
Vim's RST table plugin also has same issue. So, there are specific plugin
to solve this:

https://github.com/vim-scripts/RST-Tables-CJK

I hope you can fix it without much trouble.
Thank you.


Reply to this email directly or view it on GitHub
#83.

mgaitan.github.io
textosypretextos.com.ar

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