Follow-up Comment #10, bug #53413 (project groff):
[comment #9 comment #9:]
> My suggestion is to make groff look into the meta information
> of the pattern themselves while they are loaded to set those
> parameters. The `.hy' command could then become a user-only
> request restricted by the meta information – for example,
> setting hy=48 would have no effect because the patterns don't
> allow it.
I've opened bug #57556 with this suggestion.
> Right now, these parameters are hardcoded using `.hy', this
> is, they are part of groff's language setup files.
I take it you're referring here to the tmac/{cs|de|fr|ja|sv|zh}.tmac files?
$ shopt -s extglob
$ grep '\. *hy' tmac/@(cs|de|fr|ja|sv|zh).tmac
tmac/cs.tmac:.hy 1
tmac/de.tmac:.hy 1
tmac/fr.tmac:.hy 4
tmac/sv.tmac:.hy 32
$
Curiously, there is no such setup file for English, even though the groff
default (.hy 1) is invalid for the English hyphenation patterns. Until a fix
for bug 57556 offers a more robust solution to this, perhaps there should be a
tmac/en.tmac that is called by default in English environments?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?53413>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/