Git Product home page Git Product logo

Comments (7)

jobinbasani avatar jobinbasani commented on August 19, 2024

In the commit bb0f435, looks like you took care of <, > and ", but looks like quotes are converted to ?. So the replace function may not work correctly. < and > were escaped to &lt; and &gt; and the replace method will correctly put them back. Since " is not converted to &quot;, but ? instead, replace function wont work.
Hope this helps you...just started learning Groovy a day ago...I dont know the correct solution to this :)

from scriptlet4docx.

snowindy avatar snowindy commented on August 19, 2024

Thank you for the sharing this. I've got your point about quotes escaping.
Thing is, I don't have MS word at my PC, so it would be helpful if you could attach your docx with example.

from scriptlet4docx.

jobinbasani avatar jobinbasani commented on August 19, 2024

The document is available at https://www.dropbox.com/s/evb1govic7rwdez/FOL.docx?dl=0

from scriptlet4docx.

snowindy avatar snowindy commented on August 19, 2024

Hello!
As I unzip your docx document and go look into document.xml, I can see that:
you used symbol “ (hex code 93) instead of normally used symbol " (hex code 22).

Could you try using the quote symbol I provided for this template and see how it goes?

// Probably I will try to handle your symbol (93) as well, in next release. Is there an apostrophe symbol with different code you may use?

from scriptlet4docx.

jobinbasani avatar jobinbasani commented on August 19, 2024

Just tried to copy-paste the quotation mark you provided in the expression and it works!

But if I try to type in the quotation mark from my laptop keyboard, it fails. Looks like my keyboard only generates code 93.

Can you please include this symbol also?

from scriptlet4docx.

snowindy avatar snowindy commented on August 19, 2024

Yep I figured the symbols out. All of them should be treated as ".

«»“”‘’

from scriptlet4docx.

snowindy avatar snowindy commented on August 19, 2024

Fixed in 0.8.0. version will appear in maven central within several days.

from scriptlet4docx.

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.