diff options
Diffstat (limited to 'tmac/zh.tmac')
-rw-r--r-- | tmac/zh.tmac | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tmac/zh.tmac b/tmac/zh.tmac new file mode 100644 index 0000000..3b34724 --- /dev/null +++ b/tmac/zh.tmac @@ -0,0 +1,61 @@ +.\" Chinese localization for groff +.\" +.\" Copyright (C) 2015-2020 Free Software Foundation, Inc. +.\" Written by Darcy SHEN <sadhen1992@gmail.com> +.\" using 'ja.tmac' as a template +.\" +.\" This file is part of groff. +.\" +.\" groff is free software; you can redistribute it and/or modify it +.\" under the terms of the GNU General Public License as published by +.\" the Free Software Foundation, either version 3 of the License, or +.\" (at your option) any later version. +.\" +.\" groff is distributed in the hope that it will be useful, but WITHOUT +.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +.\" or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +.\" License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" <http://www.gnu.org/licenses/>. +.\" +.\" Please send comments to groff@gnu.org. +. +.do nr *groff_zh_tmac_C \n[.cp] +.cp 0 +. +. +.\" The following rules work for both zh_CN and zh_TW. +. +.ds locale chinese\" +. +. +.class [CJKprepunct] \ + , : ; > } \ + \[u2026] \[u201D] \ + \[u3001] \[u3002] \[u3009] \[u300B] \[u300D] \[u300F] \[u3011] \ + \[uFF01] \[uFF09] \[uFF0C] \[uFF1A] \[uFF1B] \[uFF1F] +.class [CJKpostpunct] \ + \[u201C] \[u3008] \[u300A] \[u300C] \[u300E] \[u3010] \[uFF08] +. +.\" Chinese glyphs. +.class [CJKnormal] \ + \[u4E00]-\[u9FFF] +. +.cflags 128 \C'[CJKprepunct]' +.cflags 266 \C'[CJKpostpunct]' +.cflags 512 \C'[CJKnormal]' +. +.\" Chinese hyphenation (disabled) +.nr \*[locale]*hyphenation-mode-base 0 +.nr \*[locale]*hyphenation-mode-trap 0 +. +.cp \n[*groff_zh_tmac_C] +.do rr *groff_zh_tmac_C +. +.\" Local Variables: +.\" mode: nroff +.\" fill-column: 72 +.\" End: +.\" vim: set filetype=groff textwidth=72: |