Difference between revisions of "Ru:Gramps 4.0 Вики Руководство - Фильтры"

From Gramps
Jump to: navigation, search
(проверка регулярных выражений: typo)
(Custom Filter Editor)
Line 219: Line 219:
 
Тестеры регулярных выражение могут быть найдены в интернете с помощью Google. http://gskinner.com/RegExr/ - простой и удобный
 
Тестеры регулярных выражение могут быть найдены в интернете с помощью Google. http://gskinner.com/RegExr/ - простой и удобный
  
==Custom Filter Editor==
+
==Редактор фильтров==
  
You can carry out a considerable amount of selection of persons, events, places, etc., just using the Filter Sidebar in Person, Event, Place,etc. Views; but note, however, that the 'Use regular expressions' option '''only works with particular fields''' in each View.
+
В большинстве случаев вы сможете осуществлять выбор лиц, событий, мест и т.д. просто используя боковую панель Фильтр в Видах Люди, События, Места и т.д. Обратите внимание, что опция 'Использовать регулярные выражения' '''работает только с некоторыми полями''' (не со всеми).
  
If the Filter Sidebar is inadequate for your purpose, you will need to build custom filters.
+
Если панель Фильтр не удовлетворяет ваших потребностей, придется создавать свои фильтры.
  
{{man warn|Custom rules migration|To avoid unwanted effects after a major upgrades of Gramps (eg, from version 3.2.x to 4.0.x), if required, you can manually copy your ''custom_filter.xml'' from [[GRAMPS User Directory]] to ''gramps_version_number''.}}
+
{{man warn|Перенос правил|Чтобы избежать неожиданных эффектов от обновления Gramps (например с версии 3.2.x на версию 4.0.x), при необходимости вы можете вручную скопировать файл ''custom_filter.xml'' из [[GRAMPS User Directory]] в ''gramps_номер_версии''.}}
  
[[Image:Cfe-df.png|right|thumb|350px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Define filter]]
+
[[Image:Cfe-df.png|right|thumb|350px|Рис. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Создание фильтра]]
  
[[Image:FilterSidebar-DefineFilterEditor-40.png|right|thumb|350px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Define filter]]
+
[[Image:FilterSidebar-DefineFilterEditor-40.png|right|thumb|350px|Рис. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Создание фильтра]]
  
 +
Редактор фильтров позволяет создавать фильтры, которые можно использовать при создании отчетов, экспорте, инструментах. Это действительно мощное средство для генеалогического анализа.
  
 +
После запуска редактора фильтров появляется форма {{man label|Фильтры людей (семей, событий и т.д.)}} со списком фильтров, которые вы создали ранее. Нажмите кнопку {{man button|+}} чтобы создать новый фильтр. После создания вы можете редактировать, тестировать или удалить выбранные фильтры используя кнопки {{man button|Редактировать...}} , {{man button|Тестировать...}} и {{man button|-}} соответственно. Все фильтры, отображаемые в списке, автоматически сохранятся в вашей базе данных и будут доступны в последующих сессиях Gramps.
  
The Custom Filter Editor builds custom filters that can be used to select people included in reports, exports, and other tools and utilities. This is in fact a very powerful tool in genealogical analysis.
+
{{man note|1=Изменения в фильтрах|2=Изменения в фильтрах вступят в силу только после закрытия окна Фильтры кнопкой {{man button|Закрыть}}}}
  
When you launch it, the {{man label|User defined filters}} dialog appears that lists all the filters (if any) previously defined by you. Click the {{man button|+}} button to define a new filter. Once you have designed your filters, you can edit, test, and delete selected filters using the {{man button|Edit...}} , {{man button|Test...}} , and {{man button|-}} buttons, respectively. All the filters displayed in the list will be automatically saved along with your database and will be available with subsequent sessions of Gramps.
+
Нажатие на кнопку {{man button|+}} вызывает форму {{man label|Определить фильтр}} (Рис.11.1)
  
{{man note|1=Changes on filters |2=The changes made to the filters only take effect when you click the toolbar {{man button|Apply and close}} button.}}
+
В поле {{man label|Имя}} введите название вашего фильтра.
  
Clicking the toolbar {{man button|+}} button invokes the {{man label|Define filter}} dialog (See Fig.11.1)
+
В поле {{man label|Комментарий}} введите описание, которое поможет отличать ваш фильтр от других. Добавьте в {{man label|Список правил}} привила, используя кнопку {{man button|+}}. Если у фильтра больше одного правила, выберите из списка {{man label|Параметры}} одну из операций объединения правил. Эти операции позволяют вам выбрать для срабатывания фильтра будут ли выполняться все правила, будет выполтяться хотя бы одно правило или должно выполняться ровно одно правило. Если в вашем фильтре только одно правило, эти операции не применяются.
  
Type the name for your new filter into the {{man label|Name}} field.
+
Поставьте галочу {{man label|Возвращать значения, не удовлетворяющие правилам фильтра}}, чтобы инвертировать правила. Например, после инвертирования правила "имеет общего предка с лицом I1" будут выбраны все, у кого нет общих предков с указанным лицом.
 
 
Enter any comment that would help you identify this filter in the future into the {{man label|Comment}} field. Add as many rules to the {{man label|Rule list}} as you would like to your filter using {{man button|+}} button. If the filter has more than one rule, select one of the {{man label|Rule operations}} . This allows you to choose whether all rules must apply, only one (either) rule must apply, or exactly one (either) rule must apply, in order for the filter to generate a match. If your filter has only one rule, this selection has no effect.
 
 
 
Check {{man label|Return values that do not match the filter rules}} to invert the filter rule. For example, inverting "has a common ancestor with I1" rule will match everyone who does not have a common ancestor with that person).
 
  
 
{{-}}
 
{{-}}
  
Clicking the toolbar {{man button|+}} button invokes the {{man label|Add Rule}} dialog (See Fig.11.2):
+
Нажатие на кнопку {{man button|+}} вызывает форму {{man label|Добавить правило}} (Рис.11.2):
  
[[Image:Cfe-ar.png|right|thumb|350px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Add rule]]
+
[[Image:Cfe-ar.png|right|thumb|350px|Рис. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Добавить правило]]
  
The pane on the left-hand side displays available filter rules arranged by their categories in an expandable tree. For detailed filter rule reference. Click on the arrows to fold/unfold the appropriate category. Select the rule from the tree by clicking on its name. The right-hand side displays the name, the description, and the values for the currently selected rule. Once you are satisfied with your rule selection and its values, click {{man button|OK}} to add this rule to the rule list of the currently edited filter. Clicking {{man button|Cancel}} will abort adding the rule to the filter.
+
В левой части формы отображаются доступные правила для фильтров, разбитые на котегории в виде дерева. Чтобы получить детальное описание привила нажмите кнопку {{man button|Справка}}. Стрелки вправо/влево позволяют развернут/свернуть соответствующую категорию. Выберите правило из списка нажатием на его название. В правой части окна отобразится название, описание и список значений выбранного правила. После выбора правила и заполнения его значений нажатие на  кнопку {{man button|OK}} добавит правило в список правил редактируемого фильтра. Нажатие на кнопку {{man button|Отменить}} просто вернет вас к редактированию фильтра.
  
 
{{-}}
 
{{-}}
  
{{man tip| Tip |A filter you have already designed may be used as a rule for another filter. This gives you nearly infinite flexibility in custom-tailoring your selection criteria that can be later used in most of the exports, reports, and some of the tools (such as comparing individual events).}}
+
{{man tip| Совет |Ранее созданный фильтр может быть использован как правило для другого фильтра. Это дает вам бесконечную гибкость в выборе критериев фильтрации, которые впоследствии могут быть использованы в большинстве отчетов, при экспорте и для некоторых инструментов (таких как сравнение отдельных событий).}}
  
 
== Which filters in which view? ==
 
== Which filters in which view? ==

Revision as of 07:23, 19 February 2013

Gnome-important.png Особое уведомление об авторских правах: Все правки на этой странице должны удовлетворять требованиям двух следующих лицензий:

Указанные лицензии позволяют проекту Gramps максимально использовать настоящее вики-руководство в качестве свободного и бесплатного источника информации для будущих версий Gramps. Если Вы не согласны с условиями такого двойного лицензирования размещаемых на страницах вики-руководства материалов, то не редактируйте эту страницу. В этом случае Вы имеете право лишь создавать ссылки на другие страницы настоящего вики-руководства, которые соответствуют требованиям только лицензии GFDL, с использованием внешних ссылок (используя синтаксис: [http://www.gramps-project.org/...]), но не внутренних ссылок.
Также, используйте только принятые соглашения по оформлению текста.

Пред Содержание След




Этот документ содержит список всех правил для фильтров в Gramps. Каждое из этих правил может использоваться для создания своих фильтров, смотрите Custom filter. Правила разбиты по категориям.

Фильтры и Поиск

Есть два механизма искать данные в Gramps: Поиск и Фильтр. Поля для поиска находятся на верхней панели над списком элементов активного Вида (Люди, Семьи и т.д.). Фильтры могут быть использованы совместно с поиском или отдельно через боковую/нижнюю панель. Верхняя панель поиска появляется только если закрыты все боковые панели. Вы можете открывать/закрывать панели через меню -> Вид.

Поиск и Фильтр работают совершенно по разному и важно понять эти различия:

  • Поиск - функция поиска просматривает базу данных в том виде, в каком данные отображаеются на экране. Например, если в ваших настройках указано отображать имена в виде "Фамилия, Имя" и вы ищете "Петров, Иван", то найдутся все соответствующие строки. Если вы меняете способ отображения имен в настройках, вам придется изменить и критерий поиска (рапример "Иван Петров"). Поиск используется чаще всего, как наиболее простой и доступный, но он имееет ряд ограничений (смотрите далее).
  • Фильтр - фильтры используют более сложную систему. Они не ограничены тем, что отображается на экране и просматривают фактические данные в базе. Фильтр по имени будет пытаться найти соответствие во всех полях имени (имя, фамилия, отчество и т.д.) всех имен лица (предпочитаемых и альтернативных), но только по одному полю - вы не можете искать и имя, и фамилию в одном запросе. Вы можете искать фамилию, но не фамилию и имя одновременно. Например, если значение фильтра по имени будет "Иван", найдутся не только лица с именем Иван, но и с фамилией Иванов. Но вы не сможете отфильтровать записи по комбинации имени и фамилии.

Создавать и управлять фильтрами можно через меню Правка -> Редактор фильтров или через специальную боковую/нижнюю панель. Панель Фильтр предоставляет несколько быстрых фильтров, которые похожи на Поиск из верхней панели, но имеют описанные здесь отличия.

Некоторые из отличий:

  • Фильтры ищут ещё и в альтернативных именах; Поиск - только в предпочитаемых (которые отображаются). Поэтому на фильтр "Петров" вы можете получить лицо казалось бы не соответствующее поиску. Но если открыть поднобности этого лица, то вы увидите, что у него есть альтернативное имя "Петров".
  • Фильтры используют регулярные выражения. Вы можете искать все имена, начинающиеся на "П" и кончающиеся на "ов": "П.*ов". Вы не сможете сделать то же самое в панели Поиск.
  • Поиск ищет только то, что отображается. Если имя или текст слишком большие для отображения, вы не сможете их найти. Это необходимо иметь в виду при поиске по заметкам. Заметки и другие длинные текстовые поля лучше всего искать с помощью фильтров.
  • Все фильтры не зависят от регистра; "Петров" то же самое, что и "петров", "ПЕТРОВ" или "ПеТров".

Подробнее о создании фильтров смотрите на странице Example filters.

Далее будут детально описаны возможности фильтров.

Регулярные выражения

Регулярные выражения это быстрый и мощный способ описать текст, который соответствует шаблону. Регулярные выражения используются в фильтрах Gramps. У вас должна быть включена опция [ ]Использовать регулярные выражения.

Например, если вы ищете фамилию, которая начинается на "П" и заканчивается на "ов", для описания шаблона вы должны использовать регулярное выражение. Оно должно быть ^П.*ов:

  • означает, что текст должен начинаться с П
  • . означает любой символ (буква, цифра или еще что-нибудь)
  • * означает ноль или больше повторений предыдущего (в нашем случае, любого символа)
  • ов задает оставшиеся символы в порядке о, в.

Регулярные выражения универсальны и имеют много опций. Мы используем систему регулярных выражений Python, которая описывается ниже. Вы можете использовать любые дополнительные ресурсы о регулярных выражениях Python.

пробельные символы - термин "пробельные символы" используется для описания одного или больше непечатаемых символов. Например, пробельные символы включают в сябя табуляции, пробелы и переводы строк.

Некоторые символы в регулярных выражениях имеют специальное значение. К ним относятся:

. ^ $ * + ? { } [ ] \ | ( )

Использование специальных символов:

  • '.' соответствует любому символу (буква, цифра или еще что-нибудь)
  • '^' соответствует началу текста
  • '$' соответствует окончанию текста
  • '*' соответствует нулю или более повторений предыдущего элемента
  • '+' соответствует одному или более повторений предыдущего элемента
  • '?' соответствует нулю или одному предыдущему элементу (делает элемент не обязательным)
  • '{' - определяет набор соответствий
  • '}' - заканчивает набор соответствий
  • '[' - начало набора
  • ']' - окончание набора
  • '\' - следующий символ задает специальную последовательность
  • '|' - или
  • '(' - начало группы
  • ')' - окончание группы

Некоторые специальные последовательности, начинающиеся с '\' представляют собой полезные наборы символов, такие как цифры, буквы или любые печатаемые символы. Далее приводится перечень доступных наборов.

  • \d определяет любые десятичные цифры; эквивалентно классу [0-9].
  • \D определяет любые символы, кроме десятичный цифр; эквивалентно классу [^0-9].
  • \s определяет любой пробельный символ; эквивалентно классу [ \t\n\r\f\v].
  • \S определяет любой не пробельный символ; эквивалентно классу [^ \t\n\r\f\v].
  • \w определяет любой цифро-буквенный символ; эквивалентно классу [a-zA-Z0-9_].
  • \W определяет любой не цифро-буквенный символ; эквивалентно классу[^a-zA-Z0-9_].

Есть более сложные квалификаторы повторений - {m,n}, где m и n - десятичные числа. Этот квалификатор означает не менее m и не более n повторений.

Группы и наборы

Группы обозначаются символами '(' и ')'. Эти скобки имеют такое же значение, как и в математических выражениях; они группируют выражения внутри них и вы можете применять к содержимому групп квалификаторы повторений, такие как *, +, ?, или {m,n}. Например (ab)* будет определять ноль или более повторений ab.

Наборы обозначаются символами '[' and ']'.

Можно представить группу, как список альтернатив, разделенных символом '|', где каждый элемент состоит из нуля, одного или нескольких символов, а набор как список альтернатив, где каждый элемент состоит из одного символа.

Примеры

  • ^B.*ship$ - определяет любую строку, которая начинается на 'B', далее любые символы и заканчивается на 'ship'.
    • подходит: Blankenship, Blueship, Beeship
    • не подходит: Blankenships
  • ^B.*ship - определяет все строки, которые начинаются на 'B', далее любые символы, далее 'ship' (делее может быть еще что-нибудь).
    • подходит: Blankenship, Blankenships, Blueship, Blueshipman, Beeship, Beeshipness
    • не подходит: Blankenschips

Обычные варианты фамилий

  • пример 1:

Erikson Eriksson Ericson Ericsson Erickson Ericksson Erichson Erichsson

определяется выражением

  Eri(ch|ck|k|c)(ss|s)on


  • объяснение:

Eri = Eri

(ch|ck|k|c) = группа ch, ck, k или c. Более длинные помещаются вперед.

(ss|s) = группа ss или s. Более длинные помещаются вперед.

on = on



  • пример 2:

Bainbricke Bainbridge Bainbrig Bainbrigg Bambridge Banbrig Banbrige Baynbrige

определяется выражением

  Ba(in|yn|m|n)bri(dge|cke|g(g|e|))


  • объяснение:

Ba = Ba

(in|yn|m|n) = группа in, yn, m или n. Более длинные помещаются вперед.

bri = bri

(dge|cke|g(g|e|)) = группа dge, cke или (g вместе с g, g вместе с e или просто g)



  • пример 3:

nairaud nairault naireaud nayrault nesrau nesrault nesreau nesreaud noirau noiraud noirauld noirault noiraut noiraux noireau noireaud noireault noireaut noirraux noirreau noirreaud nouarault noyraud noyrault

определяется выражением

 n(es|oua|oai|o[iya]|a[iy])r(r|)(on|((e|)au(x|t|d|lt|)))


  • объяснение:

n = n

(es|oua|oai|набор1|набор2) = группа es, oua, oai, набор1 или набор2

набор1 - o[iya] = набор o И i, y или a. Другими словами oi, oy или oa

набор2 - a[iy] = набор a AND i or y. Другими словами ai или ay

r = r

(r|) = группа r или ничего (on|(подгруппа1) = группа on или подгруппа1.

подгруппа1 это группа (подгруппа2 au подгруппа3)

подгруппа2 это (e|) = группа e или ничего

au = au

подгруппа3 это (x|t|d|lt) = группа x, t, d или lt

Проверка регулярных выражений

Тестеры регулярных выражение могут быть найдены в интернете с помощью Google. http://gskinner.com/RegExr/ - простой и удобный

Редактор фильтров

В большинстве случаев вы сможете осуществлять выбор лиц, событий, мест и т.д. просто используя боковую панель Фильтр в Видах Люди, События, Места и т.д. Обратите внимание, что опция 'Использовать регулярные выражения' работает только с некоторыми полями (не со всеми).

Если панель Фильтр не удовлетворяет ваших потребностей, придется создавать свои фильтры.

Gnome-important.png
Перенос правил

Чтобы избежать неожиданных эффектов от обновления Gramps (например с версии 3.2.x на версию 4.0.x), при необходимости вы можете вручную скопировать файл custom_filter.xml из GRAMPS User Directory в gramps_номер_версии.

Рис. 14.1 Создание фильтра
Рис. 14.2 Создание фильтра

Редактор фильтров позволяет создавать фильтры, которые можно использовать при создании отчетов, экспорте, инструментах. Это действительно мощное средство для генеалогического анализа.

После запуска редактора фильтров появляется форма Фильтры людей (семей, событий и т.д.) со списком фильтров, которые вы создали ранее. Нажмите кнопку + чтобы создать новый фильтр. После создания вы можете редактировать, тестировать или удалить выбранные фильтры используя кнопки Редактировать... , Тестировать... и - соответственно. Все фильтры, отображаемые в списке, автоматически сохранятся в вашей базе данных и будут доступны в последующих сессиях Gramps.

Gramps-notes.png
Изменения в фильтрах

Изменения в фильтрах вступят в силу только после закрытия окна Фильтры кнопкой Закрыть

Нажатие на кнопку + вызывает форму Определить фильтр (Рис.11.1)

В поле Имя введите название вашего фильтра.

В поле Комментарий введите описание, которое поможет отличать ваш фильтр от других. Добавьте в Список правил привила, используя кнопку +. Если у фильтра больше одного правила, выберите из списка Параметры одну из операций объединения правил. Эти операции позволяют вам выбрать для срабатывания фильтра будут ли выполняться все правила, будет выполтяться хотя бы одно правило или должно выполняться ровно одно правило. Если в вашем фильтре только одно правило, эти операции не применяются.

Поставьте галочу Возвращать значения, не удовлетворяющие правилам фильтра, чтобы инвертировать правила. Например, после инвертирования правила "имеет общего предка с лицом I1" будут выбраны все, у кого нет общих предков с указанным лицом.


Нажатие на кнопку + вызывает форму Добавить правило (Рис.11.2):

Рис. 14.3 Добавить правило

В левой части формы отображаются доступные правила для фильтров, разбитые на котегории в виде дерева. Чтобы получить детальное описание привила нажмите кнопку Справка. Стрелки вправо/влево позволяют развернут/свернуть соответствующую категорию. Выберите правило из списка нажатием на его название. В правой части окна отобразится название, описание и список значений выбранного правила. После выбора правила и заполнения его значений нажатие на кнопку OK добавит правило в список правил редактируемого фильтра. Нажатие на кнопку Отменить просто вернет вас к редактированию фильтра.


Tango-Dialog-information.png
Совет

Ранее созданный фильтр может быть использован как правило для другого фильтра. Это дает вам бесконечную гибкость в выборе критериев фильтрации, которые впоследствии могут быть использованы в большинстве отчетов, при экспорте и для некоторых инструментов (таких как сравнение отдельных событий).


Which filters in which view?

Depending on the used View, you will get a different set of filters.

  • Gramplets
    no filters available
  • Events View, Sources View, Citations View, Media view, Repositories View, and Notes View
    only General filters. Those General filters are specific for a View: in the Media View the filters will only sort and search on Media Objects.

General filters

Persons-, Relationship-, and Pedigree View

This category includes the following general rules:

  • Bookmarked People
    Matches the people on the bookmark list.
  • Default person
    Matches the default person.
  • Disconnected People
    Matches people that have no family relationships to any other person in the database.
  • Everyone
    Matches everyone in the database.
  • Females
    Matches all females.
  • Males
    Matches all males.
  • People having <count> notes
    Matches people having a certain number of notes: Values: Number of instances -- Number must be greater than/lesser/equal to
  • People having notes containing <regular expression>
    Matches people whose notes contain text matching a regular expression. Values: Regular expression
  • People having notes containing <substring>
    Matches people whose notes contain text matching a substring. Values: Substring
  • People marked private
    Matches people that are indicated as private.
  • People matching the <filter>
    Matches people matched by the specied filter name. Values: Filter name. The specified filter name should be selected from the menu.
  • People probably alive
    Matches people without indications of death that are not too old. Values: On Date
  • People with <id> matching regular expression
    Matches people whose GRAMPS ID matches the regular expression. Values: Regular expression


  • People with <count> LDS events
    Matches people with a certain number of LDS events. Values: Number of instances -- Number must be greater than/lesser/equal to
  • People with <count> addresses
    Matches people with a certain number of personal addresses. Values: Number of instances -- Number must be greater than/lesser/equal to
  • People with <count> associations
    Matches people with a certain number of associations. Values: Number of instances -- Number must be greater than/lesser/equal to
  • People with <count> media
    Matches people with a certain number of items in the gallery. Values: Number of instances -- Number must be greater than/lesser/equal to
  • People with <count> source
    Matches people with a certain number of items in the source. Values: Number of instances -- Number must be greater than/lesser/equal to
  • People with <tag>
    Matches people with a tag of a particular value. Values: Tag name.
  • People with complete records
    Matches all the people whose records are complete.
  • People with incomplete names
    Matches people with firstname or lastname missing.
  • People with records containing <substring>
    Matches people whose records contain text matching a substring. Values: Substring -- Case Sensitive or not -- Regular-Expression matching or not
  • People with the <name>
    Matches people with a specied (partial) name. Values: Given Name -- Family Name -- Suffix -- Title -- Prefix -- Patronymic -- Call Name
  • People with the source
    Matches people who have a particular source. values: Source ID
  • People with the family <attribute>
    Matches people with the family attribute of a particular value. Values: Family Attribute: Identification Number -- Age ...
  • People with the personal <attribute>
    Matches people with the personal attribute of a particular value. Values: Family Attribute: Identification Number -- Age ...
  • People with unknown gender
    Matches all people with unknown gender.
  • People without a known birth date
    Matches people without a known birthdate.
  • People with <id>
    Matches people with GRAMPS ID. The rule returns a match only if the ID is matched exactly. You can either enter the ID into a text entry field, or select an object from the list by clicking Select... button. In the latter case, the ID will appear in the text field after the selection was made.
  • People changed after <date time>
    Matches person records changed after a specified date-time (yyy-mm-dd hh:mm:ss) or in the range, if a second date-time is given: Values: Changed after: -- but before:.
  • People with events matching the <event filter>
    Matches persons who have events that match a certain event filter. Values: Event filter name.

Person filters

  • Has Address
    This rule matches people with a personal address.
  • Has Association
    This rule matches people with a personal association.
  • Has Complete Record
    This rule matches all people whose records are marked as complete. Currently, the completeness of personal information is marked manually, in the Edit Person dialog.
  • Has Name
    This rule matches any person whose name matches the specified value in full or in part. For example, Marta Ericsdotter will be matched by the rule using the value "eric" for the family name. Separate values can be used for Given name, Family name, Suffix, and the Title. The rule returns a match if, and only if, all non-empty values are (partially) matched by a person's name. To use just one value, leave the other values empty.
  • Is default person
    This rule matches the default (home) person.
  • Is a female
    This rule matches any female person.
  • Is a male
    This rule matches any male person.
  • People probably alive
    This rule matches all people whose records do not indicate their death and who are not unreasonably old, judging by their available birth data and today's date.
  • People with incomplete names
    This rule matches all people with either given name or family name missing.
  • People without a birth date
    This rule matches people missing birth date.

Event filters

This category includes the following rules that match people based on their recorded events:

  • Has the birth
    This rule matches people whose birth event matches specified values for Date, Place, and Description. The rule returns a match even if the person's birth event matches the value partially. The matching rules are case-insensitive. For example, anyone born in Sweden will be matched by the rule using the value "sw" for the Place. The rule returns a match if, and only if, all non-empty values are (partially) matched by a person's birth. To use just one value, leave the other values empty.
  • Has the death
    This rule matches people whose death event matches specified values for Date, Place, and Description. The rule returns a match even if the person's death event matches the value partially. The matching rules are case-insensitive. For example, anyone who died in Sweden will be matched by the rule using the value "sw" for the Place. The rule returns a match if, and only if, all non-empty values are (partially) matched by a person's death. To use just one value, leave the other values empty.
  • Has the personal event
    This rule matches people that have a personal event matching specified values for the Event type, Date, Place, and Description. The rule returns a match even if the person's event matches the value partially. The matching rules are case-insensitive. For example, anyone who graduated in Sweden will be matched by the rule using the Graduation event and the value "sw" for the Place. The personal events should be selected from a pull-down menu. The rule returns a match if, and only if, all non-empty values are (partially) matched by the personal event. To use just one value, leave the other values empty.
  • Has the family event
    This rule matches people that have a family event matching specified values for the Event type, Date, Place, and Description. The rule returns a match even if the person's event matches the value partially. The matching rules are case-insensitive. For example, anyone who was married in Sweden will be matched by the rule using the Marriage event and the value "sw" for the Place. The family events should be selected from a pull-down menu. The rule returns a match if, and only if, all non-empty values are (partially) matched by the personal event. To use just one value, leave the other values empty.
  • Witness
    This rule matches people who are present as a witness in the event. If the personal or family event type is specified, only the events of this type will be searched.
  • People with incomplete events
    This rule matches people missing date or place in any personal event.
  • Families with incomplete events
    This rule matches people missing date or place in any family event of any of their families.

Family filters

This category includes the following rules that match people based on their family relationships:

  • People with children
    This rule matches people with children.
  • People with multiple marriage records
    This rule matches people with more than one spouse.
  • People with no marriage records
    This rule matches people with no spouses.
  • People who were adopted
    This rule matches adopted people.
  • Has the relationships
    This rule matches people with a particular relationship. The relationship must match the type selected from the menu. Optionally, the number of relationships and the number of children can be specified. The rule returns a match if, and only if, all non-empty values are (partially) matched by a person's relationship. To use just one value, leave the other values empty.
  • Is spouse of filter match
    This rule matches people married to someone who is matched by the specified filter. The specified filter name should be selected from the menu.
  • Is a child of filter match
    This rule matches people for whom either parent is matched by the specified filter. The specified filter name should be selected from the menu.
  • Is a parent of filter match
    This rule matches people whose child is matched by the specified filter. The specified filter name should be selected from the menu.
  • Is a sibling of filter match
    This rule matches people whose sibling is matched by the specified filter. The specified filter name should be selected from the menu.

Ancestral filters

This category includes the following rules that match people based on their ancestral relations to other people:

  • Is an ancestor of
    This rule matches people who are ancestors of the specified person. The Inclusive option determines whether the specified person should be considered his/her own ancestor (useful for building reports). You can either enter the ID into a text entry field, or select a person from the list by clicking Select... button. In the latter case, the ID will appear in the text field after the selection was made.
  • Is an ancestor of person at least N generations away
    This rule matches people who are ancestors of the specified person and are at least N generations away from that person in their lineage. For example, using this rule with the value of 2 for the number of generations will match grandparents, great-grandparents, etc., but not the parents of the specified person.
  • Is an ancestor of person not more than N generations away
    This rule matches people who are ancestors of the specified person and are no more than N generations away from that person in their lineage. For example, using this rule with the value of 2 for the number of generations will match parents and grandparents, but not great-grandparents, etc., of the specified person.
  • Has a common ancestor with
    This rule matches people who have common ancestors with the specified person.
  • Has a common ancestor with filter match
    This rule matches people who have common ancestors with someone who is matched by the specified filter. The specified filter name should be selected from the menu.
  • Is an ancestor of filter match
    This rule matches people who are ancestors of someone who is matched by the specified filter. The specified filter name should be selected from the menu.

Descendant filters

This category includes the following rules that match people based on their descendant relations to other people:

  • Is a descendant of
    This rule matches people who are descendants of the specified person. The Inclusive option determines whether the specified person should be considered his/her own descendant (useful for building reports). You can either enter the ID into a text entry field, or select a person from the list by clicking Select... button. In the latter case, the ID will appear in the text field after the selection was made.
  • Is a descendant of person at least N generations away
    This rule matches people who are descendants of the specified person and are at least N generations away from that person in their lineage. For example, using this rule with the value of 2 for the number of generations will match grandchildren, great-grandchildren, etc., but not the children of the specified person.
  • Is a descendant of person not more than N generations away
    This rule matches people who are descendants of the specified person and are no more than N generations away from that person in their lineage. For example, using this rule with the value of 2 for the number of generations will match children and grandchildren, but not great-grandchildren, etc., of the specified person.
  • Is a descendant of filter match
    This rule matches people who are descendants of someone who is matched by the specified filter. The specified filter name should be selected from the menu.
  • Is a descendant family member of
    This rule not only matches people who are descendants of the specified person, but also those descendants' spouses.

Relationship filters

This category includes the following rules that match people based on their mutual relationship:

  • Relationship path between two people
    This rule matches all ancestors of both people back to their common ancestors (if exist). This produces the "relationship path" between these two people, through their common ancestors. You can either enter the ID of each person into the appropriate text entry fields, or select people from the list by clicking their Select... buttons. In the latter case, the ID will appear in the text field after the selection was made.

Miscellaneous filters

This category includes the following rules which do not naturally fit into any of the above categories:

  • Has the personal attribute
    This rule matches people who have the personal attribute of the specified value. The specified personal attribute name should be selected from the menu. The specified value should be typed into the text entry field.
  • Has the family attribute
    This rule matches people who have the family attribute of the specified value. The specified family attribute should be selected from the menu. The specified value should be typed into the text entry field.
  • Has LDS
    This rule matches people or families with a LDS event.

Tagging

Gramps-notes.png This page's factual accuracy may be compromised due to out-of-date information. Please help improve the Gramps Wiki as a useful resource by updating it.

Go to the Menu Edit ->Tag.

Fig. 14.4 Tag actions from Edit menu


Or click the Toolbar Tag button.

Fig. 14.5 Tag actions from Toolbar button


Concept

Fig. 14.6 Tag Organizer
  • For people using gmail or thunderbird, tags will not be something new. Instead of classifying emails into folders like in Outlook (Windows) or Evolution (Linux), emails are classified by assigning tags to them. So instead of having a disjoint N:1 classification (a email can be in one and only one folder, and a folder can contain many emails), in gmail or thunderbird there is a N:M classification (a email can have several tags, and a tag can be applied to several emails)

Likewise, when you have a big tree, you might want to make subsets of the tree, and these subsets might be overlapping. For example, the subsets of your fathers family and your mothers family, some subset of your family that emigrated to Australia.

The idea is to assign a different tag to each subset: Paternal, Maternal, Australia and ToDo for example.


Differences with markers

Fig. 14.7 Tag selection in the Person Editor
  • Markers are like the folders for emails. A person can be given at most one marker. Tags are thus like multiple-valued markers.


Tags and Filters

  • Tags and filters both create subsets of the tree. However they have practical differences in usage.
Fig. 14.8 Filter on a tag from the Filter Sidebar

Specifying your fathers family using filters is an easy thing; there are already filters based on some logics that do it. On the other hand, specifying the people that emigrated to the USA is harder, while for the famous people in your family it is simply impossible as there is no logical rule. Tags are much more practical here.

However filters have the advantage of being dynamical. If you add an ancestor of your father in the database, it will be automatically added to the filter.

On the other hand, tags are statical. When adding a famous person in the tree, you have to explicitely tag them as FAMOUS.

  • The most immediate object that comes to mind are the individuals, and that is also the most useful. However, other objects could be tagged:
    • Places: For example "places to visit",
    • Source: For example "sources in german",
    • Notes: For example "notes in progess", or "notes in german",
    • Media: For example "Picture belonging to Uncle Alfred".

Tags are available to use with People, Families, Notes and Media.


Operations with tags

Here are a few ideas of operations that can be done with tags

Filtering

The most obvious use is that of filtering.

Tagging a selection of objects

Fig. 14.9 Attach a new tag to a multiple selection

Due to the static nature of tags, it might be useful to add a tag to a selection of objects. For example one should be able to select a number of person in the Person View, and add them a new tag or an existing one.


Tags Column

Fig. 14.10 Tags column and colored rows

It is convenient to have a Tags column in the views of objects that can be tagged. The content is a comma-separated list of the tags of the objects.


Пред Содержание След