Branch libreoffice-5-0-4
[LibreOffice.git] / i18npool / source / localedata / data / locale.dtd
blob99f07780cf90bdce6bfb5db76df2231b77803fe6
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 -->
20 <!-- ............................................................... -->
21 <!-- Locale data specification DTD ................................. -->
22 <!-- ............................................................... -->
24 <!--
25 ===========================================================================
26 ATTENTION! PLEASE! HEADS UP! IMPORTANT!
27 ===========================================================================
29 Please validate your locale data contribution using a validating parser. A
30 validating parser, for example, may be found at
31 http://unicode.org/cldr/data/tools/java/org/unicode/cldr/util/XMLValidator.java
32 Compile it into a class-jar and call it in the
33 i18npool/source/localedata/data/ directory:
34 java -cp <your_path>/XMLValidator.jar org.unicode.cldr.util.XMLValidator your_data.xml
37 A second possibility is:
39 - temporarily (!) change the DOCTYPE of your file to read (all on one line)
40 <!DOCTYPE Locale SYSTEM "http://cgit.freedesktop.org/libreoffice/core/plain/i18npool/source/localedata/data/locale.dtd">
42 - upload it to the form available at http://www.validome.org/xml/
44 This will validate the file against the HEAD revision of locale.dtd
47 Please test locale data files either in an enable-dbgutil build, which
48 implements some checks and pops up assertion message boxes if the tests
49 fail, or by setting the environment variable OOO_ENABLE_LOCALE_DATA_CHECKS
50 to 'Y' or 'Yes' (or any other string starting with 'Y') or '1' before
51 starting the application, which outputs the same messages to stderr and
52 also works in a product build.
54 Then follow this procedure:
55 1. Create a new spreadsheet document.
56 2. On a cell use context menu -> Format Cells -> Numbers.
57 3. Select the locale in the Language list box => MUST be assertion free.
58 3.a. Assertions are only shown at the very first time a number formatter
59 is created, respectively the first time a specific locale data is
60 used. To repeat steps 1.-3. you'd need to create another spreadsheet
61 document.
63 ===========================================================================
64 NOTE the FormatElement comments further down.
65 ===========================================================================
67 -->
69 <!-- ............................................................... -->
70 <!-- Entities for characters and symbols ........................... -->
72 <!ENTITY % UNOModule
73 'unoid CDATA #IMPLIED'>
75 <!ENTITY % MessageID
76 'msgid CDATA #REQUIRED'>
78 <!ENTITY % RefLocale
79 'ref CDATA #IMPLIED'>
80 <!-- Where given, an element can be inherited from another locale, e.g.
81 ref="en_US" -->
83 <!ENTITY % LIBModule
84 'module CDATA #IMPLIED'>
85 <!-- The locale referred to for the sub categories, implementation detail. -->
87 <!ENTITY % replaceFrom 'replaceFrom CDATA #IMPLIED'>
88 <!ENTITY % replaceTo 'replaceTo CDATA #IMPLIED'>
89 <!-- See below for the LC_FORMAT element. -->
91 <!ELEMENT DefaultName (#PCDATA)>
93 <!-- Locale is made of different sub categories -->
94 <!ELEMENT Locale (LC_INFO, LC_CTYPE, LC_FORMAT, LC_FORMAT_1?, LC_COLLATION, LC_SEARCH, LC_INDEX, LC_CALENDAR, LC_CURRENCY, LC_TRANSLITERATION, LC_MISC, LC_NumberingLevel, LC_OutLineNumberingLevel)>
95 <!ATTLIST Locale versionDTD CDATA #FIXED "2.0.3">
96 <!-- Version identifier to prevent mismatching data files being submitted
97 because of older files being copied as templates. The version should be
98 less than or equal to the OOo release, or the OOo release number plus some
99 extension, like "2.0.enhanced", to be able to easily determine the
100 corresponding OOo version. New versions of the DTD with new required
101 elements SHOULD REALLY result in a new versionDTD here and
102 LOCALE_VERSION_DTD in ../LocaleNode.cxx, and *.xml files MUST be adapted
103 then, otherwise building the data or checking it with a validating parser
104 will throw an error.
106 <!ATTLIST Locale allowUpdateFromCLDR (yes|no) #REQUIRED>
107 <!-- Whether some data elements may be (automatically) updated from the Common
108 Locale Data Repository, see http://cldr.unicode.org/
109 Note: This mechanism currently (2010-02-21) is outdated.
111 <!ATTLIST Locale version CDATA #REQUIRED>
112 <!-- Valid number, may designate versioned data -->
115 <!ELEMENT LC_INFO (Language, Country, Platform?, Variant?)>
117 <!ELEMENT Language (LangID, DefaultName) >
118 <!ELEMENT LangID (#PCDATA) >
119 <!-- LangID must be a valid two or three letter language identifier defined by
120 ISO 639. Use ISO 639-1 two letter code where available, else ISO 639-2 or
121 639-3 three letter code.
124 <!ELEMENT Country (CountryID, DefaultName) >
125 <!ELEMENT CountryID (#PCDATA) >
126 <!-- CountryID must be a valid two letter country identifier defined by ISO 3166. -->
128 <!ELEMENT Platform (PlatformID) >
129 <!ELEMENT PlatformID (#PCDATA) >
130 <!-- Unused, deprecated, can be generic|unix|win32|macos, best Platform element
131 be absent.
134 <!ELEMENT Variant (#PCDATA) >
135 <!-- Reserved for future use, currently unused. -->
138 <!-- The LC_FORMAT element contains number format codes and may actually appear
139 twice (with the second occurrence named LC_FORMAT_1). One section is
140 mandatory and MUST contain at least all required format codes
141 formatindex="0" to formatindex="47", MUST NOT contain formatindex 48 and
142 49, and MAY contain other format codes. See below ATTLIST FormatElement
143 formatindex.
145 A second LC_FORMAT_1 section may follow containing other format codes. The
146 difference between the two sections is that they are inherited
147 independently if a locale uses the RefLocale mechanism (ref="..."). This
148 may be used to not offer locale dependent format codes to other locales
149 that otherwise inherit the format codes.
152 <!ELEMENT LC_FORMAT (DateAcceptancePattern*, FormatElement*) >
153 <!-- All FormatElement elements must be given if the RefLocale mechanism is not used! -->
154 <!ATTLIST LC_FORMAT %RefLocale;>
155 <!ATTLIST LC_FORMAT %replaceFrom;>
156 <!-- Define placeholder for currency code, usually "[CURRENCY]" -->
157 <!ATTLIST LC_FORMAT %replaceTo;>
158 <!-- Currency code to be used to replace the placeholder, e.g. "[$R-1C09]".
159 Note: The brackets and the leading $ character are mandatory, the
160 hyphen-minus separates the currency symbol from the hexagesimal MS-LCID,
161 letters contained in the LCID have to be in upper case, leading zeros are
162 to be omitted. LCIDs are defined in include/i18nlangtag/lang.h (
163 http://opengrok.libreoffice.org/xref/core/include/i18nlangtag/lang.h )
166 <!ELEMENT DateAcceptancePattern (#PCDATA)>
167 <!-- Pattern that defines an input sequence match to be accepted as
168 (abbreviated) date. For example, in en_US locale "M/D" accepts an input of
169 11/23 as CurrentYear-November-23 whereas 11/23/ would not be a date. In
170 de_DE locale "D.M." accepts an input of 23.11. as CurrentYear-November-23
171 whereas 23.11 would not be a date.
173 For each locale one pattern that matches a full date is automatically
174 generated from FormatElement formatIndex="21" and does not need to be
175 defined, for example "M/D/Y" or "D.M.Y".
177 At least one pattern for abbreviated date input must be defined, i.e.
178 contain D and M but not Y.
180 NOTE: use only single letter D,M,Y. Multiple patterns can be defined.
183 <!ELEMENT LC_FORMAT_1 (FormatElement*) >
184 <!ATTLIST LC_FORMAT_1 %RefLocale;>
185 <!ATTLIST LC_FORMAT_1 %replaceFrom;>
186 <!ATTLIST LC_FORMAT_1 %replaceTo;>
188 <!ELEMENT FormatElement ( FormatCode, DefaultName?)>
189 <!ATTLIST FormatElement %MessageID;>
190 <!ATTLIST FormatElement default (true|false) #REQUIRED >
191 <!ATTLIST FormatElement type (short|medium|long) #REQUIRED >
192 <!--
193 There may be up to three groups (type="short", type="medium", type="long")
194 for each usage category defined. Each group, if defined, needs excactly one
195 default. The type roughly determines the display string length, for example
196 short, medium, and long date formats.
198 The number formatter determines an ultimate default format of a specific
199 usage category by looking at the medium, long, and short default formats,
200 in that very particular order.
202 <!ATTLIST FormatElement usage (FIXED_NUMBER|FRACTION_NUMBER|PERCENT_NUMBER|SCIENTIFIC_NUMBER|CURRENCY|DATE|TIME|DATE_TIME) #REQUIRED >
203 <!ATTLIST FormatElement formatindex CDATA #REQUIRED>
204 <!--
205 The following FormatElements must follow specific rules:
207 All:
208 The format indices 0..49 are reserved and, for backwards compatibility,
209 MUST be used as stated in
210 offapi/com/sun/star/i18n/NumberFormatIndex.idl (
211 http://opengrok.libreoffice.org/xref/core/offapi/com/sun/star/i18n/NumberFormatIndex.idl )
212 Note that indices 10 ("# ?/?"), 11 ("# ??/??"), 48 (BOOLEAN) and 49 (@
213 Text) are generated internally, as they aren't locale dependent, and
214 must not be used in locale data XML files. All other formats have to be
215 present.
217 Note also that "must be used as stated" does not mean that the format
218 codes must be identical, of course the meaning of a format code should
219 match, for example en_US MM/DD/YY matches de_DE DD.MM.YY
220 Just imagine the same index being used with another locale shouldn't
221 change the meaning of representation significantly.
223 You'll notice differences of non-matching format codes only if
224 documents use the Default language in number formats and either are
225 stored in old SO5 binary file format and loaded on another system where
226 languages/locales aren't the same, or if the default locale is switched
227 under menu Tools.Options.LanguageSettings.Languages.LocaleSetting
228 dialog, which exchanges formats on the fly in the spreadsheet
229 application. Please check it out! So far only very few locale data file
230 we received got that right, especially not in date formats!
232 For easier comparison between locales in future please sort the
233 FormatElements by their formatindex="..." value within a usage group.
234 This isn't necessary to be technically correct and isn't done in many
235 locales yet, but will certainly help.
237 If you want to define yet more formats than the preset and reserved
238 0..49 range that's fine, only make sure those formatindex="..." values
239 are each >=50 and all values are unique within one locale.
241 Of usage="FIXED_NUMBER":
242 formatindex="0" MUST be the format containing the 'General' keyword.
243 The keyword itself may be localized, it is good practice though to
244 stick with a wording known from another spreadsheet application for
245 better user experience. Like other format codes it may be prepended
246 with a [NatNum1] modifier if values are to be displayed using native
247 numbering if no specific format was applied. The format must have the
248 default="true" and type="medium" attributes.
250 Of usage="DATE":
251 formatindex="21" is used to edit already existing date data. In order
252 to always edit the full century the long year YYYY code must be used.
253 Furthermore, the format has to be of an editable type, of course, which
254 means parseable. Therefore it should only contain DD, MM, YYYY and date
255 separators, and the YMD default order is determined from the order
256 encountered in this format.
257 TODO: Future versions should make use of an edit="true" attribute
258 instead of relying on this special requirement.
260 formatindex="33" must be ISO 8601 YYYY-MM-DD format code.
262 Of usage="DATE_TIME":
263 formatindex="47" is used to edit already existing combined date/time
264 data. The requirements are the same as for formatindex="21" above.
266 Of usage="TIME":
267 * The FormatElement with default="true" type="medium" is used to edit
268 times and thus must contain all HH and MM and SS codes, e.g. HH:MM:SS
269 * Formatindices 43, 44, 45 are special in the sense that they are
270 programmatically used to automatically display values that meet
271 certain criteria:
272 * Formatindex="43" contains the [HH] format code that displays hour
273 values greater than or equal to 24 (as opposed to a simple HH that
274 displays modulo 24).
275 * Formatindex="44" uses no hour code but 100th seconds and the
276 Time100SecSeparator.
277 * Formatindex="45" uses both [HH] hour code and 100th seconds to be
278 able to edit such time values without losing information.
280 Of usage="CURRENCY":
281 formatindices 12, 13, 14, 15, 17 with [$xxx-yyy] notation must use the
282 xxx currency symbol that has the attribute
283 usedInCompatibleFormatCodes="true". The hexadecimal yyy LANGID must be
284 properly set. It can be found in the file include/i18nlangtag/lang.h (
285 http://opengrok.libreoffice.org/xref/core/include/i18nlangtag/lang.h )
286 You may verify the proper use of the xxx currency symbol with the AWK
287 script i18npool/source/localedata/data/currency-check.awk, it mustn't
288 display any output. If it does, then there's something wrong.
291 <!ELEMENT FormatCode (#PCDATA)>
294 <!-- The LC_CALENDAR element defines calendars used with a locale. -->
295 <!ELEMENT LC_CALENDAR (Calendar* ) >
296 <!-- At least one Calendar element must be given if the RefLocale mechanism is not used! -->
297 <!ATTLIST LC_CALENDAR %RefLocale;>
299 <!ELEMENT Calendar (DaysOfWeek, MonthsOfYear, GenitiveMonths*, PartitiveMonths*, Eras, StartDayOfWeek, MinimalDaysInFirstWeek) >
300 <!ATTLIST Calendar %UNOModule;>
301 <!-- The unoid of a gregorian calendar MUST be lower case "gregorian",
302 calendars MUST match the names defined in the OASIS OpenDocument Format
303 (ODF) 1.2 or later specification. The implementation name registered with
304 the OOo service resgistry MUST match, e.g.
305 com.sun.star.i18n.Calendar_gregorian
307 <!ATTLIST Calendar default (true|false) #REQUIRED >
308 <!-- Exactly one Calendar element has to be the default calendar. -->
310 <!ELEMENT DaysOfWeek (Day*)>
311 <!-- All Day elements of a Calendar must be given if the RefLocale mechanism is not used! -->
312 <!ATTLIST DaysOfWeek %RefLocale;>
313 <!-- Sequence of days is important, MUST start with Sunday. -->
314 <!ELEMENT Day (DayID, DefaultAbbrvName, DefaultFullName, DefaultNarrowName*)>
315 <!ELEMENT DayID (#PCDATA)>
316 <!-- Preferably the lower case abbreviated English name like sun for Sunday. -->
317 <!ELEMENT DefaultAbbrvName (#PCDATA)>
318 <!-- The abbreviated day name, e.g. Sun for Sunday. -->
319 <!ELEMENT DefaultFullName (#PCDATA)>
320 <!-- The full day name, e.g. Sunday for Sunday. -->
321 <!ELEMENT DefaultNarrowName (#PCDATA)>
322 <!-- The narrow day name, e.g. S for Sunday.
323 If not specified, the first letter of the corresponding DefaultFullName is taken.
326 <!ELEMENT MonthsOfYear (Month*)>
327 <!-- All Month elements of a Calendar must be given if the RefLocale mechanism is not used! -->
328 <!ATTLIST MonthsOfYear %RefLocale;>
329 <!-- Sequence of months is important, MUST start with the first month of a
330 year, e.g. January in a Gregorian calendar.
333 <!ELEMENT GenitiveMonths (Month*)>
334 <!-- Possessive genitive case month names, for example in Slavic locales. The
335 element is optional, but if present all Month elements of a Calendar must
336 be given if the RefLocale mechanism is not used! If not present,
337 MonthsOfYear names will be used. -->
338 <!ATTLIST GenitiveMonths %RefLocale;>
339 <!-- Sequence of months is important, MUST start with the first month of a
340 year, e.g. January in a Gregorian calendar.
343 <!ELEMENT PartitiveMonths (Month*)>
344 <!-- Partitive case month names, for example in Finnish locales. The
345 element is optional, but if present all Month elements of a Calendar must
346 be given if the RefLocale mechanism is not used! If not present,
347 GenitiveMonths names will be used. -->
348 <!ATTLIST PartitiveMonths %RefLocale;>
349 <!-- Sequence of months is important, MUST start with the first month of a
350 year, e.g. January in a Gregorian calendar.
353 <!ELEMENT Month (MonthID, DefaultAbbrvName, DefaultFullName, DefaultNarrowName*)>
354 <!ELEMENT MonthID (#PCDATA)>
355 <!-- Preferably the lower case abbreviated English name like jan for January. -->
357 <!ELEMENT Eras (Era*)>
358 <!-- All Era elements of a Calendar must be given if the RefLocale mechanism is not used! -->
359 <!ATTLIST Eras %RefLocale;>
360 <!-- The eras MUST be in chronological order, e.g. first BC then AC. -->
361 <!ELEMENT Era (EraID, DefaultAbbrvName, DefaultFullName)>
362 <!ELEMENT EraID (#PCDATA)>
363 <!-- If a calendar has special eras (like zh_TW ROC or ja_JP Gengou calendar)
364 and a date before those eras is undefined, a leading (first) dummy era
365 with EraID="Dummy" has to be defined to enable the number formatter to
366 fall back to a Gregorian calendar for those date values if the XCalendar
367 implementation returns an era value of 0.
370 <!ELEMENT StartDayOfWeek (DayID)>
371 <!-- MUST exactly match (case significant!) one of the DayID of DaysOfWeek -->
373 <!ELEMENT MinimalDaysInFirstWeek (#PCDATA)>
374 <!-- The number of days of a week that must reside in the beginning of a year
375 to make a week the first week of the year. For example, a value of 4 means
376 that at least 4 days of a week must be in the new year. So if the week
377 starts on Monday, the first week of a year will be the week where Thursday
378 is in the new year.
382 <!-- The LC_CURRENCY element defines currencies used with a locale. -->
383 <!ELEMENT LC_CURRENCY (Currency* ) >
384 <!-- At least one Currency element must be given if the RefLocale mechanism is not used! -->
385 <!ATTLIST LC_CURRENCY %RefLocale;>
386 <!ELEMENT Currency (CurrencyID, CurrencySymbol, BankSymbol, CurrencyName, DecimalPlaces)>
387 <!ATTLIST Currency default (true|false) #REQUIRED >
388 <!-- Exactly one Currency element has to be the default currency. -->
389 <!ATTLIST Currency usedInCompatibleFormatCodes (true|false) #REQUIRED >
390 <!-- If this currency is the one used in compatible number format codes with
391 <member>FormatElement::formatIndex</member> values in the range 12..17.
392 Those format codes are used to generate some old style currency format
393 codes for compatibility with StarOffice5 and StarOffice4.
394 Every locale data file MUST contain exactly one currency having this set to "true",
395 and that currency MUST be used in format codes 12..17.
396 For European countries using the EURo it MUST be the old currency, for example, DM.
398 <!ATTLIST Currency legacyOnly (true|false) #IMPLIED >
399 <!-- If this Currency element exists only to be able to correctly load legacy
400 documents and is not selectable in the UI otherwise. Defaults to "false"
401 if not specified. If this attribute is "true", 'default' and
402 'usedInCompatibleFormatCodes' must both be "false".
404 Currency elements must not be changed to contain only a different
405 CurrencySymbol element without changing the CurrencyID and BankSymbol
406 elements, instead the entire Currency element must be duplicated, the old
407 element needs this 'legacyOnly' attribute be added and 'default' and
408 'usedInCompatibleFormatCodes' attributes must be set to "false", and only
409 in the new duplicated Currency element the CurrencySymbol element be
410 changed.
412 <!ELEMENT CurrencyID (#PCDATA)>
413 <!-- The ISO 4217 three letter currency code, e.g. USD or EUR. -->
414 <!ELEMENT CurrencySymbol (#PCDATA)>
415 <!-- The currency symbol, e.g. $ or €. -->
416 <!ELEMENT BankSymbol (#PCDATA)>
417 <!-- The ISO 4217 three letter currency code, e.g. USD or EUR. -->
418 <!ELEMENT CurrencyName (#PCDATA)>
419 <!-- The native currency name, e.g. Dollar or Euro. -->
420 <!ELEMENT DecimalPlaces (#PCDATA)>
421 <!-- Number of decimal places used with the currency, usually 2 or 0, e.g. 2
422 for cents.
426 <!ELEMENT LC_CTYPE (Separators?, Markers?, TimeAM?, TimePM?, MeasurementSystem?)>
427 <!-- All elements must be given if the RefLocale mechanism is not used! -->
428 <!ATTLIST LC_CTYPE %RefLocale;>
429 <!ATTLIST LC_CTYPE %UNOModule;>
431 <!ELEMENT Separators (DateSeparator, ThousandSeparator, DecimalSeparator, TimeSeparator, Time100SecSeparator, ListSeparator, LongDateDayOfWeekSeparator, LongDateDaySeparator, LongDateMonthSeparator, LongDateYearSeparator)>
432 <!ELEMENT DateSeparator (#PCDATA)>
433 <!ELEMENT ThousandSeparator (#PCDATA)>
434 <!ELEMENT DecimalSeparator (#PCDATA)>
435 <!ELEMENT TimeSeparator (#PCDATA)>
436 <!ELEMENT Time100SecSeparator (#PCDATA)>
437 <!ELEMENT ListSeparator (#PCDATA)>
438 <!ELEMENT LongDateDayOfWeekSeparator (#PCDATA)>
439 <!ELEMENT LongDateDaySeparator (#PCDATA)>
440 <!ELEMENT LongDateMonthSeparator (#PCDATA)>
441 <!ELEMENT LongDateYearSeparator (#PCDATA)>
443 <!ELEMENT Markers (QuotationStart, QuotationEnd, DoubleQuotationStart, DoubleQuotationEnd)>
444 <!ELEMENT QuotationStart (#PCDATA)>
445 <!ELEMENT QuotationEnd (#PCDATA)>
446 <!ELEMENT DoubleQuotationStart (#PCDATA)>
447 <!ELEMENT DoubleQuotationEnd (#PCDATA)>
449 <!ELEMENT TimeAM (#PCDATA)>
450 <!ELEMENT TimePM (#PCDATA)>
451 <!ELEMENT MeasurementSystem (#PCDATA)>
454 <!ELEMENT LC_COLLATION (Collator*, CollationOptions?)>
455 <!-- All elements must be given if the RefLocale mechanism is not used! -->
456 <!ATTLIST LC_COLLATION %RefLocale;>
457 <!--
458 Optional ICU tailoring.
460 See Collation Customization in ICU User Guide for syntax,
461 http://www.icu-project.org/userguide/Collate_Customization.html
463 There are two ways to add language specific tailoring in OpenOffice.org.
464 For small tailoring, you can directly add it in locale data here. For
465 large tailoring, it is suggested to put the data under collator/data, so
466 it will be compiled to a binary format in build time and improve performance
467 in run time.
470 <!ELEMENT Collator (#PCDATA)>
471 <!ATTLIST Collator %UNOModule;>
472 <!ATTLIST Collator default (true|false) #REQUIRED >
473 <!ELEMENT CollationOptions (TransliterationModules+)>
474 <!ELEMENT TransliterationModules (#PCDATA)>
477 <!ELEMENT LC_SEARCH (SearchOptions?)>
478 <!-- All elements must be given if the RefLocale mechanism is not used! -->
479 <!ATTLIST LC_SEARCH %RefLocale;>
480 <!ELEMENT SearchOptions (TransliterationModules+)>
483 <!ELEMENT LC_INDEX (IndexKey*, UnicodeScript*, FollowPageWord*)>
484 <!ATTLIST LC_INDEX %RefLocale;>
486 <!--
487 The IndexKey element is optional, but should be given if the locale
488 requires a specific sort order in Writer's index tables or entries are to
489 be combined under keys.
491 Index key for the algorithm and language, like >A-Z< for English => A, B,
492 C, ..., Y, Z. The letters specify under which key an entry goes and the
493 order the keys are sorted. Keys may be reordered or letters inserted to
494 form a specific order, for example (ve_ZA) >A-D Ḓ E-L Ḽ M N Ṋ Ṅ O-T Ṱ U-Z<
495 Entries that don't match a defined key are appended to the index list. Used
496 in Writer textprocessor.
498 The initial data was setup according to the ICU collation chart at
499 http://oss.software.ibm.com/icu/charts/collation/
500 Note: ICU site was moved to http://www.icu-project.org/ and as ICU per
501 default uses CLDR, collation charts are available at
502 http://unicode.org/cldr/comparison_charts.html#Collation
504 Possible notations in the syntax of the IndexKey element are:
506 '-' (dash): Ellipsis, all letters elided by the ellipsis are included as
507 index keys in alphabetic order. For example, 'A-Z' includes all ASCII
508 letters A to Z.
510 '[]' (square brackets): all letters included in square brackets are
511 skipping letters. It is used for CTL languages, for example in Thai
512 (th_TH), to skip prefix vowels or signs. For example, if ["] double quote
513 is defined as skipping letter, index item '"Index"' will be under 'I', not
514 '"'.
516 '{}' (curly brackets): define multiple letters index key, for example
517 '{Cs}' is one of the index keys for Hungarian (hu_HU).
519 '()' (parentheses): define optional description for index key. If defined,
520 the description will be shown as index key title, instead of the index key
521 itself. For example, 'E(E, É)' in Hungarian adds entries with 'E' to the
522 description 'E, É'.
525 <!ELEMENT IndexKey (#PCDATA)>
526 <!ATTLIST IndexKey %UNOModule;>
527 <!ATTLIST IndexKey %LIBModule;>
528 <!ATTLIST IndexKey default (true|false) #REQUIRED >
529 <!ATTLIST IndexKey phonetic (true|false) #REQUIRED >
531 <!--
532 The Unicode script types are those of
533 offapi/com/sun/star/i18n/UnicodeScript.idl, they define the code range for
534 the language.
536 <!ELEMENT UnicodeScript (#PCDATA)>
538 <!--
539 The FollowPageWord entries were originally hard-coded in
540 ../../indexentry/indexentrysupplier.cxx, most locales used the English
541 ``p.'' and ``pp.'', valid data should be provided by native speakers.
542 These words or abbreviations are used in the Writer's index table. The
543 first FollowPageWord element is the abbreviation for "page" (p.), the
544 second FollowPageWord element the abbreviation for "page and following
545 pages" (pp.).
547 <!ELEMENT FollowPageWord (#PCDATA)>
550 <!ELEMENT LC_TRANSLITERATION (Transliteration*)>
551 <!ATTLIST LC_TRANSLITERATION %RefLocale;>
552 <!ELEMENT Transliteration EMPTY>
553 <!ATTLIST Transliteration %UNOModule;>
555 <!ELEMENT LC_MISC (ForbiddenCharacters?, BreakIteratorRules?, ReservedWords?)>
556 <!ATTLIST LC_MISC %RefLocale;>
557 <!ELEMENT ForbiddenCharacters (ForbiddenLineBeginCharacters, ForbiddenLineEndCharacters, LineBreakHangingCharacters)>
558 <!ELEMENT ForbiddenLineBeginCharacters (#PCDATA)>
559 <!ELEMENT ForbiddenLineEndCharacters (#PCDATA)>
561 <!-- optional break iterator rules for the languages.
562 if defined, 5 rules should be all listed, each of them can be blank and default will be used.
563 order of the rules is significant!
565 <!ELEMENT BreakIteratorRules (EditMode, DictionaryMode, WordCountMode, CharacterMode, LineMode)>
566 <!ELEMENT EditMode (#PCDATA)>
567 <!ELEMENT DictionaryMode (#PCDATA)>
568 <!ELEMENT WordCountMode (#PCDATA)>
569 <!ELEMENT CharacterMode (#PCDATA)>
570 <!ELEMENT LineMode (#PCDATA)>
572 <!ELEMENT ReservedWords (trueWord, falseWord, quarter1Word, quarter2Word, quarter3Word, quarter4Word, aboveWord, belowWord, quarter1Abbreviation, quarter2Abbreviation, quarter3Abbreviation, quarter4Abbreviation)>
573 <!-- order is significant! -->
574 <!ELEMENT trueWord (#PCDATA)>
575 <!ELEMENT falseWord (#PCDATA)>
576 <!ELEMENT quarter1Word (#PCDATA)>
577 <!ELEMENT quarter2Word (#PCDATA)>
578 <!ELEMENT quarter3Word (#PCDATA)>
579 <!ELEMENT quarter4Word (#PCDATA)>
580 <!ELEMENT aboveWord (#PCDATA)>
581 <!ELEMENT belowWord (#PCDATA)>
582 <!-- aboveWord and belowWord are used as reference field content in Writer, it
583 is a "physical" object relative position, not "numerical" relative.
585 <!ELEMENT quarter1Abbreviation (#PCDATA)> <!-- "Q1" (quarter), "T1" (trimestre), ... -->
586 <!ELEMENT quarter2Abbreviation (#PCDATA)>
587 <!ELEMENT quarter3Abbreviation (#PCDATA)>
588 <!ELEMENT quarter4Abbreviation (#PCDATA)>
591 <!--
592 In numbering levels, the NumType attribute is a value of the constants
593 defined in offapi/com/sun/star/style/NumberingType.idl (
594 http://opengrok.libreoffice.org/xref/core/offapi/com/sun/star/style/NumberingType.idl
598 <!ELEMENT LC_NumberingLevel (NumberingLevel* )>
599 <!ATTLIST LC_NumberingLevel %RefLocale;>
600 <!ELEMENT NumberingLevel EMPTY>
601 <!ATTLIST NumberingLevel Prefix CDATA #REQUIRED>
602 <!ATTLIST NumberingLevel NumType CDATA #REQUIRED>
603 <!ATTLIST NumberingLevel Suffix CDATA #REQUIRED>
604 <!ATTLIST NumberingLevel Transliteration CDATA #IMPLIED>
605 <!ATTLIST NumberingLevel NatNum CDATA #IMPLIED>
608 <!ELEMENT LC_OutLineNumberingLevel (OutlineStyle* )>
609 <!ATTLIST LC_OutLineNumberingLevel %RefLocale;>
610 <!ELEMENT OutlineStyle (OutLineNumberingLevel+)>
611 <!ELEMENT OutLineNumberingLevel EMPTY>
612 <!ATTLIST OutLineNumberingLevel Prefix CDATA #REQUIRED >
613 <!ATTLIST OutLineNumberingLevel NumType CDATA #REQUIRED >
614 <!ATTLIST OutLineNumberingLevel Suffix CDATA #REQUIRED >
615 <!ATTLIST OutLineNumberingLevel BulletChar CDATA #REQUIRED >
616 <!ATTLIST OutLineNumberingLevel BulletFontName CDATA #REQUIRED>
617 <!ATTLIST OutLineNumberingLevel ParentNumbering CDATA #REQUIRED >
618 <!ATTLIST OutLineNumberingLevel LeftMargin CDATA #REQUIRED>
619 <!ATTLIST OutLineNumberingLevel SymbolTextDistance CDATA #REQUIRED >
620 <!ATTLIST OutLineNumberingLevel FirstLineOffset CDATA #REQUIRED >
621 <!ATTLIST OutLineNumberingLevel Transliteration CDATA #IMPLIED >
622 <!ATTLIST OutLineNumberingLevel NatNum CDATA #IMPLIED>