- From: Felix Sasaki <fsasaki@w3.org>
- Date: Thu, 23 May 2013 17:17:11 +0200
- To: 'Philip' <Philip.Oduffy@ul.ie>
- CC: Yves Savourel <ysavourel@enlaso.com>, public-multilingualweb-lt@w3.org
Hi Philip, Yves is right and it might make sense to think of "translate" in HTML rather as a new mechanism, instead of defaults. See copied from http://www.w3.org/TR/2013/WD-its20-20130521/#trans-datacat [ The Translate data category can be expressed with global rules, or locally on an individual element. Handling of inheritance and interaction between elements and attributes is different for XML content versus [HTML5] content. For XML: for elements, the data category information inherits to the textual content of the element, including child elements, but excluding attributes. The default is that elements are translatable and attributes are not. The interpretation of the translate attribute is given in HTML5. Note: As of writing, the default in [HTML5] is that elements are translatable, and that translatable attributes inherit from the respective elements. There is pre-defined list of translatable attributes, for example alt or title. ] AFAKI you work with an XSLT based approach, right? If that's the case, I'll send you some ideas offline. Best, Felix Am 23.05.13 16:12, schrieb Yves Savourel: > Hi Philip, > > The problem with a rules file is that it (presumably) would be applied using whatever global rules engine you are using, and (if you > are decorating the tree) that won't work in many cases when overriding is used later on. > It all depends on your implementation, but the bottom line is that applying the defaults should not prevent the overrides to work. > It's especially true with inheritance. In our case we started with a rules file, but we had to switch to hard code the defaults > instead. > > For example when you apply a global rule on a node c of a tree /a/b/c/d if later you have a local markup on b it won't be inherited > by c or d because c would need to be explicitly overridden. > > -ys > > -----Original Message----- > From: Philip [mailto:Philip.Oduffy@ul.ie] > Sent: Thursday, May 23, 2013 7:33 AM > To: public-multilingualweb-lt@w3.org > Subject: Translate html 5 defaults > > Hey Guys, > We are revisiting the translate data category, which we previously had fully conformant, as a result of the new html 5 defaults. > We were wondering if there is a rules file that has been created for the html 5 defaults, otherwise we're going to have to do our > own custom logic to deal with all the defaults. > Thanks, > Philip > > >
Received on Thursday, 23 May 2013 15:17:50 UTC