in reply to Re: Printing Labels (updates 2)
in thread Printing Labels

This works reasonably well. I've done something similar (Excel / OOffice spreadsheet) pulling the XML guts out, turning that into a TToolkit input file with a companion processing script. Users would run the template through the script with a CSV file of the actual data to create their report which the processor proceeds to zip the substituted template file back into a new zip / sxc / xlsx output file as the finished product.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^3: Printing Labels (UPDATES 1)
by LanX (Saint) on Oct 08, 2024 at 17:08 UTC
    My intention was to have a stable process were the "template designer" is using word/libreoffice/etc as a visual editor.

    I just tested my "concept" with LibreOffice, it's doing the job, except....

    ... sometimes intermittent <w:...> tags are injected into the placeholder, especially where the underscores are.

    I have to manually mark them and choose "remove formatting" from the menu. I suppose it's word-break information.

    (I can of course also correct it on the source level.)

    So a manual correction is still necessary, if the translator throws errors.

    HTH :)

    Disclaimer: didn't try any other apps like MS Word or Google docs.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

    UPDATE

    here a sample of phantom tags included for a placeholder <___TEST___>

    &lt;</w:t> </w:r> <w:r> <w:rPr> </w:rPr> <w:t> ___TEST___&gt;