cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

viewing no-break space

ptc-957266
1-Newbie

viewing no-break space

Hi,

I'm testing Arbortext Editor 5.4 M080 (Windows environment).

I'm trying to render the "no-break space' (U+00A0) to "underscore" (U+0332) so there can be seen a difference in the editor between a normal space and a no-break space. This is only for viewing purposes so the underlying character in the file should not be affected.

I tried to do this by copying the files:
c:\Program Files\PTC\Arbortext Editor\lib\charent.cf
c:\Program Files\PTC\Arbortext Editor\lib\charmap.cf
to another place and reference them with the environment variables:
APTCHENTPATH ......\lib\charent.cf
APTCHENTMAP ......\lib\charmap.cf
and to the changes in these copied files.

Unfortunately I don't succeed to tackle this.

Can somebody explain how to do this or what I'm doing wrong?

I would like to do this for 2 environments:
- An sgml environment where the no-break space is coded as the named character entity
- An xml environment where the no-break space is encoded as an UTF-8 encoded character (not as an entity but the 2 bytes: 0xC2 0xA0).

Thanks for any help,
Michiel
2 REPLIES 2

Hi Michiel,

If you turn on 'Show spaces' in Editor [Tools|Preferences|View|Show|Spaces and Tabs], it will indicate regular spaces with a dot. Non-breaking spaces will have no dot.

Perhaps this would be sufficient for your requirement.

If you do need to modify charent.cf, check that you aren't making your modification in a 'unixonly' section of the file. It is divided into several sections marked 'unixonly' and 'windowsonly'.

Hope this may help.

Cheers,

David

David S. Taylor

Project Manager, Structured Information
Institute for Research in Construction
National Research Council Canada
Bldg. M-23A, Room 239
1200 Montreal Road, Ottawa, ON K1A 0R6

Tel:+1.613.990.2731
Fax:+1.613.952.4040
Email: David.S.Taylor@nrc-cnrc.gc.ca
Web: www.irc.nrc-cnrc.gc.ca


There was a long e-mail exchange on this back in November 2010. You might
find some value in those e-mails. I posted some code that finds and wraps
the leading word, the , and the trailing word in a Pub font PI which I
style red or green or something in the screen stylesheet for visibility.
Code also provided to strip the PIs which offend some of our post Arbortext
production systems.

On Fri, Apr 15, 2011 at 3:00 AM, Vanhoutte Michiel <
michiel.vanhoutte@kluwer.be> wrote:

> Hi,
>
> I'm testing Arbortext Editor 5.4 M080 (Windows environment).
>
> I'm trying to render the "no-break space' (U+00A0) to "underscore" (U+0332)
> so there can be seen a difference in the editor between a normal space and a
> no-break space. This is only for viewing purposes so the underlying
> character in the file should not be affected.
>
> I tried to do this by copying the files:
> c:\Program Files\PTC\Arbortext Editor\lib\charent.cf
> c:\Program Files\PTC\Arbortext Editor\lib\charmap.cf
> to another place and reference them with the environment variables:
> APTCHENTPATH ......\lib\charent.cf
> APTCHENTMAP ......\lib\charmap.cf
> and to the changes in these copied files.
>
> Unfortunately I don't succeed to tackle this.
>
> Can somebody explain how to do this or what I'm doing wrong?
>
> I would like to do this for 2 environments:
> - An sgml environment where the no-break space is coded as the named
> character entity
> - An xml environment where the no-break space is encoded as an UTF-8
> encoded character (not as an entity but the 2 bytes: 0xC2 0xA0).
>
> Thanks for any help,
> Michiel
>
Announcements