It is currently Sat Jul 06, 2024 6:42 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Sat Mar 09, 2019 10:34 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi Nidhogg.

This is very good news. :hi5
Can You add a version for Linux users in the attachment and " how to" use/install them?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Sun Mar 10, 2019 6:49 am  (#22) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Of course MareroQ, it was very simple text edit.

Requirements: GucharMap aka Gnome Character Map, most of the Linux distributions include it by default.
If not, you can install it via Software, Synaptic or Terminal.
Installing the plug-ins is done the normal way. Just extract the .zip archive and drop them in your user plug-ins folder.
Kept the menu entry same than your Win versions have.

After first time running "Run GucharMap" one needs to switch on 'View by unicode block' from the view menu.
You choose the emoji by double-clicking, then use copy button (ctrl+c) and run the "GucharMap (text) to Gimp".


Attachments:
GucharMapToGimp.zip [2.54 KiB]
Downloaded 215 times
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Sun Mar 10, 2019 8:36 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Thank you very much.
Unfortunately, for a long time I do not have a Linux computer, so I prefer to rely on experienced users (certainly someone will benefit).

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Wed Dec 04, 2019 9:54 am  (#24) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Two new sets:

- Currency and Intellectual property,
- Colorful 100 animals (but only for good children ...)

Plugin Animals (in colors) tested only with Gimp 2.10.14 in Win10.


Attachments:
Currency and Intellectual property.png
Currency and Intellectual property.png [ 50.45 KiB | Viewed 3915 times ]
100_Animals.png
100_Animals.png [ 584.76 KiB | Viewed 3915 times ]
Unicode_animals_and_currency.zip [6.83 KiB]
Downloaded 147 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Wed Dec 04, 2019 12:11 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Image


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Thu Dec 05, 2019 6:39 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2066
Location: East Midlands of England
Wow MareroQ! Great stuff!

Don't know how I missed this thread but I have also been working on something similar in an experimental version of Custom Fonts Layers With Forced Margins.

I am thinking more along using keywords (possibly from options in a later version) to extract a subset of similar unicode characters that could be useful for producing decorative ornaments

I am failing miserably with characters above a certain unicode range - they generate errors.

My basic idea is to produce a set of custom font character type layers that you can apply various decorative filters to and then copy these to other images.

Will create a separate thread to illustrate my efforts.

_________________
Image

"Let no one steal your dreams."
Paul Cookson


Latest plug-in update: Paragrapher v.1.4
Custom Font Links
Tools
Character Paths
White Bases


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Fri Dec 06, 2019 1:37 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi Skinnyhouse.

You write:

I am failing miserably with characters above a certain unicode range - they generate errors.

Also the same problem with me (topic 18).
I found a strange, temporary(?) solution presented in Animals (and I still don't understand why it works - but I'm convinced that it's only for Windows).
I have some more coding ideas to try ...


Attachments:
Happy Santa.png
Happy Santa.png [ 30.26 KiB | Viewed 3848 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Fri Dec 06, 2019 3:12 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2066
Location: East Midlands of England
Yes - I too have further work to try - part of the fun - part of the pain.

Attachment:
yingyang.jpg
yingyang.jpg [ 112.52 KiB | Viewed 3837 times ]

_________________
Image

"Let no one steal your dreams."
Paul Cookson


Latest plug-in update: Paragrapher v.1.4
Custom Font Links
Tools
Character Paths
White Bases


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Thu Dec 26, 2019 9:47 am  (#29) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Expert for fonts SkinnyHouse has developed a set of 80 UNICODE character groups.
I took advantage of: Custom_Fonts_Layers_With_Forced_Margins_V003.py
viewtopic.php?f=9&t=17864#p245102

It's a lot of work that can be used in various ways.
One of the advantages of such a huge set is the ability to opt out of using BabelMap.

This plugin is just a fragment of the source code - added only option the drop-down list (alphabetically).
Now you can select the desired group and all of them single characters will be displayed as fonts (although few incorrectly) and paths.
Font name e.g. can be copied and pasted into the "BabelMap (text) to GIMP" plugin.
Many thanks to SkinnyHouse.


Attachments:
Eighty character_groups by SkinyHouse.png
Eighty character_groups by SkinyHouse.png [ 21.67 KiB | Viewed 3414 times ]
Unicode_to_shape_80_character_groups.zip [5.31 KiB]
Downloaded 144 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Thu Dec 26, 2019 2:45 pm  (#30) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
MareroQ wrote:
Expert for fonts SkinnyHouse has developed a set of 80 UNICODE character groups.
I took advantage of: Custom_Fonts_Layers_With_Forced_Margins_V003.py
viewtopic.php?f=9&t=17864#p245102

It's a lot of work that can be used in various ways.
One of the advantages of such a huge set is the ability to opt out of using BabelMap.

This plugin is just a fragment of the source code - added only option the drop-down list (alphabetically).
Now you can select the desired group and all of them single characters will be displayed as fonts (although few incorrectly) and paths.
Font name e.g. can be copied and pasted into the "BabelMap (text) to GIMP" plugin.
Many thanks to SkinnyHouse.

This is a nice addition to SkinnyHouse's ever expanding custom fonts.
:coolthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Fri Dec 27, 2019 12:29 am  (#31) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Only one example of the possibilities of the SkinnyHouse code. :tyspin
Group: Emoticon (used for connection - ofn-layer-tiles.py :coolthup )


Attachments:
Example Emoticon.png
Example Emoticon.png [ 784.18 KiB | Viewed 4813 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Fri Dec 27, 2019 10:25 am  (#32) 
Offline
GimpChat Member

Joined: Jun 22, 2019
Posts: 8
Gimp 2.10.14 - Linux Mint 19.3 Tricia (based on Ubuntu 18.04 )

Thank you very much MareroQ!

Unfortunately, only a small subset of the symbols are rendered here in Linux. With Symbola.ttf, a special font for symbols is active throughout the system. For some reason this is not used by the script. :(

It would therefore be very helpful if one could select a specific font to use from the script. Perhaps it is possible to include an appropriate option for the user !?

Thanks again!


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Fri Dec 27, 2019 2:25 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
@ C-T-S

I'm sorry that it doesn't work for Linux (unfortunately I had such guesses).
I don't know if it is possible to solve this problem.
When it comes to choosing a font, that's is only post #12 .
It is possible that SkinnyHause will find a good solution.

However, I made some comparison (I chose the Fantasy group):

1. I disabled Windows fonts and Gimp used the installed Symbola.ttf font
2. I have re-enabled Windows fonts without uninstalling Symbola.ttf

However, this is still a test in Windows 10 however, I am curious (for Linux):
- what will you get when you use this group,
- how two attached xcf files will open in Gimp 2.10 (especially Fantasy-fonts.xcf)


Attachments:
Comparison of results.png
Comparison of results.png [ 25.3 KiB | Viewed 4778 times ]
test.7z [71.42 KiB]
Downloaded 172 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Fri Dec 27, 2019 6:50 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2066
Location: East Midlands of England
looking good...
I know that you know this MareroQ but others may not.

Looks like all you need to do is add the appropriate font option to your dialog code MareroQ and then @ C-T-S can choose the font from the menu
Add a reference (font_name) to the font to use from the filter dialog in line 20:
def do_stuff(image, layer, font_name,  font_size, symbols, display_keywords):

Add the font selector by inserting this line after line 648
    (PF_FONT, "pf_font", "Font: ", "Sans"),

and add an entry to the pdb call that creates the layer - replacing line 580...
     text_layer = pdb.gimp_text_fontname(image, None,0, 0, eval(symbol_list[loop]), 0, 1, font_size, 1, 1)

with
    text_layer = pdb.gimp_text_fontname(image, None,0, 0, eval(symbol_list[loop]), 0, 1, font_size, 1,  font_name)   

_________________
Image

"Let no one steal your dreams."
Paul Cookson


Latest plug-in update: Paragrapher v.1.4
Custom Font Links
Tools
Character Paths
White Bases


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Fri Dec 27, 2019 11:08 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
As for me in Windows, choosing a font has no effect on UNICODE characters, so for the purpose of this plugin I have also removed this option from Your code.

I will be very surprised if it works in some way for Linux (@CTS - I request information).

I did some searches for UNICODE in Linux (https://michal.kosmulski.org/computing/ ... icode.html) and things don't look good (not every Linux system can easy to handle it - except for the "Hold down the shift and control keys while typing "u" and the hex values of the Unicode character you wish to enter") and if so, only in the older version of the character set.

And a question of great curiosity - why you are canceling the option of using paths - maybe as an option? (because they are created only specially deleted).

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Sat Dec 28, 2019 3:12 am  (#36) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2066
Location: East Midlands of England
Hi M:

I know absolutely nothing about other platforms - as you can probably tell from my last comments.

I assumed that the handling of unicode characters ie substituting missing characters from one font with another unicode font (which came as a surprise to me when I started on the original filter) was a python thing rather than strictly a GIMP thing. And also I assumed mistakenly that this would carry over onto other operating systems - you can but hope.

So basically I can offer no help here.

With regards to the paths.
I am struggling to remember what my original intentions were but think I used the paths to fill a monocrome version of the unicode symbols for use with custom font filters. Taking them directly from the font can, as you know, renders some symbols/emoticons in colour(for browser use I assume) which does not work very well for my purpose. So once filled the paths were of no use to me in the context of creating layers for custom fonts.
Hope this makes sense.

Will follow your good work with interest - and if I do come across anything of relevance I shall let you know...

_________________
Image

"Let no one steal your dreams."
Paul Cookson


Latest plug-in update: Paragrapher v.1.4
Custom Font Links
Tools
Character Paths
White Bases


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Sat Dec 28, 2019 12:27 pm  (#37) 
Offline
GimpChat Member

Joined: Jun 22, 2019
Posts: 8
@MareroQ

Thank you for your answer and efforts on this issue!

The attached gimp files initially appear correctly in gimp. But if you try to edit the layers, the contents of the layers will be lost, while the corresponding path is preserved.

Attachment:
ConfirmTextEditing_.jpg
ConfirmTextEditing_.jpg [ 107.91 KiB | Viewed 4734 times ]



But in the meantime I'm completely confused about how to use unicode on Linux. Various unicode blocks, for example emoticons, are not available although they are included in the fonts .......!???? Copying and pasting from Gucharmap as usual is not possible. This could also be a reason why LibreOffice has an extra solution for entering emoticons.
Attachment:
ConfirmTextEditing-.jpg
ConfirmTextEditing-.jpg [ 170.97 KiB | Viewed 4734 times ]



@ Skinnyhouse
Thank you also for your effort!

I changed the script as described and received the desired option to select the font. But unfortunately without success for the reasons described above.


Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Wed Jan 01, 2020 5:03 am  (#38) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
The excellent SkinnyHouse plugin closed the topic.

To set in order a bit - 11 plugins in one package (as in the attached picture).

The only new one is:
- calling the standard Windows Character Map (but BabelMap has more options),
- script-fu Symbol Display by Graechan in ver. 0.05 (only adding background and colors to ver. 0.04 https://web.archive.org/web/20170908034 ... l-display/ ).


Attachments:
CharMap.png
CharMap.png [ 20.27 KiB | Viewed 4712 times ]
Example Symbol Display v5.png
Example Symbol Display v5.png [ 368.66 KiB | Viewed 4712 times ]
All Unicode to shape plugin.zip [33.51 KiB]
Downloaded 169 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Thu Jul 08, 2021 7:28 am  (#39) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
I did not think that I would come back to this topic again.
However, the excellent fu_preview code by cli345 (viewtopic.php?f=9&t=19420) made me try again.
For testing purposes, I only include one type of shape (Heart and Flower).
In menu: Filters/Unicode to shape/Heart & Flower..
After Claude releases the final fu_preview, I can rewrite more shapes.
For a good "Preview" you just need to set \etc\gimp\2.0\gtkrc (code fu_preview is built in with an additional experimental scrollbar).

style "gimp-large-preview"
{
  GimpPreview::size = 512
}

class "GimpPreview" style "gimp-large-preview"


Unfortunately only for Windows.


Attachments:
flower1.jpg
flower1.jpg [ 165.47 KiB | Viewed 3941 times ]
Unicode_to_shape_Heart & Flower Ver.1.0.zip [10.86 KiB]
Downloaded 120 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin UNICODE to shapes and paths.py
PostPosted: Thu Jul 08, 2021 7:30 am  (#40) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Some examples of new possibilities:


Attachments:
flower4.jpg
flower4.jpg [ 189.33 KiB | Viewed 3941 times ]
flower3.jpg
flower3.jpg [ 180.66 KiB | Viewed 3941 times ]
flower2.jpg
flower2.jpg [ 172.96 KiB | Viewed 3941 times ]

_________________
Image

Slava
Ukraini!
Top
Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) HN: Draw shape - Create paths draw shapes simultaneously and easily

31

No new posts Working with unicode filenames

0

No new posts Find and fill paths if closed, convert closed paths to transparent

1

No new posts Is there a 'shapes' tool ?

8

No new posts Simple Geometric Shapes Art using Neural Network

2



* Login  



Powered by phpBB3 © phpBB Group