[TxMt] Soft-wraping text containing multi-byte characters

Yoichiro Hasebe yhasebe at mail.doshisha.ac.jp
Sat Jun 27 04:33:10 UTC 2015


Hi,

I love TextMate2 because of its multi-lingual capability. It is
awesome (it is better than Sublime, IMHO), but there is a chronic
problem regarding soft-wrap.

When I have multi-byte (CJK) characters and regular single-byte ones
in the same line, soft-wrap does not work very nicely. Please see the
attached png.

When the line consists only of characters of the same type, multi-byte
or single-byte, soft-wrap works just fine. When they are mixed,
however, the right-hand side of wrapped text looks quite bad.

Is there a quick way to avoid this? Or is this something that needs an
application level fix?

I suspect TM2 treats a sequence of multi-byte characters as if it was
a single word. If that is the case, with text in a language like
Japanese, where word boundaries are not indicated by spaces, a whole
sentence or even a paragraph will be processed as just one huge word.

Regards,
Yoichiro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20150627-132942.png
Type: image/png
Size: 171999 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20150627/2b5e38c6/attachment-0001.png>


More information about the textmate mailing list