Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

英単語に行を折り返すときのハイフネーションを設定する #37

Closed
yuheiy opened this issue Aug 23, 2017 · 3 comments

Comments

@yuheiy
Copy link

yuheiy commented Aug 23, 2017

文字組みをコントロールするための<span lang="en" style="hyphens: auto;">JavaScript</span>ライブラリ

というように、英数字にはハイフネーションを設定できればよさそうだと思いました。どうですか?

@terkel
Copy link
Owner

terkel commented Aug 23, 2017

気持ちはわかります。でも英語か仏語か独語か……っていうのを判別するのが無理かなー。かと言って雑にenにしちゃうとかはやりたくない。

@yuheiy
Copy link
Author

yuheiy commented Aug 23, 2017

Mojik.compose(selector, { westernLang: 'en' })

みたいにユーザーに指定させる形にするのはどうでしょう

@terkel
Copy link
Owner

terkel commented Aug 24, 2017

同一要素内に複数の欧文言語が混在する可能性があるので、ちょっと違うかな。やっぱユーザー側で前もってマークアップしておいてもらうしかない気がする。

<p>タイポグラフィ(<span lang="en">typography</span>)は活版印刷と共に始まった。マインツのヨハネス・グーテンベルク (<span lang="de">Johannes Gutenberg</span>) が印刷した……</p>

@yuheiy yuheiy closed this as completed Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants