Releases: tabularelf/lexicon
Releases · tabularelf/lexicon
Lexicon v3.0.7
Fixed
- Issue where
lexicon_index_declare_from_csv
didn't store cell/string delimiters for loading later.
Lexicon v3.0.6
This release has been a long time coming, I hope it was worth the wait! 🙏
Added
lexicon_language_get_index()
, which returns the current index within the language array.lexicon_dynamic_define(name, callback, [updateCache=true])
, which updates any text passed tolexicon_text
andlexicon_text_array
calls, replacing them with the return of the callback.- Ability to refer to entries within entries, along with recursion detection.
Changed
- Reworked all of the macros to now be
__MACRO_NAME
instead ofMACRO_NAME
(To privatise these) - Changed a couple default settings (struct accessors are now
{foo}
instead of%foo%
) - Any updates/fixes made from the last few v2.1.x versions
- Neaten up
lexicon_settings
comments - Any string can be processed via
lexicon_text
andlexicon_text_array
. (lexicon_text("Hello {0}!", "Bob")
will be processed and actually return the processed string.)
Deprecated
- Legacy accessor
%s
lexicon_text_struct
. Superseeded bylexicon_text
andlexicon_text_array
.
Removed
- Removed a bunch of old settings that were no longer needed.
Lexicon v3.0.5
Added:
- Ability to refer to entries within entries
- Recursion detection for entries referred within entries.
Lexicon v3.0.3
Added:
lexicon_language_get_index()
Lexicon v3.0.2
Fixed
Full Changelog: v3.0.0...v3.0.2
Lexicon v3.0.1 Alpha
Lexicon v3.0.0 Alpha
New
- Added in callback functions into
lexicon_text
(A few are reserved and more may be reserverd for localisation purposes, these are currently unavailable) - Can define dynamic callback functions such as
{DateTime}
,{Date}
,{Time}
aslexicon_dynamic_define(name, function, [updateCache])
- Added in new database (currently disabled as it's nowhere near finalized)
- Added in support for template strings. (Similar to 2022.11, passing in a value after the text entry will replace
{num}
tovalue
)
Changed
- Reworked all of the macros to now be
__MACRO_NAME
instead ofMACRO_NAME
(To privatise these) - Changed a couple default settings (struct accessors are now
{foo}
instead of%foo%
) - Any updates/fixes made from the last few v2.1.x versions
- Neaten up
lexicon_settings
comments
Deprecated
lexicon_text_struct
is now apart oflexicon_text
, and is therefore no longer needed.- Legacy accessor (
%s
) is no longer needed. (A compatibility option has been added in)
Removed
- Removed a bunch of old settings that were no longer needed.
Known bugs
- Having a misplaced
{
or}
may cause Lexicon to fail parsing and crash.
Full Changelog: v2.1.6...v3.0.0
Lexicon v3.0.4
Fixed
- Bug where struct keys would just fill in place of the string contents.
Lexicon v2.1.7
Lexicon v2.1.6
Changed
- Definitions can now load alongside other definition files
Fixed
- Fixed a bug where empty text entries were being added into Lexicon