Topic
#budoux
2 pieces
この
ページは どう 日本語を 折り返しているか ブラウザは
日本語を ほぼどの 文字境界でも 折り返すので、 単語が 真っ二つに なり句読点が 行頭に 来る。 この サイトが それを 避けている 仕組みを 書く。 ビルド時の 文節分割と、 CSS二行だけ。 How this page breaks Japanese lines
Browsers break Japanese between almost any two characters, so words split in half and punctuation lands at the start of a line. Here is how this site avoids that — phrase segmentation at build time plus two lines of CSS.