[PROPOSED] "m" now abbreviates both "maximum" and "minimum"
* zishrink.awk: Add comment about "m". --- zishrink.awk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zishrink.awk b/zishrink.awk index 66968e86..eb4aa785 100644 --- a/zishrink.awk +++ b/zishrink.awk @@ -199,6 +199,9 @@ function process_input_line(line, \ } # Abbreviate "max", "min", "only" and month names. + # Although "max" and "min" can both be abbreviated to just "m", + # use the longer forms "ma" and "mi" for now, + # for compatibility with zic 2023d and earlier. gsub(/ max /, " ma ", line) gsub(/ min /, " mi ", line) gsub(/ only /, " o ", line) -- 2.40.1
# Abbreviate "max", "min", "only" and month names. + # Although "max" and "min" can both be abbreviated to just "m", + # use the longer forms "ma" and "mi" for now, + # for compatibility with zic 2023d and earlier. gsub(/ max /, " ma ", line) gsub(/ min /, " mi ", line) gsub(/ only /, " o ", line)
Maybe I'm missing some context, but how can "m" or "mi" possibly be better than "max" in a human-readable source code file? Stephen
On 2024-01-11 02:33, Stephen Colebourne via tz wrote:
Maybe I'm missing some context, but how can "m" or "mi" possibly be better than "max" in a human-readable source code file?
This is not the source files we maintain by hand; it's tzdata.zi, a text file intended to be short rather than hand-edited. In tzdata.zi, abbreviating "maximum" to "m" is OK for the same reason tzdata.zi already abbreviates "only" to "o" and "September" to "S". Come to think of it, tzdata.zi can use "m" in vanguard form, and while looking into that I noticed some other opportunities for improving compressibility in minor ways. I installed the attached proposed patches to do that.
participants (2)
-
Paul Eggert -
Stephen Colebourne