Analytic Martial Arts

Saturday, December 3, 2011

A Simple Grammer For Describing Forms

After talking with Scav about notation variants I thought it'd be super useful if there were some generic format for representing a form than could then be displayed in whatever manner suited the user's fancy. It turns out not to be terribly difficult1, the main challenge being the development of a grammar that is both concise and unambiguous at the same time.

When writing forms down for typesetting what I've done to this point is to put the symbols into a .csv file in the same way I want them to be displayed on the page and then run the file through a fairly simple formatting script to turn it into a table. That .csv file looks something like:

RP SK,,RP
,BACK DDE,
SS,,

This format has the benefit of being extremely concise; every character sequence is short and absolutely necessary. However, if I need to do any complex typesetting for something like a grapple it suddenly becomes an effing disaster:

<div>(LOW)<br/>&#x21c8;<br/>BB</div>,,
,,BS HP
IB,FORWARD,
,NS,

It's no longer concise; the use of HTML for typesetting introduces a lot of extraneous characters which interfere with human comprehension. Additionally, in doing so I've committed the cardinal sin of mixing meaning and representation, making the file basically useless except in one particular situation. And I still have to do a lot of manual touchup of the resulting HTML so that things align properly. Wouldn't it be peachy-keen if there were a way to write down the meaning ("forward bird break against the opponent's left, outer wrist" in this case) in a easily typeable, easily readable fashion?

Turns out that the system I've been using is almost comprehensible to a computer as is. There is, however, an unresolvable ambiguity that arises from the use of direction ("forward", "back", etc.) to denote both the motion of the body and the direction of a strike. Consider the sequence

FORWARD RP

That could mean one of two things:

  • Move forward while executing a reverse punch.
  • Execute a forward reverse punch.

If I'm a human I'm going to look at the greater context to figure out what's going on. For example, if it appears on the left or the right it's a targeting instruction, since all movement glyphs appear in the middle column of a line of notation. It would be simple to teach that rule to a computer. But consider the following technique:

,LEFT DDBF,
SS,, 
TK,JUMP FORWARD,
SS,,

Does "LEFT DDBF" mean "move left while executing a double downward backfist block" or does it mean "left double downward backfist block"? I know which interpretation makes sense, but making that distinction is beyond the capabilities of a computer. That being the case we need some simple way to let the computer know that the direction is a targeting modifier and not a movement. Here's what I've come up with so far:

start → line*
line → blankline | actionline
blankline → [ \t]* '\n'
actionline → left ',' center ',' right '\n' 
left → atom*
center → atom*
right → atom*
atom → direction | jump | turn | action
direction → 'BACK'|'LEFT'|'RIGHT'|'FORWARD'|'FORWARDLEFT'|'FORWARDRIGHT'|'BACKLEFT'|'BACKRIGHT'
jump → 'JUMP'
turn → 'TURNLEFT'|'TURNRIGHT' turn_modification_clause{0,1} 
turn_modification_clause → '(' \d+ ')' 
action → symbol modification_clause{0,1}
modification_clause → '(' modifiers+ ')' 
modifiers → direction | grapple | symbol
symbol → [A-Za-z]+ 
grapple → 'GRAPPLE' 

What this works out to in English is

  • A notation block is composed of carriage-return-delimited lines.
  • All lines are either blank, or have three fields (left, right, and center)
  • Each field is composed of multiple atoms.
  • An atom can be:
    • A direction, indicating motion.
    • A jump.
    • A left or right turn with an optional modification clause. The modification clause can be used to provide a number of degrees; when omitted 90° is assumed.
    • An arbitrary symbol indicating a strike/stance with an optional modification clause. The modification clause can consist of a direction, a symbol (indicating the target), and the keyword "GRAPPLE" indicating that the move is a grapple. The usual defaults are assumed if no clause is supplied.

This seems to be pretty compact; in most cases it won't be necessary to type anything more than short symbols and commas. I suspect that as I work with this I'll probably expand it a little bit to account for things like comments, but this is the gist of it. Thoughts?


1 Those interested in the technical details can look here.

Thursday, November 10, 2011

Left-To-Right Version of MA Notation

Scav has put together a sample of a left-to-right version of the MA notation system. It looks interesting and may have long-run potential.

Tuesday, October 18, 2011

Studio X: Sparring Techniques: Rank 2

Key

  • BSw: Back Sweep
  • DDBB: Double Downward Backfist Block
  • DFB: Downward Forearm Block
  • HBS: High Bird Stance
  • IB: Inward Block
  • KH: Hook Kick
  • MG: Monkey Grab
  • OB: Outward Block
  • OSH: Outward Sidehand
  • RP: Reverse Punch
  • ShS: Shuffle Step
  • SK: Snap Kick
  • SS: Sparring Stance
  • STK: Side Thrust Kick
  • TS: Twist Stance

6

RP
SK
BSw
↑ ShS
SS

7

HK
TS
↑
SS

8

RP2
FSw1
IB(ROW)
⇈
OB/MG
SS

1: This is a short sweep; the defender is trying to hook the attacker's leading foot forward to get em to overcommit eir weight onto eir front foot.
2: There's a slight syncopation to the rhythym here; the punch doesn't follow immediately, but rather waits until the attacker has settled the bulk of eir weight on eir front foot. The monkey grab from the preceeding action is maintained at this point; the defender should pull back on the grappled arm while executing the reverse punch, effectively pulling the attacker into it.

9

← DDBB
SS
STK↑ ⊙
SS

10

HBS OSH
↑ ShSDFB
SS

Studio X: Sparring Techniques: Rank 1

Key

  • CS: Cat Stance
  • DBB: Downward Backfist Block
  • DDE: Double Downward Elbow
  • FS: Forward Sweep
  • KT: Knee Trap
  • OB: Outward Block
  • RP: Reverse Punch
  • SK: Snap Kick
  • ShS: Shuffle-Step
  • SS: Sparring Stance
  • STK: Side Thrust Kick

1

Yup, first technique is just a punch:

RP
SS

2

RP SKRP
CS
↓ DDE
SS

3

RP
SK
KT
↑ ShS
SS

4

RP
STK
FS
↑ ShS
SS

5

SK DBB⊙
RP
RP
OB
SS

Monday, September 19, 2011

Studio X: Short Forms: Rank 4

Like the rank 3 short forms these all have two sides, left and right. Right goes first and starts with a right-handed attack.

Key

Strikes

  • BB: Bird Break
  • BF: Backfist
  • BSw: Back Sweep
  • CFSw: Circular Front Sweep
  • CS: Cat Stance
  • DBB: Downward Backfist Block
  • DDBB: Double Downward Backfist Block
  • DFFB: Double Forward Forearm Block
  • DDPB: Double Downward Palm Block
  • DPB: Downward Palm Block
  • E: Elbow
  • FSw: Front Sweep
  • HP: Horizontal Punch
  • IB: Intercepting Block
  • ISH: Inward Sidehand
  • LHS: Leg-Hanging Stance
  • NS: Natural Stance
  • RHK: Roundhouse Kick
  • RP: Reverse Punch
  • SK: Snap Kick
  • TH: Twist Hit

Targets

  • E: Elbow
  • W: Wrist

23

SK DBBLeft
IBHP
BF
THIB
BF
IBTH
BF
HP BS
↑IB
SK DBBRight
HPIB
BF
IBTH
BF
THIB
BF
BS HP
IB↑
NS

24

HP BSLeft
↑IB
CS RP
UB↓
BS HP
IB↑
RP CS
↓UB
HP BS
↑IB
BS HPRight
IB↑
RP CS
↓UB
HPBS
↑IB
CS RP
UB↓
BS HP
IB↑
NS

25

↻SK DBBLeft
BS UB→BSw→ HP→
↺FSw
RSHDPB→
(ROW)
⇈
BB
 (RIH)
⇊
(LOW)
HP BS
↑IB
SK DBB↺Right
←BSw ←HP←UB BS
FSw↻
←DPBRSH
(LOW)
⇈
BB
BS HP
IB↑
NS

26

RHKLeft
(RIE)
⇈
(OW)
 HP
(ROW)
⇈
(OW)
 HP
(1)
HP BS
↑IB
RHKRight
(RIW)
⇈
(OW)
 HP
(ROE)
⇈
(OW)
 HP
(1)
BS HP
IB↑
NS

1 Opponent's arm should be bent ~90° at the elbow, forming a convenient lever for application of force by the backs of the hands.

27

SKRPLeft
THSK
IB BSHP
↺
HS DFFB
↻
HP BS↓HP
↑↺
LHSDFFB
↻
RPSKRight
SKTH
HPBS IB
↻
HS DFFB
↺
↓HPBS HP
↑↻
DFFBLHS
↺
NS

28

SKRPLeft
THSK
IB BSHP
↑
ISH CSUB(1)
↓
HP BS↓HP
↺↑
LHSDFFB
↻
RPSKRight
SKTH
HPBS IB
↑
UBCS ISH(1)
↓
↓HPBS HP
↻↑
DFFBLHS
↺
NS

1 This is a low, inward sidehand which comes across the performer's knees to deflect an incoming kick. In reality this might also be executed as an open-handed parry.

29

DDBBLeft
HP BS
↑IB
DDBB
BS HP
IB↑
HPCS
↓UB
BS RP
↻180°
RP BS
↓BF↺180°
↓EBS
↓
NS
↑Right
DDBB
BS HP
IB↑
DDBB
HP BS
↑IB
CSHP
UB↓
RP BS
↺180°
BS RP
↻180°↓BF
BS↓E
↓
NS

30

SKLeft
CFSw
RSHDPB→
(ROW)
⇈
BB
 (RIH)
⇊
(LOW)
HP BS
↑IB
←DDBB↺
LHS
IS⊙↻450°OS
BSDDPB
↓↻180°
RP BS
↓BF↺180°
↓EBS
↓
NS
HP BSRight
↑IB(1)
SK(1)
CFSw
←DPBRSH
(LOW)
⇈
BB
 (LIH)
⇊
(ROW)
BS HP
IB↑
↻DDBB→
LHS
OS⊙↺450°IS
DDPBBS
↓↺180°
BS RP
↻180°↓BF
BS↓E
↓
NS

1 This block/punch sequence is glue material between the left and right halves of the form; there is no corresponding block/punch at the end of the left side.

Friday, September 16, 2011

Studio X: Sparring Techniques: Rank 4

Key

Strikes

  • BF: Backfist
  • BSw: Back Sweep
  • DFB: Downward Forearm Block
  • FSw: Front Sweep
  • HK: Hook Kick
  • IB: Inward Block
  • KT: Knee Trap
  • OB: Outward Block
  • OSH: Outward Sidehand
  • MG: Monkey Grab
  • RHK: Roundhouse Kick
  • SHK: Spinning Hook Kick
  • SS: Sparring Stance
  • ShS: Shuffle Step
  • TH: Twist Hit

Targets

  • F: Face
  • S: Stomach

16

Try to maintain as much rotational momentum as possible when executing this technique. The front sweep should flow naturally into the spinning hook, which should flow into the outward block etc.

RHK
TH
SS OB
↻180°SHK↓
^
SS(1)
FSw↻180°
↑ShS
SS

1 Transitory, held just long enough to switch weight from one leg to the other in preparation for the spinning hook kick.

17

BF
BF
BF(2)
SS
RHK
KT(1)
SS

1 Foot doesn't touch ground between knee trap and roundhouse kick.
2 These are rolling puches in quick successing, like hitting a speed bag.

18

Try to maintain rotational momentum as in 16.

RHK
TH
SS OB
↻270°←SHK
>
HS(1)
BSw↻
↑ShS
SS

1 Transitory. Something of a cross between a cat stance and a high horse stance, held just long enough to transfer weight from one leg to the other in preparation for the spinning hook kick.

19

OSH
↑ShSOB/MG
IB
SS
(F)
↑
STK
↑ShS
SS
(S)
↑
STK
↑ShS
SS

20

BF
DFB
SS
↑RHK
TH
OB SS
HK
↑ShS
SS

Thursday, September 15, 2011

Notation: Weapons I

One of the things that I really like about Studio X is that weapons work is part of the core material and not an occasional adjunct. As a result I now have weapons forms to memorize, some of which are proving to be challenging. So now seems to be a good time to start thinking about developing a vocabulary for weapons forms.

There's good reason to be skeptical about the idea of a single, a unified vocabulary which encompasses the vast menagerie that is kung-fu weaponry. Even if we confine ourselves to only the most frequently used weapons there's a still tremendous amount of variation. That said I want to take a stab at it and see if we can up with something which is good enough for our purposes.

Based on my experience, when it comes to mechanics everything is ultimately a stick1:

Symmetric Asymmetric
Solid Staff, headless cane, escrima swords, spears, kwon-dao
Jointed nunchaku, 3-section staff 9-section whip

Some are one-handed, some are two-handed, some are sharp, some are not. Some slash, some stab, some bludgeon. But you can generally capture the motion of the weapon by accurately describing the position of the two ends through time. Moreover, its usually even simpler than that. Each weapon has a standard repertoire of strikes, so I suspect the vast bulk of the time you can get away with using standard symbol, the same as hands and feet. Where things start to get tricky, in my estimation, is in the notion of the return path.

Technically punches and kicks also have a return path, a motion that follows the delivery of the strike/block to prepare the limb for further actions. But it's almost always the case that there's only one correct return path for any given strike/block; the exceptions are so far and few between that they don't merit concern. With weapons, on the other hand, there may be a number of options, each of which has implications for which follow-up strikes are possible. Thus it seems to me that the first step in expanding the notation system is to find some way to represent the return path.

Recall that the complete grammar for a strike/grapple is

<identifier|(surface)><strike|grapple + direction>(<target>)

where the direction and target are usually implicit and thus omitted for the sake of brevity.

The logical extension of the above is to place a symbol after the target which indicates the type of return to execute, since the return happens after delivery of the strike. If we adopt this convention, however, it suddenly becomes necessary to specify the direction and target of every strike (even if these are otherwise implicit) for which we wish to indicate a return path. This may be required for the bulk of the strikes in a weapons form, leading to the inclusion of a lot of redundant data and unnecessarily decreasing the readability of the final form.

This argues that we should find a way to record the return path without necessarily needing to specify the direction or target. The solution which immediately springs to mind is to use the '+' symbol like so

<strike identifier>+<return path identifier>

where the return identifier is up to the discretion of whomever is using the notation.

Consider the headless cane; an overhead strike can be returned directly, using an inside loop, or an using outside loop. These could be recorded as "OHS+D", "OHS+I", and "OHS+O"; quick an easy.

I'm by no means completely sold on this, but I think it shows promise. I'm going to try to record a staff form and see if I run into any difficulties.


1 This generalization seems to apply across the bulk of MA weaponry, but there are obviously some exceptions: tonfa, wind and fire wheels, bench, tiger head shield.
2 While "inside" and "outside" are correct from a technical standpoint they're also relative directions; I'd probably use "left" and "right" in production to aid comprehension.