Skip to content

Only works for one format #3

@MysteryPancake

Description

@MysteryPancake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions