RTL docx exporting via CLI

Hi,
can I specific that my text is an RTL text while exporting it to a docx file via CLI?

soffice --infilter=“Text (encoded):UTF8,tahoma,fa” --language=fa --convert-to docx uploads/test.txt

If I should use a macro please give an example;

Thanks a lot :smiling_face_with_three_hearts:

From the Google:

“RTL filename extension is associated with printer or plotter files containing bitmap graphics coded in the Raster Transfer Language developed by Hewlett-Packard.

RTL is also the filename of some runtime library files used by the compiler bundled with C++ Builder integrated development environment. RTL files that are used by Yahoo! Instant Messenger (instant messaging software) contain sound settings.”
Which RTL files did you mean?

Or do you mean RTF (the Rich Text File format)?

Usually in text processing context RTL means “right-to-left language”, i.e. Arabic, Farsi, Hebrew, … RTL is an intrinsic property provided:

  • text is correctly flagged (with a language attribute in Writer)
  • or an adequate Unicode font is used and characters are taken from the appropriate script blocks (which excludes converted legacy fonts where “exotic” glyphs are stored in the Private Use Area)
    This also excludes .txt files using ISO-8859-x encoding because these encodings are ambiguous unless some hints are also explicitly given.

Please, edit your question to give more information about your intent. As usual, don’t forget to mention OS name and LO version.