[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66054] [troff] permit special characters as source hyphenation cod
From: |
G. Branden Robinson |
Subject: |
[bug #66054] [troff] permit special characters as source hyphenation codes |
Date: |
Sat, 10 Aug 2024 20:35:36 -0400 (EDT) |
Follow-up Comment #10, bug #66054 (group groff):
[comment #7 comment #7:]
> [comment #4 comment #4:]
> > I think the semantics can be defended if one understands what an
> > "equivalence class" is. Doesn't *everyone* take a university
> > course in discrete mathematics? ;-)
>
> Perhaps the info manual can summarize the salient points of this course for
those who slept through it. ;-)
>
> Or at least make more explicit what ".hcode a a" means in practical terms.
I kind of think it does...?
-- Request: .hcode dst1 src1 [dst2 src2] ...
Set the hyphenation code of ordinary or special character DST1 to
that of SRC1, and so on. DST1 must be an ordinary character (other
than a numeral) or a special character, and SRC1 must be an
ordinary character (other than a numeral) or a special character to
which a hyphenation code has already been applied. Assigning the
code of an ordinary character code to itself effectively creates a
unique hyphenation code (which can then be copied to others).
'hcode' ignores spaces between arguments. If any argument is
invalid, 'hcode' reports an error and stops reading them.
For example, the following 'hcode' requests are necessary to assign
hyphenation codes to the letters 'ÄäÖöÜüß', needed for German.
.hcode ä ä Ä ä
.hcode ö ö Ö ö
.hcode ü ü Ü ü
.hcode ß ß
Without these assignments, GNU 'troff' treats the German word
'Kindergärten' (the plural form of 'kindergarten') as two words
'kinderg' and 'rten' because the hyphenation code of the umlaut a
is zero by default, just like a space. There is a German
hyphenation pattern that covers 'kinder', so GNU 'troff' finds the
hyphenation 'kin-der'. The other two hyphenation points
('kin-der-gär-ten') are missed.
If for some reason you desire to remove a character's hyphenation
code, use 'hcode' to copy the code of a punctuation character to
it; for example, '.hcode ß $' assigns a hyphenation code of zero to
'ß' (unless '$' has already been assigned a different one).
The 'phcode' request may be helpful to troubleshoot hyphenation
code assignments. *Note Debugging::.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66054>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66054] [troff] permit special characters as source hyphenation codes, (continued)
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/01
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/04
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/07
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/07
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/08
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/09
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/09
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/10
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/10
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/10
- [bug #66054] [troff] permit special characters as source hyphenation codes,
G. Branden Robinson <=
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/10
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/10
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/10
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/10
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/12
- [bug #66054] [troff] permit special characters as source hyphenation codes, G. Branden Robinson, 2024/08/13
- [bug #66054] [troff] permit special characters as source hyphenation codes, Dave, 2024/08/15