Skip to main content
Known Participant
July 8, 2009
Answered

How to round-trip a "suppress hyphenation symbol"?

  • July 8, 2009
  • 1 reply
  • 4246 views

Hi all,

I can't find any information in the ref or dev guides on how to map a "suppress hyphenation symbol" from Frame to XML.

Van -- are you reading this?  I've seen your recent post that says to create an element representing it (actually you were talking specifically about nonbreaking hyphens and spaces but I think this would be similar) in the EDD, but I can't tell how to do that.  It would be an element that contained a "suppress hyhenation symbol" itself -- created by doing:  "Esc n s"  in the actual document, but I"m not sure what type of element I should create, or how to do it.  I get about this far:

Element (Container): SuppressHyphen
  General rule:    <TEXT>
  Prefix rules
    In all contexts.
      Text range.

...then I can't tell how to actually insert the symbol.

Alternatively, perhaps I could do it in the read/write rules, but I don't see any Frame documentation that mentions how to map a suppress hyphen symbol. I don't know how Frame represents it internally -- as an entity?

Any ideas?

Thanks,

Shelley Hoose

This topic has been closed for replies.
Correct answer Van Kurtz

Shelley,

I forgot to add that if the only purpose of the element is to insert the suppress hyphenation symbol, then the General Rule should be <EMPTY>, not <TEXT>. If set to text, when you enter the element, the insertion point will be inside the element, waiting for the user to type text. Because there is no text to type, the user has to  move the insertion point outside the element to continue.

Van

1 reply

Inspiring
July 9, 2009

Shelley,

1) No need for the TextRangeFormatting element in your prefix rule.

Instead, insert a Prefix element and type the character you as the prefix,

just as you would type it in the document.

2) As a sibling of the PrefixRules, insert a TextFormatRules element.

Within the TextFormatRules, insert an AllContextRule, and within that

element, a TextRangeFormatting element.

--Lynne

Lynne A. Price

Text Structure Consulting, Inc.

Specializing in structured FrameMaker consulting, application development,

and training

lprice@txstruct.com http://www.txstruct.com

voice/fax: (510) 583-1505 cell phone: (510) 421-2284

Van Kurtz
Inspiring
July 9, 2009

Shelley,

With regard to Lynne's second point, you need the sibling TextFormatRules element to tell Frame that the content of the element is NOT to be treated as a paragraph. Without it, Frame will insert a line break after the element.

The TextRangeFormatting element INSIDE the prefix rule is need ONLY if you need to format the prefix differently from the content of the element. In your case, the element has no content, so the element is unnecessary.

Regarding entering the suppress hyphenation symbol, you can also use the two characters backslash, underscore; in case the escape sequence does not work.

There is a nice little table of these character sequences at www.jetsetcom.net

Van

Van Kurtz
Van KurtzCorrect answer
Inspiring
July 9, 2009

Shelley,

I forgot to add that if the only purpose of the element is to insert the suppress hyphenation symbol, then the General Rule should be <EMPTY>, not <TEXT>. If set to text, when you enter the element, the insertion point will be inside the element, waiting for the user to type text. Because there is no text to type, the user has to  move the insertion point outside the element to continue.

Van