remove .js files
205
data/dictionaries/en_CA.aff
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
SET UTF-8
|
||||||
|
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
|
||||||
|
ICONV 1
|
||||||
|
ICONV ’ '
|
||||||
|
NOSUGGEST !
|
||||||
|
|
||||||
|
# ordinal numbers
|
||||||
|
COMPOUNDMIN 1
|
||||||
|
# only in compounds: 1th, 2th, 3th
|
||||||
|
ONLYINCOMPOUND c
|
||||||
|
# compound rules:
|
||||||
|
# 1. [0-9]*1[0-9]th (10th, 11th, 12th, 56714th, etc.)
|
||||||
|
# 2. [0-9]*[02-9](1st|2nd|3rd|[4-9]th) (21st, 22nd, 123rd, 1234th, etc.)
|
||||||
|
COMPOUNDRULE 2
|
||||||
|
COMPOUNDRULE n*1t
|
||||||
|
COMPOUNDRULE n*mp
|
||||||
|
WORDCHARS 0123456789
|
||||||
|
|
||||||
|
PFX A Y 1
|
||||||
|
PFX A 0 re .
|
||||||
|
|
||||||
|
PFX I Y 1
|
||||||
|
PFX I 0 in .
|
||||||
|
|
||||||
|
PFX U Y 1
|
||||||
|
PFX U 0 un .
|
||||||
|
|
||||||
|
PFX C Y 1
|
||||||
|
PFX C 0 de .
|
||||||
|
|
||||||
|
PFX E Y 1
|
||||||
|
PFX E 0 dis .
|
||||||
|
|
||||||
|
PFX F Y 1
|
||||||
|
PFX F 0 con .
|
||||||
|
|
||||||
|
PFX K Y 1
|
||||||
|
PFX K 0 pro .
|
||||||
|
|
||||||
|
SFX V N 2
|
||||||
|
SFX V e ive e
|
||||||
|
SFX V 0 ive [^e]
|
||||||
|
|
||||||
|
SFX N Y 3
|
||||||
|
SFX N e ion e
|
||||||
|
SFX N y ication y
|
||||||
|
SFX N 0 en [^ey]
|
||||||
|
|
||||||
|
SFX X Y 3
|
||||||
|
SFX X e ions e
|
||||||
|
SFX X y ications y
|
||||||
|
SFX X 0 ens [^ey]
|
||||||
|
|
||||||
|
SFX H N 2
|
||||||
|
SFX H y ieth y
|
||||||
|
SFX H 0 th [^y]
|
||||||
|
|
||||||
|
SFX Y Y 1
|
||||||
|
SFX Y 0 ly .
|
||||||
|
|
||||||
|
SFX G Y 2
|
||||||
|
SFX G e ing e
|
||||||
|
SFX G 0 ing [^e]
|
||||||
|
|
||||||
|
SFX J Y 2
|
||||||
|
SFX J e ings e
|
||||||
|
SFX J 0 ings [^e]
|
||||||
|
|
||||||
|
SFX D Y 4
|
||||||
|
SFX D 0 d e
|
||||||
|
SFX D y ied [^aeiou]y
|
||||||
|
SFX D 0 ed [^ey]
|
||||||
|
SFX D 0 ed [aeiou]y
|
||||||
|
|
||||||
|
SFX T N 4
|
||||||
|
SFX T 0 st e
|
||||||
|
SFX T y iest [^aeiou]y
|
||||||
|
SFX T 0 est [aeiou]y
|
||||||
|
SFX T 0 est [^ey]
|
||||||
|
|
||||||
|
SFX R Y 4
|
||||||
|
SFX R 0 r e
|
||||||
|
SFX R y ier [^aeiou]y
|
||||||
|
SFX R 0 er [aeiou]y
|
||||||
|
SFX R 0 er [^ey]
|
||||||
|
|
||||||
|
SFX Z Y 4
|
||||||
|
SFX Z 0 rs e
|
||||||
|
SFX Z y iers [^aeiou]y
|
||||||
|
SFX Z 0 ers [aeiou]y
|
||||||
|
SFX Z 0 ers [^ey]
|
||||||
|
|
||||||
|
SFX S Y 4
|
||||||
|
SFX S y ies [^aeiou]y
|
||||||
|
SFX S 0 s [aeiou]y
|
||||||
|
SFX S 0 es [sxzh]
|
||||||
|
SFX S 0 s [^sxzhy]
|
||||||
|
|
||||||
|
SFX P Y 3
|
||||||
|
SFX P y iness [^aeiou]y
|
||||||
|
SFX P 0 ness [aeiou]y
|
||||||
|
SFX P 0 ness [^y]
|
||||||
|
|
||||||
|
SFX M Y 1
|
||||||
|
SFX M 0 's .
|
||||||
|
|
||||||
|
SFX B Y 3
|
||||||
|
SFX B 0 able [^aeiou]
|
||||||
|
SFX B 0 able ee
|
||||||
|
SFX B e able [^aeiou]e
|
||||||
|
|
||||||
|
SFX L Y 1
|
||||||
|
SFX L 0 ment .
|
||||||
|
|
||||||
|
REP 90
|
||||||
|
REP a ei
|
||||||
|
REP ei a
|
||||||
|
REP a ey
|
||||||
|
REP ey a
|
||||||
|
REP ai ie
|
||||||
|
REP ie ai
|
||||||
|
REP alot a_lot
|
||||||
|
REP are air
|
||||||
|
REP are ear
|
||||||
|
REP are eir
|
||||||
|
REP air are
|
||||||
|
REP air ere
|
||||||
|
REP ere air
|
||||||
|
REP ere ear
|
||||||
|
REP ere eir
|
||||||
|
REP ear are
|
||||||
|
REP ear air
|
||||||
|
REP ear ere
|
||||||
|
REP eir are
|
||||||
|
REP eir ere
|
||||||
|
REP ch te
|
||||||
|
REP te ch
|
||||||
|
REP ch ti
|
||||||
|
REP ti ch
|
||||||
|
REP ch tu
|
||||||
|
REP tu ch
|
||||||
|
REP ch s
|
||||||
|
REP s ch
|
||||||
|
REP ch k
|
||||||
|
REP k ch
|
||||||
|
REP f ph
|
||||||
|
REP ph f
|
||||||
|
REP gh f
|
||||||
|
REP f gh
|
||||||
|
REP i igh
|
||||||
|
REP igh i
|
||||||
|
REP i uy
|
||||||
|
REP uy i
|
||||||
|
REP i ee
|
||||||
|
REP ee i
|
||||||
|
REP j di
|
||||||
|
REP di j
|
||||||
|
REP j gg
|
||||||
|
REP gg j
|
||||||
|
REP j ge
|
||||||
|
REP ge j
|
||||||
|
REP s ti
|
||||||
|
REP ti s
|
||||||
|
REP s ci
|
||||||
|
REP ci s
|
||||||
|
REP k cc
|
||||||
|
REP cc k
|
||||||
|
REP k qu
|
||||||
|
REP qu k
|
||||||
|
REP kw qu
|
||||||
|
REP o eau
|
||||||
|
REP eau o
|
||||||
|
REP o ew
|
||||||
|
REP ew o
|
||||||
|
REP oo ew
|
||||||
|
REP ew oo
|
||||||
|
REP ew ui
|
||||||
|
REP ui ew
|
||||||
|
REP oo ui
|
||||||
|
REP ui oo
|
||||||
|
REP ew u
|
||||||
|
REP u ew
|
||||||
|
REP oo u
|
||||||
|
REP u oo
|
||||||
|
REP u oe
|
||||||
|
REP oe u
|
||||||
|
REP u ieu
|
||||||
|
REP ieu u
|
||||||
|
REP ue ew
|
||||||
|
REP ew ue
|
||||||
|
REP uff ough
|
||||||
|
REP oo ieu
|
||||||
|
REP ieu oo
|
||||||
|
REP ier ear
|
||||||
|
REP ear ier
|
||||||
|
REP ear air
|
||||||
|
REP air ear
|
||||||
|
REP w qu
|
||||||
|
REP qu w
|
||||||
|
REP z ss
|
||||||
|
REP ss z
|
||||||
|
REP shun tion
|
||||||
|
REP shun sion
|
||||||
|
REP shun cion
|
||||||
|
REP size cise
|
||||||
49564
data/dictionaries/en_CA.dic
Normal file
205
data/dictionaries/en_GB.aff
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
SET UTF-8
|
||||||
|
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
|
||||||
|
ICONV 1
|
||||||
|
ICONV ’ '
|
||||||
|
NOSUGGEST !
|
||||||
|
|
||||||
|
# ordinal numbers
|
||||||
|
COMPOUNDMIN 1
|
||||||
|
# only in compounds: 1th, 2th, 3th
|
||||||
|
ONLYINCOMPOUND c
|
||||||
|
# compound rules:
|
||||||
|
# 1. [0-9]*1[0-9]th (10th, 11th, 12th, 56714th, etc.)
|
||||||
|
# 2. [0-9]*[02-9](1st|2nd|3rd|[4-9]th) (21st, 22nd, 123rd, 1234th, etc.)
|
||||||
|
COMPOUNDRULE 2
|
||||||
|
COMPOUNDRULE n*1t
|
||||||
|
COMPOUNDRULE n*mp
|
||||||
|
WORDCHARS 0123456789
|
||||||
|
|
||||||
|
PFX A Y 1
|
||||||
|
PFX A 0 re .
|
||||||
|
|
||||||
|
PFX I Y 1
|
||||||
|
PFX I 0 in .
|
||||||
|
|
||||||
|
PFX U Y 1
|
||||||
|
PFX U 0 un .
|
||||||
|
|
||||||
|
PFX C Y 1
|
||||||
|
PFX C 0 de .
|
||||||
|
|
||||||
|
PFX E Y 1
|
||||||
|
PFX E 0 dis .
|
||||||
|
|
||||||
|
PFX F Y 1
|
||||||
|
PFX F 0 con .
|
||||||
|
|
||||||
|
PFX K Y 1
|
||||||
|
PFX K 0 pro .
|
||||||
|
|
||||||
|
SFX V N 2
|
||||||
|
SFX V e ive e
|
||||||
|
SFX V 0 ive [^e]
|
||||||
|
|
||||||
|
SFX N Y 3
|
||||||
|
SFX N e ion e
|
||||||
|
SFX N y ication y
|
||||||
|
SFX N 0 en [^ey]
|
||||||
|
|
||||||
|
SFX X Y 3
|
||||||
|
SFX X e ions e
|
||||||
|
SFX X y ications y
|
||||||
|
SFX X 0 ens [^ey]
|
||||||
|
|
||||||
|
SFX H N 2
|
||||||
|
SFX H y ieth y
|
||||||
|
SFX H 0 th [^y]
|
||||||
|
|
||||||
|
SFX Y Y 1
|
||||||
|
SFX Y 0 ly .
|
||||||
|
|
||||||
|
SFX G Y 2
|
||||||
|
SFX G e ing e
|
||||||
|
SFX G 0 ing [^e]
|
||||||
|
|
||||||
|
SFX J Y 2
|
||||||
|
SFX J e ings e
|
||||||
|
SFX J 0 ings [^e]
|
||||||
|
|
||||||
|
SFX D Y 4
|
||||||
|
SFX D 0 d e
|
||||||
|
SFX D y ied [^aeiou]y
|
||||||
|
SFX D 0 ed [^ey]
|
||||||
|
SFX D 0 ed [aeiou]y
|
||||||
|
|
||||||
|
SFX T N 4
|
||||||
|
SFX T 0 st e
|
||||||
|
SFX T y iest [^aeiou]y
|
||||||
|
SFX T 0 est [aeiou]y
|
||||||
|
SFX T 0 est [^ey]
|
||||||
|
|
||||||
|
SFX R Y 4
|
||||||
|
SFX R 0 r e
|
||||||
|
SFX R y ier [^aeiou]y
|
||||||
|
SFX R 0 er [aeiou]y
|
||||||
|
SFX R 0 er [^ey]
|
||||||
|
|
||||||
|
SFX Z Y 4
|
||||||
|
SFX Z 0 rs e
|
||||||
|
SFX Z y iers [^aeiou]y
|
||||||
|
SFX Z 0 ers [aeiou]y
|
||||||
|
SFX Z 0 ers [^ey]
|
||||||
|
|
||||||
|
SFX S Y 4
|
||||||
|
SFX S y ies [^aeiou]y
|
||||||
|
SFX S 0 s [aeiou]y
|
||||||
|
SFX S 0 es [sxzh]
|
||||||
|
SFX S 0 s [^sxzhy]
|
||||||
|
|
||||||
|
SFX P Y 3
|
||||||
|
SFX P y iness [^aeiou]y
|
||||||
|
SFX P 0 ness [aeiou]y
|
||||||
|
SFX P 0 ness [^y]
|
||||||
|
|
||||||
|
SFX M Y 1
|
||||||
|
SFX M 0 's .
|
||||||
|
|
||||||
|
SFX B Y 3
|
||||||
|
SFX B 0 able [^aeiou]
|
||||||
|
SFX B 0 able ee
|
||||||
|
SFX B e able [^aeiou]e
|
||||||
|
|
||||||
|
SFX L Y 1
|
||||||
|
SFX L 0 ment .
|
||||||
|
|
||||||
|
REP 90
|
||||||
|
REP a ei
|
||||||
|
REP ei a
|
||||||
|
REP a ey
|
||||||
|
REP ey a
|
||||||
|
REP ai ie
|
||||||
|
REP ie ai
|
||||||
|
REP alot a_lot
|
||||||
|
REP are air
|
||||||
|
REP are ear
|
||||||
|
REP are eir
|
||||||
|
REP air are
|
||||||
|
REP air ere
|
||||||
|
REP ere air
|
||||||
|
REP ere ear
|
||||||
|
REP ere eir
|
||||||
|
REP ear are
|
||||||
|
REP ear air
|
||||||
|
REP ear ere
|
||||||
|
REP eir are
|
||||||
|
REP eir ere
|
||||||
|
REP ch te
|
||||||
|
REP te ch
|
||||||
|
REP ch ti
|
||||||
|
REP ti ch
|
||||||
|
REP ch tu
|
||||||
|
REP tu ch
|
||||||
|
REP ch s
|
||||||
|
REP s ch
|
||||||
|
REP ch k
|
||||||
|
REP k ch
|
||||||
|
REP f ph
|
||||||
|
REP ph f
|
||||||
|
REP gh f
|
||||||
|
REP f gh
|
||||||
|
REP i igh
|
||||||
|
REP igh i
|
||||||
|
REP i uy
|
||||||
|
REP uy i
|
||||||
|
REP i ee
|
||||||
|
REP ee i
|
||||||
|
REP j di
|
||||||
|
REP di j
|
||||||
|
REP j gg
|
||||||
|
REP gg j
|
||||||
|
REP j ge
|
||||||
|
REP ge j
|
||||||
|
REP s ti
|
||||||
|
REP ti s
|
||||||
|
REP s ci
|
||||||
|
REP ci s
|
||||||
|
REP k cc
|
||||||
|
REP cc k
|
||||||
|
REP k qu
|
||||||
|
REP qu k
|
||||||
|
REP kw qu
|
||||||
|
REP o eau
|
||||||
|
REP eau o
|
||||||
|
REP o ew
|
||||||
|
REP ew o
|
||||||
|
REP oo ew
|
||||||
|
REP ew oo
|
||||||
|
REP ew ui
|
||||||
|
REP ui ew
|
||||||
|
REP oo ui
|
||||||
|
REP ui oo
|
||||||
|
REP ew u
|
||||||
|
REP u ew
|
||||||
|
REP oo u
|
||||||
|
REP u oo
|
||||||
|
REP u oe
|
||||||
|
REP oe u
|
||||||
|
REP u ieu
|
||||||
|
REP ieu u
|
||||||
|
REP ue ew
|
||||||
|
REP ew ue
|
||||||
|
REP uff ough
|
||||||
|
REP oo ieu
|
||||||
|
REP ieu oo
|
||||||
|
REP ier ear
|
||||||
|
REP ear ier
|
||||||
|
REP ear air
|
||||||
|
REP air ear
|
||||||
|
REP w qu
|
||||||
|
REP qu w
|
||||||
|
REP z ss
|
||||||
|
REP ss z
|
||||||
|
REP shun tion
|
||||||
|
REP shun sion
|
||||||
|
REP shun cion
|
||||||
|
REP size cise
|
||||||
49602
data/dictionaries/en_GB.dic
Normal file
@@ -1207,7 +1207,6 @@
|
|||||||
акулий/Ca
|
акулий/Ca
|
||||||
Акулина/IIIhIw
|
Акулина/IIIhIw
|
||||||
акуловый/CCCDCO
|
акуловый/CCCDCO
|
||||||
Акума
|
|
||||||
акупунктура/IIIhIw
|
акупунктура/IIIhIw
|
||||||
акупунктурный/CC
|
акупунктурный/CC
|
||||||
акустик/IIIiIhIk
|
акустик/IIIiIhIk
|
||||||
@@ -44010,7 +44009,6 @@
|
|||||||
землеописание/IIIw
|
землеописание/IIIw
|
||||||
землеотвод/IIIiIhIk
|
землеотвод/IIIiIhIk
|
||||||
землепашество/IIIw
|
землепашество/IIIw
|
||||||
землепад/IIIiIhIk
|
|
||||||
землепашец/IKIw
|
землепашец/IKIw
|
||||||
землепользование/IIIw
|
землепользование/IIIw
|
||||||
землепользователь/IIIi
|
землепользователь/IIIi
|
||||||
@@ -44059,7 +44057,6 @@
|
|||||||
земство/IIIw
|
земство/IIIw
|
||||||
земфонд/IIIiIhIk
|
земфонд/IIIiIhIk
|
||||||
земщина/IIIhIw
|
земщина/IIIhIw
|
||||||
Зендикар/IIIiIhIk
|
|
||||||
зензубель/IIIi
|
зензубель/IIIi
|
||||||
зенит/IIIiIhIk
|
зенит/IIIiIhIk
|
||||||
зенитка/IIIhIe
|
зенитка/IIIhIe
|
||||||
@@ -45141,7 +45138,6 @@
|
|||||||
иеромонах/IIIiIhIk
|
иеромонах/IIIiIhIk
|
||||||
иеромонашеский/CCZZ
|
иеромонашеский/CCZZ
|
||||||
иеромонашество/IH
|
иеромонашество/IH
|
||||||
иерофант
|
|
||||||
Иерусалим/IIIiIhIk
|
Иерусалим/IIIiIhIk
|
||||||
иерусалимский/CCZZ
|
иерусалимский/CCZZ
|
||||||
иждивенец/IKIw
|
иждивенец/IKIw
|
||||||
@@ -51492,7 +51488,6 @@
|
|||||||
каскадный/CCCDCO
|
каскадный/CCCDCO
|
||||||
каскетка/IIIhIe
|
каскетка/IIIhIe
|
||||||
каско
|
каско
|
||||||
касл/IIIiIhIk
|
|
||||||
касоги/IHIk
|
касоги/IHIk
|
||||||
касочка/IIIhIe
|
касочка/IIIhIe
|
||||||
каспиец/IKIw
|
каспиец/IKIw
|
||||||
@@ -52167,7 +52162,6 @@
|
|||||||
кержацкий/CCZZ
|
кержацкий/CCZZ
|
||||||
кержачка/IIIhIe
|
кержачка/IIIhIe
|
||||||
керженский/CCZZ
|
керженский/CCZZ
|
||||||
Керикс
|
|
||||||
кермес/IIIiIhIk
|
кермес/IIIiIhIk
|
||||||
керн/IIIiIhIk
|
керн/IIIiIhIk
|
||||||
кернер/IIIiIhIk
|
кернер/IIIiIhIk
|
||||||
@@ -56791,7 +56785,6 @@
|
|||||||
красноярский/CCZZ
|
красноярский/CCZZ
|
||||||
краснуха/IIIhIw
|
краснуха/IIIhIw
|
||||||
красный/CCCDCO
|
красный/CCCDCO
|
||||||
каргский/CCCDCO
|
|
||||||
красовавшийся/CCYY
|
красовавшийся/CCYY
|
||||||
красоваться/BbLLNn
|
красоваться/BbLLNn
|
||||||
красота/IIIhIw
|
красота/IIIhIw
|
||||||
@@ -62419,7 +62412,6 @@
|
|||||||
мамуня/IIIw
|
мамуня/IIIw
|
||||||
мамуся/IIIw
|
мамуся/IIIw
|
||||||
мамушка/IIIhIe
|
мамушка/IIIhIe
|
||||||
мана/IIIhIe
|
|
||||||
Манагуа
|
Манагуа
|
||||||
манатейный/CCCDCO
|
манатейный/CCCDCO
|
||||||
манатки/IHIe
|
манатки/IHIe
|
||||||
@@ -62543,7 +62535,6 @@
|
|||||||
манишка/IIIhIe
|
манишка/IIIhIe
|
||||||
мания/IIIw
|
мания/IIIw
|
||||||
манка/IIIhIe
|
манка/IIIhIe
|
||||||
мана/IIIhIe
|
|
||||||
манкировавший/CCYY
|
манкировавший/CCYY
|
||||||
манкирование/IIIw
|
манкирование/IIIw
|
||||||
манкированный/CCXX
|
манкированный/CCXX
|
||||||
@@ -73764,8 +73755,6 @@
|
|||||||
неароматный/CCCD
|
неароматный/CCCD
|
||||||
неартистичный/CCCD
|
неартистичный/CCCD
|
||||||
неархитектурный/CCCOCd
|
неархитектурный/CCCOCd
|
||||||
небаза/IIIhIwtktltn
|
|
||||||
Небазовый/CCCDCO
|
|
||||||
небалованный/CCXX
|
небалованный/CCXX
|
||||||
небанальный/CCCD
|
небанальный/CCCD
|
||||||
небедный/CCCD
|
небедный/CCCD
|
||||||
@@ -74795,7 +74784,6 @@
|
|||||||
незабвенный/CCCOCcCd
|
незабвенный/CCCOCcCd
|
||||||
незабинтованный/CCXX
|
незабинтованный/CCXX
|
||||||
незабудка/IIIhIe
|
незабудка/IIIhIe
|
||||||
незаблокированный/CCXX
|
|
||||||
незабываемый/CCCDCO
|
незабываемый/CCCDCO
|
||||||
незабытый/CCCD
|
незабытый/CCCD
|
||||||
незаведенный/CC
|
незаведенный/CC
|
||||||
@@ -172467,7 +172455,6 @@
|
|||||||
электроэнцефалография/IIIw
|
электроэнцефалография/IIIw
|
||||||
электроэрозионный/CC
|
электроэрозионный/CC
|
||||||
элемент/IIIiIhIk
|
элемент/IIIiIhIk
|
||||||
элементаль/IF
|
|
||||||
элементарнейший/CCZZ
|
элементарнейший/CCZZ
|
||||||
элементарность/IF
|
элементарность/IF
|
||||||
элементарный/CCCDCO
|
элементарный/CCCDCO
|
||||||
@@ -172534,7 +172521,6 @@
|
|||||||
эльбрусский/CCZZ
|
эльбрусский/CCZZ
|
||||||
Эльвира/IIIhIw
|
Эльвира/IIIhIw
|
||||||
эльдорадо
|
эльдорадо
|
||||||
Эльдрази
|
|
||||||
Эльза/IIIhIw
|
Эльза/IIIhIw
|
||||||
Эльзас/IIIiIhIk
|
Эльзас/IIIiIhIk
|
||||||
эльзасец/IKIw
|
эльзасец/IKIw
|
||||||
@@ -172590,7 +172576,6 @@
|
|||||||
эмбриональный/CCCDCO
|
эмбриональный/CCCDCO
|
||||||
эмбриотомия/IIIw
|
эмбриотомия/IIIw
|
||||||
эмерджентный/CC
|
эмерджентный/CC
|
||||||
Эмерия/IIIw
|
|
||||||
эмеритальный/CCCDCO
|
эмеритальный/CCCDCO
|
||||||
эмеритура/IIIhIw
|
эмеритура/IIIhIw
|
||||||
эмигрант/IIIiIhIk
|
эмигрант/IIIiIhIk
|
||||||
@@ -173988,11 +173973,3 @@
|
|||||||
ящур/IIIiIhIk
|
ящур/IIIiIhIk
|
||||||
ящурка/IIIhIe
|
ящурка/IIIhIe
|
||||||
ящурный/CCCDCO
|
ящурный/CCCDCO
|
||||||
+X/+X
|
|
||||||
X
|
|
||||||
Х
|
|
||||||
planeswalker
|
|
||||||
planeswalker’а
|
|
||||||
Нисса
|
|
||||||
Ревейн
|
|
||||||
Макинди
|
|
||||||
|
Before Width: | Height: | Size: 49 B |
@@ -1,2 +0,0 @@
|
|||||||
[.ShellClassInfo]
|
|
||||||
LocalizedResourceName=@magic-spoiler.mse-export-template,0
|
|
||||||
@@ -1,248 +0,0 @@
|
|||||||
# Simple exporter for HTML files
|
|
||||||
mse version: 2.0.0
|
|
||||||
game: magic
|
|
||||||
short name: Spoiler
|
|
||||||
full name: List of cards
|
|
||||||
installer group: magic/Export/Spoiler (list of cards)
|
|
||||||
icon: preview.png
|
|
||||||
create directory: true
|
|
||||||
version: 2014-06-19
|
|
||||||
depends on: magic.mse-game 2008-05-18
|
|
||||||
|
|
||||||
########################################################################################
|
|
||||||
|
|
||||||
option field:
|
|
||||||
type: boolean
|
|
||||||
name: include set file
|
|
||||||
description: Should a link to the MSE set file be included in the spoiler?
|
|
||||||
initial: no
|
|
||||||
option field:
|
|
||||||
type: choice
|
|
||||||
name: grouping
|
|
||||||
description: How should cards be grouped?
|
|
||||||
choice: no grouping
|
|
||||||
choice: group by color
|
|
||||||
initial: group by color
|
|
||||||
option field:
|
|
||||||
type: choice
|
|
||||||
name: images
|
|
||||||
choice: no
|
|
||||||
choice: just the image box, linked
|
|
||||||
choice: just the image box, inline
|
|
||||||
choice: full card image, linked
|
|
||||||
choice: full card image, preview
|
|
||||||
choice: full card image only
|
|
||||||
initial: full card image, preview
|
|
||||||
option field:
|
|
||||||
type: boolean
|
|
||||||
name: mana symbols
|
|
||||||
description: Should mana symbols be used, or should they be written as text?
|
|
||||||
option field:
|
|
||||||
type: boolean
|
|
||||||
name: rarity symbols
|
|
||||||
description: Should rarity be shown using a symbol or as text?
|
|
||||||
#doesn't work yet:
|
|
||||||
#option field:
|
|
||||||
# type: boolean
|
|
||||||
# name: list keywords
|
|
||||||
# description: Should the keywords be listed?
|
|
||||||
#option field:
|
|
||||||
# type: boolean
|
|
||||||
# name: fancy scripts
|
|
||||||
# description: Should fancy scripts be used
|
|
||||||
option field:
|
|
||||||
type: choice
|
|
||||||
name: font style
|
|
||||||
choice: default
|
|
||||||
choice: serif
|
|
||||||
choice: sans-serif
|
|
||||||
option field:
|
|
||||||
type: color
|
|
||||||
name: background color
|
|
||||||
initial: rgb(255,255,255)
|
|
||||||
choice:
|
|
||||||
name: white
|
|
||||||
color: rgb(255,255,255)
|
|
||||||
choice:
|
|
||||||
name: black
|
|
||||||
color: rgb(0,0,0)
|
|
||||||
option field:
|
|
||||||
type: color
|
|
||||||
name: text color
|
|
||||||
initial: rgb(0,0,0)
|
|
||||||
choice:
|
|
||||||
name: white
|
|
||||||
color: rgb(255,255,255)
|
|
||||||
choice:
|
|
||||||
name: black
|
|
||||||
color: rgb(0,0,0)
|
|
||||||
|
|
||||||
option style:
|
|
||||||
grouping:
|
|
||||||
render style: both
|
|
||||||
choice images:
|
|
||||||
no grouping: { built_in_image("bool_no") }
|
|
||||||
group by color: /magic.mse-game/stats/card_color.png
|
|
||||||
images:
|
|
||||||
render style: both
|
|
||||||
choice images:
|
|
||||||
no: { built_in_image("bool_no") }
|
|
||||||
font style:
|
|
||||||
render style: both
|
|
||||||
choice images:
|
|
||||||
serif: /magic-spoiler.mse-export-template/serif.png
|
|
||||||
sans-serif: /magic-spoiler.mse-export-template/sans-serif.png
|
|
||||||
|
|
||||||
script:
|
|
||||||
if options.mana_symbols then (
|
|
||||||
symbol_font := "magic-mana-small"
|
|
||||||
symbol_font_size := 12
|
|
||||||
) else (
|
|
||||||
symbols_to_html := to_html
|
|
||||||
)
|
|
||||||
write_card := {
|
|
||||||
if contains(options.images, match:"full card image") then
|
|
||||||
card_image_file := write_image_file(card, file:"card{position(of:card,in:set)}.jpg")
|
|
||||||
else if contains(options.images, match:"image box") and
|
|
||||||
card.image != "" then
|
|
||||||
card_image_file := write_image_file(card.image, file:"card{position(of:card,in:set)}.jpg")
|
|
||||||
else
|
|
||||||
card_image_file := ""
|
|
||||||
if options.images == "full card image, preview" then
|
|
||||||
card_image_preview := write_image_file(card, file:"card-preview{position(of:card,in:set)}.jpg", height: 100)
|
|
||||||
else
|
|
||||||
card_image_preview := card_image_file
|
|
||||||
if options.images == "full card image only" then
|
|
||||||
"<li class='fullcard'><img src='{card_image_file}' alt=''></li>"
|
|
||||||
else
|
|
||||||
"<li class='card'>
|
|
||||||
{if options.images == "full card image, preview" then
|
|
||||||
"<a href='{card_image_file}'><img src='{card_image_preview}' alt='' class='card-image'></a>
|
|
||||||
<span class='name' >{ to_html(card.name ) }</span>"
|
|
||||||
else if card_image_file != "" and contains(options.images, match:"linked") then
|
|
||||||
"<span class='name' ><a href='{card_image_file}'>{ to_html(card.name) }</a></span>"
|
|
||||||
else
|
|
||||||
"<span class='name' >{ to_html(card.name ) }</span>"
|
|
||||||
}<span class='casting-cost' >{ symbols_to_html(card.casting_cost ) }</span>
|
|
||||||
{if card_image_file != "" and contains(options.images, match:"inline") then
|
|
||||||
"<img src='{card_image_preview}' alt='' class='image'>"
|
|
||||||
}
|
|
||||||
<span class='type' >{ to_html(card.type ) }</span>
|
|
||||||
<span class='rarity' >{
|
|
||||||
code := if card.rarity == "" then "C"
|
|
||||||
else if card.rarity == "basic land" then "L"
|
|
||||||
else to_upper(card.rarity[0]) # L,C,U,R,S
|
|
||||||
if options.rarity_symbols then
|
|
||||||
"<img src='{ var := if card.rarity == "" then "common"
|
|
||||||
else if card.rarity == "basic land" then "common"
|
|
||||||
else card.rarity
|
|
||||||
write_image_file(
|
|
||||||
file: "set-symbol-{var}.png",
|
|
||||||
width: 20,
|
|
||||||
symbol_variation(
|
|
||||||
symbol: set.symbol,
|
|
||||||
variation: var
|
|
||||||
)
|
|
||||||
)}' alt='{code}' title='{card.rarity}'>"
|
|
||||||
else code
|
|
||||||
}</span>
|
|
||||||
<span class='rule-text' >{ to_html(card.rule_text ) }</span>
|
|
||||||
<span class='flavor-text' >{ to_html( remove_tag(tag: "<i-flavor>", card.flavor_text) ) }</span>
|
|
||||||
<span class='pt' >{ to_html(card.pt ) }</span>
|
|
||||||
<span class='card-number' >{ to_html(card.card_number ) }</span>
|
|
||||||
</li>"
|
|
||||||
}
|
|
||||||
kind_of_card := { if contains(card.shape, match:"token") then ""
|
|
||||||
else if contains(card.shape, match:"rulestip") then ""
|
|
||||||
else if contains(card.shape, match:"counter") then ""
|
|
||||||
else if contains(card.shape, match:"emblem") then ""
|
|
||||||
else if contains(card.shape, match:"split") then write_card()
|
|
||||||
else if contains(card.shape, match:"double faced") then write_card()
|
|
||||||
else if card.name_2 != "" then write_card()
|
|
||||||
else if card.loyalty != "" then write_card()
|
|
||||||
else if contains(card.shape, match:"leveler") then write_card()
|
|
||||||
else write_card()
|
|
||||||
}
|
|
||||||
write_cards := {
|
|
||||||
"<ul class='cards'>{
|
|
||||||
for each card in sort_list(cards, order_by: {input.card_number}) do
|
|
||||||
kind_of_card()
|
|
||||||
}</ul>"
|
|
||||||
}
|
|
||||||
write_group := {
|
|
||||||
cards := filter_list(cards, filter:
|
|
||||||
{ # The first character of the color_of_card code must be equal to 'code'
|
|
||||||
substring(color_of_card(card:input), begin:0, end:1) == code
|
|
||||||
}
|
|
||||||
)
|
|
||||||
count := number_of_items(in:cards)
|
|
||||||
if count > 0 then
|
|
||||||
"<h2>{title} ({count} {if count == 1 then "card" else "cards"})</h2>" +
|
|
||||||
write_cards()
|
|
||||||
}
|
|
||||||
copy_file("blank.gif")
|
|
||||||
write_image_file(
|
|
||||||
file: "set-symbol.png",
|
|
||||||
width: 200,
|
|
||||||
symbol_variation(symbol: set.symbol, variation: "rare")
|
|
||||||
)
|
|
||||||
write_image_file(
|
|
||||||
file: "set-icon.png",
|
|
||||||
width: 16,
|
|
||||||
heght: 16
|
|
||||||
symbol_variation(symbol: set.symbol, variation: "rare")
|
|
||||||
)
|
|
||||||
# the html page
|
|
||||||
html := "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">
|
|
||||||
<html lang='en'>
|
|
||||||
<head>
|
|
||||||
<title>{ to_html(set.title) }</title>
|
|
||||||
<link rel='stylesheet' type='text/css' href='{copy_file("style.css")}'>
|
|
||||||
<link rel='shortcut icon' type='image/png' href='set-icon.png'>
|
|
||||||
<script type='text/javascript' src='{copy_file("script.js")}'></script>
|
|
||||||
<style type='text/css'>
|
|
||||||
body \{
|
|
||||||
background: {options.background_color};
|
|
||||||
color: {options.text_color};
|
|
||||||
{if options.font_style != "default" then
|
|
||||||
"font-family: {options.font_style};"
|
|
||||||
}
|
|
||||||
\}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body{if options.images == "full card image, preview" then " class='with-previews'"}>
|
|
||||||
<img src='{ write_image_file(
|
|
||||||
file: "set-symbol.png",
|
|
||||||
width: 200,
|
|
||||||
symbol_variation(symbol: set.symbol, variation: "rare")
|
|
||||||
)}' alt='' class='set-symbol'>
|
|
||||||
<h1>{ to_html(set.title) }</h1>
|
|
||||||
<div class='copyright'>{ to_html(set.copyright) }</div>
|
|
||||||
<div class='description'>{ to_html(set.description) }</div>
|
|
||||||
{ if options.include_set_file then
|
|
||||||
"<div class='set-file'><a href='{ write_set_file(file:"set.mse-set") }'>Download set in MSE format</a></div>"
|
|
||||||
}
|
|
||||||
{ if options.grouping == "group by color" then
|
|
||||||
# Codes as by sort_index
|
|
||||||
write_group(title: "Colorless" code:"A") +
|
|
||||||
write_group(title: "White", code:"B") +
|
|
||||||
write_group(title: "Blue", code:"C") +
|
|
||||||
write_group(title: "Black", code:"D") +
|
|
||||||
write_group(title: "Red", code:"E") +
|
|
||||||
write_group(title: "Green", code:"F") +
|
|
||||||
write_group(title: "Multicolor", code:"G") +
|
|
||||||
write_group(title: "Hybrids", code:"H") +
|
|
||||||
write_group(title: "Multicolor split cards", code:"I") +
|
|
||||||
write_group(title: "Colorless", code:"K") +
|
|
||||||
write_group(title: "Non-basic lands", code:"L") +
|
|
||||||
write_group(title: "Basic lands", code:"")
|
|
||||||
else write_cards(cards: cards)
|
|
||||||
}
|
|
||||||
<script><!--
|
|
||||||
init();
|
|
||||||
--></script>
|
|
||||||
</body>
|
|
||||||
</html>"
|
|
||||||
write_text_file(html, file:"index.html")
|
|
||||||
# make sure the urls are relative to the right directory
|
|
||||||
replace(html, match:"<[^<>]*(href|src)='", replace:"&{directory}/")
|
|
||||||
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 203 B |
@@ -1,74 +0,0 @@
|
|||||||
var isIE = navigator.appVersion.indexOf("MSIE") != -1;
|
|
||||||
|
|
||||||
var preview, preview_img;
|
|
||||||
|
|
||||||
function show_preview(url) {
|
|
||||||
preview.style.display = "block";
|
|
||||||
preview_img.style.backgroundImage = "url("+this.href+")";
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function hide_preview() {
|
|
||||||
preview.style.display = "none";
|
|
||||||
}
|
|
||||||
|
|
||||||
function fix_preview() {
|
|
||||||
var e = document.documentElement ? document.documentElement : document.body;
|
|
||||||
preview.style.top = e.scrollTop + "px";
|
|
||||||
preview.style.height = e.clientHeight;
|
|
||||||
preview.style.width = e.clientWidth;
|
|
||||||
}
|
|
||||||
|
|
||||||
function nice_preview() {
|
|
||||||
// attach
|
|
||||||
var links = document.getElementsByTagName("A");
|
|
||||||
for (var i in links) {
|
|
||||||
if (/(.jpg|.png|.gif)$/.test(links[i])) {
|
|
||||||
links[i].onclick = show_preview;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// create divs
|
|
||||||
preview = document.createElement("div");
|
|
||||||
var bg = document.createElement("div");
|
|
||||||
var img = document.createElement("div");
|
|
||||||
preview.id = "preview";
|
|
||||||
bg.id = "preview-bg";
|
|
||||||
img.id = "preview-img";
|
|
||||||
hide_preview();
|
|
||||||
preview.onclick = bg.onclick = img.onclick = hide_preview;
|
|
||||||
preview.appendChild(bg);
|
|
||||||
preview.appendChild(img);
|
|
||||||
document.body.appendChild(preview);
|
|
||||||
preview_img = img;
|
|
||||||
if (isIE) {
|
|
||||||
window.onscroll = fix_preview;
|
|
||||||
fix_preview();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var dir;
|
|
||||||
function fix_img() {
|
|
||||||
if (this.currentStyle.width == 'auto' && this.currentStyle.height == 'auto') {
|
|
||||||
this.style.width = this.offsetWidth + 'px';
|
|
||||||
this.style.height = this.offsetHeight + 'px';
|
|
||||||
}
|
|
||||||
this.onload = null;
|
|
||||||
this.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+this.src+'",sizingMethod="scale")';
|
|
||||||
this.src = dir + "blank.gif";
|
|
||||||
}
|
|
||||||
function fix_png_alpha() {
|
|
||||||
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent)) return; // only in ie 5.5 and 6
|
|
||||||
dir = document.getElementsByTagName("SCRIPT")[0].src.replace(/[^\/]*$/,''); // dir for blank image
|
|
||||||
var imgs = document.getElementsByTagName("IMG");
|
|
||||||
for (var i in imgs) {
|
|
||||||
var img = imgs[i];
|
|
||||||
if ((/\.png$/i).test(img.src)) {
|
|
||||||
img.onload = fix_img;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function init() {
|
|
||||||
fix_png_alpha();
|
|
||||||
nice_preview();
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 265 B |
@@ -1,102 +0,0 @@
|
|||||||
.set-symbol {
|
|
||||||
float: right;
|
|
||||||
margin-right: .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.card {
|
|
||||||
clear: left;
|
|
||||||
margin-top: 1em;
|
|
||||||
border: 1px solid rgb(192,192,192);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card span {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card .name {
|
|
||||||
font-weight: bold;
|
|
||||||
display: inline;
|
|
||||||
font-family: "Matrix";
|
|
||||||
font-size: larger;
|
|
||||||
}
|
|
||||||
.card .casting-cost {
|
|
||||||
display: inline;
|
|
||||||
font-family: "Magic Symbols", "Magic Symbols 2004";
|
|
||||||
font-size: larger;
|
|
||||||
margin-left: .5em;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card .flavor-text {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.card .card-number {
|
|
||||||
color: rgb(128,128,128);
|
|
||||||
font-size: smaller;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.with-previews .card {
|
|
||||||
margin-top: 1.1em;
|
|
||||||
min-height: 100px;
|
|
||||||
margin-left: 90px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.card .card-image {
|
|
||||||
height: 100px;
|
|
||||||
position: absolute;
|
|
||||||
left: -85px;
|
|
||||||
top: 3px;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
.card .image {
|
|
||||||
display: block;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.symbol {
|
|
||||||
display: inline;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fullcard {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
h2 {
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* image preview */
|
|
||||||
#preview-bg {
|
|
||||||
background-color: rgb(0,0,0);
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
opacity: 0.7;
|
|
||||||
-moz-opacity: 0.7;
|
|
||||||
filter: alpha(opacity=70);
|
|
||||||
}
|
|
||||||
#preview-img {
|
|
||||||
background-position: 50% 50%;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
#preview {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
* html #preview {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 49 B |
@@ -1,211 +0,0 @@
|
|||||||
# Simple exporter for HTML files
|
|
||||||
mse version: 2.0.0
|
|
||||||
game: planechase
|
|
||||||
short name: Spoiler
|
|
||||||
full name: List of cards
|
|
||||||
installer group: Magic Planechase/Export/Spoiler (list of cards)
|
|
||||||
icon: preview.png
|
|
||||||
create directory: true
|
|
||||||
version: 2014-01-21
|
|
||||||
depends on: planechase.mse-game 2014-01-21
|
|
||||||
|
|
||||||
########################################################################################
|
|
||||||
|
|
||||||
option field:
|
|
||||||
type: boolean
|
|
||||||
name: include set file
|
|
||||||
description: Should a link to the MSE set file be included in the spoiler?
|
|
||||||
initial: no
|
|
||||||
option field:
|
|
||||||
type: choice
|
|
||||||
name: images
|
|
||||||
choice: no
|
|
||||||
choice: just the image box, linked
|
|
||||||
choice: just the image box, inline
|
|
||||||
choice: full card image, linked
|
|
||||||
choice: full card image, preview
|
|
||||||
choice: full card image only
|
|
||||||
initial: full card image, preview
|
|
||||||
option field:
|
|
||||||
type: boolean
|
|
||||||
name: mana symbols
|
|
||||||
description: Should mana symbols be used, or should they be written as text?
|
|
||||||
option field:
|
|
||||||
type: boolean
|
|
||||||
name: rarity symbols
|
|
||||||
description: Should rarity be shown using a symbol or as text?
|
|
||||||
#doesn't work yet:
|
|
||||||
#option field:
|
|
||||||
# type: boolean
|
|
||||||
# name: list keywords
|
|
||||||
# description: Should the keywords be listed?
|
|
||||||
#option field:
|
|
||||||
# type: boolean
|
|
||||||
# name: fancy scripts
|
|
||||||
# description: Should fancy scripts be used
|
|
||||||
option field:
|
|
||||||
type: choice
|
|
||||||
name: font style
|
|
||||||
choice: default
|
|
||||||
choice: serif
|
|
||||||
choice: sans-serif
|
|
||||||
option field:
|
|
||||||
type: color
|
|
||||||
name: background color
|
|
||||||
initial: rgb(255,255,255)
|
|
||||||
choice:
|
|
||||||
name: white
|
|
||||||
color: rgb(255,255,255)
|
|
||||||
choice:
|
|
||||||
name: black
|
|
||||||
color: rgb(0,0,0)
|
|
||||||
option field:
|
|
||||||
type: color
|
|
||||||
name: text color
|
|
||||||
initial: rgb(0,0,0)
|
|
||||||
choice:
|
|
||||||
name: white
|
|
||||||
color: rgb(255,255,255)
|
|
||||||
choice:
|
|
||||||
name: black
|
|
||||||
color: rgb(0,0,0)
|
|
||||||
|
|
||||||
option style:
|
|
||||||
images:
|
|
||||||
render style: both
|
|
||||||
choice images:
|
|
||||||
no: { built_in_image("bool_no") }
|
|
||||||
font style:
|
|
||||||
render style: both
|
|
||||||
choice images:
|
|
||||||
serif: /planechase-spoiler.mse-export-template/serif.png
|
|
||||||
sans-serif: /planechase-spoiler.mse-export-template/sans-serif.png
|
|
||||||
|
|
||||||
script:
|
|
||||||
if options.mana_symbols then (
|
|
||||||
symbol_font := "magic-mana-small"
|
|
||||||
symbol_font_size := 12
|
|
||||||
) else (
|
|
||||||
symbols_to_html := to_html
|
|
||||||
)
|
|
||||||
write_card := {
|
|
||||||
if contains(options.images, match:"full card image") then
|
|
||||||
card_image_file := write_image_file(card, file:"card{position(of:card,in:set)}.jpg")
|
|
||||||
else if contains(options.images, match:"image box") and
|
|
||||||
card.image != "" then
|
|
||||||
card_image_file := write_image_file(card.image, file:"card{position(of:card,in:set)}.jpg")
|
|
||||||
else
|
|
||||||
card_image_file := ""
|
|
||||||
if options.images == "full card image, preview" then
|
|
||||||
card_image_preview := write_image_file(card, file:"card-preview{position(of:card,in:set)}.jpg", height: 100)
|
|
||||||
else
|
|
||||||
card_image_preview := card_image_file
|
|
||||||
if options.images == "full card image only" then
|
|
||||||
"<li class='fullcard'><img src='{card_image_file}' alt=''></li>"
|
|
||||||
else
|
|
||||||
"<li class='card'>
|
|
||||||
{if options.images == "full card image, preview" then
|
|
||||||
"<a href='{card_image_file}'><img src='{card_image_preview}' alt='' class='card-image'></a>
|
|
||||||
<span class='name' >{ to_html(card.name ) }</span>"
|
|
||||||
else if card_image_file != "" and contains(options.images, match:"linked") then
|
|
||||||
"<span class='name' ><a href='{card_image_file}'>{ to_html(card.name) }</a></span>"
|
|
||||||
else
|
|
||||||
"<span class='name' >{ to_html(card.name ) }</span>"
|
|
||||||
}
|
|
||||||
{if card_image_file != "" and contains(options.images, match:"inline") then
|
|
||||||
"<img src='{card_image_preview}' alt='' class='image'>"
|
|
||||||
}
|
|
||||||
<span class='type' >{ to_html(card.type ) }</span>
|
|
||||||
<span class='rarity' >{
|
|
||||||
code := if card.rarity == "" then "C"
|
|
||||||
else if card.rarity == "basic land" then "L"
|
|
||||||
else to_upper(card.rarity[0]) # L,C,U,R,S
|
|
||||||
if options.rarity_symbols then
|
|
||||||
"<img src='{ var := if card.rarity == "" then "common"
|
|
||||||
else if card.rarity == "basic land" then "common"
|
|
||||||
else card.rarity
|
|
||||||
write_image_file(
|
|
||||||
file: "set-symbol-{var}.png",
|
|
||||||
width: 20,
|
|
||||||
symbol_variation(
|
|
||||||
symbol: set.symbol,
|
|
||||||
variation: var
|
|
||||||
)
|
|
||||||
)}' alt='{code}' title='{card.rarity}'>"
|
|
||||||
else code
|
|
||||||
}</span>
|
|
||||||
<span class='rule-text' >{ to_html(card.rule_text ) }</span>
|
|
||||||
<span class='flavor-text' >{ to_html( remove_tag(tag: "<i-flavor>", card.flavor_text) ) }</span>
|
|
||||||
<span class='card-number' >{ to_html(card.card_number ) }</span>
|
|
||||||
</li>"
|
|
||||||
}
|
|
||||||
write_cards := {
|
|
||||||
"<ul class='cards'>{
|
|
||||||
for each card in sort_list(cards, order_by: {input.card_number}) do
|
|
||||||
write_card()
|
|
||||||
}</ul>"
|
|
||||||
}
|
|
||||||
write_group := {
|
|
||||||
cards := filter_list(cards, filter:
|
|
||||||
{ # The first character of the color_of_card code must be equal to 'code'
|
|
||||||
substring(color_of_card(card:input), begin:0, end:1) == code
|
|
||||||
}
|
|
||||||
)
|
|
||||||
count := number_of_items(in:cards)
|
|
||||||
if count > 0 then
|
|
||||||
"<h2>{title} ({count} {if count == 1 then "card" else "cards"})</h2>" +
|
|
||||||
write_cards()
|
|
||||||
}
|
|
||||||
copy_file("blank.gif")
|
|
||||||
write_image_file(
|
|
||||||
file: "set-symbol.png",
|
|
||||||
width: 200,
|
|
||||||
symbol_variation(symbol: set.symbol, variation: "rare")
|
|
||||||
)
|
|
||||||
write_image_file(
|
|
||||||
file: "set-icon.png",
|
|
||||||
width: 16,
|
|
||||||
heght: 16
|
|
||||||
symbol_variation(symbol: set.symbol, variation: "rare")
|
|
||||||
)
|
|
||||||
# the html page
|
|
||||||
html := "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">
|
|
||||||
<html lang='en'>
|
|
||||||
<head>
|
|
||||||
<title>{ to_html(set.title) }</title>
|
|
||||||
<link rel='stylesheet' type='text/css' href='{copy_file("style.css")}'>
|
|
||||||
<link rel='shortcut icon' type='image/png' href='set-icon.png'>
|
|
||||||
<script type='text/javascript' src='{copy_file("script.js")}'></script>
|
|
||||||
<style type='text/css'>
|
|
||||||
body \{
|
|
||||||
background: {options.background_color};
|
|
||||||
color: {options.text_color};
|
|
||||||
{if options.font_style != "default" then
|
|
||||||
"font-family: {options.font_style};"
|
|
||||||
}
|
|
||||||
\}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body{if options.images == "full card image, preview" then " class='with-previews'"}>
|
|
||||||
<img src='{ write_image_file(
|
|
||||||
file: "set-symbol.png",
|
|
||||||
width: 200,
|
|
||||||
symbol_variation(symbol: set.symbol, variation: "rare")
|
|
||||||
)}' alt='' class='set-symbol'>
|
|
||||||
<h1>{ to_html(set.title) }</h1>
|
|
||||||
<div class='copyright'>{ to_html(set.copyright) }</div>
|
|
||||||
<div class='description'>{ to_html(set.description) }</div>
|
|
||||||
{ if options.include_set_file then
|
|
||||||
"<div class='set-file'><a href='{ write_set_file(file:"set.mse-set") }'>Download set in MSE format</a></div>"
|
|
||||||
}
|
|
||||||
{
|
|
||||||
write_cards(cards: cards)
|
|
||||||
}
|
|
||||||
<script><!--
|
|
||||||
init();
|
|
||||||
--></script>
|
|
||||||
</body>
|
|
||||||
</html>"
|
|
||||||
write_text_file(html, file:"index.html")
|
|
||||||
# make sure the urls are relative to the right directory
|
|
||||||
replace(html, match:"<[^<>]*(href|src)='", replace:"&{directory}/")
|
|
||||||
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 203 B |
@@ -1,74 +0,0 @@
|
|||||||
var isIE = navigator.appVersion.indexOf("MSIE") != -1;
|
|
||||||
|
|
||||||
var preview, preview_img;
|
|
||||||
|
|
||||||
function show_preview(url) {
|
|
||||||
preview.style.display = "block";
|
|
||||||
preview_img.style.backgroundImage = "url("+this.href+")";
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function hide_preview() {
|
|
||||||
preview.style.display = "none";
|
|
||||||
}
|
|
||||||
|
|
||||||
function fix_preview() {
|
|
||||||
var e = document.documentElement ? document.documentElement : document.body;
|
|
||||||
preview.style.top = e.scrollTop + "px";
|
|
||||||
preview.style.height = e.clientHeight;
|
|
||||||
preview.style.width = e.clientWidth;
|
|
||||||
}
|
|
||||||
|
|
||||||
function nice_preview() {
|
|
||||||
// attach
|
|
||||||
var links = document.getElementsByTagName("A");
|
|
||||||
for (var i in links) {
|
|
||||||
if (/(.jpg|.png|.gif)$/.test(links[i])) {
|
|
||||||
links[i].onclick = show_preview;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// create divs
|
|
||||||
preview = document.createElement("div");
|
|
||||||
var bg = document.createElement("div");
|
|
||||||
var img = document.createElement("div");
|
|
||||||
preview.id = "preview";
|
|
||||||
bg.id = "preview-bg";
|
|
||||||
img.id = "preview-img";
|
|
||||||
hide_preview();
|
|
||||||
preview.onclick = bg.onclick = img.onclick = hide_preview;
|
|
||||||
preview.appendChild(bg);
|
|
||||||
preview.appendChild(img);
|
|
||||||
document.body.appendChild(preview);
|
|
||||||
preview_img = img;
|
|
||||||
if (isIE) {
|
|
||||||
window.onscroll = fix_preview;
|
|
||||||
fix_preview();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var dir;
|
|
||||||
function fix_img() {
|
|
||||||
if (this.currentStyle.width == 'auto' && this.currentStyle.height == 'auto') {
|
|
||||||
this.style.width = this.offsetWidth + 'px';
|
|
||||||
this.style.height = this.offsetHeight + 'px';
|
|
||||||
}
|
|
||||||
this.onload = null;
|
|
||||||
this.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+this.src+'",sizingMethod="scale")';
|
|
||||||
this.src = dir + "blank.gif";
|
|
||||||
}
|
|
||||||
function fix_png_alpha() {
|
|
||||||
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent)) return; // only in ie 5.5 and 6
|
|
||||||
dir = document.getElementsByTagName("SCRIPT")[0].src.replace(/[^\/]*$/,''); // dir for blank image
|
|
||||||
var imgs = document.getElementsByTagName("IMG");
|
|
||||||
for (var i in imgs) {
|
|
||||||
var img = imgs[i];
|
|
||||||
if ((/\.png$/i).test(img.src)) {
|
|
||||||
img.onload = fix_img;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function init() {
|
|
||||||
fix_png_alpha();
|
|
||||||
nice_preview();
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 265 B |
@@ -1,102 +0,0 @@
|
|||||||
.set-symbol {
|
|
||||||
float: right;
|
|
||||||
margin-right: .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.card {
|
|
||||||
clear: left;
|
|
||||||
margin-top: 1em;
|
|
||||||
border: 1px solid rgb(192,192,192);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card span {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card .name {
|
|
||||||
font-weight: bold;
|
|
||||||
display: inline;
|
|
||||||
font-family: "Matrix";
|
|
||||||
font-size: larger;
|
|
||||||
}
|
|
||||||
.card .casting-cost {
|
|
||||||
display: inline;
|
|
||||||
font-family: "Magic Symbols", "Magic Symbols 2004";
|
|
||||||
font-size: larger;
|
|
||||||
margin-left: .5em;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card .flavor-text {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.card .card-number {
|
|
||||||
color: rgb(128,128,128);
|
|
||||||
font-size: smaller;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.with-previews .card {
|
|
||||||
margin-top: 1.1em;
|
|
||||||
min-height: 100px;
|
|
||||||
margin-left: 150px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.card .card-image {
|
|
||||||
height: 100px;
|
|
||||||
position: absolute;
|
|
||||||
left: -150px;
|
|
||||||
top: 3px;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
.card .image {
|
|
||||||
display: block;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.symbol {
|
|
||||||
display: inline;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fullcard {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
h2 {
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* image preview */
|
|
||||||
#preview-bg {
|
|
||||||
background-color: rgb(0,0,0);
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
opacity: 0.7;
|
|
||||||
-moz-opacity: 0.7;
|
|
||||||
filter: alpha(opacity=70);
|
|
||||||
}
|
|
||||||
#preview-img {
|
|
||||||
background-position: 50% 50%;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
#preview {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
* html #preview {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||