Bug 90089 - option to set output of --convert-to results
Summary: option to set output of --convert-to results
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 22:26 UTC by Christoph Anton Mitterer
Modified: 2015-05-02 02:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Anton Mitterer 2015-03-18 22:26:02 UTC
Hi.

In order to facilitate things like https://git.wiki.kernel.org/index.php/Textconv it would be very nice if --convert-to would utilise a better syntax (or an alternative option would do so):

- Instead of giving --convert-to extension:filter it should be just the filter
- Instead of the --outdir option it would be an --outfile (which gives the full path (including extension) of the file.
- If multiple files are to be converted, than either the user should need to invoke the program multiple times, or just allow the --outfile option to be given multiple times.

Most important though, it should be possible to output the results to stdout, e.g. by the typical "-" filename, i.e. --outfile=- should print the converted results to stdout.

Cheers,
Chris.
Comment 1 Robinson Tryon (qubit) 2015-03-19 14:50:37 UTC
(In reply to Christoph Anton Mitterer from comment #0)
> Hi.
> 
> In order to facilitate things like
> https://git.wiki.kernel.org/index.php/Textconv it would be very nice if
> --convert-to would utilise a better syntax (or an alternative option would
> do so):
> 
> - Instead of giving --convert-to extension:filter it should be just the
> filter
> - Instead of the --outdir option it would be an --outfile (which gives the
> full path (including extension) of the file.
> - If multiple files are to be converted, than either the user should need to
> invoke the program multiple times, or just allow the --outfile option to be
> given multiple times.
> 
> Most important though, it should be possible to output the results to
> stdout, e.g. by the typical "-" filename, i.e. --outfile=- should print the
> converted results to stdout.

Sounds like some good ideas for improvements to the syntax. Please break these up into individual enhancement requests, as I can imagine people might be most interested in making certain changes (e.g. support for stdout), but not necessarily all of the listed changes at the same time.

Status -> NEEDINFO
Comment 2 Christoph Anton Mitterer 2015-05-02 02:31:46 UTC
I was just starting to split that issue up, but after more consideration I think it's a bit difficult to do so.

All these points depend on somehow each other.

I guess it would be best if some core LibreOffice developers first decide what they actually want... i.e. a main question is, whether one invocation should allow multiple conversions to take place "at once".
In principle I'd say that this would only be useful if it was then *much* faster then when invoking the program sequentially.


Cheers,
Chris.