<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>145335</bug_id>
          
          <creation_ts>2007-05-12 08:44:55 +0000</creation_ts>
          <short_desc>[testcase] Hyphen not rendered at soft-hyphen (&amp;shy;) linebreak</short_desc>
          <delta_ts>2009-05-23 04:57:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml</component>
          <version>3.5</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Richard G.">skunk</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>andresaule</cc>
    
    <cc>finex</cc>
    
    <cc>germain</cc>
    
    <cc>james</cc>
    
    <cc>karl</cc>
    
    <cc>kde</cc>
    
    <cc>lemma</cc>
    
    <cc>pacchiarini</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>60</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>525389</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Richard G.">skunk</who>
    <bug_when>2007-05-12 08:44:56 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.5.6)
Installed from:    Compiled From Sources
OS:                Linux

Konqueror is correctly breaking lines at &amp;shy; when necessary. However, when it breaks the line in two, it is not rendering the required hyphen at the end of the first one.

I&apos;ve reviewed the past bug reports relating to soft hyphenation, and am assuming this to be a regression, as it appears to have been working correctly in the past.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>525390</commentid>
    <comment_count>1</comment_count>
      <attachid>20545</attachid>
    <who name="Daniel Richard G.">skunk</who>
    <bug_when>2007-05-12 08:48:59 +0000</bug_when>
    <thetext>Created attachment 20545
Simple test case

For what it&apos;s worth, Opera handles this one correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>525468</commentid>
    <comment_count>2</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2007-05-12 15:30:11 +0000</bug_when>
    <thetext>It&apos;s not a regression. It used to be handled as merely a hyphen.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595988</commentid>
    <comment_count>3</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-04-21 12:22:00 +0000</bug_when>
    <thetext>tested on konqueror 4 which correctly render the page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>596385</commentid>
    <comment_count>4</comment_count>
    <who name="James Spahlinger">james</who>
    <bug_when>2008-04-23 00:27:08 +0000</bug_when>
    <thetext>No hyphens shown on 3.5.9 or 4.0.3. Firefox 3 beta 5 shows hyphens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>596391</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Leupold">lemma</who>
    <bug_when>2008-04-23 00:52:51 +0000</bug_when>
    <thetext>I can&apos;t reproduce this bug on 3.5.9, however trunk r799198 shows the reported misbehaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>625428</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Leupold">lemma</who>
    <bug_when>2008-07-16 13:25:53 +0000</bug_when>
    <thetext>Still reproducible in r832239 (4.1 branch)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636672</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Ove Hufthammer">karl</who>
    <bug_when>2008-08-12 18:37:26 +0000</bug_when>
    <thetext>Still reproducible in latest KDE 4.1 branch.

This is a very serious bug for languages that use long compound words (such as German and Norwegian), which need soft hyphens to properly display these words in narrow columns.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636674</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Ove Hufthammer">karl</who>
    <bug_when>2008-08-12 18:41:11 +0000</bug_when>
    <thetext>FYI: Bug #33855 apparently had fixed this for KDE 3, with a backport from WebCore, but this fix seems to have been lost in KDE 4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704111</commentid>
    <comment_count>9</comment_count>
    <who name="Andres">andresaule</who>
    <bug_when>2009-01-22 20:17:50 +0000</bug_when>
    <thetext>The bug exists in Konqueror 4.1.3 KDE for Windows and Konqueror 4.0.4 on OpenSUSE 11 for VMWare. In both cases, Konqueror breaks the lines but does not show the hyphen sign. (Serious bug for the Estonian language.)

In Konqueror 3.5.5 on OpenSUSE 10.2 for VMWare, the soft hyphens are rendered correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>741733</commentid>
    <comment_count>10</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2009-04-11 15:03:41 +0000</bug_when>
    <thetext>The Qt4 painter does not draw soft-hyphens, so we need to replace shown soft-hyphens with ordinary hyphens before sending the string to Qt.

OTOH we could also simplify the code now, since we don&apos;t need to cut blocks of text around soft-hyphens to hide them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>741736</commentid>
    <comment_count>11</comment_count>
      <attachid>32760</attachid>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2009-04-11 15:06:32 +0000</bug_when>
    <thetext>Created attachment 32760
Demo patch

A patch demonstrating the solution.

Note that it is not a real patch since it only handles all ordinary cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>761852</commentid>
    <comment_count>12</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-05-22 06:36:18 +0000</bug_when>
    <thetext>Thanks for the hint Allan ; it&apos;s simpler however to keep the soft-hyphen cutting code, because it ensures any soft-hyphen found at end of a run handed to Font::drawText is indeed intended to be rendered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>761855</commentid>
    <comment_count>13</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-05-22 06:43:41 +0000</bug_when>
    <thetext>SVN commit 971237 by ggarand:

adapt to change in soft-hyphen rendering strategy in Qt 4
diagnosed by Allan.

BUG: 145335


 M  +4 -2      bidi.cpp  
 M  +4 -0      font.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=971237</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>762882</commentid>
    <comment_count>14</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-05-23 04:57:51 +0000</bug_when>
    <thetext>SVN commit 971657 by ggarand:

automatically merged revision 971237:
adapt to change in soft-hyphen rendering strategy in Qt 4
diagnosed by Allan.

BUG: 145335

 M  +4 -2      bidi.cpp  
 M  +4 -0      font.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=971657</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20545</attachid>
            <date>2007-05-12 08:48:59 +0000</date>
            <delta_ts>2007-05-12 08:48:59 +0000</delta_ts>
            <desc>Simple test case</desc>
            <filename>shy.html</filename>
            <type>text/html</type>
            <size>1078</size>
            <attacher name="Daniel Richard G.">skunk</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIGh0bWwgUFVC
TElDICItLy9XM0MvL0RURCBYSFRNTCAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0
bWwxMS9EVEQveGh0bWwxMS5kdGQiPgo8aHRtbAoJeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5
OTkveGh0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2lsJnNoeTtpc3RpYyZzaHk7ZXhwaSZzaHk7YWxpJnNo
eTtkbyZzaHk7Y2lvdXMsCnN1cGVyJnNoeTtjYWxpJnNoeTtmcmFnaWwmc2h5O2lzdGljJnNoeTtl
eHBpJnNoeTthbGkmc2h5O2RvJnNoeTtjaW91cyEKPC9wPgoKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>32760</attachid>
            <date>2009-04-11 15:06:32 +0000</date>
            <delta_ts>2009-04-11 15:06:32 +0000</delta_ts>
            <desc>Demo patch</desc>
            <filename>shy-patch.diff</filename>
            <type>text/plain</type>
            <size>1367</size>
            <attacher name="Allan Sandfeld">kde</attacher>
            
              <data encoding="base64">SW5kZXg6IHJlbmRlcmluZy9mb250LmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSByZW5kZXJpbmcvZm9udC5j
cHAJKHJldmlzaW9uIDk1MjEwMikKKysrIHJlbmRlcmluZy9mb250LmNwcAkod29ya2luZyBjb3B5
KQpAQCAtODUsNyArODUsNyBAQAogICAgIHsKICAgICAgICAgcXMucHJlcGVuZChRQ2hhcigweDIw
MkQpKTsgLy8gTEVGVC1UTy1SSUdIVCBPVkVSUklERQogICAgIH0KLSAgICAKKwogICAgIFF0OjpM
YXlvdXREaXJlY3Rpb24gc2F2ZURpciA9IHAtPmxheW91dERpcmVjdGlvbigpOwogICAgIHAtPnNl
dExheW91dERpcmVjdGlvbihkKTsKICAgICBwLT5kcmF3VGV4dCh4LCB5LCBxcyk7CkBAIC0xNDEs
NyArMTQxLDkgQEAKICAgICAgICAgLy8gW3BvcywgcG9zICsgbGVuKSBzZWdtZW50LiBUaGlzIG1h
a2VzIHBhaW50aW5nICpleHRyZW1lbHkqIHNsb3cgZm9yCiAgICAgICAgIC8vIGxvbmcgcmVuZGVy
IHRleHR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