Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
cb9ea8ca
Commit
cb9ea8ca
authored
Jun 29, 2007
by
coppro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "AE" filter to flavor text. Allowed nesting of curly quotes.
Also compatibility update.
parent
c7b04920
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
11 deletions
+18
-11
configure.ac
configure.ac
+1
-1
data/magic.mse-game/game
data/magic.mse-game/game
+7
-3
src/data/export_template.hpp
src/data/export_template.hpp
+6
-6
src/gui/html_export_window.cpp
src/gui/html_export_window.cpp
+1
-0
src/script/functions/basic.cpp
src/script/functions/basic.cpp
+3
-1
No files found.
configure.ac
View file @
cb9ea8ca
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# Process this file with autoconf to produce a configure script.
# Process this file with autoconf to produce a configure script.
AC_INIT(magicseteditor, 0.3.
3
, twanvl@users.sourceforge.net)
AC_INIT(magicseteditor, 0.3.
4
, twanvl@users.sourceforge.net)
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_SRCDIR([src/main.cpp])
# TODO: Actually use the config header
# TODO: Actually use the config header
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_HEADER([src/config.h])
...
...
data/magic.mse-game/game
View file @
cb9ea8ca
mse version: 0.3.3
mse version: 0.3.3
short name: Magic
short name: Magic
full name: Magic the Gathering
full name: Magic the Gathering
icon: card-back.png
icon: card-back.png
...
@@ -307,9 +307,13 @@ init script:
...
@@ -307,9 +307,13 @@ init script:
# the flavor text filter
# the flavor text filter
# - makes all text italic
# - makes all text italic
flavor_text_filter :=
flavor_text_filter :=
# step 1 : remove italic tags
# step 1 : Æ replacement rule
replace_rule(
match: "AE",
replace: "Æ") +
# step 2 : remove italic tags
tag_remove_rule(tag: "<i-flavor>") +
tag_remove_rule(tag: "<i-flavor>") +
# step
2
: surround by <i> tags
# step
3
: surround by <i> tags
{ "<i-flavor>" + input + "</i-flavor>" } +
{ "<i-flavor>" + input + "</i-flavor>" } +
# curly quotes
# curly quotes
curly_quotes
curly_quotes
...
...
src/data/export_template.hpp
View file @
cb9ea8ca
...
@@ -43,12 +43,12 @@ class ExportTemplate : public Packaged {
...
@@ -43,12 +43,12 @@ class ExportTemplate : public Packaged {
/// Information that can be used by export functions
/// Information that can be used by export functions
struct
ExportInfo
{
struct
ExportInfo
{
SetP
set
;
///< The set that is being exported
SetP
set
;
///< The set that is being exported
ExportTemplateP
export_template
;
///< The export template used
ExportTemplateP
export_template
;
///< The export template used
String
directory_relative
;
///< The directory for storing extra files (or "" if !export->create_directory)
String
directory_relative
;
///< The directory for storing extra files (or "" if !export->create_directory)
/// This is just the directory name
/// This is just the directory name
String
directory_absolute
;
///< The absolute path of the directory
String
directory_absolute
;
///< The absolute path of the directory
set
<
String
>
exported_images
;
///< Images (from symbol font) already exported
s
td
::
s
et
<
String
>
exported_images
;
///< Images (from symbol font) already exported
};
};
DECLARE_DYNAMIC_ARG
(
ExportInfo
*
,
export_info
);
DECLARE_DYNAMIC_ARG
(
ExportInfo
*
,
export_info
);
...
...
src/gui/html_export_window.cpp
View file @
cb9ea8ca
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include <data/export_template.hpp>
#include <data/export_template.hpp>
#include <util/window_id.hpp>
#include <util/window_id.hpp>
#include <util/error.hpp>
#include <util/error.hpp>
#include <util/platform.hpp>
#include <wx/filename.h>
#include <wx/filename.h>
#include <wx/wfstream.h>
#include <wx/wfstream.h>
...
...
src/script/functions/basic.cpp
View file @
cb9ea8ca
//+----------------------------------------------------------------------------+
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2007 Twan van Laarhoven |
//| Copyright: (C) 2001 - 2007 Twan van Laarhoven |
...
@@ -106,7 +107,8 @@ SCRIPT_FUNCTION(curly_quotes) {
...
@@ -106,7 +107,8 @@ SCRIPT_FUNCTION(curly_quotes) {
}
else
if
(
c
==
_
(
'>'
))
{
}
else
if
(
c
==
_
(
'>'
))
{
in_tag
=
false
;
in_tag
=
false
;
}
else
if
(
!
in_tag
)
{
}
else
if
(
!
in_tag
)
{
open
=
isSpace
(
c
);
// Also allow double-nesting of quotes
open
=
isSpace
(
c
)
||
c
==
LEFT_DOUBLE_QUOTE
||
c
==
LEFT_SINGLE_QUOTE
;
}
}
}
}
SCRIPT_RETURN
(
input
);
SCRIPT_RETURN
(
input
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment