Imported Upstream version 1.23.0
[platform/upstream/groff.git] / contrib / gpinyin / ChangeLog
index c7ec8d5..53cc228 100644 (file)
@@ -1,3 +1,109 @@
+2022-10-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * gpinyin.pl: Report groff version number along with this
+       program's own when not run from source tree.  Drop dead code.
+       Bump micro version number to reflect recent restructuring.
+
+2022-10-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       Make gpinyin script stand alone.
+
+       * subs.pl: Delete, moving its content into...
+       * gpinyin.pl: ...here.
+       (vowel_t): Use explicit list with `my`.
+       (vowel_n, vowel_t): Declare local scalar `$vowel_with_tone`
+       using `my`.
+       * gpinyin.am (dist_gpinyin_DATA): Delete.
+
+2022-05-03  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * gpinyin.am (gpinyin): Fix missing dependency on
+       `$(SH_DEPS_SED_SCRIPT)`.
+
+2021-05-11  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * gpinyin.1.man: Render the tone mark table only if the output
+       device might be capable.
+
+       Fixes <https://savannah.gnu.org/bugs/index.php?55215>.
+
+2021-05-10  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * gpinyin.1.man: Work around inability of grops and gropdf to
+       construct some Unicode composite characters.  Use groff
+       composite special characters for "a" with acute and grave
+       accents, and define strings for "a" with macron (overline) and
+       with háček/caron accents.  Use different string definitions for
+       nroff and troff modes so we don't regress UTF-8 terminal output.
+
+2021-05-10  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * subs.pl (vowel_t): Fix incorrect rendering of base glyph 'U',
+       which was being forced to lowercase when a dieresis and tone
+       mark were both being applied.  This caused the tone mark to
+       overlap the dieresis, so decrease the font size of the base
+       glyph even more to compensate.  The result is ugly but
+       comprehensible.
+
+       See <https://savannah.gnu.org/bugs/?57524>, partially mitigated
+       but not completely resolved.
+
+2021-05-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * subs.pl (%tones1_Unicode): Fix copy and paste error.  Emit
+       U+01D5 (Latin capital letter u with dieresis and macron) for Ü
+       with tone 1, instead of U+016A (Latin capital letter u with
+       macron).
+
+       Fixes <https://savannah.gnu.org/bugs/?60562>.
+
+2021-05-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * subs.pl (handle_word): Emit \[cq] instead of \[aq] when
+       interpolating an apostrophe before a vowel.
+
+       Fixes <https://savannah.gnu.org/bugs/?60561>.
+
+2021-05-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * subs.pl (%tones_glyphs, %tones4_glyphs): Fix hash keys to use
+       the groff dotless i special character into which a lowercase "i"
+       has already been transformed instead of 'i' itself.
+       (vowel_n, vowel_t): Rename variable so that tone-transformed
+       vowel is stored separately.  Add "or warn" to test the result
+       and cheaply assert that we got a string back from our hash
+       lookup on the vowel.
+
+       Fixes <https://savannah.gnu.org/bugs/?60560>.
+
+2021-01-06  Colin Watson <cjwatson@debian.org>
+
+       * gpinyin.pl: Avoid Perl's unsafe "<>" operator.
+
+       The "<>" operator is implemented using the two-argument form of
+       "open", which interprets magic such as pipe characters, allowing
+       execution of arbitrary commands which is unlikely to be
+       expected.  Perl >= 5.22 has a "<<>>" operator which avoids this,
+       but also forbids the use of "-" to mean the standard input,
+       which is a facility that the affected groff programs document.
+
+       ARGV::readonly would probably also fix this, but I fundamentally
+       dislike the approach of escaping data in preparation for a
+       language facility to unescape it, especially when the required
+       escaping is as non-obvious as it is here.  (For the same reason,
+       I prefer to use subprocess invocation facilities that allow
+       passing the argument list as a list rather than as a string to
+       be interpreted by the shell.)  So I've abandoned this dubious
+       convenience and changed the affected programs to iterate over
+       command-line arguments manually using the three-argument form of
+       open.
+
+       Fixes <https://savannah.gnu.org/bugs/?55557>.
+
+2020-04-22  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * gpinyin.1.man: Delete references to groffer.
+
 2018-02-28  Werner LEMBERG  <wl@gnu.org>
 
        * gpinyin.am (gpinyin): Use $(AM_V_GEN) to silence file generation.
 ________________________________________________________________________
 License
 
-Copyright (C) 2014-2018 Free Software Foundation, Inc.
+Copyright (C) 2014-2020 Free Software Foundation, Inc.
 Written by Bernd Warken <groff-bernd.warken-72@web.de>.
 
 Copying and distribution of this file, with or without
@@ -84,8 +190,11 @@ notice are preserved.
 This file is part of `gpinyin', which is part of the `groff'
 project.
 
-####### Emacs settings
+##### Editor settings
 
 Local Variables:
+fill-column: 72
 mode: change-log
+version-control: never
 End:
+vim:set autoindent textwidth=72: