Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Andy,
Since this behavior is the default by the Editor, it will cycle through the two quotes and three dashes each time you press the key. Which one it starts with is determined by the character before the cursor.
To the best of my knowledge, there are at least 3 methods to attack this. The first is through the "charSubFilter.ent" file. You can search for this method in the Help Center. I haven't used it.
The second is through the DCF file, but of course you're not using a DCF when you're working on a DTD.
The third method (the one I use to remove this behavior) is to remap the the keys. In my initialization file, I map the single quote, double quote and dash key to themselves. For example:
map all - { insert( "-" ) ; }
This effectively removes the automatic character substitution always giving you the basic "dash".
Hope this helps,
Bob
In Reply to Andy Esslinger:
Fellow Adepters,
I just hit the strangest problem. I used Arbortext Document Architect 5.3m040 to edit a new SGML DTD. When I tried to compile the DTD it failed. It produced this error message:
Root cause: The Arbortext DTD editor used illegal characters such as a long dash where I entered two hyphens and curly quotes instead of straight quotes in a place where I typed in a comment:
I discovered that the illegal characters were entered any time I tried to type in something that has a Microsoft alternate character, but unlike MS, Arbortext doesn't seem to provide a way to turn off this behavior.
What is the magic setting to make Arbortext's DTD editor use only legal characters?
I know that version 5.3m040 is not the most current (Standard support for v5.3 ended March 1, 2011), but I cannot upgrade to 5.4 or a higher version. I'm hoping that there is a way to change it in this version.
Thanks,
-Andy
\ / Andy Esslinger LM Aero - Tech Order Data
______-/\-______ (817) 279-0442 1 Lockheed Blvd, MZ 4285
\_\/_/ (817) 777-3047 Fort Worth, TX 76108-3916
Andy,
I've got the following code in all my custom\init envirornments for the start up files:
# Map '-' to be ‐ thereby eliminating character substitution
map all - {
insert( "-" ) ;
}
# Map NumPad '-' to be ‐ thereby eliminating character substitution
map all Num_- {
insert( "-" ) ;
}
# Map " to be &qu; thereby eliminating character substitution
map all " {
insert( " ) ;
}
# Map " to be ' thereby eliminating character substitution '
map all ' {
insert( " ) ;
}
With this code inactive, if I type 2 '-' back-to-back, I get the single emdash. If I use the <ctrl+shift+->, I get 2 '-' characters, but I believe this behavior is stictly within the DTD editor.
With this code active, no matter where I type within the Arbortext evnironment, I get the expected keystrokes giving the expected characters. If I want an en-dash or em-dash, I can use the <ctrl+-> to cycle to the one I want. As for the curly quotes, we simply don't use them.
I've used this method for years. It effectly turns off the character substitution throughout the Arbortext suite.
Hope this helps,
Bob