foundercatalyst / docxify

DocXify is a gem to help you generate Word documents from Ruby
MIT License
3 stars 1 forks source link

Adding a language tag for spelling #4

Open DoNotRep opened 2 months ago

DoNotRep commented 2 months ago

it's possible to add option of document to set language

https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.languages?view=openxml-3.0.1

any way to do this ?

andyjeffries commented 2 months ago

I've never needed to do that in the project I wrote it for. It may need more work to support that. PRs are gratefully accepted.

The general steps I've taken are to use Word to create a blank document and save it, make the changes you want and save a new version of the document between each step. Then you can unzip the .docx file which will create a folder structure of .xml files. The main one that changes each time is the file you need to look at on how to implement this.

DoNotRep commented 2 months ago

thank you for reply :)