TITLE:編集 (Editing)
原文 = http://ankisrs.net/docs/manual.html#editing
----
目次
#contents
&br;&br;

* 機能 [#features]
//* Features

&ref(add.png,,編集画面);
[[ノートの追加>2.0/AddingMaterial#adding-cards-and-notes]] 時や [[復習中の編集>2.0/Studying#editing-and-more]]、[[ブラウザ>2.0/Browser]]使用中の編集ではエディタが表示されます。
//The editor is shown when [[adding notes :http://ankisrs.net/docs/manual.html#addingnotes]], [[editing a note :http://ankisrs.net/docs/manual.html#editmore]] during reviews, or [[browsing :http://ankisrs.net/docs/manual.html#browser]].

左上には2つのボタンがあり、それぞれ [[フィールド>2.0/AddingMaterial#customizing-fields]] ウィンドウ と [[カード>2.0/CardsAndTemplates]] ウィンドウを開きます。
//On the top left are two buttons, which open the [[fields :http://ankisrs.net/docs/manual.html#fields]] and [[cards :http://ankisrs.net/docs/manual.html#templates]] windows.

右側にはボタンがあり、太字、斜体や下線などのフォーマットをワープロソフトのように編集できます。隣の2つのボタンは下付き (subscript) と上付き (superscript) のテキストをコントロールでき、H₂O のような化学式や、x²のような方程式に利用できます。
//On the right are buttons that control formatting. Bold, italic and underline work like they do in a word processing program. The next two buttons allow you to subscript or superscript text, which is useful for chemical compounds like H2O or simple math equations like x2.

赤い×アイコンは、現在選択中のテキストの全てのフォーマット指定を削除します。これには色や太字などが含まれます。
//The icon with the red X clears any formatting in the currently selected text. This includes colours, bold, etc.

隣のボタンではテキスト色の変更ができます。
//The next button allows you to change text colour.

クリップのボタンでは、音声、画像、ビデオファイルをコンピュータのドライブから選択し、ノートに添付することができます。別の方法として、メディアをコンピュータのクリップボードにコピーし(例えば、Web の画像上で右クリックし、'''画像のコピー''' ('''Copy Image''') を選択するなど)、フィールド内にペーストすることでも追加が可能です。メディアに関しての詳しい情報は、[[メディア>2.0/Media]] を参照してください。
//You can use the paperclip button to select audio, images and videos from your computer’s hard drive to attach to your notes. Alternatively, you can copy the media onto your computer’s clipboard (for instance, by right-clicking an image on the web and choosing '''Copy Image''') and paste it into the field that you want to place it in. For more information about media, please see the [[media :http://ankisrs.net/docs/manual.html#media]] section.

赤い○ボタンではコンピュータのマイクからの録音ができ、録音したファイルはノートに添付できます。
//The red circle button allows you to record from your computer’s microphone and attach the recording to the note.

最後のボタンは [[LaTeX>2.0/LaTeXSupport]] とよばれる高度な数学マークアップを追加し、編集することができます。
//The last button allows you to add advanced mathematical markup called [[LaTeX :http://ankisrs.net/docs/manual.html#latex]] to your notes or edit the underlying formatting.

ほとんどのボタンにはショートカットキーが設定されています。ボタン上にマウスカーソルを重ねることで、ショートカットが表示されます。LaTeX/HTML メニューについては、 Ctrl+t, t/e/m で3種の LaTeX タイプを選択でき、Ctrl+Shift+x で HTML が編集できます。
//Most of the buttons have shortcut keys. You can hover the mouse cursor over a button to see its shortcut. For the LaTeX/HTML menu, use Ctrl+t, then t, e or m to select the three LaTeX types, and Ctrl+Shift+x to edit the HTML.
* 穴埋め問題 [#cloze-deletion]
//* Cloze Deletion

穴埋め問題(Cloze deletion)は文章の一部が隠された問題です。例えば、以下のような文章を入力します。
//'''Cloze deletion''' is the process of hiding one or more words in a sentence. For example, if you have the sentence:

 Canberra was founded in 1913.

ここで "1913" の部分を穴埋めにすることで、次のように表示されるようになります。
//…and you create a cloze deletion on “1913”, then the sentence would become:

 Canberra was founded in [...].

このように穴埋めにされることを "occluded" とよぶことがあります。
//Sometimes sections that have been removed in this fashion are said to be '''occluded'''.

穴埋め問題を使用した方がいい理由の説明については、[[20ルール :http://www.supermemo.com/articles/20rules.htm]] ([[日本語訳>http://d.hatena.ne.jp/rage2050/20110502#p1]])の5番目を参照してください。 
//For more information on why you might want to use cloze deletion, see rule number 5 [[here :http://www.supermemo.com/articles/20rules.htm]].

Ankiは穴埋め部分を容易に作成できるように、特別なノートタイプとして"cloze deletion"を提供します。穴埋め問題を作成したいときには、ノートタイプとして"Cloze"を選択し、適当な文章を"Text" フィールドに記入します。マウスのドラッグで穴埋めにしたい部分を選択し、[…](穴埋めボタン)を押します(Ctrl+Shift+C)。Ankiは文章を以下のように置き換えます。
//Anki provides a special cloze deletion type of note, to make creating clozes easy. To create a cloze deletion note, select the Cloze note type, and type some text into the "Text" field. Then drag the mouse over the text you want to hide to select it, and click the […] button. Anki will replace the text with:

 Canberra was founded in {{c1::1913}}.

"c1"は一カ所目の穴埋め部分であることを意味します。必要なら、複数の穴埋め部分を作成することができます。例えば、Canberraを選択してもう一度 […](穴埋めボタン)を押すと、次のようになります。
//The “c1” part means that you’ve created one cloze deletion on the sentence. You can create more than one deletion if you’d like. For example, if you select Canberra and click […] again, the text will now look like:

 {{c2::Canberra}} was founded in {{c1::1913}}.

上記をノートに追加すると、Ankiは2枚のカードを作成します。最初のカードの質問は次のようになり、
//When you add the above note, Anki will create two cards. The first card will show:

 Canberra was founded in [...].

カードの解答には全文が表示されます。次のカードの質問は以下のようになります。
//…on the question, with the full sentence on the answer. The other card will have the following on the question:

 [...] was founded in 1913.

1枚のカードで複数の部分を穴埋めにすることもできます。上記の例では、 "c2" を "c1" と書き換えると、"Canberra" と "1913" との両方が隠された1枚のカードのみが作られます。なお、Altキー(Mac では option キー)を押しながら穴埋めを作る〔 Ctrl+Shift+Alt+C 〕と、穴埋め番号を増加させずに同じ番号を使用した穴埋めになります。〔つまり、"c1" の穴埋め部分がすでに文中にある場合は、同じく "c1" の穴埋め部分が作成されます。"c1" と"c2" の穴埋め部分がすでに文中にある場合は、"c2" の穴埋め部分が作成されます。〕
//You can also elide multiple sections on the same card. In the above example, if you change c2 to c1, only one card would be created, with both Canberra and 1913 hidden. If you hold down alt (option on a Mac) while creating a cloze, Anki will automatically use the same number instead of incrementing it.

穴埋め部分を作成する際は、必ずしも語句の始めから終わりまでを範囲選択しなくてもかまいません。もし上記の例で"Canberra"でなく"anberra" を範囲指定すると、問題文は "C[…] was founded in 1913" というように、〔頭文字が "C" であるという〕ヒントが示された状態で表示されることになります。
//Cloze deletions don’t need to fall on word boundaries, so if you select “anberra” rather than “Canberra” in the above example, the question would appear as “C[…] was founded in 1913”, giving you a hint.

元の文章とは異なるヒントを付けたい場合には、以下のように元の文章を置き換えます:
//You can also give yourself hints that don’t match the text. If you replace the original sentence with:

 Canberra::city was founded in 1913

そして "Canberra::city" を選択して穴埋め問題にすると、2つのコロン "::" の後の文章はヒントとして扱われ、穴埋めテキストが次のように変わります:
//…and then press […] after selecting "Canberra::city", Anki will treat the text after the two colons as a hint, changing the text into:

 {{c1::Canberra::city}} was founded in 1913

復習時にはカードは以下のように表示されます:
//When the card comes up for review, it will appear as:

 [city] was founded in 1913.

穴埋め問題の解答をタイプ入力させる方法については、[[回答のタイプ入力>2.0/CardsAndTemplates#checking-your-answer]] のセクションを参照して下さい。
//For information on testing your ability to type in a cloze deletion correctly, please see the section on [[typing answers :http://ankisrs.net/docs/manual.html#typinganswers]].

穴埋めを複数個重ねることはサポートされていないことに注意してください。例えば、以下のようなフィールドは定義できません。
//Please note that overlapping clozes are not supported. For example, the following field is invalid:

 {{c1::Canberra was {{c2::founded}}}} in 1913

穴埋めが複数個重なった穴埋め問題を作る場合は、新たに別のフィールドを作り、[[テンプレート>2.0/CardsAndTemplates]] に追加して下さい。そして問題を作る際、以下のように文章を2つのフィールドに分けて貼り付けて下さい:
//If you need to create clozes from overlapping text, add another Text field to your cloze, add it to the [[template :http://ankisrs.net/docs/manual.html#templates]], and then when creating notes, paste the text into two separate fields, like so:

 Text1 field: {{c1::Canberra was founded}} in 1913
 
 Text2 field: {{c2::Canberra}} was founded in 1913

デフォルトの穴埋めノートタイプは2つ目のフィールドとして、"Extra"フィードを持っています。これはカードの解答側に表示され、用法や付加的な情報を追加するのに使うことができます。
//The default cloze note type has a second field called Extra, that is shown on the answer side of each card. It can be used for adding some usage notes or extra information.

穴埋めノートタイプは Anki で特別な取り扱いがされており、一般のノートタイプからは作ることができません。カスタマイズが必要であれば、既存の穴埋めノートタイプから クローン をして使うようにしてください。
//The cloze note type is treated specially by Anki, and cannot be created based on a regular note type. If you wish to customize it, please make sure to clone the existing Cloze type instead of another type of note.
* 外国語文字の入力やアクセント [#inputting-foreign-characters-and-accents]
//* Inputting Foreign Characters and Accents

Windows, Mac, Linux ではほとんどの言語の文字入力に対する組み込みのサポートがあります。異なるキーボードを買う必要はありません。単語カードプログラムの中にはクリックで多言語の文字が入力できるボタンや、変換ツールを用意して、コンピュータ自体の文字入力を有効にする手間を省いているものがあります。しかしこの手法では入力が非常に遅くなります。ある人は[[このように記しています :http://www.glowingfaceman.com/2008/12/french-revolution-day-7.html]]:
//Windows, Mac and Linux provide built-in support for typing most languages. There is no need to buy a different keyboard. Some flashcard programs try to save you the trouble of enabling support on your computer by providing a clickable set of buttons for each foreign character or their own conversion utilities. However, this makes input a lot slower. One person [[writes :http://www.glowingfaceman.com/2008/12/french-revolution-day-7.html]]:

>ところで、特殊な文字をもった外国語を学習している場合、たとえそれがスペイン語の ñ だけであっても、その入力方法を調べることをお勧めします。日本語を学習し始めた最初の頃は、日本語の文字の入力の仕方がわからず、単語カードを作ったり、人とやり取りをするためにコピー・アンド・ペーストだけを使っていました。その頃は新しい文章を入力したいときは文字を探すのが非常に骨が折れる作業で、さらに1文字ずつコピー・アンド・ペーストする必要がありました。アメリカで購入したコンピュータを日本語IMEに対応させる作業は非常に大変であり、Microsoft の日本語 IME をインストールするため、友人から Windows XP ディスクを借りる必要がありました。しかしその苦労はその100万倍以上も価値のあるものでした。振り返ると、日本語を学習し始めてすぐにこれを行うべきであったと思います。
//>By the way, if you’re learning any foreign language with exotic characters, even just the Spanish ñ, I encourage you to look into how to efficiently type those characters. When I first started studying Japanese, I didn’t know how to type Japanese characters. I’d just copy-and-paste things to make flashcards and/or communicate with people. And if I wanted to type something original, that meant painstakingly finding, then copying-and-pasting each individual character. With my U.S.-bought computer, it was kind of a pain to get Japanese IME support (and it involved borrowing a Windows XP disk from a friend since you need one to install Microsoft’s Japanese IME). But it was worth it a million times over. In retrospect, I should have done that as one of my very first steps when I first set out to learn Japanese.

右から左に書く言語を学習している場合、その他にも多くの考えるべきことがあります。詳細は [[こちらのページ(英語):http://dotancohen.com/howto/rtl_right_to_left.html]] を参照してください。
//If you’re learning a right to left language, there are lots of other things to consider. Please see [[this page :http://dotancohen.com/howto/rtl_right_to_left.html]] for more information.

もっと知るには、Google で "Mac 中国語入力" や "ドイツ語入力 Windows" などを検索すれば、多くの良い情報が見つかります。
//To learn more, please search Google for something like “input Japanese on a mac” or “input German on windows”, as there is plenty of good information available.

>''ノート''
>Anki が使用しているツールキットは、一部のインプットメソッドの取扱いに問題があります。例えば Max OS X でのキー長押しによるアクセント文字の選択などや、数字キーを押している間の文字入力などです。幸いにも、通常は他に正しく動作し素早く入力できるインプットメソッドが存在します。あなたの OS での選択肢を調べてみてください。
//>''Note''
//>The toolkit Anki is built on has trouble dealing with a few input methods, such as holding down keys to select accented characters on Mac OS X, and typing characters by holding down a key and typing an numeric code. Fortunately, there are usually other input methods that will work properly and then tend to be faster - please research other options for your operating system.