View Single Post
Old 09-17-2014, 06:06 PM   #2
kguil
Addict
kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.kguil ought to be getting tired of karma fortunes by now.
 
kguil's Avatar
 
Posts: 1,215
Karma: 1836966
Join Date: Feb 2010
Location: Malta, Europe
Device: Marvin for iOS
I'm not familiar with that app but it may be that the app itself filters out the article and not the selection.

Marvin can and does detect the language of a book (if it's in the metadata). What I can do is this:

- Do not modify the selection (i.e. allow the selection of the article as well, iOS is gets upset when you try and play around with selections).
- When you launch the dictionary, Marvin will strip out the article** if the language is French.
- Send the sanitised version of the selection to the dictionary.

** I'd hard-code a set of prefixes that Marvin would strip out.

Questions:

1) Does this sound robust?
2) Would you be willing to help and send me a list of prefixes to strip out? My French is rusty.
kguil is offline   Reply With Quote