Closed
Bug 451654
Opened 17 years ago
Closed 16 years ago
[silme] New file-parser needed for bookmarks.html
Categories
(Mozilla Localizations :: Infrastructure, defect)
Mozilla Localizations
Infrastructure
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: adriank, Unassigned)
Details
(Whiteboard: [compare-locales compat])
To have full compatibility of compare-locales for Silme we need to have a bookmarks file parser to parse the bookmarks.html file.
Probably we can use much of the code of the parser which already is in compare-locales.
Reporter | ||
Updated•17 years ago
|
Whiteboard: [compare-locales compat]
Comment 1•17 years ago
|
||
So, here I was thinking about building a support for HTML files overall.
You can't cove all, but we can cover pretty much a lot. An ID of such entity would be it's XPath path, and w could cover all all texts and value="*"/label="" properties.
Then on top of it we can build a very simple bookmarks.html parser that would reuse html parser.
What do you think?
Reporter | ||
Comment 2•17 years ago
|
||
If we want to parse all HTML files, the question will be, if we will need to use a Tidy tool first to make the HTML file XML-valid?
The last time I worked with XPaths on HTML files I had to Tidy them first - but that was about 3 years ago...
Comment 3•17 years ago
|
||
I'm not sure how much effort we should spend on doing bookmarks.html compat. The logic to check is somewhat peculiar, and I'm removing it from at least hg anyway.
Reporter | ||
Comment 4•17 years ago
|
||
Pike: so we can leave this bug open as I nice-to-have feature, with a low priority and not blocking anymore bug 452311 ?
Maybe if someone implements a full HTML parser for Silme we could try to use it for bookmarks.html...
Comment 5•17 years ago
|
||
Yeah. I'm not sure if an html localization scheme would be a good fit for silme.
HTML is full of placeables, and I have no idea yet on how to handle those.
Reporter | ||
Comment 6•16 years ago
|
||
Axel, Gandalf: as 1.9.1 is approaching, and we do not have bookmarks.html there anymore: I think we do not need this feature.
WONTFIX?
Comment 7•16 years ago
|
||
Yes, WONTIFXed. Dropping dependencies for this bug, too, to make those simpler.
You need to log in
before you can comment on or make changes to this bug.
Description
•