dev-paste
< PRE-DRAFT+ >
< #DEV >
Python tool & general methods: decoupage effectively across different hypertextual domains, "web platforms", syntaxes, formats, etc.
Revisions:
_____________ as dev-xclip
20191008 import from dcht00🔗python-clipboard-copypaste
_____________ as XXX🔗cuts
20200929 stub
20210125 trying for telegram
20210216 still around
20220511 added instagram
_____________ as dev-hyperpaste
xxxx
20200603 stub ("e2h-paste")
20210311 moving (source) docs in here
20220303 ping, cleanup
20220317 ping
20220511 merged in old XXX🔗cuts
Ties to:
aka "dev-xclips"
aka "dev-clipboard"
______________ other tools
🔗polemics, XXX🔗polemics
🔗dev-keyclusters
______________ using
#CUTS
#RAW
🔗postchatter, XXX🔗postchatter
XXX🔗debates (instances) → 🔗arguments (distilled)
#writeups
Table of Contents
¶* TELEGRAM 1
next:
* CHECK NON-STANDARD CLIPBOARD !!!
____________
(FOR STANDARD CLIP)
problems:
* you will lose bolds, images, gifs, reactions, sounds etc
* MESSAGE QUOTES will fuck it up
so:
* all blocks of author are together:
"""
__________
David
blablabla
blublueblu
__________
Lies
"""
* mesage quotes:
"""
__________
Lies
David
blablabla
really
__________
David
yes
"""
* cut at 129
* only first line
do:
* copy all to gedit
solving QUOTES:
A) by matching beginnings of lines strings, and cut at 129 !!!
B) ###
next:
* CHECK NON-STANDARD CLIPBOARD !!!
____________
(FOR STANDARD CLIP)
problems:
* you will lose bolds, images, gifs, reactions, sounds etc
* MESSAGE QUOTES will fuck it up
so:
* all blocks of author are together:
"""
__________
David
blablabla
blublueblu
__________
Lies
"""
* mesage quotes:
"""
__________
Lies
David
blablabla
really
__________
David
yes
"""
* cut at 129
* only first line
do:
* copy all to gedit
solving QUOTES:
A) by matching beginnings of lines strings, and cut at 129 !!!
B) ###
¶* TELEGRAM 2: IN-PLACE MARKING SYMBOL + FIND
1) when you have something to cut, add:
"———[some topic]"
2) when it's done add "K" at end
3) also mark the ends
4) edit in place, while you're still in telegram. try to make it good.
5) later, CTRL+F to find good cuts.
1) when you have something to cut, add:
"———[some topic]"
2) when it's done add "K" at end
3) also mark the ends
4) edit in place, while you're still in telegram. try to make it good.
5) later, CTRL+F to find good cuts.
¶Telegram try #3
* use laptop
* scroll up
* select all
* copy to gedit
* cleanup:
???
* read and:
* structure (B, B+I, ...)
* annotate (@@, #, →→)
* ... other fragment marks via XXX🔗syntax
* mark NOW points
* [...]
____________________________
either:
A) make sure stuff actually gets moved
B) #mima.case (mima does it)
* use laptop
* scroll up
* select all
* copy to gedit
* cleanup:
???
* read and:
* structure (B, B+I, ...)
* annotate (@@, #, →→)
* ... other fragment marks via XXX🔗syntax
* mark NOW points
* [...]
____________________________
either:
A) make sure stuff actually gets moved
B) #mima.case (mima does it)
¶* INSTAGRAM
20220511: it just works!
Scroll up, copy+paste.
Missing:
* who is who
* timing
<----------------------------------------- (new) KNOW-HOW (per platform) ↑
20220511: it just works!
Scroll up, copy+paste.
Missing:
* who is who
* timing
<----------------------------------------- (new) KNOW-HOW (per platform) ↑
¶[a!!] TOOL— Useful plain text & text/html targets, side-by-side
https://html-online.com/editor/
(paste formatted text and see the html as well as seeing it rendered)
https://html-online.com/editor/
(paste formatted text and see the html as well as seeing it rendered)
¶[K] Paste Facebook URLs without their shit
https://www.facebook.com/groups/544959562590360/permalink/1073619586391019/?comment_id=1084959121923732&reply_comment_id=1085238545229123&__cft__[0]=AZW4QwpHlDZ29JkbDegssKOmwvxbHnU77qayav9DLq6PPEJKX-kHrAJ1lWeNyXqJymIQTPCwPiqePzDaLYserkYxtX_Ydh35Wovzu81Qj5Xy59fYWKs6KsDDBBmhgCbANEtCOLmdfy-7MC0ALGuES0Hxw0jwk4V5J1oWX_J5RlT9rUzrQXIVlo2rhntyhl1-4wU&__tn__=R]-R
↓↓↓
https://www.facebook.com/groups/544959562590360/permalink/1073619586391019/?comment_id=1084959121923732&reply_comment_id=1085238545229123
https://www.facebook.com/groups/544959562590360/permalink/1073619586391019/?comment_id=1084959121923732&reply_comment_id=1085238545229123&__cft__[0]=AZW4QwpHlDZ29JkbDegssKOmwvxbHnU77qayav9DLq6PPEJKX-kHrAJ1lWeNyXqJymIQTPCwPiqePzDaLYserkYxtX_Ydh35Wovzu81Qj5Xy59fYWKs6KsDDBBmhgCbANEtCOLmdfy-7MC0ALGuES0Hxw0jwk4V5J1oWX_J5RlT9rUzrQXIVlo2rhntyhl1-4wU&__tn__=R]-R
↓↓↓
https://www.facebook.com/groups/544959562590360/permalink/1073619586391019/?comment_id=1084959121923732&reply_comment_id=1085238545229123
¶[M!!] ### MERGE ... VIA BURNER
i wrote around yesterday 20210309/10 ???
(i spoke about +matic on telegram too)
includes ideas like:
* pre-define regexes
* work with SELECTION buffer, be able to auto-define transformation:
imagine - you select something, wait a bit and it auto-cleans up
... based on some ... keyboard combos, or parameters you're checking on/off
* [...]
________________________
SANITY CHECKS:
* pasting wiki or website →E2H links works
* strong/italic/etc are not lost
* cleaning up pasted URLs with facebook/social media crap in them !!!
i wrote around yesterday 20210309/10 ???
(i spoke about +matic on telegram too)
includes ideas like:
* pre-define regexes
* work with SELECTION buffer, be able to auto-define transformation:
imagine - you select something, wait a bit and it auto-cleans up
... based on some ... keyboard combos, or parameters you're checking on/off
* [...]
________________________
SANITY CHECKS:
* pasting wiki or website →E2H links works
* strong/italic/etc are not lost
* cleaning up pasted URLs with facebook/social media crap in them !!!
¶ [!!**] DEV— RESEARCH GTKSELECTIONDATA, AND WHAT TO DO WITH IT:
https://developer.gnome.org/gtk3/stable/gtk3-Selections.html
https://developer.gnome.org/pygtk/stable/class-gtkclipboard.html#method-gtkclipboard--set-with-data
###
anything else in the GtkSelectionData ???
https://developer.gnome.org/gtk3/stable/gtk3-Selections.html
https://developer.gnome.org/pygtk/stable/class-gtkclipboard.html#method-gtkclipboard--set-with-data
###
anything else in the GtkSelectionData ???
¶[!!!*] EXPLORE xclip COMMAND
$ xclip -selection primary -o -t TARGETS
THIS IS PROBABLY THE ONE
$ xclip -selection secondary -o -t TARGETS
$ xclip -selection clipboard -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
text/html
text/_moz_htmlcontext
text/_moz_htmlinfo
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/x-moz-url-priv
$ xclip -selection primary -o -t TARGETS
THIS IS PROBABLY THE ONE
$ xclip -selection secondary -o -t TARGETS
$ xclip -selection clipboard -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
text/html
text/_moz_htmlcontext
text/_moz_htmlinfo
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/x-moz-url-priv
¶[!] CASE— hiperdino order confirmation mail (2021-07-06 for example)
1) copy but in a sensible excel-import ready format
2) also fetch the images
------------
this might inckude an "import configuration" screen
1) copy but in a sensible excel-import ready format
2) also fetch the images
------------
this might inckude an "import configuration" screen
¶[!!*] CASE— wiki styling→e2h: soweto uprising
Use the first paragraph of ...
https://en.wikipedia.org/wiki/Soweto_uprising
"""
The Soweto uprising was a series of demonstrations and protests led by black school children in South Africa that began on the morning of 16 June 1976.[1]
"""
↓↓↓
"""
<meta http-equiv="content-type" content="text/html; charset=utf-8"><p>Students from numerous Sowetan schools began to protest in the streets of <a href="https://en.wikipedia.org/wiki/Soweto" title="Soweto">Soweto</a> in response to the introduction of <a href="https://en.wikipedia.org/wiki/Afrikaans" title="Afrikaans">Afrikaans</a> as the <a href="https://en.wikipedia.org/wiki/Medium_of_instruction" title="Medium of instruction">medium of instruction</a> in local schools.<sup id="cite_ref-2" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-2">[2]</a></sup> It is estimated that 20,000 students took part in the protests. They were met with fierce <a href="https://en.wikipedia.org/wiki/Police_brutality" title="Police brutality">police brutality</a>. The number of protesters killed by police is usually given as 176, but estimates of up to 700 have been made.<sup id="cite_ref-3" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-3">[3]</a></sup><sup id="cite_ref-Harrison_1987_4-0" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-Harrison_1987-4">[4]</a></sup><sup id="cite_ref-5" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-5">[5]</a></sup> In remembrance of these events, 16 June is now a public holiday in South Africa, named <a href="https://en.wikipedia.org/wiki/Youth_Day#South_Africa" title="Youth Day">Youth Day</a>.<sup id="cite_ref-6" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-6">[6]</a></sup>
Students from numerous Sowetan schools began to protest in the streets of Soweto in response to the introduction of Afrikaans as the medium of instruction in local schools.[2] It is estimated that 20,000 students took part in the protests. They were met with fierce police brutality. The number of protesters killed by police is usually given as 176, but estimates of up to 700 have been made.[3][4][5] In remembrance of these events, 16 June is now a public holiday in South Africa, named Youth Day.[6]
"""
Use the first paragraph of ...
https://en.wikipedia.org/wiki/Soweto_uprising
"""
The Soweto uprising was a series of demonstrations and protests led by black school children in South Africa that began on the morning of 16 June 1976.[1]
"""
↓↓↓
"""
<meta http-equiv="content-type" content="text/html; charset=utf-8"><p>Students from numerous Sowetan schools began to protest in the streets of <a href="https://en.wikipedia.org/wiki/Soweto" title="Soweto">Soweto</a> in response to the introduction of <a href="https://en.wikipedia.org/wiki/Afrikaans" title="Afrikaans">Afrikaans</a> as the <a href="https://en.wikipedia.org/wiki/Medium_of_instruction" title="Medium of instruction">medium of instruction</a> in local schools.<sup id="cite_ref-2" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-2">[2]</a></sup> It is estimated that 20,000 students took part in the protests. They were met with fierce <a href="https://en.wikipedia.org/wiki/Police_brutality" title="Police brutality">police brutality</a>. The number of protesters killed by police is usually given as 176, but estimates of up to 700 have been made.<sup id="cite_ref-3" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-3">[3]</a></sup><sup id="cite_ref-Harrison_1987_4-0" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-Harrison_1987-4">[4]</a></sup><sup id="cite_ref-5" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-5">[5]</a></sup> In remembrance of these events, 16 June is now a public holiday in South Africa, named <a href="https://en.wikipedia.org/wiki/Youth_Day#South_Africa" title="Youth Day">Youth Day</a>.<sup id="cite_ref-6" class="reference"><a href="https://en.wikipedia.org/wiki/Soweto_uprising#cite_note-6">[6]</a></sup>
Students from numerous Sowetan schools began to protest in the streets of Soweto in response to the introduction of Afrikaans as the medium of instruction in local schools.[2] It is estimated that 20,000 students took part in the protests. They were met with fierce police brutality. The number of protesters killed by police is usually given as 176, but estimates of up to 700 have been made.[3][4][5] In remembrance of these events, 16 June is now a public holiday in South Africa, named Youth Day.[6]
"""
¶[!!**] CASE/CUTS— copy TWEET / YOUTUBE link, get EXPANDED COPY BUFFER
(title, author, cleaned link, etc)
(title, author, cleaned link, etc)
¶[!!**] CASE/CUTS— make ROUGH COPY, get cleaned up
IN: rough copy a tweet (over the time including link)
OUT: something orderly
IN: rough copy a tweet (over the time including link)
OUT: something orderly
¶[!**] CASE/CUTS— Long text
https://www.marxists.org/archive/lukacs/works/1943/hegel-nazis.htm
* lines broken
* delimiters not properly exposed (#HEADERING)
* ###
https://www.marxists.org/archive/lukacs/works/1943/hegel-nazis.htm
* lines broken
* delimiters not properly exposed (#HEADERING)
* ###
¶[~] CASE— (some mailing list trash)
"""
https://news.gandi.net/en/2022/02/how-to-use-bigbluebutton/?affiliate=NL_EN_Mar22&pk_campaign=Newsletter_EN_Mar22&pk_kwd=NL_EN_Mar22&pk_source=NL&pk_medium=email&pk_content=news1_bbb&at_campaign=Newsletter_EN_Mar22&at_send_date=Mar22&at_creation=NL_EN_Mar22&at_link=news1_bbb&at_medium=email&at_emailtype=retention&at_recipient_list=EN
"""
"""
https://news.gandi.net/en/2022/02/how-to-use-bigbluebutton/?affiliate=NL_EN_Mar22&pk_campaign=Newsletter_EN_Mar22&pk_kwd=NL_EN_Mar22&pk_source=NL&pk_medium=email&pk_content=news1_bbb&at_campaign=Newsletter_EN_Mar22&at_send_date=Mar22&at_creation=NL_EN_Mar22&at_link=news1_bbb&at_medium=email&at_emailtype=retention&at_recipient_list=EN
"""
¶[!!*] BUG/WIKI— handling "]" closing brackets
"""
A concept that we can perceive as critique and mostly as renewal is the concept of coloniality (Anibal Quijano, 2000, Nepantla, Coloniality of power, eurocentrism and Latin America).[47]
"""
Solution → escaping!
"""
A concept that we can perceive as critique and mostly as renewal is the concept of coloniality (Anibal Quijano, 2000, Nepantla, Coloniality of power, eurocentrism and Latin America).[47]
"""
Solution → escaping!
¶CASE— Remove tracking trash
example
https://mronline.org/2022/03/10/discerning-volodymyr-zelensky
https://mronline.org/2022/03/10/discerning-volodymyr-zelensky
————— was "dev-xclip"
example
https://mronline.org/2022/03/10/discerning-volodymyr-zelensky
https://mronline.org/2022/03/10/discerning-volodymyr-zelensky
————— was "dev-xclip"
¶[!*] Work with SECONDARY BUFFER (selection)
* primary buffer = copied
(aka COPY BUFFER)
* secondary buffer = selected
(aka SELECTION BUFFER)
* primary buffer = copied
(aka COPY BUFFER)
* secondary buffer = selected
(aka SELECTION BUFFER)
¶[!] HACK— THE CONCEPT (select → middle click in terminal → kaboom)
#oldie [m!]
The idea is that selecting or "pasting with middle click" could trigger commands
* can you keep & change focus?
UPDATE— not sure what i meant here ↑
The idea is that selecting or "pasting with middle click" could trigger commands
¶[e!!*] UX/INTERACTIVE— On-screen display
Show on-screen what is copied & what it could change into.
Exciting!
* Query buffer every second!
* Use "zev" or something for prototype!
* Offer different reform options!
* Implement "multi-buffer" with this!
* ###
Show on-screen what is copied & what it could change into.
Exciting!
* Query buffer every second!
* Use "zev" or something for prototype!
* Offer different reform options!
* Implement "multi-buffer" with this!
* ###
¶(MORE DOCS)
"""
actually ..........
via
https://stackoverflow.com/posts/16960316/revisions
also see:
* https://superuser.com/questions/181357/is-there-an-xsel-equivalent-that-supports-rtf
* https://stackoverflow.com/questions/4486376/does-the-gnome-clipboard-have-a-mime-type-associated-with-the-data
* [...]
"""
actually ..........
via
https://stackoverflow.com/posts/16960316/revisions
also see:
* https://superuser.com/questions/181357/is-there-an-xsel-equivalent-that-supports-rtf
* https://stackoverflow.com/questions/4486376/does-the-gnome-clipboard-have-a-mime-type-associated-with-the-data
* [...]
¶(ETHERPAD EXAMPLE WORKS!)
GIVES:
"""
<div id="magicdomid14" class="ace-line"><span class="author-a-0tz122za1z90zz82z4uicz88ztqpz75z b"><b>You are interested to come or visit</b></span><span class="author-a-z88zhz73zjbtpz76zz76zz82zz72zz73zvbyz90z b"><b> sometime ...</b></span></div><div id="magicdomid15" class="ace-line"><span class="author-a-z66zz79zrl2yz75zz66zz83ziz67zhz70zz84zsa b"><b></b></span></div>
"""
(and just paste it back)!
"""
GIVES:
"""
<div id="magicdomid14" class="ace-line"><span class="author-a-0tz122za1z90zz82z4uicz88ztqpz75z b"><b>You are interested to come or visit</b></span><span class="author-a-z88zhz73zjbtpz76zz76zz82zz72zz73zvbyz90z b"><b> sometime ...</b></span></div><div id="magicdomid15" class="ace-line"><span class="author-a-z66zz79zrl2yz75zz66zz83ziz67zhz70zz84zsa b"><b></b></span></div>
"""
(and just paste it back)!
"""
¶ (A) BEFORE set_properlly
dcht00@chetvertyy:/x_hyperpaste$ xclip -selection clipboard -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain
_____________________________________
_ _ _ _ TIMESTAMP
b'\x95iQ\x07\x00\x00\x00\x00'
_ _ _ _ TARGETS
b'\x86\x00\x00\x00\x00\x00\x00\x00\x82\x00\x00\x00\x00\x00\x00\x00\x85\x00\x00\x00\x00\x00\x00\x00\x87\x00\x00\x00\x00\x00\x00\x00\x89\x00\x00\x00\x00\x00\x00\x00\x8a\x00\x00\x00\x00\x00\x00\x00F\x00\x00\x00\x00\x00\x00\x00\x8b\x00\x00\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x8d\x00\x00\x00\x00\x00\x00\x00\x8e\x00\x00\x00\x00\x00\x00\x00'
_ _ _ _ MULTIPLE
_ _ _ _ SAVE_TARGETS
b''
_ _ _ _ GTK_TEXT_BUFFER_CONTENTS
b'`V$\xb0\x86U\x00\x00'
_ _ _ _ application/x-gtk-text-buffer-rich-text
b'GTKTEXTBUFFERCONTENTS-0001\x00\x00\x00\xeb <text_view_markup>\n <tags>\n <tag name="gtksourceview:context-classes:no-spell-check" priority="18">\n </tag>\n </tags>\n<text><apply_tag name="gtksourceview:context-classes:no-spell-check">aaaaa\n</apply_tag></text>\n</text_view_markup>\n'
_ _ _ _ UTF8_STRING
b'aaaaa\n'
_ _ _ _ COMPOUND_TEXT
b'aaaaa\n'
_ _ _ _ TEXT
b'aaaaa\n'
_ _ _ _ STRING
b'aaaaa\n'
_ _ _ _ text/plain;charset=utf-8
b'aaaaa\r\n'
_ _ _ _ text/plain
b'aaaaa\r\n'
dcht00@chetvertyy:/x_hyperpaste$ xclip -selection clipboard -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain
_____________________________________
_ _ _ _ TIMESTAMP
b'\x95iQ\x07\x00\x00\x00\x00'
_ _ _ _ TARGETS
b'\x86\x00\x00\x00\x00\x00\x00\x00\x82\x00\x00\x00\x00\x00\x00\x00\x85\x00\x00\x00\x00\x00\x00\x00\x87\x00\x00\x00\x00\x00\x00\x00\x89\x00\x00\x00\x00\x00\x00\x00\x8a\x00\x00\x00\x00\x00\x00\x00F\x00\x00\x00\x00\x00\x00\x00\x8b\x00\x00\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x8d\x00\x00\x00\x00\x00\x00\x00\x8e\x00\x00\x00\x00\x00\x00\x00'
_ _ _ _ MULTIPLE
_ _ _ _ SAVE_TARGETS
b''
_ _ _ _ GTK_TEXT_BUFFER_CONTENTS
b'`V$\xb0\x86U\x00\x00'
_ _ _ _ application/x-gtk-text-buffer-rich-text
b'GTKTEXTBUFFERCONTENTS-0001\x00\x00\x00\xeb <text_view_markup>\n <tags>\n <tag name="gtksourceview:context-classes:no-spell-check" priority="18">\n </tag>\n </tags>\n<text><apply_tag name="gtksourceview:context-classes:no-spell-check">aaaaa\n</apply_tag></text>\n</text_view_markup>\n'
_ _ _ _ UTF8_STRING
b'aaaaa\n'
_ _ _ _ COMPOUND_TEXT
b'aaaaa\n'
_ _ _ _ TEXT
b'aaaaa\n'
_ _ _ _ STRING
b'aaaaa\n'
_ _ _ _ text/plain;charset=utf-8
b'aaaaa\r\n'
_ _ _ _ text/plain
b'aaaaa\r\n'
¶ (B) AFTER set_properly
dcht00@chetvertyy:/x_hyperpaste$ xclip -selection clipboard -o -t TARGETS
text/plain;charset=utf-8
UTF8_STRING
TARGETS
TIMESTAMP
/////////////////////////////
_ _ _ _ TIMESTAMP
b'\xce\x92Q\x07\x00\x00\x00\x00'
_ _ _ _ TARGETS
b'\x86\x00\x00\x00\x00\x00\x00\x00\x82\x00\x00\x00\x00\x00\x00\x00\x85\x00\x00\x00\x00\x00\x00\x00\x87\x00\x00\x00\x00\x00\x00\x00F\x00\x00\x00\x00\x00\x00\x00\x8b\x00\x00\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x8d\x00\x00\x00\x00\x00\x00\x00\x8e\x00\x00\x00\x00\x00\x00\x00'
_ _ _ _ MULTIPLE
_ _ _ _ SAVE_TARGETS
b''
_ _ _ _ UTF8_STRING
b'yyyyyyyyyyyyyyyy'
_ _ _ _ COMPOUND_TEXT
b'yyyyyyyyyyyyyyyy'
_ _ _ _ TEXT
b'yyyyyyyyyyyyyyyy'
_ _ _ _ STRING
b'yyyyyyyyyyyyyyyy'
_ _ _ _ text/plain;charset=utf-8
b'yyyyyyyyyyyyyyyy'
_ _ _ _ text/plain
b'yyyyyyyyyyyyyyyy'
dcht00@chetvertyy:/x_hyperpaste$ xclip -selection clipboard -o -t TARGETS
text/plain;charset=utf-8
UTF8_STRING
TARGETS
TIMESTAMP
/////////////////////////////
_ _ _ _ TIMESTAMP
b'\xce\x92Q\x07\x00\x00\x00\x00'
_ _ _ _ TARGETS
b'\x86\x00\x00\x00\x00\x00\x00\x00\x82\x00\x00\x00\x00\x00\x00\x00\x85\x00\x00\x00\x00\x00\x00\x00\x87\x00\x00\x00\x00\x00\x00\x00F\x00\x00\x00\x00\x00\x00\x00\x8b\x00\x00\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x8d\x00\x00\x00\x00\x00\x00\x00\x8e\x00\x00\x00\x00\x00\x00\x00'
_ _ _ _ MULTIPLE
_ _ _ _ SAVE_TARGETS
b''
_ _ _ _ UTF8_STRING
b'yyyyyyyyyyyyyyyy'
_ _ _ _ COMPOUND_TEXT
b'yyyyyyyyyyyyyyyy'
_ _ _ _ TEXT
b'yyyyyyyyyyyyyyyy'
_ _ _ _ STRING
b'yyyyyyyyyyyyyyyy'
_ _ _ _ text/plain;charset=utf-8
b'yyyyyyyyyyyyyyyy'
_ _ _ _ text/plain
b'yyyyyyyyyyyyyyyy'
¶ → CONCLUSIONS [!!!**]
IT IS STILL PASTING THE OLD STRING THOUGH!
MEANS → SO IT IS SOME OTHER FUCKING BUFFER (than what we are displaying in "AFTER"),
WE ARE EVEN READING FROM WRONG ONE
IT IS STILL PASTING THE OLD STRING THOUGH!
MEANS → SO IT IS SOME OTHER FUCKING BUFFER (than what we are displaying in "AFTER"),
WE ARE EVEN READING FROM WRONG ONE
¶[!→→] PROJECT— The old "copy buffer" hack idea
Idea @ Berlin 2019 [M!]
https://www.euromoney.com/article/29sh7rxz38y3j2kd7vmrk/treasury/chinas-cips-trapped-in-swifts-shadow
This has the javascript for it
(it replaces your copy buffer!)
————————————— via "dev-xclip" ——————————
Idea @ Berlin 2019 [M!]
https://www.euromoney.com/article/29sh7rxz38y3j2kd7vmrk/treasury/chinas-cips-trapped-in-swifts-shadow
This has the javascript for it
(it replaces your copy buffer!)
————————————— via "dev-xclip" ——————————
¶[!→] cycling windows with "wmctrl"
(could be used to wake up lazy firefox loading of "firefox window inserts"...)
https://stackoverflow.com/questions/15172735/cycle-through-windows-of-the-same-application-using-wmcrtl
(could be used to wake up lazy firefox loading of "firefox window inserts"...)
https://stackoverflow.com/questions/15172735/cycle-through-windows-of-the-same-application-using-wmcrtl
¶(MOCK EARLY CODE, from "dev-xclip")
import glib, gtk
def test_clipboard():
clipboard = gtk.Clipboard()
targets = clipboard.wait_for_targets()
print
print
print("________________________")
print "Targets available:"
print
print "_______________________________________________________________"
print "Hmm ", " ......... ".join(map(str, targets))
"""
for x in targets:
print x
print
"""
for target in targets:
print
print("@" + str(target))
print("__________________")
contents = clipboard.wait_for_contents(target)
if contents:
print contents.data
print("________________________")
print
def main():
mainloop = glib.MainLoop()
def cb():
test_clipboard()
mainloop.quit()
glib.idle_add(cb)
mainloop.run()
if __name__ == "__main__":
main()
____________________________________________________________________________________________________
import glib, gtk
def test_clipboard():
clipboard = gtk.Clipboard()
targets = clipboard.wait_for_targets()
print("________________________")
print "Targets available:"
print "_______________________________________________________________"
print "Hmm ", " ......... ".join(map(str, targets))
"""
for x in targets:
print x
"""
for target in targets:
print("@" + str(target))
print("__________________")
contents = clipboard.wait_for_contents(target)
if contents:
print contents.data
print("________________________")
def main():
mainloop = glib.MainLoop()
def cb():
test_clipboard()
mainloop.quit()
glib.idle_add(cb)
mainloop.run()
if __name__ == "__main__":
main()
____________________________________________________________________________________________________
¶(dev-xclip sources)
https://stackoverflow.com/questions/3261379/getting-html-source-or-rich-text-from-the-x-clipboard
https://unix.stackexchange.com/questions/15101/how-to-avoid-escape-sequence-attacks-in-terminals
https://stackoverflow.com/questions/3261379/getting-html-source-or-rich-text-from-the-x-clipboard
https://unix.stackexchange.com/questions/15101/how-to-avoid-escape-sequence-attacks-in-terminals
¶CASE— (zima/yuan statut does NOT copy well)
https://e-ucenje.ff.uni-lj.si/mod/resource/view.php?id=338978
<------------------------------- ((new))
https://e-ucenje.ff.uni-lj.si/mod/resource/view.php?id=338978
<------------------------------- ((new))