Would it be possible to allow no-break space (NBSP, U+00A0) and even narrow no-break space (NNBSP, U+202F) in the posts?
Currently they are replaced by normal space (SP, U+0020) by Discourse (even in code fragments), thus breaking French number display when text is wrapping.
In French, there should be an NNBSP at least, before punctuation like !?;:», after punctuation like «–—, and between groups of three digits in big numbers.
Here is an example of broken display per French standards:
2 400 000 and 28 800 should not be cut in their half like this, they should stay on the same line.
I think when a text includes NBSP or NNBSP, it is not a typo, not an unintentional mistake.
Let’s try   for NARROW NO-BREAK SPACE thousands separator 80 000 test 80 000 test 80 000 test 80 000 test 80 000 80 000 test 80 000 test 80 000 80 000 test 80 000 test 80 000 test 80 000 test 80 000 test 80 000 test 80 000 test 80 000 80 000 test 80 000 test 80 000 test 80 000 test 80 000.
Then it works indeed!
I edited my post on the other forum and now the numbers are displayed good.
There is no named HTML entity but I can use the unicode code like this.
Thanks for the work-around, @codinghorror.
+1 on this, in French, we use a non-breaking space before our :, !, ? as they are spaced from the previous word and we don’t want them to land on the next line.
Current behavior of replacing non-breaking spaces with spaces:
By keeping the non-breaking space, there is no longer the “lone semicolon”:
I don’t think there’s a need for an HTML escape sequence for those characters, just like there’s no need for an HTML escape sequence for any other non-ASCII characters: pages are given to the browser encoded in UTF-8, and non-breaking spaces, like all other characters, have a UTF-8 representation, for example:
→, √, ½, ñ, Ł, …
(In other words, why does Discourse allow most Unicode sequences but not non-breaking spaces?)
Acho que isso foi feito para evitar uma forma de griefing trivial onde as pessoas fazem edições em posts e elas não mudam nada e as pessoas coçam a cabeça para dizer… o que mudou?
Sim, é o que eu me lembro também. Eu ficaria bem em remover este método mornalize_whitespaces desde que tenhamos uma maneira melhor de fazer/mostrar as diferenças quando tais “caracteres” são usados para griefing.
O mornalize_whitespaces pode ser implementado quando uma nova configuração (ativada por padrão) o solicitar? Assim, um administrador local poderia desativar esse recurso quando, para seu uso, o griefing for menos um problema do que a tipografia?
Uma rápida pesquisa no Google indicou que isso não é verdade. Ou estou a interpretar mal o que significa separado? ← Este ponto de interrogação não está separado, tanto quanto sei.
E essa regra gramatical, assim como não dividir milhares, aplica-se a todas as línguas (ocidentais). Como Não Deveria Haver Algo Assim Também
No « Lexique des règles typographiques en usage à l’Imprimerie nationale » (Glossário das regras tipográficas em uso no National Printing Office), página 149 vemos: « espace fine insécable ? espace juistifiante », então eles não dizem para usar um U+00A0 (NO-BREAK SPACE), mas um U+202F (NARROW NO-BREAK SPACE) (que não sei como digitar no meu teclado, mas ainda assim não é um U+0020 (SPACE). (Infelizmente o livro não é gratuito, então não tenho um link para ele).
A Wikipedia Francesa diz: « En France, il est d’usage de placer une espace fine insécable avant le point d’interrogation, ou une espace insécable si la fine n’est pas disponible. » (Na França, é costume colocar um espaço fino sem quebra antes do ponto de interrogação, ou um espaço sem quebra se o fino não estiver disponível.)
Um estudo/livro para iniciantes que acham que podem aprender francês Eu deveria voltar… , Eu não sei o que é em inglês, mas algo como escola noturna comunitária para adultos — uma forma de passar o tempo livre e aprender algo novo — e tirar uma foto desse texto.
Mas eu me corrijo. Você sabe com certeza isso melhor do que eu jamais saberei,