Skip to content

Commit

Permalink
編集( WHATWG 著作権/許諾情報をメタ情報に追加
Browse files Browse the repository at this point in the history
Adopting to:
whatwg/sg#59 ,
whatwg/sg#40
  • Loading branch information
triple-underscore committed Jan 22, 2018
1 parent 4574f2f commit 14a9e8a
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 13 deletions.
1 change: 1 addition & 0 deletions DOM4-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@
ref_id_prefix:biblio-
ref_id_lowercase:true
site_nav:infrastructure,uievents,html,selector
copyright:2018,whatwg
trans_1st_pub:2012-01-28


Expand Down
1 change: 1 addition & 0 deletions Encoding-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
spec_status:LS
original_url:https://encoding.spec.whatwg.org/
ref_id_prefix:refs
copyright:2018,whatwg
trans_1st_pub:2012-10-22

●●link_map
Expand Down
1 change: 1 addition & 0 deletions Fetch-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
ref_id_prefix:biblio-
ref_id_lowercase:true
site_nav:network,http,security,storage
copyright:2018,whatwg
trans_1st_pub:2013-04-27


Expand Down
1 change: 1 addition & 0 deletions Streams-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
original_url:https://streams.spec.whatwg.org/
ref_id_prefix:biblio-
ref_id_lowercase:true
copyright:2018,whatwg
trans_1st_pub:2015-01-19


Expand Down
1 change: 1 addition & 0 deletions URL-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
ref_id_prefix:biblio-
ref_id_lowercase:true
site_nav:network,security,html
copyright:2018,whatwg
trans_1st_pub:2012-10-20


Expand Down
1 change: 1 addition & 0 deletions XHR-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
ref_id_prefix:biblio-
ref_id_lowercase:true
site_nav:network,storage,security
copyright:2018,whatwg
trans_1st_pub:2012-10-25


Expand Down
4 changes: 4 additions & 0 deletions common0.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ Util.fillHeader = function(){
if(!header) return;
var hgroup = header.querySelector('hgroup');

if( url.slice(0,39) === 'https://html.spec.whatwg.org/multipage/' ){
options.copyright = '2018,whatwg';
}

fillLogoImage();
fillDate();
placeMetadata();
Expand Down
33 changes: 22 additions & 11 deletions common1.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,33 +476,44 @@ function fillCopyright(){
var year = info[0];
var license = info[1];

var html = '\
<small lang="en-x-a0">\
<a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © \
'
+ year + ' \
<a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> \
var html
= '<small>このページは、次による原文の許諾の下で翻訳されています:<br><span lang="en-x-a0">';
switch( license ){
case 'whatwg':
html
+= '<a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. Copyright © '
+ year
+ ' WHATWG (Apple, Google, Mozilla, Microsoft).';
break;
case 'use':
case 'permissive':
html
+= '<a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © '
+ year
+ ' <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> \
(<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, \
<a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, \
<a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>). \
W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, \
<a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and \
'
+ (
license === 'use' ?
+ ( license === 'use' ?
'<a rel="license" href="https://www.w3.org/Consortium/Legal/copyright-documents">document use</a>' :
'<a rel="license" href="http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">permissive document license</a>'
)
+ ' rules apply.</small>';

+ ' rules apply.\
</span></small>';

/*
http://www.ercim.org/ と https://www.ercim.eu/ ( 1 箇所のみ)の違いは無視
http://www.ercim.org/ と https://www.ercim.eu/ の違いは無視( 1 箇所のみ)。
", All Rights Reserved" (数カ所)は省略。
rel="license" の有無は無視。
https と http の違いは無視。
*/

break;
}

details.insertAdjacentHTML('beforeend', html);
}

Expand Down
1 change: 1 addition & 0 deletions compat-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
spec_status:LS
ref_id_prefix:biblio-
ref_id_lowercase:true
copyright:2018,whatwg
trans_1st_pub:2016-08-29


Expand Down
1 change: 1 addition & 0 deletions console-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
spec_status:LS
original_url:https://console.spec.whatwg.org/
ref_id_prefix:refs
copyright:2018,whatwg
trans_1st_pub:2017-10-02


Expand Down
1 change: 1 addition & 0 deletions fullscreen-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
ref_id_prefix:biblio-
ref_id_lowercase:true
site_nav:uievents
copyright:2018,whatwg
trans_1st_pub:2017-12-24

●●link_map
Expand Down
5 changes: 3 additions & 2 deletions infra-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
original_url:https://infra.spec.whatwg.org/
ref_id_prefix:biblio-
ref_id_lowercase:true
copyright:2018,whatwg
trans_1st_pub:2016-11-25


Expand Down Expand Up @@ -3479,7 +3480,7 @@ <h4 title="Sets">5.1.3. 集合</h4>

<ul>
<li>
所与の `~item$ %item を`有順序~集合$ %S に
`有順序~集合$ %S に 所与の `~item$ %item を
`付加する@set
ときは
Expand All @@ -3490,7 +3491,7 @@ <h4 title="Sets">5.1.3. 集合</h4>
To append to an ordered set is to do nothing if the set already contains the given item, or to perform the normal list append operation otherwise.
</li>
<li>
`有順序~集合$ %S に所与の`~item$ %item を
`有順序~集合$ %S に 所与の`~item$ %item を
`前付加する@set
ときは
Expand Down
1 change: 1 addition & 0 deletions notifications-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
ref_id_prefix:biblio-
ref_id_lowercase:true
site_nav:uievents
copyright:2018,whatwg
trans_1st_pub:2018-01-05

●●link_map
Expand Down
1 change: 1 addition & 0 deletions storage-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
ref_id_prefix:biblio-
ref_id_lowercase:true
site_nav:storage
copyright:2018,whatwg
trans_1st_pub:2017-02-15


Expand Down

0 comments on commit 14a9e8a

Please sign in to comment.