Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
ja:dev:citation_styles:style_editing_step-by-step [2012/01/13 06:35] – [2 - スタイルの編集] odonja:dev:citation_styles:style_editing_step-by-step [2014/07/02 03:10] – [ヘルプ] odon1
Line 14: Line 14:
 編集したいと思うスタイルをあなたのコンピューターにダウンロードして、Windows付属のメモ帳、Mac OS X付属のテキストエディットなどの(プレイン)テキストエディタでそれを開いてください。その他の選択肢としては、Windows用の[[http://notepad-plus-plus.org/|Notepad++]]、Mac OS X用の[[http://www.barebones.com/products/TextWrangler/|TextWrangler]]、あるいは[[http://www.oxygenxml.com/|oXygen XML Editor]]、[[http://www.thaiopensource.com/nxml-mode/|Emacs in nXML mode]]、and [[http://www.jedit.org/|jEdit]]など、いずれもXML文法のカラーリング機能を備えていて(CSLはXMLに基づいた言語です)、あるものはリアルタイムでの[[https://github.com/citation-style-language/styles/wiki/Validation|CSLの文法チェック]]が可能です。 編集したいと思うスタイルをあなたのコンピューターにダウンロードして、Windows付属のメモ帳、Mac OS X付属のテキストエディットなどの(プレイン)テキストエディタでそれを開いてください。その他の選択肢としては、Windows用の[[http://notepad-plus-plus.org/|Notepad++]]、Mac OS X用の[[http://www.barebones.com/products/TextWrangler/|TextWrangler]]、あるいは[[http://www.oxygenxml.com/|oXygen XML Editor]]、[[http://www.thaiopensource.com/nxml-mode/|Emacs in nXML mode]]、and [[http://www.jedit.org/|jEdit]]など、いずれもXML文法のカラーリング機能を備えていて(CSLはXMLに基づいた言語です)、あるものはリアルタイムでの[[https://github.com/citation-style-language/styles/wiki/Validation|CSLの文法チェック]]が可能です。
  
-スタイルのコードを[[ja:dev:citation_styles:reference_test_pane|Zotero Reference Test pane]]にコピーして貼りつけてください。こうすると、コードの編集によるスタイル出力への効果を直ちに確認することができます。このtest paneの中で直接編集を行う場合、編集をテキストエディタで頻繁に保存するようにしてください。test paneの中での変更は簡単に失われてしまいます。+スタイルのコードを[[ja:dev:citation_styles:reference_test_pane|Zotero 参考文献検証画面]]にコピーして貼りつけてください。こうすると、コードの編集によるスタイル出力への効果を直ちに確認することができます。このtest paneの中で直接編集を行う場合、編集をテキストエディタで頻繁に保存するようにしてください。test paneの中での変更は簡単に失われてしまいます。
  
 CSLに変更を行う際の情報については、CSLプロジェクトのウェブサイトにある[[http://citationstyles.org/citation-style-language/documentation/|ドキュメンテーションのページ]]を参照するようにしてください (特に、[[http://citationstyles.org/downloads/specification.html|CSL の仕様]]に目を通すようにしてください)。以下ではいくつかの基本的なスタイル編集について論じます。 CSLに変更を行う際の情報については、CSLプロジェクトのウェブサイトにある[[http://citationstyles.org/citation-style-language/documentation/|ドキュメンテーションのページ]]を参照するようにしてください (特に、[[http://citationstyles.org/downloads/specification.html|CSL の仕様]]に目を通すようにしてください)。以下ではいくつかの基本的なスタイル編集について論じます。
Line 104: Line 104:
 変更したスタイルをインストールする前に、必ずそれが正確なXMLかつCSLであることを[[https://github.com/citation-style-language/styles/wiki/Validation|CSL文法チェック]]で確認して下さい。 変更したスタイルをインストールする前に、必ずそれが正確なXMLかつCSLであることを[[https://github.com/citation-style-language/styles/wiki/Validation|CSL文法チェック]]で確認して下さい。
  
 +[[http://validator.nu/?schema=https%3A%2F%2Fgithub.com%2Fcitation-style-language%2Fschema%2Fraw%2Fv1.0%2Fcsl.rnc&parser=xml&laxtype=yes|Validator.nu]]
 ===== 3 - 編集済みのスタイルをZoteroにインストール ===== ===== 3 - 編集済みのスタイルをZoteroにインストール =====
  
Line 112: Line 113:
 ===== 4 - スタイルを共有する ===== ===== 4 - スタイルを共有する =====
  
-もし編集したスタイルが他の利用者にも有用であるとお考えなら、そのスタイルを[[/styles|Zotero 引用様式保管庫]]に[[https://github.com/citation-style-language/styles/wiki/Submitting-Styles|投稿]]してください。+もし編集したスタイルが[[https://github.com/citation-style-language/styles/wiki/Validation|文法チェック]]をクリアし、他の利用者にも有用であるとお考えなら、そのスタイルを[[/styles|Zotero 引用様式保管庫]]に[[https://github.com/citation-style-language/styles/wiki/Submitting-Styles|投稿]]してください。
  
 +==方法1 gist.github.com (手軽で早い)==
 +
 +[[http://gist.github.com]]に移動し, スタイルのコードをテキストボックスに貼り付けてください。 スタイルに名前をつけて("name this file...")、"Create Public Gist"ボタンをクリックしてください。その結果作られるgistページのURL(例 [[https://gist.github.com/1320111]])をコピーして、Zoteroのスタッフへ知らせてください。[[http://forums.zotero.org/11/|ZoteroフォーラムのCitation Styles部門]]で新しい議論を立ち上げてくださっても構いませんし、スタイルの保管庫の中で[[https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcitation-style-language%2Fstyles%2Fissues%2Fnew|新しいGitHub issueを作って]]貰っても構いません。
 +
 +
 +==方法2 Pull Requests==
 +
 +Creating GitHub pull requests is slightly more complicated, but is more convenient for us, and quicker if you want to submit (changes to) a large number of styles. Start by forking the style repository. Commit your changes, and create a pull request. You can do all this directly through the GitHub interface (see https://github.com/blog/844-forking-with-the-edit-button), or use a local Git client (we recommend SmartGit, which is free for non-commercial purposes, and doesn't require you to manually set up a SSH connection).
 ===== ヘルプ ===== ===== ヘルプ =====
  
Line 121: Line 130:
   * [[http://citationstyles.org/downloads/primer.html|CSL 1.0 Primer]]   * [[http://citationstyles.org/downloads/primer.html|CSL 1.0 Primer]]
   * [[https://github.com/citation-style-language/styles/wiki]]   * [[https://github.com/citation-style-language/styles/wiki]]
 +  * [[http://editor.citationstyles.org/visualEditor/|Visual CSL Editor]] 洗練されたGUIでCSLスタイルを編集することが出来ます