Re: hyphenation in dillo

Jorge Arellano Cid <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Tue, Sep 04, 2012 at 08:55:19PM +0200, Johannes Hofmann wrote:
> On Tue, Sep 04, 2012 at 06:46:30PM +0200, Sebastian Geerken wrote:
> > On Tue, Sep 04, Johannes Hofmann wrote:
> > > On Tue, Sep 04, 2012 at 02:36:29PM +0200, Sebastian Geerken wrote:
> > > > > I'm mostly finished with cleaning up the calculation of extremes (used
> > > > > for tables). This should already work now, please test it again.
> > > > 
> > > > Just pushed some more changes; should be complete now. Please test
> > > > thoroughly.

  Several sites I visit don't trigger hyphenation because they lack
the "lang" attribute. I'm experimenting with a very simple language 
guess routine, to get an idea of how it could help in this regard.

  @Johannes, This function samples text from the parser, and it may
fall anywhere on the CSS tree. How can I set it for the HTML element so
it is inherited from there?

  I've tried:

     html->styleEngine->setNonCssHint(
        PROPERTY_X_LANG, CSS_TYPE_STRING, html->lang);

     which seems to set it for the current element only.

  and

     html->styleEngine->restyle ();

  with no good result.
  TIA.


-- 
  Cheers
  Jorge.-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.