thanx Krzysztof, it works !!
now i can put Cyrrilic comments with your wonderful Cyclone/[comment] object. but i'm curious and persistent enough not to stop here..:)
i also put "cp1251.enc" file in folder "..\lib\tcl8.3\encoding" and saw my native symbols in a text editor window (opened by Ctrl+T)
however sending them to a comment object (no matter what cyrrilic coding it uses) results in a crush ..
if i send them to native Pd objects there appear Latin symbols and numbers instead of expected Cyrillic.
you told there is a way to hack pd.tk (?) file to force Pd into a proper font. could you plese bring some light to this hackish sollution ?
with this i could effectively port my russian pd-help docs into the form of pd-pathes.
hi Yury
Yury wrote: ...
and saw my native symbols in a text editor window (opened by Ctrl+T)
however sending them to a comment object (no matter what cyrrilic coding it uses) results in a crush ..
cannot reproduce -- what characters are causing this? I will investigate, although comment is basically just a helper to be used by people importing max patches (try doing so without...)
...
you told there is a way to hack pd.tk (?) file to force Pd into a proper font.
there are two problems:
native Pd comments --
one thing to try is modifying the procedures pdtk_text_new and pdtk_text_set in the pd.tk file, replacing "-text $text" there with "-text [encoding convertfrom cp1251 $text]"
there is no other reliable way, currently, than typing them directly into a .pd file in a text editor outside of Pd.
Krzysztof
hi Krzysztof
Wednesday, May 19, 2004 8:56:57 PM you wrote:
KC> cannot reproduce -- what characters are causing this? any character, including numbers and Latin. e.g.: create a new patch, create new [comment] object and save it, probably you'll get smth like this:
#N canvas 105 111 420 200 12; #X obj 111 71 comment 0 12 helvetica ? 0 0 0 0 comment;
if you DO NOT close this patch after creating you can send it any text you want (of course only in Latin) from Ctrl+T dialog window.
BUT: when you close this patch, then open it again and try to send to [comment] ANY symbol from Ctrl+T window PD will crash.. with a message like this (translation from Russian): ""pd.exe" invoked an error and will be closed. You need to restart the program. Error log was created.Ok"
Note that it doesn't matter what encoding the [comment] object uses when it crashes. You can add new text only to newly created [comment]s.
The results are the same on both pd-0.36-0.msw and pd-0.37-0.msw.
KC> one thing to try is modifying the procedures pdtk_text_new and KC> pdtk_text_set in the pd.tk file, replacing "-text $text" there KC> with "-text [encoding convertfrom cp1251 $text]" thanx.it works.
Best regs, Yury yurolog@mail.ru
hi Yury,
this bug is in Pd itself -- having a patch window without anything selected, type ctrl-t, type into the "TEXT" window, and press OK button...
A temporary fix:
--- g_editor.c~ 2004-01-12 04:39:01.000000000 +0100 +++ g_editor.c 2004-05-21 12:36:26.000000000 +0200 @@ -1376,7 +1376,7 @@
int down, shift;
For the time being, before using ctrl-t-editor for cyclone comments (which is unlikely, anyway), you would have to select any text in a regular object box (or a Pd comment) in the same window.
Krzysztof
Yury wrote: ...
and try to send to [comment] ANY symbol from Ctrl+T window PD will crash.. with a message like this (translation from Russian):