Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Marvin

Notices

Reply
 
Thread Tools Search this Thread
Old 09-11-2014, 12:14 AM   #1
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
Feature request: smart dictionary lookup for French

I read mostly in French in Marvin and run across the following problem quite often.

Many articles ("the," "that," etc.) preceding French words that begin with vowels are apostrophized, as such:

The plane = L'avion
That he said = Qu'il a dit

And so on.

When you highlight one of these words with an apostrophized article in front of it, the word and the article are both highlighted. However, Apple's built-in dictionary doesn't recognize these words if the article precedes them. So you can define écurie but not l'écurie. That means I have to manually readjust the sliders on these words when I look them up to exclude the article and the apostrophe. It's a bit annoying and takes time.

Would it be possible for Marvin to recognize whether a book is in French by looking at the metadata, and for words looked up the dictionary, have the app ignore the apostrophe and everything in front of it? This is something that dedicated French dictionary apps, such as Antidote, have managed to implement (though not with the default system dictionary).
holymadness is offline   Reply With Quote
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
Advert
Old 09-18-2014, 10:59 AM   #3
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
Hi Kris,

Thanks for this very encouraging response. Your proposed implementation sounds like the best one: the app shouldn't fiddle with the selection, it should just intelligently parse the word when being looked up in the dictionary. Hard-coding the prefixes is also a great choice because it will prevent errors when looking up the occasional word that has an apostrophe in it, like aujourd'hui.

I'll send you a complete list of prefixes once I've done some testing on the built-in dictionary. Oddly, iOS 8 seems to have broken my default dictionaries and I can't look up any words or download/delete dictionaries anymore.

Last edited by holymadness; 09-18-2014 at 11:02 AM.
holymadness is offline   Reply With Quote
Old 09-18-2014, 12:41 PM   #4
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
After a quick system restore, my dictionaries are back up and running. Here is the complete list of prefixes that prevent dictionary lookup:

C'
D'
J'
L'
M'
N'
QU'
S'
T'
holymadness is offline   Reply With Quote
Old 09-19-2014, 08:30 AM   #5
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
@holymadness - fantastic. I'll get right on it (I really like this, might be able to fit it in one of the next updates).
kguil is offline   Reply With Quote
Advert
Old 09-19-2014, 10:35 AM   #6
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
Great news! Marvin keeps getting better and better.

Let me know if you want me to email you a French book for testing.
holymadness is offline   Reply With Quote
Old 09-30-2014, 09:47 AM   #7
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
@holymadness: I'll definitely get in touch with you once I have this working.

I'm afraid that I'll have to postpone this (and the Dropbox improvements I promised earlier) by an update. Due to some unexpected problems on iOS 8 and the time it's taking Apple to review updates, I'm focusing the next one to squash some nasty bugs and bring iPhone 6/6+ compatibility to everyone. I promise this will come next.
kguil is offline   Reply With Quote
Old 10-02-2014, 12:18 PM   #8
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
No problem, take your time.
holymadness is offline   Reply With Quote
Old 01-08-2015, 06:50 PM   #9
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
Hello, I was wondering if you had any updates regarding this feature request. Thank you.
holymadness is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Feature Request] - Ability to increase dictionary font size Marcy Marvin 2 03-29-2014 04:09 AM
Kindle like smart lookup functionality specialp Onyx Boox 2 12-05-2013 12:41 PM
Any eReader with dictionary lookup feature? bthoven Which one should I buy? 19 10-06-2009 02:37 PM
Dictionary lookup (French-English) not working in some ebooks montsnmags iRex 2 08-19-2008 08:45 PM
Lookup - which dictionary is used? api_1 Bookeen 1 12-17-2007 11:31 PM


All times are GMT -4. The time now is 05:09 PM.


MobileRead.com is a privately owned, operated and funded community.