การเปรียบเทียบโดยละเว้นตัวพิมพ์หรือช่องว่าง
- เลือก
- เปรียบเทียบ
When comparing two texts, differences in case and in spaces at the start or end of lines produce differences that aren't the real ones. The two options in Compare Two Texts (Diff) let you ignore them and compare.
ขั้นตอน
- Paste text into "Text A (before)" and "Text B (after)".
- Tick "Ignore case".
- Tick "Ignore spaces at the start and end of lines".
- Press "Compare" and check "See the differences".
"Ignore case"
Treats "Apple" and "apple" as the same. Handy when case differences in English words don't change the meaning.
- Suited: comparing English text, email addresses, variable names in code (take care depending on the language)
- Not suited: data where case matters (passwords, code)
"Ignore spaces at the start and end of lines"
Removes spaces and tabs at the beginning or end of lines before comparing. Prevents differences caused by invisible spaces.
- Suited: text that picked up spaces when copied, differences in indentation
- Not suited: data where indentation matters (Python code, formatted text)
Differences that remain even when ignored
- Differences in characters (words changed and so on)
- Added or removed lines
- Full-width versus half-width differences
- Differences in spaces mid-line
Using the options
- First compare without options: see all differences.
- When there are too many differences, use options: remove non-essential gaps.
- Do the final check without options: don't miss fine differences.
เหมาะกับ
- Comparing English text before and after proofreading
- Comparing text that picked up spaces from copying
- Comparing code where only indentation changed
ตัวอย่าง
Compared two drafts of an English email. Case differences were many, so set to ignore case. Only the sentences that really changed were shown.
Common stumbling blocks
- Japanese has no upper/lower case: no effect when comparing Japanese.
- Ignoring spaces hides meaningful changes in data: check important comparisons without options.
Frequently asked questions
Can full-width/half-width differences be ignored too?
No. Align them beforehand with the tool that tidies full-width and half-width.
สรุป
Case and surrounding spaces can be ignored. But do the final check without options.
ใช้ “เปรียบเทียบข้อความสองชุด (Diff)” (ฟรี)เครื่องมือที่ใช้คู่กันได้ดี
- เปรียบเทียบ PDF สองไฟล์ (ค้นหาความแตกต่าง): แสดงความแตกต่างของข้อความระหว่าง PDF สองไฟล์ โดยแยกสี
- ลบบรรทัดซ้ำและเรียงลำดับรายการ: ลบบรรทัดซ้ำและเรียงลำดับ
- นับตัวอักษร (สำหรับใบสมัครและรายงาน): นับตัวอักษร บรรทัด และแผ่นกระดาษต้นฉบับของข้อความ
หากคู่มือนี้เป็นประโยชน์ ทิปเล็ก ๆ น้อย ๆ จะเป็นกำลังใจอย่างมาก
ส่งทิป (¥300)ส่งของขวัญ (Amazon wishlist)