Bugzilla – Attachment 142540 Details for
Bug 115007
Add a number formatting option (for using in Format() BASIC function, and in Calc number format) to spell number, like in NUMBERTEXT extension
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Draft of ODF enhacement "number:transliteration-spellout"
spellout.scheme.txt (text/plain), 6.18 KB, created by
László Németh
on 2018-06-05 13:33:50 UTC
(
hide
)
Description:
Draft of ODF enhacement "number:transliteration-spellout"
Filename:
MIME Type:
Creator:
László Németh
Created:
2018-06-05 13:33:50 UTC
Size:
6.18 KB
patch
obsolete
>[text] additional data-style attribute for âspell outâ formats. > >This is an enhancement, described in terms of changes to OpenDocument-v1.2 > >1. RATIONALE > >1.1 Use cases: > > Spelling out numbers, money amounts, dates and > and other language-specific transliterations are > common requirements in document editing, for > example at outline numbering and field/cell > formatting in text documents, text and spreadsheet > templates, references and mail merge. > > Recent âspelloutâ formats of Numbertext project: > > cardinal: spell out cardinal number (default) > cardinal-feminine: with gender feminine > cardinal-masculine: with gender masculine > cardinal-neuter: with gender neuter > cardinal-adverbial: as adverbial > ordinal: spell out ordinal number (default) > ordinal-feminine: with gender feminine > ordinal-masculine: with gender masculine > ordinal-masculine-adjective: also as adjective > ordinal-neuter: with gender neuter > ordinal-adverbial: as adverbial > ordinal-number: ordinal indicator (default) > ordinal-number-feminine: with gender feminine > ordinal-number-masculine: with gender masculine > ordinal-number-masculine-adjective: also as adjective > ordinal-number-neuter: with gender neuter > year: spell out year > XXX (ISO 4217 currency codes): spell out money amounts > formal: formal numbers of accountancy (for example, > Chinese, Japanese and Hungarian) > formal XXX: spell out money amounts in formal numbers > money XXX: spell out money amounts using nn/100 format for > the smaller monetary unit > article: article and numbers in digits (Hungarian) > article cardinal: spell out numbers with article > article cardinal formal: spell out formal numbers with article > > -a/-án/-áig/-ától/-ba/-ban/-ból/-d/-dik/-hoz/-nak, > -nál/-n/-ra/-ról/-s/-szor/-szoros/-t/-tól/-ul/-vá/-val: > affixation of Hungarian numbers, letters, day and month names > article -a/-án/-áig/-ától/-ba/-ban/-ból/-d/-dik/-hoz/-nak, > -nál/-n/-ra/-ról/-s/-szor/-szoros/-t/-tól/-ul/-vá/-val: > affixation of Hungarian numbers, numbers, letters, day and month names > historical: historical number formatting (Roman numbers) > left-to-right: change direction of the > default right-to-left transliteration (Old Hungarian) > > For example, "cardinal" will result "One" or "USD" will result > "One USD-dollar", if the formatted number is 1, and the > language of the transliteration is English. > > Capitalization > > Following modifiers change the default capitalization: > > upper: added to the beginning of the previous spell out > format codes, the result is converted to uppercase. > For example, "upper cardinal" will result "ONE", if > the formatted number is 1, and the language of the > transliteration is English. > > lower: added to the beginning of the previous spell out > format codes, the result isn't capitalized. > For example, "lower USD" will result "one USD-dollar", > if the formatted number is 1, and the language of the > transliteration is English. > > Case study â automatic article and suffix selections > in Hungarian references: > > Reference formats give an incomplete solution for > Hungarian language, because they don't support > automatic selection of the frequently used definitive > articles before the reference, also âvowel harmonyâ > and word ending dependent suffix variants of the > reference numbers. > > Supported (without article): > > "lásd 1. oldal" ("see page 1") > > Not supported (article "a" or "az"): > > "*az* 1. oldalon" ("on page 1") > "*a* 2. oldalon" ("on page 2") > > Supported (verbose): > > "1. képletben" ("in function 1") > "2. formulában" ("in function 2") > "3. formulában" ("in formula 2") > > Not supported (common short references): > > "(1)-ben" ("in (1)") > "(2)-ben" ("in (2)") > "(3)-ban" ("in (3)") > > LaTeX Babel package magyar.ldf uses \aref, \apageref > etc. commands for references with automatic Hungarian > articles, and similar solution for suffication using > variants of command "\told". > > Suggested number:transliteration-spellout attribute has > got the following features: > > â i18n: > > It's possible to add important localized number, > date and reference formats. > > For example, for most common date formats of > Hungarian text documents (2018. május 1-jén, > 2018. május 2-án, 2018. május 4-én, etc.) and > date ranges in templates (május 1-tÅl 4-éig). > > â back-compatibility: > > Applications without spellout support show > the original number or date without transliteration. > >1.2 Alternatives considered: > None. > >2. REQUESTED CHANGES TO THE ODF STANDARD > >2.1 Text changes/additions: > > The number:transliteration-spellout attribute specifies > the spell out format of a number system. > > Examples > > â number:transliteration-spellout is not specified: > > Visualizations: "1"; "2", "3" > > â number:transliteration-spellout="cardinal" > > Visualizations: "One"; "Two", "Three" (if the > number:transliteration-language is English) > > â number:transliteration-spellout="ordinal" > > Visualizations: "First"; "Second", "Third" (if the > number:transliteration-language is English) > > â number:transliteration-spellout="ordinal-number" > > Visualizations: "1st"; "2nd", "3rd" (if the > number:transliteration-language is English) > > The number:transliteration-spellout attribute is usable at the same > places, as number:transliteration-style. > > >2.2 Schema changes/additions: > > <rng:define name="common-data-style-attlist"> > <rng:interleave> > ... > <rng:optional> > <rng:attribute name="number:transliteration-spellout"> > <rng:ref name="string"/> > </rng:attribute> > </rng:optional> > ... > </rng:interleave> > </rng:define> > > >3. IMPACTS > >3.1 Conformance: > This proposal will not add any mandatory features or behaviors. > >3.2 Backwards compatibility: > This element was not available in previous versions and is > optional. Existing ODF processors may ignore it. > >3.3 Accessibility impact: > None.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 115007
: 142540 |
143595
|
143596
|
143597
|
144077