diff options
author | wl <wl> | 2010-12-13 15:35:30 +0000 |
---|---|---|
committer | wl <wl> | 2010-12-13 15:35:30 +0000 |
commit | d3972b776027de3c2bdd88fb0cda89caa8226679 (patch) | |
tree | 718aaa5fa78543e6faff9769c6c8d7d59ece45e0 | |
parent | d5d8909e11e0c613f7a1dfba3a20a405ae7b4da4 (diff) | |
download | groff-d3972b776027de3c2bdd88fb0cda89caa8226679.tar.gz |
Add Japanese localization.
Remove trailing spaces.
* tmac/ja.tmac: New file.
* tmac/Makefile.sub (NORMALFILES): Updated.
-rw-r--r-- | ChangeLog | 56 | ||||
-rw-r--r-- | tmac/Makefile.sub | 6 | ||||
-rw-r--r-- | tmac/ja.tmac | 49 |
3 files changed, 85 insertions, 26 deletions
@@ -1,9 +1,17 @@ +2010-12-06 UKAI Fumitoshi <ukai@debian.or.jp> + Colin Watson <cjwatson@debian.org> + + Add Japanese localization. + + * tmac/ja.tmac: New file. + * tmac/Makefile.sub (NORMALFILES): Updated. + 2010-12-06 Colin Watson <cjwatson@debian.org> Daiki Ueno <ueno@unixuser.org> Implement support for character classes. - This patch uses standard C++ headers, contrary to the rest of groff. + This patch uses standard C++ headers, contrary to the rest of groff. Ideally, everything in groff should be updated to do the same. * src/include/font.h (glyph_to_unicode): New function. @@ -454,7 +462,7 @@ * configure.ac: Read `VERSION' and `REVISION' files to provide proper values for AC_INIT. * Makefile.in: Use `@datarootdir@' and `@docdir@' so that - configure's `--datarootdir' and `--docdir' options are honoured. + configure's `--datarootdir' and `--docdir' options are honoured. Documentation is now by default installed into something like `/usr/local/share/doc/groff-1.20.1'. @@ -867,7 +875,7 @@ Version 1.20 released 2008-10-03 Werner LEMBERG <wl@gnu.org> * src/devices/grops/grops.man, src/roff/troff/troff.man, - src/preproc/soelim/soelim.man: Correct documentation of -I switch. + src/preproc/soelim/soelim.man: Correct documentation of -I switch. Reported by Larry Kollar. Other minor formatting issues. @@ -932,7 +940,7 @@ Version 1.20 released 2008-09-28 Eric S. Raymond <esr@snark.thyrsus.com> - * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph, + * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph, contrib/eqn2graph.man: Tweak scripts to cope with incompatible changes in ImageMagick crop options. Document the bugs. @@ -995,7 +1003,7 @@ Version 1.20 released * src/preproc/tbl/tbl.man: Document computation of element widths. -2008-08-20 Alexey Gladkov <legion@altlinux.ru> +2008-08-20 Alexey Gladkov <legion@altlinux.ru> Werner LEMBERG <wl@gnu.org> Add default encoding option -D to preconv and groff. @@ -1058,7 +1066,7 @@ Version 1.20 released 2008-04-05 Dorai Sitaram <ds26gte@yahoo.com> Add better support for `.TAG #<label>' in non-HTML documents: In - case of a forward reference in a call to .URL, write `(see below)'. + case of a forward reference in a call to .URL, write `(see below)'. In case of a backwards reference use the page number instead. The reference gets stored in a string `TAG_<label>' and can be overridden while calling `.TAG' with its new optional argument -- @@ -1073,11 +1081,11 @@ Version 1.20 released * tmac/trace.tmac (so, mso): Added. - * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'. + * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'. If used with -mtrace, and this clause was active, the macro was executed twice. - * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality. + * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality. This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML devices. * man/groff_tmac.man: Document it. @@ -1240,7 +1248,7 @@ Version 1.20 released 2007-11-08 Werner LEMBERG <wl@gnu.org> * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be', - `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'. + `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'. (is_comment_line): Handle '\" and '\# also. * src/preproc/preconv/preconv.man: Revise and make complete. @@ -1340,7 +1348,7 @@ Version 1.20 released * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML compliant. - (valid_flag, groff_sig, dialect): New global variables. + (valid_flag, groff_sig, dialect): New global variables. (html_printer::handle_valid_flag, html_printer::do_math, html_printer::write_html_anchor, html_printer::write_xhtml_anchor, html_printer::do_math, html_printer::handle_valid_flag): New @@ -1484,7 +1492,7 @@ Version 1.20 released 2007-07-05 Werner LEMBERG <wl@gnu.org> - * tmac/papersize.tmac: Fix dimensions of executive paper format. + * tmac/papersize.tmac: Fix dimensions of executive paper format. Reported by John Rupley <rupley@u.arizona.edu>. 2007-07-02 Keith Marshall <keith.d.marshall@ntlworld.com> @@ -1711,7 +1719,7 @@ Version 1.20 released likely to do something surprising. * man/groff_out.man: We can simplify the command macros still - further if we stop trying to hide structural requests inside them. + further if we stop trying to hide structural requests inside them. Also, fix some instances of \} at start of line without a dot, and make some font changes explicit in strings. @@ -1792,16 +1800,16 @@ Version 1.20 released 2007-02-03 Eric S. Raymond <esr@snark.thyrsus.com> - * tmac/groff_man.man: Documented the extension macros, and + * tmac/groff_man.man: Documented the extension macros, and added portability advice. * MORE.STUFF: More-stuff entries for doclifter and pic2plot. - Add support for MathML output to eqn. + Add support for MathML output to eqn. The strategy used is very simple and relies on the fact that the box - models of eqn and Presentation MathML differ in only trivial ways. + models of eqn and Presentation MathML differ in only trivial ways. It leaves the grammar and existing internal object structures unchanged. A new global, `output_format', is defined as an enumerated type with values {troff, mathml}. Most of the functions @@ -1854,7 +1862,7 @@ Version 1.20 released REMAINING ISSUES: - The entirety of eqn is translated when `-TMathML' is specified, + The entirety of eqn is translated when `-TMathML' is specified, with the following exceptions... Limitations that cannot be fixed include non-support for special, @@ -1865,16 +1873,16 @@ Version 1.20 released at all it's going to be in a very complicated and nasty way. The way character boxes are output means that each digit of a - multi-digit number gets its own <mn></mn> tag pair in the MathHTML. + multi-digit number gets its own <mn></mn> tag pair in the MathHTML. While this is not technically wrong for Presentation MathML, it is ugly and inefficient. Fixing this will require implementing a little state machine in the `text.cpp' output method. - * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp, - src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man, + * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp, + src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man, src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp, - src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp, - src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp, + src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp, + src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp, src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp, src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp, src/preproc/eqn/eqn.man: MathML output mode. @@ -1884,7 +1892,7 @@ Version 1.20 released 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com> * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS - and for cross-viewer portability. Conversion checked + and for cross-viewer portability. Conversion checked using the protocol described in tmac/TESTING-HINTS. 2007-02-02 Werner LEMBERG <wl@gnu.org> @@ -2136,7 +2144,7 @@ Version 1.20 released * INSTALL.gen: Extend the file by information on `external installation'. Reorder the installation instruction as `normal - installation'. + installation'. 2006-11-08 Werner LEMBERG <wl@gnu.org> @@ -3433,7 +3441,7 @@ Version 1.20 released 2005-12-09 Werner LEMBERG <wl@gnu.org> - * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp. + * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp. * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode 4.1.0. diff --git a/tmac/Makefile.sub b/tmac/Makefile.sub index ef4b577d..10c4cddc 100644 --- a/tmac/Makefile.sub +++ b/tmac/Makefile.sub @@ -1,4 +1,5 @@ -# Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 +# Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, +# 2010 # Free Software Foundation, Inc. # Written by James Clark (jjc@jclark.com) # @@ -55,7 +56,8 @@ NORMALFILES=\ fr.tmac hyphen.fr \ sv.tmac hyphen.sv \ de.tmac den.tmac hyphen.det hyphen.den hyphenex.det \ - cs.tmac hyphen.cs hyphenex.cs + cs.tmac hyphen.cs hyphenex.cs \ + ja.tmac # These files are handled specially during installation and deinstallation. SPECIALFILES=an.tmac s.tmac www.tmac diff --git a/tmac/ja.tmac b/tmac/ja.tmac new file mode 100644 index 00000000..d6883f8f --- /dev/null +++ b/tmac/ja.tmac @@ -0,0 +1,49 @@ +.\" -*- mode: nroff; coding: utf-8; -*- +.\" +.\" Japanese localization for groff +.\" +.\" Copyright (C) 2009, 2010 Free Software Foundation, Inc. +.\" Written by Fumitoshi UKAI <ukai@debian.or.jp> and +.\" Colin Watson <cjwatson@debian.org> +.\" +.\" 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. +. +. +.\" Locale string +. +.ds locale japanese\" +. +. +.class [CJKprepunct] \ + , : ; > } \ + \[u3001] \[u3002] \[uFF0C] \[uFF0E] \[u30FB] \[uFF1A] \[uFF1B] \[uFF1F] \ + \[uFF01] \[uFF09] \[u3015] \[uFF3D] \[uFF5D] \[u300D] \[u300F] \[u3011] \ + \[u3041] \[u3043] \[u3045] \[u3047] \[u3049] \[u3063] \[u3083] \[u3085] \ + \[u3087] \[u30FC] \ + \[u30A1] \[u30A3] \[u30A5] \[u30A7] \[u30A9] \[u30C3] \[u30E3] \[u30E5] \ + \[u30E7] +.class [CJKpostpunct] \ + \[uFF08] \[u3014] \[uFF3B] \[uFF5B] \[u300C] \[u300E] \[u3010] +. +.\" Hiragana, Katakana, and Kanji glyphs. +.class [CJKnormal] \ + \[u3041]-\[u3096] \[u30A0]-\[u30FF] \[u4E00]-\[u9FFF] +. +.cflags 2 \C'[CJKprepunct]' +.cflags 4 \C'[CJKpostpunct]' +.cflags 66 \C'[CJKnormal]' |