Yes a simple space work fine. I wanted only a perfect thing :-) Because without non-breaking space, if the "question FAQ" is too long, sometime the question mark can be display alone on the next line. If it is not possible it doesn't matter of course. :-) Anyway, I though there was a simple way to put some HTML code in doc title. Eventually, about space between text and question mark in french (and other langage) and no space in (english/german/etc.) langage, in my advice the answer is simply a langage key: $services.localization.render('question.mark') question.mark=" ?" or question.mark="?" in french question.mark="?" in english Or perhaps it is not important ... except for boss ;-) ________________________________ De : Leonardo Kodato <[email protected]> À : XWiki Users <[email protected]> Envoyé le : Vendredi 26 septembre 2014 17h57 Objet : Re: [xwiki-users] About question mark and FAQ Hi. I do not understand why it has to be a non-breaking space. It will sound like something obvious, but, have you tried to insert just a space " " before "?" ? e.g. "${doc.title} ?" instead of "${doc.title}?" in FAQCode.FAQSheet title. Regards. Leonardo. 2014-09-26 12:57 GMT-03:00 Leonardo Kodato <[email protected]>:
Hi. I do not understand why it has to be a non-breaking space.
It will sound like something obvious, but, have you tried to insert just a space " " before "?" ? e.g. "${doc.title} ?" instead of "${doc.title}?" in FAQCode.FAQSheet title.
Regards. Leonardo.
2014-09-26 11:30 GMT-03:00 Jeremie BOUSQUET <[email protected]>:
Hi,
I didn't find how to put a non-breaking space (by the way why not " " ?) in the title, at least I know how to insert a (breaking) space before the '?' :
${doc.title.replaceAll("(.*[^ ])[?]$", "$1 ?")}
BR, Jeremie
2014-09-26 16:08 GMT+02:00 Pascal BASTIEN <[email protected]>:
Yes it doesn't work because my html code is not intepreted. JS seem too heavy for a tiny space. (but big boss) :-)
Thank you.
________________________________ De : Leonardo Kodato <[email protected]> À : Pascal BASTIEN <[email protected]>; XWiki Users < [email protected]> Envoyé le : Vendredi 26 septembre 2014 16h03 Objet : Re: [xwiki-users] About question mark and FAQ
Hi Pascal.
Have you tried to edit the FAQCode.FAQSheet title and insert a non-breaking space right before "?"?
I don't think it would be possible using CSS, but maybe using Javascript(I'm not a javascript expert).
Regards,
Leonardo.
2014-09-26 9:11 GMT-03:00 Pascal BASTIEN <[email protected]>:
Hello,
(My french boss) noticed than a space character missing between
question mark and text in FAQ application...
Rather to modify the code, do you think there is a way to fix it with
CSS?
Note: I wanted fix it on Xwiki then I looking for typographical rules
about that but I didn't found an authoritative source... :-/
http://english.stackexchange.com/questions/14003/any-authoritative-source-on...
http://www.sdbcompany.com/index.php?option=com_content&view=article&id=59&It... => "Question mark (?): General rule: non-breaking space before the question mark and space after."
http://en.wikipedia.org/wiki/Question_mark#Stylistic_variants =>
"French usage must include a non-breaking space before the question mark (for example, "Que voulez-vous boire ?"), whereas in the English language orthography no space is allowed in front of the question mark (e.g. "What do you drink?")"
Pascal B. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users