nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Nioche (JIRA)" <>
Subject [jira] Commented: (NUTCH-794) Tika parser does identify lang attributes on html tag
Date Tue, 16 Feb 2010 10:13:27 GMT


Julien Nioche commented on NUTCH-794:

Apart from the html attribute being lost (see above) there is also an issue with  the fact
that Tika does not put the lang attributes in its XHTML representation but stores that in
the metadata instead. 
I will shortly release a patch to address that in the class HTMLLanguageParser

> Tika parser does identify lang attributes on html tag
> -----------------------------------------------------
>                 Key: NUTCH-794
>                 URL:
>             Project: Nutch
>          Issue Type: Bug
>            Reporter: Julien Nioche
>            Assignee: Julien Nioche
>             Fix For: 1.1
> The following HTML document : 
> <html lang="fi"><head>document 1 title</head><body>jotain suomeksi</body></html>
> is rendered as the following xhtml by Tika : 
> <?xml version="1.0" encoding="UTF-8"?><html xmlns=""><head><title/></head><body>document
1 titlejotain suomeksi</body></html>
> with the lang attribute getting lost.  The lang is not stored in the metadata either.
> I will open an issue on Tika and modify TestHTMLLanguageParser so that the tests don't
break anymore 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message