ds300 / jetzt

Speed reader extension for chrome
Other
486 stars 123 forks source link

Changing font size #117

Open orschiro opened 10 years ago

orschiro commented 10 years ago

Hi there,

Is it possible to add a feature for changing the text size?

This could be handy especially for longer words which cannot be displayed completely with the current text size.

ds300 commented 10 years ago

Yeah this is doable, and a good idea. I've been wondering whether it would turn out to be an issue because I measured the reader to fit 13 characters in the widest font I could find, with not much wiggle room.

orschiro commented 10 years ago

This is a good example for very long words and how they become difficult to read. One german word "Bundesfinanzminister":

image

image

image

nomicode commented 10 years ago

I am wondering about this. Doesn't the research by Sprtizt suggest that we break longer words down like this when we're looking at them anyway? This should probably be researched before we make changes.

ds300 commented 10 years ago

Yeah I've no plans to abandon splitting up long words. Alas, the way it is currently done is completely naive, which often makes it difficult to read the word as a whole, e.g. bundesf-inanzm-inister would be much better as bundes-finanz-minister. But in order to do this well we need some kind of language-specific knowledge. On 24 Mar 2014 13:05, "Noah Slater" notifications@github.com wrote:

I am wondering about this. Doesn't the research by Sprtizt suggest that we break longer words down like this when we're looking at them anyway? This should probably be researched before we make changes.

Reply to this email directly or view it on GitHubhttps://github.com/ds300/jetzt/issues/117#issuecomment-38441249 .

nomicode commented 10 years ago

One quick win would be to use something like hyphenator,js, which implements TeX's excellent hyphenation algorithm. I think this has been suggested before.

orschiro commented 10 years ago

@nslater

Great idea! I have TeX's hyphening in very good memories.

What does OpenSpritz actually do differently in that with OpenSpritz I almost never see any hyphening occurring?

finanzminister

ds300 commented 10 years ago

judging by their (tiny!) source they actually never split up long words.