epub-translator 0.1.6__py3-none-any.whl → 0.1.8__py3-none-any.whl
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.
- epub_translator/data/translate.jinja +3 -0
- epub_translator/llm/core.py +19 -1
- epub_translator/llm/executor.py +5 -0
- epub_translator/llm/statistics.py +25 -0
- epub_translator/segment/__init__.py +1 -0
- epub_translator/segment/text_segment.py +10 -6
- epub_translator/segment/utils.py +0 -16
- epub_translator/translation/xml_interrupter.py +54 -27
- epub_translator/xml/const.py +1 -0
- epub_translator/xml/inline.py +55 -2
- epub_translator/xml_translator/submitter.py +5 -5
- {epub_translator-0.1.6.dist-info → epub_translator-0.1.8.dist-info}/METADATA +108 -8
- {epub_translator-0.1.6.dist-info → epub_translator-0.1.8.dist-info}/RECORD +15 -22
- epub_translator/data/mmltex/README.md +0 -67
- epub_translator/data/mmltex/cmarkup.xsl +0 -1106
- epub_translator/data/mmltex/entities.xsl +0 -459
- epub_translator/data/mmltex/glayout.xsl +0 -222
- epub_translator/data/mmltex/mmltex.xsl +0 -36
- epub_translator/data/mmltex/scripts.xsl +0 -375
- epub_translator/data/mmltex/tables.xsl +0 -130
- epub_translator/data/mmltex/tokens.xsl +0 -328
- {epub_translator-0.1.6.dist-info → epub_translator-0.1.8.dist-info}/LICENSE +0 -0
- {epub_translator-0.1.6.dist-info → epub_translator-0.1.8.dist-info}/WHEEL +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# XSLT MathML Library
|
|
2
|
-
|
|
3
|
-
This directory contains XSLT stylesheets from the **XSLT MathML Library 2.1.2**, a set of XSLT stylesheets to transform MathML 2.0 to LaTeX.
|
|
4
|
-
|
|
5
|
-
**Note**: These files are included for reference purposes. Our project uses a custom Python implementation to convert MathML to LaTeX, but we keep these XSLT files as a reference for understanding MathML element mappings and conversion rules.
|
|
6
|
-
|
|
7
|
-
## File Manifest
|
|
8
|
-
|
|
9
|
-
- `mmltex.xsl` - Main stylesheet
|
|
10
|
-
- `tokens.xsl` - Token elements (mi, mn, mo, etc.)
|
|
11
|
-
- `glayout.xsl` - Layout elements (mfrac, msqrt, etc.)
|
|
12
|
-
- `scripts.xsl` - Script elements (msub, msup, etc.)
|
|
13
|
-
- `tables.xsl` - Table elements (mtable, mtr, mtd)
|
|
14
|
-
- `entities.xsl` - Entity definitions
|
|
15
|
-
- `cmarkup.xsl` - Content markup elements
|
|
16
|
-
|
|
17
|
-
## Original Project Information
|
|
18
|
-
|
|
19
|
-
**Original Author**: Vasil Yaroshevich
|
|
20
|
-
|
|
21
|
-
**Original Website**: http://www.raleigh.ru/MathML/mmltex/
|
|
22
|
-
|
|
23
|
-
**Archived Links**:
|
|
24
|
-
- Sourceforge Project: https://sourceforge.net/projects/xsltml/files/xsltml/
|
|
25
|
-
- Archived Documentation: https://web.archive.org/web/20160109063934/http://www.raleigh.ru/MathML/mmltex/index.php
|
|
26
|
-
- Google Translated (English): https://translate.google.com/translate?sl=ru&tl=en&u=https%3A%2F%2Fweb.archive.org%2Fweb%2F20160114170851%2Fhttp%3A%2F%2Fwww.raleigh.ru%2FMathML%2Fmmltex%2Findex.php
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Copyright
|
|
31
|
-
|
|
32
|
-
Copyright (C) 2001-2003 Vasil Yaroshevich
|
|
33
|
-
|
|
34
|
-
Permission is hereby granted, free of charge, to any person
|
|
35
|
-
obtaining a copy of this software and associated documentation
|
|
36
|
-
files (the "Software"), to deal in the Software without
|
|
37
|
-
restriction, including without limitation the rights to use,
|
|
38
|
-
copy, modify, merge, publish, distribute, sublicense, and/or
|
|
39
|
-
sell copies of the Software, and to permit persons to whom the
|
|
40
|
-
Software is furnished to do so, subject to the following
|
|
41
|
-
conditions:
|
|
42
|
-
|
|
43
|
-
The above copyright notice and this permission notice shall be
|
|
44
|
-
included in all copies or substantial portions of the Software.
|
|
45
|
-
|
|
46
|
-
Except as contained in this notice, the names of individuals
|
|
47
|
-
credited with contribution to this software shall not be used in
|
|
48
|
-
advertising or otherwise to promote the sale, use or other
|
|
49
|
-
dealings in this Software without prior written authorization
|
|
50
|
-
from the individuals in question.
|
|
51
|
-
|
|
52
|
-
Any stylesheet derived from this Software that is publically
|
|
53
|
-
distributed will be identified with a different name and the
|
|
54
|
-
version strings in any derived Software will be changed so that
|
|
55
|
-
no possibility of confusion between the derived package and this
|
|
56
|
-
Software will exist.
|
|
57
|
-
|
|
58
|
-
## Warranty
|
|
59
|
-
|
|
60
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
61
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
62
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
63
|
-
NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER
|
|
64
|
-
CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
65
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
66
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
67
|
-
OTHER DEALINGS IN THE SOFTWARE.
|