| 1 |
.TH PBIBTEX 1 "12 January 2026" "Web2C @VERSION@" |
| 2 |
.\"===================================================================== |
| 3 |
.if t .ds TX \fRT\\h'-0.10m'\\v'0.17v'E\\v'-0.17v'\\h'-0.06m'X\fP |
| 4 |
.if n .ds TX TeX |
| 5 |
.ie t .ds OX \fIT\h'-0.17m'\v'+0.21m'E\v'-0.21m'\h'-0.04m'X\fP |
| 6 |
.el .ds OX TeX\" |
| 7 |
.\" BX definition must follow TX so BX can use TX |
| 8 |
.if t .ds BX \fRB\s-2IB\s0\fP\*(TX |
| 9 |
.if n .ds BX BibTeX |
| 10 |
.\"===================================================================== |
| 11 |
.SH NAME |
| 12 |
pbibtex, upbibtex \- make a (Japanese) bibliography for (La)TeX |
| 13 |
.SH SYNOPSIS |
| 14 |
.B pbibtex |
| 15 |
.RI [ options ] |
| 16 |
.IR auxname [ \fB.aux\fP ] |
| 17 |
.\"===================================================================== |
| 18 |
.SH DESCRIPTION |
| 19 |
p\*(BX (\fBpbibtex\fR) |
| 20 |
is a modified version of |
| 21 |
.BR bibtex (1) |
| 22 |
for handling Japanese bibliographies. It sorts entries according to code |
| 23 |
points in EUC-JP, and provides new and modified built-in functions |
| 24 |
described below. |
| 25 |
.PP |
| 26 |
up\*(BX (\fBupbibtex\fR) is a modified version of p\*(BX, which sorts |
| 27 |
entries according to code points in Unicode. |
| 28 |
.PP |
| 29 |
.B Extensions to bibliography style (bst) functions |
| 30 |
.PP |
| 31 |
A new built-in function is available, and some other functions |
| 32 |
are modified to simplify Japanese handling. |
| 33 |
.PP |
| 34 |
.TP 5 |
| 35 |
.B is.kanji.str$ |
| 36 |
[New built-in] |
| 37 |
Pops the top (string) literal to see if it contains any non-ASCII |
| 38 |
characters. Pushes 1 if it contains at least one, 0 if not. |
| 39 |
.PP |
| 40 |
.TP 5 |
| 41 |
.B substring$ |
| 42 |
Modified to avoid dividing a character string in the middle of |
| 43 |
a multibyte character. |
| 44 |
.PP |
| 45 |
.TP 5 |
| 46 |
.B text.prefix$ |
| 47 |
Similar modification as to |
| 48 |
.BR substring$ . |
| 49 |
.PP |
| 50 |
.TP 5 |
| 51 |
.B add.period$ |
| 52 |
Modified to prevent appending "." after the Japanese punctuation marks |
| 53 |
corresponding to "!", "?" and ".", |
| 54 |
namely U+FF01, U+FF1F, U+3002 and U+FF0E. |
| 55 |
.PP |
| 56 |
.TP 5 |
| 57 |
.B format.name$ |
| 58 |
Modified to accept Japanese \fIzenkaku\fR ideographic space |
| 59 |
(U+3000) for names displayed in Japanese. |
| 60 |
Also modified to recognize Japanese commas (U+3001 and U+FF0C) |
| 61 |
similar to "and" between names. |
| 62 |
.\"===================================================================== |
| 63 |
.SH OPTIONS |
| 64 |
See |
| 65 |
.BR tex (1) |
| 66 |
for details of command-line parsing, and |
| 67 |
.BR bibtex (1) |
| 68 |
for common options: \fB-min-crossrefs\fP, \fB-terse\fP, \fB-help\fP, |
| 69 |
\fB-version\fP. |
| 70 |
.TP |
| 71 |
.B [-no]-guess-input-enc |
| 72 |
Disable/enable guessing of the input file encoding. |
| 73 |
.TP |
| 74 |
.BI -kanji= string |
| 75 |
Set Japanese encoding, where \fIstring\fP is one of |
| 76 |
\fIeuc\fP, \fIjis\fP, \fIsjis\fP, \fIutf8\fP, \fIuptex\fP. |
| 77 |
.TP |
| 78 |
.BI -kanji-internal= string |
| 79 |
Set Japanese internal encoding, where \fIstring\fP is one of \fIeuc\fP |
| 80 |
or \fIuptex\fP. |
| 81 |
.\"===================================================================== |
| 82 |
.SH "SEE ALSO" |
| 83 |
.BR bibtex (1), |
| 84 |
.BR ptex (1). |
| 85 |
.\"===================================================================== |
| 86 |
.SH AUTHORS |
| 87 |
\*(BX was written by Oren Patashnik at Stanford University. |
| 88 |
.PP |
| 89 |
The Japanese version of \*(BX was originally developed by Shouichi Matsui |
| 90 |
as J\*(BX until 1991. |
| 91 |
It was developed to behave consistently with NTT J\*(TX in handling |
| 92 |
legacy Japanese encodings. |
| 93 |
The old documentation files jbibtex.pdf, jbtxdoc.tex, jbtxhak.tex |
| 94 |
(all available in \*(TX Live) |
| 95 |
describe Japanese handling capability and some additional notes |
| 96 |
of J\*(BX. |
| 97 |
.PP |
| 98 |
Current (u)p\*(BX is a forked version of J\*(BX, |
| 99 |
and has replaced the encoding conversion routine with one that is |
| 100 |
compatible with the (u)p\*(TX community edition using the ptexenc library. |
| 101 |
Descriptions of encodings in the old documentation files |
| 102 |
j*.pdf (especially Section 3.3 of jbibtex.pdf, such as BIBTERMCODE |
| 103 |
and BIBFILECODE) are no longer correct. |
| 104 |
.PP |
| 105 |
This manual page was written by Hironobu Yamashita. |
| 106 |
.PP |
| 107 |
Email bug reports to [email protected]. |