Hyphens become visible in eight-character words before punctuation

shannonxtreme
Posts: 12

Hyphens become visible in eight-character words before punctuation

Fri Feb 15, 2019 11:47 pm

Generating outputs using PDF (DITA and CSS)

I'm using the overflow-wrap: break-word CSS attribute to wrap long words in table cells. I'm also using -oxy-hyphenation-character: " "; to remove the hyphen in wrapped words. The problem is, words with 8 or more letters before a punctuation symbol have a hyphen inserted in them.

Code: Select all

*[class~="topic/table"] {
   table-layout:fixed;
   border: none;
   width: 100%;
   overflow-wrap: break-word;
   -oxy-hyphenation-character: " "; /* removes hyphens in line-broken words */
}


For a sample XML as shown below:

Code: Select all

   
        <table id="table_57F77DFD75244344925AA64B43216F5E">
        <title>First Table In the Table List</title>
        <tgroup cols="2"><colspec colnum="1" colname="col1"
          colwidth="2in"/><colspec colnum="2" colname="col2" colwidth="4.85in"/><thead>
            <row>
              <entry colname="col1">Field
              </entry>
              <entry colname="col2">Description
              </entry>
            </row></thead>
          <tbody>
            <row>
              <entry colname="col1">
                <p>Account
                </p>
              </entry>
              <entry colname="col2">
                <p> Account number on the transaction.
                </p>
                <p> Weird-Detl.Account
                </p>
                <p>Format is alphanumeric.
                </p>
              </entry>
            </row>


The output is all fine except for the following:

Account number on the transaction-.
Weird-Detl.Account
Format is alphanumeric-.

The hyphen after alphanumeric and transaction shouldn't be there. Even more strangely, copy-pasting that character into a text editor parses it into a blank, not a hyphen.

How do I stop it from being printed as a hyphen onto my PDF?
Costin
Posts: 504

Re: Hyphens become visible in eight-character words before punctuation

Tue Feb 19, 2019 5:03 pm

Hi,

Thank you for the feedback!
I managed to reproduce the issue based on the feedback you provided.

However, a lot of issues was solved and improvements were implemented (many of them related to hyphenation) in our internal development stream.
I've just tested with the latest nightly development build of the version 21of the publishing engine and the issue is no more.
That means the issue will no longer persist in the next version whose release is imminent (it should occur until this week's end).

Best Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
shannonxtreme
Posts: 12

Re: Hyphens become visible in eight-character words before punctuation

Tue Feb 19, 2019 7:21 pm

Costin wrote:Hi,

Thank you for the feedback!
I managed to reproduce the issue based on the feedback you provided.

However, a lot of issues was solved and improvements were implemented (many of them related to hyphenation) in our internal development stream.
I've just tested with the latest nightly development build of the version 21of the publishing engine and the issue is no more.
That means the issue will no longer persist in the next version whose release is imminent (it should occur until this week's end).

Best Regards,
Costin


Hi Costin, thanks for your reply! Will this issue/resolution be included in the Release Notes for that particular release so we can keep an eye out and update our systems?
Costin
Posts: 504

Re: Hyphens become visible in eight-character words before punctuation

Thu Feb 21, 2019 1:50 pm

Hi,

I checked in our internal tracking system and this bug fix won't be specifically documented in the release notes.

However, you should just note that the release is imminent (it should occur today or, at latest, tomorrow).

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest