gImageReader icon indicating copy to clipboard operation
gImageReader copied to clipboard

Add more encodings for saving plain text

Open zamazan4ik opened this issue 8 years ago • 13 comments
trafficstars

Now as i know we support only saving in two encodings: system encoding and UTF-8. Can we add more encodings?

zamazan4ik avatar Nov 13 '17 19:11 zamazan4ik

I don't really see the point. UTF-8 is pretty much the way to go.

As a general remark: I'm hesitant to add features just for the sake of adding them. From the feedback I gathered over the years, the program is appreciated by many for being straight forward to use, and I don't want to overload it with options. For many tasks, there are already specialized programs available, I don't think it is very beneficial to re-invent the wheel.

manisandro avatar Nov 13 '17 21:11 manisandro

Can you give me any open-source free analog to gIR? I can't.

And, honestly, we shouldn't reinvent anything. Finereader did already before us great work, but it's expensive proprietary project.

zamazan4ik avatar Nov 13 '17 21:11 zamazan4ik

I meant concerning text encoding conversion.

manisandro avatar Nov 13 '17 21:11 manisandro

I meant concerning text encoding conversion.

Is it difficult to add more encodings?

zamazan4ik avatar Nov 13 '17 21:11 zamazan4ik

QString and Glib::ustring definitely don't support much more than utf-8 and latin1

manisandro avatar Nov 13 '17 21:11 manisandro

Okay, it's answer for the request :-) Don't close the task please - maybe in the future we will add it :-)

zamazan4ik avatar Nov 13 '17 21:11 zamazan4ik

And what use case do you see? Plain-text output is most likely an intermediate format which people then process further, so they just need to be able to read it. UTF-8 will work most of the time, except perhaps on windows, where system-encoding will do. I don't really see why a user would want anything else, and if he really does, there are advanced text editors which can do the job just fine.

manisandro avatar Nov 13 '17 21:11 manisandro

Use case: i as simple user want to recognize images to plain text. Imagine that utf-8 isn't so wide-used on my system (yep, windows). But i recognize my images on linux and want to share it to windows. I know about windows encoding, and will be simple for me choose right encoding for windows.

zamazan4ik avatar Nov 13 '17 21:11 zamazan4ik

I still see this as a pretty theoretical use case. Just install notepad++ ;)

manisandro avatar Nov 13 '17 21:11 manisandro

I still see this as a pretty theoretical use case. Just install notepad++ ;)

Unfortunately not so theoretical. You should know, that FineReader is professional program. and if they added this feature, there is some reason for this. We shouldn't reinvent the wheel, i agree. We should just get the best things from Abbyy and implement it in gIR. And what can i say - Abbyy FineReader is relly good :-) We can learn a lot

zamazan4ik avatar Nov 13 '17 21:11 zamazan4ik

Personally I'd rather invest my efforts to work on features users are actually asking for.

manisandro avatar Nov 13 '17 21:11 manisandro

And it's right way! But useful have smth in backlog

zamazan4ik avatar Nov 13 '17 22:11 zamazan4ik

I still see this as a pretty theoretical use case. Just install notepad++ ;)

Unfortunately not so theoretical. You should know, that FineReader is professional program. and if they added this feature, there is some reason for this. We shouldn't reinvent the wheel, i agree. We should just get the best things from Abbyy and implement it in gIR. And what can i say - Abbyy FineReader is relly good :-) We can learn a lot

Finereader is a paid software, it is obliged to meet the demands of its customers, many times this demand has such a specific use that it is almost useless, but when you charge for it, you are obliged to attend because if you are a large customer, this can decrease the its influence and market share, this program is free , so it is wiser to spend time implementing something that benefits many people than something that will serve one or two people.

So insisting that it is important without having a considerable number of interested people is boring at times.

arbarbosa1979 avatar Jul 21 '20 16:07 arbarbosa1979