You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are not satisfied with the result of the automatic split you can change the value of the `line_length` argument (the default value is `70`, that means 70 characters of the longest line).
207
207
208
-
## Add audio
208
+
## Add audio and video
209
209
210
-
It is possible to add a sound to the example using an `audio_path` argument. It can be both: a path to the file or an URL.
210
+
It is possible to add a soundtrack to the example using an `audio_path` argument. It can be both: a path to the file or an URL.
211
211
212
212
(@) Abaza, West Caucasian (my field recording)
213
213
```{r}
@@ -219,6 +219,17 @@ gloss_example("á-ɕa",
219
219
220
220
You can hear the recording if you click on the note icon above. If you do not like the icon, you can change it to any text using an `audio_label` argument.
221
221
222
+
Adding video is also possible:
223
+
224
+
(@) Ukrainian Sign Language (video from https://www.spreadthesign.com)
225
+
```{r}
226
+
gloss_example("PIECE",
227
+
"piece",
228
+
video_path = "USL_piece.mp4")
229
+
```
230
+
231
+
There are additional arguments `video_width` and `video_hight` for width and hight.
232
+
222
233
## In-text examples
223
234
224
235
When an example is small, the author may not want to put it in a separate paragraph, but prefer to display it as part of the running text. This is possible to achieve using the standard for `rmarkdown`[inline code](https://rmarkdown.rstudio.com/lesson-4.html). The result of the R code can be inserted into the rmarkdown document using the [backtick symbol](https://en.wikipedia.org/wiki/Grave_accent#Use_in_programming) and the small r, for example <code>`r 2+2`</code> will be rendered as `r 2+2`. Currently `lingglosses` can not automatically detect whether code was provided via code chunk or inline. So if you want to use an in-text glossed example and want the glosses to appear in list, it is possible to write them using the `gloss_example()` with the `intext = TRUE` argument. Here is a Turkish example from (@delancey97): `r gloss_example("Kemal gel-miş", "Kemal come-MIR", intext = TRUE)` that was produced with the following inline code:
0 commit comments