SVG and text wrapping for simplified Chinese

37 views
Skip to first unread message

tong.d...@gmail.com

unread,
Jun 5, 2017, 3:34:23 PM6/5/17
to d3plus
A while back (Mar, 2016), I asked about the possibility to use the SVG text wrapping functions with double-byte languages like simplified Chinese.
At that point, an issue was created

 https://github.com/d3plus/d3plus-text/issues/8

It looks like the functionality was added - in Aug 2016 if I am not confused.

So, I am trying to get this to work. I downloaded the SVG Text Wrapping example from the website
http://d3plus.org/examples/utilities/a39f0c3fc52804ee859a/

And proceeded to replace the English with some simplified Chinese for the first rectangle. I am not seeing it wrap the simplified Chinese. It works fine for English.

Can you give me any advice or point me to an example? There is obviously more that I must do.

Thanks
dan

tong.d...@gmail.com

unread,
Jun 6, 2017, 10:37:47 AM6/6/17
to d3plus, tong.d...@gmail.com
Hi,
Let me modify my original post...
I found your blog post that shows how it is done.
https://blog.datawheel.us/english-is-not-chinese-69b43959bb47
I was able to download your example files and get them working.

But, for some reason, I can't get it to work on IE11. It works with latest version of FF and Chrome.

I also noticed that the example on this page
(https://d3plus.org/examples/d3plus-text/getting-started/ ) doesn't work in IE11 either.

Any suggestions?
thanks
dan

karin...@gmail.com

unread,
Mar 25, 2019, 6:09:31 AM3/25/19
to d3plus
Hi Dan, did you find a solution for this? I'm trying to wrap text inside a rectangle but it's not working on IE, it is working in chrome.

Regards,
Reply all
Reply to author
Forward
0 new messages