Edit captions
Correct
If the AI has made a mistake in the caption, there are three different ways to correct them:
public/[your-composition-id]
in your project with an editor of your choice.
config/autocorrect.ts
file by adding
logic inside the autocorrectWord
function. For example:
tsx
const autocorrectWord = (word: Word): Word => {// Replace a single word with another oneif (word.word === " github") {return {...word,word: word.word.replace("github", " GitHub"),};}return word;};
tsx
const autocorrectWord = (word: Word): Word => {// Replace a single word with another oneif (word.word === " github") {return {...word,word: word.word.replace("github", " GitHub"),};}return word;};
Highlight Words
To highlight specific words, click on the desired word within the captions. In the opening editor, choose the monospace
option to apply a monospaced font and default blue color to the selected word.
If you wish to change the highlighting color, modify the WORD_HIGHLIGHT_COLOR
constant in the config/themes.ts
file.