Hyphenation in a table cell.

Solaris XPP 8.4C.1 SP6

I need to be able to specify dictionary/logical hyphenation for individual table cells (CALS). I can't use the t5 exception rule method since I cannot tell the actual cell prior to composition. I only know that I need to allow hyphenation of the content of the cell. I tried a <chgcell;tj;1> macro after the <entry> macro without success. Is this another wish list item or has it been implemented in XPP 9?

 

Barry Frank

  • Hi Barry,

    Since the expansion of the <chgcell> macro is <$1;$2>, then that means that doing <chgcell;tj;1> should be the equivalent of directly doing <tj;1> (or <?tj;1?> if in XML mode).

    I would think that doing that after the <entry> tag should have changed the active H&J table for that cell, unless something else is going on.

    I just tried it in a random XML sample job and added <?tj;1?> in a table cell after an <entry> tag (where the cell had no other macros or coding in the cell) and Line Status showed H&J: 8 before I composed and H&J: 1 after I composed.

    After you composed, did you check Line Status to see if it said H&J: 1?

    If not, or if it does but you are still not getting the hyphenation results you are expecting, then you should probably open up a ticket (Case) with Support.

    Jonathan Dagresta
    RWS Group/
    XPP Development

  • Thanks Jonathan. I will check using your suggestion. The data in the cell is a persons last name in this case, so logical hyphenation may not break it. Since we are at 8.4, I won't be opening a ticket. You can mark this as closed and thank you again.
  • And just to follow-up on my previous answer, I created an extremely long word "telecommunicationsdevicemanufacturer" and using the chgcell macro it did hyphenate.
  • Hi Barry,

    As far as "marking this as closed" (or answered), I cannot do that. I believe the person who opened the thread (i.e. in this case you) can mark a "suggested answer" as the answer (and perhaps one of the XyUser Group administrators can also do it). However, I'm not sure how you do it; perhaps there's an extra button or extra option under More when the originator is viewing a suggested answer.

    As far as getting something like a proper name to hyphenate, where the algorithmic hyphenation might give no or few hyphenation points (if your H&J table is allowing algorithmic hyphenation, which it may not and for proper names that might not give good hyphenation points anyway), then you have the option to add the name with hyphenation points to a custom Hyphenation Exception dictionary.

    On-the-fly you also could try adding <hd> macros (or an <hp> macro, but use <hp> with caution - see the documentation) in the word where you want to allow the word to hyphenate.

    You are probably already aware of those features.

    Jonathan Dagresta
    RWS Group/
    XPP Development

  • I accepted your first reply as the answer...so this question is officially marked as 'answered'