jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
55 stars 29 forks source link

[Bug]: Variable Name with Japanese is truncated opening a ods file #2789

Open momoldo opened 1 week ago

momoldo commented 1 week ago

JASP Version

0.18.3

Commit ID

No response

JASP Module

Unrelated

What analysis are you seeing the problem on?

No response

What OS are you seeing the problem on?

macOS Silicon

Bug Description

I attempted this ods file to JASP. image

This is a result opend in JASP image

The name of the fifth variable consists five Kanji characters, but after opening in JASP, this consists three Kanji characters. This situation don't happen when I open csv file. It's not a serious problem, but kanji characters in a csv file sometimes happen another problem when it opened.

Expected Behaviour

It is not serious. If it is easy to repair, I need to repair the problem.

Steps to Reproduce

I can't recognize what kanji character happens this problem.

Log (if any)

No response

Final Checklist

boutinb commented 1 week ago

@shun2wang did you ever have this problem?

shun2wang commented 1 week ago

I didn't saw this problem,.@momoldo could you please share your .ods file and we will have a look?

momoldo commented 1 week ago

Thank you for your reply.

This file causes this problem... 小売価格2020年6月.ods

I'm checking if another ods file causes same problem. This file "testfile.ods" is no problem. testfile.ods

Do this file "testfile2.ods" causes problem? testfile2.ods

momoldo commented 1 week ago

"珈琲" is something wrong.

Testfile3.ods hos three variables "追手門学院大学", "コメダ珈琲" and "珈琲Shop". testfile3.ods

The name of the second variable changes "コメダ" and the third changes "珈琲". Is "珈琲" a naughty word?

shun2wang commented 6 days ago

yeah, confirmed this is a importing ods problems, if rows names in text:p then we read them as names. because we read xml depth at text:p, seems libreOffice/MS-Office will merge them and ignore ruby-xxx?

see:

<table:table-cell office:value-type="string" table:style-name="ce2">
    <text:p>
        <text:ruby text:style-name="ru1">
            <text:ruby-base>喫茶店</text:ruby-base>
              <text:ruby-text text:style-name="T5">キッサテン </text:ruby-text>
              </text:ruby>
        <text:ruby text:style-name="ru1">
            <text:ruby-base>珈琲</text:ruby-base>
            <text:ruby-text text:style-name="T5">コーヒー </text:ruby-text>
        </text:ruby>
    </text:p>
</table:table-cell>

and

<table:table-cell office:value-type="string" table:style-name="ce2">
    <text:p>
        <text:ruby text:style-name="ru1">
            <text:ruby-base>都市名</text:ruby-base>
            <text:ruby-text text:style-name="T5">トシメイ </text:ruby-text>
       </text:ruby>
    </text:p>
</table:table-cell>
momoldo commented 3 days ago

Thank you for your job! I understood it.