This paper describes how to write a linguistic document in XML using the XLingPaper approach. It is specifically for those who wish to also use the XMLmind XML Editor to key, edit, and process their paper. If you wish to create an XLingPaper document without using the XMLmind XML Editor, please see the regular user documentation. The choice of editor you use to key an XLingPaper document, of course, is up to you.
The XLingPaper package is designed to aid the linguist in writing linguistic documents such as papers, books, theses, and dissertations.
Linguists commonly face three obstacles in formatting papers. First, all examples are numbered in a paper. If during the writing process the author discovers a need to insert an example, then the numbering of all following examples and all references to those examples within the text need to be re-adjusted. This mechanical change can be both time-consuming and prone to error. Similarly, if the author decides to reorder some examples, then the numbering needs to be adjusted appropriately. XLingPaper provides an automatic way to facilitate such numbering and renumbering.
Secondly, linguists cite the work of other researchers using a standard citation format. This format functions essentially as an abbreviation or reference to the full citation entry which appears in the references section of the paper. The burden of maintaining consistency between citation and reference typically falls totally on the author. Many a reader has been disappointed to find a citation to a paper in the body of a paper for which there is no entry in the references section. XLingPaper provides an automatic means for a writer to maintain consistency; all citations in the text must have a corresponding entry in the references. Conversely, XLingPaper will include only those entries in the references section which are cited in the text. This latter characteristic implies that one can maintain one master list of references and merely include it in any given paper. Only those references actually cited in the given paper will appear in the references section.
Thirdly, linguists commonly use a set of abbreviations while glossing examples. They usually include either a list of the abbreviations and their definitions in a footnote, in a special front-matter page, or in a back-matter page. As for citations and references, the burden of maintaining consistency between the abbreviations used in the text and the abbreviations defined in the list typically falls totally on the author. Many a reader has been disappointed to find an abbreviation in a gloss for which there is no corresponding entry in the list of abbreviations. XLingPaper provides an automatic means for a writer to maintain consistency; the author can make it so all abbreviations in the text must have a corresponding entry in the list of abbreviations. Conversely, XLingPaper will include only those abbreviations in the list of abbreviations which are actually used in the text. This latter characteristic implies that one can maintain one master list of abbreviations and merely include it in any given paper. Only those abbreviations actually cited in the given paper will appear in the list of abbreviations. By the way, XLingPaper also creates a hyperlink between the abbreviation in the text and the abbreviation in the list of abbreviations. Thus, a reader can click on the abbreviation and see what it means.
In addition, in some formatting systems such as HTML, headers (i.e. h1, h2, etc.) are not automatically numbered. XLingPaper will automatically number all parts, chapters, and sections. Furthermore, one may create references to parts, chapters, or sections and these will display as hyperlinks to them, using the appropriate number.
Since XLingPaper is in XML, it also can serve as an archiving format.
XLingPaper has several major components:
The front matter contains items like the title, author, date, contents, and abstract.
The sections contain the main body of the paper. The main body can be as large as book parts which contain chapters (which in turn contain sections) or be a series of chapters or just a series of sections.
The back matter contains items like appendices, endnotes, and references.
This section provides an overview of how to use XLingPaper with the XMLmind XML Editor. There are two basic steps involved.
The first consists of entering the appropriate element tags into an XML document. That is, the writer needs to key the correct tags in the file(s) to enable XLingPaper to recognize them. This document describes how one can do this using the XMLmind XML Editor. See the regular user documentation for other ways one can do this.
The second step in using XLingPaper is to process the document file(s) to show the output in some form. Currently there are ways to produce these kinds of outputs:
The XMLmind XML Editor makes it easier to key the elements and also to produce these outputs.
The XMLmind XML Editor[1] is a freely downloadable editor that makes it quite easy to create not only XLingPaper documents, but also XHTML documents, among others. This editor is a structured editor and has at least the following very nice features:
There are two steps in getting the complete package. See http://www.xlingpaper.org/?page_id=51 for details and instructions on getting the package.
Since the XMLmind XML Editor is a structured editor, it is probably a bit different than other editors you have used. I recommend if at possible that you go to http://www.xlingpaper.org/?page_id=14 and download two of the movies: the second (“A tour of the XMLmind XML Editor that XLingPaper uses”) and the third (“How to type text in XLingPaper”). You can then watch them on your computer whenever needed. These will illustrate the key things that are different about using XLingPaper.
Once you have seen these two demo movies, then you can start creating an XLingPaper file. In XMLmind XML Editor, use File / New, find the XLingPaper section, and then select the kind of document you want to create. There are six complete document types, eight document component types, plus five publisher style sheet templates (see 11.25 or click here to see the documentation for publisher style sheets). Here are the most basic ones, listed alphabetically:
Choose the type of document you wish to create.
If you selected the Paper one, it will look something like this:
You can immediately start typing the content of the title element. Pressing the tab key or the right arrow key will move you
on to the author element. You can click on the plus sign inside a box to open up what is inside the element. You can also press the Esc key followed by the / key to open up an element. This same sequence of keys will close an element.[2]
When you have the red cursor on some text within an element, you can right click (or press the F12 key). It will give you a list of the elements which can be inserted before, within, or after where you are. The possible elements are shown in the Edit tool.[3]
For example, if you have begun a new paper and have keyed the title, gone on to the author line and keyed an author name, when you right-click in the author element, it will look like this:
If you select Insert After..., then it will look like this:
Notice the cursor is in the Edit tool[3] in the upper right hand corner. The list of elements shown (i.e. abstract, acknowledgments, affiliation, author, contents, etc.) are the only elements that can be added after where you currently are. You can type the name of the element you want to add. Suppose you want to add an affiliation element. Start to type the word affiliation and it should look like this:[4]
You can now press the Enter key and an affiliation element will be inserted after the author element. Like this:
You can now start typing the content of the affiliation field.
By right-clicking, you can add an element before or after where you are in this manner. When it is appropriate, you can also insert an element within the text. For example, if you were typing a section title and right-clicked after the word first, it might look like this:
Select Insert.... You will now get a different list of elements showing up in the Edit tool:[3]
When you type the name of one of these elements, it will appear within the text you are typing (the section title in this example). See below for more on these elements.
Please note that when you have a paragraph (p element), have typed some text in it and then insert after it something like one of the example element packages (see section 5) and typed in what you need in the example, you have to do something special to continue on with another paragraph. To get a following paragraph, you will need to select the entire example element and then do an Insert After command. You will then see that one of the options is a p element (for paragraph). Choose the p element and then you can start typing in it. The reason for this is that paragraph elements are allowed only after entire example elements.
When an element has some attributes that need to be set, one will see these in the Attributes tool. For example, suppose you have just entered a citation to a book (see section 8). It might look something like this:
Notice the Attributes tool in the lower right hand portion of the screen. This allows you to edit particular attributes of the citation element.
One of the things that can make using the XMLmind XML Editor a bit different from using other editors, is that when one enters such an element while typing a paragraph, say, one will find that the new element has been inserted as illustrated in (8), but one cannot seem to type beyond the recently inserted element. The trick to learn is to type the Insert key[5] while the newly inserted element is still outlined in red. When you do this, you will see a hashed box after the element and you can continue typing.
Armed with the knowledge that you can right-click and then insert before, within, or after the current position as well as the use of the Attributes tool, you are now on your way to creating your document.[6]
Besides the main text of the paper, one may also define the languages used within the paper. One can then tag individual data items as belonging to one of these languages. Each language definition has font-related information associated with it, so one can set the font, size, color, etc. for each language. When the paper is formatted, each data item tagged with a given language will consistently be shown in the specified way.
To add or edit languages, open up the Languages section near the bottom of the XMLmind XML Editor window by clicking on the icon in front of Languages and then click on the word language in front of lVernacular. It should look something like this, as indicated by the large black arrow:
There are three predefined languages which come when you create a new XLingPaper document: one for your (default) vernacular language data; one for your (default) glossing language; and one for English
(used with abbreviations). You can set the font-related attributes by clicking on the button. When you do, you will see a dialog box like this:
You can use it to set the font family, the style (i.e. bold and/or italic) and the font size. The “Use default” values indicate to use whatever family, style, or size is currently in effect. You override the default by specifying a particular value.
We recommend that you use a percentage for the font size. This way, if the language data item is in a section header, it will show at the correct size. If you use an absolute point size, then it may well be smaller than the surrounding words in the section header.
If you click on the button, you can set the color for the language. When you do, you will see a dialog box like this:
You can click on the color you want in the boxed area. The Preview area will then show you what that color will look like. When you click on the OK button, the special color code number will show in the color attribute.[7]
In the Attributes tool on the right, you can click in an attribute field and type in the appropriate information (e.g. the language name). You can thus fill in the appropriate information for the language(s) you will be writing about.
The gloss language is there for use with glosses (in case you want the glosses to come out in a special color or font).
You may certainly have more than two languages defined. Merely add another language element as described earlier in this section above and key in the appropriate attributes.
The attributes of the language element are summarized in the table shown in (12).[11]
(12) |
|
In the rest of this user documentation, the uses of the various elements will be discussed. It is organized first by the major components: front matter, sections, and then back matter. There also are sections on examples, on tables, charts, and trees, on lists, on citations, on interlinear text, and also on producing special effects. In addition, there are sections on how to do some common tasks and notes on being productive. Finally, there sections on several special issues: publishing information, framed units, content control, hanging indent paragraphs, and chapters in collection volumes. Appendix A contains a reference listing of all the elements that XLingPaper uses, with a brief description of each. Similarly, appendix B has a reference listing of all the elements that XLingPaper uses for publisher style sheets.
Examples of what elements to use to get a particular effect will be illustrated using the XMLmind XML Editor. See the regular user documentation for other (I think more difficult) ways to key the XML. The choice of editor you use to key an XLingPaper document, of course, is still up to you.
This section delineates the elements that can appear in the front matter of a paper. They are presented in the order in which they must occur.
The title element is required in a front matter. A title may include language data and endnotes, as well as other elements.[10]
The subtitle element is optional. Like a title element, it may include language data and endnotes, among other elements.
One or more author elements must be included.
The author element has an attribute of ORCID which can be used to enter the Open Researcher and Contributor ID. See http://about.orcid.org/.
One or more authorContactInfo elements may optionally be included. Each one refers to an authorContact element via its author attribute.
These are typically only used for some publications. You probably will only need to insert one when you are about to publish your XLingPaper document and your publisher requires it.
As soon as you insert an authorContactInfo element, if you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the author contacts currently available. You can then choose the one you want. See also section 13.2.
Each author name may be followed by the affiliation of that author or the preceding authors, using an affiliation element. These are optional elements.
Each author name may be followed by an email address, using an emailAddress element. These are optional elements.
One may add this line in the front matter indicating that the paper had been presented at some conference. This is an optional element.
The date of the paper may also be included as a date element. This is an optional element.
The version element may be included to provide a version number for the document. It is also optional.
One may optionally include a table of contents by merely including the contents element. Including this tag will instruct XLingPaper to automatically generate a table of contents.
The default situation is for the table of contents to include sections up to three levels deep (i.e. it will include the titles for all of the following: part, chapter, appendix, section1, section2, and section3). You can control how many section levels will be included in the table of contents by changing the value of the showLevel attribute. Its value can be any of the integer numbers between "1" and "6".[11] It can also be set to "0" (zero) if you do not want any sections to show in the table of contents such as you might in a book with chapters,
The table of contents will also include acknowledgments (if any), the abstract (if present), endnotes (if needed), any indexes and references.
XLingPaper will use a title of "Table of Contents" for the contents. If you wish to use some other title, set the label attribute to the title you want to use.[11]
Acknowledgements for the paper may be included by using the acknowledgements element. The content of the acknowledgements may be a sequence of any "chunk" elements.[12]
XLingPaper will use a title of "Acknowledgements" for the acknowledgements. If you wish to use some other title, set the label attribute to the title you want to use.[11]
Note that one may put an acknowledgments element either in the front matter or in the back matter. See section 4.1.
An abstract for the paper or book may be included by using the abstract element. The content of the abstract may be a sequence of any "chunk" elements. (See endnote [12] for what the "chunk" elements are.)
XLingPaper will use a title of "Abstract" for the abstract. If you wish to use some other title, set the label attribute to the title you want to use.[11]
A preface may be included by using the preface element. The content of the preface may be a sequence of any "chunk" elements. (See endnote [12] for what the "chunk" elements are.)
XLingPaper will use a title of "Preface" for the preface. If you wish to use some other title, set the label attribute to the title you want to use.[11] One can have multiple instances of preface elements and thus, by changing the label, you can create special front matter sections.
Here is an example of the front matter using most of the possibilities. If one keys the elements so they look like this:
Then it should come out looking like what is shown in example (14).
(14) |
|
Sections may be nested up to six levels deep. Each level is an element tag consisting of the word "section" followed by the level number. For example, a third level section is section3.
Every section element has a required secTitle element which gives the section title. The title may contain language data and an endnote, if one so desires.[13]
When you insert a section, it looks like this:
The number (4 in example (15) above) will vary depending on the section level and the position of this section with respect to other sections. The black hashed box is where you type in the title of the section. The little s is where you should type in a unique name for this section so you can refer to it elsewhere in your paper.[14] The idea is to create a unique name that relates to the content of the section. For example, it could be an abbreviated form of the section title. I strongly recommend that you use letters and numbers, but no spaces.[15] You can use case to distinguish words. Here are some examples taken from this document:
(16) |
|
Note that using only the section number for these is not a good idea because at some point down the road you may want to rearrange the section. That is why we recommend using a more explanatory description.
Sections may contain a sequence of any of the following elements:
As noted in section 3.1, you should give each section a unique identifier name (that begins with a lower case s). This is so you can refer to the section elsewhere in the paper.
To make such a reference to a section, you use the sectionRef element. While typing text (such as in a p (paragraph) element), insert an element[16] and choose sectionRef. You will see . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the section, chapter, and part titles in your paper along with their identifiers.
While writing this section, for example, I just did this and the dialog box looked like this:
You can type the section number you want in the text box or scroll down until you find the one you want.[17] Note that capitalization is significant when typing.
When your document is processed, a hyperlink is made between the reference and the section header.[18]
Note that if you wish to refer to an appendix, you should use the appendixRef element and set its content via the F11 key or right-click, Set Reference F11as described above. This time the dialog box will only list the titles and identifiers for the appendices.
One can also control what text precedes a section reference, if one so chooses. Some people like to use a word such as “section,” whereas others prefer to not have anything. One challenge with actually keying or not keying such words is that some publishers may want the author to do it one way or the other. In fact, some publications want authors to use a special section symbol: §.
In an effort to minimize an author's effort in dealing with this situation, XLingPaper provides you with the option of never keying such words, but rather to have them be inserted automatically when the paper (or book) is formatted. That is, if you so choose, you can never key words such as “section” before a sectionRef element. Which word or symbol will appear before them, if any, is controlled by setting various attributes of the sectionRef element and the lingPaper element.[19] Please note that the default situation is for XLingPaper to not automatically insert these words; but if you wish, you can have XLingPaper insert them for you.
Example (18) lists the attributes of the lingPaper element that are relevant to this discussion. To modify them, click on “lingPaper” in the node path bar.[48] Then change them using the Attributes Tool.[11] Note that the key attribute is sectionRefDefault. The other four are there so you can change the default text to what you need. There are four cases for whether the text needs to be capitalized or not and for whether there is only one reference or several. The default is to use the English words “section,” “sections,” “Section,” and “Sections” as appropriate. The “label” attributes are there so if you are writing in a non-English language, you can use the appropriate terms for that language.
(18) |
|
The attribute for controlling this text via a sectionRef element is given in example (19).
(19) |
|
It is also possible to show just the title or the short title of a section. One uses the showTitle attribute of the sectionRef element to control this as explained in example (20).
(20) |
|
Here is an example of some sections, including some section references. The section references use the simpler, default method, not what is discussed in 3.3.1. If you key what is shown in (21), it will come out looking like what is shown in (22).
(22) |
|
Instead of starting a paper with a top level section, one may use chapters instead. Each chapter then may have up to six levels of sections and subsections.
That is, when you create a new document (by using menu items File / New), choose the option for “Book (chapter-oriented)”.
If one is working on a larger project and the paper has not only chapters, but also parts (each of which contains chapters), then one should use the part element as the first element after any front matter.
That is, when you create a new document (by using menu items File / New), choose the option for “Multi-part book (part-oriented) ”.
Back matter consists of acknowledgements, appendices, glossary, abbreviations, endnotes, references, author contact information and indexes. All of these are optional.
Acknowledgements for the paper may be included by using the acknowledgements element. The content of the acknowledgements may be a sequence of any "chunk" elements.[12]
XLingPaper will use a title of "Acknowledgements" for the acknowledgements. If you wish to use some other title, set the label attribute to the title you want to use.[11]
Note that one may put an acknowledgments element either in the front matter or in the back matter. See section 2.11.
Appendices are similar to chapters. One merely adds an appendix element. It has its title and one may include sections and subsections. The appendix will automatically be given a letter. Its sections and subsections will be numbered like other sections, only they will begin with the appropriate appendix letter. See the example back matter section (4.9) below.
It is possible to have the appendix appear in landscape mode by setting the showinlandscapemode attribute to yes. The entire appendix will then show in landscape mode.[20]
A glossary for the paper may be included by using the glossary element. The content of the glossary may be a sequence of any "chunk" elements,[12] although including either a table or a definition list is the most likely.
XLingPaper will use a title of "Glossary" for the glossary. If you wish to use some other title, set the label attribute to the title you want to use. One can have multiple instances of glossary elements and thus, by changing the label, you can create special back matter sections.
HTML does not readily allow for footnotes, since the entire paper may be rendered on one HTML page. Therefore we use endnotes instead of footnotes. It is now possible for some outputs like PDF or Microsoft Word 2003 to use footnotes. Nonetheless, we still use endnote elements for this. That is, use an endnote element whether or not you plan to have endnotes or footnotes. The process that converts XLingPaper from XML to HTML or one of the other formats will take care of whether these elements show up as endnotes or as footnotes. If you are using a publisher style sheet (see section 11.25), then you can control whether the output uses endnotes or footnotes for non-web page outputs. See the useEndNotesLayout element in the XLingPaper Publisher Style Sheet User Documentation file.
One keys an endnote in the text at the point where the reference to the endnote should go (i.e. the "endnote number", usually rendered in superscript). For example, suppose one wants to key an endnote where the vertical red cursor is in example (23).
One can right-click and choose Insert... and then type endnote. The result will look like this:
One can now give the endnote a unique id (which should begin with n; the id should also only contain letters and numbers; no spaces[15]). When you open up the endnote (click on the ), it will look like this:
You can now start typing the content of the endnote. The content of the endnote normally begins with a paragraph tag p, although one may use a sequence of any "chunk" elements.[12]
Note that an endnotes element is required in the back matter section in order to get endnotes to come out properly.
Occasionally, one wants to refer to an endnote. One uses an endoteRef element for this. When you insert an endoteRef element, you will see . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the endnote identifiers in your paper. While writing this section, for example,
I just did this and the dialog box looked like this:
You can type in the name of the endnote or scroll down until you find the one you want. Note that capitalization is significant when typing. When your document is processed, a hyperlink is made between the reference and the endnote.[21]
The references section begins by using the references element. Remember that unlike papers or books you may have produced before, when one uses XLingPaper the content of the references section will only show in the formatted output if there is at least one citation element somewhere in the paper referring to it. See section 8 for more on citations.
Within the references element, one creates a sequence of refAuthor elements. Note that XLingPaper has you group the references by author, not by work. Normally, the refAuthor elements should be ordered alphabetically by the author's last name. It is possible to have the authors sorted when the output is produced (see section 4.5.13). In addition, there is a way to quickly find an author/work as described in section 4.5.12.
Each refAuthor element has two required attributes: citename and name. The citename attribute is how you want the author's name to be shown in a citation within the body of the paper.[11]
The name attribute is how you want the author's name to appear in the references (usually last name first for single authors; see the examples below in section 4.9). You may also include a refAuthorInitials element for those cases where you need to use initials for the author(s) first, etc. names. You control which of these two forms of the name(s) of the author(s) shows in the XMLmind XML Editor by setting the authorformtoshowineditor attribute on the references element. See section 4.5.11 below for more on this.
Some publishers wish to format author's last names differently from first names (e.g., using small caps). Therefore, it is also possible to insert a refAuthorName element just before the first refWork element. One types the author name(s) in the refAuthorName element and one then selects an author's last name and uses the Convert command (via Edit / Convert, pressing Ctrl-T, or by clicking on the convert icon in the Edit tool[3]) to convert the last name into a refAuthorLastName element. Note that this only works with a publisher style sheet that has a refAuthorLastNameLayout element defined.
Within each refAuthor element, one lists one or more refWork elements, each of which describes a work by that author. They should be ordered by date, oldest first. Each refWork element has a required id attribute which can be referred to by citation elements within the body of the paper. You should create a unique name for this id element. The name should begin with an r and should consist of letters and numbers (no spaces).
Every refWork element has both a refDate element and a refTitle element. The refDate element contains the date (i.e. year) of the work. If there is more than one work by the same author within a given year, merely list the year for each such work. XLingPaper will automatically append a letter after the year as appropriate. The refWork element may also optionally end with a url element (for indicating the address of a page on the World Wide Web if the work happens to be stored on the World Wide Web). In addition, the refWork element has a XeLaTeXSpecial attribute which you can set to pagebreak when you want to force a page break before this work in the output (and are using the default way of producing PDF).
The refTitle element contains the title of the work. The title should not include any formatting (such as surrounding quotes) as these will be added automatically by XLingPaper. The title may, however, include any "embedded" elements.[22] You may also include a refTitleLowerCase element for those cases where you need to use titles which are lower case (except for the first word and proper nouns). You control which of these two forms of the title shows in the XMLmind XML Editor by setting the titleformtoshowineditor attribute on the references element. See section 4.5.11 below for more on this.
Any refWork element may optionally contain a url element and a dateAccessed element. This allows you to provide the URL where the work is available online and the date when you accessed that URL, respectively. In addition, any refWork element may have one or more iso639-3code elements. These indicate the ISO 639-3 code for the language(s) discussed in the work.
The rest of the information about the citation depends on the type of citation it is. XLingPaper allows the types given in the following sections:
This is for an article published in a journal. Besides the date and the title, an article also has jTitle, jVol, optional jIssueNumber, and either jPages or jArticleNumber elements (for the journal title, the journal volume number, the journal issue number, and either the page numbers of the article in the journal or the article number; the latter two are optional). It may also have optional location and publisher elements.
This is for a book. Besides the date and the title, a book also has optional translatedBy, edition, seriesEd, seriesEdInitials, series, bVol (book volume), and multivolumeWork (a volume in a multivolume set of works[23]) elements, a recommended location element and a recommended publisher element.
This is for a paper included in a volume or collection of papers. Besides the date and the title, a collection paper also has:
The collEd element also has a plural attribute to indicate whether there is more than one editor. Use the value of yes if there are more than one editor; otherwise, use the value of no.[11]
Section 4.5.3.1 shows an alternative way of handling papers in collections.
This section describes another way to handle collection information which some publishers prefer to use.
Consider the following portion of a references section (taken from http://assets.cambridge.org/IPA/IPA_ifc.pdf accessed on 10 November 2010). Only those entries which are collections are shown.
Notice that for Bauer & Warren (2004) and for Sampson (1987), the reference entry itself contains the information about the collection volume (i.e. the book) the paper occurs in. For Barry (1992) and Browman & Goldstein (1992), however, the reference entry refers to another reference entry for the collection: Docherty & Ladd (1992).
Why should some collection entries have the full information about the collection volume while others merely refer to the collection volume which is a distinct entry itself? The key difference is that when two or more papers from the same collection volume are cited, then for those papers, we need to refer to the collection volume itself instead of spelling out the collection volume information.
It is possible within XLingPaper to have both of these methods occur automatically. That is, one can add reference entries for the collection volume itself and then use a special collCitation element to refer to the collection volume (which will use a book element). If a given XLingPaper document has two[24] or more papers cited from the same collection volume, those papers will use the special citation format (like for Barry (1992) and Browman & Goldstein (1992) in example (27) above). In addition, the collection volume entry (which uses a book element) is also given (Docherty & Ladd (1992) in example (27) above). If only one paper from a given collection volume occurs in the document, then even though the collection element has a collCitation element, XLingPaper will put the information for the collection volume within the reference entry (like for Bauer & Warren (2004) and Sampson (1987) in example (27) above).
For example, suppose you had reference entries for the items given in (27) keyed as shown in (28). Notice that the collCitation elements look rather like citation elements (see section 8). This is because they act quite a bit like a citation.
Further suppose that in this document, the following items are cited: Barry (1992), Bauer & Warren (2004), Browman & Goldstein (1992), and Sampson (1987). Then the references section in the web page output might look this:
(29) |
|
If on the other hand, in a different document only Bauer & Warren (2004), Browman & Goldstein (1992), and Sampson (1987) are cited, then the output would look like this:
(30) |
|
Notice that while every collection entry in (28) has just a collCitation element in it, whether the collection volume information is included in the collection entry depends on how many other papers are cited for the collection volume. XLingPaper figures out what to do in each case.
One other thing to observe is that whenever XLingPaper inserts the collection volume information into a collection entry output, it assumes that the collection volume editor(s) will be listed with the first editor's last name, comma, and then the first editor's first name. For example, in (28), the Docherty & Ladd entry has the author name as “Docherty, Gerald J. & D. Robert Ladd.” In example (30) where XLingPaper inserted the collection volume information for Browman & Goldstein (1992), XLingPaper converted “Docherty, Gerald J. & D. Robert Ladd” to “Gerald J. Docherty & D. Robert Ladd.”
Suppose you already have a number of collection entries in your XLingPaper references and you wish to use this collection citation method now. Here is what needs to be done:
Since the collCitation element replaces a sequence of elements within a collection element, it is not possible to merely replace the collEd, collTitle, etc. elements with a collCitation element. There is, however, a menu option that will attempt to both create the needed book element and replace the collEd, collTitle, etc. elements with a collCitation element. It is not perfect and you will almost certainly need to do some editing by hand.
That menu item is XLingPaper / Reference (Bibliography) Related / Convert collection information to a collCitation element. You must be within a collection element in order to use this menu item. Here is an example.
The user has clicked within the collection element of Rensch (1973). When the user uses menu item XLingPaper / Reference (Bibliography) Related / Convert collection information to a collCitation element, the conversion process asks for an ID for the new book refWork element it will create. For example (31), it might look like this:
After keying in a valid ID, it might then look like this:
Notice several things:
As you do this conversion process, you may find duplicate refAuthor elements. You will need to merge the contents of them yourself.
This is for a Ph.D. dissertation. Besides the date and the title, a dissertation also has an optional location element, a required institution element, and an optional published element. The latter is for the case where the dissertation has also been published. A published element consists of recommended location and publisher elements, and a required pubDate element.
When XLingPaper produces output, the default label for a dissertation is ‘Ph.D. dissertation’. You can override this default by setting the content of the labelDissertation attribute of the references element. To do so, click on the references element and then use the Attributes Tool[11] to change its value. If you have one or more individual dissertation elements that need to use a different label from the default, you can override the default for these by setting the content of the labelDissertation attribute of the individual dissertation elements.
This is for unpublished field note materials. Besides the date and the title, field notes also have an optional location element and a required institution element.
This is for an unpublished manuscript. Besides the date and the title, a manuscript also has either an optional location element followed by a required institution element or it has a required empty element.
This is for a paper presented at a conference. Besides the date and the title, a paper also has a required conference element and an optional location element.
This is for a paper included in a conference proceedings volume. Besides the date and the title, a proceedings paper also has:
The procEd element also has a plural attribute to indicate whether there is more than one editor. Use the value of yes if there are more than one editor; otherwise, use the value of no.[11]
Recall from section 4.5.3 that collections have another possible way to record and format papers in a collection volume. XLingPaper can do the same kind of thing for papers in a proceedings volume. See section 4.5.3.1 above, substituting “proceedings” for “collection”. It works the same way for proceedings as for collections, except that rather than using collCitation elements, one uses procCitation elements. In addition, the menu item mentioned in section 4.5.3.1.2 is XLingPaper / Reference (Bibliography) Related / Convert proceedings information to a procCitation element. You must be within a proceedings element in order to use this menu item.
This is for an M.A. thesis. Besides the date and the title, a thesis also has an optional location element, a required institution element, and an optional published element. The latter is for the case where the thesis has also been published. A published element consists of recommended location and publisher elements, and a required pubDate element.
When XLingPaper produces output, the default label for a thesis is ‘M.A. thesis’. You can override this default by setting the content of the labelThesis attribute of the references element. To do so, click on the references element and then use the Attributes Tool[11] to change its value. If you have one or more individual thesis elements that need to use a different label from the default, you can override the default for these by setting the content of the labelDissertation attribute of the individual thesis elements.
This is for a paper that has been posted on the World Wide Web. Besides the date and the title, a web paper also has:
The url element is, of course, the address of the page on the World Wide Web. In the output, the URL will contain a link to it, so you should be able to click on it within the program you use to view the output and open it in a web browser.
The attributes on the references element are summarized in (34).[11]
(34) |
Often while writing a document, you find a need to add a new reference to your list of references. XLingPaper provides a special command that makes this easier.
From just about any place in your document, you can invoke menu item XLingPaper / Reference (Bibliography) Related / Jump to Work in References (Bibliography) Ctrl+Shift+F11.[25] This brings up the same basic dialog you see when setting a citation element (see section 8.1) which sorts by the citename attribute of the refAuthor element, the date of the refWork element, and the refTitle element of the refWork element. In one XLingPaper document, it looks like this:
You type in the author name or you scroll down to find the work you are looking for. Select the one you want by typing enough so that it is shown in the top text box or by clicking on it. XLingPaper will remember the location of where you are working right now and then jump you to the references section of your document and will select the refWork that you indicated. In my experience, once in a while the selected work does not show in the window. You have to scroll up or down a bit before you can see it.
In the XLingPaper document used to produce example (35), if we were to choose Butler (2000), the result would be as shown in (36).
If you are indeed adding a new reference, you can still use this command to find a work that is close to where you need to add your new reference.
One other thing to keep in mind with this particular dialog is that the sort order used is a computerish one. It may well not be the order that your references will appear in, especially if you set things up to sort per a particular language as discussed in section 4.5.13.
Select the work you want to see or edit (or add a new work before or after).
After you do whatever it is you need to do in the references, you can return to where you were when you jumped to the references section. You return by using the XMLmind XML Editor's Search / Bookmark / Go to Last Visited or Go Back menu item command.[26]
It is now possible in XLingPaper to have the cited authors sorted when you produce any kind of output. The default situation is to not do this dynamic sorting - the cited authors will appear in the same order they occur in the references element.
To use sorting by author names, you must set the sortRefsAbbrsByDocumentLanguage attribute of the main lingPaper element. To do so, click anywhere in the document (except in any part of an associated publisher style sheet). In the node path bar,[48] click on lingPaper. Then use the Attributes Tool[11] to set the sortRefsAbbrsByDocumentLanguage attribute to a value of yes.
The sorting algorithm used depends on the language code of the document. The default is ‘en’ (for English). You set the language code of the document in the xml:lang attribute of the lingPaper element (see above for how to do this). Some of the known language codes to use are shown in example (37).[27]
(37) |
|
There are certain situations when you may find that you want more than just the cited references to appear. Some possible scenarios include an abstract that is to be submitted for a conference and proposals for theses and dissertations. The references in such situations are often referred to as “Selected References” or "Selected Bibliography.”
XLingPaper allows you to do this via a selectedBibliography element. It can appear immediately after a references element. It contains one or more citation elements which indicate the additional or “selected” references you want to have appear in your references. Any references cited in the document will appear just like they usually do.
Whenever you use a selectedBibliography element, the default label for the references section becomes “Selected Bibliography.” To change it to something else, use the label attribute of the selectedBibliography element.
Please note that the output will either have a “References” section or a “Selected Bibliography” section, but not both.
It is possible to take an existing Zotero[28] library and convert it to an XLingPaper reference file. Do the following:
XLingPaper will produce a file called “ZoteroMODSReferences.xml” in the same directory where your XLingPaper document is and then it will load it into the XMLmind XML Editor.
Note that you will probably need to do some hand editing of the result as this conversion process is not 100% accurate (due to differences of detail used by Zotero and XLingPaper).
It is possible to take an existing Endnote[29] XML file and convert it to an XLingPaper reference file. Do the following:
XLingPaper will produce a file called “EndnoteXMLReferences.xml” in the same directory where your XLingPaper document is and then it will load it into the XMLmind XML Editor.
Note that you will probably need to do some hand editing of the result as this conversion process is not 100% accurate (due to differences of detail used by Endnote and XLingPaper).
You can create a list of keywords that classify a reference work. At the end of the refWork element (or at the end of any of the work type elements), insert a keywords element. Inside of this you can have one or more keyword elements.
This is for information only. XLingPaper never outputs or processes the content of keyword elements.
Sometimes you might want to create an annotated bilbliography. There are three steps to do so:
The set of annotated bibliography types define the kinds of annotations you have. Some possibilities include:[30]
To create annotated bibliography types, in the references section, go to the last author. Select its refAuthor element and do an Insert After command. Choose annotatedBibliographyTypes. Open it up and for each type you need, insert an annotatedBibliographyType element. Set the id to a unique value. We suggest beginning the id with “at” and use letters and numbers, but no spaces.[15] Also type in the name or description of the type.
For each work you want to add an annotation to, select the last item in it. Do an Insert After command and choose annotations. Open it up. For each annotation, set the id to a unique value. We suggest beginning the id with “an” and use letters and numbers, but no spaces.[15] In addition, set the annotated bibliography type of this annotation. The easiest way to do that is to press the F11 key (or use XLingPaper menu item / Set Reference). Also type in the content of the annotation. XLingPaper assumes that the content will appear in a single paragraph.
Now create a new XLingPaper document for the annotated bibliography or create a chapter, appendix, section or sub-section for it.
For each referenced work to be annotated, insert an annotationRef element and then press the F11 key (or use XLingPaper menu item / Set Reference). This will first show a dialog box where you select the referenced work. If this work has an annotation, it will then show a dialog box where you choose the annotation you want to appear in this context. If the referenced work does not have an annotation, there will be a message saying that this work does not have any annotations. Either choose a different work or go add annotations to the work.
As an example, suppose you add the annotationRef elements to your document as shown in example (38).
Note that only the first 50 characters of the annotation content is shown here. The full content will be in the output.
When formatted as a web page, this might come out as shown in example (39).
(39) |
|
Notice that each referenced work is shown as it would be if it were in the references section and that the content of the chosen annotation element is formatted as a paragraph after it.
If you wish, you can create a list of abbreviations that are used in glossing text. Just like references and citations, the idea here is that while the list of abbreviations can be large, XLingPaper will only show those that are actually used in glossing somewhere within the document. You can thus maintain a file that is just the list of abbreviations (and their definitions), include it in your document, and then, while glossing in an example, make a reference to an abbreviation in the list. Besides only including abbreviations actually used somewhere in the document, XLingPaper will also create a hyperlink between the gloss abbreviation in the example and the actual abbreviation in the list of abbreviations. Of course, the list will also include the definition of the abbreviation.
This master list of abbreviations can also be in multiple glossing languages. So if you typically write your papers in either English or Spanish, say, you can maintain the list of abbreviations in both languages. For a given paper, you indicate which language to use by setting the abbreviationlang attribute of the main lingPaper element. To find this attribute, click on lingPaper in the node path bar.[48] and then use the Attributes Tool[11] to find and edit the abbreviationlang attribute. You will need to key in the id of one of the language elements in your document (e.g. en for English, es for Spanish, or fr for French). If you do not set this attribute, then the first abbreviation item found will be used. Also, if you inadvertently do not have an abbreviation for the language you selected, but you do have one for another language, then the first abbreviation found will be used, too. See section 4.6.1.1 for more on creating master lists with two or more languages. Also see section 4.6.4 for information on sorting the output list of abbreviations.
One makes a reference to an abbreviation by inserting an abbrRef element and then setting its reference to one of the abbreviations in the master list. The easiest way to do this is described in section 4.6.2.
Further, you can choose where you want this list of abbreviations to appear. While one keys the list of abbreviations in the abbreviations element under the backMatter element, you can elect to have the list appear within any of the following elements:
To get the list of abbreviations to appear, one inserts an abbreviationsShownHere element at the appropriate place in one of these elements. For all but in an endnote, XLingPaper will create a table showing the abbreviations that have been used. For an endnote, XLingPaper will show the abbreviations that have been used in a comma separated list.
The following sections explain how all of this can be done in more detail.
The easiest way to start a master list of abbreviations is to use one of the two pre-packaged ones. Both packages use the list of abbreviations found at http://www.eva.mpg.de/lingua/resources/glossing-rules.php on October 1, 2008. The only difference between them is whether the abbreviations are in all capital letters or all lower case letters. If you plan to use small caps for your abbreviations, then use the one with lower case letters. To start such a list, do this:
You will then get something like this:
Notice that each abbreviation has an ID that begins with the letter “v”,[14] then comes the abbreviation, an equals sign, and the definition. You can insert new abbreviations by clicking on an abbreviation element (e.g. by clicking on the ID) and using the usual insert before or insert after commands.[16] Note that you need to maintain the alphabetical order by hand. That is, the list of abbreviations will be shown in the order you have them here.
If you want to have your abbreviations appear as small caps, then you need to do three things:
You can save the file to a location that is convenient for you. Next, click on the word “Endnotes” in the back-matter section, do an insert-before operation,[16] and choose “abbreviations". Then follow the instructions in 11.8, (except use “abbreviations” and your abbreviations master file instead of the references ones mentioned there).
Another thing that you may need to do is to add a language element whose ID is “en” (for English). If you write the prose of your documents in some other language such as Spanish or French, then you will need to also add alanguage element for each such language.
If you are making a master list that contains two or more languages, you will need to keep a couple of things in mind.
First, when a given abbreviation is spelled differently in the various languages, you should insert separate abbreviation elements for each one and place them in the correct alphabetical order in the master list. For example, you could have one (English) abbreviation for FOC (focus) and one (Spanish) abbreviation for ENF (énfasis o enfático):
The lang attribute of the abbrInLang element of the vFOC abbreviation element will need to be en for English and the lang attribute of the abbrInLang element of the vENF abbreviation element will need to be es for Spanish.[31] Naturally, when you refer to an abbreviation for focus in your document, you'll want to use 'enf' in Spanish and 'foc' in English. Then, when you mark a given document's abbreviationlang attribute (in the lingPaper element) to be en for English, XLingPaper will use the English abbreviation for those abbreviations with two or more abbrInLang elements. If you mark the document to be es for Spanish, then XLingPaper will use the Spanish abbrInLang information. For those abbreviations that have only one abbrInLang element, that abbrInLang information will be used.
Second, when both languages share the same abbreviation, but the definitions are different (since they are in different languages), you will need to add a new abbrInLang element for the new language. For example, suppose you have an abbreviation for “article” in English and want to add a similar abbreviation for “artículo” in Spanish. Here is a way to do this:
There are two ways to create references to abbreviations: by hand and automated.
The first way to create references to abbreviations is to do it by hand. Perform an insert operation[16] and select abbrRef. Then press the F11 key to bring up the chooser for abbreviations. (An easier way is to press the Shift and F11 keys together.) In one document it looked like this:
You then type the abbreviation you need or scroll down to find it. In the example, the C = completive was the correct choice. The result looked like this:
The second way to create references to abbreviations is probably much more convenient. When you are entering abbreviations in a gloss element,[32] there is a potentially easier way to insert these abbrRef elements. Key the gloss material, including any abbreviations. While the cursor is within the gloss element, use the “Convert any abbreviations in gloss to abbrRefs” command (by using menu item XLingPaper / Convert any abbreviations in gloss to abbrRefs Ctrl+Shift+F10).[33] This will automatically convert any abbreviations to their respective abbrRef element. Example (44) indicates the punctuation symbols it uses in the content of the gloss element to separate potential abbreviation labels.[34] (It also uses the space and non-breaking space characters.) Note that the abbreviation labels need to be identical to what they are in the abbreviation element, including lower or upper case (unless you are using smallcaps for your abbreviations[47] in which case either lower case or upper case will do). There is an exception to this: if you have abbreviations for person using 1, 2, or 3 to indicate the person, then it will also find combinations such as 3sg or 2pl (as long as you also have sg and pl as abbreviations).[35]
(44) |
|
Please note that since this method uses the punctuation symbols listed in example (44) to separate potential abbreviation labels, if you have any abbreviations which contain any of these symbols, this method will not find those abbreviations. That is, this method (and from what I can tell, the Leipzig glossing conventions) assume that your list of abbreviations will not have combinations like this. Rather, you list just the component pieces. For example, rather than having a single abbreviation entry like “dat.pl”, you will have two entries: one for “dat” and one for “pl”. You can, of course, still have a combination abbreviation, but you will need to create the abbrRef element for it by hand (as mentioned in section 4.6.2.1). You cannot use this short-cut method.
In addition, this method cannot recognize any word or abbreviation that contains an apostrophe character ( ' ). If you have an abbreviation that uses an apostrophe, you will need to create the abbrRef element by hand.
Further, note that if your master list of abbreviations include abbreviations for more than one language and if you have set the abbreviationlang attribute of the lingPaper element to a particular language code (see section 4.6.1.1), then this easier method will only find abbreviations which are overtly marked to be for that language code.
In addition, please be aware that it is important to make use of the wrd elements when using this short-cut method with interlinear examples (see section 5.3.1.2). If you just use the plain text approach as described in section 5.3.1.1, the example will probably not line up properly.
For example, one XLingPaper document included this:
which formatted like this in a web page:
and like this in a PDF file:
In (47), the abbreviated items are actually hyperlinks. They just are not underlined.
As mentioned above, one can have the list of abbreviations appear in various places.
Please note that unless you overtly tell XLingPaper to show the list of abbreviations, no such list will appear in the formatted output.
We'll illustrate how to show the list of abbreviations in an endnote first and then in a glossary.
To show the list in an endnote, first insert the endnote element (see section 4.4 for how to do this). Type any text you want and then insert the special abbreviationsShownHere element. This is how it looked in one XLingPaper paper:
In this paper, it was formatted as follows in the web page output:
(49) |
|
Turning now to showing the abbreviations in a glossary, one needs to insert a glossary element in the back matter. One does this by clicking on the abbreviations element in the back matter area and then doing an insert before operation. The result might look something like this:
One can then open up the glossary element and type any prefatory material one might want (of course, one does not have to type anything). One then inserts the special abbreviationsShownHere element. Note that since this will be formatted as a table, it needs to go after or before a paragraph (p element); it will not work to put it within a paragraph.
One should also change the label attribute of the glossary element to something like “Abbreviations” so the title of this section does not say “Glossary.” It might look like this:
When formatted in a web page, it might look like this:
When the list of abbreviations is formatted as a table, you can control the width of the abbreviation column, the equals sign column, and/or the definition column via attributes on the abbreviationsShownHere element. See example (53).
(53) |
|
If your document is not written in English or if your master list of abbreviations contains abbreviations in multiple languages, you may well want to have the list of abbreviations that XLingPaper outputs be sorted by a particular language. Note that the default behavior is for XLingPaper to not do any special sorting: the list of abbreviations will occur in the same order they are given within the abbreviations element.
To get XLingPaper to sort the list of abbreviations in the output, you must set the sortRefsAbbrsByDocumentLanguage attribute of the main lingPaper element. To do so, click anywhere in the document (except in any part of an associated publisher style sheet). In the node path bar,[48] click on lingPaper. Then use the Attributes Tool[11] to set the sortRefsAbbrsByDocumentLanguage attribute to a value of yes.
The sorting algorithm used depends on the language code you have indicated, if any. The default is ‘en’ (for English). If you have set the abbreviationlang attribute of the main lingPaper element of the document, then XLingPaper will use that code. If the abbreviationlang attribute is not set, XLingPaper will use the xml:lang attribute of the lingPaper element, if it is set. Some of the known language codes to use are shown in example (37).
See section 2.4 for this. If you insert an authorContactInfo element in the back matter, then the contact information will appear in the back matter of your document.
One may add one or more indexes to an XLingPaper document. There are four basic kinds of indexes allowed:
That is, one normally either has a single, common index or one has two to three specialized indexes.
To get an idea of what is involved in producing an index with XLingPaper, consider the following portion of an index taken from the output of an XLingPaper document:
(54) |
|
Notice several things:
This implies that building an index in an XLingPaper document involves three steps:
The following sections outline each of these steps in more detail.
The set of index terms is the potential content of the index(es). You may want to nest certain terms under other terms, if they are related. With XLingPaper, there is no enforced limit to the depth of nesting. In addition, you may want to include terms which then refer to another term elsewhere in the index. This, of course, is because a reader may look under some similar topic than the main one you have chosen.
There are three main elements used in describing the set of index terms:
As implied in the last point, it is possible to create some kind of a master set of index terms and then use that master set in more than one XLingPaper document.
The top-level indexTerms element goes as one of the last top-level elements in the file. In the XMLmind XML Editor, this means you should select the types element at the bottom as shown in (55).
You can then right-click and choose Insert After... and then type indexTerms. The result will look like this:
You may have more than one of them (in order to include the master set and any document-specific ones). XLingPaper will sort them appropriately when producing the output.[36]
XLingPaper will only output those index terms which are actually tagged within the document. So one may define more index terms than are actually used in a given document. This is similar to how XLingPaper handles the references section.
The indexTerms elements have one attribute: version. It is used to indicate the version of the set of index terms. For example, one might create one set of terms and call them Master while another might be Syntax or Morphology.
When you open up the indexTerms element, it looks like this:
This shows two indexTerm elements. Only the id attribute is required. It is shown as . Give it a unique id attribute value (please use just a-z/A-Z letters and numbers; in particular, using an underscore may cause the page number
to not appear in the default PDF output).[14] Then type the name of the term.
An indexTerm element may have up to three attributes as shown in (58).
(58) |
|
A term element has an optional lang attribute which refers to a language element. This is a way to tag the term as being for a particular language (e.g. English or Spanish or French). The index element also has a lang attribute one can use to indicate which term elements to use.
As mentioned in section 4.8, you can nest sub-levels of index terms within a term. Suppose you have something like what is shown in (59).
You can nest a sub-level of index terms under "Category" by clicking on “term” in the node path bar, right-clicking and selecting Insert After..., and then typing indexTerms. You'll get something like this:
You can now fill in the terms, add additional terms, etc.
If you have an index for a language other than English or if your index contains terms in multiple languages, then you should also insert a seeDefinitions element as the first element within the indexTerms element. The seeDefinitions element contains one or more definitions of how the ‘See’ and ‘See also’ words should appear for a given language. For example, consider the following possibility.
This has definitions for English (language code ‘en’) and Spanish (language code ‘es’). There are lines for saying how to represent the ‘See’ case as well as the ‘See also` case. It is possible to type in words before the link as well as words after the link. For example, the ‘See also’ case for Spanish in this example uses the word ‘Véase’ before the link and the word ‘también’ after the link.[37]
After setting up the set of index terms, the second step in producing an index is to tag the places in the document that correspond to index terms. Recall from example (54) that there are two main kinds of index references: singleton and a range. You use the indexedItem element to tag a singleton reference. For a range, you use two elements: indexedRangeBegin to mark the beginning of the range and indexedRangeEnd to mark the end of the range.
To mark a singleton index item, put the cursor at the place in the text where the indexed item should go, right-click, select
Insert..., and type indexedItem. You will get something like this: . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the index terms in sorted order. Select the index term that is appropriate for
this place in the document. You have now tagged this point in the document with the index term. XLingPaper will create a hyperlink to this location from the index term in the index.
To mark a range, put the cursor at the place in the text where the indexed item should go, right-click, select Insert..., and type indexedRangeBegin. You will get something like this: . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the index terms in sorted order. Select the appropriate one. This will set the
index term. Then create a unique name for this range as its id attribute (where the little b is). You can then refer to it when you add the end range indexed item, which is the next step in marking a range.
To mark the end of the range, put the cursor at the ending position. Then right-click, select Insert..., and type indexedRangeEnd. You will get something like this: . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the id attributes for the indexedRangeBegin elements in your document. Select the one you want.
When you set the begin and end range indexed items this way, XLingPaper will create a hyperlink to both the begin location and the end location for the index term referred to in the term attribute of the indexRangeBegin element.[38]
The indexedItem element has the attributes shown in (62). Only the term attribute is required.
(62) |
|
The indexRangeBegin element has the attributes shown in (63). Both the id and term attributes are required.
(63) |
|
The indexRangeEnd element has one required attribute: begin. It refers to an id attribute of its matching indexRangeBegin element.
Whenever the main attribute of either an indexedItem or an indexRangeBegin element is set to yes, the hyperlink created in the output will be in bold. The exception to this is if there is only one instance in the entire document of either an indexedItem or an indexRangeBegin element that refers to this index term. In such a case, there will only be one hyperlink associated with the term, so it will not be output in bold.
You may find that after you have tagged a document for an index, that all of those index tags “get in the way” of being able to read the content of the document. This may be especially the case when you go to revise a previously indexed document. You may well wish for some way to hide the indexedItem, indexedRangeBegin, and indexedRangeEnd elements until you are done revising.
To hide these index tagging elements, perform these steps:
As soon as you have changed this attribute, the XMLmind XML Editor will in effect reload the document, this time not showing any of the indexedItem, indexedRangeBegin, and indexedRangeEnd elements. Those elements will still be there. You just will not see them.
When you want to see these elements again, do the steps in (64), only instead of setting the showindexeditemsineditor attribute to no, set it to yes.
Be aware that if you have a large document, it may take the XMLmind XML Editor many seconds to make this display change. It will also collapse any opened chapter or section elements, so you will have to reopen them again.
The third step in producing an index is to create one or more index elements as the last element within the backMatter element. If you have a references element, you can click on it, right-click, select Insert After..., and type index.
It is possible to have some prefatory text before the actual index material. This is so you could include some explanations if so desired. Such prefatory material is not required. If you wish to include some beginning text, you use a sequence of any "chunk" elements.[12]
The index element has three optional attributes as shown in (65).
(65) |
|
The kind attribute indicates one of four kinds of indexes. If you wish to have only one, common, index for your paper, then set the value to common. All index terms referred to in the document will then be included in this one index, regardless of the values of the kind attribute of any indexTerm elements. This allows you to have a master set of index terms which are tagged according to kind, but still have them all appear when you want a common index.
If you wish to have two or three indexes, then create two or three separate index elements and set the kind attribute to the appropriate value for each index. XLingPaper will produce a separate index for each one. Only those index terms which match the kind of the index will be included in each index.
The table in example (66) shows the default titles that XLingPaper will use.
(66) |
|
If you wish to use some other title, set the label attribute of the index element to the title you want to use.
Finally, the lang attribute may be used to indicate which of several term elements to use for indexTerm elements (see 4.8.1). The default is to use the first term element.
If your document is not written in English or if your index contains terms in multiple languages, you may well want to have the index that XLingPaper outputs be sorted by a particular language.
The sorting algorithm used depends on the language code you have indicated, if any. The default is ‘en’ (for English). If you have set the indexlang attribute of the main lingPaper element of the document, then XLingPaper will use that code. Some of the known language codes to use are shown in example (37).
This section provides several examples of back matter items. First to be shown are appendices. If one keys the following
Then it should come out looking like what is shown in example (68) (assuming that the referenced example is the fourth example in the paper).
(68) |
|
Next are references. If one keys references something like what is shown partially in example (69) and if one cites them in the text somewhere, then the results might look like what is shown in example (70).
(70) |
|
Notice what happens here for Dixon. While there are actually three works for Dixon for 1977, only two are actually cited in the paper: the second and third ones. Notice how XLingPaper automatically assigns the correct letter for these as they occur in this paper.
XLingPaper has several types of examples. All types will be automatically numbered. If you are going to refer to an example, then you will need to specify the num attribute of the example element tag and also give it a unique value.
The various types are illustrated in the following sections. Each section shows what to type and how it would appear. Recall from section 1.2.3 that you click in the text and then you can right-click and choose Insert Before... or Insert After..., depending on whether you want the example to appear before or after where you are. Having done this, when you start to type example, you will see various possibilities of examples show up in the Edit tool, as indicated by the large black arrow.
Notice that most of these are in italics. That is because they are “templates” which define a set of elements appropriate to a given type of example. The non-italic “example” one produces a table. Whenever you select one of these example templates, you will see the appropriate elements for that variety.
In each case, you will see . This indicates that this is an example. The little x is where you should type in a unique name for this example so you can refer to it elsewhere in your paper.[14] You will actually see this name when you create any references to examples (see section 5.9). The idea is to create a unique name that relates to the example itself. It could be a short description of what the example
is illustrating or some key reminder of the content. I strongly recommend that you use letters and numbers, but no spaces.[15] You can use case to distinguish words. Here are some examples taken from one of my XLingPaper documents:
(72) |
|
Note that using just a number is not a good idea because at some point down the road you may want to move the example or there may be other examples that need to be inserted before it.
In the following sections, I will refer to the appropriate template name.
Word examples consist of one or more words, usually with their glosses. They come in two varieties: single and lists. (See section 5 for how to insert an example.)
Single word examples consist of a single word and its gloss, usually. A single word example is given below. If you choose the example(word_with_gloss) template, you should see something like what is shown in (73) (as indicted by the large black arrow).
If you then type in the blue (language data) area and green (gloss) areas[39] as shown in (74), you'll get the result in (75) (assuming that this is the second example in the paper).
If instead of choosing example(word_with_gloss), you choose example(word_without_gloss), you will only see the blue language data element, not the green gloss element.[39]
In some cases, you may want to add another line of data after the first line. This could be because the data are all related. You can do this by inserting another word element after the last element in the word element (which will be either a langData or gloss element). You can then fill in the langData and any gloss elements in it. As an example,[40] if you key what is shown in (76), then you'll get the result in (77) (assuming that this is the first example in the paper).
(77) |
|
The second kind of word example is a list of words. These consist of a list of words and their glosses, usually. A list of words example is given below. If you choose example(listWord_with_glosses), you'll get what is shown in (78), as indicated by the large black arrow.
Notice that there is one example item for the entire example and that there are two example items for two words, each with its own gloss. This is so you can refer to either the whole example or to an individual line within that example. See section 5.9. As with the plain word example in (73) above, the blue patches are for language data and the green ones are for glosses.[39]
If you need more lines, click in one and then click on the listWord that shows in the node path bar as indicated by the big black arrow in (79).
When you now insert another element after the selected item (see section 1.2.3), you can choose listWord(with_gloss) and it will add a new line for you.
If you then type in the values as shown in (80), you'll get the result shown in (81) (assuming that this is the third example in the paper).
Notice that one uses the num attribute of the example element for these. In addition, one uses the letter attribute of the listWord element. One does not need to label these letter attributes in any particular order. XLingPaper will correctly assign the letters.[41]
Just like with word examples, you may sometimes want to add another line of data after the first line. This could be because the data are all related. You can do this by inserting another word element after the last element in the listWord element (which will be either a langData or gloss element). You can then fill in the langData and any gloss elements in it. As an example,[42] if you key what is shown in (82), then you'll get the result in (83) (assuming that this is the eleventh example in the paper).
(83) |
|
Line examples consist of but one line. There is no gloss (one would use an interlinear to include glosses). There are two varieties of line examples: single and list. (See section 5 for how to insert an example.)
Single line examples consist of but one line. If you choose the example(single) template, you should see something like what is shown in (84) (as indicted by the large black arrow).
If you then type what is shown in (85), you'll get the result in (86) (assuming that this is the fourth example in the paper).
A list of single line examples consist of but one line each. The key difference between just a single example and a list of single examples is that the latter are indented and each line is prefixed by an alphabetic letter. A list of single line example is given below. If you choose example(listSingle), you'll get what is shown in (87), as indicated by the large black arrow.
Notice that there is one example item for the entire example and that there are two example items for two single lines. This is so you can refer to either the whole example or to an individual line within that example. See section 5.9.
If you need more lines, click in one and then click on the listSingle that shows in the node path bar as indicated by the big black arrow in (88).
When you now insert another element after the selected item (see section 1.2.3), you can choose listSingle and it will add a new line for you.
If you then type in the values as shown in (89), you'll get the result shown in (90) (assuming that this is the fifth example in the paper).
Notice that one uses the num attribute of the example element for these. In addition, one uses the letter attribute of the listSingle element. One does not need to label these letter attributes in any particular order. XLingPaper will correctly assign the letters.[41]
Interlinear examples consist of several lines of aligned text, usually along with one or more lines of an unaligned free translation. Like word and line examples, there are two varieties of interlinear: single and list. In addition, a given interlinear example may be created in one of three ways. Any one of these three may be included in a single interlinear or in any interlinear example included in a list of interlinear examples. These three ways are described in sections 5.3.1.1, 5.3.1.2, and 5.3.1.3. (See section 5 for how to insert an example.)
Please note that within the XMLmind XML Editor, interlinears will often not be aligned properly. This is fine. Remember that the XMLmind XML Editor is not a “What You See Is What You Get” editor. The output (whether web page, PDF, Word or Open Office) will be aligned.
Beginning with version 2.17 of XLingPaper, it is possible to have the XeLaTeX way of producing PDF automatically wrap long interlinears. To make this automatic wrapping happen, you click on lingPaper in the node path bar[48] and then set the automaticallywrapinterlinears attribute to yes via the Attributes Tool.
Single interlinear examples contain only one interlinear example. The following sub-sections delineate the three ways one may key an interlinear example. The first two align the words in the interlinear. The third also aligns the morphemes.
The easiest way to key an interlinear example is to merely type a space between each of the words in the interlinear. You do this for both the language data itself and also for the glosses.
Note, however, that this only works for plain text data within a single langData element or a single gloss element on each line. If you insert any other field (e.g. to emphasize or highlight some portion of the interlinear line and/or if you want to use the special abbreviation capability of XLingPaper[43]), then you will need to use the method outlined in section 5.3.1.2.
If you choose the interlinear_l_l_g_free template, you should see something like what is shown in (91) (as indicted by the large black arrow).
If you then type in the blue (language data), green (gloss), and black (free translation) areas[39] as shown in (91), you'll get the result in (93) (assuming that this is the sixth example in the paper).
(93) |
|
Notice how the line elements are grouped together under a lineGroup element.
Also note that XLingPaper does all that is needed to do the aligning. It will only automatically wrap long lines for the XeLaTeX way of producing PDF;[44] for the other kinds of output, you will need to break long lines manually; see 5.3.3 below.
You have probably noticed that there are many types of interlinear examples listed in the Edit tool.[3] The following table lists the ones that use a space between words to align the words:
(94) |
|
The method given in section 5.3.1.1 only works on plain text in a single field, with words separated only by spaces. If you want the words to align, but you also want to, say, emphasize a certain word or some morpheme or if you want a gloss to show in small caps or if you want to use the abbreviation capability of XLingPaper,[43] or even if you want to insert an endnote element, then you need to use this second method for keying interlinear examples.
Note, however, that there is a special command that will let you convert interlinear created using spaces to this "wrd" format. Put the cursor at the beginning of the first line of the interlinear you want to convert and then use menu item XLingPaper / Convert interlinear line to wrd elements Shift+F10.[45] You will need to do this for each interlinear line you wish to convert. To be more specific, here are the recommended steps for doing this conversion:
For these "wrd" interlinear examples, if you do not want to use the special convert command mentioned above, you should use the example templates that begin example(interlinear_wrd_...). These produce an example that has five wrd elements which you can fill in for language and gloss data. You can also insert object elements within these as needed to provide the emphasis or whatever you are seeking to do.
For example, if you choose the example(interlinear_wrd_l_g_free) type, you'll see:
The blue patches are for language data, the green are for glosses, and the black is for the free translation.[39] Each section is a word that will be aligned in the interlinear output. If you need more than five words, click in the last one in the line, click on wrd in the node path bar,[48] and insert another element.[16] Choose wrd(langData) or wrd(gloss) depending on whether you want another instance of a language data item or a gloss item.
The following is an example from Lachixio Zapotec/Spanish. If you type what is shown in (96), you'll get the result in (97) (assuming that this is the fourth example in the paper).
(97) |
|
Notice the use of type attributes to tag the grammatical categories (which are to be shown as small caps) and to tag the emphasized words in the example. See section 10.1 for more on this.
Also note that XLingPaper does all that is needed to do the aligning. It will only automatically wrap long lines for the XeLaTeX way of producing PDF;[44] for the other kinds of output, you will need to break long lines manually; see 5.3.3 below.
You have probably noticed that there are many types of interlinear examples listed in the Edit tool.[3] The following table lists the ones that allow you to mark some words specially:
(98) |
|
If you want to have not only the words align, but also the morphemes within the words to align, you will need to key the interlinear examples in a special, more complicated way.[49] Please note, however, that this style of interlinear only works with the web page output and the default XeLaTeX way of producing PDF. All of the other outputs will not show this correctly. Also, please note that this style is not recommended by the Leipzig Glossing Rules (http://www.eva.mpg.de/lingua/resources/glossing-rules.php). Some interlinearizing programs may automatically produce this kind of format. The SIL FieldWorks Language Explorer program is one that allows one to automatically generate this kind of interlinear. One can then merely copy and paste the results into an XLingPaper file. See http://fieldworks.sil.org/flex/.
Besides aligning the morphemes within words, this kind will also automatically wrap long interlinear examples when viewed in a webpage. It will not automatically wrap in PDF or Microsoft Word 2003 format, though.[50]
The following is an example from Orizaba Nahuatl/English. If you used the SIL FieldWorks Language Explorer tool to produce the interlinear, it might look like what is shown in (99). This will come out as shown in (100) (assuming that this is the first example in the paper).
(100) |
|
If you are producing such an interlinear example by hand, you may want to read Hughes, Bird, and Bow (2003) which is available online at http://eprints.unimelb.edu.au/archive/00000455/.
Besides single interlinear examples, one may also produce a list of interlinear examples. Such a list consists of individual interlinear examples. The key difference between just a single interlinear example and a list of interlinear examples is that the latter are indented and each interlinear unit is prefixed by an alphabetic letter. You may use any of the three kinds of interlinear examples shown in sections 5.3.1.1, 5.3.1.2, and 5.3.1.3 above. I will illustrate using the first method for simplicity's sake.
If you choose example(listInterlinear_l_l_g_free) , you'll get what is shown in (101).
Notice that there is one example item for the entire example and that there are two example items for two words, each with its own gloss. This is so you can refer to either the whole example or to an individual line within that example. See section 5.9. The blue patches are for language data, the green patches are for glosses and the black is for the free translations.[39]
If you need more lines, click in one and then click on the listInterlinear that shows in the node path bar.[48]
When you now insert another element after the selected item (see section 1.2.3), you can choose one of the listInterlinear options and it will add a new set of interlinear elements for you.
As an example from Orizaba Nahuatl/English, if you then type in the blue (language data), green (gloss), and black (free translation) areas as shown in (102), you'll get the result in (103) (assuming that this is the seventh example in the paper).
You have probably noticed that there are many types of list interlinear examples listed in the Edit tool.[3] The following table lists the ones that use a space between words to align the words:
(104) |
|
The following table lists out the kinds of list interlinear examples that allow you to mark some words specially
(105) |
|
As mentioned in sections 5.3.1.1, 5.3.1.2, and 5.3.1.3 above, XLingPaper does not automatically break lengthy (i.e. wide) interlinear examples with two exceptions:
Unless either of these two are the case, you have to break long lines yourself. This is not necessarily a negative thing. By breaking the interlinear examples by hand, you are able to control where the break occurs. For example, you may choose to only have an interlinear example break at a phrase boundary.
You insert these manual breaks by embedding an interlinear element within either another interlinear element or within a listInterlinear element.
To illustrate how you can do this, suppose you have what I showed in example (92) above, the interlinear portion of which is repeated here in (106).
The basic process is as follows:
The result is given in (111) (assuming this is the fifth example in the document).
(111) |
|
Another characteristic of interlinear examples is that they may be taken from an interlinear text. In such cases, one may well want to indicate the text and line number from where the interlinear was taken. One convention is to include an abbreviated name of the text, a colon, and the line number. XLingPaper provides two ways to do this, depending on whether the source interlinear text is included within the XLingPaper document or not.
If the source interlinear text is included in the XLingPaper document (most likely as an interlinear-text element within an appendix; see section 9 or else as a referenced interlinear text; see section 9.4), then you can create an interlinear example that will refer to the appropriate portion of the interlinear text. You can do so in either of two ways.
The simplest is to merely make a reference to the portion. Do this by following these steps:
XLingPaper will insert the content of the referenced interlinear in the formatted output.
The second way is to make a copy of the portion. The advantage of making a copy is that then you can highlight individual words or morphemes that you are discussing in the context. To make the copy, follow these steps:
For example, suppose you have the text shown in (204) described in section 9.2, but included here as (112) for your convenience.
If you copy the second portion as described above, then it might look like this:
This will come out as shown in (118) (assuming this is the second example in the document).
Please note several things:
If the source interlinear text is not included in the XLingPaper document, then you can use the interlinearSource element to type in a reference to the text. For example, suppose you have just created the interlinear shown in (115).
If you have the cursor at the end of the free translation line and then perform an insert after command (e.g. press Ctrl+j or right-click and choose Insert After...), then you can select the interlinearSource element in the Edit Tool.[3]
It will then look like this:
You can then type in an indication of the source of the interlinear as in (117):
This will come out as shown in (118) (assuming this is the second example in the document).
Please note several things:
As noted in section 1.3, it is possible to tag a given language with an ISO 639-3 code for that language. XLingPaper makes it possible to show these codes in interlinear, word, and single examples. It does so by looking at the ISO 639-3 code of the language element referred to by the first langData element in the interlinear example.
In order for XLingPaper to show these codes, you must set the showiso639-3codeininterlinear attribute of the main lingPaper element. To do so, click anywhere in the document (except in any part of an associated publisher style sheet). In the node path bar,[48] click on lingPaper. Then use the Attributes Tool[11] to set the showiso639-3codeininterlinear attribute to a value of yes.
Here is a sample output from one XLingPaper document that had this attribute set and where the ISO 639-3 code was ‘zaw’.
As mentioned above, interlinear examples usually include a free translation. Sometimes they also include a literal translation (and, more rarely, use a literal translation instead of a free translation). XLingPaper provides a literal element you can use for a literal translation.
Unlike for free translations, there are no interlinear templates which provide a literal translation element. There are at least two ways to insert a literal element:
A literal element has the same set of attributes as a free element. Its output is also the same except that by default, XLingPaper inserts “Lit. ” at the beginning of a literal element. If you wish to use some other label, then you will need to change the literalLabel attribute of the lingPaper element. To set the literalLabel attribute, click on “lingPaper” in the node path bar.[48] Then use the Attribute tool[11] to find and change the literalLabel attribute.
If you are using a publisher style sheet, that style sheet can provide the label to be used. If so, what is in the style sheet will be used even if you have set the literalLabel attribute of the lingPaper element. (For more on publisher style sheets, see section 11.25 or click here to see the documenation on publisher style sheets.)
Table examples consist of a table (of course). When creating an example, one can select example(table). (One will also be created if you merely choose example.) A table embedded within an example will be created. See section 6.1 for more on dealing with tables. (See section 5 for how to insert an example.)
Chart examples consist of a chart (of course). See section 6.2 for more on this. (See section 5 for how to insert an example.)
Tree examples consist of a tree diagram or image (of course). See section 6.3 for more on this. (See section 5 for how to insert an example.)
Definition examples merely consist of a definition, optionally including its key term. They come in two varieties: single and lists. (See section 5 for how to insert an example.)
If you choose the example(definition) template when you insert an example (see section 5 for how to insert an example), you should see something like what is shown in (120).
If you then type what is shown in (121), you'll get the result in (122) (assuming that this is the second example in the paper). Note that the word ‘referential,’ which is the key notion in this definition, has been keyed within a keyTerm element. In this example, the keyTerm element shows in italics by default. You can control how an individual keyTerm element displays by setting its font-related attributes using the Attributes tool.[11] You can also define a type element that is just for key terms and then use the Attributes tool to associate the keyTerm element with this type. The keyTerm will then display according to the font attributes of that type element with the exception that any font-related attributes specified in the keyTerm element will override any of the same font-related attributes of the type element.
(122) |
|
The second kind of definition example is a list of definitions. A list of definitions example is given below. If you choose example(listDefinition), you'll get what is shown in (123).
Notice that there is one example item for the entire example and that there are two example items for two definitions. This is so you can refer to either the whole example or to an individual line within that example. See section 5.9. As with the single definition example in (120) above, the patches are for keying your definitions.
If you need more definitions, click in one and then click on the listDefinition that shows in the node path bar.[48] When you now insert another element after the selected item (see section 1.2.3), you can choose listDefinition and it will add a new line for you.
As an example, if you type in the values as shown in (124), you'll get the result shown in (125) (assuming that this is the third example in the paper).
(125) |
|
Notice that one uses the num attribute of the example element for these. In addition, one uses the letter attribute of the listDefinition element. One does not need to label these letter attributes in any particular order. XLingPaper will correctly assign the letters.[41]
Sometimes one wishes to tag an example with a title or heading or label. One uses the exampleHeading element for this. Insert an exampleHeading element within the example element, just before the first element of the example. One may also put an exampleHeading element within a listInterlinear element before a lineGroup element. This way, you can label or tag each interlinear within the list as needed.
Currently, there are no example types (see section 5) that include an example heading. You will need to create the kind of example you want (e.g. interlinear or list interlinear), click on the element as described in the previous paragraph in the node path bar[48] and then do an insert before operation and choose “exampleHeader”.
For example, if you have an interlinear example such as the one shown in (126), repeated from (92) above, then click on the word “interlinear" in the node path bar and then do an insert before operation.[16] The only option will be to insert “exampleHeading”. Choose this. You can then type your header information, including inserting any “embedded” elements.[22]
As I noted in section 5, you should give each example a unique identifier name (that begins with a lower case x). This is so you can refer to the example elsewhere in the paper.
To make such a reference to an example, you use the exampleRef element. While typing text (such as in a p (paragraph) element), insert an element[16] and choose exampleRef. You will see . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the example identifiers in your paper. If I do this on one XLingPaper paper I wrote, it looks like this:
You can type in the name of the example or scroll down until you find the one you want. Note that capitalization is significant when typing. When your document is processed, a hyperlink is made between the reference and the example.[18]
As an example, suppose you keyed what is shown in (128):
If example xMonosyllabicStems turned out to be the third example in the document and example xIamb was the twenty-first, the output of (128) would be:
(129) |
|
Notice that one can also create example references which contain a sequence of letters. One does this by using the paren, punct, and letterOnly attributes. See the table in (130). The equal attribute can be used to insert an equals sign in the reference. This, of course, indicates that the particular example has been given earlier in the paper.
Example reference elements can be used anywhere within a document. They do not need to immediately precede or follow their respective example declaration.
There may be times when you find you have chosen an incorrect example and want to fix it. In the output, you can find the number of the correct example and so want to be able to use the number. You can get a list of the numbers by following the following steps:
The attributes of the exampleRef element are summarized in the table in (130).[11]
(130) |
|
As mentioned in section 1.3, there are two default languages, one for vernacular language data and one for glosses. Sometimes you need to add a language element (as discussed in section 1.3) and then set individual language data items and/or glosses to these non-default languages.
You do this by clicking in the text area of a langData or gloss element. If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the language identifiers in your paper. If I do this on one XLingPaper paper I wrote, it looks like this:
You can type in the name of the language or scroll down until you find the one you want. Note that capitalization is significant when typing.
Besides the lang attribute, both langData and gloss elements have two other attributes: textbefore and textafter. These two attributes are ignored unless one has associated a publisher style sheet and set special override values in it for text before and text after to be inserted around each langData or gloss element in given contexts. See section 11.25 for associating a publisher style sheet and also see sections 6.13 and 6.14 in the publisher style sheet documentation .
If you wish, you can also set the language of the free translation element (free). You do this by clicking in the text area of a free element. If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the language identifiers in your paper. See section 5.10 for more illustrations of this procedure.
Besides the lang attribute, the free element has two other attributes: textbefore and textafter. These two attributes are ignored unless one has associated a publisher style sheet and set special override values in it for text before and text after to be inserted around each free element. See section 11.25 for associating a publisher style sheet and also see sections 6.15 in the publisher style sheet documentation .
Sometimes it is appropriate to have two or maybe three examples side-by-side. You can do this by first creating a table (see section 6.1). You then replace the text within each cell with the appropriate example.
We recommend that you only do this for examples which are not very wide. Otherwise it is quite likely that the examples will not fit on the page when you create a PDF, Open Office Writer or Word version of your document.
One may also create tables, charts, and trees.
Table elements can be placed between paragraphs or as examples. In defining tables, one defines the row and column elements, etc. The XMLmind XML Editor has several nice tools to enable you to edit tables conveniently.
If you have an existing table in a file created via a word processing program like Microsoft Word, a spreadsheet program like Excel, or in a web page, see section 11.53 for how you may be able to copy it and convert it to a draft form of a table in XLingPaper.
One creates a table by inserting a new element.[16] You can initially create one of three types of tables (either within an example or separately):
Type | Result |
---|---|
table | A blank table with two columns and two rows. |
table(head_row) | A blank table with an initial header row and then two regular rows. All three rows have two columns. |
table(head_row_head_col) | A blank table with an initial header row and then two regular rows. All three rows have two columns. The first column in all rows is a th element. |
Suppose we want to create a plain table with headers. We can insert a table as shown in (132).
When you press the Enter key, it should look like this:
Notice that there are three rows of two columns each. The first row will be treated as a header. You can add columns and rows as needed by using the menu commands for table editing. For example, if you click in the first column of the first row and choose menu items XLingPaper / Table Column, it should look like this:
You can insert columns before or after the one you clicked in, cut or copy the entire column or delete it. If you had just cut or copied another column, then you could also paste the copied column either before or after the selected column.
Doing something similar for the Table Row menu item produces a similar set of options, only it would be for rows instead of columns.
When you select menu item Table Cell, you get the following options:
You can span a column or a row. That is you can combine adjacent table cells into one cell. If this is not clear, you can always experiment a bit to see how it works.
As an example, if you keyed a table so it looks like what is in (136), it should come out as shown in (137).
This could come out as shown in (137).
(137) |
|
Beginning with version 2.17.0 of XLingPaper, you can increase the size of a table by using the “Increase Table Size” dialog. You do this by first clicking anywhere within the table and then invoking the XLingPaper / Increase Table Size menu option as shown in example (138).
When you do this, you see the Increase Table Size dialog which might look like what is shown in example (139).
This shows the current number of header rows, then the current number of non-header rows, and finally the current number of columns. You can use the “spinners” to increase the number for each part of the table. (You can also decrease the numbers, but this command will only increase table sizes, never decrease them.) When you either press the Enter key or click on the “OK” button, XLingPaper will increase the header rows, non-header rows, and columns to the amounts you specified.
For example, suppose you want a table that has one header row, ten non-header rows and six columns. You first insert a table in the normal way.[16] Suppose you had just a table with a header row, so it looks like what is shown in example (140).
After clicking somewhere in this table, you invoke the Increase Table Size command and change the numbers to be what you want: 1 header row (which it already has), ten non-header rows, and six columns. The “Increase Table Size” dialog would look like what is shown in example (141).
After you press the “OK” button, the table will now look like what is in example (142).
The Increase Table Size command will work on embedded tables as well as on entire tables. Because of this, it is important to make sure you click within the table you wish to change sizes for before invoking the command.
One other thing to keep in mind while using the Increase Table Size command is that it will make use of some of the existing material in the table. When it increases the number of header rows, it copies the first row in the table and then makes copies of that row until the total number of required header rows are present.. When it increases the number of non-header rows, it copies the last row in the table and then copies that row until the total number of required non-header rows are present. When it increases the number of columns, it copies the last column in the table and then copies that column until the total number of required columns are present.
Finally, please note that if the table you are working on already has row spans or column spans, the Increase Table Size command may not work as you might expect or it may not even be able to increase the sizes at all. Therefore, please try to use this command before you set any row spans or column spans.
There are times, such as in class handouts, poster sessions, and even in textbooks, where one may want to use a table to display a set of data. To facilitate locating data items in class or poster session discussions, one would like to have a line number for the data in a particular table. Rather than having to key such line numbers by hand, XLingPaper allows you to use the counter element within a td element. It will automatically keep track of the count of this and all previous counter elements within the current table element. It displays the count as a number with a following period. If you have more than 9 such rows, you may well want to set the align attribute of each enclosing td element to right so that the numbers align.
Example (143) shows how one such data display might look.
Tables can also have captions. To add a caption, one needs to do the following:
One can then enter the caption.
As an example, suppose one keys the following table:[56]
One can then remove the border lines by setting the border attribute of the table element to zero such as in (145). It is possible to have finer control over the border lines within a table, but it is not recommended that you do so.[58]
The result should come out as in (146) (assuming this is the fifth example in the document).
(146) |
|
You can have footnotes in tables. XLingPaper's default behavior is to show the footnotes in the table just like it does footnotes/endnotes in prose.
There are times, however, when you might need to have any footnotes in a given table show at the bottom of that table, not in the default location for general footnotes/endnotes. In such cases, the norm is not to use footnote numbers but rather a sequence of symbols such as an asterisk (*), a dagger (†), a double dagger (‡), a section symbol (§), and a paragraph symbol (¶). That is, the requirement is for the footnotes to stay with the table wherever that table appears and the footnote numbering is totally independent of the main footnote numbering elsewhere in the paper. How does one accomplish this with XLingPaper?
The basic solution is to create a table that has the footnote material embedded in it by hand. Here are some suggestions on how to do that.
The attributes used in the various elements within a table are summarized in the table in (147).[11] Not every element in a table has all of these attributes, but they are all listed here for ease of reference. When you are using the default way of producing PDF, you can use the XeLaTeXSpecial attribute of the tr element to add a horizontal line when you need an extra one. See line-before and line-after in endnote [8].
(147) |
|
One can also create charts. Chart elements can be placed between paragraphs or as examples. The content of a chart can either be “plain” text or an image (i.e. graphic) file.[61] In additon, you can use any list element (ol, ul, or dl) or a hanging indent paragraph (hangingIndent). The latter can be useful for entering dictionary entry examples.[62]
Suppose we want to create a non-example chart that shows an image (by the way, this is exactly what all the screenshots in this document are). We can insert a chart as shown in (148).
When you select chart(with_image) and press the Enter key, it should look like this:
When you click on the symbol, you can set the attributes for this image.[11] It should look like this:
You can either type in the name of the image file in the src attribute or you can do this:
If you want, you can also type in a text description of the image in the description attribute (on a webpage, this description will be used if the image file is not available). Once you type the name of the image file (and press the Enter key), the image will appear within the XMLmind XML Editor itself.
For example, if the image is in a file called ParseC.gif, then if we key things as shown in (151), the corresponding output will be as in (152).[63]
You may find it helpful to set the background of an image to be transparent. This may especially be the case if the image is in an example with an example heading.
If you want to center an image, use a table element (instead of a chart element). Make it have one column and one row (see section 6.1). In the table cell (td element), insert an img element. On the table element itself, set the border attribute to be 0 and set the align attribute to be center.[11]
Note that if you try to use “plain” text instead of an image in a chart, you will probably want to use non-breaking spaces[64] before the text in each line and insert a br element[16] at the end of each line. Otherwise, the result will probably not be formatted the way you had hoped.
One can also create tree diagrams. From one perspective, tree diagrams are just charts. We have chosen to use a distinct element for trees and charts, however, as linguists typically consider these to be different things. You can type plain text to try and format the tree (by using a lot of non-breaking spaces[64] at the beginning of lines and br elements at the end of each line, for example) or you can use some tool to produce a tree image file (e.g. LingTree). I recommend using the latter.
Tree elements can be placed between paragraphs or as examples. Suppose we want to create a non-example tree that shows an image file created by the LingTree program. We can insert a tree as shown in (153).
When you select tree(with_image) and press the Enter key, it should look like this:
When you click on the symbol, you can set the attributes for this image.[11] It should look like this:
You can either type in the name of the image file in the src attribute or you can do this:
If you want, you can also type in a text description of the image in the description attribute (on a webpage, this description will be used if the image file is not available). Once you type the name of the image file (and press the Enter key), the image will appear within the XMLmind XML Editor itself.
For example, if the image is in a file called rikaykaamaanaykipaq.png, then if we key things as shown in (156), the corresponding output will be as in (157).
If you want to make an image file larger or smaller, you can do so by using one of the special attributes on the image element, depending on which output format you are using. See example (158). You may need to play with these values to get the output to look the way you want. Note that none of these will make any difference to how the image file shows within the XMLmind XML Editor.
(158) |
|
Some publishers require one to put tables, charts and trees in special formatting items sometimes called “floats.” The idea is that where these items will appear in the published document will “float" depending on what is best as determined by the typesetter.[65] Personally, I am not a fan of floats. Whenever I am reading an article or book that has these, it is often the case that when a figure or table is referenced in the text, it is very hard to know where to look for the figure or table. Even though they are numbered, they typically do not appear very often so one does not know whether to look ahead or behind nor how far. It also is often the case that no list of figures or list of tables were provided, making it even more challenging to find the correct float.[66] Therefore, I am only reluctantly providing floats for XLingPaper. Please be nice to your readers and not use them unless absolutely necessary.
XLingPaper provides two kinds of floats: figures and numbered tables. Please note, however, that typesetters generally consider it bad style to mix footnotes with floats. Therefore, if there are any embedded endnote elements, the item will show up “in place.” Also note that any floats will not appear in the output when producing a Word 2003 document (see section 11.18).[67]
Something else to keep in mind is that these floats are intended to occur relatively infrequently. There should be lots of text and/or examples and/or other tables, etc. between them. If you have many of these in a row, the XeLaTeX way of producing PDF may well fail or the results may be very ugly.
Figures consist of a required chart element and an optional caption element. XLingPaper will automatically number the figures in your document. (Figures are numbered independently of numbered tables.) For papers, each figure is numbered consecutively. For books (i.e. documents containing chapter elements), the numbering for figures starts over with each chapter and appendix. The chapter number and appendix letter are prepended to the figure number.
Whether the caption appears before or after the chart is determined by the figureLabelAndCaptionLocation attribute of the lingPaper element. The default is set to after. To change the default setting or to overtly set the figureLabelAndCaptionLocation attribute, click on “lingPaper” in the node path bar.[48] Then use the Attribute tool[11] to find and change the figureLabelAndCaptionLocation attribute.
If you have an XLingPaper document for which you want to convert existing chart elements into figure elements, do the steps outlined in example (159) for each such chart element. Please note, however, that this will only work for chart elements that are not part of an example element.
To create a figure from scratch, do an insert before or insert after operation[16] and choose one of the figure options. For example, if we chose figure(with_caption_and_image), we would get what is shown in example (160).
Like other elements which can be referred to, figures have an id attribute. I suggest that you begin all figure id attributes with the letter "f."[14] The patches are for where you key your caption. See section 6.2 for how to set the image of the chart.
As an example, if you had the appropriate image file, then you could create a figure like what is in example (161).
If this is the first figure in the document, it will come out as in example (162).
(162) |
|
The word "Figure" before the number is used by default. If you wish to use some other label, then you will need to change the figureLabel attribute of the lingPaper element. To set the figureLabel attribute, click on “lingPaper” in the node path bar.[48] Then use the Attribute tool[11] to find and change the figureLabel attribute.
One can also produce an automatically generated list of figures for one's XLingPaper document. One does this by inserting a listOfFiguresShownHere element within a preface or glossary element. Usually the preface or glossary element is a distinct preface or glossary and contains just the list of figures. You change the label attribute of the preface or glossary element to be something like “List of Figures” and so it will appear that way in the table of contents. The list of figures will include the figure label, figure number and any caption.[68]
The attributes of the figure element are summarized in the table in (163).[11]
(163) |
|
As noted in section 6.4.1, you should give each figure a unique identifier name (that begins with a lower case f). This is so you can refer to the figure elsewhere in the paper.
To make such a reference to a figure, you use the figureRef element. While typing text (such as in a p (paragraph) element), insert an element[16] and choose figureRef. You will see . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the figure identifiers and their captions in your document.
You can type the identifier you want in the text box or scroll down until you find the one you want. Note that capitalization is significant when typing. When your document is processed, a hyperlink is made between the reference and the figure.[18]
One can also control what text precedes a figure reference, if one so chooses. Some people like to use a word such as “figure,” whereas others prefer to not have anything. One challenge with actually keying or not keying such words is that some publishers may want the author to do it one way or the other. In fact, some publications want authors to use capitalized "Figure" while others want authors to use lower case "figure".
In an effort to minimize an author's effort in dealing with this situation, XLingPaper provides you with the option of never keying such words, but rather to have them be inserted automatically when the paper (or book) is formatted. That is, if you so choose, you can never key words such as “figure” before a figureRef element. Which word or symbol will appear before them, if any, is controlled by setting various attributes of the figureRef element and the lingPaper element.[69] Please note that the default situation is for XLingPaper to not automatically insert these words; but if you wish, you can have XLingPaper insert them for you.
Example (164) lists the attributes of the lingPaper element that are relevant to this discussion. To modify them, click on “lingPaper” in the node path bar.[48] Then change them using the Attributes Tool.[11] Note that the key attribute is figureRefDefault. The other four are there so you can change the default text to what you need. There are four cases for whether the text needs to be capitalized or not and for whether there is only one reference or several. The default is to use the English words “figure,” “figures,” “Figure,” and “Figures” as appropriate. The “label” attributes are there so if you are writing in a non-English language, you can use the appropriate terms for that language.
(164) |
|
The relevant attribute for controlling this text in the figureRef element is given in example (165).
(165) |
|
It is also possible to show just the caption or the short caption of a figure. One uses the showCaption attribute to control this as explained in example (166).
(166) |
|
Numbered tables consist of a required tablenumbered element[70] and either a required table element or a required img element.[71] XLingPaper will automatically number the tables in your document. (These tables are numbered independently of figures.) For papers, each numbered table is numbered consecutively. For books (i.e. documents containing chapter elements), the numbering for numbered tables starts over with each chapter and appendix. The chapter number and appendix letter are prepended to the table number.
If you have an XLingPaper document for which you want to convert existing table elements into tablenumbered elements, do the steps outlined in example (167) for each such table element. Please note, however, that this will only work for table elements that are not part of an example element.
To create a numbered table from scratch, do an insert before or insert after operation[16] and choose one of the tablenumbered options. For example, if we chose tablenumbered(caption_with_head_row), we would get what is shown in example (168).
Like other elements which can be referred to, numbered tables have an id attribute. I suggest that you begin all numbered table id attributes with the letters "nt."[14] The patches are for where you key your caption. See section 6.1 for how to create and edit the content of a table.
Whether the caption appears before or after the table is determined by the tablenumberedLabelAndCaptionLocation attribute of the lingPaper element. The default is set to before. To change the default setting or to overtly set the tablenumberedLabelAndCaptionLocation attribute, click on “lingPaper” in the node path bar.[48] Then use the Attribute tool[11] to find and change the tablenumberedLabelAndCaptionLocation attribute.
As an example, you could create a numbered table like what is in example (169).
If this is the first numbered table in the document, it will come out as in example (170).
(170) |
|
The word "Table" before the number is used by default. If you wish to use some other label, then you will need to change the tablenumberedLabel attribute of the lingPaper element. To set the tablenumberedLabel attribute, click on “lingPaper” in the node path bar.[48] Then use the Attribute tool[11] to find and change the tablenumberedLabel attribute.
One can also produce an automatically generated list of numbered tables for one's XLingPaper document. One does this by inserting a listOfTablesShownHere element within a preface or glossary element. Usually the preface or glossary element is a distinct preface or glossary and contains just the list of tables. You change the label attribute of the preface or glossary element to be something like “List of Tables” and so it will appear that way in the table of contents. The list of numbered tables will include the table label, table number and any caption.[72]
The attributes of the tablenumbered element are summarized in the table in (171).[11]
(171) |
|
As noted in section 6.4.3, you should give each numbered table a unique identifier name (that begins with lower case nt). This is so you can refer to the numbered table elsewhere in the paper.
To make such a reference to a numbered table, you use the tablenumberedRef element. While typing text (such as in a p (paragraph) element), insert an element[16] and choose tablenumberedRef. You will see . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the numbered table identifiers and their captions in your document.
You can type the identifier you want in the text box or scroll down until you find the one you want. Note that capitalization is significant when typing. When your document is processed, a hyperlink is made between the reference and the numbered table.[18]
One can also control what text precedes a numbered table reference, if one so chooses. Some people like to use a word such as “table,” whereas others prefer to not have anything. One challenge with actually keying or not keying such words is that some publishers may want the author to do it one way or the other. In fact, some publications want authors to use capitalized "Table" while others want authors to use lower case "table".
In an effort to minimize an author's effort in dealing with this situation, XLingPaper provides you with the option of never keying such words, but rather to have them be inserted automatically when the paper (or book) is formatted. That is, if you so choose, you can never key words such as “table” before a tablenumberedRef element. Which word or symbol will appear before them, if any, is controlled by setting various attributes of the tablenumberedRef element and the lingPaper element.[69] Please note that the default situation is for XLingPaper to not automatically insert these words; but if you wish, you can have XLingPaper insert them for you.
Example (172) lists the attributes of the lingPaper element that are relevant to this discussion. To modify them, click on “lingPaper” in the node path bar.[48] Then change them using the Attributes Tool.[11] Note that the key attribute is tablenumberedRefDefault. The other four are there so you can change the default text to what you need. There are four cases for whether the text needs to be capitalized or not and for whether there is only one reference or several. The default is to use the English words “table,” “tables,” “Table,” and “Tables” as appropriate. The “label” attributes are there so if you are writing in a non-English language, you can use the appropriate terms for that language.
(172) |
|
There is only one relevant attribute for the tablenumberedRef element. It is given in example (173).
(173) |
|
It is also possible to show just the caption or the short caption of a numbered table. One uses the showCaption attribute to control this as explained in example (174).
(174) |
|
Lists come in three varieties:
Each one is explained and illustrated in the following sections.
Unordered or bulleted lists consist of items, each of which is tagged with a bullet. To create an unordered list, insert a ul element:[16]
When you select ul and press the Enter key, it should look like this:
That is, it begins with two bulleted list items. You can start typing the content of each item. You can insert another item (which is an li element) by either typing Enter, Ctrl+Enter or by inserting before or after.[16]
For example, if you type what is shown in (177), the corresponding output will be as in (178).
(178) |
|
One can embed lists within lists. Normally, one uses the same kind of list for both the outside and inside lists, but one can mix the varieties. To embed a list, click on the end of the text in the list item just above where you want to embed the list and insert another ul element.[16] It should look like this:
You can now start typing the content of the embedded list, add new list items, etc.
To remove an item from a list, you can click on the li element in the node path bar.[48] This will select the entire list item. You can now delete it (by typing Ctrl+k), cut it or copy it. If you cut or copy it, you can then paste it in another place in a list.
Ordered or numbered lists consist of items, each of which is tagged with a number or letter in sequence. To create an ordered list, insert an ol element:[16]
When you select ol and press the Enter key, it should look like this:
That is, it begins with two numbered list items. You can start typing the content of each item. You can insert another item (which is an li element) by either typing Enter, Ctrl+Enter or by inserting before or after.[16]
For example, if you type what is shown in (182), the corresponding output will be as in (183).
(183) |
|
One can embed lists within lists. Normally, one uses the same kind of list for both the outside and inside lists, but one can mix the varieties. To embed a list, click on the end of the text in the list item just above where you want to embed the list and insert another ol element.[16] It should look like this:
You can now start typing the content of the embedded list, add new list items, etc.
To remove an item from a list, you can click on the li element in the node path bar.[48] This will select the entire list item. You can now delete it (by typing Ctrl+k), cut it or copy it. If you cut or copy it, you can then paste it in another place in a list.
For ordered lists, XLingPaper defaults to numbering the list elements at the highest level (i.e., using 1, 2, 3,... for each list item). If there is a nested ordered list at the second level, then it uses lower case letters (i.e., a, b, c, ...). For a third level nested ordered list, it uses lower case roman numerals (i.e., i, ii, iii, iv, v, ...). If there is a fourth level nested ordered list, it will use numbers again. It repeats this “numbers, lower case letters, lower case roman numerals” for each successive nested ordered list.
There are times when you may want to be able to choose the numbers or letters to use. You do this by setting the numberFormat attribute of the ol element. Example (185) shows the possible values you can use.[73]
(185) |
|
Please note that while the output will have the correct number or letter, you will not see them in the XMLmind XML Editor.
Sometimes you may want to use an ordered list to create an outline, perhaps in a dissertation proposal to show the proposed content of various chapters and their sections You also want to include the section numbers. You can now do this for the default way of producing PDF only. You do it by nesting ol elements and setting two attributes: numberFormat and numberLevel. Set numberLevel to multiple (which enables it to correctly set the level numbers). You set the numberFormat attribute to values as shown in example (186).
(186) |
|
You can also begin the pattern with a capital A if you are showing appendices, say.
When you have more than nine numbered items at any level, then you should use double "11" instead of a single "1". For example, suppose that chapter 5 has eleven sections in it. For chapter 5's embedded ol element, use "1.11”. If any of these subsections of chapter 5 have further subsections, use “1.11.1”, etc. If you just use the usual “1.1” or “1.1.1”, the alignment will not be correct in the PDF.
Please note that while the output will have the correct number or letter, you will not see them in the XMLmind XML Editor.
Definition lists are lists whose items have two parts: a term and its definition. Appendix A in this document has such a list in it. To create a definition list, insert a dl element:[16]
When you select dl and press the Enter key, it should look like this:
Like unordered and ordered lists, it begins with two definition list items. The term is the one closest to the left and the definition is indented.
You can start typing the content of each term and definition. The term will be bolded (in the XMLmind XML Editor). You can insert another term by clicking at the end of a definition and then doing an insert after[16] for a dt element. When you've typed in the term, you can do an insert after for the dd definition element.
For example, if you type what is shown in (189), the corresponding output will be as in (190).
(190) |
|
To remove a term from a list, you can click on the dt element in the node path bar.[48] This will select the term item. You can now delete it (by typing Ctrl+k), cut it or copy it. If you cut or copy it, you can then paste it in another place in a list. Similarly, you can select and delete or copy a dd definition element.
The default way of producing PDF does not put the content of the dd element on a new line like the web page output does. If you want it to be on a new line, then set the showddOnNewLineInPDF attribute to yes on the dl element.
A mentioned in section 1, XLingPaper manages references and citations to references. Section 4.5 discusses how to create references. This section shows how to make citations to the references.
Reference citations involve two aspects: the declaration of a label and citations to that label. As with example number names, the label is chosen by the user. A label can be any sequence of letters and numbers the user wishes to use (such as rChomsky81 or rLGB, for example). The id attribute of the refWork element declares the unique label. The citation element refers to the label and XLingPaper will insert the author name(s)[74] and date in an appropriate fashion.
As I noted in section 4.5, you should give each reference work a unique identifier name (that begins with a lower case r). This id should consist of letters and numbers, but no spaces. This is so you can refer to the reference elsewhere in the paper.
To make such a citation to a reference, you use the citation element. While typing text (such as in a p (paragraph) element), insert an element[16] and choose citation. You will see . If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the reference works in your references. They will be sorted first by the citename attribute of the refAuthor element (see section 4.5), the date of the refWork, and then by the refTitle element of the refWork. A colon will separate the citename from the title. At the end of the line, the id will be shown within squiggly brackets.
For one XLingPaper paper I've worked on, it looked like this:
You can type the name you want or scroll down until you find the one you want. Note that capitalization is significant when typing. When your document is processed, the citation is created using a standard linguistic format that is also a hyperlink to the referenced work.[18]
Consider the examples shown in (192) which come out as shown in (193) (assuming that the appropriate reference elements have been made).
(193) |
|
Recall that XLingPaper only includes those reference entries which have a corresponding citation somewhere in the file(s). Suppose that there are two refWork elements for a particular refAuthor element, both of which are for the same year as example (194) below has for Clements (and Dixon, too).
If only the second such entry is cited in the text (i.e. via a citation element), then the date should be produced as 1985, not as 1985b or even as 1985a. XLingPaper formats this correctly. It adjusts the value of the letter in the date for such entries to correspond to the appropriate value. If there were three dates (such as 1985a, 1985b, and 1985c) and only two were cited (such as 1985b and 1985c), then XLingPaper will output these as 1985a and 1985b, respectively.
The content of the refDate element can be any text, so one can also use strings such as in prep., to appear, or forthcoming as the date.
The placement of the parentheses around the date in the citation within the text can be controlled by the user. The default option is to enclose the date in parentheses. In (192)-(193) above, notice how the citation to Regnier 1989 did not have parentheses around the date. That's because the paren attribute was set to a value of none, which outputs the date without any parentheses. The table in (195) delineates the various options.[11] The last two (citationBoth and citationInitial) will put an opening parenthesis before the author name(s). This is as a convenience for those cases where the citation is to be enclosed in parentheses.
(195) |
|
In addition, one can control whether or not the author name appears. The default action is for the name to appear. If you do not want the author name to appear, use the author attribute and give it a value of no.[11] This is useful when listing several works by the same author(s). For example, if the citations are keyed as in (196), the results will be what is shown in (197) (assuming the appropriate reference entries have been made).
(197) |
|
Note in (196) that the citation to rEWillett82 has been selected, so we see the Attribute Tool for this citation. Notice that the author attribute has been set to no and that the paren attribute has been set to none so that just the date appears in (197).
Sometimes a writer wishes to include a page number with the citation. XLingPaper provides a means for doing this. Suppose the references section is the same as that in (192)-(193) above. Then if we set the page attribute to 251 for the Greenberg citation element, the result will be as in (198).
(198) |
|
The contents of the page attribute[11] of the citation element is inserted after the date with an intervening colon. Any string of characters (not just digits) can be used as a page number.
The reference citation attributes are summarized in (199).[11]
(199) |
|
Some linguistic papers and books include one or more complete interlinear glossed texts, often in one or more appendices. XLingPaper allows you to include such texts. The form of the interlinear within the interlinear text may be the same as any of those described for interlinear examples (see section 5.3). Long interlinears will not automatically wrap except for the XeLaTeX way of producing PDF.[44]
Occasionally, such interlinear text is preceded by the same text in paragraph form.[75] In such cases, use a prose-text element to key the text. Set the lang attribute of the prose-text element to the id attribute value of the language element the text is written in. The text will then be formatted in the output per the information contained in that language element.
It is also possible to insert paragraphs (p elements) or continuation paragraphs (pc elements) between interlinear elements. This can be used to insert commentary on the text.
One possible way to include an interlinear text is to use the SIL FieldWorks Language Explorer program to interlinearize a text and then export the text in XLingPaper format. One can then merely copy and paste the resulting text into an XLingPaper document. See http://fieldworks.sil.org/flex/ for more on the SIL FieldWorks Language Explorer program.
Note that if you use this option, then most of what is described in the next section has already been done for you.
One can also key an entire interlinear text by hand. There are two ways to do this. One is to create an interlinear text as a modular document. You can then make this text be part of more than one XLingPaper document. To do this, use menu items File / New. Scroll down to the XLingPaper section and choose “Interlinear text (part of a modular document).”
The other way is to merely create the text within your current document. To do this, one can, say, perform an insert after command (e.g. press Ctrl+j or right-click and choose Insert After...), and type interlinear-text in the Edit Tool.[3] It should look like this:
The first option[76] results in the following:
You can then key in the title of the text and also a shortened title. The shortened title is used when indicating line numbers and also for when an example within the document refers to this text (see section 5.3.4.1).
After this, you can create the interlinear portions which constitute the text. You can use methods similar to those outlined in sections 5.3.1.1-5.3.1.2, including using abbreviations. For example, it might look something like this:[77]
When formatted, this will look like what is shown in (203).
(203) |
|
Notice how XLingPaper uses the shortened title and automatically assigns a line number. (If the text was imported from SIL FieldWorks Language Explorer as described in section 9.1, then the line number will be the one given by SIL FieldWorks Language Explorer.)
If you will want to make reference to a portion of an interlinear, then you should give a unique text ID attribute[14] to the interlinear element in such a portion (this is done automatically for you if you import a text from SIL FieldWorks Language Explorer). Suppose we do this for the second portion of the text shown in (202) above, using an text ID of TLIQ2. (We do this by clicking somewhere in the portion, clicking on ‘interlinear’ in the node path bar[48], and then typing TLIQ2 in the Attributes Tool[11].) The result will be:
You can now make reference to this in an interlinear example. See section 5.3.4.1 for more on this.
It is also possible to make a reference to an interlinear within text material (such as in a p element or a langData element). To do this, insert an interlinearRefCitation element and set its reference to an interlinear text. See section 12.9 for the easiest way to do this. For example, if we refer to the second portion in (204), it will appear in the output as shown in (205).
(205) |
|
It is also possible to refer to the text ID attribute of the entire interlinear text, if the interlinear text has one. In such cases, only the short title of the text will appear.
The attributes of the interlinearRefCitation element are summarized in the table in (206).[11]
(206) |
|
Sometimes one has a number of distinct XLingPaper documents on a particular language or topic. Some of these documents contain interlinear text. Others are discussions of constructions in the language. In the latter kind of document, one does not want to have to include the entire interlinear text because it is in its own document in the series. And yet, one wants to be able to copy or refer to particular interlinears within the text, including having a hyper-link to the document containing the interlinear text. How does one do this?
First, open the XLingPaper document containing the interlinear text in the XMLmind XML Editor. Make sure that the interlinear-text element itself has the text attribute set to a unique value (this is the ID of the entire interlinear text). Now copy the interlinear-text element as a reference by using menu items Edit / Reference / Copy as Reference.
Second, insert a referencedInterlinearTexts element just before the languages element (near the bottom). It might look something like what is shown in example (207).
Open up the "Referenced Interlinear Texts" by clicking on the plus sign. You will now see what is shown in example (208).
Click on "Interlinear text:" and do a paste. This will link in the interlinear text from your other document. Now click on where it says "url" and type in the (relative) location of the file containing the interlinear text. Do not include any file extension. The extension will be supplied automatically by the output.
You can now refer to any interlinear within the interlinear text by following the steps outlined in section 5.3.4.1. Note, however, that the interlinear text itself will not appear in the output.
XLingPaper allows for two types of special effects.
Within a paragraph or other text, you may want to create some special effects (such as I do here for the word XLingPaper and for element and attribute names). Normally you will use an object element for these, although there is also the langData element. The latter is to be used for all language data in order to provide a consistent rendering for language data. It also tags all instances of such language data within the document. This is important for archiving purposes.
When you create an XLingPaper document, a pre-defined set of type elements are included. You can see them by opening the very last item as shown in (209).
One important, but easy to forget, issue is that you are actually tagging your data with these object elements. Thus, it is actually wiser in the long run to create an object element that is for the kind of thing it is as opposed to how you want it to format. This is especially challenging for those of us who have been using programs that show what we are keying in the way it is to appear on paper; we become conditioned to think in terms of formatting rather than in terms of the kind of item it is. By tagging it as a special object, if we (or someone else) ever decide to format these kinds of items differently, it is very easy to change - merely change the formatting information of the type element. If we have merely tagged these as “bold” or “italic” or used some special color, however, we have to manually search through the document to figure out which ones to change.
If you wish to produce some special effect for any non-language data item, follow these steps.
You can type the name you want or scroll down until you find the one you want. Note that when you type, capitalization is significant.
There is another way to do this now, also. You can do this instead:
The attributes of the type element are summarized in the table shown in (211).[11]
(211) |
|
You can also add highlights or other effects to a language data item by embedding an object element within a langData element.
There are three kinds of special hypertext links available.
The first is for linking material within the document. One does this by inserting[16] a genericRef element within text. The genericRef element has one attribute:[79] gref which should be the id attribute of some section, appendix, example, endnote, or other element that has an id attribute.[80] You can also type some text that will show up as a hyperlink on that text to the appropriate section, appendix, example, endnote, etc.
For example, suppose you want to create a generic reference to a section1 element with an id attribute of sIntroduction. After you insert the genericRef element, it might look like this:
If you immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11 or if you right-click on it and choose Set Reference), a dialog box will pop up that lists all the possible ids that you could use. For one XLingPaper paper I've worked on, it, it looked like this:
You can type the name of the one you want or scroll down until you find the one you want (sIntroduction in our example here). You can then type some text within the black patch shown in example (212).[18] So if you were to type introduction, it would come out looking like this:
For links to items outside of the document, one can use the link element within text or other constructs to link to a media object (for example, a sound file). The link element has one attribute: href which should be the URI of the media object you wish to link to. Type some text or embed an image (via the img element) between the begin link element and its end tag. The result will be a hyperlink on that text and/or image that will link to the media object.
Here are two examples of a link element:
Please note that as a URI, the value of the href attribute should have regular English letters and numbers in it. It is possible to use accented letters in the URI file name, but you may well find that the resulting XLingPaper output (either web page or PDF) will not find the file. There are technical reasons for this.[81] Therefore, we advise you to use basic English letters and numbers whenever possible. When it is not possible, there is a special XLingPaper command you can use to convert your file name to a special URI format. To use this command, do the following:
An alternative way is to embed a sound or movie file into a PDF file via the mediaObject element. The way one does this for the default (XeLaTeX) way of producing PDF and the RenderX XEP way of producing PDF differs.
For the default (XeLaTeX) way of producing PDF, you will need to get the free Symbola font and install it on your computer. You can get it at http://www.xlingpaper.org/?page_id=4#SymbolaFont. If you installed XLingPaper before version 2.25.0, you will also need to get and install the XeLaTeX upgade package at http://www.xlingpaper.org/?page_id=4#XeLaTeXUpgrade.
The attributes of the mediaObject element used by the XeLaTeX way of producing PDF are summarized in the table in (215).[11]
(215) |
|
(216) |
|
For the RenderX XEP way of producing PDF, you will need to set the includemediaobjects attribute of the lingPaper element to be yes (the default is no). To set the includemediaobjects, click on “lingPaper” in the node path bar.[48] The attributes of the mediaObject element used by the RenderX XEP way of producing PDF are summarized in the table in (217).[11]
(217) |
|
Please be aware that including media objects can make the resulting PDF file very large.
This section lists some answers to some common questions on the order of “How do I do X?”. Some of these are not addressed elsewhere.
If it is language data that you want to come out in bold or italic, then set the font-weight attribute of the appropriate language element to bold for bold or set the font-style attribute to italic for italic. See section 1.3.
If it is just some text that you want to make bold or italic, insert[16] an object element and set its type to bold or italic. See section 10.1.
One important, but easy to forget, issue is that you are actually tagging your data with these object elements. Thus, it is actually wiser in the long run to create an object element that is for the kind of thing it is as opposed to how you want it to format. This is especially challenging for those of us who have been using programs that show what we are keying in the way it is to appear on paper; we become conditioned to think in terms of formatting rather than in terms of the kind of item it is. By tagging it as a special object, if we (or someone else) ever decide to format these kinds of items differently, it is very easy to change - merely change the formatting information of the type element. If we have merely tagged these as “bold” or “italic,” however, we have to manually search through the document to figure out which ones to change.
To make some text be superscript or subscript (whether that text is in language data or not), insert[16] an object element and set its type to superscript or subscript. See section 10.1.
One important, but easy to forget, issue is that you are actually tagging your data with these object elements. Thus, it is actually wiser in the long run to create an object element that is for the kind of thing it is as opposed to how you want it to format. This is especially challenging for those of us who have been using programs that show what we are keying in the way it is to appear on paper; we become conditioned to think in terms of formatting rather than in terms of the kind of item it is. By tagging it as a special object, if we (or someone else) ever decide to format these kinds of items differently, it is very easy to change - merely change the formatting information of the type element. If we have merely tagged these as “bold” or “italic,” however, we have to manually search through the document to figure out which ones to change.
If it is language data that you want to always show in a particular color, then set the color attribute of the appropriate language element. See section 1.3.
If it is just some text that you want to show in a particular color, insert[16] an object element and set its type to a color type. You may have to add a type element. See section 10.1.
One important, but easy to forget, issue is that you are actually tagging your data with these object elements. Thus, it is actually wiser in the long run to create an object element that is for the kind of thing it is as opposed to how you want it to format. This is especially challenging for those of us who have been using programs that show what we are keying in the way it is to appear on paper; we become conditioned to think in terms of formatting rather than in terms of the kind of item it is. By tagging it as a special object, if we (or someone else) ever decide to format these kinds of items differently, it is very easy to change - merely change the formatting information of the type element. If we have merely tagged these with some color, however, we have to manually search through the document to figure out which ones to change.
If you have, say, language data that you need to use a large font size for (as often happens with non-roman fonts), if you use a font size set to a particular point size (e.g. 24pt), then your data will always have that size wherever it occurs. This can be problematic for text within elements like secTitle or endnote. The language data will come out either too small or too large.
The solution is to specify a font size that is a percentage (e.g. 120%). Then, if you use this element in a secTitle or an endnote element, it should come out proportionately well in those contexts.
If you, like many of us, use the Charis SIL and/or Doulos SIL font in your document, you may notice some unpleasant formatting issues when producing either a webpage or the RenderX XEP PDF output.
I'm told that these fonts have different ascender and descender values than fonts like Times New Roman.[82] So when you try and mix these fonts in a paragraph or in an interlinear example, sometimes the spacing between lines in a paragraph (in a webpage, say) or the horizontal alignment of interlinear lines (in the RenderX XEP PDF output) do not come out as one would like. For example, the webpage problem might be something like what is in (218)[83] where there is extra vertical space between the lines containing one of these fonts.
For webpage output, one thing you can do is to set the font of your browser to use, say, Charis SIL. It will then look like this:
Notice that now the line spacing is even.
The problem with the RenderX XEP PDF output might look something like what is shown in (220) where the word in one of these fonts is almost a whole line down from the other items on the line. (This only happens when using the RenderX XEP approach to producing PDF; the XeLaTeX way does not have this problem. See section 11.17.)
The way to fix this is to add a special formula to the xsl-foSpecial attribute of all language elements that use either the Charis SIL or Doulos SIL font. If you set the xsl-foSpecial attribute to be text-altitude="0.693em" text-depth="0.215em" then it should come out looking more like what is shown in (221).
Many authors prefer to use small caps for “grammatical” glosses (e.g. inflectional affix glosses). How does one do this?
One can select the portion of a gloss that is the “grammatical gloss” and then press F5 or select menu item XLingPaper / Mark selection as grammatical gloss. The selected text will be tagged with an object element whose type attribute will be set to tGrammaticalGloss. You will need to make sure you have a type element whose id attribute is set to tGrammaticalGloss. You can format it as you wish, including using small caps (see section 10.1). If you create a new XLingPaper document using version 1.11.0 or later, the “grammatical gloss” type element will automatically be included and set to small caps.
As always when using small caps, remember that only lower case letters come out as small caps. Upper case letters will remain capitalized.
Another thing to remember is that the packages that produce PDF output are typesetting packages and typesetters consider small caps to be distinct fonts. Many of us are used to how programs like Microsoft Word and Internet Explorer will approximate small caps for us. The typesetting tools used to produce PDF versions of a XLingPaper document, however, will only produce true small caps when you have a real small caps font. If you do not have a true small caps font, then XLingPaper will attempt to approximate small caps for you. Be aware, however, that this approximation will not be of the same quality as a true small caps font. If you are using Charis SIL fonts, it is possible to create true small caps versions of these.[84] There is also a set of Charis SIL Small Caps fonts at http://www.xlingpaper.org/?page_id=4#SmallCapsFonts.
See section 4.6.3 for an automated way of producing a list of abbreviations.
While XLingPaper does not have an overt element for adding a list of abbreviations in the front matter, one can use a preface element to make a list of abbreviations. Here's one way:
Note that you can have multiple preface elements in the front matter section, so you can use this method to create other specialized front matter sections.
To create a master list of references,[85] use the File / New menu item. Find the XLingPaper section and select “References (part of a modular document)”.
This will open up a new document that has just the References portion of an XLingPaper document, along with two (blank) refAuthor elements.
Key your reference information, adding new authors and works as needed. (See section 4.5.)
When you have your master references file the way you want it, you can make it be a part of a modular document by doing the following:
You have now made the linkage between your main document and the master references document.
When you are editing your main document and want to add a reference to your master references document, go to your master
references document and make your additions. When you are done making the additions, click on the Edit Referencing Document button in the upper left portion of the window. It looks like this: This will take you back to your main document.
The next time you need to make an addition to the master references document, you can click on the Edit Referenced Document button which is just to the right of the Edit Referencing Document button. It looks like this:
To find text in a document, use the Search Tool. It is located in the same place that the Attributes Tool is,[11] but is on a different tab. The Search Tool's tab icon looks like this:
Click on the Search Tool tab. You will see something like this:
You type in the text you want to look for in the Search box. Notice that the XMLmind XML Editor keeps track of the text you have looked for during the most recent editing session. To see these, click on the drop down arrow in the Search box.
You can choose to control various options by checking the boxes or selecting the direction of the search (up or down).
You start the search by hitting the Enter key or clicking on the Start button. When it finds a match, it shows it. You can then either skip it or the whole element it is in, or stop looking.
To find and replace some text, you do what you need to do to find text (see section 11.9), but you check the Replace box. After checking this box, you can type in the replacement text in the box below Replace. Like the Search text box, the XMLmind XML Editor remembers the replacement texts you have used before during this editing session.
When you start the replace operation, it will find the next instance of the matching text to be searched for. You can then skip it, replace the text or even replace all instances (be careful with the last one so you do not accidentally replace ones you did not intend to replace).
To perform a spelling check, use the Spell Tool. It is located in the same place that the Attributes Tool is,[11] but is on a different tab. The Spell Tool's tab icon looks like this:
Click on the Spell Tool tab. You will see something like this:
Make sure that the default language is the language your document is written in. If you need a spelling checker for French, German, or Spanish and do not see these languages listed in the Default language drop down, you will need to install the correct addon spelling package. See section 11.11.1 below.
Click on the Start button. When the XMLmind XML Editor finds a word that it does not recognize, it will show it to you in context. You can ignore it, have the spelling checker learn it, or replace it with one of the suggested corrections.
Note that beginning with version 3.4.0 of the XMLmind XML Editor, one can configure the spelling checking process to ignore the content of some elements. This version of XLingPaper for the XMLmind XML Editor ignores these elements:
To add a spelling checker for French, German, or Spanish, go to the downloads page on the XLingPaper web site (http://www.xlingpaper.org/?page_id=4). Go to the section for getting the French, German, or Spanish files and follow the instructions. You will need to restart the XMLmind XML Editor after installing the dictionary files.
From what I can tell, the XMLmind XML Editor does not automatically insert ‘smart’ quotes like Word does. But one can still insert them.
One can use some special key stroke combinations to enter “curved” quote marks. In (222), when there is a plus sign between the keys, type all the keys at the same time as indicated in the “Key stroke combination” column. The result is given in the “Result” column.
(222) |
|
Another way is to do this:
(223) |
|
To key a non-breaking space, use the insert character dialog discussed in section 11.12, but type in nbsp (for non-breaking space).
To key a non-breaking hyphen, use the insert character dialog discussed in section 11.12, but type in nbhy (for non-breaking hyphen).
One of the nice things about using the XMLmind XML Editor is that it automatically maintains the structure of an XLingPaper document. One cannot insert an element in an incorrect position. The XMLmind XML Editor simply will not let you do that. And that, of course, is a very good thing.
Nonetheless, there are at least two ways in which an XLingPaper document can have some validity problems. These problems can show up in at least two ways.
First, you may have already noticed that usually there is a green check mark in the lower left corner of the window, as indicated in the following screen shot by the large black arrow.
If the document has a validity problem, this icon will turn yellow like this or it will be red like this
.[87]
When your file is saved and there is some such problem, you may also see the Validity tab open up on the right, in the same area where the Attributes tool is. For example, it might look like this:
Unfortunately, the messages like the ones above in (224) that the validity tool gives are not that easy to understand. The nice thing, though, is that the blue numbers enclosed in
square brackets are hyperlinks to the place in your document where the problem is. If you have the red image showing, then these warning messages will have some suggested steps for how to fix the problem.
In (224), there are instances of the two errors I mentioned above:
So to find out where an error is, click on the blue number enclosed in square brackets. The place should open up in the editor and it should be selected. (On rare occasions, clicking on the number will not show you the problem. When this happens, you can try and use the ugly "no style sheet" view. Clicking on the number should then take you to the element that has the problem. To use this view, use the menu item View / 0 (no style sheet). Then click on the number. To return to the nicer XLingPaper view, use menu item View / XLingPap.)
After you fix the errors (and do a save), the Validity tool area should become blank. You will probably then want to click on the Attributes Tool tab.[11]
In section 1.2, I mentioned that you can use the XMLmind XML Editor to produce webpages. How does one do that?
Use the menu items XLingPaper / Produce Webpage F7.[88] This invokes a transform on your document and produces a file with the same name as your XLingPaper document file, but with an extension of htm (which is often used for webpages). This new file is in the same directory as your XLingPaper document.[89]
To see what the webpage looks like, you can use the menu items XLingPaper / Show Webpage F8.[90] This starts up your web browser showing your processed file.
Note that once you have an instance of your processed file opened in your web browser, you can do the following steps repeatedly:
By following these three steps, you can incrementally write and check the output of your document.
In section 1.2, I mentioned that you can use the XMLmind XML Editor to produce a PDF file version of your document. How does one do that?
Beginning with version 2.6.0 of XLingPaper, there is an automatic way to produce a PDF file. The freely available programs required to do this are included in the XLingPaper configuration installation package (see section 1.2.2). There also is an older way to produce PDF.
Therefore we have two ways to produce PDF. The default way uses XeLaTeX (see section 11.17.1). The older way is to use RenderX XEP (see section 11.17.2).
Also beginning with version 2.6.0, we try to automatically load the PDF file into your default PDF viewer program. On Windows operating systems, because at least some of these programs refuse to allow the PDF file to be changed while they are showing that PDF file, you need to close the file before it can be made again. If you (like me) happen to forget, a message dialog box will be displayed reminding you to do it.
By the way, on Windows operating systems, if you use the freely available Foxit READER program to read your PDF files, then it is possible to enter annotations or comments in the PDF. The Foxit READER can be obtained at http://www.foxitsoftware.com/. See section 11.30 for other ideas on adding comments.
The first and default[91] way to produce PDF is to use the menu item XLingPaper / Produce PDF F9.[92] This invokes a transform on your document and then tries to run the XeLaTeX tool to produce a PDF file. It will produce a file with the same name as your XLingPaper document file, but with an extension of pdf. This new file is in the same directory as your XLingPaper document. Since it needs to have some working files, it also produces a new sub-directory (XLingPaperPDFTemp) for these files. Please note that it can take a while for the XeLaTeX tool to complete its task. This is especially true the first time you run a document that has fonts the XeLaTeX tool has not seen before. If you note any odd results or errors in the PDF output (or if the PDF output process never finishes), please send an email message to support@xlingpaper.org. Also please see section 11.45.
See the note on reading PDF files above, too.
There are some known limitations with the XeLaTeX approach:
Operating System | Screen-oriented ruler program |
---|---|
Windows (XP, Vista, Windows 7) | JRuler (http://www.spadixbd.com/freetools/?referrer=JRulerUser) |
Mac OS X 10.4+ (Intel processor) | Free Ruler (http://www.pascal.com/software/freeruler/). I had to manually adjust the Unit Conversion Settings to be correct for the screen I was using. I did this by using Free Ruler menu item Units / Conversion Settings, Unit Conversion tab. |
Linux | The best I found was gruler, also known as ScreenRuler (http://gnomecoder.wordpress.com/screenruler/), although it did not seem to show correct units of measurement. If you discover a better tool, please let me know. |
Operating System | Installer to download |
---|---|
Windows (XP, Vista, Windows 7) | ConvertSvgToPdfSetup.exe |
Mac OS X 10.4+ (Intel processor) | ConvertSvgToPdfSetup.dmg |
Linux | ConvertSvgToPdfSetup.tar.gz |
Operating System | How to install |
---|---|
Windows (XP, Vista, Windows 7) | Run the installer. It will do all that is needed. |
Mac OS X 10.4+ (Intel processor) | Run the installer. It will do all that is needed. |
Linux | Decompress and extract the installer in some directory. In a Terminal, do "sudo ./install" |
If you used the XLingPaper configuration installation package, then you already have what you need to use the XeLaTeX approach to producing PDF.
If you did not use the XLingPaper configuration installation package, please do so. See section 1.2.2.
The second way to produce PDF is to use the menu item XLingPaper / Produce PDF (RenderX) Ctrl+Shift+F9.[97] This invokes a transform on your document and then tries to run the RenderX XEP tool to produce a PDF file. If you have the RenderX XEP tool installed on your computer,[98] it will produce a file with the same name as your XLingPaper document file, but with an extension of pdf. This new file is in the same directory as your XLingPaper document. Please note that it can take a while for the RenderX XEP tool to complete its task. If you note any odd results or errors in the PDF output, please send an email message to support@xlingpaper.org.
See the note on reading PDF files above, too.
If you do not have the RenderX XEP tool installed, you will see a message saying that apparently you do not have this tool installed on your machine.
To obtain the RenderX XEP tool, you can download a free, personal use version from http://www.renderx.com/download/personal.html. They also have a free academic version available at http://www.renderx.com/download/academic.html.[99]
There are some known limitations with the RenderX XEP approach:[100]
Installing the RenderX XEP tool, unfortunately, is non-trivial, to put it mildly. I have no idea why they make it so challenging to do... and it is not just with the free versions that they do this! On the bright side, you can get a free version and it really does do a great job of formatting. No other similar tool (i.e. one that uses XSL-FO technologies) that I have tried could even come close to getting the proper output, especially for interlinear examples. All of the other ones would require you to do custom hand-editing for each example.
The steps to follow are below. You may want to have someone help you with these steps since they are so complicated. (These steps are for installing on a Windows machine. For Unix or Mac, see the footnote.)[102]
In section 1.2, I mentioned that you can use the XMLmind XML Editor to produce a file in Microsoft Word 2003 format for your document. How does one do that?
There are actually two ways to do this.
The first is to produce a PDF file using the default way of producing PDF. See section 11.17. Then go to http://www.pdftoword.com/ and use their free online converter service. This will produce a Word file that has the exact same formatting as the PDF. There are three drawbacks as of July 20, 2012:
The second way is to use the menu items XLingPaper / Produce Word 2003 Document. This invokes a transform on your document and then tries to run the XMLmind XSL Utility tool to produce a Word 2003 document file. If you have the XMLmind XSL Utility tool installed on your computer, it will produce a file with the same name as your XLingPaper document file, but with an extension of doc. This new file is in the same directory as your XLingPaper document. Please note that it may take a while for the XMLmind XSL Utility tool to complete its task.
If you do not have the XMLmind XSL Utility tool installed, you will see a message saying that apparently you do not have this tool installed on your machine.
To obtain the XMLmind XSL Utility, you can download the latest personal edition from http://www.xmlmind.com/archive/foconverter/4.6.1/. Be sure to read the license information in the installation program to determine if the Personal Edition License is appropriate for your situation. (SIL members can use the Personal Edition License.) If the Personal Edition License is not correct for you, please go to http://www.xmlmind.com/foconverter/buy.html and buy a license for the Professional Edition.
The following table delineates what to get depending on your operating system:
Operating System | Installer to download |
---|---|
Windows (XP, Vista, Windows 7) | xslutil_perso-4.6.1-setup.exe |
Mac OS X 10.4+ | xslutil_perso-4.6.1.zip |
Linux | xslutil_perso-4.6.1.zip |
After you have downloaded the file, do the following:
Operating System | Installer to download |
---|---|
Windows (XP, Vista, Windows 7) | Run the installer; be sure to install it in the "C:\Program Files" directory (or "C:\Program Files (x86)" directory on 64-bit versions). |
Mac OS X 10.4+ | Unzip it wherever you'd like, then do the following in a Terminal: sudo ln -s Full_path_to_where_you_unzipped_it/xslutil_perso-Version_number /usr/local/bin/xslutil Note that on some Mac systems, you may need to first make the /usr/local/bin directory via commands like these: sudo mkdir -p /usr/local sudo mkdir -p /usr/local/bin |
Linux | Unzip it wherever you'd like, then do the following in a Terminal: sudo ln -s Full_path_to_where_you_unzipped_it/xslutil_perso-Version_number /usr/local/bin/xslutil |
On Windows machines, the current XLingPaper configuration files will also work with versions 4.2p1, 4.3.1, and 4.3.2 of this converter.
By the way, you can also invoke this tool by itself and use it to convert to some other formats, too. You will need to use the .fo version of your file (that this process also produces) as your input file. Then you will need to select the output format you wish. Ones that make the most sense are to map from FO to .docx, .odt, or .rtf.
Please note that this process of producing a Word 2003 document is not as mature and stable as the process to produce a webpage and PDF is. Here are the known limitations:
If you note any odd results or errors, please send an email message to support@xlingpaper.org.
In section 1.2, I mentioned that you can use the XMLmind XML Editor to produce a file in Open Office Writer format for your document. How does one do that?
Like for producing a Word version, there are two options.
The first is to produce a PDF file using the default way of producing PDF. See section 11.17. Then go to http://www.pdftoword.com/ and use their free online converter service. This will produce a Word file that has the exact same formatting as the PDF. There are three drawbacks as of July 20, 2012:
Finally, open this Word file with Open Office Writer. Note that it may not be 100% perfect, but it will be close.
The second option is to use the menu items XLingPaper / Produce Open Office Document. This invokes a transform on your document and then tries to run the XMLmind XSL Utility tool to produce an Open Office Writer document file. If you have the XMLmind XSL Utility tool installed on your computer, it will produce a file with the same name as your XLingPaper document file, but with an extension of odt. This new file is in the same directory as your XLingPaper document. Please note that it may take a while for the XMLmind XSL Utility tool to complete its task.
If you do not have the XMLmind XSL Utility tool installed, you will see a message saying that apparently you do not have this tool installed on your machine.
To obtain the XMLmind XSL Utility, see the instructions in section 11.18.
On Windows machines, the current XLingPaper configuration files will also work with versions 4.2p1, 4.3.1 and 4.3.2 of this converter.
By the way, you can also invoke this tool by itself and use it to convert to some other formats, too. You will need to use the .fo version of your file (that this process also produces) as your input file. Then you will need to select the output format you wish. Ones that you will most likely want to use are to map from FO to .docx or .rtf.
Please note that this process of producing an Open Office Writer document is not as mature and stable as the process to produce a webpage or PDF is. Here are the known issues:
Any display which is rendered as a table may have oddly spaced columns.[103] This includes many example elements. There is an Open Office Extension package I have written to help with this. The macro attempts to apply the "auto-fit" table capability to all the tables in the document. You can obtain the macro by performing these steps:
Note that the macro does not always work for each and every example/table. Sometimes when there is a list interlinear, the widest one will not get reformatted. You have to manually adjust the width of the table and then apply the macro again.
If you note any odd results or errors, please send an email message to support@xlingpaper.org.
A very common issue people run into while using XLingPaper with the XMLmind XML Editor occurs when they have created lower-level sections (say section2 or section3) and now want to add a new section at a higher level. In programs like Microsoft Word, one merely went to the end of the lower level section, pressed the Enter key, typed the title of the higher level section, and then changed the style to be the higher level.
With a structured editor like the XMLmind XML Editor, this is not possible. A section1 element can only go after another section1 element. A section2 element can only go after another section2 element, etc. You can insert a section3 element within (at the end) of a section2 element, but you cannot insert a section2 element after a section3 element - that would mean you have a level 2 inside a level 2, which does not make sense - sections at the same level do not nest.
Given this structured way of thinking, how does one insert, say, a section2 element after a section3 element? The following outlines one way:
Sometimes while writing, one realizes that the material one has within a section should really be broken up into several sub-sections. For example, the material that at first seemed like it should all be part of a section2 element, say, should really be split into two or more section3 elements. How does one make this split or “demote” this material to sub-sections?
One can do this as follows.
Here's an example. Suppose you have something like what is shown in (225).
In addition, suppose that you want to split the second paragraph and first example into a section3 element and you also want to split the third paragraph and last example into a section3 element. First, click at the beginning of the “We begin” paragraph, hold the Shift key down and use the down arrow key to move the cursor to the beginning of the “We now...” paragraph. It might look like this:
Now, click on the XLingPaper menu item and select Demote selected portion of section. After you do this, it will look like what is shown in (227).
Notice that the selected portion of (226) has been moved into a new section3 element. This new section3 element is now at the end of the section2 element. Why? Because sub-sections can only occur at the end of a section.
You can now type in the title of the new sub-section and you can create the unique ID for this new sub-section, too. Let's say the title is “Condition State Verbs” and the ID is “sVerbsConditionState”.
Now click at the beginning of the “We now ...” paragraph, hold the Shift key down and use the down arrow key to move the cursor to the end of the example. It might look like this:
Notice that in this case, where we are selecting the last portion in the original section, that the cursor is not on the following sub-section, but rather at the end of the free translation of the final example. The reason is that the XMLmind XML Editor is a structured editor and we have to select reasonable chunks of elements. See below for a bit more on this.
Once again, click on the XLingPaper menu item and select Demote selected portion of section. After you do this, it will look like what is shown in (229).
Now we have the second portion showing up as section3 element. Also notice that the order of the “demoted” material is now the same as it originally was.
As before, you can now type in the title of the new sub-section and you can create the unique ID for this new sub-section, also. You have now successfully split this section into two sub-sections.
Note that when you are working on splitting the final portion and that portion only has one element in it (say a paragraph), then the above procedure may not work correctly. You have to click on the element name in the node path bar[48] and then apply the Demote selected portion of section command. If you run into this, an informational message should appear reminding you of what to do. Another option to try is to merely add an empty paragraph after the last element you want to include, then do your selection as before. This may actually prove easier to remember to do.
Sometimes while writing, one realizes that the material that at first seemed like it should be a section2 element, say, should really be a section1 element (or it should really be a section3 element). If this material is currently entered as a section2 element, how does one change it?
One can do this as follows.
Here's an example. Suppose you have something like what is shown in (230).
In addition, suppose that you want to promote section 2.1.1 from being a section3 element to being a section2 element. First, click on the “2.1.1” in order to select the entire section3 element. It might look like this:
Now, click on the XLingPaper menu item and select Promote selected section; copy to clipboard. After you do this, it will still look like (231).
Now click on section “2.2” so that it might look like this:
Do a Paste Before action (by right-clicking and choosing Paste Before, using the Edit menu and choosing Paste Before, or by typing Ctrl+U). It might now look like this:
Now all of the content that was in section “2.1.1” is showing up as section “2.2.” You can open up the new section “2.2” and make sure all of it is there. Notice that all the section elements have been promoted up one level so that what was a section3 element is now a section2 element, what was a section4 element is now a section3 element, etc.
The next step is to go and delete the original section you promoted.
Note that there are some limitations about what can and cannot be demoted or promoted:
Sometimes while writing, one realizes that the paragraphs, examples, etc. one has just written should really be put into a sub-section. For example, one might be working in a section2 element and then decide to convert several paragraphs, etc. into a section3 element.
The first thing many of us try is to go to the top of what needs to become that section3 element and try to insert a section3 element. After all, this is how we would have done it in our favorite text editor. But, the XMLmind XML Editor is a structured editor and not a text editor. Therefore, when we try this in the XMLmind XML Editor, we discover that no section3 elements show up at this point. Why? Because we are trying to insert a section3 element in the middle of a section2 element and that does not make sense structurally: a section does not consist of some paragraphs, one or more sub-sections, and then more paragraphs (back at the section level). You see, rather than being a pain, the XMLmind XML Editor is actually helping us maintain proper structure - we were trying to create structural junk and it will not let us.
What one has to do is the following:[105]
If you chose the Copy operation in step 6 above, you will now need to go back and delete that material.
Whenever you are inserting an element[16] and see that one possible element to add is comment, you can type in a comment. The comment will not appear in any output unless you overtly set the showcommentinoutput attribute of the lingPaper element to yes. (To set this attribute, click on lingPaper in the node path bar[48] and then use the Attributes Tool.[11])
Sections 11.17 and 11.18 discuss how to produce a PDF or Microsoft Word 2003 version of your XLingPaper document. While this does produce a nicely formatted PDF document and a form of a Microsoft Word 2003 document, you do not have any direct control over the formatting produced. This can especially be a problem if you wish to submit your document to a particular journal or publisher which has specific formatting requirements.
Beginning with version 2.0 of XLingPaper, this problem is alleviated by the use of publisher style sheets. The idea is that you can write your document using XLingPaper and then associate it with a particular publisher style sheet. Once your document has been associated with such a style sheet, whenever you produce output, the formatting will now conform to the associated style sheet. One implication of this is that as you write your document, you do not have to be thinking about the target format. Just use the normal XLingPaper elements and, when it is time to produce the output, associate the style sheet you need and produce the output. If you change your mind about where you want to submit your document, in theory all you have to do is associate (or re-associate) the document to the new style sheet.[106]
To associate your document to a publisher style sheet, do this:
Use the menu items XLingPaper / Associate a publisher style sheet.
This will bring up a dialog box like the one shown in (234).
Choose one (or navigate to where you know one is) and then click on the Open button.
The publisher style sheets themselves can be created and/or customized, but how to do that is outside the scope of this documentation. See the XLingPaper Publisher Style Sheet User Documentation if you need to create or modify a publisher style sheet.
If you do need to create or modify a publisher style sheet, please be sure to save the publisher style sheet file in a directory near your document. Do not directly make changes to the publisher style sheets included with XLingPaper. The reason is that the next time you update to a new version of XLingPaper, you will probably lose your changes.
If you have associated a publisher style sheet with your document (see section 11.25), how can you remove or "un-associate" it from a style sheet?
To remove an associated publisher style sheet from your document, use the menu items XLingPaper / Remove (unassociate) a publisher style sheet. Note that this will not delete the associated publisher style sheet from your disk drive. It will only remove the association of that publisher style sheet to your current document.
If you are using version 4.0.0 or higher of the XMLmind XML Editor, then all font information should show properly in the XMLmind XML Editor. Whenever you change the font information, however, you will either need to reload your file into the XMLmind XML Editor or you will need to do a “Redraw” command before the changes will show in theXMLmind XML Editor. To do a “Redraw” command, use View menu item / Redraw Ctrl+L.[107] Please be aware that the "Redraw” command will close all opened sections (i.e. when the "Redraw” command finishes, the window iin the XMLmind XML Editor will look just like it does when you first open the file).
Some users have complained about the default language identifiers that come with XLingPaper. These users almost always work in one vernacular language and one gloss language. They would like to use identifiers that reflect the names of these languages rather than the default generic ones of lVernacular and lGloss.[108]
There is a way to do this, but it comes with a warning and therefore this is not a suggested thing that every user should do. The main warning is that the change is only temporary. The next time you install an updated set of XLingPaper configuration files, you will have to make the change again.
So, if you really want to do this, follow these steps while running the XMLmind XML Editor.
After you click on the OK button for the fourth dialog box, this command will change the default attributes in the key XLingPaper configuration files. If you decide to set the defaults back, you can run this command again, being sure to use your new values for the current (old) items and the original items for the new ones.
Note that you will need to restart the XMLmind XML Editor again in order for your changes to take effect.
Most elements (including the top-level lingPaper one itself) have an attribute called xml:lang. This is primarily for archival purposes. You can use this attribute to fill in the language code of the content of that element. See ISO 639 codes for more information. The intention behind including the top-level lingPaper is as a short-hand way to indicate that the text in this document is in the language specified by the xml:lang unless indicated otherwise.
After you or a colleague produces a PDF file, you may well want to be able to add comments to it. Typically, such comments would be to make suggestions on wording or presentation or formatting.
How can one do this with XLingPaper? There are at least two ways:
For those whose working style includes writing a paper before presenting it, you may be wondering how to create a handout once the paper is written as an XLingPaper document.
Here is one way:
An alternative method is to do the above but at the point of cutting out material, leave what you know you will need as notes to yourself for doing the presentation. You can even add material if need be. After saving this version, make a copy of it and cut out your notes so that all that is left is what you want your listeners to have.
Sometimes one needs to create a poster session presentation for a paper.
Here is one way:
Note that this produces regular sized pages, but the content will be magnified by a factor of 1.5. If you need the material to be larger, you can edit the publisher style sheet and change the magnification factor item under Document Content Layout. Since the text size is larger, you may well need to adjust interlinear examples and tables to make them fit. (For more on publisher style sheets, click here to see the documentation.)
Sometimes a referenced work will have a very long web page address (URL). These will often not format well in the PDF output. There is a way to insert some special characters in the url element to allow the PDF formatters to break the line. The character to use is Unicode character U+200B ‘Zero width space.’ As you can probably infer from the name of this character, it acts like a space, but does not take up any horizontal width. Therefore the PDF formatters can break the line wherever one of these zero width spaces occurs and yet there will not be a normal space (which is just what one would want). The main drawback to using this special Unicode character is that you cannot see it (because it does not take any horizontal width)!
To enter this special zero width space character in the XMLmind XML Editor, do this:
Please note that you do *not* want to insert any of these zero width spaces in the href attribute of a link element. The resulting hyperlink will not work correctly.
Sometimes a table or other material will fit better on a page that is in landscape mode instead of the default portrait mode. One can do this by enclosing the material within a landscape element. One way to enclose such material is to select it and then use the Convert [wrap] capability of the XMLmind XML Editor and choose landscape. You can do a "Convert [Wrap]" operation via Edit / Convert [wrap], pressing Ctrl-Shift-T, or by clicking on the convert [wrap] icon in the Edit tool.[3]
Please note that this material will start a new page in the output. Also, using the landscape element within an index does not work with the default XeLaTeX way of producing PDF.
If you discover that you want to go back to portrait mode, do the following steps:
Most major elements (such as chapter, part, appendix, section1, section2, etc.) and most front matter and back matter elements have an attribute called showinlandscapemode. If it is set to yes, then the default way of producing PDF via XeLaTeX will make that element (and all its sub-elements) appear in landscape mode.
To make an entire document be in landscape mode, create a publisher style sheet that has the page height and width dimensions for landscape and then associate that publisher style sheet to the document. See section 11.25 for more or click here to see the documentation on publisher style sheets.
Sometimes while working on a document, you discover that you have glossed a particular item (using abbrRef elements; see section 4.6) and that you used the wrong abbreviation for the gloss. How do you go back and change them?
Here is one way:
If you need to change many of these abbrRef elements, then you can save yourself some time and work by making a keyboard macro. Do these steps (remember that you need to release the Esc key after pressing it in all of these before you press the next key):
To run the macro, type Esc-p (I think the m above is for "macro" and the p here is for "play" - as in "play the macro"). My experience in using macros in the XMLmind XML Editor says that they only work if you do every step using the keyboard. If you use the mouse for any of it, it will not play back.
Sometimes one may have an XLingPaper document that uses certain language IDs for some langData and/or gloss elements that are not what you want. This might happen in some instances, for example, when exporting text from a program like FieldWorks Language Explorer. The language ID may be similar to what you want, but not precisely the same. Having to go through such a document and change the IDs one-by-one would be a lot of work.
If you find that you need to do this, follow these steps while running the XMLmind XML Editor.
After you click on the OK button for the fourth dialog box, this command will find every langData element whose lang is set the old language ID and change it to the new value. Similarly, it will find every gloss element whose lang attribute is set the old gloss ID and change it to the new one.
Please note that if there are any language elements whose id attribute has the old value (whether for langData or for gloss), this command will also change that id attribute to the new value.
There are two possible ways to key a special symbol. Possibly the easiest way is to do this:
The second way to key such a special symbol is to use the XMLmind XML Editor's Character Tool.[110] Look for your character in the list and click on it.
The default user interface for both the XMLmind XML Editor and XLingPaper is in English. There also are versions in French and Spanish. (If you notice any error in these versions, please let us know.)
To use one of these non-English versions of the user interface, do the following steps:
You should now see the menu items using the language you chose.
Please note that these non-English versions are for the user interface only. The element names, attribute names, and some of the validity messages will still be in English. Also the user documentation files are only in English.
The default way of producing PDF, XeLaTeX, comes with a number of special algorithms for automatically hyphenating running text in the PDF output. The default algorithm is for English.
To use one of these non-English algorithms for hyphenation, look in the chart in appendix C and find the language you are writing your document in. Set the xml:lang attribute of the lingPaper element to either the two letter or the three letter code of that language.
Please note that if the first version of XLingPaper you got is older than version 2.18.0, then you will need to get a special updated version of the XeLaTeX package used by XLingPaper. See http://www.xlingpaper.org/?page_id=4#XeLaTeXUpgrade for more. If you do not have this update, trying to produce the PDF will fail when you also try to use hyphenation for a non-English language.
Also, if you find that you need to have XeLaTeX hyphenate some words differently than what the algorithm does, you can create a custom XML file containing these words. The format of this file should be as shown in example (236).
(236) |
|
Where example (236) has the ellipsis, put your exceptional words. You can enter a regular hyphen character to indicate where the hyphenation should occur. Be sure to save this file in UTF-8 format.
If any of your words have a character that is normally considered to be punctuation (such as an apostrophe or closing single quote), then add these in this file as shown in example (237).
(237) |
|
One other thing to note about how XeLaTeX hyphenates: If a word has an orthographic hyphen in the middle of it, XeLaTeX will not hyphenate the word, no matter how far it goes into the margin. To overcome this, insert a ‘zero-width space’ character between the hyphen and the next letter to make XeLaTeX hyphenate it. See section 11.40 on how to insert a ‘zero-width space’ character.
Finally, make sure you have a language element whose id attribute is the same as the two or three letter code you used in the xml:lang attribute of the lingPaper element. Then set the hyphenationExceptionsFile attribute of that language element to the location of your hyphenation exceptions file; we suggest you use the “Browse Files...” button of the Attributes tool.[111]
The default way of producing PDF, XeLaTeX, will normally use extra wide spacing (sentence-spacing) after a period followed by a space. This produces the correct output in the vast majority of cases. Sometimes, however, when there is an abbreviation, you do not want to have this extra wide spacing. You want the normal spacing used between words (word-spacing).
There are actually three cases where this can be an issue:
For these relatively rare cases, you can make the output do what you want by inserting a special zero width character after the period and before the following space. Example (238) delineates which special character to use for each case.
(238) |
|
Here are the steps needed:
Please note that if you inadvertently insert two or more of these zero width characters, the output will come out in its default mode (i.e., it will not have the change you want). Be sure to only insert one of these zero width characters. You can always delete the characters there until you can see that no extra ones are present and then insert them again.
One final note: many, if not most, manuals of style will say that you should key a comma after the abbreviations i.e. and e.g.. This makes good sense because if you were to use the English equivalents of these abbreviations, chances are that you would use a comma after them. This means that for these two common abbreviations, if you use a comma after them, you will not need to do anything special. The XeLaTeX output will come out the way it should automatically.
Sometimes while typing prose material in a paragraph, say, you want to include some language data. One way to do this is:
The lang attribute of the newly created langData element will be set to lVernacular. If this is not the language ID you want, you can immediately type the F11 key on your keyboard (or use menu items XLingPaper / Set Reference) and then choose the language ID you want.
Sometimes while typing prose material in a paragraph, say, you want to insert a gloss. One way to do this is:
The lang attribute of the newly created gloss element will be set to lGloss. If this is not the language ID you want, you can immediately type the F11 key on your keyboard (or use menu items XLingPaper / Set Reference) and then choose the language ID you want.
In section 1.2, I mentioned that you can use the XMLmind XML Editor to produce a file in EPUB format for your document. This can be done for both papers and for books. How does one do it?
First, you need to install the (free) Calibre program on your computer. Go to http://calibre-ebook.com/ and download the version appropriate for your computer. When you run the installer or the first time you run Calibre, the welcome wizard will run. Very Important: You must use the default location for storing your books in the Calibre Library. If you use some other location, XLingPaper will not be able to find it and thus will not succeed in producing the EBook for you. Also, you may find that the EBook fails to be produced if the file name is long. Try to keep the name under 24 characters.
For users of XLingPaper on Mac OS X computers, you must also do another step before XLingPaper will know that you have installed Calibre. When you have Calibre running, use Preferences / Advanced / Miscellaneous and click on install command line tools.
Second, this process only works when you have associated a publisher style sheet with your file. See section 11.25.
Finally, use the menu items XLingPaper / Produce EBook (in EPUB format) Ctrl+Shift+F7.[112] This first tries to tell if you have installed Calibre. If so, it then starts a four step process to convert your document into an EBook in EPUB format. It may take quite a while depending on the size of your document. It will produce a file with the same name as your XLingPaper document file, but with an extension of epub. This new file is in the same directory as your XLingPaper document. When it is done processing, there should be an audible beep and then XLingPaper will try and load the newly created EBook into Calibre's EBook viewer program.
If you wish to try and convert the resulting EPUB file to some other EBook format (such as MOBI for the Kindle), you can use the Convert Books capability of Calibre. Please note, however, that the MOBI format is rather limited in what it can do so complicated tables and interlinears do not come out well.
If you note any odd results or errors, please send an email message to support@xlingpaper.org.
When it comes time to actually produce a final PDF of a book or a thesis or a dissertation, how does one deal with the specific, custom pages that a given publisher or school requires to be at the beginning? We're talking about copyright pages, a thesis/dissertation approval page, etc., etc.
Since it seems like each publisher and each institution tend to have their own, custom requirements on what needs to go on each page and where, XLingPaper does not attempt to model these custom front matter pages. Rather, I suggest that you create these (custom) pages via a word processing program like Open Office Writer or Microsoft Word. Then save or print the output as a PDF file.
Next, use a PDF tool that allows you to combine two or more PDF files into one. Example (239) lists some tools that will do this.
(239) |
|
The basic idea is to merge the two PDF files. In general, start with the XLingPaper-produced PDF file first. This is most likely to preserve the hyperlinks in the merged PDF document.
Some of these allow you to insert one file before or after another. In those cases, load the XLingPaper PDF first and then insert the front matter before it. This will probably preserve the hyperlinks in the document.
Since a given XLingPaper document may contain the main document plus a number of “referenced” (or embedded) documents as well as refer to any number of image files, making sure you have a backup of all the relevant files for a given document can be difficult. It also can be difficult to make sure you have all the needed files if you wish to share your document with someone else. You can now ask XLingPaper to create a zip file for you that has all these files in it.
This also can be useful for archving.
To do so, follow these steps:
Please note that if any of the files involved in your document are in directories above the directory where your main document is, the zip file will adjust so that the highest level directory is at the top and all other files will be in their respective directories.
If you are sending this file to XLingPaper support, please do one of two things:
If you are using the XMLmind XML Editor with the XLingPaper configuration files on a computer with a rather small screen, the long list of XLingPaper menu items may not all fit on your computer's screen. While some operating systems provide a way to still see the missing items, some do not. If you find yourself in this situation, then do this:
Please note that you will need to do this every time you install a new version of XLingPaper. The installer does not remember the option you had.
If you find that you do not like the shorter version for some reason, you can re-instate the longer version. Follow the steps above except use the command “UseLongerMenus” instead of “UseShorterMenus”.
It is not unusual for an author to write a paper and then later want to include that paper (or a revision of it) as a chapter in a book. This often happens when a student is working on a thesis or a dissertation: papers written earlier for classes may well work as part of a thesis or dissertation.
If one has used XLingPaper to write such a paper, one may want to convert that paper to a chapter so one can include it in the thesis or dissertation XLingPaper book document. To do so, follow these steps:
You can then copy the chapter element from that new document into the appropriate location in the thesis or dissertation book document you are making.
When you use the FieldWorks Language Explorer program (which is also known as FLEx) to export an interlinear text to XLingPaper format, it may include any number of object elements whose type attribute is set to tHomographNumber. While this homograph number is quite useful in FLEx, it may not be appropriate for the interlinear text or examples you need in your XLingPaper document. You can have XLingPaper remove these by using the FLExExportRemoveHomographNumbers command.
To do so, follow these steps:
Sometimes you may want to find all instances of an element scattered throughout your XLingPaper document. For example, if you or a colleague enter comment elements in various places, you may want to be able to find them all without having to open up each section and look for them.
Here is a way you can do that:
Sometimes you realize that some material you have written in a paragraph, say, should really be within an endnote element. One way to do this is:
Please note two things:
If you have an extremely large XLingPaper document, it may take a long time to load into the XMLmind XML Editor program (and may take a long time to overtly save the file, too). One reason for this is that we normally try and do extra
validation checks to help you know when there might be a problem or inconsistency with the document (see section 11.15). When XLingPaper finds a problem with one of these extra validation checks, you may see the symbol show up in the lower left corner of the program's window. Unfortunately, on very large documents, these checks can
take a very long time to perform.
To avoid this check, we now offer you a way to not have these extra checks be performed. Please note that while your document will load (and save) much more quickly, you may run into problems when trying to produce PDF output. That is because these validation checks would have told you that there was something amiss in the document and that it might not be able to produce PDF as a result.
To disable these extra checks, insert a validation element at the end of the document (if you have associated a publisher style sheet, insert this element by clicking on the element just before the publisher style sheet and do an “Insert After” command). Click on the “minimum” option. To enable the checks again, click on the “maximum” option..
Sometimes you have an interlinear example which you realize would be better displayed as part of a list interlinear example (or maybe the other way around). How can you make such a conversion? The answer involves using a special keyboard command which selects all the child elements of the interlinear (or listInterlinear). Here are the steps:
You should now have the contents of the source item in the target item.
If you have an existing table in a file created via a word processing program like Microsoft Word, a spreadsheet program like Excel, or in a web page, you may be able to copy it, run an XLingPaper special command, and then paste a draft form of the table into XLingPaper. The result is very unlikely to be perfect, but it may save you the trouble of having to rekey the table completely by hand.
In particular, the following will probably not come through correctly:
To use this process, follow these steps:
You should now have an XLingPaper version of the table.
Another thing to note is that sometimes this process leaves a temporary file in the same directory where your document is. The name of this file will be “XLingPaperTempTable.html” and will have the raw data from the original copy. You may not be able to delete it until after you close the XMLmind XML Editor program.[114]
This section outlines some ways that one can be more productive while using the XMLmind XML Editor.
To delete an element, you can click on its name in the node path bar[48] and then type Ctrl+k. Instead of clicking the node path bar, you can also keep typing the Ctrl+UpArrow key until the element has been selected (it will have a thin red line around it).
Sometimes you type in some text and then remember that you want to make it be within some other element, like an object element. One way to avoid retyping is to select the text and then do a Convert operation on it:
You can also use the keyboard shortcut of Ctrl+T instead of doing the right-click. There also is a button on the Edit Tool for this:
If, on the other hand, you have both text and elements that you want to convert to some element (for example, you want to insert text and an object element into another object element), then you should use the Convert[Wrap] operation on it:
You can also use the keyboard shortcut of Ctrl+Shift+T instead of doing the right-click. There also is a button on the Edit Tool for this:
Remember to look at the node path bar[48] to see what is actually selected. This can help you make sure you are actually selecting the element you think you are.
You have already seen how you can right-click and select to insert before, insert, or insert after.
One way to become more productive is to learn the keyboard shortcuts for these operations. How I remember them is as follows:
You have already seen how you can right-click and select to paste before, paste, or paste after.
One way to become more productive is to learn the keyboard shortcuts for these operations. How I remember them is as follows:
Sometimes you want to perform a right-click operation. You can do this either by moving the mouse or just by pressing the F12 key at the point where you are. Sometimes using this key can be more efficient.[115]
When you see a little red flashing triangle on the left edge of some section, it indicates that the cursor is inside. It might look like this (where the big black arrow points to it):
When you open this section, then you can find the cursor (although it may be inside a sub-section in which case the little red flashing triangle will be by that sub-section).
Sometimes you may start to insert a new element and then realize that this is not what you want to do. You can cancel this operation by pressing the Esc key.
Whenever you want to insert an element that has a reference to some other element, normally you do two steps: insert the element and then press F11 to set the reference. You can now do both steps at once by using the Insert and then Set Reference command. This is found in the XLingPaper / Insert and then Set Reference menu item or by pressing the Shift+F11 keys together. When you do this, it first opens up a dialog box listing the possible elements that have references as shown in (240). (Note that if it is not possible to insert a reference at the location where you are, no dialog box will show.)
You can then type the name of the element you want to insert (or press the Esc key to cancel). As soon as you press the Enter key, that element will be inserted and the dialog box for choosing a reference for that element will show. Which dialog box appears depends on which element you chose. This second dialog box is exactly the same one you see when you have inserted that element by hand and then press the F11 key.
XLingPaper also offers a variation of this command. It allows you to insert and then set the reference for two consecutive reference elements and automatically inserts an n-dash character between the two. It also formats the two items as one might need for such a range. This variation is found in the XLingPaper / Insert and then Set Reference Range menu item or by pressing the Ctrl+Alt+Shift+F11 keys together, all at the same time. When you do this, it first opens up a dialog box listing the possible elements that have references that can occur in a range as shown in (241). (Note that if it is not possible to insert a reference at the location where you are, no dialog box will show.)
You can then type the name of the two consecutive elements you want to insert (or press the Esc key to cancel). As soon as you press the Enter key, the first instance of that element will be inserted and the dialog box for choosing a reference for that element will show. Which dialog box appears depends on which element you chose. This second dialog box is exactly the same one you see when you have inserted that element by hand and then press the F11 key. After you select the item, you will see another instance of that same dialog box. This is for the second element in the range. XLingPaper will automatically insert an n-dash character between the two elements and will attempt to set all the attribute values of the two elements in the most likely way you want. For example, if you use this approach to enter two exampleRef elements, the first exampleRef element will have its paren attribute set to initial. The second exampleRef element will have its paren attribute set to final and its letterOnly attribute set to yes.
As mentioned in section 4.5.12, there is a command that lets you jump from where you are to the references section, including letting you select which work you want to edit or see. XLingPaper will remember the location of where you are working right now and then jump you to the refWork that you selected.
After you do whatever it is you need to do in the references, you can return to where you were when you jumped to the references section. You return by using the XMLmind XML Editor's Search / Bookmark / Go to Last Visited or Go Back menu item command.[26]
Use this command and the ability to jump back to where you were whenever you discover you need to add new reference information.
When your document is ready for publication, sometimes one needs to include a blurb containing particulars about the publication and also sometimes one needs to include contact information for the authors. In addition, one might want to add keywords metadata. One includes this kind of information via the optional publishingInfo element. To insert a publishingInfo element, click on the last element before any publisher style sheet (usually the types element) and do an Insert After command.[16]
The publishingInfo element has the optional attributes shown in example (242) and three optional parts: the blurb, author contacts, and keywords.
(242) |
The optional publishingBlurb element can be used to indicate the particulars of a publication, such as the particular issue of journal a paper is a part of, copyright notice, links to online versions of the paper, etc. The content of a publishingBlurb element is plain text and any of the embedded elements.[22] When you need multiple lines in the blurb, separate each part by a br element.
Some publications include more than merely an author's name and affiliation. They want to show the author's contact information, including things like full name (perhaps including degree initials, professor title, etc.), mail address, phone number, and/or a web site or other electronic contact information.
Like references, the authorContacts element can be used for multiple XLingPaper documents. (See section 11.8 for how to do this, but use "Author Contacts” instead of "References”.) It contains one or more authorContact elements. Each authorContact element can contain any combination of one or more of the elements given in (243). In addition, it has a required id attribute.[14]
(243) |
All of the elements listed in (243) contain plain text plus any embedded elements,[22] except contactEmail (which uses just plain text).
The contactElectronic element also has a show attribute. When it is set to no, the content of the contactElectronic element will not be included in the output. When it is set to yes (which is the default), the content of the contactElectronic element will be included in the output.
The optional keywords element can be used to include keyword phrases that will be included in the metadata for this document. Inside of this you can have one or more keyword elements.
This is for information only. XLingPaper never outputs or processes the content of keyword elements. It only shows up in the metadata embedded in the output file.
When writing a text book or perhaps when providing certain kinds of documentation, you may want to set off some material within a frame. For example, in a text book you may want to show what a sample write-up for a given topic might look like, including one or more examples along with a prose description. For such things, one wants to have a line around some indented material and maybe even have a special background color to set it off from the rest of the text material.
Given that an author may want to have many instances of these kinds of special displays and that the indents and background color should be the same for displays of the same kind, XLingPaper provides three elements for handling framed units.
The first element, framedTypes, is a container for the second kind of element, framedType. This is just like the types element is a container for individual type elements (see section 10.1 for more on type elements). To insert a framedTypes element, click on the last element before any publisher style sheet (usually the types element) and do an Insert After command.[16]
Each framedType element lets you define the indents and background color formatting for a given type of a framed unit. The attributes you can set for a framedType are given in the table in (244).
(244) |
|
The third element is framedUnit. You use this element to surround or embed the set of other elements you need to be in the offset portion. In addition, you set its framedType attribute to refer to the framedType element that has the formatting you need for this framed unit. If the framed unit contains any example, figure, or tablenumbered elements, these elements will be numbered independently from the other example, figure, or tablenumbered elements elsewhere in the document that are not within the current framedUnit element.
The framedUnit element also has three other attributes as shown in the table in (245).
(245) |
|
To create a framed unit, do one of two things:
Also please note that for the default way of producing PDF (via XeLaTeX), you will need to have initially installed XLingPaper before October 2012 or you will need to get and install the XeLaTeX Upgrade package. See http://www.xlingpaper.org/?page_id=4#XeLaTeXUpgrade.
There are times when one may wish to have certain “chunks” of material excluded for a particular output of a given document. Other times, one will want to include these “chunks” of material for a different output. Ideally, one would not want to have to create two separate documents - one with the excluded material and one without.
Now XLingPaper has a way to control which “chunks” of material, if any, should be excluded within a single document when producing an output. The basic idea is to tag any “chunk” material that might need to be excluded for some output with a particular content “type” that you have defined. Then you define a set of content choices where each choice indicates zero, one, or more of these content types. When you are ready to produce an output for the document, you select the choice that excludes the type(s) you want and the resulting output will have all material in the document except those “chunks” with the type(s) of that choice.
As an example, suppose you have a grammar for a minority language which includes some pedagogically-oriented material usually in the introduction of many sections and you also have some examples showing what the national language does. You may want four outputs for this depending on the intended audience: one with everything, one without the introductory material, one without the national language comparative examples, and one with neither the introductory material nor the national language comparative examples.
To make this happen, one would first create a contentControl element. To insert a contentControl element, click on the last element before any publisher style sheet (usually the types element) and do an Insert After command.[16] Select contentControl. This will look something like this:
When you click on the plus sign to open it, it will look like this:
Notice that there are two parts: Content types and Content control choices. The types section is where you can define one or more types. Each type has an id attribute which must be unique. We suggest you begin all contentType ids with “ct”. For our example, we will want two types: one for introductory material and one for national language comparative material. We could make it look like this:
Next, we would want to create the various output control choices. Each contentControlChoice element has a label and also an exclude attribute. The exclude attribute is used to set zero, one or more of the contentType ids. For our example, we might make it look like this:
The first one would leave the exclude attribute empty. The second would set it to ctIntro. The third would set it to ctComparative. The final would set the exclude attribute to be “ctIntro ctComparative”.
Having defined the content types and content choices, we now would need to work our way through our document and find each “chunk” of material that might need to be excluded. For example, there may be a p element at the beginning of a section that needs to be marked as being introductory material. We click in the p element (and perhaps even on the “p” in the node path bar[48]). If we then press the F11 key on the keyboard (or use menu items XLingPaper / Set Reference F11 or if we right-click on it and choose Set Reference), a dialog box will pop up that lists all the content types we defined. We can then select one (ctIntro in this case). We would do something similar for the national language comparative examples (click on the example element and then use the Set Reference tool to select ctComparative).
The complete list of elements which can be tagged with a content type id is given in example (250).
(250) |
|
Please note that there could be a problem if you exclude an example, say, but have an exampleRef element that refers to the excluded example and that exampleRef is not also in some material (like a p) that is also excluded. Since the example will not be in the output, the exampleRef will not be able to refer to it properly. Thus, in the output, it will be incorrect. We check for these kinds of potential problems and attempt to report them in the Validity tool.[116]
When we are ready to produce an output, we would click on the radio button of the choice we wanted. If that was to exclude the introductory material, then it would look like this:
Finally, you may sometimes want the “chunks” to show in the XMLmind XML Editor for all possible content types and sometimes you may not. You control this by setting the showOnlyChosenItemsInEditor attribute of the contentControl element. If you want only the chosen “chunks” to show (that is, only those “chunk” elements which are not excluded by the currently selected content control choice), set this attribute's value to yes. Otherwise, set it to no (which is the default).
On some occasions, one may want to place certain material within a hanging indent paragraph. To do so, use a hangingIndent element. These can be used anywhere a “chunk” element can be used.[12]
Due to a bug in the XMLmind XML Editor, we cannot show hangingIndent elements with the hanging indent. The output, however, will have the correct format. Since we cannot show the correct hanging indent in the XMLmind XML Editor, we use a small icon at the beginning of each hangingIndent element as shown in example (252) to try and distinguish a hangingIndent paragraph from a regular paragraph. (The hope is that the icon suggests that the first line is longer than the other lines.)
The default is for the first line to be at the left edge and for all other lines to be indented 1em. You can change this by using the hangingIndentInitialIndent and hangingIndentNormalIndent elements of a publisher style sheet (see section 11.25 for more on publisher style sheets). Naturally, you will have to associate your document with your publisher style sheet to make this take effect.
Another way to change the indent values is to set either of the special attributes of a hangingIndent element shown in example (253).
(253) |
|
When you set either one of these attributes for a given hangingIndent element, the value(s) will be used for the hanging indent paragraph. In particular, if you have an associated publisher style sheet that has the hanging indent elements above set, setting either attribute shown in example (253) will override the values of the publisher style sheet.
If you are using XLingPaper to produce a volume which contains a collection of papers, normally each such paper is a chapter in the resulting volume. Each such chapter will certainly have its unique set of authors and in addition may have its own front and/or back matter. To deal with this situation, XLingPaper offers a document whose major pieces are chapterInCollection elements instead of chapter elements.
The editor(s) of such a volume can use the File / New menu item and choose the “Book (Collection of chapters authored by different authors)” option. This will be the collection document.
Each contributing set of author(s) can use the “Paper (Section-oriented)” XLingPaper kind of document for what will become their chapter in the volume. When their work is complete, they can submit the XLingPaper file(s) to the editor(s). The editor(s) can then convert each such submitted paper to a “chapter in a collection” document by using the Tools / Execute Command,[113] typing “PaperToChapterInCollection” in the “Command” box, and pressing “OK”. This will create and open a new XLingPaper document with the same name as the paper document but with the addition of “AsChapterInCollection” at the end of the file name proper. This new document will also be automatically loaded into the XMLmind XML Editor. The editor(s) can then copy the chapterInCollection element from that new document into the appropriate location in the collection volume document they are making.
Note that the main difference between a chapter element and a chapterInCollection element is that the chapterInCollection element can have front matter and back matter embedded within it. For the non-appendix back matter, it is up to the collection volume editor(s) as to whether each chapter in the volume should have its own set of glossaries (e.g., list of abbreviations), references, and endnotes (should the editors choose to use endnotes) or if there should be a common set of glossaries, references, and endnotes for the entire volume. Both options are possible with XLingPaper.
The editors will probably need to combine abbreviations and references used by contributing authors into a common set or they may want to provide authors with a starting set to use. There will be a similar need for dealing with language and type elements.
Finally, editors can create a publisher style sheet for the collection volume. They should make use of the chapterInCollectionLayout, chapterInCollectionFrontMatterLayout, and chapterInCollectionBackMatterLayout elements to control how the content of the chapter is to be formatted. See the documentation in XLingPaper Publisher Style Sheet User Documentation.
This appendix lists the various elements available with XLingPaper and briefly explains their usage. They are listed in alphabetical order. See appendix B for elements one can use in defining a publisher style sheet.
This appendix lists the various elements available for an XLingPaper publisher style sheet and briefly explains their usage. They are listed in alphabetical order. See the XLingPaper Publisher Style Sheet User Documentation for more.
As mentioned in section 11.39, In order to have the default way of producing PDF hyphenate the running text in a non-English way, you need to know the language code to use. The following table lists the languages and their codes that are supposed to work.
Language Name | Two letter code | Three letter code |
---|---|---|
Albanian | sq | sqi |
Amharic | am | amh |
Arabic | ar | ara |
Asturian | ast | |
Basque | eu | eus |
Bengali | bn | ben |
Bulgarian | bg | bul |
Catalan | ca | cat |
Coptic | cop | |
Croatian | hr | hrv |
Czech | cs | ces |
Danish | da | dan |
Dutch | nl | nld |
English | en | eng |
Esperanto | eo | epo |
Estonian | et | est |
Farsi | fa | fas |
Finnish | fi | fin |
French | fr | fra |
Galician | gl | glg |
German | de | deu |
Greek | el | ell |
Hebrew | he | heb |
Hindi | hi | hin |
Hungarian | hu | hun |
Icelandic | is | isl |
Indonesian | id | ind |
Interlingua | ia | ina |
Irish | ga | gle |
Italian | it | ita |
Lao | lo | lao |
Latin | la | lat |
Latvian | lv | lav |
Lithuanian | lt | lit |
Lower Sorbian | dsb | |
Malay | ms | msa |
Malayalam | ml | mal |
Marathi | mr | mar |
Nynorsk | nn | nno |
Occitan | oc | oci |
Polish | pl | pol |
Portuges | pt | por |
Romanian | ro | ron |
Russian | ru | rus |
Sanskrit | sa | san |
Scottish | gd | gla |
Serbian | sr | srp |
Slovak | sk | slk |
Slovenian | sl | slv |
Spanish | es | spa |
Swedish | sv | swe |
Syriac | syr | |
Tamil | ta | tam |
Telugu | te | tel |
Thai | th | tha |
Turkish | tr | tur |
Turkmen | tk | tuk |
Ukrainian | uk | ukr |
Urdu | ur | urd |
Upper Sorbian | hsb | |
Vietnamese | vi | vie |
Welsh | cy | cym |
Endnotes
[1] |
See http://www.xmlmind.com/xmleditor/ for current information on this editor. For XLingPaper, however, we use an older version of the XMLmind XML Editor. See http://www.xlingpaper.org/?page_id=51 for how to obtain it. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[2] |
Some versions of the Keyman program prevent this sequence from working. You may need to turn Keyman off temporarily to get the sequence to work. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[3] |
The Edit Tool is located in the upper right hand corner and looks something like this:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[4] |
You may have to set some options to get it to happen this way. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[5] |
Since Macs do not have an Insert key, you have to use F1 on Macs. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[6] |
See section 12 for more ways to be productive with the XMLmind XML Editor. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[7] |
The Swatches tab shows “swatches” of color tiles. The HSB tab allows you set a color via its Hue, Saturation, and Brightness. The RGB tab, allows you set a color via its Red, Green, and Blue values. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[8] |
My experience in using the default XeLaTeX way of producing PDF is that one does not usually need to use these very often. Currently there is a limited set of these attributes.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[9] |
My experience in using the RenderX XEP way of producing PDF is that one does not usually need to use these very often. Since these are actually part of a typesetting package, the list of attributes is long and a bit complicated, given that not every attribute is appropriate for every situation. Nonetheless, here are some that may prove useful to you in certain situations.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[10] |
Technically, any sequence of “embedded” elements may occur in a section title. See [22]. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[11] |
Remember that in the XMLmind XML Editor, you can see the attributes of an element in the Attributes tool which is located on the lower right corner. You may have
to click on the Attributes tool tab |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[12] |
The "chunk" elements are: p, pc, hangingIndent, example, table, tablenumbered, chart, figure, tree, blockquote, ol, ul, dl, prose-text and interlinear-text. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[13] |
Technically, any sequence of “embedded” elements may occur in a section title. See [22]. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[14] |
I suggest that you use a unique prefix letter for each kind of id. That way, when you are keying a reference to that kind of element using a tool that shows all of the id values in a list, you can more easily find the possible list of ids (they will all be together since they all begin with the same letter). Here are some suggested initial letters you can use:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[15] |
In fact, the XMLmind XML Editor will not let you enter spaces and then leave the area where you are typing the unique name. You will hear a “beep” indicating an error. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[16] |
See section 1.2.3 for how to insert an element. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[17] |
Beginning with version 3.5 of the XMLmind XML Editor, this list sorts by section number. Unfortunately, it is treating numbers as letters so “10” sorts just after “1” instead of just after “9”. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[18] |
Remember from section 1.2.3 that when you insert an element while typing, you will probably need to type the Insert key to continue typing (on Macs, use F1). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[19] |
An XLingPaper style sheet for a particular publisher can be set to override any of these settings with the § symbol. So if you find that a publisher requires this symbol, you will only need to use a stylesheet for their requirements. See section 11.25 or click here to see the publisher style sheet documentation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[20] |
This does not work with the RenderX XEP way of producing PDF. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[21] |
In the webpage output, the number of the endnote will be the same as the endnote it references. In the PDF output, the number used depends on whether the endnote reference was made within an endnote or not. If the endnote reference was made within another endnote, the number of the endnote will be the same as the endnote it references. Otherwise, it will be the number you would expect for a regular endnote. In this latter case, the text of the endnote will refer to the original endnote. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[22] |
The "embedded" elements are: langData, gloss, exampleRef, sectionRef, appendixRef, citation, comment, object, br, endnote, endnoteRef, figureRef, tablenumberedRef, q, img, genericRef, genericTarget, interlinearRefCitation, link, indexedItem, indexedRangeBegin, indexedRangeEnd, abbrRef, and mediaObject. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[23] |
See sections 17.86 and 17.94 of the 15th edition of the Chicago Manual of Style or see sections 14.124 and 14.131 of the 16th edtion. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[24] |
A given XLingPaper publisher style sheet contains what the minimal number is. It is in the referencesLayout element, in its usecitationformatwhennumbereofsharedpaperis attribute. The default for publisher style sheets is 0 (which means that no collection or proceedings will use the citation format). The default for XLingPaper documents that do not have an associated publisher style sheet is 2. For more on publisher style sheets, see section 11.25 or click here to see the publisher style sheet documentation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[25] |
The Ctrl+Shift+F11 at the end is a reminder that can invoke this command merely by pressing the Ctrl, Shift, and F11 keys all at the same time (I do it by first holding down both the Ctrl and Shift keys and then pressing the F11 key). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[26] |
Some more recent versions of the XMLmind XML Editor do not automatically show this menu item. If this is the case for you, then please turn it on by using the Options / Preferences menu item and then in the General / Features portion, make sure that “Enable the Search|Bookmark Submenu” is checked. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[27] |
Which codes actually work may well depend on what languages the Java implementation on your machine has collating sequences for. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[28] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[29] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[30] |
Many of these are taken from Lucy Scribner Library (n.d). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[31] |
If you select the abbrInLang element in the node path bar,[48] and them immediately press the F11 key on your keyboard (or use menu items XLingPaper / Set Reference F11), a dialog box will pop up that lists all the language identifiers in your paper. You can then select the one that is correct for this abbreviation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[32] |
You can also do this in item elements within a morpheme-aligned interlinear when the type attribute is set to gls. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[33] |
The Ctrl+Shift+F10 at the end is a reminder that you can invoke this process merely by pressing the Ctrl, Shift and F10 keys at the same time. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[34] |
We use these since these are the delimiters proposed in the Leipzig glossing standard. See http://www.eva.mpg.de/lingua/resources/glossing-rules.php. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[35] |
This is intended to mean that if your list of abbreviations has “3” and “sg” as separate abbreviations, then the automatic method will find “3sg” as consisting of a sequence of two abbrRef elements: the first will refer to the “3” abbreviation and the second will refer to the “sg” abbreviation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[36] |
Note that if any term element in a master set has an embedded object element, then the containing document will need to have the appropriate type element referred to by the embedded object element. Similarly, if there is an embedded langData or gloss element, then the appropriate language element will need to be included in the containing document. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[37] |
Please note that this order is not good Spanish. It is for illustrative purposes only. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[38] |
For web page output, XLingPaper will not show the end range section if the end section is the same as the begin range section. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[39] |
The exact color you see will depend on the color of the lVernacular language element and the color of the lGloss language element. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[40] |
The data are from Marlo (2008:165). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[41] |
When using the XMLmind XML Editor, XLingPaper will automatically set the num and letter attributes to be the same value. You do not need to worry about maintaining them separately. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[42] |
The data are from Marlo (2008:181). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[43] |
See section 4.6 for more on using abbreviations. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[44] |
To make this automatic wrapping happen, you click on lingPaper in the node path bar[48] and then set the automaticallywrapinterlinears attribute to yes via the Attributes Tool.[11] |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[45] |
The Shift+F10 at the end is a reminder that you can invoke this process merely by pressing the Shift and F10 keys at the same time. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[46] |
For example, suppose you have abbreviation labels of 3 and pst (for 3rd person and past tense, respectively). You then could key a gloss like 3-sleep-pst. Later in step 4, these abbreviations will automatically be converted to their respective abbrRef elements. In our example, the “3” will be converted into the abbrRef corresponding to the abbreviation label “3” and the “pst” will be converted into the abbrRef corresponding to the abbreviation label “pst.” |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[47] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[48] |
Remember that the node path bar is located in the upper part of the window. The big black arrow is pointing to it in the screenshot below.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[49] |
This is a modified form of the interlinear described by Hughes, Bird, and Bow (2003). The modifications are the use of iword instead of word to avoid a conflict with XLingPap's word element and the addition of the morphset element to allow it show up nicely in the XMLmind XML Editor. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[50] |
Although, it might be possible to make it work in Microsoft Word 2003 with some appropriate macros and other work. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[51] |
I'm not sure why, but sometimes the keyboard shortcut for copy (Ctrl+c) does not work. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[52] |
The keyboard shortcut key for paste (Ctrl+v) should work here. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[53] |
It should be there already if you used the SIL FieldWorks Language Explorer program to export the interlinear text. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[54] |
The way to have the source appear after the free translation or on a line after the free translation is to use a publisher style sheet with the appropriate option set. See the publisher style sheet documentation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[55] |
When you insert elements within a table like this, you will probably see elements such as col, headerCol, headerRow, row, td,td, and tr listed in the Edit Tool[3]. I highly recommend that you do not use these while editing with the XMLmind XML Editor. While they will produce valid XLingPaper files, they will probably not look very nice in the XMLmind XML Editor. I highly recommend that you always use the menu items mentioned above. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[56] |
The little raised dot in the upper left corner of the table is a non-breaking space character. One way to key this is to use Esc-C (i.e. hit the Escape key and then a capital C) and, in the resulting dialog box, type nbsp and the Enter key.[57] My experience with tables containing borders suggests that using a non-breaking space is a way to get otherwise empty cells to still have a border around them. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[57] |
If you are using certain versions of the Keyman program, the dialog will not appear, just a capital C. You have to temporarily turn off the Keyman program to get this to work. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[58] |
There are two reasons why it is not recommended. First and foremost, from my research in producing the default way of producing PDF, typesetters argue strongly against using any vertical lines at all in a table. In fact, they (practically) insist on only having some horizontal lines and that, sparingly. When I saw this, I was surprised. But then I found some linguistic books containing tables and, sure enough, these books followed this way - only horizontal lines, if any. I understand that the motivation for this is to make the tables easy to read. The more “noise” there is, the harder it is for the reader to quickly see the pertinent data. The second reason is that it is relatively difficult to do, even for just the web page output. For example, here is a way to get started:
You should see that this table cell has a different kind of border. There are a number of possibilities for this "magic formula" - I just randomly chose one. I'm afraid I'll need to refer you to a reference web site and you'll have to play around to get what you want. (If this feels like being thrown into the deep end here, well, it's because it is...). See http://msdn.microsoft.com/en-us/library/ms531207%28VS.85%29.aspx, especially the Layout section. Notice that there are some possibilities for borders on the left, right, top, and bottom. These are to control the various sides of the cell. You can have more than one of these, but you'll need to be sure to follow the proper syntax to get them to work:
Each one has consists of the property name, a colon, a value, and a semi-colon. All of these will go in the cssSpecial attribute of your type element. To repeat what was said above: I do not recommend pursuing this way of using lines in tables. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[59] |
The align attribute on a table element will work for both web page output and the default way of producing PDF. It will not work for the RenderX XEP way of producing PDF; this is because the RenderX XEP tool does not implement any way to do anything but left align a table. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[60] |
There is a long list of color names you can use. See http://coloreminder.com/ for a listing. Be sure to click on the “Colors and Names” button. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[61] |
If you find that you need a chart (such as a line chart, pie chart, etc.) based on some data you have, some users have found ChartBuilder (http://quartz.github.io/Chartbuilder/) to be helpful. In my experience with it, though, it only works with Google Chrome and Safari browsers. Internet Explorer and FireFox do not work. You may also find the comments on https://github.com/Quartz/Chartbuilder/issues/107 to be helpful. Another possible tool is Pygal (http://pygal.org/). While it is powerful and produces amazing SVG graphs, it can be a challenge to install and use for the non-computer programmer. It also requires you to have Python installed. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[62] |
With the XeLaTeX default way of producing PDF, if you have many consecutive examples containing a hangingIndent within a chart, you may see large gaps in places in the PDF. To fix this, insert a paragraph (p element) after one of the examples and have it contain just a non-breaking space (see section 11.13). This can improve the page layout. I am not sure why this happens, but at least we can offer this workaround. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[63] |
Image files can be produced using tools such as Paint and Visio, among others. Use formats such as JPEG File Interchange Format (*.jpg or *.jpeg files), Graphics Interchange Format (*.gif files) or Portable Network Graphics (*.png files). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[64] |
One way to key this is to use Esc-C (i.e. hit the Escape key and then a capital C) and, in the resulting dialog box, type nbsp and the Enter key.[57] |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[65] |
My assumption is that the goal is to save paper so they want the float to appear wherever it least affects the total number of pages of the document. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[66] |
At least with hyper-linked documents, one can follow the reference link to the figure or table. But once it is printed on paper, that advantage goes away. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[67] |
The reason is that the process that produces Word (and Open Office Writer) documents does not implement floats. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[68] |
It is possible to include a shortened caption in the list if you wish. Click on the caption element within the figure element, do an "insert after" command, and then choose shortCaption. Type the shortened caption in it. The list will use the shortened caption, but the figure itself will use the full caption content. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[69] |
An XLingPaper style sheet for a particular publisher can be set to override any of these settings with the lower case or capitalized form. So if you find that a publisher requires one or the other, you will only need to use a style sheet for their requirements. See section 11.25 or click here to see the publisher style sheet documentation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[70] |
We use tablenumbered instead of numberedtable so that when you are looking to insert a table, you will see it. Most of us will not naturally look under "n" for a table. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[71] |
We allow an img element for cases where the table itself is in an image file. For example, the R program (http://www.r-project.org/) which is a statistical analysis tool can produce table outputs which can be converted to PDF. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[72] |
It is possible to include a shortened caption in the list if you wish. Click on the caption element within the table element, do an "insert after" command, and then choose shortCaption. Type the shortened caption in it. The list will use the shortened caption, but the numbered table itself will use the full caption content. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[73] |
For the default way of producing PDF, you can also use some other items such as Unicode digits in non-Roman languages (e.g. Hebrew, Thai or Tamil). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[74] |
As declared in the citename attribute of the refAuthor element. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[75] |
For example, some practical grammars are targeted at both native speakers of the language as well as linguists. The native speaker would prefer to read the text as prose rather than as interlinear. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[76] |
The other two options use the morpheme-aligned approach to interlinear. See section 5.3.1.3. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[77] |
This is taken from Regnier (1989). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[78] |
This then acts rather like an XML character entity. Some XML editors (like the XMLmind XML Editor) replace XML character entities with the content of the entity. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[79] |
Actually, it now has another attribute which we think will rarely be used. It is showlivalue and has significance only when the target element is an li element whose parent element is an ol element. The intention is to provide a way to refer to a list item and potentially have the number or letter of the list item show up in the output. It is described in (i) below. Please note that unlike all other reference items where the value is produced automatically for you, this one can be ambiguous. All others will be unique, but it is possible to have more than one list with the same list item number/value. So if you choose to use this capability, be aware that it can be ambiguous and be careful not to confuse your reader.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[80] |
One such element is genericTarget which you can insert just about anywhere. It allows you to create a hyperlink to almost anything. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[81] |
The main issue is that when one uses accented letters, the accented letter internally can sometimes be stored and represented in two or more possible ways. For example, it is possible that the file name on the disk uses a “decomposed” form (called NFD) so that an accented vowel, say, would consist of two Unicode characters: the vowel followed by an accent diacritic character. The URI produced via the XMLmind XML Editor, on the other hand, will use a “composed” form (called NFC) so that the accented vowel is a single Unicode character. While both of these forms will look the same to the human eye, the computer's internal representation will actually be different. Since computers are such precise and picky machines, the program will not see the two as being the same. It can thus be frustrating to a user when it looks like the names are the same, but the program won't find the file. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[82] |
I am not a font expert by any stretch of the imagination, so all this is over my head. I do offer a guess, however, that the source of these problems might be that the designers of these fonts chose to do this so that it would be easier to have stacked diacritics. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[83] |
This is taken from a draft of a paper written by Colin Suggett. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[84] |
See http://scripts.sil.org/cms/SCRIPTs/page.php?site_id=nrsi&item_id=ComplexRomanFontFAQ#1d1d13ef for more on how to do this. (This link was valid on July 10, 2009.) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[85] |
To create a master list of abbreviations or other items is similar. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[86] |
Make a new one if you do not already have one. See section 1.2.3. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[87] |
If you have a serious validation problem, this icon will be red with a white X in it like this: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[88] |
The F7 at the end is a reminder that you can invoke this process merely by pressing the F7 key. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[89] |
If you have associated a publisher style sheet with your XLingPaper document (see section 11.25 or click here to see the publisher style sheet documentation), then the web page will reflect the information in that associated publisher style sheet as much as a web page can. For example, it will try to use the page width and margins as well as font layout of the publisher style sheet. It will not have any header or footers, however, since web pages do not have these. It also will produce a second file with the same name as your XLingPaper document file, but with an extension of css. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[90] |
The F8 at the end is a reminder that you can invoke this process merely by pressing the F8 key. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[91] |
The motivation for making the XeLaTeX approach be the default way is due to both the limitations of the RenderX XEP approach and, especially, because it is so hard to install the RenderX XEP tool. See sections 11.17.2.1 and 11.17.2.2. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[92] |
The F9 at the end is a reminder that you can invoke this process merely by pressing the F9 key. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[93] |
Please note that due to some very technical reasons if a table cell has a width attribute and it also has an endnote element which contains an example element, then we ignore the width attribute. If we do not, then XeLaTeX will fail to produce the PDF. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[94] |
The percentage works only for a top-most table element. If you have an embedded table within another table, then you will probably get overlapping material. Also, the percentage is of the total width of the table (not, say, how much larger or smaller you want the column to be). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[95] |
This is why there is the temporary directory mentioned above. It stores the files XeLaTeX needs to record the information needed between passes. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[96] |
This package is based on the free tool available at http://xmlgraphics.apache.org/batik/tools/rasterizer.html. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[97] |
The Ctrl+Shift+F9 at the end is a reminder that you can invoke this process by pressing the Ctrl, Shift, and F9 keys at the same time (one way to do this is to hold both the Ctrl and Shift keys down with one hand and then press the F9 key with the other hand). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[98] |
The current version expects it to be in C:\Program Files\RenderX\XEP. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[99] |
I also tried the freely available FO-to-PDF converter tool called Apache FOP, Beta version 0.92 to see if it is as capable as the RenderX XEP tool is. Unfortunately, it does not yet handle the XSL-FO table-layout='auto' capability. This means that most tables and no interlinear examples come out correctly, given how I'm doing them in XSL-FO. (If you know of another way to handle these in XSL-FO, please let me know: support@xlingpaper.org.) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[100] |
All of the noted limitations of the RenderX XEP approach are not a problem at all for the XeLaTeX approach. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[101] |
I have asked the makers of RenderX XEP to make it easier to install, but so far at least, they have not considered it important enough to make any changes. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[102] |
For Unix and Mac operating systems, you can do the following:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[103] |
The reason is that the XMLmind XSL Utility tool does not pay attention to font metric information. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[104] |
Apparently the XMLmind XSL Utility tool does not pay attention to the widow and orphan control information included in the XSL-FO output it processes. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[105] |
In a later version of the XLingPaper configuration files, we may well be able to create a special command to make this process much simpler. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[106] |
Note that some differences between publishers may also require you to change things like the formating for language items. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[107] |
The Ctrl+L at the end is a reminder that you can invoke this process merely by pressing the Ctrl and L keys at the same time. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[108] |
In designing XLingPaper for the XMLmind XML Editor, I wanted something like this, too, but realized we would have to use generic labels normally. Part of the technical challenge is that the pre-canned element packages need to come with identifiers for things like embedded langData elements. I do not know how to change these dynamically while the XMLmind XML Editor program is running. All I know to do is to change the content of the files containing these pre-canned element packages (called “element templates”). The method provided here is an improvement over what it used to be, although it is still not wonderful... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[109] |
See section 8 for information on making citations. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[110] |
The Character Tool is located in the lower right hand portion of the XMLmind XML Editor, near the spelling tool and the validity tool. It may look like this:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[111] |
On Windows operating systems, be sure and replace any backslash (\) characters with forward slashes (/). The “Browse Files...” button will automatically do this for ypu. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[112] |
The Ctrl+Shift+F7 at the end is a reminder that you can invoke this process merely by holding down the Ctrl and Shift keys while also pressing the F7 key. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[113] |
Some versions of the XMLmind XML Editor do not automatically include this menu item. To get it, do this:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[114] |
I have tried to avoid having this file show but so far have been unsuccessful for some very technical reasons. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[115] |
It would have been better to use the Windows right-click key, but I could not get it to work. Hence, I had to settle for something like the F12 key. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[116] |
See section 11.15 for more on the Validity tool. |
References
Hughes, Baden, Steven Bird and Catherine Bow. 2003. Encoding and Presenting Interlinear Text Using XML Technologies. In Knott, Alistair and Dominique Estival, eds.Proceedings Australasian Language Technology Workshop, 105-113. Melbourne, Australia: University of Melbourne.
Kew, Jonathan and Stephen McConnel. 1990. Formatting Interlinear Text. Occassional Publications in Academic Computing Number 17. Dallas, Texas: Summer Institute of Linguistics.
Lucy Scribner Library. n.d. Writing an Annotated Bibliogrphy. (http://lib.skidmore.edu/library/index.php/li371-annotated-bib) (accessed April 2, 2014).
Marlo, Michael R. 2008. Tura Verbal Tonology. Studies in African Linguistics 37(2):153-243. (http://elanguage.net/journals/sal/article/view/721/976).
Regnier, Randy. 1989. Collection of unpublished Quiegolani Zapotec glossed texts. Summer Institute of Linguistics, Mexico Branch Manuscript.
Index