ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

[Solved] help convert short text manipulations code from perl to AHK

(1/1)

Nod5:
Anyone good at both perl and AHK? If so, care to help translate the format.pl code in the zip here http://nod5.dcmembers.com/tiffdjvuocr.html ? I'm not getting it right.

ewemoa:
Don't know how much help I might be, but I've taken a brief look at format.pl.

One thing I wondered about was its specification of utf8 in the input and output from/to files:


--- Code: Perl ---open TXT, "<:utf8", "page_txt.txt";open BOX, "<:utf8", "page_box.txt";...binmode(STDOUT, ":utf8");
I'm not experienced with AHK in that realm, but have the sense that that might present a tricky (or at least not-so-trivial) situation.

My impression so far with the rest of the script is that it doesn't look too bad.  May be if we can get close enough, help might arrive for any remaining difficulties :)

Do you have any sample input files and corresponding expected output that I might test with?

Nod5:
txt examples attached (based on source image from http://www.pgdp.net/d/walkthrough/04_Proof.htm )

there's also a python version of the same text manipulation actions in the zip in this post http://www.diybookscanner.org/forum/viewtopic.php?f=3&t=319&p=3300%23p3300#p3302  (between the ##### in the code)

Nod5:
Help received through PM, case closed. Thanks again ewemoa!  :Thmbsup:

Navigation

[0] Message Index

Go to full version