-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(developer) marker steps 🙀 #9364
Merged
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f2915bb
spec(core): update marker spec 🙀
srl295 0c7ad2c
feat(developer): Marker tests 🙀
srl295 ab4a0f3
feat(developer): Marker tests 🙀
srl295 4854cba
feat(developer): fix marker validation test 🙀
srl295 52e5439
feat(developer): marker accounting 🙀
srl295 9988662
feat(developer): marker accounting 🙀
srl295 7ad3f95
Merge branch 'chore/core/7375-reorder-comments-epic-ldml' into feat/d…
srl295 581d65a
fix(common): list fix 🙀
srl295 e71e1c1
Merge branch 'master' into feat/developer/9119-marker-epic-ldml
srl295 f2fea17
Update developer/src/kmc-ldml/test/fixtures/sections/vars/fail-marker…
srl295 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
developer/src/kmc-ldml/test/fixtures/sections/vars/fail-markers-badref-0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
|
||
This will fail because the two markers given don't exist anywhere. | ||
|
||
--> | ||
<!DOCTYPE keyboard SYSTEM "../../../../../../../resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboard.dtd"> | ||
<keyboard locale="mt" conformsTo="techpreview"> | ||
<names> | ||
<name value="vars-markers-badref-0" /> | ||
</names> | ||
|
||
<displays> | ||
<!-- Not ok, nobody emits this, so this display doesn't make sense --> | ||
<display to="\m{doesnt_exist_1}" display="¬" /> | ||
<!-- OK - it si in the strings list. Could warn that it matches no keys --> | ||
srl295 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<display to="\m{maybe_emitted}" display="‽" /> | ||
</displays> | ||
|
||
<variables> | ||
<!-- This may be emitted, so at present it does not cause an error. --> | ||
<!-- A linter could, however, hint on an unused variable. --> | ||
<!-- Removing this variable would cause \m{maybe-emitted} to error in the transform group --> | ||
<string id="unused_variable" value="\m{maybe_emitted}" /> | ||
</variables> | ||
|
||
<transforms type="simple"> | ||
<transformGroup> | ||
<!-- not OK, nobody emits this. --> | ||
<transform from="\m{doesnt_exist_3}" to="3" /> | ||
</transformGroup> | ||
</transforms> | ||
<transforms type="backspace"> | ||
<transformGroup> | ||
<!-- not OK, nobody emits this. --> | ||
<transform from="\m{doesnt_exist_2}" /> | ||
<!-- OK - it's in the variable list --> | ||
<transform from="\m{maybe_emitted}" /> | ||
<!-- OK - matches all markers --> | ||
<transform from="\m{.}" /> | ||
</transformGroup> | ||
</transforms> | ||
</keyboard> |
44 changes: 44 additions & 0 deletions
44
developer/src/kmc-ldml/test/fixtures/sections/vars/markers-maximal.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
|
||
This keyboard won't make a lot of sense, it's mostly | ||
a test of validating markers. | ||
|
||
When we get further on in implementation, we'll shape this up | ||
into something testable for implementation. | ||
|
||
--> | ||
<!DOCTYPE keyboard SYSTEM "../../../../../../../resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboard.dtd"> | ||
<keyboard locale="mt" conformsTo="techpreview"> | ||
<names> | ||
<name value="vars-markers-maximal" /> | ||
</names> | ||
|
||
<displays> | ||
<display to="\{m}" display="Ⓜ️" /> | ||
</displays> | ||
|
||
<keys> | ||
<key id="m" to="\{m}" /> | ||
</keys> | ||
|
||
<!-- from spec --> | ||
<variables> | ||
<string id="x" value="\{x}" /> | ||
</variables> | ||
|
||
<transforms type="simple"> | ||
<transformGroup> | ||
<transform from="m" to="\{m}"/> | ||
<transform from="x" to="\{x}"/> | ||
</transformGroup> | ||
<transformGroup> | ||
<transform from="e\{x}" to="é" /> | ||
</transformGroup> | ||
</transforms> | ||
<transforms type="backspace"> | ||
<transformGroup> | ||
<transform from="A\{.}B" /> | ||
</transformGroup> | ||
</transforms> | ||
</keyboard> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where did this come from?