Skip to main content

HtmlCssInclude converts CSS into inline HTML style tags, for use on Japanese mobile devices where CSS is unsupported.

Project description

HtmlCssInclude converts CSS into inline HTML style tags, for use on Japanese mobile devices where CSS is unsupported. Font size is adjusted based on mobile carrier (Docomo, au, Softbank). Image size is also adjusted for users with VGA screens.

Requirements

  • Python 2.5 or later (not support 3.x)

  • lxml

Setup

$ easy_install HtmlCssInclude

How to Use

>>> from  HtmlCssInclude import CssInclude

initialize with mobile carrier:

>>> css_include = CssInclude(agent='docomo', is_vga=True)

convert css into inline style html:

>>> converted_html = css_include.apply(input_html)

History

0.1.1 (2010-11-22)

  • add test data

0.1 (2010-11-20)

  • first release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

HtmlCssInclude-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file HtmlCssInclude-0.1.1.tar.gz.

File metadata

File hashes

Hashes for HtmlCssInclude-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d501b3fda48e63bdc014a09759c821d489d2b3ceb86e3848929bc784af0fe222
MD5 626345590932c12db3ab7be676c0a7f7
BLAKE2b-256 f91fdbd60479049d4e00d5d3d8e0a70cc0acb6c93edc91e9c342a07baa927c3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page