Inkscape.org
Beginners' Questions Search in project. Confusing behavior.
  1. #1
    OneOwe OneOwe @OneOwe

    Windows 11 / Inkscape 1.4.2


    I am confused by search in project. First of all - there are two ways of search - small textbox above project tree, and "Find and replace" dialog. 
    I'd like to ask/talk about both. I created a small example project (1.proj ) with number and two objects named in Latin and Cyrillic. 

    Small search box 

    • when I search 1 - it shows me also rectangle. I assume it searches by ID  because IDs are text1, rect1 and path2 respectively  ( 2.search1 )
    • when I search for rectangle by name "square"  typing part of name - I see expected result.  So it means search by label also works.  ( 3.searchSqu )
    • when I search for circle by name - I get no result. Does it mean that Inkscape does not support search by Cyrillic labels ?   ( 4.searchКру )

    Find and replace. I try to search "in properties" ticking one property checkbox at a time

    • Search by ID works as expected. No questions here
    • I do not see separate search by "Label", so I assume search by "Attribute value" is the same thing used by small search box, but here it gets weird. Searching 1 returns me all objects. (5.search1f-r) For what reason? Circle does not have any property with value 1. (6.circPropsf-r)
    • When I search for circle by "Attribute value" typing part of the name in Cyrillic it returns me expected result. (7.searchКруf-r) So Cyrillic is supported. Then why it does not work in small search box? Is that a bug?  

     

     

    7.Searchкру(F R)
    6.Circprops(F R)
    5.Search1(F R)
    4.Searchкру
    3.Searchsqu
    2.Search1
    1.Proj
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    All object attribute values can be seen in the XML editor, and many have numeric values that can include the number 1.

    As for searching in the layers/objects dialog, I am not able to replicate the issue. Maybe click the erase/clear button at the end of the entry box to see if that helps.

  3. #3
    OneOwe OneOwe @OneOwe
    👍*

    If search by attributes goes through whole XML then it explains results. Thanks.

    As for non Latin names - I tried other symbols: Greek, Japanese, Hebrew - result is the same. Non Latin can not be found with layers/objects dialog, but can be with find and replace. Wired thing 😕

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Search in project. Confusing behavior.