This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 42156 - Help index sorting is wrong for ja locale.
Summary: Help index sorting is wrong for ja locale.
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Help System (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-20 08:27 UTC by yasuhiro
Modified: 2008-12-22 21:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yasuhiro 2004-04-20 08:27:50 UTC
From 3.6 release on, the help indexes are sorted.
I guess this is the sepc for new help system
(javehelp 2).

This sorting algorithm is OK for English.
But in case on ja locale, it might make the
displaying go wrong.

Because Japanese dictionary sorting does not
depend on the font code but the Japanese
pronunciation.

The same Japanese pronunciation can be described
by the 3 types of characters.
(Hiragana, Katakana and Kanji) 
So, when sorting Japanese messages by its font
code, the sorting is out of truth.

I think the sorting function or spec is good for
English. But for Japanese, not.

Japanese localizers beautify *-idx.xml for the
index so that messages are displayed correctly.
One of solution for it is:
stopping sorting indexes when ja locale.
It means keeping the xml structure for displaying.
Comment 1 mslama 2004-05-17 15:47:23 UTC
The reason is that SortMerge mergetype is used for index in
core/javahelp/src/org/netbeans/modules/javahelp/resources/masterHelpSet.xml.
I think you can brand this file and use AppendMerge for Index. Let me
know if it works so I can close this issue.
Comment 2 yasuhiro 2004-05-18 06:17:38 UTC
Hi Marek,

I know masterHelpSet.xml is one of localizable files.
But I am not familiar with it.
I do not see the xml description for sorting in the original file,
so I can not edit the ja file to stop sorting.

If you have or you can point any document for it,
please let me know.

Yasuhiro
Comment 3 mslama 2004-05-18 08:21:11 UTC
in
core/javahelp/src/org/netbeans/modules/javahelp/resources/masterHelpSet.xml
Instead of:
  <view mergetype="javax.help.SortMerge">
    <name>Index</name>
    <label>Index</label>
    <type>javax.help.IndexView</type>
  </view>
use
  <view mergetype="javax.help.AppendMerge">
    <name>Index</name>
    <label>Index</label>
    <type>javax.help.IndexView</type>
  </view>

You can see http://java.sun.com/products/javahelp/helpset_2_0.dtd
and/or Users's Guide of Java Help section 4.17 (or search for
'mergetype' in it).
 
Comment 4 yasuhiro 2004-05-18 10:22:31 UTC
Thank you, Marek.

I verified and understood the different behavior
between SortMerge and AppendMerge.
After discussing the issue with l10n team,
we probably use SortMerge from next release on.

You can close the issue
Comment 5 yasuhiro 2004-05-18 10:27:43 UTC
Sorry for my typo.

we probably use SortMerge from next release on.
                ^^^^^^^^^
SortMerge -> AppendMerge

Yasuhiro
Comment 6 mslama 2004-05-18 10:42:26 UTC
Ok. Closing as WONTFIX as it will be solved by branding of
masterHelpSet.xml.
Comment 7 Marian Mirilovic 2005-01-25 08:19:38 UTC
v/c