Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6529141

Hebrew character size changed

XMLWordPrintable

    • 2d
    • b14
    • generic, x86
    • generic, windows_xp
    • Verified

        FULL PRODUCT VERSION :
        5.11 and 6.0 pre release

        ADDITIONAL OS VERSION INFORMATION :
        Testing with Java Run time on Windows XP

        A DESCRIPTION OF THE PROBLEM :
        Java runtime 5.11 and 6.0 both appear to me to have a bug rendering Hebrew extended html for codes 1456 to 1474 - these should render as accents (i.e. over printing the prior letter) not as separate letters

        In 5.10 the character render correctly; in 5.11 and 6.0 they render in sequence right to left without proper overtyping for the range of codes that should render as 'accents' or diagritical marks showing vowels per the Masoretic Text markings

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        enter some text to render in html using #&nnnn where nnnn represents the Hebrew characters - eg # &amp. 1488 follwowed by # &amp 1464 - results will be right to left (correct) but the patah will render in a separate character space instead of below the alef

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        results should be that the patah (1464) renders below the alef (1488) - same for all the other codes in the range noted above with any other of the Hebrew alphabet from 1488 and above
        ACTUAL -
        results are that the vowels render to the left of the consonants instead of under them

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.awt.*;
        import java.awt.event.*;
        import javax.swing.*;
        import javax.swing.text.*;
         
        public class HTMLrenderer extends JApplet {
        public HTMLrenderer() {
        JTextPane textPane = new JTextPane();
                        textPane.setContentType("text/html");
                        String srcHTML = "<html>"
                                    +"<div style='font-family:Arial;font-size:18'
        font color='#000000'>"
         
        +"&#1502;&#1464;&#1513;&#1473;&#1456;&#1499;&#1461;&#1504;&#1460;&#1497;"
         
        +"&#1488;&#1463;&#1495;&#1458;&#1512;&#1462;&#1497;&#1498;&#1464;"
         
        +"&#1504;&#1468;&#1464;&#1512;&#1493;&#1468;&#1510;&#1464;&#1492;"
         
        +"&#1492;&#1457;&#1489;&#1460;&#1497;&#1488;&#1463;&#1504;&#1460;&#1497;"
         
        +"&#1492;&#1463;&#1502;&#1468;&#1462;&#1500;&#1462;&#1498;&#1456;"
         
        +"&#1495;&#1458;&#1491;&#1464;&#1512;&#1464;&#1497;&#1493;"
         
        +"&#1504;&#1464;&#1490;&#1460;&#1497;&#1500;&#1464;&#1492;"
         
        +"&#1493;&#1456;&#1504;&#1460;&#1513;&#1474;&#1456;&#1502;&#1456;&#1495;&#14
        64"
                                    +";&#1492; &#1489;&#1468;&#1464;&#1498;&#1456;"
         
        +"&#1504;&#1463;&#1494;&#1456;&#1499;&#1468;&#1460;&#1497;&#1512;&#1464;&#14
        92"
                                    +";
        &#1491;&#1465;&#1491;&#1462;&#1497;&#1498;&#1464;"
         
        +"&#1502;&#1460;&#1497;&#1468;&#1463;&#1497;&#1460;&#1503;"
         
        +"&#1502;&#1461;&#1497;&#1513;&#1473;&#1464;&#1512;&#1460;&#1497;&#1501;"
         
        +"&#1488;&#1458;&#1492;&#1461;&#1489;&#1493;&#1468;&#1498;&#1464;"
                                    +"</div></html>";


        textPane.setText(srcHTML);
        JScrollPane scrollPane = new JScrollPane(textPane);
        scrollPane.setPreferredSize( new Dimension(300,300));
        getContentPane().add(scrollPane);
        }

        Here's the test page we used to invoke the above
        <html>
         <head>
          <title>JTextPane</title>
         </head>
         <body>
          <h1></h1>
          <hr>
          <applet code="HTMLrenderer.class" width="400" height="400">alt="Your
        browser
           understands the &lt;APPLET&gt; tag but isn't running the applet, for some

           reason." Your browser is completely ignoring the &lt;APPLET&gt; tag!
        </applet>
          <hr>
          <a href="HTMLrenderer.class">The source</a>.
         </body>
        </html>

        ---------- END SOURCE ----------


        CUSTOMER SUBMITTED WORKAROUND :
        there is no workaround
        Attached 510.jpg and 6.jpg are outputs from Java 5 Update 10 and Java 6.

              srl Steven Loomis
              ryeung Roger Yeung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: