summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwl <wl>2009-12-31 07:49:45 +0000
committerwl <wl>2009-12-31 07:49:45 +0000
commit972c7dbfe69d8befc79cecfb1c8777e653078618 (patch)
tree75787832b8aa015f64c3192aad0a6de72ae2041d
parentbe095a293e09eae67254f59ce878b1a36233b447 (diff)
downloadgroff-972c7dbfe69d8befc79cecfb1c8777e653078618.tar.gz
Make patterns with uppercase letters work.
Problem reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>. * src/roff/troff/input.cpp (init_hpf_code_table): Use `cmlower'. * doc/groff.texinfo, man/groff_diff.man: Update documentation of `hpfcode' request.
-rw-r--r--ChangeLog9
-rw-r--r--doc/groff.texinfo4
-rw-r--r--man/groff_diff.man4
-rw-r--r--src/roff/troff/input.cpp2
4 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 95dfb186..a3302c05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-12-31 Werner LEMBERG <wl@gnu.org>
+
+ Make patterns with uppercase letters work.
+ Problem reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
+
+ * src/roff/troff/input.cpp (init_hpf_code_table): Use `cmlower'.
+ * doc/groff.texinfo, man/groff_diff.man: Update documentation of
+ `hpfcode' request.
+
2009-11-24 Maurice van der Pot <griffon26@kfk4ever.com>
Fix double frees and memory leaks.
diff --git a/doc/groff.texinfo b/doc/groff.texinfo
index 5281b458..5e6365f6 100644
--- a/doc/groff.texinfo
+++ b/doc/groff.texinfo
@@ -6976,7 +6976,9 @@ current list of patterns. Its arguments are pairs of character codes --
integers from 0 to@tie{}255. The request maps character
code@tie{}@var{a} to code@tie{}@var{b}, code@tie{}@var{c} to
code@tie{}@var{d}, and so on. You can use character codes which would
-be invalid otherwise.
+be invalid otherwise. By default, everything maps to itself except
+letters `A' to `Z' which map to `a' to `z'.
+
@pindex troffrc
@pindex troffrc-end
diff --git a/man/groff_diff.man b/man/groff_diff.man
index 45c76a0d..047b983e 100644
--- a/man/groff_diff.man
+++ b/man/groff_diff.man
@@ -1599,6 +1599,10 @@ Use the
request to map the encoding used in hyphenation patterns files to
.BR groff 's
input encoding.
+.
+By default, everything maps to itself except letters `A' to `Z' which
+map to `a' to `z'.
+.
.IP
The set of hyphenation patterns is associated with the current language
set by the
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 7c816e83..5335c1ce 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6602,7 +6602,7 @@ static void init_charset_table()
static void init_hpf_code_table()
{
for (int i = 0; i < 256; i++)
- hpf_code_table[i] = i;
+ hpf_code_table[i] = cmlower(i);
}
static void do_translate(int translate_transparent, int translate_input)