Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
88 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
-------- future | ||
- Take a random musicplayer project and devel a glyr-plugin (hi there gmpc..) | ||
- cmake install -- done | ||
- cmake portable.. | ||
- docu | ||
|
||
------ plans | ||
- paths for tag/relations in glyrc | ||
- default settings for getters (like number=-1 for track/albumlist) | ||
- ainfo/wikipedia.c still not working | ||
|
||
------- urgent | ||
- test lyrics (klingelt�ne... *chrm*) | ||
- rewrite of GUI in C and gtk3 (Modi get your ass here!) | ||
- full amazon support | ||
- full amazon support *sigh* - this API just sucks and is applied Brain-BDSM | ||
- update swig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
#ifndef G_TRANSLATE_H | ||
#define G_TRANSLATE_H | ||
|
||
// gtrans method family | ||
|
||
#include "types.h" | ||
void Gly_translate_text(GlyQuery * s, GlyMemCache * to_translate); | ||
char * Gly_lookup_language(GlyQuery * s, const char * snippet, float * correctness); | ||
char ** Gly_list_supported_languages(GlyQuery * s); | ||
/* Takes the cache struct to_translate and translate the text according to the setting stored in the GlyQuery s * | ||
It will be translated IF to_translate is not an image (is_image == false) and the targetlang != sourcelang, * | ||
and both languages are valid. Note that the usage of these functions is restricted by google to a certain limit * | ||
being at the moment at 100,000 chars per day and IP. | ||
The buffer is directly modified so make copies before if you need. | ||
*/ | ||
void Gly_gtrans_translate(GlyQuery * s, GlyMemCache * to_translate); | ||
|
||
/* Ask google what language the snippet given as const char is written in * | ||
Optionally you can give a float pointer where the probability of the * | ||
result being correct is stored in, (from 0.0 to 1.0), long snippets * | ||
usually give better results. The result is returned as newly allocated * | ||
char * - free it. | ||
*/ | ||
char * Gly_gtrans_lookup(GlyQuery * s, const char * snippet, float * correctness); | ||
|
||
/* Queries google for a list of all supported languages * | ||
Returned as a list of char pointers, free both the * | ||
single strings and the return value. * | ||
If you only want to know all languages: * | ||
'glyrc gtrans list' does the same. * | ||
*/ | ||
char ** Gly_gtrans_list(GlyQuery * s); | ||
|
||
#endif |
Oops, something went wrong.