Discussion › Forums › discussion › PyPN – Defects and Enhancement requests
This topic contains 0 voices and has 4 replies.
| Author | Posts |
|---|---|
| Author | Posts |
| May 27, 2011 at 2:05 pm #5295 | |
|
CoDEmanX Member
|
(This is meant as a collective thread)
|
| May 28, 2011 at 3:29 pm #17846 | |
|
ignac Member
|
So changing the defaults to CRLF (as opposed to CR) makes the error go away, but then a recorded script doesn’t really work properly. 1. I open a new document and click record 2. I type in abcd 3. I clock stop 4. I double click on the script to play it back and junk characters appear along with the abcd. ie: aÃbÃcÃdà |
| May 28, 2011 at 11:59 pm #17847 | |
|
CoDEmanX Member
|
Interesting… i get those extra chars no matter of the line endings. Script looks like this:
@script("New Script", "Recorded") def RecordedScript(): doc = pn.CurrentDoc() sci = scintilla.Scintilla(doc) sci.ReplaceSel('ax01x01bx01x01cx01x01dx01x01') |
| May 29, 2011 at 2:03 pm #17848 | |
|
ignac Member
|
After trying to record ‘abcd’, my script looks slightly different: import pn, scintilla @script(“New Script”, “Recorded”) def RecordedScript(): doc = pn.CurrentDoc() sci = scintilla.Scintilla(doc) sci.ReplaceSel(“a’xcbb’xcbc’xcbd’xcb”) And playing the script back now results in: a’Ëb’Ëc’Ëd’Ë |
| June 2, 2011 at 5:34 pm #17849 | |
|
simon Key Master
|
Uh oh, the recording issue looks like a unicode translation problem. Probably crept in with 2.1 but I didn’t notice. Interestingly the recording functionality is mostly written in Python (pypnrecord.py) so you may be able to fix it if you fancy taking a look before I get to it! |
You must be logged in to reply to this topic.