You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
8
8
9
9
### Added
10
10
11
+
- Marker processors can now process implicit `[character/]` markers.
12
+
- Yarn Spinner automatically adds `[character]` markers to lines that begin with a character name. For example, `Mae: Hello!` gets implicitly rewritten to `[character name="Mae"]Mae: [/character]Hello!`. This allows games to know what character is speaking, as well as being able to trim off the character name.
13
+
- With this update, marker processors are able to register to handle this implicit marker, allowing games to customise the way that the name is handled.
14
+
11
15
### Changed
12
16
13
17
- Fixed a bug where unbalanced markup without text siblings or children would cause an error
14
18
- Fixed a bug where numbers inside markup properties were being parsed in a culture variant manner.
19
+
- The implicit `[character/]` marker is now generated before all other markup processing takes place. As a result, replacement markers like `[select/]` that produce text that would have been identified as a character name won't have their output recognised as a character name.
20
+
- If you need this to keep working, manually add your own `[character name=etc] ... [/character]` markup around your content.
// this keeps track of all accumulated invisible characters added by any replacement markup.
779
779
// this is necessary to prevent a bug with the following:
780
-
// "this is a line [bold]with some replacement[/bold] markup and a non-replacement[a/] markup"
780
+
// "this is a line [bold]with some replacement[/bold] markup and a non-replacement[a/] markup"
781
781
// assuming that this is intended to replace the [bold] with <b> in unity we would end up as though we had written:
782
-
// "this is a line <b>with some replacement</b> markup and a non-replacement[a/] markup"
782
+
// "this is a line <b>with some replacement</b> markup and a non-replacement[a/] markup"
783
783
// but this has now pushed the [a] markup down by 7 invisible characters
784
784
// so each replacement markup processor needs to let us know how many (if any) invisible characters there are so we can backshift any sibling attributes after a replacement markup
0 commit comments