Displaying non breaking spaces in Author view

Hi, is there some way how to make Author to visually differentiate between normal spaces and non-breaking ones? For example in MS Word you can turn on displaying of such characters and non-breaking spaces then show small circle in their area. I know that Unicode code of character under the cursor is displayed in a status bar, but customer wants this feature and so far I haven't found anything in oXygen that would allow for this. I have found only partial solution -- if non-breaking spaces will be entered as entity then I can use something like oxy|entity[name='nbsp'] { ... } in CSS to make visual distinction. However this wouldn't work if non-breaking space is directly entered as Unicode character. Any hints more then welcomed. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Hi Jirka, In the Oxygen Preferences->"Editor" page there is a "Show TAB/NBSP/EOL/EOF Markers" checkbox. Regards, Radu Radu Coravu <oXygen/> XML Editor http://www.oxygenxml.com On 6/27/2018 4:00 PM, Jirka Kosek wrote:
Hi,
is there some way how to make Author to visually differentiate between normal spaces and non-breaking ones? For example in MS Word you can turn on displaying of such characters and non-breaking spaces then show small circle in their area. I know that Unicode code of character under the cursor is displayed in a status bar, but customer wants this feature and so far I haven't found anything in oXygen that would allow for this.
I have found only partial solution -- if non-breaking spaces will be entered as entity then I can use something like oxy|entity[name='nbsp'] { ... } in CSS to make visual distinction. However this wouldn't work if non-breaking space is directly entered as Unicode character.
Any hints more then welcomed.
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user

On 27.6.2018 15:06, Oxygen XML Editor Support (Radu Coravu) wrote:
In the Oxygen Preferences->"Editor" page there is a "Show TAB/NBSP/EOL/EOF Markers" checkbox.
Thanks Radu. This works perfectly in a Text mode, but not in Author mode. -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Hi Jirka, I tested and this setting should work in both the Text and Author editing modes. I tested by having an HTML document with the NBSP (decimal 160) character inserted in a paragraph. But depending on the font used for the Author editing mode (Preferences->Fonts) it might not be that easy to see the little symbol there, for example in my case the little symbol is very close to the character on the left making it not stand out. If this is your case I could try to add an issue and investigate adding a larger left margin for the little symbol in the Author visual editing mode. Regards, Radu Radu Coravu <oXygen/> XML Editor http://www.oxygenxml.com On 6/28/2018 12:01 AM, Jirka Kosek wrote:
On 27.6.2018 15:06, Oxygen XML Editor Support (Radu Coravu) wrote:
In the Oxygen Preferences->"Editor" page there is a "Show TAB/NBSP/EOL/EOF Markers" checkbox.
Thanks Radu. This works perfectly in a Text mode, but not in Author mode.

On 28.6.2018 7:42, Oxygen XML Editor Support (Radu Coravu) wrote:
I tested and this setting should work in both the Text and Author editing modes. I tested by having an HTML document with the NBSP (decimal 160) character inserted in a paragraph. But depending on the font used for the Author editing mode (Preferences->Fonts) it might not be that easy to see the little symbol there, for example in my case the little symbol is very close to the character on the left making it not stand out.
Hi Radu, indeed you were right. Symbol is there but as it is much smaller in font I use in Author than in font I use in Text I have missed it. But once you know what you are looking for display is OK. Sorry for the noise and thanks. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------
participants (2)
-
Jirka Kosek
-
Oxygen XML Editor Support (Radu Coravu)