diff --git a/configure.ac b/configure.ac index cac54f58..b008833a 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ # 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]) # TODO: Actually use the config header AC_CONFIG_HEADER([src/config.h]) diff --git a/data/magic.mse-game/game b/data/magic.mse-game/game index f2768588..006f12c3 100644 --- a/data/magic.mse-game/game +++ b/data/magic.mse-game/game @@ -1,4 +1,4 @@ -mse version: 0.3.3 +mse version: 0.3.3 short name: Magic full name: Magic the Gathering icon: card-back.png @@ -307,9 +307,13 @@ init script: # the flavor text filter # - makes all text italic 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: "") + - # step 2 : surround by tags + # step 3 : surround by tags { "" + input + "" } + # curly quotes curly_quotes diff --git a/src/data/export_template.hpp b/src/data/export_template.hpp index 21445007..8dcca443 100644 --- a/src/data/export_template.hpp +++ b/src/data/export_template.hpp @@ -43,12 +43,12 @@ class ExportTemplate : public Packaged { /// Information that can be used by export functions struct ExportInfo { - SetP set; ///< The set that is being exported - ExportTemplateP export_template; ///< The export template used - String directory_relative; ///< The directory for storing extra files (or "" if !export->create_directory) - /// This is just the directory name - String directory_absolute; ///< The absolute path of the directory - set exported_images; ///< Images (from symbol font) already exported + SetP set; ///< The set that is being exported + ExportTemplateP export_template; ///< The export template used + String directory_relative; ///< The directory for storing extra files (or "" if !export->create_directory) + /// This is just the directory name + String directory_absolute; ///< The absolute path of the directory + std::set exported_images; ///< Images (from symbol font) already exported }; DECLARE_DYNAMIC_ARG(ExportInfo*, export_info); diff --git a/src/gui/html_export_window.cpp b/src/gui/html_export_window.cpp index a48795f5..288caba9 100644 --- a/src/gui/html_export_window.cpp +++ b/src/gui/html_export_window.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include diff --git a/src/script/functions/basic.cpp b/src/script/functions/basic.cpp index fcd14667..bab35f8b 100644 --- a/src/script/functions/basic.cpp +++ b/src/script/functions/basic.cpp @@ -1,3 +1,4 @@ + //+----------------------------------------------------------------------------+ //| Description: Magic Set Editor - Program to make Magic (tm) cards | //| Copyright: (C) 2001 - 2007 Twan van Laarhoven | @@ -106,7 +107,8 @@ SCRIPT_FUNCTION(curly_quotes) { } else if (c == _('>')) { in_tag = false; } 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);