|
|
Thread Tools | Search this Thread |
02-06-2014, 03:00 PM | #1 |
Member
Posts: 12
Karma: 10
Join Date: May 2013
Device: none
|
Any formatting options at all for the text in Kindle's instant dictionary popup?
I have been preparing an Icelandic dictionary with some success. I got the inflections working, which was my main issue. I did not use the tab2opf.py script, but instead used the boilerplate opf from the mobicon website together with an HTML-file created from a database of words with inflections and translations, I've compiled.
In order to increase usability, I would like to offer simultaneous translation to English in addition to my own language. To that end, I would prefer the output of the instant popup formatted somewhat like this: dictionary-word English translation other translation I have been tinkering with various HTML-codes, but they all seem to only apply to the full dictionary lookup and not to the instant popup, which always render: dictionary-word English translation other translation Now, do any text formatting options actually exist that applies to instant popup? I have another small problem in that a few of my dictionary lookups adds a number of sequential dictionary entries to the same instant popup, despite no apparent formatting errors and no problems with the entries in the full dictionary lookup. Can't really grok that one. Any pointers would be most welcome. |
06-21-2014, 11:18 AM | #2 | ||
Member
Posts: 15
Karma: 10
Join Date: Nov 2013
Location: Germany
Device: Kindle Paperwhite (2nd gen)
|
Quote:
Quote:
Other than that, I'd be really interested in having the Icelandic-English dictionary in its current state myself, or at least a pointer to the source for your database that includes inflections. I only have a rather bad is-en dictionary at the moment which is auto-generated from dict.cc data and does not support any inflections. I'd be incredibly thankful if you could share your work with me here, as I can't find anything like this anywhere online. DISCLAIMER: This is based on the manual research of an hour, after not being able to find anything on more knowledgeable sources than myself. What I'm saying might not be 100% correct, but it didn't break anything for me. |
||
Advert | |
|
07-15-2024, 03:04 AM | #3 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2014
Device: Kindle Scribe
|
For anyone who happens across this old post and is wondering the same, the font cannot be changed.
Phonetic letters are recognized, as well as italics and boldface aspects of fonts. These features can be created using a dictfile (.df) and creating definitions with html code. This file can then be used as the input file in pyglossary or other scripts that use pyglossary to make a MOBI dictionary. Instructions for creading a .df file can be found here: https://pgaskin.net/dictutil/dictgen/#dictfile-format When the Kindle updates, the font is often changed for the dictionary popups, however the font is updated later to the default font. |
07-15-2024, 03:05 AM | #4 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2014
Device: Kindle Scribe
|
Edit: Adding support for fonts in the dictionary popups would be a great feature request.
|
07-15-2024, 11:50 AM | #5 |
Wizard
Posts: 1,323
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Dictionaries support css formatting.
You can try adding font-face to see what happens. css instructions here: https://github.com/koreader/koreader...n-a-dictionary Step 4 |
Advert | |
|
07-16-2024, 03:02 AM | #6 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2014
Device: Kindle Scribe
|
I tried css and the font weight and font style and font size changed, but the actual font remained the same standard font. perhaps I'm doing something wrong? I made a style.css file with font-face, then referred to the fonts with <font1>...</font1> etc.
I think that the font for the dictionary popup is a standard font, and the fonts in the Open Dictionary option are the standard fonts that Kindle comes with. I guess the Kindle is not really that great for customizations. I can live with these fonts though, it's no big deal. |
07-16-2024, 05:59 PM | #7 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2014
Device: Kindle Scribe
|
I can confirm that nothing can be done to change the font. External, inlne css makes no difference. The font cannot be changed, or I have no method to change it.
|
Tags |
dictionary output, formatting |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle PW2 3G. Instant translation options over 3G? | gthalas | Amazon Kindle | 6 | 12-28-2013 12:41 PM |
Dictionary popup # of lines option? | kaito | Kindle Developer's Corner | 2 | 07-07-2013 05:52 PM |
Why does the Kindle app have so few formatting options? | menevets | Apple Devices | 8 | 11-16-2012 04:51 PM |
More lines in Dictionary popup window | jswinden | Amazon Kindle | 6 | 09-29-2011 03:03 PM |
dictionary: popup preview | Lucas C. | Amazon Kindle | 8 | 06-09-2011 04:14 PM |