cerevox 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -279,7 +279,7 @@ function composeAssFromItems(subs, defaultStyle) {
279
279
  const eH = pad2(Math.floor(eMs / 3600000)), eM = pad2(Math.floor((eMs % 3600000) / 60000)), eS = pad2(Math.floor((eMs % 60000) / 1000)), eC = pad2(Math.floor((eMs % 1000) / 10));
280
280
  const sAss = `${sH}:${sM}:${sS}.${sC}`;
281
281
  const eAss = `${eH}:${eM}:${eS}.${eC}`;
282
- const text = `{\\q0}${it.text.replace(/\n/g, '\\N')}`;
282
+ const text = `{\\q3}${it.text.replace(/\n/g, '\\N')}`;
283
283
  return `Dialogue: 0,${sAss},${eAss},${it.styleName},,0,0,0,,${text}`;
284
284
  })
285
285
  .join('\n');
@@ -702,7 +702,7 @@ function compileToFfmpeg(project, opts = {}) {
702
702
  const libassOk = strat === 'ass' || (strat === 'auto' && hasLibass(ffmpegBin));
703
703
  // Default force_style for better CJK wrapping; adjust margins as needed.
704
704
  // NOTE: kept inside compile scope so it can be customized later if needed.
705
- const defaultForceStyle = `WrapStyle=0,MarginL=60,MarginR=60`;
705
+ const defaultForceStyle = `WrapStyle=3,MarginL=60,MarginR=60`;
706
706
  if (libassOk) {
707
707
  // ASS mode
708
708
  const def = project.subtitles[0]?.style || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cerevox",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "TypeScript SDK for browser automation and secure command execution in highly available and scalable micro computer environments",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",