@@ -16,19 +16,19 @@ type Story = StoryObj<typeof Transcript>;
1616
1717export const WithoutSpeakers : Story = {
1818 args : {
19- transcript : `In this lesson, we'll explore the fundamentals of JavaScript.
20- JavaScript is a versatile programming language used for web development.
21- It allows you to create interactive and dynamic web pages.
22- Let's start by understanding variables and data types.` ,
19+ transcript : `<p> In this lesson, we'll explore the fundamentals of JavaScript.</p>
20+ <p> JavaScript is a versatile programming language used for web development.</p>
21+ <p> It allows you to create interactive and dynamic web pages.</p>
22+ <p> Let's start by understanding variables and data types.</p> `,
2323 } ,
2424 parameters : {
2525 docs : {
2626 source : {
2727 code : `<Transcript
28- transcript={\`In this lesson, we'll explore the fundamentals of JavaScript.
29- JavaScript is a versatile programming language used for web development.
30- It allows you to create interactive and dynamic web pages.
31- Let's start by understanding variables and data types.\`}
28+ transcript={\`<p> In this lesson, we'll explore the fundamentals of JavaScript.</p>
29+ <p> JavaScript is a versatile programming language used for web development.</p>
30+ <p> It allows you to create interactive and dynamic web pages.</p>
31+ <p> Let's start by understanding variables and data types.</p> \`}
3232/>` ,
3333 } ,
3434 } ,
@@ -37,17 +37,36 @@ Let's start by understanding variables and data types.\`}
3737
3838export const WithSpeakers : Story = {
3939 args : {
40- transcript : `Tom: Hi, that's right. I'm Tom McKenzie.
41- Maria: Welcome aboard, Tom. How do you like California so far?
42- Tom: I like it. It's different from Texas, but I like it here.` ,
40+ transcript : `<p><b> Tom:</b> Hi, that's right. I'm Tom McKenzie.</p>
41+ <p><b> Maria:</b> Welcome aboard, Tom. How do you like California so far?</p>
42+ <p><b> Tom:</b> I like it. It's different from Texas, but I like it here.</p> `,
4343 } ,
4444 parameters : {
4545 docs : {
4646 source : {
4747 code : `<Transcript
48- transcript={\`Tom: Hi, that's right. I'm Tom McKenzie.
49- Maria: Welcome aboard, Tom. How do you like California so far?
50- Tom: I like it. It's different from Texas, but I like it here.\`}
48+ transcript={\`<p><b>Tom:</b> Hi, that's right. I'm Tom McKenzie.</p>
49+ <p><b>Maria:</b> Welcome aboard, Tom. How do you like California so far?</p>
50+ <p><b>Tom:</b> I like it. It's different from Texas, but I like it here.</p>\`}
51+ />` ,
52+ } ,
53+ } ,
54+ } ,
55+ } ;
56+
57+ export const WithChineseAndSpeakers : Story = {
58+ args : {
59+ transcript : `<p><b>Wang Hua:</b> <ruby>你好<rt>nǐ hǎo</rt></ruby>,<ruby>我是王华<rt>wǒ shì wáng huá</rt></ruby>。</p>
60+ <p><b>Wang Hua:</b> <ruby>请问你叫什么名字<rt>qǐng wèn nǐ jiào shén me míng zì</rt></ruby>?</p>
61+ <p><b>Liu Ming:</b> <ruby>你好<rt>nǐ hǎo</rt></ruby>,<ruby>我叫刘明<rt>wǒ jiào liú míng</rt></ruby>。</p>` ,
62+ } ,
63+ parameters : {
64+ docs : {
65+ source : {
66+ code : `<Transcript
67+ transcript={\`<p><b>Wang Hua:</b> <ruby>你好<rt>nǐ hǎo</rt></ruby>,<ruby>我是王华<rt>wǒ shì wáng huá</rt></ruby>。</p>
68+ <p><b>Wang Hua:</b> <ruby>请问你叫什么名字<rt>qǐng wèn nǐ jiào shén me míng zì</rt></ruby>?</p>
69+ <p><b>Liu Ming:</b> <ruby>你好<rt>nǐ hǎo</rt></ruby>,<ruby>我叫刘明<rt>wǒ jiào liú míng</rt></ruby>。</p>\`}
5170/>` ,
5271 } ,
5372 } ,
0 commit comments