mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-24 15:11:30 +02:00
0f9792df36
Here is the first batch of modules, which are needed for converting several formats to LRF. Some of the logic has been change, more cleanups will follow.
26 lines
710 B
Python
26 lines
710 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
__license__ = 'GPL 3'
|
|
__copyright__ = '2010, Hiroshi Miura <miurahr@linux.com>'
|
|
__docformat__ = 'restructuredtext en'
|
|
|
|
'''
|
|
Decode unicode text to an ASCII representation of the text in Korean.
|
|
Based on unidecoder.
|
|
|
|
'''
|
|
|
|
from ebook_converter.ebooks.unihandecode.unidecoder import Unidecoder
|
|
from ebook_converter.ebooks.unihandecode.krcodepoints import CODEPOINTS as HANCODES
|
|
from ebook_converter.ebooks.unihandecode.unicodepoints import CODEPOINTS
|
|
|
|
|
|
class Krdecoder(Unidecoder):
|
|
|
|
codepoints = {}
|
|
|
|
def __init__(self):
|
|
self.codepoints = CODEPOINTS
|
|
self.codepoints.update(HANCODES)
|