From f327b8011c6a6f8d4989120f0e632fafd98b22d7 Mon Sep 17 00:00:00 2001 From: mistangl Date: Fri, 5 Dec 2025 18:55:49 +0100 Subject: [PATCH] =?UTF-8?q?Doku=20noch=20um=20neue=20M=C3=B6glichkeit=20de?= =?UTF-8?q?s=20mehrfachextrakts=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/translate.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/translate.md b/doc/translate.md index a1a8e9d..7448322 100644 --- a/doc/translate.md +++ b/doc/translate.md @@ -86,6 +86,14 @@ bin\translate.bat --filename file.dxf --extract --export-type excel --outname ou # Extraktion in Textdatei bin\translate.bat --filename file.dxf --extract --export-type text --outname output.txt +# Mehrere Formate gleichzeitig (komma-separiert) +bin\translate.bat --filename file.dxf --extract --export-type excel,json,text --outname output +# Erzeugt: output.xlsx, output.json, output.txt + +# Ohne Angabe von --outname: Automatische Namensvergabe +bin\translate.bat --filename easy.dxf --extract --export-type excel,json +# Erzeugt: easy_texts.xlsx, easy_texts.json + # Mit Quellsprache (Standard: DE -> TEXT-D) bin\translate.bat --filename file.dxf --extract --lang_source EN ``` @@ -176,10 +184,10 @@ bin\translate.bat --fromjson output.json --translate CS ### Hauptparameter - `--filename FILE` / `-f FILE`: Eingabe-DXF/DWG-Datei -- `--outname NAME` / `-o NAME`: Name der Ausgabedatei +- `--outname NAME` / `-o NAME`: Name der Ausgabedatei (ohne Endung bei mehreren Formaten) - `--translate LANG` / `-t LANG`: Übersetzungssprache (CS, EN, FR, etc.) - `--lang_source LANG`: Quellsprache für Block-Attribute (Standard: DE) -- `--export-type TYPE`: Exportformat: `json` (Standard), `excel`, `text` +- `--export-type TYPE`: Exportformat(e): `json` (Standard), `excel`, `text` oder komma-separiert (z.B. `excel,json,text`) - `--translation-json FILE`: JSON-Datei mit Übersetzungen für `--todxf` - `--debug` / `-d`: Debug-Ausgabe für Pattern-Matching