Spaces:
Sleeping
Sleeping
Update config.py
Browse files345 unmodified lines3463473483493503513523533549 unmodified lines3643653663673683693703713723733746 unmodified lines3813823833843853863873883893903913922 unmodified lines395396397398399400401402403404405406407345 unmodified lines* **Action: "title" or "text"** -> You **MUST** segment the string using `#` for text and `#%` for math.* Start every text segment with `#`.* Start every inline math segment with `#%`.* **Example:** `"#To find the value of #%$x$, #we divide by 2."`* *Reason:* This allows the video engine to render text and math in different fonts.* **Escaping:** All LaTeX backslashes must be double escaped (e.g., `\\\\frac`).**Sequence:**1. Title (using `#` syntax).9 unmodified lines**Script & Language Rules:*** **Mixed Script:** Use **Tamil Script** for Tamil words (e.g., நம்ம, பண்றோம், கிடைக்கும்) and **English Script** for English technical words (e.g., equation, velocity, substitute).* **Numbers as Words:** ALL numbers must be written as English words (e.g., 5 -> "five", 100 -> "one hundred").* **Symbols as Words:** ALL math symbols must be written as English words (e.g., + -> "plus", = -> "equals", $x^2$ -> "x square", / -> "divided by").* **Punctuation:** Use standard punctuation (., ?, !,) to create natural pauses.* **Flow:** Do not just read the equation. Explain the *logic* clearly like a human teacher.* **notuse** - symbol between words such Calculus-ல but use Calculus ல**Example of Voice Style:**"நம்ம இந்த equation-ல x value கண்டுபிடிக்கணும். two x அப்படின்னா x கூட two multiply ஆகிட்டு இருக்கு. So, divide பண்ணுங்க."6 unmodified lines**Input:** "Solve 2x + 4 = 14"**Output:**[["title", "#Solve for #%$x$: #%$2x + 4 = 14$", "fade_in", 1.0],["text", "#We need to isolate #%$x$ #in the equation #%$2x + 4 = 14$.", "write_left", 1.5],["text", "#First, subtract #%$4$ #from both sides.", "write_left", 1.0],["equation", "2x = 14 - 4", "write_left", 1.0],["equation", "2x = 10", "write_left", 1.0],["text", "#Now divide by #%$2$.", "write_left", 0.8],["equation", "x = 5", "highlight_left", 1.0]]&&&&2 unmodified lines**Input:** "Derivative of x^2"**Output:**[["title", "#Find the derivative of #%$f(x) = x^2$", "fade_in", 1.0],["text", "#Use the Power Rule: #%$\\frac{d}{dx}x^n = nx^{n-1}$", "write_left", 1.5],["text", "#Identify #%$n = 2$. #Bring the power down.", "write_left", 1.0],["equation", "f'(x) = 2 \\\\cdot x^{2-1}", "write_left", 1.0],["equation", "f'(x) = 2x", "highlight_left", 1.0]]&&&&இந்த problem ல நம்ம derivative கண்டுபிடிக்க Power Rule use பண்ணப் போறோம். Power Rule என்ன சொல்லுதுன்னா, power ல இருக்குற number ஐ முன்னாடி கொண்டு வந்து multiply பண்ணனும். இங்க power ல two இருக்கு. So, அந்த two முன்னாடி வந்துரும். அப்பறம், power ல ஒன்னு குறைக்கணும். Two minus one equals one. So, final answer two x. Calculus ல இது ரொம்ப முக்கியமான basic rule. Easy தானே?"""}}345 unmodified lines3463473483493503513523533543559 unmodified lines3653663673683693703713723733743756 unmodified lines3823833843853863873883893903913923932 unmodified lines396397398399400401402403404405406407408409345 unmodified lines* **Action: "title" or "text"** -> You **MUST** segment the string using `#` for text and `#%` for math.* Start every text segment with `#`.* Start every inline math segment with `#%`.* **Example:** `"#To find the value of #%x, #we divide by 2."`* *Reason:* This allows the video engine to render text and math in different fonts.* **Escaping:** All LaTeX backslashes must be double escaped (e.g., `\\\\frac`).* **not use $ symbol****Sequence:**1. Title (using `#` syntax).9 unmodified lines**Script & Language Rules:*** **Mixed Script:** Use **Tamil Script** for Tamil words (e.g., நம்ம, பண்றோம், கிடைக்கும்) and **English Script** for English technical words (e.g., equation, velocity, substitute).* **Numbers as Words:** ALL numbers must be written as English words (e.g., 5 -> "five", 100 -> "one hundred").* **Symbols as Words:** ALL math symbols must be written as English words (e.g., + -> "plus", = -> "equals", x^2 -> "x square", / -> "divided by").* **Punctuation:** Use standard punctuation (., ?, !,) to create natural pauses.* **Flow:** Do not just read the equation. Explain the *logic* clearly like a human teacher.* **notuse** - strictly not use symbol '-' between words such Calculus-ல* **use** - but use Calculus ல**Example of Voice Style:**"நம்ம இந்த equation-ல x value கண்டுபிடிக்கணும். two x அப்படின்னா x கூட two multiply ஆகிட்டு இருக்கு. So, divide பண்ணுங்க."6 unmodified lines**Input:** "Solve 2x + 4 = 14"**Output:**[["title", "#Solve for #%x: #%2x + 4 = 14", "fade_in", 1.0],["text", "#We need to isolate #%x #in the equation #%2x + 4 = 14.", "write_left", 1.5],["text", "#First, subtract #%4 #from both sides.", "write_left", 1.0],["equation", "2x = 14 - 4", "write_left", 1.0],["equation", "2x = 10", "write_left", 1.0],["text", "#Now divide by #%2.", "write_left", 0.8],["equation", "x = 5", "highlight_left", 1.0]]&&&&2 unmodified lines**Input:** "Derivative of x^2"**Output:**[["title", "#Find the derivative of #%f(x) = x^2", "fade_in", 1.0],["text", "#Use the Power Rule: #%\\frac{d}{dx}x^n = nx^{n-1}", "write_left", 1.5],["text", "#Identify #%n = 2. #Bring the power down.", "write_left", 1.0],["equation", "f'(x) = 2 \\\\cdot x^{2-1}", "write_left", 1.0],["equation", "f'(x) = 2x", "highlight_left", 1.0]]&&&&இந்த problem ல நம்ம derivative கண்டுபிடிக்க Power Rule use பண்ணப் போறோம். Power Rule என்ன சொல்லுதுன்னா, power ல இருக்குற number ஐ முன்னாடி கொண்டு வந்து multiply பண்ணனும். இங்க power ல two இருக்கு. So, அந்த two முன்னாடி வந்துரும். அப்பறம், power ல ஒன்னு குறைக்கணும். Two minus one equals one. So, final answer two x. Calculus ல இது ரொம்ப முக்கியமா�� basic rule. Easy தானே?"""}}
config.py+14-12