npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@allnulled/xass

v3.0.1

Published

Compendio de utilidades para alterar masivamente ficheros .ass desde línea de comandos

Downloads

8

Readme

npm

xass

Programa de línea de comandos para modificar ficheros .ass (SubStation Alpha).

Prerrequisitos:

· Tener instalado npm/node y accesible desde línea de comandos.

Instalación:

Desde la línea de comandos:

 $  npm install -g @allnulled/xass

Uso:

La sintaxis del comando general es:

 $  xass -x { comando } { --parametro valor }* { fichero.ass }*

Ejemplo:

Por ejemplo, para separar con "0.17" segundos los estilos que coincidan con el estilo "phone" en los ficheros "fichero1.ass" y "fichero2.ass":

 $  xass -x separar --separacion "0.17" --incluir-estilo "phone" fichero1.ass fichero2.ass

Comandos:

A continuación se listan todos los comandos que está preparado para correr el programa:


Comando: xass -x separar

Descripción:

Consiste en aplicar una separación entre el final de un subtítulo y el principio de otro, en los casos en que ambos valores coinciden o cuya separación en tiempo no supera la separación mínima entre subtítulos.

Parámetros:

  • --separacion: número de segundos como intervalo mínimo de diferencia a aplicar. Por defecto: "0.17". El valor está en centésimas de segundo.
  • --incluir-estilo: estilo único al cual se aplica este intervalo. Soporta expresiones regulares cuando sigue el formato: "/blablabla/g".
  • --excluir-estilo: estilo único al cual no se aplica este intervalo. Soporta expresiones regulares cuando sigue el formato: "/blablabla/g".
  • --carga-izquierda: porcentaje de movimiento que recibe el subtítulo del lado izquierdo del solapamiento. Por defecto: 50.
  • --carga-derecha: porcentaje de movimiento que recibe el subtítulo del lado derecho del solapamiento. Por defecto: 50.

Ejemplos:

 # Aplicar separación en ficheros:
 $  xass -x separar fichero1.ass fichero2.ass
 # Aplicar separación (de 0.17 segundos) en ficheros:
 $  xass -x separar fichero1.ass fichero2.ass --separacion "0.17"
 # Aplicar separación (de 0.17 segundos) (a estilos que sí sean: "Sign~") en ficheros:
 $  xass -x separar fichero1.ass fichero2.ass --separacion "0.17" --incluir-estilo "/Sign.*/gi"
 # Aplicar separación (de 0.17 segundos) (a estilos que no sean: "phone") en ficheros:
 $  xass -x separar fichero1.ass fichero2.ass --separacion "0.17" --excluir-estilo "phone"

Notas sobre el algoritmo del comando xass -x separar:

  • Sólo hará 1 cambio (en el inicio o en el final) por cada subtítulo por ejecución.
  • Los subtítulos se separan lo justo para que haya la --separación mínima establecida como parámetro.
  • La separación puede establecerse según los lados con --carga-izquierda y --carga-derecha.
  • Los filtros de clases (--incluir-estilo y --excluir-estilo) se aplican tanto para el subtítulo A como para el B.

Comando: xass -x interfaz

Descripción:

Consiste en levantar un servidor y visitarlo con el navegador para poder usar los comandos desde interfaz gráfica.


Referencias: