On Tue, 7 Aug 2012 12:08:24 +0800 "Zoom.Quiet" <zoom.qu...@gmail.com> wrote:
> 2012/8/7 Terry Brown <terry_n_br...@yahoo.com>: > > On Tue, 7 Aug 2012 10:44:43 +0800 > > "Zoom.Quiet" <zoom.qu...@gmail.com> wrote: > > > >> i coding everything in Leo, so that is very odd things for me: > >> - under MAC Lion 10.7.4 + Leo 4.10 final, build 5020 + Python 2.7.1, > >> qt version 4.8.0 > >> - i dont know how did i input the 'bs' ~ BACKSPACE into Leo > > > > I ran the script shown in the attached screen shot to force a chr(8) > > into the text, and it shows up as a small symbol that looks like a > > degree sign, but that probably depends on the font. > > > > - COOL! > - so how to make u script as default running? Well, the script doesn't do anything except force a chr(8) into the text, so I don't think there's any reason to run it except for testing. > - and whitch faonts can show these esp. sign? > - can support Chinese in same time? Here's a script you can run to cycle through all the fonts on you system, just paste it in and keep clicking run-script. Conveniently clicking in the body text resets the font to the default. The script will edit itself to include a chr(8), so you can see how it's displayed. All the fonts on my system up the the fonts starting with "G" displayed it as a small degree symbol or a black rectangle with a circle on it. @language python from PyQt4.QtCore import QObject from PyQt4.QtGui import QFontDatabase if not hasattr(g, '_font_idx'): g._font_idx = 0 fdb = QFontDatabase() fonts = [str(i) for i in fdb.families()] ed = c.frame.top.leo_ui.findChild(QObject, 'richTextEdit') if chr(8) not in p.b: p.b += "\n# chr(8):'"+chr(8)+"'" ed.setStyleSheet("font-family: %s" % fonts[g._font_idx]) g.es(fonts[g._font_idx]) g._font_idx += 1 > - or usage another way to ALERT theses outmind esp. code? > - just like Sublime Text 2 ? > > > Cheers -Terry > > > >> - BUT leo display as normal! > >> - SO when i testing, the web app. always POST into error URI > >> like: http://localhost:8080/%08up/.... > >> - of course, my web server can not hold this URI > >> - SO when i copy code into Sublime Text 2 ... > >> - as snap, display there had odd code!!!! > >> U+0008 BACKSPACE* �C Codepoints > >> http://codepoints.net/U+0008 > >> > >> SO! i means, how to make Leo can display all things with user input? > >> > >> -- > >> 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦! > >> 俺: http://about.me/zoom.quiet > >> 文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/ > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "leo-editor" group. > > To post to this group, send email to leo-editor@googlegroups.com. > > To unsubscribe from this group, send email to > > leo-editor+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/leo-editor?hl=en. > > > > > > -- > 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦! > 俺: http://about.me/zoom.quiet > 文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/ > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.