Giter Club home page Giter Club logo

Comments (7)

tfussell avatar tfussell commented on May 18, 2024

Nice debugging work. I've added a fix to the shared strings serialization code that should take care of this for you. I'm currently refactoring much of the serialization so I don't want to spend too much time on making this more performant (specifically removing duplicates after loading the workbook).

from xlnt.

adam-nielsen avatar adam-nielsen commented on May 18, 2024

Perfect, many thanks! Performance isn't a problem for me at the moment so no complaints there.

from xlnt.

wei-sketchup avatar wei-sketchup commented on May 18, 2024

From the ISO/IEC 29500 18.4.9 sst(Shared String Table)
"A string is unique even if it is a copy of another string, but has different formatting applied at the character level."

Character level formatting will break the string into multiple text runs (multiple "t" child). The current code only picks up the first text run. More over, since it ignores all the character level formatting, unique "si" may still end up the same string value.

from xlnt.

tfussell avatar tfussell commented on May 18, 2024

Thanks Wei. I should have checked the standard. I'll be pushing some big updates in the next week so I'll try to implement this more correctly in that release.

from xlnt.

wei-sketchup avatar wei-sketchup commented on May 18, 2024

Thanks! Great work!

from xlnt.

adam-nielsen avatar adam-nielsen commented on May 18, 2024

FYI, unrelated to @wei-sketchup's issue, I have worked out the cause of the duplicate shared strings in the #42 test case. It turns out that Excel only does string deduplication when you enter them by hand. When you copy and paste a large block of data (e.g. from a .csv file) then Excel does not perform deduplication, I guess for performance reasons. This is why you end up with duplicate shared strings in that case where you really shouldn't as they are truly identical.

from xlnt.

tfussell avatar tfussell commented on May 18, 2024

I appreciate the follow-up Adam. I was debating asking you how I could reproduce this issue. I have a lot to go on now!

from xlnt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.