Skip to content

Commit 6f8c3d2

Browse files
committed
fix NamesList charts copyright footer
1 parent b681dd3 commit 6f8c3d2

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

unicodetools/src/main/java/org/unicode/text/UCA/MakeNamesChart.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -385,17 +385,8 @@ public static void main(String[] args) throws Exception {
385385
}
386386
}
387387
finishItem(out);
388-
out.println(
389-
"</table>\n"
390-
+ "\n"
391-
+ "<hr width=\"50%\">\n"
392-
+ "\n"
393-
+ "<p class=\"copyright\">© 2003–2024 Unicode, Inc.\n"
394-
+ "Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.,\n"
395-
+ "in the U.S. and other countries. See "
396-
+ "<a href=\"https://www.unicode.org/copyright.html\">Terms of Use</a>.</p>\n"
397-
+ "</body>\n"
398-
+ "</html>");
388+
out.println("</table>\n");
389+
WriteCharts.printCopyrightFooter(out);
399390
out.close();
400391
}
401392
blockInfo.in.close();

unicodetools/src/main/java/org/unicode/text/UCA/WriteCharts.java

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import java.io.PrintWriter;
1818
import java.text.NumberFormat;
1919
import java.text.SimpleDateFormat;
20+
import java.time.Year;
2021
import java.util.ArrayList;
2122
import java.util.Arrays;
2223
import java.util.HashMap;
@@ -1068,19 +1069,23 @@ static void closeFile(PrintWriter output) {
10681069
}
10691070
indexFile.println("<a href = '" + indexAttributes + "'>" + indexAnchorText + "</a><br>\n");
10701071
indexHasNew = false;
1072+
output.println("</table>\n");
1073+
printCopyrightFooter(output);
1074+
output.close();
1075+
}
1076+
1077+
static void printCopyrightFooter(PrintWriter output) {
10711078
output.println(
1072-
"</table>\n"
1073-
+ "\n"
1074-
+ "<hr width=\"50%\">\n"
1075-
+ "\n"
1076-
+ "<p class=\"copyright\">© 2003–2025 Unicode, Inc.\n"
1079+
"<hr width=\"50%\">\n\n"
1080+
+ "<p class=\"copyright\">© 2003–"
1081+
+ Year.now()
1082+
+ " Unicode, Inc.\n"
10771083
+ "Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.,\n"
1078-
+ "in the U.S. and other countries. "
1084+
+ "in the U.S. and other countries.\n"
10791085
+ "For terms of use and license, "
10801086
+ "see <a href=\"https://www.unicode.org/terms_of_use.html\">https://www.unicode.org/terms_of_use.html</a>.</p>\n"
10811087
+ "</body>\n"
10821088
+ "</html>");
1083-
output.close();
10841089
}
10851090

10861091
static final int NULL_ORDER = -7,

0 commit comments

Comments
 (0)