Welcome Guest.   Make a donation to an author on the site December 22, 2014, 01:29:29 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: [Solved] help convert short text manipulations code from perl to AHK  (Read 2818 times)
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« on: May 15, 2010, 11:26:21 AM »

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.
« Last Edit: May 17, 2010, 03:15:32 PM by Nod5 » Logged
ewemoa
Honorary Member
**
Posts: 2,524



View Profile Give some DonationCredits to this forum member
« Reply #1 on: May 16, 2010, 05:34:01 AM »

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:

Formatted for Perl with the GeSHI Syntax Highlighter [copy or print]
  1. open TXT, "<:utf8", "page_txt.txt";
  2. open BOX, "<:utf8", "page_box.txt";
  3. ...
  4. 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 smiley

Do you have any sample input files and corresponding expected output that I might test with?
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #2 on: May 16, 2010, 10:11:48 AM »

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...&p=3300%23p3300#p3302  (between the ##### in the code)

* examples.zip (135.04 KB - downloaded 131 times.)
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #3 on: May 17, 2010, 03:13:56 PM »

Help received through PM, case closed. Thanks again ewemoa!  Thmbsup
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.037s | Server load: 0.13 ]