summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/xq/bugs-0-3.tex
blob: 4428c0a73c4d257469f7b69b77bba9330324c6f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
% Written by Sebastian Pipping <sebastian@pipping.org>, 2014-09-16
\documentclass[twocolumn]{article}
\usepackage[margin=2cm]{geometry}
\setlength{\columnsep}{1cm}
\usepackage[hidelinks]{hyperref}
\usepackage{xq-0-3}

\newcommand{\EM}[1]{\underline{#1}}
\newcommand{\AUTHORS}[2]{%
	Reported by: #1\\%
	Fixed by: #2\\[\baselineskip]%
}

\begin{document}

\noindent
This document demonstrates bugs of xq version 0.3 that were fixed in release 0.4.

\tableofcontents


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\section{Bug: Red piece already gone}
\AUTHORS{Wolfgang Reher}{Sebastian Pipping}
%
Consider this artifical setup.

\mylanguage english
\resetboard
\piece Rc9
\piece Rc8

\piece rb9
\piece cb8
\showboard
%
Now for "\texttt{\textbackslash{}move c9d9 b9d9}" Black is capturing
the Red piece at its new position, output "Rc9-d9 Rb9xd9"
is expected (and produced by xq 0.3):
%
\cb \quad.
\move c9d9 b9d9

\noindent
In contrast, with "\texttt{\textbackslash{}move c8e8 b8c8}" black moves to
where Red just left before, non-capturing output
"Rc8-e8 \EM{Rb8-c8}" is expected, xq 0.3 yields \EM{Rb8xc8} instead.

\cb \quad.
\move c8e8 b8c8

\noindent
The situation after these moves:
\showboard


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\section{Bug: a0 wired to b0}
\AUTHORS{Wolfgang Reher}{Sebastian Pipping}
%
Consider this artifical setup.

\mylanguage english
\resetboard
\movecount=0
\piece Ra9
\piece Rc0
\piece rb0
\piece rd0
\showboard

\noindent
Now "\texttt{\textbackslash{}move a9a0 xxxx}" is a non-capturing move so
"\EM{Ra9-a0}" is expected; xq 0.3 is showing "\EM{Ra9xa0}" since
it checks b0 for occupation rather than a0:

\cr \quad.
\move a9a0 xxxx

\noindent
Next, we move the middle rooks out of the way:

\move xxxx b0b9
\cr \quad.
\move c0c9 xxxx

\noindent
Since b0 is no longer occupied, xq 0.3 renders "\texttt{\textbackslash{}move xxxx d0a0}"
as "\EM{Rd0-a0}" while "\EM{Rd0xa0}" would be correct:

\cb \quad.
\move xxxx d0a0

\noindent
The situation after these moves:
\showboard


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\section{Bug: Bad align in move listing}
\AUTHORS{Sebastian Pipping}{Sebastian Pipping}
%
Consider this artifical setup.

\mylanguage english
\resetboard
\movecount=0
\piece Rc9
\piece Rf9
\piece rh9
\piece ri9
\showboard

\noindent
Now the reduced width of some letters (e.g. "f" and "i") results in bad alignment with xq 0.3:

\move c9c5 h9h5
\cb \quad.
\move f9f5 i9i5


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\section{Bug: Start marker at \texttt{i4} missing}
\AUTHORS{Wolfgang Reher}{Wolfgang Reher}
All four board display commands fail to produce start markers at \texttt{i4} in xq 0.3.\\

\resetboard
\piece Ch4

\noindent
\texttt{\textbackslash{}showboard}\showboard
\texttt{\textbackslash{}showwesternboard}\showwesternboard
\onecolumn
\texttt{\textbackslash{}showlargeboard}\showlargeboard
\newpage
\texttt{\textbackslash{}showlargewesternboard}\showlargewesternboard

\end{document}