Download BibTool Manual
Transcript
48
A. Reference Manual
If a is the number of allowed characters then
%l.h #s succeeds if and only if l ≤ a ≤ h.
%-l.h #s succeeds if and only if l > a or a > h.
Example
title = { The Whole Title }
With the above item we get the following results:
%#s(title)
%13.13#s(title)
%10.16#s(title)
%-10.16#s(title)
succeeds with empty result
succeeds with empty result
succeeds with empty result
fails
#w Count the number of words. All words are considered as valid. The division into
words is performed after deTEXing the field.
If no sign is given or the sign is + then the following rules apply. If the count is
less than pre or the count is greater than post then this specifier fails. Otherwise
it succeeds without adding something to the key.
If the sign is - then the specifier succeeds if and only if the specifier without this
sign succeeds. Thus the - acts like a negation of the condition.
If post has the value 0 than this is treated like ∞.
pre and post both default to 0.
If a is the number of words separated by white-space then
%l.h #p succeeds if and only if l ≤ a ≤ h.
%-l.h #p succeeds if and only if l > a or a > h.
Example
title = { The Whole Title }
With the above item we get the following results:
%#w(title)
%3.3#w(title)
%1.6#w(title)
%-1.6#w(title)
succeeds with empty result
succeeds with empty result
succeeds with empty result
fails
#t Is the same as #w.
#W Count the number of words. Certain words are ignored. The ignored words are
determined by the resource ignored.word. The division into words is performed
after deTEXing the field.
If no sign is given or the sign is + then the following rules apply. If the count is
less than pre or the count is greater than post then this specifier fails. Otherwise
it succeeds without adding something to the key.