TITLE:AnkiWeb と同期 (AnkiWeb and Synchronization) 原文 = http://ankisrs.net/docs/manual.html#syncing ---- 目次 #contents &br;&br; AnkiWeb は複数のデバイス間でのコレクションの同期や、オンラインでの学習を可能にするサービスです。以下の手順に進む前に、フリーアカウントの登録をしてください。 //AnkiWeb is a service that allows you to keep your collection synchronized across multiple devices, and to study online. Please sign up for a free account before following the steps below. * セットアップ [#setup] //* Setup デバイス間でコレクションの同期を開始するには、sync ボタン(メインスクリーンの右上)を押すか、キーボードの '''y''' キーを押してください。すると登録の際に作成した、AnkiWeb ID とパスワードの入力を求められます。 //To start syncing your collection across devices, click the sync button (the top right one on the main screen), or press '''y''' on your keyboard. You’ll be prompted for your AnkiWeb ID and password, which you created in the signup process. コレクションを最初に同期したときには、Anki は AnkiWeb に保存されたコンテンツと、コンピュータ上に保存されたコンテンツを統合することができません。そのためどちら側のコンテンツを保持する必要があるかを選ぶ必要があります。一旦最初のセットアップが完了すれば、Anki は複数の場所からの変更をマージすることができるようになります(一部の例外を除く)。 //When you synchronize your collection for the first time, Anki will not be able to merge the content stored on AnkiWeb and the content stored on your computer, so you’ll need to choose which side you’d like to keep. Once the initial setup is completed however, Anki will be able to merge changes from multiple locations with a few exceptions. >''ノート'' >複数人で Anki を使っており、ユーザーごとにプロファイルを作成した場合、同期するにはユーザーごとに AnkiWeb アカウントを作成する必要があります。複数のプロファイルを1つの AnkiWeb アカウントと同期しようとすると、データが失われてしまいます。 //>''NOTE'' //>If you have multiple people using Anki on one machine and have created a profile for each user, each user will need to create their own AnkiWeb account to sync with. If you attempt to synchronize multiple profiles with a single AnkiWeb account, you will lose data. * 自動同期 [#automatic-syncing] //* Automatic Syncing 一旦同期が有効になると、Anki はコレクションの開閉の度に自動的に同期を行います。手動で同期を行いたい場合には、Anki の設定から自動同期を無効にしてください。 //Once syncing is enabled, Anki will automatically sync each time your collection is closed or opened. If you would prefer to synchronize manually, you can disable automatic syncing in Anki’s preferences. * メディア [#media] //* Media Ankiはノートに使用されている全ての音声と画像を同期します。メディアフォルダーからメディアの追加・削除がされた場合には検出されますが、既に存在するファイルを編集しただけの場合にはその編集は検出されません。加えた編集を同期に反映したい場合、ファイルの追加か削除も同時に行う必要があります。 //Anki will synchronize any sounds and images used by your notes. It will notice when media has been added or removed from your media folder, but will not notice if you have edited some existing files without adding or removing any. To get your edits noticed, you need to add or remove a file as well. >''ノート'' >Anki をUSB フラッシュドライブから起動している場合、NTFS ファイルシステムを使用してください。Anki は FAT32 ファイルシステム上のメディアの更新を検出することができないためです。 //>'''Note''' //>If you’re running Anki off a USB flash drive, you should use an NTFS file system, as Anki may not be able to detect media changes on a FAT32 filesystem. * 競合 (Conflicts) [#conflicts] //* Conflicts 復習とノートの編集は統合することができ、よって同期前に 2 つの異なったデバイスで復習と編集をした場合、Anki はそれぞれの場所での変更を保持できます。同じカードが 2 つの異なった場所で復習された場合、どちらの復習も修正履歴に記録され、カードは最も最近に回答された状態に維持されます。 //Reviews and note edits can be merged, so if you review or edit on two different devices before syncing, Anki will preserve your changes from both locations. If the same card has been reviewed in two different locations, both reviews will be marked in the revision history, and the card will be kept in the state it was when it was most recently answered. Anki には統合することのできない変更もあります。これらは主にノートの書式に関連する、新しい記入欄の追加やカードテンプレートの削除などです。統合のできない操作を行うときには警告が出され、操作の中止を選ぶことができます。継続を選択した後、次回コレクションを同期する際には、ローカルコピーと AnkiWeb のコピーのどちらを維持するかの選択を求められます。 //There are certain changes that Anki is unable to merge. These mainly relate to the format of notes: things like adding a new field, or removing a card template. When you perform an operation that can’t be merged, Anki will warn you, and give you the option of aborting the operation. If you choose to continue, you’ll be asked to choose whether to keep the local copy or the copy on AnkiWeb when your collection is next synchronized. 完全アップロードを強制したい場合、または完全ダウンロードを強制したい場合(例えば一方の単語帳を間違って削除してしまい、その削除を同期せずに復元したい場合など)、メニューの ツール→設定→ネットワーク (Tools>Preferences>Network) の ''次回の同期は、一方的に変更を強制実行する'' (On next sync, force changes in one direction) チェックボックスをチェックした上で通常通り同期してください。(どちら側のデータを使うか、選択を求められます。) //If you wish to force a full upload or download (for example, because you accidentally deleted a deck on one side, and want to restore the deck rather than having its deletion synchronized), you can check the box in Tools>Preferences>Network, then sync as usual. (You'll be given the option to choose which side you want to use.) * プロキシ [#proxies] //* Proxies Ankiの同期は安全なHTTP接続を通じて行われます。Internetへの接続にプロキシが必要な場合、WindowsとOS X上ではAnkiは自動的にシステムのプロキシ設定を利用します。他のプラットフォーム上では HTTP_PROXY 環境変数を利用します。 //Anki syncs over secure HTTP connections. If you need a proxy to access the internet, Anki should automatically pick up your system proxy settings if you’re on Windows or OS X, and will honour the HTTP_PROXY environment variable if you’re on another platform. Ankiでは、.pac や .wpad ファイルを用いた高度なプロキシ設定には対応していない点に注意してください。 //Please note that advanced proxy setup via .pac or .wpad files is not supported in Anki. Windows か OS X でシステムのプロキシ設定を上書きするには、プロキシサーバの場所を示した HTTP_PROXY 環境変数を定義してください。このようになります: //To override the system proxy settings on Windows or OS X, define a HTTP_PROXY environmental variable that points to the proxy server. It will look like: http://user:pass@proxy.company.com:8080 ユーザー名やパスワードに @ が含まれる場合(例:user@workdomain.com)、@ を %40 に置き換える必要があります: //If your username or password contains an @ (eg user@workdomain.com), you need to change it to %40, like so: http://user%40workdomain.com:pass@proxy.company.com:8080 Windows で環境変数を設定するには、こちらを参照してください:https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx?mfr=true //To set environmental variables on Windows, please see https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx?mfr=true Mac を使っている場合、こちらを参照してください:http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x //If you’re on a Mac, please see http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x >''ノート'' >Anki で使用しているツールキットは、残念ながらシステム設定のプロキシのユーザー名やパスワードを利用することができません。よって認証にプロキシが必要な場合、同期に失敗します。この場合、上で説明したようにプロキシ情報に関する環境変数を定義するか、認証の必要な上流プロキシと接続する個人のプロキシサーバーを設置し、通信する必要があります。 //>''Note'' //>The toolkit Anki is built on is unfortunately not currently able to pick up your proxy username and password from your system settings. This means that if you use a proxy that requires authentication, syncing will fail. In this case, you will need to use an environmental variable that defines your proxy details as described above, or use a personal proxy server that you route traffic through, which in turn connects to the upstream proxy that requires authentication.