Using Geany, is it possible to convert an existing text that contains HTML entities to UTF-8 characters?
On Fri, 12 May 2023 at 07:17, H via Users users@lists.geany.org wrote:
Using Geany, is it possible to convert an existing text that contains HTML entities to UTF-8 characters?
No, and I'm not sure what would do it except writing a custom script in Python or similar language.
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On 05/11/2023 07:33 PM, Lex Trotman via Users wrote:
On Fri, 12 May 2023 at 07:17, H via Users users@lists.geany.org wrote:
Using Geany, is it possible to convert an existing text that contains HTML entities to UTF-8 characters?
No, and I'm not sure what would do it except writing a custom script in Python or similar language.
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
I see, that would have been a nice additional function. Perhaps the author of the excellent plugin "HTML Characters" could be persuaded to add it since it is the reverse of what that plugin does?
If "somebody" provided a pull request it could probably be added.
Cheers Lex
On Sat, 13 May 2023 at 11:17, H via Users users@lists.geany.org wrote:
On 05/11/2023 07:33 PM, Lex Trotman via Users wrote:
On Fri, 12 May 2023 at 07:17, H via Users users@lists.geany.org wrote:
Using Geany, is it possible to convert an existing text that contains HTML entities to UTF-8 characters?
No, and I'm not sure what would do it except writing a custom script in Python or similar language.
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
I see, that would have been a nice additional function. Perhaps the author of the excellent plugin "HTML Characters" could be persuaded to add it since it is the reverse of what that plugin does?
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On May 12, 2023 9:45:44 PM EDT, Lex Trotman via Users users@lists.geany.org wrote:
If "somebody" provided a pull request it could probably be added.
Cheers Lex
On Sat, 13 May 2023 at 11:17, H via Users users@lists.geany.org wrote:
On 05/11/2023 07:33 PM, Lex Trotman via Users wrote:
On Fri, 12 May 2023 at 07:17, H via Users users@lists.geany.org
wrote:
Using Geany, is it possible to convert an existing text that
contains HTML entities to UTF-8 characters?
No, and I'm not sure what would do it except writing a custom
script
in Python or similar language.
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
I see, that would have been a nice additional function. Perhaps the
author of the excellent plugin "HTML Characters" could be persuaded to add it since it is the reverse of what that plugin does?
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Ok, I'll provide a pull request but how do I do that?
A pull request means you have written the C code to provide the feature and are providing it to the project. Are you a competent C programmer? If so "somebody" refers to you and github help and Geany HACKING file should be your starting point.
If you are not a competent C programmer then "somebody" refers to "somebody who isn't you, or me" :-)
Cheers Lex
On Sat, 13 May 2023 at 12:02, H via Users users@lists.geany.org wrote:
On May 12, 2023 9:45:44 PM EDT, Lex Trotman via Users users@lists.geany.org wrote:
If "somebody" provided a pull request it could probably be added.
Cheers Lex
On Sat, 13 May 2023 at 11:17, H via Users users@lists.geany.org wrote:
On 05/11/2023 07:33 PM, Lex Trotman via Users wrote:
On Fri, 12 May 2023 at 07:17, H via Users users@lists.geany.org
wrote:
Using Geany, is it possible to convert an existing text that
contains HTML entities to UTF-8 characters?
No, and I'm not sure what would do it except writing a custom
script
in Python or similar language.
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
I see, that would have been a nice additional function. Perhaps the
author of the excellent plugin "HTML Characters" could be persuaded to add it since it is the reverse of what that plugin does?
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Ok, I'll provide a pull request but how do I do that? _______________________________________________ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On May 12, 2023 10:15:02 PM EDT, Lex Trotman via Users users@lists.geany.org wrote:
A pull request means you have written the C code to provide the feature and are providing it to the project. Are you a competent C programmer? If so "somebody" refers to you and github help and Geany HACKING file should be your starting point.
If you are not a competent C programmer then "somebody" refers to "somebody who isn't you, or me" :-)
Cheers Lex
On Sat, 13 May 2023 at 12:02, H via Users users@lists.geany.org wrote:
On May 12, 2023 9:45:44 PM EDT, Lex Trotman via Users
users@lists.geany.org wrote:
If "somebody" provided a pull request it could probably be added.
Cheers Lex
On Sat, 13 May 2023 at 11:17, H via Users users@lists.geany.org wrote:
On 05/11/2023 07:33 PM, Lex Trotman via Users wrote:
On Fri, 12 May 2023 at 07:17, H via Users
wrote:
Using Geany, is it possible to convert an existing text that
contains HTML entities to UTF-8 characters?
No, and I'm not sure what would do it except writing a custom
script
in Python or similar language.
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
I see, that would have been a nice additional function. Perhaps
the
author of the excellent plugin "HTML Characters" could be persuaded
to
add it since it is the reverse of what that plugin does?
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Ok, I'll provide a pull request but how do I do that? _______________________________________________ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Aha, got it. Sadly no, it's been a long time since I wrote C code...
I will check who the maintainer is of that plugin and see if he/she might be interested.
...
Aha, got it. Sadly no, it's been a long time since I wrote C code...
I will check who the maintainer is of that plugin and see if he/she might be interested.
HTML chars is part of the Geany repository, so it doesn't have an individual maintainer, unlike those in the Geany-plugins collection.
You can make an issue requesting the feature on the Geany repo and see if you can interest "somebody".
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Hi there, have you tried using an external command via the "*Build > Set Build Commands*" feature? You could use *recode* or a similar perl command, as shown in https://stackoverflow.com/questions/5929492/bash-script-to-convert-from-html...
Kind regards, -- *Lucas Vieites https://namedrop.io/lucasvieites* Blog @ codexion.com https://blog.codexion.com/ LinkedIn https://www.linkedin.com/in/lucasvieites
On Sun, May 14, 2023 at 3:27 AM Lex Trotman via Users users@lists.geany.org wrote:
...
Aha, got it. Sadly no, it's been a long time since I wrote C code...
I will check who the maintainer is of that plugin and see if he/she
might be interested.
HTML chars is part of the Geany repository, so it doesn't have an individual maintainer, unlike those in the Geany-plugins collection.
You can make an issue requesting the feature on the Geany repo and see if you can interest "somebody".
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On 05/17/2023 02:45 AM, Lucas Vieites via Users wrote:
Hi there, have you tried using an external command via the "*Build > Set Build Commands*" feature? You could use /recode/ or a similar perl command, as shown in https://stackoverflow.com/questions/5929492/bash-script-to-convert-from-html...
Kind regards,
*Lucas Vieites https://namedrop.io/lucasvieites* Blog @ codexion.com https://blog.codexion.com/ LinkedIn https://www.linkedin.com/in/lucasvieites
On Sun, May 14, 2023 at 3:27 AM Lex Trotman via Users <users@lists.geany.org mailto:users@lists.geany.org> wrote:
... > Aha, got it. Sadly no, it's been a long time since I wrote C code... > > I will check who the maintainer is of that plugin and see if he/she might be interested. HTML chars is part of the Geany repository, so it doesn't have an individual maintainer, unlike those in the Geany-plugins collection. You can make an issue requesting the feature on the Geany repo and see if you can interest "somebody". Cheers Lex > _______________________________________________ > Users mailing list -- users@lists.geany.org <mailto:users@lists.geany.org> > To unsubscribe send an email to users-leave@lists.geany.org <mailto:users-leave@lists.geany.org> _______________________________________________ Users mailing list -- users@lists.geany.org <mailto:users@lists.geany.org> To unsubscribe send an email to users-leave@lists.geany.org <mailto:users-leave@lists.geany.org>
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Thank you, brilliant idea! I chose to add
perl -C -MHTML::Entities -pe 'decode_entities($_);' %f > %f.html
as a build command and it worked great on my (single) example.
On 05/17/2023 07:51 PM, H wrote:
On 05/17/2023 02:45 AM, Lucas Vieites via Users wrote:
Hi there, have you tried using an external command via the "*Build > Set Build Commands*" feature? You could use /recode/ or a similar perl command, as shown in https://stackoverflow.com/questions/5929492/bash-script-to-convert-from-html...
Kind regards,
*Lucas Vieites https://namedrop.io/lucasvieites* Blog @ codexion.com https://blog.codexion.com/ LinkedIn https://www.linkedin.com/in/lucasvieites
On Sun, May 14, 2023 at 3:27 AM Lex Trotman via Users <users@lists.geany.org mailto:users@lists.geany.org> wrote:
... > Aha, got it. Sadly no, it's been a long time since I wrote C code... > > I will check who the maintainer is of that plugin and see if he/she might be interested. HTML chars is part of the Geany repository, so it doesn't have an individual maintainer, unlike those in the Geany-plugins collection. You can make an issue requesting the feature on the Geany repo and see if you can interest "somebody". Cheers Lex > _______________________________________________ > Users mailing list -- users@lists.geany.org <mailto:users@lists.geany.org> > To unsubscribe send an email to users-leave@lists.geany.org <mailto:users-leave@lists.geany.org> _______________________________________________ Users mailing list -- users@lists.geany.org <mailto:users@lists.geany.org> To unsubscribe send an email to users-leave@lists.geany.org <mailto:users-leave@lists.geany.org>
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Thank you, brilliant idea! I chose to add
perl -C -MHTML::Entities -pe 'decode_entities($_);' %f > %f.html
as a build command and it worked great on my (single) example.
While the above works great, it saves the output to a new file. Is it possible to configure the build command so that the file I am viewing (and running the command on) gets updated in the view?
Thank you, brilliant idea! I chose to add
perl -C -MHTML::Entities -pe 'decode_entities($_);' %f > %f.html
as a build command and it worked great on my (single) example.
While the above works great, it saves the output to a new file. Is it possible to configure the build command so that the file I am viewing (and running the command on) gets updated in the view?
No, but if you configure the Perl to read from stdin and write to stdout you can use a custom command which feeds the selection to stdin and replaces it with stdout. (Hint ctrl-a selects the whole file).
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org