Debian Codegraph @

texk/bibtex-x/tests/testiscjk.bst

raw
1 % BibTeXu test style file
2 % Copyright 2022 TANAKA Takuji <[email protected]>
3 % You may freely use, modify and/or distribute this file.
4 %
5 % Test for built-in functions is.cjk.str$ and is.kanji.str$
6
7 ENTRY {field}{}{}
8
9 FUNCTION {output_entry} {
10 "\item " field * write$
11 ": " field is.cjk.str$ int.to.str$ * write$
12 " " field is.kanji.str$ int.to.str$ * write$
13 " hz:" field is.cjk.str$ #1 & int.to.str$ * write$
14 " kn:" field is.cjk.str$ #2 & int.to.str$ * write$
15 " hg:" field is.cjk.str$ #4 & int.to.str$ * write$
16 " bp:" field is.cjk.str$ #8 & int.to.str$ * write$
17 " misc:" field is.cjk.str$ #2048 & int.to.str$ * write$
18 newline$
19 }
20
21 FUNCTION {type} {output_entry}
22
23 READ
24
25 FUNCTION {set_sort_key} {
26 field 'sort.key$ :=
27 }
28
29 ITERATE {set_sort_key}
30
31 SORT
32
33 FUNCTION {output_bgn} {
34 "\section*{Test result}" write$ newline$
35 "\begin{itemize}" write$ newline$
36 }
37
38 FUNCTION {output_end} {
39 "\end{itemize}" write$ newline$
40 "\endinput" write$ newline$
41 }
42
43 EXECUTE {output_bgn}
44
45 ITERATE {call.type$}
46
47 EXECUTE {output_end}