<commit_before>#!/bin/bash

TARGET="./build"

FILENAME="index"
INFILEXTENSION="xml"

DOCXSTYLE="resources/arc42-style.docx"

#
echo "generate docx from docbook"
#################################
#
# too bad, reference-docx does not work (produces illegal output)
# pandoc --from docbook --to docx --reference-docx=$DOCXSTYLE --output $TARGET/$FILENAME.docx $TARGET/$FILENAME.$INFILEXTENSION
pandoc --from docbook --to docx --output $TARGET/$FILENAME.docx $TARGET/$FILENAME.$INFILEXTENSION


###########################################################
#<commit_msg>Fixed #10: docx is now being generated<commit_after>#!/bin/bash

TARGET="./build"

FILENAME="index"
INFILEXTENSION="xml"

DOCXSTYLE="resources/arc42-style.docx"

#
echo "generate docx from docbook"
cd $TARGET
#################################
#
# too bad, reference-docx does not work (produces illegal output)
# pandoc --from docbook --to docx --reference-docx=$DOCXSTYLE --output $TARGET/$FILENAME.docx $TARGET/$FILENAME.$INFILEXTENSION
pandoc --from docbook --to docx --output $FILENAME.docx $FILENAME.$INFILEXTENSION
cd ..

###########################################################
#
{'fraction_non_alphanumeric': 0.2818733738074588, 'fraction_numerical': 0.005203816131830009, 'mean_word_length': 5.869047619047619, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1750183', 'n_tokens_mistral': 389, 'n_tokens_neox': 358, 'n_words': 81}