Current development version on Github
encoding
argument added toTextGrid()
constructor in order to handle non-ASCII characters in .TextGrid files, which is useful for IPA symbols and symbols from the world's languages. By default (encoding = NULL
), the encoding of file is guessed usingreadr::guess_encoding
; however, this can be overridden by identifying the encoding explicitly (e.g.,encoding = "UTF-8"
orencoding "UTF-16BE"
).- Some versions of Praat write TextGrid files with spaces; other versions write
with tabs. Previous versions of
textgRid
assumed spaces, but now both formats can be handled.
writeTextGrid
function forTextGrid
s.
length
methods forIntervalTier
s andPointTier
s.Tier@number
slot changed fromnumeric
tointeger
.as.data.frame
methods forIntervalTier
s,PointTier
s, andTextGrid
s.stringsAsFactors
argument added tofind*()
functions.myExample.TextGrid
file available ininst/extdata/
.
Current released version on CRAN
Functions for reading Praat .TextGrid
files into R.
TextGrid(textGrid) # Read the annotations in the @textGrid filepath.
findIntervals(tier, ...) # Return a data.frame of the contentful intervals
# from an Interval @tier.
findPoints(tier, ...) # Return a data.frame of the contentful points
# from a Point @tier.
See README.md
for a description of the S4 class system used to structure
TextGrid data.