Skip to content

Instantly share code, notes, and snippets.

@notcome
Created February 6, 2015 13:12
Show Gist options
  • Save notcome/52658490bc4bb2f4ad37 to your computer and use it in GitHub Desktop.
Save notcome/52658490bc4bb2f4ad37 to your computer and use it in GitHub Desktop.
Hyphenating English Within Chinese Articles is Possible.
<html lang="cmn-Hans-CN">
<head>
<style type="text/css">
#block {
width: 10em;
margin-left: 5em;
text-align: justify;
-webkit-hyphens: auto;
}
i {
-webkit-hyphens: auto;
}
</style>
</head>
<body>
<p id="block">
这个齐头尾(<i lang="en">justification</i>、两端对齐、双齐)最大的问题是:当行的原始长度差异过大时(这个「差异过大」要相对于栏宽来看),齐头尾之后的行与行之间有明显的疏密变化(一会儿松、一会儿紧)。而且对西文来说,如果没有<i lang="en">hyphenation</i>,往往也很难让行间长度差异适合齐头尾。这是齐头尾在字体排印方面的问题。
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment