Bug 8880 - Input method help fails to load - parser error
: Input method help fails to load - parser error
Status: CLOSED DUPLICATE of bug 2897
Product: opensolaris
i18n-l10n
: 200906
: ANY/Generic OpenSolaris
: P2 major (vote)
: ---
Assigned To: Watcher account for opensolaris/g11n
: Watcher account for opensolaris/g11n
:
: rn-2009.06
:
:
:
  Show dependency treegraph
 
Reported: 2009-05-13 03:14 UTC by Jürgen Keil
Modified: 2009-11-09 10:06 UTC (History)
7 users (show)

See Also:


Attachments
error message from gnome-help (62.52 KB, image/png)
2009-05-13 03:14 UTC, Jürgen Keil
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.


Description Jürgen Keil 2009-05-13 03:14:50 UTC
Created an attachment (id=1929) [details]
error message from gnome-help

OpenSolaris 2009.06 build 111a:  When trying to open input method switcher's
help in the german locale, a gnome help viewer window opens and
complains about invalid xml document in file 
/usr/share/gnome/help/iiim-properties/de/iiim-properties.xml

No help file is displayed.

The english / C locale version of the help file displays ok.


Repeat with:

> gnome-help /usr/share/gnome/help/iiim-properties/de/iiim-properties.xml


xmllint on that file complains about unknown entities like "uuml".

> xmllint /usr/share/gnome/help/iiim-properties/de/iiim-properties.xml |& more
Entity: line 1: parser error : Entity 'uuml' not defined
Editor für Eingabemethoden-Einstellungen
              ^
/usr/share/gnome/help/iiim-properties/de/iiim-properties.xml:27: parser error : 
Entity 'appname' failed to parse
         <title>&appname;</title>
                         ^
....
Comment 1 Jan Hlodan 2009-05-13 05:59:12 UTC
This happens when xml file contains special characters in the header.
I can reproduce it for these languages: es, pt_BR, de, fr, it and ZH_CN
Comment 2 Martin Daum 2009-05-13 08:04:03 UTC
Detailed description of the invalid strings (undefined entities) in the xml
files. (and some other minor bugs)

iiim-properties.xml
==========

de_DE
----------
&uuml, &auml, &szlig, &ouml

es_ES
----------
&oacute, &eacute, &iacute, &aacute, &uacute

fr_FR
----------
&eacute, &ecirc, &ccedil, &nbsp, &agrave, &ocirc, &icirc, &ocirc

hu_HU
----------
Launched ok, no undefined entities used apparently

it_IT
----------
Terminal outputs parsing errors. The help window is launched successfuly
though.

sv_SE
----------
&ouml, &aring, &auml, &ndash, 

pt_BR
----------
&ecirc, &eacute, &ccedil, &atilde, &uacute, &aacute, &iacute, &agrave, &acirc, 

ja_JA
----------
Launched ok, no undefined entities used apparently

zh_CN
----------
Terminal outputs parsing errors. The help window is launched successfuly
though.

zh_HK
----------
Launched ok, no undefined entities used apparently

zh_TW
----------
Launched ok, no undefined entities used apparently

evolution
==========

cs_CZ
----------
Launched ok, no undefined entities used apparently

package-manager.xml
==========

unmatched element: subtopic (for all languages)

zh_CN
----------
Terminal reports an error: Unrecognized number formatterL cjk-chinese-simp.
The help window was launched successfully though.

WILL FINISH CHECKING THE DDU XML FILES TOMORROW AND PROVIDE A REPORT WHETHER
THERE WERE ANY BUGS.
Comment 3 Fuyuki Hasegawa 2009-05-13 23:44:20 UTC
The root cause is that required xml data files are not installed.
I'm closing this bug as duplicate of Bug 2897 (SUNWgnome-xml should be
refactored to reduce CD space consumption). Due to CD space limitation,
SUNWgnome-xml has been removed from live CD from 2008.11 releases.

Workaround is to install SUNWgnome-xml from pkg.opensolaris.org.

And then, manually execute the following script.

$ pfexec /usr/share/sgml/docbook/docbook-catalog-install.sh

This script is executed on Nevada by postinstall script, but
currently it doesn't automatically during install, by SMF service
or anything else on OpenSolaris.

Looks like you should also pay attention to Bug 7936 (Running
docbook-catalog-install.sh more than once seems to corrupt
docbook installation).

For the iiim-properties.xml, we will try to convert it to
use UTF-8 characters instead of entities in order to avoid
the missing xml data issue.
Comment 4 Fuyuki Hasegawa 2009-05-14 02:40:40 UTC
*** This bug has been marked as a duplicate of bug 2897 ***
Comment 5 Fuyuki Hasegawa 2009-05-14 02:50:26 UTC
I requested to add the workaround in 2009.06 Release Note.
Comment 6 Fuyuki Hasegawa 2009-11-09 10:06:44 UTC
*** Bug 12489 has been marked as a duplicate of this bug. ***