Custom Fonts for Mnemododo

90 views
Skip to first unread message

joshua...@gmail.com

unread,
Aug 5, 2012, 6:37:19 PM8/5/12
to mnemosyne-...@googlegroups.com
mnemododo works wonderfully, but I use it to study Chinese. Chinese characters are rendered too small and poorly shaped with the default android font. Would it be possible to build into mnemododo to set a custom font just for the app, rather than rooting and switching for the entire phone?

Peter Bienstman

unread,
Aug 6, 2012, 6:47:06 AM8/6/12
to mnemosyne-...@googlegroups.com
I believe Tim's gogorender plugin should do the trick:

http://mnemosyne-proj.org/plugins/gogorender

Peter

Timothy Bourke

unread,
Aug 6, 2012, 8:42:25 AM8/6/12
to mnemosyne-...@googlegroups.com
Peter's right. Gogorender is one possible solution. It's main
advantage is that it can use any font installed on your computer,
without requiring that it be also installed on your phone (it also
uses Qt's excellent font rendering routines). It's main disadvantage
is that word wrap doesn't always work very well.

Another possibility is to change the Mnemododo font size setting to
"Very Large".

Alternatively, Mnemododo tries to respect the card type formatting
options chosen within Mnemosyne. It may not be able to match the font,
but it should be able to match colours, sizes, and styles.

Yet another possibility is to add a file called STYLE.CSS to the
exported cards directory, and then to add css styling for the
exported cards, e.g.:

div.Mandarin {
font-size: 400%;
}

Where 'Mandarin' is a tag name with any spaces replaced by
underscores. The exported cards also have "div#q" for the question
field, "div#a" for the answer field, and the field names from the card
types, e.g., "div.f" for the foreign word and "div.m_1" for the
meaning (thanks to Peter's Mnemosyne libraries). It may help to open
the CARDS file (read-only!) in a text editor.

If none of these work, I could think about porting the gogostyle
plugin to 2.x:
http://www.mnemosyne-proj.org/old/content/gogostyle
It added special tags around sequences of non-latin characters, so
that they could be styled using the STYLE.CSS mechanism.

Tim.

signature.asc

joshua...@gmail.com

unread,
Aug 7, 2012, 8:50:53 AM8/7/12
to mnemosyne-...@googlegroups.com
On Monday, 6 August 2012 08:42:25 UTC-4, Timothy Bourke wrote:
> On Aug 6 at 12:47 +0200, Peter Bienstman wrote:
>

Thanks for the advice! It's really great when developers have these forums, and respond to user concerns and question! Thanks so much.

If I could suggest some improvements, they would be about syncing mnemododo and mnemosyne. Would it be possible to make an easy wireless syncing option between android/mobile and the main computer? Perhaps something that updates the other device on progress made in the cards, and can push new cards to the mobile client when needed?

Otherwise, your app is great!

Timothy Bourke

unread,
Aug 7, 2012, 9:00:41 AM8/7/12
to mnemosyne-...@googlegroups.com
On Aug 7 at 05:50 -0700, joshua...@gmail.com wrote:
[...]
> If I could suggest some improvements, they would be about syncing
> mnemododo and mnemosyne. Would it be possible to make an easy
> wireless syncing option between android/mobile and the main
> computer? Perhaps something that updates the other device on
> progress made in the cards, and can push new cards to the mobile
> client when needed?

You're right; such a feature would be ideal.

In fact, the two most requested features of Mnemododo are
synchronisation and card editing. The protocol used, however, is very
modest---it was originally designed for very basic J2ME phones---and
it is not trivial to add these features.

Peter has implemented a synchronisation protocol for Mnemosyne, and he
has plans to eventually implement it on Android. Until then, you could
try using a file synchronisation service to synchronise your phone
with your PC, but please take note of these precautions:
https://groups.google.com/d/msg/mnemosyne-proj-users/PV6EMU9H3b8/46NB1LtYwqoJ

Tim.

signature.asc

Arno den Hartog

unread,
Mar 20, 2013, 10:32:51 AM3/20/13
to mnemosyne-...@googlegroups.com
How do I tell Gogorender that piece of text needs to be rendered?
Does it only work automatically for foreign languages and LaTeX?

Timothy Bourke

unread,
Apr 6, 2013, 3:53:52 AM4/6/13
to mnemosyne-...@googlegroups.com
Gogorender uses a (simplistic) algorithm to determine which characters
to render. The options panel contains a field for excluding specific
character ranges.

Additionally, there are two algorithms. The default is word-by-word
rendering, the other (enabled in the options panel) renders entire
paragraphs (which is useful for scripts written right-to-left).

Tim.
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msg/
> mnemosyne-proj-users/-/A6tucULmo7gJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
signature.asc
Reply all
Reply to author
Forward
0 new messages