Re: ISSUE-118: HTML ITS default behaviour - starting point, ACTION-452

Hi Yves, all,

this seems to be a good start.

For the withinTextRule I would add everything which HTML5 declares as 
Phrasing content [1].
This would add to your list: area, audio, bdi, br, button, canvas, 
command, datalist, embed, iframe, input, keygen, label, map, mark, math, 
meter, noscript, object, output, progress, ruby, script, select, svg, 
textarea, time, video, wbr
Also as we use HTML5, we shouldn't include removed tags like font.
Maybe even Flow content [2] which also includes ul, ol, li and h*.
This is complicated because, what is the starting point for the text? If 
you choose div, then everything allowed in a div should be in here, 
which is also a div.

What about a rulyRule for the ruby element?
<its:rubyRule selector="//h:ruby">

What about a domainRule which points to the meta keywords or 
dcterms.subject?
<its:domainRule selector="/h:html/h:body" 
domainPointer="/h:html/h:head/h:meta[@name='dcterms.subject' or 
@name='keywords']/@content" />

I'm not sure about the following translateRule:
  <its:translateRule selector="//h:del" translate="no"/>
  <its:translateRule selector="//h:del/descendant-or-self::*/@*" 
translate="no"/>

Why this shoudln't be translated? The text has be deleted, but if it is 
still there, it was intended and should be translated in my mind.

[1] http://www.w3.org/TR/html5/dom.html#phrasing-content-1
[2] http://www.w3.org/TR/html5/dom.html#flow-content-1

Cheers,
Karl

PS: Current withinTextRules sorted (needed this for the difference): a, 
abbr, acronym, b, bdo, big, br, center, cite, code, del, dfn, em, font, 
hr, i, ins, img, isindex, kbd, q, s, samp, small, strike, span, strong, 
sub, sup, tt, u, var,

On 27.02.2013 14:49, Yves Savourel wrote:
> Hi everyone,
>
> Attached and copied below is the set of global rules corresponding to what we think would be a start for the defaults.
> This is likely not covering all that needs to be covered.
> And obviously some of these are likely controversial.
>
> The wiki page for listing the defaults is here:
> http://www.w3.org/International/multilingualweb/lt/wiki/HTML5_Defaults
>
> cheers,
> -yves
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"
>   xmlns:h="http://www.w3.org/1999/xhtml">
>   
>   <!-- Inline elements -->
>   <its:withinTextRule withinText="yes"
>    selector="//h:abbr | //h:acronym | //h:br | //h:cite | //h:code | //h:dfn
>    | //h:kbd | //h:q | //h:samp | //h:span | //h:strong | //h:var | //h:b | //h:em
>    | //h:big | //h:hr | //h:i | //h:small | //h:sub | //h:sup | //h:tt | //h:del
>    | //h:ins | //h:bdo | //h:img | //h:a | //h:font | //h:center | //h:s | //h:strike
>    | //h:u | //h:isindex" />
>    
>   <!-- Non-translatable elements -->
>   <its:translateRule selector="//h:script|//h:style" translate="no"/>
>   
>   <its:translateRule selector="//h:del" translate="no"/>
>   <its:translateRule selector="//h:del/descendant-or-self::*/@*" translate="no"/>
>   
>   <!-- Translatable attribute -->
>   <its:translateRule selector="//h:*/@abbr|//h:*/@alt|//h:*/@prompt|//h:*/@standby|//h:*/@summary|//h:*/@title" translate="yes"/>
>   
>   <its:translateRule selector="//h:meta[@name='keywords']/@content" translate="yes"/>
>   <its:translateRule selector="//h:meta[@name='description']/@content" translate="yes"/>
>   
>   <!-- Attributes for the input element -->
>   <its:translateRule selector="//h:input/@value" translate="yes"/>
>   <its:translateRule selector="//h:input[@type='hidden']/@value" translate="no"/>
>   
>   <!-- Bidirectional information. Note: No direct support for 'auto' value -->
>   <its:dirRule selector="//h:*[@dir='ltr']" dir="ltr"/>
>   <its:dirRule selector="//h:*[@dir='rtl']" dir="rtl"/>
>   <its:dirRule selector="//h:bdo[@dir='ltr']" dir="lro"/>
>   <its:dirRule selector="//h:bdo[@dir='rtl']" dir="rlo"/>
>
>   <!-- Note: dfn and dt don't match exactly the Terminology data category -->
>    
>   <!-- Id Value -->
>   <its:idValueRule selector="//h:*[@id]" idValue="@id"/>
>   
>   <!-- Note: Preserve space is not handled by ITS -->
>   
>   <!-- Domain -->
>   <its:domainRule selector="/h:html"
>    domainPointer="/h:html/h:head/h:meta[@name='dcterms.subject' or @name='keywords']/@content"/>
>
> </its:rules>
>


-- 
*Karl Fritsche*, Junior Software Developer
Tel.: +49 69 972 69 2604; Mob.: +49 1520 206 30 93; Fax: +49 69 972 69 
199; Email: Karl.Fritsche@cocomore.com <mailto:karl.fritsche@cocomore.com>
*Cocomore AG,* Gutleutstraße 30, D-60329 Frankfurt
Internet: http://www.cocomore.de <http://www.cocomore.de/> Facebook: 
http://www.facebook.com/cocomore Google+: http://plus.cocomore.de 
<http://plus.cocomore.de/>
Cocomore is active member of the World Wide Web Consortium (W3C)
Vorstand: Dr. Hans-Ulrich von Freyberg (Vors.), Dr. Jens Fricke, Marc 
Kutschera, Vors. des Aufsichtsrates: Martin Velasco, Sitz: 
Frankfurt/Main, Amtsgericht Frankfurt am Main, HRB 51114

Received on Wednesday, 27 February 2013 16:33:03 UTC