<?xml version="1.0" encoding="UTF-8"?>
<sect1 id="Faq">
  <title>よくたずねられる質問</title>

  <sect2>
    <title>一般的な質問</title>

    <qandaset>
      <qandaentry>
        <question>
          <para>なぜ、<filename>WinMerge.exe</filename>と
          <filename>WinMergeU.exe</filename>の二つの実行ファイルがあるの?</para>
        </question>

        <answer>
          <itemizedlist>
            <listitem>
              <para><filename>WinMerge.exe</filename> is an ANSI (8-bit)
              executable which works in all 32-bit Windows systems. It does
              not have Unicode support.</para>

              <para>Internally, it stores only ANSI characters (256
              possibilities). If you open a Unicode file, the characters must
              be converted to the ANSI codepage. As there are over 100,000
              Unicode characters, and only 256 can be represented in the ANSI
              codepage, data loss may occur. Conversion may be approximative
              (accents are lost), or impossible (characters appear as
              "?").</para>

              <para><filename>WinMerge.exe</filename> also can not open files
              with names outside the current ANSI codepage (e.g., WinMerge.exe
              can not open a file with a Hebrew name, if run on an English
              system. WinMergeU.exe can open such files.</para>
            </listitem>

            <listitem>
              <para><filename>WinMergeU.exe</filename> is a Unicode enabled
              executable which works on Windows NT4, Windows 2000, and newer
              systems.</para>
            </listitem>
          </itemizedlist>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>あのスプラッシュ画面が邪魔なんだけど消せないの?</para>
        </question>

        <answer>
          <para>From menu, select <menuchoice>
              <guimenu>Edit</guimenu>

              <guisubmenu>Options...</guisubmenu>

              <guisubmenu>General</guisubmenu>

              <guimenuitem>Disable Splash Screen</guimenuitem>
            </menuchoice></para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>フォルダ比較をしている間に、フォルダを選択できないの?</para>
        </question>

        <answer>
          <para>Browse to the folder you want to compare (folder contents is
          shown in the dialog). Do not select any of the files or subfolders,
          just select the <guibutton>Open</guibutton>-button when
          "<guilabel>Folder Selection</guilabel>" is shown in filename
          editbox. If you already selected any of the files or subfolders,
          just write some nonsense to the filename editbox and select the
          Open-button. When the filename editbox doesn't contain any existing
          filename then WinMerge opens the folder.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>WinMergeは3つのファイルのマージをサポートしていないの? ときどき3-way mergeと呼ばれていて、一つのファイルを祖先とするやつだ。この機能はバージョン管理に便利だと思うよ!(※日本語版は一部実装)</para>
        </question>

        <answer>
          <para>Unfortunately not. We acknowledge it would be good feature but
          have no plans to implement it in near future. This can be somewhat
          worked around by using two WinMerge instances. Or using third path
          parameter given from command line. See <link
          linkend="CommandLine">Command Line</link> -chapter for more
          information.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>Windows以外のOSにWinMergeを移植する予定はないの?</para>
        </question>

        <answer>
          <para>Not currently. If somebody wants to help/work with
          cross-platform support (using <ulink
          url="http://www.wxwidgets.org/">wxWidgets</ulink> for example) we
          are interested, of course.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>CVS統合機能とかはないの?!</para>
        </question>

        <answer>
          <para>Which kind of CVS integration WinMerge should have? Adding CVS
          client features to WinMerge is questionable since there are many
          good CVS clients already. WinMerge can resolve conflict files, see
          <link linkend="ResolveConflictFiles">Resolving Confilict
          Files</link>.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>MRU (リスト)てなに? どういう意味?</para>
        </question>

        <answer>
          <para>MRU is the abbreviation for "Most Recently Used", and means
          the history lists in the Open-dialog which contain the 20 last used
          files/paths per side.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>Open Office のファイルは比較できる?</para>
        </question>

        <answer>
          <para>Yes, enable <guilabel>Detect archive type from file
          signature</guilabel> option in <guilabel>Archive
          Options</guilabel>.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>なんで大きいファイルを比較するとたまに、フォルダ比較では差異があるといっているのに、ファイル比較では同一だといわれるの?</para>
        </question>

        <answer>
          <para>This is because WinMerge uses the "<guilabel>Quick
          Compare</guilabel>" method for large files always. It allows
          WinMerge to compare large files more efficiently. To test if this is
          causing the behavior you're seeing, you could raise the limit for
          the <guilabel>Quick Compare</guilabel> threshold for large files. It
          is stored in the registry as:</para>

          <screen>HKEY_CURRENT_USER\Software\Thingamahoochie\WinMerge\Settings\QuickMethodLimit</screen>

          <para>You may consider raising this limit if you constantly compare
          large text files. Be careful to not raise it too much "for just to
          be sure". 100 MB is too much.</para>

          <para>The default value for the limit is 4MB (0x400000).</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>WinMergeがCompareMSWordFiles.dllやCompareMSExcelFiles.dllが読み込めないとエラーを表示するよ!(クラッシュすることも!) 
          </para>
        </question>

        <answer>
          <para>Mentioned files are plugins written with Visual Basic (6.0).
          WinMerge installer does not contain Visual Basic runtime files so
          those plugins cannot be loaded. You can:</para>

          <orderedlist>
            <listitem>
              <para>Remove those files from <filename
              class="directory">WinMerge/Plugins</filename> -folder or</para>
            </listitem>

            <listitem>
              <para>Download the Visual Basic 6.0 runtime distribution from
              <trademark class="registered">Microsoft</trademark>:<ulink
              url="http://support.microsoft.com/kb/290887">http://support.microsoft.com/kb/290887</ulink>
              and install it. Or download just the one needed file from:
              <ulink
              url="http://www.dll-files.com/dllindex/dll-files.shtml?msvbvm60">http://www.dll-files.com/dllindex/dll-files.shtml?msvbvm60</ulink>
              and copy it to the <filename
              class="directory">WinMerge</filename> folder.</para>
            </listitem>
          </orderedlist>
        </answer>
      </qandaentry>
    </qandaset>
  </sect2>

  <sect2>
    <title>インストール</title>

    <qandaset>
      <qandaentry>
        <question>
          <para>WinMergeがDLL(mfc71.dll, mfc71u.dll, msvcr71.dll, msvcp71.dll)がないって言って動かないよ</para>
        </question>

        <answer>
          <para>When installing from archive (zip, 7z) file you need also
          Runtimes-package, which contains those files. See the <link
          linkend="InstallFromArchive">Install instructions</link>.</para>
        </answer>
      </qandaentry>
    </qandaset>
  </sect2>

  <sect2>
    <title>ファイル比較</title>

    <qandaset>
      <qandaentry>
        <question>
          <para>なんで僕のファイルは全行に差異があると色づけされるの?
          全行同じはずだよ。</para>
        </question>

        <answer>
          <para>Maybe your files have different line-ending styles (e.g.
          Windows and Unix?). WinMerge by default compares also line-ending
          styles, but you can disable it from <menuchoice>
              <guimenu>Edit</guimenu>

              <guimenuitem>Options</guimenuitem>
            </menuchoice> / Compare / Ignore carriage return
          differences.</para>
        </answer>
      </qandaentry>
    </qandaset>
  </sect2>

  <sect2>
    <title>エディタについての質問</title>

    <qandaset>
      <qandaentry>
        <question>
          <para>文字がちょん切れるんだけど?</para>
        </question>

        <answer>
          <para>Try selecting a different font from menu <menuchoice>
              <guimenu>View</guimenu>

              <guimenuitem>Select Font...</guimenuitem>
            </menuchoice></para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>ファイル内の文字がクエスチョンマークになってみえるよ?</para>
        </question>

        <answer>
          <para>This is what we call a "lossy" conversion.</para>

          <para>For Unicode files (UCS-2, UTF-8), use
          <filename>WinMergeU.exe</filename>.</para>

          <para>For ANSI files, this is probably due to code-page problems. If
          "<guilabel>Use codepage info</guilabel>" is selected from
          <guimenuitem>Options</guimenuitem>, turn that off and see if it
          helps.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>エディタでプロポーショナルフォントは選択できないの?</para>
        </question>

        <answer>
          <para>Unfortunately WinMerge supports only non-proportional
          fonts.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>(自動)再スキャンの遅延てなに? なぜそれが必要なの?</para>
        </question>

        <answer>
          <para>When <guilabel>Automatic Rescan</guilabel> is enabled,
          WinMerge delays rescanning while user edits files. So there is no
          rescanning happening when user types text but shortly after user has
          finished typing. Without this delaying WinMerge would do rescan
          after every typed letter and editing files would become slow. This
          delaying especially improves editing of bigger files which can take
          several seconds to rescan.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>エディタからファイルを印刷できる?</para>
        </question>

        <answer>
          <para>There is basic printing support in WinMerge 2.6.0 and later
          versions. Select <menuchoice>
              <guimenu>File</guimenu>

              <guimenuitem>Print...</guimenuitem>
            </menuchoice> from the menu.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>エディタで類似行を非表示にできないの? (差異のある行だけ表示したい)</para>
        </question>

        <answer>
          <para>No, you can't. Many users have requested this feature but we
          don't have any plans to implement it. We don't believe it would
          really improve usability.</para>
        </answer>
      </qandaentry>
    </qandaset>
  </sect2>

  <sect2>
    <title>外部比較ツールとしてのWinMerge</title>

    <qandaset>
      <qandaentry>
        <question>
          <para><keycap>ESC</keycap>キーを一回押したらWinMergeが終了するようにしたいな。</para>
        </question>

        <answer>
          <para>Use <option>-e</option> command line switch.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>I don't want to see the "<guilabel>Files Are
          Identical</guilabel>" -messagebox when I compare identical files, I
          just want WinMerge to quit.</para>
        </question>

        <answer>
          <para>Use <option>-x</option> command line switch.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>「開く」ダイアログの履歴がテンポラリファイルで埋まらないようにできないかな?</para>
        </question>

        <answer>
          <para>Tell your external program to invoke WinMerge with the
          <option>/ub</option> option, which tells WinMerge to not add the
          files to the MRU.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>でも、使っているプログラムがコマンドライン引数をサポートしてないよう！</para>
        </question>

        <answer>
          <para>Create a batch file where you add one of these lines (but not
          both):</para>

          <itemizedlist>
            <listitem>
              <screen>CALL "<replaceable>&lt;winmerge path&gt;\WinMerge</replaceable>" /ub %1 %2</screen>
            </listitem>

            <listitem>
              <screen>start "WinMerge" "<replaceable>&lt;winmerge path&gt;</replaceable>" /ub %1 %2</screen>
            </listitem>
          </itemizedlist>

          <para>And then call this batch file from program.</para>
        </answer>
      </qandaentry>
    </qandaset>
  </sect2>

  <sect2>
    <title>アーカイブサポート</title>

    <qandaset>
      <qandaentry>
        <question>
          <para>7-Zipをインストールしたけどアーカイブサポート機能が動かないよ?</para>
        </question>

        <answer>
          <para>Do you have plugin installed and or the plugin version matches
          7-Zip version? If not, see Installing chapter for instructions for
          installing.</para>
        </answer>

        <answer>
          <para>If the error is something like: "<emphasis>7-zip x.xx missing
          / Plugin present</emphasis>", then you probably have installed 7-Zip
          using MSI-installer. There are 7-Zip MSI installers that do not
          install all the files WinMerge needs (namely
          <filename>7zip_pad.xml</filename> in 7-Zip program folder). Download
          and run the EXE version of the 7-Zip installer.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>WinMergeの開発者がパッチをなげる時につかう「ペリースタイル」なパッチファイルをどうやって開けばいいの?</para>
        </question>

        <answer>
          <para>"Perry-style" patches are zip-files containing original and
          changed files in different directories. WinMerge has internal
          support (surprise?) for handling these files. Just select zip file
          in question to left side and right side and WinMerge opens zip files
          contents to folder compare comparing original and altered
          files.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>7-Zipはインストールしたくないなあ。他の圧縮・解凍ツール(WinZipやWinRar等)は使えないの?</para>
        </question>

        <answer>
          <para>Unfortunately WinMerge can only use 7-zip.</para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>WinMergeは、標準的じゃない拡張子のアーカイブファイルを開けないの?(例えば、形式はzipな.jar ファイルとか)</para>
        </question>

        <answer>
          <para>Yes, enable <guilabel>Detect archive type from file
          signature</guilabel> option in <guilabel>Archive
          Options</guilabel>.</para>
        </answer>
      </qandaentry>
    </qandaset>
  </sect2>

  <sect2>
    <title>テキストエンコーディング (コードページ)</title>

    <qandaset>
      <qandaentry>
        <question>
          <para>どうしたら僕のファイルのコードページがわかるの?</para>
        </question>

        <answer>
          <para>Open the file with Windows notepad (eg. <menuchoice>
              <guimenu>Start</guimenu>

              <guisubmenu>(All) Programs</guisubmenu>

              <guisubmenu>Accessories</guisubmenu>

              <guimenuitem>Notepad</guimenuitem>
            </menuchoice>. Choose <menuchoice>
              <guimenu>File</guimenu>

              <guimenuitem>Save As</guimenuitem>
            </menuchoice>, and in the Save As dialog which appears, look at
          the dropdown list at the very bottom, labelled
          "<guilabel>Encoding</guilabel>".</para>

          <itemizedlist>
            <listitem>
              <para>If it says "<guilabel>ANSI</guilabel>", the file is
              (apparently) in the local windows codepage. If the file is
              entirely in English and normal punctuation, then the file is
              also in ASCII.</para>
            </listitem>

            <listitem>
              <para>If it says "<guilabel>Unicode</guilabel>", the file is
              (probably) in the default Windows Unicode encoding
              "UCS-2LE".</para>
            </listitem>

            <listitem>
              <para>If it says "<guilabel>UTF-8</guilabel>", the file is in
              the cross-platform Unicode encoding "UTF-8".</para>
            </listitem>

            <listitem>
              <para>If it says "<guilabel>Unicode big endian</guilabel>", the
              file is in a different Unicode encoding not much used or
              supported under Windows, probably "UCS-2BE".</para>
            </listitem>
          </itemizedlist>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>どうやってUTF-8ファイルを比較するの? WinMergeで開くと文字化けするよ?</para>
        </question>

        <answer>
          <para>Using WinMerge encoding detection.</para>

          <itemizedlist>
            <listitem>
              <para>If they are XML files, they should have an encoding
              attribute in the XML declaration, which should say "UTF-8". For
              example: <screen>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</screen></para>
            </listitem>

            <listitem>
              <para>If they are HTML files, they should have the encoding
              embedded in a content attribute in a meta tag in the header. For
              example: <screen>&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;</screen></para>
            </listitem>

            <listitem>
              <para>For WinMerge to read encodings specified in XML or HTML
              (or Windows RC resource) files, the option checkbox
              <guilabel>Detect codepage info for...</guilabel> in
              <guilabel>Codepage</guilabel> options (<menuchoice>
                  <guimenu>Edit</guimenu>

                  <guimenuitem>Options</guimenuitem>
                </menuchoice> from main menu) must be checked.</para>
            </listitem>
          </itemizedlist>
        </answer>

        <answer>
          <para>For all other cases, to instruct WinMerge to assume that all
          documents are UTF-8, set the default WinMerge codepage to 65001
          (which is Microsoft's code for UTF-8) in
          <guilabel>Codepage</guilabel> options (<menuchoice>
              <guimenu>Edit</guimenu>

              <guimenuitem>Options</guimenuitem>
            </menuchoice> from main menu) and then <guilabel>Custom
          Codepage</guilabel>.</para>
        </answer>
      </qandaentry>
    </qandaset>
  </sect2>

  <sect2>
    <title>パッチファイル</title>

    <qandaset>
      <qandaentry>
        <question>
          <para>コマンドラインからパッチファイルを作る方法はないの?</para>
        </question>

        <answer>
          <para>No. It may be added in later versions but until then Win32
          port of diffutils can be used. The Win32 port of diffutils (and
          patch) can be downloaded from <application>GnuWin32</application>
          project from SourceForge: <ulink
          url="http://sourceforge.net/projects/gnuwin32/">
          http://sourceforge.net/projects/gnuwin32</ulink></para>
        </answer>
      </qandaentry>

      <qandaentry>
        <question>
          <para>WinMergeでパッチをあてられる?</para>
        </question>

        <answer>
          <para>No. The patch tool from GnuWin32 project can be used for patch
          applying since WinMerge produces GNU/diffutils compatible patch
          files. See above question.</para>
        </answer>
      </qandaentry>
    </qandaset>

    <para></para>
  </sect2>
</sect1>
