diff --git a/bin/tr2dxf_cs.bat b/bin/tr2dxf_cs.bat new file mode 100644 index 0000000..58d515b --- /dev/null +++ b/bin/tr2dxf_cs.bat @@ -0,0 +1,46 @@ +@echo off + +if [%1]==[] goto usage +for %%i in ("%~1") do ( + set "FILENAME=%%~ni" + set "EXT=%%~xi" + set "DIR=%%~dpi" +) +call C:\10-develop\gitea\kabellaengen\bin\setenv.bat + +REM echo Dateiname ohne Erweiterung: %FILENAME% +REM echo Erweiterung: %EXT% +REM echo Verzeichnis: %DIR% +REM +REM Namen der Ergebnisdateien +set RESULT_DXF=%FILENAME%_cs.dxf + +if exist "%~dp0_setenv.bat" ( + echo Lade lokale Umgebungseinstellungen aus _setenv.bat... + call "%~dp0_setenv.bat" +) +REM Zielverzeichnis +set TARGET_DIR=%PROJECT_WORK% +mkdir "%TARGET_DIR%" + +echo. +echo === Extracting TEXT, MTEXT and symbols, translating to CS === +call translate.bat --filename %FILENAME%%EXT% --translate CS --todxf %RESULT_DXF% +if not exist "%PROJECT_WORK%\%RESULT_DXF% +" ( + @echo == failed: extracting texts + pause + goto :eof +) +echo. +echo === Translation file created: %PROJECT_WORK%\%RESULT_DXF% === +pause +goto :eof + + +:usage +@echo Usage: %0 ^ +exit /B 1 +goto :eof + + diff --git a/doc/img/Icons/dxf2txt.ico b/doc/img/Icons/dxf2txt.ico new file mode 100644 index 0000000..7c2154d Binary files /dev/null and b/doc/img/Icons/dxf2txt.ico differ diff --git a/doc/img/Icons/dxf2txt.png b/doc/img/Icons/dxf2txt.png new file mode 100644 index 0000000..8b8e326 Binary files /dev/null and b/doc/img/Icons/dxf2txt.png differ diff --git a/doc/img/Icons/dxfCS.ico b/doc/img/Icons/dxfCS.ico new file mode 100644 index 0000000..b429417 Binary files /dev/null and b/doc/img/Icons/dxfCS.ico differ