Hmm. This will be a good challenge.

1) The .java files are OK -- For example, Catal[`a] is correctly C3A0.
2) The .js files are fine.
3) In the developer console, everything is OK:

x = "Català"
"Català"
x
"Català"

4) The JavaScript is messed up:

x = J.i18n.Language.getLanguageList()[4].nativeLanguage
"Catal+�"


5) When I replace j2s/core/corejmol.z.js with  corejmol.js, it works.

x = J.i18n.Language.getLanguageList()[4].nativeLanguage
"Català"

Hooray! The Google Closure Compiler is messing up.

So you can do that yourself. This explains why it is only in the menu. I
will remove Language.js from that compression, and we should be good to go.

Bob



On Thu, Sep 15, 2016 at 3:29 AM, Angel Herráez <angel.herr...@uah.es> wrote:

> Dear Bob,
>
> I have noticed two issues with the rendering of the pop-up menu in
> JSmol-html5
>
> 1. The language submenu is way too long, and may become taller than the
> screen, so in some page designs the lower half of the languages may be
> unreachable.
>
> 2. The names of some languages display wrong characters (replaced by
> symbols by the browser)
>
> I would like to try and improve these, but I am having trouble locating
> the relevant source code where the rendering of the menu is generated. Can
> you give me a pointer?
>
> Thanks
>
> [image: graphic]
>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900

Attachment: hts_1.PNG
Description: Binary data

------------------------------------------------------------------------------
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to