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 hashes)

Uploaded Source

Supported by

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