-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugging ページの日本語訳対応の案 #261
base: i18n/ja
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM👍
@@ -664,7 +664,7 @@ learn: | |||
getting-started-in-webgl-shaders-p14x1: >- | |||
このようなシンプルなシェーダーは、それ自体で役立つことがありますが、p5.js スケッチからシェーダーに変数を伝達する必要がある場合もあります。 | |||
ここでユニフォームが登場します。ユニフォームは、スケッチからシェーダーに送信できる特殊な変数です。 | |||
これにより、シェーダーをより制御できるようになります。例えば、p5.js のメソッド <a class="code">millis()</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
単にフォーマッターによる余白削除です
@@ -73,7 +73,7 @@ copyright: | |||
copyright-title: Copyright Information | |||
copyright1: >- | |||
The p5.js library is free software; you can redistribute it and/or modify it | |||
under the terms of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
単にフォーマッターによる余白削除です
@@ -646,15 +646,15 @@ learn: | |||
以下は、赤色を表示するだけの非常にシンプルなフラグメントシェーダーです: | |||
getting-started-in-webgl-shaders-p10x1: >- | |||
フラグメントシェーダーは、float の 'precision' を指定する行で始まります。この値は、<a | |||
class="code">lowp</a>、<a class="code">mediump</a>、<a class="code">highp</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
単にフォーマッターによる余白削除です
のいずれかになりますが、通常は <a class="code">mediump</a> を使用し、特定の状況では <a | ||
class="code">highp</a> を使用することがあります。 | ||
getting-started-in-webgl-shaders-p11x1: >- | ||
そして、頂点シェーダーと同様に、フラグメントシェーダーにも <a class="code">main()</a> 関数が必要ですが、<a | ||
class="code">gl_Position</a> ではなく、<a class="code">gl_FragColor</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
単にフォーマッターによる余白削除です
に色を割り当てます。 | ||
getting-started-in-webgl-shaders-p12x1: >- | ||
変数 <a class="code">myColor</a> は <a class="code">vec4</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
単にフォーマッターによる余白削除です
確かに learn は複数ページで構成されるので、 example や reference のようにカテゴリー毎に各言語用のファイルがあった方が管理しやすいですよね! 理想のナイスアイデアなのですが、現実はちょっとサイト自動生成絡みで、ややこしくなりそうな雰囲気です・・・ src/templates/pages/learn/index.hbs
これは下記によって自動生成されているようです ここで使用されているejsテンプレートとデータは ここの自動生成を止めるわけにはいかない気がしますが、
とやっておけば、 自動生成、かつ、他言語対応できるかもしれませんね。 "debugging-url: ja"あと、commitで気になったのですが、 別でおっしゃっているのように、ja独自でサイト運営することになったら手を加えるのはありかもです。 |
fix: #35
既存の debugging ページの日本語対応をもしするのであればこれでどうでしょうか?という案出しになりますー
この draft PR の変更に加えて,gitignore に含まれている
src/templates/pages/learn/index.hbs
を以下のように変更すると一応できるかなーと思います.https://p5js.org/learn/ja/debugging.html
でアクセスができるようになる