Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error:The Class names Chinese-named are not supported in Windows Pro(Running Protege-5.5.0-beta-7-win )(在Win10平台上Protege-5.5.0-beta-7-win 无法显示中文命名的类名) #824

Closed
P-Zhu opened this issue Jan 9, 2019 · 15 comments
Assignees
Labels
Status: Fixed Added to indicate that a closed issue represents a bug that has been fixed Type: Critical Bug A type of bug that causes Protege to not start, not load/save ontologies, data loss etc.

Comments

@P-Zhu
Copy link

P-Zhu commented Jan 9, 2019

Protege-5.5.0-beta-7 cannot display the class names Chinese-named in Windows 10 Pro and Ubuntu!

我下载的 Protege-5.5.0-beta-7-win.zip 在Windows10 Pro中无法显示中文命名的类名!
换了多台电脑测试以及在虚拟机中安装全新Win10环境,都无法正常显示 中文命名的类名。

Detail:
OS:Windows 10 Pro
OS Version:10.0.17134 Build 17134(1803)
OS Language:Simplified Chinese
Software Package:Protege-5.5.0-beta-7-win.zip

OS:Ubuntu
OS Descributor:Ubuntu 18.04.1 LTS
OS Language:Simplified Chinese
Software Package:Protege-5.5.0-beta-7-linux.tar.gz

image
Since the Protege5 I downloaded does not support chinese-named class names, this test ontology file is created with Protege4.3 after replacing "bin\felix. jar"
Download the test Ontology:Test Ontology.zip
image


Other(Protege-5.2.0-win.zip):
image

@P-Zhu P-Zhu changed the title Chinese class names are not supported in version 5 of protégé(protégé5 无法显示中文的类名) Chinese-named of the Class name are not supported in version 5 of protégé(protégé5 无法显示中文的类名) Jan 9, 2019
@P-Zhu P-Zhu changed the title Chinese-named of the Class name are not supported in version 5 of protégé(protégé5 无法显示中文的类名) Error:Chinese-named of the Class name are not supported in version 5 of protégé(protégé5 无法显示中文的类名) Jan 9, 2019
@matthewhorridge
Copy link
Contributor

Would you be able to post a test ontology for me to look at?

@P-Zhu
Copy link
Author

P-Zhu commented Jan 10, 2019

Since the Protege5 I downloaded does not support chinese-named class names, this test ontology file is created with Protege4.3 after replacing "bin\felix. jar"
Download the test Ontology:Test Ontology.zip
owlviz
tim 20190110124254

@matthewhorridge
Copy link
Contributor

Thanks for this. I'll take a look at it. A further question: Which version of Protege are you using? Windows? Platform Independent?

@matthewhorridge
Copy link
Contributor

I can't reproduce this on my Mac (see below). Will see if other colleagues (cc @csnyulas) can reproduce this.

image

@matthewhorridge matthewhorridge transferred this issue from protegeproject/protege-distribution Jan 10, 2019
@matthewhorridge
Copy link
Contributor

I've moved this issue into the main Protege repo

@protegeproject protegeproject locked and limited conversation to collaborators Jan 10, 2019
@protegeproject protegeproject unlocked this conversation Jan 10, 2019
@csnyulas
Copy link
Member

I can reproduce this problem also in Ubuntu and P5.5 beta 5 (Linux version with JRE included):

image


Note: At first I did not see the placeholder boxes, but rather the local name displayed:
image

In order to see the Chinese labels (with the missing Chinese characters). I had to change the languages settings for the Annotation Renderer (File -> Preferences... -> Renderer -> Entity Rendering -> Configure...) from en, en-US, ! to en, en-US, zh, !. Shouldn't the ! stand for any further language? Or is it for no language tag specified? If this is a bug, we should create a separate issue for it.

@matthewhorridge
Copy link
Contributor

@csnyulas, for completeness, can you still reproduce this with the platform independent version?

@matthewhorridge matthewhorridge added Type: Bug Indicates that Protege is not working as expected Status: Reproduced For issues that are (critical) bugs, denotes that the bug is reproduced, but no further action taken labels Jan 10, 2019
@csnyulas
Copy link
Member

csnyulas commented Jan 10, 2019

The same happens with the platform independent version as well (running P5.5-beta-7 with Java 8, both oracle and openjdk). After I installed the language support libraries for Ubuntu, and also the specific language packages for both simplified and traditional Chinese, the class names in the view titles and breadcrumbs looked differently (a bit nicer, and more complicated, to my lay eyes), however the class names were still not shown in the class hierarchy, and annotations values in class description view:

image

My hunch is that, since in some parts of the UI, such as view titles and breadcrumbs, we do see the Chinese characters displayed properly, this is not a Java or OS problems, but rather some bug.

@P-Zhu P-Zhu changed the title Error:Chinese-named of the Class name are not supported in version 5 of protégé(protégé5 无法显示中文的类名) Error:The Class names Chinese-named are not supported in Windows Pro(1803-17134.472) , running Protégé Platform 5.5.0-beta-7(在Win10平台上Protégé5.5.0-beta-7 无法显示中文命名的类名) Jan 11, 2019
@P-Zhu P-Zhu changed the title Error:The Class names Chinese-named are not supported in Windows Pro(1803-17134.472) , running Protégé Platform 5.5.0-beta-7(在Win10平台上Protégé5.5.0-beta-7 无法显示中文命名的类名) Error:The Class names Chinese-named are not supported in Windows Pro(1803-17134.472) , running Protege-5.5.0-beta-7-win(在Win10平台上Protege-5.5.0-beta-7-win 无法显示中文命名的类名) Jan 11, 2019
@P-Zhu P-Zhu changed the title Error:The Class names Chinese-named are not supported in Windows Pro(1803-17134.472) , running Protege-5.5.0-beta-7-win(在Win10平台上Protege-5.5.0-beta-7-win 无法显示中文命名的类名) Error:The Class names Chinese-named are not supported in Windows Pro(Running Protege-5.5.0-beta-7-win )(在Win10平台上Protege-5.5.0-beta-7-win 无法显示中文命名的类名) Jan 11, 2019
@matthewhorridge matthewhorridge added Priority: High Type: Critical Bug A type of bug that causes Protege to not start, not load/save ontologies, data loss etc. and removed Priority: High Type: Bug Indicates that Protege is not working as expected labels Jan 14, 2019
matthewhorridge added a commit that referenced this issue Jan 14, 2019
@matthewhorridge matthewhorridge added Status: Waiting for Feedback Indicates that the person who is working on the issue needs feedback from someone else and removed Status: Reproduced For issues that are (critical) bugs, denotes that the bug is reproduced, but no further action taken labels Jan 14, 2019
@matthewhorridge
Copy link
Contributor

I believe the above commit fixes this issue. We'll produce a beta-8 release soon and we'll wait for your feedback before closing this issue @P-Zhu

@matthewhorridge matthewhorridge added this to the Protégé 5.5.0 milestone Jan 14, 2019
@matthewhorridge
Copy link
Contributor

@P-Zhu We've just released 5.5.0-beta-8 that we hopes fixes this issue. Please can you have a look and verify that it fixes the problem on your machine?

The Windows version is here:
https://github.com/protegeproject/protege-distribution/releases/download/v5.5.0-beta-8/Protege-5.5.0-beta-8-win.zip

@matthewhorridge matthewhorridge self-assigned this Jan 15, 2019
@matthewhorridge matthewhorridge added Status: Waiting to Close Indicated that we expect that the issue can be closed soon if no further comments are received. and removed Status: Waiting for Feedback Indicates that the person who is working on the issue needs feedback from someone else labels Jan 15, 2019
@csnyulas
Copy link
Member

BTW, I tested this on my Win 7 testing machine, and it still does not show the Chinese characters. :(

I probably don't have all the necessary fonts installed. Tried to install some Chinese characters¸but without success so far. I am thinking, though, that these should be Unicode characters, and dealt with it by Java, right?

I am really curious if it works for @P-Zhu or anyone with Windows 10 and the appropriate Chinese character set installed.

@matthewhorridge
Copy link
Contributor

@csnyulas I'm encouraged by the fact that it worked on Linux, when it didn't before. @P-Zhu any chance you could take a look at this and let us know?

@P-Zhu
Copy link
Author

P-Zhu commented Jan 20, 2019

Thank you very much @matthewhorridge
Download the test Ontology:Test Ontology.zip
Use the Protege-5.5.0-beta-8
The problem has been solved with Windows 10 (Protege-5.5.0-beta-8-win.zip) , but there are still some problems with the ubuntu platform (Protege-5.5.0-beta-8-linux.tar.gz)
image

@csnyulas
Copy link
Member

@P-Zhu please see the end of my earlier comment where I explain how I needed to change the rendering preferences in order to see the Chinese labels.

@matthewhorridge
Copy link
Contributor

@P-Zhu thanks for the feedback. Good to know the problem has been solved for Windows. We also believe that this problem is solved for Linux as it now works as expected on our machines here and a related bug to do with the display of ligatures over different platforms has been fixed.

@csnyulas says, the rendering in your Linux screenshot is an artifact of the display preferences not being set up.

I'm therefore closing this issue.

@matthewhorridge matthewhorridge added Status: Fixed Added to indicate that a closed issue represents a bug that has been fixed and removed Status: Waiting to Close Indicated that we expect that the issue can be closed soon if no further comments are received. labels Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Fixed Added to indicate that a closed issue represents a bug that has been fixed Type: Critical Bug A type of bug that causes Protege to not start, not load/save ontologies, data loss etc.
Projects
None yet
Development

No branches or pull requests

3 participants