Rahulrrao / franker

Automatically exported from code.google.com/p/franker
0 stars 0 forks source link

Franker has trouble with large amounts of text #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Greetings,

I notice that Franker will sometimes have trouble translating large blocks of 
text.  If I select all (ctrl - A) and hit the hotkey for Franker, then it will 
translate up to a certain point and then just stop.  At that point, I manually 
highlight the following segments and frankate them, but the problem is that 
this often causes the page to freeze (it will just display "frankating" with 
the page grayed out, but nothing happens).

I've successfully frankated large amounts of text, but the process is rather 
cumbersome.  Is there some way to eliminate any sort of frankating limit so 
that I can frankate a huge amount of text (such as an entire novel) without 
having to manually select segments of the text?

Thanks so much.

Original issue reported on code.google.com by kevaug...@gmail.com on 23 Dec 2011 at 7:46

GoogleCodeExporter commented 9 years ago
This is by design.

For now Franker is just a tool to help you read texts online, while you have an 
internet connection, so you can frankate as you read. I plan to implement a 
feature so Franker frankates text automatically as you scroll the page.

No plans to do novel translations. This is mainly due to we use open and free 
translation service API (Microsoft Translator) and have to be nice to it, do 
not overuse/misuse. And Google Translate is paid service and that would cost 
you real money to frankate whole novel. Imagine you do it by mistake (wrong 
novel, novel you don't like after several pages).

If you have any programming skills you can grab Franker source code (hosted 
here, on google code) and remove that limit, so it never stops until reaches 
the end on the text. You'll have to use your own Microsoft Translator API key 
and misuse it :)

But that observation semi-transparent cover doesn't disappear after Franker 
stops -- I have to look at it, thank you!

Original comment by ysol...@gmail.com on 23 Dec 2011 at 12:30

GoogleCodeExporter commented 9 years ago
Thanks for your response.

I looked over the Franker code, but I couldn't find the code responsible for 
regulating the amount of text to frankate.  I'd love to make a specialized 
version of Franker which has no limit.  I will not be misusing the translator, 
as I will translate the entire text by myself regardless of how many steps it 
takes.  It would just save me time.  If you could email me with a hint 
regarding where to look in the code (and how to save this code so that my 
version of Franker reflects the changes) I'd be very grateful.

Thanks for your help.

Original comment by kevaug...@gmail.com on 24 Dec 2011 at 2:37

GoogleCodeExporter commented 9 years ago
Check this line (this is for Chrome extension, Safari is the same):
http://code.google.com/p/franker/source/browse/trunk/Franker.chromeextension/fra
nker_core.js#57

Just remove "doc.frankerInfinityGuard < 0" part from the condition.

You have to checkout the extension source code, for Chrome it is: 
"Franker.chromeextension"
For Safari it is: "Franker.safariextension"

Then build the extension with help of the browser.
http://code.google.com/chrome/extensions/getstarted.html
http://gigaom.com/apple/how-to-build-a-safari-extension/

Good luck!

Original comment by ysol...@gmail.com on 25 Dec 2011 at 12:21