Debian Codegraph @

texmf-dist/doc/fonts/xq/bugs-0-3.tex

raw
1 % Written by Sebastian Pipping <[email protected]>, 2014-09-16
2 \documentclass[twocolumn]{article}
3 \usepackage[margin=2cm]{geometry}
4 \setlength{\columnsep}{1cm}
5 \usepackage[hidelinks]{hyperref}
6 \usepackage{xq-0-3}
7
8 \newcommand{\EM}[1]{\underline{#1}}
9 \newcommand{\AUTHORS}[2]{%
10 Reported by: #1\\%
11 Fixed by: #2\\[\baselineskip]%
12 }
13
14 \begin{document}
15
16 \noindent
17 This document demonstrates bugs of xq version 0.3 that were fixed in release 0.4.
18
19 \tableofcontents
20
21
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23 \newpage
24 \section{Bug: Red piece already gone}
25 \AUTHORS{Wolfgang Reher}{Sebastian Pipping}
26 %
27 Consider this artifical setup.
28
29 \mylanguage english
30 \resetboard
31 \piece Rc9
32 \piece Rc8
33
34 \piece rb9
35 \piece cb8
36 \showboard
37 %
38 Now for "\texttt{\textbackslash{}move c9d9 b9d9}" Black is capturing
39 the Red piece at its new position, output "Rc9-d9 Rb9xd9"
40 is expected (and produced by xq 0.3):
41 %
42 \cb \quad.
43 \move c9d9 b9d9
44
45 \noindent
46 In contrast, with "\texttt{\textbackslash{}move c8e8 b8c8}" black moves to
47 where Red just left before, non-capturing output
48 "Rc8-e8 \EM{Rb8-c8}" is expected, xq 0.3 yields \EM{Rb8xc8} instead.
49
50 \cb \quad.
51 \move c8e8 b8c8
52
53 \noindent
54 The situation after these moves:
55 \showboard
56
57
58 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 \newpage
60 \section{Bug: a0 wired to b0}
61 \AUTHORS{Wolfgang Reher}{Sebastian Pipping}
62 %
63 Consider this artifical setup.
64
65 \mylanguage english
66 \resetboard
67 \movecount=0
68 \piece Ra9
69 \piece Rc0
70 \piece rb0
71 \piece rd0
72 \showboard
73
74 \noindent
75 Now "\texttt{\textbackslash{}move a9a0 xxxx}" is a non-capturing move so
76 "\EM{Ra9-a0}" is expected; xq 0.3 is showing "\EM{Ra9xa0}" since
77 it checks b0 for occupation rather than a0:
78
79 \cr \quad.
80 \move a9a0 xxxx
81
82 \noindent
83 Next, we move the middle rooks out of the way:
84
85 \move xxxx b0b9
86 \cr \quad.
87 \move c0c9 xxxx
88
89 \noindent
90 Since b0 is no longer occupied, xq 0.3 renders "\texttt{\textbackslash{}move xxxx d0a0}"
91 as "\EM{Rd0-a0}" while "\EM{Rd0xa0}" would be correct:
92
93 \cb \quad.
94 \move xxxx d0a0
95
96 \noindent
97 The situation after these moves:
98 \showboard
99
100
101 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
102 \newpage
103 \section{Bug: Bad align in move listing}
104 \AUTHORS{Sebastian Pipping}{Sebastian Pipping}
105 %
106 Consider this artifical setup.
107
108 \mylanguage english
109 \resetboard
110 \movecount=0
111 \piece Rc9
112 \piece Rf9
113 \piece rh9
114 \piece ri9
115 \showboard
116
117 \noindent
118 Now the reduced width of some letters (e.g. "f" and "i") results in bad alignment with xq 0.3:
119
120 \move c9c5 h9h5
121 \cb \quad.
122 \move f9f5 i9i5
123
124
125 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
126 \newpage
127 \section{Bug: Start marker at \texttt{i4} missing}
128 \AUTHORS{Wolfgang Reher}{Wolfgang Reher}
129 All four board display commands fail to produce start markers at \texttt{i4} in xq 0.3.\\
130
131 \resetboard
132 \piece Ch4
133
134 \noindent
135 \texttt{\textbackslash{}showboard}\showboard
136 \texttt{\textbackslash{}showwesternboard}\showwesternboard
137 \onecolumn
138 \texttt{\textbackslash{}showlargeboard}\showlargeboard
139 \newpage
140 \texttt{\textbackslash{}showlargewesternboard}\showlargewesternboard
141
142 \end{document}