- From: Alan Ruttenberg <alanruttenberg@gmail.com>
- Date: Tue, 24 Mar 2009 15:27:56 -0400
- To: "Phillips, Addison" <addison@amazon.com>
- Cc: Sandro Hawke <sandro@w3.org>, "public-rdf-text@w3.org" <public-rdf-text@w3.org>, "team-rif-chairs@w3.org" <team-rif-chairs@w3.org>, "team-owl-chairs@w3.org" <team-owl-chairs@w3.org>
>> An example of a langpattern is "(en)|(en-.+)" - one could get more >> precise by following http://www.rfc-editor.org/rfc/rfc4647.txt but >> I'm not sure it's worth it. > > I think it's important to follow RFC 4647. A multiplicity of formats makes it more difficult to work with languages and the most likely useful source of 'langpattern' will be RFC 4647-style language priority lists. Also: following the pattern shown would NOT be compliant with BCP 47 language tag matching. (en-.+) matches many invalid tags, for example. The pattern syntax needs to be take from XML Schema (unless there is significant work done). Would it be possible to translate a reasonable example into a regular expression? That would be a great help. -Alan
Received on Tuesday, 24 March 2009 19:28:49 UTC