swerd / socialtranslate

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

API not taking long strings #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Google translate AJAX API seems to have a character limit. 2000 I think.  That 
means that pages like this fail 

http://www.flickr.com/photos/shenyun2010/4626974300/in/photostream/ (use top of 
the tree build for flickr support).  

Also it seems like the Unicode characters are expanded to the UTF8 form for 
transmission to translate which means we lose more space.  

Nav do you think you can add a segmentation for ever utf8 250 characters (or 
2000 ascii characters?  

Original issue reported on code.google.com by swerd...@gmail.com on 21 Aug 2010 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by swerd...@gmail.com on 21 Aug 2010 at 12:24

GoogleCodeExporter commented 9 years ago
Nav here is an example one, looks like we are sending a lot of junk.  Any ideas 
for smoothing this out?  

http://www.google.com/uds/GlangDetect?callback=google.language.callbacks.id823&c
ontext=22&q=%3Ca%20class%3D%22actorName%22%20href%3D%22http://www.facebook.com/a
jayshah.fb%22%20data-hovercard%3D%22/ajax/hovercard/user.php%3Fid%3D555826644%22
%3EAjay%20Shah%3C/a%3E%20%3Ca%20href%3D%22http://www.facebook.com/pages/STOP-THE
-SERENGETI-HIGHWAY/125601617471610%3Fv%3Dwall%22%20target%3D%22_blank%22%20rel%3
D%22nofollow%22%3E%3Cspan%3Ehttp://www.facebook.com/pa%3C/span%3E%3Cwbr%3E%3Cspa
n%20class%3D%22word_break%22%3E%3C/span%3E%3Cspan%3Eges/STOP-THE-SERENGETI-HIG%3
C/span%3E%3Cwbr%3E%3Cspan%20class%3D%22word_break%22%3E%3C/span%3E%3Cspan%3EHWAY
/125601617471610%3Fv%3Dwal%3C/span%3E%3Cwbr%3E%3Cspan%20class%3D%22word_break%22
%3E%3C/span%3El%3C/a%3E%3Cdiv%20class%3D%22uiTextSubtitle%20commentActions%22%3E
%3Cabbr%20title%3D%22Sunday,%20September%2026,%202010%20at%209:52pm%22%20data-da
te%3D%22Sun,%2026%20Sep%202010%2012:52:44%20-0700%22%20class%3D%22timestamp%22%3
Eabout%20an%20hour%20ago%3C/abbr%3E%20%C2%B7%20%3Cspan%20class%3D%22uiTextSubtit
le%20comment_like_119060%22%3E%3Cbutton%20class%3D%22stat_elem%20as_link%22%20ty
pe%3D%22submit%22%20name%3D%22like_comment_id[119060]%22%20value%3D%22119060%22%
20title%3D%22Like%20this%20comment%22%3E%3Cspan%20class%3D%22default_message%22%
3ELike%3C/span%3E%3Cspan%20class%3D%22saving_message%22%3EUnlike%3C/span%3E%3C/b
utton%3E%20%C2%B7%20%3Ci%20class%3D%22img%20spritemap_4q6a0j%20sx_4cc9d2%22%3E%3
C/i%3E%20%3Ca%20class%3D%22uiTooltip%20comment_like_button%22%20onmouseover%3D%2
2window.UFICommentLike%20%26amp;%26amp;%20UFICommentLike.showDetails(%26quot;105
413686187402%26quot;,%20%26quot;555826644%26quot;,%20this)%22%20rel%3D%22dialog%
22%20href%3D%22/ajax/browser/likes/%3Fnode%3D105413686187402%22%3E1%20person%3Cs
pan%20class%3D%22uiTooltipWrap%20bottom%20center%20centerbottom%22%3E%3Cspan%20c
lass%3D%22uiTooltipText%22%3ELoading...%3C/span%3E%3C/span%3E%3C/a%3E%3C/span%3E
%3C/div%3E&key=notsupplied&v=1.0&nocache=1285444081490

Original comment by swerd...@gmail.com on 27 Sep 2010 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by swerd...@gmail.com on 27 Sep 2010 at 9:11