Skip to content
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

Only works for one format #3

Open
MysteryPancake opened this issue Oct 19, 2018 · 1 comment
Open

Only works for one format #3

MysteryPancake opened this issue Oct 19, 2018 · 1 comment

Comments

@MysteryPancake
Copy link

MysteryPancake commented Oct 19, 2018

The Praat website provides several examples of TextGrid file formats. These examples include a shortened format:

File type = "ooTextFile"
Object class = "TextGrid"

0
2.3
<exists>
3
"IntervalTier"
"Mary"
0
2.3
1
0
2.3
""
"IntervalTier"
"John"
0
2.3
1
0
2.3
""
"TextTier"
"bell"
0
2.3
0

As well as a format using lots of comments:

"ooTextFile"
"TextGrid"
0 2.3 ! time domain of TextGrid
<exists>
3 tiers
"IntervalTier" "Mary" ! type and name of tier 1
0 2.3 ! time domain of tier 1
1 interval coming
0 2.3 "" ! interval 1 on tier 1
"IntervalTier" "John" ! type and name of tier 2
0 2.3 ! time domain of tier 2
1 interval coming
0 2.3 "" ! interval 1 on tier 2
"TextTier" "bell" ! type and name of tier 3
0 2.3 ! time domain of tier 3
0 points coming

Both of these formats are valid and can be parsed by Praat. However, this converter cannot parse either of these formats to JavaScript.

@MysteryPancake
Copy link
Author

MysteryPancake commented Oct 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant