>i think it is key that we can mark strings as translatable without<br>>making the html invalid.<br>agreed!<br><br>>I like the idea of picking up certain tags by default like title, meta<br>
>tags, and then picking up h1, h2, etc. unless they have the lang=""<br>
>attribute specified. <br>so, in this way we can have specific language text independent of the current localization.<br>mm, interesting.<br> <br>in order to dice what to use, I'll play with both,<br>it will be useful for "counting up 10" activity :)<br>
<br>felipe<br><div class="gmail_quote">2009/7/2 Bryan Berry <span dir="ltr"><<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i think it is key that we can mark strings as translatable without<br>
making the html invalid.<br>
<br>
I like the idea of picking up certain tags by default like title, meta<br>
tags, and then picking up h1, h2, etc. unless they have the lang=""<br>
attribute specified. Then it would be nice to pick up everything else<br>
that belongs to the class="translate". What u think?<br>
<br>
I am looking thru src of html2po and it appears that the primary fault<br>
is that it uses the horrible HTMLParser.py <a href="http://webunit.HTMLParser.py" target="_blank">webunit.HTMLParser.py</a><br>
instead of something more sane like lxml or beautiful soup<br>
<br>
it may be easier to swap out HTMLParser for lxml than improve html2po on<br>
top of HTMLParser<br>
<br>
I will play w/ lxml and html2po to see what i can work out.<br>
<br>
re: beautiful soup vs. lxml . My heart is w/ lxml, enjoyed working w/ it<br>
before and seems to have better css selectors than beautiful soup.<br>
<br>
tks again for your help sayamindu!<br>
<div><div></div><div class="h5"><br>
On Thu, 2009-07-02 at 16:54 +0530, Sayamindu Dasgupta wrote:<br>
> I did a little tweaking of html2po to get <a href="http://pastebin.be/19509" target="_blank">http://pastebin.be/19509</a><br>
> The label tags need to be fixed - but apart from that I think the rest<br>
> of that is OK. May be we can try and build upon html2po and see how it<br>
> works out.<br>
> Thanks,<br>
> Sayamindu<br>
><br>
> 2009/7/2 Bryan Berry <<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>>:<br>
> > subzero,<br>
> ><br>
> > i have been having a lot of discussions about i18n w/ the ever patient<br>
> > sayamindu and reading a lot on the subject. However, I haven't<br>
> > accomplished much. Here is my current playground<br>
> ><br>
> > <a href="http://karma.sugarlabs.org/yes_no/" target="_blank">http://karma.sugarlabs.org/yes_no/</a><br>
> ><br>
> > am currently wrangling how to generate a meaningful po file from an html<br>
> > page.<br>
> ><br>
> ><br>
> > --<br>
> > Bryan W. Berry<br>
> > Technology Director<br>
> > OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
> ><br>
> > _______________________________________________<br>
> > Sugar-devel mailing list<br>
> > <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> > <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> ><br>
><br>
><br>
><br>
--<br>
Bryan W. Berry<br>
Technology Director<br>
OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
<br>
</div></div></blockquote></div><br>