m + add new metadata tags POSE and BASED ON

This commit is contained in:
Mattias Andrée 2012-11-05 21:48:12 +01:00
parent 3a4ab0c39e
commit 3807af16db
2 changed files with 24 additions and 2 deletions

View file

@ -1055,11 +1055,32 @@ if the balloon is not printed.
The number of lines at the end of the pony image that should be skipped if the The number of lines at the end of the pony image that should be skipped if the
balloon is not printed. balloon is not printed.
@item POSE
@vindex @var{POSE}
@cindex master file
@cindex slave file
@cindex extras
One word (preferably) to distinguish the pony files from other pony files with the
same @var{MASTER}. Master files should try to specify this tag but are not required
to, however, non-master files (slave files) are required to specify this tag.
@b{This tag is important for the extras feature to function.}
@item BASED ON
@vindex @var{BASED ON}
Either the name of a pony that the pony is based. If the original pony is not
from MLP:FiM, the name a value that pony's MEDIA tag can used inside brackets,
for example @code{(Tumblr)}, after the original pony's name. If the pony is not
based on any pony the value @code{(original)} can be used. If the ponies is
based on multiple ponies, make a comma separated list.
@item MASTER @item MASTER
@vindex @var{MASTER} @vindex @var{MASTER}
@cindex ponyquotes
@cindex quotes
This tag refers to the pony file that is not named with extra attributes. For example, This tag refers to the pony file that is not named with extra attributes. For example,
all files where Shining Armour is the (sole) speaking pony the this tag should be all files where Shining Armor is the (sole) speaking pony the this tag should be
@code{shiningarmor}, except for in @file{shiningarmor.pony} where this tag may be omitted. @code{shiningarmor}, except for in @file{shiningarmor.pony} where this tag may be omitted.
@b{This tag is important for ponyquotes feature to function.}
@item SOURCE @item SOURCE
@vindex @var{SOURCE} @vindex @var{SOURCE}

View file

@ -739,7 +739,8 @@ class PonysayTool():
standardfields = ['GROUP NAME', 'NAME', 'OTHER NAMES', 'APPEARANCE', 'KIND', standardfields = ['GROUP NAME', 'NAME', 'OTHER NAMES', 'APPEARANCE', 'KIND',
'GROUP', 'BALLOON', 'LINK', 'LINK ON', 'COAT', 'MANE', 'EYE', 'GROUP', 'BALLOON', 'LINK', 'LINK ON', 'COAT', 'MANE', 'EYE',
'AURA', 'DISPLAY', 'BALLOON TOP', 'BALLOON BOTTOM', 'MASTER', 'AURA', 'DISPLAY', 'BALLOON TOP', 'BALLOON BOTTOM', 'MASTER',
'SOURCE', 'MEDIA', 'LICENSE', 'FREE', 'comment'] 'EXTRA', 'BASED ON', 'SOURCE', 'MEDIA', 'LICENSE', 'FREE',
'comment']
for standard in standardfields: for standard in standardfields:
if standard in fields: if standard in fields:
del fields[fields.index(standard)] del fields[fields.index(standard)]