行数が多いときの注意
- 確かめる
- 分ける
長い文章を貼り付けたら、「行数が多すぎます(3000行まで)。」と表示された。2つの文章の違いを調べる で、行数が多いときの扱い方をまとめます。
上限
- 比べられるのは、3000行までです。
- 文章Aと文章Bの、どちらも対象です。
手順
- 「文章A(前)」と「文章B(後)」に、文章を貼り付けます。
- 「比べる」を押します。
- 行数が多すぎる場合は、メッセージが表示されます。
分けて比べる方法
- 章ごと:章や節ごとに、貼り付けて比べる。
- ページごと:数ページずつ、区切って比べる。
- 変更のありそうな部分だけ:先に、大まかな範囲を絞る。
- 行数を減らす:空行や、不要なヘッダーを削除する。
分ける位置のコツ
2つの文章で、同じ位置で区切ります。区切り位置がずれると、本来は同じ部分が、違う部分として表示されます。
- 見出し(章の題名)で区切る
- 同じ番号の条文で区切る
空行を減らす
空行が多いと、行数が増えます。空行を消すツールで、行数を減らせます。ただし、段落の区切りが分からなくなる点に、注意します。
行数を確認する方法
文字数カウントのツールで、行数を数えられます。貼り付ける前に、確認しておくと便利です。
向いている場面
- 長い契約書や、マニュアルの比較
- 長いプログラムの比較
- ログファイルの比較
目安
3000行は、一般的な文章で、数十ページ分にあたります。長い書類は、分けて比べるのが、確認もしやすくなります。
例
200ページのマニュアルを、2つのバージョンで比べたかった。章ごとに分けて、20回比べた。変更のあった章だけを、詳しく確認できた。
つまずきやすい点
- 分け方がずれる:見出しなど、共通の位置で区切る。
- 何度も貼り付けるのが大変:変更のありそうな章に、絞る。
よくある質問
上限を増やせますか?
このツールでは、できません。分けて比べてください。
まとめ
3000行まで。分けて比べるときは、同じ位置で区切りましょう。
2つの文章の違いを調べるを使う(無料)あわせて使えるツール
- 2つのPDFの違いを比べる(差分チェック):2つのPDFの文字の違いを、色分けして表示します。
- 重複した行を消す・並べ替える:重複した行を消して、並べ替えます。
- 文字数カウント(エントリーシート・レポート用):文章の文字数・行数・原稿用紙の枚数などを数えます。
同じツールの、ほかの解説
Tips for Long Texts
- Check
- Split
You pasted a long text and "Too many lines (up to 3000)." was shown. Here is how to handle many lines in Compare Two Texts (Diff).
The limit
- Up to 3000 lines can be compared.
- It applies to both Text A and Text B.
Steps
- Paste text into "Text A (before)" and "Text B (after)".
- Press "Compare".
- If there are too many lines, a message is shown.
Ways to split and compare
- By chapter: paste and compare chapter by chapter or section by section.
- By page: compare in chunks of a few pages.
- Only likely-changed parts: narrow down the rough range first.
- Reduce lines: delete empty lines and unneeded headers.
Tips for where to split
Split both texts at the same positions. If the split positions drift, parts that are really the same are shown as different.
- Split at headings (chapter titles)
- Split at clauses with the same number
Reducing empty lines
Many empty lines increase the line count. A tool that removes empty lines can reduce it. But note that paragraph breaks become unclear.
How to check the line count
The character-count tool can count lines. Checking before pasting is handy.
Good for
- Comparing long contracts and manuals
- Comparing long programs
- Comparing log files
A guide
3000 lines corresponds to dozens of pages of ordinary text. For long documents, comparing in parts also makes checking easier.
Example
Wanted to compare two versions of a 200-page manual. Split by chapter and compared 20 times. Only the chapters with changes could be checked in detail.
Common stumbling blocks
- The split drifts: split at common positions such as headings.
- Pasting many times is tiring: narrow to chapters likely to have changed.
Frequently asked questions
Can the limit be raised?
Not with this tool. Compare in parts.
Summary
Up to 3000 lines. When splitting, split at the same positions.
Use "Compare Two Texts (Diff)" (free)Tools that go well with this
- Compare Two PDFs (Find Differences): Show the text differences between two PDFs, color-coded.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.