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

Add support for chronological TextGrid format #12

Open
psibre opened this issue Mar 22, 2018 · 0 comments
Open

Add support for chronological TextGrid format #12

psibre opened this issue Mar 22, 2018 · 0 comments

Comments

@psibre
Copy link
Member

psibre commented Mar 22, 2018

Expected behavior

Loading a TextGrid file in chronological format should work just like the default format.

Actual behavior (with the stacktrace!)

Fails with an error:

Caused by: org.m2ci.msp.jtgt.io.TextGridIOException: Header is not correctly formatted ("Praat chronological TextGrid text file")
        at org.m2ci.msp.jtgt.io.TextGridSerializer.fromString(TextGridSerializer.java:74)
        at org.m2ci.msp.jtgt.io.TextGridSerializer$fromString.call(Unknown Source)

Steps to reproduce the behavior

Load a chronological TextGrid file.

Additional information

Format looks like this:

"Praat chronological TextGrid text file"
0 5.14   ! Time domain.
1   ! Number of tiers.
"IntervalTier" "phones" 0 5.14

! phones:
1 0 1.09
"sil"

! phones:
1 1.09 1.25
"O"

! phones:
1 1.25 1.35
"T"

! phones:
1 1.35 1.46
"r="

! phones:
1 1.46 1.53
"V"

! phones:
1 1.53 1.59
"v"

! phones:
1 1.59 1.64
"D"

! phones:
1 1.64 1.68
"@"

! phones:
1 1.68 1.78
"d"

! phones:
1 1.78 1.89
"EI"

! phones:
1 1.89 1.94
"n"

! phones:
1 1.94 2.02
"dZ"

! phones:
1 2.02 2.12
"r="

! phones:
1 2.12 2.24
"t"

! phones:
1 2.24 2.3
"r"

! phones:
1 2.3 2.38
"EI"

! phones:
1 2.38 2.58
"l"

! phones:
1 2.58 2.61
"sil"

! phones:
1 2.61 2.74
"f"

! phones:
1 2.74 2.78
"I"

! phones:
1 2.78 2.86
"l"

! phones:
1 2.86 2.92
"@"

! phones:
1 2.92 2.98
"p"

! phones:
1 2.98 3.05
"s"

! phones:
1 3.05 3.1
"t"

! phones:
1 3.1 3.18
"i"

! phones:
1 3.18 3.3
"l"

! phones:
1 3.3 3.43
"z"

! phones:
1 3.43 3.51
"E"

! phones:
1 3.51 3.59
"t"

! phones:
1 3.59 3.67
"s"

! phones:
1 3.67 3.73
"E"

! phones:
1 3.73 3.77
"t"

! phones:
1 3.77 3.91
"r="

! phones:
1 3.91 4.02
"@"

! phones:
1 4.02 5.12
"sil"

! phones:
1 5.12 5.14
"_"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant