#980 Adding zero-width space to whitespaces

scintilla (101)

Languages like Khmer and Thai do not put spaces between words. However, to facilitate line-breaking in web pages, lots (most?) such text gets entered with a ZWSP (zero-width space, U+200B) separating words.

Because it has no width, making ZWSP visible requires either changing a line's width (as MS Word does) or changing part of the background color of the adjoining characters (as OpenOffice Writer does; I attach a screen capture of how this).

Since those are word-processors, they present other difficulties when editing XML or HTML containing Khmer. It would be great if Scintilla and programs that make use of Scintilla were able to include ZWSP when making whitespace or non-printing characters visible.


Roger Sperberg
rsperberg at gmail

1 Attachments


  • Neil Hodgson

    Neil Hodgson - 2013-03-02
    • labels: --> scintilla
    • assigned_to: Neil Hodgson
    • priority: 5 --> 3
  • Roger Sperberg

    Roger Sperberg - 2013-03-18

    I've corresponded with Gerald Schmidt, the developer of the Scintilla-based XML Copy Editor, about incorporating the patch you wrote (or some part of it) to accomplish the limited task of making ZWSP visible. Don't know yet how he's progressing on that.

    In another context, someone wrote that the way to make ZWSP visible is simply to change its background color. A Python script effecting that does indeed work in SublimeText, which is encouraging but not useful, since SublimeText doesn't do character repositioning or subscripting or any of the display requirements of complex scripts.

  • Neil Hodgson

    Neil Hodgson - 2013-08-31
  • Neil Hodgson

    Neil Hodgson - 2013-10-15
    • status: open --> closed

Log in to post a comment.