Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#974 Display of "special" whitespaces

Completed
closed
Neil Hodgson
scintilla (39)
3
2013-10-15
2013-01-22
Oygron
No

Hi,
In french (and probably in lots of other languages), we have typography rules that include non-breakable spaces (U+00A0) and narrow non-breakable spaces (U+202F).

Using the visible whitespace option, these two spaces display as a space (no grey marker such as the dot for the normal space).

Would that be possible to add markers for these spaces (for example '⍽' (U+237D) or a '~' for the non-breakable space and a '.' for the narrow non-breakable space) so that we can see them and distinguish them from normal spaces?
The best would be an option where everyone could set an arbitrary grey marker to replace another arbitrary character, but having these replacements hardcoded for a start would be great.

Thanks in advance,

Oygron

Discussion

  • Neil Hodgson
    Neil Hodgson
    2013-01-22

    • labels: --> scintilla
    • status: open --> accepted
    • assigned_to: Neil Hodgson
    • priority: 5 --> 3
     
  • Neil Hodgson
    Neil Hodgson
    2013-01-22

    These spaces are quite narrow at around 5 pixels for U+00A0 and 2 pixels for U+202F in my normal font and size. U+237D at around 9 pixels isn't going to fit. Something similar to U+237D could be drawn with a set of lines.

    If this were to be implemented it should be optional and have reasonable performance when turned on and very little cost when turned off. I will not be working on this myself.

     
  • Oygron
    Oygron
    2013-01-22

    Hi,

    Thanks for your answer.
    In facts, my need was while using the text editor Geany (which is based on Scintilla). As this editor uses a fixed width font, the replacements I suggested were relevant, but I truly understand your argument, I just didn't think about the non fixed width fonts.

    I'll see if I can figure out a way to do this without side effects.

     
  • Neil Hodgson
    Neil Hodgson
    2013-10-15

    There is now a feature for adding string representations of particular characters which can be used to make these characters visible although not with the appearance described.
    http://www.scintilla.org/ScintillaDoc.html#SCI_SETREPRESENTATION

     
  • Neil Hodgson
    Neil Hodgson
    2013-10-15

    • status: accepted --> closed