<commit_before>:filename: 015_tasks/03_task_convertToDocx.adoc
include::_config.adoc[]

= convertToDocx

* Needs https://pandoc.org[pandoc] installed
* Please make sure that 'docbook' and 'docx' are added to the inputFiles formats in Config.groovy
* Optional: you can specify a reference doc file with custom stylesheets (see task xref:03_task_createReferenceDoc.adoc[`createReferenceDoc`])

include::../_feedback.adoc[]

image::ea/Manual/convertToDocx.png[]

TIP: Blog-Post: https://rdmueller.github.io/create-docx/[Render AsciiDoc to docx (MS Word)]

== Source

.pandoc.gradle
[source,groovy]
----
include::{projectRootDir}/scripts/pandoc.gradle[tags=convertToDocx]
----
<commit_msg>Jody's edit on 03_task_convertToDocx.adoc<commit_after>:filename: 015_tasks/03_task_convertToDocx.adoc
include::_config.adoc[]

= convertToDocx

== Before You Begin
* Install https://pandoc.org[pandoc].
* Ensure that 'docbook' and 'docx' are added to the inputFiles formats in Config.groovy.
* As an optional step, specify a reference doc file with custom stylesheets (see task xref:03_task_createReferenceDoc.adoc[`createReferenceDoc`]).

include::../_feedback.adoc[]

image::ea/Manual/convertToDocx.png[]

TIP: Blog-Post: https://rdmueller.github.io/create-docx/[Render AsciiDoc to docx (MS Word)]

== Source

.pandoc.gradle
[source,groovy]
----
include::{projectRootDir}/scripts/pandoc.gradle[tags=convertToDocx]
----

{'fraction_non_alphanumeric': 0.13442389758179232, 'fraction_numerical': 0.011379800853485065, 'mean_word_length': 5.7, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4617851', 'n_tokens_mistral': 508, 'n_tokens_neox': 478, 'n_words': 104}