Ask Your Question
0

DOS/OS2-437/US text files in Libre Office Writer

asked 2017-05-14 12:27:43 +0100

volker gravatar image

I regularly have to edit textfiles encoded in ASCII-437. Rather than going through the tedious "Text - choose encoding" procedure I would like to open such files from the command line, so I can embed the command into a script. As suggested in help I tried the switch --infilter="Text (encoded):Western Europe (DOS/OS2-437/US)" but without success. What can I do?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2017-05-14 22:04:58 +0100

Regina gravatar image

Try it similar to this after the path and call of soffice.exe

--infilter="Text (encoded):IBM_437,CRLF,," -o "C:\Users\pppregin\Desktop\EncodedText.txt"

The encodings are listed in http://opengrok.libreoffice.org/xref/...

The line ends are LF for Linux, CR for MacOS and CRLF for Windows. The parameters missing in my example are for the font name and the language. I have not tried their syntax.

edit flag offensive delete link more
0

answered 2017-05-14 23:47:20 +0100

volker gravatar image

Herzlichen Dank, Regina, dein Tipp funktioniert einwandfrei, auch mit code pages 850 und 1250. Was bedeuten die beiden Kommata nach CRLF, sind weitere Optionen möglich?

edit flag offensive delete link more

Comments

font name and language

Regina gravatar imageRegina ( 2017-05-15 05:59:07 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-05-14 12:27:43 +0100

Seen: 113 times

Last updated: May 14 '17