htmlkanaview 0.0.1__tar.gz
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.
- htmlkanaview-0.0.1/LICENCE +8 -0
- htmlkanaview-0.0.1/PKG-INFO +28 -0
- htmlkanaview-0.0.1/README.md +4 -0
- htmlkanaview-0.0.1/htmlkanaview.egg-info/PKG-INFO +28 -0
- htmlkanaview-0.0.1/htmlkanaview.egg-info/SOURCES.txt +9 -0
- htmlkanaview-0.0.1/htmlkanaview.egg-info/dependency_links.txt +1 -0
- htmlkanaview-0.0.1/htmlkanaview.egg-info/requires.txt +1 -0
- htmlkanaview-0.0.1/htmlkanaview.egg-info/top_level.txt +1 -0
- htmlkanaview-0.0.1/htmlkanaview.py +13 -0
- htmlkanaview-0.0.1/setup.cfg +4 -0
- htmlkanaview-0.0.1/setup.py +26 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ----------------------------------------------------------------------------
|
|
3
|
+
* "THE BEER-WARE LICENSE" (Revision 42):
|
|
4
|
+
* <faway6834@gmail.com> wrote this file. As long as you retain this notice you
|
|
5
|
+
* can do whatever you want with this stuff. If we meet some day, and you think
|
|
6
|
+
* this stuff is worth it, you can buy me a beer in return FarAway6834
|
|
7
|
+
* ----------------------------------------------------------------------------
|
|
8
|
+
*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: htmlkanaview
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: read descript thag writed by korean what write in github.
|
|
5
|
+
Home-page: https://github.com/FarAway6834/htmlkanaview
|
|
6
|
+
Author: du7ec
|
|
7
|
+
Author-email: dutec6834@gmail.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.5
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Requires-Python: >=3.5
|
|
19
|
+
License-File: LICENCE
|
|
20
|
+
Requires-Dist: toolz
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
Dynamic: requires-dist
|
|
27
|
+
Dynamic: requires-python
|
|
28
|
+
Dynamic: summary
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: htmlkanaview
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: read descript thag writed by korean what write in github.
|
|
5
|
+
Home-page: https://github.com/FarAway6834/htmlkanaview
|
|
6
|
+
Author: du7ec
|
|
7
|
+
Author-email: dutec6834@gmail.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.5
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Requires-Python: >=3.5
|
|
19
|
+
License-File: LICENCE
|
|
20
|
+
Requires-Dist: toolz
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
Dynamic: requires-dist
|
|
27
|
+
Dynamic: requires-python
|
|
28
|
+
Dynamic: summary
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
toolz
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
htmlkanaview
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from toolz import compose, partial, reduce
|
|
2
|
+
|
|
3
|
+
isolate = compose('\u2063\u200b\u2063'.join, partial(map, '{}\u20de'.format))
|
|
4
|
+
|
|
5
|
+
kanaview = compose("".join, partial(map, lambda x : x[1]), partial(sorted, key = lambda x : x[0]), lambda x : (([i, i + 1, i - 1][i % 3], [isolate, '\ufffa{}\ufffb'.format, compose('\ufff9'.__add__, isolate)][i % 3](j)) for i, j in enumerate((x for x in x.split(")") for x in x.split("[") for x in x.split("](")))))
|
|
6
|
+
|
|
7
|
+
ruby_replace_table = {"\ufff9" : "<ruby>", "\ufffa" : "<rp>(</rp><rt>", "\ufffb" : "</rt><rp)</rp></ruby>"}
|
|
8
|
+
|
|
9
|
+
RubyUnicode2Html = lambda x : reduce(lambda x, t : x.replace(*t), (x, *ruby_replace_table.items()))
|
|
10
|
+
|
|
11
|
+
RubyHtml2Unicode = lambda x : reduce(lambda x, t : x.replace(t[1], t[0]), (x, *ruby_replace_table.items()))
|
|
12
|
+
|
|
13
|
+
htmlkanaview = lambda x : RubyUnicode2Html(kanaview(x))
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='htmlkanaview',
|
|
5
|
+
version='0.0.1',
|
|
6
|
+
description='read descript thag writed by korean what write in github.',
|
|
7
|
+
author='du7ec',
|
|
8
|
+
author_email='dutec6834@gmail.com',
|
|
9
|
+
url='https://github.com/FarAway6834/htmlkanaview',
|
|
10
|
+
install_requires=['toolz'],
|
|
11
|
+
py_modules=["htmlkanaview"],
|
|
12
|
+
python_requires='>=3.5',
|
|
13
|
+
package_data={},
|
|
14
|
+
classifiers=[
|
|
15
|
+
'Programming Language :: Python :: 3.5',
|
|
16
|
+
'Programming Language :: Python :: 3.6',
|
|
17
|
+
'Programming Language :: Python :: 3.7',
|
|
18
|
+
'Programming Language :: Python :: 3.8',
|
|
19
|
+
'Programming Language :: Python :: 3.9',
|
|
20
|
+
'Programming Language :: Python :: 3.10',
|
|
21
|
+
'Programming Language :: Python :: 3.11',
|
|
22
|
+
'Programming Language :: Python :: 3.12',
|
|
23
|
+
'Programming Language :: Python :: 3.13',
|
|
24
|
+
'Programming Language :: Python :: 3.14',
|
|
25
|
+
],
|
|
26
|
+
)
|