mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add license and copyright information to all LIT-related files missing them.
This commit is contained in:
parent
ee23d9bcde
commit
ac9baea183
@ -1,4 +1,11 @@
|
|||||||
|
'''
|
||||||
|
Higher-level LZX compression/decompression routines.
|
||||||
|
'''
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
|
@ -4,6 +4,9 @@ Modified version of SHA-1 used in Microsoft LIT files.
|
|||||||
Adapted from the PyPy pure-Python SHA-1 implementation.
|
Adapted from the PyPy pure-Python SHA-1 implementation.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
|
||||||
|
|
||||||
import struct, copy
|
import struct, copy
|
||||||
|
|
||||||
# ======================================================================
|
# ======================================================================
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
|
'''
|
||||||
|
Basic support for manipulating OEB 1.x/2.0 content and metadata.
|
||||||
|
'''
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
#! /usr/bin/python2.5
|
|
||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
CSS property propagation class.
|
||||||
|
'''
|
||||||
|
from __future__ import with_statement
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
|
||||||
|
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
@ -324,12 +331,12 @@ class Style(object):
|
|||||||
|
|
||||||
def _get(self, name):
|
def _get(self, name):
|
||||||
result = None
|
result = None
|
||||||
styles = self._stylizer._styles
|
|
||||||
if name in self._style:
|
if name in self._style:
|
||||||
result = self._style[name]
|
result = self._style[name]
|
||||||
if (result == 'inherit'
|
if (result == 'inherit'
|
||||||
or (result is None and name in INHERITED
|
or (result is None and name in INHERITED
|
||||||
and self._has_parent())):
|
and self._has_parent())):
|
||||||
|
styles = self._stylizer._styles
|
||||||
result = styles[self._element.getparent()]._get(name)
|
result = styles[self._element.getparent()]._get(name)
|
||||||
if result is None:
|
if result is None:
|
||||||
result = DEFAULTS[name]
|
result = DEFAULTS[name]
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
'''
|
||||||
|
Basic support for writing LIT files.
|
||||||
|
'''
|
||||||
|
from __future__ import with_statement
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
|
||||||
|
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
Loading…
x
Reference in New Issue
Block a user