Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; 'subject:text': 0.05; 'subject:ANN': 0.07; 'python': 0.09; 'missing)': 0.09; 'notation': 0.09; 'python:': 0.09; 'url:github': 0.09; 'applies': 0.15; 'itself;': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'textarea': 0.16; 'wrote:': 0.17; 'copied': 0.17; 'code.': 0.20; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'forgot': 0.27; 'translated': 0.27; 'fixed': 0.28; 'actual': 0.28; 'indentation': 0.29; 'spaces': 0.29; 'yesterday.': 0.29; 'file': 0.32; 'to:addr:python-list': 0.33; 'languages': 0.33; 'text': 0.34; 'moved': 0.35; 'be.': 0.36; 'should': 0.36; 'being': 0.37; 'why': 0.37; 'moment': 0.37; 'usual': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'mean': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'real': 0.61; 'world': 0.63; 'article': 0.78; 'distinguish': 0.84; 'url:master': 0.84 Date: Mon, 21 Jan 2013 17:31:50 -0500 From: Mitya Sirenef User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: ANN: Python training "text movies" References: <50f255c6$0$30003$c3e8da3$5496439d@news.astraweb.com> <50F25D6F.20604@lightbird.net> <50F26560.9040800@lightbird.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358807518 news.xs4all.nl 6944 [2001:888:2000:d::a6]:55520 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37229 On 01/21/2013 06:30 AM, Franck Ditter wrote: > In article , > Mitya Sirenef wrote: > >> > - To use the software outside Python, we need to have proper indentation >> > as real spaces. We should be able to distinguish Arial type for usual >> > text and fixed font for code. >> >> >> Not sure I understand about indentation.. You mean like wrapping >> everything in a textarea tag? Right now everything is in div, >> which leads to all spaces being compressed in html when viewed. > > SOme spaces are translated in  , others in actual spaces. > Say for Scheme, if I write this in foo.txt : > >> (define z (* 3+2i 1+i)) ; notation a+bi > abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz > > I get this in foo.html (spaces missing) : > >> (define z (* 3+2i 1+i)) ; notation a+bi > abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz > > franck This applies to Python and all other languages equally, that's why I was confused. I've fixed this issue and added utf-8, and moved the files to a new location & also copied utils.py file which I forgot yesterday. https://github.com/pythonbyexample/PBE/tree/master/jstmovie -m -- Lark's Tongue Guide to Python: http://lightbird.net/larks/ The world is a perpetual caricature of itself; at every moment it is the mockery and the contradiction of what it is pretending to be. George Santayana