Ticket #40445

中点のベタ組

Date d'ouverture: 2020-05-26 13:58 Dernière mise à jour: 2020-05-31 08:59

Rapporteur:
Propriétaire:
(Aucun)
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
2

Détails

「JIS X 4051:2004 では,行末の句読点や中点はベタ」だと、jfm-ujis.lua にはこう説明しました。ですが、JIS のベタ組の中点は前に四分アキとして、後ろはベタ(図 https://www.w3.org/TR/jlreq/ja/Images-ja/img2_1_2.png にご参照)で、中国語には違います。

中国語のベタ組は、中点の前後もベタです(つまりなかてんのぜんごに挿入したグルーは同じです)。こういう時にはどうやって調整できますか?

中文:

JIS 中行末的中间标点密排是前方加四分空后方密排(也即前后的间距可以不同),而中文中的中间标点的密排是前后都密排(也即需要同时调整,中点前后的胶应该相同(不同的时候需要取小值?)),请问这种情况怎么写 jfm.lua 呢?

Ticket History (3/6 Histories)

2020-05-26 13:58 Updated by: tanukihee
  • New Ticket "中点のベタ組" created
2020-05-27 06:38 Updated by: h7k
Commentaire

It would be better to create JFMs for Chinese typesetting. LuaTeX-ja has jfm-{quanjiao,banjiao,CCT,kaiming}.lua by MaQiYuan. Perhaps you could use them in horizontal direction, but there are no vertical counterpart.


In tate.png (which is attached), I've written several situations.

  • (a1), (a2): U+FF65 (Halfwidth Katakana Middle dot), halfwidth
  • (b1), (b2): U+30FB (Katakana Middle dot), halfwidth + quarterwidth space*2
  • (c1), (c2): U+00B7(Middle dot), ALchar, xkanjiskip space*2
  1. So, it is not difficult to typeset "in halfwidth always, as (a1) and (a2)"; one can use U+FF65. Furthremore, one can use "overwrite" U+30FB by
    1. \catcode"30FB=\active \let ・=・
    (Note that jfm-min.lua, which is used in ltj[t]article, ltj[t]book, ltj[t]report classes, does not have informations for halfwidth katakana.)
  2. Perhaps even simpler sotution is to use foillowing \HWMD (but I'm not tested)
    1. \def\HWMD{\leavevmode\hbox to .5\zw{\hss\ltjjachar"30FB\hss}}
    2. % \catcode"30FB=\active \let ・=\HWMD
  3. But it is not easy to typeset middle dots in the following way:
    • In the middle of a line, there is a quarter space before/after (as (b1))
    • At the end of a line, there is no space before (as (a1))
Perhaps it may be possible with some Lua callback, but I have no time to do that soon.
2020-05-27 12:08 Updated by: tanukihee
Commentaire

3. の効果がほしいですが、ちょっと難しいですか、ではしばらくやめましょう。

.tex ファイルには \kern などの命令が調整できますが、一々したら面倒な仕事になりますね。

どうもありがとうございます。

2020-05-31 08:59 Updated by: h7k
Commentaire

3. の効果がほしいですが、ちょっと難しいですか、ではしばらくやめましょう。

I made a test (mdtest.tar.gz), but it only covers simplest cases. The approach is the following:

  • A glue before “” is not inserted before linkbreaking, so the (simplified) list at there would like
     (glyph 漢)→(glyph ・)→(penalty)→(glue 0.5\zw)→(glyph 字)
    
  • If a linebreak occurs just after “”, nothing happens.
  • If a linebreakdoes not occur just after “”, the 0.5\zw glue after “” is separated, as
    (glyph 漢)→(glue 0.25\zw)→(glyph ・)→(penalty)→(glue 0.25\zw)→(glyph 字)
    

Note that this approach does not work well when a paragraph/horizontal box begins or ends with “”.

Attachment File List

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion