📐 Text Justify Tool

選項

📋 結果

請輸入文本...

📚 深度解析:兩端對齊

💡 常見使用場景

  • 純文本/README 排版:把不等長段落補足到統一寬度,呈現整齊的右邊界。
  • 命令列橫幅與列印稿:在等寬字型下生成對齊區塊,便於閱讀。
  • 教學演示中英文混排對齊時空格分配的差異。
把段落對齊到 30 字寬
輸入「本工具用於文本兩端對齊處理」,設寬度 30,工具在詞/字間補空格使每行恰好 30 字元寬,右邊界齊平;等寬字型下觀感整齊。

❓ 常見問題(FAQ)

為什麼中英文混排對不齊?
中文按字寬、英文單詞按整體寬度,兩端對齊需在中文字間插空格、英文保持詞完整,混排時計算邏輯不同,部分工具僅做字間均分。
網頁裡還要用這個嗎?
不需要。HTML/CSS 的 text-align: justify 由瀏覽器處理;本工具用於純文本、終端或無可排版環境下的手動對齊。

Formula & Standard References

Item Formula / Note Source / Standard
Line breaking justification breaks lines at minimal cost then stretches word spacing to the measure Knuth & Plass 1981, Breaking Paragraphs
CJK handling Chinese has no inter-word spaces so slack is distributed between characters W3C CSS Text Level 3, text-align
Last line rule the final line of a paragraph is conventionally left unjustified W3C CSS Text Level 3, text-align
⚠️ 使用說明與注意事項