bubblesub / ass_tag_parser Goto Github PK
View Code? Open in Web Editor NEWA Python library for serialization and deserialization of ASS subtitle file format tags markup.
License: MIT License
A Python library for serialization and deserialization of ASS subtitle file format tags markup.
License: MIT License
Setuptools currently declares the dataclasses backport a hard dependency, even on Py 3.7.
Please use environment markers to prevent this.
Currently, ass_tag_parser can't parse VSFilterMod tag which is totally ok, because they have they are useless.
But, it would be better if it could not raise an exception. It should simply have a class for unknowtag.
Here is the code I have:
result = parse_ass(
r"{\fnJester\fsc20}test"
)
print(result)
What it currently does:
ass_tag_parser.errors.BadAssTagArgument: syntax error at pos 16: \fs requires an integer
What it could do:
[AssTagListOpening(), AssTagFontName(name='Jester'), AssUnknowTag(text=fsc20), AssTagListEnding(), AssText(text='test')]
PS C:\xxx> pip install ass-tag-parser
Collecting ass-tag-parser
Using cached https://xxx/ass_tag_parser-2.3.tar.gz (16 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-1s17sz2y\\ass-tag-parser\\setup.py'"'"'; __file__='"'"'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-1s17sz2y\\ass-tag-parser\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\xxx\AppData\Local\Temp\pip-pip-egg-info-7kr7ks__'
cwd: C:\Users\xxx\AppData\Local\Temp\pip-install-1s17sz2y\ass-tag-parser\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\xxx\AppData\Local\Temp\pip-install-1s17sz2y\ass-tag-parser\setup.py", line 11, in <module>
long_description=(Path(__file__).parent / "README.md").read_text(),
File "c:\python38\lib\pathlib.py", line 1236, in read_text
return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 601: illegal multibyte sequence
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
There are different default encodings in these operating systems (for open
etc.)
Please include the license file in your PyPI distribution to make it redistributable.
Currently, if we do parse_ass(r"{\fs146.38}example")
, it will print: ass_tag_parser.errors.BadAssTagArgument: syntax error at pos 10: \fs requires an integer
\fs can handle float number, so we should not be limited to integer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.