Page 1 of 1

Hyphens become visible in eight-character words before punctuation

Posted: Fri Feb 15, 2019 11:47 pm
by shannonxtreme
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?

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

Posted: Tue Feb 19, 2019 5:03 pm
by Costin
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

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

Posted: Tue Feb 19, 2019 7:21 pm
by shannonxtreme
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?

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

Posted: Thu Feb 21, 2019 1:50 pm
by Costin
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