Hello all,

MM  has  only  two hyphenation modes: no hyphenation
and mode 14.  I disfavour  mode  14  and  propose  a
patch  that  will  allow MM to use other hyphenation
modes while keeping it backwards compatible with the
current behaviour.

The  semantics of MM's Hy register are remaining the
same, but another register is introduced -- Hm,  for
hyphenation  mode -- that  holds the desired hyphen-
ation mode, 14 by default, which can  be  overridden
either from the command line or from the source.  Is
it acceptable?

If it is OK, I will  also  provide  a  corresponding
path for the groff_mm man page.

Anton
--- m.tmac      2011-09-14 22:29:46.375000000 +0400
+++ m.tmac.new  2011-09-14 22:36:19.656250000 +0400
@@ -100,8 +100,10 @@
 .nr Hu 2
 .\"    hyphenation in body
 .\"    0 -> no hyphenation
-.\"    1 -> hyphenation 14 on
-.nr Hy 0
+.\"    1 -> hyphenation \n[Hm] is on
+.if !r Hy .nr Hy 0
+.\" Default hyphenation mode
+.if !r Hm .nr Hm 14
 .\"    text for toc, selfexplanatory. Look in the new variable section
 .ds Lf LIST OF FIGURES
 .nr Lf 1
@@ -374,7 +376,7 @@
 .de init@reset
 .ie \\n[misc@adjust] 'ad
 .el 'na
-.ie \\n[Hy] 'hy 14
+.ie \\n[Hy] 'hy \\n[Hm]
 .el 'nh
 'in 0
 'ti 0
@@ -1234,7 +1236,7 @@
 .if !'\*[.T]'html' \{\
 .if \\n[D]>1 .tm Page# \\n[%] (\\n[.F]:\\n[c.])
 .\" check if Hy has been changed
-.ie \\n[Hy] 'hy 14
+.ie \\n[Hy] 'hy \\n[Hm]
 .el 'nh
 .if \\n[Idxf] \{\
 .tl '<pagenr\ \\n[%]>'''
@@ -1601,7 +1603,7 @@
 .fam \\*[pg*mul-fam]
 .ft \\n[pg*mul-font]
 .fi
-.hy 14
+.hy \\n[Hm]
 .di pg*mul-div
 .MULN
 ..
@@ -1662,7 +1664,7 @@
 'fi
 .ie \\n[ft*adjust] 'ad
 .el 'na
-.ie \\n[ft*hyphen] 'hy 14
+.ie \\n[ft*hyphen] 'hy \\n[Hm]
 .el 'hy 0
 .ll \\n[@cur-ll]u
 .lt \\n[@cur-ll]u

Reply via email to