Documentation changes, DTD changes

svn: r404
This commit is contained in:
Don Allingham 2001-09-14 03:44:26 +00:00
parent 4862d3b34d
commit 159cb9b7b8
39 changed files with 346 additions and 316 deletions

View File

@ -842,7 +842,45 @@
</screenshot>
</figure>
<para>
FIXME: This section should describe the pedegree view.
Moving the mouse over a displayed name will display additional
information about a person, including their date of birth and date
of death. Double-clicking the box will display the <interface>Edit
Person</interface> dialog box for the person. Holding down the
Shift key while double-clicking will will make that person the
active person.
</para>
<para>
Navigation around the tree can be accomplished several
ways. Clicking on the arrow next to the active person will display
a menu listing the children of the active person. Selecting a
person from this list will change the active person to the
selected child, effectively shifting the pedegree view to the
left, or down one generation. Clicking one of the arrow buttons on
the left side of the screen will make the select either the active
person's father (top button) or mother (bottom button),
effectively shifting the pedegree view to the right, or up one
generation. If the active person does not have any children, then
the button on the left hand side of the screen will not
appear. Similarly, if the active person does have a father or
mother, the corresponding button on the right hand side of the
screen will not appear.
</para>
<figure id="navfigure-fig">
<title>Navigation</title>
<screenshot>
<screeninfo>Navigation</screeninfo>
<graphic fileref="pedegreesel" format="png" srccredit="Don Allingham">
</graphic>
</screenshot>
</figure>
<para>
As a quick short cut, double clicking on a line between two people
will make the person on the right hand side of the line the active
person. <xref linkend="navfigure-fig"> shows navigation using this
method. When the mouse is over one of the lines connecting
individuals, the line widens and becomes highlighted. In this
case, double-clcking on the line would make Hjalmar Smith the
active person.
</para>
</sect1>
@ -868,7 +906,9 @@
</screenshot>
</figure>
<para>
From this screen you are able to Add, Edit, and Delete sources.
From this screen you are able to Add and Edit sources. Currently,
deleting of sources is not available. This will be implemented in
a future version.
</para>
</sect1>
@ -928,6 +968,16 @@
allow you to quickly jump to a person, making that person the
active person. This allows you to avoid searching for them
everytime you want to add/change something in their information.
</para>
<figure id="gotobookmark">
<title>Using Bookmarks</title>
<screenshot>
<screeninfo>Using Bookmarks</screeninfo>
<graphic fileref="gotobookmark" format="png" srccredit="Don Allingham">
</graphic>
</screenshot>
</figure>
<para>
Choosing
<menuchoice>
<guimenu>Bookmarks</guimenu>
@ -938,6 +988,16 @@
select the person.
</para>
<para>
Choosing
<menuchoice>
<guimenu>Bookmarks</guimenu>
<guimenuitem>Go to Bookmark</guimenuitem>
</menuchoice>
displays a submenu which allows you to choose a person who was
previously bookmarked. Selecting a person from this menu will
make that person the active person.
</para>
<para>
Choosing
<menuchoice>
<guimenu>Bookmarks</guimenu>
@ -946,6 +1006,14 @@
displays a dialog box that allows you to reorder or delete
bookmarks in the list.
</para>
<figure id="editbookmark">
<title>Editing Bookmarks</title>
<screenshot>
<screeninfo>Editing Bookmarks</screeninfo>
<graphic fileref="editbookmarks" format="png" srccredit="Don Allingham">
</graphic>
</screenshot>
</figure>
</sect2>
</sect1>
@ -1181,7 +1249,7 @@
</screenshot>
</figure>
<para>
This allows you to set the default directory for your database,
This allows you to set the default directories for your databases,
reports, and Web Sites.
</para>
</sect2>
@ -1335,82 +1403,94 @@ appear in every gramps generated file.
</graphic>
</screenshot>
</figure>
<sect2 id="analysis">
<variablelist>
<title>Analysis and Exploration</title>
<itemizedlist>
<varlistentry>
<term>Compare individual events</term>
<listitem>
<para>
<guilabel>Compare individual events</guilabel> &mdash; Aids
in the analysis of data by allowing the development of
Aids in the analysis of data by allowing the development of
custom filters that can be applied to the database to find
similar events.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Interactive descendant browser</term>
<listitem>
<para>
<guilabel>Interactive descendant browser</guilabel> &mdash;
Provides a browsable hierarchy based on the active person.
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 id="dataprocessing">
</varlistentry>
</variablelist>
<variablelist>
<title>Data Processing</title>
<itemizedlist>
<varlistentry>
<term>Check and repair database</term>
<listitem>
<para>
<guilabel>Check and repair database</guilabel> &mdash;
Checks the database for integrity problems, fixing the
problems that it can.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Extract information from names</term>
<listitem>
<para>
<guilabel>Extract information from names</guilabel> &mdash;
Searches the entire database and attempts to extract titles
and nicknames that may be embedded in a person's given name
field.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Merge people</term>
<listitem>
<para>
<guilabel>Merge people</guilabel> &mdash; Searches the
entire database, looking for individual entries that may
represent the same person.
Searches the entire database, looking for individual entries
that may represent the same person.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Rename personal event types</term>
<listitem>
<para>
<guilabel>Rename personal event types</guilabel> &mdash;
Allows all the events of a certain name to be renamed to a
new name.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Reorder gramps ID's</term>
<listitem>
<para>
<guilabel>Reorder gramps ID's</guilabel> &mdash; Reorders the
gramps ID's according to gramps' default rules.
Reorders the gramps ID's according to gramps' default rules.
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 id="reports_utilities">
</varlistentry>
</variablelist>
<variablelist>
<title>Utilities</title>
<itemizedlist>
<varlistentry>
<term>Generate SoundEx codes</term>
<listitem>
<para>
<guilabel>Generate SoundEx codes</guilabel> &mdash;
Generates SoundEx codes for names.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Relationship calculator</term>
<listitem>
<para>
<guilabel>Relationship calculator</guilabel> &mdash;
Calulates the relationship between two people.
</para>
</listitem>
</itemizedlist>
</sect2>
</varlistentry>
</variablelist>
</sect1>
<!-- ============= Bugs ==================================
@ -1436,7 +1516,7 @@ appear in every gramps generated file.
</para>
<para>
This manual was written by Don Allingham
(<email>donaldallingham@home.com</email>), Larry Allingham
(<email>dallingham@users.sourceforge.net</email>), Larry Allingham
(<email>llkla@erinet.com</email>), and Shawn Ann Griffith
(<email>shawnann1@home.com</email>).
</para>

View File

@ -122,7 +122,22 @@ NAME="BKMARKS"
allow you to quickly jump to a person, making that person the
active person. This allows you to avoid searching for them
everytime you want to add/change something in their information.
Choosing
</P
><DIV
CLASS="FIGURE"
><A
NAME="GOTOBOOKMARK"
></A
><P
><IMG
SRC="gotobookmark.png"></P
><P
><B
>Figure 18. Using Bookmarks</B
></P
></DIV
><P
> Choosing
<B
CLASS="GUIMENU"
>Bookmarks</B
@ -141,11 +156,37 @@ CLASS="GUIMENU"
>Bookmarks</B
>-&gt;<B
CLASS="GUIMENUITEM"
>Go to Bookmark</B
>
displays a submenu which allows you to choose a person who was
previously bookmarked. Selecting a person from this menu will
make that person the active person.
</P
><P
> Choosing
<B
CLASS="GUIMENU"
>Bookmarks</B
>-&gt;<B
CLASS="GUIMENUITEM"
>Edit Bookmarks</B
>
displays a dialog box that allows you to reorder or delete
bookmarks in the list.
</P
><DIV
CLASS="FIGURE"
><A
NAME="EDITBOOKMARK"
></A
><P
><IMG
SRC="editbookmarks.png"></P
><P
><B
>Figure 19. Editing Bookmarks</B
></P
></DIV
></DIV
></DIV
><DIV

View File

@ -1,133 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><TITLE
>Known Bugs and Limitations</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.59"><LINK
REL="HOME"
TITLE="gramps User Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Running Tools"
HREF="runtools.html"><LINK
REL="NEXT"
TITLE="Authors"
HREF="authors.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>gramps User Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="runtools.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="authors.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="BUGS"
>Known Bugs and Limitations</A
></H1
><P
> This application has no known bugs.
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="runtools.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="authors.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Running Tools</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Authors</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -89,7 +89,7 @@ NAME="REPORT-FIG"
SRC="reportsel.png"></P
><P
><B
>Figure 23. Report Generation Dialog</B
>Figure 26. Report Generation Dialog</B
></P
></DIV
><P
@ -270,7 +270,7 @@ appear in every gramps generated file.
></TABLE
><P
><B
>Figure 24. Sample HTML Template Example</B
>Figure 27. Sample HTML Template Example</B
></P
></DIV
></DIV

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -99,7 +99,56 @@ SRC="pedegreeview.png"></P
></P
></DIV
><P
> FIXME: This section should describe the pedegree view.
> Moving the mouse over a displayed name will display additional
information about a person, including their date of birth and date
of death. Double-clicking the box will display the <SPAN
CLASS="INTERFACE"
>Edit
Person</SPAN
> dialog box for the person. Holding down the
Shift key while double-clicking will will make that person the
active person.
</P
><P
> Navigation around the tree can be accomplished several
ways. Clicking on the arrow next to the active person will display
a menu listing the children of the active person. Selecting a
person from this list will change the active person to the
selected child, effectively shifting the pedegree view to the
left, or down one generation. Clicking one of the arrow buttons on
the left side of the screen will make the select either the active
person's father (top button) or mother (bottom button),
effectively shifting the pedegree view to the right, or up one
generation. If the active person does not have any children, then
the button on the left hand side of the screen will not
appear. Similarly, if the active person does have a father or
mother, the corresponding button on the right hand side of the
screen will not appear.
</P
><DIV
CLASS="FIGURE"
><A
NAME="NAVFIGURE-FIG"
></A
><P
><IMG
SRC="pedegreesel.png"></P
><P
><B
>Figure 15. Navigation</B
></P
></DIV
><P
> As a quick short cut, double clicking on a line between two people
will make the person on the right hand side of the line the active
person. <A
HREF="pedegreeview.html#NAVFIGURE-FIG"
>Figure 15</A
> shows navigation using this
method. When the mouse is over one of the lines connecting
individuals, the line widens and becomes highlighted. In this
case, double-clcking on the line would make Hjalmar Smith the
active person.
</P
></DIV
><DIV

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -97,7 +97,7 @@ NAME="PLACEVIEW-FIG"
SRC="placelist.png"></P
><P
><B
>Figure 16. Place View</B
>Figure 17. Place View</B
></P
></DIV
><P

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -84,7 +84,7 @@ CLASS="INTERFACE"
>Preferences</SPAN
> dialog, shown in <A
HREF="prefs.html#PREFS_GEN"
>Figure 17 in the section called <I
>Figure 20 in the section called <I
>General Preferences</I
></A
>.
@ -107,7 +107,7 @@ NAME="PREFS_GEN"
SRC="prefs_gen.png"></P
><P
><B
>Figure 17. Preferences Dialog</B
>Figure 20. Preferences Dialog</B
></P
></DIV
><P
@ -224,7 +224,7 @@ NAME="PREFS_FMT"
SRC="prefs_fmt.png"></P
><P
><B
>Figure 18. Formats</B
>Figure 21. Formats</B
></P
></DIV
><P
@ -301,7 +301,7 @@ NAME="PREFS_APPEAR"
SRC="prefs_appear.png"></P
><P
><B
>Figure 19. Preferences Dialog</B
>Figure 22. Preferences Dialog</B
></P
></DIV
><P
@ -389,7 +389,7 @@ NAME="PREFS_RESEARCH"
SRC="prefs_research.png"></P
><P
><B
>Figure 20. Researcher Information Dialog</B
>Figure 23. Researcher Information Dialog</B
></P
></DIV
><P
@ -417,7 +417,7 @@ NAME="PREFS_REPORT"
SRC="prefs_report.png"></P
><P
><B
>Figure 21. Report Preferences Dialog</B
>Figure 24. Report Preferences Dialog</B
></P
></DIV
><P
@ -461,11 +461,11 @@ NAME="PREFS_DIR"
SRC="prefs_dir.png"></P
><P
><B
>Figure 22. Directory Preferences Dialog</B
>Figure 25. Directory Preferences Dialog</B
></P
></DIV
><P
> This allows you to set the default directory for your database,
> This allows you to set the default directories for your databases,
reports, and Web Sites.
</P
></DIV

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -88,153 +88,111 @@ NAME="TOOLS-FIG"
SRC="toolsel.png"></P
><P
><B
>Figure 25. Tool Selection Dialog</B
>Figure 28. Tool Selection Dialog</B
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="ANALYSIS"
>Analysis and Exploration</A
></H2
><P
></P
><UL
><LI
><DIV
CLASS="VARIABLELIST"
><P
> <TT
CLASS="GUILABEL"
><B
>Compare individual events</B
></TT
> &#8212; Aids
in the analysis of data by allowing the development of
>Analysis and Exploration</B
></P
><DL
><DT
>Compare individual events</DT
><DD
><P
> Aids in the analysis of data by allowing the development of
custom filters that can be applied to the database to find
similar events.
</P
></LI
><LI
></DD
><DT
>Interactive descendant browser</DT
><DD
><P
> <TT
CLASS="GUILABEL"
><B
>Interactive descendant browser</B
></TT
> &#8212;
Provides a browsable hierarchy based on the active person.
> Provides a browsable hierarchy based on the active person.
</P
></LI
></UL
></DD
></DL
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="DATAPROCESSING"
>Data Processing</A
></H2
><P
></P
><UL
><LI
><DIV
CLASS="VARIABLELIST"
><P
> <TT
CLASS="GUILABEL"
><B
>Check and repair database</B
></TT
> &#8212;
Checks the database for integrity problems, fixing the
>Data Processing</B
></P
><DL
><DT
>Check and repair database</DT
><DD
><P
> Checks the database for integrity problems, fixing the
problems that it can.
</P
></LI
><LI
></DD
><DT
>Extract information from names</DT
><DD
><P
> <TT
CLASS="GUILABEL"
><B
>Extract information from names</B
></TT
> &#8212;
Searches the entire database and attempts to extract titles
> Searches the entire database and attempts to extract titles
and nicknames that may be embedded in a person's given name
field.
</P
></LI
><LI
></DD
><DT
>Merge people</DT
><DD
><P
> <TT
CLASS="GUILABEL"
><B
>Merge people</B
></TT
> &#8212; Searches the
entire database, looking for individual entries that may
represent the same person.
> Searches the entire database, looking for individual entries
that may represent the same person.
</P
></LI
><LI
></DD
><DT
>Rename personal event types</DT
><DD
><P
> <TT
CLASS="GUILABEL"
><B
>Rename personal event types</B
></TT
> &#8212;
Allows all the events of a certain name to be renamed to a
> Allows all the events of a certain name to be renamed to a
new name.
</P
></LI
><LI
></DD
><DT
>Reorder gramps ID's</DT
><DD
><P
> <TT
CLASS="GUILABEL"
><B
>Reorder gramps ID's</B
></TT
> &#8212; Reorders the
gramps ID's according to gramps' default rules.
> Reorders the gramps ID's according to gramps' default rules.
</P
></LI
></UL
></DD
></DL
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="REPORTS_UTILITIES"
>Utilities</A
></H2
><P
></P
><UL
><LI
><DIV
CLASS="VARIABLELIST"
><P
> <TT
CLASS="GUILABEL"
><B
>Generate SoundEx codes</B
></TT
> &#8212;
Generates SoundEx codes for names.
</P
></LI
><LI
>Utilities</B
></P
><DL
><DT
>Generate SoundEx codes</DT
><DD
><P
> <TT
CLASS="GUILABEL"
><B
>Relationship calculator</B
></TT
> &#8212;
Calulates the relationship between two people.
> Generates SoundEx codes for names.
</P
></LI
></UL
></DD
><DT
>Relationship calculator</DT
><DD
><P
> Calulates the relationship between two people.
</P
></DD
></DL
></DIV
></DIV
><DIV

View File

@ -97,11 +97,13 @@ NAME="SOURCEVIEW-FIG"
SRC="sourcelist.png"></P
><P
><B
>Figure 15. Source list</B
>Figure 16. Source list</B
></P
></DIV
><P
> From this screen you are able to Add, Edit, and Delete sources.
> From this screen you are able to Add and Edit sources. Currently,
deleting of sources is not available. This will be implemented in
a future version.
</P
></DIV
><DIV

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -4,6 +4,8 @@
Copyright (c) 2001 Graham J. Williams
Time-stamp: <2001/09/14 09:54:20 Graham.Williams@cmis.csiro.au>
Freely Redistributable under the terms of the GNU General Public License.
Based on GEDCOM and conforming with Gramps XML encoding.
@ -15,11 +17,11 @@ Information on Gramps is available from http://
<!--
Define an XML document which is a <database> consisting of a
<header>, <people>, <families>, <sources> and <bookmarks>.
<header>, <people>, <families>, <sources>, <places> and <bookmarks>.
-->
<!ELEMENT database (header, people?, families?, sources?, bookmarks?)>
<!ELEMENT database (header, people?, families?, sources?, places?, bookmarks?)>
<!-- ************************************************************
@ -73,7 +75,7 @@ PEOPLE
<!ATTLIST name conf CDATA #IMPLIED
priv CDATA #IMPLIED>
<!ELEMENT aka (first?, last?,suffix?)>
<!ELEMENT aka (first?, last?,suffix?,note?)>
<!ATTLIST aka conf CDATA #IMPLIED
priv CDATA #IMPLIED>
@ -88,11 +90,6 @@ PEOPLE
<!ATTLIST pos x CDATA #REQUIRED
y CDATA #REQUIRED>
<!ELEMENT url EMPTY>
<!ATTLIST url conf CDATA #IMPLIED
priv CDATA #IMPLIED
href CDATA #REQUIRED>
<!ELEMENT childof EMPTY>
<!ATTLIST childof
ref IDREF #REQUIRED
@ -151,6 +148,29 @@ SOURCES
<!ELEMENT spubinfo (#PCDATA)>
<!ELEMENT scallno (#PCDATA)>
<!-- ************************************************************
PLACES
-->
<!ELEMENT places (placeobj)*>
<!ELEMENT placeobj (coord?,location*,img*,url*,note?)>
<!ATTLIST placeobj id ID #REQUIRED title CDATA #REQUIRED>
<!ELEMENT coord EMPTY>
<!ATTLIST coord long CDATA #REQUIRED lat CDATA #REQUIRED>
<!ELEMENT location EMPTY>
<!ATTLIST location
city CDATA #REQUIRED
county CDATA #REQUIRED
state CDATA #REQUIRED
country CDATA #REQUIRED
>
<!-- ************************************************************
BOOKMARKS
@ -176,28 +196,38 @@ SHARED ELEMENTS
<!ELEMENT event (date?,place?,description?,sourceref?,note?)>
<!ATTLIST event type CDATA #REQUIRED>
<!ATTLIST event type
(Birth|Death|Christening|Baptism|Engagement|Marriage|
Occupation|Education|Degree|Immi|Burial|Cremation)
#REQUIRED>
<!--
Alternatively for event type we could enumerate all possibilities,
but then this will not conform to Gramps as Gramps allows any type
of events (i.e., a user can define their own type of event) . So by
allowing anything we no longer have automatic checking.
We can enumerate all possibilities for an event and then this will
not conform to Gramps as Gramps allows any type of events (i.e., a
user can define their own type of event) . By allowing anything
(CDATA) we no longer have automatic checking and in emacs no more
automatic selection of event types.
(Birth|Death|Christening|Baptism|Engagement|Marriage|
Occupation|Education|Degree|Immi|Burial)
There are many more that Gramps supplies by default.
So decide to use the enumerated list for now unless there is a storm
of protest.
-->
<!ELEMENT date (#PCDATA)>
<!ELEMENT place (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT note (#PCDATA)>
<!ELEMENT url EMPTY>
<!ATTLIST url href CDATA #REQUIRED
conf CDATA #IMPLIED
priv (0|1) #IMPLIED
description CDATA #IMPLIED>
<!ELEMENT place EMPTY>
<!ATTLIST place ref IDREF #REQUIRED>
<!ELEMENT sourceref (spage?,scomments?,stext?,sdate?)>
<!ATTLIST sourceref ref IDREF #REQUIRED>
@ -209,6 +239,6 @@ SHARED ELEMENTS
<!ELEMENT img EMPTY>
<!ATTLIST img
src CDATA #REQUIRED
descrip CDATA #IMPLIED
description CDATA #IMPLIED
display CDATA #IMPLIED>

View File

@ -91,6 +91,7 @@ class GrampsParser(handler.ContentHandler):
self.source_ref = None
self.attribute = None
self.placeobj = None
self.locations = 0
self.place_map = {}
self.resname = ""
@ -161,6 +162,7 @@ class GrampsParser(handler.ContentHandler):
def start_placeobj(self,attrs):
self.placeobj = self.db.findPlaceNoMap(u2l(attrs['id']))
self.placeobj.set_title(u2l(attrs['title']))
self.locations = 0
#---------------------------------------------------------------------
#
@ -177,11 +179,12 @@ class GrampsParser(handler.ContentHandler):
loc.set_county(u2l(attrs['county']))
if attrs.has_key('country'):
loc.set_country(u2l(attrs['country']))
if attrs.has_key('type'):
if self.locations > 0:
self.placeobj.add_alternate_locations(loc)
else:
self.placeobj.set_main_location(loc)
self.locations = self.locations + 1
#---------------------------------------------------------------------
#
#
@ -427,8 +430,8 @@ class GrampsParser(handler.ContentHandler):
def start_photo(self,attrs):
photo = Photo()
for key in attrs.keys():
if key == "descrip":
photo.setDescription(u2l(attrs["descrip"]))
if key == "descrip" or key == "description":
photo.setDescription(u2l(attrs[key]))
elif key == "src":
src = u2l(attrs["src"])
if src[0] != os.sep:

View File

@ -304,7 +304,7 @@ def exportData(database, filename, callback):
if fileroot == path[0:l]:
path = path[l+1:]
g.write(' <img src="%s"' % fix(path) )
g.write(' descrip="%s"' % fix(photo.getDescription()))
g.write(' description="%s"' % fix(photo.getDescription()))
proplist = photo.getPropertyList()
if proplist:
for key in proplist.keys():
@ -393,7 +393,7 @@ def exportData(database, filename, callback):
if fileroot == path[0:l]:
path = path[l+1:]
g.write(" <img src=\"" + fix(path) + "\"")
g.write(" descrip=\"" + fix(photo.getDescription()) + "\"")
g.write(" description=\"" + fix(photo.getDescription()) + "\"")
proplist = photo.getPropertyList()
if proplist:
for key in proplist.keys():
@ -432,7 +432,7 @@ def exportData(database, filename, callback):
if fileroot == path[0:l]:
path = path[l+1:]
g.write(" <img src=\"" + fix(path) + "\"")
g.write(" descrip=\"" + fix(photo.getDescription()) + "\"")
g.write(" description=\"" + fix(photo.getDescription()) + "\"")
proplist = photo.getPropertyList()
if proplist:
for key in proplist.keys():
@ -464,7 +464,7 @@ def exportData(database, filename, callback):
country = fix(loc.get_country())
county = fix(loc.get_county())
if city or state or country or county:
g.write(' <location type="alternate"')
g.write(' <location')
g.write(' city="%s" county="%s"' % (city,county))
g.write(' state="%s" country="%s"/>\n' % (state,country))
for photo in place.getPhotoList():
@ -474,7 +474,7 @@ def exportData(database, filename, callback):
if fileroot == path[0:l]:
path = path[l+1:]
g.write(" <img src=\"" + fix(path) + "\"")
g.write(" descrip=\"" + fix(photo.getDescription()) + "\"")
g.write(" description=\"" + fix(photo.getDescription()) + "\"")
proplist = photo.getPropertyList()
if proplist:
for key in proplist.keys():